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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
620a87ed6ced6e937b1a92cf8b0d169418a728b3 | 435 | py | Python | server/apps/main/migrations/0002_auto_20200218_1028.py | uktrade/legal-basis-api | a5bad3566f153859ca54dcd92832dcdc1e6eb78c | [
"MIT"
] | 2 | 2021-07-29T08:01:44.000Z | 2021-08-09T08:16:24.000Z | server/apps/main/migrations/0002_auto_20200218_1028.py | uktrade/legal-basis-api | a5bad3566f153859ca54dcd92832dcdc1e6eb78c | [
"MIT"
] | 12 | 2019-12-20T12:14:00.000Z | 2022-02-15T15:48:54.000Z | server/apps/main/migrations/0002_auto_20200218_1028.py | uktrade/legal-basis-api | a5bad3566f153859ca54dcd92832dcdc1e6eb78c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-02-18 10:28
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("main", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="legalbasis",
... | 21.75 | 74 | 0.627586 | 47 | 435 | 5.744681 | 0.723404 | 0.081481 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062112 | 0.25977 | 435 | 19 | 75 | 22.894737 | 0.776398 | 0.105747 | 0 | 0 | 1 | 0 | 0.095607 | 0 | 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 |
6214eeebdb3b4b7c8c6a71e70cc9b254fb313b4f | 1,033 | py | Python | startup/95-magics.py | mrakitin/profile_collection-six | 20e41632b9898ac83a8e60fcca9b8aeaaa91f0ad | [
"BSD-3-Clause"
] | null | null | null | startup/95-magics.py | mrakitin/profile_collection-six | 20e41632b9898ac83a8e60fcca9b8aeaaa91f0ad | [
"BSD-3-Clause"
] | 30 | 2017-05-18T19:11:24.000Z | 2021-06-23T16:59:26.000Z | startup/95-magics.py | mrakitin/profile_collection-six | 20e41632b9898ac83a8e60fcca9b8aeaaa91f0ad | [
"BSD-3-Clause"
] | 3 | 2018-01-10T17:16:47.000Z | 2020-03-12T14:51:36.000Z | from bluesky.magics import BlueskyMagics
BlueskyMagics.positioners = [
cryo.x,
cryo.y,
cryo.z,
cryo.t,
diagon.hml,
diagon.hyag,
diagon.vml,
diagon.vyag,
epu1.gap,
epu1.phase,
extslt.hg,
extslt.vg,
extslt.hc,
feslt.hc,
feslt.vc,
feslt.hg,
feslt.vg,
gcdiag.y,
m1.x,
m1.pit,
m1.rol,
m1slt.hg,
m1slt.... | 11.351648 | 40 | 0.657309 | 177 | 1,033 | 3.819209 | 0.333333 | 0.02071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059859 | 0.175218 | 1,033 | 90 | 41 | 11.477778 | 0.733568 | 0.005808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.011628 | 0 | 0.011628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62167beaa9c5ed8aa19e6b32a0dd20d4be1844b7 | 1,082 | py | Python | SMS_Spam_Classification/ham_spam_classifier.py | Pellumbengineer/SMS_classification | 722984945e517fb62cb878d61a5a69a77dce71ce | [
"MIT"
] | 1 | 2019-04-14T07:18:46.000Z | 2019-04-14T07:18:46.000Z | SMS_Spam_Classification/ham_spam_classifier.py | Pellumbengineer/SMS_classification | 722984945e517fb62cb878d61a5a69a77dce71ce | [
"MIT"
] | null | null | null | SMS_Spam_Classification/ham_spam_classifier.py | Pellumbengineer/SMS_classification | 722984945e517fb62cb878d61a5a69a77dce71ce | [
"MIT"
] | null | null | null |
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.cross_validation import train_test_split
from sklearn import metrics
from sklearn.metrics import accuracy_score
import pandas as pd
import os
# reading the data
data = pd.read_csv("SMSSpamCollection"... | 33.8125 | 75 | 0.814233 | 164 | 1,082 | 5.091463 | 0.402439 | 0.065868 | 0.086228 | 0.026347 | 0.162874 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004103 | 0.098891 | 1,082 | 31 | 76 | 34.903226 | 0.852308 | 0.102588 | 0 | 0 | 0 | 0 | 0.078675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
621802cff190d84564621bf317c3a1da0e9fae0d | 32,526 | py | Python | sdk/python/pulumi_azure_nextgen/storagesync/v20191001/outputs.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/storagesync/v20191001/outputs.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_nextgen/storagesync/v20191001/outputs.py | test-wiz-sec/pulumi-azure-nextgen | 20a695af0d020b34b0f1c336e1b69702755174cc | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 36.464126 | 166 | 0.668696 | 3,468 | 32,526 | 5.922145 | 0.066321 | 0.038563 | 0.070114 | 0.057357 | 0.658097 | 0.525465 | 0.42974 | 0.345506 | 0.303681 | 0.276707 | 0 | 0.000041 | 0.242729 | 32,526 | 891 | 167 | 36.505051 | 0.833787 | 0.242175 | 0 | 0.375546 | 1 | 0 | 0.219318 | 0.143828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19214 | false | 0 | 0.0131 | 0.028384 | 0.39738 | 0 | 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 |
6218cac8f9189e3df9afc6a57a4a0d9a3315105b | 8,763 | py | Python | explainers.py | marcotcr/lime-kdd | 0299269e44aa8dcb5c9a29ab1d78b702e6cbf122 | [
"BSD-2-Clause"
] | 267 | 2016-02-17T04:21:45.000Z | 2022-03-24T14:37:12.000Z | explainers.py | marcotcr/lime-kdd | 0299269e44aa8dcb5c9a29ab1d78b702e6cbf122 | [
"BSD-2-Clause"
] | 10 | 2016-03-29T15:24:45.000Z | 2020-07-02T20:50:08.000Z | explainers.py | marcotcr/lime-kdd | 0299269e44aa8dcb5c9a29ab1d78b702e6cbf122 | [
"BSD-2-Clause"
] | 92 | 2016-04-02T22:20:30.000Z | 2022-03-09T11:41:20.000Z | from abc import ABCMeta, abstractmethod
import numpy as np
import scipy as sp
from sklearn import linear_model
import sklearn.metrics.pairwise
###############################
## Random Explainer
###############################
class RandomExplainer:
def __init__(self):
pass
def reset(self):
pass
def e... | 36.061728 | 128 | 0.611663 | 1,109 | 8,763 | 4.609558 | 0.164112 | 0.029343 | 0.055751 | 0.055947 | 0.353482 | 0.284624 | 0.226135 | 0.195227 | 0.16471 | 0.142801 | 0 | 0.011899 | 0.280726 | 8,763 | 242 | 129 | 36.210744 | 0.799143 | 0.065503 | 0 | 0.377358 | 0 | 0 | 0.005839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014151 | 0.042453 | null | null | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
621d10de1de76ed4b486e6e0eb320e5e973d5881 | 535 | py | Python | store/managers.py | kbilak/Personal-E-commerce | fdd4426a8afcc3c675b956ba2079d7d259a14a62 | [
"MIT"
] | null | null | null | store/managers.py | kbilak/Personal-E-commerce | fdd4426a8afcc3c675b956ba2079d7d259a14a62 | [
"MIT"
] | null | null | null | store/managers.py | kbilak/Personal-E-commerce | fdd4426a8afcc3c675b956ba2079d7d259a14a62 | [
"MIT"
] | null | null | null | from parler.managers import TranslatableManager, TranslatableQuerySet
from mptt.managers import TreeManager
from mptt.querysets import TreeQuerySet
class CategoryQuerySet(TranslatableQuerySet, TreeQuerySet):
def as_manager(cls):
manager = CategoryManager.from_queryset(cls)()
manager._built_with_a... | 29.722222 | 69 | 0.790654 | 54 | 535 | 7.611111 | 0.444444 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15514 | 535 | 17 | 70 | 31.470588 | 0.909292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
622350230e8875a864ecf938244dc16d74cf6d14 | 3,507 | py | Python | rx/concurrency/mainloopscheduler/wxscheduler.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | 733 | 2017-08-22T09:47:54.000Z | 2022-03-27T23:56:52.000Z | rx/concurrency/mainloopscheduler/wxscheduler.py | asheraryam/Sprytile | c63be50d14b07192ff134ceab256f0d69b9c4c92 | [
"MIT"
] | 74 | 2017-08-16T09:13:05.000Z | 2022-03-15T02:31:49.000Z | rx/concurrency/mainloopscheduler/wxscheduler.py | asheraryam/Sprytile | c63be50d14b07192ff134ceab256f0d69b9c4c92 | [
"MIT"
] | 77 | 2017-09-14T16:56:11.000Z | 2022-03-27T13:55:16.000Z | import logging
from rx.core import Disposable
from rx.disposables import SingleAssignmentDisposable, CompositeDisposable
from rx.concurrency.schedulerbase import SchedulerBase
log = logging.getLogger("Rx")
class WxScheduler(SchedulerBase):
"""A scheduler for a wxPython event loop."""
def __init__(self, wx... | 31.3125 | 79 | 0.636156 | 396 | 3,507 | 5.527778 | 0.300505 | 0.045226 | 0.038374 | 0.049338 | 0.285975 | 0.285975 | 0.285975 | 0.267245 | 0.247602 | 0.178164 | 0 | 0.001989 | 0.283148 | 3,507 | 111 | 80 | 31.594595 | 0.868735 | 0.336185 | 0 | 0.078431 | 0 | 0 | 0.006109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0 | 0.078431 | 0 | 0.431373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
622e1fed33fa2da7ae467fd4ba9d3cb07cb3780f | 1,954 | py | Python | sweeper/task.py | dominoFire/sweeper | 26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9 | [
"MIT"
] | null | null | null | sweeper/task.py | dominoFire/sweeper | 26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9 | [
"MIT"
] | null | null | null | sweeper/task.py | dominoFire/sweeper | 26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9 | [
"MIT"
] | null | null | null | __author__ = '@dominofire'
class Task:
"""
Represents a task in the workflow
"""
def __init__(self, name, cmd):
self.name = name
""" A name for the task that is unique among workflow scope """
self.command = cmd
""" A valid bash command to be executed """
# Used... | 34.892857 | 108 | 0.61259 | 247 | 1,954 | 4.684211 | 0.412955 | 0.06223 | 0.041487 | 0.04408 | 0.145203 | 0.096802 | 0.096802 | 0.096802 | 0.096802 | 0.096802 | 0 | 0.001457 | 0.297339 | 1,954 | 55 | 109 | 35.527273 | 0.841224 | 0.071648 | 0 | 0 | 0 | 0 | 0.019833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0.074074 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
622f6939b375380508e05c581d7ac726eb845ff5 | 1,917 | py | Python | devconf/ast/error.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | devconf/ast/error.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | 5 | 2019-03-04T16:17:30.000Z | 2019-05-04T08:34:19.000Z | devconf/ast/error.py | everclear72216/ucapi | 7f5afbee6b3b772086d33c2ee37e85e65af61697 | [
"MIT"
] | null | null | null | import ast.mixins.node
class AstError(Exception):
def __init__(self, node, text):
if not isinstance(node, ast.mixins.node.Node):
raise TypeError('"node" must be of type "Node".')
if not isinstance(text, str):
raise TypeError('"text" must be of type "str".')
self._... | 26.625 | 106 | 0.639019 | 236 | 1,917 | 4.961864 | 0.271186 | 0.054654 | 0.040991 | 0.064048 | 0.34842 | 0.17848 | 0.052946 | 0.052946 | 0 | 0 | 0 | 0 | 0.236828 | 1,917 | 71 | 107 | 27 | 0.80041 | 0 | 0 | 0.232558 | 0 | 0 | 0.185707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0.093023 | 0.023256 | 0.023256 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6232b24fdadfe8f00282412eed17d0e30e2acba7 | 10,862 | py | Python | vendor/paypal/standard/ipn/django_migrations/0001_initial.py | starsep/NewsBlur | 6c59416ca82377ca1bbc7d044890bdead3eba904 | [
"MIT"
] | 2 | 2017-08-14T03:40:11.000Z | 2019-06-15T12:28:49.000Z | vendor/paypal/standard/ipn/django_migrations/0001_initial.py | starsep/NewsBlur | 6c59416ca82377ca1bbc7d044890bdead3eba904 | [
"MIT"
] | 7 | 2021-02-08T20:32:31.000Z | 2022-03-11T23:50:47.000Z | vendor/paypal/standard/ipn/django_migrations/0001_initial.py | starsep/NewsBlur | 6c59416ca82377ca1bbc7d044890bdead3eba904 | [
"MIT"
] | 1 | 2020-11-21T08:43:15.000Z | 2020-11-21T08:43:15.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='PayPalIPN',
fields=[
('id', models.AutoField(ve... | 80.459259 | 156 | 0.626404 | 1,315 | 10,862 | 4.988593 | 0.153612 | 0.145427 | 0.16189 | 0.215854 | 0.747713 | 0.684909 | 0.670122 | 0.496951 | 0.373476 | 0.373476 | 0 | 0.031072 | 0.223716 | 10,862 | 134 | 157 | 81.059701 | 0.746917 | 0.001933 | 0 | 0 | 0 | 0 | 0.154258 | 0.004059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.007813 | 0.015625 | 0 | 0.039063 | 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 |
62330964fb11b85f6c1efc53f48965782055e042 | 2,149 | py | Python | vetApp/users/models.py | BeyzaaKoroglu/Veterinary-Application | 8f9d78d8daee7508d859266532072b09946657da | [
"MIT"
] | null | null | null | vetApp/users/models.py | BeyzaaKoroglu/Veterinary-Application | 8f9d78d8daee7508d859266532072b09946657da | [
"MIT"
] | null | null | null | vetApp/users/models.py | BeyzaaKoroglu/Veterinary-Application | 8f9d78d8daee7508d859266532072b09946657da | [
"MIT"
] | null | null | null | from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.core.mail import send_mail
from django.db import models
from django.utils import timezone
from django.utils.translation impor... | 32.074627 | 81 | 0.679851 | 258 | 2,149 | 5.468992 | 0.414729 | 0.04961 | 0.036145 | 0.044649 | 0.035436 | 0.035436 | 0 | 0 | 0 | 0 | 0 | 0.003571 | 0.218241 | 2,149 | 66 | 82 | 32.560606 | 0.83631 | 0.060493 | 0 | 0 | 0 | 0 | 0.124803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.177778 | 0 | 0.577778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
623640ec23459981044507b7561e4de27ed95edc | 378 | py | Python | django/core/views.py | krishnakesari/mymdb | a16788ec911b290376c3fb6cffce7ba73adb9151 | [
"MIT"
] | 2 | 2018-08-05T03:38:46.000Z | 2019-01-24T04:59:53.000Z | django/core/views.py | fangchaooo/MDBWebsite | 5c98a7c8d9401d94c60ae853653e74a4bce128f6 | [
"BSD-3-Clause"
] | null | null | null | django/core/views.py | fangchaooo/MDBWebsite | 5c98a7c8d9401d94c60ae853653e74a4bce128f6 | [
"BSD-3-Clause"
] | null | null | null | from django.views.generic import (
ListView, DetailView,
)
from core.models import Movie, Person
class MovieDetail(DetailView):
queryset = (
Movie.objects
.all_with_related_persons())
class MovieList(ListView):
model = Movie
paginate_by = 10
class PersonDetail(DetailView):
... | 15.12 | 56 | 0.698413 | 41 | 378 | 6.268293 | 0.658537 | 0.140078 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.219577 | 378 | 24 | 57 | 15.75 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
623685d93fe6624135091f16f8814e988f420298 | 3,876 | py | Python | src/speechEmotionRecognition.py | TomKingsfordUoA/MevonAI-Speech-Emotion-Recognition | ee4f6030add932b0ead3b076bd8cb3a8c2ee07be | [
"MIT"
] | null | null | null | src/speechEmotionRecognition.py | TomKingsfordUoA/MevonAI-Speech-Emotion-Recognition | ee4f6030add932b0ead3b076bd8cb3a8c2ee07be | [
"MIT"
] | null | null | null | src/speechEmotionRecognition.py | TomKingsfordUoA/MevonAI-Speech-Emotion-Recognition | ee4f6030add932b0ead3b076bd8cb3a8c2ee07be | [
"MIT"
] | null | null | null | import csv
import os
import sys
import typing
import keras
import librosa
import numpy as np
sys.path.append(os.path.dirname(os.path.realpath(__file__))) # TODO(TK): replace this with a correct import when mevonai is a package
import bulkDiarize as bk
default_model_path = os.path.join(os.path.dirname(os.path.realpa... | 40.8 | 154 | 0.624871 | 487 | 3,876 | 4.817248 | 0.334702 | 0.034101 | 0.018755 | 0.025575 | 0.289429 | 0.268968 | 0.228474 | 0.202046 | 0.092072 | 0.092072 | 0 | 0.020993 | 0.225748 | 3,876 | 94 | 155 | 41.234043 | 0.760746 | 0.106037 | 0 | 0.164384 | 0 | 0 | 0.137192 | 0.054124 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.041096 | false | 0 | 0.109589 | 0 | 0.191781 | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6237bbed20605e24af0970113a60cf0825f888f8 | 1,260 | py | Python | To_Do.py | b3po96/To-Do | d92be01cc8867602193f8d3e9573c538ffdcce19 | [
"MIT"
] | null | null | null | To_Do.py | b3po96/To-Do | d92be01cc8867602193f8d3e9573c538ffdcce19 | [
"MIT"
] | null | null | null | To_Do.py | b3po96/To-Do | d92be01cc8867602193f8d3e9573c538ffdcce19 | [
"MIT"
] | null | null | null | '''
Python To-Do
A simple to-do list program using text files to hold tasks
Authored by: Bryce Buchanan
'''
# TO DO 1. Convert to class
# TO DO 2. Allow editing of tasks
# TO DO 3. Detemine and implement best data structure
# TO DO 4. File I/O
# TO DO 5. GUI
#class ToDoItem:
# def __init__(self, task):
# self.task ... | 24.230769 | 91 | 0.673016 | 181 | 1,260 | 4.640884 | 0.453039 | 0.033333 | 0.02619 | 0.052381 | 0.097619 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0.009833 | 0.192857 | 1,260 | 52 | 92 | 24.230769 | 0.816126 | 0.278571 | 0 | 0.076923 | 0 | 0 | 0.13565 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.192308 | false | 0 | 0 | 0 | 0.230769 | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
623a74778aed685a766dc484e9c41a1e3cb57d72 | 1,348 | py | Python | src/06_tuples.py | cdixson-ds/CS35_IntroPython_GP | dac2880287932bde8d8268280f0beeab1664be9e | [
"MIT"
] | null | null | null | src/06_tuples.py | cdixson-ds/CS35_IntroPython_GP | dac2880287932bde8d8268280f0beeab1664be9e | [
"MIT"
] | null | null | null | src/06_tuples.py | cdixson-ds/CS35_IntroPython_GP | dac2880287932bde8d8268280f0beeab1664be9e | [
"MIT"
] | null | null | null | """
Python tuples are sort of like lists, except they're immutable and
are usually used to hold heterogenous data, as opposed to lists
which are typically used to hold homogenous data. Tuples use
parens instead of square brackets.
More specifically, tuples are faster than lists. If you're looking
to just define... | 24.962963 | 71 | 0.661721 | 228 | 1,348 | 3.894737 | 0.535088 | 0.018018 | 0.030405 | 0.009009 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035433 | 0.246291 | 1,348 | 53 | 72 | 25.433962 | 0.838583 | 0.698813 | 0 | 0 | 0 | 0 | 0.057751 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
623e53ca9c76da56b490d491eb189cd2ed4e72c9 | 1,700 | py | Python | moocng/teacheradmin/admin.py | OpenMOOC/moocng | 1e3dafb84aa1838c881df0c9bcca069e47c7f52d | [
"Apache-2.0"
] | 36 | 2015-01-10T06:00:36.000Z | 2020-03-19T10:06:59.000Z | moocng/teacheradmin/admin.py | OpenMOOC/moocng | 1e3dafb84aa1838c881df0c9bcca069e47c7f52d | [
"Apache-2.0"
] | 3 | 2015-10-01T17:59:32.000Z | 2018-09-04T03:32:17.000Z | moocng/teacheradmin/admin.py | OpenMOOC/moocng | 1e3dafb84aa1838c881df0c9bcca069e47c7f52d | [
"Apache-2.0"
] | 17 | 2015-01-13T03:46:58.000Z | 2020-07-05T06:29:51.000Z | # -*- coding: utf-8 -*-
# Copyright 2012-2013 UNED
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 30.357143 | 89 | 0.734706 | 207 | 1,700 | 5.942029 | 0.594203 | 0.04878 | 0.021138 | 0.026016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012031 | 0.168824 | 1,700 | 55 | 90 | 30.909091 | 0.858457 | 0.407647 | 0 | 0.105263 | 0 | 0 | 0.146597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62400b08d5dd7fd40304c85a39eb44c83cd6e4b6 | 766 | py | Python | pages/migrations/0009_auto_20200725_2156.py | brahiamB/face_construction | a457a3f2443a1c9a2f39f8aedacf66a4f74d98b5 | [
"BSD-3-Clause"
] | null | null | null | pages/migrations/0009_auto_20200725_2156.py | brahiamB/face_construction | a457a3f2443a1c9a2f39f8aedacf66a4f74d98b5 | [
"BSD-3-Clause"
] | null | null | null | pages/migrations/0009_auto_20200725_2156.py | brahiamB/face_construction | a457a3f2443a1c9a2f39f8aedacf66a4f74d98b5 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.5 on 2020-07-25 21:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0008_auto_20200725_1646'),
]
operations = [
migrations.AlterField(
model_name='images',
name='job',
... | 31.916667 | 268 | 0.605744 | 75 | 766 | 6.093333 | 0.693333 | 0.087527 | 0.109409 | 0.126915 | 0.170678 | 0.170678 | 0 | 0 | 0 | 0 | 0 | 0.058621 | 0.24282 | 766 | 23 | 269 | 33.304348 | 0.72931 | 0.058747 | 0 | 0.352941 | 1 | 0 | 0.292072 | 0.031989 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6243d393237418c10adfc8be93a02826d06b181c | 2,620 | py | Python | django_contact/models.py | movermeyer/django-contact-form-site | 470083653edf033bcbe53a60bd3b168fcf2aa334 | [
"BSD-3-Clause"
] | null | null | null | django_contact/models.py | movermeyer/django-contact-form-site | 470083653edf033bcbe53a60bd3b168fcf2aa334 | [
"BSD-3-Clause"
] | null | null | null | django_contact/models.py | movermeyer/django-contact-form-site | 470083653edf033bcbe53a60bd3b168fcf2aa334 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import ImproperlyConfigured
from django.core.mail import get_connection
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_contact.secure import MD5Field
from django_contact import settings
class ContactConfig(models.Model):
sent_url_redi... | 38.529412 | 101 | 0.698092 | 319 | 2,620 | 5.467085 | 0.351097 | 0.045872 | 0.041284 | 0.055046 | 0.209862 | 0.122706 | 0.09289 | 0.09289 | 0 | 0 | 0 | 0.011628 | 0.212214 | 2,620 | 68 | 102 | 38.529412 | 0.833333 | 0.020229 | 0 | 0.075472 | 0 | 0 | 0.211388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.056604 | 0.113208 | 0.018868 | 0.45283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6246b4bb429b10c93899a3474fa6bc468661f4f1 | 1,356 | py | Python | tridentstream/metadata/mal/handler.py | tridentstream/mediaserver | 5d47d766df2e8dca076e41348062567a569019fd | [
"MIT"
] | 6 | 2020-01-03T14:50:09.000Z | 2021-09-13T01:44:31.000Z | tridentstream/metadata/mal/handler.py | tidalstream/mediaserver | 5d47d766df2e8dca076e41348062567a569019fd | [
"MIT"
] | null | null | null | tridentstream/metadata/mal/handler.py | tidalstream/mediaserver | 5d47d766df2e8dca076e41348062567a569019fd | [
"MIT"
] | null | null | null | import logging
from malparser import MAL # NOQA
from rest_framework import serializers
from ...bases.metadata.remotemetadata import (
MetadataSerializer,
RemoteMetadataHandlerPlugin,
)
from .filters import MetadataFilter
from .models import ListingItemRelation, Metadata
logger = logging.getLogger(__name__)
... | 28.851064 | 68 | 0.751475 | 123 | 1,356 | 8.089431 | 0.512195 | 0.087437 | 0.026131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165929 | 1,356 | 46 | 69 | 29.478261 | 0.879752 | 0.00295 | 0 | 0.058824 | 0 | 0 | 0.071111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.176471 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6248885531330d2d4c9f48987032454b52dc7cbf | 20,770 | py | Python | docker/d-streamon-master/d-streamon/streamon/scripts/moin.py | ferrarimarco/open-scissor | d54718a1969701798f3e2d57f3db68d829da1cc0 | [
"Apache-2.0"
] | 2 | 2017-12-02T10:38:05.000Z | 2018-04-22T17:15:01.000Z | docker/d-streamon-master/d-streamon/streamon/scripts/moin.py | scissor-project/open-scissor | d54718a1969701798f3e2d57f3db68d829da1cc0 | [
"Apache-2.0"
] | 67 | 2017-11-11T15:22:34.000Z | 2018-04-24T06:44:59.000Z | docker/d-streamon-master/d-streamon/streamon/scripts/moin.py | ferrarimarco/open-scissor | d54718a1969701798f3e2d57f3db68d829da1cc0 | [
"Apache-2.0"
] | 1 | 2017-12-07T08:18:49.000Z | 2017-12-07T08:18:49.000Z |
from xml.dom import minidom
import shared
import templates
import classes
import c
import collections
import sys
import os
import errno
from event import *
from actions import *
StreamonLogo = """
_____ _ __ __ ____ _ _
/ ____| | | \/ |/ __ \| \ | |
| (___ | |_ _ __ ___ ... | 30.232897 | 164 | 0.632547 | 2,084 | 20,770 | 6.18714 | 0.192898 | 0.056305 | 0.010237 | 0.013029 | 0.133473 | 0.090352 | 0.055375 | 0.039088 | 0.039088 | 0.023267 | 0 | 0.005858 | 0.219259 | 20,770 | 686 | 165 | 30.276968 | 0.789282 | 0.118536 | 0 | 0.080201 | 0 | 0.012531 | 0.228649 | 0.026465 | 0.005013 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027569 | null | null | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6248d8e81e79cdd6c10e9f60599451e190c80564 | 2,127 | py | Python | Moggs/printer.py | Moggs/Workbench | 807c816d2119db36370aba72eb856827d341a477 | [
"Apache-2.0"
] | 1 | 2015-12-04T15:26:13.000Z | 2015-12-04T15:26:13.000Z | Moggs/printer.py | Moggs/Workbench | 807c816d2119db36370aba72eb856827d341a477 | [
"Apache-2.0"
] | null | null | null | Moggs/printer.py | Moggs/Workbench | 807c816d2119db36370aba72eb856827d341a477 | [
"Apache-2.0"
] | null | null | null |
from tkinter import *
from tkinter.ttk import *
from Moggs import *
import win32print
import os
import sys
class Printer(Toplevel):
def __init__(self, parent, filelist=[], printer=None):
Toplevel.__init__(self, parent)
self.filelist=filelist
self.parent=parent
... | 26.924051 | 85 | 0.576399 | 223 | 2,127 | 5.358744 | 0.381166 | 0.09205 | 0.050209 | 0.062762 | 0.117155 | 0.082008 | 0.082008 | 0.082008 | 0 | 0 | 0 | 0.017123 | 0.313587 | 2,127 | 78 | 86 | 27.269231 | 0.80137 | 0.048895 | 0 | 0.083333 | 0 | 0 | 0.027377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.020833 | 0.125 | 0 | 0.208333 | 0.458333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6248f1cbbbce827c0b4cec100365b4deb14569fd | 786 | py | Python | weaver/execute.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:23:05.000Z | 2022-02-25T00:39:11.000Z | weaver/execute.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 346 | 2019-03-06T21:05:04.000Z | 2022-03-31T13:38:37.000Z | weaver/execute.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 5 | 2019-03-15T01:38:28.000Z | 2021-11-11T15:38:43.000Z | EXECUTE_MODE_AUTO = "auto"
EXECUTE_MODE_ASYNC = "async"
EXECUTE_MODE_SYNC = "sync"
EXECUTE_MODE_OPTIONS = frozenset([
EXECUTE_MODE_AUTO,
EXECUTE_MODE_ASYNC,
EXECUTE_MODE_SYNC,
])
EXECUTE_CONTROL_OPTION_ASYNC = "async-execute"
EXECUTE_CONTROL_OPTION_SYNC = "sync-execute"
EXECUTE_CONTROL_OPTIONS = frozense... | 23.117647 | 49 | 0.805344 | 90 | 786 | 6.444444 | 0.166667 | 0.132759 | 0.198276 | 0.068966 | 0.127586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120865 | 786 | 33 | 50 | 23.818182 | 0.839363 | 0 | 0 | 0.153846 | 0 | 0 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
624b1c8952586fe7fb0045687938ed5267d0d85e | 4,762 | py | Python | faq-publish-api/tests/unit/test_topic_service_delete_topic.py | uphop/faq-bot | 02f316cff3f570d6eb9a459c4e3d1957706a4e9a | [
"MIT"
] | null | null | null | faq-publish-api/tests/unit/test_topic_service_delete_topic.py | uphop/faq-bot | 02f316cff3f570d6eb9a459c4e3d1957706a4e9a | [
"MIT"
] | 1 | 2021-03-27T11:03:50.000Z | 2021-03-27T11:03:50.000Z | faq-publish-api/tests/unit/test_topic_service_delete_topic.py | uphop/faq-bot | 02f316cff3f570d6eb9a459c4e3d1957706a4e9a | [
"MIT"
] | 1 | 2021-12-21T17:59:39.000Z | 2021-12-21T17:59:39.000Z | import unittest
import os
import uuid
import names
import random
from services.topic_service import TopicService
from services.user_service import UserService
from dotenv import load_dotenv
load_dotenv()
class TestDeleteTopic(unittest.TestCase):
LOCAL_DB_FILE = '/data//datastores/local_test.sqlite3'
def setUp... | 38.403226 | 125 | 0.693616 | 611 | 4,762 | 5.067103 | 0.162029 | 0.063953 | 0.098191 | 0.075581 | 0.679264 | 0.676357 | 0.676357 | 0.664729 | 0.652132 | 0.652132 | 0 | 0.000796 | 0.208106 | 4,762 | 123 | 126 | 38.715447 | 0.820207 | 0.035279 | 0 | 0.494382 | 0 | 0 | 0.053677 | 0.021602 | 0 | 0 | 0 | 0 | 0.213483 | 1 | 0.101124 | false | 0 | 0.089888 | 0 | 0.224719 | 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 |
624e4a1d0a67a168cebfa0bf99b24fcb3639eca0 | 1,032 | py | Python | tests/unit/test_debuggers.py | danni-m/RLTest | 85c09592e96e26edab94a22077a582fa425b62fa | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_debuggers.py | danni-m/RLTest | 85c09592e96e26edab94a22077a582fa425b62fa | [
"BSD-3-Clause"
] | null | null | null | tests/unit/test_debuggers.py | danni-m/RLTest | 85c09592e96e26edab94a22077a582fa425b62fa | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
from RLTest.debuggers import Valgrind
class TestValgrind(TestCase):
def test_generate_command_default(self):
default_valgrind = Valgrind(options="")
cmd_args = default_valgrind.generate_command()
assert ['valgrind', '--error-exitcode=1', '--leak-check=full', ... | 43 | 106 | 0.664729 | 113 | 1,032 | 5.858407 | 0.300885 | 0.135952 | 0.067976 | 0.099698 | 0.712991 | 0.661631 | 0.574018 | 0.574018 | 0.574018 | 0.574018 | 0 | 0.003589 | 0.189922 | 1,032 | 23 | 107 | 44.869565 | 0.788278 | 0 | 0 | 0.388889 | 1 | 0 | 0.264535 | 0.093023 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.111111 | 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 |
6251d55fdb02154fa34d974856c1d642242ada70 | 5,990 | py | Python | src/genie/libs/parser/iosxr/tests/test_show_ethernet.py | svautour/genieparser | 7416c9a4b44582be835a0646fb7fad92a5181c7d | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxr/tests/test_show_ethernet.py | svautour/genieparser | 7416c9a4b44582be835a0646fb7fad92a5181c7d | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxr/tests/test_show_ethernet.py | svautour/genieparser | 7416c9a4b44582be835a0646fb7fad92a5181c7d | [
"Apache-2.0"
] | null | null | null |
# Python
import unittest
from unittest.mock import Mock
# ATS
from pyats.topology import Device
from pyats.topology import loader
# Metaparser
from genie.metaparser.util.exceptions import SchemaEmptyParserError, SchemaMissingKeyError
# iosxr show_pim
from genie.libs.parser.iosxr.show_ethernet import (ShowEthernetCf... | 40.201342 | 90 | 0.300668 | 403 | 5,990 | 4.349876 | 0.334988 | 0.014832 | 0.008557 | 0.043354 | 0.420422 | 0.297775 | 0.212208 | 0.212208 | 0.148317 | 0.148317 | 0 | 0.071188 | 0.554424 | 5,990 | 149 | 91 | 40.201342 | 0.585613 | 0.03823 | 0 | 0.349594 | 0 | 0 | 0.323361 | 0.043138 | 0 | 0 | 0 | 0 | 0.01626 | 1 | 0.01626 | false | 0 | 0.04878 | 0 | 0.105691 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
625ed7b4a29b3dd98c2c1a74d92d95b16d96381e | 653 | py | Python | set1/p1_5.py | aluisafogarin/ilp_2020 | c2bb51905a5cc4340e462fd9b39c8336ee3c515a | [
"MIT"
] | null | null | null | set1/p1_5.py | aluisafogarin/ilp_2020 | c2bb51905a5cc4340e462fd9b39c8336ee3c515a | [
"MIT"
] | null | null | null | set1/p1_5.py | aluisafogarin/ilp_2020 | c2bb51905a5cc4340e462fd9b39c8336ee3c515a | [
"MIT"
] | null | null | null | # Curso Introdução a Linguagem Python - MIT MISTI Brazil–Unicamp
# Ana Luísa Fogarin - 03/02/2021
# a193948@dac.unicamp.br
# SET 1 - Problema 5 - Festa da Pizza
size = 'small'
toppings = ['presunto', 'abacaxi']
if size == 'small':
base_value = 14
elif size == 'medium':
base_value = 16
else:
base_value = 1... | 20.40625 | 64 | 0.652374 | 99 | 653 | 4.191919 | 0.565657 | 0.216867 | 0.019277 | 0.091566 | 0.144578 | 0.144578 | 0.144578 | 0.144578 | 0 | 0 | 0 | 0.065347 | 0.226646 | 653 | 31 | 65 | 21.064516 | 0.754455 | 0.255743 | 0 | 0.105263 | 0 | 0 | 0.09205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.052632 | 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 |
62686f9b2be2cf8e9af5c7f1fe73b809ccb5a25f | 10,938 | py | Python | titan/patches/m8.py | MakeMHz/titan | 7d6dd70557da9b68b8f482cb077af38784975780 | [
"MIT"
] | 1 | 2022-03-15T22:34:57.000Z | 2022-03-15T22:34:57.000Z | titan/patches/m8.py | MakeMHz/titan | 7d6dd70557da9b68b8f482cb077af38784975780 | [
"MIT"
] | null | null | null | titan/patches/m8.py | MakeMHz/titan | 7d6dd70557da9b68b8f482cb077af38784975780 | [
"MIT"
] | 1 | 2022-03-14T22:46:05.000Z | 2022-03-14T22:46:05.000Z | from .common import XboxPatch, PatchType
#-----------------------------------------------------------------------------
# M8+ Patch Definitions
#-----------------------------------------------------------------------------
class Patch_HddStartVerify(XboxPatch):
TYPE = PatchType.INLINE
HOOK_ADDRESS = 0x800243A... | 23.830065 | 95 | 0.551106 | 1,167 | 10,938 | 5.079692 | 0.274207 | 0.025641 | 0.051957 | 0.026991 | 0.247976 | 0.202935 | 0.100371 | 0.051113 | 0.051113 | 0.0361 | 0 | 0.088039 | 0.342659 | 10,938 | 459 | 96 | 23.830065 | 0.73644 | 0.051472 | 0 | 0.340909 | 0 | 0 | 0.011834 | 0 | 0 | 0 | 0.089941 | 0.002179 | 0 | 1 | 0 | false | 0 | 0.011364 | 0 | 0.772727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
626951e3832893e5c1f75e6bde36330bd081c87e | 1,768 | py | Python | actuators/actuator.py | r-y-zadeh/MAC | 744f3785c1c029265a27a240ce60e49fc59d8eed | [
"Apache-2.0"
] | null | null | null | actuators/actuator.py | r-y-zadeh/MAC | 744f3785c1c029265a27a240ce60e49fc59d8eed | [
"Apache-2.0"
] | null | null | null | actuators/actuator.py | r-y-zadeh/MAC | 744f3785c1c029265a27a240ce60e49fc59d8eed | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
import json
class on_off_range :
def __init__(self, on_string , off_string):
self.on_string= on_string
self.off_string= off_string
class actuator:
def __init__(self,name, port):
GPIO.setmode(GPIO.BCM)
GPIO.setup(port, GPIO.OUT)
self.name=name
... | 22.379747 | 62 | 0.582579 | 228 | 1,768 | 4.232456 | 0.245614 | 0.051813 | 0.105699 | 0.05285 | 0.247668 | 0.107772 | 0.060104 | 0 | 0 | 0 | 0 | 0.000842 | 0.32862 | 1,768 | 79 | 63 | 22.379747 | 0.812131 | 0 | 0 | 0.148148 | 0 | 0 | 0.010741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.037037 | 0.074074 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6269af90cb5941018e48a7d54a8c79994e3e8367 | 9,012 | py | Python | skcuda/cublasxt.py | Eric89GXL/scikits.cuda | d40e9a58daa16f353c6b9d794135ffb81519095e | [
"BSD-3-Clause"
] | null | null | null | skcuda/cublasxt.py | Eric89GXL/scikits.cuda | d40e9a58daa16f353c6b9d794135ffb81519095e | [
"BSD-3-Clause"
] | null | null | null | skcuda/cublasxt.py | Eric89GXL/scikits.cuda | d40e9a58daa16f353c6b9d794135ffb81519095e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Python interface to CUBLAS-XT functions.
Note: this module does not explicitly depend on PyCUDA.
"""
import ctypes
from cublas import cublasCheckStatus, _libcublas, _CUBLAS_OP
from . import cuda
CUBLASXT_FLOAT = 0
CUBLASXT_DOUBLE = 1
CUBLASXT_COMPLEX = 2
CUBLASXT_DOUBLECOMPLEX = 3
CUBLAS... | 43.747573 | 86 | 0.484687 | 770 | 9,012 | 5.448052 | 0.138961 | 0.141836 | 0.123957 | 0.164005 | 0.495113 | 0.43528 | 0.40739 | 0.362098 | 0.347318 | 0.306317 | 0 | 0.004393 | 0.444296 | 9,012 | 205 | 87 | 43.960976 | 0.833267 | 0.013094 | 0 | 0.508287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071823 | false | 0 | 0.016575 | 0 | 0.110497 | 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 |
62736f09e1639a66cae44b1dfccff46e64660a80 | 11,310 | py | Python | server/auth.py | soyapark-kaist/confer | 835035729f3237f8a6cd9db6a35ccd8f4f646929 | [
"MIT"
] | 1 | 2018-02-26T21:20:38.000Z | 2018-02-26T21:20:38.000Z | server/auth.py | soyapark-kaist/confer | 835035729f3237f8a6cd9db6a35ccd8f4f646929 | [
"MIT"
] | null | null | null | server/auth.py | soyapark-kaist/confer | 835035729f3237f8a6cd9db6a35ccd8f4f646929 | [
"MIT"
] | null | null | null | import json, sys, re, hashlib, smtplib, base64, urllib, os
from django.http import *
from django.shortcuts import render_to_response
from django.views.decorators.csrf import csrf_exempt
from django.core.context_processors import csrf
from django.core.validators import email_re
from django.db.utils import IntegrityErro... | 31.32964 | 237 | 0.647215 | 1,448 | 11,310 | 4.898481 | 0.140193 | 0.065135 | 0.029325 | 0.030453 | 0.6247 | 0.547723 | 0.510503 | 0.455379 | 0.419851 | 0.380093 | 0 | 0.001708 | 0.223431 | 11,310 | 360 | 238 | 31.416667 | 0.805875 | 0.001326 | 0 | 0.520979 | 0 | 0.027972 | 0.239408 | 0.035144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041958 | false | 0.087413 | 0.038462 | 0 | 0.174825 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6276b9b39599aafe3e52e8aad646b60784c113e7 | 548 | py | Python | frappe/patches/v5_0/rename_ref_type_fieldnames.py | chaitraliw/mws_frappe | 52182a27f3b9a61d080e741e349a308be3e94582 | [
"MIT"
] | 1 | 2020-01-14T17:06:07.000Z | 2020-01-14T17:06:07.000Z | frappe/patches/v5_0/rename_ref_type_fieldnames.py | chaitraliw/mws_frappe | 52182a27f3b9a61d080e741e349a308be3e94582 | [
"MIT"
] | 89 | 2017-09-19T15:17:44.000Z | 2022-03-31T00:52:42.000Z | frappe/patches/v5_0/rename_ref_type_fieldnames.py | chaitraliw/mws_frappe | 52182a27f3b9a61d080e741e349a308be3e94582 | [
"MIT"
] | 3 | 2018-01-16T17:59:55.000Z | 2019-09-24T16:02:10.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
def execute():
try:
frappe.db.sql("alter table `tabEmail Queue` change `ref_docname` `reference_name` varchar(255)")
except Exception as e:
if e.args[0] not in (1054, 1060... | 27.4 | 101 | 0.731752 | 82 | 548 | 4.768293 | 0.585366 | 0.046036 | 0.056266 | 0.071611 | 0.511509 | 0.511509 | 0.511509 | 0.511509 | 0.511509 | 0.511509 | 0 | 0.060475 | 0.155109 | 548 | 19 | 102 | 28.842105 | 0.784017 | 0.149635 | 0 | 0.571429 | 0 | 0 | 0.37149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62772359d83783d59a88f5a39dd9066de3e5f490 | 963 | py | Python | tests/test_route_optimisation.py | Nomuntu/wastecollection | f3dd12bfd1ae052fccbd0b0b5191ad3ba2c64957 | [
"MIT"
] | null | null | null | tests/test_route_optimisation.py | Nomuntu/wastecollection | f3dd12bfd1ae052fccbd0b0b5191ad3ba2c64957 | [
"MIT"
] | null | null | null | tests/test_route_optimisation.py | Nomuntu/wastecollection | f3dd12bfd1ae052fccbd0b0b5191ad3ba2c64957 | [
"MIT"
] | null | null | null | from app.model import Trip, CollectionRequest
def test_optimisation_caching(testapp, db):
def cache_optimisation():
trip.collection_ordering = [0]
db.session.commit()
assert trip.collection_ordering is not None
trip = Trip()
coll1 = CollectionRequest(collector_name="", collector_p... | 27.514286 | 96 | 0.719626 | 109 | 963 | 6.192661 | 0.321101 | 0.124444 | 0.195556 | 0.155556 | 0.705185 | 0.477037 | 0.477037 | 0.477037 | 0.41037 | 0.337778 | 0 | 0.032995 | 0.181724 | 963 | 34 | 97 | 28.323529 | 0.823604 | 0 | 0 | 0.48 | 0 | 0 | 0.020768 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.12 | 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 |
627a6b6262a8465cd88c84c2abd69ee5a394f6a2 | 3,798 | py | Python | tests/test_sqlf_core.py | digitalmensch/sqlf | 26b34b8fef12c7b86c6784718ca6937dbdf89200 | [
"MIT"
] | null | null | null | tests/test_sqlf_core.py | digitalmensch/sqlf | 26b34b8fef12c7b86c6784718ca6937dbdf89200 | [
"MIT"
] | 346 | 2018-04-19T21:00:38.000Z | 2022-03-31T17:15:20.000Z | tests/test_sqlf_core.py | digitalmensch/sqlf | 26b34b8fef12c7b86c6784718ca6937dbdf89200 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `sqlf` package."""
import pytest
import sqlf
import types
###############################################################################
# sqlf.sqlf
###############################################################################
def test_sql_function():
... | 21.457627 | 79 | 0.456029 | 401 | 3,798 | 4.134663 | 0.229426 | 0.067551 | 0.046442 | 0.054282 | 0.397467 | 0.203257 | 0.180338 | 0.150784 | 0.118215 | 0.118215 | 0 | 0.012952 | 0.227488 | 3,798 | 176 | 80 | 21.579545 | 0.552147 | 0.118747 | 0 | 0.426829 | 0 | 0 | 0.017213 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 1 | 0.341463 | false | 0.02439 | 0.036585 | 0.060976 | 0.47561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
627e99bccd05f505c5bed1e5c69d04b2a2e6f013 | 2,144 | py | Python | learning/katas/python/log_elements.py | sonia30552/beam | 8aa3966c32b1a328219779f25e0a64ea694b63a6 | [
"Apache-2.0"
] | null | null | null | learning/katas/python/log_elements.py | sonia30552/beam | 8aa3966c32b1a328219779f25e0a64ea694b63a6 | [
"Apache-2.0"
] | null | null | null | learning/katas/python/log_elements.py | sonia30552/beam | 8aa3966c32b1a328219779f25e0a64ea694b63a6 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | 38.981818 | 79 | 0.650653 | 262 | 2,144 | 5.156489 | 0.408397 | 0.07698 | 0.050333 | 0.051073 | 0.209474 | 0.189489 | 0.189489 | 0.189489 | 0.189489 | 0.108068 | 0 | 0.010152 | 0.264925 | 2,144 | 54 | 80 | 39.703704 | 0.847081 | 0.362407 | 0 | 0.214286 | 0 | 0 | 0.025204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6280d1592e5aed026beda55d52800b8a1f9aa10d | 3,994 | py | Python | set4/p4_3.py | aluisafogarin/ilp_2020 | c2bb51905a5cc4340e462fd9b39c8336ee3c515a | [
"MIT"
] | null | null | null | set4/p4_3.py | aluisafogarin/ilp_2020 | c2bb51905a5cc4340e462fd9b39c8336ee3c515a | [
"MIT"
] | null | null | null | set4/p4_3.py | aluisafogarin/ilp_2020 | c2bb51905a5cc4340e462fd9b39c8336ee3c515a | [
"MIT"
] | null | null | null | # Curso Introdução a Linguagem Python - MIT MISTI Brazil–Unicamp
# Ana Luísa Fogarin - 11/02/2021
# a193948@dac.unicamp.br
# SET 4 - Problema 3 - Fração
class Rational:
def __init__(self, numerator, denominator):
self.numerator = numerator
self.denominator = denominator
def get_numerator(... | 35.035088 | 103 | 0.625188 | 426 | 3,994 | 5.774648 | 0.248826 | 0.134146 | 0.117073 | 0.068293 | 0.514228 | 0.411382 | 0.384553 | 0.367073 | 0.347154 | 0.347154 | 0 | 0.010923 | 0.289434 | 3,994 | 114 | 104 | 35.035088 | 0.855532 | 0.201803 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183333 | false | 0 | 0 | 0.05 | 0.566667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
628983fd206d60397c7784b8cfb67e6149b8cd0c | 1,456 | py | Python | vespene/config/workers.py | webknjaz/vespene | 32e82ce37db33a106c0c58d50762f24a7c90bc2f | [
"Apache-2.0"
] | 1 | 2019-01-26T12:05:45.000Z | 2019-01-26T12:05:45.000Z | vespene/config/workers.py | webknjaz/vespene | 32e82ce37db33a106c0c58d50762f24a7c90bc2f | [
"Apache-2.0"
] | 92 | 2019-06-03T18:52:41.000Z | 2021-04-12T12:24:31.000Z | vespene/config/workers.py | webknjaz/vespene | 32e82ce37db33a106c0c58d50762f24a7c90bc2f | [
"Apache-2.0"
] | null | null | null | # Copyright 2018, Michael DeHaan LLC
# License: Apache License Version 2.0 + Commons Clause
# ---------------------------------------------------------------------------
# workers.py - configuration related to worker setup. This file *CAN* be
# different per worker.
# ------------------------------------------------... | 41.6 | 86 | 0.643544 | 194 | 1,456 | 4.773196 | 0.582474 | 0.022678 | 0.019438 | 0.028078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008078 | 0.149725 | 1,456 | 34 | 87 | 42.823529 | 0.739903 | 0.854396 | 0 | 0 | 0 | 0 | 0.141361 | 0.120419 | 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 |
628ba671e5f8865b9a6afd7cf01f7eb1e866592f | 1,322 | py | Python | project_V1/core/models.py | arnabtarwani/UCD-MSc-Project | 3ab9a8fc0a092a8dd03099d1d5fa55eb127ef3dc | [
"MIT"
] | 1 | 2019-09-13T16:09:40.000Z | 2019-09-13T16:09:40.000Z | project_V1/core/models.py | arnabtarwani/Buddyup-ucd-msc-project | 3ab9a8fc0a092a8dd03099d1d5fa55eb127ef3dc | [
"MIT"
] | 9 | 2020-03-24T17:39:10.000Z | 2022-02-10T10:09:09.000Z | project_V1/core/models.py | arnabtarwani/UCD-MSc-Project | 3ab9a8fc0a092a8dd03099d1d5fa55eb127ef3dc | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
# model for following table
class following(models.Model):
class Meta:
unique_together=(("user_id","twitter_handle"),)
user_id=models.CharField("user_id",max_length=40)
twitter_handle=models.CharField("twitter_handle",max_length=40,default="ab... | 45.586207 | 89 | 0.776853 | 177 | 1,322 | 5.581921 | 0.310734 | 0.072874 | 0.055668 | 0.08502 | 0.286437 | 0.286437 | 0.286437 | 0.286437 | 0.286437 | 0.145749 | 0 | 0.020168 | 0.099849 | 1,322 | 29 | 90 | 45.586207 | 0.810084 | 0.08472 | 0 | 0.173913 | 0 | 0 | 0.131841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
654ef3ff327a5453b03d6536a82b338a1549b93a | 1,443 | py | Python | setup.py | KardelUM/Carom | 81970c5216a19ed4643b2f1fb09655d11cf7f850 | [
"MIT"
] | null | null | null | setup.py | KardelUM/Carom | 81970c5216a19ed4643b2f1fb09655d11cf7f850 | [
"MIT"
] | null | null | null | setup.py | KardelUM/Carom | 81970c5216a19ed4643b2f1fb09655d11cf7f850 | [
"MIT"
] | null | null | null | from setuptools import setup
import os
import PyInstaller.__main__
# os.system("export ")
PyInstaller.__main__.run([])
setup(
name='carom-sblab',
version='0.1.1',
author='Kardel',
author_email='kardel@umich.edu',
packages=['carom', 'tests', 'carom.dataset'],
url='http://pypi.python.org/pypi/car... | 32.066667 | 110 | 0.57727 | 178 | 1,443 | 4.58427 | 0.595506 | 0.007353 | 0.091912 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051329 | 0.243936 | 1,443 | 44 | 111 | 32.795455 | 0.696609 | 0.155925 | 0 | 0.052632 | 0 | 0 | 0.493399 | 0.044554 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.078947 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
655131b5c2403cc72e435ce89b8e2337eddf757a | 1,531 | py | Python | tests/test_bap_comment.py | gitoleg/bap-ida-python | f1cdd95578c331f1f3fba2150c2e2d134b8897f0 | [
"MIT"
] | 81 | 2016-06-10T19:07:12.000Z | 2022-03-23T08:15:41.000Z | tests/test_bap_comment.py | gitoleg/bap-ida-python | f1cdd95578c331f1f3fba2150c2e2d134b8897f0 | [
"MIT"
] | 22 | 2016-06-16T19:35:59.000Z | 2020-12-10T14:53:38.000Z | tests/test_bap_comment.py | gitoleg/bap-ida-python | f1cdd95578c331f1f3fba2150c2e2d134b8897f0 | [
"MIT"
] | 29 | 2016-06-10T18:26:04.000Z | 2022-02-14T06:15:30.000Z | from bap.utils.bap_comment import parse, dumps, is_valid
def test_parse():
assert parse('hello') is None
assert parse('BAP: hello') == {'hello': []}
assert parse('BAP: hello,world') == {'hello': [], 'world': []}
assert parse('BAP: hello=cruel,world') == {'hello': ['cruel', 'world']}
assert parse('... | 30.62 | 77 | 0.516656 | 185 | 1,531 | 4.205405 | 0.264865 | 0.155527 | 0.107969 | 0.14653 | 0.339332 | 0.217224 | 0.159383 | 0.100257 | 0 | 0 | 0 | 0.002488 | 0.21228 | 1,531 | 49 | 78 | 31.244898 | 0.64262 | 0 | 0 | 0 | 0 | 0 | 0.327237 | 0 | 0 | 0 | 0 | 0 | 0.459459 | 1 | 0.162162 | false | 0 | 0.027027 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65525d239550677dbc2eb16331aa27210437357f | 170 | py | Python | 1016.py | oliveiraeverton/uri | 91e87dd1c9d18facd0b276d73caf53ed41d8eaea | [
"MIT"
] | null | null | null | 1016.py | oliveiraeverton/uri | 91e87dd1c9d18facd0b276d73caf53ed41d8eaea | [
"MIT"
] | null | null | null | 1016.py | oliveiraeverton/uri | 91e87dd1c9d18facd0b276d73caf53ed41d8eaea | [
"MIT"
] | null | null | null | #1016
#ENTRADA DE DADOS
entrada = int(input())
#SE O CARRO Y CONSEGUE SE DISTANCIAR EM CADA MINUTO 500metros = 0.5km
tempo = entrada/0.5
print(int(tempo), 'minutos')
| 15.454545 | 69 | 0.711765 | 28 | 170 | 4.321429 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 0.170588 | 170 | 10 | 70 | 17 | 0.780142 | 0.517647 | 0 | 0 | 0 | 0 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
65529e8aaa530fa2b8b6ae292dcaece83c9da0bc | 2,167 | py | Python | adapter/admin.py | RockyLiys/2_backend | c4cb0352edaf361f4fd5bdad0abc1433af71b445 | [
"Apache-2.0"
] | null | null | null | adapter/admin.py | RockyLiys/2_backend | c4cb0352edaf361f4fd5bdad0abc1433af71b445 | [
"Apache-2.0"
] | 6 | 2020-03-24T15:43:20.000Z | 2021-06-10T20:08:23.000Z | adapter/admin.py | RockyLiys/2_backend | c4cb0352edaf361f4fd5bdad0abc1433af71b445 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Category, Hobbies, Power, Ability, AbilityWeight, TrainingDirection, Result
# Register your models here.
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
empty_value_display = '-em... | 31.867647 | 118 | 0.671897 | 221 | 2,167 | 6.371041 | 0.447964 | 0.0625 | 0.099432 | 0.12429 | 0.351563 | 0.351563 | 0.351563 | 0.31108 | 0.174716 | 0.174716 | 0 | 0.000552 | 0.163821 | 2,167 | 67 | 119 | 32.343284 | 0.77649 | 0.045224 | 0 | 0.302326 | 0 | 0 | 0.276402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0.046512 | 0.72093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65636891dd8a53a072d86e86c7a03b9d9de16777 | 20,419 | py | Python | catkin_ws2_final/src/gp_abstract_sim/src/trial_control_multi_v7.py | Michael-E-Sami/MSSR2 | 8903ac65048a87f2843818981d21a5372e40dc55 | [
"Apache-2.0"
] | null | null | null | catkin_ws2_final/src/gp_abstract_sim/src/trial_control_multi_v7.py | Michael-E-Sami/MSSR2 | 8903ac65048a87f2843818981d21a5372e40dc55 | [
"Apache-2.0"
] | null | null | null | catkin_ws2_final/src/gp_abstract_sim/src/trial_control_multi_v7.py | Michael-E-Sami/MSSR2 | 8903ac65048a87f2843818981d21a5372e40dc55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import math
import os.path
from math import atan2, cos, pi, pow, sin, sqrt
import rospy
from geometry_msgs.msg import Point
from gp_abstract_sim.msg import path_points
from matplotlib import pyplot as plt
from nav_msgs.msg import Odometry
from std_msgs.msg import Float32, String
from tf.transfor... | 34.260067 | 92 | 0.552574 | 2,403 | 20,419 | 4.585518 | 0.131502 | 0.030856 | 0.040113 | 0.02287 | 0.512115 | 0.463563 | 0.426082 | 0.417461 | 0.396769 | 0.376078 | 0 | 0.037121 | 0.288898 | 20,419 | 595 | 93 | 34.317647 | 0.721763 | 0.209854 | 0 | 0.336134 | 0 | 0 | 0.099009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030812 | null | null | 0.12605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6568fd4fbe4aa95ad7bd1af543eaf8f8373a870d | 809 | py | Python | lib/googlecloudsdk/compute/subcommands/http_health_checks/describe.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/http_health_checks/describe.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/http_health_checks/describe.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | 2 | 2020-07-25T05:03:06.000Z | 2020-11-04T04:55:57.000Z | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for describing HTTP health checks."""
from googlecloudsdk.compute.lib import base_classes
class Describe(base_classes.GlobalDescriber):
"""Display detailed information about an HTTP health check."""
@staticmethod
def Args(parser):
base_classes.Gl... | 26.966667 | 71 | 0.728059 | 91 | 809 | 6.406593 | 0.571429 | 0.068611 | 0.077187 | 0.106346 | 0.164666 | 0.164666 | 0.164666 | 0.164666 | 0 | 0 | 0 | 0.006024 | 0.179234 | 809 | 29 | 72 | 27.896552 | 0.871988 | 0.182942 | 0 | 0.105263 | 0 | 0 | 0.355385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.105263 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6572a38995d40490bf1ee57773e14bcc6f28b58f | 1,040 | py | Python | snn_lib/optimizers.py | zhongyuchen/snn-iir | 58f0cb4a0dfcf5be630543fdfd88741f6061bcac | [
"Apache-2.0"
] | 5 | 2021-03-10T11:57:43.000Z | 2022-03-02T13:15:45.000Z | snn_lib/optimizers.py | zhongyuchen/snn-iir | 58f0cb4a0dfcf5be630543fdfd88741f6061bcac | [
"Apache-2.0"
] | null | null | null | snn_lib/optimizers.py | zhongyuchen/snn-iir | 58f0cb4a0dfcf5be630543fdfd88741f6061bcac | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
# File Name : optimizers.py
# Author: Haowen Fang
# Email: hfang02@syr.edu
# Description: optimizers.
"""
import torch
import omegaconf
from omegaconf import OmegaConf
def get_optimizer(params, conf):
optimizer_conf = conf['optimizer']
optimizer_choice = optimizer_conf['optimizer... | 30.588235 | 92 | 0.649038 | 119 | 1,040 | 5.512605 | 0.327731 | 0.178354 | 0.167683 | 0.213415 | 0.431402 | 0.292683 | 0.292683 | 0.292683 | 0.292683 | 0.292683 | 0 | 0.003601 | 0.199038 | 1,040 | 34 | 93 | 30.588235 | 0.783914 | 0.119231 | 0 | 0.15 | 0 | 0 | 0.20132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.35 | 0.15 | 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 |
6574965d822038d6e27938c52073df803ef6a559 | 1,886 | py | Python | tests/test_interpreter.py | Kareeeeem/abyad | 6e0284d5653632b761dac5f17b9604369110c2ae | [
"Unlicense"
] | 1 | 2016-05-21T22:16:18.000Z | 2016-05-21T22:16:18.000Z | tests/test_interpreter.py | Kareeeeem/abyad | 6e0284d5653632b761dac5f17b9604369110c2ae | [
"Unlicense"
] | null | null | null | tests/test_interpreter.py | Kareeeeem/abyad | 6e0284d5653632b761dac5f17b9604369110c2ae | [
"Unlicense"
] | null | null | null | import os
import mock
from src import interpreter
from src.state import State
import programs
for program in programs.programs:
programs.tows(program.program, program.name)
def read(name):
basedir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(basedir, name + '.ws'), 'rb') as f:
... | 23 | 74 | 0.709438 | 251 | 1,886 | 5.187251 | 0.294821 | 0.053763 | 0.102151 | 0.119816 | 0.367128 | 0.321045 | 0.321045 | 0.321045 | 0.321045 | 0.321045 | 0 | 0.008328 | 0.172322 | 1,886 | 81 | 75 | 23.283951 | 0.825753 | 0.015907 | 0 | 0.28 | 0 | 0.02 | 0.030221 | 0.01673 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.24 | false | 0 | 0.1 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
657cdb20a264e4f255324a41157fd6d6dbb818ea | 700 | py | Python | hard-gists/b09f45e112b226b97a36/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/b09f45e112b226b97a36/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/b09f45e112b226b97a36/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import sys
import markdown
import yaml
import os
from jinja2 import Environment, FileSystemLoader
with open(sys.argv[2], 'r') as f:
content = yaml.safe_load(f.read())
for k in content:
if k.startswith('md_'):
content[k] = markdown.markdown(content[k])
tpath = os.path.join(os.getcwd(), 'templates')
en... | 23.333333 | 61 | 0.691429 | 102 | 700 | 4.647059 | 0.529412 | 0.029536 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011864 | 0.157143 | 700 | 30 | 61 | 23.333333 | 0.791525 | 0.335714 | 0 | 0 | 0 | 0 | 0.028634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
657e15808c802cf1dc6a635b6a47ec548b34d8cf | 681 | py | Python | pythonProject1/venv/Lib/site-packages/uncompyle6/scanners/pypy32.py | mjtomlinson/CNE330_Python_1_Final_Project | 05020806860937ef37b9a0ad2e27de4897a606de | [
"CC0-1.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | pythonProject1/venv/Lib/site-packages/uncompyle6/scanners/pypy32.py | mjtomlinson/CNE330_Python_1_Final_Project | 05020806860937ef37b9a0ad2e27de4897a606de | [
"CC0-1.0"
] | 4 | 2020-10-03T20:37:55.000Z | 2020-10-04T23:11:38.000Z | pythonProject1/venv/Lib/site-packages/uncompyle6/scanners/pypy32.py | mjtomlinson/CNE330_Python_1_Final_Project | 05020806860937ef37b9a0ad2e27de4897a606de | [
"CC0-1.0"
] | null | null | null | # Copyright (c) 2017 by Rocky Bernstein
"""
Python PyPy 3.2 decompiler scanner.
Does some additional massaging of xdis-disassembled instructions to
make things easier for decompilation.
"""
import uncompyle6.scanners.scanner32 as scan
# bytecode verification, verify(), uses JUMP_OPs from here
from xdis.opcodes impo... | 28.375 | 67 | 0.722467 | 99 | 681 | 4.818182 | 0.676768 | 0.020964 | 0.025157 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046211 | 0.20558 | 681 | 23 | 68 | 29.608696 | 0.83549 | 0.48605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65892de0b7fcd47f5300ca922f0a8b5846c72e06 | 791 | py | Python | fridge_web/my_fridge/migrations/0006_essencial.py | logiflo/snowplow-embeded-fridge | 8d356f8c5f225de7a50c04ac9a88c4b3ae89d7cd | [
"BSD-2-Clause"
] | 1 | 2020-08-28T08:32:35.000Z | 2020-08-28T08:32:35.000Z | my_fridge/migrations/0006_essencial.py | logiflo/fridge-django | 07fe585d65698ac78a2499ec1674738859324d05 | [
"BSD-2-Clause"
] | null | null | null | my_fridge/migrations/0006_essencial.py | logiflo/fridge-django | 07fe585d65698ac78a2499ec1674738859324d05 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.1 on 2020-08-12 14:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_fridge', '0005_auto_20200810_1252'),
]
operations = [
migrations.CreateModel(
name='Essencial',
fields=[
... | 32.958333 | 138 | 0.566372 | 83 | 791 | 5.253012 | 0.759036 | 0.068807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063903 | 0.268015 | 791 | 23 | 139 | 34.391304 | 0.689119 | 0.054362 | 0 | 0 | 1 | 0 | 0.135389 | 0.030831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
658d2938acb27af9ac9504eb6f17a13114e11c2c | 224 | py | Python | tfCode/test3.py | zhouxiaowei1120/practice | 95dd7ffa65f34a867578bea2f80404677cc5f5e5 | [
"MIT"
] | 1 | 2017-12-17T15:49:37.000Z | 2017-12-17T15:49:37.000Z | tfCode/test3.py | zhouxiaowei1120/practice | 95dd7ffa65f34a867578bea2f80404677cc5f5e5 | [
"MIT"
] | null | null | null | tfCode/test3.py | zhouxiaowei1120/practice | 95dd7ffa65f34a867578bea2f80404677cc5f5e5 | [
"MIT"
] | null | null | null | import tensorflow as tf
import os
pathname = 'C:/Users/12882357/Desktop/personal/Phone Plan/'
shape = [224,224]
for root, dirs, filenames in os.walk(pathname):
for filename in filenames:
print(filename) | 24.888889 | 60 | 0.696429 | 31 | 224 | 5.032258 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 0.200893 | 224 | 9 | 61 | 24.888889 | 0.793296 | 0 | 0 | 0 | 0 | 0 | 0.211982 | 0.184332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65968819e7697bf61fe72e3c0ff201fa15b50e93 | 1,396 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/settings/production.py | nekeal/cookiecutter-django-api | 7eb8d27ad134d9f3248881ebbdb1b5514ae1ba80 | [
"MIT"
] | 2 | 2021-09-27T11:03:12.000Z | 2021-10-06T17:16:06.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/settings/production.py | nekeal/cookiecutter-django-api | 7eb8d27ad134d9f3248881ebbdb1b5514ae1ba80 | [
"MIT"
] | 2 | 2021-09-28T18:30:53.000Z | 2022-03-21T21:21:17.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/settings/production.py | nekeal/cookiecutter-django-api | 7eb8d27ad134d9f3248881ebbdb1b5514ae1ba80 | [
"MIT"
] | null | null | null | {% if cookiecutter.use_sentry == "y" -%}
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
{%- endif %}
from .base import *
DEBUG = False
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", ["*"])
{%- if cookiecutter.use_sentry == "y" %}
sentry_sdk.init(
dsn="",
integrations=[Djang... | 24.068966 | 60 | 0.523639 | 118 | 1,396 | 6.016949 | 0.533898 | 0.061972 | 0.047887 | 0.064789 | 0.138028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000952 | 0.247851 | 1,396 | 57 | 61 | 24.491228 | 0.675238 | 0.077364 | 0 | 0.042553 | 0 | 0 | 0.320093 | 0.082555 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021277 | 0.06383 | 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 |
65977ae0816d4d4e18f87e9f215c3d6fbd190f16 | 800 | py | Python | cart/test_views_cart.py | FraL96/Monstera-MS4 | 42e8a17ea8ecde3c64a204c3e8b78adf5f8c96d6 | [
"W3C",
"PostgreSQL"
] | null | null | null | cart/test_views_cart.py | FraL96/Monstera-MS4 | 42e8a17ea8ecde3c64a204c3e8b78adf5f8c96d6 | [
"W3C",
"PostgreSQL"
] | null | null | null | cart/test_views_cart.py | FraL96/Monstera-MS4 | 42e8a17ea8ecde3c64a204c3e8b78adf5f8c96d6 | [
"W3C",
"PostgreSQL"
] | 1 | 2021-09-03T10:29:07.000Z | 2021-09-03T10:29:07.000Z | from django.test import SimpleTestCase
from django.urls import reverse, resolve
from .views import view_cart, add_to_cart, adjust_cart, remove_from_cart
class TestCartViews(SimpleTestCase):
def test_view_cart_resolves(self):
url = reverse('view_cart')
self.assertEqual(resolve(url).func, view_cart... | 34.782609 | 72 | 0.72 | 110 | 800 | 4.918182 | 0.236364 | 0.05915 | 0.066543 | 0.140481 | 0.484288 | 0.238447 | 0.238447 | 0.238447 | 0.238447 | 0 | 0 | 0 | 0.17 | 800 | 22 | 73 | 36.363636 | 0.814759 | 0 | 0 | 0 | 0 | 0 | 0.085 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
659ecbb2a94ed23005f86244f25932ac7b37d86f | 1,048 | py | Python | dialog_fairseq/get_clm.py | AnonymousCIKM2021-2518/SAEDS | 165d081f6aacdefe16f5d04683c00d2ecd2b6a31 | [
"MIT"
] | 2 | 2021-08-14T01:15:55.000Z | 2021-11-05T01:22:13.000Z | dialog_fairseq/get_clm.py | Dio990521/SA_emo_dialog | 9aa156956a3da28b2d275016b899ed77c8c54005 | [
"MIT"
] | 1 | 2021-11-09T03:29:16.000Z | 2021-11-09T03:29:16.000Z | dialog_fairseq/get_clm.py | Dio990521/SA_emo_dialog | 9aa156956a3da28b2d275016b899ed77c8c54005 | [
"MIT"
] | 1 | 2021-09-10T06:28:33.000Z | 2021-09-10T06:28:33.000Z | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
from fairseq.models.lstm import LSTMModel
import jieba
import pickle as pkl
checkpoint_path = "/local/ssd_1/stc/stc_clm/"
stc = LSTMModel.from_pretrained(checkpoint_path, checkpoint_file='checkpoint_best.pt',
data_name_or_path=checkpoin... | 33.806452 | 110 | 0.73855 | 167 | 1,048 | 4.383234 | 0.461078 | 0.081967 | 0.054645 | 0.092896 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 0.110687 | 1,048 | 31 | 110 | 33.806452 | 0.781116 | 0.515267 | 0 | 0 | 0 | 0 | 0.269076 | 0.172691 | 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 |
659f98d89ef13bdfc60cd7c03320dd691c1858a7 | 3,992 | py | Python | ooobuild/lo/form/form_component_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/form/form_component_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/form/form_component_type.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 31.1875 | 178 | 0.672094 | 557 | 3,992 | 4.763016 | 0.447038 | 0.075386 | 0.115341 | 0.07124 | 0.209574 | 0.154542 | 0.096871 | 0.062571 | 0 | 0 | 0 | 0.018121 | 0.253507 | 3,992 | 127 | 179 | 31.433071 | 0.872148 | 0.231212 | 0 | 0 | 0 | 0 | 0.094388 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.962963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65a53f24c943641671c0c4bc1cd249ce9489c21a | 9,001 | py | Python | sp2d/views/admin/user_unit.py | aagusti/sp2d | 51122cdbb9f85bee91d08c3dd29fb1f7d1ae3d90 | [
"MIT"
] | null | null | null | sp2d/views/admin/user_unit.py | aagusti/sp2d | 51122cdbb9f85bee91d08c3dd29fb1f7d1ae3d90 | [
"MIT"
] | null | null | null | sp2d/views/admin/user_unit.py | aagusti/sp2d | 51122cdbb9f85bee91d08c3dd29fb1f7d1ae3d90 | [
"MIT"
] | null | null | null | from email.utils import parseaddr
from sqlalchemy import not_
from pyramid.view import (
view_config,
)
from pyramid.httpexceptions import (
HTTPFound,
)
import colander
from deform import (
Form,
widget,
ValidationFailure,
)
from ...models import (
DBSession,
User,
)
from ..... | 32.032028 | 93 | 0.578825 | 999 | 9,001 | 5.08008 | 0.167167 | 0.030345 | 0.040985 | 0.037833 | 0.286108 | 0.224434 | 0.169458 | 0.14936 | 0.139507 | 0.119015 | 0 | 0.00143 | 0.300744 | 9,001 | 280 | 94 | 32.146429 | 0.804894 | 0.015332 | 0 | 0.23913 | 0 | 0 | 0.082513 | 0.012016 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017391 | 0.03913 | 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 |
65a8c62e26b870fddd4836e12cc7bb6a68ef42ba | 4,778 | py | Python | entangle/deserialization.py | entangle/pyentangle | 2bda49ee97e1d505690b76347f72abdfda3652e2 | [
"Apache-2.0"
] | 1 | 2016-12-02T10:48:07.000Z | 2016-12-02T10:48:07.000Z | entangle/deserialization.py | entangle/pyentangle | 2bda49ee97e1d505690b76347f72abdfda3652e2 | [
"Apache-2.0"
] | null | null | null | entangle/deserialization.py | entangle/pyentangle | 2bda49ee97e1d505690b76347f72abdfda3652e2 | [
"Apache-2.0"
] | null | null | null | from six import integer_types, string_types, binary_type
from .exceptions import DeserializationError
from .constants import (
MAX_INT8, MIN_INT8, MAX_INT16, MIN_INT16, MAX_INT32, MIN_INT32, MAX_INT64,
MIN_INT64, MAX_UINT8, MAX_UINT16, MAX_UINT32, MAX_UINT64,
)
def deserialize_int8(x):
"""Deserialize 8-bi... | 30.240506 | 78 | 0.576392 | 545 | 4,778 | 4.959633 | 0.097248 | 0.194229 | 0.065113 | 0.076952 | 0.793563 | 0.761006 | 0.685165 | 0.619312 | 0.383278 | 0.352201 | 0 | 0.035558 | 0.329008 | 4,778 | 157 | 79 | 30.433121 | 0.807548 | 0.102344 | 0 | 0.445652 | 0 | 0 | 0.215268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141304 | false | 0 | 0.032609 | 0 | 0.315217 | 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 |
65af4d6453dfa90083a21507d7dc4c0e8e5142b5 | 426 | py | Python | batchprocessing/setup.py | JPI93/imageprocessing-1 | fe4c0fc003b39d16de1209ca6a83d3e1ef15ce2d | [
"MIT"
] | null | null | null | batchprocessing/setup.py | JPI93/imageprocessing-1 | fe4c0fc003b39d16de1209ca6a83d3e1ef15ce2d | [
"MIT"
] | null | null | null | batchprocessing/setup.py | JPI93/imageprocessing-1 | fe4c0fc003b39d16de1209ca6a83d3e1ef15ce2d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
from setuptools import setup, find_packages
import os
setup(name='batchprocessing',
version='0.1.0',
description=u"Micasense Image Processing",
author=u"MicaSense, Inc.",
author_email='github@micasense.com',
url='https://github.com/micas... | 23.666667 | 83 | 0.701878 | 52 | 426 | 5.692308 | 0.711538 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011019 | 0.147887 | 426 | 17 | 84 | 25.058824 | 0.804408 | 0.098592 | 0 | 0 | 0 | 0 | 0.408377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65b199bbf4cf22444067f4ad51b065616b339ce9 | 11,024 | py | Python | tests/conftest.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | null | null | null | tests/conftest.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | null | null | null | tests/conftest.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | null | null | null | # pylint: disable=C0111
import os
import tempfile
from collections import Mapping
from datetime import timedelta
import pytest
from osmaxx.utils.frozendict import frozendict
test_data_dir = os.path.join(os.path.dirname(__file__), 'test_data')
postgres_container_userland_port = 65432 # required for travis, so using... | 33.305136 | 114 | 0.628901 | 1,144 | 11,024 | 5.797203 | 0.288462 | 0.043124 | 0.025633 | 0.027443 | 0.200392 | 0.175362 | 0.135404 | 0.123945 | 0.123945 | 0.090772 | 0 | 0.026423 | 0.26533 | 11,024 | 330 | 115 | 33.406061 | 0.792444 | 0.088806 | 0 | 0.148148 | 0 | 0 | 0.32564 | 0.218202 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.069959 | false | 0.057613 | 0.069959 | 0.024691 | 0.197531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65b98b919757e53c07645026678cd0031d7c012c | 2,255 | py | Python | eynnyd/internal/utils/cookies/header_converter.py | cbefus/Eynnyd | 1b25281af98c1360794806db21f52ddbe0bd2cad | [
"MIT"
] | 3 | 2019-08-24T19:01:52.000Z | 2020-01-21T00:39:07.000Z | eynnyd/internal/utils/cookies/header_converter.py | cbefus/Eynnyd | 1b25281af98c1360794806db21f52ddbe0bd2cad | [
"MIT"
] | null | null | null | eynnyd/internal/utils/cookies/header_converter.py | cbefus/Eynnyd | 1b25281af98c1360794806db21f52ddbe0bd2cad | [
"MIT"
] | null | null | null | from eynnyd.exceptions import InvalidCookieHeaderException
from eynnyd.internal.utils.cookies.request_cookie import RequestCookie
from eynnyd.internal.utils.cookies import rfc
class CookieHeaderConverter:
@staticmethod
def from_header(header):
cookies = {}
for token in header.split(";"):
... | 35.793651 | 120 | 0.665188 | 259 | 2,255 | 5.594595 | 0.247104 | 0.082816 | 0.086957 | 0.049689 | 0.162871 | 0.071774 | 0.041408 | 0 | 0 | 0 | 0 | 0 | 0.221729 | 2,255 | 62 | 121 | 36.370968 | 0.825641 | 0 | 0 | 0.170213 | 0 | 0 | 0.089658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0 | 0.06383 | 0.12766 | 0.425532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65be5a6bc831c7f0697f297562096d2c5f2dc324 | 12,578 | py | Python | src/transform.py | lmaloney/statmatic | 0d5fecef29c6e42f0b0d0a44635855c255e1b900 | [
"Unlicense"
] | null | null | null | src/transform.py | lmaloney/statmatic | 0d5fecef29c6e42f0b0d0a44635855c255e1b900 | [
"Unlicense"
] | null | null | null | src/transform.py | lmaloney/statmatic | 0d5fecef29c6e42f0b0d0a44635855c255e1b900 | [
"Unlicense"
] | null | null | null | #!/usr/local/bin/python
"""
BSD 2-Clause License:
Copyright (c) 2013, iXSystems Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright... | 44.44523 | 755 | 0.617427 | 1,705 | 12,578 | 4.514956 | 0.338416 | 0.008314 | 0.007794 | 0.004677 | 0.093011 | 0.064692 | 0.051442 | 0.051442 | 0.051442 | 0.051442 | 0 | 0.015958 | 0.257672 | 12,578 | 282 | 756 | 44.602837 | 0.808504 | 0.422166 | 0 | 0.109677 | 0 | 0 | 0.153662 | 0 | 0 | 0 | 0 | 0.003546 | 0 | 0 | null | null | 0 | 0.019355 | null | null | 0.148387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65c04b6f963a022839aa798c6eba649797083520 | 3,120 | py | Python | coveo-for-sitecore/solutions/CreateSecuredItemPreview/CreateSecuredItemPreview/CreateSecuredItemPreviewExtension.py | amoreauCoveo/samples | 1fe55e2a19237ff7bfd2905cbff00007cd549252 | [
"Apache-2.0"
] | 13 | 2016-03-17T20:00:27.000Z | 2022-03-09T20:58:11.000Z | coveo-for-sitecore/solutions/CreateSecuredItemPreview/CreateSecuredItemPreview/CreateSecuredItemPreviewExtension.py | amoreauCoveo/samples | 1fe55e2a19237ff7bfd2905cbff00007cd549252 | [
"Apache-2.0"
] | 3 | 2017-01-25T21:10:00.000Z | 2021-03-31T14:01:58.000Z | coveo-for-sitecore/solutions/CreateSecuredItemPreview/CreateSecuredItemPreview/CreateSecuredItemPreviewExtension.py | amoreauCoveo/samples | 1fe55e2a19237ff7bfd2905cbff00007cd549252 | [
"Apache-2.0"
] | 10 | 2016-08-05T14:53:46.000Z | 2022-02-16T10:35:42.000Z | #Constants
FIELD_VALUE_EQUAL_TRUE = '1'
FIELDS_TO_HIDE_DELIMITER = ';'
REMOVED_PREVIEW_HTML_REMPLACEMENT = '<html><head></head><body><h1 style="color:rgb(150,0,0); font-family:sans-serif">Restricted</h1><p style="font-family:sans-serif; color:rgb(150,0,0)">Please log in to access the full document</p></body></html>'
R... | 46.567164 | 246 | 0.789423 | 328 | 3,120 | 7.185976 | 0.283537 | 0.056003 | 0.038184 | 0.048367 | 0.237166 | 0.140857 | 0.088248 | 0 | 0 | 0 | 0 | 0.004781 | 0.128526 | 3,120 | 67 | 247 | 46.567164 | 0.861714 | 0.005769 | 0 | 0 | 0 | 0.017241 | 0.163226 | 0.057097 | 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 |
65c0bc2206cf734767da3d27a341d181558c8d91 | 2,238 | py | Python | ciphers/vigenere.py | yabirgb/cryptography | 235dbca1b30a07d694c50d6dbdd713de93d13d34 | [
"MIT"
] | null | null | null | ciphers/vigenere.py | yabirgb/cryptography | 235dbca1b30a07d694c50d6dbdd713de93d13d34 | [
"MIT"
] | null | null | null | ciphers/vigenere.py | yabirgb/cryptography | 235dbca1b30a07d694c50d6dbdd713de93d13d34 | [
"MIT"
] | null | null | null | import string
class KeyNotProvided(Exception):
pass
def encode(m:str ) -> str:
mm = m.lower()
mm = mm.replace(" ", "")
return mm
class Alphabet:
pass
class LatinAlphabet(Alphabet):
def __init__(self):
self.alph = string.ascii_lowercase
def ord(self, char:str)->int:
retu... | 25.431818 | 121 | 0.55496 | 285 | 2,238 | 4.252632 | 0.34386 | 0.089109 | 0.033003 | 0.052805 | 0.30363 | 0.30363 | 0.30363 | 0.254125 | 0.254125 | 0.254125 | 0 | 0.003922 | 0.316354 | 2,238 | 87 | 122 | 25.724138 | 0.788235 | 0.126005 | 0 | 0.230769 | 0 | 0 | 0.085392 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.192308 | false | 0.038462 | 0.019231 | 0.076923 | 0.442308 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
65c812ccbdb712e8aead8143936f9bc395748784 | 7,814 | py | Python | tools/py/readGPS.py | dotmpe/arduino-docs | 65e4d950ab0f6e97c841113142c8fac626c7350e | [
"MIT"
] | null | null | null | tools/py/readGPS.py | dotmpe/arduino-docs | 65e4d950ab0f6e97c841113142c8fac626c7350e | [
"MIT"
] | null | null | null | tools/py/readGPS.py | dotmpe/arduino-docs | 65e4d950ab0f6e97c841113142c8fac626c7350e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
TinyGPS++
reads from GPRMC, GPGGA
"""
import serial
from glob import glob
ports = glob('/dev/tty.usb*')
port = ports[0]
line_types = {
'$PUBX': {
'00': ( "Time of Day and Clock Information",
""
),
'03': ( "Satellite Status",
"The PUBX,03 message contains satellite status i... | 27.514085 | 95 | 0.596621 | 1,087 | 7,814 | 4.24747 | 0.345906 | 0.017327 | 0.017327 | 0.012995 | 0.118692 | 0.083171 | 0.071042 | 0.05848 | 0.05848 | 0.05848 | 0 | 0.024996 | 0.232019 | 7,814 | 283 | 96 | 27.611307 | 0.744376 | 0.043256 | 0 | 0.180723 | 0 | 0 | 0.454043 | 0 | 0 | 0 | 0.002156 | 0 | 0.016064 | 0 | null | null | 0.004016 | 0.008032 | null | null | 0.028112 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65cd51ce5b9629ab756e9bfe2f852f0f7024de59 | 4,175 | py | Python | devel/lib/python2.7/dist-packages/sensor/msg/_Led.py | frozaidi/RobotSystems | e2c2f9e1623c71d6f5889e84bd9b4ff1d2043a1e | [
"BSD-3-Clause"
] | null | null | null | devel/lib/python2.7/dist-packages/sensor/msg/_Led.py | frozaidi/RobotSystems | e2c2f9e1623c71d6f5889e84bd9b4ff1d2043a1e | [
"BSD-3-Clause"
] | null | null | null | devel/lib/python2.7/dist-packages/sensor/msg/_Led.py | frozaidi/RobotSystems | e2c2f9e1623c71d6f5889e84bd9b4ff1d2043a1e | [
"BSD-3-Clause"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from sensor/Led.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import sensor.msg
class Led(genpy.Message):
_md5sum = "30e1b14f90ea917fa794eb562e3a6723"
... | 32.364341 | 145 | 0.638802 | 598 | 4,175 | 4.294314 | 0.257525 | 0.018692 | 0.021417 | 0.024922 | 0.504283 | 0.475857 | 0.450156 | 0.450156 | 0.419782 | 0.380062 | 0 | 0.016913 | 0.221078 | 4,175 | 128 | 146 | 32.617188 | 0.772755 | 0.294371 | 0 | 0.4875 | 1 | 0 | 0.122222 | 0.040143 | 0 | 0 | 0.003584 | 0 | 0 | 1 | 0.1 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65cda4cd77f8724eeb71470d6de7ffafa29182dd | 7,277 | py | Python | vminventory/vmtory/migrations/0001_initial.py | rodrigoechaide/vmtory | 066e9fdcee6bcec12dd50856687c45f2ce7b075a | [
"MIT"
] | 28 | 2019-06-23T23:31:13.000Z | 2022-02-22T02:45:10.000Z | vminventory/vmtory/migrations/0001_initial.py | imbi7py/vmtory | 5cebe9c9494a00ed4c436cbc9bc7d1f8d269bb7b | [
"MIT"
] | 18 | 2019-06-18T13:04:11.000Z | 2020-01-20T13:15:22.000Z | vminventory/vmtory/migrations/0001_initial.py | rodrigoechaide/vmtory | 066e9fdcee6bcec12dd50856687c45f2ce7b075a | [
"MIT"
] | 5 | 2019-06-23T20:33:03.000Z | 2021-02-13T20:56:19.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-06-18 12:25
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrati... | 57.299213 | 185 | 0.599835 | 745 | 7,277 | 5.677852 | 0.218792 | 0.145626 | 0.051064 | 0.080851 | 0.501891 | 0.472104 | 0.42104 | 0.337352 | 0.294799 | 0.293381 | 0 | 0.015765 | 0.250378 | 7,277 | 126 | 186 | 57.753968 | 0.75967 | 0.009482 | 0 | 0.355932 | 1 | 0 | 0.162248 | 0.004858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008475 | 0.033898 | 0 | 0.067797 | 0 | 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 |
65cee3fb58a7272701ba7ea9b7e9aaf48ba4772f | 1,731 | py | Python | fair/api_setts.py | remyzane/fair-api | 83669d656f1559071ec9eed22d1304b951736eec | [
"Apache-2.0"
] | 7 | 2016-02-03T03:13:01.000Z | 2016-02-04T08:11:46.000Z | fair/api_setts.py | remyzane/flask_http_api | 83669d656f1559071ec9eed22d1304b951736eec | [
"Apache-2.0"
] | null | null | null | fair/api_setts.py | remyzane/flask_http_api | 83669d656f1559071ec9eed22d1304b951736eec | [
"Apache-2.0"
] | null | null | null | import os
import logging
from flask import Blueprint
from .parameter import get_parameter_types
from .response import JsonRaise
from .execute import CaseLocalStorage
log = logging.getLogger(__name__)
class Setts(object):
"""
url_map define {
url_1: {
view_func_1: {http_method... | 21.911392 | 80 | 0.609474 | 201 | 1,731 | 4.940299 | 0.338308 | 0.036254 | 0.040282 | 0.026183 | 0.04431 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004796 | 0.277296 | 1,731 | 78 | 81 | 22.192308 | 0.788969 | 0.171577 | 0 | 0 | 0 | 0 | 0.034082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.241379 | 0 | 0.517241 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65d30375c8c81a4246f5dbd0a054f958861fabeb | 976 | py | Python | Python/busquedas_no_informadas/parcial1.py | jlopezg8/inteligentes1-2020-1 | 5d051369d7d7efc06be0ff4265937cb533a67ded | [
"MIT"
] | null | null | null | Python/busquedas_no_informadas/parcial1.py | jlopezg8/inteligentes1-2020-1 | 5d051369d7d7efc06be0ff4265937cb533a67ded | [
"MIT"
] | null | null | null | Python/busquedas_no_informadas/parcial1.py | jlopezg8/inteligentes1-2020-1 | 5d051369d7d7efc06be0ff4265937cb533a67ded | [
"MIT"
] | null | null | null | #%% Preparación del punto 2 y 3:
import utils.problema_jarras as pj
estado0 = (pj.Jarra(12), pj.Jarra(8), pj.Jarra(3))
test_objetivo = pj.crear_test_objetivo(objetivo=1)
#%% Punto 2
from anchura import buscar_en_anchura
ruta = buscar_en_anchura(estado0, pj.gen_sucesores, test_objetivo)
#%% Punto 3
from profundidad ... | 30.5 | 73 | 0.789959 | 150 | 976 | 4.9 | 0.313333 | 0.065306 | 0.103401 | 0.057143 | 0.37551 | 0.37551 | 0.108844 | 0.108844 | 0.108844 | 0 | 0 | 0.023283 | 0.119877 | 976 | 32 | 74 | 30.5 | 0.832363 | 0.147541 | 0 | 0.125 | 0 | 0 | 0.053204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
65db077b2fcdd1a70c20b64e26581cec6c379312 | 37,882 | py | Python | math/plasticity/plas4.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 31 | 2015-04-01T15:59:36.000Z | 2022-03-18T20:21:47.000Z | math/plasticity/plas4.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 3 | 2015-02-06T19:30:24.000Z | 2017-05-25T14:14:31.000Z | math/plasticity/plas4.py | usnistgov/OOF3D | 4fd423a48aea9c5dc207520f02de53ae184be74c | [
"X11"
] | 7 | 2015-01-23T15:19:22.000Z | 2021-06-09T09:03:59.000Z | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | 37.030303 | 162 | 0.47941 | 5,211 | 37,882 | 3.464978 | 0.129726 | 0.040097 | 0.05134 | 0.062694 | 0.294584 | 0.250443 | 0.212339 | 0.196444 | 0.183097 | 0.163491 | 0 | 0.050406 | 0.392508 | 37,882 | 1,022 | 163 | 37.066536 | 0.734194 | 0.214086 | 0 | 0.279649 | 0 | 0 | 0.012976 | 0 | 0 | 0 | 0 | 0.000978 | 0 | 0 | null | null | 0.001464 | 0.005857 | null | null | 0.011713 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65ddb62d2a088eab9927cd9c6b1996c56eda9275 | 2,188 | py | Python | rubbery-raccoons/wired/wired_app/migrations/0001_initial.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | rubbery-raccoons/wired/wired_app/migrations/0001_initial.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | rubbery-raccoons/wired/wired_app/migrations/0001_initial.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | # Generated by Django 3.0.8 on 2020-08-04 02:47
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 33.661538 | 96 | 0.471207 | 174 | 2,188 | 5.770115 | 0.425287 | 0.094622 | 0.091633 | 0.103586 | 0.513944 | 0.442231 | 0.442231 | 0.442231 | 0.442231 | 0.442231 | 0 | 0.014041 | 0.414077 | 2,188 | 64 | 97 | 34.1875 | 0.769111 | 0.020567 | 0 | 0.526316 | 1 | 0 | 0.06866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.122807 | 0 | 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 |
65dfe83530c95c30b681a4fb1146002d81c982ba | 13,158 | py | Python | tests/dataframe_protocol_test.py | sethvargo/vaex | c610324316b2c0a14b8ceac2a30e202adc9da28b | [
"MIT"
] | 337 | 2016-02-11T07:36:35.000Z | 2018-12-10T07:17:35.000Z | tests/dataframe_protocol_test.py | sethvargo/vaex | c610324316b2c0a14b8ceac2a30e202adc9da28b | [
"MIT"
] | 127 | 2016-07-06T15:43:14.000Z | 2018-12-11T18:46:27.000Z | tests/dataframe_protocol_test.py | sethvargo/vaex | c610324316b2c0a14b8ceac2a30e202adc9da28b | [
"MIT"
] | 29 | 2016-10-05T14:15:28.000Z | 2018-11-29T10:17:00.000Z | import numpy as np
import pyarrow as pa
import pytest
from typing import Any, Optional, Tuple, Dict, Iterable, Sequence
DataFrameObject = Any
ColumnObject = Any
import vaex
from common import *
from vaex.dataframe_protocol import _from_dataframe_to_vaex, _DtypeKind, _VaexBuffer, _VaexColumn, _VaexDataFrame
def test... | 39.04451 | 145 | 0.659675 | 1,975 | 13,158 | 4.056709 | 0.11038 | 0.062906 | 0.053545 | 0.073015 | 0.628807 | 0.590489 | 0.553919 | 0.539066 | 0.504868 | 0.47354 | 0 | 0.042134 | 0.166667 | 13,158 | 336 | 146 | 39.160714 | 0.688554 | 0.029032 | 0 | 0.428571 | 0 | 0.004082 | 0.028437 | 0.004544 | 0 | 0 | 0 | 0 | 0.567347 | 1 | 0.073469 | false | 0 | 0.028571 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65e1b655aa0a491ce6b5fd1f4670bf82da64108c | 3,416 | py | Python | src/mysql.py | GSA/mysql_to_cloudwatch | b9f34d3413a667efb98b1a47358897f1e907f060 | [
"CC0-1.0"
] | 4 | 2017-05-24T12:44:01.000Z | 2020-06-02T17:44:47.000Z | src/mysql.py | GSA/mysql_to_cloudwatch | b9f34d3413a667efb98b1a47358897f1e907f060 | [
"CC0-1.0"
] | 14 | 2017-03-28T00:03:30.000Z | 2017-07-28T05:14:01.000Z | src/mysql.py | GSA/mysql_to_cloudwatch | b9f34d3413a667efb98b1a47358897f1e907f060 | [
"CC0-1.0"
] | 3 | 2017-07-14T08:48:38.000Z | 2019-11-01T01:14:26.000Z | import pymysql
import pytz
import sys
from contextlib import contextmanager
from . import time_helper
def mysql_to_cw_log_event(row):
event_time = row[0]
cmd = row[1]
query = row[2]
# normalize data - seems to be inconsistent coming from MySQL
if hasattr(query, 'decode'):
# convert from b... | 34.16 | 128 | 0.578162 | 413 | 3,416 | 4.651332 | 0.411622 | 0.042166 | 0.024987 | 0.03748 | 0.103071 | 0.047892 | 0.033316 | 0 | 0 | 0 | 0 | 0.025597 | 0.313817 | 3,416 | 99 | 129 | 34.505051 | 0.793942 | 0.152225 | 0 | 0.112676 | 0 | 0 | 0.213417 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.126761 | false | 0 | 0.070423 | 0 | 0.267606 | 0.056338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
65e6f20484aaf748b30a56ae2b827136587e2688 | 8,693 | py | Python | tests/process_data.py | IPetr0v/compromutator | 6e1c34b5238a78f7f2f1628504103edfcb145523 | [
"Apache-2.0"
] | null | null | null | tests/process_data.py | IPetr0v/compromutator | 6e1c34b5238a78f7f2f1628504103edfcb145523 | [
"Apache-2.0"
] | null | null | null | tests/process_data.py | IPetr0v/compromutator | 6e1c34b5238a78f7f2f1628504103edfcb145523 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams.update({'font.size': 18})
def cut_by_item(dataframe, key, step):
item_range = np.arange(0, dataframe[key].max(), step)
grouped = dataframe.groupby(pd.cut(dataframe[key], item_ra... | 36.52521 | 103 | 0.643851 | 1,215 | 8,693 | 4.446914 | 0.186008 | 0.025912 | 0.018323 | 0.024986 | 0.506385 | 0.44975 | 0.398112 | 0.369239 | 0.361096 | 0.361096 | 0 | 0.030489 | 0.192569 | 8,693 | 238 | 104 | 36.52521 | 0.739279 | 0.272173 | 0 | 0.328358 | 0 | 0 | 0.116989 | 0.014224 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022388 | null | null | 0.037313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65e993bf191e15831724d5c8126724dc891960f9 | 1,948 | py | Python | nets/vgg.py | HuangCongQing/ssd-pytorch | ad8e1800fc9655e25b46e81cbb596b1fea5ca72a | [
"MIT"
] | 3 | 2021-11-05T08:00:19.000Z | 2022-01-27T10:22:08.000Z | nets/vgg.py | HuangCongQing/ssd-pytorch | ad8e1800fc9655e25b46e81cbb596b1fea5ca72a | [
"MIT"
] | null | null | null | nets/vgg.py | HuangCongQing/ssd-pytorch | ad8e1800fc9655e25b46e81cbb596b1fea5ca72a | [
"MIT"
] | 1 | 2022-01-27T10:22:10.000Z | 2022-01-27T10:22:10.000Z | '''
Description:
Author: HCQ
Company(School): UCAS
Email: 1756260160@qq.com
Date: 2021-08-25 09:32:09
LastEditTime: 2021-08-25 11:28:26
FilePath: /ssd-pytorch/nets/vgg.py
'''
import torch.nn as nn
base = [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'C', 512, 512, 512, 'M',
512, 512, 512]
'''... | 27.828571 | 117 | 0.567248 | 267 | 1,948 | 4.074906 | 0.404494 | 0.055147 | 0.025735 | 0.033088 | 0.102941 | 0.102941 | 0.064338 | 0.064338 | 0 | 0 | 0 | 0.213061 | 0.221766 | 1,948 | 69 | 118 | 28.231884 | 0.504617 | 0.153491 | 0 | 0 | 0 | 0 | 0.006912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0291c3917d81254dcc149450df28422a2248d362 | 6,667 | py | Python | src/tipsextension/azext_tipsextension/vendored_sdks/oscp/dataplane/aio/_open_supply_chain_platform_service_api.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | null | null | null | src/tipsextension/azext_tipsextension/vendored_sdks/oscp/dataplane/aio/_open_supply_chain_platform_service_api.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | null | null | null | src/tipsextension/azext_tipsextension/vendored_sdks/oscp/dataplane/aio/_open_supply_chain_platform_service_api.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.2.1, generator: {generator})
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ------------------------------------------... | 52.496063 | 107 | 0.744113 | 660 | 6,667 | 7.293939 | 0.24697 | 0.039468 | 0.054009 | 0.070212 | 0.181138 | 0.156627 | 0.156627 | 0.156627 | 0.146656 | 0.103448 | 0 | 0.004119 | 0.162442 | 6,667 | 126 | 108 | 52.912698 | 0.857987 | 0.314534 | 0 | 0.183099 | 1 | 0.014085 | 0.030532 | 0.008327 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0 | 0.267606 | 0 | 0.323944 | 0 | 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 |
02933502a2b74069113e71566fd35e871b528fea | 721 | py | Python | test_folder/test_ssrf.py | sebrink/SILVEROCELOT | c47dcd1f031007471d635d995b679ee85c1e5857 | [
"MIT"
] | 2 | 2019-01-30T20:51:03.000Z | 2019-12-14T04:57:23.000Z | test_folder/test_ssrf.py | sebrink/SILVEROCELOT | c47dcd1f031007471d635d995b679ee85c1e5857 | [
"MIT"
] | 27 | 2019-02-06T02:32:51.000Z | 2019-04-22T04:08:56.000Z | test_folder/test_ssrf.py | sebrink/SILVEROCELOT | c47dcd1f031007471d635d995b679ee85c1e5857 | [
"MIT"
] | null | null | null | import requests
def test_1_ssrf():
params = {'username':'new', 'password':'new', 'recap':'L33THAx0rTest'}
page = requests.get('https://localhost/python/signin.py', params=params, verify=False)
page.encoding = 'utf-8'
cookiename = page.text.strip().split(';')[0].split('=')[0]
cookievalue = page.text... | 51.5 | 107 | 0.667129 | 87 | 721 | 5.494253 | 0.494253 | 0.075314 | 0.094142 | 0.125523 | 0.307531 | 0.246862 | 0 | 0 | 0 | 0 | 0 | 0.014241 | 0.12344 | 721 | 13 | 108 | 55.461538 | 0.742089 | 0 | 0 | 0 | 0 | 0 | 0.294036 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0.25 | 0.083333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
029e10f4a93c2823323eaa59333654fef866d494 | 1,412 | py | Python | core/apps/classes/migrations/0001_initial.py | yavuzbektas/StudentAnalayze | 794f433f650633f646bee5cbe08d04afdbd75e84 | [
"MIT"
] | null | null | null | core/apps/classes/migrations/0001_initial.py | yavuzbektas/StudentAnalayze | 794f433f650633f646bee5cbe08d04afdbd75e84 | [
"MIT"
] | null | null | null | core/apps/classes/migrations/0001_initial.py | yavuzbektas/StudentAnalayze | 794f433f650633f646bee5cbe08d04afdbd75e84 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-02-01 06:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClassLevels',
fields=[
... | 34.439024 | 131 | 0.568697 | 137 | 1,412 | 5.766423 | 0.40146 | 0.040506 | 0.053165 | 0.083544 | 0.427848 | 0.427848 | 0.427848 | 0.427848 | 0.427848 | 0.311392 | 0 | 0.016983 | 0.291076 | 1,412 | 40 | 132 | 35.3 | 0.772228 | 0.030453 | 0 | 0.454545 | 1 | 0 | 0.083394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02a70fe81ac026ca466723d3f6e63852bfcced4d | 268 | py | Python | aula_11/ex38.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | aula_11/ex38.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | aula_11/ex38.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | # COMPARANDO NÚMEROS
num1 = int(input("Primeiro valor: "))
num2 = int(input("Segundo valor: "))
print("-=" * 10)
if num1 > num2:
print("Primeiro valor MAIOR.")
elif num2 > num1:
print("Segundo valor MAIOR.")
else:
print("Os dois valores são iguais.") | 20.615385 | 40 | 0.63806 | 35 | 268 | 4.885714 | 0.571429 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037209 | 0.197761 | 268 | 13 | 40 | 20.615385 | 0.75814 | 0.067164 | 0 | 0 | 0 | 0 | 0.408907 | 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 |
02ab4ea2aeca99e9048454c8dfb7ccfc4d4d624d | 505 | py | Python | main/model/document_word.py | sotheara-leang/xFlask | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | [
"MIT"
] | 2 | 2020-02-11T08:29:49.000Z | 2020-02-17T10:24:36.000Z | main/model/document_word.py | sotheara-leang/xFlask | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | [
"MIT"
] | null | null | null | main/model/document_word.py | sotheara-leang/xFlask | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | [
"MIT"
] | null | null | null | from xflask.sqlalchemy import Column, ForeignKey, relationship
from xflask.sqlalchemy import Integer
from xflask.sqlalchemy.model import Model
class DocumentWord(Model):
document_id = Column(Integer, ForeignKey('document.id'), primary_key=True)
word_id = Column(Integer, ForeignKey('word.id'), pri... | 38.846154 | 84 | 0.70495 | 59 | 505 | 5.966102 | 0.372881 | 0.085227 | 0.170455 | 0.147727 | 0.119318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20198 | 505 | 12 | 85 | 42.083333 | 0.873449 | 0.087129 | 0 | 0 | 0 | 0 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
02add08305043cf8bf8204a52762f935ef4ae475 | 2,247 | py | Python | backend/blog/migrations/0001_initial.py | mezgoodle/django-vue-blog | 12a16f19d4260bf7e34fb0d9167a19d7a5ccfcd4 | [
"MIT"
] | 2 | 2021-07-15T13:13:14.000Z | 2021-11-11T17:03:00.000Z | backend/blog/migrations/0001_initial.py | mezgoodle/django-vue-blog | 12a16f19d4260bf7e34fb0d9167a19d7a5ccfcd4 | [
"MIT"
] | 46 | 2021-07-15T09:31:52.000Z | 2022-02-01T06:46:51.000Z | backend/blog/migrations/0001_initial.py | mezgoodle/django-vue-blog | 12a16f19d4260bf7e34fb0d9167a19d7a5ccfcd4 | [
"MIT"
] | 1 | 2021-11-27T05:29:59.000Z | 2021-11-27T05:29:59.000Z | # Generated by Django 3.2.5 on 2021-07-15 09:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 41.611111 | 121 | 0.581664 | 225 | 2,247 | 5.675556 | 0.386667 | 0.042287 | 0.03289 | 0.051684 | 0.365701 | 0.331245 | 0.25372 | 0.25372 | 0.192639 | 0.192639 | 0 | 0.019729 | 0.278149 | 2,247 | 53 | 122 | 42.396226 | 0.767571 | 0.020027 | 0 | 0.326087 | 1 | 0 | 0.080909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.152174 | 0 | 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 |
02af54a2157f567a4a58072ac057fae3f894cf4a | 8,234 | py | Python | tests/unit/test_fsm.py | anushreejangid/condoor | dd07356c7ac57f829a613ac61ead508cafcbc1e7 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_fsm.py | anushreejangid/condoor | dd07356c7ac57f829a613ac61ead508cafcbc1e7 | [
"Apache-2.0"
] | 6 | 2016-12-07T05:55:13.000Z | 2017-01-07T02:52:55.000Z | tests/unit/test_fsm.py | kstaniek/condoor-ng | adbe6d37b5978e17237e41051525ab59c589adbc | [
"Apache-2.0"
] | null | null | null | # =============================================================================
#
# Copyright (c) 2016, Cisco Systems
# All rights reserved.
#
# # Author: Klaudiusz Staniek
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | 29.095406 | 93 | 0.572504 | 900 | 8,234 | 5.182222 | 0.211111 | 0.024014 | 0.030875 | 0.040523 | 0.580403 | 0.526801 | 0.521012 | 0.497427 | 0.497427 | 0.497427 | 0 | 0.019096 | 0.306777 | 8,234 | 282 | 94 | 29.198582 | 0.798003 | 0.206582 | 0 | 0.678363 | 0 | 0 | 0.04725 | 0.008985 | 0 | 0 | 0 | 0 | 0.099415 | 1 | 0.116959 | false | 0.052632 | 0.035088 | 0 | 0.274854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02b157f6829240ab107080b5f08d272d5050f960 | 328 | py | Python | core/migrations/0011_remove_statistic_streak.py | SanjaLV/Tenis | ea714da10207723c27ff7204b4285ea6a773521b | [
"MIT"
] | null | null | null | core/migrations/0011_remove_statistic_streak.py | SanjaLV/Tenis | ea714da10207723c27ff7204b4285ea6a773521b | [
"MIT"
] | null | null | null | core/migrations/0011_remove_statistic_streak.py | SanjaLV/Tenis | ea714da10207723c27ff7204b4285ea6a773521b | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-05-21 19:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0010_auto_20190509_2154'),
]
operations = [
migrations.RemoveField(
model_name='statistic',
name='streak',
)... | 18.222222 | 47 | 0.591463 | 35 | 328 | 5.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134199 | 0.295732 | 328 | 17 | 48 | 19.294118 | 0.688312 | 0.137195 | 0 | 0 | 1 | 0 | 0.149466 | 0.081851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02b21bcd9030ddda8423ea9387a6fb41e626c260 | 778 | py | Python | sr_api/options.py | BobDotCom/sr_api | c170cee20568d717e77d9388f2f61e8d1ad65d69 | [
"MIT"
] | 22 | 2019-12-10T07:54:02.000Z | 2021-09-08T17:10:54.000Z | sr_api/options.py | BobDotCom/sr_api | c170cee20568d717e77d9388f2f61e8d1ad65d69 | [
"MIT"
] | 5 | 2019-12-15T06:17:22.000Z | 2021-05-31T00:33:50.000Z | sr_api/options.py | BobDotCom/sr_api | c170cee20568d717e77d9388f2f61e8d1ad65d69 | [
"MIT"
] | 18 | 2019-12-14T18:28:37.000Z | 2021-10-14T07:44:53.000Z | class Animal:
cat = "cat"
dog = "dog"
panda = "panda"
koala = "koala"
fox = "fox"
bird = "bird"
racoon = "racoon"
kangaroo = "kangaroo"
elephant = "elephant"
giraffe = "giraffe"
whale = "whale"
birb = "birb"
raccoon = "raccoon"
class Gif:
wink = "wink"
pat = ... | 19.45 | 39 | 0.547558 | 75 | 778 | 5.68 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316195 | 778 | 39 | 40 | 19.948718 | 0.800752 | 0 | 0 | 0 | 0 | 0 | 0.255784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
02b3d12639be563f88bea2ebdae36e10b9dce98b | 1,828 | py | Python | src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/instance_creation_request.py | microsoft/Dynamics365-CustomerInsights-Client-Libraries | e00632f7972717b03e0fb1a9e2667e8f9444a0fe | [
"MIT"
] | null | null | null | src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/instance_creation_request.py | microsoft/Dynamics365-CustomerInsights-Client-Libraries | e00632f7972717b03e0fb1a9e2667e8f9444a0fe | [
"MIT"
] | null | null | null | src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/instance_creation_request.py | microsoft/Dynamics365-CustomerInsights-Client-Libraries | e00632f7972717b03e0fb1a9e2667e8f9444a0fe | [
"MIT"
] | 7 | 2021-02-11T19:48:57.000Z | 2021-12-17T08:00:15.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 43.52381 | 96 | 0.669584 | 172 | 1,828 | 6.854651 | 0.389535 | 0.135708 | 0.089059 | 0.122137 | 0.212044 | 0.176421 | 0.134012 | 0.134012 | 0.134012 | 0 | 0 | 0.000641 | 0.146061 | 1,828 | 41 | 97 | 44.585366 | 0.754644 | 0.477024 | 0 | 0 | 1 | 0 | 0.358108 | 0.170045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02b6c84caf90568a5a1513e01c597912a038c508 | 5,183 | py | Python | prophepy/__init__.py | Einenlum/prophepy | 9bddcf9f579d1ff4037978a5669587221cc8e21d | [
"MIT"
] | null | null | null | prophepy/__init__.py | Einenlum/prophepy | 9bddcf9f579d1ff4037978a5669587221cc8e21d | [
"MIT"
] | null | null | null | prophepy/__init__.py | Einenlum/prophepy | 9bddcf9f579d1ff4037978a5669587221cc8e21d | [
"MIT"
] | null | null | null | from importlib import import_module
from .exceptions import UndefinedMockBehaviorError, MethodWasNotCalledError
class AttributeProphecy:
'''
This is the return of every call to the mock object
(You can then do a _will_return(…) or _should_be_called() on it)
'''
def __init__(self, mock, name, args, ... | 32.803797 | 109 | 0.610843 | 619 | 5,183 | 4.899838 | 0.226171 | 0.034289 | 0.036927 | 0.047478 | 0.181339 | 0.135839 | 0.062644 | 0.038246 | 0.038246 | 0.038246 | 0 | 0.001677 | 0.309666 | 5,183 | 157 | 110 | 33.012739 | 0.845165 | 0.23963 | 0 | 0.131579 | 0 | 0 | 0.044268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223684 | false | 0.026316 | 0.039474 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02b913e7795d5e1482cb3a796f8d2a6927d57dcc | 4,399 | py | Python | backend/flask/www/main.py | mdda/2014-07_Singapore-Maritime-Hackathon | 0629f78f4214b5968c902ed2f3f98d872e6be998 | [
"MIT"
] | 1 | 2020-05-28T03:23:34.000Z | 2020-05-28T03:23:34.000Z | backend/flask/www/main.py | mdda/2014-07_Singapore-Maritime-Hackathon | 0629f78f4214b5968c902ed2f3f98d872e6be998 | [
"MIT"
] | null | null | null | backend/flask/www/main.py | mdda/2014-07_Singapore-Maritime-Hackathon | 0629f78f4214b5968c902ed2f3f98d872e6be998 | [
"MIT"
] | null | null | null | from www import app
from www.auth import requires_auth, login
from www.models import User, Site, Audit
from flask import request, Response, render_template, session
from flask import redirect, url_for, flash
from flask import json, jsonify
import flask # send_file and 'flask.g'
import os # isdir, isfile, listdir, no... | 32.109489 | 117 | 0.655831 | 623 | 4,399 | 4.515249 | 0.284109 | 0.07963 | 0.092428 | 0.031994 | 0.26342 | 0.16246 | 0.148951 | 0.082119 | 0.082119 | 0.082119 | 0 | 0.006667 | 0.181632 | 4,399 | 136 | 118 | 32.345588 | 0.774722 | 0.15549 | 0 | 0.130435 | 0 | 0 | 0.217226 | 0.026002 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.076087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02ba1aeb4291be108132fa047c6269f9016da74a | 14,731 | py | Python | lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_bd.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_bd.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_bd.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | 31.885281 | 141 | 0.638382 | 1,769 | 14,731 | 5.181458 | 0.210288 | 0.028257 | 0.036003 | 0.024111 | 0.439996 | 0.366899 | 0.293476 | 0.250382 | 0.187759 | 0.130046 | 0 | 0.006383 | 0.255516 | 14,731 | 461 | 142 | 31.954447 | 0.829397 | 0.024438 | 0 | 0.365967 | 0 | 0.009324 | 0.687761 | 0.019006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002331 | false | 0.013986 | 0.006993 | 0 | 0.009324 | 0.002331 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02ba5ccbe6bb1e49bde6592757194e7d95af9029 | 4,188 | py | Python | scripts/SerialTransferTest/serialTransfer_loopback_test1.py | PaulBouchier/experiments | 82e2c007c1896595f06745fc6b7625a2fab9fc98 | [
"MIT"
] | null | null | null | scripts/SerialTransferTest/serialTransfer_loopback_test1.py | PaulBouchier/experiments | 82e2c007c1896595f06745fc6b7625a2fab9fc98 | [
"MIT"
] | null | null | null | scripts/SerialTransferTest/serialTransfer_loopback_test1.py | PaulBouchier/experiments | 82e2c007c1896595f06745fc6b7625a2fab9fc98 | [
"MIT"
] | null | null | null | import time
from pySerialTransfer import pySerialTransfer as txfer
if __name__ == '__main__':
print('loopback.py')
try:
link = txfer.SerialTransfer('/dev/ttyAMA1')
link.open()
time.sleep(2) # allow some time for the Arduino to completely reset
while True:
... | 41.465347 | 79 | 0.305635 | 273 | 4,188 | 4.395604 | 0.322344 | 0.06 | 0.04 | 0.053333 | 0.2 | 0.09 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.355301 | 4,188 | 100 | 80 | 41.88 | 0.440741 | 0.070201 | 0 | 0.181818 | 0 | 0 | 0.061286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.036364 | 0.054545 | 0 | 0.054545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02c2b235506fb2d7f39d342da3c0d450b51aa85b | 589 | py | Python | tests/test_collections.py | fabiommendes/easymunk | 420dfc4a006997c47887f6876876249674feb3cd | [
"MIT"
] | 1 | 2021-07-02T11:59:07.000Z | 2021-07-02T11:59:07.000Z | tests/test_collections.py | fabiommendes/easymunk | 420dfc4a006997c47887f6876876249674feb3cd | [
"MIT"
] | null | null | null | tests/test_collections.py | fabiommendes/easymunk | 420dfc4a006997c47887f6876876249674feb3cd | [
"MIT"
] | 1 | 2022-01-14T20:18:35.000Z | 2022-01-14T20:18:35.000Z | from easymunk import Space
class TestCollections:
def test_initialize_base_collections(self):
sp = Space()
b1 = sp.create_circle(1)
b2 = sp.create_circle(1, position=(1, 0))
conn = b1.junction(b2)
j1 = conn.fix_distance(2)
sp.step(1.0)
assert sp.bodies == {... | 28.047619 | 49 | 0.578947 | 75 | 589 | 4.466667 | 0.453333 | 0.095522 | 0.083582 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052758 | 0.29202 | 589 | 20 | 50 | 29.45 | 0.7506 | 0.127334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.357143 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02c3a8b5f7ec64db718ca71f22cdc9634483fb68 | 411 | py | Python | openingangle/anglemodel8.28.py | DingdingLuan/PycharmProjects | 055944cd4bf66637e40d81d8ccf05216006dc0a3 | [
"Apache-2.0"
] | null | null | null | openingangle/anglemodel8.28.py | DingdingLuan/PycharmProjects | 055944cd4bf66637e40d81d8ccf05216006dc0a3 | [
"Apache-2.0"
] | null | null | null | openingangle/anglemodel8.28.py | DingdingLuan/PycharmProjects | 055944cd4bf66637e40d81d8ccf05216006dc0a3 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.integrate import quad
import random
import matplotlib.pyplot as plt
from matplotlib.patches import Circle
# Example for Monte Carlo method.
point_in=0
point_out=0
for i in range(10000):
x=random.uniform(0,1)
y=random.uniform(0,1)
if y<=np.sqrt(1-x**2):
point_in=point_i... | 19.571429 | 37 | 0.717762 | 75 | 411 | 3.813333 | 0.493333 | 0.122378 | 0.097902 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047478 | 0.180049 | 411 | 20 | 38 | 20.55 | 0.801187 | 0.075426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
02c7dccdb6a1d1144a3a3dc3877a0593bb087fee | 897 | py | Python | src/screen_print.py | srkiyengar/Gripper | 681ff0c9ba211138e33f8405c5e04d4a9ca748bf | [
"MIT"
] | null | null | null | src/screen_print.py | srkiyengar/Gripper | 681ff0c9ba211138e33f8405c5e04d4a9ca748bf | [
"MIT"
] | null | null | null | src/screen_print.py | srkiyengar/Gripper | 681ff0c9ba211138e33f8405c5e04d4a9ca748bf | [
"MIT"
] | null | null | null | __author__ = 'srkiyengar'
import pygame
#Acknowledgement - code modified from http://www.pygame.org/docs/ sample
# Define some colors
BLACK = ( 0, 0, 0)
WHITE = ( 255, 255, 255)
# This is a simple class that will help us print to the screen
# It has nothing to do with the joysticks, just outputing th... | 21.878049 | 72 | 0.617614 | 124 | 897 | 4.387097 | 0.540323 | 0.073529 | 0.049632 | 0.060662 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.275362 | 897 | 41 | 73 | 21.878049 | 0.796923 | 0.280936 | 0 | 0 | 0 | 0 | 0.015601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0 | 0.363636 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02cb5eff45365e172d774f7f6e99404662997d10 | 906 | py | Python | parallel.py | chriskuehl/mapman | 749a11ee992b1d0eb4ff75f5e6c1097ab2583dae | [
"MIT"
] | 1 | 2019-03-31T12:51:04.000Z | 2019-03-31T12:51:04.000Z | parallel.py | chriskuehl/mapman | 749a11ee992b1d0eb4ff75f5e6c1097ab2583dae | [
"MIT"
] | null | null | null | parallel.py | chriskuehl/mapman | 749a11ee992b1d0eb4ff75f5e6c1097ab2583dae | [
"MIT"
] | null | null | null | import threading
# TODO: replace this terrible code with something reasonable
class Parallel():
max = 20
stack = []
threads = []
def start(self, func):
def wrapper():
func()
try:
self.threads.remove(threading.current_thread())
except ValueEr... | 25.166667 | 84 | 0.53532 | 96 | 906 | 5.041667 | 0.4375 | 0.159091 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.350993 | 906 | 35 | 85 | 25.885714 | 0.818027 | 0.155629 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.153846 | false | 0.038462 | 0.038462 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
02cd00091604c0eb2a390d3ba3ce41d7653efd6a | 2,724 | py | Python | components/loadouts.py | TheChaoticLion/Live-Valorant-Overlay | fe0d22986c8026710eaec439d16e3f93c5c9d810 | [
"MIT"
] | 22 | 2021-12-02T23:49:27.000Z | 2022-03-30T10:08:27.000Z | components/loadouts.py | TheChaoticLion/Live-Valorant-Overlay | fe0d22986c8026710eaec439d16e3f93c5c9d810 | [
"MIT"
] | 10 | 2021-11-16T23:03:57.000Z | 2022-03-27T15:53:16.000Z | components/loadouts.py | TheChaoticLion/Live-Valorant-Overlay | fe0d22986c8026710eaec439d16e3f93c5c9d810 | [
"MIT"
] | 7 | 2021-12-02T18:01:02.000Z | 2022-03-25T09:07:31.000Z | import glob
import os
import time
import cv2
import numpy as np
class GetLoadouts():
def __init__(self):
self.weapon_templates = self.generate_weapon_templates()
def generate_weapon_templates(self):
generated_weapon_templates = []
template_directory = os.path.abspath(os.path.join(
... | 35.842105 | 77 | 0.604993 | 307 | 2,724 | 5.042345 | 0.289902 | 0.087209 | 0.077519 | 0.028424 | 0.046512 | 0.046512 | 0.046512 | 0.046512 | 0 | 0 | 0 | 0.027579 | 0.281204 | 2,724 | 75 | 78 | 36.32 | 0.763023 | 0.006241 | 0 | 0.092308 | 1 | 0 | 0.08432 | 0.036243 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0.046154 | 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 |
02cf5f0e37459c9853ba5b5f489ff54dd7825fa1 | 444 | py | Python | scraping/readsqlmembers.py | mmeooo/test_django | 0364f43549d4082df7100d11c67dd42dc2a82b32 | [
"Apache-2.0"
] | null | null | null | scraping/readsqlmembers.py | mmeooo/test_django | 0364f43549d4082df7100d11c67dd42dc2a82b32 | [
"Apache-2.0"
] | null | null | null | scraping/readsqlmembers.py | mmeooo/test_django | 0364f43549d4082df7100d11c67dd42dc2a82b32 | [
"Apache-2.0"
] | null | null | null | import sqlite3
connect = sqlite3.connect('../db.sqlite3')
import pandas as pd
df = pd.read_sql_query('select * from members where age >= 25', connect )
df1 = pd.read_sql_query('select * from polls_economics where title like "%마스크%"', connect)
df2 = pd.read_sql_query('select * from polls_economics where title like "%노... | 31.714286 | 90 | 0.731982 | 67 | 444 | 4.686567 | 0.41791 | 0.076433 | 0.11465 | 0.178344 | 0.573248 | 0.573248 | 0.496815 | 0.496815 | 0.496815 | 0.496815 | 0 | 0.020833 | 0.135135 | 444 | 13 | 91 | 34.153846 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.474041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
02d18d4b0b5c25092ca2ad88a43fdd6abf0bcdc6 | 438 | py | Python | setup.py | datamonsters/syntax_analyzer | 7bba007468020626d60e485a57a1ae79d6941e32 | [
"MIT"
] | null | null | null | setup.py | datamonsters/syntax_analyzer | 7bba007468020626d60e485a57a1ae79d6941e32 | [
"MIT"
] | null | null | null | setup.py | datamonsters/syntax_analyzer | 7bba007468020626d60e485a57a1ae79d6941e32 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='syntax-analyzer',
version='0.1.1',
description='Syntax Analyzer',
url='https://github.com/datamonsters/syntax_analyzer',
author='Data Monsters',
author_email='support@datamonsters.co',
packages=find_packages(),
package_data={
... | 25.764706 | 58 | 0.671233 | 50 | 438 | 5.7 | 0.68 | 0.196491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013812 | 0.173516 | 438 | 16 | 59 | 27.375 | 0.773481 | 0 | 0 | 0 | 0 | 0 | 0.353881 | 0.052511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02d1e6c67956b9ef5838a68c2bbd33a15f7273f9 | 596 | py | Python | setup.py | Ferdi265/python-itanium_demangler | 29c77860be48e6dafe3496e4d9d0963ce414e366 | [
"0BSD"
] | 52 | 2018-01-13T10:57:35.000Z | 2022-03-20T15:47:08.000Z | setup.py | Ferdi265/python-itanium_demangler | 29c77860be48e6dafe3496e4d9d0963ce414e366 | [
"0BSD"
] | 3 | 2018-08-03T12:27:55.000Z | 2020-02-20T01:05:01.000Z | setup.py | Ferdi265/python-itanium_demangler | 29c77860be48e6dafe3496e4d9d0963ce414e366 | [
"0BSD"
] | 7 | 2018-01-22T00:20:43.000Z | 2022-02-10T12:23:06.000Z | import setuptools
setuptools.setup(
name="itanium_demangler",
version="1.0",
author="whitequark",
author_email="whitequark@whitequark.org",
description="Pure Python parser for mangled itanium symbols",
long_description=open("README.md").read(),
long_description_content_type="text/markdown"... | 29.8 | 65 | 0.684564 | 62 | 596 | 6.451613 | 0.709677 | 0.08 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.181208 | 596 | 19 | 66 | 31.368421 | 0.811475 | 0 | 0 | 0 | 0 | 0 | 0.471477 | 0.041946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02d5d87ec5e707478869f4e1aa9a93f3d6984aaa | 2,604 | py | Python | port_scanner.py | wesleywh/portScanner | 84e16eff361b80232ce18dd530ac04855be19b70 | [
"MIT"
] | null | null | null | port_scanner.py | wesleywh/portScanner | 84e16eff361b80232ce18dd530ac04855be19b70 | [
"MIT"
] | null | null | null | port_scanner.py | wesleywh/portScanner | 84e16eff361b80232ce18dd530ac04855be19b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import socket #for socket scanning
from threading import * #for threading
import subprocess #to run the clean command and system exit
import sys
from datetime import datetime
#from queue import Queue #for threading (using queues)
import argparse #used for allowing command line switches ... | 28.615385 | 79 | 0.706605 | 375 | 2,604 | 4.869333 | 0.429333 | 0.016429 | 0.011501 | 0.017525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009845 | 0.180876 | 2,604 | 90 | 80 | 28.933333 | 0.846226 | 0.31682 | 0 | 0.114754 | 0 | 0 | 0.153189 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098361 | null | null | 0.147541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02d66947aa32fbe37b84f70644ceb07dd19c386b | 1,216 | py | Python | puq/dump.py | zoidy/puq | ed70f113f7c135ee61adeebfc9bd18c541970caf | [
"MIT"
] | null | null | null | puq/dump.py | zoidy/puq | ed70f113f7c135ee61adeebfc9bd18c541970caf | [
"MIT"
] | null | null | null | puq/dump.py | zoidy/puq | ed70f113f7c135ee61adeebfc9bd18c541970caf | [
"MIT"
] | null | null | null | """
This file is part of PUQ
Copyright (c) 2013 PUQ Authors
See LICENSE file for terms.
"""
import numpy as np
import csv
import os.path
def dump(h5, fname):
"""
Dumps all parameters and output value[s] to a single csv file.
There is a two line header on the file.
Example:
v,m,energy,kinetic_ener... | 29.658537 | 73 | 0.594572 | 182 | 1,216 | 3.950549 | 0.543956 | 0.013908 | 0.03338 | 0.047288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143469 | 0.231908 | 1,216 | 40 | 74 | 30.4 | 0.626338 | 0 | 0 | 0 | 0 | 0 | 0.248304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02db23c3bc63119ba61f652f2125f6684919661d | 331 | py | Python | bluepost_crawler/spiders/heartstone_spider.py | odemiral/Bluepost-Crawler | c8d4293d1e68ad7bf3be10e2df103c37299d1320 | [
"MIT"
] | 1 | 2015-06-12T07:27:09.000Z | 2015-06-12T07:27:09.000Z | bluepost_crawler/spiders/heartstone_spider.py | odemiral/Bluepost-Crawler | c8d4293d1e68ad7bf3be10e2df103c37299d1320 | [
"MIT"
] | null | null | null | bluepost_crawler/spiders/heartstone_spider.py | odemiral/Bluepost-Crawler | c8d4293d1e68ad7bf3be10e2df103c37299d1320 | [
"MIT"
] | null | null | null | from battlenet_spider import BnetSpider
class HearthStoneSpider(BnetSpider):
name = "HearthStone"
def __init__(self, config, category=None, *args, **kwargs):
super(HearthStoneSpider, self).__init__(config)
self.start_urls = [self.config.bnet_hearthstone_url]
print 'url: ' + str(self.s... | 30.090909 | 63 | 0.70997 | 37 | 331 | 6 | 0.648649 | 0.09009 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181269 | 331 | 10 | 64 | 33.1 | 0.819188 | 0 | 0 | 0 | 0 | 0 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02dfd392f8edac612a9b7abcc947b1603ac5abd0 | 991 | py | Python | src/storage/objects.py | colabois/PDBB | e71ffd0b1497bbddb365b3e7db9de8a14f7912a1 | [
"MIT"
] | 1 | 2021-05-13T20:33:14.000Z | 2021-05-13T20:33:14.000Z | src/storage/objects.py | colabois/PDBB | e71ffd0b1497bbddb365b3e7db9de8a14f7912a1 | [
"MIT"
] | null | null | null | src/storage/objects.py | colabois/PDBB | e71ffd0b1497bbddb365b3e7db9de8a14f7912a1 | [
"MIT"
] | null | null | null | import json
import os
from . import jsonencoder
class Objects:
def __init__(self, path: str):
self.path = os.path.abspath(path)
os.makedirs(os.path.join(self.path, "objects"), exist_ok=True)
self.encoder = jsonencoder.Encoder()
def save_object(self, object_name, object_instance):
... | 36.703704 | 102 | 0.640767 | 140 | 991 | 4.385714 | 0.285714 | 0.114007 | 0.065147 | 0.091205 | 0.257329 | 0.257329 | 0.216612 | 0.216612 | 0.216612 | 0.153094 | 0 | 0 | 0.218971 | 991 | 26 | 103 | 38.115385 | 0.793282 | 0.079717 | 0 | 0 | 0 | 0 | 0.050223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02e08928a34f845f1ddb3276b5e6975f534827d0 | 665 | py | Python | server/rest/notification.py | jjojala/results | bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f | [
"Apache-2.0"
] | null | null | null | server/rest/notification.py | jjojala/results | bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f | [
"Apache-2.0"
] | 7 | 2015-11-25T22:26:25.000Z | 2016-10-18T22:14:35.000Z | server/rest/notification.py | jjojala/results | bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f | [
"Apache-2.0"
] | null | null | null | from flask_socketio import SocketIO, Namespace
CREATED = 'CREATED'
UPDATED = 'UPDATED'
PATCHED = 'PATCHED'
REMOVED = 'REMOVED'
class Notifications(Namespace):
def __init__(self, namespace, socketio):
super(Notifications, self).__init__(namespace)
self._socketio = socketio
def submit(self, event, entity, data)... | 23.75 | 83 | 0.715789 | 75 | 665 | 6.12 | 0.36 | 0.03268 | 0.065359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13985 | 665 | 28 | 84 | 23.75 | 0.802448 | 0 | 0 | 0 | 0 | 0 | 0.178679 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.333333 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02e8a4039a720876a76b7f44fd40fd1ee40fb986 | 439 | py | Python | home/migrations/0002_homepage_info.py | kevswanberg/personal-site | 2a34e8f7ae654f601d716f5ebae6733af343a348 | [
"MIT"
] | 2 | 2018-08-14T12:11:19.000Z | 2018-08-28T20:34:48.000Z | home/migrations/0002_homepage_info.py | kevswanberg/personal-site | 2a34e8f7ae654f601d716f5ebae6733af343a348 | [
"MIT"
] | 14 | 2019-11-11T08:47:05.000Z | 2022-01-31T00:38:43.000Z | home/migrations/0002_homepage_info.py | kevswanberg/personal-site | 2a34e8f7ae654f601d716f5ebae6733af343a348 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-08-11 19:46
from django.db import migrations
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='homepage',
name='info',... | 20.904762 | 64 | 0.599089 | 46 | 439 | 5.652174 | 0.782609 | 0.084615 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06051 | 0.284738 | 439 | 20 | 65 | 21.95 | 0.767516 | 0.102506 | 0 | 0 | 1 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.