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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3667faea99d9e44cf1ec814efbac09de88c252f2 | 2,255 | py | Python | cassiopeia-diskstore/cassiopeia_diskstore/championgg.py | mrtolkien/cassiopeia-datastores | 1fbc6f9163ec4a5b4efdc892c219b5785f62b274 | [
"MIT"
] | 3 | 2017-11-22T20:38:18.000Z | 2018-09-04T07:48:55.000Z | cassiopeia-diskstore/cassiopeia_diskstore/championgg.py | mrtolkien/cassiopeia-datastores | 1fbc6f9163ec4a5b4efdc892c219b5785f62b274 | [
"MIT"
] | 12 | 2018-06-05T16:08:36.000Z | 2020-11-26T19:16:59.000Z | cassiopeia-diskstore/cassiopeia_diskstore/championgg.py | mrtolkien/cassiopeia-datastores | 1fbc6f9163ec4a5b4efdc892c219b5785f62b274 | [
"MIT"
] | 10 | 2017-11-14T18:59:10.000Z | 2020-09-17T15:18:29.000Z | from typing import Type, TypeVar, MutableMapping, Any, Iterable
from datapipelines import DataSource, DataSink, PipelineContext, Query, validate_query
from cassiopeia_championgg.dto import ChampionGGStatsListDto, ChampionGGStatsDto
from cassiopeia.datastores.uniquekeys import convert_region_to_platform
from .common i... | 43.365385 | 124 | 0.66031 | 232 | 2,255 | 6.228448 | 0.306034 | 0.091349 | 0.107958 | 0.035986 | 0.347405 | 0.299654 | 0.209689 | 0.174394 | 0.174394 | 0.088581 | 0 | 0 | 0.233259 | 2,255 | 51 | 125 | 44.215686 | 0.835743 | 0 | 0 | 0.25641 | 0 | 0 | 0.050111 | 0.035477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.102564 | 0.128205 | 0 | 0.358974 | 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 |
366887a1056798b43b8bf1750a891210075a1524 | 5,788 | py | Python | src/cogs/fun-commands.py | ShubhamPatilsd/johnpeter-discord | 40738f8df57f85275eb4887ab2ed9a9b96ba9e40 | [
"MIT"
] | 1 | 2021-07-08T09:03:08.000Z | 2021-07-08T09:03:08.000Z | src/cogs/fun-commands.py | vidhyanijadala/johnpeter-discord | 40738f8df57f85275eb4887ab2ed9a9b96ba9e40 | [
"MIT"
] | null | null | null | src/cogs/fun-commands.py | vidhyanijadala/johnpeter-discord | 40738f8df57f85275eb4887ab2ed9a9b96ba9e40 | [
"MIT"
] | 1 | 2021-07-08T09:03:04.000Z | 2021-07-08T09:03:04.000Z | import asyncio
import json
import os
import random
import re
import urllib
import urllib.request
from glob import glob
from os import getenv
from random import choice
import discord
from discord.ext import commands
from utils.cms import get_sponsor_intro, get_sponsor_audio
from utils.commands import only_random, requ... | 35.292683 | 143 | 0.609537 | 698 | 5,788 | 4.975645 | 0.30659 | 0.029945 | 0.054708 | 0.046646 | 0.158077 | 0.116902 | 0.116902 | 0.085805 | 0.04319 | 0.04319 | 0 | 0.023842 | 0.246372 | 5,788 | 163 | 144 | 35.509202 | 0.772352 | 0.008639 | 0 | 0.166667 | 0 | 0.007576 | 0.202231 | 0.067115 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007576 | 0.106061 | null | null | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
366e02860b9652ab88acf006189e3756c87e9843 | 575 | py | Python | logger/hum_test3.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | 1 | 2015-12-23T04:27:16.000Z | 2015-12-23T04:27:16.000Z | logger/hum_test3.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | logger/hum_test3.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | # this example came from http://www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=29454&sid=4543fbd8f48478644e608d741309c12b&start=25
import smbus
import time
b = smbus.SMBus(1)
d = []
addr = 0x27
b.write_quick(addr)
time.sleep(0.05)
d = b.read_i2c_block_data(addr, 0,4)
status = (d[0] & 0xc0) >> 6
humidity = (((d[0] & 0x... | 31.944444 | 131 | 0.634783 | 94 | 575 | 3.840426 | 0.62766 | 0.01108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168724 | 0.154783 | 575 | 17 | 132 | 33.823529 | 0.574074 | 0.224348 | 0 | 0 | 0 | 0 | 0.123874 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
366e485c9bc0322e636a5736840956b42775c986 | 4,493 | py | Python | vendor/python-pika/tests/frame_tests.py | suthat/signal | 9730f7ee1a3b00a65eb4d9a2cce4f3a5eee33451 | [
"Apache-2.0"
] | 1 | 2018-09-02T22:28:56.000Z | 2018-09-02T22:28:56.000Z | vendor/python-pika/tests/frame_tests.py | suthat/signal | 9730f7ee1a3b00a65eb4d9a2cce4f3a5eee33451 | [
"Apache-2.0"
] | null | null | null | vendor/python-pika/tests/frame_tests.py | suthat/signal | 9730f7ee1a3b00a65eb4d9a2cce4f3a5eee33451 | [
"Apache-2.0"
] | null | null | null | """
Tests for pika.frame
"""
try:
import unittest2 as unittest
except ImportError:
import unittest
from pika import exceptions
from pika import frame
from pika import spec
class FrameTests(unittest.TestCase):
BASIC_ACK = ('\x01\x00\x01\x00\x00\x00\r\x00<\x00P\x00\x00\x00\x00\x00\x00'
'... | 38.401709 | 79 | 0.672157 | 565 | 4,493 | 5.084956 | 0.159292 | 0.064741 | 0.068918 | 0.062652 | 0.482423 | 0.420118 | 0.387052 | 0.337974 | 0.26488 | 0.180299 | 0 | 0.049771 | 0.221901 | 4,493 | 116 | 80 | 38.732759 | 0.772025 | 0.004451 | 0 | 0.047619 | 0 | 0.02381 | 0.081317 | 0.058916 | 0 | 0 | 0.00224 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.440476 | 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 |
366f7150d8d059f7a7975d57fa08b372b8cccd5e | 2,126 | py | Python | hunter/mlops/experiments/experiment.py | akamlani/hunter-core | 98b08b69fc460eb4cb75e67a36f86e80e03029bd | [
"MIT"
] | null | null | null | hunter/mlops/experiments/experiment.py | akamlani/hunter-core | 98b08b69fc460eb4cb75e67a36f86e80e03029bd | [
"MIT"
] | null | null | null | hunter/mlops/experiments/experiment.py | akamlani/hunter-core | 98b08b69fc460eb4cb75e67a36f86e80e03029bd | [
"MIT"
] | null | null | null | import numpy as np
import os
import time
import shutil
import logging
logger = logging.getLogger(__name__)
class Experiment(object):
"""Create experiment directory structure, track, and store data.
To be used as a base class or derived `Experiment` classes.
"""
def __init__(self, project_... | 27.973684 | 122 | 0.62841 | 272 | 2,126 | 4.643382 | 0.334559 | 0.055424 | 0.035629 | 0.051465 | 0.068092 | 0.041172 | 0 | 0 | 0 | 0 | 0 | 0.001297 | 0.274694 | 2,126 | 75 | 123 | 28.346667 | 0.817769 | 0.193791 | 0 | 0.069767 | 0 | 0 | 0.044242 | 0.020606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.116279 | 0.093023 | 0.465116 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36720adea01a0055ba50050d6d0540ddb952c604 | 2,926 | py | Python | nc/tests/test_views.py | OpenDataPolicingNC/Traffic-Stops | 74e0d16ad2ac32addca6f04d34c2ddf36d023990 | [
"MIT"
] | 25 | 2015-09-12T23:10:52.000Z | 2021-03-24T08:39:46.000Z | nc/tests/test_views.py | OpenDataPolicingNC/Traffic-Stops | 74e0d16ad2ac32addca6f04d34c2ddf36d023990 | [
"MIT"
] | 159 | 2015-07-01T03:57:23.000Z | 2021-04-17T21:09:19.000Z | nc/tests/test_views.py | copelco/NC-Traffic-Stops | 74e0d16ad2ac32addca6f04d34c2ddf36d023990 | [
"MIT"
] | 8 | 2015-10-02T16:56:40.000Z | 2020-10-18T01:16:29.000Z | from django.core.urlresolvers import reverse
from django.test import TestCase
from nc.tests import factories
class ViewTests(TestCase):
multi_db = True
def test_home(self):
response = self.client.get(reverse('nc:home'))
self.assertEqual(200, response.status_code)
def test_search(self):
... | 39.013333 | 81 | 0.66473 | 348 | 2,926 | 5.416667 | 0.272989 | 0.186737 | 0.22069 | 0.066844 | 0.476923 | 0.435544 | 0.435544 | 0.378249 | 0.312997 | 0.287003 | 0 | 0.010577 | 0.224539 | 2,926 | 74 | 82 | 39.540541 | 0.820185 | 0.14149 | 0 | 0.117647 | 0 | 0 | 0.08502 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.215686 | 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 |
3674bf513c78cb14c7a7197f8717bd835994b08c | 9,730 | py | Python | config/settings/defaults.py | lucaluca/palimpsest | 64565d1b188d68bc978253a21a98440b769e26ee | [
"BSD-3-Clause"
] | null | null | null | config/settings/defaults.py | lucaluca/palimpsest | 64565d1b188d68bc978253a21a98440b769e26ee | [
"BSD-3-Clause"
] | null | null | null | config/settings/defaults.py | lucaluca/palimpsest | 64565d1b188d68bc978253a21a98440b769e26ee | [
"BSD-3-Clause"
] | null | null | null | """
Base settings to build other settings files upon.
"""
import environ
ROOT_DIR = environ.Path(__file__) - 3 # (palimpsest/config/settings/base.py - 3 = palimpsest/)
APPS_DIR = ROOT_DIR.path('palimpsest')
env = environ.Env()
READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False)
if READ_DOT_ENV_... | 40.041152 | 100 | 0.626619 | 957 | 9,730 | 6.23302 | 0.231975 | 0.054484 | 0.088516 | 0.100587 | 0.342498 | 0.333445 | 0.302263 | 0.296731 | 0.226991 | 0.161609 | 0 | 0.002882 | 0.10853 | 9,730 | 242 | 101 | 40.206612 | 0.684805 | 0.466598 | 0 | 0.021583 | 0 | 0 | 0.491522 | 0.395308 | 0 | 0 | 0 | 0.004132 | 0 | 1 | 0 | false | 0.079137 | 0.007194 | 0 | 0.007194 | 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 |
3674f6fa0841c2939ec3314e0546dac6ce11be16 | 1,717 | py | Python | params_tuning/ls_iter_n/out_comparator.py | bleakTwig/ophs_grasp | 3e3986154d096a476805269cb818f8c8709a7bda | [
"MIT"
] | 3 | 2019-04-21T06:28:00.000Z | 2022-01-20T15:39:34.000Z | params_tuning/ls_iter_n/out_comparator.py | bleakTwig/ophs_grasp | 3e3986154d096a476805269cb818f8c8709a7bda | [
"MIT"
] | 1 | 2020-03-08T07:21:52.000Z | 2022-01-20T15:40:04.000Z | params_tuning/ls_iter_n/out_comparator.py | bleakTwig/ophs_grasp | 3e3986154d096a476805269cb818f8c8709a7bda | [
"MIT"
] | 2 | 2019-11-13T13:05:06.000Z | 2020-05-21T18:09:03.000Z | INSTANCES = 405
ITERS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 50, 100]
N_ITERS = len(ITERS)
# === RESULTS GATHERING ====================================================== #
# results_m is a [INSTANCES][N_ITERS] matrix to store every test result
results_m = [[0 for x in range(... | 36.531915 | 95 | 0.447292 | 226 | 1,717 | 3.300885 | 0.292035 | 0.088472 | 0.096515 | 0.104558 | 0.375335 | 0.36059 | 0.306971 | 0.172922 | 0 | 0 | 0 | 0.049927 | 0.206756 | 1,717 | 46 | 96 | 37.326087 | 0.497797 | 0.221316 | 0 | 0.212121 | 0 | 0 | 0.092006 | 0.060332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 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 |
3678d7bd470a57edb6cab13b9b66d70383e92ec4 | 457 | py | Python | data_augmentation/eda/image/transforms/normalize.py | simran-arora/emmental-tutorials | 249a82a57be58e960408a45e2e0daa72980d210a | [
"MIT"
] | null | null | null | data_augmentation/eda/image/transforms/normalize.py | simran-arora/emmental-tutorials | 249a82a57be58e960408a45e2e0daa72980d210a | [
"MIT"
] | null | null | null | data_augmentation/eda/image/transforms/normalize.py | simran-arora/emmental-tutorials | 249a82a57be58e960408a45e2e0daa72980d210a | [
"MIT"
] | null | null | null | import torchvision.transforms as transforms
from eda.image.transforms.transform import EdaTransform
class Normalize(EdaTransform):
def __init__(self, mean, std, name=None, prob=1.0, level=0):
self.mean = mean
self.std = std
self.transform_func = transforms.Normalize(mean, std)
su... | 28.5625 | 64 | 0.695842 | 59 | 457 | 5.186441 | 0.491525 | 0.052288 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.199125 | 457 | 15 | 65 | 30.466667 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3679ff23a41d265863b5224bc85c9f29783e0ef7 | 894 | py | Python | lemon_markets/tests/ctest_account.py | leonhma/lemon_markets_sdk | 2739799e6f6b8fa781af8b19e92c32068565cdd3 | [
"MIT"
] | null | null | null | lemon_markets/tests/ctest_account.py | leonhma/lemon_markets_sdk | 2739799e6f6b8fa781af8b19e92c32068565cdd3 | [
"MIT"
] | 1 | 2021-09-29T16:32:49.000Z | 2021-09-29T16:56:26.000Z | lemon_markets/tests/ctest_account.py | leonhma/lemon_markets_sdk | 2739799e6f6b8fa781af8b19e92c32068565cdd3 | [
"MIT"
] | null | null | null | from os import environ
from unittest import TestCase
from lemon_markets.account import Account
client_id = environ.get('CLIENT_ID')
client_token = environ.get('CLIENT_TOKEN')
class _TestAccount(TestCase):
def setUp(self):
try:
self.account = Account(client_id, client_token)
except Ex... | 27.9375 | 62 | 0.682327 | 116 | 894 | 4.991379 | 0.362069 | 0.132988 | 0.046632 | 0.07772 | 0.319516 | 0.29361 | 0.29361 | 0.186529 | 0.186529 | 0.186529 | 0 | 0 | 0.223714 | 894 | 31 | 63 | 28.83871 | 0.834294 | 0 | 0 | 0.173913 | 0 | 0 | 0.065996 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
367fa896207ba09a4df55eba008b8c69a5715343 | 3,396 | py | Python | pandapower/pypower/idx_bus.py | bergkvist/pandapower | 450bbd99888e7e5913905b20b848ee1cfa669ee8 | [
"BSD-3-Clause"
] | 1 | 2020-04-09T08:03:48.000Z | 2020-04-09T08:03:48.000Z | pandapower/pypower/idx_bus.py | bergkvist/pandapower | 450bbd99888e7e5913905b20b848ee1cfa669ee8 | [
"BSD-3-Clause"
] | 1 | 2019-04-17T14:58:53.000Z | 2019-04-17T14:58:53.000Z | pandapower/pypower/idx_bus.py | gdgarcia/pandapower | 630e3278ca012535f78282ae73f1b86f3fe932fc | [
"BSD-3-Clause"
] | 1 | 2020-11-03T01:40:38.000Z | 2020-11-03T01:40:38.000Z | # -*- coding: utf-8 -*-
# Copyright 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Copyright (c) 2016-2020 by University of Kassel and Fraunhofer Institute for Energy Economics
# and Energy System Technology (IEE), Kassel. ... | 38.157303 | 95 | 0.654594 | 573 | 3,396 | 3.848168 | 0.331588 | 0.012698 | 0.046259 | 0.04898 | 0.395465 | 0.238549 | 0.238549 | 0.238549 | 0.136054 | 0.136054 | 0 | 0.054224 | 0.250589 | 3,396 | 88 | 96 | 38.590909 | 0.812181 | 0.895465 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3682efa29fdf319c29d1fc0f9982530abedd7083 | 2,586 | py | Python | example.py | vinhntb/geo_redis | 2b79ab844bdf1a56e442393911437c76449bedb0 | [
"MIT"
] | null | null | null | example.py | vinhntb/geo_redis | 2b79ab844bdf1a56e442393911437c76449bedb0 | [
"MIT"
] | null | null | null | example.py | vinhntb/geo_redis | 2b79ab844bdf1a56e442393911437c76449bedb0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# !/usr/bin/python
#
# example.py
#
#
# Created by vinhntb on 6/27/17.
# Copyright (c) 2017 geo_redis. All rights reserved.
import sys
from bunch import Bunch
from constants import GEO_USER_VISITED
from geo_redis.geo_redis import GeoRedis
def add_user_visited():
user_1 = Bunch(longitu... | 35.424658 | 119 | 0.655066 | 377 | 2,586 | 4.270557 | 0.291777 | 0.081988 | 0.086957 | 0.074534 | 0.352795 | 0.329814 | 0.238509 | 0.238509 | 0 | 0 | 0 | 0.101074 | 0.208043 | 2,586 | 72 | 120 | 35.916667 | 0.685059 | 0.119876 | 0 | 0.05 | 0 | 0 | 0.081026 | 0.020513 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
368eabb014f813c693697e1b58b1279e93227806 | 1,070 | py | Python | BowlingGame/bowling_game_test.py | WisWang/code-kata | 179188e4e42686807ab3691e0fb68edac08304be | [
"MIT"
] | 2 | 2019-06-17T03:31:13.000Z | 2019-06-17T03:31:16.000Z | BowlingGame/bowling_game_test.py | WisWang/code-kata | 179188e4e42686807ab3691e0fb68edac08304be | [
"MIT"
] | null | null | null | BowlingGame/bowling_game_test.py | WisWang/code-kata | 179188e4e42686807ab3691e0fb68edac08304be | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 - hongzhi.wang <hongzhi.wang@moji.com>
'''
Author: hongzhi.wang
Create Date: 2019-09-04
Modify Date: 2019-09-04
'''
import unittest
from .bowling_game import BowlingGame
class TestBowlingGame(unittest.TestCase):
def setUp(self):
self.g... | 23.777778 | 60 | 0.626168 | 159 | 1,070 | 4.069182 | 0.408805 | 0.069552 | 0.111283 | 0.098918 | 0.146832 | 0.064915 | 0 | 0 | 0 | 0 | 0 | 0.062271 | 0.234579 | 1,070 | 45 | 61 | 23.777778 | 0.727717 | 0.157944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.269231 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
369efff06f7a72f84b0e9a781b19f53a96b5ca56 | 1,610 | py | Python | Francisco_Trujillo/Assignments/registration/serverre.py | webguru001/Python-Django-Web | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | [
"MIT"
] | 5 | 2019-05-17T01:30:02.000Z | 2021-06-17T21:02:58.000Z | Francisco_Trujillo/Assignments/registration/serverre.py | curest0x1021/Python-Django-Web | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | [
"MIT"
] | null | null | null | Francisco_Trujillo/Assignments/registration/serverre.py | curest0x1021/Python-Django-Web | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, redirect, session, flash
import re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
app = Flask(__name__)
app.secret_key = 'irtndvieurnviur'
@app.route('/')
def index():
return render_template("index.html")
#check all for empty and pass... | 28.245614 | 82 | 0.636646 | 209 | 1,610 | 4.842105 | 0.363636 | 0.083004 | 0.035573 | 0.029644 | 0.014822 | 0.014822 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.207453 | 1,610 | 56 | 83 | 28.75 | 0.784483 | 0.052795 | 0 | 0.318182 | 0 | 0.022727 | 0.21682 | 0.029566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.159091 | 0.045455 | 0.045455 | 0.477273 | 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 |
369f8e2a1f4297f6ea89787a4d4e52bb3722aa03 | 63,998 | py | Python | pedantic/tests/tests_pedantic.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | pedantic/tests/tests_pedantic.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | pedantic/tests/tests_pedantic.py | LostInDarkMath/Pedantic-python-decorators | 32ed54c9593e80f63c0499093cb07847d8a5e1df | [
"Apache-2.0"
] | null | null | null | import os.path
import sys
import types
import typing
import unittest
from datetime import datetime, date
from functools import wraps
from io import BytesIO, StringIO
from typing import List, Tuple, Callable, Any, Optional, Union, Dict, Set, FrozenSet, NewType, TypeVar, Sequence, \
AbstractSet, Iterator, NamedTuple,... | 26.833543 | 117 | 0.544439 | 7,557 | 63,998 | 4.473601 | 0.052666 | 0.081019 | 0.088739 | 0.108853 | 0.757742 | 0.696039 | 0.654154 | 0.585027 | 0.512438 | 0.446535 | 0 | 0.021669 | 0.338042 | 63,998 | 2,385 | 118 | 26.833543 | 0.776343 | 0.026266 | 0 | 0.618775 | 0 | 0 | 0.008728 | 0 | 0 | 0 | 0 | 0 | 0.092158 | 1 | 0.293646 | false | 0.043503 | 0.009159 | 0.073841 | 0.420149 | 0.032055 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
36a1039f62de29095d8932b740524a88b0801df0 | 486 | py | Python | jobs/migrations/0005_job_date.py | AkinWilderman/myPort | 3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c | [
"Apache-2.0"
] | null | null | null | jobs/migrations/0005_job_date.py | AkinWilderman/myPort | 3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c | [
"Apache-2.0"
] | null | null | null | jobs/migrations/0005_job_date.py | AkinWilderman/myPort | 3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.7 on 2019-07-06 04:48
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_auto_20190706_0012'),
]
operations = [
migrations.AddField(
model_name='job',
... | 23.142857 | 95 | 0.625514 | 54 | 486 | 5.518519 | 0.740741 | 0.073826 | 0.127517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086351 | 0.261317 | 486 | 20 | 96 | 24.3 | 0.743733 | 0.092593 | 0 | 0 | 1 | 0 | 0.08656 | 0.052392 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
36a2d86f1e49ac5520b342c8f2a78f162854b298 | 304 | py | Python | main.py | shoulderhu/heroku-ctf-www | f1e136f8d93034d34a60702517b32fc0245dac38 | [
"MIT"
] | null | null | null | main.py | shoulderhu/heroku-ctf-www | f1e136f8d93034d34a60702517b32fc0245dac38 | [
"MIT"
] | null | null | null | main.py | shoulderhu/heroku-ctf-www | f1e136f8d93034d34a60702517b32fc0245dac38 | [
"MIT"
] | null | null | null | import os
from app import create_app
from dotenv import load_dotenv
# .env
dotenv_path = os.path.join(os.path.dirname(__file__), ".env")
if os.path.exists(dotenv_path):
load_dotenv(dotenv_path)
app = create_app(os.environ.get("FLASK_CONFIG") or "default")
if __name__ == "__main__":
app.run() | 21.714286 | 61 | 0.733553 | 48 | 304 | 4.229167 | 0.479167 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 304 | 14 | 62 | 21.714286 | 0.768939 | 0.013158 | 0 | 0 | 0 | 0 | 0.103679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
36a374d5b35c8fab447dcc5b470ddd3335b4f06d | 5,628 | py | Python | src/apps/devices/cubelib/emulator.py | ajintom/music_sync | 0d7bc302502d28e4be4f0a0be1fc9bafb706f651 | [
"MIT"
] | null | null | null | src/apps/devices/cubelib/emulator.py | ajintom/music_sync | 0d7bc302502d28e4be4f0a0be1fc9bafb706f651 | [
"MIT"
] | null | null | null | src/apps/devices/cubelib/emulator.py | ajintom/music_sync | 0d7bc302502d28e4be4f0a0be1fc9bafb706f651 | [
"MIT"
] | null | null | null | #!/bin/env python
#using the wireframe module downloaded from http://www.petercollingridge.co.uk/
import mywireframe as wireframe
import pygame
from pygame import display
from pygame.draw import *
import time
import numpy
key_to_function = {
pygame.K_LEFT: (lambda x: x.translateAll('x', -10)),
pygame.K_RIGHT... | 33.903614 | 254 | 0.600569 | 859 | 5,628 | 3.892899 | 0.214203 | 0.035586 | 0.0311 | 0.023923 | 0.283792 | 0.241029 | 0.226077 | 0.165072 | 0.129187 | 0.086124 | 0 | 0.046106 | 0.256219 | 5,628 | 165 | 255 | 34.109091 | 0.752747 | 0.071784 | 0 | 0.203252 | 0 | 0 | 0.009261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04878 | 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 |
36a6702d9737607ae7b2838e31ebcda4772cd182 | 810 | py | Python | src/topbuzz/management/commands/topbuzz_stat.py | lucemia/gnews | ac537062d8e34bb63fe0bf95c2affc8d2771d392 | [
"MIT"
] | null | null | null | src/topbuzz/management/commands/topbuzz_stat.py | lucemia/gnews | ac537062d8e34bb63fe0bf95c2affc8d2771d392 | [
"MIT"
] | null | null | null | src/topbuzz/management/commands/topbuzz_stat.py | lucemia/gnews | ac537062d8e34bb63fe0bf95c2affc8d2771d392 | [
"MIT"
] | null | null | null | # -*- encoding=utf8 -*-
from django.core.management.base import BaseCommand
from datetime import timedelta, datetime
from topbuzz.tasks import stat
import argparse
def valid_date(s):
try:
return datetime.strptime(s, "%Y-%m-%d")
except ValueError:
msg = "Not a valid date: '{0}'.".format(s)
... | 30 | 97 | 0.675309 | 103 | 810 | 5.194175 | 0.524272 | 0.06729 | 0.127103 | 0.063551 | 0.127103 | 0.127103 | 0.127103 | 0 | 0 | 0 | 0 | 0.00304 | 0.187654 | 810 | 26 | 98 | 31.153846 | 0.81003 | 0.025926 | 0 | 0 | 0 | 0 | 0.138501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36a935bd4ad858c3f4e568ba75cc0dc9d2989f18 | 2,410 | py | Python | tests/crud/test_crud_user.py | congdh/fastapi-realworld | 42c8630aedf594b69bc96a327b04dfe636a785fe | [
"MIT"
] | null | null | null | tests/crud/test_crud_user.py | congdh/fastapi-realworld | 42c8630aedf594b69bc96a327b04dfe636a785fe | [
"MIT"
] | null | null | null | tests/crud/test_crud_user.py | congdh/fastapi-realworld | 42c8630aedf594b69bc96a327b04dfe636a785fe | [
"MIT"
] | null | null | null | import pytest
from faker import Faker
from fastapi.encoders import jsonable_encoder
from pydantic.types import SecretStr
from sqlalchemy.orm import Session
from app import crud, schemas
from app.core import security
def test_create_user(db: Session) -> None:
faker = Faker()
profile = faker.profile()
emai... | 31.298701 | 78 | 0.702075 | 301 | 2,410 | 5.465116 | 0.186047 | 0.042553 | 0.080243 | 0.082067 | 0.565957 | 0.502736 | 0.502736 | 0.502736 | 0.47234 | 0.47234 | 0 | 0.002047 | 0.189212 | 2,410 | 76 | 79 | 31.710526 | 0.839816 | 0 | 0 | 0.460317 | 0 | 0 | 0.053112 | 0.009544 | 0 | 0 | 0 | 0 | 0.174603 | 1 | 0.047619 | false | 0.190476 | 0.111111 | 0 | 0.15873 | 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 |
36ac48e2ab27df3c0677dca73c8d8951f0e9ae52 | 1,156 | py | Python | principles-of-computing/Practice Exercises/Solitaire Mancala/Solitaire Mancala/poc_simpletest.py | kingwatam/misc-python | 8a10f14eb79b9d93bbe889175fe5ab532da73c70 | [
"MIT"
] | 1 | 2019-09-03T03:47:39.000Z | 2019-09-03T03:47:39.000Z | principles-of-computing/Practice Exercises/Solitaire Mancala/Solitaire Mancala/poc_simpletest.py | kingwatam/misc-python | 8a10f14eb79b9d93bbe889175fe5ab532da73c70 | [
"MIT"
] | null | null | null | principles-of-computing/Practice Exercises/Solitaire Mancala/Solitaire Mancala/poc_simpletest.py | kingwatam/misc-python | 8a10f14eb79b9d93bbe889175fe5ab532da73c70 | [
"MIT"
] | null | null | null | """
Lightweight testing class inspired by unittest from Pyunit
https://docs.python.org/2/library/unittest.html
Note that code is designed to be much simpler than unittest
and does NOT replicate uinittest functionality
"""
class TestSuite:
"""
Create a suite of tests similar to unittest
"""
d... | 31.243243 | 62 | 0.554498 | 122 | 1,156 | 5.172131 | 0.540984 | 0.101426 | 0.066561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006676 | 0.352076 | 1,156 | 37 | 63 | 31.243243 | 0.835781 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36ad7dd9946b30b8edbad769fd9fe67f2dcb1c2d | 2,014 | py | Python | jwc_core/jwc_sender.py | Inetgeek/Notice-Pusher | 052e4ecbf7520ae93e16af6ae89f560d6a6d888a | [
"MIT"
] | 2 | 2021-09-16T04:19:52.000Z | 2022-03-28T03:48:29.000Z | jwc_core/jwc_sender.py | Inetgeek/Notice-Pusher | 052e4ecbf7520ae93e16af6ae89f560d6a6d888a | [
"MIT"
] | null | null | null | jwc_core/jwc_sender.py | Inetgeek/Notice-Pusher | 052e4ecbf7520ae93e16af6ae89f560d6a6d888a | [
"MIT"
] | 1 | 2021-09-16T04:21:08.000Z | 2021-09-16T04:21:08.000Z | #!/usr/bin/python3
# coding: utf-8
import sys
import os, time, datetime
import smtplib
from email import (header)
from email.mime import (text, multipart)
with open(r'/home/jwc_notice.txt', "r+", encoding="utf-8") as file: #自行更改路径
a = file.read()
send_title = "机器人风险提示"
send_head = '<p style="color:#507383">亲爱的主人... | 36.618182 | 205 | 0.600298 | 267 | 2,014 | 4.370787 | 0.524345 | 0.017138 | 0.015424 | 0.022279 | 0.111397 | 0.075407 | 0.075407 | 0.075407 | 0.075407 | 0.075407 | 0 | 0.023422 | 0.236842 | 2,014 | 54 | 206 | 37.296296 | 0.735849 | 0.07994 | 0 | 0.222222 | 0 | 0.022222 | 0.221982 | 0.088793 | 0.022222 | 0 | 0 | 0 | 0 | 0 | null | null | 0.044444 | 0.111111 | 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 |
36b50824ddb6f2e96f0d94699793a7e9265c44f3 | 518 | py | Python | models/IFR_generalized_SB.py | rileymcmorrow/C-SFRAT | c696942940118172dfb2c3b8cc27b8d2fd5a5a17 | [
"MIT"
] | null | null | null | models/IFR_generalized_SB.py | rileymcmorrow/C-SFRAT | c696942940118172dfb2c3b8cc27b8d2fd5a5a17 | [
"MIT"
] | 3 | 2021-03-09T16:13:59.000Z | 2021-09-20T16:50:07.000Z | models/IFR_generalized_SB.py | rileymcmorrow/C-SFRAT | c696942940118172dfb2c3b8cc27b8d2fd5a5a17 | [
"MIT"
] | 4 | 2021-07-20T18:01:12.000Z | 2021-11-22T10:13:35.000Z | from core.model import Model
class IFR_Generalized_SB(Model):
name = "IFR generalized Salvia & Bollinger"
shortName = "IFRGSB"
# initial parameter estimates
beta0 = 0.01
parameterEstimates = (0.1, 0.1)
def hazardSymbolic(self, i, args):
# args -> (c, alpha)
f = 1... | 24.666667 | 50 | 0.525097 | 66 | 518 | 4.090909 | 0.469697 | 0.074074 | 0.066667 | 0.096296 | 0.303704 | 0.303704 | 0.303704 | 0.303704 | 0.303704 | 0.303704 | 0 | 0.052632 | 0.339768 | 518 | 20 | 51 | 25.9 | 0.736842 | 0.125483 | 0 | 0.333333 | 0 | 0 | 0.09324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
36b666e75f8d2123fc2f466527229d2f55e94174 | 1,263 | py | Python | TrendTrading/ProbModel/CheckScripts/updated market indicator.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | TrendTrading/ProbModel/CheckScripts/updated market indicator.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | TrendTrading/ProbModel/CheckScripts/updated market indicator.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import talib
big= 200
small= 50
threshold=0.02
#context.market (shortperiod, longperiod):
#Market Values= 0-negative, 1-no trend, 2-positive
def initialize(context):
context.spy= sid(8554)
schedule_function(check)
def check(context, data):
spydata= data.histo... | 25.26 | 61 | 0.639747 | 163 | 1,263 | 4.93865 | 0.447853 | 0.024845 | 0.074534 | 0.055901 | 0.070807 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034304 | 0.238321 | 1,263 | 49 | 62 | 25.77551 | 0.802495 | 0.071259 | 0 | 0 | 0 | 0 | 0.005983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
36b8b92109f8c9655104ce9dade2ed763cbf2735 | 678 | py | Python | hackerearth/Algorithms/A plane journey/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/A plane journey/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/A plane journey/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
n, m = map(int, input().strip().split())
a ... | 26.076923 | 94 | 0.538348 | 108 | 678 | 3.351852 | 0.518519 | 0.049724 | 0.09116 | 0.132597 | 0.267956 | 0.209945 | 0.209945 | 0.209945 | 0 | 0 | 0 | 0.018789 | 0.29351 | 678 | 25 | 95 | 27.12 | 0.736952 | 0.39233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36b8ccb8c50334dfa92a74050719c2548bf9dec4 | 738 | py | Python | addon.py | codingPF/plugin.video.newsApp | 64f7c3e2e742cef5cd7c3303e2ffb3ec07771476 | [
"MIT"
] | null | null | null | addon.py | codingPF/plugin.video.newsApp | 64f7c3e2e742cef5cd7c3303e2ffb3ec07771476 | [
"MIT"
] | null | null | null | addon.py | codingPF/plugin.video.newsApp | 64f7c3e2e742cef5cd7c3303e2ffb3ec07771476 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The main addon module
SPDX-License-Identifier: MIT
"""
# -- Imports ------------------------------------------------
import xbmcaddon
import resources.lib.appContext as appContext
import resources.lib.settings as Settings
import resources.lib.logger as Logger
import resources.lib.main as ... | 29.52 | 129 | 0.647696 | 74 | 738 | 6.351351 | 0.459459 | 0.12766 | 0.153191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001536 | 0.117886 | 738 | 24 | 130 | 30.75 | 0.72043 | 0.262873 | 0 | 0 | 0 | 0 | 0.031895 | 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 |
36bc7e0436f464b768c92e41f855171401f6f554 | 4,923 | py | Python | src/tests/model_deployment_tests.py | vravisrpi/mlops-vertex | 0944b22996a5405f64d7ae162bd2427ffd81884d | [
"Apache-2.0"
] | null | null | null | src/tests/model_deployment_tests.py | vravisrpi/mlops-vertex | 0944b22996a5405f64d7ae162bd2427ffd81884d | [
"Apache-2.0"
] | null | null | null | src/tests/model_deployment_tests.py | vravisrpi/mlops-vertex | 0944b22996a5405f64d7ae162bd2427ffd81884d | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.557692 | 95 | 0.672354 | 625 | 4,923 | 5.1232 | 0.28 | 0.068707 | 0.049969 | 0.021237 | 0.312305 | 0.253279 | 0.195191 | 0.173954 | 0.173954 | 0.173954 | 0 | 0.016146 | 0.207394 | 4,923 | 156 | 96 | 31.557692 | 0.804459 | 0.119033 | 0 | 0.090909 | 0 | 0 | 0.297162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
36bf9270f81abe8f83096f56129e26e2554011cc | 803 | py | Python | dirtyclean/tests/test_dirtyclean.py | paultopia/dirtyclean | 1b93b29e070b53afede22ff28497fd68f28d0326 | [
"MIT"
] | 2 | 2017-12-04T16:58:57.000Z | 2021-03-02T04:59:54.000Z | dirtyclean/tests/test_dirtyclean.py | paultopia/dirtyclean | 1b93b29e070b53afede22ff28497fd68f28d0326 | [
"MIT"
] | null | null | null | dirtyclean/tests/test_dirtyclean.py | paultopia/dirtyclean | 1b93b29e070b53afede22ff28497fd68f28d0326 | [
"MIT"
] | null | null | null | from dirtyclean import clean
import unittest
class TestDirtyClean(unittest.TestCase):
def setUp(self):
self.uglystring = " st—up•id ‘char−ac ter..s’, in its’ string...”Ç "
with open("multiline.txt") as mt:
self.multiline = mt.read()
def test_basic_clean(self):
self.ass... | 33.458333 | 124 | 0.617684 | 114 | 803 | 4.324561 | 0.491228 | 0.064909 | 0.036511 | 0.048682 | 0.359026 | 0.302231 | 0.148073 | 0.109533 | 0.109533 | 0.109533 | 0 | 0 | 0.291407 | 803 | 23 | 125 | 34.913043 | 0.86116 | 0 | 0 | 0 | 0 | 0.0625 | 0.29588 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.4375 | 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 |
36cad5c25faaf8cf1d768a98197ce4f6fa877fa3 | 4,321 | py | Python | unipipeline/worker/uni_worker_consumer.py | aliaksandr-master/unipipeline | d8eac38534172aee59ab5777321cabe67f3779ef | [
"MIT"
] | null | null | null | unipipeline/worker/uni_worker_consumer.py | aliaksandr-master/unipipeline | d8eac38534172aee59ab5777321cabe67f3779ef | [
"MIT"
] | 1 | 2021-09-14T13:08:13.000Z | 2021-09-14T13:08:13.000Z | unipipeline/worker/uni_worker_consumer.py | aliaksandr-master/unipipeline | d8eac38534172aee59ab5777321cabe67f3779ef | [
"MIT"
] | null | null | null | from typing import TypeVar, Generic, Optional, Type, Any, Union, Dict, TYPE_CHECKING
from unipipeline.errors.uni_payload_error import UniPayloadParsingError, UniAnswerPayloadParsingError
from unipipeline.errors.uni_sending_to_worker_error import UniSendingToWorkerError
from unipipeline.answer.uni_answer_message import... | 61.728571 | 207 | 0.765564 | 493 | 4,321 | 6.434077 | 0.231237 | 0.066204 | 0.023644 | 0.022699 | 0.174023 | 0.164565 | 0.117907 | 0.117907 | 0.117907 | 0.117907 | 0 | 0 | 0.155982 | 4,321 | 69 | 208 | 62.623188 | 0.869756 | 0.043508 | 0 | 0.036364 | 0 | 0 | 0.052581 | 0.017688 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.054545 | false | 0.018182 | 0.236364 | 0 | 0.345455 | 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 |
36cd33528502d61cfd130bce552b6359665140f3 | 8,039 | py | Python | pysnmp-with-texts/Fore-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Fore-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Fore-Common-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Fore-Common-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-Common-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:14:34 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 73.752294 | 1,461 | 0.707302 | 1,090 | 8,039 | 5.214679 | 0.202752 | 0.019001 | 0.027445 | 0.036594 | 0.386524 | 0.318438 | 0.318438 | 0.316854 | 0.299085 | 0.20197 | 0 | 0.144795 | 0.128872 | 8,039 | 108 | 1,462 | 74.435185 | 0.666857 | 0.040304 | 0 | 0.032967 | 0 | 0.010989 | 0.105892 | 0.008435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032967 | 0.065934 | 0 | 0.340659 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36d148c1ce0bdea8709582045309f0f2acad2b33 | 954 | py | Python | services/web/apps/inv/inv/plugins/log.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | services/web/apps/inv/inv/plugins/log.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | services/web/apps/inv/inv/plugins/log.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# inv.inv log plugin
# ---------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
... | 28.909091 | 71 | 0.336478 | 79 | 954 | 4.012658 | 0.56962 | 0.037855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012841 | 0.34696 | 954 | 32 | 72 | 29.8125 | 0.495987 | 0.318658 | 0 | 0 | 0 | 0 | 0.130841 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0.047619 | 0.285714 | 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 |
36d88c360c0960445e0699b390c5bc46416d33e6 | 406 | py | Python | super32assembler/super32assembler/preprocessor/asmdirectives.py | Projektstudium-Mikroprozessor/Super32 | d502d2d5885ac0408d06e57e0f5a67fe2a2fee15 | [
"BSD-3-Clause"
] | 1 | 2019-12-07T01:56:31.000Z | 2019-12-07T01:56:31.000Z | super32assembler/super32assembler/preprocessor/asmdirectives.py | Projektstudium-Mikroprozessor/Super32 | d502d2d5885ac0408d06e57e0f5a67fe2a2fee15 | [
"BSD-3-Clause"
] | 42 | 2020-05-15T10:39:30.000Z | 2020-08-30T10:59:43.000Z | super32assembler/preprocessor/asmdirectives.py | xsjad0/Super32 | 75cf5828b17cdbce144447a69ff3d1be7ad601f2 | [
"BSD-3-Clause"
] | 4 | 2019-11-27T15:05:33.000Z | 2020-05-13T06:51:21.000Z | """
Enum Assembler-Directives
"""
from enum import Enum, auto
class AssemblerDirectives(Enum):
START = auto()
END = auto()
ORG = auto()
DEFINE = auto()
@classmethod
def to_string(cls):
return "{START},{END},{ORG},{DEFINE}".format(
START=cls.START.name,
END=cls... | 18.454545 | 53 | 0.549261 | 46 | 406 | 4.826087 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307882 | 406 | 21 | 54 | 19.333333 | 0.790036 | 0.061576 | 0 | 0 | 0 | 0 | 0.075067 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
36dbe66f53ea99cba7463f1defbdf1646e602362 | 15,516 | py | Python | pyjokes/jokes_pl.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | null | null | null | pyjokes/jokes_pl.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | null | null | null | pyjokes/jokes_pl.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Jokes below come from the "jokes_en.py" file.
Translation to Polish: Tomasz Rozynek - provided under CC BY-SA 3.0
"""
neutral = [
"W 2030 roku Beata z ulgą usunęła Python'a 2.7 ze swoich maszyn. 'No!' westchnęła, by za chwilę przeczytać ogłoszenia na temat Python'a 4.4.",
"Zapytani... | 77.969849 | 147 | 0.743942 | 2,128 | 15,516 | 5.422932 | 0.487782 | 0.063865 | 0.024263 | 0.009879 | 0.037002 | 0.032322 | 0.032322 | 0.02747 | 0.023744 | 0.015078 | 0 | 0.007798 | 0.181748 | 15,516 | 198 | 148 | 78.363636 | 0.90115 | 0.008765 | 0 | 0 | 0 | 0.125683 | 0.893974 | 0.001377 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.005464 | 0 | 0 | 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 |
36e117d0d57d57188bd69bce4d500df94875ceb8 | 4,913 | py | Python | platform_reports/prometheus_grammars.py | neuro-inc/platform-reports | 161c18733370235af0b63a772de49343e956c35c | [
"Apache-2.0"
] | null | null | null | platform_reports/prometheus_grammars.py | neuro-inc/platform-reports | 161c18733370235af0b63a772de49343e956c35c | [
"Apache-2.0"
] | 9 | 2021-12-23T03:10:40.000Z | 2022-03-31T03:15:52.000Z | platform_reports/prometheus_grammars.py | neuro-inc/platform-reports | 161c18733370235af0b63a772de49343e956c35c | [
"Apache-2.0"
] | null | null | null | PROMQL = """
start: query
// Binary operations are defined separately in order to support precedence
?query\
: or_match
| matrix
| subquery
| offset
?or_match\
: and_unless_match
| or_match OR grouping? and_unless_match
?and_unless_match\
: comparison_match
| and_unless_match (AND | ... | 17.996337 | 77 | 0.65113 | 593 | 4,913 | 5.067454 | 0.210793 | 0.07188 | 0.030283 | 0.018968 | 0.195674 | 0.143428 | 0.102163 | 0.086855 | 0 | 0 | 0 | 0.003343 | 0.208427 | 4,913 | 272 | 78 | 18.0625 | 0.769349 | 0 | 0 | 0 | 0 | 0.004405 | 0.996743 | 0.024018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013216 | 0 | 0.013216 | 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 |
36e87b1e11d644470443480a35f8b9e8b72438cd | 4,387 | py | Python | src/rechub/parameters.py | yusanshi/easy-rec | 86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24 | [
"MIT"
] | null | null | null | src/rechub/parameters.py | yusanshi/easy-rec | 86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24 | [
"MIT"
] | null | null | null | src/rechub/parameters.py | yusanshi/easy-rec | 86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24 | [
"MIT"
] | null | null | null | import argparse
from distutils.util import strtobool
def str2bool(x):
return bool(strtobool(x))
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--num_epochs', type=int, default=1000)
parser.add_argument('--learning_rate', type=float, default=0.0005)
parser.add_argument... | 38.823009 | 99 | 0.56713 | 480 | 4,387 | 4.997917 | 0.339583 | 0.12005 | 0.226761 | 0.041684 | 0.286786 | 0.226761 | 0.212589 | 0.15173 | 0.087536 | 0.087536 | 0 | 0.017734 | 0.305904 | 4,387 | 112 | 100 | 39.169643 | 0.770115 | 0.043082 | 0 | 0.232323 | 0 | 0 | 0.271231 | 0.11021 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.020202 | false | 0 | 0.020202 | 0.010101 | 0.060606 | 0.010101 | 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 |
36f2445925b38eafa6fa76d91317ba20cacff47f | 1,241 | py | Python | test/unit/object/test_collaboration_allowlist_entry.py | box/box-python-sdk | 5c6766a17bac0315bede7a1f5909c912d194a793 | [
"Apache-2.0"
] | 367 | 2015-02-10T05:55:45.000Z | 2022-03-16T23:39:58.000Z | test/unit/object/test_collaboration_allowlist_entry.py | box/box-python-sdk | 5c6766a17bac0315bede7a1f5909c912d194a793 | [
"Apache-2.0"
] | 686 | 2015-02-10T01:21:28.000Z | 2022-03-31T11:40:22.000Z | test/unit/object/test_collaboration_allowlist_entry.py | box/box-python-sdk | 5c6766a17bac0315bede7a1f5909c912d194a793 | [
"Apache-2.0"
] | 260 | 2015-02-16T17:35:06.000Z | 2022-03-20T17:45:28.000Z | # coding: utf-8
from __future__ import unicode_literals, absolute_import
from boxsdk.config import API
def test_get(mock_box_session, test_collaboration_allowlist_entry):
entry_id = test_collaboration_allowlist_entry.object_id
expected_url = '{0}/collaboration_whitelist_entries/{1}'.format(API.BASE_API_URL, ... | 42.793103 | 118 | 0.767929 | 163 | 1,241 | 5.411043 | 0.319018 | 0.055556 | 0.176871 | 0.210884 | 0.465986 | 0.465986 | 0.360544 | 0.360544 | 0.360544 | 0.360544 | 0 | 0.009276 | 0.131346 | 1,241 | 28 | 119 | 44.321429 | 0.808905 | 0.010475 | 0 | 0.181818 | 0 | 0 | 0.137031 | 0.087276 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36f7aca45d40f82d8142db3d4804603a2675f264 | 1,463 | py | Python | jumpy/setup.py | bharadwaj1098/brax | 3108a0535b9b59725c97ef35732ed0378c0fd5cc | [
"Apache-2.0"
] | 1,162 | 2021-06-03T20:15:05.000Z | 2022-03-31T19:53:06.000Z | jumpy/setup.py | bharadwaj1098/brax | 3108a0535b9b59725c97ef35732ed0378c0fd5cc | [
"Apache-2.0"
] | 160 | 2021-06-05T02:32:39.000Z | 2022-03-31T11:39:58.000Z | jumpy/setup.py | bharadwaj1098/brax | 3108a0535b9b59725c97ef35732ed0378c0fd5cc | [
"Apache-2.0"
] | 117 | 2021-06-04T17:18:21.000Z | 2022-03-30T18:04:48.000Z | # Copyright 2021 The Brax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 29.857143 | 74 | 0.673274 | 185 | 1,463 | 5.286486 | 0.643243 | 0.06135 | 0.026585 | 0.03272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.210526 | 1,463 | 48 | 75 | 30.479167 | 0.834632 | 0.423787 | 0 | 0.076923 | 0 | 0 | 0.478155 | 0.026699 | 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 |
36fd537a07164889366087995d08455fc14bd19e | 828 | py | Python | Batch_sentiment/spark_hashtag.py | malli3131/SparkApps | b24763eaf6411cba3c22a4c070a45d6fe96dfa1d | [
"Apache-2.0"
] | 3 | 2018-01-17T05:51:10.000Z | 2018-11-22T16:59:53.000Z | Batch_sentiment/spark_hashtag.py | malli3131/SparkApps | b24763eaf6411cba3c22a4c070a45d6fe96dfa1d | [
"Apache-2.0"
] | 2 | 2016-12-15T13:15:42.000Z | 2016-12-15T13:19:19.000Z | Batch_sentiment/spark_hashtag.py | malli3131/SparkApps | b24763eaf6411cba3c22a4c070a45d6fe96dfa1d | [
"Apache-2.0"
] | 4 | 2018-02-12T06:37:04.000Z | 2020-01-04T11:30:24.000Z | import re
import string
import sys
from pyspark import SparkContext
exclude = set(string.punctuation)
def get_hash_tag(word, rmPunc):
pattern = re.compile("^#(.*)")
m = pattern.match(word)
tag = None
if m:
match = m.groups()
for m_word in match:
tag = ''.join(letter for letter in m_word... | 30.666667 | 84 | 0.695652 | 119 | 828 | 4.789916 | 0.504202 | 0.024561 | 0.035088 | 0.049123 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001443 | 0.163043 | 828 | 26 | 85 | 31.846154 | 0.821068 | 0 | 0 | 0 | 0 | 0 | 0.15942 | 0.107488 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | 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 |
7fc0ed53e23bdf7182409dab9a83d9dcb7cb0ae5 | 417 | py | Python | backend/apps/risks/urls.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | backend/apps/risks/urls.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | backend/apps/risks/urls.py | intellisense/risks | e98b8c6e5694b895603f7ff1b3c04b6057aa1136 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
urlpatterns = [
url(r'^risks/$', views.RiskTypeList.as_view(), name='risks_list'),
url(r'^risks/(?P<pk>[0-9]+)/$', views.RiskTypeDetail.as_view(), name='risk_details'),
url(r'^fields/$', views... | 34.75 | 89 | 0.729017 | 57 | 417 | 5.140351 | 0.54386 | 0.040956 | 0.102389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005333 | 0.100719 | 417 | 11 | 90 | 37.909091 | 0.776 | 0 | 0 | 0 | 0 | 0 | 0.17506 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7fc44269a458fb1cbf6dc4894b2532e5211304c0 | 1,166 | py | Python | kanban_board/admin.py | Zeerooth/django-kanban-board | d390635017199a90da666bba3a74cafc86838884 | [
"BSD-3-Clause"
] | null | null | null | kanban_board/admin.py | Zeerooth/django-kanban-board | d390635017199a90da666bba3a74cafc86838884 | [
"BSD-3-Clause"
] | 2 | 2021-06-10T17:52:06.000Z | 2021-09-22T18:00:26.000Z | kanban_board/admin.py | Zeerooth/django-kanban-board | d390635017199a90da666bba3a74cafc86838884 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from ordered_model.admin import OrderedStackedInline, OrderedInlineModelAdminMixin
from kanban_board.models import KanbanBoard, KanbanBoardState, Workflow, KanbanBoardElement
class KanbanBoardAdmin(admin.ModelAdmin):
list_display = ('name', 'workflow', 'element_count')
filter_h... | 37.612903 | 101 | 0.762436 | 120 | 1,166 | 7.225 | 0.5 | 0.031142 | 0.058824 | 0.059977 | 0.087659 | 0.087659 | 0 | 0 | 0 | 0 | 0 | 0.000981 | 0.126072 | 1,166 | 30 | 102 | 38.866667 | 0.849853 | 0 | 0 | 0 | 0 | 0 | 0.116638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0.090909 | 0.863636 | 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 |
7fd3371311cc6675c8548300ec8d2acf6af4b1ea | 2,036 | py | Python | ireporterApp/migrations/0001_initial.py | George-Okumu/IReporter-Django | 5962984ce0069cdf048dbf91686377568a7cf55b | [
"MIT"
] | null | null | null | ireporterApp/migrations/0001_initial.py | George-Okumu/IReporter-Django | 5962984ce0069cdf048dbf91686377568a7cf55b | [
"MIT"
] | 1 | 2021-10-06T20:15:11.000Z | 2021-10-06T20:15:11.000Z | ireporterApp/migrations/0001_initial.py | George-Okumu/IReporter-Django | 5962984ce0069cdf048dbf91686377568a7cf55b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-13 16:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import ireporterApp.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | 45.244444 | 147 | 0.623281 | 216 | 2,036 | 5.717593 | 0.356481 | 0.0583 | 0.035628 | 0.053441 | 0.395951 | 0.358704 | 0.358704 | 0.358704 | 0.358704 | 0.323887 | 0 | 0.021359 | 0.241159 | 2,036 | 44 | 148 | 46.272727 | 0.777994 | 0.022102 | 0 | 0.27027 | 1 | 0 | 0.089995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108108 | 0 | 0.216216 | 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 |
7fe5f97f042b7d291cc4c77318e4cda78c4dbfcc | 1,187 | py | Python | app/cli.py | dev-johnlopez/Assignably | 056960556dd75dfce064970887f37a44a8c66aec | [
"MIT"
] | 1 | 2021-06-09T02:19:18.000Z | 2021-06-09T02:19:18.000Z | app/cli.py | dev-johnlopez/Assignably | 056960556dd75dfce064970887f37a44a8c66aec | [
"MIT"
] | 1 | 2021-06-01T23:45:06.000Z | 2021-06-01T23:45:06.000Z | app/cli.py | dev-johnlopez/assignably | 056960556dd75dfce064970887f37a44a8c66aec | [
"MIT"
] | null | null | null | import os
import click
from app import app
from flask.cli import with_appcontext
from app.auth.models import Role
def register(app):
@app.cli.group()
def translate():
"""Translation and localization commands."""
pass
@translate.command()
@click.argument('lang')
def init(lang):
... | 25.255319 | 83 | 0.566133 | 130 | 1,187 | 5.130769 | 0.430769 | 0.041979 | 0.089955 | 0.050975 | 0.173913 | 0.173913 | 0.092954 | 0 | 0 | 0 | 0 | 0 | 0.326874 | 1,187 | 46 | 84 | 25.804348 | 0.834793 | 0.092671 | 0 | 0.382353 | 0 | 0 | 0.035038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.205882 | 0 | 0.382353 | 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 |
7febb7dfbccc110592c6373855dc121877f1f2c7 | 1,641 | py | Python | throwaway/viz_nav_policy.py | sfpd/rlreloaded | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | [
"MIT"
] | null | null | null | throwaway/viz_nav_policy.py | sfpd/rlreloaded | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | [
"MIT"
] | null | null | null | throwaway/viz_nav_policy.py | sfpd/rlreloaded | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from control4.algs.save_load_utils import load_agent_and_mdp
from control4.core.rollout import rollout
from tabulate import tabulate
import numpy as np
import pygame
from control3.pygameviewer import PygameViewer, pygame
from collections import namedtuple
from copy import deepcopy
path = []
if _... | 28.293103 | 87 | 0.624619 | 248 | 1,641 | 3.971774 | 0.391129 | 0.040609 | 0.069036 | 0.030457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031323 | 0.221816 | 1,641 | 57 | 88 | 28.789474 | 0.740016 | 0.012188 | 0 | 0.043478 | 0 | 0 | 0.042672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.23913 | 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 |
7ff0e77d9b3db005d3ce70f0c9f81c5bbde228f8 | 4,808 | py | Python | main.py | superwaiwjia/lowRankForSeer | 86041e0a39e1ef2718e8133eb65a63c05d9a441c | [
"MIT"
] | 2 | 2021-11-18T07:01:40.000Z | 2021-11-18T07:01:49.000Z | main.py | superwaiwjia/lowRankForSeer | 86041e0a39e1ef2718e8133eb65a63c05d9a441c | [
"MIT"
] | null | null | null | main.py | superwaiwjia/lowRankForSeer | 86041e0a39e1ef2718e8133eb65a63c05d9a441c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding=utf-8
import pickle
import sys, os, re, subprocess, math
reload(sys)
sys.setdefaultencoding("utf-8")
from os.path import abspath, dirname, join
whereami = abspath(dirname(__file__))
sys.path.append(whereami)
from sklearn.metrics import roc_auc_score
import pandas as pd
import numpy as np
... | 38.464 | 258 | 0.66015 | 829 | 4,808 | 3.571773 | 0.185766 | 0.046606 | 0.052009 | 0.052685 | 0.361702 | 0.324553 | 0.31003 | 0.291118 | 0.237082 | 0.237082 | 0 | 0.019778 | 0.158694 | 4,808 | 125 | 259 | 38.464 | 0.712237 | 0.127288 | 0 | 0.025316 | 0 | 0 | 0.025056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.177215 | null | null | 0.063291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d01213807fe34d6cbaa37ec89c61cfcc0e43948 | 11,536 | py | Python | apps/hosts/views.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 1,470 | 2016-10-21T01:21:45.000Z | 2022-03-30T14:08:29.000Z | apps/hosts/views.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 2,594 | 2016-11-02T03:36:01.000Z | 2022-03-31T15:30:04.000Z | apps/hosts/views.py | kaustubh-s1/EvalAI | 1884811e7759e0d095f7afb68188a7f010fa65dc | [
"BSD-3-Clause"
] | 865 | 2016-11-09T17:46:32.000Z | 2022-03-30T13:06:52.000Z | from django.contrib.auth.models import User
from rest_framework import permissions, status
from rest_framework.decorators import (
api_view,
authentication_classes,
permission_classes,
throttle_classes,
)
from rest_framework.response import Response
from rest_framework_expiring_authtoken.authentication... | 37.093248 | 78 | 0.684466 | 1,154 | 11,536 | 6.566724 | 0.130849 | 0.096068 | 0.076273 | 0.058327 | 0.725653 | 0.687385 | 0.634072 | 0.634072 | 0.627474 | 0.614278 | 0 | 0.008789 | 0.230669 | 11,536 | 310 | 79 | 37.212903 | 0.84507 | 0.010836 | 0 | 0.572491 | 0 | 0 | 0.060734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026022 | false | 0 | 0.048327 | 0 | 0.174721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d05562ae792843c99e988fb6a4b5372987caff9 | 616 | py | Python | setup.py | KloudTrader/libkloudtrader | 015e2779f80ba2de93be9fa6fd751412a9d5f492 | [
"Apache-2.0"
] | 11 | 2019-01-16T16:10:09.000Z | 2021-03-02T00:59:17.000Z | setup.py | KloudTrader/kloudtrader | 015e2779f80ba2de93be9fa6fd751412a9d5f492 | [
"Apache-2.0"
] | 425 | 2019-07-10T06:59:49.000Z | 2021-01-12T05:32:14.000Z | setup.py | KloudTrader/kloudtrader | 015e2779f80ba2de93be9fa6fd751412a9d5f492 | [
"Apache-2.0"
] | 6 | 2019-03-15T16:25:06.000Z | 2021-05-03T10:02:13.000Z | from distutils.core import setup
setup(
name='libkloudtrader',
version='1.0.0',
author='KloudTrader',
author_email='admin@kloudtrader.com',
packages=['libkloudtrader'],
url='https://github.com/KloudTrader/kloudtrader',
license='LICENSE',
description="KloudTrader's in-house library that ... | 26.782609 | 126 | 0.644481 | 68 | 616 | 5.75 | 0.764706 | 0.030691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.224026 | 616 | 22 | 127 | 28 | 0.809623 | 0 | 0 | 0 | 0 | 0.047619 | 0.449675 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d0b84039e886dcbf5a0882295390d0af7dd865b | 3,928 | py | Python | tools/convert_lightning2venot.py | ucl-exoplanets/TauREx_public | 28d47f829a2873cf15e3bfb0419b8bc4e5bc03dd | [
"CC-BY-4.0"
] | 18 | 2019-07-22T01:35:24.000Z | 2022-02-10T11:25:42.000Z | tools/convert_lightning2venot.py | ucl-exoplanets/TauREx_public | 28d47f829a2873cf15e3bfb0419b8bc4e5bc03dd | [
"CC-BY-4.0"
] | null | null | null | tools/convert_lightning2venot.py | ucl-exoplanets/TauREx_public | 28d47f829a2873cf15e3bfb0419b8bc4e5bc03dd | [
"CC-BY-4.0"
] | 1 | 2017-10-19T15:14:06.000Z | 2017-10-19T15:14:06.000Z | #! /usr/bin/python
#small script that shits out the venot file format equivalent for the lightening project
import numpy as np
import pylab as pl
import pyfits as pf
import glob, os, sys
AMU = 1.660538921e-27
KBOLTZ = 1.380648813e-23
G = 6.67384e-11
RSOL = 6.955e8
RJUP = 6.9911e7
#RJUP = 7.1492e7 # Jo's radius
MJ... | 26.90411 | 139 | 0.630855 | 641 | 3,928 | 3.820593 | 0.411856 | 0.010208 | 0.025725 | 0.010617 | 0.133116 | 0.083299 | 0.083299 | 0.02205 | 0 | 0 | 0 | 0.090882 | 0.154022 | 3,928 | 146 | 140 | 26.90411 | 0.646103 | 0.118126 | 0 | 0.063158 | 0 | 0 | 0.117784 | 0.028721 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042105 | null | null | 0.063158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3d0d5a4bdcb6949d58811e00ce041b7deeb69354 | 288 | py | Python | setup.py | NWeis97/ML_Ops_Project | cc4c65fec679b08675e76a24ad7e44de1b5df29a | [
"MIT"
] | null | null | null | setup.py | NWeis97/ML_Ops_Project | cc4c65fec679b08675e76a24ad7e44de1b5df29a | [
"MIT"
] | null | null | null | setup.py | NWeis97/ML_Ops_Project | cc4c65fec679b08675e76a24ad7e44de1b5df29a | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="src",
packages=find_packages(),
version="0.1.0",
description="This project contains the final exercise of S1, "
+ "in which we will continue to build upon",
author="Nicolai Weisbjerg",
license="MIT",
)
| 24 | 66 | 0.677083 | 38 | 288 | 5.078947 | 0.868421 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.208333 | 288 | 11 | 67 | 26.181818 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.399306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d1335d9fc99401818ca88efe979fffcb933a101 | 10,108 | py | Python | Products/LDAPUserFolder/interfaces.py | phgv/Products.LDAPUserFolder | eb9db778916f47a80b3df069a31d0a2100b26423 | [
"ZPL-2.1"
] | null | null | null | Products/LDAPUserFolder/interfaces.py | phgv/Products.LDAPUserFolder | eb9db778916f47a80b3df069a31d0a2100b26423 | [
"ZPL-2.1"
] | null | null | null | Products/LDAPUserFolder/interfaces.py | phgv/Products.LDAPUserFolder | eb9db778916f47a80b3df069a31d0a2100b26423 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2000-2009 Jens Vagelpohl and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS S... | 38.580153 | 79 | 0.662347 | 1,380 | 10,108 | 4.830435 | 0.255072 | 0.021002 | 0.050405 | 0.054005 | 0.172067 | 0.089709 | 0.089709 | 0.089709 | 0.089709 | 0.089709 | 0 | 0.001633 | 0.272853 | 10,108 | 261 | 80 | 38.727969 | 0.905306 | 0.742184 | 0 | 0 | 0 | 0 | 0.015298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.791667 | false | 0.041667 | 0.083333 | 0 | 0.958333 | 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 |
3d192b649d8b6388f0dcd7b9e46896429e77993c | 2,497 | py | Python | src/sentry/api/endpoints/organization_projects.py | seukjung/sentry-custom | c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963 | [
"BSD-3-Clause"
] | 1 | 2021-01-13T15:40:03.000Z | 2021-01-13T15:40:03.000Z | src/sentry/api/endpoints/organization_projects.py | fotinakis/sentry | c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c | [
"BSD-3-Clause"
] | 8 | 2019-12-28T23:49:55.000Z | 2022-03-02T04:34:18.000Z | src/sentry/api/endpoints/organization_projects.py | fotinakis/sentry | c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c | [
"BSD-3-Clause"
] | 1 | 2017-04-08T04:09:18.000Z | 2017-04-08T04:09:18.000Z | from __future__ import absolute_import
import six
from rest_framework.response import Response
from sentry.api.base import DocSection
from sentry.api.bases.organization import OrganizationEndpoint
from sentry.api.serializers import serialize
from sentry.models import Project, Team
from sentry.utils.apidocs import sc... | 35.169014 | 87 | 0.60793 | 262 | 2,497 | 5.645038 | 0.381679 | 0.044625 | 0.026369 | 0.043272 | 0.081136 | 0.081136 | 0.081136 | 0.081136 | 0.081136 | 0.081136 | 0 | 0.001707 | 0.296356 | 2,497 | 70 | 88 | 35.671429 | 0.840068 | 0.127753 | 0 | 0.166667 | 0 | 0 | 0.061022 | 0.024125 | 0 | 0 | 0 | 0.014286 | 0.020833 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.291667 | 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 |
3d1a374772b07f26b88bbef32d5d37abe99122f6 | 6,708 | py | Python | senta/data/field_reader/generate_label_field_reader.py | zgzwelldone/Senta | e01986dd17217bed82023c81d06588d63e0e19c7 | [
"Apache-2.0"
] | null | null | null | senta/data/field_reader/generate_label_field_reader.py | zgzwelldone/Senta | e01986dd17217bed82023c81d06588d63e0e19c7 | [
"Apache-2.0"
] | null | null | null | senta/data/field_reader/generate_label_field_reader.py | zgzwelldone/Senta | e01986dd17217bed82023c81d06588d63e0e19c7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*
"""
:py:class:`GenerateLabelFieldReader`
"""
import numpy as np
from senta.common.register import RegisterSet
from senta.common.rule import DataShape, FieldLength, InstanceName
from senta.data.field_reader.base_field_reader import BaseFieldReader
from senta.data.util_helper import generate_pad_... | 42.455696 | 125 | 0.595707 | 731 | 6,708 | 5.071135 | 0.194254 | 0.077151 | 0.097114 | 0.032101 | 0.459131 | 0.347721 | 0.26976 | 0.20178 | 0.159698 | 0.159698 | 0 | 0.008751 | 0.318575 | 6,708 | 157 | 126 | 42.726115 | 0.802231 | 0.076774 | 0 | 0.29 | 1 | 0 | 0.023991 | 0.004393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.06 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d200274ebad98aa4c72c04b9e6aca07e97be031 | 1,872 | py | Python | foodshering/authapp/forms.py | malfin/silvehanger | c71a936a0c59c5a6fb909861cf2197b72782642d | [
"Apache-2.0"
] | null | null | null | foodshering/authapp/forms.py | malfin/silvehanger | c71a936a0c59c5a6fb909861cf2197b72782642d | [
"Apache-2.0"
] | null | null | null | foodshering/authapp/forms.py | malfin/silvehanger | c71a936a0c59c5a6fb909861cf2197b72782642d | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, PasswordChangeForm, UserChangeForm
from authapp.models import UserProfile, Status
class LoginForm(AuthenticationForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
for na... | 31.2 | 110 | 0.608974 | 199 | 1,872 | 5.507538 | 0.306533 | 0.072993 | 0.040146 | 0.054745 | 0.500912 | 0.472628 | 0.472628 | 0.472628 | 0.472628 | 0.472628 | 0 | 0 | 0.25641 | 1,872 | 59 | 111 | 31.728814 | 0.787356 | 0 | 0 | 0.533333 | 0 | 0 | 0.103632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.088889 | 0.066667 | 0.022222 | 0.377778 | 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 |
3d220060f34001abd4191e581365ad915971f136 | 340 | py | Python | devices/parser/serializers.py | City-of-Helsinki/hel-data-pipe | e473237cd00a54a791337ac611e99556dc37ea35 | [
"MIT"
] | 1 | 2021-02-25T14:21:41.000Z | 2021-02-25T14:21:41.000Z | devices/parser/serializers.py | City-of-Helsinki/hel-data-pipe | e473237cd00a54a791337ac611e99556dc37ea35 | [
"MIT"
] | 9 | 2020-11-23T11:56:56.000Z | 2021-02-25T12:20:05.000Z | devices/parser/serializers.py | City-of-Helsinki/hel-data-pipe | e473237cd00a54a791337ac611e99556dc37ea35 | [
"MIT"
] | 1 | 2021-07-25T12:16:53.000Z | 2021-07-25T12:16:53.000Z | from rest_framework import serializers
from .models import Device, SensorType
class SensorTypeSerializer(serializers.ModelSerializer):
class Meta:
model = SensorType
fields = "__all__"
class DeviceSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Device
... | 21.25 | 63 | 0.723529 | 30 | 340 | 7.9 | 0.566667 | 0.075949 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217647 | 340 | 15 | 64 | 22.666667 | 0.890977 | 0 | 0 | 0.4 | 0 | 0 | 0.041176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3d2303695d686e9f8b4033b5136f35315cde3220 | 696 | py | Python | core/migrations/0002_auto_20191102_1734.py | manulangat1/djcommerce | 2cd92631479ef949e0f05a255f2f50feca728802 | [
"MIT"
] | 1 | 2020-02-08T16:29:41.000Z | 2020-02-08T16:29:41.000Z | core/migrations/0002_auto_20191102_1734.py | manulangat1/djcommerce | 2cd92631479ef949e0f05a255f2f50feca728802 | [
"MIT"
] | 15 | 2020-05-04T13:22:32.000Z | 2022-03-12T00:27:28.000Z | core/migrations/0002_auto_20191102_1734.py | manulangat1/djcommerce | 2cd92631479ef949e0f05a255f2f50feca728802 | [
"MIT"
] | 1 | 2020-10-17T08:54:31.000Z | 2020-10-17T08:54:31.000Z | # Generated by Django 2.2.6 on 2019-11-02 17:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='item',
name='category',
field=... | 29 | 140 | 0.556034 | 76 | 696 | 5.026316 | 0.657895 | 0.094241 | 0.120419 | 0.141361 | 0.471204 | 0.371728 | 0 | 0 | 0 | 0 | 0 | 0.04501 | 0.265805 | 696 | 23 | 141 | 30.26087 | 0.702544 | 0.064655 | 0 | 0.352941 | 1 | 0 | 0.137134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
3d2603c4df2972be551558b1de82be8e153176f4 | 915 | py | Python | stamper/migrations/0004_auto_20161208_1658.py | uploadcare/stump | 8070ff42f01972fa86b4a2eaba580dad65482ef2 | [
"MIT"
] | null | null | null | stamper/migrations/0004_auto_20161208_1658.py | uploadcare/stump | 8070ff42f01972fa86b4a2eaba580dad65482ef2 | [
"MIT"
] | null | null | null | stamper/migrations/0004_auto_20161208_1658.py | uploadcare/stump | 8070ff42f01972fa86b4a2eaba580dad65482ef2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-12-08 16:58
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('stamper', '0003_auto_20161122_1253'),
... | 30.5 | 123 | 0.64153 | 105 | 915 | 5.419048 | 0.542857 | 0.031634 | 0.080844 | 0.094903 | 0.393673 | 0.393673 | 0.393673 | 0.393673 | 0.249561 | 0.249561 | 0 | 0.108696 | 0.245902 | 915 | 29 | 124 | 31.551724 | 0.715942 | 0.073224 | 0 | 0.363636 | 1 | 0 | 0.11716 | 0.027219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.318182 | 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 |
3d321cb4dea8943fb087339fe2547eeaba4b5805 | 2,144 | py | Python | Assignment-04/Question-03/mpi_ping_pong.py | gnu-user/mcsc-6030-assignments | 42825cdbc4532d9da6ebdba549b65fb1e36456a0 | [
"MIT"
] | null | null | null | Assignment-04/Question-03/mpi_ping_pong.py | gnu-user/mcsc-6030-assignments | 42825cdbc4532d9da6ebdba549b65fb1e36456a0 | [
"MIT"
] | null | null | null | Assignment-04/Question-03/mpi_ping_pong.py | gnu-user/mcsc-6030-assignments | 42825cdbc4532d9da6ebdba549b65fb1e36456a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
###############################################################################
#
# Assignment 4, Question 3 solution for MPI ping-pong timings to calcualate
# alpha and beta, implemented in Python using MPI.
#
# Copyright (C) 2015, Jonathan Gillett (100437638)
# All rights reserved.
#
##########... | 32 | 79 | 0.567631 | 295 | 2,144 | 4.050847 | 0.4 | 0.025105 | 0.026778 | 0.040167 | 0.131381 | 0.087029 | 0.050209 | 0.050209 | 0 | 0 | 0 | 0.027883 | 0.263993 | 2,144 | 66 | 80 | 32.484848 | 0.729404 | 0.253731 | 0 | 0.209302 | 0 | 0 | 0.144359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3d332e20398ab4a054c4523a1136617bf5854f9a | 1,459 | py | Python | FPAIT/lib/logger/utils.py | D-X-Y/MSPLD-2018 | 71a6a75830ac84c7a861e63367ad3ace991fae77 | [
"MIT"
] | 63 | 2018-07-12T10:36:25.000Z | 2019-04-26T11:30:09.000Z | FPAIT/lib/logger/utils.py | D-X-Y/MSPLD-2018 | 71a6a75830ac84c7a861e63367ad3ace991fae77 | [
"MIT"
] | null | null | null | FPAIT/lib/logger/utils.py | D-X-Y/MSPLD-2018 | 71a6a75830ac84c7a861e63367ad3ace991fae77 | [
"MIT"
] | 8 | 2018-07-14T02:47:12.000Z | 2019-06-03T07:39:13.000Z | import time, sys
import numpy as np
def time_for_file():
ISOTIMEFORMAT='%d-%h-at-%H-%M-%S'
return '{}'.format(time.strftime( ISOTIMEFORMAT, time.gmtime(time.time()) ))
def time_string():
ISOTIMEFORMAT='%Y-%m-%d %X'
string = '[{}]'.format(time.strftime( ISOTIMEFORMAT, time.gmtime(time.time()) ))
return strin... | 28.057692 | 112 | 0.666895 | 215 | 1,459 | 4.302326 | 0.316279 | 0.043243 | 0.058378 | 0.100541 | 0.342703 | 0.321081 | 0.269189 | 0.269189 | 0.151351 | 0.151351 | 0 | 0.022989 | 0.165182 | 1,459 | 51 | 113 | 28.607843 | 0.736453 | 0.033585 | 0 | 0.04878 | 0 | 0 | 0.07906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.04878 | 0.02439 | 0.439024 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3d39d78b8b90f5a0e60b1cd9c3435a778082fd09 | 636 | py | Python | ossdbtoolsservice/admin/contracts/__init__.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 33 | 2019-05-27T13:04:35.000Z | 2022-03-17T13:33:05.000Z | ossdbtoolsservice/admin/contracts/__init__.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 31 | 2019-06-10T01:55:47.000Z | 2022-03-09T07:27:49.000Z | ossdbtoolsservice/admin/contracts/__init__.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 25 | 2019-05-13T18:39:24.000Z | 2021-11-16T03:07:33.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 53 | 103 | 0.575472 | 46 | 636 | 7.673913 | 0.673913 | 0.093484 | 0.127479 | 0.186969 | 0.464589 | 0.464589 | 0.464589 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 636 | 11 | 104 | 57.818182 | 0.605489 | 0.528302 | 0 | 0 | 0 | 0 | 0.288136 | 0.247458 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d3ee67b67a8537dbe3c66ff4a5cb8e8c72ee707 | 706 | py | Python | support/send_broadcast_message.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | 1 | 2015-11-02T09:11:12.000Z | 2015-11-02T09:11:12.000Z | support/send_broadcast_message.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | support/send_broadcast_message.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | from xlrd import open_workbook
from scheduler.smsclient import SMSClient
filename = "/Users/twer/Downloads/SchoolsSMSGhana.xlsx"
workbook = open_workbook(filename)
organization_number = "1902"
area_code = "233"
sheets_ = workbook.sheets()[0]
sms_client = SMSClient()
print 'Start'
for row_num in range(1, sheets_.nrow... | 32.090909 | 92 | 0.756374 | 96 | 706 | 5.260417 | 0.5 | 0.108911 | 0.059406 | 0.083168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.135977 | 706 | 21 | 93 | 33.619048 | 0.811475 | 0 | 0 | 0 | 0 | 0 | 0.150142 | 0.05949 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d4379916a421e4f16400672da640d246b4981ac | 27,082 | py | Python | src/sgfsdriver/plugins/ftp/ftp_client.py | syndicate-storage/syndicate-fs-driver-plugins | 8e455d6bb4838c2313bb6cd72ed5fa6bbbc871d2 | [
"Apache-2.0"
] | null | null | null | src/sgfsdriver/plugins/ftp/ftp_client.py | syndicate-storage/syndicate-fs-driver-plugins | 8e455d6bb4838c2313bb6cd72ed5fa6bbbc871d2 | [
"Apache-2.0"
] | 3 | 2016-11-18T21:31:00.000Z | 2017-08-16T15:35:52.000Z | src/sgfsdriver/plugins/ftp/ftp_client.py | syndicate-storage/syndicate-fs-driver-plugins | 8e455d6bb4838c2313bb6cd72ed5fa6bbbc871d2 | [
"Apache-2.0"
] | 2 | 2016-03-31T18:55:58.000Z | 2017-08-02T19:57:12.000Z | #!/usr/bin/env python
"""
Copyright 2016 The Trustees of University of Arizona
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
Unl... | 30.259218 | 196 | 0.535633 | 3,000 | 27,082 | 4.681 | 0.127667 | 0.032044 | 0.012818 | 0.014883 | 0.396354 | 0.319732 | 0.278858 | 0.247882 | 0.21128 | 0.192267 | 0 | 0.008951 | 0.360572 | 27,082 | 894 | 197 | 30.293065 | 0.801986 | 0.035485 | 0 | 0.494978 | 0 | 0 | 0.076074 | 0.005679 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020086 | 0.012912 | 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 |
3d4abb2320ad6d11a7ab8694b9e07545a91044dd | 885 | py | Python | project/migrations/0002_auto_20180801_1907.py | mcdale/django-material | 3bd5725cc4a4b6f2fb1439333e9033d0cd2b6a9c | [
"MIT"
] | null | null | null | project/migrations/0002_auto_20180801_1907.py | mcdale/django-material | 3bd5725cc4a4b6f2fb1439333e9033d0cd2b6a9c | [
"MIT"
] | 2 | 2020-07-21T12:52:29.000Z | 2021-06-17T20:23:36.000Z | project/migrations/0002_auto_20180801_1907.py | mcdale/django-material | 3bd5725cc4a4b6f2fb1439333e9033d0cd2b6a9c | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-08-01 19:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='knowledgearea',... | 30.517241 | 121 | 0.628249 | 89 | 885 | 6.134831 | 0.595506 | 0.043956 | 0.051282 | 0.080586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028832 | 0.255367 | 885 | 28 | 122 | 31.607143 | 0.799697 | 0.050847 | 0 | 0.227273 | 1 | 0 | 0.24105 | 0.051313 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d4dc9ef0428e142bdd3d4e674dd5dce9410a4ab | 8,925 | py | Python | src/core/src/tortuga/objects/softwareProfile.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/core/src/tortuga/objects/softwareProfile.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/core/src/tortuga/objects/softwareProfile.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 27.631579 | 77 | 0.607731 | 875 | 8,925 | 6.139429 | 0.250286 | 0.032576 | 0.050819 | 0.028481 | 0.186895 | 0.186895 | 0.110201 | 0.040208 | 0.040208 | 0.040208 | 0 | 0.003104 | 0.277983 | 8,925 | 322 | 78 | 27.717391 | 0.83054 | 0.148459 | 0 | 0.104167 | 0 | 0 | 0.072243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.260417 | false | 0 | 0.067708 | 0.057292 | 0.484375 | 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 |
3d4f711206b2fd9dbd8a3177d589e3c33373c8b1 | 822 | py | Python | tools/test_tmp.py | Z-XQ/mmdetection | 9f3756889969c0c21e6d84e0d993f302e7f07460 | [
"Apache-2.0"
] | null | null | null | tools/test_tmp.py | Z-XQ/mmdetection | 9f3756889969c0c21e6d84e0d993f302e7f07460 | [
"Apache-2.0"
] | null | null | null | tools/test_tmp.py | Z-XQ/mmdetection | 9f3756889969c0c21e6d84e0d993f302e7f07460 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/9/28 下午9:49
# @Author : zxq
# @File : test_tmp.py
# @Software: PyCharm
import mmcv
import torch
from mmdet.datasets import build_dataset
from mmdet.models import build_detector
from mmdet.apis import train_detector, inference_detector, show_result_pyplot
from tools.train_t... | 27.4 | 77 | 0.770073 | 119 | 822 | 5.142857 | 0.478992 | 0.044118 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026462 | 0.126521 | 822 | 30 | 78 | 27.4 | 0.825905 | 0.226277 | 0 | 0 | 0 | 0 | 0.074841 | 0.074841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3d555476cff1bc071aa2e2a1ea0c596baf77825f | 1,586 | py | Python | scripts/space_heating_demand/ecofys_space_heating_demand.py | quintel/etmoses | e1e682d0ef68928e5a015c44d916ec151917b1ff | [
"MIT"
] | 16 | 2015-09-22T11:33:52.000Z | 2019-09-09T13:37:14.000Z | scripts/space_heating_demand/ecofys_space_heating_demand.py | quintel/etmoses | e1e682d0ef68928e5a015c44d916ec151917b1ff | [
"MIT"
] | 1,445 | 2015-05-20T22:42:50.000Z | 2022-02-26T19:16:02.000Z | scripts/space_heating_demand/ecofys_space_heating_demand.py | quintel/etloader | e1e682d0ef68928e5a015c44d916ec151917b1ff | [
"MIT"
] | 3 | 2015-11-03T10:41:26.000Z | 2017-02-11T07:39:52.000Z | import numpy as np
from numpy import genfromtxt
import matplotlib.pyplot as plt
import os
time_steps = 8760
file_name = "../input_data/Ecofys_ECN_heating_profiles.csv"
data = zip(*genfromtxt(file_name, delimiter=','))
names = ["tussenwoning_laag", "tussenwoning_midden", "tussenwoning_hoog",
"hoekwoning_laa... | 26.433333 | 109 | 0.645019 | 201 | 1,586 | 4.895522 | 0.40796 | 0.027439 | 0.036585 | 0.064024 | 0.09248 | 0.09248 | 0 | 0 | 0 | 0 | 0 | 0.014446 | 0.214376 | 1,586 | 60 | 110 | 26.433333 | 0.775281 | 0.059899 | 0 | 0 | 0 | 0 | 0.290323 | 0.137769 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | 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 |
3d5db5e05861ba4f7444a52667354a11e6f370f2 | 6,018 | py | Python | utility_functions.py | andrewli2403/California-Basketball-Data-Processor | 19582bef72d6a4f4281ddb61eceb4bee033b5ceb | [
"MIT"
] | null | null | null | utility_functions.py | andrewli2403/California-Basketball-Data-Processor | 19582bef72d6a4f4281ddb61eceb4bee033b5ceb | [
"MIT"
] | null | null | null | utility_functions.py | andrewli2403/California-Basketball-Data-Processor | 19582bef72d6a4f4281ddb61eceb4bee033b5ceb | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup as bs
import re
import pandas as pd
#collect & process data based on GAME ID
def processor(game_id):
url = "https://www.espn.com/mens-college-basketball/matchup?gameId=" + str(game_id)
r = requests.get(url)
webpage = bs(r.content, features="html.parser")
#... | 47.015625 | 1,105 | 0.633599 | 885 | 6,018 | 4.223729 | 0.258757 | 0.058855 | 0.044944 | 0.029428 | 0.250401 | 0.222846 | 0.174157 | 0.146335 | 0.132959 | 0.120385 | 0 | 0.016022 | 0.201396 | 6,018 | 128 | 1,106 | 47.015625 | 0.761756 | 0.201894 | 0 | 0.092105 | 0 | 0.013158 | 0.189659 | 0.036006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.052632 | 0.013158 | 0.302632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d5f940e0e5788ca23c26f2a301fe14e51745333 | 1,161 | py | Python | 003.branch/if.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 003.branch/if.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 003.branch/if.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | """
用户身份验证
Version: 0.1
Author: cjp
"""
username = input('请输入用户名: ')
password = input('请输入口令: ')
# 用户名是admin且密码是123456则身份验证成功否则身份验证失败
if username == 'admin' and password == '123456':
print('身份验证成功!')
else:
print('身份验证失败!')
"""
Python中没有用花括号来构造代码块而是使用了缩进的方式来设置代码的层次结构,
如果if条件成立的情况下需要执行多条语句,只要保持多条语句具有相同的缩进就可以了,... | 15.077922 | 53 | 0.564169 | 150 | 1,161 | 4.426667 | 0.366667 | 0.03012 | 0.018072 | 0.067771 | 0.286145 | 0.259036 | 0.259036 | 0.259036 | 0.259036 | 0.259036 | 0 | 0.061927 | 0.248923 | 1,161 | 77 | 54 | 15.077922 | 0.68922 | 0.099053 | 0 | 0.695652 | 0 | 0 | 0.162047 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3d602a949005e0184acfd82e6822740a19d36fb9 | 7,210 | bzl | Python | bazel/antlr4_cc.bzl | kyle-winkelman/fhir | 01038aa235189fd043fd2981ebf40f4dc1e826e0 | [
"Apache-2.0"
] | null | null | null | bazel/antlr4_cc.bzl | kyle-winkelman/fhir | 01038aa235189fd043fd2981ebf40f4dc1e826e0 | [
"Apache-2.0"
] | 2 | 2020-07-24T14:20:45.000Z | 2020-07-24T19:43:52.000Z | bazel/antlr4_cc.bzl | kyle-winkelman/fhir | 01038aa235189fd043fd2981ebf40f4dc1e826e0 | [
"Apache-2.0"
] | 1 | 2020-07-10T15:03:45.000Z | 2020-07-10T15:03:45.000Z | """Build rules to create C++ code from an Antlr4 grammar."""
def antlr4_cc_lexer(name, src, namespaces = None, imports = None, deps = None, lib_import = None):
"""Generates the C++ source corresponding to an antlr4 lexer definition.
Args:
name: The name of the package to use for the cc_library.
sr... | 38.55615 | 142 | 0.600971 | 879 | 7,210 | 4.778157 | 0.21843 | 0.030952 | 0.02 | 0.014286 | 0.586429 | 0.541905 | 0.517619 | 0.50619 | 0.459048 | 0.459048 | 0 | 0.009014 | 0.276838 | 7,210 | 186 | 143 | 38.763441 | 0.796509 | 0.231761 | 0 | 0.398601 | 1 | 0 | 0.18895 | 0.018232 | 0 | 0 | 0 | 0.005376 | 0 | 1 | 0.048951 | false | 0 | 0.111888 | 0.013986 | 0.20979 | 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 |
e9e2bdbc8442df5b9a587f4296d83d87e0d66ce8 | 6,982 | py | Python | bot/messages.py | pyaf/tpobot | d96a3650de46f6d43ab346d61b922b170cd5fdb2 | [
"MIT"
] | 4 | 2017-07-19T19:18:15.000Z | 2017-11-24T16:15:51.000Z | bot/messages.py | rishabhiitbhu/tpobot | d96a3650de46f6d43ab346d61b922b170cd5fdb2 | [
"MIT"
] | 5 | 2020-02-11T23:53:50.000Z | 2021-12-13T19:45:22.000Z | bot/messages.py | pyaf/tpobot | d96a3650de46f6d43ab346d61b922b170cd5fdb2 | [
"MIT"
] | 1 | 2017-08-27T20:40:50.000Z | 2017-08-27T20:40:50.000Z | # -*- coding: utf-8 -*-
message_dict = {
'welcome': "Hi! TPO Baba is here to give you updates about TPO portal, set willingness reminders, ppt "\
"reminders, exam date reminders and lot more...:D \n\n"\
"To personalise your experience, I gotta register you. It's simple two step proc... | 48.151724 | 112 | 0.560011 | 986 | 6,982 | 3.94929 | 0.350913 | 0.008218 | 0.008988 | 0.006163 | 0.147406 | 0.122239 | 0.072676 | 0.072676 | 0.072676 | 0.072676 | 0 | 0.004633 | 0.319822 | 6,982 | 144 | 113 | 48.486111 | 0.810276 | 0.06703 | 0 | 0.019608 | 0 | 0.107843 | 0.695418 | 0.006919 | 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 |
e9e8878237d9fdf426e86b2606cac1e238054e1a | 8,888 | py | Python | arapheno/phenotypedb/migrations/0001_initial.py | svengato/AraPheno | d6918e2e69c497b7096d9291d904c69310e84d06 | [
"MIT"
] | 5 | 2018-03-24T08:54:50.000Z | 2021-01-19T03:19:42.000Z | arapheno/phenotypedb/migrations/0001_initial.py | svengato/AraPheno | d6918e2e69c497b7096d9291d904c69310e84d06 | [
"MIT"
] | 38 | 2016-08-14T12:09:15.000Z | 2020-10-30T06:02:24.000Z | arapheno/phenotypedb/migrations/0001_initial.py | svengato/AraPheno | d6918e2e69c497b7096d9291d904c69310e84d06 | [
"MIT"
] | 8 | 2016-08-15T06:07:32.000Z | 2020-11-06T06:43:56.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-27 14:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | 50.5 | 159 | 0.588884 | 884 | 8,888 | 5.782805 | 0.150452 | 0.056338 | 0.046948 | 0.059859 | 0.75 | 0.699531 | 0.61385 | 0.61385 | 0.564554 | 0.495696 | 0 | 0.012917 | 0.268339 | 8,888 | 175 | 160 | 50.788571 | 0.773182 | 0.007538 | 0 | 0.54491 | 1 | 0 | 0.130415 | 0.032774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017964 | 0 | 0.041916 | 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 |
e9e9975a7e35ce3210ca6631964e51dc707d8e9b | 2,667 | py | Python | kwiklib/utils/settings.py | fiath/test | b50898dafa90e93da48f573e0b3feb1bb6acd8de | [
"MIT",
"BSD-3-Clause"
] | 7 | 2015-01-20T13:55:51.000Z | 2018-02-06T09:31:21.000Z | kwiklib/utils/settings.py | fiath/test | b50898dafa90e93da48f573e0b3feb1bb6acd8de | [
"MIT",
"BSD-3-Clause"
] | 6 | 2015-01-08T18:13:53.000Z | 2016-06-22T09:53:53.000Z | kwiklib/utils/settings.py | fiath/test | b50898dafa90e93da48f573e0b3feb1bb6acd8de | [
"MIT",
"BSD-3-Clause"
] | 8 | 2015-01-22T22:57:19.000Z | 2020-03-19T11:43:56.000Z | """Internal persistent settings store with cPickle."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import cPickle
import os
from kwiklib.utils.globalpaths import ensure_folder_exists
# -----... | 31.011628 | 79 | 0.490064 | 269 | 2,667 | 4.776952 | 0.334572 | 0.06537 | 0.035019 | 0.017121 | 0.066926 | 0.042023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248219 | 2,667 | 86 | 80 | 31.011628 | 0.640898 | 0.428946 | 0 | 0.1 | 0 | 0 | 0.002791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.075 | 0.025 | 0.425 | 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 |
e9f24ec99f076ba98908603ffa1d50f5644d6aa7 | 31,441 | py | Python | Bio/Prosite/__init__.py | nuin/biopython | 045d57b08799ef52c64bd4fa807629b8a7e9715a | [
"PostgreSQL"
] | 2 | 2016-05-09T04:20:06.000Z | 2017-03-07T10:25:53.000Z | Bio/Prosite/__init__.py | nuin/biopython | 045d57b08799ef52c64bd4fa807629b8a7e9715a | [
"PostgreSQL"
] | null | null | null | Bio/Prosite/__init__.py | nuin/biopython | 045d57b08799ef52c64bd4fa807629b8a7e9715a | [
"PostgreSQL"
] | 1 | 2019-08-19T22:05:14.000Z | 2019-08-19T22:05:14.000Z | # Copyright 1999 by Jeffrey Chang. All rights reserved.
# Copyright 2000 by Jeffrey Chang. All rights reserved.
# Revisions Copyright 2007 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
#... | 35.326966 | 256 | 0.580675 | 3,904 | 31,441 | 4.525359 | 0.151383 | 0.021283 | 0.019358 | 0.016924 | 0.282561 | 0.224883 | 0.166808 | 0.129054 | 0.118979 | 0.101602 | 0 | 0.009392 | 0.326103 | 31,441 | 889 | 257 | 35.366704 | 0.824429 | 0.099965 | 0 | 0.240672 | 0 | 0.001866 | 0.080408 | 0.004749 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024254 | 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 |
e9fd5e9401ba6d04c5d4bf4d42d343bc34357a32 | 2,880 | py | Python | CIM16/IEC61970/Generation/Production/StartIgnFuelCurve.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | CIM16/IEC61970/Generation/Production/StartIgnFuelCurve.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | null | null | null | CIM16/IEC61970/Generation/Production/StartIgnFuelCurve.py | MaximeBaudette/PyCIM | d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14 | [
"MIT"
] | 1 | 2021-04-02T18:04:49.000Z | 2021-04-02T18:04:49.000Z | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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, modify, merge, publish... | 45 | 309 | 0.720833 | 370 | 2,880 | 5.535135 | 0.440541 | 0.078125 | 0.048828 | 0.054199 | 0.287109 | 0.287109 | 0.287109 | 0.287109 | 0.287109 | 0.287109 | 0 | 0.006539 | 0.203472 | 2,880 | 63 | 310 | 45.714286 | 0.886225 | 0.602083 | 0 | 0.086957 | 0 | 0 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.565217 | 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 |
e9ff12848b4786dd9b5181f046c3b8596891ad5d | 1,416 | py | Python | test_scripts/test_stack_and_visualize.py | jakevdp/spheredb | e5e5ff8b8902459b3f38a1a413a712ac1695accc | [
"BSD-3-Clause"
] | 1 | 2021-08-29T06:01:28.000Z | 2021-08-29T06:01:28.000Z | test_scripts/test_stack_and_visualize.py | jakevdp/spheredb | e5e5ff8b8902459b3f38a1a413a712ac1695accc | [
"BSD-3-Clause"
] | null | null | null | test_scripts/test_stack_and_visualize.py | jakevdp/spheredb | e5e5ff8b8902459b3f38a1a413a712ac1695accc | [
"BSD-3-Clause"
] | 2 | 2018-08-03T20:27:35.000Z | 2021-08-29T06:01:30.000Z | """
Stacking and Visualizing
------------------------
This script does the following:
1. Input LSST images, warp to sparse matrix, store as scidb arrays.
This tests the warping of a single LSST exposure into a sparse matrix
representation of a HEALPix grid.
"""
import os
import sys
import glob
import matplotlib.pyplo... | 27.230769 | 70 | 0.664548 | 220 | 1,416 | 4.177273 | 0.468182 | 0.032644 | 0.01741 | 0.026115 | 0.289445 | 0.289445 | 0.289445 | 0.289445 | 0.289445 | 0.289445 | 0 | 0.033563 | 0.179379 | 1,416 | 51 | 71 | 27.764706 | 0.757315 | 0 | 0 | 0.3125 | 0 | 0 | 0.079723 | 0.038995 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
18007f3ffa7e153ffa5c57f5301a0d773f024cb8 | 307 | py | Python | Problem/PeopleFund/concatenate.py | yeojin-dev/coding-test | 30ce8507838beaa9232c6fc6c62a7dcb62d51464 | [
"MIT"
] | 2 | 2018-07-11T08:13:06.000Z | 2018-07-11T08:47:12.000Z | Problem/PeopleFund/concatenate.py | yeojin-dev/coding-test | 30ce8507838beaa9232c6fc6c62a7dcb62d51464 | [
"MIT"
] | null | null | null | Problem/PeopleFund/concatenate.py | yeojin-dev/coding-test | 30ce8507838beaa9232c6fc6c62a7dcb62d51464 | [
"MIT"
] | null | null | null | import numpy as np
sizes = list(map(int, input().split()))
arr1 = list()
arr2 = list()
for _ in range(sizes[0]):
arr1.append(list(map(int, input().split())))
for _ in range(sizes[1]):
arr2.append(list(map(int, input().split())))
print(np.concatenate((np.array(arr1), np.array(arr2)), axis=0))
| 19.1875 | 63 | 0.635179 | 49 | 307 | 3.938776 | 0.44898 | 0.108808 | 0.15544 | 0.233161 | 0.373057 | 0.26943 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.140065 | 307 | 15 | 64 | 20.466667 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1801df02ecd58a8f78ca27f271870b89690c5eb0 | 1,349 | py | Python | db_model.py | Build-Week-Saltiest-Hacker/machine-learning | 1822e2ecdca8279bc49095f6da527152e298b95d | [
"MIT"
] | null | null | null | db_model.py | Build-Week-Saltiest-Hacker/machine-learning | 1822e2ecdca8279bc49095f6da527152e298b95d | [
"MIT"
] | null | null | null | db_model.py | Build-Week-Saltiest-Hacker/machine-learning | 1822e2ecdca8279bc49095f6da527152e298b95d | [
"MIT"
] | null | null | null | # schema for SQL database
from data import app, db
class HNuser(db.Model):
""" SQL database class """
username = db.Column(db.String(100), primary_key=True)
post_id = db.Column(db.Integer)
salty_rank = db.Column(db.Float, nullable=False)
salty_comments = db.Column(db.Integer, nullable=False)
... | 31.372093 | 74 | 0.604151 | 164 | 1,349 | 4.823171 | 0.292683 | 0.091024 | 0.11378 | 0.060683 | 0.230089 | 0.230089 | 0.085967 | 0.085967 | 0 | 0 | 0 | 0.010101 | 0.266123 | 1,349 | 42 | 75 | 32.119048 | 0.788889 | 0.057821 | 0 | 0.133333 | 0 | 0 | 0.151123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | 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 |
1809e4f7973197265ce5a6a201169c2856659885 | 1,555 | py | Python | src/jt/rubicon/java/_typemanager.py | karpierz/jtypes.rubicon | 8f8196e47de93183eb9728fec0d08725fc368ee0 | [
"BSD-3-Clause"
] | 2 | 2018-11-29T06:19:05.000Z | 2018-12-09T09:47:55.000Z | src/jt/rubicon/java/_typemanager.py | karpierz/jtypes.rubicon | 8f8196e47de93183eb9728fec0d08725fc368ee0 | [
"BSD-3-Clause"
] | null | null | null | src/jt/rubicon/java/_typemanager.py | karpierz/jtypes.rubicon | 8f8196e47de93183eb9728fec0d08725fc368ee0 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016-2019, Adam Karpierz
# Licensed under the BSD license
# http://opensource.org/licenses/BSD-3-Clause
from ...jvm.lib.compat import *
from ...jvm.lib import annotate
from ...jvm.lib import public
from ._typehandler import * # noqa
@public
class TypeManager(object):
__slots__ = ('_state', '_h... | 28.272727 | 82 | 0.652733 | 165 | 1,555 | 5.866667 | 0.454545 | 0.170455 | 0.196281 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007705 | 0.248875 | 1,555 | 54 | 83 | 28.796296 | 0.821062 | 0.075884 | 0 | 0.111111 | 0 | 0 | 0.052374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.111111 | 0 | 0.361111 | 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 |
180dd0f316d9175e1decc0de1732de58c97bdcf4 | 3,874 | py | Python | run.py | Yvonne-Ouma/Password-Locker | b16f8e9ee36d3cb70eefb58bf7be2de1bb1948fc | [
"MIT"
] | null | null | null | run.py | Yvonne-Ouma/Password-Locker | b16f8e9ee36d3cb70eefb58bf7be2de1bb1948fc | [
"MIT"
] | null | null | null | run.py | Yvonne-Ouma/Password-Locker | b16f8e9ee36d3cb70eefb58bf7be2de1bb1948fc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
from user import User
from credential import Credential
def createUser(userName,password):
'''
Function to create a new user
'''
newUser = User(userName,password)
return newUser
def saveUsers(user):
'''
Function to save users
'''
user.saveUser()
def crea... | 27.28169 | 177 | 0.558596 | 373 | 3,874 | 5.753351 | 0.321716 | 0.025163 | 0.05219 | 0.050326 | 0.06617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003126 | 0.339442 | 3,874 | 141 | 178 | 27.475177 | 0.835483 | 0.112803 | 0 | 0.138889 | 0 | 0.013889 | 0.252103 | 0.044171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.027778 | 0 | 0.222222 | 0.361111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1810ed3f25b77f5724cfa46b09080dd25d3ba89c | 737 | py | Python | aaweb/__init__.py | cpelite/astorian-airways | 55498f308de7a4b8159519e191b492675ec5612a | [
"CC0-1.0"
] | null | null | null | aaweb/__init__.py | cpelite/astorian-airways | 55498f308de7a4b8159519e191b492675ec5612a | [
"CC0-1.0"
] | null | null | null | aaweb/__init__.py | cpelite/astorian-airways | 55498f308de7a4b8159519e191b492675ec5612a | [
"CC0-1.0"
] | 3 | 2020-04-14T20:46:50.000Z | 2021-03-11T19:07:20.000Z | # -*- coding: utf-8 -*-
import os
from datetime import timedelta
from flask import Flask, session
default_timezone = 'Europe/Berlin'
app = Flask(__name__, static_folder='../static', static_url_path='/static', template_folder="../templates/")
app.permanent_session_lifetime = timedelta(minutes=60)
app.config.update(... | 20.472222 | 108 | 0.738128 | 97 | 737 | 5.402062 | 0.608247 | 0.104962 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004658 | 0.126187 | 737 | 35 | 109 | 21.057143 | 0.809006 | 0.078697 | 0 | 0 | 0 | 0 | 0.176558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.380952 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
181aa4e686c7e2eb75b68979882bfaab2af06de9 | 3,031 | py | Python | downloader.py | tuxetuxe/downloader | 76a1ac01189a6946b15ac6f58661931551dfc0ef | [
"Apache-2.0"
] | 3 | 2016-11-09T13:02:46.000Z | 2020-06-04T10:38:11.000Z | downloader.py | tuxetuxe/downloader | 76a1ac01189a6946b15ac6f58661931551dfc0ef | [
"Apache-2.0"
] | null | null | null | downloader.py | tuxetuxe/downloader | 76a1ac01189a6946b15ac6f58661931551dfc0ef | [
"Apache-2.0"
] | null | null | null | import sys, getopt
import sched
import time
import csv
from pprint import pprint
import urllib, urllib2
from random import randint
import threading
proxies_file = ""
targets_file = ""
proxies = []
targets = []
scheduler = sched.scheduler(time.time, time.sleep)
def pick_random_proxy():
proxy_count = len(proxies... | 25.470588 | 88 | 0.626856 | 356 | 3,031 | 5.174157 | 0.303371 | 0.035831 | 0.02823 | 0.024973 | 0.149837 | 0.087948 | 0.087948 | 0.052117 | 0.052117 | 0 | 0 | 0.006005 | 0.17585 | 3,031 | 119 | 89 | 25.470588 | 0.731385 | 0.014187 | 0 | 0.091954 | 0 | 0 | 0.18614 | 0.079344 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.091954 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1820ae4e6fd68c69f37f4266bffb6793e643a89a | 6,580 | py | Python | script.py | rahulkmr1/heroku-python-script | 053be38dc8c6c6ab9929ca5af772d19c57f5e498 | [
"MIT"
] | null | null | null | script.py | rahulkmr1/heroku-python-script | 053be38dc8c6c6ab9929ca5af772d19c57f5e498 | [
"MIT"
] | null | null | null | script.py | rahulkmr1/heroku-python-script | 053be38dc8c6c6ab9929ca5af772d19c57f5e498 | [
"MIT"
] | null | null | null | import telepot
import time
import requests
from bs4 import BeautifulSoup as bs
import cPickle
import csv
RAHUL_ID = 931906767
# You can leave this bit out if you're using a paid PythonAnywhere account
# proxy_url = "http://proxy.server:3128"
# telepot.api._pools = {
# 'default': urllib3.ProxyManager(proxy_url=pro... | 25.019011 | 173 | 0.655623 | 1,004 | 6,580 | 4.199203 | 0.249004 | 0.039848 | 0.051233 | 0.056926 | 0.398008 | 0.344877 | 0.254507 | 0.232448 | 0.212287 | 0.16888 | 0 | 0.016607 | 0.158055 | 6,580 | 262 | 174 | 25.114504 | 0.744404 | 0.180091 | 0 | 0.225166 | 0 | 0.02649 | 0.242419 | 0.019333 | 0.006623 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006623 | 0.039735 | null | null | 0.033113 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
182e6f7b7c70dcc5da411a03395acac1d83ee9e9 | 3,136 | py | Python | src/models/Models.py | nbrutti/uol-export | c79a1a6b5c68e61a85952a60b935943aec27cdda | [
"MIT"
] | null | null | null | src/models/Models.py | nbrutti/uol-export | c79a1a6b5c68e61a85952a60b935943aec27cdda | [
"MIT"
] | null | null | null | src/models/Models.py | nbrutti/uol-export | c79a1a6b5c68e61a85952a60b935943aec27cdda | [
"MIT"
] | null | null | null | from config.defs import *
import peewee
db = peewee.SqliteDatabase(DATABASE_NAME)
class BaseModel(peewee.Model):
class Meta:
database = db
class Partida(BaseModel):
id_time_casa = peewee.CharField()
id_time_visitante = peewee.CharField()
time_casa = peewee.CharField()
time_visitante = peewee.CharField(... | 24.888889 | 144 | 0.748724 | 334 | 3,136 | 6.871257 | 0.218563 | 0.104575 | 0.067102 | 0.097603 | 0.36427 | 0.294553 | 0.129847 | 0.129847 | 0.129847 | 0.129847 | 0 | 0 | 0.151786 | 3,136 | 126 | 144 | 24.888889 | 0.862782 | 0.010842 | 0 | 0.333333 | 0 | 0 | 0.066257 | 0.023594 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021505 | 0 | 0.806452 | 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 |
182eadd7acbf4364e0c9b88cd120533f1ae8e1e3 | 1,165 | py | Python | quantnn/__init__.py | simonpf/qrnn | 1de11ce8cede6b4b3de0734bcc8c198c10226188 | [
"MIT"
] | null | null | null | quantnn/__init__.py | simonpf/qrnn | 1de11ce8cede6b4b3de0734bcc8c198c10226188 | [
"MIT"
] | 3 | 2022-01-11T08:41:03.000Z | 2022-02-11T14:25:09.000Z | quantnn/__init__.py | simonpf/qrnn | 1de11ce8cede6b4b3de0734bcc8c198c10226188 | [
"MIT"
] | 5 | 2020-12-11T03:18:32.000Z | 2022-02-14T10:32:09.000Z | r"""
=======
quantnn
=======
The quantnn package provides functionality for probabilistic modeling and prediction
using deep neural networks.
The two main features of the quantnn package are implemented by the
:py:class:`~quantnn.qrnn.QRNN` and :py:class:`~quantnn.qrnn.DRNN` classes, which implement
quantile regressi... | 29.871795 | 91 | 0.775107 | 150 | 1,165 | 5.866667 | 0.54 | 0.05 | 0.038636 | 0.040909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128755 | 1,165 | 38 | 92 | 30.657895 | 0.866995 | 0.480687 | 0 | 0 | 0 | 0 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
18323906f8da6c858e162af77f828aa7dc3d5141 | 1,314 | py | Python | leetcode/445.Add_Two_Numbers_II/python/add_two_numbers_v1.py | realXuJiang/research_algorithms | 8f2876288cb607b9eddb2aa75f51a1d574b51ec4 | [
"Apache-2.0"
] | 1 | 2019-08-12T09:32:30.000Z | 2019-08-12T09:32:30.000Z | leetcode/445.Add_Two_Numbers_II/python/add_two_numbers_v1.py | realXuJiang/research_algorithms | 8f2876288cb607b9eddb2aa75f51a1d574b51ec4 | [
"Apache-2.0"
] | null | null | null | leetcode/445.Add_Two_Numbers_II/python/add_two_numbers_v1.py | realXuJiang/research_algorithms | 8f2876288cb607b9eddb2aa75f51a1d574b51ec4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class TwoNumbers(object):
@staticmethod
def builderListNode(nums):
if nums is not None:
head = ListNode(str(nums)[0])
a = head
... | 22.655172 | 42 | 0.47793 | 153 | 1,314 | 4.026144 | 0.352941 | 0.073052 | 0.043831 | 0.084416 | 0.094156 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039897 | 0.408676 | 1,314 | 57 | 43 | 23.052632 | 0.752896 | 0.031202 | 0 | 0.108696 | 0 | 0 | 0.009441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
183ecccecd1a87d9ecdaf239b0b8acab5f9e8ed2 | 6,888 | py | Python | gamble/gamble.py | lookma/simple-coin-gamble | 8f1684e62b62f28a176458606ed193c812d97bc7 | [
"MIT"
] | null | null | null | gamble/gamble.py | lookma/simple-coin-gamble | 8f1684e62b62f28a176458606ed193c812d97bc7 | [
"MIT"
] | null | null | null | gamble/gamble.py | lookma/simple-coin-gamble | 8f1684e62b62f28a176458606ed193c812d97bc7 | [
"MIT"
] | null | null | null | from random import randint
from typing import Callable, List, Optional
class Coin:
"""Simulates a coin."""
def __init__(self) -> None:
self.__head = False
self.__toss_count = 0
self.__head_count = 0
def toss(self) -> None:
"""Toss a coin."""
r = randint(1, 2)
... | 30.477876 | 99 | 0.620499 | 862 | 6,888 | 4.582367 | 0.12413 | 0.06481 | 0.036456 | 0.033671 | 0.182532 | 0.095443 | 0.051392 | 0 | 0 | 0 | 0 | 0.011129 | 0.28252 | 6,888 | 226 | 100 | 30.477876 | 0.788142 | 0.085075 | 0 | 0.149068 | 0 | 0 | 0.000163 | 0 | 0 | 0 | 0 | 0 | 0.031056 | 1 | 0.204969 | false | 0 | 0.012422 | 0.080745 | 0.397516 | 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 |
1847f0a48843e1e83cb2f45be72c476d66e2ca39 | 562 | py | Python | setup.py | rif/imgdup | fe59c6b4b8c06699d48f887bc7a90acea48aa8f2 | [
"MIT"
] | 14 | 2016-02-10T04:53:42.000Z | 2021-08-08T17:39:55.000Z | setup.py | rif/imgdup | fe59c6b4b8c06699d48f887bc7a90acea48aa8f2 | [
"MIT"
] | null | null | null | setup.py | rif/imgdup | fe59c6b4b8c06699d48f887bc7a90acea48aa8f2 | [
"MIT"
] | 2 | 2017-11-01T14:02:46.000Z | 2019-02-20T10:55:52.000Z | from setuptools import setup, find_packages
setup(
name = "imgdup",
version = "1.3",
packages = find_packages(),
scripts = ['imgdup.py'],
install_requires = ['pillow>=2.8.1'],
# metadata for upload to PyPI
author = "Radu Ioan Fericean",
author_email = "radu@fericean.ro",
description... | 31.222222 | 90 | 0.663701 | 68 | 562 | 5.426471 | 0.779412 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.211744 | 562 | 17 | 91 | 33.058824 | 0.82167 | 0.094306 | 0 | 0 | 0 | 0 | 0.426877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
184bf76e800fcea4dae223c4ac96db64613fb1ae | 709 | py | Python | humfrey/update/utils.py | ox-it/humfrey | c92e46a24a9bf28aa9638a612f166d209315e76b | [
"BSD-3-Clause"
] | 6 | 2015-01-09T15:53:07.000Z | 2020-02-13T14:00:53.000Z | humfrey/update/utils.py | ox-it/humfrey | c92e46a24a9bf28aa9638a612f166d209315e76b | [
"BSD-3-Clause"
] | null | null | null | humfrey/update/utils.py | ox-it/humfrey | c92e46a24a9bf28aa9638a612f166d209315e76b | [
"BSD-3-Clause"
] | 1 | 2017-05-12T20:46:15.000Z | 2017-05-12T20:46:15.000Z | from django.conf import settings
from django.utils.importlib import import_module
from humfrey.update.transform.base import Transform
def get_transforms():
try:
return get_transforms._cache
except AttributeError:
pass
transforms = {'__builtins__': {}}
for class_path in settings.UPDATE... | 29.541667 | 67 | 0.723554 | 79 | 709 | 6.189873 | 0.455696 | 0.106339 | 0.07362 | 0.07771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001745 | 0.191819 | 709 | 23 | 68 | 30.826087 | 0.851658 | 0 | 0 | 0 | 0 | 0 | 0.023977 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.111111 | false | 0.055556 | 0.222222 | 0.055556 | 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 |
184fa55d99eb6ba4a36992ee508941f13328275f | 1,074 | py | Python | src/python/autotransform/input/empty.py | nathro/AutoTransform | 04ef5458bc8401121e33370ceda6ef638e535e9a | [
"MIT"
] | 11 | 2022-01-02T00:50:24.000Z | 2022-02-22T00:30:09.000Z | src/python/autotransform/input/empty.py | nathro/AutoTransform | 04ef5458bc8401121e33370ceda6ef638e535e9a | [
"MIT"
] | 6 | 2022-01-06T01:45:34.000Z | 2022-02-03T21:49:52.000Z | src/python/autotransform/input/empty.py | nathro/AutoTransform | 04ef5458bc8401121e33370ceda6ef638e535e9a | [
"MIT"
] | null | null | null | # AutoTransform
# Large scale, component based code modification library
#
# Licensed under the MIT License <http://opensource.org/licenses/MIT>
# SPDX-License-Identifier: MIT
# Copyright (c) 2022-present Nathan Rockenbach <http://github.com/nathro>
# @black_format
"""The implementation for the DirectoryInput."""
fr... | 28.263158 | 83 | 0.712291 | 136 | 1,074 | 5.580882 | 0.566176 | 0.027668 | 0.043478 | 0.047431 | 0.047431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004678 | 0.203911 | 1,074 | 37 | 84 | 29.027027 | 0.883041 | 0.622905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 |
185637d8cc3eb01cc46a55e5e9f5b84f8e7f9e79 | 1,746 | py | Python | hard-gists/749857/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/749857/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/749857/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
# launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist
from twisted.internet import reactor, stdio, defer
from twisted.internet.protocol import Protocol, Factory
from twisted.protocols.ba... | 31.178571 | 87 | 0.605956 | 215 | 1,746 | 4.855814 | 0.567442 | 0.031609 | 0.049808 | 0.055556 | 0.088123 | 0.088123 | 0.088123 | 0 | 0 | 0 | 0 | 0.029197 | 0.215349 | 1,746 | 55 | 88 | 31.745455 | 0.732847 | 0.151203 | 0 | 0 | 0 | 0 | 0.152336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
185b8c2212dd3b144fbc0efeca4d07970b4b5805 | 316 | py | Python | exercicios/ex090.py | Siqueira-Vinicius/Python | bd1f7e2bcdfd5481724d32db387f51636bb4ad60 | [
"MIT"
] | null | null | null | exercicios/ex090.py | Siqueira-Vinicius/Python | bd1f7e2bcdfd5481724d32db387f51636bb4ad60 | [
"MIT"
] | null | null | null | exercicios/ex090.py | Siqueira-Vinicius/Python | bd1f7e2bcdfd5481724d32db387f51636bb4ad60 | [
"MIT"
] | null | null | null | aluno = {}
aluno['nome'] = str(input('Digite o nome do aluno: '))
aluno['media'] = float(input('Digite a média desse aluno: '))
if aluno['media'] >= 5:
aluno['situação'] = '\033[32mAprovado\033[m'
else:
aluno['situação'] = '\033[31mReprovado\033[m'
for k, v in aluno.items():
print(f'{k} do aluno é {v}') | 35.111111 | 61 | 0.617089 | 49 | 316 | 3.979592 | 0.571429 | 0.102564 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064151 | 0.161392 | 316 | 9 | 62 | 35.111111 | 0.671698 | 0 | 0 | 0 | 0 | 0 | 0.457413 | 0.141956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
18664b760b4ae7d4a23d616670b3152102c11769 | 401 | py | Python | project/main/migrations/0003_auto_20200504_1852.py | Leeoku/MovieCrud | fb9e364895684f0cb1e3c1bc68971f0d4a7df1fc | [
"MIT"
] | null | null | null | project/main/migrations/0003_auto_20200504_1852.py | Leeoku/MovieCrud | fb9e364895684f0cb1e3c1bc68971f0d4a7df1fc | [
"MIT"
] | 6 | 2021-03-19T02:52:05.000Z | 2021-09-22T18:58:44.000Z | project/main/migrations/0003_auto_20200504_1852.py | Leeoku/MovieCrud | fb9e364895684f0cb1e3c1bc68971f0d4a7df1fc | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-05-04 18:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20200323_0327'),
]
operations = [
migrations.AlterField(
model_name='movieentry',
name='date_watch... | 21.105263 | 58 | 0.605985 | 44 | 401 | 5.409091 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107266 | 0.279302 | 401 | 18 | 59 | 22.277778 | 0.716263 | 0.112219 | 0 | 0 | 1 | 0 | 0.138418 | 0.064972 | 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 |
186a5816589e84e463b32b76302f76cecdf63a3d | 710 | py | Python | misc/redirector.py | ktan2020/tooling | 5a22adc2895f5baa98faad7028061219c545a675 | [
"MIT"
] | null | null | null | misc/redirector.py | ktan2020/tooling | 5a22adc2895f5baa98faad7028061219c545a675 | [
"MIT"
] | null | null | null | misc/redirector.py | ktan2020/tooling | 5a22adc2895f5baa98faad7028061219c545a675 | [
"MIT"
] | null | null | null | import SimpleHTTPServer
import SocketServer
import sys
from optparse import OptionParser
class myHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
print self.path
self.send_response(301)
new_path = 'http://%s%s'%(o.ip, self.path)
self.send_header('Location', new_path)... | 27.307692 | 67 | 0.685915 | 100 | 710 | 4.77 | 0.56 | 0.050314 | 0.050314 | 0.067086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013629 | 0.173239 | 710 | 25 | 68 | 28.4 | 0.798978 | 0 | 0 | 0 | 0 | 0 | 0.152113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1875fb8f105e2c1eaf8a87c9adee8cca7ddd3e65 | 1,831 | py | Python | setup.py | AnacletoLAB/grape | 5ed0a84b7cedf588715919782f37c9492263bd12 | [
"MIT"
] | 6 | 2021-09-22T17:40:01.000Z | 2022-03-24T04:28:00.000Z | setup.py | AnacletoLAB/grape | 5ed0a84b7cedf588715919782f37c9492263bd12 | [
"MIT"
] | 5 | 2021-10-14T10:48:27.000Z | 2022-03-23T11:03:05.000Z | setup.py | AnacletoLAB/grape | 5ed0a84b7cedf588715919782f37c9492263bd12 | [
"MIT"
] | 2 | 2021-09-13T16:24:08.000Z | 2021-09-24T16:23:35.000Z | import os
import re
# To use a consistent encoding
from codecs import open as copen
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with copen(path.join(here, 'README.rst'), encoding='utf-8') as f:
long... | 27.328358 | 83 | 0.653195 | 227 | 1,831 | 5.088106 | 0.555066 | 0.051948 | 0.020779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009543 | 0.198798 | 1,831 | 66 | 84 | 27.742424 | 0.777778 | 0.070453 | 0 | 0 | 0 | 0 | 0.30878 | 0.083677 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.041667 | false | 0 | 0.104167 | 0 | 0.1875 | 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 |
1876d8349cdadc13b5b12782011e2506eb566592 | 1,299 | py | Python | NorthernLights/shapes/BaseShape.py | jgillick/coffeetable-programs | 244e3cc9099993a050ed64b1d11e41c763a1cb72 | [
"MIT"
] | null | null | null | NorthernLights/shapes/BaseShape.py | jgillick/coffeetable-programs | 244e3cc9099993a050ed64b1d11e41c763a1cb72 | [
"MIT"
] | null | null | null | NorthernLights/shapes/BaseShape.py | jgillick/coffeetable-programs | 244e3cc9099993a050ed64b1d11e41c763a1cb72 | [
"MIT"
] | null | null | null | import time
# Colors
RED = (1,0,0)
YELLOW = (1,1,0)
GREEN = (0,1,0)
CYAN = (0,1,1)
BLUE = (0,0,1)
PURPLE = (1,0,1)
class BaseShape:
# A list of instance attribute names, which are animatable objects
animatable_attrs = []
# The time of the last animation update
last_update = None
# The nu... | 24.055556 | 70 | 0.583526 | 175 | 1,299 | 4.125714 | 0.422857 | 0.055402 | 0.049862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029312 | 0.317167 | 1,299 | 53 | 71 | 24.509434 | 0.784667 | 0.225558 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0.057143 | 0.028571 | 0.057143 | 0.428571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43eab223999e2604b87fae88107217a209d85e53 | 859 | py | Python | teachers_toolkit/grading_system/migrations/0003_auto_20180706_1923.py | luiscberrocal/teachers_toolkit | 078c55c4a9ad9c5a74e1484d80ac34f3b26b69c9 | [
"MIT"
] | null | null | null | teachers_toolkit/grading_system/migrations/0003_auto_20180706_1923.py | luiscberrocal/teachers_toolkit | 078c55c4a9ad9c5a74e1484d80ac34f3b26b69c9 | [
"MIT"
] | null | null | null | teachers_toolkit/grading_system/migrations/0003_auto_20180706_1923.py | luiscberrocal/teachers_toolkit | 078c55c4a9ad9c5a74e1484d80ac34f3b26b69c9 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-06 19:23
from django.db import migrations, models
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('grading_system', '0002_student_email'),
]
operations = [
migrations.RenameField(
model_name='... | 28.633333 | 135 | 0.620489 | 90 | 859 | 5.744444 | 0.655556 | 0.052224 | 0.069633 | 0.092843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039809 | 0.268917 | 859 | 29 | 136 | 29.62069 | 0.783439 | 0.052387 | 0 | 0.130435 | 1 | 0 | 0.126847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
43f298d87e261cc2cbf422453d37df22dea68372 | 1,604 | py | Python | etravel/urls.py | zahir1509/project-ap-etravel | 2113a84ae4340be0e8cfa2676f448878c625e3e3 | [
"MIT"
] | 1 | 2020-12-06T17:49:11.000Z | 2020-12-06T17:49:11.000Z | etravel/urls.py | zahir1509/project-ap-etravel | 2113a84ae4340be0e8cfa2676f448878c625e3e3 | [
"MIT"
] | null | null | null | etravel/urls.py | zahir1509/project-ap-etravel | 2113a84ae4340be0e8cfa2676f448878c625e3e3 | [
"MIT"
] | 1 | 2020-12-07T14:20:41.000Z | 2020-12-07T14:20:41.000Z | """etravel URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 42.210526 | 77 | 0.706983 | 212 | 1,604 | 5.301887 | 0.386792 | 0.044484 | 0.013345 | 0.021352 | 0.104093 | 0.104093 | 0.066726 | 0 | 0 | 0 | 0 | 0.005844 | 0.146509 | 1,604 | 37 | 78 | 43.351351 | 0.815194 | 0.388404 | 0 | 0 | 0 | 0 | 0.224846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.263158 | 0 | 0.263158 | 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 |
43f6f242e391b123212da34e3f976064029b361e | 627 | py | Python | exs/mundo_2/python/067.py | QuatroQuatros/exercicios-CeV | c9b995b717fe1dd2c2eee3557db0161390bc78b0 | [
"MIT"
] | 45 | 2021-01-02T18:36:01.000Z | 2022-03-26T19:46:47.000Z | exs/mundo_2/python/067.py | QuatroQuatros/exercicios-CeV | c9b995b717fe1dd2c2eee3557db0161390bc78b0 | [
"MIT"
] | 24 | 2020-12-31T17:23:16.000Z | 2021-03-11T19:44:36.000Z | exs/mundo_2/python/067.py | QuatroQuatros/exercicios-CeV | c9b995b717fe1dd2c2eee3557db0161390bc78b0 | [
"MIT"
] | 28 | 2020-12-30T15:57:16.000Z | 2022-03-26T19:46:49.000Z | """
Desafio 067
Problema: Faça um programa que mostre a tabuada de vários números,
um de cada vez, para cada valor digitado pelo usuário.
O programa será interrompido quando o número solicitado
for negativo.
Resolução do problema:
"""
print('-' * 20)
print(f'{" Tabuada v3.0 ":~^20}')
pri... | 23.222222 | 66 | 0.601276 | 86 | 627 | 4.383721 | 0.627907 | 0.074271 | 0.103448 | 0.068966 | 0.106101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048936 | 0.250399 | 627 | 26 | 67 | 24.115385 | 0.753191 | 0.411483 | 0 | 0.333333 | 0 | 0 | 0.393352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a10591815a24a01b78e2571e754c9c37c5e03b4b | 205 | py | Python | wave/synth/wave/wave/base/curve.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | wave/synth/wave/wave/base/curve.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | wave/synth/wave/wave/base/curve.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import Generic, Mapping, TypeVar
__all__ = ["Curve"]
T = TypeVar("T")
U = TypeVar("U")
@dataclass
class _Curve(Generic[T, U]):
mapping: Mapping[T, U]
| 14.642857 | 44 | 0.692683 | 28 | 205 | 4.892857 | 0.464286 | 0.043796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 205 | 13 | 45 | 15.769231 | 0.805882 | 0 | 0 | 0 | 0 | 0 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a10f0a0a33562a06ed9b546b2f53186a7237246b | 2,387 | py | Python | setup.py | mehta-lab/recOrder | 67f2edb9ab13114dfe41d57e465ae24f961b0004 | [
"Unlicense"
] | 2 | 2022-01-19T21:13:32.000Z | 2022-02-24T19:40:24.000Z | setup.py | mehta-lab/recOrder | 67f2edb9ab13114dfe41d57e465ae24f961b0004 | [
"Unlicense"
] | 55 | 2021-06-24T18:53:18.000Z | 2022-03-30T21:05:14.000Z | setup.py | mehta-lab/recOrder | 67f2edb9ab13114dfe41d57e465ae24f961b0004 | [
"Unlicense"
] | null | null | null | import os.path as osp
from setuptools import setup, find_packages
# todo: modify as we decide on versions, names, descriptions. readme
MIN_PY_VER = '3.7'
DISTNAME = 'recOrder'
DESCRIPTION = 'computational microscopy toolkit for label-free imaging'
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
... | 33.619718 | 86 | 0.6615 | 260 | 2,387 | 5.9 | 0.507692 | 0.068449 | 0.065189 | 0.050847 | 0.036506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006948 | 0.216171 | 2,387 | 70 | 87 | 34.1 | 0.812934 | 0.06703 | 0 | 0 | 0 | 0 | 0.398019 | 0.065286 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 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 |
a11034c8715f1c4364caa1c40989aaba6b81cecc | 2,983 | py | Python | codango/account/api.py | NdagiStanley/silver-happiness | 67fb6dd4047c603a84276f88a021d4489cf3b41e | [
"MIT"
] | 2 | 2019-10-17T01:03:12.000Z | 2021-11-24T07:43:14.000Z | codango/account/api.py | NdagiStanley/silver-happiness | 67fb6dd4047c603a84276f88a021d4489cf3b41e | [
"MIT"
] | 49 | 2019-09-05T02:48:04.000Z | 2021-06-28T02:29:42.000Z | codango/account/api.py | NdagiStanley/silver-happiness | 67fb6dd4047c603a84276f88a021d4489cf3b41e | [
"MIT"
] | 1 | 2021-11-25T10:19:27.000Z | 2021-11-25T10:19:27.000Z | import psycopg2
from rest_framework import generics, permissions
# from serializers import UserSerializer, UserFollowSerializer, UserSettingsSerializer
from serializers import UserSerializer, UserFollowSerializer, UserSettingsSerializer
from serializers import AllUsersSerializer, UserRegisterSerializer
from userprofil... | 31.072917 | 86 | 0.706336 | 315 | 2,983 | 6.612698 | 0.377778 | 0.020163 | 0.026884 | 0.031205 | 0.334133 | 0.284205 | 0.215554 | 0.18867 | 0.167547 | 0.083533 | 0 | 0.004614 | 0.200805 | 2,983 | 95 | 87 | 31.4 | 0.869128 | 0.207844 | 0 | 0.191489 | 0 | 0 | 0.032273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.148936 | 0 | 0.765957 | 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 |
a111d2ca236c2a067c9980e65999cf841b19dd21 | 548 | py | Python | scholariumat/products/migrations/0012_auto_20181125_1221.py | valuehack/scholariumat | 47c13f3429b95b9ad5ca59b45cf971895260bb5c | [
"MIT"
] | null | null | null | scholariumat/products/migrations/0012_auto_20181125_1221.py | valuehack/scholariumat | 47c13f3429b95b9ad5ca59b45cf971895260bb5c | [
"MIT"
] | 232 | 2018-06-30T11:40:52.000Z | 2020-04-29T23:55:41.000Z | scholariumat/products/migrations/0012_auto_20181125_1221.py | valuehack/scholariumat | 47c13f3429b95b9ad5ca59b45cf971895260bb5c | [
"MIT"
] | 3 | 2018-05-31T12:57:03.000Z | 2020-02-27T16:25:44.000Z | # Generated by Django 2.0.9 on 2018-11-25 11:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0011_auto_20181123_1446'),
]
operations = [
migrations.RenameField(
model_name='item',
old_name='amount'... | 22.833333 | 66 | 0.578467 | 55 | 548 | 5.6 | 0.727273 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081794 | 0.308394 | 548 | 23 | 67 | 23.826087 | 0.730871 | 0.082117 | 0 | 0.117647 | 1 | 0 | 0.139721 | 0.045908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.