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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feb74e6261737859464439da686df742366d7381 | 15,933 | py | Python | backtesting/visualize.py | Pit-Storm/DeepRLValueTrading | 1482e8c24ac445cf1ed3a0218d10d1fe2e18a6ad | [
"MIT"
] | 4 | 2021-04-21T06:35:03.000Z | 2021-08-12T09:20:23.000Z | backtesting/visualize.py | Pit-Storm/DeepRLValueTrading | 1482e8c24ac445cf1ed3a0218d10d1fe2e18a6ad | [
"MIT"
] | null | null | null | backtesting/visualize.py | Pit-Storm/DeepRLValueTrading | 1482e8c24ac445cf1ed3a0218d10d1fe2e18a6ad | [
"MIT"
] | 2 | 2020-12-30T10:18:27.000Z | 2021-09-26T19:08:59.000Z | # %%
import sys
sys.path.append("..")
from data import handling as dth
import pandas as pd
import numpy as np
from pathlib import Path
%matplotlib inline
import quantstats as qs
import bar_chart_race as bcr
import seaborn as sns
# extend pandas functionality with metrics, etc.
qs.extend_pandas()
# %%
######
# SETUP
###... | 47.139053 | 287 | 0.724973 | 2,391 | 15,933 | 4.5734 | 0.178586 | 0.040329 | 0.016461 | 0.021399 | 0.359305 | 0.270782 | 0.233745 | 0.197257 | 0.168816 | 0.136534 | 0 | 0.013817 | 0.123329 | 15,933 | 337 | 288 | 47.278932 | 0.769044 | 0.176866 | 0 | 0.045977 | 0 | 0 | 0.154359 | 0.021697 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045977 | 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 |
feb8c94d20ef5bed9cef560caf717e4a8259f045 | 6,221 | py | Python | Lib/py_compile.py | deadsnakes/python2.3 | 0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849 | [
"PSF-2.0"
] | null | null | null | Lib/py_compile.py | deadsnakes/python2.3 | 0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849 | [
"PSF-2.0"
] | null | null | null | Lib/py_compile.py | deadsnakes/python2.3 | 0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849 | [
"PSF-2.0"
] | null | null | null | """Routine to "compile" a .py file to a .pyc (or .pyo) file.
This module has intimate knowledge of the format of .pyc files.
"""
import __builtin__
import imp
import marshal
import os
import sys
import traceback
MAGIC = imp.get_magic()
__all__ = ["compile", "main", "PyCompileError"]
class PyCompileError(Exception... | 33.627027 | 84 | 0.619193 | 852 | 6,221 | 4.41784 | 0.302817 | 0.022317 | 0.020457 | 0.018597 | 0.180659 | 0.148778 | 0.098034 | 0.089001 | 0.061637 | 0.046227 | 0 | 0.005267 | 0.298023 | 6,221 | 184 | 85 | 33.809783 | 0.856652 | 0.015592 | 0 | 0.182796 | 0 | 0 | 0.03824 | 0 | 0 | 0 | 0.005415 | 0 | 0 | 0 | null | null | 0.010753 | 0.075269 | 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 |
227dea638626b7ed7036f73b0b9496a98455f01a | 683 | py | Python | cms/templatetags/placeholder_tags.py | ScholzVolkmer/django-cms-old | 5641181e793ed3c833dd310fc3cc49c3660e548d | [
"BSD-3-Clause"
] | 2 | 2016-02-19T04:19:22.000Z | 2016-02-19T04:19:36.000Z | cms/templatetags/placeholder_tags.py | ScholzVolkmer/django-cms-old | 5641181e793ed3c833dd310fc3cc49c3660e548d | [
"BSD-3-Clause"
] | 9 | 2015-06-25T10:31:12.000Z | 2022-03-12T00:41:22.000Z | cms/templatetags/placeholder_tags.py | ScholzVolkmer/django-cms-old | 5641181e793ed3c833dd310fc3cc49c3660e548d | [
"BSD-3-Clause"
] | 1 | 2017-08-22T07:00:30.000Z | 2017-08-22T07:00:30.000Z | # -*- coding: utf-8 -*-
from classytags.arguments import Argument
from classytags.core import Tag, Options
from django import template
from django.template.defaultfilters import safe
register = template.Library()
class RenderPlaceholder(Tag):
name = 'render_placeholder'
options = Options(
Argument('p... | 28.458333 | 56 | 0.676428 | 72 | 683 | 6.388889 | 0.486111 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001883 | 0.222548 | 683 | 24 | 57 | 28.458333 | 0.864407 | 0.030747 | 0 | 0.105263 | 0 | 0 | 0.062027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22801e5213cc27f89d5e1d8d6feb6b25a3e0664d | 751 | py | Python | descriptors/ensure-indices.py | OpenChemistry/mongochem | 16773290309a487cd75b2ab50e5e0daba3c936dd | [
"BSD-3-Clause"
] | 9 | 2015-05-12T20:37:16.000Z | 2021-10-14T16:01:42.000Z | descriptors/ensure-indices.py | OpenChemistry/mongochem | 16773290309a487cd75b2ab50e5e0daba3c936dd | [
"BSD-3-Clause"
] | 1 | 2015-07-01T22:54:07.000Z | 2015-07-01T22:54:07.000Z | descriptors/ensure-indices.py | OpenChemistry/mongochem | 16773290309a487cd75b2ab50e5e0daba3c936dd | [
"BSD-3-Clause"
] | 4 | 2017-10-02T01:59:56.000Z | 2021-01-04T09:05:50.000Z | # ensure-indices.py: ensures the proper indices for mongochem
import sys
import json
import pymongo
# check arguments
if len(sys.argv) < 2:
print 'Usage: ' + sys.argv[0] + ' [SETTINGS_FILE]'
sys.exit(-1)
# connection settings
try:
settings = json.load(file(sys.argv[1]))
host = settings['server']['host']
po... | 25.033333 | 61 | 0.739015 | 97 | 751 | 5.639175 | 0.463918 | 0.038391 | 0.02925 | 0.109689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007657 | 0.130493 | 751 | 29 | 62 | 25.896552 | 0.830015 | 0.191744 | 0 | 0.105263 | 0 | 0 | 0.199667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
228690684f282ad8319f915b97e2a290ef8dfd6e | 935 | py | Python | ariadne_server/classes/user/lock_funds.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | ariadne_server/classes/user/lock_funds.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | ariadne_server/classes/user/lock_funds.py | seanaye/FeatherLight-API | 4d42a424762311ee35b3fd4f689883aa4197eb2e | [
"MIT"
] | null | null | null | import json
from time import time
from .abstract_user_method import AbstractMethod
from context import REDIS
#TODO determine if should be switched in to sql db
#TODO determine if this file is deprecated with use of postgres lock
class LockFunds(AbstractMethod):
def __init__(self, pay_req, invoice):
self.... | 32.241379 | 88 | 0.663102 | 125 | 935 | 4.84 | 0.608 | 0.049587 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269519 | 935 | 28 | 89 | 33.392857 | 0.885798 | 0.124064 | 0 | 0 | 0 | 0 | 0.075812 | 0 | 0 | 0 | 0 | 0.035714 | 0.0625 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
228acc78452755220c6d8dbf8b418a8ecbd5cd59 | 590 | py | Python | Solutions/03_fizzbuzz.py | RicardsGraudins/Python-Fundamentals | 9d8417c2bf21f25e8c494a7c47a4c34a1760be55 | [
"Apache-2.0"
] | null | null | null | Solutions/03_fizzbuzz.py | RicardsGraudins/Python-Fundamentals | 9d8417c2bf21f25e8c494a7c47a4c34a1760be55 | [
"Apache-2.0"
] | null | null | null | Solutions/03_fizzbuzz.py | RicardsGraudins/Python-Fundamentals | 9d8417c2bf21f25e8c494a7c47a4c34a1760be55 | [
"Apache-2.0"
] | null | null | null | #Using the range function we create a list of numbers from 0 to 99 https://docs.python.org/2/library/functions.html#range
#Each number in the list is FizzBuzz tested
#If the number is a multiple of 3 and a multiple of 5 - print "FizzBuzz"
#If the number is only a multiple of 3 - print "Fizz"
#If the number is onl... | 36.875 | 121 | 0.652542 | 112 | 590 | 3.4375 | 0.392857 | 0.116883 | 0.142857 | 0.135065 | 0.205195 | 0.145455 | 0.145455 | 0.145455 | 0 | 0 | 0 | 0.047297 | 0.247458 | 590 | 16 | 122 | 36.875 | 0.81982 | 0.708475 | 0 | 0 | 0 | 0 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
228e6e41f99766d68e9681037bc827cc1b09c3cc | 626 | py | Python | train_ResNet50.py | ElliOsm/pneumonia-detection | 82fa743ebf96ab39ba090cb7329cc59f7f366009 | [
"MIT"
] | null | null | null | train_ResNet50.py | ElliOsm/pneumonia-detection | 82fa743ebf96ab39ba090cb7329cc59f7f366009 | [
"MIT"
] | null | null | null | train_ResNet50.py | ElliOsm/pneumonia-detection | 82fa743ebf96ab39ba090cb7329cc59f7f366009 | [
"MIT"
] | null | null | null | import os
import logging
# Environment Variables
##Supresses tensorflow warnings and errors, change to 2 to show errors
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # FATAL
logging.getLogger('tensorflow').setLevel(logging.FATAL)
from thesis.models.ResNet50 import resnet50_compile
from thesis.data import data_... | 26.083333 | 93 | 0.741214 | 76 | 626 | 5.907895 | 0.657895 | 0.044543 | 0.097996 | 0.120267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034749 | 0.172524 | 626 | 24 | 94 | 26.083333 | 0.832046 | 0.151757 | 0 | 0 | 0 | 0 | 0.188492 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
228f6197d690108aebd643a6abc4c4eebf2fd116 | 3,884 | py | Python | sdk/python/pulumi_azure/core/get_resources.py | apollo2030/pulumi-azure | 034665c61665f4dc7e291b8813747012d34fa044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/core/get_resources.py | apollo2030/pulumi-azure | 034665c61665f4dc7e291b8813747012d34fa044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/core/get_resources.py | apollo2030/pulumi-azure | 034665c61665f4dc7e291b8813747012d34fa044 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class GetRes... | 43.155556 | 274 | 0.67688 | 489 | 3,884 | 5.118609 | 0.308793 | 0.067519 | 0.081502 | 0.071914 | 0.159808 | 0.097483 | 0.035957 | 0.035957 | 0.035957 | 0 | 0 | 0.000334 | 0.22966 | 3,884 | 89 | 275 | 43.640449 | 0.83623 | 0.259526 | 0 | 0 | 1 | 0 | 0.145527 | 0.022664 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.109091 | 0 | 0.236364 | 0 | 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 |
228f8146569be8009d86bceb5a3949165aa7c747 | 2,872 | py | Python | apps/services/sendmail.py | edilio/cubanoshaciamiami.com | 541a22998b7c7ad3acda784c5657bfdf79cc7f07 | [
"MIT"
] | null | null | null | apps/services/sendmail.py | edilio/cubanoshaciamiami.com | 541a22998b7c7ad3acda784c5657bfdf79cc7f07 | [
"MIT"
] | null | null | null | apps/services/sendmail.py | edilio/cubanoshaciamiami.com | 541a22998b7c7ad3acda784c5657bfdf79cc7f07 | [
"MIT"
] | null | null | null | def createhtmlmail (html, text, sender, recipient, subject):
"""Create a mime-message that will render HTML in popular
MUAs, text in better ones"""
import MimeWriter
import mimetools
import cStringIO
out = cStringIO.StringIO() # output buffer for our message
htmlin = cStringIO.StringIO(html)
... | 33.788235 | 174 | 0.690808 | 356 | 2,872 | 5.550562 | 0.407303 | 0.037955 | 0.033401 | 0.020243 | 0.177126 | 0.115385 | 0.075911 | 0.075911 | 0.075911 | 0.075911 | 0 | 0.003391 | 0.178621 | 2,872 | 84 | 175 | 34.190476 | 0.834252 | 0.24617 | 0 | 0.085106 | 0 | 0 | 0.221995 | 0.049105 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
229a74234718e86e0e911472307eefc80a60688d | 35,099 | py | Python | v2.5.7/toontown/cogdominium/DistributedCogdoInterior.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v2.5.7/toontown/cogdominium/DistributedCogdoInterior.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v2.5.7/toontown/cogdominium/DistributedCogdoInterior.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | import random
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from toontown.building.ElevatorConstants import *
from otp.nametag.NametagConstants import *
from toontown.toon import NPCToons
from panda3d.core import NodePath
from toontown.building import ElevatorUtils
from toonto... | 43.818976 | 1,059 | 0.64395 | 3,429 | 35,099 | 6.494313 | 0.168271 | 0.011047 | 0.003772 | 0.00485 | 0.200997 | 0.165297 | 0.137276 | 0.11855 | 0.105977 | 0.064888 | 0 | 0.015297 | 0.247528 | 35,099 | 801 | 1,060 | 43.818976 | 0.827875 | 0 | 0 | 0.25142 | 0 | 0 | 0.077151 | 0.031738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116477 | false | 0.00142 | 0.035511 | 0.008523 | 0.201705 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
229bf1f18c99c486a326026e10a8c2638f9a0264 | 15,742 | py | Python | References/Geovana Neves/TCC_Geovana_Neves_GitHub/Turboprop/Opt/7_SLSQP_diff_guess/Optimize.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | References/Geovana Neves/TCC_Geovana_Neves_GitHub/Turboprop/Opt/7_SLSQP_diff_guess/Optimize.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | References/Geovana Neves/TCC_Geovana_Neves_GitHub/Turboprop/Opt/7_SLSQP_diff_guess/Optimize.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | # Optimize.py
# Created: Feb 2016, M. Vegh
# Modified: Aug 2017, E. Botero
# Aug 2018, T. MacDonald
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import SUAVE
from SUAVE.Core import U... | 43.727778 | 138 | 0.489201 | 1,536 | 15,742 | 4.858073 | 0.1875 | 0.060038 | 0.071295 | 0.020102 | 0.536719 | 0.462075 | 0.420799 | 0.404583 | 0.404583 | 0.374564 | 0 | 0.022777 | 0.277665 | 15,742 | 360 | 139 | 43.727778 | 0.633454 | 0.211091 | 0 | 0.432099 | 0 | 0 | 0.194798 | 0.063042 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065844 | null | null | 0.246914 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22a2d0e3e514bd524ef4c8d6bccfe8f6e9b6d8d2 | 9,037 | py | Python | Gen.py | nisanb/Discord-token-generatorPY | 52568a5533b56f6fb7407fb325f731ee0aeb2cad | [
"MIT"
] | 2 | 2022-02-02T16:15:59.000Z | 2022-02-02T20:03:15.000Z | Gen.py | nisanb/Discord-token-generatorPY | 52568a5533b56f6fb7407fb325f731ee0aeb2cad | [
"MIT"
] | null | null | null | Gen.py | nisanb/Discord-token-generatorPY | 52568a5533b56f6fb7407fb325f731ee0aeb2cad | [
"MIT"
] | 8 | 2022-01-18T04:50:00.000Z | 2022-02-02T16:56:31.000Z | import os
from os import system
import httpx
from base64 import b64encode
from colorama import init, Fore, Style
from random import choice
from threading import RLock, Thread
from time import time, sleep
import websocket
import base64
from concurrent.futures import ThreadPoolExecutor
import json
import random
init(conv... | 64.55 | 1,000 | 0.639261 | 898 | 9,037 | 6.365256 | 0.376392 | 0.020994 | 0.023618 | 0.011197 | 0.096746 | 0.08205 | 0.060007 | 0.047061 | 0.035164 | 0.035164 | 0 | 0.051668 | 0.214009 | 9,037 | 139 | 1,001 | 65.014388 | 0.753062 | 0.010291 | 0 | 0.0625 | 0 | 0.071429 | 0.439723 | 0.189443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.008929 | 0.116071 | 0 | 0.205357 | 0.116071 | 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 |
22a45d88e331e8e324dd31ab8d791ccfd5f339a6 | 2,605 | py | Python | examples/SVG(1)/navigation_defaults.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 29 | 2020-05-05T13:25:33.000Z | 2022-01-03T14:12:29.000Z | examples/SVG(1)/navigation_defaults.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 215 | 2019-11-26T12:59:39.000Z | 2022-02-01T12:38:31.000Z | examples/SVG(1)/navigation_defaults.py | angelolovatto/raylab | ebaea8df1a391fb844e75df62ccf1e2e07311d88 | [
"MIT"
] | 7 | 2020-06-12T01:42:02.000Z | 2021-05-27T03:40:42.000Z | from ray import tune
def get_config():
return {
# === Environment ===
"env": "Navigation",
"env_config": tune.grid_search(
[
{"deceleration_zones": None},
{"deceleration_zones": {"center": [[0.0, 0.0]], "decay": [2.0]}},
]
),
... | 33.397436 | 84 | 0.445681 | 215 | 2,605 | 5.218605 | 0.595349 | 0.005348 | 0.013369 | 0.042781 | 0.173797 | 0.142603 | 0.115865 | 0.115865 | 0.115865 | 0.115865 | 0 | 0.031963 | 0.411516 | 2,605 | 77 | 85 | 33.831169 | 0.699935 | 0.194626 | 0 | 0.233333 | 0 | 0 | 0.316042 | 0.063881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | true | 0 | 0.016667 | 0.016667 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22ac522eb49a9a686f7b24b5e24ecea02c7674f5 | 313 | py | Python | config.py | AktanKasymaliev/Weather_bot | f85d60336dfeba4c832386d81937390a91060461 | [
"MIT"
] | null | null | null | config.py | AktanKasymaliev/Weather_bot | f85d60336dfeba4c832386d81937390a91060461 | [
"MIT"
] | null | null | null | config.py | AktanKasymaliev/Weather_bot | f85d60336dfeba4c832386d81937390a91060461 | [
"MIT"
] | null | null | null | from configparser import ConfigParser, NoOptionError, NoSectionError
TOKEN = "TOKEN"
def load_config(section, name, default=None):
try:
conf = ConfigParser()
conf.read("settings.ini")
return conf.get(section, name)
except (NoOptionError, NoSectionError):
return default
| 24.076923 | 68 | 0.686901 | 32 | 313 | 6.6875 | 0.65625 | 0.252336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220447 | 313 | 12 | 69 | 26.083333 | 0.877049 | 0 | 0 | 0 | 0 | 0 | 0.054313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
22b5681a2bee012e85f1762cf20ec93429111bd6 | 831 | py | Python | django/trebek/apps/trivia/migrations/0005_auto_20180310_1802.py | whutch/trebek | 8f5d80a97c7d3aaf29a2faf43a63969cb4150449 | [
"MIT"
] | 1 | 2021-06-06T12:06:31.000Z | 2021-06-06T12:06:31.000Z | django/trebek/apps/trivia/migrations/0005_auto_20180310_1802.py | whutch/trebek | 8f5d80a97c7d3aaf29a2faf43a63969cb4150449 | [
"MIT"
] | 1 | 2021-04-03T17:03:21.000Z | 2021-05-27T21:14:59.000Z | django/trebek/apps/trivia/migrations/0005_auto_20180310_1802.py | whutch/trebek | 8f5d80a97c7d3aaf29a2faf43a63969cb4150449 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-11 00:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trivia', '0004_auto_20180310_1613'),
]
operations = [
migrations.AlterModelOptions(
name='question',
options={'order... | 26.806452 | 70 | 0.56799 | 68 | 831 | 6.838235 | 0.661765 | 0.116129 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058419 | 0.299639 | 831 | 30 | 71 | 27.7 | 0.74055 | 0.054152 | 0 | 0.333333 | 1 | 0 | 0.184949 | 0.029337 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22b86153a2c42a834af891a4eb1591ae54da94da | 1,286 | py | Python | tests/python-playground/covsel_2.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 25 | 2017-06-30T15:31:33.000Z | 2021-04-21T20:12:18.000Z | tests/python-playground/covsel_2.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 34 | 2017-06-07T01:18:17.000Z | 2021-04-24T09:44:00.000Z | tests/python-playground/covsel_2.py | marcocannici/scs | 799a4f7daed4294cd98c73df71676195e6c63de4 | [
"MIT"
] | 13 | 2017-06-07T01:16:09.000Z | 2021-06-07T09:12:56.000Z | # This is automatically-generated code.
# Uses the jinja2 library for templating.
import cvxpy as cp
import numpy as np
import scipy as sp
# setup
problemID = "covsel_2"
prob = None
opt_val = None
# Variable declarations
np.random.seed(0)
m = 20
n = 30
lam = float(1.0)
import scipy.sparse as sps
A = sps.ra... | 18.112676 | 69 | 0.64619 | 190 | 1,286 | 4.278947 | 0.468421 | 0.0369 | 0.0246 | 0.03444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015549 | 0.199844 | 1,286 | 70 | 70 | 18.371429 | 0.774538 | 0.160187 | 0 | 0 | 1 | 0 | 0.087933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.111111 | 0 | 0.138889 | 0.166667 | 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 |
22c230743ef8f32fcf1760c21e35f0ef932d7cc3 | 469 | py | Python | free-speech-django/app/migrations/0026_quantitativequestion_tag.py | BerkeleyAutomation/free-speech | 5e046d1f856deb13ff8fd1a68e861d687fdc8705 | [
"MIT"
] | null | null | null | free-speech-django/app/migrations/0026_quantitativequestion_tag.py | BerkeleyAutomation/free-speech | 5e046d1f856deb13ff8fd1a68e861d687fdc8705 | [
"MIT"
] | null | null | null | free-speech-django/app/migrations/0026_quantitativequestion_tag.py | BerkeleyAutomation/free-speech | 5e046d1f856deb13ff8fd1a68e861d687fdc8705 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-30 06:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pcari', '0025_auto_20160829_1929'),
]
operations = [
migrations.AddField(
... | 22.333333 | 62 | 0.620469 | 51 | 469 | 5.509804 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097701 | 0.257996 | 469 | 20 | 63 | 23.45 | 0.70977 | 0.142857 | 0 | 0 | 1 | 0 | 0.12782 | 0.057644 | 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 |
22c4cf7fa7ad2835ef6abc6e6fe84cf7788d58af | 3,560 | py | Python | app/twitter/utils/database.py | aveek22/realtime-stock-analysis | 325103457856aa4cd446af0bd009f6cfe7a69f9a | [
"MIT"
] | null | null | null | app/twitter/utils/database.py | aveek22/realtime-stock-analysis | 325103457856aa4cd446af0bd009f6cfe7a69f9a | [
"MIT"
] | null | null | null | app/twitter/utils/database.py | aveek22/realtime-stock-analysis | 325103457856aa4cd446af0bd009f6cfe7a69f9a | [
"MIT"
] | null | null | null | import psycopg2 as pg
import os
import logging
DATABASE_HOSTNAME = 'localhost'
DATABASE_USERNAME = 'enviso'
DATABASE_PASSWORD = 'test1234'
def connect_database():
'''
This method is used to connect to a postgresql database and return the
connection object.
'''
try:
logging.in... | 41.395349 | 407 | 0.652809 | 405 | 3,560 | 5.567901 | 0.276543 | 0.029268 | 0.031929 | 0.040798 | 0.701109 | 0.678492 | 0.652328 | 0.636807 | 0.636807 | 0.636807 | 0 | 0.022677 | 0.232022 | 3,560 | 86 | 408 | 41.395349 | 0.802121 | 0.19691 | 0 | 0.57377 | 0 | 0.016393 | 0.283513 | 0.114695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0.032787 | 0.04918 | 0 | 0.213115 | 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 |
22c88daac6d286fac120ef82ee4f344697521785 | 7,633 | py | Python | unbounceapi/domains.py | YoshioHasegawa/unbounce-api | 71d360f8fc6960fcce9a0301b732e06851ba7709 | [
"MIT"
] | null | null | null | unbounceapi/domains.py | YoshioHasegawa/unbounce-api | 71d360f8fc6960fcce9a0301b732e06851ba7709 | [
"MIT"
] | null | null | null | unbounceapi/domains.py | YoshioHasegawa/unbounce-api | 71d360f8fc6960fcce9a0301b732e06851ba7709 | [
"MIT"
] | null | null | null | # unbounceapi/domains.py
#*************************************************************************************
# Programmer: Yoshio Hasegawa
# Class Name: Domain
# Super Class: client (unbounceapi/client.py)
#
# Revision Date Release Comment
# -------- ---------- --------------------------... | 43.369318 | 96 | 0.399974 | 611 | 7,633 | 4.91653 | 0.276596 | 0.021305 | 0.028296 | 0.027963 | 0.505326 | 0.505326 | 0.505326 | 0.475366 | 0.349534 | 0.302264 | 0 | 0.013792 | 0.287567 | 7,633 | 175 | 97 | 43.617143 | 0.538617 | 0.807284 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22c90bf67256316d7b4d616af08673e362d4d594 | 1,485 | py | Python | api/base/settings/__init__.py | fabmiz/osf.io | 8d86af3f0a6e5388bd5b18383e68e27b65a66247 | [
"Apache-2.0"
] | null | null | null | api/base/settings/__init__.py | fabmiz/osf.io | 8d86af3f0a6e5388bd5b18383e68e27b65a66247 | [
"Apache-2.0"
] | 5 | 2017-09-14T18:04:12.000Z | 2017-10-03T17:43:55.000Z | api/base/settings/__init__.py | fabmiz/osf.io | 8d86af3f0a6e5388bd5b18383e68e27b65a66247 | [
"Apache-2.0"
] | 1 | 2019-07-16T00:14:49.000Z | 2019-07-16T00:14:49.000Z | # -*- coding: utf-8 -*-
'''Consolidates settings from defaults.py and local.py.
::
>>> from api.base import settings
>>> settings.API_BASE
'v2/'
'''
import os
from urlparse import urlparse
import warnings
import itertools
from .defaults import * # noqa
try:
from .local import * # noqa
except Import... | 37.125 | 189 | 0.715152 | 186 | 1,485 | 5.61828 | 0.451613 | 0.026794 | 0.028708 | 0.044019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002433 | 0.169697 | 1,485 | 39 | 190 | 38.076923 | 0.845093 | 0.109764 | 0 | 0 | 0 | 0 | 0.184311 | 0.052551 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0.041667 | 0.458333 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
22c9148c65311bca16d49d3b5df25b58bfc83261 | 261 | py | Python | bdn/skill/serializers.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | 1 | 2019-01-18T19:57:25.000Z | 2019-01-18T19:57:25.000Z | bdn/skill/serializers.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | 3 | 2019-06-23T17:26:24.000Z | 2022-02-11T03:40:54.000Z | bdn/skill/serializers.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from bdn.skill.models import Skill
class SkillSerializer(serializers.ModelSerializer):
class Meta:
model = Skill
fields = (
'id',
'name',
'standardized',
)
| 20.076923 | 51 | 0.586207 | 23 | 261 | 6.608696 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337165 | 261 | 12 | 52 | 21.75 | 0.878613 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22ca7f88673ffd0853af7e1824855e53c38ddc47 | 6,029 | py | Python | alphazero/model.py | iejMac/TTTArena | 056636f064769c3251fb2448e7487b4fa8394733 | [
"MIT"
] | 3 | 2021-05-23T23:55:03.000Z | 2021-07-09T16:01:10.000Z | alphazero/model.py | iejMac/TTTArena | 056636f064769c3251fb2448e7487b4fa8394733 | [
"MIT"
] | null | null | null | alphazero/model.py | iejMac/TTTArena | 056636f064769c3251fb2448e7487b4fa8394733 | [
"MIT"
] | 2 | 2021-07-09T11:44:09.000Z | 2021-07-11T12:32:58.000Z | import os
import sys
import numpy as np
from copy import deepcopy
from collections import deque
import torch
from torch import nn
from torch import optim
from torch.nn import functional as F
sys.path.append(os.path.join(os.environ["HOME"], "TTTArena"))
from environment import Environment
from alphazero.mcts import ... | 32.413978 | 155 | 0.674573 | 953 | 6,029 | 4.098636 | 0.201469 | 0.035842 | 0.033794 | 0.032258 | 0.427803 | 0.386585 | 0.362263 | 0.34255 | 0.290323 | 0.290323 | 0 | 0.031911 | 0.183944 | 6,029 | 185 | 156 | 32.589189 | 0.761992 | 0.071654 | 0 | 0.308271 | 0 | 0 | 0.04311 | 0.018038 | 0 | 0 | 0 | 0.010811 | 0 | 1 | 0.120301 | false | 0 | 0.097744 | 0.007519 | 0.330827 | 0.015038 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
22cae5b244d5cc9fc1c05122fe7ed80ad8d8e6f2 | 1,154 | py | Python | SC101Assignment/SC101_Assignment0/coin_flip_runs.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | SC101Assignment/SC101_Assignment0/coin_flip_runs.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | SC101Assignment/SC101_Assignment0/coin_flip_runs.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | """
File: coin_flip_runs.py
Name: 洪禎蔚
-----------------------
This program should simulate coin flip(s)
with the number of runs input by users.
A 'run' is defined as consecutive results
on either 'H' or 'T'. For example, 'HHHHHTHTT'
is regarded as a 2-run result.
Your program should stop immediately after your
coin fli... | 23.08 | 70 | 0.657712 | 195 | 1,154 | 3.815385 | 0.441026 | 0.053763 | 0.080645 | 0.080645 | 0.051075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009677 | 0.194107 | 1,154 | 49 | 71 | 23.55102 | 0.790323 | 0.551127 | 0 | 0 | 0 | 0 | 0.062762 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22cb0dfdd816c384b6344d6b04e2197c9b432d47 | 2,120 | py | Python | examples/coffee_bar/bartender/models/handlers/bill_created_handler.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 1 | 2019-12-17T10:06:03.000Z | 2019-12-17T10:06:03.000Z | examples/coffee_bar/bartender/models/handlers/bill_created_handler.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 1 | 2019-07-04T15:22:58.000Z | 2019-07-05T07:23:31.000Z | examples/coffee_bar/bartender/models/handlers/bill_created_handler.py | Qotto/tonga | a6ae223ebf0fb7b317118b762102f1909435d1cf | [
"MIT"
] | 2 | 2019-06-05T15:40:49.000Z | 2019-12-10T09:24:23.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) Qotto, 2019
from datetime import datetime, timezone
from aiokafka import TopicPartition
from typing import Optional
# Import BaseEvent
from tonga.models.records.event import BaseEvent
# Import BaseEventHandler
from tonga.models.handlers.event.event_handler import... | 36.551724 | 110 | 0.691509 | 225 | 2,120 | 6.297778 | 0.44 | 0.10374 | 0.105857 | 0.063514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003665 | 0.22783 | 2,120 | 57 | 111 | 37.192982 | 0.861943 | 0.137736 | 0 | 0 | 0 | 0 | 0.06832 | 0.031405 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.066667 | false | 0 | 0.233333 | 0.033333 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
22cc5e3e49d703a5ff40533c9863218b3cc2a286 | 4,811 | py | Python | app.py | dmitric/tap-pad-web | dcb070adaeca42ed51984f550825f293861ef41f | [
"MIT"
] | 3 | 2016-07-29T04:00:33.000Z | 2020-05-27T19:29:53.000Z | app.py | dmitric/tap-pad-web | dcb070adaeca42ed51984f550825f293861ef41f | [
"MIT"
] | null | null | null | app.py | dmitric/tap-pad-web | dcb070adaeca42ed51984f550825f293861ef41f | [
"MIT"
] | null | null | null | import tornado.web
from tornado.options import define, options
import os
import re
from tornado.escape import json_decode
define("config")
define("debug", default=False)
define("cookie_secret", default="music-hack-day")
define("port", default=8080, type=int)
define("creator", default="Dmitri Cherniak")
define("creator... | 31.24026 | 96 | 0.642694 | 608 | 4,811 | 4.924342 | 0.243421 | 0.0501 | 0.02171 | 0.02338 | 0.303607 | 0.158985 | 0.09352 | 0.044088 | 0.044088 | 0.044088 | 0 | 0.009663 | 0.204116 | 4,811 | 153 | 97 | 31.444444 | 0.772264 | 0 | 0 | 0.210526 | 0 | 0 | 0.124921 | 0.010762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030075 | 0.037594 | null | null | 0.007519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22d07939855254e85ab2eb968f872d4f867b19d8 | 298 | py | Python | saarthi/mun_dashboard/migrations/0006_delete_tag.py | muskangarg21/Lucid-project | 1b0c68ade3e24b17a8575bfb9672369cbb2846c7 | [
"MIT"
] | null | null | null | saarthi/mun_dashboard/migrations/0006_delete_tag.py | muskangarg21/Lucid-project | 1b0c68ade3e24b17a8575bfb9672369cbb2846c7 | [
"MIT"
] | 4 | 2019-06-29T15:52:03.000Z | 2019-07-08T06:08:26.000Z | saarthi/mun_dashboard/migrations/0006_delete_tag.py | muskangarg21/Lucid-project | 1b0c68ade3e24b17a8575bfb9672369cbb2846c7 | [
"MIT"
] | 3 | 2019-06-25T10:49:50.000Z | 2019-07-08T07:21:45.000Z | # Generated by Django 2.2.3 on 2019-07-12 00:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mun_dashboard', '0005_auto_20190712_0454'),
]
operations = [
migrations.DeleteModel(
name='Tag',
),
]
| 17.529412 | 53 | 0.607383 | 33 | 298 | 5.363636 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14486 | 0.281879 | 298 | 16 | 54 | 18.625 | 0.682243 | 0.151007 | 0 | 0 | 1 | 0 | 0.155378 | 0.091633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22da3d1f014eda3ec8c0e7620472637d2312d140 | 2,952 | py | Python | convolution_demo.py | nywang2019/PConv-Keras | ca65634c0a0143a1164811bc14e4672c8d8658b5 | [
"MIT"
] | null | null | null | convolution_demo.py | nywang2019/PConv-Keras | ca65634c0a0143a1164811bc14e4672c8d8658b5 | [
"MIT"
] | null | null | null | convolution_demo.py | nywang2019/PConv-Keras | ca65634c0a0143a1164811bc14e4672c8d8658b5 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from libs.util import MaskGenerator, ImageChunker
mask = MaskGenerator(128, 128, 3, rand_seed = 1222)._generate_mask()
mask=mask[0:63,0:63,0]
# import keras.activations as activations
# import tensorflow as tf
# f = np.array([[1, 2, 1],
# [1, 0, 0],
# [-1, 0, 1... | 38.337662 | 108 | 0.631436 | 501 | 2,952 | 3.678643 | 0.213573 | 0.011937 | 0.04178 | 0.065654 | 0.340749 | 0.322843 | 0.322843 | 0.322843 | 0.304395 | 0.304395 | 0 | 0.065469 | 0.151423 | 2,952 | 77 | 109 | 38.337662 | 0.670259 | 0.289634 | 0 | 0 | 1 | 0 | 0.292494 | 0.277966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.073171 | 0 | 0.121951 | 0 | 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 |
22df2e7945dda217d75f8c37addccde5785ae3e4 | 391 | py | Python | Download/PythonExercicios/ex007.py | r-luis/Python-CursoemVideo | f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4 | [
"MIT"
] | null | null | null | Download/PythonExercicios/ex007.py | r-luis/Python-CursoemVideo | f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4 | [
"MIT"
] | null | null | null | Download/PythonExercicios/ex007.py | r-luis/Python-CursoemVideo | f978b2f4ab8444ebb746b4c85bd6db6d7775cbb4 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média
print('***Calculadora de Notas***\n')
n1 = float(input('Digite a primeira nota: '))
n2 = float(input('Digite a segunda nota: '))
nf = (n1+n2)/2
print('-'*20)
print('A média do aluno é {:.1f}.'.format(nf))
if (nf>=5):
print... | 20.578947 | 89 | 0.644501 | 65 | 391 | 3.876923 | 0.630769 | 0.079365 | 0.126984 | 0.134921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028125 | 0.181586 | 391 | 18 | 90 | 21.722222 | 0.759375 | 0.222506 | 0 | 0 | 0 | 0 | 0.48495 | 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 |
22e20454e8295b59b575350840a511b363d6b2c8 | 982 | py | Python | src/npi/visualization/training.py | NancyFulda/towards-neural-programming-interfaces | 21b467af56848c4fc8642fb0412f9f8d1b7718a2 | [
"Apache-2.0"
] | null | null | null | src/npi/visualization/training.py | NancyFulda/towards-neural-programming-interfaces | 21b467af56848c4fc8642fb0412f9f8d1b7718a2 | [
"Apache-2.0"
] | 1 | 2022-02-01T02:51:51.000Z | 2022-02-01T02:51:51.000Z | src/npi/visualization/training.py | NancyFulda/towards-neural-programming-interfaces | 21b467af56848c4fc8642fb0412f9f8d1b7718a2 | [
"Apache-2.0"
] | 2 | 2022-02-07T16:39:02.000Z | 2022-03-21T16:08:22.000Z | from matplotlib import pyplot as plt
def make_training_plots(
title: str, save_file_path: str, epoch_data, test_data, test_data_generated=None
):
"""
Make plots for training progress of NPI network
Arguments:
epoch_losses -- List of tuples: (epoch, avg_epoch_loss)
test_losses -- List of tuple... | 33.862069 | 101 | 0.681263 | 148 | 982 | 4.297297 | 0.405405 | 0.075472 | 0.081761 | 0.08805 | 0.237421 | 0.213836 | 0.106918 | 0.106918 | 0.106918 | 0.106918 | 0 | 0.01625 | 0.185336 | 982 | 28 | 102 | 35.071429 | 0.77875 | 0.207739 | 0 | 0 | 1 | 0 | 0.125333 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22e379f324848328490afa522e746ee29a9b5a4f | 1,094 | py | Python | PandemSimulation/networks/Networks.py | jonand9010/Pandem_sim | 718fbbf0b045097a3c5899c879ff589a4657ab1a | [
"MIT"
] | null | null | null | PandemSimulation/networks/Networks.py | jonand9010/Pandem_sim | 718fbbf0b045097a3c5899c879ff589a4657ab1a | [
"MIT"
] | null | null | null | PandemSimulation/networks/Networks.py | jonand9010/Pandem_sim | 718fbbf0b045097a3c5899c879ff589a4657ab1a | [
"MIT"
] | null | null | null | import numpy as np
import networkx as nx
import json
class SIRNetwork:
def __init__(self, datafiles, travel_rate, beta, gamma, travel_infection_rate = 1):
self.graph, self.A, self.pos = self.load_graph(datafiles['data'], datafiles['position'])
self.nodes = list(self.graph.nodes())
self.nod... | 32.176471 | 96 | 0.644424 | 155 | 1,094 | 4.296774 | 0.322581 | 0.048048 | 0.085586 | 0.048048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004981 | 0.265996 | 1,094 | 33 | 97 | 33.151515 | 0.824408 | 0.036563 | 0 | 0 | 0 | 0 | 0.011396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.32 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22ea4d91eff795ade356c924c70e7e47b84ff146 | 14,887 | py | Python | pyleecan/Classes/OPslip.py | tobsen2code/pyleecan | 5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9 | [
"Apache-2.0"
] | null | null | null | pyleecan/Classes/OPslip.py | tobsen2code/pyleecan | 5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9 | [
"Apache-2.0"
] | null | null | null | pyleecan/Classes/OPslip.py | tobsen2code/pyleecan | 5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Simulation/OPslip.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/OPslip
"""
from os import linesep
from sys import getsizeo... | 32.790749 | 109 | 0.589911 | 1,948 | 14,887 | 4.216632 | 0.113963 | 0.024714 | 0.064402 | 0.044315 | 0.369735 | 0.291941 | 0.193937 | 0.111152 | 0.091673 | 0.081446 | 0 | 0.02172 | 0.322698 | 14,887 | 453 | 110 | 32.863135 | 0.792919 | 0.189964 | 0 | 0.197568 | 1 | 0 | 0.08765 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 1 | 0.051672 | false | 0 | 0.167173 | 0 | 0.303951 | 0 | 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 |
22edfaa3b0c984ba379108127a08fce1a7101693 | 406 | py | Python | [TEMP] Reference Files/CentroidDetection/commons/NeighbourhoodFunctions.py | Madhurima1819/CentroidDetection-using-ML | 6f81cb76bd36a0a8578c9c159ceb386842cde2dc | [
"Apache-2.0"
] | null | null | null | [TEMP] Reference Files/CentroidDetection/commons/NeighbourhoodFunctions.py | Madhurima1819/CentroidDetection-using-ML | 6f81cb76bd36a0a8578c9c159ceb386842cde2dc | [
"Apache-2.0"
] | null | null | null | [TEMP] Reference Files/CentroidDetection/commons/NeighbourhoodFunctions.py | Madhurima1819/CentroidDetection-using-ML | 6f81cb76bd36a0a8578c9c159ceb386842cde2dc | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
'''Neighbourhood Functions for Self-Organizing Maps. These distribution functions are:
1. Bubble Distribution Function
2. Gaussian Distribution Function
'''
import math
BubbleDistribution = lambda dist, sigma : 1 if (dist <= sigma) else 0
GaussianDistributon = lambda dist, sigma : 0 if (... | 36.909091 | 135 | 0.70936 | 56 | 406 | 5.142857 | 0.517857 | 0.09375 | 0.104167 | 0.090278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032164 | 0.157635 | 406 | 11 | 135 | 36.909091 | 0.809942 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
22ee71890994b7238b1847ea844094c964ec5d26 | 9,892 | py | Python | src/gmailMethods.py | Mxngls/Gmail-Cleaner | 788f9cab8c2c5688e86894fa3b7f94a514e9010c | [
"MIT"
] | null | null | null | src/gmailMethods.py | Mxngls/Gmail-Cleaner | 788f9cab8c2c5688e86894fa3b7f94a514e9010c | [
"MIT"
] | null | null | null | src/gmailMethods.py | Mxngls/Gmail-Cleaner | 788f9cab8c2c5688e86894fa3b7f94a514e9010c | [
"MIT"
] | null | null | null | from gmailClient import GmailClient
from tqdm import tqdm
import sys
class GmailMethod:
def __init__(self):
self.gmailclient = GmailClient()
self.users = []
self.users_query = []
self.total_from_users = 0
self.messages = []
self.total_messages = 0
self.moved_to_trash = 0
self.moved_to_spam = 0
sel... | 31.303797 | 104 | 0.696118 | 1,363 | 9,892 | 4.971387 | 0.12766 | 0.032615 | 0.045455 | 0.0518 | 0.706021 | 0.683146 | 0.672521 | 0.65791 | 0.652745 | 0.602273 | 0 | 0.002509 | 0.194298 | 9,892 | 315 | 105 | 31.403175 | 0.847679 | 0.409017 | 0 | 0.464052 | 0 | 0 | 0.16551 | 0.0176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091503 | false | 0 | 0.019608 | 0 | 0.176471 | 0.084967 | 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 |
22efbf2c4a6a6a46fc6115b78b5dbf94cb7a6ba2 | 3,258 | py | Python | BinFI-benchmarks/dave-driving/steering-allFI.py | DependableSystemsLab/TensorFI-BinaryFI | a4367c9e7610f9c31fb7663655b584ab71a96fdf | [
"MIT"
] | 2 | 2020-03-11T11:38:06.000Z | 2021-12-30T13:23:15.000Z | BinFI-benchmarks/dave-driving/steering-allFI.py | mehrdad-moradi/TensorFI-BinaryFI | a4367c9e7610f9c31fb7663655b584ab71a96fdf | [
"MIT"
] | 2 | 2021-02-01T03:50:06.000Z | 2021-02-01T03:51:36.000Z | BinFI-benchmarks/dave-driving/steering-allFI.py | mehrdad-moradi/TensorFI-BinaryFI | a4367c9e7610f9c31fb7663655b584ab71a96fdf | [
"MIT"
] | 1 | 2021-02-03T14:02:33.000Z | 2021-02-03T14:02:33.000Z | ### Nvidia Dave steering model, model structure is in model.py
### Implementation from https://github.com/SullyChen/Autopilot-TensorFlow
### Dataset available from https://github.com/SullyChen/driving-datasets
import tensorflow as tf
import scipy.misc
import model
import cv2
from subprocess import call
import drivin... | 38.329412 | 141 | 0.668815 | 463 | 3,258 | 4.643629 | 0.37797 | 0.066512 | 0.055814 | 0.042791 | 0.455814 | 0.411163 | 0.411163 | 0.411163 | 0.411163 | 0.411163 | 0 | 0.045489 | 0.190301 | 3,258 | 84 | 142 | 38.785714 | 0.769522 | 0.360958 | 0 | 0.064516 | 0 | 0 | 0.05542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.290323 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22f44bf7b12b9084001c8b8bd9df8baf19812f84 | 7,298 | py | Python | trunk/VyPy/optimize/Variable.py | paulcon/VyPy | 5acb40e8d19ea76f3cd45f9cf98f252ca15e23f6 | [
"BSD-3-Clause"
] | 1 | 2021-12-28T06:39:54.000Z | 2021-12-28T06:39:54.000Z | trunk/VyPy/optimize/Variable.py | paulcon/VyPy | 5acb40e8d19ea76f3cd45f9cf98f252ca15e23f6 | [
"BSD-3-Clause"
] | null | null | null | trunk/VyPy/optimize/Variable.py | paulcon/VyPy | 5acb40e8d19ea76f3cd45f9cf98f252ca15e23f6 | [
"BSD-3-Clause"
] | null | null | null |
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import os, shutil, sys, copy
import numpy as np
from VyPy.tools.arrays import array_type, matrix_type, atleast_2d
from VyPy.data import OrderedDict,... | 32.873874 | 76 | 0.478761 | 722 | 7,298 | 4.743767 | 0.15374 | 0.014599 | 0.008759 | 0.024526 | 0.440292 | 0.409343 | 0.324964 | 0.289051 | 0.289051 | 0.289051 | 0 | 0.008035 | 0.317895 | 7,298 | 222 | 77 | 32.873874 | 0.679992 | 0.139353 | 0 | 0.295455 | 0 | 0 | 0.023381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037879 | null | null | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22f4b4d03e52e0a37b30d197915c691251aec5c0 | 137,907 | py | Python | src/STQLParser.py | andersonjwan/tltk-mtl-ext | a4f0314df6c55d532b7f9d169b6d08bff3811ef3 | [
"BSD-3-Clause"
] | 1 | 2020-12-11T21:32:46.000Z | 2020-12-11T21:32:46.000Z | src/STQLParser.py | andersonjwan/tltk-mtl-ext | a4f0314df6c55d532b7f9d169b6d08bff3811ef3 | [
"BSD-3-Clause"
] | null | null | null | src/STQLParser.py | andersonjwan/tltk-mtl-ext | a4f0314df6c55d532b7f9d169b6d08bff3811ef3 | [
"BSD-3-Clause"
] | null | null | null | # Generated from STQL.g4 by ANTLR 4.8
# encoding: utf-8
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5... | 36.348708 | 140 | 0.576983 | 14,267 | 137,907 | 5.496601 | 0.076891 | 0.011222 | 0.032313 | 0.007243 | 0.692782 | 0.653558 | 0.594836 | 0.536266 | 0.507651 | 0.37938 | 0 | 0.06193 | 0.317141 | 137,907 | 3,793 | 141 | 36.358292 | 0.770811 | 0.012073 | 0 | 0.560327 | 1 | 0.034424 | 0.099997 | 0.077829 | 0 | 0 | 0.000059 | 0 | 0 | 1 | 0.176551 | false | 0.018746 | 0.00409 | 0.069189 | 0.367757 | 0 | 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 |
22f75d95bc40e581711b1c654efc6f3d1149e532 | 295 | py | Python | code/resize_code.py | goldenberg-lab/goldenberg-lab.github.io | f13075acf02c52dade3c298014667fca1fa21a79 | [
"CC-BY-3.0"
] | null | null | null | code/resize_code.py | goldenberg-lab/goldenberg-lab.github.io | f13075acf02c52dade3c298014667fca1fa21a79 | [
"CC-BY-3.0"
] | null | null | null | code/resize_code.py | goldenberg-lab/goldenberg-lab.github.io | f13075acf02c52dade3c298014667fca1fa21a79 | [
"CC-BY-3.0"
] | 1 | 2021-09-17T01:52:51.000Z | 2021-09-17T01:52:51.000Z | # Script for re-sizing/shrinking photos
import PIL
from PIL import Image
import os
os.chdir('/home/benbrew88/Desktop/pics')
for number in range(1)[1:]:
img = Image.open(str(number) + '.png')
img = img.resize((600, 400), PIL.Image.ANTIALIAS)
img.save(str(number) + '_big.png')
| 17.352941 | 53 | 0.671186 | 46 | 295 | 4.282609 | 0.652174 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.169492 | 295 | 16 | 54 | 18.4375 | 0.763265 | 0.125424 | 0 | 0 | 0 | 0 | 0.15873 | 0.111111 | 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 |
22f9e6f292ad64c32c04fa65a58cb4cbd16086f2 | 1,475 | py | Python | saleor/order/migrations/0045_auto_20180329_0142.py | igoryok-zp/saleor | 3a6fe51c068aca991331d6eb43317102ed68ed09 | [
"CC-BY-4.0"
] | 1 | 2021-04-15T07:15:47.000Z | 2021-04-15T07:15:47.000Z | saleor/order/migrations/0045_auto_20180329_0142.py | igoryok-zp/saleor | 3a6fe51c068aca991331d6eb43317102ed68ed09 | [
"CC-BY-4.0"
] | 1 | 2020-04-27T01:00:45.000Z | 2020-04-27T01:00:45.000Z | saleor/order/migrations/0045_auto_20180329_0142.py | techonomics69/saleor | fd4cf8531b65fed24b742d51bec8f015d61f3efc | [
"CC-BY-4.0"
] | 1 | 2021-04-15T07:16:34.000Z | 2021-04-15T07:16:34.000Z | # Generated by Django 2.0.3 on 2018-03-29 06:42
import django.db.models.deletion
import django_prices.models
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("product", "0054_merge_20180320_1108"),
("order", "0044_... | 32.065217 | 83 | 0.598644 | 145 | 1,475 | 5.889655 | 0.455172 | 0.063232 | 0.126464 | 0.154567 | 0.490632 | 0.490632 | 0.440281 | 0.327869 | 0.208431 | 0.208431 | 0 | 0.050962 | 0.294915 | 1,475 | 45 | 84 | 32.777778 | 0.770192 | 0.030508 | 0 | 0.384615 | 1 | 0 | 0.139356 | 0.048319 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.179487 | 0 | 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 |
fe0274c0da57929395a1cb31171cc5190d6428a8 | 20,382 | py | Python | WallStreetFighters/ChartsModule/Chart.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | WallStreetFighters/ChartsModule/Chart.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | WallStreetFighters/ChartsModule/Chart.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | # coding: utf-8
__author__="Andrzej Smoliński"
__date__ ="$2012-02-23 19:00:48$"
from ChartData import ChartData
from matplotlib.collections import LineCollection
from matplotlib.collections import PatchCollection
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as... | 42.819328 | 157 | 0.568394 | 2,274 | 20,382 | 5.048373 | 0.229991 | 0.043902 | 0.019251 | 0.01115 | 0.252091 | 0.223432 | 0.201394 | 0.174303 | 0.133014 | 0.102526 | 0 | 0.015286 | 0.319547 | 20,382 | 475 | 158 | 42.909474 | 0.812459 | 0.056619 | 0 | 0.330729 | 0 | 0 | 0.018204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044271 | null | null | 0.002604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe0462cf514207e1a551b3f8586267f96e05d7f0 | 982 | py | Python | SBaaS_thermodynamics/stage03_quantification_otherData_io.py | dmccloskey/SBaaS_thermodynamics | 0eeed0191f952ea0226ab8bbc234a30638fb2f9f | [
"MIT"
] | null | null | null | SBaaS_thermodynamics/stage03_quantification_otherData_io.py | dmccloskey/SBaaS_thermodynamics | 0eeed0191f952ea0226ab8bbc234a30638fb2f9f | [
"MIT"
] | null | null | null | SBaaS_thermodynamics/stage03_quantification_otherData_io.py | dmccloskey/SBaaS_thermodynamics | 0eeed0191f952ea0226ab8bbc234a30638fb2f9f | [
"MIT"
] | null | null | null | # System
import json
# SBaaS
from .stage03_quantification_otherData_query import stage03_quantification_otherData_query
from SBaaS_base.sbaas_template_io import sbaas_template_io
# Resources
from io_utilities.base_importData import base_importData
from io_utilities.base_exportData import base_exportData
class stage03_... | 36.37037 | 100 | 0.762729 | 105 | 982 | 6.761905 | 0.285714 | 0.11831 | 0.169014 | 0.147887 | 0.369014 | 0.369014 | 0.214085 | 0.214085 | 0.214085 | 0.214085 | 0 | 0.019465 | 0.162933 | 982 | 27 | 101 | 36.37037 | 0.844282 | 0.045825 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
fe05e4e5f6aa105e0dd7b4f355cf4f17ca3dc5f1 | 635 | py | Python | tracardi_day_night_split/service/day_night_checker.py | atompie/tracardi-day-night-split | b9fd6bea1d587ec8979b30539f1c1e536a0d8434 | [
"MIT"
] | null | null | null | tracardi_day_night_split/service/day_night_checker.py | atompie/tracardi-day-night-split | b9fd6bea1d587ec8979b30539f1c1e536a0d8434 | [
"MIT"
] | null | null | null | tracardi_day_night_split/service/day_night_checker.py | atompie/tracardi-day-night-split | b9fd6bea1d587ec8979b30539f1c1e536a0d8434 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Tuple
from astral import LocationInfo
from astral.sun import sun
import pytz
def day_night_split(time_now, latitude: str, longitude: str) -> Tuple[datetime, datetime]:
loc_info = LocationInfo(latitude=float(latitude), longitude=float(longitude))
sun_info = sun... | 25.4 | 90 | 0.735433 | 91 | 635 | 4.956044 | 0.351648 | 0.046563 | 0.05765 | 0.101996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165354 | 635 | 24 | 91 | 26.458333 | 0.850943 | 0 | 0 | 0 | 0 | 0 | 0.020472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
fe0c0bbc22462ce3c4b45f3aa5a7f4ebdeb75597 | 2,130 | py | Python | ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,664 | 2015-01-03T09:35:21.000Z | 2022-03-31T04:55:24.000Z | ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 3,018 | 2015-02-19T20:16:10.000Z | 2021-11-13T20:47:48.000Z | ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 1,673 | 2015-01-06T14:14:42.000Z | 2022-03-31T07:22:30.000Z | """
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 ... | 33.28125 | 120 | 0.731925 | 321 | 2,130 | 4.813084 | 0.454829 | 0.038835 | 0.041424 | 0.020712 | 0.083495 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003511 | 0.197653 | 2,130 | 63 | 121 | 33.809524 | 0.900527 | 0.037089 | 0 | 0.181818 | 0 | 0 | 0.004296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | 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 |
fe0c910e54b096a856804a4e0047ad29ae6f5132 | 6,113 | py | Python | testsuite/compat/pyhelpers/s3_lock.py | stonebuddha/libra | 9ab012ba67f906975a3284975a3305a6e4973631 | [
"Apache-2.0"
] | 3 | 2020-05-16T08:46:16.000Z | 2020-08-06T19:46:49.000Z | testsuite/compat/pyhelpers/s3_lock.py | pepenemo/libra | 86a42bc1f1113868ee8c4815f0d3a137a923ed52 | [
"Apache-2.0"
] | 38 | 2020-09-03T12:10:25.000Z | 2022-03-18T17:38:20.000Z | testsuite/compat/pyhelpers/s3_lock.py | ma2bd/libra | 9690e86ff5747b6d78e3b1e257c2e0505fcb2612 | [
"Apache-2.0"
] | 1 | 2021-02-06T18:31:17.000Z | 2021-02-06T18:31:17.000Z | #!/usr/bin/env python3
# Copyright (c) The Libra Core Contributors
# SPDX-License-Identifier: Apache-2.0
import hashlib
import base64
from datetime import datetime, timedelta
from .cli import execute_cmd_with_json_output, execute_cmd_with_text_output
TIMESTAMP_FMT = "%Y-%m-%dT%H:%M:%S.%fZ"
RETENTION_BYPASS = "Mode=GOV... | 34.150838 | 142 | 0.644364 | 753 | 6,113 | 5.022576 | 0.249668 | 0.090164 | 0.071391 | 0.026441 | 0.488366 | 0.414331 | 0.366473 | 0.341089 | 0.307774 | 0.28715 | 0 | 0.008592 | 0.257484 | 6,113 | 178 | 143 | 34.342697 | 0.824631 | 0.18387 | 0 | 0.5 | 0 | 0 | 0.223711 | 0.059683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.05303 | 0.030303 | 0 | 0.219697 | 0.05303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe0caafaa0379c959e87783cc3ea33298f3d9d74 | 320 | py | Python | examples/custom_record/boot.py | insighio/senml-micropython-library | 4e4351aaf19f50b787b6a0846b2cf41089e72bc3 | [
"MIT"
] | 2 | 2018-08-26T13:50:21.000Z | 2019-10-21T10:41:47.000Z | examples/custom_record/boot.py | insighio/senml-micropython-library | 4e4351aaf19f50b787b6a0846b2cf41089e72bc3 | [
"MIT"
] | null | null | null | examples/custom_record/boot.py | insighio/senml-micropython-library | 4e4351aaf19f50b787b6a0846b2cf41089e72bc3 | [
"MIT"
] | 1 | 2020-02-03T13:53:37.000Z | 2020-02-03T13:53:37.000Z | # _ __ ____ _ _
# | |/ / | _ \ | \ | |
# | ' / | |_) | | \| |
# | . \ | __/ | |\ |
# |_|\_\ |_| |_| \_|
#
# (c) 2018 KPN
# License: MIT license.
# Author: Jan Bogaerts
#
# custom records example
# boot.py -- run on boot-up
import os
import machine
uart = machine.UART(0, 115200)
os.dupterm(uart)
| 16.842105 | 30 | 0.478125 | 30 | 320 | 4.5 | 0.766667 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04955 | 0.30625 | 320 | 18 | 31 | 17.777778 | 0.558559 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fe11e86bd1eceb39aa68421078189edbecdc121a | 910 | py | Python | tests/storyhub/sdk/service/Volume_test.py | wilzbach/hub-sdk-python | 3dd2a3112276068080751198cb1fcc29975c0136 | [
"Apache-2.0"
] | null | null | null | tests/storyhub/sdk/service/Volume_test.py | wilzbach/hub-sdk-python | 3dd2a3112276068080751198cb1fcc29975c0136 | [
"Apache-2.0"
] | null | null | null | tests/storyhub/sdk/service/Volume_test.py | wilzbach/hub-sdk-python | 3dd2a3112276068080751198cb1fcc29975c0136 | [
"Apache-2.0"
] | null | null | null | import json
from storyhub.sdk.service.Volume import Volume
from tests.storyhub.sdk.JsonFixtureHelper import JsonFixtureHelper
volume_fixture = JsonFixtureHelper.load_fixture("volume_fixture")
volume_fixture_json = json.dumps(volume_fixture)
def test_deserialization(mocker):
mocker.patch.object(json, "loads", ... | 29.354839 | 75 | 0.808791 | 127 | 910 | 5.496063 | 0.314961 | 0.204871 | 0.097421 | 0.055874 | 0.361032 | 0.217765 | 0.13467 | 0.13467 | 0.13467 | 0.13467 | 0 | 0.001235 | 0.10989 | 910 | 30 | 76 | 30.333333 | 0.860494 | 0 | 0 | 0 | 0 | 0 | 0.026374 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.3125 | 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 |
fe170de416685c7111fa4ccc0e08502b4da5b50f | 977 | py | Python | src/web/schools/migrations/0006_auto_20160523_2147.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 5 | 2018-03-08T17:22:27.000Z | 2018-03-11T14:20:53.000Z | src/web/schools/migrations/0006_auto_20160523_2147.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 263 | 2018-03-08T18:05:12.000Z | 2022-03-11T23:26:20.000Z | src/web/schools/migrations/0006_auto_20160523_2147.py | fossabot/SIStema | 1427dda2082688a9482c117d0e24ad380fdc26a6 | [
"MIT"
] | 6 | 2018-03-12T19:48:19.000Z | 2022-01-14T04:58:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-23 16:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schools', '0005_auto_20160515_1808'),
]
operations = [
migrations.AlterField... | 31.516129 | 169 | 0.622313 | 110 | 977 | 5.4 | 0.636364 | 0.10101 | 0.126263 | 0.146465 | 0.304714 | 0.304714 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.26305 | 977 | 30 | 170 | 32.566667 | 0.752778 | 0.068577 | 0 | 0.391304 | 1 | 0.043478 | 0.272326 | 0.025358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe173db0e9cd3ff606a7337c025924b6b749a19e | 3,867 | py | Python | sdl2/log.py | py-sdl/py-sdl2 | 38ba051a39b86ccd2c5a95125c8d7cfea3ddb691 | [
"CC0-1.0"
] | 12 | 2022-02-10T17:04:08.000Z | 2022-03-30T21:05:12.000Z | sdl2/log.py | py-sdl/py-sdl2 | 38ba051a39b86ccd2c5a95125c8d7cfea3ddb691 | [
"CC0-1.0"
] | 4 | 2022-02-08T14:16:24.000Z | 2022-03-18T01:32:00.000Z | sdl2/log.py | py-sdl/py-sdl2 | 38ba051a39b86ccd2c5a95125c8d7cfea3ddb691 | [
"CC0-1.0"
] | 1 | 2022-03-21T22:23:34.000Z | 2022-03-21T22:23:34.000Z | from ctypes import c_int, c_char_p, c_void_p, CFUNCTYPE
from ctypes import POINTER as _P
from .dll import _bind, SDLFunc, AttributeDict
__all__ = [
# Defines
"SDL_MAX_LOG_MESSAGE",
# Enums
"SDL_LogCategory",
"SDL_LOG_CATEGORY_APPLICATION",
"SDL_LOG_CATEGORY_ERROR", "SDL_LOG_CATEGORY_ASSER... | 33.336207 | 83 | 0.784846 | 531 | 3,867 | 5.160075 | 0.218456 | 0.120438 | 0.20438 | 0.037956 | 0.113869 | 0.081752 | 0.061314 | 0 | 0 | 0 | 0 | 0.018513 | 0.11999 | 3,867 | 115 | 84 | 33.626087 | 0.786659 | 0.056374 | 0 | 0 | 0 | 0 | 0.319593 | 0.233581 | 0 | 0 | 0 | 0.008696 | 0.022472 | 1 | 0 | false | 0 | 0.033708 | 0 | 0.033708 | 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 |
fe199fcad613dda129b973565f6b5dd6b1f3acc9 | 24,925 | py | Python | keystonemiddleware/tests/unit/client_fixtures.py | sapcc/keystonemiddleware | 5407e6d6601fdfce01de110d6687549c6c89e77f | [
"Apache-1.1"
] | null | null | null | keystonemiddleware/tests/unit/client_fixtures.py | sapcc/keystonemiddleware | 5407e6d6601fdfce01de110d6687549c6c89e77f | [
"Apache-1.1"
] | null | null | null | keystonemiddleware/tests/unit/client_fixtures.py | sapcc/keystonemiddleware | 5407e6d6601fdfce01de110d6687549c6c89e77f | [
"Apache-1.1"
] | null | null | null | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 49.9499 | 79 | 0.633139 | 2,643 | 24,925 | 5.59667 | 0.10594 | 0.017847 | 0.022985 | 0.037182 | 0.752434 | 0.706463 | 0.643321 | 0.595119 | 0.567739 | 0.518997 | 0 | 0.108739 | 0.291595 | 24,925 | 498 | 80 | 50.050201 | 0.729003 | 0.056128 | 0 | 0.44335 | 0 | 0 | 0.160032 | 0.129731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004926 | false | 0 | 0.024631 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3addd8963f1741849dc95e09f02eb96d9247727 | 2,109 | py | Python | bin/logger/debugger_.py | adnane1deev/Hook | 8ed5a53ff22b89f7a7e3e80d94d37a08e143301f | [
"MIT"
] | null | null | null | bin/logger/debugger_.py | adnane1deev/Hook | 8ed5a53ff22b89f7a7e3e80d94d37a08e143301f | [
"MIT"
] | null | null | null | bin/logger/debugger_.py | adnane1deev/Hook | 8ed5a53ff22b89f7a7e3e80d94d37a08e143301f | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
class debugger_(object):
def __init__(self, logger_name='Hook logger'):
self.logger = logging.getLogger(logger_name)
self.logger.setLevel(logging.DEBUG)
self.file_handler = logging.FileHandler(filename="test.log", encoding='utf-8'... | 29.704225 | 147 | 0.601707 | 229 | 2,109 | 5.227074 | 0.327511 | 0.083542 | 0.062657 | 0.087719 | 0.066834 | 0.066834 | 0 | 0 | 0 | 0 | 0 | 0.009721 | 0.268374 | 2,109 | 70 | 148 | 30.128571 | 0.76604 | 0.084874 | 0 | 0.095238 | 0 | 0.02381 | 0.111351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0 | 0.261905 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3c310f058d3bc9be39f59cffb9364488bfee724 | 4,203 | py | Python | tests/format/optionflags.py | doraskayo/buildstream | 1c72d4342ae7df360808de22c5e49f55dbb6bec6 | [
"Apache-2.0"
] | null | null | null | tests/format/optionflags.py | doraskayo/buildstream | 1c72d4342ae7df360808de22c5e49f55dbb6bec6 | [
"Apache-2.0"
] | null | null | null | tests/format/optionflags.py | doraskayo/buildstream | 1c72d4342ae7df360808de22c5e49f55dbb6bec6 | [
"Apache-2.0"
] | null | null | null | # Pylint doesn't play well with fixtures and dependency injection from pytest
# pylint: disable=redefined-outer-name
import os
import pytest
from buildstream import _yaml
from buildstream.exceptions import ErrorDomain, LoadErrorReason
from buildstream.testing.runcli import cli # pylint: disable=unused-import
# Proje... | 40.028571 | 114 | 0.643826 | 511 | 4,203 | 5.205479 | 0.223092 | 0.041353 | 0.042105 | 0.043233 | 0.681203 | 0.671805 | 0.671805 | 0.671805 | 0.66391 | 0.63609 | 0 | 0.00116 | 0.179634 | 4,203 | 104 | 115 | 40.413462 | 0.770302 | 0.130145 | 0 | 0.45122 | 0 | 0 | 0.232079 | 0.01538 | 0 | 0 | 0 | 0 | 0.085366 | 1 | 0.060976 | false | 0 | 0.060976 | 0 | 0.121951 | 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 |
a3c965fa1079d9ac8b912b1c3d911af6deacd2b0 | 4,206 | py | Python | mail/mail.py | bewallyt/Kalendr | 45b793faae67f923f8b12074d1e9560b913c0ca2 | [
"MIT"
] | null | null | null | mail/mail.py | bewallyt/Kalendr | 45b793faae67f923f8b12074d1e9560b913c0ca2 | [
"MIT"
] | null | null | null | mail/mail.py | bewallyt/Kalendr | 45b793faae67f923f8b12074d1e9560b913c0ca2 | [
"MIT"
] | null | null | null | from django.core.mail import EmailMessage
import datetime
from subprocess import call
def send_post(post):
when = post.day_of_week + ', ' + post.show_date
if post.not_all_day:
when = when + ' at ' + post.show_begin_time
email = EmailMessage(to=[post.author.email])
email.template_name... | 37.221239 | 186 | 0.650975 | 538 | 4,206 | 4.888476 | 0.232342 | 0.044487 | 0.029278 | 0.047909 | 0.563118 | 0.526616 | 0.526616 | 0.490875 | 0.430038 | 0.430038 | 0 | 0.008879 | 0.22349 | 4,206 | 113 | 187 | 37.221239 | 0.796387 | 0.007133 | 0 | 0.52809 | 0 | 0.033708 | 0.170522 | 0.060778 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033708 | null | null | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3ca6b2b29e9eae68d1dd42b9a93ac0b2b19c455 | 71,882 | py | Python | examples/rough_translated1/osgunittests.py | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | examples/rough_translated1/osgunittests.py | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | examples/rough_translated1/osgunittests.py | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | #!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osgunittests"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import OpenThreads
from osgpypp import osg
from osgpypp import osgDB
# Translated from file 'FileNameUtils.cpp'... | 29.496102 | 166 | 0.643986 | 8,851 | 71,882 | 5.139419 | 0.119422 | 0.007035 | 0.005672 | 0.003869 | 0.419288 | 0.368705 | 0.34294 | 0.318824 | 0.302513 | 0.291279 | 0 | 0.024474 | 0.243413 | 71,882 | 2,436 | 167 | 29.50821 | 0.811952 | 0 | 0 | 0.221862 | 0 | 0 | 0.069928 | 0.014917 | 0 | 0 | 0 | 0.000411 | 0 | 0 | null | null | 0.002429 | 0.003239 | null | null | 0.093927 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3cb751898d26aa674146e761c9d2ca94fd9dcea | 1,764 | py | Python | correction/utils/TimeMeasure.py | Projeto-Onibus/FAS | 727c02d353a89065ef3f604f4dfa8f46dda1ae68 | [
"MIT"
] | null | null | null | correction/utils/TimeMeasure.py | Projeto-Onibus/FAS | 727c02d353a89065ef3f604f4dfa8f46dda1ae68 | [
"MIT"
] | null | null | null | correction/utils/TimeMeasure.py | Projeto-Onibus/FAS | 727c02d353a89065ef3f604f4dfa8f46dda1ae68 | [
"MIT"
] | null | null | null | import time
# Class to hold performance and measure execution time
#
# TODO: Use destructor to save progress in case of raised exception
#
class Measure:
def __init__(self, filenameInput):
self.filename = filenameInput
self.times = dict()
self.times['all'] = { 'start':time.time(),'force... | 33.283019 | 120 | 0.552154 | 237 | 1,764 | 4.050633 | 0.265823 | 0.1875 | 0.125 | 0.072917 | 0.311458 | 0.271875 | 0.271875 | 0.271875 | 0.271875 | 0.233333 | 0 | 0 | 0.278912 | 1,764 | 52 | 121 | 33.923077 | 0.754717 | 0.068027 | 0 | 0.179487 | 0 | 0 | 0.147651 | 0.018914 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.179487 | false | 0 | 0.025641 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a3cf9cd819f726cb149488ca9cb6eb1a8852b9cf | 417 | py | Python | io_util.py | xebecnan/arnanutil | fe34c69f61ccedf2f9c84ddd459fd6fb0b079138 | [
"MIT"
] | null | null | null | io_util.py | xebecnan/arnanutil | fe34c69f61ccedf2f9c84ddd459fd6fb0b079138 | [
"MIT"
] | null | null | null | io_util.py | xebecnan/arnanutil | fe34c69f61ccedf2f9c84ddd459fd6fb0b079138 | [
"MIT"
] | null | null | null | # coding: utf-8
import os
import sys
enc = sys.stdout.encoding
if enc:
def pe(s):
print s.decode('utf-8').encode(enc)
else:
def pe(s):
print s
def prepare_dir(dirname):
if not os.path.isdir(dirname):
os.makedirs(dirname)
def prepare_dir_for(filename):
dirname = os.path.dirnam... | 16.68 | 43 | 0.659472 | 66 | 417 | 4.060606 | 0.484848 | 0.11194 | 0.044776 | 0.08209 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.218225 | 417 | 24 | 44 | 17.375 | 0.815951 | 0.031175 | 0 | 0.117647 | 0 | 0 | 0.012469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3d849efc3bb1993f86e1815712ec91b6e374ac8 | 1,246 | py | Python | Lesson3/symmetric_square.py | Hayderhasan/Computer-Science-cs101 | 58f8f880e6bf17cef9b931bac1372e9f8c3b3205 | [
"MIT"
] | 4 | 2018-02-28T11:14:09.000Z | 2019-02-12T14:14:53.000Z | Lesson3/symmetric_square.py | Hayderhasan/Computer-Science-cs101 | 58f8f880e6bf17cef9b931bac1372e9f8c3b3205 | [
"MIT"
] | null | null | null | Lesson3/symmetric_square.py | Hayderhasan/Computer-Science-cs101 | 58f8f880e6bf17cef9b931bac1372e9f8c3b3205 | [
"MIT"
] | 2 | 2018-02-28T11:14:11.000Z | 2018-03-30T18:15:59.000Z | # A list is symmetric if the first row is the same as the first column,
# the second row is the same as the second column and so on. Write a
# procedure, symmetric, which takes a list as input, and returns the
# boolean True if the list is symmetric and False if it is not.
def symmetric(lista):
if lista == []:
... | 24.92 | 71 | 0.441413 | 164 | 1,246 | 3.353659 | 0.27439 | 0.152727 | 0.130909 | 0.116364 | 0.347273 | 0.3 | 0.192727 | 0.123636 | 0 | 0 | 0 | 0.047244 | 0.388443 | 1,246 | 49 | 72 | 25.428571 | 0.674541 | 0.253612 | 0 | 0.322581 | 0 | 0 | 0.066377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3da0b0c2ecca2f783481a09458ce0765b261ad9 | 588 | py | Python | make-pdf.py | gofore/angular-advanced-training | d742f03522565a0af809610029073526eab6cdee | [
"CC0-1.0",
"0BSD"
] | null | null | null | make-pdf.py | gofore/angular-advanced-training | d742f03522565a0af809610029073526eab6cdee | [
"CC0-1.0",
"0BSD"
] | null | null | null | make-pdf.py | gofore/angular-advanced-training | d742f03522565a0af809610029073526eab6cdee | [
"CC0-1.0",
"0BSD"
] | null | null | null | import os
sections = [
'angular-now/README.md',
'advanced-observables/README.md',
'unidirectional-data-flow/README.md',
'progressive-web-application/README.md',
'e2e-testing/README.md'
]
for filename in sections:
f = open(os.path.join('.', filename), 'rt')
print(f.read() + '\n\n---')
f.close()
# Making PDF s... | 28 | 96 | 0.705782 | 93 | 588 | 4.462366 | 0.655914 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021401 | 0.12585 | 588 | 20 | 97 | 29.4 | 0.785992 | 0.460884 | 0 | 0 | 0 | 0 | 0.491961 | 0.459807 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3dc57b0812cccf7641eef1825c2d9bb68076123 | 568 | py | Python | section6/list_type.py | ayoung90/ATBSWP | b373ec325cdd5f5290c82fdb2fb1716bb316d771 | [
"MIT"
] | null | null | null | section6/list_type.py | ayoung90/ATBSWP | b373ec325cdd5f5290c82fdb2fb1716bb316d771 | [
"MIT"
] | null | null | null | section6/list_type.py | ayoung90/ATBSWP | b373ec325cdd5f5290c82fdb2fb1716bb316d771 | [
"MIT"
] | null | null | null | spam = ['cat', 'bat', 'rat', 'elephant']
print(spam[2])
spam2 = [['fish', 'shark'], 'bat', 'rat', 'elephant']
print(spam2[0])
print(spam2[0][1])
spam[2:4] = ['CAT', 'MOOSE', 'BEAR']
print(spam)
del spam[2]
print(spam)
print('MOOSE' in spam)
# Iterate over lists by item or index
for item in spam:
print(item)... | 13.209302 | 53 | 0.607394 | 92 | 568 | 3.75 | 0.434783 | 0.104348 | 0.081159 | 0.110145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023504 | 0.176056 | 568 | 43 | 54 | 13.209302 | 0.713675 | 0.088028 | 0 | 0.08 | 0 | 0 | 0.147287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.56 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3e009ccf40de5e9b3b42baa9e366d10feb5593c | 5,956 | py | Python | balsn-2021-writeup/alldata/misc/darkknight/challenge.py | Jimmy01240397/balsn-2021-writeup | 91b71dfbddc1c214552280b12979a82ee1c3cb7e | [
"MIT"
] | null | null | null | balsn-2021-writeup/alldata/misc/darkknight/challenge.py | Jimmy01240397/balsn-2021-writeup | 91b71dfbddc1c214552280b12979a82ee1c3cb7e | [
"MIT"
] | null | null | null | balsn-2021-writeup/alldata/misc/darkknight/challenge.py | Jimmy01240397/balsn-2021-writeup | 91b71dfbddc1c214552280b12979a82ee1c3cb7e | [
"MIT"
] | null | null | null | import os
import shutil
base_dir = f"C:\\Users\\balsnctf\\Documents\\Dark Knight\\tmp-{os.urandom(16).hex()}"
def init():
os.mkdir(base_dir)
os.chdir(base_dir)
with open("39671", "w") as f:
f.write("alice\nalice1025")
with open("683077", "w") as f:
f.write("bob\nbob0105a")
def passwo... | 26.70852 | 85 | 0.442915 | 647 | 5,956 | 4.046368 | 0.227202 | 0.034377 | 0.02521 | 0.034377 | 0.433155 | 0.407945 | 0.385409 | 0.368602 | 0.360963 | 0.360963 | 0 | 0.025466 | 0.433009 | 5,956 | 223 | 86 | 26.70852 | 0.748001 | 0 | 0 | 0.578378 | 0 | 0.005405 | 0.194561 | 0.011751 | 0 | 0 | 0.005372 | 0 | 0 | 1 | 0.037838 | false | 0.081081 | 0.010811 | 0 | 0.086486 | 0.205405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3e314ba2a7f99d3b649c9194add050b8fe773b6 | 3,253 | py | Python | redsys/client.py | viapyme/python-redsys | d5ec10967d3fa34156e3104222890780b1c9cf85 | [
"MIT"
] | null | null | null | redsys/client.py | viapyme/python-redsys | d5ec10967d3fa34156e3104222890780b1c9cf85 | [
"MIT"
] | null | null | null | redsys/client.py | viapyme/python-redsys | d5ec10967d3fa34156e3104222890780b1c9cf85 | [
"MIT"
] | 1 | 2019-02-05T10:01:24.000Z | 2019-02-05T10:01:24.000Z | # -*- coding: utf-8 -*-
import re
import hashlib
import json
import base64
import hmac
from Crypto.Cipher import DES3
from abc import ABCMeta, abstractmethod
from . import currencies, languages, transactions
from .response import Response
from .request import Request
# Calculated parameters
SIGNATURE_VERSION = 'Ds_Si... | 35.358696 | 107 | 0.72948 | 382 | 3,253 | 6 | 0.274869 | 0.094241 | 0.007853 | 0.008726 | 0.20637 | 0.138743 | 0.069808 | 0.066318 | 0.066318 | 0.033159 | 0 | 0.025689 | 0.174301 | 3,253 | 91 | 108 | 35.747253 | 0.827625 | 0.013219 | 0 | 0.089552 | 0 | 0 | 0.107889 | 0.006548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164179 | false | 0 | 0.149254 | 0.059701 | 0.61194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3e65f3cce573d87bbaa3cb64e8c15c6e1a89224 | 1,269 | py | Python | models/interface.py | syakhmi/cs236-proj | 086bcec467a2461122c6b1cc8026cca41c2b439c | [
"MIT"
] | null | null | null | models/interface.py | syakhmi/cs236-proj | 086bcec467a2461122c6b1cc8026cca41c2b439c | [
"MIT"
] | null | null | null | models/interface.py | syakhmi/cs236-proj | 086bcec467a2461122c6b1cc8026cca41c2b439c | [
"MIT"
] | null | null | null | from torch import nn
class ConditionedGenerativeModel(nn.Module):
'''
Interface that your models should implement
'''
def __init__(self, embd_size):
'''
:param embd_size: int, dimension of the conditional embedding
'''
self.embd_size = embd_size
super(Conditione... | 35.25 | 117 | 0.63751 | 145 | 1,269 | 5.4 | 0.393103 | 0.07152 | 0.1341 | 0.088123 | 0.340996 | 0.340996 | 0.340996 | 0.340996 | 0.340996 | 0.273308 | 0 | 0 | 0.273444 | 1,269 | 36 | 118 | 35.25 | 0.849241 | 0.510638 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3f128d9ce177ebac4143ea2df93246d1001ece8 | 321 | py | Python | 6 kyu/Numbers Plus Pattern.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Numbers Plus Pattern.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Numbers Plus Pattern.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def pattern(n):
if n==0:
return ""
res=[]
for i in range(n-1):
res.append(" "*(n-1)+str((i+1)%10))
temp="".join(str(i%10) for i in range(1, n))
res.append(temp+str(n%10)+temp[::-1])
for i in range(n-1, 0, -1):
res.append(" "*(n-1)+str(i%10))
return "\n".join(res)+"\n... | 29.181818 | 48 | 0.476636 | 61 | 321 | 2.508197 | 0.278689 | 0.052288 | 0.117647 | 0.215686 | 0.372549 | 0.372549 | 0.20915 | 0 | 0 | 0 | 0 | 0.075314 | 0.255452 | 321 | 11 | 49 | 29.181818 | 0.564854 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
a3f3625f8812fff41fe609651f1e52bbd4556bce | 632 | py | Python | kryptobot/ta/pyti_average_true_range.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 24 | 2018-05-29T13:44:36.000Z | 2022-03-12T20:41:45.000Z | kryptobot/ta/pyti_average_true_range.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 23 | 2018-07-08T02:31:18.000Z | 2020-06-02T04:07:49.000Z | kryptobot/ta/pyti_average_true_range.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 14 | 2018-08-10T15:44:27.000Z | 2021-06-14T07:14:52.000Z | from .generic_indicator import GenericIndicator
from pyti.average_true_range import average_true_range as atr
# params: period
# https://github.com/kylejusticemagnuson/pyti/blob/master/pyti/average_true_range.py
class PytiAverageTrueRange(GenericIndicator):
def __init__(self, market, interval, periods, params=No... | 35.111111 | 84 | 0.735759 | 81 | 632 | 5.493827 | 0.54321 | 0.074157 | 0.107865 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001876 | 0.156646 | 632 | 17 | 85 | 37.176471 | 0.833021 | 0.153481 | 0 | 0 | 0 | 0 | 0.011278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.1 | 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 |
a3f8c731faf64b18db0baa5f37759288b8c3884c | 14,722 | py | Python | wunderground-temp-display.py | barbergeek/weatherbot | 225f1fc00bc302726a650b1548e5d292cd4b6b75 | [
"MIT"
] | null | null | null | wunderground-temp-display.py | barbergeek/weatherbot | 225f1fc00bc302726a650b1548e5d292cd4b6b75 | [
"MIT"
] | null | null | null | wunderground-temp-display.py | barbergeek/weatherbot | 225f1fc00bc302726a650b1548e5d292cd4b6b75 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# wunderground-temp-display.py
#
# Python script to grab Wunderground temperature data and display on scrollphathd. This script shows the current temperature along with an indicator of
# the temperature trend (same, going up, going down), averaged over a given period of time. It also shows a smal... | 43.815476 | 219 | 0.748675 | 2,425 | 14,722 | 4.430103 | 0.243299 | 0.024295 | 0.01117 | 0.004096 | 0.145583 | 0.109653 | 0.091967 | 0.080052 | 0.080052 | 0.073722 | 0 | 0.019707 | 0.169338 | 14,722 | 335 | 220 | 43.946269 | 0.858778 | 0.572748 | 0 | 0.25 | 0 | 0 | 0.119668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.132979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3fb057e14703c9f47b40d1d2c74a3ce3284006f | 316 | py | Python | dish/parse_help.py | dullbananas/dish | 01f1439bc38861c0890412becccc9135c05e621b | [
"MIT"
] | 13 | 2019-11-25T00:52:58.000Z | 2021-01-04T14:43:12.000Z | dish/parse_help.py | dullbananas/dish | 01f1439bc38861c0890412becccc9135c05e621b | [
"MIT"
] | null | null | null | dish/parse_help.py | dullbananas/dish | 01f1439bc38861c0890412becccc9135c05e621b | [
"MIT"
] | 1 | 2020-01-23T19:59:22.000Z | 2020-01-23T19:59:22.000Z | import re
from collections import namedtuple
Help = namedtuple('Help', 'options')
opt_pattern = re.compile(r'((--[a-zA-Z\-]+)|(-[a-zA-Z])\b)')
def parse_help(helpstr):
# Contains options, e.g. --help, --verbose, -o
options = [match[1] for match in opt_pattern.finditer(helpstr)]
return Help(options=options)
| 22.571429 | 64 | 0.683544 | 47 | 316 | 4.531915 | 0.617021 | 0.131455 | 0.037559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00361 | 0.123418 | 316 | 13 | 65 | 24.307692 | 0.765343 | 0.139241 | 0 | 0 | 0 | 0 | 0.155556 | 0.114815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a3feb9b06cbed9b83e8d8f55a089873a9c7901ea | 12,294 | py | Python | Fusion3D/MS_F3D_AlignUsingANTS.py | JaneliaSciComp/MetaSegmenter | 6db3e8e26677b49be999773daee6ea475985df55 | [
"Unlicense"
] | null | null | null | Fusion3D/MS_F3D_AlignUsingANTS.py | JaneliaSciComp/MetaSegmenter | 6db3e8e26677b49be999773daee6ea475985df55 | [
"Unlicense"
] | null | null | null | Fusion3D/MS_F3D_AlignUsingANTS.py | JaneliaSciComp/MetaSegmenter | 6db3e8e26677b49be999773daee6ea475985df55 | [
"Unlicense"
] | null | null | null | #! /usr/local/python-2.7.6/bin/python
#
# Copyright (C) 2015 by Howard Hughes Medical Institute.
#
# Purpose: given segmentation stack, alighn a couple of layers
# using ANTS
# ------------------------- imports -------------------------
import os, glob, gc
import shutil, commands
imp... | 37.827692 | 103 | 0.550106 | 1,508 | 12,294 | 4.307692 | 0.199602 | 0.060961 | 0.023091 | 0.02032 | 0.264624 | 0.218134 | 0.173799 | 0.131466 | 0.088054 | 0.04218 | 0 | 0.028222 | 0.288108 | 12,294 | 324 | 104 | 37.944444 | 0.714008 | 0.155604 | 0 | 0.220408 | 0 | 0 | 0.106113 | 0.018282 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044898 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4306f81aad9a4e1f06045afe2c67fb40dc4e3a33 | 674 | py | Python | swmopenface/labtorch.py | Octoberr/swmopenface | 064304fd2e475f93ed0c50654da3fa33f4c2ebac | [
"Apache-2.0"
] | null | null | null | swmopenface/labtorch.py | Octoberr/swmopenface | 064304fd2e475f93ed0c50654da3fa33f4c2ebac | [
"Apache-2.0"
] | null | null | null | swmopenface/labtorch.py | Octoberr/swmopenface | 064304fd2e475f93ed0c50654da3fa33f4c2ebac | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
"""
creat by swm
"""
import openface
import os
import shutil
import cv2
fileDir = os.path.dirname(os.path.realpath(__file__))
modelDir = os.path.join(fileDir, '..', 'models')
dlibModelDir = os.path.join(modelDir, 'dlib')
openfaceModelDir = os.path.join(modelDir, 'openface')
predict = os.path.join(dlibMo... | 30.636364 | 77 | 0.75816 | 91 | 674 | 5.494505 | 0.582418 | 0.084 | 0.1 | 0.072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011475 | 0.094955 | 674 | 21 | 78 | 32.095238 | 0.808197 | 0.032641 | 0 | 0 | 0 | 0 | 0.125596 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
430b719dfa3bc2b055fd40d17530ec8c3ed9bf0e | 385 | py | Python | feeds/migrations/0005_source_description.py | StevenMonty/django-feed-reader | 95731a4178f028f6539c55dce77928a377a9cdd9 | [
"MIT"
] | 21 | 2019-06-21T09:17:32.000Z | 2022-03-04T06:55:36.000Z | feeds/migrations/0005_source_description.py | StevenMonty/django-feed-reader | 95731a4178f028f6539c55dce77928a377a9cdd9 | [
"MIT"
] | 7 | 2020-09-07T12:21:55.000Z | 2020-10-27T17:39:58.000Z | feeds/migrations/0005_source_description.py | StevenMonty/django-feed-reader | 95731a4178f028f6539c55dce77928a377a9cdd9 | [
"MIT"
] | 15 | 2019-09-01T03:58:17.000Z | 2022-01-16T05:25:40.000Z | # Generated by Django 2.2.4 on 2019-08-04 21:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feeds', '0004_webproxy'),
]
operations = [
migrations.AddField(
model_name='source',
name='description',
... | 20.263158 | 58 | 0.58961 | 41 | 385 | 5.487805 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069597 | 0.290909 | 385 | 18 | 59 | 21.388889 | 0.754579 | 0.116883 | 0 | 0 | 1 | 0 | 0.10355 | 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 |
4313d9d258282133a0a2ddc79fa4ebb0e74225c6 | 2,807 | py | Python | bestbuyapi/api/base.py | lv10/bestbuyapi | a424473e94fbcd21dd7a93d46233000c856188e8 | [
"MIT"
] | 10 | 2015-11-19T18:06:23.000Z | 2022-03-22T20:29:18.000Z | bestbuyapi/api/base.py | lv10/bestbuyapi | a424473e94fbcd21dd7a93d46233000c856188e8 | [
"MIT"
] | 2 | 2020-01-29T00:43:40.000Z | 2021-01-27T18:32:15.000Z | bestbuyapi/api/base.py | lv10/bestbuyapi | a424473e94fbcd21dd7a93d46233000c856188e8 | [
"MIT"
] | 2 | 2020-01-09T09:15:48.000Z | 2020-12-26T11:02:49.000Z | import requests
from ..utils.exceptions import BestBuyAPIError
from ..constants import (
API_SEARCH_PARAMS,
BASE_URL,
BULK_API,
STORE_SEARCH_PARAMS,
PRODUCT_SEARCH_PARAMS,
)
class BestBuyCore(object):
def __init__(self, api_key):
"""API's base class
:params:
:api_key (... | 30.182796 | 90 | 0.585679 | 345 | 2,807 | 4.617391 | 0.333333 | 0.045198 | 0.018832 | 0.030132 | 0.215945 | 0.215945 | 0.126805 | 0.051475 | 0.051475 | 0.051475 | 0 | 0.001066 | 0.331315 | 2,807 | 92 | 91 | 30.51087 | 0.847629 | 0.298896 | 0 | 0.133333 | 0 | 0 | 0.085311 | 0.015254 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.111111 | false | 0 | 0.066667 | 0.022222 | 0.311111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4313e323848462cdcb8a910d37d9f2ad309dc0e7 | 765 | py | Python | datacamp/case_collections/crimes_by_block.py | anilgeorge04/learn-ds | f1a9c638e29270d4d72fc3aed0af3ccea8c53350 | [
"MIT"
] | null | null | null | datacamp/case_collections/crimes_by_block.py | anilgeorge04/learn-ds | f1a9c638e29270d4d72fc3aed0af3ccea8c53350 | [
"MIT"
] | null | null | null | datacamp/case_collections/crimes_by_block.py | anilgeorge04/learn-ds | f1a9c638e29270d4d72fc3aed0af3ccea8c53350 | [
"MIT"
] | null | null | null | from collections import Counter
from collections import defaultdict
from datetime import datetime
# crimes_by_block dictionary uses block name as key and contains list of crimes
# Create a unique list of crimes for the first block: n_state_st_crimes
n_state_st_crimes = set(crimes_by_block['001XX N STATE ST'])
# Prin... | 30.6 | 79 | 0.818301 | 127 | 765 | 4.669291 | 0.338583 | 0.107926 | 0.067454 | 0.094435 | 0.340641 | 0.27656 | 0.124789 | 0.124789 | 0.124789 | 0 | 0 | 0.010622 | 0.138562 | 765 | 24 | 80 | 31.875 | 0.889226 | 0.491503 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43297a228f9a0fdc25bc7d0758bb5ac235a484ed | 169 | py | Python | Multidimensional-Arrays/Lab-Multidimensional-Lists/primary_diagonal.py | dechevh/Python-Advanced | 9daf33771b9096db77bcbf05ae2a4591b876c723 | [
"MIT"
] | 2 | 2020-09-15T19:12:26.000Z | 2020-09-15T19:12:30.000Z | Multidimensional-Arrays/Lab-Multidimensional-Lists/primary_diagonal.py | dechevh/Python-Advanced | 9daf33771b9096db77bcbf05ae2a4591b876c723 | [
"MIT"
] | 1 | 2021-07-06T09:20:49.000Z | 2021-07-06T09:20:49.000Z | Multidimensional-Arrays/Lab-Multidimensional-Lists/primary_diagonal.py | dechevh/Python-Advanced | 9daf33771b9096db77bcbf05ae2a4591b876c723 | [
"MIT"
] | null | null | null | n = int(input())
matrix = [list(map(int, input().split(" "))) for _ in range(n)]
total = 0
for i in range(n):
value = matrix[i][i]
total += value
print(total) | 16.9 | 63 | 0.579882 | 28 | 169 | 3.464286 | 0.535714 | 0.164948 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.213018 | 169 | 10 | 64 | 16.9 | 0.721805 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
432d890f62784fc63bb16afd050f45cc8ad1115f | 932 | py | Python | data/train/python/432d890f62784fc63bb16afd050f45cc8ad1115fproject.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/432d890f62784fc63bb16afd050f45cc8ad1115fproject.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/432d890f62784fc63bb16afd050f45cc8ad1115fproject.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from spire.mesh import ModelController
from spire.schema import SchemaDependency
from lattice.server.resources import Project as ProjectResource
from lattice.server.models import *
class ProjectController(ModelController):
resource = ProjectResource
version = (1, 0)
model = Project
mapping = 'id stat... | 34.518519 | 79 | 0.668455 | 92 | 932 | 6.717391 | 0.434783 | 0.090615 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002782 | 0.228541 | 932 | 26 | 80 | 35.846154 | 0.856745 | 0 | 0 | 0.095238 | 0 | 0 | 0.090129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.190476 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
432e7f7c6062d0dd793ccdc19142abd435ab101b | 1,322 | py | Python | production/pygsl-0.9.5/examples/multifit.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | null | null | null | production/pygsl-0.9.5/examples/multifit.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | null | null | null | production/pygsl-0.9.5/examples/multifit.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | 1 | 2018-10-02T06:18:07.000Z | 2018-10-02T06:18:07.000Z | import pygsl
import pygsl._numobj as numx
import pygsl.rng
import pygsl.multifit
def calculate(x, y, sigma):
n = len(x)
X = numx.ones((n,3),)*1.
X[:,0] = 1.0
X[:,1] = x
X[:,2] = x ** 2
w = 1.0 / sigma ** 2
work = pygsl.multifit.linear_workspace(n,3)
c, cov, chisq = pygsl.multifit.wlinea... | 28.12766 | 64 | 0.524962 | 204 | 1,322 | 3.338235 | 0.328431 | 0.035242 | 0.052863 | 0.048458 | 0.148311 | 0.0837 | 0 | 0 | 0 | 0 | 0 | 0.054583 | 0.265507 | 1,322 | 46 | 65 | 28.73913 | 0.646756 | 0.178517 | 0 | 0 | 0 | 0 | 0.148045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
433daef9f41b2a8edc4f4e6061d74bcff2be1a4a | 1,710 | py | Python | Assignment_3/Multiple_Workers_Implemented/requester.py | ZainQasmi/CS382-Network-Centric-Computing-LUMS | 33c757866676ec8e1753df9fff98a729e56678d5 | [
"MIT"
] | null | null | null | Assignment_3/Multiple_Workers_Implemented/requester.py | ZainQasmi/CS382-Network-Centric-Computing-LUMS | 33c757866676ec8e1753df9fff98a729e56678d5 | [
"MIT"
] | null | null | null | Assignment_3/Multiple_Workers_Implemented/requester.py | ZainQasmi/CS382-Network-Centric-Computing-LUMS | 33c757866676ec8e1753df9fff98a729e56678d5 | [
"MIT"
] | null | null | null | import socket
import sys
import time
import threading
import errno
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setblocking(0)
except socket.error:
print 'Failed to create socket'
sys.exit()
host = 'localhost';
port = 8888;
msg = '__client__'
s.sendto(msg, (host, port))
ping_counte... | 22.5 | 68 | 0.564912 | 209 | 1,710 | 4.449761 | 0.411483 | 0.070968 | 0.054839 | 0.045161 | 0.189247 | 0.169892 | 0.169892 | 0 | 0 | 0 | 0 | 0.023569 | 0.305263 | 1,710 | 76 | 69 | 22.5 | 0.759259 | 0.146199 | 0 | 0.226415 | 0 | 0 | 0.127586 | 0.014483 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09434 | null | null | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4343466698e600537c893d7ff1946407935ff917 | 409 | py | Python | manage.py | LandRegistry/register-meta-data | 941c9440ab948d038ab2d476d4f3d711a675f764 | [
"MIT"
] | null | null | null | manage.py | LandRegistry/register-meta-data | 941c9440ab948d038ab2d476d4f3d711a675f764 | [
"MIT"
] | 1 | 2015-08-17T09:26:15.000Z | 2015-08-17T09:26:15.000Z | manage.py | LandRegistry/register-metadata | 941c9440ab948d038ab2d476d4f3d711a675f764 | [
"MIT"
] | null | null | null | from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
import os
from application.models import *
from application.routes import app
from application import db
app.config.from_object(os.environ.get('SETTINGS'))
print(app.config)
migrate = Migrate(app, db)
manager = Manager(app)
... | 19.47619 | 53 | 0.775061 | 56 | 409 | 5.482143 | 0.464286 | 0.14658 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122249 | 409 | 20 | 54 | 20.45 | 0.855153 | 0 | 0 | 0 | 0 | 0 | 0.04401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
434419bd7e78f324bc2e80fe91a7062ffd43a960 | 2,057 | py | Python | check_data_quality.py | alicexue/MTurk | f91dc9f735605de098f5a5cf5999502e2482963e | [
"Apache-2.0"
] | null | null | null | check_data_quality.py | alicexue/MTurk | f91dc9f735605de098f5a5cf5999502e2482963e | [
"Apache-2.0"
] | null | null | null | check_data_quality.py | alicexue/MTurk | f91dc9f735605de098f5a5cf5999502e2482963e | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import csv
import os
import sys
from manage_subject_info import *
from manage_data_quality import *
"""
Creates csv file with summary statistics for each participant:
number of trials in choice task which they responded
and percent consistency of responses in choice task with auction bids
"""
_... | 29.385714 | 131 | 0.754497 | 251 | 2,057 | 6.075697 | 0.40239 | 0.019672 | 0.015738 | 0.014426 | 0.302295 | 0.28 | 0.184262 | 0.119344 | 0.119344 | 0 | 0 | 0.003352 | 0.129801 | 2,057 | 69 | 132 | 29.811594 | 0.848603 | 0.031113 | 0 | 0.304348 | 0 | 0 | 0.119287 | 0.013935 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43470f92fa9528094a861f02346a3c56a6ab4e5f | 1,633 | py | Python | examples/dynamic_routing/dynamic_routing_src/models/capsnet_transformer.py | eduardosanchezg/fairseq-dynamic-routing-plugin | c0d89cdbced20be07f0180c9c2c0e49624cf1934 | [
"MIT"
] | null | null | null | examples/dynamic_routing/dynamic_routing_src/models/capsnet_transformer.py | eduardosanchezg/fairseq-dynamic-routing-plugin | c0d89cdbced20be07f0180c9c2c0e49624cf1934 | [
"MIT"
] | null | null | null | examples/dynamic_routing/dynamic_routing_src/models/capsnet_transformer.py | eduardosanchezg/fairseq-dynamic-routing-plugin | c0d89cdbced20be07f0180c9c2c0e49624cf1934 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
from fairseq.models import register_model, register_model_architecture
from fairseq.models.transformer impor... | 31.403846 | 86 | 0.725046 | 187 | 1,633 | 6.117647 | 0.465241 | 0.078671 | 0.038462 | 0.05507 | 0.118881 | 0.08042 | 0 | 0 | 0 | 0 | 0 | 0.010973 | 0.16289 | 1,633 | 52 | 87 | 31.403846 | 0.825896 | 0.32823 | 0 | 0 | 0 | 0 | 0.053122 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.041667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a2d4ec66c5ae931c55834bd033c5a1d326908cf | 1,758 | py | Python | fHDHR_web/rmg/devices_devicekey_scanners.py | deathbybandaid/fHDHR_NewsOn | 06d205a3ca677b88fa93b9b7503465aed1838c6b | [
"WTFPL"
] | 2 | 2021-11-21T18:45:35.000Z | 2022-01-11T16:11:48.000Z | fHDHR_web/rmg/devices_devicekey_scanners.py | deathbybandaid/fHDHR_NewsOn | 06d205a3ca677b88fa93b9b7503465aed1838c6b | [
"WTFPL"
] | null | null | null | fHDHR_web/rmg/devices_devicekey_scanners.py | deathbybandaid/fHDHR_NewsOn | 06d205a3ca677b88fa93b9b7503465aed1838c6b | [
"WTFPL"
] | null | null | null | from flask import Response, request
from io import BytesIO
import xml.etree.ElementTree
from fHDHR.tools import sub_el
class RMG_Devices_DeviceKey_Scanners():
endpoints = ["/devices/<devicekey>/scanners", "/rmg/devices/<devicekey>/scanners"]
endpoint_name = "rmg_devices_devicekey_scanners"
endpoint_metho... | 35.877551 | 95 | 0.539818 | 186 | 1,758 | 4.978495 | 0.489247 | 0.069114 | 0.103672 | 0.087473 | 0.12527 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016074 | 0.327645 | 1,758 | 48 | 96 | 36.625 | 0.767343 | 0.083618 | 0 | 0 | 0 | 0 | 0.158354 | 0.057357 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.088235 | false | 0 | 0.117647 | 0.029412 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a2f6d76829030104932e9c1aa282bc82e5cc1cb | 288 | py | Python | UniExplore/base/migrations/0038_merge_20220323_1156.py | MichaelHills01/group-software-project-1 | 20847c062f7b4221bfb483eca28cb09a7a646a2b | [
"MIT"
] | 1 | 2022-03-09T17:16:00.000Z | 2022-03-09T17:16:00.000Z | UniExplore/base/migrations/0038_merge_20220323_1156.py | MichaelHills01/group-software-project-1 | 20847c062f7b4221bfb483eca28cb09a7a646a2b | [
"MIT"
] | 60 | 2022-02-20T22:23:13.000Z | 2022-03-23T16:37:45.000Z | UniExplore/base/migrations/0038_merge_20220323_1156.py | MichaelHills01/group-software-project-1 | 20847c062f7b4221bfb483eca28cb09a7a646a2b | [
"MIT"
] | 16 | 2022-02-19T13:10:04.000Z | 2022-03-23T12:21:21.000Z | # Generated by Django 4.0.2 on 2022-03-23 11:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('base', '0036_profile_following'),
('base', '0037_reportcomments_reportposts_delete_report'),
]
operations = [
]
| 19.2 | 66 | 0.666667 | 33 | 288 | 5.636364 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102222 | 0.21875 | 288 | 14 | 67 | 20.571429 | 0.724444 | 0.15625 | 0 | 0 | 1 | 0 | 0.311203 | 0.278008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a31c6fd406b8c9c3dbc7b533fb8df786a951f6e | 596 | py | Python | gadget_command.py | milhauszn/muj-pyth | de393c21e299d2165f3956fb08ed291910ac4f94 | [
"Apache-2.0"
] | 10 | 2015-07-24T11:39:22.000Z | 2018-08-29T21:13:33.000Z | gadget_command.py | milhauszn/muj-pyth | de393c21e299d2165f3956fb08ed291910ac4f94 | [
"Apache-2.0"
] | 2 | 2015-08-03T12:08:24.000Z | 2015-10-03T18:32:01.000Z | gadget_command.py | milhauszn/muj-pyth | de393c21e299d2165f3956fb08ed291910ac4f94 | [
"Apache-2.0"
] | 4 | 2015-07-26T19:21:52.000Z | 2021-01-21T22:02:16.000Z | """
Simple demo for sending commands to the TURRIS:DONGLE.
It can be used for sensor registration, etc.::
>> python gadget_command.py "GET SLOT:01"
SENDING: GET SLOT:01
REPLY: SLOT:01 [07473725]
>> python gadget_command.py SET SLOT:03 [07439975]
SENDING: SET SLOT:03 [07439975]
REPLY: OK
"""
... | 22.074074 | 54 | 0.652685 | 84 | 596 | 4.488095 | 0.595238 | 0.047745 | 0.100796 | 0.111406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08243 | 0.22651 | 596 | 26 | 55 | 22.923077 | 0.735358 | 0 | 0 | 0 | 0 | 0 | 0.122744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a31f9aff3b05f198712c2e4710c675e6a3d0797 | 1,225 | py | Python | src/phoenix/__init__.py | stjude/phoenix | 08559d8886b23be25bae804792e533c92c68a61b | [
"Apache-2.0"
] | null | null | null | src/phoenix/__init__.py | stjude/phoenix | 08559d8886b23be25bae804792e533c92c68a61b | [
"Apache-2.0"
] | null | null | null | src/phoenix/__init__.py | stjude/phoenix | 08559d8886b23be25bae804792e533c92c68a61b | [
"Apache-2.0"
] | 1 | 2021-02-20T17:03:24.000Z | 2021-02-20T17:03:24.000Z | #!/usr/bin/env python3
"""
Initializaiton
+--------------------------------------------------------------------------+
| Copyright 2019 St. Jude Children's Research Hospital |
| |
| Licensed under a modified version of the Apa... | 53.26087 | 76 | 0.474286 | 114 | 1,225 | 5.061404 | 0.719298 | 0.086655 | 0.045061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012531 | 0.348571 | 1,225 | 22 | 77 | 55.681818 | 0.710526 | 0.973061 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a39f06adf4198e41e97d31161f4c5eb79ce942b | 467 | py | Python | setup.py | wfrierson/dashathon | 1d770a56330f92330e27ebab6627d68663d9ff7c | [
"MIT"
] | 1 | 2021-09-02T19:14:38.000Z | 2021-09-02T19:14:38.000Z | setup.py | Chisquareatops/dashathon | ff4f983c453eaaa37de81be5e24fee7a56eb38cd | [
"MIT"
] | 2 | 2021-03-31T19:10:56.000Z | 2021-12-13T20:01:29.000Z | setup.py | Chisquareatops/dashathon | ff4f983c453eaaa37de81be5e24fee7a56eb38cd | [
"MIT"
] | 2 | 2019-06-10T03:54:20.000Z | 2019-06-12T04:52:31.000Z | import setuptools
setuptools.setup(
name='dashathon',
version='0.9.0',
description='A dashboard to help athletes train for marathons using 20 years of historical data',
author='Hallie Ertman, Will Frierson, Ishna Kaul, Edwin Matthew',
author_email='harriet.c.ertman@gmail.com, will.frierson@g... | 42.454545 | 113 | 0.721627 | 61 | 467 | 5.491803 | 0.770492 | 0.071642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025381 | 0.156317 | 467 | 11 | 114 | 42.454545 | 0.824873 | 0 | 0 | 0 | 0 | 0.1 | 0.598291 | 0.155983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a3f17af4e99aa88a9ce50f711b116f1436829ab | 712 | py | Python | molsysmt/physchem/atomic_radius.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | molsysmt/physchem/atomic_radius.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | molsysmt/physchem/atomic_radius.py | dprada/molsysmt | 83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d | [
"MIT"
] | null | null | null | import numpy as np
from molsysmt import puw
def atomic_radius(molecular_system, selection='all', type='vdw'):
from molsysmt.basic import get
from molsysmt.physico_chemical_properties.atoms.radius import units
from molsysmt._private_tools._digestion import digest_target
if type=='vdw':
from mo... | 25.428571 | 85 | 0.719101 | 91 | 712 | 5.461538 | 0.516484 | 0.120724 | 0.044266 | 0.076459 | 0.217304 | 0.217304 | 0.217304 | 0.217304 | 0 | 0 | 0 | 0 | 0.196629 | 712 | 27 | 86 | 26.37037 | 0.868881 | 0 | 0 | 0 | 0 | 0 | 0.018284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a3fae5702dbaa02055f4d9cd6609e8017044d50 | 3,176 | py | Python | nimare/tests/test_transforms.py | koudyk/NiMARE | 5bbc6bc2cbd2083bea450ce67047e69f75b70d28 | [
"MIT"
] | null | null | null | nimare/tests/test_transforms.py | koudyk/NiMARE | 5bbc6bc2cbd2083bea450ce67047e69f75b70d28 | [
"MIT"
] | 1 | 2020-12-20T18:44:03.000Z | 2020-12-20T18:44:03.000Z | nimare/tests/test_transforms.py | jdkent/NiMARE | 5bbc6bc2cbd2083bea450ce67047e69f75b70d28 | [
"MIT"
] | 1 | 2020-10-30T02:57:41.000Z | 2020-10-30T02:57:41.000Z | """
Test nimare.transforms
"""
import numpy as np
from nimare import transforms, utils
def test_transform_images(testdata_ibma):
"""Smoke test on transforms.transform_images"""
dset = testdata_ibma
z_files = dset.images["z"].tolist()
new_images = transforms.transform_images(
dset.images, targ... | 30.538462 | 98 | 0.642947 | 470 | 3,176 | 4.142553 | 0.26383 | 0.090395 | 0.053416 | 0.070878 | 0.522856 | 0.484335 | 0.484335 | 0.427324 | 0.362609 | 0.257833 | 0 | 0.114014 | 0.20466 | 3,176 | 103 | 99 | 30.834951 | 0.65677 | 0.092254 | 0 | 0.30303 | 0 | 0 | 0.015742 | 0 | 0 | 0 | 0 | 0.019417 | 0.212121 | 1 | 0.121212 | false | 0 | 0.030303 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a42408fd6cfe4aacb5254cb0e00068a2540b3e2 | 3,201 | py | Python | office_weather/monitor.py | fpf2000/co2info | 470c71f23082f8b4aa91af74debe8cd6736935cd | [
"MIT"
] | null | null | null | office_weather/monitor.py | fpf2000/co2info | 470c71f23082f8b4aa91af74debe8cd6736935cd | [
"MIT"
] | null | null | null | office_weather/monitor.py | fpf2000/co2info | 470c71f23082f8b4aa91af74debe8cd6736935cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# based on code by henryk ploetz
# https://hackaday.io/project/5301-reverse-engineering-a-low-cost-usb-co-monitor/log/17909-all-your-base-are-belong-to-us
import os, sys, fcntl, time, librato, yaml, socket
def decrypt(key, data):
cstate = [0x48, 0x74, 0x65, 0x6D, 0x70, 0x39, 0x39, 0... | 29.638889 | 121 | 0.557013 | 452 | 3,201 | 3.882743 | 0.415929 | 0.034188 | 0.014245 | 0.017094 | 0.031909 | 0.031909 | 0.031909 | 0 | 0 | 0 | 0 | 0.07064 | 0.292409 | 3,201 | 107 | 122 | 29.915888 | 0.704194 | 0.104655 | 0 | 0.123288 | 0 | 0 | 0.053441 | 0.012079 | 0 | 0 | 0.042094 | 0 | 0 | 0 | null | null | 0 | 0.013699 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a42d32e88e182359dc2b4c377019fc2f3fdca5e | 9,555 | py | Python | Kooleposhti/courses/migrations/0001_initial.py | ParizanTeam/Kooleposhti-Backend | e7d819b3e93836f1a893cc51541056cbf681d1c6 | [
"MIT"
] | null | null | null | Kooleposhti/courses/migrations/0001_initial.py | ParizanTeam/Kooleposhti-Backend | e7d819b3e93836f1a893cc51541056cbf681d1c6 | [
"MIT"
] | null | null | null | Kooleposhti/courses/migrations/0001_initial.py | ParizanTeam/Kooleposhti-Backend | e7d819b3e93836f1a893cc51541056cbf681d1c6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-13 18:02
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0008_user_image'),
]
operations = [
migrations.CreateModel(
... | 53.379888 | 271 | 0.572161 | 939 | 9,555 | 5.691161 | 0.181044 | 0.033683 | 0.047156 | 0.074102 | 0.703593 | 0.654753 | 0.554454 | 0.547904 | 0.532186 | 0.515157 | 0 | 0.013677 | 0.265411 | 9,555 | 178 | 272 | 53.679775 | 0.747685 | 0.00471 | 0 | 0.538012 | 1 | 0 | 0.126841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.040936 | 0 | 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 |
4a46f68e1d748e13e273332b1a55c6cbe60a8831 | 5,052 | py | Python | msTeams/utils/auth.py | zee-bit/Selemander | 6d3a45668f2043d9d182afeb5d35c1a6ecc7c52c | [
"MIT"
] | 2 | 2021-05-14T13:04:54.000Z | 2021-05-23T15:03:44.000Z | msTeams/utils/auth.py | zee-bit/Selemander | 6d3a45668f2043d9d182afeb5d35c1a6ecc7c52c | [
"MIT"
] | 4 | 2021-05-14T12:43:39.000Z | 2021-05-15T06:41:29.000Z | msTeams/utils/auth.py | zee-bit/Selemander | 6d3a45668f2043d9d182afeb5d35c1a6ecc7c52c | [
"MIT"
] | null | null | null | import time
import stdiomask
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import ... | 41.752066 | 111 | 0.638559 | 597 | 5,052 | 5.18928 | 0.261307 | 0.051646 | 0.030988 | 0.040671 | 0.216914 | 0.190123 | 0.181085 | 0.13073 | 0.13073 | 0.117172 | 0 | 0.004252 | 0.255146 | 5,052 | 121 | 112 | 41.752066 | 0.819027 | 0.092835 | 0 | 0.204301 | 0 | 0 | 0.143014 | 0.047671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053763 | false | 0.193548 | 0.129032 | 0 | 0.27957 | 0.010753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a4cfbdc5b8a9bb7d356ec0514a296e9501ca62d | 850 | py | Python | socketIOServer.py | WorldViews/Spirals | 7efe2d145298a53c9d79db73b79428efff1e0908 | [
"MIT"
] | null | null | null | socketIOServer.py | WorldViews/Spirals | 7efe2d145298a53c9d79db73b79428efff1e0908 | [
"MIT"
] | 2 | 2021-02-08T20:23:17.000Z | 2021-04-30T20:42:00.000Z | socketIOServer.py | WorldViews/Spirals | 7efe2d145298a53c9d79db73b79428efff1e0908 | [
"MIT"
] | 2 | 2016-05-26T20:24:00.000Z | 2019-08-01T03:11:49.000Z |
from flask import Flask, render_template, send_file, send_from_directory
from flask_socketio import SocketIO, emit
app = Flask(__name__, static_url_path='')
app.debug = True
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
@app.route('/')
def index():
return send_file('index.html')
@app.route('/Vie... | 22.972973 | 72 | 0.68 | 120 | 850 | 4.566667 | 0.375 | 0.043796 | 0.093066 | 0.054745 | 0.160584 | 0.160584 | 0.160584 | 0.160584 | 0.160584 | 0 | 0 | 0.002755 | 0.145882 | 850 | 36 | 73 | 23.611111 | 0.752066 | 0.038824 | 0 | 0.076923 | 0 | 0 | 0.184275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a5643501e1f43a08ec9c565978b16c8f698c206 | 1,359 | py | Python | lighting.py | Mythirion/VirtualRobot | a671fa57dfdd37f7ee284997ad722e3bd12d788c | [
"MIT"
] | null | null | null | lighting.py | Mythirion/VirtualRobot | a671fa57dfdd37f7ee284997ad722e3bd12d788c | [
"MIT"
] | null | null | null | lighting.py | Mythirion/VirtualRobot | a671fa57dfdd37f7ee284997ad722e3bd12d788c | [
"MIT"
] | null | null | null | class Vector2f(object):
def __init__(x,y):
self.x=x
self.y=y
class Block(object):
def __init__(x,y,width,height):
self.x = x
self.y = y
self.width = width
self.height = height
def getVertices() :
a = Vector2f(self.x, self.y)
b = new Vector2f(self.x+self.width, self.y)
c =... | 16.9875 | 61 | 0.639441 | 191 | 1,359 | 4.465969 | 0.235602 | 0.041032 | 0.060961 | 0.079719 | 0.327081 | 0.24619 | 0.180539 | 0.180539 | 0 | 0 | 0 | 0.005644 | 0.217807 | 1,359 | 79 | 62 | 17.202532 | 0.796802 | 0 | 0 | 0.303571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
4a57994d3bcbaf0aae87aefe79d46f487d36c604 | 325 | py | Python | jionlp/algorithm/summary/__init__.py | ji3g4m6zo6/JioNLP | 6935edc872c8133b1615fd4ec7f901e1ce7c25cc | [
"Apache-2.0"
] | 1,063 | 2020-04-27T12:15:00.000Z | 2022-03-31T06:35:29.000Z | jionlp/algorithm/summary/__init__.py | zsctju/JioNLP | 6a4a34393f2d076da08b1e103893ec0ee2de2c01 | [
"Apache-2.0"
] | 45 | 2020-08-02T09:22:53.000Z | 2022-03-20T14:40:20.000Z | jionlp/algorithm/summary/__init__.py | zsctju/JioNLP | 6a4a34393f2d076da08b1e103893ec0ee2de2c01 | [
"Apache-2.0"
] | 157 | 2020-04-28T20:49:25.000Z | 2022-03-31T06:09:29.000Z | # -*- coding=utf-8 -*-
# library: jionlp
# author: dongrixinyu
# license: Apache License 2.0
# Email: dongrixinyu.89@163.com
# github: https://github.com/dongrixinyu/JioNLP
# description: Preprocessing tool for Chinese NLP
from .extract_summary import ChineseSummaryExtractor
extract_summary = ChineseSummaryExtracto... | 21.666667 | 52 | 0.769231 | 37 | 325 | 6.702703 | 0.756757 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02807 | 0.123077 | 325 | 14 | 53 | 23.214286 | 0.842105 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a5c461493d28c2f824f40ebc88d48c20ffca922 | 16,279 | py | Python | smartrecruiters_python_client/models/jobs_report_content.py | roksela/smartrecruiters-python-client | 6d0849d173a3d6718b5f0769098f4c76857f637d | [
"MIT"
] | 5 | 2018-03-27T08:20:13.000Z | 2022-03-30T06:23:38.000Z | smartrecruiters_python_client/models/jobs_report_content.py | roksela/smartrecruiters-python-client | 6d0849d173a3d6718b5f0769098f4c76857f637d | [
"MIT"
] | null | null | null | smartrecruiters_python_client/models/jobs_report_content.py | roksela/smartrecruiters-python-client | 6d0849d173a3d6718b5f0769098f4c76857f637d | [
"MIT"
] | 2 | 2018-12-05T04:48:37.000Z | 2020-12-17T12:12:12.000Z | # coding: utf-8
"""
Unofficial python library for the SmartRecruiters API
The SmartRecruiters API provides a platform to integrate services or applications, build apps and create fully customizable career sites. It exposes SmartRecruiters functionality and allows to connect and build software enhancing it.
... | 29.706204 | 443 | 0.632226 | 1,701 | 16,279 | 5.764844 | 0.099353 | 0.046502 | 0.178258 | 0.05619 | 0.602794 | 0.448297 | 0.260453 | 0.106873 | 0.016317 | 0 | 0 | 0.000435 | 0.293138 | 16,279 | 547 | 444 | 29.760512 | 0.851742 | 0.360894 | 0 | 0.280952 | 0 | 0 | 0.10695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209524 | false | 0 | 0.014286 | 0 | 0.347619 | 0.004762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a5f5f16ca4b191cb32bb78237a6ad6567772ab5 | 6,965 | py | Python | compounddb/tools.py | gitanna/chemminetools | 1cfef18bcd773421c95f8662857f31e363211cdc | [
"BSD-4-Clause-UC"
] | 2 | 2017-12-11T23:17:40.000Z | 2020-08-17T08:35:01.000Z | compounddb/tools.py | gitanna/chemminetools | 1cfef18bcd773421c95f8662857f31e363211cdc | [
"BSD-4-Clause-UC"
] | null | null | null | compounddb/tools.py | gitanna/chemminetools | 1cfef18bcd773421c95f8662857f31e363211cdc | [
"BSD-4-Clause-UC"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
from logging import root, basicConfig
import openbabel
import sys
import re
import tempfile
import os
import codecs
import md5
import compounddb.sdfiterator
import string
import random
cur_dir = os.path.... | 21.902516 | 162 | 0.560086 | 872 | 6,965 | 4.397936 | 0.272936 | 0.012777 | 0.013038 | 0.013559 | 0.219296 | 0.199739 | 0.156454 | 0.145502 | 0.130378 | 0.130378 | 0 | 0.008886 | 0.272936 | 6,965 | 317 | 163 | 21.971609 | 0.74842 | 0.059296 | 0 | 0.301587 | 0 | 0 | 0.079467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010582 | 0.079365 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a6167b0d195a6bf38798a3c6804f9e22aa397b9 | 3,315 | py | Python | invk_generator/invk_generator.py | zakimadaoui/Kenematics_dataset_generator_for_any_robotic_manipulator | eae7c8fc389c784ddd8d416c76ca6e99b6846bbd | [
"Apache-2.0"
] | 1 | 2020-03-22T18:02:07.000Z | 2020-03-22T18:02:07.000Z | invk_generator/invk_generator.py | zakimadaoui/Kenematics_dataset_generator_for_any_robotic_manipulator | eae7c8fc389c784ddd8d416c76ca6e99b6846bbd | [
"Apache-2.0"
] | null | null | null | invk_generator/invk_generator.py | zakimadaoui/Kenematics_dataset_generator_for_any_robotic_manipulator | eae7c8fc389c784ddd8d416c76ca6e99b6846bbd | [
"Apache-2.0"
] | null | null | null | import numpy as np
import math
from data_parser import loadData
def c(t):
return math.cos(math.radians(t))
def s(t):
return math.sin(math.radians(t))
def generate_angles(num_dofs):
angles = np.random.uniform(low = -360, high = 360, size = (num_dofs,))
return angles
#TODO find the right imp... | 25.113636 | 118 | 0.480241 | 480 | 3,315 | 3.2375 | 0.254167 | 0.015444 | 0.013514 | 0.010296 | 0.105534 | 0.099099 | 0.03861 | 0.03861 | 0.03861 | 0.03861 | 0 | 0.047722 | 0.304676 | 3,315 | 131 | 119 | 25.305344 | 0.626464 | 0.177677 | 0 | 0.028169 | 1 | 0 | 0.0628 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 1 | 0.084507 | false | 0 | 0.042254 | 0.028169 | 0.197183 | 0.084507 | 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 |
4a67f0c2a5444b63cb02bb18b6383bd6c31c21c0 | 1,419 | py | Python | py/testdir_multi_jvm/notest_import_covtype_parse_4jvm_fvec.py | gigliovale/h2o | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 882 | 2015-05-22T02:59:21.000Z | 2022-02-17T05:02:48.000Z | py/testdir_multi_jvm/notest_import_covtype_parse_4jvm_fvec.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 1 | 2022-02-22T12:15:02.000Z | 2022-02-22T12:15:02.000Z | py/testdir_multi_jvm/notest_import_covtype_parse_4jvm_fvec.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 392 | 2015-05-22T17:04:11.000Z | 2022-02-22T09:04:39.000Z | import unittest, sys, random, time
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_browse as h2b, h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
pass
print "Will build clouds with incre... | 33 | 128 | 0.61945 | 172 | 1,419 | 4.924419 | 0.593023 | 0.021251 | 0.025974 | 0.03778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025267 | 0.274841 | 1,419 | 42 | 129 | 33.785714 | 0.797862 | 0.10007 | 0 | 0.137931 | 0 | 0 | 0.169025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.275862 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a6b0daf13f7ce4473f4874ee5a6ba7128de20bf | 819 | py | Python | generators/app/templates/app.py | jfeinstein10/generator-angular-flask-sqlalchemy | a1f415ef382993aca8015ca551db2a4c12fe8b59 | [
"MIT"
] | null | null | null | generators/app/templates/app.py | jfeinstein10/generator-angular-flask-sqlalchemy | a1f415ef382993aca8015ca551db2a4c12fe8b59 | [
"MIT"
] | null | null | null | generators/app/templates/app.py | jfeinstein10/generator-angular-flask-sqlalchemy | a1f415ef382993aca8015ca551db2a4c12fe8b59 | [
"MIT"
] | null | null | null | import os
from flask import Flask, render_template, send_file
from flask.ext.assets import Environment
from config import debug, secret
app = Flask(__name__)
app.secret_key = secret
app.debug = debug
assets = Environment(app)
assets.debug = debug
assets.auto_build = True
assets.from_yaml(os.path.join(app.static_fo... | 23.4 | 65 | 0.74359 | 119 | 819 | 4.941176 | 0.369748 | 0.045918 | 0.054422 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017931 | 0.114774 | 819 | 34 | 66 | 24.088235 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.133089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.16 | 0.16 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a76c91e5dce81b993b40e4935c3225ff2ae210d | 1,158 | py | Python | gyoithon/migrations/0010_auto_20210510_1535.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | 3 | 2021-07-03T12:41:39.000Z | 2021-11-18T17:23:08.000Z | gyoithon/migrations/0010_auto_20210510_1535.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | null | null | null | gyoithon/migrations/0010_auto_20210510_1535.py | gyoisamurai/GyoiBoard | aebd29820a39d1d88b9e5874b56f923b1c88d170 | [
"MIT"
] | 3 | 2021-06-12T13:25:48.000Z | 2021-09-30T19:06:49.000Z | # Generated by Django 3.1.7 on 2021-05-10 06:35
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('gyoithon', '0009_auto_20210510_1401'),
]
operations = [
migrations.AddField(
... | 32.166667 | 109 | 0.608808 | 125 | 1,158 | 5.544 | 0.44 | 0.051948 | 0.108225 | 0.125541 | 0.44733 | 0.44733 | 0.337662 | 0.337662 | 0.337662 | 0.337662 | 0 | 0.099174 | 0.268566 | 1,158 | 35 | 110 | 33.085714 | 0.719008 | 0.03886 | 0 | 0.413793 | 1 | 0 | 0.119712 | 0.020702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 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 |
4a7dfb9ab37ed0f9e4235a6edec71960ea440419 | 6,785 | py | Python | deep learning/TensorFlow_Assignments/RNN Variants/GRU.py | jtbuch/applied-statistics-reading-group | 1f267b702a202e9cf4b3b176f20545481b8ad8ed | [
"MIT"
] | 5 | 2018-06-07T19:43:03.000Z | 2022-02-17T01:33:18.000Z | deep learning/TensorFlow_Assignments/RNN Variants/GRU.py | jtbuch/applied-statistics-reading-group | 1f267b702a202e9cf4b3b176f20545481b8ad8ed | [
"MIT"
] | null | null | null | deep learning/TensorFlow_Assignments/RNN Variants/GRU.py | jtbuch/applied-statistics-reading-group | 1f267b702a202e9cf4b3b176f20545481b8ad8ed | [
"MIT"
] | 1 | 2018-06-07T02:50:12.000Z | 2018-06-07T02:50:12.000Z | #!/usr/bin/python27
### CSCI2470 - Assignment 5 - Babak Hemmatian - bhemmati - BannerID:B01190949
# import the required modules
import tensorflow as tf
import numpy as np
from sys import argv # so that python can use command line arguments as file addresses
import time # to keep track of performance
from math im... | 47.118056 | 116 | 0.726603 | 1,029 | 6,785 | 4.726919 | 0.302235 | 0.023026 | 0.037007 | 0.018092 | 0.264186 | 0.22574 | 0.20477 | 0.151316 | 0.151316 | 0.151316 | 0 | 0.011242 | 0.17406 | 6,785 | 143 | 117 | 47.447552 | 0.856709 | 0.448931 | 0 | 0.325581 | 0 | 0 | 0.051355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05814 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a8609aed5fb2e2e6684c99b73ebc785117a3c89 | 30,286 | py | Python | _scripts/sv2_debug.py | Erotemic/hotspotter | 3cfa4015798e21385455b937f9083405c4b3cf53 | [
"Apache-2.0"
] | 2 | 2015-07-19T02:55:06.000Z | 2021-07-07T02:38:26.000Z | _scripts/sv2_debug.py | Erotemic/hotspotter | 3cfa4015798e21385455b937f9083405c4b3cf53 | [
"Apache-2.0"
] | 5 | 2017-03-11T16:30:26.000Z | 2021-04-10T16:42:10.000Z | _scripts/sv2_debug.py | Erotemic/hotspotter | 3cfa4015798e21385455b937f9083405c4b3cf53 | [
"Apache-2.0"
] | 10 | 2015-07-19T03:05:42.000Z | 2021-08-24T14:48:59.000Z |
def __affine_inliers(x1_m, y1_m, acd1_m,
x2_m, y2_m, acd2_m, xy_thresh_sqrd,
scale_thresh_high, scale_thresh_low):
'Estimates inliers deterministically using elliptical shapes'
best_inliers = []
best_Aff = None
# Get keypoint scales (determinant)
det1_... | 38.43401 | 128 | 0.543849 | 4,439 | 30,286 | 3.442667 | 0.095742 | 0.011386 | 0.022772 | 0.006282 | 0.686167 | 0.650373 | 0.637024 | 0.622039 | 0.592985 | 0.584544 | 0 | 0.058638 | 0.318662 | 30,286 | 787 | 129 | 38.482846 | 0.681948 | 0.18738 | 0 | 0.644706 | 0 | 0.011765 | 0.246399 | 0.013207 | 0 | 0 | 0 | 0.001271 | 0 | 0 | null | null | 0 | 0.037647 | null | null | 0.016471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a8ed8a6c18122432a0749f0b181ce61d639a2d1 | 301 | py | Python | timon/scripts/notify/mail.py | quentinql/timon | 9cd3f32387407953cc331b8cd908daf5be4d4af8 | [
"BSD-3-Clause"
] | null | null | null | timon/scripts/notify/mail.py | quentinql/timon | 9cd3f32387407953cc331b8cd908daf5be4d4af8 | [
"BSD-3-Clause"
] | 13 | 2019-07-29T14:50:30.000Z | 2021-05-05T08:36:15.000Z | timon/scripts/notify/mail.py | quentinql/timon | 9cd3f32387407953cc331b8cd908daf5be4d4af8 | [
"BSD-3-Clause"
] | 5 | 2017-08-03T13:20:29.000Z | 2019-08-19T12:18:19.000Z | #!/usr/bin/env python
import datetime
import sys
def main():
print("CALLING: %s" % sys.argv)
with open("mail_log.txt", "a") as fout:
fout.write("%s: %s %s %s\n" % (
datetime.datetime.now(), sys.argv[1], sys.argv[2], sys.argv[3]))
if __name__ == "__main__":
main()
| 18.8125 | 76 | 0.564784 | 46 | 301 | 3.5 | 0.630435 | 0.173913 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012931 | 0.229236 | 301 | 15 | 77 | 20.066667 | 0.681034 | 0.066445 | 0 | 0 | 0 | 0 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4aa05b566abdac4b39ed826dc05519383f37ea35 | 2,055 | py | Python | apps/xfzauth/management/commands/initgroup.py | NAZBIN/web | cc9289dc5973e1041c0ed5df802d99b7efcf4d18 | [
"MIT"
] | 3 | 2019-08-26T11:11:31.000Z | 2020-11-30T17:16:14.000Z | apps/xfzauth/management/commands/initgroup.py | NAZBIN/web | cc9289dc5973e1041c0ed5df802d99b7efcf4d18 | [
"MIT"
] | 7 | 2021-03-19T03:06:26.000Z | 2022-03-11T23:57:45.000Z | apps/xfzauth/management/commands/initgroup.py | NAZBIN/web | cc9289dc5973e1041c0ed5df802d99b7efcf4d18 | [
"MIT"
] | null | null | null | #自定义命令 -app-management-commands-initgroup.py
from django.core.management.base import BaseCommand
from django.contrib.auth.models import Group,Permission,ContentType
from apps.news.models import News,NewsCategory,Banner,Comment
from apps.course.models import CourseCategory,Course,Teacher,CourseOrder
from apps.payinfo.... | 47.790698 | 95 | 0.709976 | 223 | 2,055 | 6.35426 | 0.358744 | 0.127029 | 0.1482 | 0.169372 | 0.362032 | 0.198306 | 0.198306 | 0 | 0 | 0 | 0 | 0 | 0.192701 | 2,055 | 43 | 96 | 47.790698 | 0.854129 | 0.062774 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.194444 | 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 |
4aa1ee0866d8bcda3d714a62547621b4367ca4b0 | 253 | py | Python | Array_ReverseInteger.py | clintbugsdev/binary-tree | 59cf0f3d340bc6a0a9f1a605c32380194e534568 | [
"MIT"
] | null | null | null | Array_ReverseInteger.py | clintbugsdev/binary-tree | 59cf0f3d340bc6a0a9f1a605c32380194e534568 | [
"MIT"
] | null | null | null | Array_ReverseInteger.py | clintbugsdev/binary-tree | 59cf0f3d340bc6a0a9f1a605c32380194e534568 | [
"MIT"
] | null | null | null | def reverse_integer(n):
reversed = 0
remainder = 0
while n > 0:
remainder = n % 10
reversed = reversed * 10 + remainder
n = n // 10
return reversed
if __name__ == "__main__":
print(reverse_integer(12345))
| 16.866667 | 44 | 0.573123 | 30 | 253 | 4.5 | 0.5 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08284 | 0.332016 | 253 | 14 | 45 | 18.071429 | 0.715976 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.1 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.