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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8dee28b68bb22a79f533ac7258316f8f2e256777 | 8,460 | py | Python | sustainbench/datasets/crop_seg_dataset.py | ritviksahajpal/sustainbench | 8f22ce67bda97322c739178d6c0a7a9dc1ded5b6 | [
"MIT"
] | 39 | 2021-09-06T22:31:25.000Z | 2022-03-27T21:02:06.000Z | sustainbench/datasets/crop_seg_dataset.py | ritviksahajpal/sustainbench | 8f22ce67bda97322c739178d6c0a7a9dc1ded5b6 | [
"MIT"
] | 6 | 2021-09-29T23:36:24.000Z | 2022-02-01T16:52:16.000Z | sustainbench/datasets/crop_seg_dataset.py | ritviksahajpal/sustainbench | 8f22ce67bda97322c739178d6c0a7a9dc1ded5b6 | [
"MIT"
] | 9 | 2021-11-11T14:06:48.000Z | 2022-03-28T11:15:24.000Z | from pathlib import Path
import shutil
import pandas as pd
import torch
from torch.utils.data import Dataset
import pickle
import numpy as np
import torchvision.transforms.functional as F
from torchvision import transforms
import tarfile
import datetime
import pytz
from PIL import Image
from tqdm import tqdm
from sklea... | 46.229508 | 170 | 0.647636 | 1,073 | 8,460 | 4.848089 | 0.264678 | 0.017301 | 0.008074 | 0.027682 | 0.261438 | 0.219146 | 0.150711 | 0.112457 | 0.021146 | 0 | 0 | 0.016841 | 0.241962 | 8,460 | 183 | 171 | 46.229508 | 0.794324 | 0.408629 | 0 | 0.044944 | 0 | 0 | 0.110666 | 0.01602 | 0 | 0 | 0.007167 | 0.010929 | 0.011236 | 1 | 0.05618 | false | 0 | 0.213483 | 0 | 0.348315 | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8df603259dd0f4003cca0da4f6ff1f8e4c10b160 | 928 | py | Python | tasks.py | feedyard/bootstrap-aws-roles | 0f9a6ccff4f61f857a2b5fee2d38005b12669f0b | [
"Apache-2.0"
] | null | null | null | tasks.py | feedyard/bootstrap-aws-roles | 0f9a6ccff4f61f857a2b5fee2d38005b12669f0b | [
"Apache-2.0"
] | null | null | null | tasks.py | feedyard/bootstrap-aws-roles | 0f9a6ccff4f61f857a2b5fee2d38005b12669f0b | [
"Apache-2.0"
] | null | null | null | from invoke import task
@task
def init(ctx):
ctx.run("terraform init -backend-config $CIRCLE_WORKING_DIRECTORY/backend.conf")
@task
def test(ctx):
ctx.run("AWS_PROFILE=default rspec spec")
@task
def plan(ctx):
cmd = 'terraform plan ' \
'-var-file=./variables.tfvars'
ctx.run(cmd)
@task
def... | 22.095238 | 105 | 0.628233 | 131 | 928 | 4.366412 | 0.389313 | 0.085664 | 0.078671 | 0.115385 | 0.384615 | 0.384615 | 0.307692 | 0.199301 | 0.199301 | 0 | 0 | 0.008097 | 0.201509 | 928 | 41 | 106 | 22.634146 | 0.763833 | 0 | 0 | 0.433333 | 0 | 0 | 0.441208 | 0.179072 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.033333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8df625fa5d87b917261eaccb3dc54880370c39d8 | 531 | py | Python | backend/milestone/models.py | Tim6FTN/UKS | 3cf19f014cdc7845bf0b808b97c4e05dc49b062e | [
"MIT"
] | 1 | 2021-01-10T12:34:59.000Z | 2021-01-10T12:34:59.000Z | backend/milestone/models.py | Tim6FTN/UKS | 3cf19f014cdc7845bf0b808b97c4e05dc49b062e | [
"MIT"
] | 37 | 2021-01-07T22:31:25.000Z | 2021-02-20T10:59:46.000Z | backend/milestone/models.py | Tim6FTN/UKS | 3cf19f014cdc7845bf0b808b97c4e05dc49b062e | [
"MIT"
] | null | null | null | from django.db import models
from label.models import Label
from project.models import Project
class Milestone(models.Model):
title = models.CharField(max_length=100)
description = models.TextField(default='', blank=True)
start_date = models.DateField(auto_now_add=True)
due_date = models.DateField(nu... | 31.235294 | 81 | 0.745763 | 71 | 531 | 5.43662 | 0.56338 | 0.069948 | 0.098446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.152542 | 531 | 16 | 82 | 33.1875 | 0.851111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 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 |
8dfccfb313ab45f525a37a823f4f98a638303c1f | 1,139 | py | Python | zounds/datasets/test_composite.py | FelixAbrahamsson/zounds | 197c358acf3bea4252cfc2561da70cbe799e2c75 | [
"MIT"
] | 20 | 2016-06-04T05:44:28.000Z | 2021-05-26T02:26:08.000Z | zounds/datasets/test_composite.py | FelixAbrahamsson/zounds | 197c358acf3bea4252cfc2561da70cbe799e2c75 | [
"MIT"
] | 53 | 2016-08-07T15:11:38.000Z | 2019-05-21T15:56:40.000Z | zounds/datasets/test_composite.py | FelixAbrahamsson/zounds | 197c358acf3bea4252cfc2561da70cbe799e2c75 | [
"MIT"
] | 7 | 2016-08-14T15:50:33.000Z | 2020-12-22T13:34:23.000Z | import unittest2
from .predownload import PreDownload
from .composite import CompositeDataset
from zounds.soundfile import AudioMetaData
class DatasetA(object):
def __init__(self):
super(DatasetA, self).__init__()
def __iter__(self):
yield AudioMetaData(uri=PreDownload(b'', 'http://example.co... | 32.542857 | 73 | 0.681299 | 134 | 1,139 | 5.574627 | 0.320896 | 0.117805 | 0.149933 | 0.171352 | 0.527443 | 0.468541 | 0.302544 | 0.302544 | 0.176707 | 0.176707 | 0 | 0.011715 | 0.175593 | 1,139 | 34 | 74 | 33.5 | 0.783813 | 0 | 0 | 0.16 | 0 | 0 | 0.140474 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.16 | 0 | 0.48 | 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 |
8dfde70fb780b2ccc7a84a9428fbf34d5795f5c8 | 1,290 | py | Python | fcivparser.py | maltehillmann/fcivparser | da8fe7db5ff9d5a262243fe4adcf60b6775acbda | [
"MIT"
] | null | null | null | fcivparser.py | maltehillmann/fcivparser | da8fe7db5ff9d5a262243fe4adcf60b6775acbda | [
"MIT"
] | null | null | null | fcivparser.py | maltehillmann/fcivparser | da8fe7db5ff9d5a262243fe4adcf60b6775acbda | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Convert XML with hashes to CSV files
# Thanks to @ddurvaux for sharing!
#
# Contribution: Malte F. Hillmann
#
import xml.etree.ElementTree as etree
import argparse
import base64
import ntpath
# configure arguments accepted by this script
parser = argparse.ArgumentParser(description='Process the X... | 34.864865 | 128 | 0.691473 | 195 | 1,290 | 4.548718 | 0.497436 | 0.028185 | 0.033822 | 0.037204 | 0.114994 | 0.045096 | 0 | 0 | 0 | 0 | 0 | 0.022305 | 0.165891 | 1,290 | 36 | 129 | 35.833333 | 0.802045 | 0.155814 | 0 | 0 | 0 | 0 | 0.238889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c07097a046dec7a9838f80a6a59288f786d1ddd | 2,055 | py | Python | cpdb/twitterbot/tests/test_views.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/twitterbot/tests/test_views.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/twitterbot/tests/test_views.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.urls import reverse
from django.test import override_settings
from rest_framework.test import APITestCase
from rest_framework import status
from robber import expect
from twitterbot.utils.cryptography import get_hash_token
class WebhookViewSetTestCase(APITestCase):
@override_settings(TWITTER_CONSUME... | 46.704545 | 94 | 0.713869 | 271 | 2,055 | 5.169742 | 0.254613 | 0.06995 | 0.034261 | 0.088508 | 0.648108 | 0.648108 | 0.648108 | 0.648108 | 0.648108 | 0.648108 | 0 | 0.018391 | 0.153285 | 2,055 | 43 | 95 | 47.790698 | 0.786782 | 0 | 0 | 0.388889 | 0 | 0 | 0.153771 | 0.052555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.305556 | 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 |
5c08c20aa24bacc82159a6059e25b01858302c05 | 747 | py | Python | src/python/pants/backend/jvm/tasks/jvm_compile/analysis.py | lahosken/pants | 1b0340987c9b2eab9411416803c75b80736716e4 | [
"Apache-2.0"
] | 1 | 2021-11-11T14:04:24.000Z | 2021-11-11T14:04:24.000Z | src/python/pants/backend/jvm/tasks/jvm_compile/analysis.py | lahosken/pants | 1b0340987c9b2eab9411416803c75b80736716e4 | [
"Apache-2.0"
] | 2 | 2016-10-13T21:37:42.000Z | 2018-07-20T20:14:33.000Z | src/python/pants/backend/jvm/tasks/jvm_compile/analysis.py | lahosken/pants | 1b0340987c9b2eab9411416803c75b80736716e4 | [
"Apache-2.0"
] | 1 | 2021-11-11T14:04:12.000Z | 2021-11-11T14:04:12.000Z | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
class Analysis(obje... | 32.478261 | 93 | 0.721553 | 96 | 747 | 5.479167 | 0.677083 | 0.038023 | 0.030418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011551 | 0.188755 | 747 | 22 | 94 | 33.954545 | 0.856436 | 0.485944 | 0 | 0 | 0 | 0 | 0.002747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c0a26658c9f16578d912e56bb4384e1bc27d7da | 2,275 | py | Python | server/tests/api/test_language_api.py | Synergize-Southwest-Detroit/api | 78a1f1da80e3b3e506fbeb84f477bcc2d54377a4 | [
"MIT"
] | 2 | 2015-03-19T14:23:46.000Z | 2015-03-19T14:23:51.000Z | server/tests/api/test_language_api.py | bnotified/api | 02a7eeff19f910b85b0144b6364a7f5ccd80986f | [
"MIT"
] | null | null | null | server/tests/api/test_language_api.py | bnotified/api | 02a7eeff19f910b85b0144b6364a7f5ccd80986f | [
"MIT"
] | null | null | null | import json
from server.tests.helpers import FlaskTestCase, fixtures
class TestLanguageAPI(FlaskTestCase):
@fixtures('base.json')
def test_get_empty_languages(self):
"""Test GET /api/languages endpoint with no data"""
response, data = self.api_request('get', '/api/languages')
assert d... | 33.455882 | 71 | 0.625055 | 270 | 2,275 | 5.103704 | 0.22963 | 0.121916 | 0.108853 | 0.121916 | 0.778665 | 0.719884 | 0.696662 | 0.610305 | 0.5 | 0.423077 | 0 | 0.017009 | 0.250549 | 2,275 | 67 | 72 | 33.955224 | 0.791202 | 0.163077 | 0 | 0.458333 | 0 | 0 | 0.168094 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 1 | 0.145833 | false | 0 | 0.041667 | 0 | 0.208333 | 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 |
5c0cf94299fc4cdc8d2507aa9c86ae06d3cae7f7 | 881 | py | Python | poof/space.py | ahoskins/poof | 5b14af32a3e851443388f2cd958618f9ebab83fa | [
"MIT"
] | 3 | 2015-01-27T06:43:29.000Z | 2021-02-17T10:22:00.000Z | poof/space.py | ahoskins/poof | 5b14af32a3e851443388f2cd958618f9ebab83fa | [
"MIT"
] | 1 | 2016-01-19T20:40:06.000Z | 2016-01-20T02:02:10.000Z | poof/space.py | ahoskins/poof | 5b14af32a3e851443388f2cd958618f9ebab83fa | [
"MIT"
] | 3 | 2015-06-10T20:30:07.000Z | 2021-02-17T15:02:10.000Z | import subprocess
from storage import Storage
'''
Class responsible for creating and controlling the creation of activities
'''
class Space:
'''
Create an instance of the Storage class
'''
def __init__(self):
self.storage = Storage()
'''
Add an space to the JSON
@returns: nothing
'''
def add(self, na... | 16.622642 | 73 | 0.682179 | 119 | 881 | 4.97479 | 0.504202 | 0.067568 | 0.057432 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001412 | 0.196368 | 881 | 53 | 74 | 16.622642 | 0.834746 | 0 | 0 | 0 | 0 | 0 | 0.09176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c0d9e104d12570ce57a7eaedc08b2713dd815fa | 11,020 | py | Python | ostap/io/sqlitedict.py | cpawley/ostap | da561c52c6c62a8586f13bb2fa1a678715966c0b | [
"BSD-3-Clause"
] | null | null | null | ostap/io/sqlitedict.py | cpawley/ostap | da561c52c6c62a8586f13bb2fa1a678715966c0b | [
"BSD-3-Clause"
] | null | null | null | ostap/io/sqlitedict.py | cpawley/ostap | da561c52c6c62a8586f13bb2fa1a678715966c0b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>
# Hacked together from:
# * http://code.activestate.com/recipes/576638-draft-for-an-sqlite3-based-dbm/
# * http://code.activestate.com/recipes/526618/
#
# Use the code in any way you like (at your own risk), i... | 34.223602 | 130 | 0.609074 | 1,406 | 11,020 | 4.694168 | 0.28734 | 0.036364 | 0.014848 | 0.012727 | 0.150152 | 0.109394 | 0.073939 | 0.058939 | 0.058939 | 0.041515 | 0 | 0.004313 | 0.284574 | 11,020 | 321 | 131 | 34.330218 | 0.832826 | 0.101724 | 0 | 0.268421 | 0 | 0 | 0.092687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015789 | 0.047368 | 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 |
5c0f32ecf62f9e3f0df4c8e0563019311bdd5cbf | 1,424 | py | Python | testweixin/testweixin.py | wandou911/RasberryPi_Wechat | ac773544aa8974d17f98aa98bfe7320131ace527 | [
"MIT"
] | 6 | 2018-04-02T09:20:59.000Z | 2021-04-26T15:09:02.000Z | testweixin/testweixin.py | wandou911/RasberryPi_Wechat | ac773544aa8974d17f98aa98bfe7320131ace527 | [
"MIT"
] | null | null | null | testweixin/testweixin.py | wandou911/RasberryPi_Wechat | ac773544aa8974d17f98aa98bfe7320131ace527 | [
"MIT"
] | 6 | 2019-03-22T12:09:38.000Z | 2021-04-26T15:09:05.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import web
import time
import hashlib
from lxml import etree
urls = (
'/weixin','WeixinInterface'
)
def _check_hash(data):
#sha1加密算法
signature=data.signature
timestamp=data.timestamp
nonce=data.nonce
#自己的token
token="your_token" #这里... | 23.344262 | 91 | 0.649579 | 169 | 1,424 | 5.307692 | 0.497041 | 0.031215 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00545 | 0.226826 | 1,424 | 60 | 92 | 23.733333 | 0.809264 | 0.094803 | 0 | 0 | 0 | 0 | 0.071987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | 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 |
5c105e6b24cd1531b89e10f23eead229cca61e7a | 356 | py | Python | app/pokemon/migrations/0002_auto_20201114_2326.py | innacroft/PokemonService | 3dade01c3fe5d5bc56ff631f69a5548fafe4d076 | [
"MIT"
] | null | null | null | app/pokemon/migrations/0002_auto_20201114_2326.py | innacroft/PokemonService | 3dade01c3fe5d5bc56ff631f69a5548fafe4d076 | [
"MIT"
] | null | null | null | app/pokemon/migrations/0002_auto_20201114_2326.py | innacroft/PokemonService | 3dade01c3fe5d5bc56ff631f69a5548fafe4d076 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-11-14 23:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pokemon', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='pokemon',
old_name='deffense',
n... | 18.736842 | 47 | 0.575843 | 37 | 356 | 5.432432 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077236 | 0.308989 | 356 | 18 | 48 | 19.777778 | 0.739837 | 0.126404 | 0 | 0 | 1 | 0 | 0.132686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c166a980a475f15884076b5302bd3f9334237e8 | 578 | py | Python | flask_config.py | will-afs/CooldownManager | 1ad120a617a3cb87803a7e460ac60c99f91b5daa | [
"BSD-3-Clause"
] | 1 | 2022-03-21T12:23:47.000Z | 2022-03-21T12:23:47.000Z | flask_config.py | will-afs/CooldownManager | 1ad120a617a3cb87803a7e460ac60c99f91b5daa | [
"BSD-3-Clause"
] | 1 | 2022-03-31T02:35:54.000Z | 2022-03-31T03:07:32.000Z | flask_config.py | will-afs/CooldownManager | 1ad120a617a3cb87803a7e460ac60c99f91b5daa | [
"BSD-3-Clause"
] | null | null | null | """Flask configuration."""
import os
from dotenv import load_dotenv
from flask import Flask
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, ".env"))
app = Flask(__name__)
class Config:
"""Base config."""
SECRET_KEY = os.environ.get("SECRET_KEY")
class ProductionCon... | 16.514286 | 52 | 0.681661 | 72 | 578 | 5.263889 | 0.458333 | 0.047493 | 0.110818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200692 | 578 | 34 | 53 | 17 | 0.820346 | 0.057093 | 0 | 0.2 | 0 | 0 | 0.046816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.85 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c22cd91573b0de626d370412326b7db6cb869d1 | 3,785 | py | Python | scripts/image_sample_hue.py | Jack000/improved-diffusion | e2abfc8072f9007b558b697b79d2affdae0eca3b | [
"MIT"
] | null | null | null | scripts/image_sample_hue.py | Jack000/improved-diffusion | e2abfc8072f9007b558b697b79d2affdae0eca3b | [
"MIT"
] | null | null | null | scripts/image_sample_hue.py | Jack000/improved-diffusion | e2abfc8072f9007b558b697b79d2affdae0eca3b | [
"MIT"
] | null | null | null | """
Generate a large batch of image samples from a model and save them as a large
numpy array. This can be used to produce samples for FID evaluation.
"""
import argparse
import os
import numpy as np
import torch as th
import torch.distributed as dist
from improved_diffusion import dist_util, logger
from improved_di... | 28.037037 | 88 | 0.6 | 528 | 3,785 | 4.077652 | 0.284091 | 0.00836 | 0.055272 | 0.046447 | 0.127264 | 0.093823 | 0.039944 | 0.039944 | 0.039944 | 0 | 0 | 0.03125 | 0.272919 | 3,785 | 134 | 89 | 28.246269 | 0.75109 | 0.047028 | 0 | 0.067308 | 1 | 0 | 0.059739 | 0.006391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.076923 | 0 | 0.105769 | 0.057692 | 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 |
5c2dff47eae3644b9656cf0ff3a3471cf902819b | 1,285 | py | Python | examples/stickdrive/stickdrive.py | GuidedMower/duino-motor-driver | 172b1db5f8f61f686220da8a2217ab60e120a08e | [
"Apache-2.0"
] | null | null | null | examples/stickdrive/stickdrive.py | GuidedMower/duino-motor-driver | 172b1db5f8f61f686220da8a2217ab60e120a08e | [
"Apache-2.0"
] | null | null | null | examples/stickdrive/stickdrive.py | GuidedMower/duino-motor-driver | 172b1db5f8f61f686220da8a2217ab60e120a08e | [
"Apache-2.0"
] | null | null | null | import time, sys
from stickdrive.input import SixAxisResource
from stickdrive.motor import Driver
from stickdrive.utils import current_milli_time
class App:
def __init__(self):
self.last_time = current_milli_time()
self.driver = Driver(address=0x04)
def run(self):
with SixAxisResourc... | 28.555556 | 91 | 0.573541 | 147 | 1,285 | 4.857143 | 0.442177 | 0.098039 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019906 | 0.335409 | 1,285 | 44 | 92 | 29.204545 | 0.816159 | 0.11284 | 0 | 0 | 0 | 0 | 0.026478 | 0 | 0 | 0 | 0.00353 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
5c2e9bcee230c0776948f0448a28f32ed594c5b2 | 3,602 | py | Python | shorttext/utils/wordembed.py | trendmicro/PyShortTextCategorization | 86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7 | [
"MIT"
] | null | null | null | shorttext/utils/wordembed.py | trendmicro/PyShortTextCategorization | 86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7 | [
"MIT"
] | null | null | null | shorttext/utils/wordembed.py | trendmicro/PyShortTextCategorization | 86d8ad22035243dbeb1c53fe286d6ef8be9a9fd7 | [
"MIT"
] | null | null | null |
import numpy as np
from gensim.models import KeyedVectors
from gensim.models.wrappers import FastText
from gensim.models.poincare import PoincareModel, PoincareKeyedVectors
from shorttext.utils import tokenize, deprecated
def load_word2vec_model(path, binary=True):
""" Load a pre-trained Word2Vec model.
:p... | 34.304762 | 125 | 0.725708 | 472 | 3,602 | 5.491525 | 0.216102 | 0.037037 | 0.021219 | 0.02662 | 0.573302 | 0.48534 | 0.435185 | 0.435185 | 0.435185 | 0.37963 | 0 | 0.004876 | 0.202943 | 3,602 | 104 | 126 | 34.634615 | 0.897945 | 0.605775 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c2ead5a642999d1b685cf2c99ae3e467d5c9398 | 795 | py | Python | examples/simple_example.py | civitaslearning/compago | 4a526457402298b5c0e4f4d503536fd11562b997 | [
"BSD-3-Clause"
] | null | null | null | examples/simple_example.py | civitaslearning/compago | 4a526457402298b5c0e4f4d503536fd11562b997 | [
"BSD-3-Clause"
] | null | null | null | examples/simple_example.py | civitaslearning/compago | 4a526457402298b5c0e4f4d503536fd11562b997 | [
"BSD-3-Clause"
] | null | null | null | # examples/simple_example.py - A simple compago example script.
# To try this example:
# 0. Make sure you have compago installed if you've just checked out
# the sources. See README for details.
# 1. python ./simple_example.py --help
# 2. python ./simple_example.py do_something --help
# 3. python ./simple... | 28.392857 | 94 | 0.710692 | 117 | 795 | 4.769231 | 0.598291 | 0.09319 | 0.107527 | 0.112903 | 0.114695 | 0.114695 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.172327 | 795 | 28 | 95 | 28.392857 | 0.837386 | 0.700629 | 0 | 0 | 0 | 0 | 0.141975 | 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 |
5c33f1e5294af7b7fd9f657d0eec55a7562340b4 | 10,307 | py | Python | mnemon/application/article.py | papagr/mnemon | e51787cea3d0d1a2d5e6b8b02211c2335ff73a11 | [
"BSD-3-Clause"
] | 1 | 2020-11-22T20:38:46.000Z | 2020-11-22T20:38:46.000Z | mnemon/application/article.py | papagr/mnemon | e51787cea3d0d1a2d5e6b8b02211c2335ff73a11 | [
"BSD-3-Clause"
] | null | null | null | mnemon/application/article.py | papagr/mnemon | e51787cea3d0d1a2d5e6b8b02211c2335ff73a11 | [
"BSD-3-Clause"
] | null | null | null | from abc import (
ABCMeta, # @UnusedImport
abstractmethod,
)
from mnemon.model.article import (
NewArticle,
ArticleSource,
ArticleID,
Tag,
)
class ReadArticleService(object):
def __init__(self, article_repository):
self._article_repository = article_repository
def re... | 29.364672 | 79 | 0.606093 | 1,121 | 10,307 | 5.342551 | 0.143622 | 0.101019 | 0.115712 | 0.032727 | 0.463683 | 0.389881 | 0.318417 | 0.268325 | 0.268325 | 0.224244 | 0 | 0.002259 | 0.312894 | 10,307 | 350 | 80 | 29.448571 | 0.843406 | 0.150189 | 0 | 0.341014 | 0 | 0 | 0.011973 | 0 | 0 | 0 | 0 | 0.002857 | 0 | 1 | 0.221198 | false | 0 | 0.009217 | 0.092166 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c3575f9c7a24947e1b47e1cf63ed62bc70e6d98 | 566 | py | Python | roadslink/commands.py | premkanish/rl | d6fc42619e756dcbee0a6003bf976c9b6dbaab9f | [
"MIT"
] | null | null | null | roadslink/commands.py | premkanish/rl | d6fc42619e756dcbee0a6003bf976c9b6dbaab9f | [
"MIT"
] | null | null | null | roadslink/commands.py | premkanish/rl | d6fc42619e756dcbee0a6003bf976c9b6dbaab9f | [
"MIT"
] | null | null | null | import frappe
import click
from frappe.commands import get_site, pass_context
from frappe.exceptions import SiteNotSpecifiedError
@click.command('custom-search-index')
@pass_context
def custom_search_index(context):
from roadslink.search.website_search import build_index_for_all_routes
site = get_site(context)
if... | 20.962963 | 71 | 0.789753 | 75 | 566 | 5.733333 | 0.44 | 0.102326 | 0.118605 | 0.074419 | 0.102326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127208 | 566 | 27 | 72 | 20.962963 | 0.870445 | 0 | 0 | 0 | 0 | 0 | 0.082892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.095238 | 0.238095 | 0 | 0.285714 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5c42fb3ed839ff8205d044728cbe912959a059f6 | 420 | py | Python | strava/api/upload.py | bwilczynski/strava-cli | 54e05663f897bb710e886b4d834eca940b0c4378 | [
"MIT"
] | 15 | 2019-01-24T21:20:13.000Z | 2022-03-16T23:17:43.000Z | strava/api/upload.py | bwilczynski/strava-cli | 54e05663f897bb710e886b4d834eca940b0c4378 | [
"MIT"
] | 7 | 2020-01-10T06:43:29.000Z | 2021-09-23T19:07:20.000Z | strava/api/upload.py | bwilczynski/strava-cli | 54e05663f897bb710e886b4d834eca940b0c4378 | [
"MIT"
] | 10 | 2019-05-09T17:51:16.000Z | 2022-03-16T23:17:56.000Z | from requests import HTTPError
from ._helpers import client, url, json
def post_upload(xargs, filename):
files = {"file": open(filename, "rb")}
response = client.post(url=url("/uploads"), data=xargs, files=files)
try:
return json(response)
except HTTPError:
return response
def get_u... | 23.333333 | 72 | 0.678571 | 54 | 420 | 5.185185 | 0.481481 | 0.1 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195238 | 420 | 17 | 73 | 24.705882 | 0.828402 | 0 | 0 | 0.166667 | 0 | 0 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c4667b5d907d5714c8c73e798dbd59bd7b27ee1 | 5,837 | py | Python | cctbx/development/cns_density_modification.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/development/cns_density_modification.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/development/cns_density_modification.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from libtbx import easy_run, group_args
from iotbx.cns.space_group_symbols import cns_format
import os, shutil, time
def run(params, fo, hl_coeffs):
cur_dir = os.path.abspath(os.path.curdir)
if os.path.exists("tmp_cns"):
shutil.rmtree("tmp_cns")
os.mkdir("tmp_cns")
os.chdir(... | 31.722826 | 85 | 0.635772 | 782 | 5,837 | 4.410486 | 0.254476 | 0.065236 | 0.023195 | 0.052769 | 0.208176 | 0.187591 | 0.131052 | 0.028414 | 0.028414 | 0.028414 | 0 | 0.003858 | 0.111873 | 5,837 | 183 | 86 | 31.896175 | 0.661458 | 0.010108 | 0 | 0.013699 | 0 | 0.006849 | 0.484072 | 0.190963 | 0 | 0 | 0 | 0 | 0.006849 | 0 | null | null | 0 | 0.034247 | null | null | 0.020548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c467b55a6f246789e39f010416600775754c98e | 2,643 | py | Python | diminish/orchestrators/clientOrchestrator.py | developer-foundry/diminish | e8d919a1a8ebc8605f69d00378d2bfaa533731eb | [
"Apache-2.0"
] | 14 | 2020-05-25T09:23:21.000Z | 2021-09-03T17:37:38.000Z | diminish/orchestrators/clientOrchestrator.py | developer-foundry/diminish | e8d919a1a8ebc8605f69d00378d2bfaa533731eb | [
"Apache-2.0"
] | 4 | 2020-05-22T18:20:54.000Z | 2020-11-30T15:54:13.000Z | diminish/orchestrators/clientOrchestrator.py | developer-foundry/diminish | e8d919a1a8ebc8605f69d00378d2bfaa533731eb | [
"Apache-2.0"
] | 2 | 2021-04-13T01:24:12.000Z | 2021-05-26T08:56:06.000Z | import sys
import os
import threading
import logging
import numpy as np
import time
from diminish.signals.inputSignal import InputSignal
from diminish.networking.networkClient import NetworkClient
from common.fifoBuffer import FifoBuffer
class ClientOrchestrator():
"""
ClientOrchestrator is the primary clas... | 31.843373 | 107 | 0.646235 | 305 | 2,643 | 5.586885 | 0.432787 | 0.033451 | 0.025822 | 0.0223 | 0.134977 | 0.134977 | 0.10446 | 0.10446 | 0.10446 | 0.10446 | 0 | 0.001071 | 0.293227 | 2,643 | 82 | 108 | 32.231707 | 0.911135 | 0.514188 | 0 | 0 | 0 | 0 | 0.134255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.36 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c4b70b78be39719e09cb94d15a20437a82d6c61 | 1,499 | py | Python | addWikiManifest.py | glenrobson/iiif-wikidata | 868347cefaaefee48bd0581e360d39e2685461b1 | [
"MIT"
] | null | null | null | addWikiManifest.py | glenrobson/iiif-wikidata | 868347cefaaefee48bd0581e360d39e2685461b1 | [
"MIT"
] | null | null | null | addWikiManifest.py | glenrobson/iiif-wikidata | 868347cefaaefee48bd0581e360d39e2685461b1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import csv
import urllib2
import urllib
if __name__ == "__main__":
if len(sys.argv) == 2:
collection = 'Q21542493'
csvfile = sys.argv[1]
elif len(sys.argv) != 2 and len(sys.argv) != 3:
print ('Usage:\n\taddWikiManifest.py [collection Q id] [csv_out]')
... | 30.591837 | 88 | 0.521681 | 173 | 1,499 | 4.456647 | 0.514451 | 0.054475 | 0.038911 | 0.028534 | 0.090791 | 0.090791 | 0.090791 | 0.090791 | 0.090791 | 0 | 0 | 0.035569 | 0.343562 | 1,499 | 48 | 89 | 31.229167 | 0.747967 | 0.010674 | 0 | 0.04878 | 0 | 0.02439 | 0.332883 | 0.018906 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30898a0a8b60429270062f7a421bc4239b6a6fda | 9,224 | py | Python | tests/tests.py | Dmitriy1594/substringAlgorithms | 08beb9da281096cae945fb299c3d130072281530 | [
"MIT"
] | null | null | null | tests/tests.py | Dmitriy1594/substringAlgorithms | 08beb9da281096cae945fb299c3d130072281530 | [
"MIT"
] | null | null | null | tests/tests.py | Dmitriy1594/substringAlgorithms | 08beb9da281096cae945fb299c3d130072281530 | [
"MIT"
] | null | null | null | import random
from random import choice
from random import randint
import unittest
from src.libs.substrings import *
class TestSubstringMethods(unittest.TestCase):
def _get_data(self, mod=None):
text = ""
sub = ""
methods = [modDirectSearch, kmp, bmx, rabin_karp, aho_find_all]
if m... | 31.37415 | 128 | 0.427147 | 961 | 9,224 | 4.045786 | 0.157128 | 0.026235 | 0.082305 | 0.052469 | 0.677469 | 0.677469 | 0.66358 | 0.663323 | 0.631687 | 0.631687 | 0 | 0.049124 | 0.461513 | 9,224 | 294 | 129 | 31.37415 | 0.733642 | 0.031765 | 0 | 0.688259 | 0 | 0 | 0.086044 | 0.062598 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.032389 | false | 0 | 0.020243 | 0 | 0.064777 | 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 |
308dd0435b1328f4d2bdb20e5855c013305120d9 | 952 | py | Python | setup.py | appressoas/ievv_coderefactor | cc6b19283af88e1f6643db5926e51da06275d590 | [
"MIT"
] | 1 | 2020-11-24T06:05:34.000Z | 2020-11-24T06:05:34.000Z | setup.py | appressoas/ievv_coderefactor | cc6b19283af88e1f6643db5926e51da06275d590 | [
"MIT"
] | null | null | null | setup.py | appressoas/ievv_coderefactor | cc6b19283af88e1f6643db5926e51da06275d590 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='ievv-coderefactor',
description='General purpose code refactor solution.',
version='1.0.0',
author='Appresso AS',
author_email='post@appresso.no',
url='https://github.com/appressoas/ievv_coderefactor',
packages=find_packages(),
i... | 28 | 77 | 0.628151 | 98 | 952 | 5.979592 | 0.765306 | 0.109215 | 0.085324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.241597 | 952 | 33 | 78 | 28.848485 | 0.803324 | 0.063025 | 0 | 0.068966 | 0 | 0 | 0.47191 | 0.029213 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3094a825c922d4e2cdaf1dd63c52012aedee235b | 27,732 | py | Python | ssht00ls/__main__.py | vandenberghinc/ssht00ls | e08081773c8da7dfac0764170bfeacb4bf421ec1 | [
"CNRI-Python"
] | 5 | 2021-02-18T17:46:39.000Z | 2021-12-29T15:48:07.000Z | ssht00ls/__main__.py | vandenberghinc/ssht00ls | e08081773c8da7dfac0764170bfeacb4bf421ec1 | [
"CNRI-Python"
] | null | null | null | ssht00ls/__main__.py | vandenberghinc/ssht00ls | e08081773c8da7dfac0764170bfeacb4bf421ec1 | [
"CNRI-Python"
] | 2 | 2021-03-19T14:06:20.000Z | 2021-09-26T14:08:34.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# imports.
from dev0s.shortcuts import *
dev0s.defaults.insert(dev0s.defaults.source_path(__file__, back=2))
dev0s.env["dev0s.defaults.options.interactive"] = True
dev0s.env["CLI"] = True
dev0s.defaults.options.interactive = True
from ssht00ls.classes.config import *
impo... | 39.730659 | 179 | 0.627722 | 3,341 | 27,732 | 5.183179 | 0.102365 | 0.092337 | 0.057285 | 0.058209 | 0.538719 | 0.416412 | 0.367558 | 0.326096 | 0.31189 | 0.267656 | 0 | 0.010408 | 0.196235 | 27,732 | 697 | 180 | 39.787661 | 0.766487 | 0.060652 | 0 | 0.339246 | 0 | 0.008869 | 0.342795 | 0.012573 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006652 | false | 0.053215 | 0.006652 | 0 | 0.015521 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
309f5c94c560ba060540d3618c5cb9a8f548ee69 | 1,782 | py | Python | people/migrations/0017_auto_20200602_1355.py | giantmade/giant-people | 67acd7cc8fc3649d5935373be15a59aeceb57fdb | [
"MIT"
] | null | null | null | people/migrations/0017_auto_20200602_1355.py | giantmade/giant-people | 67acd7cc8fc3649d5935373be15a59aeceb57fdb | [
"MIT"
] | 5 | 2021-01-15T14:16:26.000Z | 2021-03-24T15:47:04.000Z | people/migrations/0017_auto_20200602_1355.py | giantmade/giant-people | 67acd7cc8fc3649d5935373be15a59aeceb57fdb | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-06-02 13:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('people', '0016_person_organisation_role'),
]
operations = [
migrations.AlterModelOptions(
name... | 33.622642 | 189 | 0.579686 | 173 | 1,782 | 5.791908 | 0.352601 | 0.063872 | 0.05988 | 0.075848 | 0.456088 | 0.397206 | 0.163673 | 0 | 0 | 0 | 0 | 0.022727 | 0.283951 | 1,782 | 52 | 190 | 34.269231 | 0.762539 | 0.025814 | 0 | 0.630435 | 1 | 0 | 0.176471 | 0.016724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.108696 | 0 | 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 |
309fe144ef7d5b54e3f033fcc51bffd5b3691b1d | 2,114 | py | Python | entropy.py | OceanNuclear/Entropy | 1093dcabd6488a5f6182da2d0df35ee45b82e6ea | [
"MIT"
] | null | null | null | entropy.py | OceanNuclear/Entropy | 1093dcabd6488a5f6182da2d0df35ee45b82e6ea | [
"MIT"
] | null | null | null | entropy.py | OceanNuclear/Entropy | 1093dcabd6488a5f6182da2d0df35ee45b82e6ea | [
"MIT"
] | null | null | null | #!/home/oceanw/anaconda3/bin/python3
#Entropy is the measure of surprise, e.g. number of bits required to guess the next word
#This code computes the entropy of a single line txt file input.
#The code below takes a spectrum of counts against channel (counts = how many events with energy E_classmark +/- E_classwidth/2),... | 33.555556 | 212 | 0.697729 | 340 | 2,114 | 4.332353 | 0.429412 | 0.020367 | 0.027155 | 0.014936 | 0.156144 | 0.1222 | 0.1222 | 0.1222 | 0.081466 | 0.081466 | 0 | 0.011699 | 0.150899 | 2,114 | 62 | 213 | 34.096774 | 0.808914 | 0.296121 | 0 | 0.121212 | 0 | 0 | 0.243196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.060606 | 0 | 0.060606 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30a199d01e02fb722f3de8c23d9691cb3725a012 | 13,730 | py | Python | modulo-nic.py | sherpya/modulo-nic | b502d7422c0170fe50aa8c8278924d57a3ce6f86 | [
"BSD-3-Clause"
] | null | null | null | modulo-nic.py | sherpya/modulo-nic | b502d7422c0170fe50aa8c8278924d57a3ce6f86 | [
"BSD-3-Clause"
] | null | null | null | modulo-nic.py | sherpya/modulo-nic | b502d7422c0170fe50aa8c8278924d57a3ce6f86 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ft=python
#
# Modulo Registrazione Domini .it
# Copyright (c) 2011-2015 Gianluigi Tiesi <sherpya@netfarm.it>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condit... | 37.513661 | 97 | 0.534814 | 2,067 | 13,730 | 3.509918 | 0.329463 | 0.003308 | 0.004135 | 0.004411 | 0.151206 | 0.102274 | 0.083529 | 0.05541 | 0.036664 | 0.036664 | 0 | 0.025058 | 0.276256 | 13,730 | 365 | 98 | 37.616438 | 0.705042 | 0.126001 | 0 | 0.094697 | 0 | 0.011364 | 0.19296 | 0.010701 | 0 | 0 | 0 | 0 | 0.003788 | 0 | null | null | 0 | 0.030303 | null | null | 0.007576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30a3cae7c8ea8c00f3350864653ed62022d6824b | 2,867 | py | Python | appserver/flag/models.py | sinag/SWE574-Horuscope | 9725dd356cbfd19f0ce88d4a208c872be765bd88 | [
"MIT"
] | null | null | null | appserver/flag/models.py | sinag/SWE574-Horuscope | 9725dd356cbfd19f0ce88d4a208c872be765bd88 | [
"MIT"
] | null | null | null | appserver/flag/models.py | sinag/SWE574-Horuscope | 9725dd356cbfd19f0ce88d4a208c872be765bd88 | [
"MIT"
] | 1 | 2020-08-07T12:54:51.000Z | 2020-08-07T12:54:51.000Z | import datetime
from django.db import models
from django.db.models.signals import post_save, pre_delete
from django.dispatch import receiver
from activitystream.models import ActivityStream
from instance.models import Instance
from root import settings
from root.settings import SERVER_ADDRESS
"""
Instanc... | 59.729167 | 224 | 0.589118 | 295 | 2,867 | 5.59661 | 0.315254 | 0.077529 | 0.061781 | 0.046033 | 0.563295 | 0.563295 | 0.563295 | 0.526953 | 0.526953 | 0.526953 | 0 | 0.002286 | 0.237182 | 2,867 | 47 | 225 | 61 | 0.752629 | 0 | 0 | 0.242424 | 0 | 0 | 0.24454 | 0.112424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.242424 | 0.030303 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
30a45acfde101ff7d96d5233217a8a54e607b674 | 1,315 | py | Python | keras/datasets/stock.py | Dlyma/keras-plus | 47793d9af6102a518fb3ce7d68774cfff055e1d5 | [
"MIT"
] | 1 | 2015-08-27T10:24:25.000Z | 2015-08-27T10:24:25.000Z | keras/datasets/stock.py | Dlyma/keras-plus | 47793d9af6102a518fb3ce7d68774cfff055e1d5 | [
"MIT"
] | null | null | null | keras/datasets/stock.py | Dlyma/keras-plus | 47793d9af6102a518fb3ce7d68774cfff055e1d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import cPickle
import sys, os
import numpy as np
# written by zhaowuxia @ 2015/5/22
# used for generate datasets for the adding problem
def generate_data(pkl_path, T, norm):
dataset = []
for f in os.listdir(pkl_path):
data = cPickle.load(open(os.path.join(pkl_path, f), 'rb'))
... | 28.586957 | 80 | 0.560456 | 191 | 1,315 | 3.816754 | 0.387435 | 0.048011 | 0.045267 | 0.049383 | 0.065844 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0.030398 | 0.274525 | 1,315 | 45 | 81 | 29.222222 | 0.733753 | 0.108745 | 0 | 0 | 1 | 0 | 0.03691 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.205882 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30a6142c0f9b3ebc7216b17ee9e939921322802b | 2,858 | py | Python | 12. Combinatorics, probability, and other math/Two Egg Proplem.py | Deviloxide/Interview-Cake-Questions | 341447ebf55f9e46ad2149b4d0520b5f77f6d4f8 | [
"MIT"
] | null | null | null | 12. Combinatorics, probability, and other math/Two Egg Proplem.py | Deviloxide/Interview-Cake-Questions | 341447ebf55f9e46ad2149b4d0520b5f77f6d4f8 | [
"MIT"
] | null | null | null | 12. Combinatorics, probability, and other math/Two Egg Proplem.py | Deviloxide/Interview-Cake-Questions | 341447ebf55f9e46ad2149b4d0520b5f77f6d4f8 | [
"MIT"
] | null | null | null | import random
def two_egg_dropper(limit):
total = 0
addition = 0
guess_list = []
steps = 0
final_text = ""
# Generates and sums triangle numbers until it reaches or exceeds the limit
while total <= limit:
addition += 1
total = (addition ** 2 + addition) / 2
... | 38.106667 | 120 | 0.572078 | 368 | 2,858 | 4.288043 | 0.255435 | 0.068441 | 0.045627 | 0.060203 | 0.372624 | 0.299113 | 0.248416 | 0.230038 | 0.230038 | 0.201521 | 0 | 0.015279 | 0.335899 | 2,858 | 74 | 121 | 38.621622 | 0.816122 | 0.151155 | 0 | 0.272727 | 1 | 0 | 0.151748 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.018182 | 0 | 0.054545 | 0.018182 | 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 |
30a8abbc15b67c2f8f15f0d4168f3f61ac8844f5 | 2,617 | py | Python | ptar.py | kernel1994/tool-scripts | 4b412ec72dc7c7d76385b979996bda803947726b | [
"MIT"
] | null | null | null | ptar.py | kernel1994/tool-scripts | 4b412ec72dc7c7d76385b979996bda803947726b | [
"MIT"
] | null | null | null | ptar.py | kernel1994/tool-scripts | 4b412ec72dc7c7d76385b979996bda803947726b | [
"MIT"
] | null | null | null | #!/path/to/anaconda3/bin/python
# Compress files and dirs to .tar.gz, or uncompress .tar.gz file
# TODO:
# 1. Decompression like Extract Here (Smart) in Bandizip
# case 1. When there is only one file in the archive, it is extracted to the current location.
# case 2. When all files in the archive are bundled in a ... | 26.434343 | 118 | 0.597631 | 384 | 2,617 | 3.911458 | 0.304688 | 0.065246 | 0.058589 | 0.02996 | 0.20972 | 0.198402 | 0.109188 | 0.109188 | 0.109188 | 0.071904 | 0 | 0.006853 | 0.275124 | 2,617 | 98 | 119 | 26.704082 | 0.784924 | 0.191823 | 0 | 0.269841 | 0 | 0 | 0.197786 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.063492 | false | 0 | 0.063492 | 0 | 0.126984 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30b01ba3ed20940d961d055e5252c8da2cdc1d01 | 2,574 | py | Python | main.py | Logan-Lin/SLRAnalyzer | deb1703ccadf2bf929495369fd4a63121b315c93 | [
"MIT"
] | 6 | 2018-11-22T06:20:08.000Z | 2020-12-20T12:34:49.000Z | main.py | Logan-Lin/SLRAnalyzer | deb1703ccadf2bf929495369fd4a63121b315c93 | [
"MIT"
] | null | null | null | main.py | Logan-Lin/SLRAnalyzer | deb1703ccadf2bf929495369fd4a63121b315c93 | [
"MIT"
] | 1 | 2021-12-08T07:07:34.000Z | 2021-12-08T07:07:34.000Z | from grammar import Grammar
from SLRAn import SLRAn, str2masks
from LexAn import split_input_string
class Main(SLRAn):
"""
Main class inherited from SLRAn, used for a simple interactive user interface.
"""
def __init__(self, grammar):
SLRAn.__init__(self, grammar)
def control(self):
... | 36.771429 | 96 | 0.500777 | 267 | 2,574 | 4.666667 | 0.329588 | 0.044944 | 0.05297 | 0.110754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01192 | 0.38073 | 2,574 | 69 | 97 | 37.304348 | 0.769762 | 0.041181 | 0 | 0.105263 | 0 | 0 | 0.169205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.052632 | 0 | 0.105263 | 0.403509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30b51e1044a5a2eee1e3352c6c63e6665618a5d6 | 1,535 | py | Python | load_data/loader/text/ENG_sarcasm_reddit_kaggle.py | erickfmm/ML-experiments | b1e81b8eea976efeda6e4dc70af747628a6eb43a | [
"MIT"
] | null | null | null | load_data/loader/text/ENG_sarcasm_reddit_kaggle.py | erickfmm/ML-experiments | b1e81b8eea976efeda6e4dc70af747628a6eb43a | [
"MIT"
] | null | null | null | load_data/loader/text/ENG_sarcasm_reddit_kaggle.py | erickfmm/ML-experiments | b1e81b8eea976efeda6e4dc70af747628a6eb43a | [
"MIT"
] | null | null | null | from load_data.ILoadSupervised import ILoadSupervised
import csv
from os.path import join
__all__ = ["LoadSarcasmRedditKaggle",]
class LoadSarcasmRedditKaggle(ILoadSupervised):
def __init__(self, folderpath="train_data/Folder_NLPEnglish_Dialogs/sarcasm"):
self.folderpath = folderpath
self.classe... | 30.098039 | 117 | 0.542671 | 158 | 1,535 | 5.107595 | 0.386076 | 0.037175 | 0.069393 | 0.024783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.331596 | 1,535 | 50 | 118 | 30.7 | 0.7846 | 0 | 0 | 0 | 0 | 0 | 0.143974 | 0.060586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0.075 | 0.125 | 0.425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30ba2e0652938316d5bd5debe0a59d03d7054813 | 476 | py | Python | tests/main.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | tests/main.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | tests/main.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | import unittest
import os
import sys
path = os.path.dirname(os.path.dirname(__file__))
sys.path.append(path)
def get_test_filename():
file_names = os.listdir(os.getcwd())
return [name for name in file_names if name.startswith('test_')]
def import_test_module(names):
return [__import__(name.split('.')[0... | 19.833333 | 68 | 0.703782 | 69 | 476 | 4.463768 | 0.362319 | 0.045455 | 0.084416 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.163866 | 476 | 24 | 69 | 19.833333 | 0.771357 | 0 | 0 | 0 | 0 | 0 | 0.02935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.375 | 0.0625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30bef6dd020c595db3618916fc88a3880da8e844 | 1,162 | py | Python | tscript.py | sethshill/final | 0ab89f437076a81e5059aa0f6acd2d16c41fd766 | [
"MIT"
] | null | null | null | tscript.py | sethshill/final | 0ab89f437076a81e5059aa0f6acd2d16c41fd766 | [
"MIT"
] | null | null | null | tscript.py | sethshill/final | 0ab89f437076a81e5059aa0f6acd2d16c41fd766 | [
"MIT"
] | null | null | null | # For testing python functions
# Test writing my own animation
from bibliopixel.led import*
from bibliopixel.drivers.APA102 import*
import bibliopixel.colors as colors
from bibliopixel.animation import*
from time import sleep
#### Setup #####
# Global Vars
NUM = 8*8
#create driver for a 8*8 grid, use the size of your... | 31.405405 | 101 | 0.709983 | 178 | 1,162 | 4.516854 | 0.511236 | 0.043532 | 0.037313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033639 | 0.155766 | 1,162 | 36 | 102 | 32.277778 | 0.785933 | 0.333907 | 0 | 0 | 0 | 0 | 0.005298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30c7448616d9ddd4b3611d74a0d412593b7b339d | 404 | py | Python | datastructure/sorting/quicksort.py | HanyuXi/algorithm | e74426b9d76727cdfb154a8babc69f1946ebea11 | [
"Unlicense"
] | null | null | null | datastructure/sorting/quicksort.py | HanyuXi/algorithm | e74426b9d76727cdfb154a8babc69f1946ebea11 | [
"Unlicense"
] | null | null | null | datastructure/sorting/quicksort.py | HanyuXi/algorithm | e74426b9d76727cdfb154a8babc69f1946ebea11 | [
"Unlicense"
] | null | null | null | def partition(arr, low, high):
i = low -1
pivot = arr[high]
for j in range(low, high):
if arr[j] < pivot:
i+=1
arr[i], arr[j] =arr[j], arr[i]
arr[i+1], arr[high] = arr[high], arr[i+1]
return i+1
def quicksort(arr, low,high):
if low < high:
pi = partition(... | 25.25 | 45 | 0.512376 | 67 | 404 | 3.089552 | 0.238806 | 0.169082 | 0.144928 | 0.183575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025547 | 0.321782 | 404 | 15 | 46 | 26.933333 | 0.729927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.214286 | 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 |
30c8c3b9331955dab94a1ccb19079f940d2db448 | 4,354 | py | Python | web_commands/reverseimage.py | SalamiArmy/InfoBoet | 71df751e50b4b458db44444ef7d6dfe6f68e648f | [
"Apache-2.0"
] | 1 | 2021-07-14T21:48:48.000Z | 2021-07-14T21:48:48.000Z | web_commands/reverseimage.py | SalamiArmy/InfoBoet | 71df751e50b4b458db44444ef7d6dfe6f68e648f | [
"Apache-2.0"
] | 6 | 2017-11-27T06:04:34.000Z | 2020-02-19T05:15:02.000Z | web_commands/reverseimage.py | SalamiArmy/InfoBoet | 71df751e50b4b458db44444ef7d6dfe6f68e648f | [
"Apache-2.0"
] | 2 | 2017-08-16T20:26:02.000Z | 2020-11-10T18:44:11.000Z | # coding=utf-8
import json
import urllib
import io
from google.appengine.api import urlfetch
def run(keyConfig, message, totalResults=1):
requestText = message.strip()
print 'request url: ' + requestText
return 'I see ' + vision_web_entities(requestText, keyConfig)
def vision_web_entities(image_link, ke... | 45.831579 | 112 | 0.518604 | 298 | 4,354 | 7.52349 | 0.33557 | 0.062444 | 0.037467 | 0.028546 | 0.074933 | 0.048171 | 0 | 0 | 0 | 0 | 0 | 0.003332 | 0.379651 | 4,354 | 95 | 113 | 45.831579 | 0.826731 | 0.018833 | 0 | 0.090909 | 0 | 0 | 0.172171 | 0.030452 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30c9c0153623159d42ebcf8ff7f16801cfaa001d | 2,479 | py | Python | PyQtArgs/qtArgs.py | gabrielfedel/scanGui | f80288ff8156972a0a633a4e9b551143a1953542 | [
"0BSD"
] | 1 | 2020-12-21T17:59:09.000Z | 2020-12-21T17:59:09.000Z | PyQtArgs/qtArgs.py | gabrielfedel/scanGui | f80288ff8156972a0a633a4e9b551143a1953542 | [
"0BSD"
] | null | null | null | PyQtArgs/qtArgs.py | gabrielfedel/scanGui | f80288ff8156972a0a633a4e9b551143a1953542 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3.4
import json
from PyQt5.QtWidgets import QTableWidgetItem
class qtArgs():
'''Load and save arguments from a qt window to json files
The idea is to provide a generic way to save information from
diferents widgets and a way to recover this information correctly'''
def __init__(s... | 36.455882 | 84 | 0.554256 | 299 | 2,479 | 4.548495 | 0.381271 | 0.029412 | 0.033088 | 0.033824 | 0.039706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003111 | 0.351755 | 2,479 | 67 | 85 | 37 | 0.843186 | 0.304155 | 0 | 0.057143 | 0 | 0 | 0.016548 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.114286 | false | 0 | 0.057143 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30d70f59b2ba3ea0d3b314909a6bff1b497b8c1c | 986 | py | Python | pipeline/util.py | edublancas/pipeline | 5bef04d77fdadc1dc4ec22b9b346f0a062cca1ce | [
"MIT"
] | null | null | null | pipeline/util.py | edublancas/pipeline | 5bef04d77fdadc1dc4ec22b9b346f0a062cca1ce | [
"MIT"
] | 12 | 2016-05-25T19:54:53.000Z | 2016-12-28T06:12:32.000Z | pipeline/util.py | edublancas/pipeline | 5bef04d77fdadc1dc4ec22b9b346f0a062cca1ce | [
"MIT"
] | null | null | null | import hashlib
import re
def class_name(obj):
class_name = str(type(obj))
class_name = re.search(".*'(.+?)'.*", class_name).group(1)
return class_name
def _can_iterate(obj):
import types
import collections
is_string = isinstance(obj, types.StringTypes)
is_iterable = isinstance(obj, coll... | 27.388889 | 90 | 0.700811 | 141 | 986 | 4.801418 | 0.539007 | 0.06647 | 0.035451 | 0.085672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022613 | 0.192698 | 986 | 35 | 91 | 28.171429 | 0.827889 | 0.406694 | 0 | 0 | 0 | 0 | 0.019678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30db1784a648a4dc56cceab59245ca543db7d49f | 874 | py | Python | annsa/tests/test_readspectra.py | arfc/annsa | e6791d1c72bbdd3a792080ff261568813375f3a3 | [
"BSD-3-Clause"
] | 7 | 2019-03-11T12:34:21.000Z | 2021-05-07T14:49:23.000Z | annsa/tests/test_readspectra.py | arfc/annsa | e6791d1c72bbdd3a792080ff261568813375f3a3 | [
"BSD-3-Clause"
] | 67 | 2018-08-20T21:49:09.000Z | 2019-12-04T17:52:03.000Z | annsa/tests/test_readspectra.py | kamuda1/annsa | 2865466e552a81672687025e24c53857123fb379 | [
"BSD-3-Clause"
] | 6 | 2018-10-25T17:41:25.000Z | 2020-12-26T18:09:53.000Z | import os
from numpy import load
from annsa.annsa import read_spectrum
def test_read_spectrum_rocky_flats():
truedata_filename = os.path.join(os.path.dirname(__file__), './data_folder/rocky_flats.npy')
true_spectrum = load(truedata_filename)
annsa_data_filename = os.path.join(os.path.dirname(__file__), '... | 39.727273 | 106 | 0.776888 | 120 | 874 | 5.191667 | 0.241667 | 0.077047 | 0.089888 | 0.11557 | 0.786517 | 0.786517 | 0.677368 | 0.677368 | 0.532905 | 0.532905 | 0 | 0 | 0.110984 | 874 | 21 | 107 | 41.619048 | 0.801802 | 0 | 0 | 0.266667 | 0 | 0 | 0.15103 | 0.15103 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.333333 | 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 |
30e5e8e66ac7a97b6df08b93a02b86c0c4a859e9 | 287 | py | Python | app/res/language/chinese.py | HsOjo/QiniuSyncer | 92e21179cd97ef1b5baf294d04dbfb7ce3db7aa9 | [
"MIT"
] | null | null | null | app/res/language/chinese.py | HsOjo/QiniuSyncer | 92e21179cd97ef1b5baf294d04dbfb7ce3db7aa9 | [
"MIT"
] | null | null | null | app/res/language/chinese.py | HsOjo/QiniuSyncer | 92e21179cd97ef1b5baf294d04dbfb7ce3db7aa9 | [
"MIT"
] | null | null | null | from .english import English
class Chinese(English):
l_this = '简体中文'
unknown = '未知内容: (%s)'
cancel = '取消'
ok = '确定'
none = '无'
l_access_key = '访问密钥'
l_secret_key = '密钥'
l_bucket = '存储空间'
l_sync_dir = '同步目录'
l_progress = '进度'
pb_sync = '同步'
| 16.882353 | 28 | 0.554007 | 40 | 287 | 3.725 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303136 | 287 | 16 | 29 | 17.9375 | 0.745 | 0 | 0 | 0 | 0 | 0 | 0.12892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 |
30e93f16da422027e848a84c6b595d419d2f26c7 | 804 | py | Python | setup.py | Nclose-ZA/elastalert_hive_alerter | 26c06fd8dd52b4ca1efe8ddeb438ca43e6377bbc | [
"Apache-2.0"
] | 48 | 2017-08-28T18:57:03.000Z | 2022-02-24T17:18:41.000Z | setup.py | Nclose-ZA/elastalert_hive_alerter | 26c06fd8dd52b4ca1efe8ddeb438ca43e6377bbc | [
"Apache-2.0"
] | 10 | 2018-09-11T22:10:12.000Z | 2021-04-12T13:25:57.000Z | setup.py | Nclose-ZA/elastalert_hive_alerter | 26c06fd8dd52b4ca1efe8ddeb438ca43e6377bbc | [
"Apache-2.0"
] | 14 | 2017-10-31T13:57:58.000Z | 2021-02-26T16:42:37.000Z | from setuptools import setup
setup(
name='elastalert_hive_alerter',
version='1.1.0',
description='Elastalert alerter which creates TheHive alerts & enhancement which can suppress alerts',
url='https://github.com/Nclose-ZA/elastalert_hive_alerter',
author='Daniel Browne',
author_emai... | 36.545455 | 108 | 0.65796 | 82 | 804 | 6.317073 | 0.695122 | 0.081081 | 0.121622 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.216418 | 804 | 21 | 109 | 38.285714 | 0.803175 | 0 | 0 | 0 | 0 | 0 | 0.54602 | 0.087065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30ee087a206fd3705f4a7a120dc1175f9ffce768 | 43,540 | py | Python | script/scienti/scienti/spiders/handlers.py | leiverandres/grupvis-bk | 0f76439c163f4f9c55469fa9a6f70635549c9da9 | [
"Apache-2.0"
] | null | null | null | script/scienti/scienti/spiders/handlers.py | leiverandres/grupvis-bk | 0f76439c163f4f9c55469fa9a6f70635549c9da9 | [
"Apache-2.0"
] | 24 | 2020-03-24T16:28:01.000Z | 2022-03-08T22:54:26.000Z | script/scienti/scienti/spiders/handlers.py | leiverandres/grupvis-bk | 0f76439c163f4f9c55469fa9a6f70635549c9da9 | [
"Apache-2.0"
] | null | null | null | import re
def articulos_publicados(unprocessed_data):
'''
Table name in gruolac: "Artículos publicados"
Products table index: 1
'''
mixed_data_regex = re.compile(
r'^(?P<country>[\wáéíóúñÁÉÍÓÚÑ ]+), ?(?P<publisher>[\wáéíóúñÁÉÍÓÚÑ:.\-()\'"_ ]+) ?ISSN: (?P<issn>\d{4}-\d{3}[\dx00X]|\d+)?, ?(?... | 43.409771 | 311 | 0.616238 | 5,250 | 43,540 | 4.917333 | 0.074286 | 0.116207 | 0.052371 | 0.033584 | 0.724667 | 0.701077 | 0.650449 | 0.62194 | 0.601371 | 0.588007 | 0 | 0.009826 | 0.181879 | 43,540 | 1,002 | 312 | 43.453094 | 0.714859 | 0.05317 | 0 | 0.63494 | 0 | 0.021687 | 0.300789 | 0.09006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045783 | false | 0 | 0.001205 | 0 | 0.092771 | 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 |
30fb85e811c4b80778c10df3379ac8381236e089 | 9,236 | py | Python | CricketNotifier_Linux.py | sammy1881/CricketNotifier | b430a58df09d423f9b502c2e5b5573c1002c52aa | [
"MIT"
] | null | null | null | CricketNotifier_Linux.py | sammy1881/CricketNotifier | b430a58df09d423f9b502c2e5b5573c1002c52aa | [
"MIT"
] | null | null | null | CricketNotifier_Linux.py | sammy1881/CricketNotifier | b430a58df09d423f9b502c2e5b5573c1002c52aa | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding: utf-8
import getpass
import os
import lxml
from crontab import CronTab
from bs4 import BeautifulSoup as bsoup
import urllib2,cookielib
from urllib2 import urlopen
import requests as rq
from xml.dom.minidom import parse, parseString
import sys
from math import ceil
from sys import argv
import... | 43.772512 | 159 | 0.59463 | 1,158 | 9,236 | 4.57513 | 0.222798 | 0.0302 | 0.03171 | 0.02416 | 0.451869 | 0.360325 | 0.30068 | 0.257456 | 0.200831 | 0.200831 | 0 | 0.011807 | 0.275552 | 9,236 | 210 | 160 | 43.980952 | 0.780003 | 0.07395 | 0 | 0.433862 | 0 | 0 | 0.18332 | 0.013354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.10582 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a501f218c5b5d5d571241867d9a6978b0559dc02 | 640 | py | Python | 06-Advanced_Python/60-Closure.py | ericson14/Small_project | dd88b9a5619d38fb8d236c932ffa8429d24b28ae | [
"MIT"
] | null | null | null | 06-Advanced_Python/60-Closure.py | ericson14/Small_project | dd88b9a5619d38fb8d236c932ffa8429d24b28ae | [
"MIT"
] | null | null | null | 06-Advanced_Python/60-Closure.py | ericson14/Small_project | dd88b9a5619d38fb8d236c932ffa8429d24b28ae | [
"MIT"
] | null | null | null | def line(a, b):
def para(x):
return a * x + b
return para
def count(x=0):
def incre():
nonlocal x
x += 1
return x
return incre
def my_avg():
data = list()
def add(num):
data.append(num)
return sum(data)/len(data)
return add
if __name__ =... | 17.777778 | 45 | 0.49375 | 98 | 640 | 3.122449 | 0.418367 | 0.068627 | 0.03268 | 0.045752 | 0.104575 | 0.104575 | 0.104575 | 0 | 0 | 0 | 0 | 0.066826 | 0.345313 | 640 | 35 | 46 | 18.285714 | 0.663484 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.035714 | 0.428571 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a5035056523287d26a5ec2d14880574e61b31f48 | 660 | py | Python | tests/browser_anonymous.py | itmeawanish/OrderPortal | 9d0e1cbf61ceffe8f72d8e935da112171ab725a1 | [
"MIT"
] | 2 | 2020-12-24T21:04:30.000Z | 2021-12-14T17:09:39.000Z | tests/browser_anonymous.py | itmeawanish/OrderPortal | 9d0e1cbf61ceffe8f72d8e935da112171ab725a1 | [
"MIT"
] | 474 | 2019-11-05T12:38:14.000Z | 2022-03-30T12:55:26.000Z | tests/browser_anonymous.py | pekrau/Anubis | 32290f243a12f37c08f2b28a189011e98ac6e709 | [
"MIT"
] | null | null | null | "Test the web site pages using Selenium. Not logged in."
import unittest
import selenium
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
import utils
class Homepage(utils.BrowserTestCase):
"Test the home page."
def test_home(self):
"Tes... | 25.384615 | 68 | 0.719697 | 85 | 660 | 5.458824 | 0.6 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187879 | 660 | 25 | 69 | 26.4 | 0.865672 | 0.283333 | 0 | 0 | 0 | 0 | 0.268977 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a504b3f69ab9a318670705edd743a34452a08de9 | 3,065 | py | Python | BirdSongToolbox/test/test_preprocess.py | Darilbii/BirdSongToolbox | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | [
"Apache-2.0"
] | 3 | 2021-08-03T00:03:37.000Z | 2021-09-25T04:37:52.000Z | BirdSongToolbox/test/test_preprocess.py | Darilbii/BirdSongToolbox | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | [
"Apache-2.0"
] | 1 | 2021-08-08T11:04:36.000Z | 2021-08-08T11:04:36.000Z | BirdSongToolbox/test/test_preprocess.py | Darilbii/BirdSongToolbox | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | [
"Apache-2.0"
] | null | null | null | import pytest
from BirdSongToolbox.file_utility_functions import _load_numpy_data, _load_pckl_data
from BirdSongToolbox.preprocess import common_average_reference_array, common_average_reference, bandpass_filter, \
bandpass_filter_array_mne, bandpass_filter_array_ndsp, bandpass_filter_epochs, multi_bpf_epochs, hilb... | 33.315217 | 115 | 0.712561 | 459 | 3,065 | 4.374728 | 0.169935 | 0.124502 | 0.126992 | 0.098606 | 0.605578 | 0.575199 | 0.549801 | 0.532869 | 0.434761 | 0.434761 | 0 | 0.033307 | 0.186949 | 3,065 | 91 | 116 | 33.681319 | 0.772472 | 0 | 0 | 0.477612 | 0 | 0 | 0.025809 | 0.007841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164179 | false | 0.164179 | 0.044776 | 0.029851 | 0.253731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a509b6802483b58d81b4ea5632a1e92fca4a1398 | 780 | py | Python | problem_solving/monotone_incr_digits.py | umitkaanusta/stuff-im-learning | 9d10f681ad49d6e598ef90fdc3a16ed8f2809bbc | [
"MIT"
] | 1 | 2021-06-23T17:23:27.000Z | 2021-06-23T17:23:27.000Z | problem_solving/monotone_incr_digits.py | umitkaanusta/stuff-im-learning | 9d10f681ad49d6e598ef90fdc3a16ed8f2809bbc | [
"MIT"
] | null | null | null | problem_solving/monotone_incr_digits.py | umitkaanusta/stuff-im-learning | 9d10f681ad49d6e598ef90fdc3a16ed8f2809bbc | [
"MIT"
] | null | null | null | class Solution:
def monotoneIncreasingDigits(self, n: int) -> int:
if n < 10:
return n
break_point = None
digits = [int(el) for el in str(n)]
for i in range(len(digits) - 1):
if digits[i] > digits[i + 1]:
break_point = i
break
... | 35.454545 | 78 | 0.519231 | 106 | 780 | 3.754717 | 0.396226 | 0.201005 | 0.110553 | 0.128141 | 0.213568 | 0.125628 | 0.125628 | 0 | 0 | 0 | 0 | 0.024896 | 0.382051 | 780 | 21 | 79 | 37.142857 | 0.80083 | 0.161538 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a50f5d4a38943894418d4ee1da18c716c087207d | 570 | py | Python | Image_Encryption/msg.py | Boyne272/Image_Encryption | 5758bae350007e0fd870656ac469f05ef7bb8c97 | [
"MIT"
] | null | null | null | Image_Encryption/msg.py | Boyne272/Image_Encryption | 5758bae350007e0fd870656ac469f05ef7bb8c97 | [
"MIT"
] | null | null | null | Image_Encryption/msg.py | Boyne272/Image_Encryption | 5758bae350007e0fd870656ac469f05ef7bb8c97 | [
"MIT"
] | null | null | null | """Class for handling strings"""
def str2bin(msg):
"""Convert a binary string into a 16 bit binary message."""
assert isinstance(msg, bytes), 'must give a byte obj'
return ''.join([bin(c)[2:].zfill(16) for c in msg]).encode()
def bin2str(binary):
"""Convert biary 16 bit binary message into a string ... | 35.625 | 69 | 0.626316 | 89 | 570 | 4.011236 | 0.47191 | 0.042017 | 0.061625 | 0.10084 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0.044843 | 0.217544 | 570 | 15 | 70 | 38 | 0.755605 | 0.245614 | 0 | 0 | 0 | 0 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.25 | false | 0 | 0 | 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 |
a510f2871a204cb2ef3d01aaf34539d9d8ac0823 | 1,903 | py | Python | calvin/actorstore/systemactors/web/Pushbullet.py | gabrielcercel/calvin-base | c0315f100643230d65aed1745e1c22df3e7a7c2c | [
"Apache-2.0"
] | 334 | 2015-06-04T15:14:28.000Z | 2022-02-09T11:14:17.000Z | calvin/actorstore/systemactors/web/Pushbullet.py | gabrielcercel/calvin-base | c0315f100643230d65aed1745e1c22df3e7a7c2c | [
"Apache-2.0"
] | 89 | 2015-06-13T19:15:35.000Z | 2019-12-03T19:23:20.000Z | calvin/actorstore/systemactors/web/Pushbullet.py | gabrielcercel/calvin-base | c0315f100643230d65aed1745e1c22df3e7a7c2c | [
"Apache-2.0"
] | 112 | 2015-06-06T19:16:54.000Z | 2020-10-19T01:27:55.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Ericsson AB
#
# 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 ... | 27.985294 | 114 | 0.665791 | 244 | 1,903 | 5.098361 | 0.483607 | 0.048232 | 0.036174 | 0.057878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006016 | 0.213873 | 1,903 | 67 | 115 | 28.402985 | 0.825535 | 0.36206 | 0 | 0.129032 | 0 | 0 | 0.152082 | 0.068819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.064516 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a517779869330cbc8ae2aa37181dcbabd5a2f481 | 5,174 | py | Python | TEP-IFPI-2017_8-master/django-api-atv1-master/core/views.py | danieldsf/ads-activities | 3da8168f685dfdbe146e20023fbdaefd46c21b54 | [
"Apache-2.0"
] | 1 | 2021-08-19T12:13:21.000Z | 2021-08-19T12:13:21.000Z | TEP-IFPI-2017_8-master/django-api-atv1-master/core/views.py | danieldsf/ads-activities | 3da8168f685dfdbe146e20023fbdaefd46c21b54 | [
"Apache-2.0"
] | null | null | null | TEP-IFPI-2017_8-master/django-api-atv1-master/core/views.py | danieldsf/ads-activities | 3da8168f685dfdbe146e20023fbdaefd46c21b54 | [
"Apache-2.0"
] | null | null | null | import json, os
from django.http import JsonResponse
from django.core import serializers
from django.conf import settings
from django.db import transaction
from rest_framework import generics,viewsets,status
from rest_framework.response import Response
from rest_framework.reverse import reverse
from .models import *
fr... | 32.746835 | 87 | 0.711055 | 547 | 5,174 | 6.612431 | 0.244973 | 0.055294 | 0.088471 | 0.110589 | 0.390932 | 0.384573 | 0.328449 | 0.27039 | 0.236384 | 0.194913 | 0 | 0.001427 | 0.187089 | 5,174 | 158 | 87 | 32.746835 | 0.858535 | 0.012563 | 0 | 0.336 | 0 | 0 | 0.065869 | 0.009018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.096 | 0.008 | 0.768 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb472aed37a5e5eebb37728139c90ca28cb45473 | 490 | py | Python | payonline/fields/models.py | akadan47/django-payonline | 3e94ef4052b11aae7e647177e50d32e36449cbc0 | [
"0BSD"
] | 1 | 2015-05-14T19:40:16.000Z | 2015-05-14T19:40:16.000Z | payonline/fields/models.py | trilan/django-payonline | 3e94ef4052b11aae7e647177e50d32e36449cbc0 | [
"0BSD"
] | 3 | 2020-02-11T21:50:22.000Z | 2021-06-10T17:30:48.000Z | payonline/fields/models.py | akadan47/django-payonline | 3e94ef4052b11aae7e647177e50d32e36449cbc0 | [
"0BSD"
] | 3 | 2015-12-20T04:12:18.000Z | 2019-11-13T07:19:28.000Z | from django.db import models
from . import forms
class UTCDateTimeField(models.DateTimeField):
def formfield(self, **kwargs):
defaults = {'form_class': forms.UTCDateTimeField}
defaults.update(kwargs)
return super(UTCDateTimeField, self).formfield(**kwargs)
def south_field_triple(self... | 30.625 | 70 | 0.708163 | 52 | 490 | 6.615385 | 0.480769 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 490 | 15 | 71 | 32.666667 | 0.870886 | 0 | 0 | 0 | 0 | 0 | 0.095918 | 0.07551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb48e1f03a0c5ab051ef7e527f8f78a7ce118487 | 536 | py | Python | seapy/excitations/__init__.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 8 | 2015-07-02T13:34:06.000Z | 2021-05-17T21:34:07.000Z | seapy/excitations/__init__.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 2 | 2015-11-09T17:16:07.000Z | 2020-02-19T14:00:20.000Z | seapy/excitations/__init__.py | FRidh/seapy | de63acdb3722c2558fc1ad1e1eca92abdd027932 | [
"BSD-3-Clause"
] | 2 | 2021-02-03T08:56:10.000Z | 2022-01-22T02:21:43.000Z | """
Excitations
===========
.. inheritance-diagram:: seapy.excitations.excitation
.. automodule:: seapy.excitations.excitation
.. automodule:: seapy.excitations.excitationpoint
"""
# from .excitationrain import ExcitationRain
from .excitationpoint import (
ExcitationPointForce,
ExcitationPointMoment,
E... | 17.866667 | 74 | 0.733209 | 48 | 536 | 8.083333 | 0.604167 | 0.123711 | 0.134021 | 0.185567 | 0.226804 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0.004338 | 0.139925 | 536 | 29 | 75 | 18.482759 | 0.83731 | 0.408582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
eb49a22c12fe775d96e2d8f25bfbb4bcff74782b | 426 | py | Python | chapter_10/find-black-pieces.py | vizcacha/practicalcv | 6bd8170bbb7325585811938fd35069f5e1b5605e | [
"MIT"
] | null | null | null | chapter_10/find-black-pieces.py | vizcacha/practicalcv | 6bd8170bbb7325585811938fd35069f5e1b5605e | [
"MIT"
] | null | null | null | chapter_10/find-black-pieces.py | vizcacha/practicalcv | 6bd8170bbb7325585811938fd35069f5e1b5605e | [
"MIT"
] | null | null | null | from SimpleCV import Image
import time
# Get the template and image
goBoard = Image('go.png')
black = Image('go-black.png')
black.show()
time.sleep(3)
goBoard.show()
time.sleep(3)
# Find the matches and draw them
matches = goBoard.findTemplate(black)
matches.draw()
# Show the board with matches print the number
goB... | 18.521739 | 46 | 0.732394 | 66 | 426 | 4.727273 | 0.469697 | 0.086538 | 0.096154 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.14554 | 426 | 23 | 47 | 18.521739 | 0.846154 | 0.316901 | 0 | 0.384615 | 0 | 0 | 0.114983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb53c8dffb56a0f27c616683ecb7dde540057a49 | 480 | py | Python | python_client/client_cal.py | slaclab/pabv_control | 329193bfe219d3472d9d9ab9e9b28a18ff341c2c | [
"BSD-3-Clause"
] | 2 | 2020-04-17T22:25:47.000Z | 2021-06-05T07:44:26.000Z | python_client/client_cal.py | slaclab/pabv_control | 329193bfe219d3472d9d9ab9e9b28a18ff341c2c | [
"BSD-3-Clause"
] | 85 | 2020-04-24T14:55:52.000Z | 2020-09-13T16:36:21.000Z | python_client/client_cal.py | slaclab/pabv_control | 329193bfe219d3472d9d9ab9e9b28a18ff341c2c | [
"BSD-3-Clause"
] | 6 | 2020-04-24T05:21:41.000Z | 2020-12-12T23:25:52.000Z |
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import control_gui
import ambu_control
if sys.platform == 'linux':
ambu = ambu_control.AmbuControl("/dev/ttyACM0",convert=convert,adjust=adjust)
else:
ambu = ambu_control.AmbuControl("COM4",convert=convert,a... | 19.2 | 81 | 0.75 | 64 | 480 | 5.53125 | 0.484375 | 0.076271 | 0.084746 | 0.146893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011962 | 0.129167 | 480 | 24 | 82 | 20 | 0.834928 | 0 | 0 | 0 | 0 | 0 | 0.043933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
eb58de2b71d4c97087b0a5795139cbecd939bb87 | 861 | py | Python | tests/test_post_detail.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 11 | 2018-12-23T15:58:35.000Z | 2021-10-04T12:14:46.000Z | tests/test_post_detail.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 9 | 2018-11-18T12:12:29.000Z | 2022-02-27T09:51:36.000Z | tests/test_post_detail.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 12 | 2018-11-17T15:13:09.000Z | 2020-05-02T00:10:07.000Z | import pytest
from django.urls import reverse
class TestPostDetail:
pytestmark = pytest.mark.django_db
def test_get_post_detail(self, client, post):
slugs = {"blog_slug": post.blog.slug, "slug": post.slug}
detail_url = reverse("cast:post_detail", kwargs=slugs)
r = client.get(detail_u... | 29.689655 | 64 | 0.650407 | 118 | 861 | 4.559322 | 0.330508 | 0.074349 | 0.037175 | 0.052045 | 0.687732 | 0.624535 | 0.624535 | 0.624535 | 0.624535 | 0.624535 | 0 | 0.012232 | 0.240418 | 861 | 28 | 65 | 30.75 | 0.810398 | 0 | 0 | 0.5 | 0 | 0 | 0.106853 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
eb5f46b5d2e7c87e8a6151537d3c290e23738f21 | 11,032 | py | Python | vision/cube.py | JDownloader/GEL-3014_Design3 | dea01245592c97f73e6a78426270d91ade5e25c7 | [
"MIT"
] | null | null | null | vision/cube.py | JDownloader/GEL-3014_Design3 | dea01245592c97f73e6a78426270d91ade5e25c7 | [
"MIT"
] | null | null | null | vision/cube.py | JDownloader/GEL-3014_Design3 | dea01245592c97f73e6a78426270d91ade5e25c7 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
RANGES_FOR_COLOR_FILTER = {'red': [([169, 73, 92], [179, 255, 255]), ([0, 73, 92], [2, 255, 255])],
'green': [([30, 110, 110], [50, 255, 255])],
'blue': [([95, 80, 80], [115, 255, 255])],
'yellow': [([22, 130... | 44.663968 | 145 | 0.56599 | 1,478 | 11,032 | 3.976996 | 0.156292 | 0.045253 | 0.016332 | 0.022116 | 0.406431 | 0.325961 | 0.25723 | 0.213848 | 0.171827 | 0.146989 | 0 | 0.101673 | 0.295685 | 11,032 | 246 | 146 | 44.845528 | 0.654826 | 0.011331 | 0 | 0.144928 | 0 | 0 | 0.011559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014493 | null | null | 0.004831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb650fe423906b168821738f462720541e0ee061 | 1,848 | py | Python | all_tests/ut16.py | shushantkumar/ci_edit_final | 3b13c7a39b2112ed8daaa70bc4f0f50d67909494 | [
"Apache-2.0"
] | null | null | null | all_tests/ut16.py | shushantkumar/ci_edit_final | 3b13c7a39b2112ed8daaa70bc4f0f50d67909494 | [
"Apache-2.0"
] | null | null | null | all_tests/ut16.py | shushantkumar/ci_edit_final | 3b13c7a39b2112ed8daaa70bc4f0f50d67909494 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import curses
import os
import sys
from all_tests.curses_util import *
import all_tests.ci_program
import all_tests.fake_curses_testing
CTRL_X = b'^X'
kTestFile = u'#all_testslication_test_file_with_unlikely_f... | 31.862069 | 71 | 0.524351 | 218 | 1,848 | 4.266055 | 0.325688 | 0.24086 | 0.091398 | 0.096774 | 0.335484 | 0.206452 | 0.113978 | 0.113978 | 0.113978 | 0 | 0 | 0.032072 | 0.341991 | 1,848 | 57 | 72 | 32.421053 | 0.73273 | 0 | 0 | 0.122449 | 0 | 0 | 0.259881 | 0.028695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.183673 | 0 | 0.265306 | 0.020408 | 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 |
eb69a7531e9cef489f504446807296288f3f8175 | 6,120 | py | Python | scripts/python/permutation.py | roshchupkin/VBM | 26c4e2a4495441de2c09c40a41d39bf885cd13d5 | [
"Apache-2.0"
] | 1 | 2015-11-27T23:04:17.000Z | 2015-11-27T23:04:17.000Z | scripts/python/permutation.py | roshchupkin/VBM | 26c4e2a4495441de2c09c40a41d39bf885cd13d5 | [
"Apache-2.0"
] | null | null | null | scripts/python/permutation.py | roshchupkin/VBM | 26c4e2a4495441de2c09c40a41d39bf885cd13d5 | [
"Apache-2.0"
] | 4 | 2018-02-05T23:10:31.000Z | 2020-09-07T15:10:26.000Z | import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from config import *
import numpy as np
import pandas as pd
from tim... | 34.189944 | 136 | 0.722386 | 972 | 6,120 | 4.342593 | 0.195473 | 0.040512 | 0.056385 | 0.021322 | 0.240701 | 0.20019 | 0.160625 | 0.125326 | 0.125326 | 0.117271 | 0 | 0.005818 | 0.129412 | 6,120 | 178 | 137 | 34.382022 | 0.786411 | 0.001144 | 0 | 0.118056 | 0 | 0 | 0.128927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076389 | null | null | 0.076389 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb6c9a1f0da40299517cbdccc7db61a8c64807fa | 7,000 | py | Python | ros/src/tl_detector/light_classification/tl_classifier.py | parkjin-nim/ROS_Capstone | 5695e603f9574e74d2763b5e54083f2dfd2e429d | [
"MIT"
] | 2 | 2021-01-06T00:49:59.000Z | 2021-01-06T01:43:35.000Z | ros/src/tl_detector/light_classification/tl_classifier.py | parkjin-nim/Real_SDC_capstone_project | 5695e603f9574e74d2763b5e54083f2dfd2e429d | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | parkjin-nim/Real_SDC_capstone_project | 5695e603f9574e74d2763b5e54083f2dfd2e429d | [
"MIT"
] | null | null | null | from styx_msgs.msg import TrafficLight
import numpy as np
import tensorflow as tf
import os
import rospy
import cv2
from PIL import Image
class TLClassifier(object):
def __init__(self, subsample_rate, confidence_level):
#TODO load classifier
"""Subsampling for inference delay"""
se... | 42.168675 | 110 | 0.572286 | 836 | 7,000 | 4.624402 | 0.29067 | 0.01552 | 0.022763 | 0.028453 | 0.122349 | 0.046301 | 0.033885 | 0.02716 | 0 | 0 | 0 | 0.017661 | 0.336714 | 7,000 | 166 | 111 | 42.168675 | 0.81499 | 0.250143 | 0 | 0.068966 | 0 | 0 | 0.03751 | 0.010801 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.045977 | false | 0 | 0.091954 | 0 | 0.218391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
eb71ff168fd657d27d23f89da6ea500b303cf2b0 | 4,748 | py | Python | src/main/python/programmingtheiot/cda/system/ActuatorAdapterManager.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | null | null | null | src/main/python/programmingtheiot/cda/system/ActuatorAdapterManager.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | 2 | 2020-10-31T06:33:20.000Z | 2020-11-05T06:36:44.000Z | src/main/python/programmingtheiot/cda/system/ActuatorAdapterManager.py | Taowyoo/-constrained-device-app | c858f786dfa7fc82006068d405a04dc21f2fcda5 | [
"MIT"
] | 1 | 2020-12-13T03:41:57.000Z | 2020-12-13T03:41:57.000Z | #####
#
# This class is part of the Programming the Internet of Things project.
#
# It is provided as a simple shell to guide the student and assist with
# implementation for the Programming the Internet of Things exercises,
# and designed to be modified by the student as needed.
#
import logging
from programmingth... | 47.009901 | 101 | 0.655644 | 418 | 4,748 | 7.363636 | 0.296651 | 0.035737 | 0.034113 | 0.053606 | 0.351852 | 0.335608 | 0.262183 | 0.262183 | 0.243015 | 0.243015 | 0 | 0 | 0.278222 | 4,748 | 100 | 102 | 47.48 | 0.898162 | 0.125737 | 0 | 0.394737 | 0 | 0 | 0.194026 | 0.079893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0.105263 | 0.105263 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb733efb2a5e0bc63821f85f6eb89f2e85b19d23 | 1,680 | py | Python | Dataset/Leetcode/valid/5/25.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/5/25.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/5/25.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, s: str) -> str:
n = len(s)
# 特解
if n < 2:
return s
'''
创建动归表dp (n x n的全为False的矩阵) 用来表示字符串s的每一个子串是否为回文
s子串个数 = n + n-1 + ... + 1, e.g. 字符串babad有5 + 4 + 3 + 2 + 1 = 15种子串
start用来跟踪最长回文子串的起点, max_len代表最长回文子串的长度
... | 30 | 83 | 0.415476 | 170 | 1,680 | 4.070588 | 0.435294 | 0.060694 | 0.095376 | 0.031792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037801 | 0.480357 | 1,680 | 55 | 84 | 30.545455 | 0.754868 | 0.019643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb76670acc160ffea93d67b317ea58c626afc1a2 | 5,781 | py | Python | event_scheduler.py | JelidahJay/face-recogition | f48c40d84dcccc277de95350f9f0e130f6ef5a09 | [
"MIT"
] | null | null | null | event_scheduler.py | JelidahJay/face-recogition | f48c40d84dcccc277de95350f9f0e130f6ef5a09 | [
"MIT"
] | null | null | null | event_scheduler.py | JelidahJay/face-recogition | f48c40d84dcccc277de95350f9f0e130f6ef5a09 | [
"MIT"
] | null | null | null | from apscheduler.schedulers.background import BackgroundScheduler
import pymysql
from datetime import datetime
import smtplib
from mark_attendance import Mark_Attendance
from email.message import EmailMessage
def getall_staffs():
conn = pymysql.connect(host = "localhost", user = "root", password = "", data... | 37.296774 | 119 | 0.583463 | 685 | 5,781 | 4.735766 | 0.233577 | 0.047472 | 0.034525 | 0.033909 | 0.284834 | 0.267879 | 0.227497 | 0.227497 | 0.227497 | 0.227497 | 0 | 0.008606 | 0.296489 | 5,781 | 154 | 120 | 37.538961 | 0.789034 | 0.005362 | 0 | 0.240602 | 0 | 0.007519 | 0.156144 | 0.012162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045113 | false | 0.052632 | 0.045113 | 0 | 0.12782 | 0.037594 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb79b10bb7baa05f79c026bed6680550207e7211 | 4,205 | py | Python | src/zenml/enums.py | tblazina/zenml | 905a60ea90a3279a019dd298114ce4b1f7a9fcc9 | [
"Apache-2.0"
] | null | null | null | src/zenml/enums.py | tblazina/zenml | 905a60ea90a3279a019dd298114ce4b1f7a9fcc9 | [
"Apache-2.0"
] | null | null | null | src/zenml/enums.py | tblazina/zenml | 905a60ea90a3279a019dd298114ce4b1f7a9fcc9 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) ZenML GmbH 2021. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 27.129032 | 76 | 0.690131 | 432 | 4,205 | 6.645833 | 0.400463 | 0.04528 | 0.075583 | 0.060954 | 0.042494 | 0.042494 | 0.042494 | 0 | 0 | 0 | 0 | 0.003059 | 0.222592 | 4,205 | 154 | 77 | 27.305195 | 0.875191 | 0.294174 | 0 | 0.120482 | 0 | 0 | 0.132292 | 0.014931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.048193 | 0 | 0.819277 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb7d3b304e49a4ce2a6f378d2cdf5ad302455491 | 433 | py | Python | taversarymedia/post/migrations/0004_auto_20181007_1859.py | debu999/djangofundamentals | 15a7a3d6e40a2faf3359a151bb0bb44dd7d669ff | [
"Apache-2.0"
] | null | null | null | taversarymedia/post/migrations/0004_auto_20181007_1859.py | debu999/djangofundamentals | 15a7a3d6e40a2faf3359a151bb0bb44dd7d669ff | [
"Apache-2.0"
] | null | null | null | taversarymedia/post/migrations/0004_auto_20181007_1859.py | debu999/djangofundamentals | 15a7a3d6e40a2faf3359a151bb0bb44dd7d669ff | [
"Apache-2.0"
] | 1 | 2019-08-22T09:13:41.000Z | 2019-08-22T09:13:41.000Z | # Generated by Django 2.1.1 on 2018-10-07 10:59
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0003_auto_20181007_1858'),
]
operations = [
migrations.AlterField(
model_name='posts',
name='... | 22.789474 | 82 | 0.628176 | 47 | 433 | 5.702128 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096875 | 0.26097 | 433 | 18 | 83 | 24.055556 | 0.740625 | 0.103926 | 0 | 0 | 1 | 0 | 0.108808 | 0.059585 | 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 |
eb85cbf16819eba13f475ecedf08c24adee5c853 | 6,586 | py | Python | test/test_help.py | chandur626/TeachersPetBot | ad1fd36be5bd3690949d0e3a6e29c9100bf43e15 | [
"MIT"
] | null | null | null | test/test_help.py | chandur626/TeachersPetBot | ad1fd36be5bd3690949d0e3a6e29c9100bf43e15 | [
"MIT"
] | 52 | 2021-11-20T19:29:58.000Z | 2021-12-05T04:39:30.000Z | test/test_help.py | chandur626/TeachersPetBot | ad1fd36be5bd3690949d0e3a6e29c9100bf43e15 | [
"MIT"
] | null | null | null | ###########################
# Tests help module
###########################
from time import sleep
import discord
###########################
# Function: test
# Description: runs each test
# Inputs:
# - testing_bot: bot that sends commands to test TeachersPetBot
# - guild_id: id of the guild that is using th... | 30.920188 | 72 | 0.582144 | 816 | 6,586 | 4.598039 | 0.102941 | 0.171908 | 0.223881 | 0.134328 | 0.744403 | 0.662313 | 0.559701 | 0.559701 | 0.479744 | 0.376599 | 0 | 0.009136 | 0.302004 | 6,586 | 212 | 73 | 31.066038 | 0.807048 | 0.032645 | 0 | 0.463277 | 0 | 0 | 0.084253 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 1 | 0 | false | 0 | 0.011299 | 0 | 0.011299 | 0.00565 | 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 |
eb875e425cbab809bedad3bdd30278663965e673 | 4,078 | py | Python | client/base_client.py | mikaelbrandin/armory | 222e549fbf2cf89a874cad96a8bb7edd186e4800 | [
"Apache-2.0"
] | null | null | null | client/base_client.py | mikaelbrandin/armory | 222e549fbf2cf89a874cad96a8bb7edd186e4800 | [
"Apache-2.0"
] | null | null | null | client/base_client.py | mikaelbrandin/armory | 222e549fbf2cf89a874cad96a8bb7edd186e4800 | [
"Apache-2.0"
] | null | null | null | __author__ = 'mikael.brandin@devolver.se'
# coding=utf-8
import os
import subprocess
import io
import sys
from urllib.parse import urlparse
from client import exceptions
from client import protocol
class ClientException(exceptions.ArmoryException):
def __init__(self, msg):
super(ClientException, self)._... | 27.554054 | 123 | 0.583619 | 485 | 4,078 | 4.76701 | 0.206186 | 0.052336 | 0.033737 | 0.029412 | 0.466263 | 0.456315 | 0.444637 | 0.429066 | 0.399654 | 0.342993 | 0 | 0.001401 | 0.299902 | 4,078 | 148 | 124 | 27.554054 | 0.808406 | 0.002943 | 0 | 0.541284 | 0 | 0 | 0.087331 | 0.006396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155963 | false | 0.055046 | 0.06422 | 0.045872 | 0.431193 | 0.100917 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb9e440ab27e97db81b115d1ba4a1876fbe12605 | 684 | py | Python | datasets/_base.py | z-a-f/zaf_funcs | 41fc40b5017028b3570f3419e1c035ba0dc7a092 | [
"MIT"
] | null | null | null | datasets/_base.py | z-a-f/zaf_funcs | 41fc40b5017028b3570f3419e1c035ba0dc7a092 | [
"MIT"
] | null | null | null | datasets/_base.py | z-a-f/zaf_funcs | 41fc40b5017028b3570f3419e1c035ba0dc7a092 | [
"MIT"
] | null | null | null |
import sys, os
import abc
class _BaseDataset(abc.ABC, object):
def __init__(self, path=None):
self._train = None
self._test = None
self.path = path
if self.path is None:
self.path = os.path.join(os.getcwd(), "data")
@abc.abstractmethod
def load(self, *args, **kwargs):
"""Must set _tes... | 22.064516 | 79 | 0.654971 | 96 | 684 | 4.53125 | 0.40625 | 0.073563 | 0.055172 | 0.11954 | 0.197701 | 0.197701 | 0.197701 | 0.197701 | 0 | 0 | 0 | 0 | 0.219298 | 684 | 30 | 80 | 22.8 | 0.814607 | 0.038012 | 0 | 0.083333 | 0 | 0 | 0.156682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.041667 | 0.083333 | 0.083333 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eba1f2cbf15567301b776e4cd1823534e1089187 | 334 | py | Python | src/account/migrations/0005_remove_activationcode_timeout.py | amediantsev/currency_exchange | 55b4faca9878bf69e6ea8c1f6ef9308bcc64e6b5 | [
"MIT"
] | null | null | null | src/account/migrations/0005_remove_activationcode_timeout.py | amediantsev/currency_exchange | 55b4faca9878bf69e6ea8c1f6ef9308bcc64e6b5 | [
"MIT"
] | 2 | 2021-09-08T01:46:19.000Z | 2022-03-12T00:18:54.000Z | src/account/migrations/0005_remove_activationcode_timeout.py | amediantsev/currency_exchange | 55b4faca9878bf69e6ea8c1f6ef9308bcc64e6b5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-03-22 11:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0004_activationcode'),
]
operations = [
migrations.RemoveField(
model_name='activationcode',
name='timeout',
... | 18.555556 | 48 | 0.598802 | 33 | 334 | 6 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084388 | 0.290419 | 334 | 17 | 49 | 19.647059 | 0.751055 | 0.137725 | 0 | 0 | 1 | 0 | 0.164336 | 0 | 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 |
eba5412f3d75b39bfb2b0f6a7f596823673fc3e9 | 986 | py | Python | engine/Input.py | WilliamDASILVA/TheMysteryOfSchweitzer | f81edc2e202bd5009fc96ccfbbfcc40bc135a17a | [
"MIT"
] | null | null | null | engine/Input.py | WilliamDASILVA/TheMysteryOfSchweitzer | f81edc2e202bd5009fc96ccfbbfcc40bc135a17a | [
"MIT"
] | null | null | null | engine/Input.py | WilliamDASILVA/TheMysteryOfSchweitzer | f81edc2e202bd5009fc96ccfbbfcc40bc135a17a | [
"MIT"
] | null | null | null | from engine import Data;
# --------------------------------------------------- *\
# [class] KeyboardInput()
#
# * Keyboard input class *
#
# --------------------------------------------------- */
events = {};
class Keyboard():
# --------------------------------------------------- *\
# [function] __init__():
#
# ... | 28.171429 | 64 | 0.418864 | 77 | 986 | 5.246753 | 0.532468 | 0.079208 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159229 | 986 | 35 | 65 | 28.171429 | 0.487334 | 0.578093 | 0 | 0 | 0 | 0 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebadd3879ab8845502f373d0530b6764db4269f3 | 2,735 | py | Python | src/vcs/vcs.py | gafiyatullin-a/simple-test-tool | 298af89d62007c3cb4ce2244fb016e70c8d0394e | [
"MIT"
] | null | null | null | src/vcs/vcs.py | gafiyatullin-a/simple-test-tool | 298af89d62007c3cb4ce2244fb016e70c8d0394e | [
"MIT"
] | null | null | null | src/vcs/vcs.py | gafiyatullin-a/simple-test-tool | 298af89d62007c3cb4ce2244fb016e70c8d0394e | [
"MIT"
] | null | null | null | from stage import Stage
from abc import ABC, abstractmethod
import os
class VCS(Stage, ABC):
"""
Base class for all CSV systems.
...
Methods
-------
add_for_commit(file_path, file_name)
add new file in file_path to commit
commit_and_push()
commit and push added files
... | 26.813725 | 118 | 0.581353 | 322 | 2,735 | 4.686335 | 0.248447 | 0.042412 | 0.043075 | 0.049702 | 0.258449 | 0.143804 | 0.058317 | 0.058317 | 0.058317 | 0.058317 | 0 | 0 | 0.341499 | 2,735 | 101 | 119 | 27.079208 | 0.837868 | 0.311883 | 0 | 0.131579 | 0 | 0 | 0.100322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.078947 | 0.078947 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebb7f4aa1a0f657cfd64e6622e415e4fbe2aa54a | 530 | py | Python | flask_appexts/cache.py | lnielsen/flask-appexts | 9936c058cde6dcb5ea39fcaba5a84660adf35df0 | [
"BSD-3-Clause"
] | null | null | null | flask_appexts/cache.py | lnielsen/flask-appexts | 9936c058cde6dcb5ea39fcaba5a84660adf35df0 | [
"BSD-3-Clause"
] | null | null | null | flask_appexts/cache.py | lnielsen/flask-appexts | 9936c058cde6dcb5ea39fcaba5a84660adf35df0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# This file is part of Flask-AppExts
# Copyright (C) 2015 CERN.
#
# Flask-AppExts is free software; you can redistribute it and/or
# modify it under the terms of the Revised BSD License; see LICENSE
# file for more details.
"""Flask-Cache extension."""
from __future__ import absolute_import,... | 23.043478 | 72 | 0.718868 | 77 | 530 | 4.818182 | 0.688312 | 0.06469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.164151 | 530 | 22 | 73 | 24.090909 | 0.826185 | 0.518868 | 0 | 0 | 0 | 0 | 0.067511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ebb87a429aaa25ffece356b2310b561816533a6a | 1,641 | py | Python | runtime/bamboo-pipeline/pipeline/eri/codec.py | DomineCore/bamboo-engine | fb4583e70f9e1e87d9d48c2393db8d8104306f37 | [
"MIT"
] | 55 | 2021-09-07T11:50:35.000Z | 2022-03-23T13:19:38.000Z | runtime/bamboo-pipeline/pipeline/eri/codec.py | DomineCore/bamboo-engine | fb4583e70f9e1e87d9d48c2393db8d8104306f37 | [
"MIT"
] | 64 | 2021-09-07T12:04:12.000Z | 2022-03-29T03:47:18.000Z | runtime/bamboo-pipeline/pipeline/eri/codec.py | DomineCore/bamboo-engine | fb4583e70f9e1e87d9d48c2393db8d8104306f37 | [
"MIT"
] | 20 | 2021-09-07T11:52:08.000Z | 2022-03-28T08:05:22.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 29.303571 | 115 | 0.758074 | 249 | 1,641 | 4.738956 | 0.437751 | 0.094915 | 0.076271 | 0.091525 | 0.149153 | 0.061017 | 0.061017 | 0.061017 | 0 | 0 | 0 | 0.008106 | 0.173065 | 1,641 | 55 | 116 | 29.836364 | 0.861459 | 0.439976 | 0 | 0.153846 | 0 | 0 | 0.041712 | 0.023052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.192308 | 0.076923 | 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 |
ebb99f644ee0e54b570bd2ab16a54a0e7957013d | 1,210 | py | Python | sugar.py | ilkerkesen/sugar | 1a363d5e52df51f910dfab0ca714bce1b8adb952 | [
"MIT"
] | null | null | null | sugar.py | ilkerkesen/sugar | 1a363d5e52df51f910dfab0ca714bce1b8adb952 | [
"MIT"
] | null | null | null | sugar.py | ilkerkesen/sugar | 1a363d5e52df51f910dfab0ca714bce1b8adb952 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tornado.ioloop import IOLoop
from tornado import gen
from tornado.websocket import websocket_connect
from tornado.httpclient import HTTPRequest
class Client(object):
def __init__(self, url, timeout):
self.request = HTTPRequest(
url, headers={... | 27.5 | 75 | 0.587603 | 139 | 1,210 | 4.992806 | 0.460432 | 0.063401 | 0.028818 | 0.040346 | 0.118156 | 0.118156 | 0.118156 | 0.118156 | 0 | 0 | 0 | 0.009479 | 0.302479 | 1,210 | 43 | 76 | 28.139535 | 0.812796 | 0.034711 | 0 | 0.176471 | 0 | 0 | 0.101201 | 0.02916 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ebc0107e66e96338c51cd0f091c62a0fe6857bef | 1,730 | py | Python | uploaddemo/views.py | pylixm/drf-upload-file-demo | 709eab01debafbe399012d876d10432a152ef4c1 | [
"MIT"
] | null | null | null | uploaddemo/views.py | pylixm/drf-upload-file-demo | 709eab01debafbe399012d876d10432a152ef4c1 | [
"MIT"
] | 13 | 2020-06-05T22:47:19.000Z | 2022-03-11T23:57:13.000Z | uploaddemo/views.py | pylixm/drf-upload-file-demo | 709eab01debafbe399012d876d10432a152ef4c1 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from PIL import Image
from rest_framework import viewsets, status
from rest_framework.exceptions import ParseError
from rest_framework.parsers import FileUploadParser, MultiPartParser
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.decorat... | 32.641509 | 81 | 0.679769 | 181 | 1,730 | 6.392265 | 0.458564 | 0.041487 | 0.088159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005311 | 0.23815 | 1,730 | 53 | 82 | 32.641509 | 0.872534 | 0.011561 | 0 | 0 | 0 | 0 | 0.031012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ebc1c1253b003972af890034fc23f6c906aace63 | 1,155 | py | Python | evaluate/checkpoint.py | rattaoup/pytorch-simclr | 7a16d4b7f719c43d4b7b5b8f859299f36e815fc7 | [
"MIT"
] | null | null | null | evaluate/checkpoint.py | rattaoup/pytorch-simclr | 7a16d4b7f719c43d4b7b5b8f859299f36e815fc7 | [
"MIT"
] | 2 | 2020-09-19T16:10:58.000Z | 2020-09-20T14:22:30.000Z | evaluate/checkpoint.py | rattaoup/pytorch-simclr | 7a16d4b7f719c43d4b7b5b8f859299f36e815fc7 | [
"MIT"
] | null | null | null | import os
import torch
def save_checkpoint(net, clf, critic, epoch, args, script_name):
# Save checkpoint.
print('Saving..')
state = {
'net': net.state_dict(),
'clf': clf.state_dict(),
'critic': critic.state_dict(),
'epoch': epoch,
'args': vars(args),
'scri... | 28.875 | 100 | 0.606926 | 132 | 1,155 | 5.159091 | 0.242424 | 0.105727 | 0.035242 | 0.049927 | 0.693098 | 0.693098 | 0.693098 | 0.602056 | 0.602056 | 0.602056 | 0 | 0.001136 | 0.238095 | 1,155 | 39 | 101 | 29.615385 | 0.772727 | 0.028571 | 0 | 0.625 | 0 | 0 | 0.140304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0.0625 | 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 |
ebc214730683c4b827b38d5133933fb9771ee5d6 | 657 | py | Python | tests/badfp-test.py | mckellygit/pstack | bf355fa035e5149a315682c644d20b099a033eb3 | [
"BSD-2-Clause"
] | 86 | 2015-07-30T19:17:38.000Z | 2022-01-12T00:56:19.000Z | tests/badfp-test.py | mckellygit/pstack | bf355fa035e5149a315682c644d20b099a033eb3 | [
"BSD-2-Clause"
] | 11 | 2018-07-11T14:46:29.000Z | 2021-05-25T13:33:08.000Z | tests/badfp-test.py | mckellygit/pstack | bf355fa035e5149a315682c644d20b099a033eb3 | [
"BSD-2-Clause"
] | 19 | 2017-09-08T05:35:31.000Z | 2022-02-09T07:33:12.000Z | #!/usr/bin/python2
import pstack
threads = pstack.JSON(["tests/badfp"])
assert len(threads) == 1
thread = threads[0]
stack = thread["ti_stack"]
assert stack[0]["ip"] == 0 # instruction pointer 0 at top-of-stack
assert stack[1]["die"] == "main" # called from main
# run the test again, with the signal trapped. Ensure ... | 29.863636 | 77 | 0.69102 | 101 | 657 | 4.475248 | 0.504951 | 0.044248 | 0.066372 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.153729 | 657 | 21 | 78 | 31.285714 | 0.791367 | 0.347032 | 0 | 0 | 0 | 0 | 0.144208 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
ebcbe5b95652d1ab22244517f116d9580af5e446 | 756 | py | Python | campus02/base/admin.py | fladi/django-campus02 | 558813ef9d38f94678d52d36ecaf5f70037dc5a4 | [
"MIT"
] | null | null | null | campus02/base/admin.py | fladi/django-campus02 | 558813ef9d38f94678d52d36ecaf5f70037dc5a4 | [
"MIT"
] | null | null | null | campus02/base/admin.py | fladi/django-campus02 | 558813ef9d38f94678d52d36ecaf5f70037dc5a4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from . import models
class CourseInline(admin.TabularInline):
model = models.Course
class InscriptionInline(admin.TabularInline):
model = models.Student.courses.through
@admin.register(models.Semester)
class SemesterAdmin(admin.M... | 19.384615 | 54 | 0.68254 | 75 | 756 | 6.813333 | 0.48 | 0.076321 | 0.111546 | 0.152642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001626 | 0.186508 | 756 | 38 | 55 | 19.894737 | 0.829268 | 0.050265 | 0 | 0.208333 | 0 | 0 | 0.068436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ebd64fef049d74987974474017546660b0b38ec9 | 2,853 | py | Python | chatserver/service.py | james-m/realchat | cfe6e1b3c419cafdc6fe03c1a344810acc96d924 | [
"BSD-3-Clause"
] | 1 | 2015-03-03T18:17:20.000Z | 2015-03-03T18:17:20.000Z | chatserver/service.py | james-m/realchat | cfe6e1b3c419cafdc6fe03c1a344810acc96d924 | [
"BSD-3-Clause"
] | null | null | null | chatserver/service.py | james-m/realchat | cfe6e1b3c419cafdc6fe03c1a344810acc96d924 | [
"BSD-3-Clause"
] | null | null | null | # -*- Mode: Python; tab-width: 4 -*-
# Copyright (c) 2011 James McKernan
# 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... | 35.222222 | 72 | 0.717841 | 391 | 2,853 | 5.191816 | 0.511509 | 0.021675 | 0.016749 | 0.02266 | 0.09064 | 0.066995 | 0.066995 | 0.066995 | 0.066995 | 0.066995 | 0 | 0.002217 | 0.209604 | 2,853 | 80 | 73 | 35.6625 | 0.898004 | 0.542937 | 0 | 0 | 0 | 0 | 0.122172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032258 | 0.225806 | 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 |
ebdd737c99056e5a64dd10c49de44d0218f32f58 | 6,747 | py | Python | Project/code/AdaBoost.py | AravindRam/ML | 54bb5538e910e45921157389ad9a49252d5d9622 | [
"Apache-2.0"
] | null | null | null | Project/code/AdaBoost.py | AravindRam/ML | 54bb5538e910e45921157389ad9a49252d5d9622 | [
"Apache-2.0"
] | null | null | null | Project/code/AdaBoost.py | AravindRam/ML | 54bb5538e910e45921157389ad9a49252d5d9622 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
import pandas as pd
from sklearn.ensemble import AdaBoostClassifier
from sklearn.cross_validation import train_test_split
from sklearn.tree import DecisionTreeClassifier
import numpy as np
from sklearn import preprocessing
from sklearn.metrics import precision_score,accuracy_score,log_loss... | 29.207792 | 133 | 0.680451 | 910 | 6,747 | 4.937363 | 0.235165 | 0.036056 | 0.010683 | 0.013354 | 0.141331 | 0.125751 | 0.089473 | 0.076118 | 0.076118 | 0.0503 | 0 | 0.036322 | 0.16348 | 6,747 | 230 | 134 | 29.334783 | 0.759745 | 0.042982 | 0 | 0.118919 | 0 | 0 | 0.09036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebe8a9e4770204182345ea1ffb57a1f9cf44d8a6 | 503 | py | Python | Python Crash Course/02_variables.py | rfaria/full-stack-python | 1e764d4a1468d849d20005846e49ff900787d1ed | [
"MIT"
] | 1 | 2022-01-17T19:55:52.000Z | 2022-01-17T19:55:52.000Z | Python Crash Course/02_variables.py | rfaria/full-stack-python | 1e764d4a1468d849d20005846e49ff900787d1ed | [
"MIT"
] | null | null | null | Python Crash Course/02_variables.py | rfaria/full-stack-python | 1e764d4a1468d849d20005846e49ff900787d1ed | [
"MIT"
] | null | null | null | def main():
name = "John Doe"
age = 40
print("The user's name is", name, "and his/her age is", age, end=".\n")
print("Next year he/she will be", age+1, "years old.", end="\n\n")
print("The characters of the user's name are:")
for i in range(len(name)):
print(name[i].upper(), end=" ")... | 27.944444 | 94 | 0.576541 | 86 | 503 | 3.27907 | 0.546512 | 0.074468 | 0.085106 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010363 | 0.232604 | 503 | 18 | 95 | 27.944444 | 0.720207 | 0 | 0 | 0 | 0 | 0 | 0.412698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ccd96581a32f4a2a5bb0e2d3a42a8913d3d5ac3c | 269 | py | Python | 06. Python Essentials/06. Functions/04. Orders.py | tdrv90/softuni-courses | ebf48083211f499050c04a237627c3a9c5367de7 | [
"MIT"
] | null | null | null | 06. Python Essentials/06. Functions/04. Orders.py | tdrv90/softuni-courses | ebf48083211f499050c04a237627c3a9c5367de7 | [
"MIT"
] | 2 | 2021-05-08T08:50:10.000Z | 2021-05-08T08:50:53.000Z | 06. Python Essentials/06. Functions/04. Orders.py | tdrv90/softuni-courses | ebf48083211f499050c04a237627c3a9c5367de7 | [
"MIT"
] | null | null | null | a = input()
b = int(input())
def calculate_price(product, qty):
PRICE_LIST = {
"coffee": 1.50,
"water": 1.00,
"coke": 1.40,
"snacks": 2.00
}
return '{:.2f}'.format(PRICE_LIST[product] * qty)
print(calculate_price(a, b))
| 15.823529 | 53 | 0.527881 | 36 | 269 | 3.833333 | 0.638889 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067358 | 0.282528 | 269 | 16 | 54 | 16.8125 | 0.647668 | 0 | 0 | 0 | 0 | 0 | 0.100372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccdb7a86cedca347bb091e87409f1cfa4b1789dd | 438 | py | Python | oss_server/repertoire/migrations/0005_playlist_name.py | PssbleTrngle/oss-server | e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9 | [
"MIT"
] | 3 | 2020-03-26T10:30:23.000Z | 2022-03-16T01:01:02.000Z | oss_server/repertoire/migrations/0005_playlist_name.py | PssbleTrngle/oss-server | e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9 | [
"MIT"
] | 35 | 2020-03-25T11:52:13.000Z | 2022-03-12T00:28:46.000Z | oss_server/repertoire/migrations/0005_playlist_name.py | PssbleTrngle/oss-server | e1b426e8c6411cbaa61af9a6d0ad0d892d6922d9 | [
"MIT"
] | 2 | 2020-04-16T11:58:27.000Z | 2021-04-01T12:19:25.000Z | # Generated by Django 3.0.5 on 2020-04-08 13:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('repertoire', '0004_album_artist'),
]
operations = [
migrations.AddField(
model_name='playlist',
name='name',
... | 21.9 | 71 | 0.600457 | 46 | 438 | 5.608696 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070288 | 0.285388 | 438 | 19 | 72 | 23.052632 | 0.753994 | 0.10274 | 0 | 0 | 1 | 0 | 0.120205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cce35409d353e0e7666c39e7a569c474c01571b7 | 4,229 | py | Python | sio/regen.py | maxpalpal/permanrkee | e895fbd6a205c324ad185f607f0c43ea27e47acc | [
"MIT"
] | null | null | null | sio/regen.py | maxpalpal/permanrkee | e895fbd6a205c324ad185f607f0c43ea27e47acc | [
"MIT"
] | null | null | null | sio/regen.py | maxpalpal/permanrkee | e895fbd6a205c324ad185f607f0c43ea27e47acc | [
"MIT"
] | 1 | 2020-11-04T06:11:05.000Z | 2020-11-04T06:11:05.000Z | #!/usr/bin/env python
# regex automated generation
# by sandro gauci
# do not distribute yet
import re
def regexbrute(teststring,initre='',groups=True):
import string
regexrange = list(string.lowercase)
regexrange += list(string.uppercase)
regexrange += list(string.digits)
regexrange += list(str... | 22.736559 | 77 | 0.599196 | 423 | 4,229 | 5.969267 | 0.413712 | 0.00396 | 0.031683 | 0.021386 | 0.080396 | 0.080396 | 0.046337 | 0.035644 | 0.035644 | 0.035644 | 0 | 0.123002 | 0.319461 | 4,229 | 185 | 78 | 22.859459 | 0.754343 | 0.04611 | 0 | 0.205607 | 0 | 0 | 0.014169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009346 | 0.028037 | null | null | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cce71f68c7a55cf4d024ec9e3d06a98db2f3473a | 605 | py | Python | app/page_error_handler.py | BlackIQ/web_flask | 3e775aaef8a725b78bc3aafdac90e1259021a0b0 | [
"MIT"
] | 5 | 2021-11-21T10:59:51.000Z | 2022-01-16T11:58:11.000Z | app/page_error_handler.py | BlackIQ/web_flask | 3e775aaef8a725b78bc3aafdac90e1259021a0b0 | [
"MIT"
] | null | null | null | app/page_error_handler.py | BlackIQ/web_flask | 3e775aaef8a725b78bc3aafdac90e1259021a0b0 | [
"MIT"
] | null | null | null | from flask import render_template, request
from . import app
@app.errorhandler(404)
def error_404(error):
return render_template("error.html",
error_head_title="Not Found Error",
error_title="404",
error_massage="This page doesn't ex... | 31.842105 | 75 | 0.561983 | 64 | 605 | 5.109375 | 0.40625 | 0.12844 | 0.103976 | 0.152905 | 0.293578 | 0.293578 | 0.293578 | 0.293578 | 0.293578 | 0 | 0 | 0.053299 | 0.34876 | 605 | 18 | 76 | 33.611111 | 0.77665 | 0 | 0 | 0.142857 | 0 | 0 | 0.183471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cce973ff3d1c0ebf5c75a66b1f10de84712b93e2 | 389 | py | Python | grammpy/exceptions/CantCreateSingleRuleException.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 1 | 2021-02-04T12:41:08.000Z | 2021-02-04T12:41:08.000Z | grammpy/exceptions/CantCreateSingleRuleException.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 3 | 2017-07-08T16:28:52.000Z | 2020-04-23T18:06:24.000Z | grammpy/exceptions/CantCreateSingleRuleException.py | PatrikValkovic/grammpy | 8308a1fd349bf9ea0d267360cc9a4ab20d1629e8 | [
"MIT"
] | 1 | 2021-02-04T12:41:10.000Z | 2021-02-04T12:41:10.000Z | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 01.08.2017 08:54
:Licence MIT
Part of grammpy
"""
from .RuleException import RuleException
class CantCreateSingleRuleException(RuleException):
"""
From Rule class with multiple rules defined library was unable to split separate rules
... | 20.473684 | 91 | 0.686375 | 46 | 389 | 5.717391 | 0.782609 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.228792 | 389 | 18 | 92 | 21.611111 | 0.836667 | 0.478149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cceef3920d4bbf079e227e29f0ee8cf4f5d08678 | 618 | py | Python | saleor/core/management/commands/synchronize_allegro_offers.py | tgarbowski/saleor | 11218aeac8649112626c8f971ef3eec8378b5537 | [
"CC-BY-4.0"
] | null | null | null | saleor/core/management/commands/synchronize_allegro_offers.py | tgarbowski/saleor | 11218aeac8649112626c8f971ef3eec8378b5537 | [
"CC-BY-4.0"
] | 8 | 2022-02-14T04:25:58.000Z | 2022-03-28T04:53:16.000Z | saleor/core/management/commands/synchronize_allegro_offers.py | tgarbowski/saleor | 11218aeac8649112626c8f971ef3eec8378b5537 | [
"CC-BY-4.0"
] | null | null | null | from django.core.management.base import BaseCommand
from saleor.plugins.manager import PluginsManager
from saleor.plugins.allegroSync.plugin import AllegroSyncPlugin
class Command(BaseCommand):
version = "1.0"
def add_arguments(self, parser):
parser.add_argument('--type', type=str, help='allegro type... | 36.352941 | 96 | 0.737864 | 70 | 618 | 6.428571 | 0.542857 | 0.086667 | 0.075556 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.15534 | 618 | 16 | 97 | 38.625 | 0.858238 | 0 | 0 | 0 | 0 | 0 | 0.140777 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6902cf1c415ed1eac45dc357905062fcd4f8b1ca | 439 | py | Python | djcyradm/migrations/0003_auto_20201203_2301.py | angeelgarr/django-cyradm | 3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97 | [
"BSD-3-Clause"
] | 5 | 2019-12-16T13:25:44.000Z | 2022-01-21T17:42:16.000Z | djcyradm/migrations/0003_auto_20201203_2301.py | angeelgarr/django-cyradm | 3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97 | [
"BSD-3-Clause"
] | 1 | 2021-03-30T14:23:56.000Z | 2021-03-30T14:23:56.000Z | djcyradm/migrations/0003_auto_20201203_2301.py | angeelgarr/django-cyradm | 3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97 | [
"BSD-3-Clause"
] | 1 | 2021-06-24T01:49:22.000Z | 2021-06-24T01:49:22.000Z | # Generated by Django 3.0.7 on 2020-12-03 23:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djcyradm', '0002_mailusers_email_confirmed'),
]
operations = [
migrations.AlterField(
model_name='mailusers',
name='... | 23.105263 | 89 | 0.626424 | 49 | 439 | 5.469388 | 0.77551 | 0.059701 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067692 | 0.259681 | 439 | 18 | 90 | 24.388889 | 0.756923 | 0.102506 | 0 | 0 | 1 | 0 | 0.165816 | 0.076531 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69049e757cc0e4317d51a705825360458b2e5b1e | 1,621 | py | Python | fog/config/settings/dev.py | CodeforLeipzig/fog | b2177373c19aef856ac6e6ea6ae62c70983b38dd | [
"BSD-3-Clause"
] | null | null | null | fog/config/settings/dev.py | CodeforLeipzig/fog | b2177373c19aef856ac6e6ea6ae62c70983b38dd | [
"BSD-3-Clause"
] | null | null | null | fog/config/settings/dev.py | CodeforLeipzig/fog | b2177373c19aef856ac6e6ea6ae62c70983b38dd | [
"BSD-3-Clause"
] | null | null | null | import socket
import subprocess
from configurations import values
from . import common, databases
class Dev(databases.Databases, common.Common):
"""Settings for development."""
def get_client_ip(self):
"""Return the client IP address.
Detect a Vagrant box by looking at the hostname. Return... | 29.472727 | 146 | 0.648365 | 188 | 1,621 | 5.494681 | 0.521277 | 0.009681 | 0.031946 | 0.007744 | 0.058083 | 0.058083 | 0 | 0 | 0 | 0 | 0 | 0.009732 | 0.239358 | 1,621 | 54 | 147 | 30.018519 | 0.828062 | 0.218384 | 0 | 0.064516 | 0 | 0 | 0.231848 | 0.174917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.129032 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
690c77b569b72706d4789c94f9d14538dee8d28e | 20,390 | py | Python | FireHR/data.py | farhadinima75/FireHR | 0ca251c7fd0aaff789e528962a2993371d999af6 | [
"Apache-2.0"
] | 20 | 2021-04-25T14:51:44.000Z | 2022-03-12T08:49:16.000Z | FireHR/data.py | farhadinima75/FireHR | 0ca251c7fd0aaff789e528962a2993371d999af6 | [
"Apache-2.0"
] | 2 | 2021-10-11T09:20:06.000Z | 2022-02-26T10:49:22.000Z | FireHR/data.py | farhadinima75/FireHR | 0ca251c7fd0aaff789e528962a2993371d999af6 | [
"Apache-2.0"
] | 5 | 2021-04-30T11:24:46.000Z | 2022-02-11T08:07:46.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_data.ipynb (unless otherwise specified).
__all__ = ['RegionST', 'extract_region', 'coords2bbox', 'split_region', 'merge_tifs', 'filter_region', 'filter_cloudy',
'n_least_cloudy', 'download_topography_data', 'download_data', 'download_data_ts', 'get_event_da... | 51.360202 | 119 | 0.571653 | 2,747 | 20,390 | 4.076083 | 0.118675 | 0.035009 | 0.01688 | 0.011789 | 0.562293 | 0.530946 | 0.487452 | 0.469947 | 0.440564 | 0.43467 | 0 | 0.021302 | 0.288573 | 20,390 | 397 | 120 | 51.360202 | 0.750586 | 0.054144 | 0 | 0.468571 | 1 | 0.02 | 0.109194 | 0.019812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.04 | 0.005714 | 0.122857 | 0.011429 | 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 |
69141d2936e95ff76cc7724beadb84b50abc49b6 | 3,057 | py | Python | Diena_9_sets_tuples/sets.py | ValdisG31/Python_RTU_08_20 | 0c49376bdfb4c3f521c1d7a443a690b5c0f96efa | [
"MIT"
] | null | null | null | Diena_9_sets_tuples/sets.py | ValdisG31/Python_RTU_08_20 | 0c49376bdfb4c3f521c1d7a443a690b5c0f96efa | [
"MIT"
] | 4 | 2021-06-08T22:43:59.000Z | 2022-03-12T00:51:51.000Z | Diena_9_sets_tuples/sets.py | ValdisG31/Python_RTU_08_20 | 0c49376bdfb4c3f521c1d7a443a690b5c0f96efa | [
"MIT"
] | null | null | null | # # Sets (kopas)
# # unordered
# # unique items
# # use: get rid of duplicates, membership testing
# # https://docs.python.org/3/tutorial/datastructures.html#sets
# # https://realpython.com/python-sets/
# chars = set("abracadabra") # you pass an iterable to set(iterablehere)
# print(chars)
# print(len(chars))
# print... | 30.878788 | 87 | 0.68564 | 523 | 3,057 | 3.824092 | 0.288719 | 0.03 | 0.028 | 0.021 | 0.2515 | 0.1855 | 0.1195 | 0.083 | 0.083 | 0.083 | 0 | 0.051852 | 0.160942 | 3,057 | 98 | 88 | 31.193878 | 0.727875 | 0.695126 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
69145b9c292ff731db2ae98b793313c92ee16e9f | 353 | py | Python | Programmers/[cutz]2ntiling.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | 3 | 2019-11-26T14:31:01.000Z | 2020-01-10T18:19:46.000Z | Programmers/[cutz]2ntiling.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | null | null | null | Programmers/[cutz]2ntiling.py | cutz-j/AlgorithmStudy | de0f81220e29bd5e109d174800f507b12a3bee36 | [
"MIT"
] | null | null | null | from collections import defaultdict
import sys
sys.setrecursionlimit(9999999)
cache = defaultdict(int)
def dp(n):
if n <= 1:
return 1
if cache.get(n, None):
return cache[n]
cache[n] = (dp(n - 2) + dp(n - 1)) % 1000000007
return cache[n]
def solution(n):
answer = dp(n)
retu... | 15.347826 | 51 | 0.617564 | 51 | 353 | 4.27451 | 0.45098 | 0.055046 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099237 | 0.25779 | 353 | 23 | 52 | 15.347826 | 0.732824 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6914edaa424f4cea18505417ece64e1097cb6ddc | 639 | py | Python | transactional_email/migrations/0002_auto_20190705_1734.py | lukin0110/django-transactional-email | 5e1b1e68cec649a005d2688a112e31e568b24304 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-06-16T02:47:18.000Z | 2021-06-16T02:47:18.000Z | transactional_email/migrations/0002_auto_20190705_1734.py | lukin0110/django-transactional-email | 5e1b1e68cec649a005d2688a112e31e568b24304 | [
"Apache-2.0",
"MIT"
] | null | null | null | transactional_email/migrations/0002_auto_20190705_1734.py | lukin0110/django-transactional-email | 5e1b1e68cec649a005d2688a112e31e568b24304 | [
"Apache-2.0",
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-07-05 17:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transactional_email', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='emaillog',
name='body',
... | 26.625 | 159 | 0.599374 | 70 | 639 | 5.385714 | 0.757143 | 0.01061 | 0.132626 | 0.153846 | 0.217507 | 0.217507 | 0 | 0 | 0 | 0 | 0 | 0.04814 | 0.28482 | 639 | 23 | 160 | 27.782609 | 0.776805 | 0.070423 | 0 | 0.352941 | 1 | 0 | 0.217905 | 0 | 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 |
6917507bc78f939cfd35afd279e90b2fc0067126 | 3,875 | py | Python | Octo-Bot/synflood-attack-bot/bot/utils/RandNetParamsGen.py | krusagiz/OctoBot | cd9914b68d1cf3697c102607d2196798eb47a20c | [
"Apache-2.0"
] | 1 | 2020-07-29T03:02:18.000Z | 2020-07-29T03:02:18.000Z | Octo-Bot/synflood-attack-bot/bot/utils/RandNetParamsGen.py | krusagiz/OctoBot | cd9914b68d1cf3697c102607d2196798eb47a20c | [
"Apache-2.0"
] | 25 | 2020-01-22T08:29:00.000Z | 2022-03-12T01:04:12.000Z | Octo-Bot/synflood-attack-bot/bot/utils/RandNetParamsGen.py | krusagiz/OctoBot | cd9914b68d1cf3697c102607d2196798eb47a20c | [
"Apache-2.0"
] | 17 | 2019-10-14T07:13:30.000Z | 2021-09-27T11:21:31.000Z | import random
def GetRandomIpInRange(IpList):
'''
Picks a random IP in IpList
Arguments:
IpList (List): list of IPs
Returns:
str: random IP in IpList
'''
assert type(IpList) == tuple or type(IpList) == list, 'IpList is a %s not a list or tuple' %type(IpList)
return Ip... | 25.833333 | 108 | 0.504516 | 383 | 3,875 | 5.104439 | 0.206266 | 0.092072 | 0.200512 | 0.078772 | 0.581074 | 0.520205 | 0.448082 | 0.440921 | 0.440921 | 0.117647 | 0 | 0.103664 | 0.380129 | 3,875 | 150 | 109 | 25.833333 | 0.710241 | 0.210323 | 0 | 0.271186 | 0 | 0 | 0.11259 | 0.008273 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.135593 | false | 0 | 0.016949 | 0 | 0.288136 | 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 |
691a5c467a4f926dbd0fef7c3b6176c8016b196b | 390 | py | Python | zvt/utils/git_utils.py | h521822/zvt | c6bcc2b340406da55d920a411f59ab8d4cc7e76d | [
"MIT"
] | 10 | 2020-08-08T04:43:00.000Z | 2021-07-23T05:38:11.000Z | zvt/utils/git_utils.py | h521822/zvt | c6bcc2b340406da55d920a411f59ab8d4cc7e76d | [
"MIT"
] | 1 | 2021-08-14T12:19:18.000Z | 2021-09-30T06:44:04.000Z | zvt/utils/git_utils.py | h521822/zvt | c6bcc2b340406da55d920a411f59ab8d4cc7e76d | [
"MIT"
] | 5 | 2021-07-18T08:27:37.000Z | 2022-03-31T14:10:21.000Z | # -*- coding: utf-8 -*-
import subprocess
def get_git_user_name():
try:
return subprocess.check_output(['git', 'config', '--get', 'user.name']).decode('utf8').strip()
except:
return "foolcage"
def get_git_user_email():
try:
return subprocess.check_output(['git', 'config', '--get'... | 22.941176 | 103 | 0.594872 | 46 | 390 | 4.869565 | 0.456522 | 0.053571 | 0.080357 | 0.116071 | 0.651786 | 0.410714 | 0.410714 | 0.410714 | 0.410714 | 0 | 0 | 0.009709 | 0.207692 | 390 | 16 | 104 | 24.375 | 0.71521 | 0.053846 | 0 | 0.363636 | 0 | 0 | 0.171662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | true | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
691cc99dd1bba1bfdeb749140632add3dad69987 | 590 | py | Python | pyart/graph/tests/test_common.py | kmuehlbauer/pyart | 4accda3fc02490d135373ad5b054899c6781e762 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | pyart/graph/tests/test_common.py | kmuehlbauer/pyart | 4accda3fc02490d135373ad5b054899c6781e762 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | pyart/graph/tests/test_common.py | kmuehlbauer/pyart | 4accda3fc02490d135373ad5b054899c6781e762 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | """ Unit Tests for Py-ART's graph/common.py module. """
import pyart
def test_corner_to_point():
corner = (36.5, -97.5)
point = (36.4, -97.6)
x, y = pyart.graph.common.corner_to_point(corner, point)
assert round(x) == -8950.
assert round(y) == -11119.0
def test_ax_radius_degrees():
R = pyar... | 25.652174 | 66 | 0.647458 | 95 | 590 | 3.884211 | 0.463158 | 0.119241 | 0.130081 | 0.102981 | 0.135501 | 0.135501 | 0 | 0 | 0 | 0 | 0 | 0.129436 | 0.188136 | 590 | 22 | 67 | 26.818182 | 0.640919 | 0.172881 | 0 | 0.153846 | 0 | 0 | 0.029106 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
691d40f0541e3ff2ecbea2e21ad63665559db1f4 | 640 | py | Python | actions/migrations/0002_auto_20210129_2326.py | xzzy/statdev | b2c3eb3ad4d8aab44d0f67fc526da1a69b4d86a2 | [
"Apache-2.0"
] | null | null | null | actions/migrations/0002_auto_20210129_2326.py | xzzy/statdev | b2c3eb3ad4d8aab44d0f67fc526da1a69b4d86a2 | [
"Apache-2.0"
] | 7 | 2017-03-13T02:00:21.000Z | 2018-01-02T04:03:02.000Z | actions/migrations/0002_auto_20210129_2326.py | xzzy/statdev | b2c3eb3ad4d8aab44d0f67fc526da1a69b4d86a2 | [
"Apache-2.0"
] | 2 | 2017-02-16T02:18:21.000Z | 2017-02-16T02:22:02.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2021-01-29 15:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('actions', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 30.47619 | 248 | 0.58125 | 73 | 640 | 5 | 0.821918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068548 | 0.225 | 640 | 20 | 249 | 32 | 0.667339 | 0.10625 | 0 | 0 | 1 | 0 | 0.191564 | 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 |
691f7a612c8e15ab3c5597508218be983265a119 | 1,152 | py | Python | util/enums.py | yankai14/event-management-telegram-bot-client | 141a2c455c52b09fc4e7b047eb4efdb638d82060 | [
"MIT"
] | null | null | null | util/enums.py | yankai14/event-management-telegram-bot-client | 141a2c455c52b09fc4e7b047eb4efdb638d82060 | [
"MIT"
] | 7 | 2021-06-28T07:24:56.000Z | 2021-07-22T12:59:30.000Z | util/enums.py | yankai14/event-management-telegram-bot-client | 141a2c455c52b09fc4e7b047eb4efdb638d82060 | [
"MIT"
] | null | null | null | from telegram.ext import ConversationHandler
from enum import Enum, auto
class State(Enum):
# State definition for top level conversation
FEATURE_SELECTION = 1
# State definitions for 2nd level conversation (features)
EVENT_LIST = 2
NEW_LAUNCH_INTELLIGENCE = 3
REGISTER = 4
LOGIN = 5
#... | 24 | 61 | 0.695313 | 140 | 1,152 | 5.55 | 0.55 | 0.083655 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049528 | 0.263889 | 1,152 | 48 | 62 | 24 | 0.866745 | 0.313368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.066667 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.