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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
437021d671825e959375a0374106a655349dffb0 | 7,803 | py | Python | PassWord.py | IQUBE-X/passGenerator | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | [
"MIT"
] | 1 | 2020-07-11T07:59:54.000Z | 2020-07-11T07:59:54.000Z | PassWord.py | dhruvaS-hub/passGenerator | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | [
"MIT"
] | null | null | null | PassWord.py | dhruvaS-hub/passGenerator | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | [
"MIT"
] | 1 | 2021-06-02T10:11:19.000Z | 2021-06-02T10:11:19.000Z | # PassWord - The Safe Password Generator App!
# importing the tkinter module for GUI
from tkinter import *
# importing the message box widget from tkinter
from tkinter import messagebox
# importing sqlite3 for database
import sqlite3
# importing random for password generation
import random
# creatin... | 32.648536 | 134 | 0.656927 | 1,065 | 7,803 | 4.748357 | 0.213146 | 0.016611 | 0.023729 | 0.028475 | 0.371564 | 0.307099 | 0.282183 | 0.273878 | 0.2193 | 0.191418 | 0 | 0.026251 | 0.22376 | 7,803 | 238 | 135 | 32.785714 | 0.808651 | 0.301679 | 0 | 0.222222 | 0 | 0 | 0.12163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.407407 | 0.037037 | 0 | 0.092593 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
437727aaebd2b60da03893cf1960a1dac044f4b8 | 14,215 | py | Python | train.py | MEfeTiryaki/trpo | e1c7bc25165730afa60d9733555398e078a13e67 | [
"MIT"
] | 2 | 2020-03-26T23:36:41.000Z | 2020-03-27T03:04:27.000Z | train.py | MEfeTiryaki/trpo | e1c7bc25165730afa60d9733555398e078a13e67 | [
"MIT"
] | null | null | null | train.py | MEfeTiryaki/trpo | e1c7bc25165730afa60d9733555398e078a13e67 | [
"MIT"
] | 1 | 2020-03-27T03:04:28.000Z | 2020-03-27T03:04:28.000Z | import argparse
from itertools import count
import signal
import sys
import os
import time
import numpy as np
import gym
import torch
import torch.autograd as autograd
from torch.autograd import Variable
import scipy.optimize
import matplotlib.pyplot as plt
from value import Value
from policy import Policy
from ut... | 38.838798 | 143 | 0.636722 | 1,758 | 14,215 | 5.010808 | 0.191695 | 0.025542 | 0.044386 | 0.014531 | 0.281644 | 0.221137 | 0.181746 | 0.138949 | 0.10353 | 0.071972 | 0 | 0.012913 | 0.226381 | 14,215 | 365 | 144 | 38.945205 | 0.788124 | 0.105241 | 0 | 0.112903 | 0 | 0 | 0.153175 | 0.003519 | 0 | 0 | 0 | 0.027397 | 0 | 1 | 0.032258 | false | 0 | 0.072581 | 0 | 0.108871 | 0.040323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
437c6a6a6d5abf3db9e497007b852df839401638 | 2,075 | py | Python | setup.py | phaustin/MyST-Parser | 181e921cea2794f10ca612df6bf2a2057b66c372 | [
"MIT"
] | null | null | null | setup.py | phaustin/MyST-Parser | 181e921cea2794f10ca612df6bf2a2057b66c372 | [
"MIT"
] | null | null | null | setup.py | phaustin/MyST-Parser | 181e921cea2794f10ca612df6bf2a2057b66c372 | [
"MIT"
] | null | null | null | """myst-parser package setup."""
from importlib import import_module
from setuptools import find_packages, setup
setup(
name="myst-parser",
version=import_module("myst_parser").__version__,
description=(
"An extended commonmark compliant parser, " "with bridges to docutils & sphinx."
),
lo... | 37.727273 | 88 | 0.61012 | 215 | 2,075 | 5.772093 | 0.567442 | 0.107172 | 0.141015 | 0.104754 | 0.043513 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021848 | 0.227952 | 2,075 | 54 | 89 | 38.425926 | 0.752809 | 0.01253 | 0 | 0.039216 | 0 | 0 | 0.554577 | 0.0372 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
437d5b7a20ce44c03f3d4a4f70ef524faf474a1a | 554 | py | Python | python/tests/extractor/refmt.py | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 114 | 2015-01-11T05:41:03.000Z | 2021-08-31T03:47:12.000Z | python/tests/extractor/refmt.py | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 29 | 2015-01-09T01:00:09.000Z | 2019-09-25T06:04:02.000Z | python/tests/extractor/refmt.py | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 50 | 2015-02-13T13:48:39.000Z | 2019-08-07T09:45:11.000Z | #!/usr/bin/env python
import collections, sys
lines = []
f = collections.defaultdict(int)
fe = collections.defaultdict(lambda: collections.defaultdict(int))
for line in sys.stdin:
tok = [x.strip() for x in line.split('|||')]
count = int(tok[4])
f[tok[1]] += count
fe[tok[1]][tok[2]] += count
lines... | 26.380952 | 66 | 0.590253 | 90 | 554 | 3.633333 | 0.4 | 0.061162 | 0.06422 | 0.073395 | 0.061162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047727 | 0.205776 | 554 | 20 | 67 | 27.7 | 0.695455 | 0.036101 | 0 | 0 | 0 | 0 | 0.086304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
437e1e0973bde8b1e251b37ffc137a684d4dc2b8 | 436 | py | Python | blog/models.py | tomitokko/django-blog-with-astradb | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | [
"Apache-2.0"
] | 3 | 2021-12-13T21:40:32.000Z | 2022-03-28T08:08:36.000Z | blog/models.py | tomitokko/django-blog-with-astradb | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | [
"Apache-2.0"
] | null | null | null | blog/models.py | tomitokko/django-blog-with-astradb | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | [
"Apache-2.0"
] | 1 | 2022-02-11T20:49:08.000Z | 2022-02-11T20:49:08.000Z | from django.db import models
import uuid
from datetime import datetime
from cassandra.cqlengine import columns
from django_cassandra_engine.models import DjangoCassandraModel
# Create your models here.
class PostModel(DjangoCassandraModel):
id = columns.UUID(primary_key=True, default=uuid.uuid4)
title = column... | 36.333333 | 63 | 0.802752 | 56 | 436 | 6.178571 | 0.535714 | 0.057803 | 0.109827 | 0.132948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002618 | 0.123853 | 436 | 12 | 64 | 36.333333 | 0.903141 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
43844440dd179ab3f122498113b16b020a8f05b8 | 15,375 | py | Python | xverse/transformer/_woe.py | gb-andreygsouza/XuniVerse | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | [
"MIT"
] | null | null | null | xverse/transformer/_woe.py | gb-andreygsouza/XuniVerse | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | [
"MIT"
] | null | null | null | xverse/transformer/_woe.py | gb-andreygsouza/XuniVerse | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
import scipy.stats.stats as stats
import pandas.core.algorithms as algos
#from sklearn.utils.validation import check_is_fitted
from sklearn.utils import check_array
from ..transformer import MonotonicBinning
pd.options.mode... | 47.748447 | 117 | 0.625821 | 1,934 | 15,375 | 4.806101 | 0.158738 | 0.030124 | 0.023776 | 0.022593 | 0.308768 | 0.27262 | 0.242711 | 0.223346 | 0.205056 | 0.186767 | 0 | 0.00268 | 0.296195 | 15,375 | 321 | 118 | 47.897196 | 0.856298 | 0.145171 | 0 | 0.227545 | 0 | 0 | 0.090713 | 0.009515 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017964 | 0.041916 | 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 |
438e9f1f07ffd73b9b9fd9f25c52f215537b1381 | 1,358 | py | Python | NumPy/Array Basics/Random Shuffle/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | NumPy/Array Basics/Random Shuffle/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | 4 | 2022-01-14T10:40:47.000Z | 2022-02-14T13:01:13.000Z | NumPy/Array Basics/Random Shuffle/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from task import arr, permuted_2d, fully_random
class TestCase(unittest.TestCase):
def test_shape(self):
self.assertEqual((5, 20), arr.shape, msg="Wrong shape of the array 'arr'.")
self.assertEqual((5, 20), permuted_2d.shape, msg="Wrong shape of the array 'permu... | 46.827586 | 115 | 0.635493 | 209 | 1,358 | 4.057416 | 0.373206 | 0.058962 | 0.04717 | 0.063679 | 0.15566 | 0.099057 | 0.099057 | 0 | 0 | 0 | 0 | 0.023692 | 0.25405 | 1,358 | 28 | 116 | 48.5 | 0.813425 | 0.217231 | 0 | 0 | 0 | 0 | 0.234405 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4392cd17a2182a5ad123dad587354133d5fbcf62 | 3,471 | py | Python | open/users/serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 105 | 2019-06-01T08:34:47.000Z | 2022-03-15T11:48:36.000Z | open/users/serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 111 | 2019-06-04T15:34:14.000Z | 2022-03-12T21:03:20.000Z | open/users/serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 26 | 2019-09-04T06:06:12.000Z | 2022-01-03T03:40:11.000Z | import pytz
from rest_auth.serializers import TokenSerializer
from rest_framework.authtoken.models import Token
from rest_framework.exceptions import ValidationError
from rest_framework.fields import (
CharField,
CurrentUserDefault,
HiddenField,
UUIDField,
ChoiceField,
)
from rest_framework.serializ... | 30.182609 | 95 | 0.661481 | 374 | 3,471 | 6.016043 | 0.40107 | 0.021333 | 0.037778 | 0.024 | 0.130667 | 0.12 | 0.12 | 0.041778 | 0 | 0 | 0 | 0.000769 | 0.25036 | 3,471 | 114 | 96 | 30.447368 | 0.863951 | 0.111207 | 0 | 0.154762 | 0 | 0 | 0.108152 | 0.007795 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.02381 | false | 0.107143 | 0.107143 | 0 | 0.369048 | 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 |
43956cd7582f0725f3e08ed11af962dc403ba2f7 | 402 | py | Python | archetype/settings/local_stg.py | kingsdigitallab/archetype-django | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | [
"MIT"
] | 1 | 2018-11-18T22:42:09.000Z | 2018-11-18T22:42:09.000Z | archetype/settings/local_stg.py | kingsdigitallab/archetype-django | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | [
"MIT"
] | null | null | null | archetype/settings/local_stg.py | kingsdigitallab/archetype-django | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | [
"MIT"
] | null | null | null | from .base import * # noqa
CACHE_REDIS_DATABASE = '1'
CACHES['default']['LOCATION'] = '127.0.0.1:6379:' + CACHE_REDIS_DATABASE
INTERNAL_IPS = INTERNAL_IPS + ('', )
ALLOWED_HOSTS = ['']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_archetype_stg',
... | 22.333333 | 72 | 0.58209 | 42 | 402 | 5.309524 | 0.761905 | 0.089686 | 0.161435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03871 | 0.228856 | 402 | 17 | 73 | 23.647059 | 0.680645 | 0.00995 | 0 | 0 | 0 | 0 | 0.333333 | 0.09596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 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 |
439aafbb1c6af8fc6a5c2fcb3a71f36930de52f2 | 605 | py | Python | authors/apps/profiles/renderers.py | MuhweziDeo/Ah-backend-xmen | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | [
"BSD-3-Clause"
] | 4 | 2019-01-07T09:15:17.000Z | 2020-11-09T09:58:54.000Z | authors/apps/profiles/renderers.py | MuhweziDeo/Ah-backend-xmen | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | [
"BSD-3-Clause"
] | 34 | 2019-01-07T15:30:14.000Z | 2019-03-06T08:23:34.000Z | authors/apps/profiles/renderers.py | MuhweziDeo/Ah-backend-xmen | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | [
"BSD-3-Clause"
] | 10 | 2018-12-18T14:43:52.000Z | 2020-02-07T08:27:50.000Z | from authors.apps.utils.renderers import AppJSONRenderer
import json
from rest_framework.renderers import JSONRenderer
class UserProfileJSONRenderer(AppJSONRenderer):
name = 'profile'
class UserProfileListRenderer(JSONRenderer):
"""
Returns profiles of existing users
"""
charset = 'utf-8'
... | 23.269231 | 67 | 0.679339 | 61 | 605 | 6.672131 | 0.721311 | 0.07371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.236364 | 605 | 25 | 68 | 24.2 | 0.878788 | 0.135537 | 0 | 0 | 0 | 0 | 0.061983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.846154 | 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 |
439c484fa1d9a64793cf4da644af68eabbc13295 | 13,932 | py | Python | omtk/models/model_avar_surface_lips.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | omtk/models/model_avar_surface_lips.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | omtk/models/model_avar_surface_lips.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | import math
import pymel.core as pymel
from omtk.core.classNode import Node
from omtk.libs import libAttr
from omtk.libs import libRigging
from . import model_avar_surface
class SplitterNode(Node):
"""
A splitter is a node network that take the parameterV that is normally sent through the follicles and
sp... | 42.090634 | 162 | 0.680879 | 1,672 | 13,932 | 5.313397 | 0.184809 | 0.04964 | 0.059433 | 0.037821 | 0.497636 | 0.293224 | 0.208802 | 0.159838 | 0.146105 | 0.079244 | 0 | 0.004972 | 0.249282 | 13,932 | 330 | 163 | 42.218182 | 0.84444 | 0.196454 | 0 | 0.205607 | 0 | 0 | 0.07727 | 0.020942 | 0 | 0 | 0 | 0.00303 | 0 | 1 | 0.028037 | false | 0.079439 | 0.028037 | 0 | 0.070093 | 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 |
439e1a09f9246f51a2f4aa291d6172d1d6ae55e7 | 808 | py | Python | DQM/L1TMonitor/python/L1TGCT_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/L1TMonitor/python/L1TGCT_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/L1TMonitor/python/L1TGCT_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
l1tGct = DQMEDAnalyzer('L1TGCT',
gctCentralJetsSource = cms.InputTag("gctDigis","cenJets"),
gctForwardJetsSource = cms.InputTag("gctDigis","forJets"),
gctTauJetsSource = cms.InputTag("gctDigis","tauJets"),
... | 38.47619 | 62 | 0.72896 | 79 | 808 | 7.43038 | 0.518987 | 0.131175 | 0.226576 | 0.068143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.131188 | 808 | 20 | 63 | 40.4 | 0.823362 | 0 | 0 | 0 | 0 | 0 | 0.136476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
439e723ba661ca0696137f422b31b51f63930e6a | 387 | py | Python | OLD/karma_module/text.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 1 | 2021-12-12T02:50:20.000Z | 2021-12-12T02:50:20.000Z | OLD/karma_module/text.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 17 | 2020-02-07T23:40:36.000Z | 2020-12-22T16:38:44.000Z | OLD/karma_module/text.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | null | null | null | ADDED_KARMA_TO_MEMBER = "Gave {} karma to {}, their karma is now at {}."
REMOVED_KARMA_FROM_MEMBER = "Removed {} karma from {}, their karma is now at {}."
LIST_KARMA_OWN = "You currently have {} karma."
LIST_KARMA_OBJECT = "\"{}\" currently has {} karma."
LIST_KARMA_MEMBER = "{} currently has {} karma."
KARMA_TOP_STA... | 38.7 | 81 | 0.669251 | 55 | 387 | 4.418182 | 0.436364 | 0.111111 | 0.098765 | 0.123457 | 0.139918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157623 | 387 | 9 | 82 | 43 | 0.745399 | 0 | 0 | 0 | 0 | 0 | 0.550388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
43a255b174f2f6995694a3ff518d32d995c17049 | 981 | py | Python | setup.py | sdu-cfei/modest-py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | [
"BSD-2-Clause"
] | 37 | 2017-06-21T19:09:11.000Z | 2022-03-13T09:26:07.000Z | setup.py | sdu-cfei/modest-py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | [
"BSD-2-Clause"
] | 51 | 2017-06-21T17:40:42.000Z | 2021-10-31T09:16:21.000Z | setup.py | sdu-cfei/modest-py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | [
"BSD-2-Clause"
] | 12 | 2017-10-02T12:32:50.000Z | 2022-03-13T09:26:15.000Z | from setuptools import setup
setup(
name='modestpy',
version='0.1',
description='FMI-compliant model identification package',
url='https://github.com/sdu-cfei/modest-py',
keywords='fmi fmu optimization model identification estimation',
author='Krzysztof Arendt, Center for Energy Informatics SDU... | 26.513514 | 68 | 0.59633 | 96 | 981 | 6.041667 | 0.71875 | 0.112069 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004138 | 0.260958 | 981 | 36 | 69 | 27.25 | 0.795862 | 0 | 0 | 0 | 0 | 0 | 0.494393 | 0.054027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.028571 | 0 | 0.028571 | 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 |
43a6cf6a117a9bd891a315706e175a03b6175d39 | 51,390 | py | Python | python/ccxt/async_support/uex.py | victor95pc/ccxt | 5c3e606296a1b15852a35f1330b645f451fa08d6 | [
"MIT"
] | 1 | 2019-03-17T22:44:30.000Z | 2019-03-17T22:44:30.000Z | python/ccxt/async_support/uex.py | Lara-Bell/ccxt | e09230b4b60d5c33e3f6ebc044002bab6f733553 | [
"MIT"
] | null | null | null | python/ccxt/async_support/uex.py | Lara-Bell/ccxt | e09230b4b60d5c33e3f6ebc044002bab6f733553 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
# -----------------------------------------------------------------------------
try... | 44.882096 | 465 | 0.432088 | 4,205 | 51,390 | 5.206421 | 0.158383 | 0.021559 | 0.015347 | 0.007537 | 0.390993 | 0.342347 | 0.30681 | 0.280181 | 0.245056 | 0.221532 | 0 | 0.075185 | 0.448978 | 51,390 | 1,144 | 466 | 44.921329 | 0.697708 | 0.340008 | 0 | 0.281907 | 1 | 0.004208 | 0.12438 | 0.00828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01683 | false | 0 | 0.015428 | 0.002805 | 0.078541 | 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 |
43a8bd9cb32de8f8138b7b033dc19e078566fbea | 426 | py | Python | src/enum/__init__.py | NazarioJL/faker_enum | c2703cae232b229b4d4ab2b73757102453d541ab | [
"MIT"
] | 5 | 2019-08-02T17:59:10.000Z | 2021-05-14T08:30:55.000Z | src/enum/__init__.py | NazarioJL/faker_enum | c2703cae232b229b4d4ab2b73757102453d541ab | [
"MIT"
] | 4 | 2018-10-26T06:52:05.000Z | 2022-01-31T20:31:17.000Z | src/enum/__init__.py | NazarioJL/faker_enum | c2703cae232b229b4d4ab2b73757102453d541ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from enum import Enum
from typing import TypeVar, Type, List, Iterable, cast
from faker.providers import BaseProvider
TEnum = TypeVar("TEnum", bound=Enum)
class EnumProvider(BaseProvider):
"""
A Provider for enums.
"""
def enum(self, enum_cls: Type[TEnum]) -> TEnum:
... | 22.421053 | 68 | 0.676056 | 54 | 426 | 5.277778 | 0.555556 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.197183 | 426 | 18 | 69 | 23.666667 | 0.830409 | 0.103286 | 0 | 0 | 0 | 0 | 0.013661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
43a90c6754ed5d7199ff6f282438c86387b7e8d9 | 1,485 | py | Python | usuarios/views.py | alvarocneto/alura_django | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | [
"MIT"
] | 1 | 2017-04-25T10:46:24.000Z | 2017-04-25T10:46:24.000Z | usuarios/views.py | alvarocneto/alura_django | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | [
"MIT"
] | null | null | null | usuarios/views.py | alvarocneto/alura_django | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from django.shortcuts import render
from django.contrib.auth.models import User
from django.views.generic.base import View
from perfis.models import Perfil
from usuarios.forms import RegistrarUsuarioForm
class RegistrarUsuarioView(View):
template_name = 'registrar.html'
... | 31.595745 | 72 | 0.546801 | 147 | 1,485 | 5.428571 | 0.469388 | 0.078947 | 0.048872 | 0.062657 | 0.087719 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382492 | 1,485 | 46 | 73 | 32.282609 | 0.870229 | 0.131313 | 0 | 0 | 0 | 0 | 0.047656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.041667 | 0.541667 | 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 |
43af38bca718e0df9a99877c70ee02be87e0d3d0 | 842 | py | Python | shopping_cart_test/shoppingcart2.py | Simbadeveloper/studious-octo-waddle.io | 7ace6bb93e3b87c97d59df858e3079ec7a2db30e | [
"MIT"
] | null | null | null | shopping_cart_test/shoppingcart2.py | Simbadeveloper/studious-octo-waddle.io | 7ace6bb93e3b87c97d59df858e3079ec7a2db30e | [
"MIT"
] | null | null | null | shopping_cart_test/shoppingcart2.py | Simbadeveloper/studious-octo-waddle.io | 7ace6bb93e3b87c97d59df858e3079ec7a2db30e | [
"MIT"
] | null | null | null | class ShoppingCart(object):
def __init__(self):
self.total = 0
self.items = dict()
def add_item(self, item_name, quantity, price):
if item_name != None and quantity >= 1:
self.items.update({item_name: quantity})
if quantity and price >= 1:
self.total += (quantity * price)
def re... | 26.3125 | 59 | 0.644893 | 114 | 842 | 4.578947 | 0.27193 | 0.10728 | 0.122605 | 0.057471 | 0.237548 | 0.149425 | 0.149425 | 0.149425 | 0.149425 | 0 | 0 | 0.014241 | 0.249406 | 842 | 31 | 60 | 27.16129 | 0.811709 | 0 | 0 | 0.08 | 0 | 0 | 0.023753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43b32db495f046dd61a5bbd3592b8806b465b229 | 785 | py | Python | LEVEL2/다리를지나는트럭/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | LEVEL2/다리를지나는트럭/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | LEVEL2/다리를지나는트럭/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | def solution(bridge_length, weight, truck_weights):
answer = 0
# { weight, time }
wait = truck_weights[:]
bridge = []
passed = 0
currWeight = 0
while True:
if passed == len(truck_weights) and len(wait) == 0: return answer
answer += 1
# sth needs to be passed
... | 28.035714 | 73 | 0.49172 | 93 | 785 | 4.096774 | 0.419355 | 0.052493 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055102 | 0.375796 | 785 | 27 | 74 | 29.074074 | 0.722449 | 0.11465 | 0 | 0 | 0 | 0 | 0.005797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0 | 0 | 0.05 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
43b5471678e7c510bd2a55fdced1140414dcd734 | 440 | py | Python | device_geometry.py | AstroShen/fpga21-scaled-tech | 8a7016913c18d71844f733bc80a3ceaa2d033ac2 | [
"MIT"
] | 2 | 2021-09-02T13:13:35.000Z | 2021-12-19T11:35:03.000Z | device_geometry.py | AstroShen/fpga21-scaled-tech | 8a7016913c18d71844f733bc80a3ceaa2d033ac2 | [
"MIT"
] | null | null | null | device_geometry.py | AstroShen/fpga21-scaled-tech | 8a7016913c18d71844f733bc80a3ceaa2d033ac2 | [
"MIT"
] | 2 | 2021-09-29T02:53:03.000Z | 2022-03-27T09:55:35.000Z | """Holds the device gemoetry parameters (Table 5), taken from Wu et al.,
>> A Predictive 3-D Source/Drain Resistance Compact Model and the Impact on 7 nm and Scaled FinFets<<, 2020, with interpolation for 4nm. 16nm is taken from PTM HP.
"""
node_names = [16, 7, 5, 4, 3]
GP = [64, 56, 48, 44, 41]
FP = [40, 30, 28, 24, ... | 36.666667 | 163 | 0.615909 | 92 | 440 | 2.934783 | 0.782609 | 0.022222 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226361 | 0.206818 | 440 | 11 | 164 | 40 | 0.547278 | 0.529545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
43bbc2ac72a79eec23f8c2578bc9f103ba32b758 | 8,684 | py | Python | hivwholeseq/sequencing/check_pipeline.py | neherlab/hivwholeseq | 978ce4060362e4973f92b122ed5340a5314d7844 | [
"MIT"
] | 3 | 2016-09-13T12:15:47.000Z | 2021-07-03T01:28:56.000Z | hivwholeseq/sequencing/check_pipeline.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | null | null | null | hivwholeseq/sequencing/check_pipeline.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | 3 | 2016-01-17T03:43:46.000Z | 2020-03-25T07:00:11.000Z | #!/usr/bin/env python
# vim: fdm=marker
'''
author: Fabio Zanini
date: 15/06/14
content: Check the status of the pipeline for one or more sequencing samples.
'''
# Modules
import os
import sys
from itertools import izip
import argparse
from Bio import SeqIO
from hivwholeseq.utils.generic import getchar
fr... | 36.033195 | 106 | 0.554353 | 979 | 8,684 | 4.777324 | 0.215526 | 0.02694 | 0.033355 | 0.027796 | 0.378448 | 0.300192 | 0.270259 | 0.184734 | 0.169767 | 0.151593 | 0 | 0.005029 | 0.33602 | 8,684 | 240 | 107 | 36.183333 | 0.806105 | 0.02257 | 0 | 0.354167 | 0 | 0 | 0.098798 | 0 | 0 | 0 | 0 | 0.004167 | 0 | 0 | null | null | 0 | 0.067708 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43c4fed77cd489496d3337fe3e83cfcc13582afb | 2,390 | py | Python | api/files/api/app/monthly_report.py | trackit/trackit-legacy | 76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da | [
"Apache-2.0"
] | 2 | 2018-02-01T09:18:05.000Z | 2020-03-12T18:11:11.000Z | api/files/api/app/monthly_report.py | trackit/trackit-legacy | 76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da | [
"Apache-2.0"
] | null | null | null | api/files/api/app/monthly_report.py | trackit/trackit-legacy | 76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da | [
"Apache-2.0"
] | 5 | 2018-05-11T10:32:52.000Z | 2021-05-26T12:09:47.000Z | import jinja2
import json
from send_email import send_email
from app.models import User, MyResourcesAWS, db
from app.es.awsdetailedlineitem import AWSDetailedLineitem
from sqlalchemy import desc
import subprocess
import datetime
from flask import render_template
def monthly_html_template():
template_dir = '/usr/tr... | 47.8 | 205 | 0.65523 | 292 | 2,390 | 5.181507 | 0.335616 | 0.043622 | 0.037013 | 0.055519 | 0.130866 | 0.100463 | 0.100463 | 0.100463 | 0.100463 | 0.100463 | 0 | 0.004951 | 0.239331 | 2,390 | 49 | 206 | 48.77551 | 0.827283 | 0 | 0 | 0.133333 | 0 | 0 | 0.054812 | 0.009205 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43cc7a30161b57bb1e1d6f7efc6e267ff0a84af5 | 471 | py | Python | myhoodApp/migrations/0002_healthfacilities_hospital_image.py | MutuaFranklin/MyHood | 6ddd21c4a67936c8926d6f5a8665a06edf81f39e | [
"MIT"
] | null | null | null | myhoodApp/migrations/0002_healthfacilities_hospital_image.py | MutuaFranklin/MyHood | 6ddd21c4a67936c8926d6f5a8665a06edf81f39e | [
"MIT"
] | null | null | null | myhoodApp/migrations/0002_healthfacilities_hospital_image.py | MutuaFranklin/MyHood | 6ddd21c4a67936c8926d6f5a8665a06edf81f39e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-23 20:01
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myhoodApp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='healthfacilities',
n... | 23.55 | 111 | 0.647558 | 50 | 471 | 6 | 0.78 | 0.106667 | 0.113333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061798 | 0.244161 | 471 | 19 | 112 | 24.789474 | 0.780899 | 0.095541 | 0 | 0 | 1 | 0 | 0.153302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43cee9ce3aeb6af7cef400c841ab802c88461d4b | 8,148 | py | Python | gslib/tests/test_stet_util.py | ttobisawa/gsutil | ef665b590aa8e6cecfe251295bce8bf99ea69467 | [
"Apache-2.0"
] | null | null | null | gslib/tests/test_stet_util.py | ttobisawa/gsutil | ef665b590aa8e6cecfe251295bce8bf99ea69467 | [
"Apache-2.0"
] | null | null | null | gslib/tests/test_stet_util.py | ttobisawa/gsutil | ef665b590aa8e6cecfe251295bce8bf99ea69467 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Google 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 40.74 | 80 | 0.689494 | 962 | 8,148 | 5.468815 | 0.179834 | 0.041817 | 0.042007 | 0.106634 | 0.710511 | 0.689793 | 0.667554 | 0.665463 | 0.655199 | 0.621555 | 0 | 0.00138 | 0.199435 | 8,148 | 199 | 81 | 40.944724 | 0.805151 | 0.077688 | 0 | 0.68125 | 0 | 0 | 0.151649 | 0.031504 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.04375 | false | 0 | 0.08125 | 0 | 0.13125 | 0.00625 | 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 |
43d8185a62fc1d316a49c5b7d44a50853bf56a88 | 9,682 | py | Python | upload.py | snymainn/tools- | af57a1a4d0f1aecff33ab28c6f27acc893f37fbc | [
"MIT"
] | null | null | null | upload.py | snymainn/tools- | af57a1a4d0f1aecff33ab28c6f27acc893f37fbc | [
"MIT"
] | null | null | null | upload.py | snymainn/tools- | af57a1a4d0f1aecff33ab28c6f27acc893f37fbc | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
from loglib import SNYLogger
import ftplib
import argparse
import re
import os
import calendar
import time
def read_skipfile(infile, log):
skiplines = list()
skipfile = open(infile, 'r')
for line in skipfile:
newline = line.rstrip('\r\n')
linelength = len(... | 37.968627 | 122 | 0.567858 | 1,152 | 9,682 | 4.732639 | 0.22309 | 0.034666 | 0.019259 | 0.019259 | 0.307227 | 0.245598 | 0.245598 | 0.221387 | 0.199193 | 0.14215 | 0 | 0.004564 | 0.298492 | 9,682 | 254 | 123 | 38.11811 | 0.798145 | 0.144185 | 0 | 0.271739 | 0 | 0.005435 | 0.172811 | 0 | 0 | 0 | 0 | 0.003937 | 0 | 0 | null | null | 0.01087 | 0.043478 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43d92304705312e029e4656dd5bbcccaf8cbee7d | 861 | py | Python | data/models/svm_benchmark.py | Laurenhut/Machine_Learning_Final | 4fca33754ef42acde504cc64e6bbe4e463caadf8 | [
"MIT"
] | null | null | null | data/models/svm_benchmark.py | Laurenhut/Machine_Learning_Final | 4fca33754ef42acde504cc64e6bbe4e463caadf8 | [
"MIT"
] | null | null | null | data/models/svm_benchmark.py | Laurenhut/Machine_Learning_Final | 4fca33754ef42acde504cc64e6bbe4e463caadf8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from sklearn import svm
import csv_io
def main():
training, target = csv_io.read_data("../Data/train.csv")
training = [x[1:] for x in training]
target = [float(x) for x in target]
test, throwaway = csv_io.read_data("../Data/test.csv")
test = [x[1:] for x in test]
svc = s... | 31.888889 | 72 | 0.615563 | 128 | 861 | 3.9375 | 0.453125 | 0.166667 | 0.059524 | 0.051587 | 0.206349 | 0.107143 | 0.107143 | 0.107143 | 0.107143 | 0 | 0 | 0.019908 | 0.24158 | 861 | 26 | 73 | 33.115385 | 0.751914 | 0.423926 | 0 | 0 | 0 | 0 | 0.092213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43ddbd75df809ab6f556d3498600ef7c94a80521 | 16,408 | py | Python | bootstrap.py | tqchen/yarn-ec2 | 303f3980ad41770011b72532ed9f7c6bbe876508 | [
"Apache-2.0"
] | 35 | 2016-02-23T19:15:46.000Z | 2021-01-01T02:57:43.000Z | bootstrap.py | tqchen/cloud-scripts | 303f3980ad41770011b72532ed9f7c6bbe876508 | [
"Apache-2.0"
] | 4 | 2016-11-12T16:49:16.000Z | 2018-11-02T21:20:23.000Z | bootstrap.py | tqchen/yarn-ec2 | 303f3980ad41770011b72532ed9f7c6bbe876508 | [
"Apache-2.0"
] | 25 | 2016-02-26T20:28:13.000Z | 2020-07-26T12:02:34.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
script to install all the necessary things
for working on a linux machine with nothing
Installing minimum dependencies
"""
import sys
import os
import logging
import subprocess
import xml.etree.ElementTree as ElementTree
import xml.dom.minidom as minidom
import socket
import... | 37.461187 | 133 | 0.585629 | 2,146 | 16,408 | 4.332246 | 0.21575 | 0.036571 | 0.013015 | 0.006776 | 0.216952 | 0.13897 | 0.094224 | 0.062493 | 0.053028 | 0.03969 | 0 | 0.019511 | 0.250305 | 16,408 | 437 | 134 | 37.546911 | 0.736282 | 0.059727 | 0 | 0.086455 | 0 | 0.017291 | 0.342273 | 0.149036 | 0 | 0 | 0 | 0 | 0.011527 | 0 | null | null | 0.011527 | 0.025937 | null | null | 0.008646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43e2d67fdf43b1951abb85a9aaab6711fb8852be | 1,132 | py | Python | tests/core/test_plugins.py | franalgaba/nile | f771467f27f03c8d20b8032bac64b3ab60436d3c | [
"MIT"
] | null | null | null | tests/core/test_plugins.py | franalgaba/nile | f771467f27f03c8d20b8032bac64b3ab60436d3c | [
"MIT"
] | null | null | null | tests/core/test_plugins.py | franalgaba/nile | f771467f27f03c8d20b8032bac64b3ab60436d3c | [
"MIT"
] | null | null | null | """
Tests for plugins in core module.
Only unit tests for now.
"""
from unittest.mock import patch
import click
from nile.core.plugins import get_installed_plugins, load_plugins, skip_click_exit
def test_skip_click_exit():
def dummy_method(a, b):
return a + b
dummy_result = dummy_method(1, 2)
... | 22.64 | 82 | 0.681095 | 144 | 1,132 | 5.090278 | 0.319444 | 0.196453 | 0.155525 | 0.106412 | 0.13779 | 0.092769 | 0 | 0 | 0 | 0 | 0 | 0.00453 | 0.219965 | 1,132 | 49 | 83 | 23.102041 | 0.825595 | 0.066254 | 0 | 0 | 0 | 0 | 0.159962 | 0.143678 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.206897 | false | 0.034483 | 0.103448 | 0.034483 | 0.448276 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78d8d23f31a9ec6e42dd56f7cc23f8c31fbd70c2 | 376 | py | Python | django_git_info/management/commands/get_git_info.py | spapas/django-git | a62215d315263bce5d5d0afcfa14152601f76901 | [
"MIT"
] | 1 | 2019-03-15T10:32:21.000Z | 2019-03-15T10:32:21.000Z | django_git_info/management/commands/get_git_info.py | spapas/django-git | a62215d315263bce5d5d0afcfa14152601f76901 | [
"MIT"
] | null | null | null | django_git_info/management/commands/get_git_info.py | spapas/django-git | a62215d315263bce5d5d0afcfa14152601f76901 | [
"MIT"
] | 1 | 2016-03-25T03:57:49.000Z | 2016-03-25T03:57:49.000Z | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from django_git_info import get_git_info
class Command(BaseCommand):
help = 'Gets git info'
#@transaction.commit_manually
def handle(self, *args, **options):
info = get_git_info()
for key in info.ke... | 26.857143 | 65 | 0.656915 | 50 | 376 | 4.8 | 0.68 | 0.116667 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.210106 | 376 | 14 | 66 | 26.857143 | 0.79798 | 0.130319 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
78db0363110019cfe555b18f1fdc95de024b7945 | 19,306 | py | Python | mevis/_internal/conversion.py | robert-haas/mevis | 1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327 | [
"Apache-2.0"
] | 2 | 2022-01-12T23:08:52.000Z | 2022-01-12T23:21:23.000Z | mevis/_internal/conversion.py | robert-haas/mevis | 1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327 | [
"Apache-2.0"
] | null | null | null | mevis/_internal/conversion.py | robert-haas/mevis | 1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327 | [
"Apache-2.0"
] | null | null | null | from collections.abc import Callable as _Callable
import networkx as _nx
from opencog.type_constructors import AtomSpace as _AtomSpace
from .args import check_arg as _check_arg
def convert(data, graph_annotated=True, graph_directed=True,
node_label=None, node_color=None, node_opacity=None, node_size=Non... | 38.923387 | 97 | 0.682897 | 2,803 | 19,306 | 4.474492 | 0.123439 | 0.025833 | 0.028464 | 0.035162 | 0.521049 | 0.460533 | 0.400175 | 0.345718 | 0.286557 | 0.232977 | 0 | 0.006731 | 0.238113 | 19,306 | 495 | 98 | 39.00202 | 0.845945 | 0.43919 | 0 | 0.337719 | 0 | 0 | 0.044872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171053 | false | 0.004386 | 0.017544 | 0.127193 | 0.359649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
78df4f62738c15a3903b9ac814a118e7bd487166 | 1,214 | py | Python | test/tests.py | gzu300/Linear_Algebra | 437a285b0230f4da8b0573b04da32ee965b09233 | [
"MIT"
] | null | null | null | test/tests.py | gzu300/Linear_Algebra | 437a285b0230f4da8b0573b04da32ee965b09233 | [
"MIT"
] | null | null | null | test/tests.py | gzu300/Linear_Algebra | 437a285b0230f4da8b0573b04da32ee965b09233 | [
"MIT"
] | null | null | null | import unittest
from pkg import Linear_Algebra
import numpy as np
class TestLU(unittest.TestCase):
def setUp(self):
self.U_answer = np.around(np.array([[2,1,0],[0,3/2,1],[0,0,4/3]], dtype=float), decimals=2).tolist()
self.L_answer = np.around(np.array([[1,0,0],[1/2,1,0],[0,2/3,1]], dtype=float), de... | 41.862069 | 128 | 0.629325 | 205 | 1,214 | 3.585366 | 0.219512 | 0.029932 | 0.032653 | 0.032653 | 0.530612 | 0.223129 | 0.032653 | 0.032653 | 0.021769 | 0.021769 | 0 | 0.064484 | 0.169687 | 1,214 | 29 | 129 | 41.862069 | 0.664683 | 0 | 0 | 0.166667 | 0 | 0 | 0.006584 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78e27b1810b0eb666d13182e83f2f3c881794f6e | 17,296 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/lib/filebrowsebutton.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | 27 | 2020-11-12T19:24:54.000Z | 2022-03-27T23:10:45.000Z | Cartwheel/lib/Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/lib/filebrowsebutton.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | 2 | 2020-11-02T06:30:39.000Z | 2022-02-23T18:39:55.000Z | Cartwheel/lib/Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/lib/filebrowsebutton.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | 3 | 2021-08-16T00:21:08.000Z | 2022-02-23T19:19:36.000Z | #----------------------------------------------------------------------
# Name: wxPython.lib.filebrowsebutton
# Purpose: Composite controls that provide a Browse button next to
# either a wxTextCtrl or a wxComboBox. The Browse button
# launches a wxFileDialog and loads the result i... | 36.721868 | 95 | 0.566142 | 1,738 | 17,296 | 5.581128 | 0.235328 | 0.01701 | 0.008351 | 0.010309 | 0.184742 | 0.139691 | 0.112371 | 0.083505 | 0.083505 | 0.065155 | 0 | 0.007505 | 0.329729 | 17,296 | 470 | 96 | 36.8 | 0.829207 | 0.089963 | 0 | 0.183391 | 0 | 0 | 0.043657 | 0.005146 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010381 | null | null | 0.00692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78e51986ef4ee9e7c7af6f2a83426baeaab981b9 | 1,426 | py | Python | pentest-scripts/learning-python-for-forensics/Chapter 6/rot13.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | 6 | 2021-12-07T21:02:12.000Z | 2022-03-03T12:08:14.000Z | pentest-scripts/learning-python-for-forensics/Chapter 6/rot13.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | null | null | null | pentest-scripts/learning-python-for-forensics/Chapter 6/rot13.py | paulveillard/cybersecurity-penetration-testing | a5afff13ec25afd0cf16ef966d35bddb91518af4 | [
"Apache-2.0"
] | 1 | 2022-01-15T23:57:36.000Z | 2022-01-15T23:57:36.000Z | def rotCode(data):
"""
The rotCode function encodes/decodes data using string indexing
:param data: A string
:return: The rot-13 encoded/decoded string
"""
rot_chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', '... | 33.162791 | 90 | 0.47756 | 151 | 1,426 | 4.410596 | 0.523179 | 0.084084 | 0.078078 | 0.075075 | 0.531532 | 0.429429 | 0.195195 | 0.195195 | 0.195195 | 0.195195 | 0 | 0.011737 | 0.402525 | 1,426 | 42 | 91 | 33.952381 | 0.769953 | 0.178121 | 0 | 0.363636 | 0 | 0 | 0.045726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78ed1b7fc24c0d300d3ad14111db8c17f3c020fd | 5,401 | py | Python | app/routes/router.py | nityagautam/ReportDashboard-backend | d23fe008cb0df6a703fcd665181897a75b71d5b2 | [
"MIT"
] | 1 | 2021-05-06T09:48:46.000Z | 2021-05-06T09:48:46.000Z | app/routes/router.py | nityagautam/ReportDashboard | d23fe008cb0df6a703fcd665181897a75b71d5b2 | [
"MIT"
] | 2 | 2021-09-09T05:34:33.000Z | 2021-12-13T15:31:36.000Z | app/routes/router.py | nityagautam/ReportDashboard | d23fe008cb0df6a703fcd665181897a75b71d5b2 | [
"MIT"
] | null | null | null | #===============================================================
# @author: nityanarayan44@live.com
# @written: 08 December 2021
# @desc: Routes for the Backend server
#===============================================================
# Import section with referecne of entry file or main file;
from __main__ i... | 38.035211 | 99 | 0.549713 | 581 | 5,401 | 4.967298 | 0.311532 | 0.072072 | 0.034304 | 0.033957 | 0.45738 | 0.422384 | 0.388773 | 0.378032 | 0.378032 | 0.365558 | 0 | 0.025018 | 0.20811 | 5,401 | 141 | 100 | 38.304965 | 0.649755 | 0.255323 | 0 | 0.211765 | 0 | 0.011765 | 0.306288 | 0.071484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164706 | false | 0.035294 | 0.117647 | 0.105882 | 0.447059 | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
78eed98843af7c2acb54d95dbb60b3f984e9337b | 15,624 | py | Python | idaes/generic_models/properties/core/examples/ASU_PR.py | carldlaird/idaes-pse | cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f | [
"RSA-MD"
] | 112 | 2019-02-11T23:16:36.000Z | 2022-03-23T20:59:57.000Z | idaes/generic_models/properties/core/examples/ASU_PR.py | carldlaird/idaes-pse | cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f | [
"RSA-MD"
] | 621 | 2019-03-01T14:44:12.000Z | 2022-03-31T19:49:25.000Z | idaes/generic_models/properties/core/examples/ASU_PR.py | carldlaird/idaes-pse | cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f | [
"RSA-MD"
] | 154 | 2019-02-01T23:46:33.000Z | 2022-03-23T15:07:10.000Z | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021
# by the softwar... | 51.394737 | 91 | 0.473374 | 1,624 | 15,624 | 4.395936 | 0.198892 | 0.060513 | 0.075641 | 0.090769 | 0.738339 | 0.724051 | 0.683569 | 0.660877 | 0.556661 | 0.53621 | 0 | 0.069528 | 0.379544 | 15,624 | 303 | 92 | 51.564356 | 0.666907 | 0.171595 | 0 | 0.686099 | 0 | 0 | 0.184698 | 0.060673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.049327 | 0 | 0.049327 | 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 |
78f33bf3b80a0a0d98e998f783441284fa1b3068 | 3,503 | py | Python | invenio_madmp/views.py | FAIR-Data-Austria/invenio-madmp | 74372ee794f81666f5e9cf08ef448c21b2e428be | [
"MIT"
] | 1 | 2022-03-02T10:37:29.000Z | 2022-03-02T10:37:29.000Z | invenio_madmp/views.py | FAIR-Data-Austria/invenio-madmp | 74372ee794f81666f5e9cf08ef448c21b2e428be | [
"MIT"
] | 9 | 2020-08-25T12:03:08.000Z | 2020-10-20T11:45:32.000Z | invenio_madmp/views.py | FAIR-Data-Austria/invenio-madmp | 74372ee794f81666f5e9cf08ef448c21b2e428be | [
"MIT"
] | null | null | null | """Blueprint definitions for maDMP integration."""
from flask import Blueprint, jsonify, request
from invenio_db import db
from .convert import convert_dmp
from .models import DataManagementPlan
def _summarize_dmp(dmp: DataManagementPlan) -> dict:
"""Create a summary dictionary for the given DMP."""
res = {... | 35.744898 | 87 | 0.643163 | 475 | 3,503 | 4.581053 | 0.24 | 0.032169 | 0.057904 | 0.060662 | 0.45864 | 0.382813 | 0.382813 | 0.340533 | 0.286765 | 0.286765 | 0 | 0.008989 | 0.237796 | 3,503 | 97 | 88 | 36.113402 | 0.805993 | 0.190123 | 0 | 0.305085 | 0 | 0 | 0.13872 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.101695 | false | 0 | 0.067797 | 0 | 0.389831 | 0.135593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
78f83610f02792ce2cf026a72886ebff9b5ef71f | 579 | py | Python | assistance_bot/app.py | reakfog/personal_computer_voice_assistant | 3483f633c57cd2e930f94bcbda9739cde34525aa | [
"BSD-3-Clause"
] | null | null | null | assistance_bot/app.py | reakfog/personal_computer_voice_assistant | 3483f633c57cd2e930f94bcbda9739cde34525aa | [
"BSD-3-Clause"
] | null | null | null | assistance_bot/app.py | reakfog/personal_computer_voice_assistant | 3483f633c57cd2e930f94bcbda9739cde34525aa | [
"BSD-3-Clause"
] | 2 | 2021-07-26T20:22:31.000Z | 2021-07-29T12:58:03.000Z | import sys
sys.path = ['', '..'] + sys.path[1:]
import daemon
from assistance_bot import core
from functionality.voice_processing import speaking, listening
from functionality.commands import *
if __name__ == '__main__':
speaking.setup_assistant_voice(core.ttsEngine, core.assistant)
while True:
# st... | 32.166667 | 75 | 0.723661 | 64 | 579 | 6.25 | 0.59375 | 0.035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.202073 | 579 | 17 | 76 | 34.058824 | 0.863636 | 0.126079 | 0 | 0 | 0 | 0 | 0.019881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
78fc7bd4cfef4c55a9ccedee325481258419cb94 | 11,929 | py | Python | ee/clickhouse/sql/person.py | wanderlog/posthog | a88b81d44ab31d262be07e84a85d045c4e28f2a3 | [
"MIT"
] | null | null | null | ee/clickhouse/sql/person.py | wanderlog/posthog | a88b81d44ab31d262be07e84a85d045c4e28f2a3 | [
"MIT"
] | null | null | null | ee/clickhouse/sql/person.py | wanderlog/posthog | a88b81d44ab31d262be07e84a85d045c4e28f2a3 | [
"MIT"
] | null | null | null | from ee.clickhouse.sql.clickhouse import KAFKA_COLUMNS, STORAGE_POLICY, kafka_engine
from ee.clickhouse.sql.table_engines import CollapsingMergeTree, ReplacingMergeTree
from ee.kafka_client.topics import KAFKA_PERSON, KAFKA_PERSON_DISTINCT_ID, KAFKA_PERSON_UNIQUE_ID
from posthog.settings import CLICKHOUSE_CLUSTER, CLIC... | 28.200946 | 206 | 0.748093 | 1,696 | 11,929 | 4.893868 | 0.107311 | 0.033976 | 0.043012 | 0.034458 | 0.641566 | 0.569157 | 0.483133 | 0.433253 | 0.35494 | 0.315663 | 0 | 0.012078 | 0.15324 | 11,929 | 422 | 207 | 28.267773 | 0.809623 | 0.071255 | 0 | 0.460452 | 0 | 0.016949 | 0.610925 | 0.06566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011299 | 0 | 0.011299 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60099617ee434da572759077c7ea7be632ca1953 | 2,020 | py | Python | alipay/aop/api/domain/AlipayEbppInvoiceAuthSignModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 1 | 2022-03-07T06:11:10.000Z | 2022-03-07T06:11:10.000Z | alipay/aop/api/domain/AlipayEbppInvoiceAuthSignModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayEbppInvoiceAuthSignModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 1 | 2021-10-05T03:01:09.000Z | 2021-10-05T03:01:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayEbppInvoiceAuthSignModel(object):
def __init__(self):
self._authorization_type = None
self._m_short_name = None
self._user_id = None
@property
def authoriza... | 28.450704 | 87 | 0.614851 | 253 | 2,020 | 4.557312 | 0.173913 | 0.221162 | 0.130095 | 0.084996 | 0.323504 | 0.267997 | 0.084996 | 0.052038 | 0 | 0 | 0 | 0.0007 | 0.293069 | 2,020 | 70 | 88 | 28.857143 | 0.806723 | 0.020792 | 0 | 0.109091 | 0 | 0 | 0.096251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163636 | false | 0 | 0.036364 | 0.054545 | 0.327273 | 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 |
600a51b33a2bb56f14ea62360d44dde1324b6215 | 1,968 | py | Python | anonlink-entity-service/backend/entityservice/tasks/solver.py | Sam-Gresh/linkage-agent-tools | f405c7efe3fa82d99bc047f130c0fac6f3f5bf82 | [
"Apache-2.0"
] | 1 | 2020-05-19T07:29:31.000Z | 2020-05-19T07:29:31.000Z | backend/entityservice/tasks/solver.py | hardbyte/anonlink-entity-service | 3c1815473bc8169ca571532c18e0913a45c704de | [
"Apache-2.0"
] | null | null | null | backend/entityservice/tasks/solver.py | hardbyte/anonlink-entity-service | 3c1815473bc8169ca571532c18e0913a45c704de | [
"Apache-2.0"
] | null | null | null | import anonlink
from anonlink.candidate_generation import _merge_similarities
from entityservice.object_store import connect_to_object_store
from entityservice.async_worker import celery, logger
from entityservice.settings import Config as config
from entityservice.tasks.base_task import TracedTask
from entityservice.... | 48 | 117 | 0.760163 | 258 | 1,968 | 5.496124 | 0.434109 | 0.098731 | 0.024683 | 0.039492 | 0.146685 | 0.146685 | 0.101551 | 0.059238 | 0.059238 | 0.059238 | 0 | 0.010198 | 0.152947 | 1,968 | 40 | 118 | 49.2 | 0.840432 | 0.043699 | 0 | 0 | 0 | 0 | 0.184141 | 0.035125 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.032258 | false | 0 | 0.225806 | 0 | 0.258065 | 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 |
6015330e90658ef9cb434f3116ddc5c99e3f87e7 | 6,403 | py | Python | vitcloud/views.py | biocross/VITCloud | 9656bd489c6d05717bf529d0661e07da0cd2551a | [
"MIT"
] | 2 | 2016-10-09T09:16:39.000Z | 2017-12-30T10:04:24.000Z | vitcloud/views.py | biocross/VITCloud | 9656bd489c6d05717bf529d0661e07da0cd2551a | [
"MIT"
] | 1 | 2015-03-28T12:10:24.000Z | 2015-03-28T19:19:00.000Z | vitcloud/views.py | biocross/VITCloud | 9656bd489c6d05717bf529d0661e07da0cd2551a | [
"MIT"
] | null | null | null | from django.views.generic import View
from django.http import HttpResponse
import os, json, datetime
from django.shortcuts import redirect
from django.shortcuts import render_to_response
from vitcloud.models import File
from django.views.decorators.csrf import csrf_exempt
from listingapikeys import findResult
import sy... | 37.444444 | 215 | 0.629705 | 764 | 6,403 | 5.175393 | 0.235602 | 0.047294 | 0.056651 | 0.072332 | 0.306272 | 0.247597 | 0.114568 | 0.103187 | 0.103187 | 0.082954 | 0 | 0.012308 | 0.238638 | 6,403 | 170 | 216 | 37.664706 | 0.798769 | 0.021084 | 0 | 0.153846 | 0 | 0.006993 | 0.117694 | 0.018844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.062937 | null | null | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
601651a2b4d6d062db448e75989e40e985eb13df | 1,661 | py | Python | migrations/versions/e86dd3bc539c_change_admin_to_boolean.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | null | null | null | migrations/versions/e86dd3bc539c_change_admin_to_boolean.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | null | null | null | migrations/versions/e86dd3bc539c_change_admin_to_boolean.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | 1 | 2021-02-18T03:08:21.000Z | 2021-02-18T03:08:21.000Z | """change admin to boolean
Revision ID: e86dd3bc539c
Revises: 6f63ef516cdc
Create Date: 2020-11-11 22:32:00.707936
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e86dd3bc539c'
down_revision = '6f63ef516cdc'
branch_labels = None
depends_on = None
def upgrade... | 38.627907 | 102 | 0.712222 | 226 | 1,661 | 5.017699 | 0.300885 | 0.106702 | 0.15873 | 0.070547 | 0.547619 | 0.452381 | 0.402998 | 0.347443 | 0.153439 | 0 | 0 | 0.032481 | 0.128838 | 1,661 | 42 | 103 | 39.547619 | 0.751209 | 0.183624 | 0 | 0 | 0 | 0 | 0.289613 | 0.033359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 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 |
601677ed1a2084da8bff806075ddd7b027330006 | 388 | py | Python | school/migrations/0010_alter_sala_unique_together.py | adrianomqsmts/django-escola | a69541bceb3f30bdd2e9f0f41aa9c2da6081a1d1 | [
"MIT"
] | null | null | null | school/migrations/0010_alter_sala_unique_together.py | adrianomqsmts/django-escola | a69541bceb3f30bdd2e9f0f41aa9c2da6081a1d1 | [
"MIT"
] | null | null | null | school/migrations/0010_alter_sala_unique_together.py | adrianomqsmts/django-escola | a69541bceb3f30bdd2e9f0f41aa9c2da6081a1d1 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-16 03:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('school', '0009_rename_periodo_semestre_alter_semestre_options_and_more'),
]
operations = [
migrations.AlterUniqueTogether(
name='sala',
... | 21.555556 | 83 | 0.634021 | 41 | 388 | 5.780488 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065517 | 0.252577 | 388 | 17 | 84 | 22.823529 | 0.751724 | 0.115979 | 0 | 0 | 1 | 0 | 0.237537 | 0.175953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
601c017654bfba5b4012ac4932fefa02ad294c7b | 912 | py | Python | account/admin.py | RichardLeeH/invoce_sys | 42a6f5750f45b25e0d7282114ccb7f9f72ee1761 | [
"Apache-2.0"
] | null | null | null | account/admin.py | RichardLeeH/invoce_sys | 42a6f5750f45b25e0d7282114ccb7f9f72ee1761 | [
"Apache-2.0"
] | null | null | null | account/admin.py | RichardLeeH/invoce_sys | 42a6f5750f45b25e0d7282114ccb7f9f72ee1761 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from account.models import Profile
admin.site.site_header = 'invoce'
class T... | 24 | 71 | 0.718202 | 111 | 912 | 5.792793 | 0.495496 | 0.069984 | 0.079316 | 0.065319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001292 | 0.151316 | 912 | 37 | 72 | 24.648649 | 0.829457 | 0.023026 | 0 | 0 | 0 | 0 | 0.08324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.25 | 0.041667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
601e1228f0fc5110925548eceed16ee0fac450d1 | 3,654 | py | Python | pynyzo/pynyzo/keyutil.py | EggPool/pynyzo | 7f3b86f15caa51a975e6a428f4dff578a1f24bcb | [
"MIT"
] | 6 | 2019-02-09T02:46:18.000Z | 2021-03-29T04:15:15.000Z | pynyzo/pynyzo/keyutil.py | EggPool/pynyzo | 7f3b86f15caa51a975e6a428f4dff578a1f24bcb | [
"MIT"
] | 1 | 2020-05-17T18:29:20.000Z | 2020-05-18T08:31:33.000Z | pynyzo/pynyzo/keyutil.py | EggPool/pynyzo | 7f3b86f15caa51a975e6a428f4dff578a1f24bcb | [
"MIT"
] | 5 | 2019-02-09T02:46:19.000Z | 2021-01-08T06:49:50.000Z | """
Eddsa Ed25519 key handling
From
https://github.com/n-y-z-o/nyzoVerifier/blob/b73bc25ba3094abe3470ec070ce306885ad9a18f/src/main/java/co/nyzo/verifier/KeyUtil.java
plus
https://github.com/n-y-z-o/nyzoVerifier/blob/17509f03a7f530c0431ce85377db9b35688c078e/src/main/java/co/nyzo/verifier/util/SignatureUtil.java
"""
# ... | 38.463158 | 179 | 0.678982 | 458 | 3,654 | 5.218341 | 0.31441 | 0.058577 | 0.035565 | 0.045188 | 0.396234 | 0.349791 | 0.305021 | 0.261088 | 0.261088 | 0.176569 | 0 | 0.054073 | 0.210454 | 3,654 | 94 | 180 | 38.87234 | 0.77435 | 0.29283 | 0 | 0.232143 | 0 | 0 | 0.029145 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.142857 | false | 0 | 0.053571 | 0 | 0.339286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
601f307a31ada0a1b790c747cfc5310721f08839 | 724 | py | Python | python code/influxdb_worker.py | thongnbui/MIDS_251_project | 8eee0f4569268e11c2d1d356024dbdc10f180b10 | [
"Apache-2.0"
] | null | null | null | python code/influxdb_worker.py | thongnbui/MIDS_251_project | 8eee0f4569268e11c2d1d356024dbdc10f180b10 | [
"Apache-2.0"
] | null | null | null | python code/influxdb_worker.py | thongnbui/MIDS_251_project | 8eee0f4569268e11c2d1d356024dbdc10f180b10 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import json
import argparse
from influxdb import InfluxDBClient
parser = argparse.ArgumentParser(description = 'pull data for softlayer queue' )
parser.add_argument( 'measurement' , help = 'measurement001' )
args = parser.parse_args()
client_influxdb = InfluxDBClient('50.23.117.76', '8086', 'crick... | 34.47619 | 149 | 0.705801 | 103 | 724 | 4.864078 | 0.495146 | 0.015968 | 0.023952 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031696 | 0.128453 | 724 | 20 | 150 | 36.2 | 0.762282 | 0.022099 | 0 | 0 | 0 | 0 | 0.315417 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | 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 |
6021d213fcca1b9fd94f8cf2d534f74eefae66dc | 3,522 | py | Python | src/python/pants/backend/docker/lint/hadolint/subsystem.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/docker/lint/hadolint/subsystem.py | xyzst/pants | d6a357fe67ee7e8e1aefeae625e107f5609f1717 | [
"Apache-2.0"
] | 28 | 2021-12-27T15:53:46.000Z | 2022-03-23T11:01:42.000Z | src/python/pants/backend/docker/lint/hadolint/subsystem.py | riisi/pants | b33327389fab67c47b919710ea32f20ca284b1a6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from typing import cast
from pants.core.util_rules.config_files import ConfigFilesRequest
from pants.core.util_rules.external_tool import TemplatedExte... | 35.938776 | 122 | 0.615559 | 373 | 3,522 | 5.686327 | 0.399464 | 0.016502 | 0.007544 | 0.04149 | 0.11834 | 0.036775 | 0 | 0 | 0 | 0 | 0 | 0.077074 | 0.277967 | 3,522 | 97 | 123 | 36.309278 | 0.75698 | 0.097956 | 0 | 0.2125 | 0 | 0 | 0.364583 | 0.127525 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.0625 | false | 0.0125 | 0.0625 | 0.05 | 0.275 | 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 |
6026e4bb115c40518d8be86f2973d4fb63be08f1 | 2,019 | py | Python | hanlp/pretrained/tok.py | chen88358323/HanLP | ee9066c3b7aad405dfe0ccffb7f66c59017169ae | [
"Apache-2.0"
] | 2 | 2022-03-23T08:50:39.000Z | 2022-03-23T08:50:48.000Z | hanlp/pretrained/tok.py | kingfan1998/HanLP | ee9066c3b7aad405dfe0ccffb7f66c59017169ae | [
"Apache-2.0"
] | null | null | null | hanlp/pretrained/tok.py | kingfan1998/HanLP | ee9066c3b7aad405dfe0ccffb7f66c59017169ae | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2019-12-28 21:12
from hanlp_common.constant import HANLP_URL
SIGHAN2005_PKU_CONVSEG = HANLP_URL + 'tok/sighan2005-pku-convseg_20200110_153722.zip'
'Conv model (:cite:`wang-xu-2017-convolutional`) trained on sighan2005 pku dataset.'
SIGHAN2005_MSR_CONVSEG = HANLP_URL + 't... | 67.3 | 146 | 0.788014 | 323 | 2,019 | 4.696594 | 0.362229 | 0.052736 | 0.06526 | 0.047462 | 0.476599 | 0.383652 | 0.350692 | 0.305867 | 0.208965 | 0.13975 | 0 | 0.142303 | 0.105498 | 2,019 | 29 | 147 | 69.62069 | 0.697674 | 0.045072 | 0 | 0.130435 | 0 | 0.173913 | 0.75923 | 0.360374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6029de67c839bfcae337c354721a055f1b81107e | 2,452 | py | Python | model_selection.py | HrishikV/ineuron_inceome_prediction_internship | 4a97a7f29d80198f394fcfd880cc5250fe2a0d1e | [
"MIT"
] | null | null | null | model_selection.py | HrishikV/ineuron_inceome_prediction_internship | 4a97a7f29d80198f394fcfd880cc5250fe2a0d1e | [
"MIT"
] | null | null | null | model_selection.py | HrishikV/ineuron_inceome_prediction_internship | 4a97a7f29d80198f394fcfd880cc5250fe2a0d1e | [
"MIT"
] | null | null | null | from featur_selection import df,race,occupation,workclass,country
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import cross_val_score,KFold
from sklearn.linear_model import LogisticRegression
from imblearn.pipeline import Pipeline
from sklearn.compose import ColumnT... | 45.407407 | 240 | 0.722675 | 288 | 2,452 | 6 | 0.423611 | 0.050926 | 0.064815 | 0.063657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013612 | 0.161093 | 2,452 | 54 | 241 | 45.407407 | 0.826446 | 0 | 0 | 0 | 0 | 0 | 0.069303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.021277 | 0.340426 | 0 | 0.382979 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
602de82ea89f13dcd9f29b60fb46750634f30aed | 7,711 | py | Python | app/auth/views.py | MainaKamau92/apexselftaught | 9f9a3bd1ba23e57a12e173730917fb9bb7003707 | [
"MIT"
] | 4 | 2019-01-02T19:52:00.000Z | 2022-02-21T11:07:34.000Z | app/auth/views.py | MainaKamau92/apexselftaught | 9f9a3bd1ba23e57a12e173730917fb9bb7003707 | [
"MIT"
] | 2 | 2019-12-04T13:36:54.000Z | 2019-12-04T13:49:21.000Z | app/auth/views.py | MainaKamau92/apexselftaught | 9f9a3bd1ba23e57a12e173730917fb9bb7003707 | [
"MIT"
] | 1 | 2021-11-28T13:23:14.000Z | 2021-11-28T13:23:14.000Z | # app/auth/views.py
import os
from flask import flash, redirect, render_template, url_for, request
from flask_login import login_required, login_user, logout_user, current_user
from . import auth
from .forms import (LoginForm, RegistrationForm,
RequestResetForm, ResetPasswordForm)
from .. import db,... | 43.8125 | 99 | 0.664765 | 968 | 7,711 | 5.143595 | 0.14876 | 0.034947 | 0.059048 | 0.052219 | 0.569994 | 0.515565 | 0.515565 | 0.503515 | 0.503515 | 0.503515 | 0 | 0 | 0.244586 | 7,711 | 175 | 100 | 44.062857 | 0.854764 | 0.170017 | 0 | 0.413793 | 0 | 0 | 0.174925 | 0.03261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.146552 | 0.077586 | 0 | 0.344828 | 0.008621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
602fc03ac149fa50fb90ef1d0ffd3dc3832e7d14 | 5,054 | py | Python | cleaning.py | jhamrick/cogsci-proceedings-analysis | c3c8b0abd8b9ce639f6de0aea52aec46c2c8abca | [
"MIT"
] | null | null | null | cleaning.py | jhamrick/cogsci-proceedings-analysis | c3c8b0abd8b9ce639f6de0aea52aec46c2c8abca | [
"MIT"
] | null | null | null | cleaning.py | jhamrick/cogsci-proceedings-analysis | c3c8b0abd8b9ce639f6de0aea52aec46c2c8abca | [
"MIT"
] | 1 | 2020-05-11T10:38:38.000Z | 2020-05-11T10:38:38.000Z | import re
import difflib
import pandas as pd
import numpy as np
from nameparser import HumanName
from nameparser.config import CONSTANTS
CONSTANTS.titles.remove("gen")
CONSTANTS.titles.remove("prin")
def parse_paper_type(section_name):
section_name = section_name.strip().lower()
if section_name == '':
... | 34.616438 | 79 | 0.551049 | 541 | 5,054 | 5.012939 | 0.297597 | 0.036504 | 0.041298 | 0.051622 | 0.118732 | 0.078171 | 0.056047 | 0.056047 | 0 | 0 | 0 | 0.011747 | 0.326276 | 5,054 | 145 | 80 | 34.855172 | 0.784728 | 0.014444 | 0 | 0.10084 | 0 | 0 | 0.104259 | 0.009642 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.033613 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
602fe47995203be2cbe5445ca36c210c61dfb7a1 | 384 | py | Python | quem_foi_para_mar_core/migrations/0004_auto_20200811_1945.py | CamilaBodack/template-projeto-selecao | b0a0cf6070bf8abab626a17af5c315c82368b010 | [
"MIT"
] | 1 | 2020-09-01T23:04:07.000Z | 2020-09-01T23:04:07.000Z | quem_foi_para_mar_core/migrations/0004_auto_20200811_1945.py | CamilaBodack/template-projeto-selecao | b0a0cf6070bf8abab626a17af5c315c82368b010 | [
"MIT"
] | 4 | 2020-10-07T18:04:41.000Z | 2020-10-07T18:07:58.000Z | quem_foi_para_mar_core/migrations/0004_auto_20200811_1945.py | CamilaBodack/template-projeto-selecao | b0a0cf6070bf8abab626a17af5c315c82368b010 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-11 19:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('quem_foi_para_mar_core', '0003_auto_20200811_1944'),
]
operations = [
migrations.RenameField(
model_name='contato',
old_name='... | 20.210526 | 62 | 0.609375 | 43 | 384 | 5.186047 | 0.837209 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109489 | 0.286458 | 384 | 18 | 63 | 21.333333 | 0.70438 | 0.111979 | 0 | 0 | 1 | 0 | 0.20944 | 0.132743 | 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 |
6030d536392f2700f6b4fca762988c6115c81681 | 268 | py | Python | examples/tinytag/fuzz.py | MJ-SEO/py_fuzz | 789fbfea21bf644ba4d00554fe4141694b0a190a | [
"Apache-2.0"
] | null | null | null | examples/tinytag/fuzz.py | MJ-SEO/py_fuzz | 789fbfea21bf644ba4d00554fe4141694b0a190a | [
"Apache-2.0"
] | null | null | null | examples/tinytag/fuzz.py | MJ-SEO/py_fuzz | 789fbfea21bf644ba4d00554fe4141694b0a190a | [
"Apache-2.0"
] | null | null | null | from pythonfuzz.main import PythonFuzz
from tinytag import TinyTag
import io
@PythonFuzz
def fuzz(buf):
try:
f = open('temp.mp4', "wb")
f.write(buf)
f.seek(0)
tag = TinyTag.get(f.name)
except UnicodeDecodeError:
pass
if __name__ == '__main__':
fuzz()
| 14.105263 | 38 | 0.69403 | 39 | 268 | 4.564103 | 0.641026 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.179104 | 268 | 18 | 39 | 14.888889 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60338466dc34f8421b1477264c6d62ca84ee2404 | 36,939 | py | Python | payments/models.py | wahuneke/django-stripe-payments | 5d4b26b025fc3fa75d3a0aeaafd67fb825325c94 | [
"BSD-3-Clause"
] | null | null | null | payments/models.py | wahuneke/django-stripe-payments | 5d4b26b025fc3fa75d3a0aeaafd67fb825325c94 | [
"BSD-3-Clause"
] | null | null | null | payments/models.py | wahuneke/django-stripe-payments | 5d4b26b025fc3fa75d3a0aeaafd67fb825325c94 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import decimal
import json
import traceback
from django.conf import settings
from django.core.mail import EmailMessage
from django.db import models
from django.utils import timezone
from django.template.loader import render_to_string
from django.contrib.sites.models import Site
import stripe
from js... | 37.654434 | 137 | 0.609491 | 4,048 | 36,939 | 5.358202 | 0.096591 | 0.016966 | 0.018257 | 0.024343 | 0.383264 | 0.325496 | 0.278377 | 0.210742 | 0.187275 | 0.141586 | 0 | 0.0084 | 0.294242 | 36,939 | 980 | 138 | 37.692857 | 0.82359 | 0.021035 | 0 | 0.262755 | 0 | 0 | 0.061557 | 0.004071 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005102 | 0.020408 | null | null | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
603be24384736b5da4440432a56324e5b621091a | 260 | py | Python | examples/test_yield_8.py | MateuszG/django_auth | 4cda699c1b6516ffaa26329f545a674a7c849a16 | [
"MIT"
] | 2 | 2015-01-12T09:43:59.000Z | 2015-01-12T10:39:31.000Z | examples/test_yield_8.py | MateuszG/django_auth | 4cda699c1b6516ffaa26329f545a674a7c849a16 | [
"MIT"
] | null | null | null | examples/test_yield_8.py | MateuszG/django_auth | 4cda699c1b6516ffaa26329f545a674a7c849a16 | [
"MIT"
] | null | null | null | import pytest
@pytest.yield_fixture
def passwd():
print ("\nsetup before yield")
f = open("/etc/passwd")
yield f.readlines()
print ("teardown after yield")
f.close()
def test_has_lines(passwd):
print ("test called")
assert passwd
| 18.571429 | 34 | 0.653846 | 34 | 260 | 4.911765 | 0.617647 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215385 | 260 | 13 | 35 | 20 | 0.818627 | 0 | 0 | 0 | 0 | 0 | 0.238462 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0.363636 | 0.090909 | 0 | 0.272727 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
603d47f5b923ece6ffdc97d38998dad6e0f866c8 | 2,022 | py | Python | examples/api-samples/inc_samples/convert_callback.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/convert_callback.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/convert_callback.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | import os
import json
import shutil
import time
from pyramid.renderers import render_to_response
from pyramid.response import Response
from groupdocs.ApiClient import ApiClient
from groupdocs.AsyncApi import AsyncApi
from groupdocs.StorageApi import StorageApi
from groupdocs.GroupDocsRequestSigner import GroupDocsReq... | 34.271186 | 68 | 0.62908 | 220 | 2,022 | 5.713636 | 0.440909 | 0.02864 | 0.025457 | 0.036595 | 0.105012 | 0.105012 | 0.065235 | 0.065235 | 0 | 0 | 0 | 0.005491 | 0.279426 | 2,022 | 58 | 69 | 34.862069 | 0.857241 | 0.097428 | 0 | 0.047619 | 0 | 0 | 0.035242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | 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 |
60416481c613049aa881c1d91f118e1ecab9fdbf | 1,194 | py | Python | create_augmented_versions.py | jakobabesser/piano_aug | 37f78c77465749c80d7aa91d9e804b89024eb278 | [
"MIT"
] | null | null | null | create_augmented_versions.py | jakobabesser/piano_aug | 37f78c77465749c80d7aa91d9e804b89024eb278 | [
"MIT"
] | null | null | null | create_augmented_versions.py | jakobabesser/piano_aug | 37f78c77465749c80d7aa91d9e804b89024eb278 | [
"MIT"
] | null | null | null | from pedalboard import Reverb, Compressor, Gain, LowpassFilter, Pedalboard
import soundfile as sf
if __name__ == '__main__':
# replace by path of unprocessed piano file if necessar
fn_wav_source = 'live_grand_piano.wav'
# augmentation settings using Pedalboard library
settings = {'rev-': [Reverb(roo... | 34.114286 | 74 | 0.61139 | 138 | 1,194 | 5.057971 | 0.514493 | 0.045845 | 0.047278 | 0.048711 | 0.094556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020525 | 0.265494 | 1,194 | 34 | 75 | 35.117647 | 0.775371 | 0.187605 | 0 | 0 | 0 | 0 | 0.079084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6043f0f0c5013421d3026505d50e50aa5fb67097 | 9,333 | py | Python | src/python/Vector2_TEST.py | clalancette/ign-math | 84eb1bfe470d00d335c048f102b56c49a15b56be | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2019-08-21T20:50:05.000Z | 2022-03-27T11:48:25.000Z | src/python/Vector2_TEST.py | clalancette/ign-math | 84eb1bfe470d00d335c048f102b56c49a15b56be | [
"ECL-2.0",
"Apache-2.0"
] | 277 | 2020-04-16T23:38:50.000Z | 2022-03-31T11:11:58.000Z | src/python/Vector2_TEST.py | clalancette/ign-math | 84eb1bfe470d00d335c048f102b56c49a15b56be | [
"ECL-2.0",
"Apache-2.0"
] | 48 | 2020-04-15T21:15:43.000Z | 2022-03-14T19:29:04.000Z | # Copyright (C) 2021 Open Source Robotics Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 29.165625 | 74 | 0.585985 | 1,241 | 9,333 | 4.357776 | 0.142627 | 0.159209 | 0.047152 | 0.055473 | 0.536982 | 0.426775 | 0.346709 | 0.346154 | 0.276257 | 0.195451 | 0 | 0.09168 | 0.280081 | 9,333 | 319 | 75 | 29.257053 | 0.713201 | 0.131898 | 0 | 0.160622 | 0 | 0 | 0.001739 | 0 | 0 | 0 | 0 | 0 | 0.481865 | 1 | 0.067358 | false | 0 | 0.020725 | 0 | 0.093264 | 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 |
604b36210d2f64d1a79dd2e280534e5bf39ec7cb | 4,737 | py | Python | facerec-master/py/facerec/distance.py | ArianeFire/HaniCam | 8a940486a613d680a0b556209a596cdf3eb71f53 | [
"MIT"
] | 776 | 2015-01-01T11:34:42.000Z | 2022-02-26T10:25:51.000Z | facerec-master/py/facerec/distance.py | ArianeFire/HaniCam | 8a940486a613d680a0b556209a596cdf3eb71f53 | [
"MIT"
] | 43 | 2015-03-17T07:48:38.000Z | 2019-08-21T05:16:36.000Z | facerec-master/py/facerec/distance.py | ArianeFire/HaniCam | 8a940486a613d680a0b556209a596cdf3eb71f53 | [
"MIT"
] | 479 | 2015-01-01T12:34:38.000Z | 2022-02-28T23:57:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) Philipp Wagner. All rights reserved.
# Licensed under the BSD license. See LICENSE file in the project root for full license information.
import numpy as np
class AbstractDistance(object):
def __init__(self, name):
self._name = name
... | 33.595745 | 125 | 0.617479 | 617 | 4,737 | 4.551053 | 0.222042 | 0.019231 | 0.011752 | 0.038462 | 0.629274 | 0.622151 | 0.601496 | 0.565171 | 0.565171 | 0.565171 | 0 | 0.012538 | 0.242347 | 4,737 | 140 | 126 | 33.835714 | 0.769852 | 0.278657 | 0 | 0.525641 | 0 | 0 | 0.07103 | 0.021092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.012821 | 0.025641 | 0.512821 | 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 |
604b9cab87abdc5ce52f2c470f0e9885781ed2dd | 7,162 | py | Python | pgyer_uploader.py | elina8013/android_demo | d8cef19d06a4f21f7cf2c277bbabba8cf10a8608 | [
"Apache-2.0"
] | 666 | 2015-03-18T02:09:34.000Z | 2021-08-25T06:24:27.000Z | pgyer_uploader.py | shanjiaxiang/android_demo | d1afa66c30ae5b3c09a39f4c36c61640615177bb | [
"Apache-2.0"
] | 7 | 2017-04-26T07:06:49.000Z | 2019-07-08T08:05:13.000Z | pgyer_uploader.py | shanjiaxiang/android_demo | d1afa66c30ae5b3c09a39f4c36c61640615177bb | [
"Apache-2.0"
] | 371 | 2015-03-18T02:09:33.000Z | 2021-09-10T02:41:05.000Z | #!/usr/bin/python
#coding=utf-8
import os
import requests
import time
import re
from datetime import datetime
import urllib2
import json
import mimetypes
import smtplib
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
# configuration for pgyer
USER_KEY = "f605b7c782669... | 34.76699 | 154 | 0.604021 | 794 | 7,162 | 5.324937 | 0.358942 | 0.018921 | 0.016556 | 0.011353 | 0.082781 | 0.074267 | 0.06386 | 0.06386 | 0.0421 | 0.0421 | 0 | 0.021069 | 0.271014 | 7,162 | 205 | 155 | 34.936585 | 0.788738 | 0.106116 | 0 | 0.133758 | 0 | 0.006369 | 0.210697 | 0.045705 | 0.012739 | 0 | 0 | 0 | 0.019108 | 0 | null | null | 0.006369 | 0.082803 | null | null | 0.10828 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
604ecb6f7cdc9275682b21b948b61c6eab42174d | 2,988 | py | Python | src/dispatch/incident_cost/views.py | vj-codes/dispatch | f9354781956380cac290be02fb987eb50ddc1a5d | [
"Apache-2.0"
] | 1 | 2021-06-16T17:02:35.000Z | 2021-06-16T17:02:35.000Z | src/dispatch/incident_cost/views.py | dilbwagsingh/dispatch | ca7c9730dea64e196c6653321552d570dfdad069 | [
"Apache-2.0"
] | 10 | 2021-07-17T04:28:07.000Z | 2022-02-05T00:40:59.000Z | src/dispatch/incident_cost/views.py | dilbwagsingh/dispatch | ca7c9730dea64e196c6653321552d570dfdad069 | [
"Apache-2.0"
] | null | null | null | from fastapi import APIRouter, Depends, HTTPException
from sqlalchemy.orm import Session
from dispatch.database.core import get_db
from dispatch.database.service import common_parameters, search_filter_sort_paginate
from dispatch.auth.permissions import SensitiveProjectActionPermission, PermissionsDependency
from .mo... | 32.835165 | 100 | 0.749665 | 358 | 2,988 | 5.980447 | 0.209497 | 0.246614 | 0.091546 | 0.050444 | 0.583839 | 0.548809 | 0.499766 | 0.499766 | 0.402616 | 0.402616 | 0 | 0.004779 | 0.159639 | 2,988 | 90 | 101 | 33.2 | 0.847869 | 0.073963 | 0 | 0.344262 | 0 | 0 | 0.075808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.114754 | 0 | 0.262295 | 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 |
60535516e66bf2f9d907ac1cbd0eeb26881ca2c7 | 2,728 | py | Python | tests/tests.py | desdelgado/rheology-data-toolkit | 054b1659c914b8eed86239d27a746e26404395ec | [
"MIT"
] | null | null | null | tests/tests.py | desdelgado/rheology-data-toolkit | 054b1659c914b8eed86239d27a746e26404395ec | [
"MIT"
] | 18 | 2020-04-10T15:06:50.000Z | 2020-06-23T20:57:49.000Z | tests/tests.py | desdelgado/rheology-data-toolkit | 054b1659c914b8eed86239d27a746e26404395ec | [
"MIT"
] | null | null | null | import sys, os
sys.path.append("C:/Users/Delgado/Documents/Research/rheology-data-toolkit/rheodata/extractors")
import h5py
import pandas as pd
from antonpaar import AntonPaarExtractor as APE
from ARES_G2 import ARES_G2Extractor
# %%
sys.path.append("C:/Users/Delgado/Documents/Research/rheology-data-toolkit/rheodata"... | 36.373333 | 189 | 0.712243 | 366 | 2,728 | 5.065574 | 0.295082 | 0.030205 | 0.029666 | 0.040453 | 0.407228 | 0.407228 | 0.357605 | 0.339266 | 0.312837 | 0.255663 | 0 | 0.00721 | 0.186584 | 2,728 | 74 | 190 | 36.864865 | 0.828301 | 0.096041 | 0 | 0.044444 | 0 | 0.022222 | 0.170282 | 0.115432 | 0 | 0 | 0 | 0.013514 | 0.177778 | 1 | 0.2 | false | 0 | 0.177778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60582c7b916077e6db28ad364408137dc3ff3825 | 784 | py | Python | setup.py | mintmachine/arweave-python-client | 69e8e2d32090de5fd276efdb9b9103d91b4182f6 | [
"MIT"
] | 63 | 2020-01-22T23:43:53.000Z | 2022-03-24T23:18:13.000Z | setup.py | mintmachine/arweave-python-client | 69e8e2d32090de5fd276efdb9b9103d91b4182f6 | [
"MIT"
] | 17 | 2020-01-22T23:41:07.000Z | 2022-01-04T11:43:30.000Z | setup.py | mintmachine/arweave-python-client | 69e8e2d32090de5fd276efdb9b9103d91b4182f6 | [
"MIT"
] | 25 | 2020-08-12T05:00:25.000Z | 2022-03-31T01:43:25.000Z | from distutils.core import setup
setup(
name="arweave-python-client",
packages = ['arweave'], # this must be the same as the name above
version="1.0.15.dev0",
description="Client interface for sending transactions on the Arweave permaweb",
author="Mike Hibbert",
author_email="mike@hibbertitsolutions.co.uk"... | 28 | 82 | 0.678571 | 89 | 784 | 5.94382 | 0.730337 | 0.073724 | 0.10775 | 0.064272 | 0.177694 | 0.177694 | 0.177694 | 0.177694 | 0 | 0 | 0 | 0.009217 | 0.169643 | 784 | 27 | 83 | 29.037037 | 0.803379 | 0.049745 | 0 | 0.076923 | 0 | 0 | 0.577389 | 0.067295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 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 |
60685790ed05ececd1e05f44f06a9d6c6808d671 | 1,380 | py | Python | theonionbox/tob/credits.py | ralphwetzel/theonionbox | 9812fce48153955e179755ea7a58413c3bee182f | [
"MIT"
] | 120 | 2015-12-30T09:41:56.000Z | 2022-03-23T02:30:05.000Z | theonionbox/tob/credits.py | nwithan8/theonionbox | 9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713 | [
"MIT"
] | 57 | 2015-12-29T21:55:14.000Z | 2022-01-07T09:48:51.000Z | theonionbox/tob/credits.py | nwithan8/theonionbox | 9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713 | [
"MIT"
] | 17 | 2018-02-05T08:57:46.000Z | 2022-02-28T16:44:41.000Z | Credits = [
('Bootstrap', 'https://getbootstrap.com', 'The Bootstrap team', 'MIT'),
('Bottle', 'http://bottlepy.org', 'Marcel Hellkamp', 'MIT'),
('Cheroot', 'https://github.com/cherrypy/cheroot', 'CherryPy Team', 'BSD 3-Clause "New" or "Revised" License'),
('Click', 'https://github.com/pallets/click', '... | 69 | 118 | 0.647101 | 158 | 1,380 | 5.651899 | 0.468354 | 0.110862 | 0.141097 | 0.029115 | 0.06495 | 0.06495 | 0.06495 | 0 | 0 | 0 | 0 | 0.010708 | 0.12029 | 1,380 | 19 | 119 | 72.631579 | 0.724876 | 0 | 0 | 0 | 0 | 0 | 0.747101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6069d2236a48fbb04ece52eba51a580571ed12ab | 2,756 | py | Python | backend/app/migrations/0001_initial.py | juniorosorio47/client-order | ec429436d822d07d0ec1e0be0c2615087eec6e65 | [
"MIT"
] | null | null | null | backend/app/migrations/0001_initial.py | juniorosorio47/client-order | ec429436d822d07d0ec1e0be0c2615087eec6e65 | [
"MIT"
] | null | null | null | backend/app/migrations/0001_initial.py | juniorosorio47/client-order | ec429436d822d07d0ec1e0be0c2615087eec6e65 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-18 23:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 41.757576 | 142 | 0.588534 | 284 | 2,756 | 5.577465 | 0.295775 | 0.035354 | 0.05303 | 0.083333 | 0.602273 | 0.602273 | 0.602273 | 0.54798 | 0.54798 | 0.54798 | 0 | 0.016467 | 0.272859 | 2,756 | 65 | 143 | 42.4 | 0.773952 | 0.016328 | 0 | 0.482759 | 1 | 0 | 0.080473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051724 | 0 | 0.12069 | 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 |
606baf8442117d47dded1db451079748f48b00b6 | 4,291 | py | Python | nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py | vadam5/NeMo | 3c5db09539293c3c19a6bb7437011f91261119af | [
"Apache-2.0"
] | 1 | 2021-04-13T20:34:16.000Z | 2021-04-13T20:34:16.000Z | nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py | vadam5/NeMo | 3c5db09539293c3c19a6bb7437011f91261119af | [
"Apache-2.0"
] | null | null | null | nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py | vadam5/NeMo | 3c5db09539293c3c19a6bb7437011f91261119af | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 32.022388 | 110 | 0.718714 | 499 | 4,291 | 6.02004 | 0.41483 | 0.019973 | 0.02996 | 0.036618 | 0.299601 | 0.266312 | 0.222703 | 0.196738 | 0.196738 | 0.196738 | 0 | 0.01847 | 0.20508 | 4,291 | 133 | 111 | 32.263158 | 0.862211 | 0.193428 | 0 | 0.42268 | 0 | 0 | 0.014526 | 0.007554 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0 | true | 0 | 0.092784 | 0 | 0.463918 | 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 |
606d8521b79694dc8353d8aa111b68f4f20bff71 | 9,321 | py | Python | examples/Python 2.7/Client_Complete.py | jcjveraa/EDDN | d0cbae6b7a2cac180dd414cbc324c2d84c867cd8 | [
"BSD-3-Clause"
] | 100 | 2017-07-19T10:11:04.000Z | 2020-07-05T22:07:39.000Z | examples/Python 2.7/Client_Complete.py | Assasinnys/EDDN | f03a0857cf4a2b95903d332697b07cc055c6cee7 | [
"BSD-3-Clause"
] | 61 | 2020-09-28T19:05:10.000Z | 2022-03-22T09:16:08.000Z | examples/Python 2.7/Client_Complete.py | Assasinnys/EDDN | f03a0857cf4a2b95903d332697b07cc055c6cee7 | [
"BSD-3-Clause"
] | 28 | 2020-07-19T22:37:44.000Z | 2022-03-22T09:01:39.000Z | import zlib
import zmq
import simplejson
import sys, os, datetime, time
"""
" Configuration
"""
__relayEDDN = 'tcp://eddn.edcd.io:9500'
#__timeoutEDDN = 600000 # 10 minuts
__timeoutEDDN = 60000 # 1 minut
# Set False to listen to production stream; True to listen to debug stream
__deb... | 40.526087 | 161 | 0.466259 | 703 | 9,321 | 5.761024 | 0.302987 | 0.057037 | 0.025679 | 0.038025 | 0.126173 | 0.069136 | 0.069136 | 0.058765 | 0.058765 | 0.031605 | 0 | 0.005158 | 0.417659 | 9,321 | 229 | 162 | 40.703057 | 0.740973 | 0.055681 | 0 | 0.155844 | 0 | 0.006494 | 0.202196 | 0.011322 | 0.006494 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025974 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
606fff8ef61161b6a42c08c99645ebf6b02a454f | 3,618 | py | Python | tests/test_button.py | MSLNZ/msl-qt | 33abbb4807b54e3a06dbe9c0f9b343802ece9b97 | [
"MIT"
] | 1 | 2018-07-14T23:02:24.000Z | 2018-07-14T23:02:24.000Z | tests/test_button.py | MSLNZ/msl-qt | 33abbb4807b54e3a06dbe9c0f9b343802ece9b97 | [
"MIT"
] | 1 | 2019-08-12T04:52:33.000Z | 2019-08-21T00:06:59.000Z | tests/test_button.py | MSLNZ/msl-qt | 33abbb4807b54e3a06dbe9c0f9b343802ece9b97 | [
"MIT"
] | 1 | 2019-08-05T05:22:47.000Z | 2019-08-05T05:22:47.000Z | import os
import sys
import pytest
from msl.qt import convert, Button, QtWidgets, QtCore, Qt
def test_text():
b = Button(text='hello')
assert b.text() == 'hello'
assert b.icon().isNull()
assert b.toolButtonStyle() == Qt.ToolButtonTextOnly
def test_icon():
path = os.path.dirname(__file__) + '/g... | 31.46087 | 93 | 0.657546 | 499 | 3,618 | 4.649299 | 0.170341 | 0.090517 | 0.078448 | 0.093103 | 0.759483 | 0.611207 | 0.588362 | 0.573276 | 0.530603 | 0.459052 | 0 | 0.035897 | 0.191542 | 3,618 | 114 | 94 | 31.736842 | 0.757265 | 0.052239 | 0 | 0.506494 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0.480519 | 1 | 0.064935 | false | 0 | 0.051948 | 0 | 0.116883 | 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 |
60700c79a8bc5322f89b51ceab88a89b92a4de5b | 499 | py | Python | Exercicios/ex028.py | MateusBarboza99/Python-03- | 9c6df88aaa8ba83d385b92722ed1df5873df3a77 | [
"MIT"
] | null | null | null | Exercicios/ex028.py | MateusBarboza99/Python-03- | 9c6df88aaa8ba83d385b92722ed1df5873df3a77 | [
"MIT"
] | null | null | null | Exercicios/ex028.py | MateusBarboza99/Python-03- | 9c6df88aaa8ba83d385b92722ed1df5873df3a77 | [
"MIT"
] | null | null | null | from random import randint
from time import sleep
computador = randint(0, 5) # Faz o computador "PENSAR"
print('-=-' * 20)
print('Vou Pensar em Um Número Entre 0 e 5. Tente Adivinhar Paçoca...')
print('-=-' * 20)
jogador = int(input('Em que Número eu Pensei? ')) # Jogador tenta Adivinhar
print('PROCESSANDO........')
sl... | 35.642857 | 84 | 0.687375 | 71 | 499 | 4.830986 | 0.605634 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.158317 | 499 | 13 | 85 | 38.384615 | 0.795238 | 0.098196 | 0 | 0.153846 | 0 | 0 | 0.438479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
60730c8aa9c4f71059543c43f3553248624a3054 | 2,322 | py | Python | code/loader/lock.py | IBCNServices/StardogStreamReasoning | 646db9cec7bd06ac8bfa75952b9a41773f35544d | [
"Apache-2.0"
] | 5 | 2020-04-08T22:55:17.000Z | 2021-07-30T12:12:45.000Z | code/loader/lock.py | IBCNServices/StardogStreamReasoning | 646db9cec7bd06ac8bfa75952b9a41773f35544d | [
"Apache-2.0"
] | 1 | 2021-04-29T21:58:32.000Z | 2021-05-04T08:05:11.000Z | code/loader/lock.py | IBCNServices/StardogStreamReasoning | 646db9cec7bd06ac8bfa75952b9a41773f35544d | [
"Apache-2.0"
] | 3 | 2020-06-12T13:48:08.000Z | 2021-07-23T11:24:27.000Z | import threading
class RWLock:
"""Synchronization object used in a solution of so-called second
readers-writers problem. In this problem, many readers can simultaneously
access a share, and a writer has an exclusive access to this share.
Additionally, the following constraints should be met:
1) no reader should b... | 31.808219 | 75 | 0.736434 | 348 | 2,322 | 4.637931 | 0.373563 | 0.037175 | 0.040273 | 0.023544 | 0.060719 | 0.060719 | 0.060719 | 0.060719 | 0.060719 | 0.060719 | 0 | 0.019329 | 0.153316 | 2,322 | 72 | 76 | 32.25 | 0.801628 | 0.466408 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.026316 | 0 | 0.289474 | 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 |
6073572f31a3babd2ff3a1985183c4320d96810e | 5,627 | py | Python | src/pyfmodex/channel_group.py | Loodoor/UnamedPy | 7d154c3a652992b3c1f28050f0353451f57b2a2d | [
"MIT"
] | 1 | 2017-02-21T16:46:21.000Z | 2017-02-21T16:46:21.000Z | src/pyfmodex/channel_group.py | Loodoor/UnamedPy | 7d154c3a652992b3c1f28050f0353451f57b2a2d | [
"MIT"
] | 1 | 2017-02-21T17:57:05.000Z | 2017-02-22T11:28:51.000Z | src/pyfmodex/channel_group.py | Loodoor/UnamedPy | 7d154c3a652992b3c1f28050f0353451f57b2a2d | [
"MIT"
] | null | null | null | from .fmodobject import *
from .globalvars import dll as _dll
from .globalvars import get_class
class ChannelGroup(FmodObject):
def add_dsp(self, dsp):
check_type(dsp, get_class("DSP"))
c_ptr = c_void_p()
self._call_fmod("FMOD_ChannelGroup_AddDSP", d._ptr, byref(c_ptr))
return get_... | 31.61236 | 120 | 0.675671 | 674 | 5,627 | 5.305638 | 0.186944 | 0.138702 | 0.100671 | 0.134228 | 0.455537 | 0.35151 | 0.314038 | 0.207215 | 0.140101 | 0.073266 | 0 | 0.004112 | 0.222143 | 5,627 | 177 | 121 | 31.79096 | 0.812886 | 0 | 0 | 0.235714 | 0 | 0 | 0.159055 | 0.151057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.021429 | 0.014286 | 0.421429 | 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 |
6076505608a2c5b23c1f2f1d1636e9aacc345050 | 1,105 | py | Python | examples/plot_graph.py | huyvo/gevent-websocket-py3.5 | b2eb3b5cfb020ac976ac0970508589020dce03ad | [
"Apache-2.0"
] | null | null | null | examples/plot_graph.py | huyvo/gevent-websocket-py3.5 | b2eb3b5cfb020ac976ac0970508589020dce03ad | [
"Apache-2.0"
] | null | null | null | examples/plot_graph.py | huyvo/gevent-websocket-py3.5 | b2eb3b5cfb020ac976ac0970508589020dce03ad | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
"""
This example generates random data and plots a graph in the browser.
Run it using Gevent directly using:
$ python plot_graph.py
Or with an Gunicorn wrapper:
$ gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" \
plot_graph:resource
"""
impo... | 25.113636 | 76 | 0.700452 | 133 | 1,105 | 5.609023 | 0.616541 | 0.036193 | 0.034853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016611 | 0.182805 | 1,105 | 43 | 77 | 25.697674 | 0.809524 | 0 | 0 | 0 | 1 | 0 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6077af38c7d93f92258618a8fca241844841e829 | 3,636 | py | Python | src/ansible_navigator/ui_framework/content_defs.py | goneri/ansible-navigator | 59c5c4e9758404bcf363face09cf46c325b01ad3 | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/ui_framework/content_defs.py | goneri/ansible-navigator | 59c5c4e9758404bcf363face09cf46c325b01ad3 | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/ui_framework/content_defs.py | goneri/ansible-navigator | 59c5c4e9758404bcf363face09cf46c325b01ad3 | [
"Apache-2.0"
] | null | null | null | """Definitions of UI content objects."""
from dataclasses import asdict
from dataclasses import dataclass
from enum import Enum
from typing import Dict
from typing import Generic
from typing import TypeVar
from ..utils.compatibility import TypeAlias
from ..utils.serialize import SerializationFormat
class ContentVie... | 32.756757 | 98 | 0.667217 | 439 | 3,636 | 5.448747 | 0.346241 | 0.032191 | 0.037625 | 0.052258 | 0.303512 | 0.236622 | 0.183528 | 0.168478 | 0.168478 | 0.168478 | 0 | 0.001459 | 0.245875 | 3,636 | 110 | 99 | 33.054545 | 0.870897 | 0.487624 | 0 | 0.116279 | 0 | 0 | 0.006871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.186047 | 0 | 0.581395 | 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 |
608acb157c66cbf8e5a515ca2945d9dde9e8ed86 | 337 | py | Python | morphocut_server/extensions.py | madelinetharp/morphocut-server | a82ad5916adbd168816f7b26432b4a98d978c299 | [
"MIT"
] | null | null | null | morphocut_server/extensions.py | madelinetharp/morphocut-server | a82ad5916adbd168816f7b26432b4a98d978c299 | [
"MIT"
] | 1 | 2019-08-14T20:07:53.000Z | 2019-08-14T20:07:53.000Z | morphocut_server/extensions.py | madelinetharp/morphocut-server | a82ad5916adbd168816f7b26432b4a98d978c299 | [
"MIT"
] | 2 | 2019-11-28T13:10:28.000Z | 2021-11-19T20:37:19.000Z |
from flask_sqlalchemy import SQLAlchemy
from flask_redis import FlaskRedis
from flask_migrate import Migrate
# from flask_rq2 import RQ
from rq import Queue
from morphocut_server.worker import redis_conn
database = SQLAlchemy()
redis_store = FlaskRedis()
migrate = Migrate()
redis_queue = Queue(connection=redis_conn)... | 22.466667 | 46 | 0.824926 | 47 | 337 | 5.702128 | 0.382979 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.127596 | 337 | 14 | 47 | 24.071429 | 0.908163 | 0.071217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6093e41de9ab4c93dd30e9d6abbd45ef1d80f2ad | 214 | py | Python | Chapter11/publish_horoscope1_in_another_ipns.py | HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers | f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4 | [
"MIT"
] | 62 | 2019-03-18T04:41:41.000Z | 2022-03-31T05:03:13.000Z | Chapter11/publish_horoscope1_in_another_ipns.py | HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers | f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4 | [
"MIT"
] | 2 | 2020-06-14T21:56:03.000Z | 2022-01-07T05:32:01.000Z | Chapter11/publish_horoscope1_in_another_ipns.py | HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers | f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4 | [
"MIT"
] | 42 | 2019-02-22T03:10:36.000Z | 2022-02-20T04:47:04.000Z | import ipfsapi
c = ipfsapi.connect()
peer_id = c.key_list()['Keys'][1]['Id']
c.name_publish('QmYjYGKXqo36GDt6f6qvp9qKAsrc72R9y88mQSLvogu8Ub', key='another_key')
result = c.cat('/ipns/' + peer_id)
print(result)
| 19.454545 | 83 | 0.728972 | 28 | 214 | 5.392857 | 0.642857 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0.093458 | 214 | 10 | 84 | 21.4 | 0.716495 | 0 | 0 | 0 | 0 | 0 | 0.32243 | 0.214953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
6093fc893ebcd37ea362c87f16107050ab4d6124 | 1,179 | py | Python | tests/optimize/test_newton_raphson_hypo.py | dwillmer/fastats | 5915423714b32ed7e953e1e3a311fe50c3f30943 | [
"MIT"
] | 26 | 2017-07-17T09:19:53.000Z | 2021-11-30T01:36:56.000Z | tests/optimize/test_newton_raphson_hypo.py | dwillmer/fastats | 5915423714b32ed7e953e1e3a311fe50c3f30943 | [
"MIT"
] | 320 | 2017-09-02T16:26:25.000Z | 2021-07-28T05:19:49.000Z | tests/optimize/test_newton_raphson_hypo.py | dwillmer/fastats | 5915423714b32ed7e953e1e3a311fe50c3f30943 | [
"MIT"
] | 13 | 2017-07-06T19:02:29.000Z | 2020-01-22T11:36:34.000Z |
from hypothesis import given, assume, settings
from hypothesis.strategies import floats
from numpy import cos
from pytest import approx
from fastats.optimise.newton_raphson import newton_raphson
def func(x):
return x**3 - x - 1
def less_or_equal(x, compared_to, rel=1e-6):
return ((x < compared_to)
... | 21.436364 | 71 | 0.676845 | 197 | 1,179 | 3.827411 | 0.324873 | 0.039788 | 0.043767 | 0.058355 | 0.196286 | 0.196286 | 0.196286 | 0.111406 | 0.111406 | 0 | 0 | 0.032839 | 0.199321 | 1,179 | 54 | 72 | 21.833333 | 0.76589 | 0.081425 | 0 | 0 | 0 | 0 | 0.007561 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.172414 | false | 0 | 0.206897 | 0.103448 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
60a325d8698400a67c71d72f6db2f8d62fcf36f0 | 1,798 | py | Python | challenges/Backend Challenge/pendulum_sort.py | HernandezDerekJ/Interview | 202d78767d452ecfe8c6220180d7ed53b1104231 | [
"MIT"
] | null | null | null | challenges/Backend Challenge/pendulum_sort.py | HernandezDerekJ/Interview | 202d78767d452ecfe8c6220180d7ed53b1104231 | [
"MIT"
] | null | null | null | challenges/Backend Challenge/pendulum_sort.py | HernandezDerekJ/Interview | 202d78767d452ecfe8c6220180d7ed53b1104231 | [
"MIT"
] | null | null | null | """
Coderpad solution
"""
def pend(arr):
## arr = [2,3,5,1,4]
## vrr = [0,0,0,0,0]
var = [0] * len(arr)
mid = (len(var) - 1) / 2
## sort_arr = [1,2,3,4,5]
## vrr = [0,0,1,0,0]
sort_arr = sorted(arr)
var[mid] = sort_arr[0]
# ^
# focus... | 31 | 102 | 0.375417 | 252 | 1,798 | 2.583333 | 0.27381 | 0.052227 | 0.032258 | 0.043011 | 0.334869 | 0.282642 | 0.270353 | 0.25192 | 0.231951 | 0.231951 | 0 | 0.118717 | 0.479978 | 1,798 | 57 | 103 | 31.54386 | 0.57754 | 0.527809 | 0 | 0.238095 | 0 | 0 | 0.010165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60a44344bf403a9af637f117e79a2de34161a730 | 8,141 | py | Python | ptrace/oop/math_tests.py | xann16/py-path-tracing | 609dbe6b80580212bd9d8e93afb6902091040d7a | [
"MIT"
] | null | null | null | ptrace/oop/math_tests.py | xann16/py-path-tracing | 609dbe6b80580212bd9d8e93afb6902091040d7a | [
"MIT"
] | null | null | null | ptrace/oop/math_tests.py | xann16/py-path-tracing | 609dbe6b80580212bd9d8e93afb6902091040d7a | [
"MIT"
] | null | null | null | """Unit tests for math-oriented common classes."""
import unittest
import math
import numpy as np
from .vector import Vec3, OrthonormalBasis
from .raycast_base import Ray
from .camera import Camera
class Vec3Tests(unittest.TestCase):
"""Test for Vec3 class."""
def test_vec3_basic(self):
"""Basic cr... | 35.550218 | 81 | 0.607051 | 1,141 | 8,141 | 4.241893 | 0.134969 | 0.192149 | 0.095455 | 0.052273 | 0.430579 | 0.269215 | 0.191116 | 0.091529 | 0.03595 | 0.03595 | 0 | 0.069187 | 0.23658 | 8,141 | 228 | 82 | 35.70614 | 0.709574 | 0.076035 | 0 | 0.012987 | 0 | 0 | 0.004426 | 0 | 0 | 0 | 0 | 0 | 0.584416 | 1 | 0.051948 | false | 0 | 0.038961 | 0 | 0.116883 | 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 |
60a44dedd81ec9521c352eb02db132ee4f4bcd33 | 2,336 | py | Python | tests/integration/condition__browser__have_url_test.py | kianku/selene | 5361938e4f34d6cfae6df3aeca80e06a3e657d8c | [
"MIT"
] | null | null | null | tests/integration/condition__browser__have_url_test.py | kianku/selene | 5361938e4f34d6cfae6df3aeca80e06a3e657d8c | [
"MIT"
] | null | null | null | tests/integration/condition__browser__have_url_test.py | kianku/selene | 5361938e4f34d6cfae6df3aeca80e06a3e657d8c | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2015-2020 Iakiv Kramarenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | 37.079365 | 101 | 0.771404 | 337 | 2,336 | 5.183976 | 0.41543 | 0.112192 | 0.058386 | 0.045793 | 0.366342 | 0.328563 | 0.261019 | 0.261019 | 0.218661 | 0.218661 | 0 | 0.006523 | 0.146832 | 2,336 | 62 | 102 | 37.677419 | 0.870045 | 0.47988 | 0 | 0.347826 | 0 | 0 | 0.066331 | 0.024349 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0 | 0.347826 | 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 |
60aacb1ea53997b926d5fc68404773f2cbe78055 | 852 | py | Python | rooms/models.py | Neisvestney/SentSyncServer | 45e9572b6c9b274ed2cbad28749fcb2154c98757 | [
"MIT"
] | null | null | null | rooms/models.py | Neisvestney/SentSyncServer | 45e9572b6c9b274ed2cbad28749fcb2154c98757 | [
"MIT"
] | null | null | null | rooms/models.py | Neisvestney/SentSyncServer | 45e9572b6c9b274ed2cbad28749fcb2154c98757 | [
"MIT"
] | null | null | null | from django.db import models
class Room(models.Model):
code = models.CharField('Code', max_length=128)
tab_url = models.CharField('Tab url', max_length=512, default='', blank=True)
def to_dict(self):
return {
'users': [u.to_dict() for u in self.users.all()],
'tabUrl': self... | 25.818182 | 82 | 0.597418 | 107 | 852 | 4.588785 | 0.429907 | 0.081466 | 0.04888 | 0.052953 | 0.14664 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014241 | 0.258216 | 852 | 32 | 83 | 26.625 | 0.762658 | 0 | 0 | 0.26087 | 0 | 0 | 0.123239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.173913 | 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 | 1 | 0 | 0 | 0 | 1 |
60afd06ba545d034d33e457e4d731a2d4625fc23 | 340 | py | Python | dynts/lib/fallback/simplefunc.py | quantmind/dynts | 21ac57c648bfec402fa6b1fe569496cf098fb5e8 | [
"BSD-3-Clause"
] | 57 | 2015-02-10T13:42:06.000Z | 2022-03-28T14:48:36.000Z | dynts/lib/fallback/simplefunc.py | quantmind/dynts | 21ac57c648bfec402fa6b1fe569496cf098fb5e8 | [
"BSD-3-Clause"
] | 1 | 2016-11-01T07:43:05.000Z | 2016-11-01T07:43:05.000Z | dynts/lib/fallback/simplefunc.py | quantmind/dynts | 21ac57c648bfec402fa6b1fe569496cf098fb5e8 | [
"BSD-3-Clause"
] | 17 | 2015-05-08T04:09:19.000Z | 2021-08-02T19:24:52.000Z |
from .common import *
def tsminmax(v):
mv = NaN
xv = NaN
for v in x:
if x == x:
if mv == mv:
mv = min(mv,x)
else:
mv = x
if xv == xv:
xv = max(xv,x)
else:
xv = x
retu... | 20 | 31 | 0.297059 | 40 | 340 | 2.525 | 0.425 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.608824 | 340 | 17 | 32 | 20 | 0.759399 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60b09b84c56168890b3b6bd6e6a345dc11ac1a37 | 3,552 | py | Python | week9/finance/application.py | lcsm29/edx-harvard-cs50 | 283f49bd6a9e4b8497e2b397d766b64527b4786b | [
"MIT"
] | null | null | null | week9/finance/application.py | lcsm29/edx-harvard-cs50 | 283f49bd6a9e4b8497e2b397d766b64527b4786b | [
"MIT"
] | null | null | null | week9/finance/application.py | lcsm29/edx-harvard-cs50 | 283f49bd6a9e4b8497e2b397d766b64527b4786b | [
"MIT"
] | null | null | null | import os
from cs50 import SQL
from flask import Flask, flash, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError
from werkzeug.security import check_password_hash, generate_pa... | 24.839161 | 100 | 0.675113 | 457 | 3,552 | 5.170678 | 0.36105 | 0.055015 | 0.043165 | 0.042319 | 0.161659 | 0.115954 | 0 | 0 | 0 | 0 | 0 | 0.005927 | 0.192568 | 3,552 | 142 | 101 | 25.014085 | 0.817992 | 0.228322 | 0 | 0.208333 | 0 | 0 | 0.174823 | 0.007845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0.069444 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60b4ecd85396e388011990857be8fae61e376084 | 517 | py | Python | Cursoemvideo/desafios/desafio008.py | gentildf/Python | bb333e55b197492eac1294619ca7b13ef57bb631 | [
"MIT"
] | 1 | 2021-03-16T13:07:29.000Z | 2021-03-16T13:07:29.000Z | Cursoemvideo/desafios/desafio008.py | gentildf/Python | bb333e55b197492eac1294619ca7b13ef57bb631 | [
"MIT"
] | null | null | null | Cursoemvideo/desafios/desafio008.py | gentildf/Python | bb333e55b197492eac1294619ca7b13ef57bb631 | [
"MIT"
] | null | null | null | #Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros.
n = float(input('\033[32mDigite o numero:\033[m'))
print('O número digitado é \033[33m{0:.0f}m\033[m.\n'
'Ele apresentado em centimetros fica \033[33m{0:.2f}cm\033[m.\n'
'Apresentado em milímetros fica \033[33... | 47 | 98 | 0.686654 | 95 | 517 | 3.736842 | 0.442105 | 0.04507 | 0.059155 | 0.061972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110855 | 0.162476 | 517 | 10 | 99 | 51.7 | 0.709007 | 0.483559 | 0 | 0 | 0 | 0.2 | 0.729008 | 0.282443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60b50f0934ca9581fa086a588f7ded362261de6d | 795 | py | Python | publish_fanout.py | Dordoloy/BachelorDIM-Lectures-Algorithms-2019 | 14e3e7132eecf62e3476dbea4d9db32adf1544ff | [
"MIT"
] | null | null | null | publish_fanout.py | Dordoloy/BachelorDIM-Lectures-Algorithms-2019 | 14e3e7132eecf62e3476dbea4d9db32adf1544ff | [
"MIT"
] | null | null | null | publish_fanout.py | Dordoloy/BachelorDIM-Lectures-Algorithms-2019 | 14e3e7132eecf62e3476dbea4d9db32adf1544ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 21 08:47:08 2019
@author: dordoloy
"""
import os
import pika
import config
import getpass
def publish_fanout():
amqp_url=config.amqp_url
# Parse CLODUAMQP_URL (fallback to localhost)
url = os.environ.get('CLOUDAMQP_URL',amqp_url)
params = pika... | 22.714286 | 71 | 0.622642 | 86 | 795 | 5.616279 | 0.616279 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02418 | 0.271698 | 795 | 35 | 72 | 22.714286 | 0.810017 | 0.178616 | 0 | 0 | 0 | 0 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.210526 | 0 | 0.263158 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60b55902d0598b3b2fa55eabb666b4e4d52752c7 | 16,112 | py | Python | orbit/utils.py | xjx0524/models | 99be973aa8168a0d2275d475883b3256b193251f | [
"Apache-2.0"
] | null | null | null | orbit/utils.py | xjx0524/models | 99be973aa8168a0d2275d475883b3256b193251f | [
"Apache-2.0"
] | null | null | null | orbit/utils.py | xjx0524/models | 99be973aa8168a0d2275d475883b3256b193251f | [
"Apache-2.0"
] | null | null | null | <<<<<<< HEAD
# Lint as: python3
=======
>>>>>>> a811a3b7e640722318ad868c99feddf3f3063e36
# Copyright 2020 The Orbit Authors. 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 ... | 32.288577 | 80 | 0.696996 | 2,143 | 16,112 | 5.071862 | 0.205786 | 0.026313 | 0.012145 | 0.011041 | 0.220075 | 0.177569 | 0.123194 | 0.097065 | 0.075628 | 0.075628 | 0 | 0.014807 | 0.211954 | 16,112 | 498 | 81 | 32.353414 | 0.841222 | 0.078265 | 0 | 0.303483 | 0 | 0 | 0.030228 | 0 | 0 | 0 | 0 | 0.004016 | 0 | 0 | null | null | 0 | 0.034826 | 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 |
60b585e86ccc82ac6a2eddf76170bf681c5dfe4e | 364 | py | Python | python/word-count/word_count.py | whitepeaony/exercism-python | 5c947ba5c589f1969bcb754e88969420262c457e | [
"MIT"
] | null | null | null | python/word-count/word_count.py | whitepeaony/exercism-python | 5c947ba5c589f1969bcb754e88969420262c457e | [
"MIT"
] | 20 | 2019-08-02T13:59:21.000Z | 2022-01-22T10:08:23.000Z | python/word-count/word_count.py | whitepeaony/exercism-python | 5c947ba5c589f1969bcb754e88969420262c457e | [
"MIT"
] | null | null | null | def count_words(sentence):
sentence = sentence.lower()
words = {}
shit = ',\n:!&@$%^&._'
for s in shit:
sentence = sentence.replace(s, ' ')
for w in sentence.split():
if w.endswith('\''):
w = w[:-1]
if w.startswith('\''):
w = w[1:]
words... | 20.222222 | 43 | 0.453297 | 44 | 364 | 3.704545 | 0.454545 | 0.294479 | 0.03681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.357143 | 364 | 17 | 44 | 21.411765 | 0.679487 | 0 | 0 | 0 | 0 | 0 | 0.044077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 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 |
60b7ecc0410fa366c1d483830d2676a99b8210cd | 1,509 | py | Python | ficheros/CSV/prueba csv (lm)/alumnos.py | txtbits/daw-python | 5dde1207e2791e90aa5e9ce2b6afc4116129efab | [
"MIT"
] | null | null | null | ficheros/CSV/prueba csv (lm)/alumnos.py | txtbits/daw-python | 5dde1207e2791e90aa5e9ce2b6afc4116129efab | [
"MIT"
] | null | null | null | ficheros/CSV/prueba csv (lm)/alumnos.py | txtbits/daw-python | 5dde1207e2791e90aa5e9ce2b6afc4116129efab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 02/12/2011
@author: chra
'''
import csv
from operator import itemgetter
# ----- Función media de la notas de los alumnos ----------
def media(alumno):
#devuelve la nota media a partir de un diccionario con datos de un alumno
nota1 = int(alumno['Nota1'])
nota2 = int... | 29.588235 | 120 | 0.581842 | 193 | 1,509 | 4.528497 | 0.476684 | 0.030892 | 0.024027 | 0.048055 | 0.061785 | 0.061785 | 0.061785 | 0.061785 | 0.061785 | 0 | 0 | 0.025177 | 0.15772 | 1,509 | 51 | 121 | 29.588235 | 0.662471 | 0.474486 | 0 | 0.2 | 0 | 0 | 0.165536 | 0.032564 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
60bb3a202511a6b1b6fac3f7f1b3970bd6850c3c | 367 | py | Python | setup.py | monkey2000/pygazetteer | 3eb6026b1473f773817a81ebc0060ec455482739 | [
"MIT"
] | 1 | 2018-01-28T09:38:56.000Z | 2018-01-28T09:38:56.000Z | setup.py | monkey2000/pygazetteer | 3eb6026b1473f773817a81ebc0060ec455482739 | [
"MIT"
] | null | null | null | setup.py | monkey2000/pygazetteer | 3eb6026b1473f773817a81ebc0060ec455482739 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='pygazetteer',
version='0.1.0',
description='Location extractor by looking up gazetteer',
url='https://github.com/monkey2000/pygazetteer',
license='MIT',
packages=['pygazetteer'],
install_requires=[
'pyahocorasick'
],
zip... | 24.466667 | 63 | 0.643052 | 38 | 367 | 6.105263 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024911 | 0.234332 | 367 | 14 | 64 | 26.214286 | 0.800712 | 0 | 0 | 0 | 0 | 0 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
60cbf96ec164888707eb2ca83b141b44664c1449 | 821 | py | Python | bouncer/blacklist/signals.py | sourcelair/bouncer-api | 132c63bbd470b0635054ad71656d0303b39ee421 | [
"MIT"
] | null | null | null | bouncer/blacklist/signals.py | sourcelair/bouncer-api | 132c63bbd470b0635054ad71656d0303b39ee421 | [
"MIT"
] | 25 | 2018-07-17T10:58:23.000Z | 2018-08-30T11:33:58.000Z | bouncer/blacklist/signals.py | sourcelair/bouncer-api | 132c63bbd470b0635054ad71656d0303b39ee421 | [
"MIT"
] | 2 | 2018-07-18T10:57:20.000Z | 2020-05-23T04:43:27.000Z | from django.db.models.signals import pre_save
from django.dispatch import receiver
from blacklist import models
from hashlib import sha256
@receiver(pre_save, sender=models.EmailEntry)
def email_entry_handler(sender, instance, **kwargs):
"""
Handler that assigns to lower_case_entry_value the entry_value.lower... | 31.576923 | 74 | 0.774665 | 109 | 821 | 5.568807 | 0.311927 | 0.14827 | 0.115321 | 0.156507 | 0.576606 | 0.398682 | 0.398682 | 0.398682 | 0.398682 | 0.398682 | 0 | 0.00838 | 0.127893 | 821 | 25 | 75 | 32.84 | 0.839385 | 0.171742 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
60ccc770ca96a11d7b161998731a553fd9e80f74 | 971 | py | Python | app/boardgames/migrations/0001_initial.py | collaer/boardgames | 51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210 | [
"MIT"
] | null | null | null | app/boardgames/migrations/0001_initial.py | collaer/boardgames | 51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210 | [
"MIT"
] | null | null | null | app/boardgames/migrations/0001_initial.py | collaer/boardgames | 51dd9ec257e5d5bab23a88b10a5f91fdd7fe4210 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-22 17:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BoardGame',
fields=[
('id', models.AutoField(... | 33.482759 | 134 | 0.547889 | 92 | 971 | 5.673913 | 0.695652 | 0.137931 | 0.068966 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033528 | 0.293512 | 971 | 28 | 135 | 34.678571 | 0.727405 | 0.044284 | 0 | 0 | 1 | 0 | 0.137149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60ccdf38e3f7af2b3782dcf2b849f63822752423 | 2,181 | py | Python | matcher/utils.py | BlueRidgeLabs/slack-meetups | aca850d4265f30f6d76bed1b1baeb2973c60c83d | [
"MIT"
] | 12 | 2019-05-23T03:55:06.000Z | 2022-02-25T07:11:27.000Z | matcher/utils.py | BlueRidgeLabs/slack-meetups | aca850d4265f30f6d76bed1b1baeb2973c60c83d | [
"MIT"
] | 11 | 2020-03-27T18:43:58.000Z | 2021-06-10T18:00:50.000Z | matcher/utils.py | BlueRidgeLabs/slack-meetups | aca850d4265f30f6d76bed1b1baeb2973c60c83d | [
"MIT"
] | 9 | 2019-11-15T23:18:44.000Z | 2022-02-10T19:27:37.000Z | import re
# regex for a user or channel mention at the beginning of a message
# example matches: " <@UJQ07L30Q> ", "<#C010P8N1ABB|interns>"
# interactive playground: https://regex101.com/r/2Z7eun/2
MENTION_PATTERN = r"(?:^\s?<@(.*?)>\s?)|(?:^\s?<#(.*?)\|.*?>\s?)"
def get_set_element(_set):
"""get the element fr... | 30.291667 | 78 | 0.643283 | 318 | 2,181 | 4.298742 | 0.279874 | 0.070227 | 0.043892 | 0.05267 | 0.433065 | 0.402341 | 0.383321 | 0.343819 | 0.340892 | 0.340892 | 0 | 0.020581 | 0.242549 | 2,181 | 71 | 79 | 30.71831 | 0.806901 | 0.371848 | 0 | 0.529412 | 0 | 0 | 0.13587 | 0.034161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.029412 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60d29eaedc8f1767e8af8cea16dd1cbc33c8db22 | 2,539 | py | Python | smaregipy/pos/customer_groups.py | shabaraba/SmaregiPy | 5447e5da1f21b38c0da1a759ee50b982de1522f7 | [
"MIT"
] | null | null | null | smaregipy/pos/customer_groups.py | shabaraba/SmaregiPy | 5447e5da1f21b38c0da1a759ee50b982de1522f7 | [
"MIT"
] | 1 | 2021-08-18T21:08:06.000Z | 2021-08-18T21:08:06.000Z | smaregipy/pos/customer_groups.py | shabaraba/SmaregiPy | 5447e5da1f21b38c0da1a759ee50b982de1522f7 | [
"MIT"
] | null | null | null | import datetime
from pydantic import Field
from typing import (
ClassVar,
List,
Dict,
Optional,
)
from smaregipy.base_api import (
BaseServiceRecordApi,
BaseServiceCollectionApi,
)
from smaregipy.utils import NoData, DictUtil
class CustomerGroup(BaseServiceRecordApi):
RECORD_NAME = 'custo... | 37.338235 | 93 | 0.747538 | 281 | 2,539 | 6.430605 | 0.27758 | 0.073049 | 0.115661 | 0.152186 | 0.453237 | 0.388489 | 0.382402 | 0.308799 | 0.308799 | 0.256779 | 0 | 0 | 0.159118 | 2,539 | 67 | 94 | 37.895522 | 0.84637 | 0 | 0 | 0.24 | 0 | 0 | 0.0814 | 0.039072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.66 | 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 |
60d863fc0a0729ad229e95ea37c2cad1dd4545ab | 2,165 | py | Python | toontown/fishing/FishCollection.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 99 | 2019-11-02T22:25:00.000Z | 2022-02-03T03:48:00.000Z | toontown/fishing/FishCollection.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 42 | 2019-11-03T05:31:08.000Z | 2022-03-16T22:50:32.000Z | toontown/fishing/FishCollection.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 57 | 2019-11-03T07:47:37.000Z | 2022-03-22T00:41:49.000Z | from . import FishBase
from . import FishGlobals
class FishCollection:
def __init__(self):
self.fishList = []
def __len__(self):
return len(self.fishList)
def getFish(self):
return self.fishList
def makeFromNetLists(self, genusList, speciesList, weightList):
self.fis... | 30.069444 | 99 | 0.597229 | 214 | 2,165 | 5.929907 | 0.247664 | 0.113475 | 0.035461 | 0.051221 | 0.297084 | 0.171001 | 0.171001 | 0.090623 | 0.063042 | 0 | 0 | 0.004011 | 0.309007 | 2,165 | 71 | 100 | 30.492958 | 0.844251 | 0 | 0 | 0.240741 | 0 | 0 | 0.012933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.037037 | 0.074074 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60d8c3596ef6ebab1b92b84940522e5139154989 | 1,550 | py | Python | lead/strategies/strategy_base.py | M4gicT0/Distribute | af903cdf6ae271f4b1152007ea4ba3928af57936 | [
"MIT"
] | null | null | null | lead/strategies/strategy_base.py | M4gicT0/Distribute | af903cdf6ae271f4b1152007ea4ba3928af57936 | [
"MIT"
] | null | null | null | lead/strategies/strategy_base.py | M4gicT0/Distribute | af903cdf6ae271f4b1152007ea4ba3928af57936 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
#
# Distributed under terms of the MIT license.
"""
Strategy base class
"""
from abc import ABCMeta, abstractmethod
from tinydb import TinyDB, Query
from node import Node
import json
class Strategy(object):
def __init__(self, this_controller, thi... | 25.833333 | 82 | 0.60129 | 184 | 1,550 | 4.978261 | 0.369565 | 0.068777 | 0.026201 | 0.034935 | 0.131004 | 0.091703 | 0.091703 | 0.091703 | 0.091703 | 0 | 0 | 0.001771 | 0.271613 | 1,550 | 59 | 83 | 26.271186 | 0.809566 | 0.07871 | 0 | 0.325 | 0 | 0 | 0.04311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0.075 | 0.1 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60d9b92e67e9782a6608f736efa327e02d317901 | 702 | py | Python | Easy/233/233.py | lw7360/dailyprogrammer | 7a0a4bdf20dd22ca96713958b479d963a15b09f5 | [
"MIT"
] | null | null | null | Easy/233/233.py | lw7360/dailyprogrammer | 7a0a4bdf20dd22ca96713958b479d963a15b09f5 | [
"MIT"
] | null | null | null | Easy/233/233.py | lw7360/dailyprogrammer | 7a0a4bdf20dd22ca96713958b479d963a15b09f5 | [
"MIT"
] | null | null | null | # https://www.reddit.com/r/dailyprogrammer/comments/3ltee2/20150921_challenge_233_easy_the_house_that_ascii/
import random
import sys
def main():
data = open(sys.argv[1]).read().splitlines()[1::]
door = random.randrange(len(data[-1]))
wideData = []
for row in data:
curStr = ''
for... | 21.9375 | 108 | 0.541311 | 78 | 702 | 4.679487 | 0.538462 | 0.049315 | 0.065753 | 0.136986 | 0.139726 | 0.139726 | 0 | 0 | 0 | 0 | 0 | 0.033264 | 0.314815 | 702 | 31 | 109 | 22.645161 | 0.725572 | 0.150997 | 0 | 0.130435 | 0 | 0 | 0.031987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60dac391ea8e7b79572392e5f5a6e6cef2504848 | 11,103 | py | Python | usr/callbacks/action/tools.py | uwitec/LEHome | a959a2fe64a23c58de7c0ff3254eae8c27732320 | [
"Apache-2.0"
] | 151 | 2015-01-25T10:25:29.000Z | 2022-03-15T10:04:09.000Z | usr/callbacks/action/tools.py | legendmohe/LEHome | a959a2fe64a23c58de7c0ff3254eae8c27732320 | [
"Apache-2.0"
] | null | null | null | usr/callbacks/action/tools.py | legendmohe/LEHome | a959a2fe64a23c58de7c0ff3254eae8c27732320 | [
"Apache-2.0"
] | 70 | 2015-02-02T02:35:48.000Z | 2021-05-13T09:51:08.000Z | #!/usr/bin/env python
# encoding: utf-8
from __future__ import division
from decimal import Decimal
import subprocess
import threading
import urllib2
import urllib
import httplib
import json
import re
import hashlib
import base64
# import zlib
from lib.command.runtime import UserInput
from lib.helper.CameraHelper ... | 33.442771 | 84 | 0.482482 | 1,213 | 11,103 | 4.252267 | 0.203627 | 0.04653 | 0.072703 | 0.087243 | 0.37786 | 0.367197 | 0.310586 | 0.246801 | 0.204731 | 0.158976 | 0 | 0.014601 | 0.407818 | 11,103 | 331 | 85 | 33.543807 | 0.769886 | 0.015311 | 0 | 0.337884 | 0 | 0 | 0.075599 | 0.002471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061433 | 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 |
60db218e039d083d014a00cf31bcf97c6c95ef51 | 286 | py | Python | src/fix_code_1.py | Athenian-Computer-Science/numeric-operations-1-practice-template | cdfe370ced98c5e4c770bb89bb7faf0da31ea985 | [
"Apache-2.0"
] | null | null | null | src/fix_code_1.py | Athenian-Computer-Science/numeric-operations-1-practice-template | cdfe370ced98c5e4c770bb89bb7faf0da31ea985 | [
"Apache-2.0"
] | null | null | null | src/fix_code_1.py | Athenian-Computer-Science/numeric-operations-1-practice-template | cdfe370ced98c5e4c770bb89bb7faf0da31ea985 | [
"Apache-2.0"
] | null | null | null | #############################
# Collaborators: (enter people or resources who/that helped you)
# If none, write none
#
#
#############################
base = input('Enter the base: ")
height =
area = # Calculate the area of the triangle
print("The area of the triangle is (area).") | 23.833333 | 64 | 0.548951 | 34 | 286 | 4.617647 | 0.647059 | 0.089172 | 0.11465 | 0.152866 | 0.254777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160839 | 286 | 12 | 65 | 23.833333 | 0.654167 | 0.409091 | 0 | 0 | 0 | 0 | 0.330189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60def5370c10bc67986c4becccbe96488e2d1a66 | 3,924 | py | Python | venv/Lib/site-packages/pafy/g.py | DavidJohnKelly/YoutubeDownloader | 29cb4aa90946803474959f60d7b7e2f07c6e4de2 | [
"MIT"
] | 2 | 2021-10-05T03:09:57.000Z | 2022-01-12T09:50:31.000Z | venv/Lib/site-packages/pafy/g.py | DavidJohnKelly/YoutubeDownloader | 29cb4aa90946803474959f60d7b7e2f07c6e4de2 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/pafy/g.py | DavidJohnKelly/YoutubeDownloader | 29cb4aa90946803474959f60d7b7e2f07c6e4de2 | [
"MIT"
] | 1 | 2021-05-23T17:10:20.000Z | 2021-05-23T17:10:20.000Z | import sys
if sys.version_info[:2] >= (3, 0):
# pylint: disable=E0611,F0401,I0011
from urllib.request import build_opener
else:
from urllib2 import build_opener
from . import __version__
urls = {
'gdata': "https://www.googleapis.com/youtube/v3/",
'watchv': "http://www.youtube.com/watch?v=%s",
... | 41.305263 | 77 | 0.509429 | 438 | 3,924 | 4.495434 | 0.46347 | 0.082275 | 0.073134 | 0.019807 | 0.024378 | 0.024378 | 0 | 0 | 0 | 0 | 0 | 0.181139 | 0.181193 | 3,924 | 94 | 78 | 41.744681 | 0.431684 | 0.028797 | 0 | 0 | 0 | 0 | 0.464004 | 0.034945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045977 | 0 | 0.045977 | 0 | 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 |
60e50a2d4456ade56ee11c29fccdf4c73a092641 | 5,590 | py | Python | sympy/polys/tests/test_monomialtools.py | ichuang/sympy | 18afbcc7df2ebf2280ea5a88fde8ece34182ae71 | [
"BSD-3-Clause"
] | 1 | 2015-10-06T21:51:51.000Z | 2015-10-06T21:51:51.000Z | sympy/polys/tests/test_monomialtools.py | ichuang/sympy | 18afbcc7df2ebf2280ea5a88fde8ece34182ae71 | [
"BSD-3-Clause"
] | null | null | null | sympy/polys/tests/test_monomialtools.py | ichuang/sympy | 18afbcc7df2ebf2280ea5a88fde8ece34182ae71 | [
"BSD-3-Clause"
] | null | null | null | """Tests for tools and arithmetics for monomials of distributed polynomials. """
from sympy.polys.monomialtools import (
monomials, monomial_count,
monomial_key, lex, grlex, grevlex,
monomial_mul, monomial_div,
monomial_gcd, monomial_lcm,
monomial_max, monomial_min,
monomial_divides,
Monomi... | 29.114583 | 97 | 0.549911 | 998 | 5,590 | 3.023046 | 0.073146 | 0.041763 | 0.032814 | 0.065628 | 0.433875 | 0.327478 | 0.241299 | 0.191913 | 0.129267 | 0.042426 | 0 | 0.102831 | 0.210197 | 5,590 | 191 | 98 | 29.267016 | 0.580521 | 0.013059 | 0 | 0 | 0 | 0 | 0.02196 | 0 | 0 | 0 | 0 | 0 | 0.731884 | 1 | 0.115942 | false | 0 | 0.028986 | 0 | 0.144928 | 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 |
60e763dc935a4e4a40e12663f5266d53075d9cc0 | 732 | py | Python | utils/arrival_overlaps.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | utils/arrival_overlaps.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | utils/arrival_overlaps.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | import sigvisa.database.db
from sigvisa.database.dataset import *
import sigvisa.utils.geog
cursor = database.db.connect().cursor()
detections, arid2num = read_detections(cursor, 1237680000, 1237680000 + 168 * 3600, arrival_table="leb_arrival", noarrays=False)
last_det = dict()
overlaps = 0
for det in detections:
... | 31.826087 | 153 | 0.669399 | 103 | 732 | 4.660194 | 0.495146 | 0.072917 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059028 | 0.213115 | 732 | 22 | 154 | 33.272727 | 0.774306 | 0 | 0 | 0 | 0 | 0 | 0.165301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.