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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90cddf62ebd3ea49e8e364632b7cd590198621a8 | 2,397 | py | Python | py/old.py | timm/misc | 2326989a8b8599283f8f16a6b8595d916850e392 | [
"BSD-2-Clause"
] | null | null | null | py/old.py | timm/misc | 2326989a8b8599283f8f16a6b8595d916850e392 | [
"BSD-2-Clause"
] | null | null | null | py/old.py | timm/misc | 2326989a8b8599283f8f16a6b8595d916850e392 | [
"BSD-2-Clause"
] | 1 | 2019-04-17T02:21:40.000Z | 2019-04-17T02:21:40.000Z | def mu(i, lo=0, hi=None):
hi = hi or len(i.has)
return sum([i.x(i.has[j]) for j in range(lo, hi)]) / (hi - lo)
class Some(o):
"Collect some examples, not all."
hi = 256 # max number of items to collect
def __init__(i, pos=0, txt=" ", inits=[]):
i.pos, i.txt, i.n, i._all, i.sorted = pos, txt, 0, [], Fa... | 26.932584 | 70 | 0.493951 | 451 | 2,397 | 2.587583 | 0.279379 | 0.037704 | 0.027421 | 0.025707 | 0.071979 | 0.041131 | 0 | 0 | 0 | 0 | 0 | 0.088548 | 0.293283 | 2,397 | 88 | 71 | 27.238636 | 0.600354 | 0.057572 | 0 | 0 | 0 | 0 | 0.013992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202899 | false | 0 | 0 | 0.043478 | 0.42029 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90d292b303b3bafde97adf42402f2eb1a9e456af | 15,595 | py | Python | mentor/userform/views.py | JarettSutula/GoatBoat | 53dd978048c6757b537e5988793b29a5ef1b7b52 | [
"MIT"
] | null | null | null | mentor/userform/views.py | JarettSutula/GoatBoat | 53dd978048c6757b537e5988793b29a5ef1b7b52 | [
"MIT"
] | null | null | null | mentor/userform/views.py | JarettSutula/GoatBoat | 53dd978048c6757b537e5988793b29a5ef1b7b52 | [
"MIT"
] | null | null | null | from re import sub
import bcrypt
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from utils import collection_link, start_db, restructure_day_array, create_day_array, log_warning
from userform.models import UserForm, EditProfile, ResetPassword, LogInForm, ProfileSearch
fro... | 41.586667 | 102 | 0.601667 | 1,507 | 15,595 | 6.11148 | 0.171201 | 0.057329 | 0.078176 | 0.089902 | 0.458089 | 0.42367 | 0.369924 | 0.351683 | 0.347883 | 0.33203 | 0 | 0.000822 | 0.297852 | 15,595 | 374 | 103 | 41.697861 | 0.840274 | 0.149984 | 0 | 0.503788 | 0 | 0 | 0.149954 | 0.001975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0.056818 | 0.037879 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90dfbf8bef8f235ebd041186f52e6535f14fc155 | 48,880 | py | Python | pytests/xdcr/upgradeXDCR.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | pytests/xdcr/upgradeXDCR.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | pytests/xdcr/upgradeXDCR.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | from threading import Thread
import re
import copy
import Queue
from datetime import datetime
from membase.api.rest_client import RestConnection, Bucket
from newupgradebasetest import NewUpgradeBaseTest
from xdcrnewbasetests import XDCRNewBaseTest, NodeHelper
from TestInput import TestInputSingleton
from remote.remote_... | 54.983127 | 143 | 0.590446 | 5,651 | 48,880 | 4.846045 | 0.072907 | 0.026584 | 0.018989 | 0.019719 | 0.755304 | 0.702903 | 0.667592 | 0.62914 | 0.59843 | 0.577725 | 0 | 0.014506 | 0.314566 | 48,880 | 889 | 144 | 54.983127 | 0.802859 | 0.010782 | 0 | 0.577173 | 0 | 0 | 0.133863 | 0.000579 | 0 | 0 | 0 | 0.001125 | 0.022049 | 1 | 0.027237 | false | 0.01297 | 0.023346 | 0 | 0.072633 | 0.001297 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90e306f1cd276d3cb0e5818bcc62c573101b8357 | 9,807 | py | Python | tutorial/week7/main/mc/parser/.antlr/MCParser.py | khoidohpc/ppl-course | 3bcff3eeeeebc24f0fc9e3f844779f439aa97544 | [
"MIT"
] | 2 | 2020-10-21T13:04:18.000Z | 2022-01-12T11:06:31.000Z | Assignment4/init/src/main/mp/parser/.antlr/MCParser.py | jimodayne/ppl_hcmut_assignment | 7a06d61e4cda8c76f62a1da5b93ef66d98198b80 | [
"MIT"
] | null | null | null | Assignment4/init/src/main/mp/parser/.antlr/MCParser.py | jimodayne/ppl_hcmut_assignment | 7a06d61e4cda8c76f62a1da5b93ef66d98198b80 | [
"MIT"
] | 1 | 2019-12-03T05:33:13.000Z | 2019-12-03T05:33:13.000Z | # Generated from /Users/nhphung/Documents/fromSamsungLaptop/Monhoc/KS-NNLT/Materials/Assignments/MC/MC1-Python/Assignment2/upload/src/main/mc/parser/MC.g4 by ANTLR 4.7.1
# encoding: utf-8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as bu... | 29.628399 | 169 | 0.564699 | 1,245 | 9,807 | 4.359839 | 0.151004 | 0.017318 | 0.009396 | 0.010317 | 0.539794 | 0.461864 | 0.431835 | 0.389831 | 0.349853 | 0.349853 | 0 | 0.066501 | 0.303865 | 9,807 | 330 | 170 | 29.718182 | 0.728578 | 0.022025 | 0 | 0.427386 | 1 | 0.053942 | 0.091754 | 0.067328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141079 | false | 0.008299 | 0.016598 | 0.091286 | 0.410788 | 0 | 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 |
90e62ba00894ce3da4d2bdf065f0a727caee38db | 14,498 | py | Python | source/repositories/create_config.py | stackArmor/compliant-framework-for-federal-and-dod-workloads-in-aws-govcloud-us | 8d2aa7426e352242bbded64e3c6da88199aef025 | [
"Apache-2.0"
] | 36 | 2020-12-22T18:40:50.000Z | 2022-03-23T03:48:13.000Z | source/repositories/create_config.py | stackArmor/compliant-framework-for-federal-and-dod-workloads-in-aws-govcloud-us | 8d2aa7426e352242bbded64e3c6da88199aef025 | [
"Apache-2.0"
] | 10 | 2021-03-01T20:29:10.000Z | 2022-02-15T23:28:58.000Z | source/repositories/create_config.py | stackArmor/compliant-framework-for-federal-and-dod-workloads-in-aws-govcloud-us | 8d2aa7426e352242bbded64e3c6da88199aef025 | [
"Apache-2.0"
] | 17 | 2020-12-18T15:23:15.000Z | 2022-03-20T17:47:39.000Z | ######################################################################################################################
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | 66.504587 | 190 | 0.628156 | 1,210 | 14,498 | 7.391736 | 0.200826 | 0.120751 | 0.059034 | 0.132826 | 0.498211 | 0.413014 | 0.373882 | 0.256597 | 0.180792 | 0.046959 | 0 | 0.001649 | 0.247207 | 14,498 | 217 | 191 | 66.81106 | 0.817849 | 0.222582 | 0 | 0.096154 | 0 | 0.089744 | 0.512657 | 0.439993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0.00641 | 0.019231 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90e6f8636ffb87afc7509f41092ba9330cfc347b | 1,339 | py | Python | snippets/simple_json_parse.py | boisde/Greed_Island | 9c4f0195fb7bfaeb6c29e8e9638c7b0ffd9ad90b | [
"MIT"
] | null | null | null | snippets/simple_json_parse.py | boisde/Greed_Island | 9c4f0195fb7bfaeb6c29e8e9638c7b0ffd9ad90b | [
"MIT"
] | null | null | null | snippets/simple_json_parse.py | boisde/Greed_Island | 9c4f0195fb7bfaeb6c29e8e9638c7b0ffd9ad90b | [
"MIT"
] | 2 | 2016-09-10T08:13:06.000Z | 2021-05-12T18:57:05.000Z | #!/usr/bin/env python
# coding:utf-8
from __future__ import unicode_literals
import sys
# '{A:B,C:{D:E},F:G}'
# {
# 'a': 'b',
# 'c':{
# 'd': 'e'
# },
# 'f': 'g'
# }
def dumps(a):
t = '\t'
n = '\n'
t_cnt = 0
for c in a:
if c == '{':
t_cnt += 1
... | 22.316667 | 51 | 0.439134 | 195 | 1,339 | 2.784615 | 0.215385 | 0.165746 | 0.206262 | 0.088398 | 0.593002 | 0.593002 | 0.554328 | 0.515654 | 0.488029 | 0.488029 | 0 | 0.014002 | 0.35997 | 1,339 | 59 | 52 | 22.694915 | 0.619603 | 0.0941 | 0 | 0.325581 | 0 | 0 | 0.049875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.046512 | 0 | 0.116279 | 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 |
90e762e49b1eee536c287fb336a8b1e2e1493b75 | 437 | py | Python | src/cms/pages/migrations/0004_auto_20210121_0953.py | UniversitaDellaCalabria/uniCMS | b0af4e1a767867f0a9b3c135a5c84587e713cb71 | [
"Apache-2.0"
] | 6 | 2021-01-26T17:22:53.000Z | 2022-02-15T10:09:03.000Z | src/cms/pages/migrations/0004_auto_20210121_0953.py | UniversitaDellaCalabria/uniCMS | b0af4e1a767867f0a9b3c135a5c84587e713cb71 | [
"Apache-2.0"
] | 5 | 2020-12-24T14:29:23.000Z | 2021-08-10T10:32:18.000Z | src/cms/pages/migrations/0004_auto_20210121_0953.py | UniversitaDellaCalabria/uniCMS | b0af4e1a767867f0a9b3c135a5c84587e713cb71 | [
"Apache-2.0"
] | 2 | 2020-12-24T14:13:39.000Z | 2020-12-30T16:48:52.000Z | # Generated by Django 3.1.4 on 2021-01-21 09:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmspages', '0003_auto_20210119_1359'),
]
operations = [
migrations.AlterField(
model_name='page',
name='description'... | 23 | 97 | 0.617849 | 49 | 437 | 5.408163 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096573 | 0.265446 | 437 | 18 | 98 | 24.277778 | 0.728972 | 0.102975 | 0 | 0 | 1 | 0 | 0.182051 | 0.058974 | 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 |
90e841729f848d63186b5e3ef88cd615c203ffdb | 2,467 | py | Python | crawler/grabber/__init__.py | bmwant/chemister | fbefcc9f548acc69966b6fbe19c4486f471fb390 | [
"MIT"
] | null | null | null | crawler/grabber/__init__.py | bmwant/chemister | fbefcc9f548acc69966b6fbe19c4486f471fb390 | [
"MIT"
] | 1 | 2020-04-29T23:35:21.000Z | 2020-04-29T23:35:21.000Z | crawler/grabber/__init__.py | bmwant/chemister | fbefcc9f548acc69966b6fbe19c4486f471fb390 | [
"MIT"
] | null | null | null | """
Grab information needed from a resource and store it.
"""
import asyncio
from abc import ABC, abstractmethod
from datetime import datetime
from utils import get_logger, get_date_cache_key
from crawler.models.bid import (
insert_new_bid,
get_bid_by_signature,
)
from crawler.models.resource import Resource
... | 28.686047 | 70 | 0.62951 | 298 | 2,467 | 4.95302 | 0.295302 | 0.030488 | 0.03252 | 0.020325 | 0.04336 | 0.04336 | 0.04336 | 0 | 0 | 0 | 0 | 0 | 0.276044 | 2,467 | 85 | 71 | 29.023529 | 0.826428 | 0.036482 | 0 | 0.063492 | 0 | 0 | 0.046855 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0.047619 | 0.31746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
90ea5cd2bc780ca1bd43b58ba6c69c50884f9118 | 531 | py | Python | programs/pattern3.py | VishalAgr11/CSE-programs | 082c984908886adb09fc1a8dcd60482bdd99dbfe | [
"MIT"
] | 1 | 2021-11-15T15:21:29.000Z | 2021-11-15T15:21:29.000Z | programs/pattern3.py | VishalAgr11/CSE-programs | 082c984908886adb09fc1a8dcd60482bdd99dbfe | [
"MIT"
] | null | null | null | programs/pattern3.py | VishalAgr11/CSE-programs | 082c984908886adb09fc1a8dcd60482bdd99dbfe | [
"MIT"
] | 2 | 2021-11-14T01:45:51.000Z | 2021-11-15T15:21:08.000Z | '''
*000*000*
0*00*00*0
00*0*0*00
000***000
Utkarsh
'''
l=int(input())
b=int(input())
print("With for\n")
for i in range(1,b+1):
for j in range(1,l+1):
if j==(l+1)//2 or j==i or j==(l+1)-i:
print('*',end='')
else:
print('0',end='')
print()
i=1
j=1
print("\nWith while\n")... | 14.75 | 45 | 0.403013 | 97 | 531 | 2.206186 | 0.247423 | 0.046729 | 0.056075 | 0.046729 | 0.345794 | 0.345794 | 0.345794 | 0.345794 | 0.345794 | 0.345794 | 0 | 0.117816 | 0.344633 | 531 | 35 | 46 | 15.171429 | 0.497126 | 0.090395 | 0 | 0.521739 | 0 | 0 | 0.059197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90eae14ab2d0462dd6d21f9672f5609712347998 | 461 | py | Python | mysite/dashboard2/migrations/0004_auto_20170310_1811.py | militiaonly/spark1707 | 3d4a3945ca2190628ea6a8593d3adadfd1a71dfb | [
"MIT"
] | null | null | null | mysite/dashboard2/migrations/0004_auto_20170310_1811.py | militiaonly/spark1707 | 3d4a3945ca2190628ea6a8593d3adadfd1a71dfb | [
"MIT"
] | null | null | null | mysite/dashboard2/migrations/0004_auto_20170310_1811.py | militiaonly/spark1707 | 3d4a3945ca2190628ea6a8593d3adadfd1a71dfb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-10 10:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard2', '0003_config_latest_value'),
]
operations = [
migrations.Alter... | 21.952381 | 51 | 0.624729 | 50 | 461 | 5.56 | 0.74 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070381 | 0.260304 | 461 | 20 | 52 | 23.05 | 0.744868 | 0.147505 | 0 | 0 | 1 | 0 | 0.133333 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90f0ddcad616b4031ea9ff8ad4f523c828264f5d | 329 | py | Python | item_90_example_12.py | aambrioso1/Effective_Python | fcd89c27473a871596e54ebe18e1f56318029037 | [
"MIT"
] | null | null | null | item_90_example_12.py | aambrioso1/Effective_Python | fcd89c27473a871596e54ebe18e1f56318029037 | [
"MIT"
] | null | null | null | item_90_example_12.py | aambrioso1/Effective_Python | fcd89c27473a871596e54ebe18e1f56318029037 | [
"MIT"
] | null | null | null | #!/usr/bin/env PYTHONHASHSEED=1234 python3
# Example 12:
# Check types in this file with: python -m mypy <path>
from typing import Optional
def get_or_default(value: Optional[int],
default: int) -> int:
if value is not None:
return value
return value # Oops: should have returned ... | 27.416667 | 56 | 0.665653 | 46 | 329 | 4.717391 | 0.804348 | 0.101382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02834 | 0.24924 | 329 | 12 | 56 | 27.416667 | 0.850202 | 0.43465 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
90f93eac1be9ed10434ad3adb42883fb6c5df3f1 | 399 | py | Python | logs/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | logs/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | 7 | 2021-03-19T03:09:53.000Z | 2022-01-13T02:48:44.000Z | logs/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | from django.db import models
'''
activity
datetime
user (FK)
type
'''
class Log(models.Model):
activity = models.CharField(max_length=50, null=False, default='')
datetime = models.DateTimeField(auto_now=True)
user = models.ForeignKey(
to='users.User'
,on_delete=models.CASCAD... | 17.347826 | 73 | 0.649123 | 48 | 399 | 5.270833 | 0.729167 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.233083 | 399 | 22 | 74 | 18.136364 | 0.820261 | 0 | 0 | 0 | 0 | 0 | 0.047753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90fba6943ab3e32b2fab1d1c2895bf78221fee3a | 225 | py | Python | RNA2DNAlign/src/version.py | HorvathLab/HorvathLabTools | dae9081b7de22f822e38c85137810c2cc1a804be | [
"MIT"
] | 23 | 2015-12-02T17:30:17.000Z | 2022-03-30T18:43:31.000Z | RNA2DNAlign/src/version.py | HorvathLab/HorvathLabTools | dae9081b7de22f822e38c85137810c2cc1a804be | [
"MIT"
] | 4 | 2021-05-17T19:11:41.000Z | 2022-02-22T16:58:18.000Z | RNA2DNAlign/src/version.py | HorvathLab/HorvathLabTools | dae9081b7de22f822e38c85137810c2cc1a804be | [
"MIT"
] | 13 | 2016-09-07T07:27:18.000Z | 2022-03-15T12:31:21.000Z | #!/bin/env python2.7
VERSION = '2.1.2'
PROGRAMS = 'readCounts.py LoH.py RNA2DNAlign.py exonicFilter.py snv_computation.py'
INCLUDES = 'common ReadCounts'
if __name__ == '__main__':
import sys
print(eval(sys.argv[1]))
| 28.125 | 83 | 0.715556 | 33 | 225 | 4.606061 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036082 | 0.137778 | 225 | 7 | 84 | 32.142857 | 0.747423 | 0.084444 | 0 | 0 | 0 | 0 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
29020bc5af7b5aa10ffd220bbcd76e49f8d572d9 | 1,004 | py | Python | zgrobot/messages/entries.py | pylover7/ZgRobot | 7c2f03c551e5155c567d503e1a9b5269983f5a3b | [
"MIT"
] | 3 | 2021-10-18T17:36:05.000Z | 2022-03-01T06:55:21.000Z | zgrobot/messages/entries.py | pylover7/ZgRobot | 7c2f03c551e5155c567d503e1a9b5269983f5a3b | [
"MIT"
] | 20 | 2021-10-10T07:24:36.000Z | 2022-03-21T07:18:49.000Z | zgrobot/messages/entries.py | pylover7/ZgRobot | 7c2f03c551e5155c567d503e1a9b5269983f5a3b | [
"MIT"
] | 1 | 2022-02-25T09:47:58.000Z | 2022-02-25T09:47:58.000Z | # -*- coding: utf-8 -*-
from zgrobot.utils import to_text
def get_value(instance, path, default=None):
dic = instance.__dict__
for entry in path.split('.'):
dic = dic.get(entry)
if dic is None:
return default
return dic or default
class BaseEntry(object):
def __init__(sel... | 23.904762 | 71 | 0.613546 | 122 | 1,004 | 4.836066 | 0.344262 | 0.076271 | 0.108475 | 0.09661 | 0.464407 | 0.464407 | 0.410169 | 0.349153 | 0.210169 | 0.210169 | 0 | 0.001403 | 0.289841 | 1,004 | 41 | 72 | 24.487805 | 0.826087 | 0.020916 | 0 | 0.3 | 0 | 0 | 0.001019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.033333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
29048dd70019acba23918a54f9a81732d4fee4b7 | 5,845 | py | Python | tests.py | Mariuki/AutomatedBruteForceAttack_to_FingerprintFuzzyVault | 99c6ab5138d5b548c5ea7e4ab639fa8b2963c75b | [
"MIT"
] | null | null | null | tests.py | Mariuki/AutomatedBruteForceAttack_to_FingerprintFuzzyVault | 99c6ab5138d5b548c5ea7e4ab639fa8b2963c75b | [
"MIT"
] | null | null | null | tests.py | Mariuki/AutomatedBruteForceAttack_to_FingerprintFuzzyVault | 99c6ab5138d5b548c5ea7e4ab639fa8b2963c75b | [
"MIT"
] | null | null | null | # Pruebas de diferentes operaciones sobre las bóvedas y los archivos.
# from lagrange_matlab import lagrange_poly_iter
import numpy as np
from sympy import *
import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def polev(coefs,rng):
'''Incertar coeficientes del polinomio comenzando
... | 27.060185 | 115 | 0.60941 | 913 | 5,845 | 3.872946 | 0.272727 | 0.01612 | 0.030543 | 0.015837 | 0.350679 | 0.301753 | 0.217477 | 0.179016 | 0.158371 | 0.112557 | 0 | 0.071333 | 0.230111 | 5,845 | 215 | 116 | 27.186047 | 0.714444 | 0.08195 | 0 | 0.296296 | 0 | 0 | 0.06239 | 0.016767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | null | null | 0.08642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
29052b7c968f2f47c6caa9476a4d4ce94d943cd2 | 1,489 | py | Python | examples/variables.py | cyrilbois/PFNET.py | 81d2fd911c6e6aae4c5de0d1739c6f5361799ce2 | [
"BSD-2-Clause"
] | 3 | 2018-03-21T11:54:38.000Z | 2020-12-29T16:46:14.000Z | examples/variables.py | cyrilbois/PFNET.py | 81d2fd911c6e6aae4c5de0d1739c6f5361799ce2 | [
"BSD-2-Clause"
] | 23 | 2018-03-29T00:42:06.000Z | 2021-01-05T19:15:05.000Z | examples/variables.py | cyrilbois/PFNET.py | 81d2fd911c6e6aae4c5de0d1739c6f5361799ce2 | [
"BSD-2-Clause"
] | 5 | 2018-10-01T19:05:11.000Z | 2020-05-27T06:19:11.000Z | #***************************************************#
# This file is part of PFNET. #
# #
# Copyright (c) 2015, Tomas Tinoco De Rubira. #
# #
# PFNET is released under the BSD 2-clause license... | 24.409836 | 89 | 0.584285 | 206 | 1,489 | 4.029126 | 0.325243 | 0.06747 | 0.043373 | 0.072289 | 0.425301 | 0.351807 | 0.251807 | 0.107229 | 0.074699 | 0.074699 | 0 | 0.01371 | 0.216253 | 1,489 | 60 | 90 | 24.816667 | 0.697515 | 0.257891 | 0 | 0.206897 | 0 | 0 | 0.143119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0.413793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
290548ed0a0011616663924ce78ad31d49d08574 | 3,473 | py | Python | org/tradesafe/bt/position.py | shenbai/tradesafe | b6bb843288f535d7d146426fd40750f7484a16e6 | [
"MIT"
] | null | null | null | org/tradesafe/bt/position.py | shenbai/tradesafe | b6bb843288f535d7d146426fd40750f7484a16e6 | [
"MIT"
] | null | null | null | org/tradesafe/bt/position.py | shenbai/tradesafe | b6bb843288f535d7d146426fd40750f7484a16e6 | [
"MIT"
] | 2 | 2021-08-21T17:26:29.000Z | 2022-02-18T21:40:24.000Z | # coding: utf-8
__author__ = 'tack'
class Position(object):
'''
position
'''
def __init__(self, code, num, price, commission, date):
'''
Args:
code: stock code
price: cost price
commission: commission
num: num
date: date
... | 28.702479 | 222 | 0.564354 | 419 | 3,473 | 4.52506 | 0.171838 | 0.075949 | 0.071203 | 0.062764 | 0.313819 | 0.207806 | 0.171941 | 0.091772 | 0.091772 | 0.045359 | 0 | 0.00258 | 0.330262 | 3,473 | 120 | 223 | 28.941667 | 0.812554 | 0.107688 | 0 | 0.171875 | 0 | 0.015625 | 0.093097 | 0.027965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0 | 0 | 0.0625 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
29059de9a4aa8e993c70e1df238f3a6dcc31e238 | 1,405 | py | Python | psq/__init__.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 210 | 2015-07-29T16:50:01.000Z | 2022-03-02T15:24:52.000Z | psq/__init__.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 60 | 2015-12-03T23:15:57.000Z | 2021-01-21T09:25:42.000Z | psq/__init__.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 47 | 2015-12-21T06:09:36.000Z | 2021-09-04T13:20:21.000Z | # Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 27.54902 | 77 | 0.749466 | 184 | 1,405 | 5.597826 | 0.554348 | 0.058252 | 0.025243 | 0.031068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006843 | 0.167972 | 1,405 | 50 | 78 | 28.1 | 0.874252 | 0.517438 | 0 | 0 | 0 | 0 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
29099875d81bb1232d0d3ac4107d4cda2fca6612 | 1,301 | py | Python | hackerearth/vizury_challenge/panda_shopping.py | mhetrerajat/ds-challenge | 3208df5c29612b0dfe60c1c082da1f31ad220b49 | [
"MIT"
] | null | null | null | hackerearth/vizury_challenge/panda_shopping.py | mhetrerajat/ds-challenge | 3208df5c29612b0dfe60c1c082da1f31ad220b49 | [
"MIT"
] | 1 | 2021-05-18T07:30:16.000Z | 2021-05-18T07:30:16.000Z | hackerearth/vizury_challenge/panda_shopping.py | mhetrerajat/ds-challenge | 3208df5c29612b0dfe60c1c082da1f31ad220b49 | [
"MIT"
] | null | null | null | def getInput():
N = int(raw_input())
hlList = []
for i in xrange(N):
hl = map(int, raw_input().split(" "))
hlList.append(hl)
return (N, hlList)
def getMaxHappiness(hlList):
buyedItems = []
maxHappiness = 0
for item in hlList:
h,l = item[0], item[1]
if len(buy... | 29.568182 | 127 | 0.538816 | 153 | 1,301 | 4.51634 | 0.352941 | 0.040521 | 0.031838 | 0.083936 | 0.095514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109215 | 0.324366 | 1,301 | 43 | 128 | 30.255814 | 0.676906 | 0.061491 | 0 | 0.105263 | 0 | 0 | 0.007383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
290a54ffe87fdc4ba9f88a97057a7249a7bbc669 | 497 | py | Python | redbot/message/headers/content_base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | 167 | 2015-01-07T16:34:56.000Z | 2022-02-20T15:20:06.000Z | redbot/message/headers/content_base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | 180 | 2015-02-01T01:37:53.000Z | 2022-02-17T04:32:01.000Z | redbot/message/headers/content_base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | 32 | 2015-05-20T21:00:13.000Z | 2022-02-16T10:14:15.000Z | #!/usr/bin/env python
from redbot.message import headers
class content_base(headers.HttpHeader):
canonical_name = "Content-Base"
description = """\
The `Content-Base` header field established the base URI of the message. It has been
deprecated, because it was not implemented widely.
"""
reference = "ht... | 27.611111 | 84 | 0.724346 | 67 | 497 | 5.253731 | 0.746269 | 0.09375 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019704 | 0.183099 | 497 | 17 | 85 | 29.235294 | 0.847291 | 0.040241 | 0 | 0 | 0 | 0 | 0.422269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
290acd4699cddf11b97a9e66774ffdff8879e49b | 299 | py | Python | Packages/Dead/help/setup.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | Packages/Dead/help/setup.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | Packages/Dead/help/setup.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | #!/usr/bin/env python
from distutils.core import setup
import os, sys
setup (name = "help",
version='1.0',
description = "Help for CDAT",
url = "http://cdat.sf.net",
packages = ['help'],
package_dir = {'help': 'Lib'},
scripts = ['Script/cdathelp']
)
| 23 | 37 | 0.551839 | 36 | 299 | 4.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.274247 | 299 | 12 | 38 | 24.916667 | 0.746544 | 0.06689 | 0 | 0 | 0 | 0 | 0.230216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
290ceb7e46e3bd7a90b0fcd755675f3ecfeae87b | 814 | py | Python | billing/integrations/stripe_integration.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | billing/integrations/stripe_integration.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | billing/integrations/stripe_integration.py | SimpleTax/merchant | 12ec88f6e47f81748add84cd82b0f6c8ac0aa2fc | [
"BSD-3-Clause"
] | null | null | null | from billing import Integration, get_gateway
from django.conf import settings
from django.conf.urls import patterns, url
from billing.forms.stripe_forms import StripeForm
class StripeIntegration(Integration):
def __init__(self):
super(StripeIntegration, self).__init__()
self.gateway = get_gateway... | 30.148148 | 78 | 0.697789 | 88 | 814 | 6.227273 | 0.454545 | 0.040146 | 0.051095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223587 | 814 | 26 | 79 | 31.307692 | 0.867089 | 0.035627 | 0 | 0 | 0 | 0 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2916550208616a3204b1f319019176e82b7b53d5 | 390 | py | Python | creer/input.py | JeffreyStrahm/Creer | d7544d45ab3617606c5ce5ebe8ef9bd2e0780a19 | [
"MIT"
] | null | null | null | creer/input.py | JeffreyStrahm/Creer | d7544d45ab3617606c5ce5ebe8ef9bd2e0780a19 | [
"MIT"
] | null | null | null | creer/input.py | JeffreyStrahm/Creer | d7544d45ab3617606c5ce5ebe8ef9bd2e0780a19 | [
"MIT"
] | null | null | null | import glob
def validate(inputs):
validated_inputs = []
for input_dir in inputs:
dirs = glob.glob(input_dir)
if not dirs:
raise Exception("No directories matching {}".format(input_dir))
validated_inputs.extend(dirs)
for validated_input in validated_inputs:
print... | 26 | 75 | 0.669231 | 46 | 390 | 5.478261 | 0.5 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246154 | 390 | 14 | 76 | 27.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0.090909 | 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 |
2917bf7ed424e3d855ff03ef22f204b01b40c94b | 1,033 | py | Python | node_exec/inline_nodes.py | compix/NodeGraphQt | 511c02aef02a7e16a9f40aa368c2f560bd3bbdff | [
"MIT"
] | null | null | null | node_exec/inline_nodes.py | compix/NodeGraphQt | 511c02aef02a7e16a9f40aa368c2f560bd3bbdff | [
"MIT"
] | null | null | null | node_exec/inline_nodes.py | compix/NodeGraphQt | 511c02aef02a7e16a9f40aa368c2f560bd3bbdff | [
"MIT"
] | null | null | null | from node_exec.base_nodes import InlineNode, excludeFromRegistration
CONSTEXPR_IDENTIFIER = 'Const'
@excludeFromRegistration
class ConstInputNode(InlineNode):
__identifier__ = CONSTEXPR_IDENTIFIER
NODE_NAME = 'Const Input Node'
def __init__(self):
super().__init__()
#self.add_text_input(... | 25.825 | 68 | 0.67667 | 101 | 1,033 | 6.663366 | 0.415842 | 0.047548 | 0.098068 | 0.13373 | 0.089153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21878 | 1,033 | 39 | 69 | 26.487179 | 0.833953 | 0.056147 | 0 | 0.111111 | 0 | 0 | 0.131552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0.074074 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
29225bcf347bc777ab2f0cedc6bed0b6405f2893 | 627 | py | Python | hoodapp/migrations/0009_auto_20201031_1620.py | JohnKarima/hood | 57cc748bb10dbe4305475cd50d0985933edf5caa | [
"MIT"
] | 1 | 2020-10-31T16:19:23.000Z | 2020-10-31T16:19:23.000Z | hoodapp/migrations/0009_auto_20201031_1620.py | JohnKarima/hood | 57cc748bb10dbe4305475cd50d0985933edf5caa | [
"MIT"
] | null | null | null | hoodapp/migrations/0009_auto_20201031_1620.py | JohnKarima/hood | 57cc748bb10dbe4305475cd50d0985933edf5caa | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-31 16:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('hoodapp', '0008_auto_20201031_1609'),
]
operations = [
migrations.RemoveField(
model_name='prof... | 26.125 | 145 | 0.626794 | 68 | 627 | 5.647059 | 0.661765 | 0.0625 | 0.072917 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066381 | 0.255183 | 627 | 23 | 146 | 27.26087 | 0.755889 | 0.07177 | 0 | 0.117647 | 1 | 0 | 0.163793 | 0.039655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2924c3a28d76024b47ea8be5d309439932a26bc2 | 1,017 | py | Python | src/genie/libs/parser/iosxr/tests/ShowSpanningTreeMst/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxr/tests/ShowSpanningTreeMst/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxr/tests/ShowSpanningTreeMst/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
'mstp': {
'blocked-ports': {
'mst_instances': {
'0': {
'mst_id': '0',
'interfaces': {
'GigabitEthernet0/0/4/4': {
'name': 'GigabitEthe... | 36.321429 | 78 | 0.27237 | 52 | 1,017 | 5.057692 | 0.615385 | 0.129278 | 0.136882 | 0.144487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108179 | 0.627335 | 1,017 | 27 | 79 | 37.666667 | 0.585752 | 0 | 0 | 0 | 0 | 0 | 0.24532 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2925d8d289776ae47744cc60031736470f2e9313 | 1,793 | py | Python | tests/model_test.py | predictive-analytics-lab/fair-bolts | a1481611c5da39e19fefdd0d73f16367070adf5f | [
"Apache-2.0"
] | null | null | null | tests/model_test.py | predictive-analytics-lab/fair-bolts | a1481611c5da39e19fefdd0d73f16367070adf5f | [
"Apache-2.0"
] | null | null | null | tests/model_test.py | predictive-analytics-lab/fair-bolts | a1481611c5da39e19fefdd0d73f16367070adf5f | [
"Apache-2.0"
] | null | null | null | """Tests for models."""
import pytest
import pytorch_lightning as pl
from torch import nn
from fair_bolts.datamodules import CelebaDataModule
from fair_bolts.models.erm_baseline import ErmBaseline
from fair_bolts.models.laftr_baseline import Laftr
@pytest.mark.parametrize("dm_class", [CelebaDataModule])
def test_laf... | 22.987179 | 100 | 0.629671 | 246 | 1,793 | 4.439024 | 0.247967 | 0.057692 | 0.035714 | 0.063187 | 0.711538 | 0.694139 | 0.694139 | 0.694139 | 0.647436 | 0.604396 | 0 | 0.022777 | 0.240937 | 1,793 | 77 | 101 | 23.285714 | 0.779574 | 0.04406 | 0 | 0.614035 | 0 | 0 | 0.015357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 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 |
2927bfbb320c33092e2b1ac611840a4fa0af52dc | 1,572 | py | Python | tests/test_api.py | nsorros/Neural-ParsCit | f14d23ae44e17ef7e4e0943e737931ad4328a95b | [
"MIT"
] | 62 | 2018-04-04T22:08:30.000Z | 2022-03-11T06:45:23.000Z | tests/test_api.py | nsorros/Neural-ParsCit | f14d23ae44e17ef7e4e0943e737931ad4328a95b | [
"MIT"
] | 25 | 2018-07-06T12:13:52.000Z | 2021-07-31T01:33:00.000Z | tests/test_api.py | nsorros/Neural-ParsCit | f14d23ae44e17ef7e4e0943e737931ad4328a95b | [
"MIT"
] | 12 | 2018-07-09T14:17:48.000Z | 2021-07-21T22:04:22.000Z | import os
import pytest
@pytest.mark.skipif(os.getenv("CI") == 'true', reason="Not running in CI")
def test_parse(client):
data = {
'string': 'Animesh Prasad, Manpreet Kaur and Min-Yen Kan (2018) Neural ParsCit: a deep learning-based reference string parser. International Journal on Digital Libraries. May ... | 43.666667 | 311 | 0.69402 | 217 | 1,572 | 4.963134 | 0.391705 | 0.03714 | 0.059424 | 0.066852 | 0.687094 | 0.681523 | 0.681523 | 0.681523 | 0.681523 | 0.612813 | 0 | 0.033205 | 0.176209 | 1,572 | 35 | 312 | 44.914286 | 0.798456 | 0 | 0 | 0.296296 | 0 | 0.111111 | 0.516539 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.222222 | 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 |
2929b9e3f8c3c95d90139e8729ad63f9116becac | 295 | py | Python | 4.13/demo/reqresp/urls.py | 1179069501/- | b76902a35ed78678c1663f243330bcb014abace1 | [
"MIT"
] | null | null | null | 4.13/demo/reqresp/urls.py | 1179069501/- | b76902a35ed78678c1663f243330bcb014abace1 | [
"MIT"
] | null | null | null | 4.13/demo/reqresp/urls.py | 1179069501/- | b76902a35ed78678c1663f243330bcb014abace1 | [
"MIT"
] | null | null | null | from django.urls import re_path
from .import views
urlpatterns = [
re_path(r'^query/$',views.queryfunc),
# re_path(r'^weather/([a-z]+)/(\d{4})/$',views.routerfunc),
re_path(r'^weather/(?P<city>[a-z]+)/(?P<year>\d{4})/$',views.routerfunc1),
re_path(r'^form/$',views.formfunc),
]
| 29.5 | 78 | 0.623729 | 46 | 295 | 3.891304 | 0.5 | 0.167598 | 0.156425 | 0.156425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0.111864 | 295 | 9 | 79 | 32.777778 | 0.671756 | 0.19322 | 0 | 0 | 0 | 0 | 0.245763 | 0.182203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
292b2b763cdd72df7f94b67b27e88c3df370598a | 5,785 | py | Python | tools/fixture_generator/generate_xrp_fixtures.py | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 2 | 2019-06-25T15:10:40.000Z | 2019-07-08T12:22:37.000Z | tools/fixture_generator/generate_xrp_fixtures.py | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 19 | 2020-02-11T17:53:36.000Z | 2020-04-15T08:58:13.000Z | tools/fixture_generator/generate_xrp_fixtures.py | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 6 | 2020-04-18T01:07:47.000Z | 2020-10-07T08:50:20.000Z | #!/usr/bin/env python3
import sys
import requests
import json
import datetime
import dateutil.parser
import time
if len(sys.argv) < 4:
print("Should have at least two params <name> <address> <pubKey> <chainCode>")
sys.exit(-1)
path = "../../core/test/fixtures/"
arguments = sys.argv[1:]
namespace = str(argum... | 46.28 | 1,468 | 0.667416 | 735 | 5,785 | 5.206803 | 0.272109 | 0.054351 | 0.04024 | 0.020904 | 0.332637 | 0.211654 | 0.16462 | 0.131696 | 0.104521 | 0.104521 | 0 | 0.007004 | 0.111495 | 5,785 | 124 | 1,469 | 46.653226 | 0.737549 | 0.008124 | 0 | 0.08 | 0 | 0.01 | 0.471409 | 0.202929 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 0 | 0.12 | 0.03 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
292cb154f038b351320ef2c398c31d8c1d76f07b | 279 | py | Python | robot-tests/remoteapplications/start_simple_java_app.py | robotframework/RemoteApplications | 90e38112e25441f7e5e1818eab3ebd63875ef20a | [
"Apache-2.0"
] | 3 | 2015-01-27T14:31:39.000Z | 2020-04-13T06:25:08.000Z | robot-tests/remoteapplications/start_simple_java_app.py | robotframework/RemoteApplications | 90e38112e25441f7e5e1818eab3ebd63875ef20a | [
"Apache-2.0"
] | 1 | 2017-03-13T07:23:27.000Z | 2017-03-13T10:49:09.000Z | robot-tests/remoteapplications/start_simple_java_app.py | robotframework/RemoteApplications | 90e38112e25441f7e5e1818eab3ebd63875ef20a | [
"Apache-2.0"
] | 2 | 2019-04-09T09:36:32.000Z | 2019-04-23T02:32:10.000Z | #!/usr/bin/env python
import os
if __name__ == '__main__':
os.environ['CLASSPATH'] = ''
jar = os.path.join(os.path.dirname(__file__), '..', '..', 'src', 'test',
'resources', 'test-app', 'test-application.jar')
os.popen2('java -jar %s' % jar) | 31 | 77 | 0.548387 | 34 | 279 | 4.147059 | 0.705882 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.225806 | 279 | 9 | 78 | 31 | 0.648148 | 0.071685 | 0 | 0 | 0 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
292fc0cc76abee01a8b2295bf382e92ec19c530e | 3,983 | py | Python | orchestra/contrib/plans/migrations/0001_squashed_0003_auto_20210422_1108.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | null | null | null | orchestra/contrib/plans/migrations/0001_squashed_0003_auto_20210422_1108.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 4 | 2021-01-30T14:26:46.000Z | 2022-03-18T16:28:39.000Z | orchestra/contrib/plans/migrations/0001_squashed_0003_auto_20210422_1108.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 3 | 2022-02-06T04:35:59.000Z | 2022-03-17T00:40:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2021-04-22 11:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import orchestra.core.validators
class Migration(migrations.Migration):
replaces = [('plans'... | 53.106667 | 206 | 0.642983 | 439 | 3,983 | 5.660592 | 0.300683 | 0.088531 | 0.039437 | 0.061972 | 0.45674 | 0.451509 | 0.449899 | 0.435412 | 0.435412 | 0.371831 | 0 | 0.020947 | 0.220939 | 3,983 | 74 | 207 | 53.824324 | 0.77989 | 0.017073 | 0 | 0.4 | 1 | 0 | 0.205521 | 0.011759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 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 |
29309018b43fb2c83f3adb7336c8e53f693d801e | 1,663 | py | Python | accounts/views.py | gr1d99/TeacherStudentHelpdesk | 1ed8eb54718c2d1689d1800dd9c80b34eb326bda | [
"MIT"
] | null | null | null | accounts/views.py | gr1d99/TeacherStudentHelpdesk | 1ed8eb54718c2d1689d1800dd9c80b34eb326bda | [
"MIT"
] | 5 | 2020-06-05T18:12:58.000Z | 2021-06-10T20:12:18.000Z | accounts/views.py | gr1d99/OHS | 1ed8eb54718c2d1689d1800dd9c80b34eb326bda | [
"MIT"
] | null | null | null | from django.core.urlresolvers import reverse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib import messages
from django.views.generic import CreateView, DetailView, UpdateView, TemplateView
from .forms import CreateUserProfileForm
from .models import UserProfile
from . import mixins
cla... | 36.152174 | 105 | 0.751654 | 182 | 1,663 | 6.758242 | 0.335165 | 0.053659 | 0.04878 | 0.026016 | 0.222764 | 0.222764 | 0.222764 | 0.222764 | 0.222764 | 0.222764 | 0 | 0 | 0.152135 | 1,663 | 45 | 106 | 36.955556 | 0.87234 | 0 | 0 | 0.242424 | 0 | 0 | 0.1365 | 0.087793 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.212121 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
29398c8f285468c4ce78cd22f3bb6069304dac91 | 9,652 | py | Python | psx/_dump_/35/_dump_ida_/overlay_a/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/35/_dump_ida_/overlay_a/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/35/_dump_ida_/overlay_a/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | del_items(0x80139F2C)
SetType(0x80139F2C, "void PresOnlyTestRoutine__Fv()")
del_items(0x80139F54)
SetType(0x80139F54, "void FeInitBuffer__Fv()")
del_items(0x80139F7C)
SetType(0x80139F7C, "void FeAddEntry__Fii8TXT_JUSTUsP7FeTableP5CFont(int X, int Y, enum TXT_JUST Just, unsigned short Str, struct FeTable *MenuPtr, struc... | 44.479263 | 183 | 0.818587 | 1,215 | 9,652 | 6.17037 | 0.278189 | 0.115246 | 0.064026 | 0.012805 | 0.130986 | 0.087635 | 0.074563 | 0.060024 | 0.013872 | 0.013872 | 0 | 0.177419 | 0.068587 | 9,652 | 216 | 184 | 44.685185 | 0.656507 | 0 | 0 | 0 | 0 | 0.013889 | 0.485288 | 0.200373 | 0 | 0 | 0.223788 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
293b6ffc6fae2e966d5715038f3adf3949375129 | 510 | py | Python | looking_for_group/games/migrations/0002_auto_20180911_1908.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/games/migrations/0002_auto_20180911_1908.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/games/migrations/0002_auto_20180911_1908.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-11 23:08
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('games', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='gameposting',
... | 25.5 | 153 | 0.65098 | 59 | 510 | 5.525424 | 0.694915 | 0.07362 | 0.08589 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048223 | 0.227451 | 510 | 19 | 154 | 26.842105 | 0.779188 | 0.088235 | 0 | 0 | 1 | 0 | 0.144708 | 0.058315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
294161da32d8e66e762c4d5c6867b19f211393dc | 1,514 | py | Python | FITS_tools/__init__.py | e-koch/FITS_tools | 45473ccfeaa97c94fd40b34017a2da987e66ecee | [
"BSD-3-Clause"
] | null | null | null | FITS_tools/__init__.py | e-koch/FITS_tools | 45473ccfeaa97c94fd40b34017a2da987e66ecee | [
"BSD-3-Clause"
] | null | null | null | FITS_tools/__init__.py | e-koch/FITS_tools | 45473ccfeaa97c94fd40b34017a2da987e66ecee | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This is an Astropy affiliated package.
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init imp... | 36.926829 | 79 | 0.649273 | 183 | 1,514 | 5.15847 | 0.551913 | 0.038136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001653 | 0.200793 | 1,514 | 40 | 80 | 37.85 | 0.778512 | 0.332233 | 0 | 0 | 0 | 0 | 0.110553 | 0.026131 | 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 |
2942cd49915043df85df7ef8b4b4d35da0715cbf | 587 | py | Python | thecut/authorship/settings.py | exemplarysoftware/thecut-authorship | 9ec67d2aa38b0c1851e754798f5aeca102987215 | [
"Apache-2.0"
] | 2 | 2016-08-21T00:11:02.000Z | 2016-08-31T05:18:54.000Z | thecut/authorship/settings.py | exemplarysoftware/thecut-authorship | 9ec67d2aa38b0c1851e754798f5aeca102987215 | [
"Apache-2.0"
] | null | null | null | thecut/authorship/settings.py | exemplarysoftware/thecut-authorship | 9ec67d2aa38b0c1851e754798f5aeca102987215 | [
"Apache-2.0"
] | 4 | 2016-08-17T01:37:15.000Z | 2020-12-02T10:41:36.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf import settings
AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')
"""The user model that :py:meth:`thecut.authorship.utils.get_website_user`
will query against. Defaults to ``settings.AUTH_USER_MODEL``.... | 41.928571 | 77 | 0.735945 | 80 | 587 | 5.1375 | 0.5 | 0.13382 | 0.116788 | 0.153285 | 0.238443 | 0.238443 | 0.238443 | 0.238443 | 0.238443 | 0.238443 | 0 | 0.001965 | 0.132879 | 587 | 13 | 78 | 45.153846 | 0.805501 | 0.035775 | 0 | 0 | 0 | 0 | 0.227941 | 0.084559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2950440c7815b69a25f425406c36010d83878404 | 5,139 | py | Python | sm_layer/pathos/secure/tunnel.py | arunprsh/lambda-collection | b8ce31bfb744cc9ded92c0e5bf7e72639eac72f1 | [
"MIT"
] | 1 | 2021-09-24T00:24:20.000Z | 2021-09-24T00:24:20.000Z | sm_layer/pathos/secure/tunnel.py | arunprsh/lambda-collection | b8ce31bfb744cc9ded92c0e5bf7e72639eac72f1 | [
"MIT"
] | null | null | null | sm_layer/pathos/secure/tunnel.py | arunprsh/lambda-collection | b8ce31bfb744cc9ded92c0e5bf7e72639eac72f1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2021 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pa... | 32.11875 | 79 | 0.593306 | 573 | 5,139 | 5.228621 | 0.378709 | 0.032043 | 0.019025 | 0.012016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.299475 | 5,139 | 159 | 80 | 32.320755 | 0.818889 | 0.386067 | 0 | 0.154762 | 0 | 0 | 0.049677 | 0 | 0 | 0 | 0 | 0.012579 | 0 | 1 | 0.071429 | false | 0.02381 | 0.083333 | 0 | 0.297619 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
29507c3dcc958d398fcb69c110af0d80aaf79c29 | 13,662 | py | Python | azure/servicemanagement/servicemanagementclient.py | shwetams/python_azure_tables | 4724261b8511e98d78ac4e6055e0f6b21afc9d7f | [
"MIT"
] | null | null | null | azure/servicemanagement/servicemanagementclient.py | shwetams/python_azure_tables | 4724261b8511e98d78ac4e6055e0f6b21afc9d7f | [
"MIT"
] | null | null | null | azure/servicemanagement/servicemanagementclient.py | shwetams/python_azure_tables | 4724261b8511e98d78ac4e6055e0f6b21afc9d7f | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apac... | 36.529412 | 89 | 0.631606 | 1,598 | 13,662 | 5.175845 | 0.169587 | 0.012695 | 0.042317 | 0.013058 | 0.444686 | 0.405876 | 0.387498 | 0.341192 | 0.319188 | 0.295128 | 0 | 0.002648 | 0.281218 | 13,662 | 373 | 90 | 36.627346 | 0.839613 | 0.069902 | 0 | 0.31068 | 0 | 0 | 0.028882 | 0.004999 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009709 | 0.033981 | null | null | 0.004854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
295cda72051740e456ac343e6e17d2333b34e727 | 4,193 | py | Python | scripts/args.py | anhthyngo/vietnamese-chatbot | a3c81bfa93b42daa3ca463d5b3a4b9da040d9b7f | [
"MIT"
] | null | null | null | scripts/args.py | anhthyngo/vietnamese-chatbot | a3c81bfa93b42daa3ca463d5b3a4b9da040d9b7f | [
"MIT"
] | null | null | null | scripts/args.py | anhthyngo/vietnamese-chatbot | a3c81bfa93b42daa3ca463d5b3a4b9da040d9b7f | [
"MIT"
] | 3 | 2020-11-11T01:36:49.000Z | 2020-11-13T00:49:27.000Z | """
Module for argument parcer.
Many of the arguments are from Huggingface's run_squad example:
https://github.com/huggingface/transformers/blob/7972a4019f4bc9f85fd358f42249b90f9cd27c68/examples/run_squad.py
"""
import argparse
import os
args = argparse.ArgumentParser(description='nmt translation')
args.add_argume... | 29.528169 | 111 | 0.559504 | 473 | 4,193 | 4.835095 | 0.300211 | 0.085702 | 0.183647 | 0.026235 | 0.306515 | 0.207696 | 0.104066 | 0.104066 | 0.039353 | 0 | 0 | 0.020044 | 0.238493 | 4,193 | 141 | 112 | 29.737589 | 0.69621 | 0.230861 | 0 | 0.277228 | 0 | 0 | 0.310909 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 1 | 0.009901 | false | 0 | 0.019802 | 0 | 0.029703 | 0.009901 | 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 |
295f5f789484498162bfb94eb0443aa10dd2b8a0 | 423 | py | Python | NA_Project/NA_WebApp/migrations/0015_recipe_photo.py | BounSweFerhatSal/swe573 | bd7e18f41a54c842db73176cf13c8e227b539be0 | [
"MIT"
] | 1 | 2020-06-23T12:14:50.000Z | 2020-06-23T12:14:50.000Z | NA_Project/NA_WebApp/migrations/0015_recipe_photo.py | BounSweFerhatSal/NutrAssistant | bd7e18f41a54c842db73176cf13c8e227b539be0 | [
"MIT"
] | 36 | 2020-05-03T15:45:59.000Z | 2021-09-22T19:06:53.000Z | NA_Project/NA_WebApp/migrations/0015_recipe_photo.py | BounSweFerhatSal/swe573 | bd7e18f41a54c842db73176cf13c8e227b539be0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-06-22 13:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('NA_WebApp', '0014_portion_fdc_id'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='photo',
... | 22.263158 | 92 | 0.614657 | 48 | 423 | 5.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061093 | 0.264775 | 423 | 18 | 93 | 23.5 | 0.749196 | 0.106383 | 0 | 0 | 1 | 0 | 0.183511 | 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 |
2969f849f698a3eae757e18cbeeb85c053562bcc | 7,160 | py | Python | src/openlets/core/db.py | dnephin/openLETS | e5d14de1c4483dc2c47900ce521151c39b881543 | [
"BSD-3-Clause"
] | 6 | 2015-10-30T08:08:42.000Z | 2021-07-26T17:12:08.000Z | src/openlets/core/db.py | dnephin/openLETS | e5d14de1c4483dc2c47900ce521151c39b881543 | [
"BSD-3-Clause"
] | null | null | null | src/openlets/core/db.py | dnephin/openLETS | e5d14de1c4483dc2c47900ce521151c39b881543 | [
"BSD-3-Clause"
] | 4 | 2017-09-21T20:07:07.000Z | 2020-10-18T02:32:14.000Z | """
Database Acess Layer
"""
import datetime
import itertools
import operator
from django.db.models import Q
from django.db import transaction
from django.core.exceptions import ObjectDoesNotExist
from openlets.core import models
def get_balance(persona, personb, currency):
"""Load a balance between two persons.
... | 26.518519 | 79 | 0.760056 | 933 | 7,160 | 5.62701 | 0.19507 | 0.04819 | 0.030476 | 0.034286 | 0.261333 | 0.212952 | 0.154476 | 0.124381 | 0.077333 | 0.038476 | 0 | 0.001617 | 0.136173 | 7,160 | 269 | 80 | 26.6171 | 0.847211 | 0.167039 | 0 | 0.222222 | 0 | 0 | 0.078117 | 0.02729 | 0 | 0 | 0 | 0.011152 | 0 | 1 | 0.084656 | false | 0 | 0.037037 | 0 | 0.206349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
296b7092895fc92c785c9ae58bb07bf63cd6361d | 4,537 | py | Python | tests/test_versions_calver.py | Luminaar/cocobump | 5771b0d1bb3be011f9485bc77057c0bc15ce0352 | [
"BSD-3-Clause"
] | null | null | null | tests/test_versions_calver.py | Luminaar/cocobump | 5771b0d1bb3be011f9485bc77057c0bc15ce0352 | [
"BSD-3-Clause"
] | 3 | 2021-07-20T08:01:36.000Z | 2021-08-01T03:11:32.000Z | tests/test_versions_calver.py | Luminaar/cocobump | 5771b0d1bb3be011f9485bc77057c0bc15ce0352 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import pytest
import time_machine
from convbump.configs import UpdateConfig
from convbump.versions.calver import SHORT_YEAR_START, CalVer
UTCNOW = datetime.datetime.utcnow()
YEAR = UTCNOW.year
SHORT_YEAR = YEAR - SHORT_YEAR_START
MONTH = UTCNOW.month
DAY = UTCNOW.day
@pytest.mark.parametrize(
... | 26.377907 | 77 | 0.43024 | 426 | 4,537 | 4.279343 | 0.152582 | 0.144816 | 0.171146 | 0.078991 | 0.658256 | 0.617663 | 0.617663 | 0.614372 | 0.614372 | 0.614372 | 0 | 0.062326 | 0.444787 | 4,537 | 171 | 78 | 26.532164 | 0.661374 | 0 | 0 | 0.617284 | 0 | 0 | 0.275733 | 0.00551 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.012346 | false | 0 | 0.030864 | 0 | 0.04321 | 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 |
296c2795cdb21dff5d363b437f61ebe3e3bcadb2 | 1,221 | py | Python | setup.py | jm-begon/pt_inspector | 3852d28418755fa8ec21e1abf1feb60dd85ef256 | [
"BSD-3-Clause"
] | null | null | null | setup.py | jm-begon/pt_inspector | 3852d28418755fa8ec21e1abf1feb60dd85ef256 | [
"BSD-3-Clause"
] | 2 | 2018-12-03T12:50:27.000Z | 2018-12-03T12:58:49.000Z | setup.py | montefiore-ai/pt-inspector | 3852d28418755fa8ec21e1abf1feb60dd85ef256 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Authors: Jean-Michel Begon
#
# License: BSD 3 clause
from distutils.core import setup
import pt_inspector
if __name__ == '__main__':
setup(name="pt_inspector",
version=pt_inspector.__version__,
author="Jean-Michel Begon",
author_email="jm.begon@gmail.com",
... | 33 | 75 | 0.559378 | 113 | 1,221 | 5.876106 | 0.699115 | 0.082831 | 0.045181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006017 | 0.31941 | 1,221 | 36 | 76 | 33.916667 | 0.79302 | 0.056511 | 0 | 0 | 0 | 0 | 0.468178 | 0.01918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.074074 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
296ff92cf927c9e50290ac757e54214231089918 | 1,978 | py | Python | 25_Supervised Learning with scikit-learn/04_Preprocessing-pipelines/02_creating-dummy-variables.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 25_Supervised Learning with scikit-learn/04_Preprocessing-pipelines/02_creating-dummy-variables.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 25_Supervised Learning with scikit-learn/04_Preprocessing-pipelines/02_creating-dummy-variables.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
02 - Creating dummy variables
As Andy discussed in the video, scikit-learn does not accept non-numerical features.
You saw in the previous exercise that the 'Region' feature contains very useful
information that can predict life expectancy.
For example: Sub-Saharan Africa has a lower life expectancy compar... | 38.038462 | 91 | 0.727503 | 290 | 1,978 | 4.837931 | 0.424138 | 0.062723 | 0.031361 | 0.048468 | 0.416251 | 0.416251 | 0.39273 | 0.364932 | 0.269423 | 0.269423 | 0 | 0.002463 | 0.178969 | 1,978 | 51 | 92 | 38.784314 | 0.861453 | 0.600101 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
29727ba2bd817a5640200f317700f8c4815a7eb6 | 7,181 | py | Python | cs15211/Implement_Stack_Using_Queues.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2021-07-05T01:53:30.000Z | 2021-07-05T01:53:30.000Z | cs15211/Implement_Stack_Using_Queues.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | null | null | null | cs15211/Implement_Stack_Using_Queues.py | JulyKikuAkita/PythonPrac | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | [
"Apache-2.0"
] | 1 | 2018-01-08T07:14:08.000Z | 2018-01-08T07:14:08.000Z | __source__ = 'https://leetcode.com/problems/implement-stack-using-queues/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/implement-stack-using-queues.py
# Time: push: O(n), pop: O(1), top: O(1)
# Space: O(n)
#
# Description: Leetcode # 225. Implement Stack using Queues
#
# Implement the following operations... | 22.652997 | 89 | 0.558836 | 928 | 7,181 | 4.266164 | 0.199353 | 0.018944 | 0.032331 | 0.047739 | 0.506188 | 0.429907 | 0.423844 | 0.365749 | 0.303107 | 0.28391 | 0 | 0.018724 | 0.308314 | 7,181 | 317 | 90 | 22.652997 | 0.778337 | 0.193984 | 0 | 0.373786 | 0 | 0.009709 | 0.677339 | 0.01174 | 0 | 0 | 0 | 0 | 0.004854 | 1 | 0.106796 | false | 0 | 0.009709 | 0.038835 | 0.247573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2972f673298db243f289ff1cc7a3083e8cdce8e6 | 3,446 | py | Python | mkTargeted/mkN200.py | Fizzics/desCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | 2 | 2020-02-21T16:13:37.000Z | 2020-02-21T16:26:03.000Z | mkTargeted/mkN200.py | boada/HETDEXCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | null | null | null | mkTargeted/mkN200.py | boada/HETDEXCluster | 43a8cff54619f85e837afd2f78aa9be8ec6ac8c6 | [
"MIT"
] | null | null | null | from multiprocessing import Pool
import h5py as hdf
import numpy as np
from data_handler import mkN200Data
from halo_handler import find_indices, find_indices_multi
from astLib import astCalc as aca
from astLib import astCoords as aco
import os
# buzzard simulation cosmology
aca.H0 = 70
aca.OMEGA_M0 = 0.286
aca.OMEGA_... | 30.495575 | 78 | 0.602728 | 465 | 3,446 | 4.395699 | 0.391398 | 0.017613 | 0.015656 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056006 | 0.248694 | 3,446 | 112 | 79 | 30.767857 | 0.733488 | 0.099536 | 0 | 0 | 0 | 0 | 0.070442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013699 | 0.109589 | null | null | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
297bac32fb968e795baeecfd39d9ed61f29afc9c | 3,162 | py | Python | anuga/operators/base_operator.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 136 | 2015-05-07T05:47:43.000Z | 2022-02-16T03:07:40.000Z | anuga/operators/base_operator.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 184 | 2015-05-03T09:27:54.000Z | 2021-12-20T04:22:48.000Z | anuga/operators/base_operator.py | samcom12/anuga_core | f4378114dbf02d666fe6423de45798add5c42806 | [
"Python-2.0",
"OLDAP-2.7"
] | 70 | 2015-03-18T07:35:22.000Z | 2021-11-01T07:07:29.000Z | from __future__ import print_function
from builtins import object
from anuga.utilities.system_tools import log_to_file
class Operator(object):
"""Operator - generic structure for a fractional operator
This is the base class for all fractional step operators
"""
counter = 0
def __init__(se... | 24.703125 | 84 | 0.622391 | 367 | 3,162 | 5.166213 | 0.283379 | 0.063291 | 0.028481 | 0.044304 | 0.212025 | 0.187764 | 0.175105 | 0.046414 | 0.046414 | 0 | 0 | 0.00135 | 0.29728 | 3,162 | 127 | 85 | 24.897638 | 0.851935 | 0.129981 | 0 | 0.126984 | 0 | 0 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.206349 | false | 0 | 0.063492 | 0.031746 | 0.380952 | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
29847c37e5dcceb946a6e1a61e529951d1e373ec | 1,302 | py | Python | scripts/libnspv_clients_spam.py | SirSevenG/komodo-cctools-python | d05b462fcbec87ada5144b5d634162c47fa2bf21 | [
"MIT"
] | 7 | 2019-05-16T16:38:48.000Z | 2021-06-19T08:20:09.000Z | scripts/libnspv_clients_spam.py | MCLCoreTeam/komodo-cctools-python | ce69ebc2cd013ad9e6e022ff97775e1b46fe4fb6 | [
"MIT"
] | 13 | 2019-06-03T06:24:53.000Z | 2019-09-26T08:37:55.000Z | scripts/libnspv_clients_spam.py | MCLCoreTeam/komodo-cctools-python | ce69ebc2cd013ad9e6e022ff97775e1b46fe4fb6 | [
"MIT"
] | 8 | 2019-06-02T01:19:44.000Z | 2021-02-26T14:25:31.000Z | import time
import subprocess
import requests
"""
Libnspv has no analog to komodod's -connect= parameter
You are supposed to run this script after modifying coins file
and add a 0 && to the if statement on line 389 in netspv.c.
Obviously, recompile nspv executable with this changes.
"""
# init params
nspv... | 27.702128 | 94 | 0.639785 | 173 | 1,302 | 4.641619 | 0.578035 | 0.041096 | 0.048568 | 0.067248 | 0.144458 | 0.144458 | 0.144458 | 0.144458 | 0 | 0 | 0 | 0.026667 | 0.251152 | 1,302 | 46 | 95 | 28.304348 | 0.796923 | 0.107527 | 0 | 0.076923 | 0 | 0 | 0.075221 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.115385 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
29858903e0996006cbbad2109298ffc4edeedae9 | 772 | py | Python | titiler_pds/settings.py | drnextgis/titiler-pds | 78860c41afc5207c243afba95d0847d3060f3820 | [
"MIT"
] | 10 | 2020-10-05T21:51:10.000Z | 2021-07-21T16:36:45.000Z | titiler_pds/settings.py | drnextgis/titiler-pds | 78860c41afc5207c243afba95d0847d3060f3820 | [
"MIT"
] | 3 | 2020-12-18T22:11:51.000Z | 2021-02-04T02:17:21.000Z | titiler_pds/settings.py | drnextgis/titiler-pds | 78860c41afc5207c243afba95d0847d3060f3820 | [
"MIT"
] | 2 | 2021-03-13T10:56:49.000Z | 2021-09-07T02:38:15.000Z | """app settings"""
import pydantic
class MosaicSettings(pydantic.BaseSettings):
"""Application settings"""
backend: str
host: str
# format will be ignored for dynamodb backend
format: str = ".json.gz"
class Config:
"""model config"""
env_file = ".env"
env_prefix = "... | 20.864865 | 58 | 0.638601 | 85 | 772 | 5.682353 | 0.588235 | 0.068323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006745 | 0.231865 | 772 | 36 | 59 | 21.444444 | 0.807757 | 0.182642 | 0 | 0 | 0 | 0 | 0.087603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2986ee831828801af1d2bf160b99a908cad544d1 | 3,578 | py | Python | embeddings/estimators.py | MetaExp/backend | 9e37257ed40a1c90ffb7212d3f756a8da201e3bd | [
"MIT"
] | 1 | 2018-01-25T21:22:12.000Z | 2018-01-25T21:22:12.000Z | embeddings/estimators.py | MetaExp/backend | 9e37257ed40a1c90ffb7212d3f756a8da201e3bd | [
"MIT"
] | 57 | 2018-01-24T15:38:40.000Z | 2018-04-20T08:48:38.000Z | embeddings/estimators.py | MetaExp/backend | 9e37257ed40a1c90ffb7212d3f756a8da201e3bd | [
"MIT"
] | null | null | null | import tensorflow as tf
import logging
logger = logging.getLogger('MetaExp.meta2vec')
def create_word2vec_estimator(vocab_size: int, model_fn, model_dir, embedding_size: int, optimizer: str, loss: str,
gpu_memory: float):
features = tf.feature_column.categorical_column_with_hash_buc... | 53.402985 | 122 | 0.551425 | 340 | 3,578 | 5.444118 | 0.291176 | 0.056186 | 0.048622 | 0.024311 | 0.639654 | 0.623447 | 0.581307 | 0.581307 | 0.556456 | 0.498109 | 0 | 0.017202 | 0.382616 | 3,578 | 66 | 123 | 54.212121 | 0.820733 | 0.033538 | 0 | 0.603448 | 0 | 0 | 0.053819 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
461d40d3e60677e976ff576ac89bc8a95fe657c9 | 10,965 | py | Python | pypy/objspace/std/specialisedtupleobject.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2016-07-06T23:30:20.000Z | 2017-05-30T15:59:31.000Z | pypy/objspace/std/specialisedtupleobject.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | null | null | null | pypy/objspace/std/specialisedtupleobject.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2020-07-09T08:14:22.000Z | 2021-01-15T18:01:25.000Z | from pypy.interpreter.error import OperationError
from pypy.objspace.std.model import registerimplementation
from pypy.objspace.std.register_all import register_all
from pypy.objspace.std.multimethod import FailedToImplement
from pypy.objspace.std.tupleobject import W_AbstractTupleObject
from pypy.objspace.std.tupleobj... | 35.833333 | 81 | 0.604469 | 1,340 | 10,965 | 4.643284 | 0.167164 | 0.044359 | 0.038573 | 0.017679 | 0.384603 | 0.335101 | 0.28351 | 0.233687 | 0.192382 | 0.181453 | 0 | 0.013084 | 0.302964 | 10,965 | 305 | 82 | 35.95082 | 0.800994 | 0.237027 | 0 | 0.302083 | 0 | 0 | 0.018462 | 0.003037 | 0 | 0 | 0.000972 | 0 | 0.020833 | 0 | null | null | 0.010417 | 0.072917 | 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 |
46244cb5b0efd3ad07e715d25b2ebff9c5d94038 | 535 | py | Python | OMS/core/migrations/0009_auto_20200421_2142.py | DevLemp/OMS | 5fec7b4a1e80c83f118411405fbd8da7138a7c36 | [
"MIT"
] | null | null | null | OMS/core/migrations/0009_auto_20200421_2142.py | DevLemp/OMS | 5fec7b4a1e80c83f118411405fbd8da7138a7c36 | [
"MIT"
] | null | null | null | OMS/core/migrations/0009_auto_20200421_2142.py | DevLemp/OMS | 5fec7b4a1e80c83f118411405fbd8da7138a7c36 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-04-21 20:42
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20200421_2058'),
]
operations = [
migrations.RemoveField(
model_name='user_movie',
... | 22.291667 | 70 | 0.596262 | 55 | 535 | 5.654545 | 0.709091 | 0.057878 | 0.083601 | 0.115756 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084656 | 0.293458 | 535 | 23 | 71 | 23.26087 | 0.738095 | 0.084112 | 0 | 0.235294 | 1 | 0 | 0.135246 | 0.047131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
462935c0163e94b87fae5fa55b59404cd5f2325c | 1,419 | py | Python | poc/classes/ContextConstructor.py | bookofproofs/fpl | 527b43b0f8bb3d459ee906e5ed8524a676ce3a2c | [
"MIT"
] | 4 | 2021-11-08T10:09:46.000Z | 2021-11-13T22:25:46.000Z | poc/classes/ContextConstructor.py | bookofproofs/fpl | 527b43b0f8bb3d459ee906e5ed8524a676ce3a2c | [
"MIT"
] | 1 | 2020-09-04T13:02:09.000Z | 2021-06-16T07:07:44.000Z | poc/classes/ContextConstructor.py | bookofproofs/fpl | 527b43b0f8bb3d459ee906e5ed8524a676ce3a2c | [
"MIT"
] | 1 | 2021-11-08T10:10:12.000Z | 2021-11-08T10:10:12.000Z | """
This file was generated by the tool TatSuSAG (the TatSu syntax analyser generator)
Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
"""
from poc.classes.AuxISourceAnalyser import AuxISourceAnalyser
from poc.classes.AuxInterpretation import AuxInterpretation
from poc.cl... | 44.34375 | 99 | 0.744891 | 160 | 1,419 | 6.38125 | 0.4625 | 0.076396 | 0.054848 | 0.05093 | 0.135162 | 0.080313 | 0.080313 | 0 | 0 | 0 | 0 | 0 | 0.181113 | 1,419 | 31 | 100 | 45.774194 | 0.878657 | 0.128964 | 0 | 0 | 1 | 0 | 0.026873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.380952 | 0 | 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 |
462ec5acc6f3b1d0c9785a74237a4ff12ec3fc61 | 5,555 | py | Python | mocam720-01.py | skilo83/MOCAM-720-01-Custom-setup-tool | b097c148dd2402a68f2407ae3cd66de22a165245 | [
"MIT"
] | 6 | 2020-05-22T01:57:57.000Z | 2022-01-31T01:33:00.000Z | mocam720-01.py | skilo83/MOCAM-720-01-Custom-setup-tool | b097c148dd2402a68f2407ae3cd66de22a165245 | [
"MIT"
] | null | null | null | mocam720-01.py | skilo83/MOCAM-720-01-Custom-setup-tool | b097c148dd2402a68f2407ae3cd66de22a165245 | [
"MIT"
] | 5 | 2020-11-20T05:21:23.000Z | 2021-12-19T13:53:10.000Z | # MOCAM 720-01 Custom setup tool v1.0
import sys
import socket
def subCypher(ssid, passwd):
#The wifi credentials must be encoded with this cypher or the camera will reject them
#as of version 1.0 this list is incomplete and does not yet contain special chars
#so ssid's containing special chars wi... | 33.263473 | 178 | 0.377678 | 584 | 5,555 | 3.476027 | 0.280822 | 0.027586 | 0.023645 | 0.023645 | 0.170443 | 0.143842 | 0.143842 | 0.143842 | 0.143842 | 0.143842 | 0 | 0.027348 | 0.453645 | 5,555 | 167 | 179 | 33.263473 | 0.641516 | 0.049325 | 0 | 0.08 | 0 | 0 | 0.156525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.053333 | 0.013333 | 0 | 0.04 | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
462f696947b7452b2082ee3bd7016dc3c3c203e7 | 5,241 | py | Python | scrtbp/taylor/events.py | cfknittel/scrtbp | aab473f94686c49ac068e8fa30f254b63c8f490b | [
"MIT"
] | null | null | null | scrtbp/taylor/events.py | cfknittel/scrtbp | aab473f94686c49ac068e8fa30f254b63c8f490b | [
"MIT"
] | null | null | null | scrtbp/taylor/events.py | cfknittel/scrtbp | aab473f94686c49ac068e8fa30f254b63c8f490b | [
"MIT"
] | null | null | null | import numpy as np
import numba as nb
import scrtbp.exceptions as exceptions
from scrtbp.taylor import expansion
from scrtbp.taylor import steppers
from scrtbp.util import root
def generate_event_observer(StepperClass, FuncAdapter, one_way_mode=True):
if one_way_mode:
# only - to + roots are detected
... | 30.12069 | 79 | 0.613623 | 629 | 5,241 | 4.879173 | 0.176471 | 0.046595 | 0.01955 | 0.016944 | 0.607038 | 0.583904 | 0.570218 | 0.570218 | 0.550668 | 0.550668 | 0 | 0.02274 | 0.303568 | 5,241 | 173 | 80 | 30.294798 | 0.818082 | 0.013547 | 0 | 0.58156 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099291 | false | 0 | 0.042553 | 0.021277 | 0.241135 | 0 | 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 |
463aa5a0a16edb249851785378c5004785aeaa69 | 269 | py | Python | web.py | josuel23/CD_heroku | d8de443e18c74f5b568555c6c80d04e4e09ce20a | [
"MIT"
] | null | null | null | web.py | josuel23/CD_heroku | d8de443e18c74f5b568555c6c80d04e4e09ce20a | [
"MIT"
] | null | null | null | web.py | josuel23/CD_heroku | d8de443e18c74f5b568555c6c80d04e4e09ce20a | [
"MIT"
] | null | null | null | import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "FACULDADE IMPACTA - ENGENHARIA DA COMPUTAÇÃO"
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port)
| 20.692308 | 58 | 0.635688 | 38 | 269 | 4.184211 | 0.657895 | 0.037736 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037559 | 0.208178 | 269 | 12 | 59 | 22.416667 | 0.70892 | 0 | 0 | 0 | 0 | 0 | 0.249027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
46496ca18f8ad4d3b47d329b940b2a21160364c1 | 516 | py | Python | inventory/migrations/0013_alter_group_vars.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | inventory/migrations/0013_alter_group_vars.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | inventory/migrations/0013_alter_group_vars.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-24 15:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inventory', '0012_remove_group_hosts_host_groups'),
]
operations = [
migrations.AlterField(
mod... | 25.8 | 136 | 0.658915 | 61 | 516 | 5.442623 | 0.704918 | 0.072289 | 0.084337 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0475 | 0.224806 | 516 | 19 | 137 | 27.157895 | 0.7825 | 0.087209 | 0 | 0 | 1 | 0 | 0.151386 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4649affda2629ba3400a75b75bfedf8032db1a5d | 1,124 | py | Python | Number_of_Islands.py | thydeyx/LeetCode-Python | 03296dfa37910ef13b0726bde5e757b52f1590d7 | [
"MIT"
] | 1 | 2017-05-21T04:28:37.000Z | 2017-05-21T04:28:37.000Z | Number_of_Islands.py | thydeyx/LeetCode-Python | 03296dfa37910ef13b0726bde5e757b52f1590d7 | [
"MIT"
] | null | null | null | Number_of_Islands.py | thydeyx/LeetCode-Python | 03296dfa37910ef13b0726bde5e757b52f1590d7 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
#
# Author : TangHanYi
# E-mail : thydeyx@163.com
# Create Date : 2016-12-12 05:19:31 PM
# Last modified : 2016-12-13 02:44:30 PM
# File Name : Number_of_Islands.py
# Desc :
class Solution(object):
def findIsland(self, i, j):
self.visited[i][j] = True
for d ... | 21.207547 | 107 | 0.55516 | 198 | 1,124 | 3.10101 | 0.363636 | 0.016287 | 0.029316 | 0.053746 | 0.039088 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087379 | 0.266904 | 1,124 | 52 | 108 | 21.615385 | 0.657767 | 0.185943 | 0 | 0.114286 | 0 | 0 | 0.033113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4649e5db17e3749ce016fae779095a289938b58a | 6,510 | py | Python | ScatterplotWithMatPlotLibAndTkinter.py | mchl02/ScatterplotAnalysisWithPython | 936b538a91f6f662f1cc509568e3bdcfe78a4386 | [
"MIT"
] | 1 | 2019-04-03T00:37:34.000Z | 2019-04-03T00:37:34.000Z | ScatterplotWithMatPlotLibAndTkinter.py | mchl02/ScatterplotAnalysisWithPython | 936b538a91f6f662f1cc509568e3bdcfe78a4386 | [
"MIT"
] | null | null | null | ScatterplotWithMatPlotLibAndTkinter.py | mchl02/ScatterplotAnalysisWithPython | 936b538a91f6f662f1cc509568e3bdcfe78a4386 | [
"MIT"
] | null | null | null | #Program made by mchl02
#WARNING PROGRAM USES PYTHON 2.7
import matplotlib
import fileinput
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
# implement the default mpl key bindings
from matplotlib.backend_bases import key_press_handler
from matplotl... | 33.73057 | 124 | 0.774347 | 1,115 | 6,510 | 4.288789 | 0.194619 | 0.027185 | 0.033877 | 0.026349 | 0.303011 | 0.224383 | 0.212882 | 0.13279 | 0.109578 | 0.068172 | 0 | 0.012239 | 0.146544 | 6,510 | 192 | 125 | 33.90625 | 0.848452 | 0.169892 | 0 | 0.034483 | 0 | 0 | 0.185347 | 0.006849 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077586 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
465102635a4ea18f08d691484f9565e5524af7a8 | 1,039 | py | Python | pineboolib/q3widgets/qline.py | juanjosepablos/pineboo | f6ce515aec6e0139821bb9c1d62536d9fb50dae4 | [
"MIT"
] | null | null | null | pineboolib/q3widgets/qline.py | juanjosepablos/pineboo | f6ce515aec6e0139821bb9c1d62536d9fb50dae4 | [
"MIT"
] | 1 | 2017-10-30T22:00:48.000Z | 2017-11-11T19:34:32.000Z | pineboolib/q3widgets/qline.py | juanjosepablos/pineboo | f6ce515aec6e0139821bb9c1d62536d9fb50dae4 | [
"MIT"
] | 1 | 2017-10-30T20:16:38.000Z | 2017-10-30T20:16:38.000Z | """QLine module."""
# -*- coding: utf-8 -*-
from PyQt5 import QtWidgets # type: ignore
from typing import Optional
class QLine(QtWidgets.QFrame):
"""QLine class."""
_object_name: Optional[str]
_orientation: int
def __init__(self, parent) -> None:
"""Inicialize."""
super().__init__(... | 24.162791 | 71 | 0.622714 | 108 | 1,039 | 5.777778 | 0.398148 | 0.096154 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.249278 | 1,039 | 42 | 72 | 24.738095 | 0.79359 | 0.154957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46549803f4b12bdd864a767175378b0427076f2e | 770 | py | Python | test/test_del_contact.py | antonsatarov/python_training | 628856ce9ab01bb9a3bd778eef073ccbdd989f1f | [
"Apache-2.0"
] | null | null | null | test/test_del_contact.py | antonsatarov/python_training | 628856ce9ab01bb9a3bd778eef073ccbdd989f1f | [
"Apache-2.0"
] | null | null | null | test/test_del_contact.py | antonsatarov/python_training | 628856ce9ab01bb9a3bd778eef073ccbdd989f1f | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
from random import randrange
def test_delete_some_contact(app):
if app.contact.count() == 0:
app.contact.create(Contact(firstname="firstname", lastname="lastname", address="address", email1="email1",
email2="email2", email3="email3", hom... | 48.125 | 121 | 0.668831 | 97 | 770 | 5.061856 | 0.402062 | 0.201629 | 0.142566 | 0.12831 | 0.197556 | 0.142566 | 0.142566 | 0 | 0 | 0 | 0 | 0.04085 | 0.205195 | 770 | 16 | 122 | 48.125 | 0.761438 | 0 | 0 | 0 | 0 | 0 | 0.079118 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 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 |
465719f8efc06821902a90246e0f5ac4b4dd3eee | 8,592 | py | Python | app.py | TyroneZeka/Flask-Blog | 0ed5581aa2e8a633611f1f06c279efd3bbd62132 | [
"MIT"
] | null | null | null | app.py | TyroneZeka/Flask-Blog | 0ed5581aa2e8a633611f1f06c279efd3bbd62132 | [
"MIT"
] | null | null | null | app.py | TyroneZeka/Flask-Blog | 0ed5581aa2e8a633611f1f06c279efd3bbd62132 | [
"MIT"
] | null | null | null | from flask import Flask,render_template, request, redirect, url_for, abort, flash, session
import sqlalchemy
from werkzeug.security import generate_password_hash
from flask_login import login_manager, login_user, login_required,logout_user,current_user,LoginManager
from flask_user import roles_required
from datetime im... | 35.8 | 103 | 0.669926 | 1,074 | 8,592 | 5.198324 | 0.172253 | 0.027584 | 0.03027 | 0.032241 | 0.373455 | 0.312556 | 0.276196 | 0.250403 | 0.22873 | 0.202042 | 0 | 0.005262 | 0.203678 | 8,592 | 240 | 104 | 35.8 | 0.810728 | 0.150605 | 0 | 0.261628 | 1 | 0 | 0.101625 | 0.022033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087209 | false | 0.046512 | 0.098837 | 0.023256 | 0.325581 | 0 | 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 |
465bc16e7eb3824e7acbe548b671a4ac66173505 | 889 | py | Python | lino_xl/lib/pages/fixtures/man.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2018-01-12T14:09:48.000Z | 2018-01-12T14:09:48.000Z | lino_xl/lib/pages/fixtures/man.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | 1 | 2019-09-10T05:03:47.000Z | 2019-09-10T05:03:47.000Z | lino_xl/lib/pages/fixtures/man.py | khchine5/xl | b1634937a9ce87af1e948eb712b934b11f221d9d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
# Copyright 2012-2016 Luc Saffre
#
# License: BSD (see file COPYING for details)
"""
This fixture defines the content for pages `/man` and below.
Another attempt to provide a user manual.
This is a "reloadable" fixture. If you say::
python manage.py loaddata man
it will overwrite existin... | 21.166667 | 60 | 0.686164 | 123 | 889 | 4.845528 | 0.642276 | 0.050336 | 0.075503 | 0.053691 | 0.147651 | 0.147651 | 0.147651 | 0.147651 | 0.147651 | 0 | 0 | 0.011858 | 0.146232 | 889 | 41 | 61 | 21.682927 | 0.773386 | 0.359955 | 0 | 0.352941 | 0 | 0 | 0.599641 | 0.168761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
465d85a99ef3bca964c8423e922968d5b725637c | 9,836 | py | Python | TranscriptionEvaluation/Evaluator.py | KarimTarabishy/TMIXT | 86009f5a0b06c8698e761bc0cad2d003d4c54f34 | [
"MIT"
] | 8 | 2019-08-21T12:01:28.000Z | 2021-06-17T20:14:19.000Z | TranscriptionEvaluation/Evaluator.py | KarimTarabishy/TMIXT | 86009f5a0b06c8698e761bc0cad2d003d4c54f34 | [
"MIT"
] | 1 | 2020-01-02T09:11:23.000Z | 2020-01-02T09:11:23.000Z | TranscriptionEvaluation/Evaluator.py | fadymedhat/TMIXT | 86009f5a0b06c8698e761bc0cad2d003d4c54f34 | [
"MIT"
] | 3 | 2019-08-30T13:43:11.000Z | 2021-04-12T10:05:31.000Z | import os
import difflib
import Utils
import Constants
import numpy as np
from fuzzywuzzy import fuzz
from Tokenizer import Tokenizer
from LevenshteinEvaluation import LevenshteinEvaluation
from F1ScoreEvaluation import F1ScoreEvaluation
from EmbeddingEvaluation import EmbeddingEvaluation
class Evaluator():
def ... | 39.502008 | 119 | 0.620476 | 964 | 9,836 | 6.08195 | 0.179461 | 0.055091 | 0.057309 | 0.067542 | 0.350333 | 0.217636 | 0.122463 | 0.082893 | 0.067542 | 0.026608 | 0 | 0.010503 | 0.264335 | 9,836 | 249 | 120 | 39.502008 | 0.799751 | 0.341907 | 0 | 0.033333 | 0 | 0 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.144444 | null | null | 0.233333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
465dea58d8fb3bbec280eaaf279012b5b7404669 | 6,590 | py | Python | mqtt/generate.py | SunWind2000/battery-monitor | ec8c58382389dc5bfe791aee0ab609a3c514ed8a | [
"MIT"
] | null | null | null | mqtt/generate.py | SunWind2000/battery-monitor | ec8c58382389dc5bfe791aee0ab609a3c514ed8a | [
"MIT"
] | null | null | null | mqtt/generate.py | SunWind2000/battery-monitor | ec8c58382389dc5bfe791aee0ab609a3c514ed8a | [
"MIT"
] | null | null | null | """
生成电池系统模拟数据帧
Author: 孙昊阳
Created on: 2022/03/14
API:
- generate_module_id(_id=None)
- generate_common_frame_id(num)
- generate_feedback_frame_id(num)
- generate_data(Type)
- generate_verification(module_id, frame_id, data)
- generate_frame(module_id, frame_id, data, veri)
"""
import random
from mqtt.d... | 28.283262 | 78 | 0.573596 | 867 | 6,590 | 4.145329 | 0.183391 | 0.083472 | 0.054257 | 0.027546 | 0.619922 | 0.538676 | 0.494157 | 0.410684 | 0.390651 | 0.390651 | 0 | 0.066374 | 0.275266 | 6,590 | 232 | 79 | 28.405172 | 0.686139 | 0.173748 | 0 | 0.490446 | 1 | 0 | 0.043925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038217 | false | 0.012739 | 0.012739 | 0 | 0.089172 | 0.063694 | 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 |
466744c28b05bd9d6e854164e06650afb4afb5f3 | 1,010 | py | Python | saveHTMLlinks2.py | syurchi/google-image-scraper | b752320a43ffe8f5fdab3615cc0fff8bbd5a92f3 | [
"MIT"
] | null | null | null | saveHTMLlinks2.py | syurchi/google-image-scraper | b752320a43ffe8f5fdab3615cc0fff8bbd5a92f3 | [
"MIT"
] | null | null | null | saveHTMLlinks2.py | syurchi/google-image-scraper | b752320a43ffe8f5fdab3615cc0fff8bbd5a92f3 | [
"MIT"
] | null | null | null | #Step 2: run in terminal
#using detailed image links from google image search, find and save full image link.
import urllib2
import re
def find_html_link2(l):
if re.match(urlpattern, l):
urlData = url.open(l)
data = urlData.read()
match = re.search(urlpattern, data)
strLinkList.append(urllib2.unquote(match.g... | 21.956522 | 108 | 0.647525 | 147 | 1,010 | 4.340136 | 0.537415 | 0.037618 | 0.047022 | 0.043887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014252 | 0.166337 | 1,010 | 45 | 109 | 22.444444 | 0.743468 | 0.153465 | 0 | 0.064516 | 0 | 0.032258 | 0.235018 | 0.109283 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
466bc7977368a27298da4a3c6fbd05d65ea45359 | 493 | py | Python | lfd/tpsopt/settings.py | def670/lfd | 9fef15f556cba49dd4b42c0c29505a4137f95fc5 | [
"BSD-2-Clause"
] | 36 | 2015-05-22T14:47:18.000Z | 2021-07-27T15:30:36.000Z | lfd/tpsopt/settings.py | jeffmahler/lfd | ecc6b934db098c0b1af9946454917b6dc911cb74 | [
"BSD-2-Clause"
] | null | null | null | lfd/tpsopt/settings.py | jeffmahler/lfd | ecc6b934db098c0b1af9946454917b6dc911cb74 | [
"BSD-2-Clause"
] | 13 | 2015-05-22T15:38:07.000Z | 2021-07-28T03:20:35.000Z | N_ITER_CHEAP = 10
N_ITER_EXACT = 50
EM_ITER_CHEAP = 1
DEFAULT_LAMBDA = (.1, .001)
MAX_CLD_SIZE = 150
MAX_TRAJ_LEN = 100
EXACT_LAMBDA = (10, .001)
DATA_DIM = 3
#DS_SIZE = 0.03 # for fig8
DS_SIZE = 0.025 # for overhand
N_STREAMS = 10
DEFAULT_... | 24.65 | 57 | 0.62069 | 75 | 493 | 3.76 | 0.693333 | 0.035461 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 0.300203 | 493 | 19 | 58 | 25.947368 | 0.701449 | 0.144016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
467140c3138c4d8f9f723836c30a4c5a31c677cd | 3,497 | py | Python | MENU_COMPUTO.py | Rocha117/Laboratorio_05 | 25a390aeff617cc7503ded8e1c0e912761382c30 | [
"MIT"
] | null | null | null | MENU_COMPUTO.py | Rocha117/Laboratorio_05 | 25a390aeff617cc7503ded8e1c0e912761382c30 | [
"MIT"
] | null | null | null | MENU_COMPUTO.py | Rocha117/Laboratorio_05 | 25a390aeff617cc7503ded8e1c0e912761382c30 | [
"MIT"
] | null | null | null | import psycopg2
import Comandos
from os import system
class Usuario:
def __init__(self, username, password):
self.username = username
self.__password = password
def __check_usuario(self, username, password):
if (self.username == username):
if (self.__password =... | 30.675439 | 95 | 0.553617 | 320 | 3,497 | 4.9625 | 0.309375 | 0.034005 | 0.027708 | 0.037783 | 0.18262 | 0.09194 | 0.09194 | 0 | 0 | 0 | 0 | 0.013055 | 0.342865 | 3,497 | 113 | 96 | 30.946903 | 0.677981 | 0.01201 | 0 | 0.406593 | 0 | 0 | 0.336826 | 0.097006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065934 | false | 0.087912 | 0.032967 | 0 | 0.164835 | 0.296703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4671bda37b371d892d349dacbe02beb7699e9fc0 | 7,628 | py | Python | tests/pandemic/test_10_from_sqlalchemy.py | sasano8/magnet-migrade | b5669b34a6a3b845df8df96dfedaf967df6b88e2 | [
"MIT"
] | null | null | null | tests/pandemic/test_10_from_sqlalchemy.py | sasano8/magnet-migrade | b5669b34a6a3b845df8df96dfedaf967df6b88e2 | [
"MIT"
] | 4 | 2021-03-24T23:38:22.000Z | 2021-03-31T07:24:30.000Z | tests/pandemic/test_10_from_sqlalchemy.py | sasano8/magnet-migrade | b5669b34a6a3b845df8df96dfedaf967df6b88e2 | [
"MIT"
] | null | null | null | # type: ignore
from datetime import datetime, timezone
from inspect import signature
from typing import Any, Iterable, List
from sqlalchemy import (
ARRAY,
JSON,
Boolean,
Column,
DateTime,
ForeignKey,
Integer,
String,
create_engine,
)
from sqlalchemy.ext.declarative import declarati... | 34.672727 | 79 | 0.708836 | 959 | 7,628 | 5.466111 | 0.120959 | 0.197253 | 0.111599 | 0.096147 | 0.606257 | 0.586608 | 0.540824 | 0.535864 | 0.513735 | 0.491988 | 0 | 0.002274 | 0.192973 | 7,628 | 219 | 80 | 34.83105 | 0.849253 | 0.030021 | 0 | 0.497297 | 0 | 0 | 0.03613 | 0 | 0 | 0 | 0 | 0.004566 | 0.659459 | 1 | 0.021622 | false | 0 | 0.054054 | 0 | 0.156757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
4672b6bdacef0b63e95db420704c3730f9d94089 | 7,198 | py | Python | src/image_overlay/image_overlay.py | danielsnider/image_overlay_compass_and_scale | a869a11c0e74c3f0e34dea76deea4064b585a85c | [
"Unlicense"
] | 1 | 2017-07-16T02:40:50.000Z | 2017-07-16T02:40:50.000Z | src/image_overlay/image_overlay.py | danielsnider/image_overlay | a869a11c0e74c3f0e34dea76deea4064b585a85c | [
"Unlicense"
] | 1 | 2018-02-12T16:21:17.000Z | 2018-02-14T03:04:15.000Z | src/image_overlay/image_overlay.py | danielsnider/image_overlay | a869a11c0e74c3f0e34dea76deea4064b585a85c | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# Authors: Marcey and Daniel
#
import os
import sys
import cv2
import rospy
import click
import numpy as np
from std_msgs.msg import Float32
from sensor_msgs.msg import CompressedImage
from cv_bridge import CvBridge, CvBridgeError
def is_ros_node():
return 'unnamed' not in rospy.get_name()
#... | 36.912821 | 212 | 0.711725 | 1,110 | 7,198 | 4.441441 | 0.261261 | 0.024341 | 0.014604 | 0.01217 | 0.133063 | 0.100203 | 0.090872 | 0.072617 | 0.059229 | 0.029615 | 0 | 0.024586 | 0.169353 | 7,198 | 194 | 213 | 37.103093 | 0.799967 | 0.205613 | 0 | 0.069767 | 0 | 0 | 0.084749 | 0.004423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124031 | false | 0.100775 | 0.069767 | 0.007752 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4676e03b5b7ebaa8fae106595330d0dc410e0abc | 624 | py | Python | tests/basics/int_bytes_signed_intbig.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | null | null | null | tests/basics/int_bytes_signed_intbig.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | null | null | null | tests/basics/int_bytes_signed_intbig.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | null | null | null | print((2**64).to_bytes(9, "little",signed=False))
#signed shall be False by default
print((2**64).to_bytes(9, "little"))
# test min/max signed value
for i in [10]:
v = 2**(i*8 - 1) - 1
print(v)
vbytes = v.to_bytes(i, "little")
print(vbytes)
print(int.from_bytes(vbytes,"little"))
v = - (2**(i*8... | 26 | 55 | 0.634615 | 100 | 624 | 3.89 | 0.38 | 0.089974 | 0.03856 | 0.077121 | 0.586118 | 0.562982 | 0.562982 | 0.493573 | 0.143959 | 0 | 0 | 0.041096 | 0.18109 | 624 | 23 | 56 | 27.130435 | 0.720157 | 0.179487 | 0 | 0.235294 | 0 | 0 | 0.108055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46776f13b748c61a4a3970454660603492bba63a | 4,100 | py | Python | model/xgboost_learning_rate_dacay.py | SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration | eca7f44bc3bf1af0690305b45858359adac617b4 | [
"MIT"
] | 1 | 2017-09-18T07:37:54.000Z | 2017-09-18T07:37:54.000Z | model/xgboost_learning_rate_dacay.py | SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration | eca7f44bc3bf1af0690305b45858359adac617b4 | [
"MIT"
] | null | null | null | model/xgboost_learning_rate_dacay.py | SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration | eca7f44bc3bf1af0690305b45858359adac617b4 | [
"MIT"
] | null | null | null | #!/usr/local/miniconda2/bin/python
# _*_ coding: utf-8 _*_
"""
@author: MarkLiu
@time : 17-9-9 下午3:13
"""
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
sys.path.append(module_path)
import numpy as np
import pandas as pd
import xgboost as xgb
from sklearn.metrics import mean_squared_error
fr... | 31.538462 | 118 | 0.622683 | 534 | 4,100 | 4.5 | 0.35206 | 0.059925 | 0.024969 | 0.026217 | 0.116521 | 0.097378 | 0.070745 | 0.040782 | 0.040782 | 0 | 0 | 0.020665 | 0.244634 | 4,100 | 129 | 119 | 31.782946 | 0.755247 | 0.026098 | 0 | 0 | 0 | 0 | 0.166455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104167 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4678e3838e5cc4920aa112431ff2fbd5be13561b | 4,543 | py | Python | QuestionBox.py | ShalevAbadi/Popup-Trivia | 8beb9338e7f0cb089a0abc4690c7eda027ade794 | [
"CC-BY-3.0"
] | null | null | null | QuestionBox.py | ShalevAbadi/Popup-Trivia | 8beb9338e7f0cb089a0abc4690c7eda027ade794 | [
"CC-BY-3.0"
] | null | null | null | QuestionBox.py | ShalevAbadi/Popup-Trivia | 8beb9338e7f0cb089a0abc4690c7eda027ade794 | [
"CC-BY-3.0"
] | null | null | null | from Tkinter import *
font_type = "Helvetica"
green = "#01ce65"
red = "#fe3030"
category_color = "#16b6de"
white = "#ffffff"
close_button_str = "Close"
correct_str = "Correct!"
wrong_str = "Wrong!"
category_str = "Category: "
correct_answer_str = "The correct answer is: "
bold = "bold"
class AnswerB... | 40.20354 | 166 | 0.679727 | 584 | 4,543 | 4.97774 | 0.169521 | 0.057792 | 0.02408 | 0.028896 | 0.337461 | 0.181287 | 0.119367 | 0.088063 | 0.033712 | 0.033712 | 0 | 0.01909 | 0.215937 | 4,543 | 112 | 167 | 40.5625 | 0.797024 | 0 | 0 | 0.079545 | 0 | 0 | 0.020988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.011364 | 0.011364 | 0.352273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46797aaf043d1781cfccd51b9a00803d7273a716 | 420 | py | Python | pyplan/pyplan/filemanager/classes/fileEntry.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 17 | 2019-12-04T19:22:19.000Z | 2021-07-28T11:17:05.000Z | pyplan/pyplan/filemanager/classes/fileEntry.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 9 | 2019-12-13T15:34:43.000Z | 2022-02-10T11:43:00.000Z | pyplan/pyplan/filemanager/classes/fileEntry.py | jorgedouglas71/pyplan-ide | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | [
"MIT"
] | 5 | 2019-12-04T15:57:06.000Z | 2021-08-20T19:59:26.000Z | from enum import Enum
from .fileEntryData import FileEntryData
class eFileTypes(Enum):
NOTHING = 0
MY_FOLDER = 1
PUBLIC = 2
COMPANY = 3
MODELS_PATH = 4
SHARED_WITH_ME = 5
class FileEntry(object):
def __init__(self, show=True, text="", type=eFileTypes.NOTHING, data=FileEntryData()):
... | 22.105263 | 90 | 0.645238 | 54 | 420 | 4.87037 | 0.611111 | 0.060837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019417 | 0.264286 | 420 | 18 | 91 | 23.333333 | 0.831715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4679d03ef53c72571a539bb1d38c027cd6d9d81d | 2,048 | py | Python | model_center/model/config/config.py | zh-zheng/ModelCenter | 2b7fc148c48e41a2a024b32b8bd1f989d8b1f654 | [
"Apache-2.0"
] | null | null | null | model_center/model/config/config.py | zh-zheng/ModelCenter | 2b7fc148c48e41a2a024b32b8bd1f989d8b1f654 | [
"Apache-2.0"
] | null | null | null | model_center/model/config/config.py | zh-zheng/ModelCenter | 2b7fc148c48e41a2a024b32b8bd1f989d8b1f654 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 The OpenBMB team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.310345 | 85 | 0.701172 | 299 | 2,048 | 4.555184 | 0.404682 | 0.064611 | 0.029369 | 0.052863 | 0.182085 | 0.096916 | 0.096916 | 0.096916 | 0.060206 | 0.060206 | 0 | 0.00729 | 0.196289 | 2,048 | 57 | 86 | 35.929825 | 0.82017 | 0.291504 | 0 | 0.090909 | 0 | 0 | 0.035639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.181818 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46875bc03918c5546d83d9d574cf6b04b0ea9ab2 | 942 | py | Python | ex/ex079.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ex/ex079.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ex/ex079.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | '''Crie um programa onde o usuário possa digitar vários valores numéricos e cadastre-os em uma lista. Caso o número já
exista lá dentro, ele não será adicionado. No final, serão exibidos todos os valores únicos digitados, em ordem crescente.'''
lista = []
print('\033[1;33m-=\033[m' * 20)
while True:
n1 = int(input(... | 40.956522 | 125 | 0.63482 | 151 | 942 | 3.960265 | 0.509934 | 0.06689 | 0.075251 | 0.080268 | 0.143813 | 0.143813 | 0.143813 | 0.113712 | 0.090301 | 0.090301 | 0 | 0.129458 | 0.196391 | 942 | 22 | 126 | 42.818182 | 0.660502 | 0.252654 | 0 | 0.2 | 0 | 0 | 0.438395 | 0.030086 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4687df2cef892011c185b861d7e21d8efd3addcd | 882 | py | Python | hal/RAL_field.py | padraigryan/pyubx | 6b3069838b7a840e0bcfa66cb48f92b104de4347 | [
"MIT"
] | null | null | null | hal/RAL_field.py | padraigryan/pyubx | 6b3069838b7a840e0bcfa66cb48f92b104de4347 | [
"MIT"
] | null | null | null | hal/RAL_field.py | padraigryan/pyubx | 6b3069838b7a840e0bcfa66cb48f92b104de4347 | [
"MIT"
] | null | null | null | from RAL_base import *
import client
class RAL_field(RAL_base):
def __init__(self,label):
RAL_base.__init__(self, label)
self.size = 0
self.reg_offset = 0
self.value = 0
def _get_field_value(self, val):
mask = ~(0xFFFFFFFF << self.size)
return (val>>self.offset) & mask
def __... | 30.413793 | 91 | 0.619048 | 128 | 882 | 3.96875 | 0.296875 | 0.055118 | 0.102362 | 0.070866 | 0.149606 | 0.149606 | 0.149606 | 0.149606 | 0.149606 | 0 | 0 | 0.01173 | 0.226757 | 882 | 28 | 92 | 31.5 | 0.733138 | 0.1678 | 0 | 0 | 0 | 0 | 0.087551 | 0 | 0 | 0 | 0.01368 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
468a3cd2de85d3a26d9ab200a6cd0ad1c66c61fd | 439 | py | Python | ropy/backend/PyPlot/RobotPlot2.py | jhavl/ropy | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | [
"MIT"
] | 16 | 2020-02-20T10:28:01.000Z | 2021-07-12T09:03:25.000Z | ropy/backend/PyPlot/RobotPlot2.py | jhavl/ropy | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | [
"MIT"
] | 2 | 2020-04-27T01:35:44.000Z | 2020-04-27T23:19:53.000Z | ropy/backend/PyPlot/RobotPlot2.py | jhavl/ropy | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | [
"MIT"
] | 3 | 2020-04-07T03:00:02.000Z | 2020-09-05T23:49:28.000Z | #!/usr/bin/env python
"""
@author Jesse Haviland
"""
import numpy as np
from ropy.backend.PyPlot.RobotPlot import RobotPlot
class RobotPlot2(RobotPlot):
def __init__(
self, robot, ax, readonly, display=True,
eeframe=True, name=True):
super(RobotPlot2, self).__init__(
... | 21.95 | 69 | 0.640091 | 50 | 439 | 5.46 | 0.64 | 0.051282 | 0.10989 | 0.161172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006079 | 0.250569 | 439 | 19 | 70 | 23.105263 | 0.823708 | 0.09795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
468d5b915fdfcd5d4ff54b4def8b38832b7def14 | 1,287 | py | Python | setup.py | Sandersland/chromie | a5dea618d788974fc5ee393b7602d204456c139d | [
"MIT"
] | null | null | null | setup.py | Sandersland/chromie | a5dea618d788974fc5ee393b7602d204456c139d | [
"MIT"
] | 1 | 2020-07-21T15:48:36.000Z | 2020-07-21T19:16:12.000Z | setup.py | Sandersland/chromie | a5dea618d788974fc5ee393b7602d204456c139d | [
"MIT"
] | null | null | null | from setuptools import setup, Command, find_packages
import os
import sys
here = os.path.abspath(os.path.dirname(__file__))
with open("README.md", "r") as f:
readme = f.read()
about = {}
with open(os.path.join(here, "chromie", "__version__.py"), "r") as f:
exec(f.read(), about)
packages = ["chromie"]
requi... | 25.235294 | 77 | 0.659674 | 159 | 1,287 | 5.037736 | 0.553459 | 0.022472 | 0.009988 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012184 | 0.17094 | 1,287 | 50 | 78 | 25.74 | 0.738519 | 0 | 0 | 0.052632 | 0 | 0 | 0.27195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.052632 | 0.078947 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46936eea0adf5a8d01c9487a797c85ab699f0fba | 758 | py | Python | ROS/src/servo/scripts/Servo.py | jeremygold/hexapod | ffbe24c504504cdebb5fbc0f6d5b31c61a453902 | [
"MIT"
] | null | null | null | ROS/src/servo/scripts/Servo.py | jeremygold/hexapod | ffbe24c504504cdebb5fbc0f6d5b31c61a453902 | [
"MIT"
] | null | null | null | ROS/src/servo/scripts/Servo.py | jeremygold/hexapod | ffbe24c504504cdebb5fbc0f6d5b31c61a453902 | [
"MIT"
] | null | null | null | from math import *
import os
class Servo:
def __init__(self, number):
self.number = number
self.angle = 0
def set_servo_angle(self, angle):
self.angle = angle
self.write_value_to_hardware()
def get_servo_angle(self):
return self.angle
def write_value_t... | 29.153846 | 105 | 0.610818 | 98 | 758 | 4.520408 | 0.520408 | 0.10158 | 0.063205 | 0.090293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037244 | 0.291557 | 758 | 25 | 106 | 30.32 | 0.78771 | 0.150396 | 0 | 0 | 0 | 0 | 0.067188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.058824 | 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 |
4694ab2de36531b9ebabf1148e543867dd3bc780 | 3,811 | py | Python | mf/gen_mfgp_sample.py | rajatsen91/MFTreeSearchCV | cf5ef5f537267c1c2c34a4f40042a051aad434f9 | [
"MIT"
] | 8 | 2019-10-24T22:27:10.000Z | 2021-10-07T00:19:52.000Z | mf/gen_mfgp_sample.py | rajatsen91/MFTreeSearchCV | cf5ef5f537267c1c2c34a4f40042a051aad434f9 | [
"MIT"
] | 1 | 2021-03-16T23:20:54.000Z | 2021-05-25T20:43:27.000Z | mf/gen_mfgp_sample.py | rajatsen91/MFTreeSearchCV | cf5ef5f537267c1c2c34a4f40042a051aad434f9 | [
"MIT"
] | 1 | 2020-07-21T21:18:58.000Z | 2020-07-21T21:18:58.000Z | """
Used to generate a sample from an MFGP sample.
-- kandasamy@cs.cmu.edu
"""
# pylint: disable=import-error
# pylint: disable=no-member
# pylint: disable=invalid-name
# pylint: disable=relative-import
# pylint: disable=too-many-locals
# pylint: disable=no-name-in-module
# pylint: disable=superfluous-parens
impo... | 33.13913 | 89 | 0.712149 | 618 | 3,811 | 4.088997 | 0.278317 | 0.028492 | 0.028492 | 0.023744 | 0.191136 | 0.105659 | 0.086664 | 0.05461 | 0.05461 | 0.05461 | 0 | 0.020317 | 0.173445 | 3,811 | 114 | 90 | 33.429825 | 0.781905 | 0.183154 | 0 | 0.030303 | 1 | 0 | 0.023241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0 | 0.090909 | 0 | 0.212121 | 0.030303 | 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 |
4699aa4244d21a431dfc6c31ecac434e874999b6 | 607 | py | Python | setup.py | fberlato/lc_pulse_avalanche | cb84b77f17fbad52a8ac3b20d17fa22465f0d10e | [
"MIT"
] | 1 | 2021-03-30T16:13:13.000Z | 2021-03-30T16:13:13.000Z | setup.py | fberlato/lc_pulse_avalanche | cb84b77f17fbad52a8ac3b20d17fa22465f0d10e | [
"MIT"
] | null | null | null | setup.py | fberlato/lc_pulse_avalanche | cb84b77f17fbad52a8ac3b20d17fa22465f0d10e | [
"MIT"
] | 3 | 2021-05-26T10:16:23.000Z | 2022-03-12T06:55:03.000Z | import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def read(fname):
return open(os.path.join(here, fname)).read()
setup(
name = "lc_pulse_avalanche",
version = "1.0.0",
author = "Anastasia Tsvetkova",
author_email = "tsvetkova.lea@gmail.com",
g
descriptio... | 26.391304 | 124 | 0.693575 | 79 | 607 | 5.177215 | 0.670886 | 0.136919 | 0.117359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013861 | 0.16804 | 607 | 22 | 125 | 27.590909 | 0.79604 | 0 | 0 | 0 | 0 | 0 | 0.418451 | 0.037891 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | 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 |
469c309f3a5ece008f0e5b7e1d0be8579ab16f2e | 1,409 | py | Python | tests/test_utils.py | uranusjr/tomlkit | cad4e0a8aebe000d7009f103986d0f1b2dec7347 | [
"MIT"
] | 1 | 2022-03-20T19:31:30.000Z | 2022-03-20T19:31:30.000Z | tests/test_utils.py | uranusjr/tomlkit | cad4e0a8aebe000d7009f103986d0f1b2dec7347 | [
"MIT"
] | null | null | null | tests/test_utils.py | uranusjr/tomlkit | cad4e0a8aebe000d7009f103986d0f1b2dec7347 | [
"MIT"
] | null | null | null | import pytest
from datetime import date
from datetime import datetime as dt
from datetime import time
from datetime import timedelta as td
from tomlkit._compat import timezone as tz
from tomlkit._utils import _utc
from tomlkit._utils import parse_rfc3339
@pytest.mark.parametrize(
"string, expected",
[
... | 27.096154 | 84 | 0.569198 | 186 | 1,409 | 4.215054 | 0.241935 | 0.160714 | 0.044643 | 0.045918 | 0.501276 | 0.473214 | 0.454082 | 0.335459 | 0.206633 | 0.206633 | 0 | 0.215492 | 0.285309 | 1,409 | 51 | 85 | 27.627451 | 0.563059 | 0 | 0 | 0.27907 | 0 | 0 | 0.134138 | 0.040454 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0.069767 | false | 0 | 0.186047 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46a75bff82d11f57b18e77e4cfc2a61aca6968ca | 1,148 | py | Python | awwardapp/forms.py | ruthjomo/Awwardsapp | 8e2a517e569f788f803219a143f2ae9e5dedab13 | [
"Unlicense",
"MIT"
] | null | null | null | awwardapp/forms.py | ruthjomo/Awwardsapp | 8e2a517e569f788f803219a143f2ae9e5dedab13 | [
"Unlicense",
"MIT"
] | null | null | null | awwardapp/forms.py | ruthjomo/Awwardsapp | 8e2a517e569f788f803219a143f2ae9e5dedab13 | [
"Unlicense",
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django import forms
from .models import Profile,Project,Votes
from django.contrib.auth.forms import UserCreationForm
class SignUpForm(UserCreationForm):
def __init__(self, *args, **kwargs):
super(SignUpForm, self).__init__(*args, **kwargs)
for field... | 28 | 65 | 0.640244 | 120 | 1,148 | 6.041667 | 0.441667 | 0.062069 | 0.096552 | 0.095172 | 0.182069 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007928 | 0.230836 | 1,148 | 40 | 66 | 28.7 | 0.813137 | 0 | 0 | 0.233333 | 0 | 0 | 0.12892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.133333 | 0 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46a7f7ff6e5876885ec007d9ab7ae7e6d64d6d41 | 1,288 | py | Python | src/client.py | Harsh-06/VJTI-Sidechain | d394e9562ae907f074c0fa5aed868886fe740361 | [
"MIT"
] | 19 | 2019-03-07T12:06:05.000Z | 2021-02-03T15:41:54.000Z | src/client.py | AmeyaDaddikar/vjtichain | 2a9b68d475fe5cc2babdf3f5b463a685e8423f05 | [
"MIT"
] | null | null | null | src/client.py | AmeyaDaddikar/vjtichain | 2a9b68d475fe5cc2babdf3f5b463a685e8423f05 | [
"MIT"
] | 9 | 2019-03-05T08:25:42.000Z | 2021-09-01T11:18:36.000Z | """
TODO:
Functions for interacting with api's
Send and receive coins
"""
import hashlib
import secrets
from typing import Tuple
from utils.secp256k1 import b58_encode, point_mul
class Wallet:
def __init__(self):
self.private_key = self.create_private_key()
@staticmethod
def create_priv... | 26.833333 | 102 | 0.645186 | 160 | 1,288 | 4.99375 | 0.44375 | 0.062578 | 0.052566 | 0.045056 | 0.137672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060545 | 0.23059 | 1,288 | 47 | 103 | 27.404255 | 0.745711 | 0.082298 | 0 | 0 | 0 | 0 | 0.032368 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.103448 | false | 0 | 0.137931 | 0.034483 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46a84afab2ab736a21c4ae39ae8d445c4a5bc648 | 27,913 | py | Python | mod/dep.py | GeertArien/fips | 6b0504530336f5500b9dc0e8d9c8a716e9cc5f67 | [
"MIT"
] | 1 | 2021-04-15T22:35:43.000Z | 2021-04-15T22:35:43.000Z | mod/dep.py | GeertArien/fips | 6b0504530336f5500b9dc0e8d9c8a716e9cc5f67 | [
"MIT"
] | null | null | null | mod/dep.py | GeertArien/fips | 6b0504530336f5500b9dc0e8d9c8a716e9cc5f67 | [
"MIT"
] | null | null | null | """functions for external dependencies"""
import os
import filecmp
from collections import OrderedDict
from mod import log, util, registry, template
from mod.tools import git
#-------------------------------------------------------------------------------
def get_imports(fips_dir, proj_dir) :
"""get the imports ... | 47.551959 | 133 | 0.536094 | 3,214 | 27,913 | 4.420348 | 0.102365 | 0.05272 | 0.04723 | 0.037446 | 0.545506 | 0.445485 | 0.37566 | 0.334131 | 0.296192 | 0.279721 | 0 | 0.000532 | 0.327052 | 27,913 | 586 | 134 | 47.633106 | 0.755803 | 0.2276 | 0 | 0.325203 | 0 | 0.00271 | 0.137555 | 0.024885 | 0 | 0 | 0 | 0.001706 | 0 | 1 | 0.03794 | false | 0 | 0.365854 | 0 | 0.436314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
46b2be3f74aca2ab354b0623e1611b4b35523c2d | 1,308 | py | Python | app/core/tests/test_admin.py | deafcon01/recipe-app-api | 036060c924ba552264499186318da9ceaf0a7682 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | deafcon01/recipe-app-api | 036060c924ba552264499186318da9ceaf0a7682 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | deafcon01/recipe-app-api | 036060c924ba552264499186318da9ceaf0a7682 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_superuser(
email='admin@gmail',
... | 31.902439 | 69 | 0.610856 | 160 | 1,308 | 4.825 | 0.325 | 0.064767 | 0.046632 | 0.073834 | 0.414508 | 0.314767 | 0.209845 | 0.129534 | 0.129534 | 0.129534 | 0 | 0.012712 | 0.278287 | 1,308 | 40 | 70 | 32.7 | 0.805085 | 0.065749 | 0 | 0.172414 | 0 | 0 | 0.098628 | 0.041166 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.137931 | false | 0.068966 | 0.103448 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d3b22d921623e3ffb730a38f8ea095127e0160a7 | 3,368 | py | Python | applications/init/controllers/api.py | ziming9/Said-it | ce9f3047940af9e3b380edcc142c9ca1e72b43d0 | [
"BSD-3-Clause"
] | null | null | null | applications/init/controllers/api.py | ziming9/Said-it | ce9f3047940af9e3b380edcc142c9ca1e72b43d0 | [
"BSD-3-Clause"
] | null | null | null | applications/init/controllers/api.py | ziming9/Said-it | ce9f3047940af9e3b380edcc142c9ca1e72b43d0 | [
"BSD-3-Clause"
] | 1 | 2019-04-12T23:26:03.000Z | 2019-04-12T23:26:03.000Z | import random
def get_user_name(email):
u = db(db.auth_user.email == email).select().first()
if u is None:
return 'Anonymous #{}'.format(random.randint(1,999))
else:
return ' '.join([u.first_name, u.last_name])
@auth.requires_signature()
def insert_post():
post_id = db.pos... | 27.606557 | 103 | 0.638955 | 464 | 3,368 | 4.405172 | 0.181034 | 0.064579 | 0.048924 | 0.082192 | 0.387965 | 0.304795 | 0.181018 | 0.157534 | 0.125245 | 0.052838 | 0 | 0.001582 | 0.249109 | 3,368 | 121 | 104 | 27.834711 | 0.806643 | 0.039489 | 0 | 0.191489 | 0 | 0 | 0.018965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010638 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3b405724c9671f208fd2e10b1b16abf608cd809 | 391 | py | Python | runtime/hetdesrun/auth/designer.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | runtime/hetdesrun/auth/designer.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | runtime/hetdesrun/auth/designer.py | JulianGrote1904/hetida-designer | 05350810eb3e0548c9d8a2a5a6afbf455635b5fd | [
"MIT"
] | null | null | null | """Verfication of requests from designer backend"""
from hetdesrun.auth.keycloak import KeycloakBearerVerifier
from hetdesrun.webservice.config import runtime_config
kc_bearer_verifier = KeycloakBearerVerifier.from_creds(
auth_url=runtime_config.hd_keycloak_auth_url or "",
realm=runtime_config.hd_keycloak_re... | 32.583333 | 58 | 0.828645 | 48 | 391 | 6.416667 | 0.479167 | 0.168831 | 0.146104 | 0.224026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102302 | 391 | 11 | 59 | 35.545455 | 0.877493 | 0.11509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
d3bda83259a51788122e2bc7f12356385e1275c8 | 14,447 | py | Python | src/server/api/user_api.py | princessruthie/paws-data-pipeline | 6f7095f99b9ad31b0171b256cf18849d63445c91 | [
"MIT"
] | null | null | null | src/server/api/user_api.py | princessruthie/paws-data-pipeline | 6f7095f99b9ad31b0171b256cf18849d63445c91 | [
"MIT"
] | null | null | null | src/server/api/user_api.py | princessruthie/paws-data-pipeline | 6f7095f99b9ad31b0171b256cf18849d63445c91 | [
"MIT"
] | null | null | null | from hashlib import pbkdf2_hmac
from os import urandom, environ
import pytest, codecs, random
from datetime import datetime
from api.api import user_api
from sqlalchemy.sql import text
from config import engine
from flask import request, redirect, jsonify, current_app, abort, json
from sqlalchemy import Table, Column... | 30.93576 | 115 | 0.617498 | 1,847 | 14,447 | 4.676232 | 0.207905 | 0.039134 | 0.018062 | 0.022577 | 0.38694 | 0.336807 | 0.284821 | 0.228667 | 0.167651 | 0.1482 | 0 | 0.009937 | 0.268568 | 14,447 | 467 | 116 | 30.93576 | 0.807419 | 0.199834 | 0 | 0.354478 | 0 | 0 | 0.138319 | 0.021179 | 0 | 0 | 0 | 0.004283 | 0 | 1 | 0.074627 | false | 0.08209 | 0.044776 | 0 | 0.253731 | 0.007463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d3be15df9724d4a6607a2abab5d5d2fd7807e071 | 584 | py | Python | yt/extern/setup.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | null | null | null | yt/extern/setup.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-04-05T22:30:14.000Z | 2016-04-05T22:30:14.000Z | yt/extern/setup.py | danielgrassinger/yt_new_frontend | 5f91d2fb8721c4c5da0af543a6256ed979cd9fc9 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-05T05:51:09.000Z | 2020-12-05T05:51:09.000Z | #!/usr/bin/env python
#----------------------------------------------------------------------------
# Copyright (c) 2013, yt Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#----------------------------------... | 36.5 | 78 | 0.55137 | 59 | 584 | 5.338983 | 0.762712 | 0.08254 | 0.101587 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007767 | 0.118151 | 584 | 15 | 79 | 38.933333 | 0.603884 | 0.59589 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d3c9009b1fd405e8b977a0f1edd5e66f56b1f78f | 6,542 | py | Python | ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py | emcvipr/ambari | 045e0d2ac94b8b81819d2efbfd7e1bddc67a7756 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py | emcvipr/ambari | 045e0d2ac94b8b81819d2efbfd7e1bddc67a7756 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/params.py | emcvipr/ambari | 045e0d2ac94b8b81819d2efbfd7e1bddc67a7756 | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | 44.202703 | 150 | 0.736625 | 825 | 6,542 | 5.574545 | 0.266667 | 0.060883 | 0.033486 | 0.022831 | 0.226354 | 0.144814 | 0.096978 | 0.083496 | 0.083496 | 0.083496 | 0 | 0.005488 | 0.164476 | 6,542 | 147 | 151 | 44.503401 | 0.835895 | 0.100581 | 0 | 0.114943 | 0 | 0 | 0.282164 | 0.109018 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.103448 | 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 |
d3d4f110d8cce9707eb5bc2e4755631912825067 | 784 | py | Python | main.py | SaintBuddha/UCU_LinuxClub_GitHW | 48f698bc24f55b8c3e8f9633536bd1ac89a97aba | [
"MIT"
] | null | null | null | main.py | SaintBuddha/UCU_LinuxClub_GitHW | 48f698bc24f55b8c3e8f9633536bd1ac89a97aba | [
"MIT"
] | null | null | null | main.py | SaintBuddha/UCU_LinuxClub_GitHW | 48f698bc24f55b8c3e8f9633536bd1ac89a97aba | [
"MIT"
] | null | null | null | from os import system, name
import cowsay
import json
import random
CHARACTERS = ["beavis", "cheese", "daemon", "cow", "dragon", "ghostbusters", "kitty", "meow", "milk", "stegosaurus",
"stimpy", "turkey", "turtle", "tux"]
def get_character():
"""This function chooses the character for cowsay
R... | 22.4 | 116 | 0.637755 | 90 | 784 | 5.422222 | 0.611111 | 0.02459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228316 | 784 | 34 | 117 | 23.058824 | 0.806612 | 0.188776 | 0 | 0 | 0 | 0 | 0.331633 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d3d58a98992673ab6c4df2a02e95b8c98d00ffe6 | 384 | py | Python | datahub/omis/order/migrations/0010_add_export_permission.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/omis/order/migrations/0010_add_export_permission.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/omis/order/migrations/0010_add_export_permission.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | # Generated by Django 2.1 on 2018-08-30 13:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('order', '0009_update_permissions_django_21'),
]
operations = [
migrations.AlterModelOptions(
name='order',
options={'permissio... | 21.333333 | 77 | 0.609375 | 39 | 384 | 5.871795 | 0.74359 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070671 | 0.263021 | 384 | 17 | 78 | 22.588235 | 0.738516 | 0.111979 | 0 | 0 | 1 | 0 | 0.241888 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3d6b2a40400524652634a048b2428186e0ea5b5 | 564 | py | Python | ArangoDB/LearningCurve/make_edge_gene_function.py | kbaseIncubator/RelationEngineEval | 1b7203b680a5d238c83ec9e598c5a51ae55f30f6 | [
"MIT"
] | null | null | null | ArangoDB/LearningCurve/make_edge_gene_function.py | kbaseIncubator/RelationEngineEval | 1b7203b680a5d238c83ec9e598c5a51ae55f30f6 | [
"MIT"
] | null | null | null | ArangoDB/LearningCurve/make_edge_gene_function.py | kbaseIncubator/RelationEngineEval | 1b7203b680a5d238c83ec9e598c5a51ae55f30f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import csv
lookup = {}
with open( "/newmount/user/gene_functions.csv", "r" ) as csv_file:
csvr = csv.reader( csv_file, delimiter=',', quotechar='"' )
for row in csvr:
# print( row )
lookup[row[1]] = row[0]
print '"_from","_to"'
with open( "/newmount/user/genome_gene_fun... | 25.636364 | 77 | 0.599291 | 80 | 564 | 4.075 | 0.4625 | 0.04908 | 0.09816 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009112 | 0.221631 | 564 | 21 | 78 | 26.857143 | 0.733485 | 0.058511 | 0 | 0 | 0 | 0 | 0.178368 | 0.136622 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3e376e6b93d94c374670689ad7c814f54178bd4 | 1,978 | py | Python | pygonal/tests/test_util.py | rqelibari/pygonal | e219657223d60231d9cd2f54100119219d2dc981 | [
"Apache-2.0"
] | null | null | null | pygonal/tests/test_util.py | rqelibari/pygonal | e219657223d60231d9cd2f54100119219d2dc981 | [
"Apache-2.0"
] | null | null | null | pygonal/tests/test_util.py | rqelibari/pygonal | e219657223d60231d9cd2f54100119219d2dc981 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Pygonal
(c) 2016 Copyright Rezart Qelibari <qelibarr@informatik.uni-freiburg.de>
Portions copyright (c) 2010 by Casey Duncan
Portions copyright (c) 2009 The Super Effective Team
Licensed under the Apache License, Version 2.0 (the "License");
yo... | 28.257143 | 76 | 0.67088 | 273 | 1,978 | 4.699634 | 0.428571 | 0.105222 | 0.076383 | 0.062354 | 0.296181 | 0.247857 | 0.247857 | 0.247857 | 0.247857 | 0.247857 | 0 | 0.022896 | 0.249242 | 1,978 | 69 | 77 | 28.666667 | 0.841077 | 0.41456 | 0 | 0.233333 | 0 | 0 | 0.020352 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 1 | 0.1 | false | 0 | 0.033333 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
d3e3918165904ee9a571a29f51201af7fe6e88db | 9,692 | py | Python | maci_backend/AppData/WorkerScript/worker.py | qdeconinck/maci | 2360acb6c398c5a9a9c336c0b13dc2742c8a3083 | [
"MIT"
] | 18 | 2018-02-14T09:51:22.000Z | 2020-09-09T05:48:15.000Z | maci_backend/AppData/WorkerScript/worker.py | qdeconinck/maci | 2360acb6c398c5a9a9c336c0b13dc2742c8a3083 | [
"MIT"
] | 2 | 2019-11-05T17:18:31.000Z | 2020-09-08T13:04:31.000Z | maci_backend/AppData/WorkerScript/worker.py | qdeconinck/maci | 2360acb6c398c5a9a9c336c0b13dc2742c8a3083 | [
"MIT"
] | 9 | 2018-05-18T10:36:49.000Z | 2020-09-16T08:54:59.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from time import sleep, time
import httplib
import json
import sys
import argparse
import socket
from pprint import pprint
from zipfile import ZipFile
from StringIO import StringIO
from random import randint
import subprocess
import subprocess32 # has timeout backport
fr... | 31.673203 | 178 | 0.713681 | 1,137 | 9,692 | 6.027265 | 0.269129 | 0.022472 | 0.017365 | 0.026266 | 0.201226 | 0.158179 | 0.139793 | 0.113819 | 0.113819 | 0.104042 | 0 | 0.011481 | 0.164259 | 9,692 | 305 | 179 | 31.777049 | 0.834444 | 0.057161 | 0 | 0.284585 | 0 | 0.007905 | 0.197237 | 0.004934 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011858 | 0.079051 | null | null | 0.146245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3eac62e7e945ed8f5f3fd7869581ed9edc7bb2b | 441 | py | Python | mini project/challenge7.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | 1 | 2019-06-13T13:52:09.000Z | 2019-06-13T13:52:09.000Z | mini project/challenge7.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | null | null | null | mini project/challenge7.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 7 20:05:27 2019
@author: diksha
"""
import random
guess=random.randrange(1,11)
i=6
while i!=0:
print("enter number")
no=int(input())
i=i-1
print("no of chances left:",i)
print("play again")
i=6
while i!=0:
print("enter number")
... | 20.045455 | 47 | 0.564626 | 72 | 441 | 3.458333 | 0.555556 | 0.016064 | 0.056225 | 0.064257 | 0.514056 | 0.514056 | 0.514056 | 0.514056 | 0.514056 | 0.514056 | 0 | 0.065015 | 0.267574 | 441 | 22 | 47 | 20.045455 | 0.705882 | 0.170068 | 0 | 0.75 | 0 | 0 | 0.29805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3f03dbc15fd5f0b2fe5ed3e8a9beef7c2fdd25b | 2,122 | py | Python | debug/http/response.py | anokidev/hasta | 570f3e35197c3370a0c8f7cc77d81640c8022165 | [
"MIT"
] | 1 | 2022-01-01T18:38:57.000Z | 2022-01-01T18:38:57.000Z | debug/http/response.py | anokidev/hasta | 570f3e35197c3370a0c8f7cc77d81640c8022165 | [
"MIT"
] | 8 | 2021-12-31T10:21:42.000Z | 2022-01-02T16:57:14.000Z | debug/http/response.py | anokidev/hasta | 570f3e35197c3370a0c8f7cc77d81640c8022165 | [
"MIT"
] | null | null | null | import datetime
'''
The ones that create the response data. Convert it back to
bytestring, and then send it back to the client.
__init__():
Prepare the datetime.
__call__():
Do nothing.
construct():
Create the server_headers, and then create the response headers.
... | 22.574468 | 88 | 0.55278 | 239 | 2,122 | 4.753138 | 0.322176 | 0.098592 | 0.117077 | 0.166373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002791 | 0.324694 | 2,122 | 93 | 89 | 22.817204 | 0.789951 | 0 | 0 | 0 | 0 | 0.025 | 0.096247 | 0.016344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.025 | 0.025 | 0 | 0.15 | 0.075 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.