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
d21892bc6e13fbca51eb7154188132cae4f0e838
667
py
Python
app/db/events.py
ilya-goldin/kanban-board-app
3c7026aedb0e21eaccc26a2ac4a37f0b6a91a122
[ "MIT" ]
null
null
null
app/db/events.py
ilya-goldin/kanban-board-app
3c7026aedb0e21eaccc26a2ac4a37f0b6a91a122
[ "MIT" ]
null
null
null
app/db/events.py
ilya-goldin/kanban-board-app
3c7026aedb0e21eaccc26a2ac4a37f0b6a91a122
[ "MIT" ]
null
null
null
import asyncpg from fastapi import FastAPI from loguru import logger from app.core.settings.app import AppSettings async def connect_to_db(app: FastAPI, settings: AppSettings) -> None: logger.info('Connecting to PostgreSQL') app.state.pool = await asyncpg.create_pool( str(settings.database_url), ...
24.703704
69
0.731634
85
667
5.588235
0.447059
0.084211
0.058947
0
0
0
0
0
0
0
0
0.00365
0.178411
667
26
70
25.653846
0.863139
0
0
0
0
0
0.13943
0
0
0
0
0
0
1
0
true
0
0.235294
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d220977b89635aa8f8397e7f63e18931cf662876
609
py
Python
skit_pipelines/components/extract_tgz.py
skit-ai/skit-pipelines
d692582107aee81b1bb4aebcf169f7260ac956b5
[ "MIT" ]
null
null
null
skit_pipelines/components/extract_tgz.py
skit-ai/skit-pipelines
d692582107aee81b1bb4aebcf169f7260ac956b5
[ "MIT" ]
4
2022-03-22T14:17:46.000Z
2022-03-24T16:22:23.000Z
skit_pipelines/components/extract_tgz.py
skit-ai/skit-pipelines
d692582107aee81b1bb4aebcf169f7260ac956b5
[ "MIT" ]
null
null
null
from typing import Union import kfp from kfp.components import InputPath, OutputPath from skit_pipelines import constants as pipeline_constants def extract_tgz_archive( tgz_path: InputPath(str), output_path: OutputPath(str), ): import tarfile from loguru import logger logger.debug(f"Extracting...
22.555556
65
0.766831
81
609
5.530864
0.469136
0.066964
0.075893
0.075893
0
0
0
0
0
0
0
0
0.155993
609
26
66
23.423077
0.871595
0
0
0
0
0
0.095238
0
0
0
0
0
0
1
0.055556
false
0
0.333333
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d2222f7d6b30cad257fa79d950b134ab33ead31c
2,994
py
Python
oneflow/python/test/onnx/util.py
basicv8vc/oneflow
2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3
[ "Apache-2.0" ]
1
2020-10-13T03:03:40.000Z
2020-10-13T03:03:40.000Z
oneflow/python/test/onnx/util.py
basicv8vc/oneflow
2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3
[ "Apache-2.0" ]
null
null
null
oneflow/python/test/onnx/util.py
basicv8vc/oneflow
2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
33.640449
89
0.671343
418
2,994
4.626794
0.430622
0.031024
0.033609
0.02637
0
0
0
0
0
0
0
0.00952
0.228123
2,994
88
90
34.022727
0.827347
0.233467
0
0.029851
0
0
0.020122
0
0
0
0
0.011364
0.044776
1
0.029851
false
0.014925
0.119403
0.014925
0.164179
0.044776
0
0
0
null
0
0
0
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
d22588027964a9ce9520023258895efa1631a6bd
5,001
py
Python
src/peter_sslers/lib/errors.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
35
2016-04-21T18:55:31.000Z
2022-03-30T08:22:43.000Z
src/peter_sslers/lib/errors.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
8
2018-05-23T13:38:49.000Z
2021-03-19T21:05:44.000Z
src/peter_sslers/lib/errors.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
2
2016-08-18T21:07:11.000Z
2017-01-11T09:47:40.000Z
def formstash_to_querystring(formStash): err = [] for (k, v) in formStash.errors.items(): err.append(("%s--%s" % (k, v)).replace("\n", "+").replace(" ", "+")) err = sorted(err) err = "---".join(err) return err class _UrlSafeException(Exception): @property def as_querystring(self): ...
20.084337
118
0.659868
513
5,001
6.325536
0.31384
0.077658
0.024961
0.039445
0.253621
0.228968
0.201849
0.127581
0.115871
0.069646
0
0.006049
0.239752
5,001
248
119
20.165323
0.847449
0.212557
0
0.392857
0
0
0.101071
0
0
0
0
0
0
1
0.107143
false
0.241071
0
0.098214
0.535714
0
0
0
0
null
0
0
0
0
0
0
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
d2293531f48224d20922b0077cb19bb8cfd631bb
18,212
py
Python
cognitive_services/__main__.py
cleveranjos/Rapid-ML-Gateway
10a14abfce3351791331642c47eddfbf622e76d2
[ "MIT" ]
3
2020-07-15T19:45:31.000Z
2020-09-30T16:15:48.000Z
cognitive_services/__main__.py
cleveranjos/Rapid-ML-Gateway
10a14abfce3351791331642c47eddfbf622e76d2
[ "MIT" ]
12
2020-07-15T17:00:24.000Z
2021-01-19T21:02:00.000Z
cognitive_services/__main__.py
cleveranjos/Rapid-ML-Gateway
10a14abfce3351791331642c47eddfbf622e76d2
[ "MIT" ]
2
2020-07-15T18:59:02.000Z
2020-10-07T17:22:52.000Z
#! /usr/bin/env python3 import os import sys PARENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.join(PARENT_DIR, 'generated')) sys.path.append(os.path.join(PARENT_DIR, 'helper_functions')) import argparse import json import logging import logging.config import inspect, tim...
43.361905
167
0.597024
2,007
18,212
5.285501
0.192327
0.030543
0.017157
0.008484
0.282617
0.214178
0.171757
0.154506
0.137443
0.126697
0
0.003512
0.296508
18,212
420
168
43.361905
0.824461
0.192895
0
0.198444
1
0
0.127729
0.017153
0
0
0
0
0
1
0.050584
false
0
0.077821
0
0.159533
0.019455
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
d22d16cc4c908be77ff9ce274ee5534ee91f29e1
13,624
py
Python
mantrid/loadbalancer.py
epio/mantrid
1c699f1a4b33888b533c19cb6d025173f2160576
[ "BSD-3-Clause" ]
30
2015-01-01T00:32:47.000Z
2021-09-07T20:25:01.000Z
mantrid/loadbalancer.py
epio/mantrid
1c699f1a4b33888b533c19cb6d025173f2160576
[ "BSD-3-Clause" ]
null
null
null
mantrid/loadbalancer.py
epio/mantrid
1c699f1a4b33888b533c19cb6d025173f2160576
[ "BSD-3-Clause" ]
9
2015-05-12T05:09:12.000Z
2021-12-29T19:07:01.000Z
import eventlet import errno import logging import traceback import mimetools import resource import json import os import sys import argparse from eventlet import wsgi from eventlet.green import socket from .actions import Unknown, Proxy, Empty, Static, Redirect, NoHosts, Spin from .config import SimpleConfig from .ma...
38.485876
153
0.545435
1,531
13,624
4.772698
0.248204
0.020939
0.014233
0.01478
0.204872
0.144793
0.12317
0.092514
0.074449
0.059943
0
0.01116
0.34887
13,624
353
154
38.594901
0.812535
0.071712
0
0.226148
0
0.010601
0.138316
0.014148
0
0
0
0
0.003534
0
null
null
0.010601
0.060071
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
d234e5a37645a98c004023879e482d81ecedb1c6
725
py
Python
private_sharing/migrations/0008_featuredproject.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
57
2016-09-01T21:55:52.000Z
2022-03-27T22:15:32.000Z
private_sharing/migrations/0008_featuredproject.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
464
2015-03-23T18:08:28.000Z
2016-08-25T04:57:36.000Z
private_sharing/migrations/0008_featuredproject.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
25
2017-01-24T16:23:27.000Z
2021-11-07T01:51:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2018-01-05 01:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('private_sharing', '0007_auto_20171220_2038'), ] operations = [ migrations.CreateMod...
30.208333
133
0.623448
76
725
5.828947
0.671053
0.054176
0.063205
0.099323
0
0
0
0
0
0
0
0.058288
0.242759
725
23
134
31.521739
0.748634
0.092414
0
0
1
0
0.166412
0.087023
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d2374979329fc2d21717d5eca2294d35f3c0c1d9
2,099
py
Python
project_name/common/models.py
brevetech/breve_drf_template
125e476810641f919296cb878980f91f4c091cf2
[ "MIT" ]
null
null
null
project_name/common/models.py
brevetech/breve_drf_template
125e476810641f919296cb878980f91f4c091cf2
[ "MIT" ]
17
2021-04-05T00:22:13.000Z
2022-01-11T04:53:47.000Z
project_name/common/models.py
brevetech/breve_drf_template
125e476810641f919296cb878980f91f4c091cf2
[ "MIT" ]
1
2022-01-07T05:48:19.000Z
2022-01-07T05:48:19.000Z
from django.db import models # https://stackoverflow.com/questions/1737017/django-auto-now-and-auto-now-add/1737078#1737078 from {{project_name}}.common.enums import PersonSexEnum class TimeStampedModel(models.Model): """ Defines a timestamped model with create_date (auto_now_add) and update_date (auto_now) ...
32.292308
97
0.682706
254
2,099
5.468504
0.350394
0.095032
0.080634
0.12095
0.37365
0.285817
0.221022
0.205184
0.205184
0.177106
0
0.021713
0.2101
2,099
64
98
32.796875
0.816043
0.043354
0
0.163265
0
0
0.128665
0.011401
0
0
0
0
0
0
null
null
0
0.040816
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
d244090a382037591d1f8d9a0c4ab8297cd9b302
701
py
Python
helper_functions_class.py
lucaschatham/lambdata
125087c521847e4f7659a4c8e34008994f3fb01b
[ "MIT" ]
null
null
null
helper_functions_class.py
lucaschatham/lambdata
125087c521847e4f7659a4c8e34008994f3fb01b
[ "MIT" ]
null
null
null
helper_functions_class.py
lucaschatham/lambdata
125087c521847e4f7659a4c8e34008994f3fb01b
[ "MIT" ]
null
null
null
""" Here are two different functions used for common data cleaning tasks. You can use these functions to load data into a pandas Dataframe. """ import numpy as np import pandas as pd from sklearn.utils import shuffle class CleanData: def __init__(self): """ This init function instanti...
22.612903
84
0.673324
92
701
5.021739
0.663043
0.051948
0
0
0
0
0
0
0
0
0
0
0.262482
701
30
85
23.366667
0.893617
0.162625
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.25
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
d245456046b81bffbc996ce46fc7291edbaf4e36
870
py
Python
services/web/apps/crm/supplierprofile/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
services/web/apps/crm/supplierprofile/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
services/web/apps/crm/supplierprofile/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # crm.supplierprofile application # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- #...
33.461538
71
0.558621
73
870
6.479452
0.671233
0.044397
0
0
0
0
0
0
0
0
0
0.010582
0.131034
870
25
72
34.8
0.615079
0.397701
0
0
0
0
0.149402
0.043825
0
0
0
0
0
1
0.1
false
0
0.3
0.1
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
d248471875d205a42c77cea45df52d51bb8e0b18
6,008
py
Python
books/api/RecurringInvoicesApi.py
harshal-choudhari/books-python-wrappers
43616ee451a78ef2f02facc1cfb1d7f1121a1464
[ "MIT" ]
1
2021-04-21T06:40:48.000Z
2021-04-21T06:40:48.000Z
books/api/RecurringInvoicesApi.py
harshal-choudhari/books-python-wrappers
43616ee451a78ef2f02facc1cfb1d7f1121a1464
[ "MIT" ]
null
null
null
books/api/RecurringInvoicesApi.py
harshal-choudhari/books-python-wrappers
43616ee451a78ef2f02facc1cfb1d7f1121a1464
[ "MIT" ]
1
2021-04-21T07:31:47.000Z
2021-04-21T07:31:47.000Z
#$Id$# from books.util.ZohoHttpClient import ZohoHttpClient from books.parser.RecurringInvoiceParser import RecurringInvoiceParser from .Api import Api from json import dumps base_url = Api().base_url + 'recurringinvoices/' parser = RecurringInvoiceParser() zoho_http_client = ZohoHttpClient() class RecurringInvoice...
33.19337
89
0.636152
652
6,008
5.67638
0.156442
0.306944
0.136179
0.053499
0.652256
0.581194
0.530938
0.503377
0.503377
0.457444
0
0.002099
0.286451
6,008
180
90
33.377778
0.861208
0.389314
0
0.344828
0
0
0.041545
0
0
0
0
0
0
1
0.172414
false
0
0.068966
0
0.413793
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d24e88624ecd17dbeb714acc8fe1596a1a4493c1
34,597
py
Python
gittle/gittle.py
justecorruptio/gittle
e046fe4731ebe4168884e51ac5baa26c79f0567d
[ "Apache-2.0" ]
1
2016-09-10T15:21:30.000Z
2016-09-10T15:21:30.000Z
gittle/gittle.py
justecorruptio/gittle
e046fe4731ebe4168884e51ac5baa26c79f0567d
[ "Apache-2.0" ]
null
null
null
gittle/gittle.py
justecorruptio/gittle
e046fe4731ebe4168884e51ac5baa26c79f0567d
[ "Apache-2.0" ]
null
null
null
# From the future from __future__ import absolute_import # Python imports import os import copy import logging from hashlib import sha1 from shutil import rmtree from functools import partial, wraps # Dulwich imports from dulwich.repo import Repo as DulwichRepo from dulwich.client import get_transport_and_path from d...
29.394223
125
0.598144
4,238
34,597
4.676498
0.11798
0.027751
0.00989
0.01211
0.184823
0.14037
0.10833
0.067662
0.036531
0.025026
0
0.001597
0.31205
34,597
1,176
126
29.419218
0.8311
0.068185
0
0.207084
0
0
0.023059
0
0
0
0
0.002551
0.002725
0
null
null
0.00545
0.027248
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
d24f47bb348b9648ed9893766e4cb276bd461df6
452
py
Python
app/core/urls.py
vatsamail/django-profiles
d9738fcb129e4f50ecde28126f5ffcccdf1999e0
[ "MIT" ]
1
2019-05-24T14:22:04.000Z
2019-05-24T14:22:04.000Z
app/core/urls.py
vatsamail/django-profiles
d9738fcb129e4f50ecde28126f5ffcccdf1999e0
[ "MIT" ]
9
2020-06-05T18:17:48.000Z
2022-03-11T23:21:33.000Z
app/core/urls.py
vatsamail/django-profiles
d9738fcb129e4f50ecde28126f5ffcccdf1999e0
[ "MIT" ]
1
2018-06-22T05:54:58.000Z
2018-06-22T05:54:58.000Z
from django.urls import include, path, re_path from . import views from django.contrib.auth.views import ( login, logout, password_reset, password_reset_done, password_reset_confirm, password_reset_complete, ) app_name = 'core' urlpatterns = [ path('', views.Home...
26.588235
99
0.64823
55
452
5.109091
0.6
0.185053
0
0
0
0
0
0
0
0
0
0
0.210177
452
16
100
28.25
0.787115
0
0
0
0
0
0.141593
0.090708
0
0
0
0
0
1
0
false
0.266667
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
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
d250a6fd3bfdb7ab11ae4c2f8ffe9bfe5c487a4e
745
py
Python
Python/lab2/temp_convert_FtoC.py
varuneagle555/BSA-STEM-Merit-Badge-Week
04da40973c99eb64184bb98b58d8bf87b337456c
[ "MIT" ]
3
2016-03-22T07:05:35.000Z
2021-01-08T21:46:32.000Z
Python/lab2/temp_convert_FtoC.py
varuneagle555/BSA-STEM-Merit-Badge-Week
04da40973c99eb64184bb98b58d8bf87b337456c
[ "MIT" ]
null
null
null
Python/lab2/temp_convert_FtoC.py
varuneagle555/BSA-STEM-Merit-Badge-Week
04da40973c99eb64184bb98b58d8bf87b337456c
[ "MIT" ]
4
2017-02-10T22:21:18.000Z
2022-02-20T01:06:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """temp_convert.py: Convert temperature F to C.""" # initialize looping variable, assume yes as first answer continueYN = "Y" while continueYN.upper() == "Y": # get temperature input from the user, and prompt them for what we expect degF = int(raw_input("Enter te...
25.689655
86
0.64698
108
745
4.444444
0.694444
0.0125
0.083333
0
0
0
0
0
0
0
0
0.015707
0.230872
745
28
87
26.607143
0.820244
0.331544
0
0
0
0
0.394077
0
0
0
0
0
0
0
null
null
0
0
null
null
0.3
0
0
0
null
0
0
0
0
0
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
d252d60d44fc7e878fae2a2e799df7cff950fbd9
597
py
Python
setup.py
jaspershen/getDB
6f767279775e201f9505bb1e98dd141ffe0335f7
[ "MIT" ]
null
null
null
setup.py
jaspershen/getDB
6f767279775e201f9505bb1e98dd141ffe0335f7
[ "MIT" ]
null
null
null
setup.py
jaspershen/getDB
6f767279775e201f9505bb1e98dd141ffe0335f7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='getDB', version='0.0.4', description="This module can be used to download HMDB and KEGG database.", license='MIT', author='Xiaotao Shen', author_email='shenxt1990@163.com', url='https://github.com/jaspershen/getDB', long_...
35.117647
80
0.624791
67
597
5.462687
0.80597
0.065574
0.136612
0.142077
0
0
0
0
0
0
0
0.032823
0.234506
597
17
81
35.117647
0.768053
0
0
0
0
0
0.411371
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
d255a8c98ce6037d15065ccd226fd922085a64a0
4,067
py
Python
adios-1.9.0/wrappers/numpy/example/utils/ncdf2bp.py
swatisgupta/Adaptive-compression
b97a1d3d3e0e968f59c7023c7367a7efa9f672d0
[ "BSD-2-Clause" ]
null
null
null
adios-1.9.0/wrappers/numpy/example/utils/ncdf2bp.py
swatisgupta/Adaptive-compression
b97a1d3d3e0e968f59c7023c7367a7efa9f672d0
[ "BSD-2-Clause" ]
null
null
null
adios-1.9.0/wrappers/numpy/example/utils/ncdf2bp.py
swatisgupta/Adaptive-compression
b97a1d3d3e0e968f59c7023c7367a7efa9f672d0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Example: $ python ./ncdf2bp.py netcdf_file """ from adios import * from scipy.io import netcdf import numpy as np import sys import os import operator def usage(): print os.path.basename(sys.argv[0]), "netcdf_file" if len(sys.argv) < 2: usage() sys.exit(0) ##fname = "MERRA100....
27.666667
81
0.572904
563
4,067
4.101243
0.277087
0.039411
0.046774
0.025985
0.436986
0.392378
0.349502
0.28757
0.28757
0.28757
0
0.017827
0.268994
4,067
146
82
27.856164
0.758829
0.055815
0
0.27957
0
0
0.076142
0
0
0
0
0
0.032258
0
null
null
0
0.064516
null
null
0.139785
0
0
0
null
0
0
0
0
0
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
d2571cfece71be4e3c7267fd9fb5b654ad0b459f
1,042
py
Python
classification/prepare_model.py
JSC-NIIAS/TwGoA4aij2021
9f011f506748435190f8e4e635820c8208144b94
[ "MIT" ]
null
null
null
classification/prepare_model.py
JSC-NIIAS/TwGoA4aij2021
9f011f506748435190f8e4e635820c8208144b94
[ "MIT" ]
null
null
null
classification/prepare_model.py
JSC-NIIAS/TwGoA4aij2021
9f011f506748435190f8e4e635820c8208144b94
[ "MIT" ]
null
null
null
import os import yaml import segmentation_models_pytorch as smp import torch import argparse import torch.nn as nn import timm from model_wrapper import Classification_model def prepare_model(opt): with open(opt.hyp) as f: experiment_dict = yaml.load(f, Loader=yaml.FullLoader) model_pretrained = timm.c...
41.68
177
0.764875
137
1,042
5.525547
0.416058
0.147952
0.125495
0.076618
0.076618
0
0
0
0
0
0
0
0.109405
1,042
24
178
43.416667
0.815733
0
0
0
0
0
0.167946
0.026871
0
0
0
0
0
1
0.045455
false
0
0.363636
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
0
0
0
1
0
0
0
0
1
d258b7f764b2791ef696f1cad34e04a51316c183
4,511
py
Python
StepperComms.py
MicaelJarniac/StepperComms
53336a3733c1b5bb30b3d001b7fe3414f9c3fab9
[ "MIT" ]
null
null
null
StepperComms.py
MicaelJarniac/StepperComms
53336a3733c1b5bb30b3d001b7fe3414f9c3fab9
[ "MIT" ]
null
null
null
StepperComms.py
MicaelJarniac/StepperComms
53336a3733c1b5bb30b3d001b7fe3414f9c3fab9
[ "MIT" ]
null
null
null
# Required imports import os import sys import serial import time sys.path.append(os.path.dirname(os.path.expanduser('~/projects/Python-Playground/Debug'))) # Update path accordingly from Debug.Debug import Debug # Declare debug debug = Debug(True, 3).prt # Simplifies debugging messages # Message building blocks RW...
38.228814
144
0.552871
479
4,511
5.098121
0.359081
0.022932
0.022523
0.013514
0.023751
0.023751
0.023751
0.023751
0
0
0
0.018969
0.380625
4,511
117
145
38.555556
0.855047
0.349368
0
0.12987
0
0
0.022617
0.01183
0
0
0.006611
0.008547
0
0
null
null
0
0.064935
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
d25b3d6bc31f3ca7960ee1d2b2edc46e92e9ff1d
6,142
py
Python
skills/eliza/test_eliza.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
34
2021-08-18T14:51:44.000Z
2022-03-10T14:14:48.000Z
skills/eliza/test_eliza.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
27
2021-08-30T14:42:09.000Z
2022-03-17T22:11:45.000Z
skills/eliza/test_eliza.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
40
2021-08-22T07:13:32.000Z
2022-03-29T11:45:32.000Z
import unittest import eliza class ElizaTest(unittest.TestCase): def test_decomp_1(self): el = eliza.Eliza() self.assertEqual([], el._match_decomp(["a"], ["a"])) self.assertEqual([], el._match_decomp(["a", "b"], ["a", "b"])) def test_decomp_2(self): el = eliza.Eliza() ...
45.496296
120
0.545262
806
6,142
4.031017
0.19727
0.166205
0.124038
0.107725
0.50908
0.432133
0.340412
0.280702
0.268082
0.219452
0
0.007604
0.25057
6,142
134
121
45.835821
0.69824
0
0
0.25
0
0
0.287854
0
0
0
0
0
0.422414
1
0.12931
false
0
0.017241
0
0.155172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
d25df58bed9f8be63b8c4a15d08e86c300ade0fd
2,511
py
Python
pelican_resume/resume.py
cmenguy/pelican-resume
57105e72c24ef04ad96857f51e5e9060e6aff1f6
[ "MIT" ]
12
2016-02-07T05:16:44.000Z
2019-11-20T08:46:10.000Z
pelican_resume/resume.py
cmenguy/pelican-resume
57105e72c24ef04ad96857f51e5e9060e6aff1f6
[ "MIT" ]
1
2019-01-20T20:57:35.000Z
2019-01-20T20:59:59.000Z
pelican_resume/resume.py
cmenguy/pelican-resume
57105e72c24ef04ad96857f51e5e9060e6aff1f6
[ "MIT" ]
5
2016-06-07T23:34:36.000Z
2020-07-13T18:01:23.000Z
''' resume ============================================================================== This plugin generates a PDF resume from a Markdown file using customizable CSS ''' import os import logging import tempfile from subprocess import Popen from pelican import signals CURRENT_DIR = os.path.dirname(os.path.abspath...
38.630769
87
0.682597
325
2,511
5.076923
0.252308
0.043636
0.084848
0.094545
0.099394
0
0
0
0
0
0
0
0.169255
2,511
65
88
38.630769
0.790988
0.065313
0
0
1
0
0.164957
0
0
0
0
0
0
1
0.081633
false
0
0.122449
0
0.22449
0
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
d25e34eee54e20d2dc920f68d0031efffaa533b3
331
py
Python
app/machine_learning.py
ludthor/CovidVisualizer
721015e8f9f0b1c0fb2e5ba985884341d22046e2
[ "MIT" ]
null
null
null
app/machine_learning.py
ludthor/CovidVisualizer
721015e8f9f0b1c0fb2e5ba985884341d22046e2
[ "MIT" ]
null
null
null
app/machine_learning.py
ludthor/CovidVisualizer
721015e8f9f0b1c0fb2e5ba985884341d22046e2
[ "MIT" ]
null
null
null
from sklearn.linear_model import Ridge class MachineLearning(): def __init__(self): self.model = None def train_model(self, X,y): lr = Ridge(alpha=0.5) lr.fit(X,y) print(lr) self.model = lr def predict(self, X): preds = self.model.predict(X) return...
15.761905
38
0.570997
45
331
4.066667
0.533333
0.147541
0
0
0
0
0
0
0
0
0
0.008889
0.320242
331
20
39
16.55
0.804444
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d26193d8f95b87350b91fd8517bcdb1ccfde7d7b
3,936
py
Python
Ch_5/linear_alg5.py
Skyblueballykid/linalg
515eea984856ad39c823314178929876b21f8014
[ "MIT" ]
null
null
null
Ch_5/linear_alg5.py
Skyblueballykid/linalg
515eea984856ad39c823314178929876b21f8014
[ "MIT" ]
null
null
null
Ch_5/linear_alg5.py
Skyblueballykid/linalg
515eea984856ad39c823314178929876b21f8014
[ "MIT" ]
null
null
null
import numpy as np import scipy import sympy from numpy import linalg as lg from numpy.linalg import solve from numpy.linalg import eig from scipy.integrate import quad # Question 1 ''' A. Determinant = -21 B. Determinant = -21 ''' m1 = np.array([[3, 0, 3], [2, 3, 3], [0, 4, -1]]) print(m1) det1 = np.linalg.det(m...
23.152941
202
0.653201
719
3,936
3.573018
0.243394
0.043597
0.068509
0.014013
0.098093
0.063838
0.007007
0.007007
0.007007
0
0
0.088035
0.180386
3,936
169
203
23.289941
0.708308
0.289634
0
0
0
0
0
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
d26509e1b720c708ef4c28d0e261a51f29110955
425
py
Python
build.py
chrahunt/conan-protobuf
c49350d1c69d2e5b40305803f3184561f433554c
[ "MIT" ]
null
null
null
build.py
chrahunt/conan-protobuf
c49350d1c69d2e5b40305803f3184561f433554c
[ "MIT" ]
null
null
null
build.py
chrahunt/conan-protobuf
c49350d1c69d2e5b40305803f3184561f433554c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from bincrafters import build_template_default if __name__ == "__main__": builder = build_template_default.get_builder() # Todo: re-enable shared builds when issue resolved # github issue: https://github.com/google/protobuf/issues/2502 builder.items...
26.5625
98
0.701176
53
425
5.377358
0.735849
0.091228
0.140351
0
0
0
0
0
0
0
0
0.014205
0.171765
425
16
99
26.5625
0.795455
0.36
0
0
0
0
0.085502
0
0
0
0
0.0625
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
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
d26a6bee5f324041d60e07e49f5e1f8b0a925d37
1,099
py
Python
extras/unbundle.py
mstriemer/amo-validator
35b502204183d783634207e7c2e7766ea1070ce8
[ "BSD-3-Clause" ]
1
2015-07-15T20:06:09.000Z
2015-07-15T20:06:09.000Z
extras/unbundle.py
mstriemer/amo-validator
35b502204183d783634207e7c2e7766ea1070ce8
[ "BSD-3-Clause" ]
null
null
null
extras/unbundle.py
mstriemer/amo-validator
35b502204183d783634207e7c2e7766ea1070ce8
[ "BSD-3-Clause" ]
null
null
null
import sys import os import zipfile from zipfile import ZipFile from StringIO import StringIO source = sys.argv[1] target = sys.argv[2] if not target.endswith("/"): target = "%s/" % target def _unbundle(path, target): zf = ZipFile(path, 'r') contents = zf.namelist() for item in contents: sp ...
22.895833
51
0.526843
134
1,099
4.246269
0.350746
0.035149
0.059754
0.038664
0.059754
0
0
0
0
0
0
0.008075
0.323931
1,099
47
52
23.382979
0.757739
0
0
0.054054
0
0
0.030027
0
0
0
0
0
0
0
null
null
0
0.135135
null
null
0.027027
0
0
0
null
0
0
0
0
0
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
d26afa5cb9899f00bda32076f95a8a1292054119
81,920
py
Python
linuxOperation/app/domain/forms.py
zhouli121018/core
f9700204349ecb22d45e700e9e27e79412829199
[ "MIT" ]
null
null
null
linuxOperation/app/domain/forms.py
zhouli121018/core
f9700204349ecb22d45e700e9e27e79412829199
[ "MIT" ]
1
2021-06-10T20:45:55.000Z
2021-06-10T20:45:55.000Z
linuxOperation/app/domain/forms.py
zhouli121018/core
f9700204349ecb22d45e700e9e27e79412829199
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import time import os import math import json from lib.forms import BaseFied, BaseFieldFormatExt, DotDict, BaseCfilterActionFied, BaseCfilterOptionFied from app.core.models import Mailbox, MailboxUserAttr, Domain, CoCompany, CoreAlias, DomainAttr, \ Department...
39.083969
154
0.585278
9,772
81,920
4.719505
0.068563
0.031397
0.025499
0.014875
0.589258
0.521932
0.451571
0.360134
0.281749
0.240183
0
0.005817
0.297009
81,920
2,095
155
39.102625
0.795013
0.009949
0
0.386712
0
0
0.051394
0.00227
0
0
0
0
0
0
null
null
0.011925
0.035207
null
null
0.001136
0
0
0
null
0
0
0
0
0
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
d26dbcccea877eec0764524f32244d3a230c796d
434
py
Python
model/DB Automation/add_db.py
chrisdcao/Covid_Map_Hanoi
07d18cad8c1b4988795d9ec2aca5ae1fefdff892
[ "MIT" ]
1
2021-09-09T07:55:00.000Z
2021-09-09T07:55:00.000Z
model/DB Automation/add_db.py
chrisdcao/Covid_Map_Hanoi
07d18cad8c1b4988795d9ec2aca5ae1fefdff892
[ "MIT" ]
null
null
null
model/DB Automation/add_db.py
chrisdcao/Covid_Map_Hanoi
07d18cad8c1b4988795d9ec2aca5ae1fefdff892
[ "MIT" ]
null
null
null
import pyodbc import mysql.connector conn = mysql.connector.connect(user='root', password='', port='3307', host='localhost', database='coviddb') cursor = conn.cursor(buffered=True) cursor.execute('SELECT * FROM coviddb.markers') cursor.execute(''' INSERT INTO coviddb.markers(id, name, address, sub...
22.842105
107
0.615207
52
434
5.134615
0.673077
0.037453
0.044944
0.044944
0.022472
0
0
0
0
0
0
0.028818
0.200461
434
18
108
24.111111
0.740634
0
0
0
0
0
0.493088
0.073733
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
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
d26f1afb5207b56be2e3191794a04329185695ac
1,818
py
Python
factor calculation scripts/15.smoothearningstopriceratio.py
cagdemir/equity-index-predictors
2546e72328de848222cb6a1c744ababab2058477
[ "MIT" ]
null
null
null
factor calculation scripts/15.smoothearningstopriceratio.py
cagdemir/equity-index-predictors
2546e72328de848222cb6a1c744ababab2058477
[ "MIT" ]
null
null
null
factor calculation scripts/15.smoothearningstopriceratio.py
cagdemir/equity-index-predictors
2546e72328de848222cb6a1c744ababab2058477
[ "MIT" ]
1
2021-07-21T12:24:51.000Z
2021-07-21T12:24:51.000Z
# -*- coding: utf-8 -*- """ Created on Fri Nov 29 18:00:53 2019 @author: Administrator """ import pdblp import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns con = pdblp.BCon(debug=False, port=8194, timeout=5000) con.start() index_tickers = ['NYA Index', 'SPX I...
33.054545
160
0.718372
292
1,818
4.143836
0.39726
0.161983
0.173554
0.172727
0.347107
0.299174
0.273554
0.210744
0.210744
0.178512
0
0.057766
0.143014
1,818
54
161
33.666667
0.71887
0.256876
0
0
0
0
0.22283
0.049257
0
0
0
0
0
1
0
false
0
0.24
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
d26f95f1c9db6cafe8a214de467a08368f6b0271
2,378
py
Python
py2ts/generate_service_registry.py
conanfanli/py2ts
8543ad03f19f094b0771c3b0cfc26a89eefd95ed
[ "MIT" ]
3
2020-04-10T22:09:44.000Z
2020-11-29T07:19:28.000Z
py2ts/generate_service_registry.py
conanfanli/py2ts
8543ad03f19f094b0771c3b0cfc26a89eefd95ed
[ "MIT" ]
1
2020-04-11T14:25:50.000Z
2020-04-11T14:25:50.000Z
py2ts/generate_service_registry.py
conanfanli/py2ts
8543ad03f19f094b0771c3b0cfc26a89eefd95ed
[ "MIT" ]
1
2021-05-15T09:22:41.000Z
2021-05-15T09:22:41.000Z
#!/usr/bin/env python import logging import re import subprocess import sys from typing import Dict logger = logging.getLogger("py2ts.generate_service_registry") logging.basicConfig(level=logging.INFO) class RipgrepError(Exception): pass def camel_to_snake(name: str) -> str: name = re.sub("(.)([A-Z][a-z]+)...
27.976471
117
0.638352
304
2,378
4.805921
0.378289
0.067762
0.07666
0.047228
0.115674
0.079398
0
0
0
0
0
0.007563
0.221615
2,378
84
118
28.309524
0.78174
0.119428
0
0
1
0
0.260077
0.02975
0
0
0
0
0.017241
1
0.051724
false
0.017241
0.172414
0
0.293103
0.017241
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
d274bf60d6abc1273072877c9d1d6cd1119e3863
776
py
Python
django_qiniu/utils.py
9nix00/django-qiniu
08a403dc156b4971eef5af359048a6d2ce485245
[ "MIT" ]
1
2018-06-21T03:14:20.000Z
2018-06-21T03:14:20.000Z
django_qiniu/utils.py
9nix00/django-qiniu
08a403dc156b4971eef5af359048a6d2ce485245
[ "MIT" ]
null
null
null
django_qiniu/utils.py
9nix00/django-qiniu
08a403dc156b4971eef5af359048a6d2ce485245
[ "MIT" ]
1
2018-06-21T03:14:21.000Z
2018-06-21T03:14:21.000Z
# -*- coding: utf-8 -*- from account_helper.middleware import get_current_user_id from django.utils import timezone from django.conf import settings from hashlib import sha1 import os def user_upload_dir(instance, filename): name_struct = os.path.splitext(filename) current_user_id = get_current_user_id() ...
38.8
101
0.590206
95
776
4.610526
0.557895
0.100457
0.118721
0.073059
0
0
0
0
0
0
0
0.027422
0.295103
776
19
102
40.842105
0.773309
0.027062
0
0
0
0
0.075697
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d27c6795141864bd67b93ea1ed9caca681ced3fd
10,246
py
Python
pysoundcloud/client.py
omarcostahamido/PySoundCloud
1ca53a280c77f6b5f52868adefa332c4de56858f
[ "MIT" ]
4
2021-09-15T06:40:02.000Z
2022-01-16T03:31:59.000Z
pysoundcloud/client.py
AnthonyMakesStuff/PySoundCloud
1ca53a280c77f6b5f52868adefa332c4de56858f
[ "MIT" ]
1
2021-04-22T04:18:42.000Z
2021-05-09T09:22:59.000Z
pysoundcloud/client.py
AnthonyMakesStuff/PySoundCloud
1ca53a280c77f6b5f52868adefa332c4de56858f
[ "MIT" ]
1
2020-09-05T02:14:37.000Z
2020-09-05T02:14:37.000Z
import re import requests from typing import Union from pysoundcloud.soundcloudplaylists import SoundCloudPlaylists from pysoundcloud.soundcloudsearchresults import SoundCloudSearchResults from pysoundcloud.soundcloudlikedtracks import SoundCloudLikedTracks from pysoundcloud.soundcloudplaylist import SoundClo...
44.547826
119
0.576127
1,125
10,246
5.157333
0.144
0.042744
0.033092
0.027921
0.54981
0.520338
0.487073
0.462082
0.425715
0.407963
0
0.013953
0.328518
10,246
229
120
44.742358
0.82936
0.23658
0
0.447761
0
0.029851
0.157736
0.071017
0
0
0
0.017467
0
1
0.074627
false
0.014925
0.067164
0
0.283582
0.059701
0
0
0
null
0
0
0
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
d27cc7e2f11f688e99e9542aba655008056fb669
859
py
Python
rojak-analyzer/generate_stopwords.py
pyk/rojak
0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7
[ "BSD-3-Clause" ]
107
2016-10-02T05:54:42.000Z
2021-08-05T00:20:51.000Z
rojak-analyzer/generate_stopwords.py
pyk/rojak
0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7
[ "BSD-3-Clause" ]
134
2016-10-02T21:21:08.000Z
2016-12-27T02:46:34.000Z
rojak-analyzer/generate_stopwords.py
pyk/rojak
0dd69efedb58ee5d951e1a43cdfa65b60f8bb7c7
[ "BSD-3-Clause" ]
54
2016-10-02T08:47:56.000Z
2020-03-08T00:56:03.000Z
# Run this script to create stopwords.py based on stopwords.txt import json def generate(input_txt, output_py): # Read line by line txt_file = open(input_txt) words = set([]) for raw_line in txt_file: line = raw_line.strip() # Skip empty line if len(line) < 1: continue #...
29.62069
71
0.622817
119
859
4.344538
0.478992
0.085106
0.046422
0
0
0
0
0
0
0
0
0.004666
0.251455
859
28
72
30.678571
0.799378
0.181607
0
0
1
0
0.221264
0.033046
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.105263
0
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
d27e557da62812d946f0019863efdd827d603a76
1,024
py
Python
model.py
nitro-code/inception-api
0ee40b1bdc7cccec8e15921ff835ce29070a66f6
[ "MIT" ]
1
2017-08-18T09:13:47.000Z
2017-08-18T09:13:47.000Z
model.py
nitroventures/inception-api
0ee40b1bdc7cccec8e15921ff835ce29070a66f6
[ "MIT" ]
null
null
null
model.py
nitroventures/inception-api
0ee40b1bdc7cccec8e15921ff835ce29070a66f6
[ "MIT" ]
null
null
null
import tensorflow as tf from keras.preprocessing import image from keras.applications.inception_v3 import InceptionV3, preprocess_input, decode_predictions import numpy as np import h5py model = InceptionV3(include_top=True, weights='imagenet', input_tensor=None, input_shape=None) graph = tf.get_default_graph() def ...
34.133333
131
0.775391
146
1,024
5.157534
0.424658
0.071713
0.053121
0.079681
0
0
0
0
0
0
0
0.01573
0.130859
1,024
29
132
35.310345
0.830337
0
0
0
0
0
0.021484
0
0
0
0
0
0
1
0.142857
false
0
0.238095
0.047619
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d2831bfec38a388ec3a1badd4f034aaa55b158a5
1,661
py
Python
sfdata/posts/migrations/0001_initial.py
adjspecies/sfdata
9522176c1c80e9f0aeecf77da6576e8465238383
[ "MIT" ]
1
2019-01-24T01:57:21.000Z
2019-01-24T01:57:21.000Z
sfdata/posts/migrations/0001_initial.py
adjspecies/sfdata
9522176c1c80e9f0aeecf77da6576e8465238383
[ "MIT" ]
null
null
null
sfdata/posts/migrations/0001_initial.py
adjspecies/sfdata
9522176c1c80e9f0aeecf77da6576e8465238383
[ "MIT" ]
1
2018-12-22T02:20:39.000Z
2018-12-22T02:20:39.000Z
# Generated by Django 2.1.4 on 2018-12-21 21:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', fields=[ ...
33.22
114
0.526791
145
1,661
5.951724
0.42069
0.104287
0.086906
0.079954
0.341831
0.341831
0.341831
0.341831
0.341831
0.341831
0
0.013429
0.327514
1,661
49
115
33.897959
0.759176
0.027092
0
0.428571
1
0
0.07311
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d28385fbbbc8e61ca535b580e9a5d1d70c77fe44
1,361
py
Python
test/test_tools.py
cokelaer/sequana
da35de12b45f38b4fa488c7a15a6d9829890b44e
[ "BSD-3-Clause" ]
138
2016-07-13T06:24:45.000Z
2022-03-28T13:12:03.000Z
test/test_tools.py
cokelaer/sequana
da35de12b45f38b4fa488c7a15a6d9829890b44e
[ "BSD-3-Clause" ]
655
2016-03-10T17:33:40.000Z
2022-03-30T16:10:45.000Z
test/test_tools.py
cokelaer/sequana
da35de12b45f38b4fa488c7a15a6d9829890b44e
[ "BSD-3-Clause" ]
39
2016-11-04T11:40:58.000Z
2022-03-15T08:12:29.000Z
from sequana.tools import bam_to_mapped_unmapped_fastq, reverse_complement, StatsBAM2Mapped from sequana import sequana_data from sequana.tools import bam_get_paired_distance, GZLineCounter, PairedFastQ from sequana.tools import genbank_features_parser def test_StatsBAM2Mapped(): data = sequana_data("test.bam", "t...
26.686275
91
0.739897
177
1,361
5.418079
0.293785
0.103233
0.093848
0.114703
0.264859
0.096976
0.066736
0
0
0
0
0.021496
0.145481
1,361
50
92
27.22
0.803095
0
0
0.090909
0
0
0.110948
0
0
0
0
0
0.121212
1
0.272727
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
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
962a9c50351cba1947f6e3a1a14ce2f159196743
1,205
py
Python
oldp/apps/search/templatetags/search.py
docsuleman/oldp
8dcaa8e6e435794c872346b5014945ace885adb4
[ "MIT" ]
66
2018-05-07T12:34:39.000Z
2022-02-23T20:14:24.000Z
oldp/apps/search/templatetags/search.py
Justice-PLP-DHV/oldp
eadf235bb0925453d9a5b81963a0ce53afeb17fd
[ "MIT" ]
68
2018-06-11T16:13:17.000Z
2022-02-10T08:03:26.000Z
oldp/apps/search/templatetags/search.py
Justice-PLP-DHV/oldp
eadf235bb0925453d9a5b81963a0ce53afeb17fd
[ "MIT" ]
15
2018-06-23T19:41:13.000Z
2021-08-18T08:21:49.000Z
from datetime import datetime from dateutil.relativedelta import relativedelta from django import template from django.template.defaultfilters import urlencode from django.urls import reverse from haystack.models import SearchResult from haystack.utils.highlighting import Highlighter register = template.Library() @...
28.690476
117
0.73444
152
1,205
5.644737
0.381579
0.06993
0.079254
0.073427
0.10373
0.072261
0
0
0
0
0
0.00098
0.153527
1,205
41
118
29.390244
0.840196
0.042324
0
0.16
0
0
0.0561
0
0
0
0
0
0
1
0.16
false
0
0.28
0.04
0.64
0
0
0
0
null
0
0
0
0
0
0
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
962cd88d6f79f8b3352c0cd041ccfcff6c478fe5
11,137
py
Python
sdk/python/pulumi_oci/sch/get_service_connector.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/sch/get_service_connector.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/sch/get_service_connector.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
43.846457
347
0.679806
1,333
11,137
5.456114
0.174044
0.079197
0.042073
0.061873
0.349099
0.278702
0.228241
0.194143
0.14382
0.137082
0
0.00588
0.221155
11,137
253
348
44.019763
0.832603
0.274401
0
0.128049
1
0
0.172754
0.034317
0
0
0
0
0
1
0.109756
false
0
0.036585
0.006098
0.262195
0
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
962f56d3ff295087050794dbedace7481235e971
337
py
Python
molecule/default/tests/test_creation.py
stackhpc/ansible-role-luks
8c4b5f472ab0aef3d2a776d4fcd37ca17c6eac05
[ "Apache-1.1" ]
3
2020-04-14T19:57:25.000Z
2021-01-11T09:09:16.000Z
molecule/default/tests/test_creation.py
stackhpc/ansible-role-luks
8c4b5f472ab0aef3d2a776d4fcd37ca17c6eac05
[ "Apache-1.1" ]
4
2020-08-12T10:24:25.000Z
2022-01-17T17:48:28.000Z
molecule/default/tests/test_creation.py
stackhpc/ansible-role-luks
8c4b5f472ab0aef3d2a776d4fcd37ca17c6eac05
[ "Apache-1.1" ]
2
2021-06-17T21:57:42.000Z
2022-02-20T08:02:43.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_crypto_devices(host): f = host.file('/dev/mapper/cryptotest') assert f.exists f = host.file('/dev/mapper/crypto-test1') ...
24.071429
63
0.744807
46
337
5.282609
0.565217
0.115226
0.17284
0.222222
0.148148
0
0
0
0
0
0
0.003413
0.130564
337
13
64
25.923077
0.825939
0
0
0.222222
0
0
0.21365
0.204748
0
0
0
0
0.222222
1
0.111111
false
0
0.222222
0
0.333333
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
9632975c75b20b8d1e791a57c8e86aa3a4d6057f
586
py
Python
w0rplib/url.py
w0rp/w0rpzone
06aa9f8871cefcbefbbfdfcba0abfd4fa2629d0c
[ "BSD-2-Clause" ]
null
null
null
w0rplib/url.py
w0rp/w0rpzone
06aa9f8871cefcbefbbfdfcba0abfd4fa2629d0c
[ "BSD-2-Clause" ]
13
2019-07-05T18:44:46.000Z
2021-06-19T12:19:46.000Z
w0rplib/url.py
w0rp/w0rpzone
06aa9f8871cefcbefbbfdfcba0abfd4fa2629d0c
[ "BSD-2-Clause" ]
null
null
null
from django.views.generic.base import RedirectView from django.conf.urls import re_path def redir(regex, redirect_url, name=None): """ A shorter wrapper around RedirectView for 301 redirects. """ return re_path( regex, RedirectView.as_view(url=redirect_url, permanent=True), nam...
23.44
64
0.663823
73
586
5.191781
0.452055
0.116095
0.084433
0.105541
0.670185
0.670185
0.670185
0.670185
0.670185
0.670185
0
0.013514
0.242321
586
24
65
24.416667
0.84009
0.192833
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
9634bfc41291ba70d3cb8d6d1b58e82b77a84ebf
494
py
Python
commanderbot_lib/database/yaml_file_database.py
CommanderBot-Dev/commanderbot-lib
2716279b059056eaf0797085149b61f71b175ed5
[ "MIT" ]
1
2020-09-25T19:22:47.000Z
2020-09-25T19:22:47.000Z
commanderbot_lib/database/yaml_file_database.py
CommanderBot-Dev/commanderbot-lib
2716279b059056eaf0797085149b61f71b175ed5
[ "MIT" ]
1
2021-01-06T00:22:56.000Z
2021-08-29T20:54:50.000Z
commanderbot_lib/database/yaml_file_database.py
CommanderBot-Dev/commanderbot-lib
2716279b059056eaf0797085149b61f71b175ed5
[ "MIT" ]
2
2020-09-25T19:23:07.000Z
2020-09-25T21:06:11.000Z
from typing import IO from commanderbot_lib.database.abc.file_database import FileDatabase from commanderbot_lib.database.mixins.yaml_file_database_mixin import ( YamlFileDatabaseMixin, ) class YamlFileDatabase(FileDatabase, YamlFileDatabaseMixin): # @implements FileDatabase async def load(self, file: IO...
29.058824
71
0.755061
59
494
6.186441
0.440678
0.087671
0.10411
0.147945
0
0
0
0
0
0
0
0
0.168016
494
16
72
30.875
0.888078
0.09919
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
963a4d3128c84db58d2f454e777068e2515b774e
307
py
Python
cooee/actions.py
yschimke/cooee-cli-py
74edeb58ee5cfd0887b73de4f90ffa28892e24df
[ "Apache-2.0" ]
null
null
null
cooee/actions.py
yschimke/cooee-cli-py
74edeb58ee5cfd0887b73de4f90ffa28892e24df
[ "Apache-2.0" ]
null
null
null
cooee/actions.py
yschimke/cooee-cli-py
74edeb58ee5cfd0887b73de4f90ffa28892e24df
[ "Apache-2.0" ]
null
null
null
import webbrowser from typing import Dict, Any from prompt_toolkit import print_formatted_text from .format import todo_string def launch_action(result: Dict[str, Any]): if "location" in result: webbrowser.open(result["location"]) else: print_formatted_text(todo_string(result))
21.928571
49
0.745928
41
307
5.390244
0.585366
0.126697
0.162896
0
0
0
0
0
0
0
0
0
0.175896
307
13
50
23.615385
0.873518
0
0
0
0
0
0.052117
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.555556
0.222222
0
0
0
null
0
0
0
0
0
0
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
963e81d1f86297198f40e8bbac901cbb13572805
829
py
Python
python/q04.py
holisound/70-math-quizs-for-programmers
746d98435a496fd8313a233fe4c2a59fd11d3823
[ "MIT" ]
null
null
null
python/q04.py
holisound/70-math-quizs-for-programmers
746d98435a496fd8313a233fe4c2a59fd11d3823
[ "MIT" ]
null
null
null
python/q04.py
holisound/70-math-quizs-for-programmers
746d98435a496fd8313a233fe4c2a59fd11d3823
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import deque def cutBar(m, n): res, now = 0, 1 while now < n: now += now if now < m else m res += 1 return res def cutBarBFS(m, n): if n == 1: return 0 que = deque([n]) res = 0 while que: size = len(que) for...
19.738095
43
0.472859
122
829
3.204918
0.319672
0.025575
0.084399
0.107417
0.189258
0.107417
0
0
0
0
0
0.052738
0.405308
829
41
44
20.219512
0.740365
0.025332
0
0.176471
0
0
0
0
0
0
0
0
0
0
null
null
0
0.029412
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
963ee361844cacc5317b943abf161599e3643da8
1,247
py
Python
DRAFTS/CookieStealer.py
henryza/Python
34af4a915e7bec27268b619246833e65e48d1cb8
[ "MIT" ]
null
null
null
DRAFTS/CookieStealer.py
henryza/Python
34af4a915e7bec27268b619246833e65e48d1cb8
[ "MIT" ]
null
null
null
DRAFTS/CookieStealer.py
henryza/Python
34af4a915e7bec27268b619246833e65e48d1cb8
[ "MIT" ]
null
null
null
import requests import json class test(object): def __init__(self): self._debug = False self._http_debug = False self._https = True self._session = requests.session() # use single session for all requests def update_csrf(self): # Retrieve server csrf and update session's he...
30.414634
81
0.567763
144
1,247
4.784722
0.423611
0.079826
0.056604
0
0
0
0
0
0
0
0
0.002381
0.326383
1,247
41
82
30.414634
0.817857
0.121091
0
0
0
0
0.061412
0
0
0
0
0
0
1
0.133333
false
0.1
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
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
9643beb9c22472b136ce8bcd1f8f9fb526f1f46a
11,096
py
Python
dependencies/FontTools/Lib/fontTools/misc/bezierTools.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
21
2015-01-16T05:10:02.000Z
2021-06-11T20:48:15.000Z
dependencies/FontTools/Lib/fontTools/misc/bezierTools.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
1
2019-09-09T12:10:27.000Z
2020-05-22T10:12:14.000Z
dependencies/FontTools/Lib/fontTools/misc/bezierTools.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
2
2015-05-03T04:51:08.000Z
2018-08-24T08:28:53.000Z
"""fontTools.misc.bezierTools.py -- tools for working with bezier path segments.""" __all__ = [ "calcQuadraticBounds", "calcCubicBounds", "splitLine", "splitQuadratic", "splitCubic", "splitQuadraticAtT", "splitCubicAtT", "solveQuadratic", "solveCubic", ] from fontTools.misc.arrayTools import calcBounds impo...
30.31694
114
0.594809
1,978
11,096
3.324065
0.145602
0.034677
0.025551
0.018251
0.484867
0.426464
0.385856
0.377643
0.358327
0.314829
0
0.175217
0.200703
11,096
365
115
30.4
0.566129
0.057769
0
0.25
0
0
0.026978
0
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.01087
0
0
0
null
0
0
0
0
0
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
96461908df787c4f715fcb78e9b9a2b6846a1ccf
15,328
py
Python
hypha/apply/projects/models/project.py
slifty/hypha
93313933c26589858beb9a861e33431658cd3b24
[ "BSD-3-Clause" ]
null
null
null
hypha/apply/projects/models/project.py
slifty/hypha
93313933c26589858beb9a861e33431658cd3b24
[ "BSD-3-Clause" ]
null
null
null
hypha/apply/projects/models/project.py
slifty/hypha
93313933c26589858beb9a861e33431658cd3b24
[ "BSD-3-Clause" ]
null
null
null
import collections import decimal import json import logging from django.apps import apps from django.conf import settings from django.contrib.contenttypes.fields import GenericRelation from django.contrib.postgres.fields import JSONField from django.core.exceptions import ValidationError from django.core.validators i...
32.892704
123
0.666819
1,757
15,328
5.639727
0.223677
0.022202
0.022606
0.014835
0.17368
0.134827
0.117469
0.105359
0.087193
0.066404
0
0.001811
0.24328
15,328
465
124
32.963441
0.852487
0.13459
0
0.162939
0
0
0.081367
0.017852
0
0
0
0
0
1
0.134185
false
0
0.089457
0.086262
0.536741
0
0
0
0
null
0
0
0
0
0
0
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
9646e8e2458a9b399cec0bf5ce7ece6cbbdffad6
1,938
py
Python
temp/src/square.py
wvu-irl/smart-2
b39b6d477b5259b3bf0d96180a154ee1dafae0ac
[ "MIT" ]
null
null
null
temp/src/square.py
wvu-irl/smart-2
b39b6d477b5259b3bf0d96180a154ee1dafae0ac
[ "MIT" ]
null
null
null
temp/src/square.py
wvu-irl/smart-2
b39b6d477b5259b3bf0d96180a154ee1dafae0ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from math import radians import os import numpy as np from nav_msgs.msg import Odometry class DrawASquare(): def __init__(self): # initiliaze rospy.init_node('drawasquare', anonymous=True) # What to do you ctrl + c ...
27.685714
120
0.583591
270
1,938
4.077778
0.448148
0.027248
0.036331
0.046322
0.021798
0
0
0
0
0
0
0.034928
0.320433
1,938
69
121
28.086957
0.801063
0.237358
0
0.04878
0
0
0.1162
0
0
0
0
0
0
0
null
null
0
0.146341
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
964a8ebce3df5d896031c77dad18e3a15b609702
527
py
Python
tests/test_wps_dummy.py
f-PLT/emu
c0bb27d57afcaa361772ce99eaf11f706983b3b2
[ "Apache-2.0" ]
3
2015-11-10T10:08:07.000Z
2019-09-09T20:41:25.000Z
tests/test_wps_dummy.py
f-PLT/emu
c0bb27d57afcaa361772ce99eaf11f706983b3b2
[ "Apache-2.0" ]
76
2015-02-01T23:17:17.000Z
2021-12-20T14:17:59.000Z
tests/test_wps_dummy.py
f-PLT/emu
c0bb27d57afcaa361772ce99eaf11f706983b3b2
[ "Apache-2.0" ]
8
2016-10-13T16:44:02.000Z
2020-12-22T18:36:53.000Z
from pywps import Service from pywps.tests import assert_response_success from .common import client_for, get_output from emu.processes.wps_dummy import Dummy def test_wps_dummy(): client = client_for(Service(processes=[Dummy()])) datainputs = "input1=10;input2=2" resp = client.get( service='WPS'...
31
68
0.705882
68
527
5.308824
0.529412
0.049862
0.116343
0
0
0
0
0
0
0
0
0.029613
0.166983
527
16
69
32.9375
0.792711
0
0
0
0
0
0.117647
0
0
0
0
0
0.230769
1
0.076923
false
0
0.307692
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
964ae4268e2f7a93ee8eacf634fa2376a1e04d95
476
py
Python
test/talker.py
cjds/rosgo
2a832421948707baca6413fe4394e28ed0c36d86
[ "Apache-2.0" ]
148
2016-02-16T18:29:34.000Z
2022-03-18T13:13:46.000Z
test/talker.py
cjds/rosgo
2a832421948707baca6413fe4394e28ed0c36d86
[ "Apache-2.0" ]
24
2018-12-21T19:32:15.000Z
2021-01-20T00:27:51.000Z
test/talker.py
cjds/rosgo
2a832421948707baca6413fe4394e28ed0c36d86
[ "Apache-2.0" ]
45
2015-11-16T06:31:10.000Z
2022-03-28T12:46:44.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import String def talker(): pub = rospy.Publisher('chatter', String) rospy.init_node('talker', anonymous=True) while not rospy.is_shutdown(): str = "%s: hello world %s" % (rospy.get_name(), rospy.get_time()) rospy.loginfo(str) pu...
22.666667
73
0.628151
61
476
4.688525
0.688525
0.055944
0
0
0
0
0
0
0
0
0
0.005495
0.235294
476
20
74
23.8
0.78022
0.042017
0
0
0
0
0.085714
0
0
0
0
0
0
1
0.066667
false
0.066667
0.133333
0
0.2
0
0
0
0
null
0
0
0
0
0
0
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
964b60ee1051cb3579b95c9af76b42037448ddeb
9,365
py
Python
point_to_box/model.py
BavarianToolbox/point_to_box
6769739361410499596f53a60704cbedae56bd81
[ "Apache-2.0" ]
null
null
null
point_to_box/model.py
BavarianToolbox/point_to_box
6769739361410499596f53a60704cbedae56bd81
[ "Apache-2.0" ]
null
null
null
point_to_box/model.py
BavarianToolbox/point_to_box
6769739361410499596f53a60704cbedae56bd81
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_model.ipynb (unless otherwise specified). __all__ = ['EfficientLoc', 'CIoU'] # Cell #export from efficientnet_pytorch import EfficientNet import copy import time import math import torch import torch.optim as opt from torch.utils.data import DataLoader from torchv...
33.091873
112
0.553017
1,119
9,365
4.47185
0.243968
0.023381
0.016787
0.014388
0.078937
0.070144
0.070144
0.070144
0.070144
0.04996
0
0.036428
0.337533
9,365
283
113
33.091873
0.770148
0.173412
0
0.074534
1
0
0.068828
0.003601
0
0
0
0.003534
0
1
0.055901
false
0
0.049689
0.006211
0.142857
0.068323
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
964d531f50577c7580159804463196dbab58e21c
7,643
py
Python
Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/anmy_TDXY.py
mahmoud-a-ali/Thesis_sample_codes
02a912dd012291b00c89db195b4cba2ebb4d35fe
[ "MIT" ]
null
null
null
Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/anmy_TDXY.py
mahmoud-a-ali/Thesis_sample_codes
02a912dd012291b00c89db195b4cba2ebb4d35fe
[ "MIT" ]
null
null
null
Receptive_Field_PyNN/2rtna_connected_to_4ReceptiveFields/anmy_TDXY.py
mahmoud-a-ali/Thesis_sample_codes
02a912dd012291b00c89db195b4cba2ebb4d35fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sat Jun 2 13:09:55 2018 @author: mali """ #import time import pickle import pyNN.utility.plotting as plot import matplotlib.pyplot as plt import comn_conversion as cnvrt import prnt_plt_anmy as ppanmy # file and folder names =============================...
37.282927
180
0.483056
1,137
7,643
3.061566
0.153034
0.057455
0.046538
0.059753
0.569951
0.562769
0.555587
0.551853
0.537489
0.52054
0
0.038607
0.271359
7,643
204
181
37.465686
0.586461
0.426665
0
0.378947
0
0.010526
0.062336
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.115789
0
0
0
null
0
0
0
0
0
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
965034c03fdf2183dfe02406617dfa08e3bd353a
1,153
py
Python
recipes/Python/223585_Stable_deep_sorting_dottedindexed_attributes/recipe-223585.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/223585_Stable_deep_sorting_dottedindexed_attributes/recipe-223585.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/223585_Stable_deep_sorting_dottedindexed_attributes/recipe-223585.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
def sortByAttrs(seq, attrs): listComp = ['seq[:] = [('] for attr in attrs: listComp.append('seq[i].%s, ' % attr) listComp.append('i, seq[i]) for i in xrange(len(seq))]') exec('%s' % ''.join(listComp)) seq.sort() seq[:] = [obj[-1] for obj in seq] return # # begin test code # from random import randint ...
18.015625
58
0.542064
206
1,153
2.936893
0.286408
0.079339
0.128926
0.138843
0.383471
0.375207
0.294215
0.294215
0.21157
0.21157
0
0.025275
0.210755
1,153
63
59
18.301587
0.63956
0.025152
0
0.27027
0
0
0.221128
0
0
0
0
0
0
0
null
null
0
0.027027
null
null
0.297297
0
0
0
null
0
0
0
0
0
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
96519d3044209db1a7fd83988e9afafa3678e598
398
py
Python
examples/compat/ggplot_point.py
azjps/bokeh
13375db53d4c60216f3bcf5aacccb081cf19450a
[ "BSD-3-Clause" ]
1
2017-04-27T09:15:48.000Z
2017-04-27T09:15:48.000Z
app/static/libs/bokeh/examples/compat/ggplot_point.py
TBxy/bokeh_start_app
755494f6bc60e92ce17022bbd7f707a39132cbd0
[ "MIT" ]
null
null
null
app/static/libs/bokeh/examples/compat/ggplot_point.py
TBxy/bokeh_start_app
755494f6bc60e92ce17022bbd7f707a39132cbd0
[ "MIT" ]
1
2021-09-09T03:33:04.000Z
2021-09-09T03:33:04.000Z
from ggplot import aes, geom_point, ggplot, mtcars import matplotlib.pyplot as plt from pandas import DataFrame from bokeh import mpl from bokeh.plotting import output_file, show g = ggplot(mtcars, aes(x='wt', y='mpg', color='qsec')) + geom_point() g.make() plt.title("Point ggplot-based plot in Bokeh.") output_fil...
23.411765
69
0.751256
64
398
4.5625
0.546875
0.061644
0
0
0
0
0
0
0
0
0
0
0.120603
398
16
70
24.875
0.834286
0
0
0
0
0
0.20603
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9655150c478e5c7edceea8519f955d5cbf7c2792
3,604
py
Python
BuyandBye_project/users/forms.py
sthasam2/BuyandBye
07a998f289f9ae87b234cd6ca653a4fdb2765b95
[ "MIT" ]
1
2019-12-26T16:52:10.000Z
2019-12-26T16:52:10.000Z
BuyandBye_project/users/forms.py
sthasam2/buyandbye
07a998f289f9ae87b234cd6ca653a4fdb2765b95
[ "MIT" ]
13
2021-06-02T03:51:06.000Z
2022-03-12T00:53:22.000Z
BuyandBye_project/users/forms.py
sthasam2/buyandbye
07a998f289f9ae87b234cd6ca653a4fdb2765b95
[ "MIT" ]
null
null
null
from datetime import date from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from phonenumber_field.formfields import PhoneNumberField from .models import Profile from .options import STATE_CHOICES, YEARS from .utils import AgeValidator class ...
29.064516
92
0.59434
355
3,604
5.923944
0.253521
0.067998
0.099382
0.156919
0.664765
0.65145
0.65145
0.620067
0.620067
0.620067
0
0.021293
0.283296
3,604
123
93
29.300813
0.792877
0.025805
0
0.618182
0
0
0.184488
0
0
0
0
0
0
1
0
false
0.018182
0.072727
0
0.263636
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
96565fe229818a242f95852b7feea959f0bbeb31
10,110
py
Python
kolab/tokibi/tokibi.py
oshiooshi/kolab
5f34614a995b2a31156b65e6eb9d512b9867540e
[ "MIT" ]
null
null
null
kolab/tokibi/tokibi.py
oshiooshi/kolab
5f34614a995b2a31156b65e6eb9d512b9867540e
[ "MIT" ]
null
null
null
kolab/tokibi/tokibi.py
oshiooshi/kolab
5f34614a995b2a31156b65e6eb9d512b9867540e
[ "MIT" ]
null
null
null
import sys import pegtree as pg from pegtree.visitor import ParseTreeVisitor import random # from . import verb import verb EMPTY = tuple() # オプション OPTION = { 'Simple': False, # シンプルな表現を優先する 'Block': False, # Expressionに <e> </e> ブロックをつける 'EnglishFirst': False, # 英訳の精度を優先する 'ShuffleSynonym': True,...
24.128878
114
0.559149
1,324
10,110
4.121601
0.163897
0.030786
0.05131
0.02932
0.356606
0.327836
0.301448
0.283856
0.252336
0.231446
0
0.00692
0.299604
10,110
418
115
24.186603
0.763593
0.151533
0
0.369004
0
0
0.021624
0
0
0
0
0
0
1
0.214022
false
0
0.01845
0.04428
0.483395
0.01845
0
0
0
null
0
0
0
0
0
0
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
965a2d366a9e0c3114e09f3517d25bed152a9d40
2,363
py
Python
pull_into_place/commands/run_additional_metrics.py
Kortemme-Lab/pull_into_place
0019a6cec2a6130ebbaa49d7ab67d4c840fbe33c
[ "MIT" ]
3
2018-05-31T18:46:46.000Z
2020-05-04T03:27:38.000Z
pull_into_place/commands/run_additional_metrics.py
Kortemme-Lab/pull_into_place
0019a6cec2a6130ebbaa49d7ab67d4c840fbe33c
[ "MIT" ]
14
2016-09-14T00:16:49.000Z
2018-04-11T03:04:21.000Z
pull_into_place/commands/run_additional_metrics.py
Kortemme-Lab/pull_into_place
0019a6cec2a6130ebbaa49d7ab67d4c840fbe33c
[ "MIT" ]
1
2017-11-27T07:35:56.000Z
2017-11-27T07:35:56.000Z
#!/usr/bin/env python2 """\ Run additional filters on a folder of pdbs and copy the results back into the original pdb. Usage: pull_into_place run_additional_metrics <directory> [options] Options: --max-runtime TIME [default: 12:00:00] The runtime limit for each design job. The default value is...
28.130952
77
0.66314
325
2,363
4.741538
0.498462
0.01817
0.017521
0.023361
0.027255
0
0
0
0
0
0
0.005688
0.25603
2,363
83
78
28.46988
0.870876
0.039357
0
0
0
0
0.231421
0
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.068966
0
0
0
null
0
0
0
0
0
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
965a870632eb281fc73c846d9b482a54e2ad0de9
827
py
Python
setup.py
japherwocky/cl3ver
148242feb676cc675bbdf11ae39c3179b9a6ffe1
[ "MIT" ]
1
2017-04-01T00:15:38.000Z
2017-04-01T00:15:38.000Z
setup.py
japherwocky/cl3ver
148242feb676cc675bbdf11ae39c3179b9a6ffe1
[ "MIT" ]
null
null
null
setup.py
japherwocky/cl3ver
148242feb676cc675bbdf11ae39c3179b9a6ffe1
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'cl3ver', packages = ['cl3ver'], license = 'MIT', install_requires = ['requests'], version = '0.2', description = 'A python 3 wrapper for the cleverbot.com API', author = 'Japhy Bartlett', auth...
39.380952
84
0.541717
77
827
5.779221
0.688312
0.008989
0.062921
0.076404
0.152809
0.152809
0
0
0
0
0
0.021277
0.318017
827
20
85
41.35
0.767731
0
0
0
0
0
0.449819
0.025393
0
0
0
0
0
1
0
true
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
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
966165e75931deeaee2d1ab429f5cda6020e085f
19,860
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/jabber/pubsub.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/jabber/pubsub.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/jabber/pubsub.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
# -*- coding: utf-8 -*- import re from Axon.Component import component from Kamaelia.Util.Backplane import PublishTo, SubscribeTo from Axon.Ipc import shutdownMicroprocess, producerFinished from Kamaelia.Protocol.HTTP.HTTPClient import SimpleHTTPClient from headstock.api.jid import JID from headstock.api.im impor...
39.72
127
0.507049
1,945
19,860
5.04473
0.14036
0.024969
0.035874
0.029352
0.479413
0.451794
0.428761
0.393905
0.384631
0.355075
0
0.001278
0.369839
19,860
499
128
39.799599
0.782741
0.029255
0
0.423469
0
0
0.134299
0.005866
0
0
0
0
0
0
null
null
0
0.040816
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
96640311a4d3b46c933f3f768041f09fa3a2cb24
3,588
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/update_dropout.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/update_dropout.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/update_dropout.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
""" technique that randomly 0's out the update deltas for each parameter """ import theano import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams import treeano import treeano.nodes as tn fX = theano.config.floatX @treeano.register_node("update_dropout") class UpdateDropoutNode(treeano.Wrap...
36.612245
75
0.593924
388
3,588
5.262887
0.268041
0.064643
0.0857
0.045544
0.629285
0.580803
0.580803
0.524976
0.480901
0.445642
0
0.005783
0.325251
3,588
97
76
36.989691
0.83767
0.130156
0
0.597015
0
0
0.107328
0.067445
0
0
0
0.020619
0
1
0.029851
false
0
0.074627
0
0.223881
0
0
0
0
null
0
0
0
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
9667f9974ca754b017d3785df5cd5e5a88c0fff5
9,337
py
Python
testscripts/RDKB/component/TAD/TS_TAD_Download_SetInvalidDiagnosticsState.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/TAD/TS_TAD_Download_SetInvalidDiagnosticsState.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/TAD/TS_TAD_Download_SetInvalidDiagnosticsState.py
cablelabs/tools-tdkb
1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2016 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
49.402116
256
0.698297
1,148
9,337
5.608885
0.249129
0.026557
0.044417
0.01522
0.485324
0.452089
0.440596
0.436869
0.421183
0.411865
0
0.006431
0.2006
9,337
188
257
49.664894
0.856243
0.142658
0
0.680556
0
0
0.410106
0.048884
0
0
0
0
0
0
null
null
0
0.013889
null
null
0.375
0
0
0
null
0
0
0
0
0
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
966aec55e4c71e579f2f8dad4a1f0d280f90e1cf
1,354
py
Python
rest_framework_helpers/fields/relation.py
Apkawa/django-rest-framework-helpers
f4b24bf326e081a215ca5c1c117441ea8f78cbb4
[ "MIT" ]
null
null
null
rest_framework_helpers/fields/relation.py
Apkawa/django-rest-framework-helpers
f4b24bf326e081a215ca5c1c117441ea8f78cbb4
[ "MIT" ]
null
null
null
rest_framework_helpers/fields/relation.py
Apkawa/django-rest-framework-helpers
f4b24bf326e081a215ca5c1c117441ea8f78cbb4
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals from collections import OrderedDict import six from django.db.models import Model from rest_framework import serializers class SerializableRelationField(serializers.RelatedField): def __init__(self, serializer, serializer_function=None, *args, **kwargs): ...
30.088889
78
0.655096
149
1,354
5.778523
0.47651
0.097561
0.055749
0
0
0
0
0
0
0
0
0.001012
0.27031
1,354
44
79
30.772727
0.870445
0.080502
0
0
0
0
0
0
0
0
0
0
0
1
0.15625
false
0
0.15625
0.03125
0.5625
0
0
0
0
null
0
0
0
0
0
0
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
966b9c223ecd09480f1a0fd34d6be56ce22a2ada
11,772
py
Python
revisions/models.py
debrouwere/django-revisions
d5b95806c65e66a720a2d9ec2f5ffb16698d9275
[ "BSD-2-Clause-FreeBSD" ]
6
2015-11-05T11:48:46.000Z
2021-04-14T07:10:16.000Z
revisions/models.py
debrouwere/django-revisions
d5b95806c65e66a720a2d9ec2f5ffb16698d9275
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
revisions/models.py
debrouwere/django-revisions
d5b95806c65e66a720a2d9ec2f5ffb16698d9275
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-13T21:01:48.000Z
2019-02-13T21:01:48.000Z
# encoding: utf-8 import uuid import difflib from datetime import date from django.db import models from django.utils.translation import ugettext as _ from django.core.exceptions import ImproperlyConfigured, ValidationError from django.db import IntegrityError from django.contrib.contenttypes.models import ContentType...
39.503356
123
0.641777
1,462
11,772
5.015732
0.252394
0.032456
0.013364
0.012273
0.107187
0.046638
0.031638
0.024001
0.024001
0.024001
0
0.00129
0.275824
11,772
298
124
39.503356
0.858886
0.20897
0
0.217391
0
0
0.057645
0.003632
0
0
0
0
0
0
null
null
0
0.054348
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
966c228f07ae23bcd47d41a07f74a33292ad5f8f
1,260
py
Python
noir/templating.py
gi0baro/noir
b187922d4f6055dbcb745c5299db907aac574398
[ "BSD-3-Clause" ]
2
2021-06-10T13:09:27.000Z
2021-06-11T09:37:02.000Z
noir/templating.py
gi0baro/noir
b187922d4f6055dbcb745c5299db907aac574398
[ "BSD-3-Clause" ]
null
null
null
noir/templating.py
gi0baro/noir
b187922d4f6055dbcb745c5299db907aac574398
[ "BSD-3-Clause" ]
null
null
null
import json import os from typing import Any, Dict, Optional import tomlkit import yaml from renoir.apis import Renoir, ESCAPES, MODES from renoir.writers import Writer as _Writer from .utils import adict, obj_to_adict class Writer(_Writer): @staticmethod def _to_unicode(data): if data is None: ...
21.355932
80
0.666667
175
1,260
4.6
0.36
0.024845
0.024845
0.037267
0
0
0
0
0
0
0
0.001012
0.215873
1,260
58
81
21.724138
0.813765
0
0
0
0
0
0.010317
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0.078947
0.631579
0
0
0
0
null
0
0
0
0
0
0
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
96702b58ef9f60b2130e8a0e754ad89b97258e50
691
py
Python
mainapp/views.py
H0oxy/sportcars
dcd76736bfe88630b3ccce7e4ee0ad9398494f08
[ "MIT" ]
null
null
null
mainapp/views.py
H0oxy/sportcars
dcd76736bfe88630b3ccce7e4ee0ad9398494f08
[ "MIT" ]
null
null
null
mainapp/views.py
H0oxy/sportcars
dcd76736bfe88630b3ccce7e4ee0ad9398494f08
[ "MIT" ]
null
null
null
from django.views.generic import ListView from rest_framework.permissions import AllowAny from rest_framework.viewsets import ModelViewSet from mainapp.models import Manufacturer, Car from mainapp.serializers import ManufacturerSerializer, CarSerializer class ManufacturerList(ListView): model = Manufacturer cl...
25.592593
69
0.797395
70
691
7.785714
0.5
0.029358
0.062385
0
0
0
0
0
0
0
0
0
0.138929
691
26
70
26.576923
0.915966
0.053546
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3125
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9676900dd098082bdefdd8316547347e26bd4ef9
376
py
Python
panos/example_with_output_template/loader.py
nembery/Skillets
4c0a259d4fb49550605c5eb5316d83f109612271
[ "Apache-2.0" ]
1
2019-04-17T19:30:46.000Z
2019-04-17T19:30:46.000Z
panos/example_with_output_template/loader.py
nembery/Skillets
4c0a259d4fb49550605c5eb5316d83f109612271
[ "Apache-2.0" ]
null
null
null
panos/example_with_output_template/loader.py
nembery/Skillets
4c0a259d4fb49550605c5eb5316d83f109612271
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from skilletlib import SkilletLoader sl = SkilletLoader('.') skillet = sl.get_skillet_with_name('panos_cli_example') context = dict() context['cli_command'] = 'show system info' context['username'] = 'admin' context['password'] = 'NOPE' context['ip_address'] = 'NOPE' output = skillet.execute...
19.789474
55
0.723404
48
376
5.5
0.708333
0
0
0
0
0
0
0
0
0
0
0.002985
0.109043
376
18
56
20.888889
0.785075
0.055851
0
0
0
0
0.288952
0
0
0
0
0
0
1
0
false
0.1
0.1
0
0.1
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9677e8577eb71d6a56fc8178b8340df0cf85efc4
2,184
py
Python
setup.py
pletnes/cloud-pysec
4f91e3875ee36cb3e9b361e8b598070ce9523128
[ "Apache-2.0" ]
null
null
null
setup.py
pletnes/cloud-pysec
4f91e3875ee36cb3e9b361e8b598070ce9523128
[ "Apache-2.0" ]
null
null
null
setup.py
pletnes/cloud-pysec
4f91e3875ee36cb3e9b361e8b598070ce9523128
[ "Apache-2.0" ]
null
null
null
""" xssec setup """ import codecs from os import path from setuptools import setup, find_packages from sap.conf.config import USE_SAP_PY_JWT CURRENT_DIR = path.abspath(path.dirname(__file__)) README_LOCATION = path.join(CURRENT_DIR, 'README.md') VERSION = '' with open(path.join(CURRENT_DIR, 'version.txt'), 'r') as ve...
34.125
70
0.628663
256
2,184
5.183594
0.441406
0.14318
0.188395
0.097965
0
0
0
0
0
0
0
0.018757
0.218864
2,184
63
71
34.666667
0.759086
0.031136
0
0.035714
0
0
0.446183
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
96785881acee4c6b6e5fbf6dfa6bcd4a371b2db4
1,957
py
Python
mutators/implementations/mutation_change_proto.py
freingruber/JavaScript-Raider
d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0
[ "Apache-2.0" ]
91
2022-01-24T07:32:34.000Z
2022-03-31T23:37:15.000Z
mutators/implementations/mutation_change_proto.py
zeusguy/JavaScript-Raider
d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0
[ "Apache-2.0" ]
null
null
null
mutators/implementations/mutation_change_proto.py
zeusguy/JavaScript-Raider
d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0
[ "Apache-2.0" ]
11
2022-01-24T14:21:12.000Z
2022-03-31T23:37:23.000Z
# Copyright 2022 @ReneFreingruber # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
40.770833
131
0.772611
291
1,957
4.900344
0.412371
0.049088
0.078541
0.072931
0.051893
0.051893
0
0
0
0
0
0.005428
0.152785
1,957
47
132
41.638298
0.854644
0.442003
0
0
0
0
0.023364
0
0
0
0
0.021277
0
1
0.0625
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9679546d86fe3d9ab266b6fcd96932146df7b271
406
py
Python
hello.py
AaronTrip/cgi-lab
cc932dfe21c27f3ca054233fe5bc73783facee6b
[ "Apache-2.0" ]
null
null
null
hello.py
AaronTrip/cgi-lab
cc932dfe21c27f3ca054233fe5bc73783facee6b
[ "Apache-2.0" ]
null
null
null
hello.py
AaronTrip/cgi-lab
cc932dfe21c27f3ca054233fe5bc73783facee6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os, json print("Content-type: text/html\r\n\r\n") print() print("<Title>Test CGI</title>") print("<p>Hello World cmput404 class!<p/>") print(os.environ) json_object = json.dumps(dict(os.environ), indent = 4) print(json_object) '''for param in os.environ.keys(): if(param == "HTT...
18.454545
65
0.640394
65
406
3.938462
0.615385
0.140625
0
0
0
0
0
0
0
0
0
0.019943
0.135468
406
21
66
19.333333
0.709402
0.051724
0
0
0
0
0.360656
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.75
0
0
0
null
0
0
0
0
0
0
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
967f854c2cc3d7839a4210800ff6ac34aa126d0b
3,493
py
Python
tests/test_classes.py
fossabot/RPGenie
eb3ee17ede0dbbec787766d607b2f5b89d65533d
[ "MIT" ]
32
2017-09-03T21:14:17.000Z
2022-01-12T04:26:28.000Z
tests/test_classes.py
fossabot/RPGenie
eb3ee17ede0dbbec787766d607b2f5b89d65533d
[ "MIT" ]
9
2017-09-12T13:16:43.000Z
2022-01-19T18:53:48.000Z
tests/test_classes.py
fossabot/RPGenie
eb3ee17ede0dbbec787766d607b2f5b89d65533d
[ "MIT" ]
19
2017-10-12T03:14:54.000Z
2021-06-12T18:30:33.000Z
#! python3 """ Pytest-compatible tests for src/classes.py """ import sys from pathlib import Path from copy import deepcopy from unittest import mock # A workaround for tests not automatically setting # root/src/ as the current working directory path_to_src = Path(__file__).parent.parent / "src" sys.path.insert(0, ...
36.768421
203
0.678214
517
3,493
4.504836
0.261122
0.073422
0.030915
0.046372
0.291971
0.254186
0.173036
0.1155
0.069558
0
0
0.017043
0.176925
3,493
94
204
37.159574
0.793043
0.150014
0
0.118644
0
0.033898
0.208033
0.032612
0
0
0
0
0.474576
1
0.135593
false
0
0.101695
0
0.271186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
96856b2747e7c36d91fb23b1dc5b4f022aab0d68
17,925
py
Python
islecler.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
islecler.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
islecler.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
#----------------------------------# ######### ARİTMETİK İŞLEÇLER ####### #----------------------------------# # + toplama # - çıkarma # * çarpma # / bölme # ** kuvvet # % modülüs/kalan bulma # // taban bölme/ tam bölme #aritmetik işleçler sayısal işlemler yapmamızı sağlar print(45+57)#102 #yalnız + ve...
27.283105
108
0.699749
2,500
17,925
5.024
0.3216
0.008599
0.008917
0.004379
0.163933
0.100318
0.063694
0.057882
0.040287
0.035191
0
0.040388
0.16569
17,925
656
109
27.324695
0.796456
0.56357
0
0.204545
0
0
0.331825
0
0
0
0
0
0
1
0
false
0
0.007576
0
0.007576
0.484848
0
0
0
null
0
0
0
0
0
0
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
968998458ff06ecf90db3e1b78179a0db936b801
907
py
Python
leetcode/practise/59.py
Weis-98/learning_journey
2ef40880d4551d5d44fa71eff98eca98361022d0
[ "MIT" ]
null
null
null
leetcode/practise/59.py
Weis-98/learning_journey
2ef40880d4551d5d44fa71eff98eca98361022d0
[ "MIT" ]
null
null
null
leetcode/practise/59.py
Weis-98/learning_journey
2ef40880d4551d5d44fa71eff98eca98361022d0
[ "MIT" ]
null
null
null
class Solution: def generateMatrix(self, n): matrix = [] num = 1 for i in range(n): matrix.append([0 for i in range(n)]) top = 0 bottom = n - 1 left = 0 right = n - 1 while top <= bottom and left <= right: for i in range(left, r...
34.884615
79
0.406836
114
907
3.236842
0.210526
0.113821
0.065041
0.119241
0.341463
0.276423
0.276423
0.276423
0.173442
0
0
0.047109
0.485116
907
26
80
34.884615
0.743041
0
0
0.153846
1
0
0
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
968a32ab6cc052ecd19269370677c3356ed68536
1,028
py
Python
test_project/test_app/migrations/0002_auto_20180514_0720.py
iCHEF/queryfilter
0ae4faf525e162d2720d328b96fa179d68277f1e
[ "Apache-2.0" ]
4
2018-05-11T18:07:32.000Z
2019-07-30T13:38:49.000Z
test_project/test_app/migrations/0002_auto_20180514_0720.py
iCHEF/queryfilter
0ae4faf525e162d2720d328b96fa179d68277f1e
[ "Apache-2.0" ]
6
2018-02-26T04:46:36.000Z
2019-04-10T06:17:12.000Z
test_project/test_app/migrations/0002_auto_20180514_0720.py
iCHEF/queryfilter
0ae4faf525e162d2720d328b96fa179d68277f1e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-14 07:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('test_app', '0001_initial'), ] operations = [ migrations.AddField( ...
25.073171
50
0.535992
94
1,028
5.734043
0.5
0.083488
0.120594
0.157699
0.374768
0.374768
0.237477
0.237477
0.237477
0.237477
0
0.039706
0.338521
1,028
40
51
25.7
0.752941
0.067121
0
0.484848
1
0
0.0659
0
0
0
0
0
0
1
0
false
0
0.060606
0
0.151515
0
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
968afeca8b633bb5b9753043627e7d2f6a06eb50
360
py
Python
pdx-extract/tests/test_utils.py
michaelheyman/PSU-Code-Review
5a55d981425aaad69dc9ee06baaaef22bc426893
[ "MIT" ]
null
null
null
pdx-extract/tests/test_utils.py
michaelheyman/PSU-Code-Review
5a55d981425aaad69dc9ee06baaaef22bc426893
[ "MIT" ]
null
null
null
pdx-extract/tests/test_utils.py
michaelheyman/PSU-Code-Review
5a55d981425aaad69dc9ee06baaaef22bc426893
[ "MIT" ]
null
null
null
import unittest.mock as mock from app import utils @mock.patch("app.utils.get_current_timestamp") def test_generate_filename_generates_formatted_timestamp(mock_timestamp): mock_timestamp.return_value = 1_555_555_555.555_555 filename = utils.generate_filename() assert mock_timestamp.called is True a...
25.714286
73
0.802778
49
360
5.571429
0.55102
0.087912
0.098901
0.087912
0
0
0
0
0
0
0
0.095541
0.127778
360
13
74
27.692308
0.773885
0
0
0
1
0
0.138889
0.086111
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
968d107ac6d19ef65f3e2a523c368a10dd9ff203
8,243
py
Python
IzVerifier/test/test_izverifier.py
ahmedlawi92/IzVerifier
b367935f66810b4c4897cc860c5a3e2070f1890f
[ "MIT" ]
null
null
null
IzVerifier/test/test_izverifier.py
ahmedlawi92/IzVerifier
b367935f66810b4c4897cc860c5a3e2070f1890f
[ "MIT" ]
null
null
null
IzVerifier/test/test_izverifier.py
ahmedlawi92/IzVerifier
b367935f66810b4c4897cc860c5a3e2070f1890f
[ "MIT" ]
null
null
null
from IzVerifier.izspecs.containers.izclasses import IzClasses __author__ = 'fcanas' import unittest from IzVerifier.izspecs.containers.izconditions import IzConditions from IzVerifier.izspecs.containers.izstrings import IzStrings from IzVerifier.izspecs.containers.izvariables import IzVariables from IzVerifier.izver...
35.076596
123
0.605241
898
8,243
5.402004
0.201559
0.02886
0.020408
0.031746
0.297464
0.207586
0.148011
0.119975
0.048856
0.022263
0
0.010313
0.282421
8,243
234
124
35.226496
0.809806
0.027781
0
0.036496
0
0
0.205096
0.112364
0
0
0
0
0.20438
0
null
null
0.043796
0.051095
null
null
0.029197
0
0
0
null
0
0
0
0
0
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
969769f903879e83d04d75567c8891aa3f6d52df
726
py
Python
build_you/models/company.py
bostud/build_you
258a336a82a1da9efc102770f5d8bf83abc13379
[ "MIT" ]
null
null
null
build_you/models/company.py
bostud/build_you
258a336a82a1da9efc102770f5d8bf83abc13379
[ "MIT" ]
null
null
null
build_you/models/company.py
bostud/build_you
258a336a82a1da9efc102770f5d8bf83abc13379
[ "MIT" ]
null
null
null
import enum from sqlalchemy import Column, ForeignKey, String, JSON, Integer, Enum from sqlalchemy.orm import relationship from build_you.models.base import BaseModel from build_you.database import Base class Company(BaseModel, Base): __tablename__ = 'company' class Status(enum.Enum): ACTIVE = 1 ...
30.25
75
0.717631
87
726
5.873563
0.505747
0.031311
0.07045
0
0
0
0
0
0
0
0
0.010033
0.176309
726
23
76
31.565217
0.844482
0
0
0
0
0
0.061983
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.823529
0
0
0
0
null
0
0
0
0
0
0
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
969ab9ef2de1a8573dbf6d90268f74dbc9e16fef
29,479
py
Python
utilities/access_concatenate_daily.py
pizzathief/PyFluxPro
c075c0040b4a9d6c9ab75ca1cef158f1307f8396
[ "BSD-3-Clause" ]
1
2021-01-17T20:53:39.000Z
2021-01-17T20:53:39.000Z
utilities/access_concatenate_daily.py
pizzathief/PyFluxPro
c075c0040b4a9d6c9ab75ca1cef158f1307f8396
[ "BSD-3-Clause" ]
null
null
null
utilities/access_concatenate_daily.py
pizzathief/PyFluxPro
c075c0040b4a9d6c9ab75ca1cef158f1307f8396
[ "BSD-3-Clause" ]
null
null
null
""" Purpose: Reads the hourly ACCESS files pulled from the BoM OPeNDAP site and concatenates them into a single file. This script file takes a control file name on the command line. The control file lists the sites to be processed and the variables to be processed. Normal usage is to process all files in a monthl...
47.546774
132
0.641915
4,015
29,479
4.549689
0.12802
0.063229
0.013029
0.01489
0.516779
0.433514
0.37357
0.281491
0.235233
0.221602
0
0.032588
0.247396
29,479
619
133
47.623586
0.790769
0.15645
0
0.286316
0
0
0.106632
0.005424
0
0
0
0
0
0
null
null
0
0.031579
null
null
0.010526
0
0
0
null
0
0
0
0
0
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
969bbfec8ddf57f2a21ea2c8536548a16473aafe
2,771
py
Python
avem_theme/functions/sanitize.py
mverleg/django-boots-plain-theme
2355270293ddb3db4762470a43c72311bf11be07
[ "BSD-3-Clause" ]
null
null
null
avem_theme/functions/sanitize.py
mverleg/django-boots-plain-theme
2355270293ddb3db4762470a43c72311bf11be07
[ "BSD-3-Clause" ]
null
null
null
avem_theme/functions/sanitize.py
mverleg/django-boots-plain-theme
2355270293ddb3db4762470a43c72311bf11be07
[ "BSD-3-Clause" ]
null
null
null
try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from django.conf import settings DEFAULT_NOSCR_ALLOWED_TAGS = 'strong:title b i em:title p:title h1:title h2:title h3:title h4:title h5:title ' + \ 'div:title span:title ol ul li:title a:href:title:rel img:src:alt:title dl td...
37.958904
114
0.714904
411
2,771
4.761557
0.489051
0.06745
0.026571
0.023505
0.019417
0
0
0
0
0
0
0.00994
0.164922
2,771
72
115
38.486111
0.835782
0.320823
0
0.137931
0
0.068966
0.239921
0.03503
0
0
0
0.013889
0
1
0.034483
false
0
0.241379
0
0.310345
0
0
0
0
null
0
0
0
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
969ea553ff4cdd6978d9da12725a1d04afc89e38
354
py
Python
tests/i18n/patterns/urls/wrong_namespace.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/i18n/patterns/urls/wrong_namespace.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/i18n/patterns/urls/wrong_namespace.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from django.conf.urls.i18n import i18n_patterns from django.utils.translation import gettext_lazy as _ from django.views.generic import TemplateView view = TemplateView.as_view(template_name='dummy.html') app_name = 'account' urlpatterns = i18n_patterns( url(_(r'^register...
29.5
56
0.757062
48
354
5.416667
0.541667
0.153846
0.107692
0.138462
0
0
0
0
0
0
0
0.019608
0.135593
354
11
57
32.181818
0.830065
0
0
0
0
0
0.104956
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
96a94e5f66df21e992b1df975469b8edd292ca16
3,285
py
Python
ffttest.py
teslaworksumn/Reactor
ba6d2d80bd606047e81a5e1ccc0f1af26497feb7
[ "MIT" ]
null
null
null
ffttest.py
teslaworksumn/Reactor
ba6d2d80bd606047e81a5e1ccc0f1af26497feb7
[ "MIT" ]
null
null
null
ffttest.py
teslaworksumn/Reactor
ba6d2d80bd606047e81a5e1ccc0f1af26497feb7
[ "MIT" ]
null
null
null
# From http://julip.co/2012/05/arduino-python-soundlight-spectrum/ # Python 2.7 code to analyze sound and interface with Arduino import pyaudio # from http://people.csail.mit.edu/hubert/pyaudio/ import serial # from http://pyserial.sourceforge.net/ import numpy # from http://numpy.scipy.org/ import audioop import ...
28.076923
128
0.578082
436
3,285
4.302752
0.46789
0.017058
0.017591
0.025586
0.036247
0
0
0
0
0
0
0.0407
0.304414
3,285
116
129
28.318966
0.780306
0.264536
0
0.028986
0
0
0.037805
0
0
0
0
0
0
0
null
null
0.014493
0.101449
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
96ab9f2c7f20292bca2815ee86e2e792b39a18da
1,412
py
Python
mouse.py
Ra-Na/android-mouse-cursor
b9f0a8394871cb17a2d6ec1a0cc2548b86990ce0
[ "MIT" ]
7
2019-12-05T13:34:37.000Z
2022-01-15T09:58:11.000Z
mouse.py
Ra-Na/android-mouse-cursor
b9f0a8394871cb17a2d6ec1a0cc2548b86990ce0
[ "MIT" ]
null
null
null
mouse.py
Ra-Na/android-mouse-cursor
b9f0a8394871cb17a2d6ec1a0cc2548b86990ce0
[ "MIT" ]
5
2019-07-27T02:28:04.000Z
2022-02-14T15:10:25.000Z
import socket def getch(): # define non-Windows version import sys, tty, termios fd = sys.stdin.fileno() old_settings = termios.tcgetattr(fd) try: tty.setraw(sys.stdin.fileno()) ch = sys.stdin.read(1) finally: termios.tcsetattr(fd, termios.TCSADRAIN, old_settings) ret...
25.214286
62
0.576487
198
1,412
4.010101
0.474747
0.044081
0.050378
0.075567
0.221662
0.095718
0
0
0
0
0
0.051793
0.288952
1,412
55
63
25.672727
0.739044
0.228045
0
0
0
0
0.121241
0.033835
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.171429
0
0
0
null
0
0
0
0
0
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
96aeee51e8b4208d515dafe2237e76a19c17dd76
895
py
Python
players/human.py
pikatyuu/deep-learning-othello
d9f149b01f079f5d021ba9655445cd43a847a628
[ "MIT" ]
null
null
null
players/human.py
pikatyuu/deep-learning-othello
d9f149b01f079f5d021ba9655445cd43a847a628
[ "MIT" ]
null
null
null
players/human.py
pikatyuu/deep-learning-othello
d9f149b01f079f5d021ba9655445cd43a847a628
[ "MIT" ]
null
null
null
class Human(): def __init__(self, name="Human"): self.name = name def action(self, game): safe_input = False while not safe_input: pos = input("choose a position: ") if pos == "draw": game.draw() elif pos == "exit": imp...
27.96875
59
0.444693
94
895
4.117021
0.478723
0.069767
0.072351
0
0
0
0
0
0
0
0
0.00202
0.446927
895
31
60
28.870968
0.779798
0
0
0.142857
0
0
0.099441
0
0
0
0
0
0
1
0.142857
false
0.071429
0.035714
0
0.25
0.107143
0
0
0
null
0
0
0
0
0
0
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
96b02e8ac66ecd2c65e6e010e248801adc096f97
497
py
Python
clase6/clases.py
Tank3-TK3/codigo-basico-Python
580e8d284fa8a4d70b2a264762c91bd64c89ab80
[ "MIT" ]
7
2021-04-19T01:32:49.000Z
2021-06-04T17:38:04.000Z
clase6/clases.py
Tank3-TK3/codigo-basico-Python
580e8d284fa8a4d70b2a264762c91bd64c89ab80
[ "MIT" ]
null
null
null
clase6/clases.py
Tank3-TK3/codigo-basico-Python
580e8d284fa8a4d70b2a264762c91bd64c89ab80
[ "MIT" ]
null
null
null
class Animals: def comer(self): print("Comiendo") def dormir(self): print("Durmiendo") class Perro: def __init__(self, nombre): self.nombre = nombre def comer(self): print("Comiendo") def dormir(self): print("Durmiendo") def ladrar(self): print("Ladrando") print("----------------------...
23.666667
60
0.525151
47
497
5.468085
0.319149
0.175097
0.093385
0.132296
0.404669
0.404669
0.404669
0.404669
0.404669
0.404669
0
0
0.142857
497
21
61
23.666667
0.603286
0
0
0.5
0
0
0.313808
0.209205
0
0
0
0
0
1
0.3
false
0
0
0
0.4
0.35
0
0
0
null
0
0
0
0
0
0
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
96b0583a014d7b5a8ac9ea17b0f8eea2bc40f0eb
3,103
py
Python
homeworks_advanced/homework2_attention_in_seq2seq/modules.py
BiscuitsLayer/ml-mipt
24917705189d2eb97a07132405b4f93654cb1aaf
[ "MIT" ]
1
2021-08-01T11:29:11.000Z
2021-08-01T11:29:11.000Z
homeworks_advanced/homework2_attention_in_seq2seq/modules.py
ivasio/ml-mipt
9c8896b4dfe46ee02bc5fdbca47acffbeca6828e
[ "MIT" ]
null
null
null
homeworks_advanced/homework2_attention_in_seq2seq/modules.py
ivasio/ml-mipt
9c8896b4dfe46ee02bc5fdbca47acffbeca6828e
[ "MIT" ]
null
null
null
import random import torch from torch import nn from torch.nn import functional as F class Encoder(nn.Module): def __init__(self, input_dim, emb_dim, hid_dim, n_layers, dropout): super().__init__() self.input_dim = input_dim self.emb_dim = emb_dim self.hid_dim = hid_dim se...
29.836538
92
0.638737
431
3,103
4.348028
0.241299
0.057631
0.033618
0.032017
0.211313
0.151547
0.078975
0.051227
0.051227
0.051227
0
0.00707
0.270706
3,103
103
93
30.126214
0.821034
0.162101
0
0.163934
0
0
0.021268
0
0
0
0
0.009709
0.016393
0
null
null
0
0.065574
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
96b8879f01bcc6f2a6fb4f8f1c990b4167027165
5,377
py
Python
mgs/v1.0/data_server.py
vt-rocksat-2017/dashboard
e99a71edc74dd8b7f3eec023c381524561a7b6e4
[ "MIT" ]
1
2017-08-09T19:57:38.000Z
2017-08-09T19:57:38.000Z
mgs/v1.0/data_server.py
vt-rocksat-2017/dashboard
e99a71edc74dd8b7f3eec023c381524561a7b6e4
[ "MIT" ]
null
null
null
mgs/v1.0/data_server.py
vt-rocksat-2017/dashboard
e99a71edc74dd8b7f3eec023c381524561a7b6e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ######################################### # Title: Rocksat Data Server Class # # Project: Rocksat # # Version: 1.0 # # Date: August, 2017 # # Author: Zach Leffke, KJ4QLP # # Comment: Initial Version # ###...
38.407143
109
0.565929
674
5,377
4.330861
0.255193
0.024666
0.024666
0.028777
0.292566
0.272011
0.272011
0.272011
0.272011
0.217883
0
0.012362
0.307978
5,377
139
110
38.683453
0.772104
0.109169
0
0.212963
0
0
0.065343
0
0
0
0
0
0
0
null
null
0.009259
0.092593
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
96b9956367c551043c19348764e4606177dd4559
555
py
Python
day01/python/beckel/solution.py
clssn/aoc-2019
a978e5235855be937e60a1e7f88d1ef9b541be15
[ "MIT" ]
22
2019-11-27T08:28:46.000Z
2021-04-27T05:37:08.000Z
day01/python/wiedmann/solution.py
sancho1241/aoc-2019
e0f63824c8250e0f84a42805e1a7ff7d9232002c
[ "MIT" ]
77
2019-11-16T17:22:42.000Z
2021-05-10T20:36:36.000Z
day01/python/wiedmann/solution.py
sancho1241/aoc-2019
e0f63824c8250e0f84a42805e1a7ff7d9232002c
[ "MIT" ]
43
2019-11-27T06:36:51.000Z
2021-11-03T20:56:48.000Z
import math def fuel_needed(mass): return math.floor(int(mass)/3 - 2) def fuel_needed_recursive(mass): fuel_needed_i = fuel_needed(mass) if (fuel_needed_i <= 0): return 0 return fuel_needed_i + fuel_needed_recursive(fuel_needed_i) total_fuel = 0 total_fuel_recursive = 0 with open("input.txt"...
25.227273
63
0.704505
85
555
4.294118
0.329412
0.273973
0.120548
0.082192
0.115068
0
0
0
0
0
0
0.013304
0.187387
555
21
64
26.428571
0.796009
0
0
0
0
0
0.079279
0
0
0
0
0
0
1
0.125
false
0
0.0625
0.0625
0.375
0.125
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
96bee57e7d78263abb2c0dde497d36d9e3def948
1,364
py
Python
generated-libraries/python/netapp/vserver/vserver_aggr_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/vserver/vserver_aggr_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/vserver/vserver_aggr_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class VserverAggrInfo(NetAppObject): """ Assigned aggregate name and available size. """ _aggr_availsize = None @property def aggr_availsize(self): """ Assigned aggregate available size. Attributes: non-creatable, non-mo...
26.230769
91
0.577713
137
1,364
5.532847
0.321168
0.154354
0.055409
0.050132
0.155673
0.084433
0.084433
0.084433
0
0
0
0
0.317449
1,364
51
92
26.745098
0.814178
0.134164
0
0.176471
0
0
0.12874
0
0
0
0
0
0
1
0.205882
false
0
0.029412
0.088235
0.470588
0
0
0
0
null
0
0
0
0
0
0
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
736b9802fb2c5a179b409bf71bdd9ff72225db52
998
py
Python
13. REST API using OpenAPI, Flask & Connexions/source_code/test-api/src/test_api/core/pets.py
Edmartt/articles
93d62086ff141f5646193afb868973e94f33f1e6
[ "MIT" ]
31
2020-03-01T20:27:03.000Z
2022-02-15T14:53:09.000Z
13. REST API using OpenAPI, Flask & Connexions/source_code/test-api/src/test_api/core/pets.py
hmajid2301/articles
27f38cc6c2dd470d879b30d54d1e804a7d76caab
[ "MIT" ]
24
2020-04-04T12:18:25.000Z
2022-03-29T08:41:57.000Z
13. REST API using OpenAPI, Flask & Connexions/source_code/test-api/src/test_api/core/pets.py
Edmartt/articles
93d62086ff141f5646193afb868973e94f33f1e6
[ "MIT" ]
52
2020-02-29T04:01:10.000Z
2022-03-11T07:54:16.000Z
import json def get_all_pets(): pets = read_from_file() pets_in_store = [] for k, v in pets.items(): current_pet = {"id": k, **v} pets_in_store.append(current_pet) return pets def remove_pet(id): pets = read_from_file() del pets[id] write_to_file(pets) def update_pet(i...
19.96
77
0.603206
156
998
3.641026
0.269231
0.084507
0.126761
0.140845
0.411972
0.380282
0.306338
0.306338
0.200704
0.200704
0
0.002625
0.236473
998
49
78
20.367347
0.742782
0
0
0.294118
0
0
0.056112
0
0
0
0
0
0
1
0.205882
false
0
0.029412
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
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
736ef7d551671fb41b699b2055b5a873b3f9d021
13,229
py
Python
IBMWatson_Examples/WatsonNLU.py
sptennak/TextAnalytics
dde30337dc4d769ce7fb31b6f3021721bcd0b056
[ "Apache-2.0" ]
4
2018-07-11T06:58:53.000Z
2020-09-06T13:17:54.000Z
IBMWatson_Examples/WatsonNLU.py
sptennak/TextAnalytics
dde30337dc4d769ce7fb31b6f3021721bcd0b056
[ "Apache-2.0" ]
null
null
null
IBMWatson_Examples/WatsonNLU.py
sptennak/TextAnalytics
dde30337dc4d769ce7fb31b6f3021721bcd0b056
[ "Apache-2.0" ]
1
2020-09-06T13:18:00.000Z
2020-09-06T13:18:00.000Z
# -*- coding: utf-8 -*- """ Created on Fri May 18 22:15:35 2018 @author: Sumudu Tennakoon References: [1] https://www.ibm.com/watson/developercloud/natural-language-understanding/api/v1/ """ from watson_developer_cloud import NaturalLanguageUnderstandingV1, WatsonException, WatsonApiException from watson_developer_cl...
45.150171
205
0.595434
1,391
13,229
5.59238
0.196981
0.016197
0.016712
0.020697
0.423191
0.310066
0.242448
0.213266
0.160818
0.150791
0
0.016349
0.246353
13,229
292
206
45.304795
0.763892
0.079447
0
0.24
0
0
0.097776
0.004277
0
0
0
0
0
1
0.044444
false
0.071111
0.053333
0
0.115556
0.031111
0
0
0
null
0
0
0
0
0
0
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
737c8fcb95ea540c79cfba48d2fa31a9bd9f57a9
1,227
py
Python
src/main/fileextractors/fileextractor.py
michael-stanin/Subtitles-Distributor
e4638d952235f96276729239596dc31d9ccc2ee1
[ "MIT" ]
1
2017-06-03T19:42:05.000Z
2017-06-03T19:42:05.000Z
src/main/fileextractors/fileextractor.py
michael-stanin/Subtitles-Distributor
e4638d952235f96276729239596dc31d9ccc2ee1
[ "MIT" ]
null
null
null
src/main/fileextractors/fileextractor.py
michael-stanin/Subtitles-Distributor
e4638d952235f96276729239596dc31d9ccc2ee1
[ "MIT" ]
null
null
null
import logging from main.fileextractors.compressedfile import get_compressed_file from main.utilities.fileutils import dir_path from main.utilities.subtitlesadjuster import ArchiveAdjuster class FileExtractor: def __init__(self, subname, movfile): self.sn, self.mn = subname, movfile self.subzip = ...
35.057143
111
0.673187
155
1,227
5.122581
0.374194
0.037783
0.037783
0.049118
0.164987
0.125945
0.050378
0
0
0
0
0
0.231459
1,227
34
112
36.088235
0.841994
0
0
0.071429
0
0
0.07172
0
0
0
0
0
0
1
0.178571
false
0
0.142857
0.035714
0.535714
0
0
0
0
null
0
0
0
0
0
0
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
7382da4a97a03a9bab8ad1771db18f2352be8d95
5,518
py
Python
SDis_Self-Training/plotting/createScatterPlot.py
mgeorgati/DasymetricMapping
d87b97a076cca3e03286c6b27b118904e03315c0
[ "BSD-3-Clause" ]
null
null
null
SDis_Self-Training/plotting/createScatterPlot.py
mgeorgati/DasymetricMapping
d87b97a076cca3e03286c6b27b118904e03315c0
[ "BSD-3-Clause" ]
null
null
null
SDis_Self-Training/plotting/createScatterPlot.py
mgeorgati/DasymetricMapping
d87b97a076cca3e03286c6b27b118904e03315c0
[ "BSD-3-Clause" ]
null
null
null
import sys, os, seaborn as sns, rasterio, pandas as pd import numpy as np import matplotlib.pyplot as plt sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from config.definitions import ROOT_DIR, ancillary_path, city,year attr_value ="totalpop" gtP = ROOT_DIR + "/Evaluation/{0}_groundT...
66.481928
237
0.702791
826
5,518
4.33293
0.223971
0.048896
0.113998
0.120704
0.659681
0.633697
0.624756
0.623079
0.623079
0.613859
0
0.098313
0.129938
5,518
82
238
67.292683
0.647157
0.156941
0
0.135593
0
0.152542
0.430882
0.377615
0
0
0
0
0
1
0.016949
false
0
0.067797
0
0.084746
0.067797
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
7393a024a0f2a49dd9e4ca3dcf823461e29e512f
885
py
Python
controllers/editor.py
matumaros/BomberApe
d71616192fd54d9a595261c258e4c7367d2eac5d
[ "Apache-2.0" ]
null
null
null
controllers/editor.py
matumaros/BomberApe
d71616192fd54d9a595261c258e4c7367d2eac5d
[ "Apache-2.0" ]
null
null
null
controllers/editor.py
matumaros/BomberApe
d71616192fd54d9a595261c258e4c7367d2eac5d
[ "Apache-2.0" ]
null
null
null
from models.tilemap import TileMap class EditorController: def __init__(self, view): self.view = view self.tilemap = TileMap() def place_tile(self, coord, ttype): self.tilemap.add_tile(coord, ttype) self.view.board.update_tiles({coord: ttype}) def place_spawn(self, coor...
26.029412
58
0.632768
111
885
4.900901
0.297297
0.141544
0.095588
0.139706
0.180147
0
0
0
0
0
0
0
0.239548
885
33
59
26.818182
0.808321
0
0
0
0
0
0.028313
0
0
0
0
0
0
1
0.25
false
0
0.041667
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
739ba1a424b3444916622cc94f3e8ea065012ebc
13,648
py
Python
perma_web/perma/forms.py
leppert/perma
adb0cec29679c3d161d72330e19114f89f8c42ac
[ "MIT", "Unlicense" ]
null
null
null
perma_web/perma/forms.py
leppert/perma
adb0cec29679c3d161d72330e19114f89f8c42ac
[ "MIT", "Unlicense" ]
null
null
null
perma_web/perma/forms.py
leppert/perma
adb0cec29679c3d161d72330e19114f89f8c42ac
[ "MIT", "Unlicense" ]
null
null
null
import logging from django import forms from django.forms import ModelForm from django.forms.widgets import flatatt from django.utils.html import mark_safe from perma.models import Registrar, Organization, LinkUser logger = logging.getLogger(__name__) class RegistrarForm(ModelForm): class Meta: model = ...
31.81352
158
0.656726
1,502
13,648
5.803595
0.150466
0.035333
0.027303
0.035333
0.605369
0.561661
0.542847
0.513135
0.499943
0.499254
0
0.002029
0.241574
13,648
428
159
31.88785
0.840112
0.156433
0
0.50655
0
0
0.118261
0.007854
0
0
0
0.002336
0
1
0.069869
false
0.065502
0.026201
0
0.406114
0
0
0
0
null
0
0
0
0
0
0
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
739baac2ff5ef50ecd5e6693fbb6afb0bb494d6a
5,403
py
Python
samples/sample-2.py
shoriwe/LVaED
68ca38eed2b4c2b1b7a6a8304c8effbcf2f977f7
[ "MIT" ]
null
null
null
samples/sample-2.py
shoriwe/LVaED
68ca38eed2b4c2b1b7a6a8304c8effbcf2f977f7
[ "MIT" ]
19
2021-02-08T22:14:16.000Z
2021-03-03T15:13:07.000Z
samples/sample-2.py
shoriwe/LVaED
68ca38eed2b4c2b1b7a6a8304c8effbcf2f977f7
[ "MIT" ]
3
2021-08-30T01:06:32.000Z
2022-02-21T03:22:28.000Z
import io import os import re import zipfile import flask import markdown import blueprints.example import blueprints.home import blueprints.presentation import blueprints.transformations class Zipper(object): def __init__(self): self._content = None self._content_handler = io.BytesIO() def append(self, file...
37.006849
108
0.760689
727
5,403
5.361761
0.155433
0.103386
0.161621
0.200872
0.535403
0.482299
0.426886
0.368138
0.368138
0.172653
0
0.00306
0.092726
5,403
145
109
37.262069
0.792126
0
0
0.033898
0
0
0.318897
0.212475
0
0
0
0
0
1
0.101695
false
0
0.084746
0.008475
0.237288
0.067797
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
739ceade8d1851b8f8c7cabe7fe9035c80fe7143
9,388
py
Python
django-openstack/django_openstack/syspanel/views/instances.py
tylesmit/openstack-dashboard
8199011a98aa8bc5672e977db014f61eccc4668c
[ "Apache-2.0" ]
2
2015-05-18T13:50:23.000Z
2015-05-18T14:47:08.000Z
django-openstack/django_openstack/syspanel/views/instances.py
tylesmit/openstack-dashboard
8199011a98aa8bc5672e977db014f61eccc4668c
[ "Apache-2.0" ]
null
null
null
django-openstack/django_openstack/syspanel/views/instances.py
tylesmit/openstack-dashboard
8199011a98aa8bc5672e977db014f61eccc4668c
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 Fourth Paradigm Development, Inc. # # Licensed under the Apache License, Version 2.0 (the "Licen...
36.96063
101
0.659139
1,161
9,388
5.101637
0.226529
0.025832
0.024312
0.028364
0.440655
0.406044
0.381901
0.371096
0.303562
0.263042
0
0.009819
0.251491
9,388
253
102
37.106719
0.833072
0.14444
0
0.370166
0
0
0.145214
0.030992
0
0
0
0.003953
0
0
null
null
0
0.071823
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
739eb239f78d72920cbdfea243f1d357367bd4a8
2,187
py
Python
ddcz/migrations/0010_creativepage_creativepageconcept_creativepagesection.py
Nathaka/graveyard
dcc5ba2fa1679318e65c0078f734cbfeeb287c32
[ "MIT" ]
6
2018-06-10T09:47:50.000Z
2022-02-13T12:22:07.000Z
ddcz/migrations/0010_creativepage_creativepageconcept_creativepagesection.py
Nathaka/graveyard
dcc5ba2fa1679318e65c0078f734cbfeeb287c32
[ "MIT" ]
268
2018-05-30T21:54:50.000Z
2022-01-08T21:00:03.000Z
ddcz/migrations/0010_creativepage_creativepageconcept_creativepagesection.py
jimmeak/graveyard
4c0f9d5e8b6c965171d9dc228c765b662f5b7ab4
[ "MIT" ]
4
2018-09-14T03:50:08.000Z
2021-04-19T19:36:23.000Z
# Generated by Django 2.0.2 on 2018-06-13 22:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("ddcz", "0009_auto_201806...
30.375
68
0.40695
150
2,187
5.786667
0.413333
0.051843
0.050691
0.079493
0.41129
0.41129
0.41129
0.41129
0.41129
0.41129
0
0.037239
0.496571
2,187
71
69
30.802817
0.751135
0.020576
0
0.646154
1
0
0.065888
0.010748
0
0
0
0
0
1
0
false
0
0.046154
0
0.092308
0
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
73a022545603af3f26c0bf2eec8dadb8c4ffd178
2,693
py
Python
glue/viewers/matplotlib/qt/toolbar.py
tiagopereira/glue
85bf7ce2d252d7bc405e8160b56fc83d46b9cbe4
[ "BSD-3-Clause" ]
1
2019-12-17T07:58:35.000Z
2019-12-17T07:58:35.000Z
glue/viewers/matplotlib/qt/toolbar.py
scalet98/glue
ff949ad52e205c20561f48c05f870b2abb39e0b0
[ "BSD-3-Clause" ]
null
null
null
glue/viewers/matplotlib/qt/toolbar.py
scalet98/glue
ff949ad52e205c20561f48c05f870b2abb39e0b0
[ "BSD-3-Clause" ]
1
2019-08-04T14:10:12.000Z
2019-08-04T14:10:12.000Z
from __future__ import absolute_import, division, print_function from matplotlib.backends.backend_qt5 import NavigationToolbar2QT from glue.config import viewer_tool from glue.viewers.common.tool import CheckableTool, Tool __all__ = ['MatplotlibTool', 'MatplotlibCheckableTool', 'HomeTool', 'SaveTool', 'P...
24.935185
88
0.678797
329
2,693
5.25228
0.279635
0.069444
0.097222
0.074074
0.292824
0.241319
0.211227
0.157407
0.157407
0.157407
0
0.001418
0.214259
2,693
107
89
25.168224
0.815217
0.02228
0
0.333333
0
0
0.121247
0.008742
0
0
0
0
0
1
0.166667
false
0
0.055556
0
0.569444
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
73a9012563f8e544e446267b12c23f24456df159
1,563
py
Python
peeldb/migrations/0033_auto_20171018_1423.py
ashwin31/opensource-job-portal
2885ea52f8660e893fe0531c986e3bee33d986a2
[ "MIT" ]
1
2021-09-27T05:01:39.000Z
2021-09-27T05:01:39.000Z
peeldb/migrations/0033_auto_20171018_1423.py
kiran1415/opensource-job-portal
2885ea52f8660e893fe0531c986e3bee33d986a2
[ "MIT" ]
null
null
null
peeldb/migrations/0033_auto_20171018_1423.py
kiran1415/opensource-job-portal
2885ea52f8660e893fe0531c986e3bee33d986a2
[ "MIT" ]
1
2022-01-05T09:02:32.000Z
2022-01-05T09:02:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-10-18 14:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('peeldb', '0032_skill_skill_type'), ] operations = [ migrations.AlterField( ...
40.076923
130
0.435061
124
1,563
5.346774
0.467742
0.048265
0.113122
0.131222
0.435897
0.38914
0.295626
0.295626
0.295626
0.295626
0
0.030067
0.425464
1,563
38
131
41.131579
0.708241
0.043506
0
0.451613
1
0
0.185657
0.014075
0
0
0
0
0
1
0
false
0
0.064516
0
0.16129
0
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
73aaee020a07b3d8d2a092fd658dc4eb59eaed84
878
py
Python
setup.py
harsh020/synthetic_metric
acecba0150a37c58613a477918ad407373c4cd5c
[ "MIT" ]
1
2021-11-08T09:19:02.000Z
2021-11-08T09:19:02.000Z
setup.py
harsh020/synthetic_metric
acecba0150a37c58613a477918ad407373c4cd5c
[ "MIT" ]
2
2021-10-14T11:30:21.000Z
2021-10-14T11:55:50.000Z
setup.py
harsh020/synthetic_metric
acecba0150a37c58613a477918ad407373c4cd5c
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="synmetric", version="0.2.dev1", license='MIT', author="Harsh Soni", author_email="author@example.com", description="Metric to evaluate data quality for synthetic data.", url="https://github.com/harsh020/synthetic_metric", download_url = 'https:...
28.322581
90
0.624146
93
878
5.784946
0.688172
0.061338
0.078067
0.122677
0.217472
0.217472
0.148699
0
0
0
0
0.028065
0.228929
878
30
91
29.266667
0.766617
0
0
0
0
0
0.505695
0
0
0
0
0
0
1
0
true
0
0.035714
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
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
73ac5bc20db43b168b228169be2bbfd420f16a64
2,184
py
Python
notario/tests/validators/test_hybrid.py
alfredodeza/notario
036bdc8435778c6f20f059d3789c8eb8242cff92
[ "MIT" ]
4
2015-08-20T20:14:55.000Z
2018-06-01T14:39:29.000Z
notario/tests/validators/test_hybrid.py
alfredodeza/notario
036bdc8435778c6f20f059d3789c8eb8242cff92
[ "MIT" ]
9
2016-02-04T21:46:12.000Z
2018-11-14T04:43:10.000Z
notario/tests/validators/test_hybrid.py
alfredodeza/notario
036bdc8435778c6f20f059d3789c8eb8242cff92
[ "MIT" ]
4
2015-04-29T20:40:12.000Z
2018-11-14T04:08:20.000Z
from pytest import raises from notario.validators import Hybrid from notario.exceptions import Invalid from notario.decorators import optional from notario import validate def validator(x): assert x, 'fail' class TestHybrid(object): def test_use_validator_passes(self): schema = () hybrid = ...
29.513514
68
0.588828
275
2,184
4.589091
0.207273
0.044374
0.031696
0.085578
0.451664
0.451664
0.374802
0.3542
0.3542
0.264659
0
0.020658
0.290751
2,184
73
69
29.917808
0.794061
0
0
0.457627
0
0
0.07326
0
0
0
0
0
0.169492
1
0.152542
false
0.084746
0.084746
0
0.271186
0
0
0
0
null
0
0
0
0
0
0
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
73ad356948f61ca0a0905878d21b428c799f6aa2
380
py
Python
watch/migrations/0014_auto_20201101_2304.py
msyoki/Neighborhood
d7eb55ba7772388850d8bcf04a867aba3fa81665
[ "Unlicense" ]
null
null
null
watch/migrations/0014_auto_20201101_2304.py
msyoki/Neighborhood
d7eb55ba7772388850d8bcf04a867aba3fa81665
[ "Unlicense" ]
null
null
null
watch/migrations/0014_auto_20201101_2304.py
msyoki/Neighborhood
d7eb55ba7772388850d8bcf04a867aba3fa81665
[ "Unlicense" ]
1
2021-02-08T10:27:06.000Z
2021-02-08T10:27:06.000Z
# Generated by Django 2.0.2 on 2020-11-01 20:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('watch', '0013_alert'), ] operations = [ migrations.AlterField( model_name='alert', name='news', field=mo...
20
62
0.584211
42
380
5.214286
0.809524
0
0
0
0
0
0
0
0
0
0
0.08209
0.294737
380
18
63
21.111111
0.735075
0.118421
0
0
1
0
0.072072
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
73b2b67943acda046ca7c7f56efd2e03603a7e68
4,140
py
Python
tests/test_client.py
KazkiMatz/py-googletrans
c1d6d5d27c7386c2a1aa6c78dfe376dbb910f7a5
[ "MIT" ]
null
null
null
tests/test_client.py
KazkiMatz/py-googletrans
c1d6d5d27c7386c2a1aa6c78dfe376dbb910f7a5
[ "MIT" ]
1
2020-11-28T18:53:18.000Z
2020-11-28T18:53:18.000Z
tests/test_client.py
TashinAhmed/googletrans
9c0014cdcdc22e1f146624279f8dd69c3c62e385
[ "MIT" ]
null
null
null
from httpcore import TimeoutException from httpcore._exceptions import ConnectError from httpx import Timeout, Client, ConnectTimeout from unittest.mock import patch from pytest import raises from googletrans import Translator def test_bind_multiple_service_urls(): service_urls = [ 'translate.google.com'...
25.714286
73
0.68913
508
4,140
5.474409
0.257874
0.052859
0.107875
0.113269
0.381517
0.24991
0.237325
0.143114
0.107156
0.107156
0
0.006719
0.173188
4,140
160
74
25.875
0.804557
0.011594
0
0.151515
0
0
0.096577
0.011247
0
0
0
0
0.272727
1
0.222222
false
0
0.060606
0
0.292929
0
0
0
0
null
0
0
0
0
0
0
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
73b325d3f7c7dfbcd48251ddfe6b8d3299767cb6
540
py
Python
src/python/pants/backend/codegen/avro/avro_subsystem.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/avro/avro_subsystem.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
22
2022-01-27T09:59:50.000Z
2022-03-30T07:06:49.000Z
src/python/pants/backend/codegen/avro/avro_subsystem.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from pants.option.option_types import BoolOption from pants.option.subsystem import Subsystem class AvroSubsystem(Subsystem): options_scope = "avr...
27
75
0.709259
64
540
5.875
0.65625
0.047872
0.079787
0
0
0
0
0
0
0
0
0.013953
0.203704
540
19
76
28.421053
0.860465
0.233333
0
0
0
0
0.245742
0
0
0
0
0
0
1
0
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
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