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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59fe4180e7296a7630c5819c4bae3127f05b20e6 | 2,470 | py | Python | reddit_utils/reddit_rss.py | anletr97/reddit-rss-reader | ff6e8ee1d5d054df378d81bfef0cbd653099e03e | [
"MIT"
] | null | null | null | reddit_utils/reddit_rss.py | anletr97/reddit-rss-reader | ff6e8ee1d5d054df378d81bfef0cbd653099e03e | [
"MIT"
] | null | null | null | reddit_utils/reddit_rss.py | anletr97/reddit-rss-reader | ff6e8ee1d5d054df378d81bfef0cbd653099e03e | [
"MIT"
] | null | null | null | """Reddit rss process"""
import feedparser
import pytz
import redis
import re
from datetime import datetime
from dateutil import parser
from config import REDIS_URL
from utils.log_utils import error_log, info_log
REDDIT_URL_REGEX = '.*reddit.com/r/{}/.*'
class RedditRss:
"""
REDDIT RSS
... | 36.323529 | 79 | 0.54413 | 265 | 2,470 | 4.962264 | 0.358491 | 0.068441 | 0.022814 | 0.019772 | 0.045627 | 0.045627 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0.348988 | 2,470 | 67 | 80 | 36.865672 | 0.817786 | 0.097166 | 0 | 0 | 0 | 0 | 0.088529 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.0625 | false | 0 | 0.166667 | 0 | 0.270833 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59feb2a4d25b643fc022ae8094c89907dd97d199 | 1,211 | py | Python | development/migrations/0036_filingcode.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | development/migrations/0036_filingcode.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | 11 | 2020-03-24T15:29:46.000Z | 2022-03-11T23:14:48.000Z | development/migrations/0036_filingcode.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('development', '0035_developmentproject_misc_textareas'),
]
operations = [
migrations.CreateModel(
... | 37.84375 | 132 | 0.606936 | 113 | 1,211 | 6.336283 | 0.522124 | 0.145251 | 0.156425 | 0.184358 | 0.382682 | 0.382682 | 0.382682 | 0 | 0 | 0 | 0 | 0.012263 | 0.25929 | 1,211 | 31 | 133 | 39.064516 | 0.785953 | 0.017341 | 0 | 0 | 0 | 0 | 0.113636 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 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 |
940d8c131f74d919f9e0716eaac59c3ba7740e6e | 301 | py | Python | Practice/CARVANS.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/CARVANS.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | Practice/CARVANS.py | anirudhkannanvp/CODECHEF | 6d108058c11207caa2e35e471ba88f84c0ea9774 | [
"MIT"
] | null | null | null | t=int(input())
while(t):
t=t-1
n=int(input())
c=0
a=list(map(int,input().split()))
b=[]
b.append(int(a[0]))
for i in range(1,len(a)):
b.append(min(int(a[i]),int(b[i-1])))
for i in range(0,len(a)):
if(int(a[i])==int(b[i])):
c+=1
print(c)
| 20.066667 | 44 | 0.451827 | 60 | 301 | 2.266667 | 0.366667 | 0.176471 | 0.088235 | 0.161765 | 0.147059 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.27907 | 301 | 14 | 45 | 21.5 | 0.59447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 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 |
940db3ad6a903ad3aefe9e180005300e57f24ce6 | 398 | py | Python | nose2/tests/functional/support/scenario/package_in_lib/tests.py | Metaswitch/nose2 | 1fdb46ef9eb279fb1f9b2321dc978977876e8230 | [
"BSD-2-Clause"
] | null | null | null | nose2/tests/functional/support/scenario/package_in_lib/tests.py | Metaswitch/nose2 | 1fdb46ef9eb279fb1f9b2321dc978977876e8230 | [
"BSD-2-Clause"
] | null | null | null | nose2/tests/functional/support/scenario/package_in_lib/tests.py | Metaswitch/nose2 | 1fdb46ef9eb279fb1f9b2321dc978977876e8230 | [
"BSD-2-Clause"
] | 1 | 2019-11-24T12:11:52.000Z | 2019-11-24T12:11:52.000Z | import logging
import unittest
from pkg2 import get_one
log = logging.getLogger(__name__)
log.debug("module imported")
def test():
log.debug("test run")
assert get_one() == 1
def test_fail():
log.debug("test_fail run")
assert get_one() == 2
class Tests(unittest.TestCase):
def test_fail2(self... | 16.583333 | 38 | 0.668342 | 57 | 398 | 4.45614 | 0.473684 | 0.094488 | 0.141732 | 0.11811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018927 | 0.203518 | 398 | 23 | 39 | 17.304348 | 0.782334 | 0 | 0 | 0 | 0 | 0 | 0.125628 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9415385678a1221088b78d1a95a643f696936592 | 562 | py | Python | apps/publications/migrations/0001_initial.py | swelanauguste/notices1 | 3e05746ad5c3af62dd2fa94beb9b3d3447f2086d | [
"MIT"
] | null | null | null | apps/publications/migrations/0001_initial.py | swelanauguste/notices1 | 3e05746ad5c3af62dd2fa94beb9b3d3447f2086d | [
"MIT"
] | null | null | null | apps/publications/migrations/0001_initial.py | swelanauguste/notices1 | 3e05746ad5c3af62dd2fa94beb9b3d3447f2086d | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-12 20:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Publication',
fields=[
('id', models.BigAut... | 25.545455 | 127 | 0.581851 | 58 | 562 | 5.568966 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041565 | 0.272242 | 562 | 21 | 128 | 26.761905 | 0.748166 | 0.080071 | 0 | 0 | 1 | 0 | 0.08932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 |
941bbc3a77c6615f93949c82eccbf44cc0d70dfe | 3,605 | py | Python | mdutils/tools/MDList.py | Alexmod/mdutils | 97d28346fabb851e068963da6dabfbcaa145c4e0 | [
"MIT"
] | 110 | 2019-09-10T13:28:40.000Z | 2022-03-27T23:38:41.000Z | mdutils/tools/MDList.py | Alexmod/mdutils | 97d28346fabb851e068963da6dabfbcaa145c4e0 | [
"MIT"
] | 43 | 2018-05-05T00:56:48.000Z | 2022-03-27T16:06:37.000Z | mdutils/tools/MDList.py | Alexmod/mdutils | 97d28346fabb851e068963da6dabfbcaa145c4e0 | [
"MIT"
] | 39 | 2019-12-19T03:54:54.000Z | 2022-03-28T22:08:01.000Z | # Python
#
# This module implements tests for Header class.
#
# This file is part of mdutils. https://github.com/didix21/mdutils
#
# MIT License: (C) 2020 Dídac Coll
import re
class MDListHelper:
def __init__(self):
self.n_tabs = 0
def _get_unordered_markdown_list(self, items: [str], marker: str) -> ... | 31.902655 | 115 | 0.591956 | 475 | 3,605 | 4.221053 | 0.214737 | 0.03591 | 0.031421 | 0.04788 | 0.537157 | 0.461845 | 0.38404 | 0.325686 | 0.295262 | 0.295262 | 0 | 0.007405 | 0.288211 | 3,605 | 112 | 116 | 32.1875 | 0.773967 | 0.215257 | 0 | 0.459016 | 0 | 0 | 0.025766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.016393 | 0.065574 | 0.459016 | 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 |
942ff7cba48d4da3f588c7b79cbe67a3aa5af098 | 1,873 | py | Python | water_modelling/simulation/simulation_service.py | Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine | 4b28f75fb74647d6453385a893149a48f797eeed | [
"MIT"
] | null | null | null | water_modelling/simulation/simulation_service.py | Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine | 4b28f75fb74647d6453385a893149a48f797eeed | [
"MIT"
] | null | null | null | water_modelling/simulation/simulation_service.py | Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine | 4b28f75fb74647d6453385a893149a48f797eeed | [
"MIT"
] | null | null | null | from typing import Tuple, List
from app_config import deployment_config
from simulation.simulation import Simulation
from simulation.simulation_stage_status import SimulationStageStatus
class SimulationService:
def __init__(self, hydrus_dir: str, modflow_dir: str):
self.hydrus_dir = hydrus_dir
se... | 45.682927 | 117 | 0.696209 | 208 | 1,873 | 5.966346 | 0.25 | 0.11523 | 0.12087 | 0.108783 | 0.216761 | 0.181305 | 0.099114 | 0 | 0 | 0 | 0 | 0 | 0.237587 | 1,873 | 40 | 118 | 46.825 | 0.869048 | 0.101975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.115385 | 0.153846 | 0 | 0.423077 | 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 |
94329fa753d02bdb02120d21d9a577ae1dfdf72f | 561 | py | Python | submissions/team8_GBR/regressor.py | f-tonini/storm_forecast | 65b8662e1278f3a89eaf91f8a9bd4ed20594f8ce | [
"BSD-3-Clause"
] | 2 | 2019-12-16T07:23:32.000Z | 2020-12-22T17:16:00.000Z | submissions/team8_GBR/regressor.py | f-tonini/storm_forecast | 65b8662e1278f3a89eaf91f8a9bd4ed20594f8ce | [
"BSD-3-Clause"
] | null | null | null | submissions/team8_GBR/regressor.py | f-tonini/storm_forecast | 65b8662e1278f3a89eaf91f8a9bd4ed20594f8ce | [
"BSD-3-Clause"
] | 2 | 2019-12-16T07:23:35.000Z | 2020-06-28T10:02:57.000Z | from sklearn import linear_model
from sklearn.preprocessing import Imputer
from sklearn.pipeline import Pipeline
from sklearn.base import BaseEstimator
from sklearn.ensemble import GradientBoostingRegressor
class Regressor(BaseEstimator):
def __init__(self):
self.reg = Pipeline([
('imputer', Im... | 31.166667 | 80 | 0.682709 | 65 | 561 | 5.8 | 0.476923 | 0.145889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006834 | 0.217469 | 561 | 17 | 81 | 33 | 0.851936 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.333333 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9436c3923e26bec7f0987225a1bdfc8441d32548 | 3,986 | py | Python | photobox/main.py | MarkusAmshove/Photobox | 14d90177346c150d6b11eb9f20a43c6f26272f25 | [
"MIT"
] | 1 | 2017-08-24T09:42:22.000Z | 2017-08-24T09:42:22.000Z | photobox/main.py | MarkusAmshove/Photobox | 14d90177346c150d6b11eb9f20a43c6f26272f25 | [
"MIT"
] | null | null | null | photobox/main.py | MarkusAmshove/Photobox | 14d90177346c150d6b11eb9f20a43c6f26272f25 | [
"MIT"
] | null | null | null | import pygame
import time
import datetime
import os
import Colors
import SwitchState
import random
from photoslideshow import Photoslideshow
class Photobox():
def __init__(self, windowsize, photofolder, camera, switch, cheesepicfolder):
pygame.init()
self.windowsize = windowsize
self.phot... | 32.672131 | 81 | 0.592323 | 395 | 3,986 | 5.931646 | 0.341772 | 0.035851 | 0.044388 | 0.043534 | 0.084934 | 0.084934 | 0.067435 | 0.067435 | 0.067435 | 0.067435 | 0 | 0.013909 | 0.314601 | 3,986 | 121 | 82 | 32.942149 | 0.843704 | 0.010788 | 0 | 0.132075 | 0 | 0 | 0.006851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009434 | 0.075472 | null | null | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9437aec38dd3850c6b0896545b42ad713a0caf0e | 1,588 | py | Python | vectorflow/loss/loss.py | dongrenguang/VectorFlow | 1e08a0cff6e0a282b03356d58cf4bab66339f922 | [
"MIT"
] | null | null | null | vectorflow/loss/loss.py | dongrenguang/VectorFlow | 1e08a0cff6e0a282b03356d58cf4bab66339f922 | [
"MIT"
] | null | null | null | vectorflow/loss/loss.py | dongrenguang/VectorFlow | 1e08a0cff6e0a282b03356d58cf4bab66339f922 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
损失函数
Authors: dongrenguang(dongrenguang@163.com)
Date: 2021/10/17
"""
import numpy as np
from ..core import Node
from ..operator import SoftMax
class LossFunction(Node):
"""损失函数抽象类
"""
pass
class PerceptionLoss(LossFunction):
"""感知机损失
"""
def compute(self):
... | 26.466667 | 94 | 0.609572 | 213 | 1,588 | 4.502347 | 0.338028 | 0.103233 | 0.075078 | 0.088634 | 0.362878 | 0.322211 | 0.267987 | 0.054223 | 0.054223 | 0.054223 | 0 | 0.039409 | 0.232997 | 1,588 | 59 | 95 | 26.915254 | 0.747947 | 0.161839 | 0 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.193548 | false | 0.032258 | 0.096774 | 0 | 0.548387 | 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 |
9439dcce0ae3265160bdddd26378ad8b25b47d6a | 1,416 | py | Python | PlacePulse/rank.py | MacroConnections/Place-Pulse | 81bd1cfdfec0e6ff03631754947a929adaab0ca9 | [
"CC-BY-3.0"
] | 13 | 2015-05-27T17:33:15.000Z | 2019-08-27T15:50:54.000Z | PlacePulse/rank.py | yonglinZ/Place-Pulse | 81bd1cfdfec0e6ff03631754947a929adaab0ca9 | [
"CC-BY-3.0"
] | null | null | null | PlacePulse/rank.py | yonglinZ/Place-Pulse | 81bd1cfdfec0e6ff03631754947a929adaab0ca9 | [
"CC-BY-3.0"
] | 3 | 2018-04-10T09:07:33.000Z | 2019-06-21T05:43:26.000Z | from db import Database
import numpy
from bson.objectid import ObjectId
import time
def process_studies():
studies = Database.getStudiesAdmin()
for study in studies:
study_id = str(study['_id'])
print 'processing study', study['study_question']
placeid2scores = {}
minscore = 100... | 37.263158 | 84 | 0.598164 | 162 | 1,416 | 5.111111 | 0.388889 | 0.076087 | 0.032609 | 0.033816 | 0.050725 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0.022977 | 0.293079 | 1,416 | 38 | 85 | 37.263158 | 0.804196 | 0.062853 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9449a921c0faf73381f8fd2562adce66855ff6a1 | 179 | py | Python | ch05_GUI/tkhello2.py | Nickhool/core-python | 324d6aabff5ccadb490d228c6437a203612d93e2 | [
"MIT"
] | 1 | 2019-07-25T02:36:11.000Z | 2019-07-25T02:36:11.000Z | ch05_GUI/tkhello2.py | Nickhool/core-python | 324d6aabff5ccadb490d228c6437a203612d93e2 | [
"MIT"
] | null | null | null | ch05_GUI/tkhello2.py | Nickhool/core-python | 324d6aabff5ccadb490d228c6437a203612d93e2 | [
"MIT"
] | null | null | null | __Author__ = "noduez"
'''Button控件演示'''
import tkinter as tk
top = tk.Tk()
quit = tk.Button(top, text='Hello World!',
command=top.quit)
quit.pack()
tk.mainloop() | 17.9 | 42 | 0.620112 | 24 | 179 | 4.458333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206704 | 179 | 10 | 43 | 17.9 | 0.753521 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
944e708b9a2a302dadcfdee7d62a400e12ff71ac | 728 | py | Python | backend/tests/unit/test_random_passwd_generator.py | teramundi/onceonly | ab6a278df9b28e8ba5874baf9b903541387fcf79 | [
"MIT"
] | null | null | null | backend/tests/unit/test_random_passwd_generator.py | teramundi/onceonly | ab6a278df9b28e8ba5874baf9b903541387fcf79 | [
"MIT"
] | null | null | null | backend/tests/unit/test_random_passwd_generator.py | teramundi/onceonly | ab6a278df9b28e8ba5874baf9b903541387fcf79 | [
"MIT"
] | null | null | null | import unittest
import urllib.parse
from app.services import RandomPasswdGenerator
class TestRandomPasswdGenerator(unittest.TestCase):
def test_random_string_length(self):
size = 6
generator = RandomPasswdGenerator(size=size)
random_str = generator.generate()
self.assert... | 26.962963 | 52 | 0.693681 | 76 | 728 | 6.447368 | 0.394737 | 0.091837 | 0.073469 | 0.106122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005367 | 0.232143 | 728 | 27 | 53 | 26.962963 | 0.871199 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0.294118 | 0.176471 | 0 | 0.352941 | 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 |
9450d25ef02741dafdb85d502266950410f6550e | 37,965 | py | Python | node/miRNAOntology.py | RNAEDITINGPLUS/main | f608578defb122a1782cff39c5a9a60be0a900df | [
"Apache-2.0"
] | 4 | 2018-01-17T17:03:42.000Z | 2020-06-11T05:20:59.000Z | node/miRNAOntology.py | RNAEDITINGPLUS/main | f608578defb122a1782cff39c5a9a60be0a900df | [
"Apache-2.0"
] | null | null | null | node/miRNAOntology.py | RNAEDITINGPLUS/main | f608578defb122a1782cff39c5a9a60be0a900df | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# Copyright (C) 2016 Li Yao <yaoli95@outlook.com>
#
# 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
... | 43.044218 | 345 | 0.528645 | 4,582 | 37,965 | 4.3433 | 0.117416 | 0.01608 | 0.005427 | 0.004824 | 0.541732 | 0.486458 | 0.4545 | 0.432642 | 0.419677 | 0.414904 | 0 | 0.027807 | 0.29809 | 37,965 | 882 | 346 | 43.044218 | 0.718966 | 0.0457 | 0 | 0.422192 | 0 | 0.009472 | 0.105326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020298 | null | null | 0.008119 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
945566b0e19316c82661ad3e9f0af126b2d94f58 | 14,328 | py | Python | vmtp/monitor.py | schoksey/vmtp | 5c2a5187c20953fd055cd7e56e72bcc342780153 | [
"Apache-2.0"
] | null | null | null | vmtp/monitor.py | schoksey/vmtp | 5c2a5187c20953fd055cd7e56e72bcc342780153 | [
"Apache-2.0"
] | null | null | null | vmtp/monitor.py | schoksey/vmtp | 5c2a5187c20953fd055cd7e56e72bcc342780153 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2014 Cisco Systems, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | 32.27027 | 98 | 0.565955 | 1,783 | 14,328 | 4.354459 | 0.202468 | 0.042504 | 0.036708 | 0.025502 | 0.234802 | 0.185085 | 0.12339 | 0.096084 | 0.086811 | 0.061051 | 0 | 0.018979 | 0.323353 | 14,328 | 443 | 99 | 32.343115 | 0.781846 | 0.058278 | 0 | 0.188341 | 0 | 0 | 0.067741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03139 | null | null | 0.103139 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9456197ec575ec33053976b89c7e52e6223ec729 | 1,685 | py | Python | profiles_api/models.py | RavenfireIT/profiles-rest-api | 902409bd69aaced6fef60c457b56a59848679788 | [
"MIT"
] | null | null | null | profiles_api/models.py | RavenfireIT/profiles-rest-api | 902409bd69aaced6fef60c457b56a59848679788 | [
"MIT"
] | null | null | null | profiles_api/models.py | RavenfireIT/profiles-rest-api | 902409bd69aaced6fef60c457b56a59848679788 | [
"MIT"
] | null | null | null | # Create your models here.
from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.models import BaseUserManager
class UserProfileManager(BaseUserManager):
"""Manager for user profiles"""
def create_u... | 28.559322 | 64 | 0.697329 | 214 | 1,685 | 5.383178 | 0.392523 | 0.034722 | 0.044271 | 0.054688 | 0.18316 | 0.18316 | 0.097222 | 0 | 0 | 0 | 0 | 0.004468 | 0.202967 | 1,685 | 58 | 65 | 29.051724 | 0.853313 | 0.152522 | 0 | 0.181818 | 0 | 0 | 0.030211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.121212 | 0.121212 | 0 | 0.484848 | 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 |
9463b3d303523f60d19cf11772c5d8554e7321fc | 599 | py | Python | website/urls.py | Frky/moon | 391f403c469246136172245b2ba9fa0e6d248766 | [
"MIT"
] | null | null | null | website/urls.py | Frky/moon | 391f403c469246136172245b2ba9fa0e6d248766 | [
"MIT"
] | 4 | 2016-11-15T11:35:01.000Z | 2016-11-21T20:46:00.000Z | website/urls.py | Frky/moon | 391f403c469246136172245b2ba9fa0e6d248766 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib.auth.views import login as django_login
from django.contrib.auth.views import logout as django_logout
from . import views
urlpatterns = [
url(r'^$', views.index, name="index"),
url(r'^u/(?P<label>[\w-]{,50})$', views.underground_comptoir),
ur... | 29.95 | 66 | 0.687813 | 82 | 599 | 4.95122 | 0.353659 | 0.059113 | 0.083744 | 0.103448 | 0.157635 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.145242 | 599 | 19 | 67 | 31.526316 | 0.789063 | 0.080134 | 0 | 0 | 0 | 0 | 0.160584 | 0.04562 | 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 |
9466aea3366b8243e5fd6127cf999ecf1d9fe46e | 689 | py | Python | tests/test_gist_custom.py | the-dan/import_from_github_com | 8fdd185b73835f637bb3e789d15e1ce13ff8f5cb | [
"MIT"
] | null | null | null | tests/test_gist_custom.py | the-dan/import_from_github_com | 8fdd185b73835f637bb3e789d15e1ce13ff8f5cb | [
"MIT"
] | null | null | null | tests/test_gist_custom.py | the-dan/import_from_github_com | 8fdd185b73835f637bb3e789d15e1ce13ff8f5cb | [
"MIT"
] | null | null | null | import os
import logging
def test_custom_repo():
d = os.path.dirname(__file__)
local_repo_url = os.path.join(d, "%s")
logging.debug("Local repo url: %s", local_repo_url)
from github_com import register
register("local", local_repo_url)
from local.gitrepo import repo
assert callable(repo.repoTest)
assert "r... | 22.966667 | 52 | 0.74746 | 107 | 689 | 4.551402 | 0.242991 | 0.147844 | 0.197125 | 0.131417 | 0.591376 | 0.591376 | 0.591376 | 0.591376 | 0.591376 | 0.591376 | 0 | 0 | 0.133527 | 689 | 30 | 53 | 22.966667 | 0.815745 | 0 | 0 | 0.5 | 0 | 0 | 0.118841 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 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 |
946b17a8a436920a3786a308ecea47b2414dd4b7 | 2,337 | py | Python | scan_dialIndicator.py | stawel/BedLevelScan | b044ebb34cf4ae3e1f147832c379aa2cbfe7999c | [
"MIT"
] | null | null | null | scan_dialIndicator.py | stawel/BedLevelScan | b044ebb34cf4ae3e1f147832c379aa2cbfe7999c | [
"MIT"
] | null | null | null | scan_dialIndicator.py | stawel/BedLevelScan | b044ebb34cf4ae3e1f147832c379aa2cbfe7999c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import serial
import time
import dialIndicator
port = "/dev/ttyUSB0"
baudrate = 250000
ser = serial.Serial(port, baudrate, timeout=5)
X_max = 320 # X dimension in mm
X_min = 0
Y_max = 308 # Y dimension in mm
Y_min = 38
#X_res = 100
#Y_res = 100
X_res = 128
Y_res = 108
G38_... | 22.04717 | 72 | 0.500214 | 378 | 2,337 | 2.965608 | 0.320106 | 0.014273 | 0.022302 | 0.021409 | 0.026762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048988 | 0.344887 | 2,337 | 105 | 73 | 22.257143 | 0.683214 | 0.065041 | 0 | 0.123457 | 0 | 0 | 0.08364 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0 | null | null | 0 | 0.037037 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
946cd88075a8f94a535d684931276298035a2203 | 772 | py | Python | websocket/ws_client.py | smith-30/py-websocket | 2cfe17acacc580d6d5e8768c71ccd40f4d6e4182 | [
"MIT"
] | null | null | null | websocket/ws_client.py | smith-30/py-websocket | 2cfe17acacc580d6d5e8768c71ccd40f4d6e4182 | [
"MIT"
] | null | null | null | websocket/ws_client.py | smith-30/py-websocket | 2cfe17acacc580d6d5e8768c71ccd40f4d6e4182 | [
"MIT"
] | null | null | null | import asyncio
import websockets
import struct
async def hello():
async with websockets.connect('ws://localhost:8777') as websocket:
x = [
0xaa,
0x02,
0x01,
0x01,
0xa, 0x0, 0x0, 0x0,
0x01,
0x40, 0xe2, 0x1, 0x0,
... | 26.62069 | 70 | 0.514249 | 84 | 772 | 4.678571 | 0.595238 | 0.142494 | 0.137405 | 0.167939 | 0.167939 | 0.167939 | 0.167939 | 0.167939 | 0 | 0 | 0 | 0.115854 | 0.362694 | 772 | 29 | 71 | 26.62069 | 0.682927 | 0.107513 | 0 | 0.25 | 0 | 0 | 0.035037 | 0 | 0 | 0 | 0.124088 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.041667 | 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 |
9475dbdc7a63826aa03ecf796b401aa1a5943994 | 1,528 | py | Python | incubation-python/kv-utf8/utftest.py | yk0242/incubation | f714ed8172aa290d3f13ff8b7f09f888a5b33640 | [
"MIT"
] | 1 | 2018-01-15T09:21:29.000Z | 2018-01-15T09:21:29.000Z | incubation-python/kv-utf8/utftest.py | FredCoder/incubation | 93e2aba555e3d3a9c71739201f2ea0eb475c31dd | [
"MIT"
] | 19 | 2015-04-14T15:41:58.000Z | 2017-09-23T08:08:31.000Z | incubation-python/kv-utf8/utftest.py | FredCoder/incubation | 93e2aba555e3d3a9c71739201f2ea0eb475c31dd | [
"MIT"
] | 2 | 2016-01-05T09:21:28.000Z | 2019-03-20T11:41:45.000Z | # -*- coding: utf-8 -*-
""" Minimal case test using kivy KV File in UTF8 with Japanese text on Windows
(note that a font set needs to be loaded separately for proper display of the text)
"""
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder
# This will fail in Windows... | 31.183673 | 102 | 0.688482 | 210 | 1,528 | 4.895238 | 0.6 | 0.042802 | 0.029183 | 0.046693 | 0.050584 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.188482 | 1,528 | 48 | 103 | 31.833333 | 0.809677 | 0.697644 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
94785a569252bee2f98a7d505777b2bb317e877e | 1,912 | py | Python | 2020/day12/solution.py | dennisjlee/adventofcode-2020 | 123c0a9482c39730e7dcdb888328bfa9dfe62ebe | [
"MIT"
] | null | null | null | 2020/day12/solution.py | dennisjlee/adventofcode-2020 | 123c0a9482c39730e7dcdb888328bfa9dfe62ebe | [
"MIT"
] | null | null | null | 2020/day12/solution.py | dennisjlee/adventofcode-2020 | 123c0a9482c39730e7dcdb888328bfa9dfe62ebe | [
"MIT"
] | null | null | null | import re
import sys
def main():
with open(sys.argv[1]) as f:
instructions = [l.strip() for l in f]
part1(instructions)
part2(instructions)
def part1(instructions):
x = 0
y = 0
direction = (1, 0)
for instruction in instructions:
operation = instruction[0]
magnitud... | 23.9 | 58 | 0.496339 | 218 | 1,912 | 4.316514 | 0.238532 | 0.165781 | 0.280553 | 0.076514 | 0.433581 | 0.233794 | 0.233794 | 0.180659 | 0.180659 | 0.180659 | 0 | 0.030303 | 0.378661 | 1,912 | 79 | 59 | 24.202532 | 0.761785 | 0 | 0 | 0.38806 | 0 | 0 | 0.011506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0 | 0.029851 | 0 | 0.134328 | 0.029851 | 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 |
9479e7cc63cf4b3e48cfab3f30121f6adf39173b | 449 | py | Python | chapter5_operations/prediction_monitoring_pattern/src/db/schemas.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 133 | 2021-04-24T09:57:58.000Z | 2022-03-29T06:23:56.000Z | chapter5_operations/prediction_monitoring_pattern/src/db/schemas.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 6 | 2021-04-24T09:58:40.000Z | 2021-11-19T04:04:40.000Z | chapter5_operations/prediction_monitoring_pattern/src/db/schemas.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 40 | 2021-05-21T23:32:40.000Z | 2022-03-30T00:33:08.000Z | import datetime
from typing import Dict
from pydantic import BaseModel
class PredictionLogBase(BaseModel):
log_id: str
log: Dict
class PredictionLog(PredictionLogBase):
created_datetime: datetime.datetime
class Config:
orm_mode = True
class OutlierLogBase(BaseModel):
log_id: str
... | 15.482759 | 39 | 0.726058 | 50 | 449 | 6.4 | 0.4 | 0.2 | 0.0875 | 0.10625 | 0.5125 | 0.5125 | 0.5125 | 0.33125 | 0.33125 | 0 | 0 | 0 | 0.22049 | 449 | 28 | 40 | 16.035714 | 0.914286 | 0 | 0 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.882353 | 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 |
947c70e00a1efe087b3401ce6677a5c548a902cb | 3,340 | py | Python | hub_app/forms/forgot_credentials.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | hub_app/forms/forgot_credentials.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | 29 | 2020-02-09T18:28:01.000Z | 2021-06-25T15:32:48.000Z | hub_app/forms/forgot_credentials.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | """
Forms for the Forgotten Credentials workflow
"""
from django.contrib.auth.validators import ASCIIUsernameValidator
from django.forms import Form, ChoiceField, RadioSelect, CharField, PasswordInput, NumberInput, EmailField, HiddenInput
from django.utils.translation import gettext_lazy as _
from hub_app.authlib.forg... | 28.547009 | 120 | 0.687126 | 315 | 3,340 | 7.196825 | 0.349206 | 0.03176 | 0.037494 | 0.050728 | 0.180856 | 0.180856 | 0.180856 | 0.164094 | 0.164094 | 0.164094 | 0 | 0.015004 | 0.201796 | 3,340 | 116 | 121 | 28.793103 | 0.835334 | 0.142515 | 0 | 0.2 | 0 | 0 | 0.094901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.24 | 0.1 | 0 | 0.46 | 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 |
94813cff34f48194a8cbaa9cfc56e68f4f7829f5 | 750 | py | Python | djangocms_bootstrap4/contrib/bootstrap4_boxout/migrations/0004_auto_20190530_0012.py | compoundpartners/js-bootstrap4 | 2b7e35ee476b6cc149448752aab5fbd605d92afb | [
"BSD-3-Clause"
] | null | null | null | djangocms_bootstrap4/contrib/bootstrap4_boxout/migrations/0004_auto_20190530_0012.py | compoundpartners/js-bootstrap4 | 2b7e35ee476b6cc149448752aab5fbd605d92afb | [
"BSD-3-Clause"
] | 1 | 2018-12-12T10:52:07.000Z | 2018-12-12T10:52:07.000Z | djangocms_bootstrap4/contrib/bootstrap4_boxout/migrations/0004_auto_20190530_0012.py | compoundpartners/js-bootstrap4 | 2b7e35ee476b6cc149448752aab5fbd605d92afb | [
"BSD-3-Clause"
] | 1 | 2018-12-12T09:40:11.000Z | 2018-12-12T09:40:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-30 00:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bootstrap4_boxout', '0003_bootstrap4boxout_full_width'),
]
operations = [
... | 28.846154 | 115 | 0.634667 | 81 | 750 | 5.679012 | 0.62963 | 0.078261 | 0.1 | 0.117391 | 0.330435 | 0.204348 | 0 | 0 | 0 | 0 | 0 | 0.056637 | 0.246667 | 750 | 25 | 116 | 30 | 0.757522 | 0.092 | 0 | 0.333333 | 1 | 0 | 0.174041 | 0.047198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
948a3444de5a8767b9a60e40617d4aabf2414a59 | 1,005 | py | Python | src/download.py | kophy/PixivAvatarBot | 5a396ca19b37cdc794dbd07857729f243358f740 | [
"MIT"
] | 17 | 2017-05-10T05:26:31.000Z | 2021-12-13T14:03:23.000Z | src/download.py | kophy/PixivAvatarBot | 5a396ca19b37cdc794dbd07857729f243358f740 | [
"MIT"
] | 1 | 2021-12-14T10:25:03.000Z | 2021-12-14T10:25:03.000Z | src/download.py | kophy/PixivAvatarBot | 5a396ca19b37cdc794dbd07857729f243358f740 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import os
import sys
from random import randint
import time
def download_image(url, dir, filename):
"""
从P站下载图片
:return: 表示下载是否成功的bool值
"""
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) \
AppleWebKit/53... | 31.40625 | 128 | 0.60796 | 134 | 1,005 | 4.440299 | 0.716418 | 0.045378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082119 | 0.248756 | 1,005 | 31 | 129 | 32.419355 | 0.70596 | 0.041791 | 0 | 0 | 0 | 0.045455 | 0.150549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
948e4e3d078c31e29e49ff81e0668a2d685c493c | 461 | py | Python | {{cookiecutter.project_slug}}/apps/sms/tests/test_admins.py | ukwahlula/django-server-boilerplate | 6bd4b83511ea7e3370349957cf0b6dbff4003ab1 | [
"BSD-3-Clause"
] | 2 | 2020-10-30T09:47:07.000Z | 2020-10-30T09:48:11.000Z | {{cookiecutter.project_slug}}/apps/sms/tests/test_admins.py | ukwahlula/django-server-boilerplate | 6bd4b83511ea7e3370349957cf0b6dbff4003ab1 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/apps/sms/tests/test_admins.py | ukwahlula/django-server-boilerplate | 6bd4b83511ea7e3370349957cf0b6dbff4003ab1 | [
"BSD-3-Clause"
] | null | null | null | import pytest
from django.contrib.admin.sites import AdminSite
from apps.sms.admin import SmsAdmin
from apps.sms.models import Sms
@pytest.mark.django_db
def test_sms_admin_qs(request, sms, user):
admin = SmsAdmin(model=Sms, admin_site=AdminSite())
request.user = user
request.user.is_superuser = True
... | 25.611111 | 55 | 0.748373 | 67 | 461 | 5.014925 | 0.447761 | 0.071429 | 0.065476 | 0.130952 | 0.208333 | 0.208333 | 0.208333 | 0 | 0 | 0 | 0 | 0.005102 | 0.149675 | 461 | 17 | 56 | 27.117647 | 0.852041 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
846afc712f4694c36fb9dab66b4debdf1c504838 | 8,004 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_interface_blacklist.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_interface_blacklist.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_interface_blacklist.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | 26.328947 | 141 | 0.592204 | 905 | 8,004 | 5.097238 | 0.277348 | 0.045524 | 0.027314 | 0.021678 | 0.419684 | 0.402558 | 0.357468 | 0.337308 | 0.282679 | 0.197269 | 0 | 0.01582 | 0.28923 | 8,004 | 303 | 142 | 26.415842 | 0.795043 | 0.016117 | 0 | 0.419118 | 0 | 0.011029 | 0.732724 | 0.053608 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003676 | false | 0.018382 | 0.011029 | 0 | 0.014706 | 0.003676 | 0 | 0 | 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 |
846df44fcb8f255ca0c47a81b05303c9388c8727 | 433 | py | Python | my_script.py | jae-finger/lambdata-jae-finger | 80b25dc286726210de2b7923a553293e32a0465c | [
"MIT"
] | null | null | null | my_script.py | jae-finger/lambdata-jae-finger | 80b25dc286726210de2b7923a553293e32a0465c | [
"MIT"
] | 2 | 2020-03-31T11:25:10.000Z | 2021-02-02T22:35:06.000Z | my_script.py | jae-finger/lambdata_jaefinger | 80b25dc286726210de2b7923a553293e32a0465c | [
"MIT"
] | null | null | null | # my_lambdata/my_script.py
import numpy as np
import pandas
from my_lambdata.my_mod import is_nan
from my_lambdata.my_mod import add_a_col
# Try out is_nan function
my_list = [4, 3, 2, 0, np.NaN, 2, 4]
is_nan(my_list)
# Check out the add_a_col function
df = pandas.DataFrame(
{
"a": [0, 1, 2, 3, 4, 5, 6],
... | 22.789474 | 43 | 0.623557 | 89 | 433 | 2.831461 | 0.449438 | 0.119048 | 0.142857 | 0.126984 | 0.198413 | 0.198413 | 0 | 0 | 0 | 0 | 0 | 0.101493 | 0.226328 | 433 | 18 | 44 | 24.055556 | 0.650746 | 0.187067 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8473e74b7de2cbe76ab45330cbccdfc9c5c16d91 | 8,589 | py | Python | mooringlicensing/components/proposals/admin.py | GraemeMuller/mooringlicensing | 2b2594189fb88f4add3fbc979a60a05397aaa491 | [
"Apache-2.0"
] | null | null | null | mooringlicensing/components/proposals/admin.py | GraemeMuller/mooringlicensing | 2b2594189fb88f4add3fbc979a60a05397aaa491 | [
"Apache-2.0"
] | null | null | null | mooringlicensing/components/proposals/admin.py | GraemeMuller/mooringlicensing | 2b2594189fb88f4add3fbc979a60a05397aaa491 | [
"Apache-2.0"
] | 15 | 2021-03-02T01:40:12.000Z | 2022-02-15T08:26:09.000Z | from django.contrib import admin
from ledger.accounts.models import EmailUser
from mooringlicensing.components.proposals import models
#from mooringlicensing.components.bookings.models import ApplicationFeeInvoice
from mooringlicensing.components.proposals import forms
from mooringlicensing.components.main.models impor... | 38.864253 | 160 | 0.688672 | 868 | 8,589 | 6.558756 | 0.238479 | 0.031969 | 0.036712 | 0.050237 | 0.458809 | 0.4026 | 0.372036 | 0.318461 | 0.302301 | 0.265414 | 0 | 0.003903 | 0.194551 | 8,589 | 220 | 161 | 39.040909 | 0.819023 | 0.50716 | 0 | 0.25 | 0 | 0 | 0.080957 | 0.006525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.09375 | 0.010417 | 0.614583 | 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 |
847510cc3f5ade1ea6fcc1225313ea0a9351eb3a | 13,410 | py | Python | frm_dataset_creator2.py | uclacores/dual_path_network | 3a73f4b3c461a5d17534737bfa9fdfedc5e48053 | [
"BSD-3-Clause"
] | 4 | 2021-11-29T14:43:20.000Z | 2022-02-21T12:32:28.000Z | frm_dataset_creator2.py | uclacores/dual_path_network | 3a73f4b3c461a5d17534737bfa9fdfedc5e48053 | [
"BSD-3-Clause"
] | null | null | null | frm_dataset_creator2.py | uclacores/dual_path_network | 3a73f4b3c461a5d17534737bfa9fdfedc5e48053 | [
"BSD-3-Clause"
] | null | null | null | #from frm_generate_data_np import *
import numpy as np
from numpy import pi,sqrt
model_folder="models/freq_2019_07_02_2/"
from frm_modulations import mod_list,cont_phase_mod_list,linear_mod_const
# import tensorflow as tf
import datetime
import pickle
import sys
import copy
from frm_dataset_creator import *
from num... | 32.627737 | 220 | 0.667934 | 2,006 | 13,410 | 4.080259 | 0.105683 | 0.032987 | 0.047892 | 0.04887 | 0.602077 | 0.564814 | 0.55223 | 0.55223 | 0.526329 | 0.514356 | 0 | 0.017974 | 0.224161 | 13,410 | 411 | 221 | 32.627737 | 0.768743 | 0.03393 | 0 | 0.42562 | 1 | 0 | 0.034243 | 0.003556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028926 | false | 0 | 0.041322 | 0.004132 | 0.099174 | 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 |
848a9ca5606022e63fa3c8d490d38a08a0d9d7c1 | 2,214 | py | Python | matrix/common/etl/transformers/__init__.py | ambrosejcarr/matrix-service | f61252d79941fa962240e27062682c9676f07e95 | [
"MIT"
] | 11 | 2018-10-26T20:47:55.000Z | 2022-02-02T10:32:42.000Z | matrix/common/etl/transformers/__init__.py | ambrosejcarr/matrix-service | f61252d79941fa962240e27062682c9676f07e95 | [
"MIT"
] | 379 | 2018-06-04T22:44:33.000Z | 2020-06-03T00:20:08.000Z | matrix/common/etl/transformers/__init__.py | ambrosejcarr/matrix-service | f61252d79941fa962240e27062682c9676f07e95 | [
"MIT"
] | 4 | 2018-11-22T01:00:27.000Z | 2020-09-01T16:42:05.000Z | import os
import typing
class MetadataToPsvTransformer:
"""
Abstract class for transforming DSS metadata to PSV rows.
"""
PSV_EXT = ".psv"
OUTPUT_DIRNAME = "output"
LOG_DIRNAME = "logs"
def __init__(self, staging_dir):
self.staging_dir = staging_dir
self.output_dir = os.pa... | 35.142857 | 104 | 0.618338 | 278 | 2,214 | 4.705036 | 0.309353 | 0.034404 | 0.055046 | 0.03211 | 0.219419 | 0.204893 | 0.183486 | 0.131498 | 0.071865 | 0.071865 | 0 | 0.001293 | 0.301265 | 2,214 | 62 | 105 | 35.709677 | 0.844215 | 0.330623 | 0 | 0 | 0 | 0 | 0.013825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.035714 | 0.464286 | 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 |
84991b4025b2fce4ef2cd9fd46753785437297b0 | 359 | py | Python | pythonBasics/StringsDemo.py | hewerthon/pytest-appium | 71b0d22a4a53fbd5d457aa6ecac158b6c40a3fe6 | [
"MIT"
] | 10 | 2021-03-23T03:46:19.000Z | 2022-03-08T07:20:25.000Z | pythonBasics/StringsDemo.py | hewerthon/pytest-appium | 71b0d22a4a53fbd5d457aa6ecac158b6c40a3fe6 | [
"MIT"
] | null | null | null | pythonBasics/StringsDemo.py | hewerthon/pytest-appium | 71b0d22a4a53fbd5d457aa6ecac158b6c40a3fe6 | [
"MIT"
] | 4 | 2021-04-21T00:49:34.000Z | 2021-11-21T09:18:29.000Z | str = "RahulShettyAcademy.com"
str1 = "Consulting firm"
str3 = "RahulShetty"
print(str[1]) #a
print(str[0:5]) # if you want substring in python
print(str+str1) # concatenation
print(str3 in str) # substring check
var = str.split(".")
print(var)
print(var[0])
str4 = " great "
print(str4.strip())
print(str4.ls... | 11.966667 | 50 | 0.660167 | 51 | 359 | 4.647059 | 0.54902 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.175487 | 359 | 29 | 51 | 12.37931 | 0.760135 | 0.175487 | 0 | 0 | 0 | 0 | 0.19788 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.642857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
84a73ab6ff3993969de0ddcc1c29093a7d277804 | 6,746 | py | Python | hyperbolic/learning/losses.py | egonrian/google-research | 8177adbe9ca0d7e5a9463b54581fe6dd27be0974 | [
"Apache-2.0"
] | 3 | 2021-01-18T04:46:49.000Z | 2021-03-05T09:21:40.000Z | hyperbolic/learning/losses.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 25 | 2020-07-25T08:53:09.000Z | 2022-03-12T00:43:02.000Z | hyperbolic/learning/losses.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2021-02-08T10:25:45.000Z | 2021-04-17T14:46:26.000Z | # coding=utf-8
# Copyright 2020 The Google Research 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 applicab... | 35.319372 | 80 | 0.713312 | 963 | 6,746 | 4.816199 | 0.205607 | 0.058215 | 0.06727 | 0.04765 | 0.691893 | 0.675507 | 0.66602 | 0.638637 | 0.638637 | 0.620095 | 0 | 0.007502 | 0.209606 | 6,746 | 190 | 81 | 35.505263 | 0.862341 | 0.512452 | 0 | 0.569231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169231 | false | 0.046154 | 0.030769 | 0.030769 | 0.384615 | 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 |
84aae549ff72af50b54a07dc2a40e6566fefa928 | 6,481 | py | Python | bloodhound_search/bhsearch/search_resources/milestone_search.py | beebopkim/bloodhound | 1a1d3c88309136229f4b64d9e75e0441a4c590e4 | [
"Apache-2.0"
] | 84 | 2015-01-07T03:42:53.000Z | 2022-01-10T11:57:30.000Z | bloodhound_search/bhsearch/search_resources/milestone_search.py | beebopkim/bloodhound | 1a1d3c88309136229f4b64d9e75e0441a4c590e4 | [
"Apache-2.0"
] | 1 | 2021-11-04T12:52:03.000Z | 2021-11-04T12:52:03.000Z | bloodhound_search/bhsearch/search_resources/milestone_search.py | isabella232/bloodhound-1 | c3e31294e68af99d4e040e64fbdf52394344df9e | [
"Apache-2.0"
] | 35 | 2015-01-06T11:30:27.000Z | 2021-11-10T16:34:52.000Z | # -*- coding: UTF-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (t... | 36.206704 | 78 | 0.660083 | 718 | 6,481 | 5.81337 | 0.289694 | 0.01725 | 0.020125 | 0.018687 | 0.230235 | 0.187111 | 0.148299 | 0.11356 | 0.104696 | 0.104696 | 0 | 0.001046 | 0.262305 | 6,481 | 178 | 79 | 36.410112 | 0.871993 | 0.161858 | 0 | 0.25 | 0 | 0 | 0.077182 | 0 | 0 | 0 | 0 | 0.005618 | 0 | 0 | null | null | 0 | 0.078125 | 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 |
84c21979935cc351218b8d4a6c31af6a3838cef6 | 212,375 | py | Python | multisim/_precompiled/precomp_funs.py | JoElfner/multisim | 2ca3ff9b116b528c279b5941e6bdbe002cf23852 | [
"BSD-3-Clause"
] | 1 | 2020-08-25T10:26:17.000Z | 2020-08-25T10:26:17.000Z | multisim/precomp_funs.py | JoElfner/multisim | 2ca3ff9b116b528c279b5941e6bdbe002cf23852 | [
"BSD-3-Clause"
] | 6 | 2021-08-29T11:15:54.000Z | 2021-09-01T09:57:49.000Z | multisim/precomp_funs.py | JoElfner/multisim | 2ca3ff9b116b528c279b5941e6bdbe002cf23852 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Johannes Elfner <johannes.elfner@googlemail.com>
Date: Oct 2017
"""
import numba as nb
from numba import jit, njit, float64, int32
import numpy as np
nb.NUMBA_DISABLE_JIT = 0
GLOB_NOGIL = True
GLOB_PARALLEL = True
# %% Simulation environment processing
# f.i. port and part flow ... | 33.355583 | 132 | 0.605203 | 32,087 | 212,375 | 3.807399 | 0.050581 | 0.005959 | 0.011918 | 0.015397 | 0.727809 | 0.696557 | 0.669422 | 0.656129 | 0.637516 | 0.623813 | 0 | 0.03754 | 0.295336 | 212,375 | 6,366 | 133 | 33.360823 | 0.778728 | 0.459668 | 0 | 0.666012 | 0 | 0.007859 | 0.019135 | 0.000386 | 0 | 0 | 0 | 0.000157 | 0.001965 | 1 | 0.036767 | false | 0.002807 | 0.000842 | 0.003929 | 0.061746 | 0.001684 | 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 |
84cfd39e83b75b7aad38deda45a2d5754b0dd697 | 1,332 | py | Python | DashBasics/dBasic_2.py | Abhiroyq1/DashHelp | d3de9ff70a587c4ce932f3d9a5de3fd68728b9a1 | [
"Apache-2.0"
] | null | null | null | DashBasics/dBasic_2.py | Abhiroyq1/DashHelp | d3de9ff70a587c4ce932f3d9a5de3fd68728b9a1 | [
"Apache-2.0"
] | null | null | null | DashBasics/dBasic_2.py | Abhiroyq1/DashHelp | d3de9ff70a587c4ce932f3d9a5de3fd68728b9a1 | [
"Apache-2.0"
] | null | null | null | # Dash basics with more coloring
import dash
import dash_core_components as dcc
import dash_html_components as html
app=dash.Dash()
colors = {'background':'#111111', 'text':'#7FDBFF'}
app.layout = html.Div(children=[
html.H1('Hello Dash!', style={'textAlign':'center',
... | 38.057143 | 76 | 0.336336 | 98 | 1,332 | 4.418367 | 0.55102 | 0.147806 | 0.069284 | 0.018476 | 0.023095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031397 | 0.521772 | 1,332 | 35 | 77 | 38.057143 | 0.648352 | 0.022523 | 0 | 0.2 | 0 | 0 | 0.172849 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84d0e22976b230bfa75c7426aa8a9fd25234055f | 739 | py | Python | server/mod_spectrogram.py | qcri/datacivilizer2 | 6c763f6c7e173db5730d8abfbdd8b6858b89f666 | [
"MIT"
] | 3 | 2020-09-18T13:09:26.000Z | 2020-10-08T02:05:36.000Z | server/mod_spectrogram.py | qcri/datacivilizer2 | 6c763f6c7e173db5730d8abfbdd8b6858b89f666 | [
"MIT"
] | null | null | null | server/mod_spectrogram.py | qcri/datacivilizer2 | 6c763f6c7e173db5730d8abfbdd8b6858b89f666 | [
"MIT"
] | 2 | 2020-04-17T11:08:26.000Z | 2020-12-28T01:43:10.000Z | import sys
import time
import matlab.engine
from shutil import copyfile
eng = matlab.engine.start_matlab()
def execute_service(in_path, out_path, viz_out_path, nw=2):
model = out_path.partition('_')[0]
out_file = out_path.partition('/')[2]
viz_out_file = viz_out_path.partition('/')[2]
if model == "7... | 29.56 | 88 | 0.671177 | 109 | 739 | 4.293578 | 0.385321 | 0.134615 | 0.08547 | 0.055556 | 0.106838 | 0.106838 | 0.106838 | 0.106838 | 0 | 0 | 0 | 0.018092 | 0.177267 | 739 | 24 | 89 | 30.791667 | 0.751645 | 0.032476 | 0 | 0 | 0 | 0 | 0.11641 | 0.075736 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84d151a52e26fc05c0d8555871094c9a628abfbb | 1,060 | py | Python | src/project/migrations/0001_initial.py | allow-cookies/demon | 0a62fdbdfbcb9ab5224be747ddf45c968207b51d | [
"MIT"
] | null | null | null | src/project/migrations/0001_initial.py | allow-cookies/demon | 0a62fdbdfbcb9ab5224be747ddf45c968207b51d | [
"MIT"
] | 1 | 2021-03-31T08:12:05.000Z | 2021-03-31T08:12:05.000Z | src/project/migrations/0001_initial.py | allow-cookies/demon | 0a62fdbdfbcb9ab5224be747ddf45c968207b51d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-26 21:59
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Project",
fields=[
(
... | 29.444444 | 73 | 0.481132 | 87 | 1,060 | 5.747126 | 0.632184 | 0.09 | 0.108 | 0.144 | 0.162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03962 | 0.404717 | 1,060 | 35 | 74 | 30.285714 | 0.752773 | 0.042453 | 0 | 0.107143 | 1 | 0 | 0.075025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
84d408304bea2035d7bbf89b93c8ea2e686551ff | 2,163 | py | Python | plugins/flask/Python/gen_filelist.py | readicculus/VIAME | 3e65fa4ec9139f73f8f9f4b3c0f1b18ba6209733 | [
"BSD-3-Clause"
] | null | null | null | plugins/flask/Python/gen_filelist.py | readicculus/VIAME | 3e65fa4ec9139f73f8f9f4b3c0f1b18ba6209733 | [
"BSD-3-Clause"
] | null | null | null | plugins/flask/Python/gen_filelist.py | readicculus/VIAME | 3e65fa4ec9139f73f8f9f4b3c0f1b18ba6209733 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
import itertools
import os
import random
import numpy as np
import sys
import json
_, label_file = sys.argv
reader = open(os.path.join(os.environ['FS_ROOT'], label_file), 'rt')
label = json.load(reader)
reader.close()
path = label['data_path']
pos_dics = label['pos_dics']
neg_dics = l... | 28.090909 | 90 | 0.622746 | 338 | 2,163 | 3.831361 | 0.207101 | 0.054054 | 0.054054 | 0.046332 | 0.647876 | 0.618533 | 0.618533 | 0.599228 | 0.599228 | 0.540541 | 0 | 0.002998 | 0.228849 | 2,163 | 76 | 91 | 28.460526 | 0.773381 | 0 | 0 | 0.523077 | 0 | 0 | 0.058742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84d8d6d81ef04d77515ddd6d78ffc53d919f982a | 1,683 | py | Python | code/pbf/geojson_to_pbf.py | kylebarron/transit-land-dump | 56114a21e4cb6edaaadc0bb220f883cf71288997 | [
"MIT"
] | 21 | 2020-02-09T08:18:16.000Z | 2022-01-07T23:38:33.000Z | code/pbf/geojson_to_pbf.py | kylebarron/all-trans | 56114a21e4cb6edaaadc0bb220f883cf71288997 | [
"MIT"
] | 49 | 2020-02-08T21:57:19.000Z | 2020-03-02T18:57:14.000Z | code/pbf/geojson_to_pbf.py | kylebarron/transit-land-dump | 56114a21e4cb6edaaadc0bb220f883cf71288997 | [
"MIT"
] | 1 | 2021-02-23T21:53:00.000Z | 2021-02-23T21:53:00.000Z | import sys
import click
import cligj
try:
import schedule_tile_pb2
except ImportError:
msg = 'Protobuf python code not generated'
raise ImportError(msg)
@click.command()
@cligj.features_in_arg
def main(features):
"""Convert ScheduleStopPair GeoJSON LineStrings to PBF
"""
# Instantiate object... | 26.714286 | 79 | 0.662507 | 198 | 1,683 | 5.489899 | 0.459596 | 0.088316 | 0.027599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.240642 | 1,683 | 62 | 80 | 27.145161 | 0.836463 | 0.167558 | 0 | 0 | 1 | 0 | 0.154899 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.025 | false | 0 | 0.15 | 0 | 0.175 | 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 |
84d98d4acd97d1a17bacb89dccc32290a3d79469 | 771 | py | Python | config/constants.py | mathieumetral/P3_macgyver | 15770417a1665e12c53b3c721b99d75c0975dd5f | [
"MIT"
] | null | null | null | config/constants.py | mathieumetral/P3_macgyver | 15770417a1665e12c53b3c721b99d75c0975dd5f | [
"MIT"
] | null | null | null | config/constants.py | mathieumetral/P3_macgyver | 15770417a1665e12c53b3c721b99d75c0975dd5f | [
"MIT"
] | 1 | 2020-09-21T18:16:37.000Z | 2020-09-21T18:16:37.000Z | import os
import sys
ROOT_DIR = os.path.dirname(sys.modules['__main__'].__file__)
IMAGES_DIR = os.path.join(ROOT_DIR, "assets/images")
WIN_TITLE = "Help MacGyver escape"
WIN_BACKGROUND_COLOR = (0, 0, 0)
WIN_ICON = os.path.join(IMAGES_DIR, "logo.png")
MAZE_CELLS_NUMBER = (15, 15)
MAZE_CELLS_SIZE = (40, 40)
MAZE_START... | 35.045455 | 76 | 0.769131 | 128 | 771 | 4.25 | 0.359375 | 0.099265 | 0.147059 | 0.205882 | 0.299632 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0.01567 | 0.089494 | 771 | 21 | 77 | 36.714286 | 0.759259 | 0 | 0 | 0 | 0 | 0 | 0.153048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
84de8055636507b6c673832b02115fd447d6f017 | 1,272 | py | Python | trypython/basic/func_/func03.py | devlights/try-python | 67d1d26476794da81c8c76662486108ce03f8fb4 | [
"MIT"
] | 4 | 2019-10-21T11:42:11.000Z | 2020-03-12T16:35:51.000Z | trypython/basic/func_/func03.py | devlights/try-python | 67d1d26476794da81c8c76662486108ce03f8fb4 | [
"MIT"
] | 80 | 2017-02-08T07:55:37.000Z | 2021-10-06T06:30:30.000Z | trypython/basic/func_/func03.py | devlights/try-python | 67d1d26476794da81c8c76662486108ce03f8fb4 | [
"MIT"
] | 1 | 2020-03-12T04:37:17.000Z | 2020-03-12T04:37:17.000Z | """
関数についてのサンプルです
Inner Function について
"""
import typing
from trypython.common.commoncls import SampleBase
from trypython.common.commonfunc import pr
class Sample(SampleBase):
def exec(self):
# ---------------------------------------------------------
# inner function について
# -------------... | 25.959184 | 88 | 0.492138 | 124 | 1,272 | 5 | 0.475806 | 0.064516 | 0.070968 | 0.058065 | 0.164516 | 0.164516 | 0.164516 | 0.164516 | 0 | 0 | 0 | 0.01087 | 0.27673 | 1,272 | 48 | 89 | 26.5 | 0.663043 | 0.314465 | 0 | 0.086957 | 0 | 0 | 0.118203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
84e2dafadb3508819028f29396b0f219df057e8d | 2,091 | py | Python | src/quicksort.py | wmaciel/crowd-sketch-filter | f6cb562a48f96b0b0a08a4ac49c7360cde9a27e6 | [
"MIT"
] | null | null | null | src/quicksort.py | wmaciel/crowd-sketch-filter | f6cb562a48f96b0b0a08a4ac49c7360cde9a27e6 | [
"MIT"
] | 1 | 2016-11-14T20:56:36.000Z | 2017-12-15T22:17:29.000Z | src/quicksort.py | wmaciel/crowd-sketch-filter | f6cb562a48f96b0b0a08a4ac49c7360cde9a27e6 | [
"MIT"
] | null | null | null | import random
from reprowd.crowdcontext import *
from reprowd.presenter.image import ImageCmp
# credit to https://github.com/sfu-db/reprowd/blob/master/reprowd/examples/quicksort.py
def _quicksort(crowddata, object_list, orig_img):
if len(object_list) <= 1:
return crowddata
pivot_index = random.randin... | 38.018182 | 108 | 0.696318 | 259 | 2,091 | 5.428571 | 0.359073 | 0.085349 | 0.092461 | 0.103129 | 0.323613 | 0.283784 | 0.249644 | 0.159317 | 0 | 0 | 0 | 0.015178 | 0.180775 | 2,091 | 54 | 109 | 38.722222 | 0.805604 | 0.099952 | 0 | 0.102564 | 0 | 0 | 0.232162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
84efc4de03cac867290e9a55cd73ba21cf52b879 | 8,943 | py | Python | story/models.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | story/models.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | story/models.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | from django.db import models
from .urlgenerator import create_urlcode
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from datetime import datetime
from story.resetkey import secure_key
from django.db.models import F
class Story(models.Model):
class Meta:
# Model ... | 38.055319 | 142 | 0.669239 | 1,102 | 8,943 | 5.305808 | 0.174229 | 0.054558 | 0.023944 | 0.035916 | 0.508808 | 0.444844 | 0.381563 | 0.320677 | 0.289208 | 0.271934 | 0 | 0.006868 | 0.202169 | 8,943 | 234 | 143 | 38.217949 | 0.812614 | 0.09527 | 0 | 0.312883 | 0 | 0 | 0.09803 | 0 | 0 | 0 | 0 | 0.004274 | 0 | 1 | 0.116564 | false | 0.018405 | 0.042945 | 0.06135 | 0.582822 | 0.01227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1705220731451e821e06fef87f722aed1e1cb04c | 409 | py | Python | DataBase/CinemaBase/migrations/0002_alter_cinemahall_showings.py | John15321/CinemaManagementSystem | f48c2ea23ac3737beeb2553ad57257dde579a800 | [
"MIT"
] | 3 | 2021-04-09T22:06:34.000Z | 2021-05-20T09:51:26.000Z | DataBase/CinemaBase/migrations/0002_alter_cinemahall_showings.py | John15321/CinemaManagementSystem | f48c2ea23ac3737beeb2553ad57257dde579a800 | [
"MIT"
] | null | null | null | DataBase/CinemaBase/migrations/0002_alter_cinemahall_showings.py | John15321/CinemaManagementSystem | f48c2ea23ac3737beeb2553ad57257dde579a800 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-19 21:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('CinemaBase', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='cinemahall',
name='showings',
... | 21.526316 | 75 | 0.606357 | 42 | 409 | 5.857143 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0.273839 | 409 | 18 | 76 | 22.722222 | 0.76431 | 0.110024 | 0 | 0 | 1 | 0 | 0.151934 | 0 | 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 |
1707523ba4ca595105bae02c45023a55b94c9566 | 1,286 | py | Python | src/exams/migrations/0005_userexamrelations.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | null | null | null | src/exams/migrations/0005_userexamrelations.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | 8 | 2020-06-25T22:16:20.000Z | 2022-03-12T00:39:27.000Z | src/exams/migrations/0005_userexamrelations.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-05 12:50
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 44.344828 | 199 | 0.678072 | 141 | 1,286 | 6.070922 | 0.510638 | 0.058411 | 0.116822 | 0.077103 | 0.327103 | 0.327103 | 0.327103 | 0.327103 | 0.327103 | 0.327103 | 0 | 0.038499 | 0.192068 | 1,286 | 28 | 200 | 45.928571 | 0.785371 | 0.034992 | 0 | 0 | 1 | 0 | 0.073446 | 0.018563 | 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 |
ca03527a4684f2fa67e5630958d6094d4055e619 | 77,893 | py | Python | pyserver/ccp.py | lbouma/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | 15 | 2015-05-06T05:11:48.000Z | 2021-12-03T14:56:58.000Z | pyserver/ccp.py | landonb/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | null | null | null | pyserver/ccp.py | landonb/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | 8 | 2015-05-06T05:11:36.000Z | 2020-11-04T05:11:22.000Z | #!/usr/bin/python
# NOTE: Normally, one shabangs with /usr/bin/python, but if you've loaded a
# different Python executable with, e.g., 'module load soft/python/2.7',
# you'll want to tell your shell to look for that one instead. E.g.,
#
# #!/usr/bin/env python
#
# But we don't do this in C... | 40.213216 | 133 | 0.611814 | 10,652 | 77,893 | 4.242114 | 0.106834 | 0.040277 | 0.062075 | 0.025494 | 0.369708 | 0.268108 | 0.179587 | 0.133313 | 0.087304 | 0.073716 | 0 | 0.005173 | 0.270294 | 77,893 | 1,936 | 134 | 40.233988 | 0.789827 | 0.228365 | 0 | 0.216327 | 0 | 0.001633 | 0.190513 | 0.015285 | 0 | 0 | 0 | 0.00155 | 0 | 0 | null | null | 0.007347 | 0.06449 | null | null | 0.002449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ca19a0f51da72253db5399cf62b5943444b59f05 | 482 | py | Python | Server/HomeSwitchHandler.py | zaimpauzi/RemoteHomeMobileApp | ff33462681d5fccf3230badd5254b0ff6d6dc27c | [
"MIT"
] | null | null | null | Server/HomeSwitchHandler.py | zaimpauzi/RemoteHomeMobileApp | ff33462681d5fccf3230badd5254b0ff6d6dc27c | [
"MIT"
] | null | null | null | Server/HomeSwitchHandler.py | zaimpauzi/RemoteHomeMobileApp | ff33462681d5fccf3230badd5254b0ff6d6dc27c | [
"MIT"
] | null | null | null | import mysql.connector
import time
handlerRun = 0
while handlerRun < 1:
mydb = mysql.connector.connect(
host="localhost",
user="root",
passwd="semesra30",
database="smarthome_db"
)
mycursor = mydb.cursor()
mycursor.execute("SELECT switch1 FROM switches")
myr... | 19.28 | 52 | 0.607884 | 51 | 482 | 5.72549 | 0.745098 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020349 | 0.286307 | 482 | 24 | 53 | 20.083333 | 0.828488 | 0 | 0 | 0 | 0 | 0 | 0.1639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ca231cf946e5d49ae8cc7b6eadf1c558397444b8 | 2,798 | py | Python | app/geobox/model/project.py | omniscale/gbi-client | c8af68ede195150b2aca0516ac8e030fe4ba1f6d | [
"Apache-2.0"
] | 2 | 2018-10-24T06:32:42.000Z | 2021-01-20T02:25:05.000Z | app/geobox/model/project.py | omniscale/gbi-client | c8af68ede195150b2aca0516ac8e030fe4ba1f6d | [
"Apache-2.0"
] | null | null | null | app/geobox/model/project.py | omniscale/gbi-client | c8af68ede195150b2aca0516ac8e030fe4ba1f6d | [
"Apache-2.0"
] | 17 | 2018-10-24T06:32:45.000Z | 2022-02-09T13:10:54.000Z | # This file is part of the GBI project.
# Copyright (C) 2012 Omniscale GmbH & Co. KG <http://omniscale.com>
#
# 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/licens... | 38.328767 | 121 | 0.706576 | 359 | 2,798 | 5.337047 | 0.395543 | 0.050104 | 0.057411 | 0.033403 | 0.240605 | 0.203549 | 0.203549 | 0.156576 | 0.057411 | 0.057411 | 0 | 0.004822 | 0.184775 | 2,798 | 73 | 122 | 38.328767 | 0.83516 | 0.223016 | 0 | 0.086957 | 0 | 0 | 0.17037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.23913 | 0 | 0.978261 | 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 |
ca2c2a28911385b95e9e11c0ab5937d0cdcf70cc | 2,287 | py | Python | Crappify.py | studboii/FYP-SuperResolution | f2c4b3bfd49e5c13376ac168434cdbcb7ec7c841 | [
"CC0-1.0"
] | null | null | null | Crappify.py | studboii/FYP-SuperResolution | f2c4b3bfd49e5c13376ac168434cdbcb7ec7c841 | [
"CC0-1.0"
] | null | null | null | Crappify.py | studboii/FYP-SuperResolution | f2c4b3bfd49e5c13376ac168434cdbcb7ec7c841 | [
"CC0-1.0"
] | null | null | null | import argparse #to pass location
from threading import Thread
from PIL import Image, ImageDraw, ImageFont
from pathlib import Path
import random
ap = argparse.ArgumentParser(description="Create low-res copies of our data and add random noise to it") #Argument object
ap.add_argument("-l","--location", required = True... | 34.651515 | 171 | 0.738085 | 343 | 2,287 | 4.889213 | 0.48105 | 0.054264 | 0.041741 | 0.030411 | 0.033989 | 0.033989 | 0.033989 | 0.033989 | 0.033989 | 0 | 0 | 0.014184 | 0.136861 | 2,287 | 65 | 172 | 35.184615 | 0.83536 | 0.241801 | 0 | 0 | 0 | 0 | 0.096266 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.088889 | false | 0 | 0.111111 | 0 | 0.244444 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ca331c8ee356a4ed5571dd901be80d8a6cbd1f69 | 11,764 | py | Python | pmu-tools-master/ucevent/ucexpr.py | patinnc/60secs | 45ad68e4359e0dfd506f9e3a898c216ed38e7fd0 | [
"MIT"
] | null | null | null | pmu-tools-master/ucevent/ucexpr.py | patinnc/60secs | 45ad68e4359e0dfd506f9e3a898c216ed38e7fd0 | [
"MIT"
] | null | null | null | pmu-tools-master/ucevent/ucexpr.py | patinnc/60secs | 45ad68e4359e0dfd506f9e3a898c216ed38e7fd0 | [
"MIT"
] | 1 | 2021-03-22T20:38:10.000Z | 2021-03-22T20:38:10.000Z | # Copyright (c) 2013, Intel Corporation
# Author: Andi Kleen
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be u... | 29.557789 | 91 | 0.459368 | 1,650 | 11,764 | 3.193939 | 0.161818 | 0.026755 | 0.018975 | 0.021252 | 0.255977 | 0.175142 | 0.148956 | 0.114611 | 0.104554 | 0.101708 | 0 | 0.018297 | 0.368157 | 11,764 | 397 | 92 | 29.632242 | 0.690704 | 0.105236 | 0 | 0.309816 | 0 | 0.003067 | 0.092808 | 0.009538 | 0 | 0 | 0 | 0 | 0.003067 | 0 | null | null | 0 | 0.01227 | null | null | 0.015337 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ca3c49be9bdf385b14152f53be3ce55544f56bd2 | 853 | py | Python | examples/src/Shapes/SubstitutePictureTitleOfOLEObjectFrame.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | examples/src/Shapes/SubstitutePictureTitleOfOLEObjectFrame.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | examples/src/Shapes/SubstitutePictureTitleOfOLEObjectFrame.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | import aspose.slides as slides
import aspose.pydrawing as drawing
#ExStart:SubstitutePictureTitleOfOLEObjectFrame
# The path to the documents directory.
dataDir = "./examples/data/"
outDir = "./examples/out/"
with slides.Presentation() as pres:
image = None
slide = pres.slides[0]
# Add Ole objects
w... | 28.433333 | 73 | 0.723329 | 107 | 853 | 5.682243 | 0.560748 | 0.039474 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014164 | 0.172333 | 853 | 29 | 74 | 29.413793 | 0.845609 | 0.215709 | 0 | 0 | 0 | 0 | 0.107251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | 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 |
ca468537f5318b40374db6c718c281dad4f8f2ee | 1,846 | py | Python | models.py | rndelic/candy_delivery | 72d3da77ba09846378fcc7e265aa61bee46b3723 | [
"Apache-2.0"
] | null | null | null | models.py | rndelic/candy_delivery | 72d3da77ba09846378fcc7e265aa61bee46b3723 | [
"Apache-2.0"
] | null | null | null | models.py | rndelic/candy_delivery | 72d3da77ba09846378fcc7e265aa61bee46b3723 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Float, Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from database import Base
class Courier(Base):
__tablename__ = "couriers"
courier_id = Column(Integer, primary_key=True)
courier_type = Column(String)
regions = Column(String)
working_hours ... | 32.385965 | 77 | 0.735645 | 205 | 1,846 | 6.356098 | 0.185366 | 0.109747 | 0.092095 | 0.067536 | 0.576362 | 0.576362 | 0.331543 | 0.331543 | 0.302379 | 0.208749 | 0 | 0 | 0.15493 | 1,846 | 56 | 78 | 32.964286 | 0.835256 | 0 | 0 | 0.263158 | 0 | 0 | 0.147425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ca5c09eb0e16c74e4f758511ce2a4e23154fe91d | 14,860 | py | Python | contracts/test/test_views_data.py | waldyrious/public-contracts | 3107ddc007f3574ce19aaa2223399484bc6b1382 | [
"BSD-3-Clause"
] | 25 | 2015-03-05T00:15:11.000Z | 2021-04-04T18:50:43.000Z | contracts/test/test_views_data.py | waldyrious/public-contracts | 3107ddc007f3574ce19aaa2223399484bc6b1382 | [
"BSD-3-Clause"
] | 36 | 2015-03-21T17:04:54.000Z | 2017-07-06T10:35:51.000Z | contracts/test/test_views_data.py | waldyrious/public-contracts | 3107ddc007f3574ce19aaa2223399484bc6b1382 | [
"BSD-3-Clause"
] | 7 | 2015-03-24T16:18:02.000Z | 2019-05-29T11:51:01.000Z | from datetime import datetime, date
import django.test
from contracts.models import Contract, Entity, ProcedureType
from contracts.views_data import *
from contracts.views_analysis import ANALYSIS
class TestAnalysis(django.test.TestCase):
def test_contracts_price_histogram(self):
Contract.objects.creat... | 38.900524 | 85 | 0.547847 | 1,634 | 14,860 | 4.863525 | 0.109547 | 0.08305 | 0.058387 | 0.021392 | 0.765194 | 0.718762 | 0.686674 | 0.654964 | 0.613565 | 0.571536 | 0 | 0.062586 | 0.312921 | 14,860 | 381 | 86 | 39.002625 | 0.715769 | 0.016016 | 0 | 0.522968 | 0 | 0 | 0.132613 | 0.025592 | 0 | 0 | 0 | 0 | 0.155477 | 1 | 0.035336 | false | 0 | 0.017668 | 0 | 0.060071 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca5efb1b6670b494ef5a7700487b417f6dca303c | 11,434 | py | Python | vendor/iptables-1.8.7/iptables-test.py | chrishamillsnyk/c-goof | 2cdee5f9995f3225c324ec78272b07bbb72c3137 | [
"Apache-2.0"
] | null | null | null | vendor/iptables-1.8.7/iptables-test.py | chrishamillsnyk/c-goof | 2cdee5f9995f3225c324ec78272b07bbb72c3137 | [
"Apache-2.0"
] | null | null | null | vendor/iptables-1.8.7/iptables-test.py | chrishamillsnyk/c-goof | 2cdee5f9995f3225c324ec78272b07bbb72c3137 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# (C) 2012-2013 by Pablo Neira Ayuso <pablo@netfilter.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any la... | 29.469072 | 130 | 0.580374 | 1,362 | 11,434 | 4.755507 | 0.217327 | 0.038907 | 0.017292 | 0.025938 | 0.293963 | 0.245793 | 0.199475 | 0.183418 | 0.160414 | 0.130153 | 0 | 0.014829 | 0.309953 | 11,434 | 387 | 131 | 29.54522 | 0.806084 | 0.165821 | 0 | 0.25498 | 0 | 0 | 0.137043 | 0.022004 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031873 | false | 0.051793 | 0.023904 | 0.003984 | 0.155378 | 0.067729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ca6454d812704fdc69c20eba1e6d1330241c683d | 3,263 | py | Python | edit_handlers.py | bobslee/django_commerce_wagtail | 2851378da4c606d3f7772357c1423a397a8bbd4f | [
"MIT"
] | 3 | 2017-08-08T18:55:44.000Z | 2020-10-16T22:01:43.000Z | edit_handlers.py | bobslee/django_commerce_wagtail | 2851378da4c606d3f7772357c1423a397a8bbd4f | [
"MIT"
] | 31 | 2016-10-17T21:03:39.000Z | 2016-10-31T20:43:09.000Z | edit_handlers.py | bobslee/django_commerce_wagtail | 2851378da4c606d3f7772357c1423a397a8bbd4f | [
"MIT"
] | null | null | null | """
Contains application edit handlers.
"""
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse
from django.contrib.admin.utils import quote
from django.utils.translation import ugettext... | 33.295918 | 92 | 0.69384 | 344 | 3,263 | 6.343023 | 0.340116 | 0.027498 | 0.023831 | 0.023831 | 0.04033 | 0.04033 | 0.04033 | 0 | 0 | 0 | 0 | 0 | 0.216978 | 3,263 | 97 | 93 | 33.639175 | 0.854012 | 0.134232 | 0 | 0 | 0 | 0 | 0.081926 | 0.047072 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.106061 | false | 0 | 0.136364 | 0.045455 | 0.393939 | 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 |
ca65f5bb108f917c3349148d51dfc18379d0447d | 401 | py | Python | src/svphase/scripts/filter_vcf_with_unmapped.py | l337x911/inphadel | 7d5ad58d90d745ed82226a8b0b983875cbe1d26e | [
"CC-BY-3.0"
] | 3 | 2015-11-20T02:27:23.000Z | 2020-04-26T07:19:18.000Z | src/svphase/scripts/filter_vcf_with_unmapped.py | l337x911/inphadel | 7d5ad58d90d745ed82226a8b0b983875cbe1d26e | [
"CC-BY-3.0"
] | null | null | null | src/svphase/scripts/filter_vcf_with_unmapped.py | l337x911/inphadel | 7d5ad58d90d745ed82226a8b0b983875cbe1d26e | [
"CC-BY-3.0"
] | null | null | null | """ Only Filters VCF file to row-wise match generated liftover files """
import sys
# Read in VCF from stdin
contig_unmapped = sys.argv[1]
unmapped = set()
with open(contig_unmapped, 'rb') as f:
for line in f:
if line.startswith('#'): continue
unmapped.add(tuple(line.strip().split('\t')[:2]))
for line in sys.s... | 22.277778 | 72 | 0.685786 | 66 | 401 | 4.136364 | 0.621212 | 0.102564 | 0.065934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.154613 | 401 | 17 | 73 | 23.588235 | 0.79646 | 0.221945 | 0 | 0 | 1 | 0 | 0.023026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca7129d24260880538847fdd453fa7a179217078 | 588 | py | Python | corehq/apps/smsbillables/migrations/0011_date_to_datetime.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/smsbillables/migrations/0011_date_to_datetime.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/smsbillables/migrations/0011_date_to_datetime.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('smsbillables', '0010_gateway_fee_amount_null'),
]
operations = [
migrations.AlterField(
model_name='smsbillable',
name='date_created',
field=models.DateT... | 24.5 | 58 | 0.585034 | 50 | 588 | 6.64 | 0.62 | 0.120482 | 0.150602 | 0.174699 | 0.289157 | 0.289157 | 0.289157 | 0 | 0 | 0 | 0 | 0.009926 | 0.314626 | 588 | 23 | 59 | 25.565217 | 0.813896 | 0 | 0 | 0.421053 | 0 | 0 | 0.141156 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
ca743044b2b760ec7d4732aa1307257bf1b5ac0d | 67,795 | py | Python | atomize/device_modules/Spectrum_M4I_4450_X8.py | Anatoly1010/Atomize | c1d4b508ff00b441ae73805e3e50494e9a6149f8 | [
"MIT"
] | 5 | 2020-12-31T17:39:51.000Z | 2022-03-31T13:02:49.000Z | atomize/device_modules/Spectrum_M4I_4450_X8.py | Anatoly1010/Atomize | c1d4b508ff00b441ae73805e3e50494e9a6149f8 | [
"MIT"
] | null | null | null | atomize/device_modules/Spectrum_M4I_4450_X8.py | Anatoly1010/Atomize | c1d4b508ff00b441ae73805e3e50494e9a6149f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
###AWG
sys.path.append('/home/pulseepr/Sources/AWG/Examples/python')
###sys.path.append('/home/anatoly/AWG/spcm_examples/python')
##sys.path.append('/home/anatoly/awg_files/python')
#sys.path.append('C:/Users/User/Desktop/Examples/python')
import nump... | 42.853982 | 194 | 0.512471 | 7,737 | 67,795 | 4.345741 | 0.069924 | 0.019748 | 0.020343 | 0.023645 | 0.705737 | 0.666092 | 0.629688 | 0.605865 | 0.574726 | 0.535526 | 0 | 0.055432 | 0.389572 | 67,795 | 1,581 | 195 | 42.881088 | 0.757032 | 0.155705 | 0 | 0.736638 | 0 | 0.000972 | 0.093057 | 0.002663 | 0 | 0 | 0 | 0 | 0.052478 | 1 | 0.025267 | false | 0.01069 | 0.006803 | 0 | 0.091351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ca7462af0201d26d9958afadcc1d5248182ac37d | 668 | py | Python | www/lib/components/data/cpu_frequency.py | cripplet/ipfire-material-design | 972dac352a097bbfe556bf4a6cad900c037cca21 | [
"MIT"
] | null | null | null | www/lib/components/data/cpu_frequency.py | cripplet/ipfire-material-design | 972dac352a097bbfe556bf4a6cad900c037cca21 | [
"MIT"
] | 3 | 2019-07-13T08:03:22.000Z | 2019-07-13T08:06:03.000Z | www/lib/components/data/cpu_frequency.py | cripplet/ipfire-material-design | 972dac352a097bbfe556bf4a6cad900c037cca21 | [
"MIT"
] | null | null | null | import json
from lib.components import shared
from lib.components.data import shared as shared_data
class _CPUFrequencyData(shared_data.MonitoringShim):
UNIT = 'hz'
def FromEngine(self) -> shared.ConfigType:
query = sum([
[
'DEF:cpu{core}={root}/cpufreq/cpufreq-{core}.rrd:value:AVERAGE'.f... | 27.833333 | 83 | 0.667665 | 81 | 668 | 5.333333 | 0.481481 | 0.092593 | 0.078704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208084 | 668 | 23 | 84 | 29.043478 | 0.816635 | 0 | 0 | 0 | 0 | 0 | 0.131737 | 0.128743 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 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 |
ca753671aee58f59ab18e7b63c0fce0ef6aaa0da | 3,796 | py | Python | tagger/metrics.py | zysite/tagger | c52b3fb5f30dfda989d6546a26020391743f15ed | [
"MIT"
] | 13 | 2018-11-05T13:44:05.000Z | 2020-01-06T06:22:06.000Z | tagger/metrics.py | yzhangcs/tagger | c52b3fb5f30dfda989d6546a26020391743f15ed | [
"MIT"
] | 1 | 2019-09-20T19:27:57.000Z | 2019-09-20T19:27:57.000Z | tagger/metrics.py | zysite/tagger | c52b3fb5f30dfda989d6546a26020391743f15ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
class Metric(object):
def __lt__(self, other):
return self.score < other
def __le__(self, other):
return self.score <= other
def __eq__(self, other):
return self.score == other
def __ge__(self, other):
return self.score >= other... | 25.823129 | 71 | 0.474447 | 421 | 3,796 | 4.111639 | 0.185273 | 0.063547 | 0.068746 | 0.084922 | 0.488157 | 0.437319 | 0.366262 | 0.211438 | 0.150202 | 0.122473 | 0 | 0.015138 | 0.408325 | 3,796 | 146 | 72 | 26 | 0.755565 | 0.005532 | 0 | 0.482143 | 0 | 0.008929 | 0.021468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.008929 | 0.107143 | 0.348214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ca771fba7daf84b214caf0122a133ade7b92b060 | 559 | py | Python | app/profiles_api/urls.py | ijhajj/Django-basicRESTAPI | 03f091c397086be56c6e2c500955334b203ebfa9 | [
"MIT"
] | null | null | null | app/profiles_api/urls.py | ijhajj/Django-basicRESTAPI | 03f091c397086be56c6e2c500955334b203ebfa9 | [
"MIT"
] | null | null | null | app/profiles_api/urls.py | ijhajj/Django-basicRESTAPI | 03f091c397086be56c6e2c500955334b203ebfa9 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.conf.urls import include
from django.urls import path
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset')
#In case of ModelSerializer, no need to pass ... | 31.055556 | 79 | 0.776386 | 74 | 559 | 5.797297 | 0.5 | 0.06993 | 0.065268 | 0.083916 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105546 | 559 | 17 | 80 | 32.882353 | 0.858 | 0.101968 | 0 | 0 | 0 | 0 | 0.107784 | 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 |
ca80cc4702b9bd16cb9ab1c4cdb64c8c40bef35e | 569 | py | Python | django_sso_app/migrations/0003_emailaddress.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | 1 | 2021-11-16T15:16:08.000Z | 2021-11-16T15:16:08.000Z | django_sso_app/migrations/0003_emailaddress.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | django_sso_app/migrations/0003_emailaddress.py | paiuolo/django-sso-app | 75b96c669dc0b176dc77e08f018a3e97d259f636 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-04-07 21:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0002_email_max_length'),
('django_sso_app', '0002_auto_20200307_1035'),
]
operations = [
migrations.CreateModel(
name... | 21.884615 | 54 | 0.497364 | 48 | 569 | 5.729167 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098315 | 0.374341 | 569 | 25 | 55 | 22.76 | 0.674157 | 0.079086 | 0 | 0 | 1 | 0 | 0.229885 | 0.084291 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
ca8f995cf7b3384e08b1efa3babd92e53df5f0bc | 514 | py | Python | python/time_delta.py | arunachalamb/hackerrank | 9c4fc130378159e003ef5543ef4dd25bc9addba8 | [
"MIT"
] | 1 | 2020-03-02T18:28:22.000Z | 2020-03-02T18:28:22.000Z | python/time_delta.py | arunachalamb/hackerrank | 9c4fc130378159e003ef5543ef4dd25bc9addba8 | [
"MIT"
] | null | null | null | python/time_delta.py | arunachalamb/hackerrank | 9c4fc130378159e003ef5543ef4dd25bc9addba8 | [
"MIT"
] | null | null | null | import math
import os
import random
import re
import sys
from dateutil import parser
# Complete the time_delta function below.
def time_delta(t1, t2):
t1 = parser.parse(t1)
t2 = parser.parse(t2)
return str(int(abs((t1 - t2).total_seconds())))
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_... | 17.133333 | 51 | 0.608949 | 75 | 514 | 3.986667 | 0.573333 | 0.053512 | 0.073579 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031332 | 0.254864 | 514 | 29 | 52 | 17.724138 | 0.749347 | 0.075875 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ca8fd2ab0085b7b39f3bc5c5b751494c30581f73 | 617 | py | Python | setup.py | Empythy/geometry-learning | 5300d421ef848c2748a2ba41ced5c6e2fba93200 | [
"MIT"
] | 21 | 2018-10-09T08:15:29.000Z | 2022-03-16T08:23:08.000Z | setup.py | reinvantveer/Topology-Learning | 5300d421ef848c2748a2ba41ced5c6e2fba93200 | [
"MIT"
] | 31 | 2017-09-20T13:30:37.000Z | 2018-03-01T13:24:58.000Z | setup.py | reinvantveer/Topology-Learning | 5300d421ef848c2748a2ba41ced5c6e2fba93200 | [
"MIT"
] | 7 | 2018-11-29T11:39:02.000Z | 2022-01-12T07:10:26.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(name='Topology learning',
version='1.0',
description='Machine learning experiments for geospatial vector geometries',
author='Rein van \'t Veer',
author_email='rein.van.t.veer@geodan.nl',
url='https://github.com/reinvantveer/To... | 26.826087 | 82 | 0.581848 | 63 | 617 | 5.650794 | 0.825397 | 0.089888 | 0.044944 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004454 | 0.272285 | 617 | 22 | 83 | 28.045455 | 0.788419 | 0.032415 | 0 | 0 | 0 | 0 | 0.432886 | 0.041946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
ca96f7929fde5631569affd5c59d0777783cc707 | 409 | py | Python | setup.py | blastmaster/dabo | e20a3a69e5fe752d94bcc3fd019b632987372d9d | [
"MIT"
] | 2 | 2016-09-11T14:49:14.000Z | 2019-03-19T10:56:53.000Z | setup.py | blastmaster/dabo | e20a3a69e5fe752d94bcc3fd019b632987372d9d | [
"MIT"
] | null | null | null | setup.py | blastmaster/dabo | e20a3a69e5fe752d94bcc3fd019b632987372d9d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='dabo',
version='0.0.1',
description='dabo - a minimalistic flask-based dashboard application.',
long_description='',
license='MIT License',
packages=['dabo'],
py_modules=['run'],
install_requires=[
'fl... | 22.722222 | 79 | 0.508557 | 35 | 409 | 5.857143 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.359413 | 409 | 17 | 80 | 24.058824 | 0.767176 | 0 | 0 | 0 | 0 | 0 | 0.271394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
ca9ba4f650609e0a721ba81e6378876a1d1d77c1 | 1,249 | py | Python | src/view/chronometer.py | rmouzayek/mental_calculation | 7fd44d9b6e744563deb687f2f39789df970474be | [
"Apache-2.0"
] | null | null | null | src/view/chronometer.py | rmouzayek/mental_calculation | 7fd44d9b6e744563deb687f2f39789df970474be | [
"Apache-2.0"
] | null | null | null | src/view/chronometer.py | rmouzayek/mental_calculation | 7fd44d9b6e744563deb687f2f39789df970474be | [
"Apache-2.0"
] | null | null | null | import logging
import tkinter as tk
logger = logging.getLogger(__name__)
class Chronometer(tk.Label):
'''Class which implements a chronometer'''
def __init__(self, root, controller):
self.root = root
self.controller = controller
self.time_displayed = tk.StringVar(value='0') # the d... | 35.685714 | 120 | 0.636509 | 154 | 1,249 | 5.019481 | 0.461039 | 0.082794 | 0.175938 | 0.07762 | 0.187581 | 0.157827 | 0.157827 | 0.157827 | 0.157827 | 0.157827 | 0 | 0.013742 | 0.242594 | 1,249 | 35 | 121 | 35.685714 | 0.803383 | 0.207366 | 0 | 0.181818 | 0 | 0 | 0.039501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.409091 | 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 |
046173ef0dfda62900df3096d506bdf19d76a4c8 | 13,198 | py | Python | app/shell.py | prshnt19/sympy-live | 1eda3b0191e986fd4312ce0e91a35e565c3d390b | [
"BSD-3-Clause"
] | 74 | 2015-01-03T18:49:24.000Z | 2022-03-27T15:30:25.000Z | app/shell.py | prshnt19/sympy-live | 1eda3b0191e986fd4312ce0e91a35e565c3d390b | [
"BSD-3-Clause"
] | 73 | 2015-04-23T22:02:52.000Z | 2022-02-17T19:55:40.000Z | app/shell.py | prshnt19/sympy-live | 1eda3b0191e986fd4312ce0e91a35e565c3d390b | [
"BSD-3-Clause"
] | 53 | 2015-01-12T11:02:06.000Z | 2022-02-27T01:18:39.000Z | #!/usr/bin/python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 34.015464 | 92 | 0.590317 | 1,495 | 13,198 | 4.997324 | 0.259532 | 0.03614 | 0.012047 | 0.010039 | 0.208004 | 0.165038 | 0.11886 | 0.089412 | 0.077098 | 0.068532 | 0 | 0.003168 | 0.330353 | 13,198 | 387 | 93 | 34.103359 | 0.842159 | 0.16798 | 0 | 0.400881 | 0 | 0 | 0.034723 | 0.002151 | 0 | 0 | 0 | 0.002584 | 0 | 0 | null | null | 0.017621 | 0.088106 | null | null | 0.013216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
04651cf8838fee22234d5a1bdea21f9c80c0ad17 | 883 | py | Python | examples/imageload_magtag_simpletest.py | matt-land/Adafruit_CircuitPython_ImageLoad | 7c185385f716cbe0a191532e3fd8a37f60dafbe1 | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | examples/imageload_magtag_simpletest.py | matt-land/Adafruit_CircuitPython_ImageLoad | 7c185385f716cbe0a191532e3fd8a37f60dafbe1 | [
"MIT"
] | 35 | 2018-10-11T16:46:51.000Z | 2021-09-27T17:39:52.000Z | examples/imageload_magtag_simpletest.py | matt-land/Adafruit_CircuitPython_ImageLoad | 7c185385f716cbe0a191532e3fd8a37f60dafbe1 | [
"MIT"
] | 20 | 2018-10-02T23:05:49.000Z | 2022-01-19T20:15:17.000Z | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
Basic imageload example script
adapted for use on MagTag.
"""
import time
import board
import displayio
import adafruit_imageload
# use built in display (PyPortal, PyGamer, PyBadge, CLUE, etc.)
# see guide for setting up... | 25.228571 | 98 | 0.783692 | 124 | 883 | 5.508065 | 0.637097 | 0.04978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010323 | 0.12231 | 883 | 34 | 99 | 25.970588 | 0.870968 | 0.539071 | 0 | 0 | 0 | 0 | 0.066327 | 0.066327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
046b89fb113ac3ae69e5f36d43c999ec86b3b262 | 570 | py | Python | python-scraping/초급/unit09/0_연습문제_1.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | 9 | 2020-10-25T15:13:32.000Z | 2022-03-26T11:27:21.000Z | python-scraping/초급/unit09/0_연습문제_1.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | null | null | null | python-scraping/초급/unit09/0_연습문제_1.py | sharebook-kr/learningspoons-bootcamp-finance | 0288f3f3b39f54420e4e9987f1de12892dc680ea | [
"MIT"
] | 7 | 2021-03-01T11:06:45.000Z | 2022-03-14T07:06:04.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# 같은 경로에 chromedriver.exe가 위치해야 함
driver = webdriver.Chrome('chromedriver.exe')
driver.get('http://investing.com/indices/us... | 40.714286 | 100 | 0.789474 | 82 | 570 | 5.426829 | 0.646341 | 0.107865 | 0.141573 | 0.125843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.094737 | 570 | 14 | 101 | 40.714286 | 0.850775 | 0.054386 | 0 | 0 | 0 | 0.090909 | 0.263941 | 0.065056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
046dacdb010dce67a437229f84d292c936c4d323 | 3,556 | py | Python | v0x01/match.py | kytos-ng/flow_manager | fc5dfc2bacd8d9b479404633ddd0dc16f5a92a35 | [
"MIT"
] | null | null | null | v0x01/match.py | kytos-ng/flow_manager | fc5dfc2bacd8d9b479404633ddd0dc16f5a92a35 | [
"MIT"
] | 60 | 2021-06-07T11:22:49.000Z | 2022-02-21T14:39:17.000Z | v0x01/match.py | kytos-ng/flow_manager | fc5dfc2bacd8d9b479404633ddd0dc16f5a92a35 | [
"MIT"
] | 2 | 2021-06-01T17:25:52.000Z | 2021-06-15T01:16:15.000Z | """Switch match."""
import ipaddress
from pyof.v0x01.common.flow_match import FlowWildCards
IPV4_ETH_TYPE = 2048
def _get_match_fields(flow_dict):
"""Generate match fields."""
match_fields = {}
if "match" in flow_dict:
for key, value in flow_dict["match"].items():
match_fields[key] ... | 38.652174 | 75 | 0.640889 | 489 | 3,556 | 4.394683 | 0.139059 | 0.122848 | 0.09772 | 0.081899 | 0.654258 | 0.553281 | 0.512331 | 0.479758 | 0.335505 | 0.289902 | 0 | 0.019009 | 0.245501 | 3,556 | 91 | 76 | 39.076923 | 0.78196 | 0.076772 | 0 | 0.368421 | 1 | 0 | 0.069917 | 0 | 0 | 0 | 0.012266 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.026316 | 0 | 0.328947 | 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 |
0470676ce9b5cd54b61cdba7bf29a947316b4705 | 824 | py | Python | Klavye Makro.py | AlperN21/klavyemakro | 5fa6e74c7297794a71d007dde14ab91c92bc67ed | [
"MIT"
] | 1 | 2020-11-10T14:40:28.000Z | 2020-11-10T14:40:28.000Z | Klavye Makro.py | AlperN21/klavyemakro | 5fa6e74c7297794a71d007dde14ab91c92bc67ed | [
"MIT"
] | null | null | null | Klavye Makro.py | AlperN21/klavyemakro | 5fa6e74c7297794a71d007dde14ab91c92bc67ed | [
"MIT"
] | null | null | null | #Burada da https://github.com/AlperN21/MouseMakro da olduğu gibi klavyeyi dinliyeceğiz.
import keyboard #Klavye kütüphanesi
import time #Zaman k
keyboard.start_recording() #Klavyeyi dinliyoruz
ksüre = int(input("Klavye kaydı kaç saniye sürsün----->"))
print("Kayıt başlatılıyor!")
print("3")
print("2")
print("... | 34.333333 | 94 | 0.742718 | 117 | 824 | 5.213675 | 0.504274 | 0.088525 | 0.114754 | 0.098361 | 0.242623 | 0.242623 | 0.242623 | 0.242623 | 0.242623 | 0 | 0 | 0.019074 | 0.109223 | 824 | 24 | 95 | 34.333333 | 0.811989 | 0.283981 | 0 | 0.181818 | 0 | 0 | 0.26738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0472e5c0075e792e149beb52c5c2db24fe85a858 | 1,534 | py | Python | register/migrations/0001_initial.py | MenloAthertonCoding/website-core | 73ceb13808ef9ed07c5e9ff4ce4ed5415ed6d99e | [
"Apache-2.0"
] | null | null | null | register/migrations/0001_initial.py | MenloAthertonCoding/website-core | 73ceb13808ef9ed07c5e9ff4ce4ed5415ed6d99e | [
"Apache-2.0"
] | null | null | null | register/migrations/0001_initial.py | MenloAthertonCoding/website-core | 73ceb13808ef9ed07c5e9ff4ce4ed5415ed6d99e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-20 00:23
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.Crea... | 31.306122 | 114 | 0.54824 | 145 | 1,534 | 5.641379 | 0.462069 | 0.04401 | 0.069682 | 0.080685 | 0.306846 | 0.306846 | 0.193154 | 0.193154 | 0.193154 | 0.193154 | 0 | 0.027619 | 0.315515 | 1,534 | 48 | 115 | 31.958333 | 0.751429 | 0.044329 | 0 | 0.35 | 1 | 0 | 0.09296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075 | 0 | 0.175 | 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 |
0475a77533b78f4a5491d3b482eb06ba8e6991cb | 1,598 | py | Python | proj04_lists/proj04.py | FrockConnor317/Connor-Frock-s-Project-1 | 1b978134d0f85b15d324fa13c17765b974d391f4 | [
"MIT"
] | null | null | null | proj04_lists/proj04.py | FrockConnor317/Connor-Frock-s-Project-1 | 1b978134d0f85b15d324fa13c17765b974d391f4 | [
"MIT"
] | null | null | null | proj04_lists/proj04.py | FrockConnor317/Connor-Frock-s-Project-1 | 1b978134d0f85b15d324fa13c17765b974d391f4 | [
"MIT"
] | null | null | null | # coding=utf-8
# Name:
# Date:
"""
proj04
practice with lists
"""
#Part I
#Take a list, say for example this one:
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
#and write a program that prints out all the elements of the list that are less than 5.
x = int(raw_input("Enter a number that you want a list to end before:"... | 18.159091 | 87 | 0.615144 | 306 | 1,598 | 3.166667 | 0.379085 | 0.01032 | 0.01548 | 0.012384 | 0.210526 | 0.148607 | 0.148607 | 0.148607 | 0.088751 | 0.088751 | 0 | 0.074664 | 0.254068 | 1,598 | 87 | 88 | 18.367816 | 0.738255 | 0.371089 | 0 | 0.181818 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
048047b1b81bdd3d0fe4cc6fa7c82822b3d2e8c3 | 490 | py | Python | Day25-RunningTime.py | Guruprasadsd/Hackerrank_30DaysCode | 4b1f73ed3f984867ddf9a299611410c4f1b2b7b6 | [
"Apache-2.0"
] | null | null | null | Day25-RunningTime.py | Guruprasadsd/Hackerrank_30DaysCode | 4b1f73ed3f984867ddf9a299611410c4f1b2b7b6 | [
"Apache-2.0"
] | null | null | null | Day25-RunningTime.py | Guruprasadsd/Hackerrank_30DaysCode | 4b1f73ed3f984867ddf9a299611410c4f1b2b7b6 | [
"Apache-2.0"
] | null | null | null | '''
https://www.hackerrank.com/challenges/30-running-time-and-complexity?isFullScreen=true
'''
# Enter your code here. Read input from STDIN. Print output to STDOUT
from math import sqrt
from sys import stdin
def checkPrime(n):
for i in range(2, int(sqrt(n))+1):
if n % i is 0:
return False
... | 21.304348 | 86 | 0.628571 | 75 | 490 | 4.106667 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.246939 | 490 | 22 | 87 | 22.272727 | 0.818428 | 0.316327 | 0 | 0 | 0 | 0 | 0.042813 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0483f51ba2f7521c44405aded6a5a41678ff5143 | 177 | py | Python | adminmgr/media/code/python/map2/BD_0177_1116_1731_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 9 | 2019-11-08T02:05:27.000Z | 2021-12-13T12:06:35.000Z | adminmgr/media/code/python/map2/BD_0177_1116_1731_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 6 | 2019-11-27T03:23:16.000Z | 2021-06-10T19:15:13.000Z | adminmgr/media/code/python/map2/BD_0177_1116_1731_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 4 | 2019-11-26T17:04:27.000Z | 2021-12-13T11:57:03.000Z | #!/usr/bin/python3
import sys
for line in sys.stdin:
line=line.split(",")
if(len(line)>9):
line[6]=line[6]+","
print(line[6]+line[4],"_",int(line[7])+int(line[8]),"_",1)
| 22.125 | 60 | 0.59887 | 33 | 177 | 3.151515 | 0.606061 | 0.144231 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.101695 | 177 | 7 | 61 | 25.285714 | 0.597484 | 0.096045 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
0485f86452340a738acf950affa331a962cd4dc4 | 455 | py | Python | test.py | smallqiao/pypinyin | b3aff4a303227a8981bec1143ece1797170178e7 | [
"Apache-2.0"
] | 6 | 2015-06-18T12:33:09.000Z | 2018-08-28T09:41:32.000Z | test.py | rainforest32/pypinyin | b3aff4a303227a8981bec1143ece1797170178e7 | [
"Apache-2.0"
] | 1 | 2016-07-15T16:50:21.000Z | 2016-07-15T16:50:21.000Z | test.py | smallqiao/pypinyin | b3aff4a303227a8981bec1143ece1797170178e7 | [
"Apache-2.0"
] | 2 | 2015-05-01T05:07:00.000Z | 2017-11-12T08:37:26.000Z | #/usr/bin/env python3
import sys, pypinyin
def main():
getPy = pypinyin.GetPinyin()
getPy.load()
print 'text getPy: '
results = getPy.getPy("wo今天要抢红米,重庆是个好地方")
for result in results:
print result.py
print 'test getMaxPy: '
print getPy.getMaxPy('wo今天要抢红米,重庆是个好地方,我热... | 21.666667 | 55 | 0.615385 | 53 | 455 | 5.132075 | 0.622642 | 0.110294 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.263736 | 455 | 20 | 56 | 22.75 | 0.80597 | 0.043956 | 0 | 0 | 0 | 0 | 0.23913 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
04970c62d68fee8fb9ebe39de07bee5ea9f27c81 | 5,095 | py | Python | tests/strategies/test_reverse_fusion.py | PermutaTriangle/Tilings | 227d4d014bf07b4037b7af1b35a1f2139ebe7e92 | [
"BSD-3-Clause"
] | 5 | 2020-04-30T20:19:27.000Z | 2021-03-06T20:20:14.000Z | tests/strategies/test_reverse_fusion.py | PermutaTriangle/Tilings | 227d4d014bf07b4037b7af1b35a1f2139ebe7e92 | [
"BSD-3-Clause"
] | 129 | 2019-06-04T14:50:58.000Z | 2022-03-29T13:47:00.000Z | tests/strategies/test_reverse_fusion.py | PermutaTriangle/Tilings | 227d4d014bf07b4037b7af1b35a1f2139ebe7e92 | [
"BSD-3-Clause"
] | 7 | 2020-06-11T14:24:06.000Z | 2020-09-14T21:51:57.000Z | import pytest
from tilings import GriddedPerm, Tiling, TrackingAssumption
from tilings.strategies.fusion import FusionStrategy
def reverse_fusion_rules():
t = Tiling(
obstructions=(
GriddedPerm((0, 1, 2), ((1, 0), (1, 0), (1, 0))),
GriddedPerm((0, 1, 2), ((1, 0), (1, 0), (2, 0))),... | 47.616822 | 84 | 0.508538 | 777 | 5,095 | 3.24453 | 0.097812 | 0.063467 | 0.06307 | 0.199921 | 0.652916 | 0.575169 | 0.542245 | 0.426418 | 0.353828 | 0.202301 | 0 | 0.123356 | 0.253778 | 5,095 | 106 | 85 | 48.066038 | 0.539716 | 0.036114 | 0 | 0.022222 | 0 | 0 | 0.000815 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.055556 | false | 0 | 0.033333 | 0 | 0.1 | 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 |
04a0fd0f82419e68e00cbe363bc027de5881f641 | 31,988 | py | Python | Scripts/Tools/Channels/extPack_exportSelectedChannels.py | sonictk/MARI-Extension-Pack | ef99d68f365d82d9eaa806a0edbe261a505b83ee | [
"BSD-3-Clause"
] | 1 | 2021-06-28T18:59:45.000Z | 2021-06-28T18:59:45.000Z | Scripts/Tools/Channels/extPack_exportSelectedChannels.py | sonictk/MARI-Extension-Pack | ef99d68f365d82d9eaa806a0edbe261a505b83ee | [
"BSD-3-Clause"
] | null | null | null | Scripts/Tools/Channels/extPack_exportSelectedChannels.py | sonictk/MARI-Extension-Pack | ef99d68f365d82d9eaa806a0edbe261a505b83ee | [
"BSD-3-Clause"
] | null | null | null | # ------------------------------------------------------------------------------
# Export Selected Channels
# ------------------------------------------------------------------------------
# Export selected channels from one or more objects
# coding: utf-8
# -------------------------------------------------------------... | 44.121379 | 155 | 0.629736 | 3,457 | 31,988 | 5.638415 | 0.169222 | 0.027191 | 0.014108 | 0.014621 | 0.350451 | 0.280269 | 0.224554 | 0.210497 | 0.198389 | 0.191463 | 0 | 0.004388 | 0.223459 | 31,988 | 725 | 156 | 44.121379 | 0.780314 | 0.203701 | 0 | 0.304348 | 0 | 0 | 0.071883 | 0.005574 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00207 | 0.006211 | 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 |
04a1a821f6cff192416c4b3e767100586e19e887 | 759 | py | Python | helper/evaluator_tool/Evaluator.py | hb-stone/FC-SOD | 1e084dde0d5bde4e90f633390ee74cbffdd67e76 | [
"MIT"
] | 12 | 2020-09-27T04:46:25.000Z | 2021-06-14T00:47:56.000Z | helper/evaluator_tool/Evaluator.py | hb-stone/FC-SOD | 1e084dde0d5bde4e90f633390ee74cbffdd67e76 | [
"MIT"
] | 2 | 2021-06-15T11:03:31.000Z | 2021-09-17T01:02:00.000Z | helper/evaluator_tool/Evaluator.py | hb-stone/FC-SOD | 1e084dde0d5bde4e90f633390ee74cbffdd67e76 | [
"MIT"
] | 1 | 2021-06-14T00:48:01.000Z | 2021-06-14T00:48:01.000Z | import abc
from torch.utils.data import DataLoader
import torch
from typing import Dict
from typing import ClassVar
from typing import Sequence
INDEX_TYPE = Sequence[str]
class Evaluator(object,metaclass=abc.ABCMeta):
indexes:ClassVar[INDEX_TYPE] = None
def __new__(cls, *args,**kwargs) -> object:
if... | 27.107143 | 76 | 0.679842 | 91 | 759 | 5.450549 | 0.505495 | 0.060484 | 0.096774 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225296 | 759 | 27 | 77 | 28.111111 | 0.843537 | 0 | 0 | 0 | 0 | 0 | 0.050066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.047619 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04a288e727018bd658a2d63401260b4431727e48 | 382 | py | Python | where_to_go/places/migrations/0007_rename_description_long_place_description_long.py | delphython/where-to-go | f92040123f6016380f3b611461d1b1362e5ad1f2 | [
"MIT"
] | null | null | null | where_to_go/places/migrations/0007_rename_description_long_place_description_long.py | delphython/where-to-go | f92040123f6016380f3b611461d1b1362e5ad1f2 | [
"MIT"
] | null | null | null | where_to_go/places/migrations/0007_rename_description_long_place_description_long.py | delphython/where-to-go | f92040123f6016380f3b611461d1b1362e5ad1f2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2021-12-28 06:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0006_auto_20211228_0946'),
]
operations = [
migrations.RenameField(
model_name='place',
old_name='description_Lon... | 20.105263 | 48 | 0.604712 | 41 | 382 | 5.439024 | 0.804878 | 0.134529 | 0.170404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.287958 | 382 | 18 | 49 | 21.222222 | 0.702206 | 0.120419 | 0 | 0 | 1 | 0 | 0.197605 | 0.068862 | 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 |
04a914cc9589dcf5dea95e4361541b432bc265a8 | 12,477 | py | Python | flocker/ca/functional/test_validation.py | wallnerryan/flocker-profiles | bcd3ced8edf4af86a68070ff6a714c45f9f4913b | [
"Apache-2.0"
] | null | null | null | flocker/ca/functional/test_validation.py | wallnerryan/flocker-profiles | bcd3ced8edf4af86a68070ff6a714c45f9f4913b | [
"Apache-2.0"
] | null | null | null | flocker/ca/functional/test_validation.py | wallnerryan/flocker-profiles | bcd3ced8edf4af86a68070ff6a714c45f9f4913b | [
"Apache-2.0"
] | null | null | null | # Copyright ClusterHQ Inc. See LICENSE file for details.
"""
Test validation of keys generated by flocker-ca.
"""
from __future__ import print_function
from OpenSSL.SSL import Context, TLSv1_METHOD, Error as SSLError
from twisted.trial.unittest import TestCase
from twisted.internet.endpoints import (
SSL4Serve... | 37.468468 | 79 | 0.649996 | 1,397 | 12,477 | 5.632785 | 0.208304 | 0.048037 | 0.015123 | 0.02135 | 0.345914 | 0.309442 | 0.29254 | 0.264837 | 0.264837 | 0.264837 | 0 | 0.004818 | 0.284684 | 12,477 | 332 | 80 | 37.581325 | 0.876863 | 0.360824 | 0 | 0.173913 | 1 | 0 | 0.02191 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.152174 | false | 0 | 0.072464 | 0 | 0.376812 | 0.007246 | 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 |
04afa64f5cd24d171c0a42b0cf51ff791bbd497c | 1,124 | py | Python | problem_solving/algorithms/sock_merchant/aut_test.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | problem_solving/algorithms/sock_merchant/aut_test.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | problem_solving/algorithms/sock_merchant/aut_test.py | hugolribeiro/hackerrank_exercises | d2757b24479c26ec39e01091e3a15e8980e97864 | [
"MIT"
] | null | null | null | # Programmer: Hugo Leça Ribeiro
# Date: 07/23/2020
from main import sockMerchant
# Test 1
ar1 = [10, 20, 20, 10, 10, 30, 50, 10, 20]
n1 = 9
result1 = sockMerchant(n1, ar1)
answer1 = 3
if result1 == answer1:
print(f'Test number 1 \nExpected Output: {answer1}\nThe output: {result1} \n\033[0;32;1mTest OK\033[m')
else... | 31.222222 | 107 | 0.661032 | 198 | 1,124 | 3.752525 | 0.262626 | 0.048452 | 0.080754 | 0.129206 | 0.617766 | 0.617766 | 0.617766 | 0.565276 | 0.565276 | 0.565276 | 0 | 0.168803 | 0.16726 | 1,124 | 35 | 108 | 32.114286 | 0.625 | 0.059609 | 0 | 0.115385 | 0 | 0.230769 | 0.526166 | 0.071361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04b6a218f26a6dd94833ebe3f598c9622b6a7ab5 | 1,007 | py | Python | NFT_Framer/app/migrations/0002_auto_20210320_0100.py | realjohnward/NFT-Framer | cef9664622909c157795b13414461b2bb170221b | [
"MIT"
] | 1 | 2021-03-21T17:52:46.000Z | 2021-03-21T17:52:46.000Z | NFT_Framer/app/migrations/0002_auto_20210320_0100.py | realjohnward/NFT-Framer | cef9664622909c157795b13414461b2bb170221b | [
"MIT"
] | null | null | null | NFT_Framer/app/migrations/0002_auto_20210320_0100.py | realjohnward/NFT-Framer | cef9664622909c157795b13414461b2bb170221b | [
"MIT"
] | 1 | 2021-11-12T20:58:32.000Z | 2021-11-12T20:58:32.000Z | # Generated by Django 3.1.7 on 2021-03-20 01:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='template',
... | 33.566667 | 124 | 0.589871 | 109 | 1,007 | 5.348624 | 0.541284 | 0.054889 | 0.048027 | 0.075472 | 0.154374 | 0.154374 | 0.154374 | 0.154374 | 0.154374 | 0 | 0 | 0.040761 | 0.269116 | 1,007 | 29 | 125 | 34.724138 | 0.751359 | 0.044687 | 0 | 0.086957 | 1 | 0 | 0.08125 | 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 |
04b801a0886ffb7c483dec60442fa12ee994d181 | 739 | py | Python | employees/migrations/0003_request.py | gallardowolfcode/test_django | f09a1cfefa0370fd8dd1390d7f99fd4f554b61fb | [
"MIT"
] | null | null | null | employees/migrations/0003_request.py | gallardowolfcode/test_django | f09a1cfefa0370fd8dd1390d7f99fd4f554b61fb | [
"MIT"
] | null | null | null | employees/migrations/0003_request.py | gallardowolfcode/test_django | f09a1cfefa0370fd8dd1390d7f99fd4f554b61fb | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-28 06:45
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('employees', '0002_auto_20210328_0030'),
]
operations = [
migrations.CreateModel(
name='Request',
fields=... | 30.791667 | 111 | 0.596752 | 80 | 739 | 5.4125 | 0.6625 | 0.055427 | 0.092379 | 0.110855 | 0.184758 | 0.184758 | 0.184758 | 0 | 0 | 0 | 0 | 0.066176 | 0.26387 | 739 | 23 | 112 | 32.130435 | 0.729779 | 0.060893 | 0 | 0 | 1 | 0 | 0.089595 | 0.033237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
04c5c86617f63fcff1981ac5f8a86045094a4706 | 600 | py | Python | chapter07/replay_buffer.py | roiyeho/drl-book | 1db635fd508e5b17ef8bfecbe49a79f55503a1f1 | [
"MIT"
] | null | null | null | chapter07/replay_buffer.py | roiyeho/drl-book | 1db635fd508e5b17ef8bfecbe49a79f55503a1f1 | [
"MIT"
] | null | null | null | chapter07/replay_buffer.py | roiyeho/drl-book | 1db635fd508e5b17ef8bfecbe49a79f55503a1f1 | [
"MIT"
] | null | null | null | import numpy as np
class ReplayBuffer:
def __init__(self, max_size):
self.buffer = np.empty(max_size, dtype=np.object)
self.max_size = max_size
self.current_index = 0
self.size = 0
def append(self, obj):
self.buffer[self.current_index] = obj
self.size = min(self... | 28.571429 | 69 | 0.638333 | 85 | 600 | 4.270588 | 0.341176 | 0.115702 | 0.121212 | 0.082645 | 0.126722 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.256667 | 600 | 20 | 70 | 30 | 0.804933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04ca1b709654dc8e6ea42d8725e4140a086c6a99 | 264 | py | Python | order/urls.py | ajpocus/pizzeria | 6fcc5cb4e15b1d5112f9ec8cbf495ba55030470c | [
"BSD-3-Clause"
] | null | null | null | order/urls.py | ajpocus/pizzeria | 6fcc5cb4e15b1d5112f9ec8cbf495ba55030470c | [
"BSD-3-Clause"
] | null | null | null | order/urls.py | ajpocus/pizzeria | 6fcc5cb4e15b1d5112f9ec8cbf495ba55030470c | [
"BSD-3-Clause"
] | 1 | 2020-12-01T17:04:21.000Z | 2020-12-01T17:04:21.000Z | from django.conf.urls.defaults import *
from order.views import order_pizza, order_bread
urlpatterns = patterns('order.views',
url(r'^$', 'place_order'),
url(r'pizza/(?P<order_id>\d+)$', order_pizza),
url(r'bread/(?P<order_id>\d+)$', order_bread),
)
| 26.4 | 50 | 0.674242 | 40 | 264 | 4.275 | 0.45 | 0.070175 | 0.093567 | 0.105263 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 264 | 9 | 51 | 29.333333 | 0.74026 | 0 | 0 | 0 | 0 | 0 | 0.273764 | 0.18251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04cd5b3472d42e6ffd94341d033e20bafc5b659b | 1,954 | py | Python | cogs/moderation/manual_verify.py | FengchiW/SpaceBot | bb8f0f6332d335b236d953d187d5702ae8472a52 | [
"MIT"
] | null | null | null | cogs/moderation/manual_verify.py | FengchiW/SpaceBot | bb8f0f6332d335b236d953d187d5702ae8472a52 | [
"MIT"
] | null | null | null | cogs/moderation/manual_verify.py | FengchiW/SpaceBot | bb8f0f6332d335b236d953d187d5702ae8472a52 | [
"MIT"
] | null | null | null | import re
from discord import Guild, Member
from discord.ext.commands import Context
from discord.utils import get
from persistent import server_config, sql
from util import constants
async def manual_verify(ctx: Context, bot, args):
if len(args) < 2:
await ctx.send(":x: **Usage: ;mv [user ID or mention... | 36.867925 | 106 | 0.620778 | 284 | 1,954 | 4.207746 | 0.411972 | 0.040167 | 0.030126 | 0.032636 | 0.076987 | 0.076987 | 0.076987 | 0.076987 | 0.076987 | 0.076987 | 0 | 0.023388 | 0.277892 | 1,954 | 52 | 107 | 37.576923 | 0.823529 | 0.15609 | 0 | 0.131579 | 0 | 0 | 0.083993 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.026316 | false | 0.026316 | 0.157895 | 0 | 0.289474 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04ce73dc0f65ab712c8c2719cbe3a111c91a6686 | 34,178 | py | Python | mro/stages/vdj/assemble_consensus/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | 1 | 2019-03-29T04:05:58.000Z | 2019-03-29T04:05:58.000Z | mro/stages/vdj/assemble_consensus/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | mro/stages/vdj/assemble_consensus/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2016 10X Genomics, Inc. All rights reserved.
#
# Builds consensus sequences for the detected clonotypes based on the sequences
# of the member cells and computes the base qualities of the consensus sequences.
from collections import defaultdict, Counter
import itertools
import j... | 43.263291 | 132 | 0.619785 | 4,343 | 34,178 | 4.591987 | 0.129864 | 0.012636 | 0.008274 | 0.009026 | 0.303866 | 0.246653 | 0.187183 | 0.16858 | 0.135737 | 0.126611 | 0 | 0.006119 | 0.30663 | 34,178 | 789 | 133 | 43.318124 | 0.835429 | 0.139476 | 0 | 0.194882 | 0 | 0.001969 | 0.087987 | 0.012851 | 0 | 0 | 0 | 0 | 0.023622 | 0 | null | null | 0 | 0.047244 | null | null | 0.001969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
04cff80416664b77ccbcb85b16f4cc2b4c5e9953 | 1,768 | py | Python | difftorch/util.py | gbaydin/difftorch | d493091894d0396bce44b819cc13a9491b87e8a3 | [
"BSD-2-Clause"
] | 30 | 2020-04-22T16:29:44.000Z | 2021-05-24T08:16:29.000Z | difftorch/util.py | gbaydin/difftorch | d493091894d0396bce44b819cc13a9491b87e8a3 | [
"BSD-2-Clause"
] | null | null | null | difftorch/util.py | gbaydin/difftorch | d493091894d0396bce44b819cc13a9491b87e8a3 | [
"BSD-2-Clause"
] | null | null | null | import torch
import typing
def check_vector(x, name):
if not torch.is_tensor(x):
raise RuntimeError('{} needs to be a Tensor'.format(name))
if x.dim() != 1:
raise RuntimeError('{} needs to be a vector (one-dimensional Tensor)'.format(name))
def check_scalar(x, name):
if not torch.is_tens... | 28.516129 | 125 | 0.667421 | 268 | 1,768 | 4.291045 | 0.25 | 0.024348 | 0.026087 | 0.083478 | 0.447826 | 0.432174 | 0.302609 | 0.126957 | 0.126957 | 0.126957 | 0 | 0.004264 | 0.204186 | 1,768 | 61 | 126 | 28.983607 | 0.813077 | 0 | 0 | 0.186047 | 0 | 0 | 0.150452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.046512 | 0.023256 | 0.395349 | 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 |
04d04722bf85fd5e8a088e1b72a308c0693c0488 | 670 | py | Python | server/create.py | space-apps-tacoma/LSO_RTC | f7d1e80b6b50be862b39dd11e6f495dad06e5375 | [
"MIT"
] | null | null | null | server/create.py | space-apps-tacoma/LSO_RTC | f7d1e80b6b50be862b39dd11e6f495dad06e5375 | [
"MIT"
] | null | null | null | server/create.py | space-apps-tacoma/LSO_RTC | f7d1e80b6b50be862b39dd11e6f495dad06e5375 | [
"MIT"
] | null | null | null | '''
Create.py module contains classes for creating various objects
for the agency mission from json templates which are in the
`../templates/` directory.
methods
=======
create.mission.default(template_path)
'''
import json
# class definitions
class mission():
def dictionary_from(p... | 23.103448 | 66 | 0.604478 | 81 | 670 | 4.950617 | 0.604938 | 0.024938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320896 | 670 | 28 | 67 | 23.928571 | 0.881319 | 0.570149 | 0 | 0 | 0 | 0 | 0.004926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04d4b2dbf72b4478686bb445ff4314237e42d355 | 1,717 | py | Python | acquire_podcasts/download_podcasts.py | undeadsushi/springboard_capstone | 3bda587ef3ad34094cb10b7c20504280c401ff94 | [
"MIT"
] | 3 | 2016-06-19T13:20:34.000Z | 2021-05-25T18:14:17.000Z | acquire_podcasts/download_podcasts.py | undeadsushi/springboard_capstone | 3bda587ef3ad34094cb10b7c20504280c401ff94 | [
"MIT"
] | null | null | null | acquire_podcasts/download_podcasts.py | undeadsushi/springboard_capstone | 3bda587ef3ad34094cb10b7c20504280c401ff94 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from bs4 import BeautifulSoup
import urllib2
import re
import xmltodict
import wget
import os
os.chdir('/Users/sheldon/git/springboard_capstone/acquire_podcasts')
df = pd.read_csv('pcast.csv',names=['name','url'])
urls = df.url.tolist()
urls = filter(lambda string: 'feeds.' in st... | 28.616667 | 75 | 0.635993 | 212 | 1,717 | 5.070755 | 0.377358 | 0.026047 | 0.033488 | 0.053023 | 0.156279 | 0.156279 | 0.156279 | 0.156279 | 0.156279 | 0 | 0 | 0.015106 | 0.228888 | 1,717 | 60 | 76 | 28.616667 | 0.796828 | 0 | 0 | 0.098039 | 0 | 0 | 0.156577 | 0.097788 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.156863 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04e04ad1929dffc6164e78a9ad3db434c5cfe16b | 1,781 | py | Python | setup.py | open-contracting/ocds-docs-base | 14f21b2131c947de35be6637f6a71fe1eb375327 | [
"Apache-2.0"
] | null | null | null | setup.py | open-contracting/ocds-docs-base | 14f21b2131c947de35be6637f6a71fe1eb375327 | [
"Apache-2.0"
] | 16 | 2018-06-08T04:32:58.000Z | 2018-09-06T14:13:33.000Z | setup.py | open-contracting/ocds-docs-base | 14f21b2131c947de35be6637f6a71fe1eb375327 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup( # noqa: E131
name='ocdsdocumentationsupport',
version='0.0.0',
packages=find_packages(),
entry_points='''
[babel.extractors]
codelists_text = ocdsdocumentationsupport.babel_extractors:extract_codelist
jsonschema_text = ocdsdocumentationsupport.babel_e... | 27.828125 | 86 | 0.525547 | 196 | 1,781 | 4.709184 | 0.556122 | 0.008667 | 0.071506 | 0.093174 | 0.108342 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070899 | 0.318922 | 1,781 | 63 | 87 | 28.269841 | 0.690025 | 0.201011 | 0 | 0.102041 | 0 | 0 | 0.456028 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.020408 | 0 | 0.020408 | 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 |
04e39f10ccfac2508e581f8883ec9e270b4fc93b | 1,447 | py | Python | xos/neutron_extension/1:2013.2.2-0ubuntu1~cloud0/nat.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/neutron_extension/1:2013.2.2-0ubuntu1~cloud0/nat.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/neutron_extension/1:2013.2.2-0ubuntu1~cloud0/nat.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | from neutron.api.v2 import attributes
FORWARD_PORTS = 'nat:forward_ports'
EXTENDED_ATTRIBUTES_2_0 = {
'ports': {
FORWARD_PORTS: {'allow_post': True, 'allow_put': True,
'default': attributes.ATTR_NOT_SPECIFIED,
'is_visible': True},
}
}
class Nat(object):
... | 28.372549 | 80 | 0.65584 | 181 | 1,447 | 5.127072 | 0.524862 | 0.038793 | 0.091595 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.258466 | 1,447 | 50 | 81 | 28.94 | 0.837838 | 0.29924 | 0 | 0.166667 | 0 | 0 | 0.237271 | 0.025458 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.033333 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
04eda832d57aa0082a383673ab9d9ad56aa7e208 | 950 | py | Python | machine.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | machine.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | machine.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | # Classification (U)
"""Program: machine.py
Description: Base class for all machines. This class has the methods for
accomplishing tasks on different o/s platforms.
Classes:
Machine
Linux
Solaris
"""
# Libraries and Global Variables
# Standard
# Local
import ver... | 15.079365 | 79 | 0.624211 | 97 | 950 | 5.85567 | 0.556701 | 0.073944 | 0.070423 | 0.080986 | 0.25 | 0.119718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 950 | 62 | 80 | 15.322581 | 0.854135 | 0.656842 | 0 | 0.25 | 0 | 0 | 0.051402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.25 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
04eeadaa74755bd818e6278d919d4d79e49cf6b0 | 56,205 | py | Python | src/GUI/ProprietorWindow/UI/Ui_ProprietorWindow.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | null | null | null | src/GUI/ProprietorWindow/UI/Ui_ProprietorWindow.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | null | null | null | src/GUI/ProprietorWindow/UI/Ui_ProprietorWindow.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | 1 | 2021-04-22T15:14:21.000Z | 2021-04-22T15:14:21.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Ui_ProprietorWindow.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ProprietorWindow(object):
def setupUi(self, ProprietorW... | 42.101124 | 87 | 0.686985 | 6,637 | 56,205 | 5.707247 | 0.058761 | 0.011035 | 0.091185 | 0.018216 | 0.519259 | 0.415956 | 0.337232 | 0.271602 | 0.250139 | 0.185697 | 0 | 0.072945 | 0.15753 | 56,205 | 1,335 | 88 | 42.101124 | 0.726933 | 0.003434 | 0 | 0.410431 | 1 | 0.005291 | 0.239599 | 0.080616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001512 | false | 0 | 0.001512 | 0 | 0.003779 | 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 |
04efc7458bcf26c3c83635e1145b7e8a3492fdc2 | 432 | py | Python | Forming a Magic Square.py | adi-797/Algorithms-Hackerrank | 660694c722c2e2e136e1bc1009482a1699dc5759 | [
"MIT"
] | 2 | 2018-08-31T16:58:57.000Z | 2018-08-31T17:03:50.000Z | Forming a Magic Square.py | adi-797/Algorithms-Hackerrank | 660694c722c2e2e136e1bc1009482a1699dc5759 | [
"MIT"
] | null | null | null | Forming a Magic Square.py | adi-797/Algorithms-Hackerrank | 660694c722c2e2e136e1bc1009482a1699dc5759 | [
"MIT"
] | null | null | null | from itertools import *
X = []
X.extend(list(map(int,input().split())))
X.extend(list(map(int,input().split())))
X.extend(list(map(int,input().split())))
Ans = 81
for P in permutations(range(1,10)):
if sum(P[0:3]) == 15 and sum(P[3:6]) == 15 and sum(P[0::3]) == 15 and sum(P[1::3]) == 15 and P[0] + P[4] + P[8] == ... | 33.230769 | 153 | 0.548611 | 91 | 432 | 2.604396 | 0.373626 | 0.105485 | 0.139241 | 0.177215 | 0.468354 | 0.468354 | 0.468354 | 0.468354 | 0.341772 | 0.341772 | 0 | 0.092179 | 0.171296 | 432 | 12 | 154 | 36 | 0.569832 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 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 |
04f068806d2bbabaa0d7acd4439c2c57efde4440 | 526 | py | Python | examples/test_task_kernel.py | lebrice/george | 14c4c89906c770528dad2b80973aab0320141fe5 | [
"MIT"
] | 9 | 2018-01-20T16:51:30.000Z | 2020-12-06T22:13:44.000Z | examples/test_task_kernel.py | lebrice/george | 14c4c89906c770528dad2b80973aab0320141fe5 | [
"MIT"
] | null | null | null | examples/test_task_kernel.py | lebrice/george | 14c4c89906c770528dad2b80973aab0320141fe5 | [
"MIT"
] | 4 | 2017-08-31T21:59:56.000Z | 2022-03-03T20:01:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import numpy as np
import itertools
sys.path.append("..")
import george
from george.kernels import TaskKernel
num_tasks = 10
kernel = TaskKernel(1,0,num_tasks)
print(kernel.vector)
kernel.vector=range(1, len(kernel.vector)+1)
print(kernel.vector... | 15.470588 | 62 | 0.695817 | 88 | 526 | 4.102273 | 0.488636 | 0.110803 | 0.094183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021598 | 0.119772 | 526 | 33 | 63 | 15.939394 | 0.758099 | 0.079848 | 0 | 0.117647 | 0 | 0 | 0.004149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
04f5fe36e03c968883dc09bac02b27d483db6639 | 5,122 | py | Python | platypush/message/event/zwave.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | null | null | null | platypush/message/event/zwave.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | null | null | null | platypush/message/event/zwave.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | null | null | null | from typing import Optional, Dict, Any
from platypush.message.event import Event
class ZwaveEvent(Event):
def __init__(self, device: Optional[str] = None, *args, **kwargs):
super().__init__(*args, device=device, **kwargs)
class ZwaveNetworkReadyEvent(ZwaveEvent):
"""
Triggered when the network ... | 24.046948 | 114 | 0.628465 | 544 | 5,122 | 5.742647 | 0.211397 | 0.095711 | 0.080666 | 0.089629 | 0.401729 | 0.346031 | 0.230794 | 0.179577 | 0.15525 | 0.15525 | 0 | 0.000538 | 0.274502 | 5,122 | 212 | 115 | 24.160377 | 0.840151 | 0.25244 | 0 | 0.234568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08642 | false | 0.234568 | 0.024691 | 0 | 0.432099 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.