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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a194116d43d3fd309f4235880113b5247e0db56b | 666 | py | Python | app/__init__.py | nkartha2/movies-to-watch | 4b2f3577f0d6a7bcdb8b64b0081bf1e27a923126 | [
"MIT"
] | null | null | null | app/__init__.py | nkartha2/movies-to-watch | 4b2f3577f0d6a7bcdb8b64b0081bf1e27a923126 | [
"MIT"
] | 1 | 2020-04-18T21:19:52.000Z | 2020-04-18T21:19:52.000Z | app/__init__.py | nkartha2/movies-to-watch | 4b2f3577f0d6a7bcdb8b64b0081bf1e27a923126 | [
"MIT"
] | 1 | 2020-04-12T16:54:53.000Z | 2020-04-12T16:54:53.000Z | from flask import Flask
# from app.config import DATABASE_URI
from sqlalchemy import create_engine
import os
import psycopg2
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
DATABASE_URL = os.environ['DATABASE_URL']
# uri = DATABASE_URL or DATABASE_URI
engine = create_engine(DATABASE_URL)
# ... | 26.64 | 72 | 0.798799 | 95 | 666 | 5.347368 | 0.336842 | 0.070866 | 0.074803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001689 | 0.111111 | 666 | 25 | 73 | 26.64 | 0.856419 | 0.253754 | 0 | 0 | 0 | 0 | 0.136179 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a198dde0dd7f6c58b9f608d5123f12d225dbf207 | 877 | py | Python | operations/migrations/0006_auto_20190216_0329.py | knowhere1998/lend_it_up_server | 279e72a1f337f4879cbbfec4a3f49db169a6e071 | [
"MIT"
] | null | null | null | operations/migrations/0006_auto_20190216_0329.py | knowhere1998/lend_it_up_server | 279e72a1f337f4879cbbfec4a3f49db169a6e071 | [
"MIT"
] | null | null | null | operations/migrations/0006_auto_20190216_0329.py | knowhere1998/lend_it_up_server | 279e72a1f337f4879cbbfec4a3f49db169a6e071 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-02-16 03:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operations', '0005_auto_20190215_2120'),
]
operations = [
migrations.AddField(
model_name='request',
name='buyerCon... | 28.290323 | 94 | 0.59065 | 85 | 877 | 5.964706 | 0.6 | 0.053254 | 0.09073 | 0.106509 | 0.291913 | 0.291913 | 0.161736 | 0 | 0 | 0 | 0 | 0.07717 | 0.290764 | 877 | 30 | 95 | 29.233333 | 0.737942 | 0.052452 | 0 | 0.375 | 1 | 0 | 0.168878 | 0.027744 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a19ac4c4aafd112efda3e269b19f00732bf89d16 | 1,488 | py | Python | siteHandler.py | BenAAndrew/AutomatedDogClassifier | d0033301911d501abb7dc602e2609507e757a1ad | [
"MIT"
] | 1 | 2020-12-05T19:58:34.000Z | 2020-12-05T19:58:34.000Z | siteHandler.py | BenAAndrew/AutomatedDogClassifier | d0033301911d501abb7dc602e2609507e757a1ad | [
"MIT"
] | 6 | 2020-01-28T22:50:02.000Z | 2022-02-10T00:13:46.000Z | siteHandler.py | BenAAndrew/AutomatedDogClassifier | d0033301911d501abb7dc602e2609507e757a1ad | [
"MIT"
] | 1 | 2022-01-23T07:41:56.000Z | 2022-01-23T07:41:56.000Z | import os
import subprocess
from classify import classify
import time
import projectProperties
projectProperties.checkFiles()
UPLOAD_FOLDER = projectProperties.details['upload_folder']
ALLOWED_EXTENSIONS = projectProperties.details['allowed_extensions'].split(",")
FEEDBACK_TEXT_FILE = projectProperties.details['feedb... | 32.347826 | 87 | 0.724462 | 164 | 1,488 | 6.439024 | 0.378049 | 0.090909 | 0.094697 | 0.049242 | 0.056818 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0.002318 | 0.130376 | 1,488 | 46 | 88 | 32.347826 | 0.813756 | 0 | 0 | 0.055556 | 0 | 0 | 0.172599 | 0.041639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.138889 | 0.111111 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a19fd54bb037b56c589fcf4d3d62cd7572b446a2 | 3,161 | py | Python | redistr/BaseStructure.py | copyrighthero/pypi.redistr | 2d348c5c991ff4ab8f25648aa572c0f2edea7d38 | [
"BSD-2-Clause"
] | 6 | 2018-03-18T06:38:35.000Z | 2018-03-23T21:49:29.000Z | redistr/BaseStructure.py | copyrighthero/Redistr | 2d348c5c991ff4ab8f25648aa572c0f2edea7d38 | [
"BSD-2-Clause"
] | null | null | null | redistr/BaseStructure.py | copyrighthero/Redistr | 2d348c5c991ff4ab8f25648aa572c0f2edea7d38 | [
"BSD-2-Clause"
] | null | null | null | # Author: Hansheng Zhao <zhaohans@msu.edu> (https://www.zhs.me)
class BaseStructure(object):
""" Redis interfaces base structure """
__slots__ = (
'_type', '_redis', '_token', '_serialize'
)
TOKEN_LENGTH = 16
def __init__(self, redis, token = None):
"""
BaseStructure class constructor
:pa... | 24.503876 | 63 | 0.645365 | 374 | 3,161 | 5.360963 | 0.326203 | 0.031421 | 0.033915 | 0.031421 | 0.121696 | 0.070823 | 0 | 0 | 0 | 0 | 0 | 0.002539 | 0.252452 | 3,161 | 128 | 64 | 24.695313 | 0.845959 | 0.398924 | 0 | 0.098039 | 0 | 0 | 0.044964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0 | 0.039216 | 0 | 0.54902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1a516bc14321b67403436086698c3a4ce175bc9 | 783 | py | Python | paorganizations/migrations/0009_auto_20170721_1816.py | simodalla/pympa-organizations | 5e7ecd97f35e4dfca70f35554c54cb6afe36eb9d | [
"MIT"
] | null | null | null | paorganizations/migrations/0009_auto_20170721_1816.py | simodalla/pympa-organizations | 5e7ecd97f35e4dfca70f35554c54cb6afe36eb9d | [
"MIT"
] | null | null | null | paorganizations/migrations/0009_auto_20170721_1816.py | simodalla/pympa-organizations | 5e7ecd97f35e4dfca70f35554c54cb6afe36eb9d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-21 16:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('paorganizations', '0008_auto_20170721_1735'),
]
operations = [
migrations.A... | 30.115385 | 170 | 0.61175 | 79 | 783 | 5.898734 | 0.658228 | 0.085837 | 0.107296 | 0.124464 | 0.206009 | 0.206009 | 0 | 0 | 0 | 0 | 0 | 0.062185 | 0.240102 | 783 | 25 | 171 | 31.32 | 0.721008 | 0.086845 | 0 | 0.333333 | 1 | 0 | 0.199438 | 0.032303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 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 |
a1a765bdf32d9848e7092f6b90f853f54a76e369 | 872 | py | Python | wagtail/tests/middleware.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 8,851 | 2016-12-09T19:01:45.000Z | 2022-03-31T04:45:06.000Z | wagtail/tests/middleware.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 5,197 | 2016-12-09T19:24:37.000Z | 2022-03-31T22:17:55.000Z | wagtail/tests/middleware.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 2,548 | 2016-12-09T18:16:55.000Z | 2022-03-31T21:34:38.000Z | from django.http import HttpResponseForbidden
from django.utils.deprecation import MiddlewareMixin
class BlockDodgyUserAgentMiddleware(MiddlewareMixin):
# Used to test that we're correctly handling responses returned from middleware during page
# previews. If a client with user agent "EvilHacker" calls an adm... | 54.5 | 106 | 0.752294 | 118 | 872 | 5.533898 | 0.610169 | 0.041348 | 0.058193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182339 | 872 | 15 | 107 | 58.133333 | 0.915849 | 0.548165 | 0 | 0 | 0 | 0 | 0.105943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1a7bcc35698ed96811bb0d91552f99706db32e4 | 1,580 | py | Python | algorithms/79_longest_common_substring.py | corenel/lintcode | e985cc8541ad26352a4ae2c8c8e4a572a5368e43 | [
"MIT"
] | 1 | 2019-02-24T13:40:26.000Z | 2019-02-24T13:40:26.000Z | algorithms/79_longest_common_substring.py | corenel/lintcode | e985cc8541ad26352a4ae2c8c8e4a572a5368e43 | [
"MIT"
] | null | null | null | algorithms/79_longest_common_substring.py | corenel/lintcode | e985cc8541ad26352a4ae2c8c8e4a572a5368e43 | [
"MIT"
] | null | null | null | """
Longest Common Substring
------------------------
Given two strings, find the longest common substring.
Return the length of it.
Note:
The characters in substring should occur continuously in original string.
This is different with sub-sequence.
Example 1:
- Input: "ABCD" and "CBCE"
- Output: ... | 24.307692 | 79 | 0.624051 | 218 | 1,580 | 4.426606 | 0.426606 | 0.161658 | 0.273575 | 0.07772 | 0.132642 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010851 | 0.241772 | 1,580 | 64 | 80 | 24.6875 | 0.794658 | 0.568987 | 0 | 0 | 0 | 0 | 0.037855 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.352941 | 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 |
a1a84518e0892d766f19a4d6f97b5f1bfb9e11a1 | 11,523 | py | Python | dna/dna.py | NSITGBIS/DNA | 4ba884a14e4ce1f6530929b04d33139353c895dc | [
"MIT"
] | 38 | 2016-08-21T18:25:56.000Z | 2022-02-04T01:19:47.000Z | dna/dna.py | FingerLeakers/DNA | 4ba884a14e4ce1f6530929b04d33139353c895dc | [
"MIT"
] | 1 | 2015-04-26T03:46:21.000Z | 2015-04-26T22:52:21.000Z | dna/dna.py | FingerLeakers/DNA | 4ba884a14e4ce1f6530929b04d33139353c895dc | [
"MIT"
] | 22 | 2015-04-26T03:10:19.000Z | 2022-03-30T12:57:32.000Z | #!/usr/bin/python
import binascii
import csv
from random import randint
import os
import math
import zipfile
import sys
import argparse
class DNA(object):
"""
This class implements four main methods:
encode(file): encode an arbitrary file in DNA form as described
in Nature's arti... | 29.622108 | 107 | 0.476178 | 1,603 | 11,523 | 3.260137 | 0.158453 | 0.043054 | 0.013777 | 0.008419 | 0.252009 | 0.171259 | 0.140452 | 0.117107 | 0.117107 | 0.117107 | 0 | 0.052741 | 0.374729 | 11,523 | 389 | 108 | 29.622108 | 0.672588 | 0.095982 | 0 | 0.3 | 0 | 0 | 0.061126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030769 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1aedbd77b5ab91ff211af76f33b5358356f6bd9 | 7,097 | py | Python | nipy/modalities/fmri/fmristat/hrf.py | arokem/nipy | d6b2e862c65558bb5747c36140fd6261a7e1ecfe | [
"BSD-3-Clause"
] | null | null | null | nipy/modalities/fmri/fmristat/hrf.py | arokem/nipy | d6b2e862c65558bb5747c36140fd6261a7e1ecfe | [
"BSD-3-Clause"
] | null | null | null | nipy/modalities/fmri/fmristat/hrf.py | arokem/nipy | d6b2e862c65558bb5747c36140fd6261a7e1ecfe | [
"BSD-3-Clause"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
""" Computation of the canonical HRF used in fMRIstat, both the 2-term
spectral approximation and the Taylor series approximation, to a shifted
version of the canonical Glover HRF.
References
----------
Li... | 36.025381 | 78 | 0.635057 | 1,002 | 7,097 | 4.461078 | 0.246507 | 0.00783 | 0.014094 | 0.013423 | 0.538255 | 0.50604 | 0.486801 | 0.486801 | 0.466667 | 0.466667 | 0 | 0.024736 | 0.265182 | 7,097 | 196 | 79 | 36.209184 | 0.832407 | 0.518529 | 0 | 0.445783 | 0 | 0 | 0.002219 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.048193 | false | 0 | 0.084337 | 0 | 0.180723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a1af103d30a9d17c31964068706f7d0f8023c3dc | 3,615 | py | Python | __main__.py | Wafflespeanut/Memoir | 09bf9a882c24061da1560416c57f64b22a13b683 | [
"MIT"
] | 7 | 2015-07-09T02:37:26.000Z | 2016-02-18T13:05:18.000Z | __main__.py | Wafflespeanut/Memoir | 09bf9a882c24061da1560416c57f64b22a13b683 | [
"MIT"
] | null | null | null | __main__.py | Wafflespeanut/Memoir | 09bf9a882c24061da1560416c57f64b22a13b683 | [
"MIT"
] | 1 | 2018-11-22T03:08:37.000Z | 2018-11-22T03:08:37.000Z | import sys
from time import sleep
from src.args import analyse_args
from src.options import random, backup, change_pass
from src.search import search
from src.stats import stats
from src.story import Story
from src.utils import CAPTURE_WAIT, ERROR, SlowPrinter, clear_screen
if __name__ == '__main__':
_name, args... | 46.948052 | 117 | 0.577593 | 444 | 3,615 | 4.641892 | 0.45045 | 0.020378 | 0.017467 | 0.02329 | 0.109656 | 0.028142 | 0 | 0 | 0 | 0 | 0 | 0.010922 | 0.316183 | 3,615 | 76 | 118 | 47.565789 | 0.822816 | 0.175104 | 0 | 0.245902 | 0 | 0 | 0.284512 | 0.007071 | 0 | 0 | 0 | 0 | 0.032787 | 0 | null | null | 0.032787 | 0.131148 | null | null | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1af830408f675ed4963f85ad247b3b67fac61af | 385 | py | Python | ghia/github/util.py | budikpet/MI-PYT_GHIA | e87e485edf657c0f326e7d70816ed3ffe1d6683b | [
"MIT"
] | null | null | null | ghia/github/util.py | budikpet/MI-PYT_GHIA | e87e485edf657c0f326e7d70816ed3ffe1d6683b | [
"MIT"
] | null | null | null | ghia/github/util.py | budikpet/MI-PYT_GHIA | e87e485edf657c0f326e7d70816ed3ffe1d6683b | [
"MIT"
] | null | null | null | import os
from typing import Tuple
def get_configs() -> Tuple[str, str]:
"""
Parses file paths to credentials and rules configuration files from GHIA_CONFIG environment variable.
Returns:
Tuple[str, str]: A tuple (path to credentials, path to rules)
"""
env = os.getenv("GHIA_CONFIG").split(":")
if "rules" ... | 24.0625 | 102 | 0.690909 | 60 | 385 | 4.383333 | 0.566667 | 0.045627 | 0.08365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015773 | 0.176623 | 385 | 16 | 103 | 24.0625 | 0.81388 | 0.47013 | 0 | 0 | 0 | 0 | 0.085427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 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 |
a1b0eafaa0b5c359cd073eea8f3deeefdd74acc7 | 5,683 | py | Python | camera/scripts/yellow.py | lacie-life/CBot | 7b9b6634d465e3fc1905a418b86d2f4f34158c6c | [
"MIT"
] | null | null | null | camera/scripts/yellow.py | lacie-life/CBot | 7b9b6634d465e3fc1905a418b86d2f4f34158c6c | [
"MIT"
] | null | null | null | camera/scripts/yellow.py | lacie-life/CBot | 7b9b6634d465e3fc1905a418b86d2f4f34158c6c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import cv2
import numpy as np
import rospy
from std_msgs.msg import String
import time
from Adafruit_MotorHAT import Adafruit_MotorHAT
#from std_msgs.msg import String
#from simple_pid import PID
GSTREAMER_PIPELINE = 'nvarguscamerasrc ! video/x-raw(memory:NVMM), width=640, height=480, format=(st... | 29.910526 | 268 | 0.581735 | 773 | 5,683 | 4.087969 | 0.270375 | 0.03038 | 0.045253 | 0.03038 | 0.249051 | 0.249051 | 0.176582 | 0.170253 | 0.157595 | 0.157595 | 0 | 0.048108 | 0.29773 | 5,683 | 189 | 269 | 30.068783 | 0.743673 | 0.096956 | 0 | 0.182482 | 0 | 0.007299 | 0.095303 | 0.004892 | 0 | 0 | 0.000783 | 0 | 0 | 0 | null | null | 0 | 0.043796 | null | null | 0.043796 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1ba1ea5f85fbeb9df90fc4c5117912631c0e3fb | 994 | py | Python | text_normalizer/factory/test/test_base_factory.py | Yoctol/text-normalizer | 3609c10cd229c08b4623531e82d2292fc370734c | [
"MIT"
] | 16 | 2018-04-16T08:59:34.000Z | 2021-01-21T06:05:45.000Z | text_normalizer/factory/test/test_base_factory.py | Yoctol/text-normalizer | 3609c10cd229c08b4623531e82d2292fc370734c | [
"MIT"
] | 12 | 2018-04-16T06:54:07.000Z | 2020-04-03T19:36:07.000Z | text_normalizer/factory/test/test_base_factory.py | Yoctol/text-normalizer | 3609c10cd229c08b4623531e82d2292fc370734c | [
"MIT"
] | 3 | 2019-06-03T02:21:46.000Z | 2021-09-16T11:57:03.000Z | from unittest import TestCase
from ..base_factory import BaseFactory
class TestBaseFactory(TestCase):
def setUp(self):
self.base_text_normalizer_class = BaseFactory()
self.base_text_normalizer_class_with_name = BaseFactory(name='123')
def test_attributes(self):
self.assertEqual(
... | 26.864865 | 83 | 0.576459 | 89 | 994 | 6.044944 | 0.292135 | 0.089219 | 0.133829 | 0.245353 | 0.598513 | 0.407063 | 0.315985 | 0.171004 | 0 | 0 | 0 | 0.009036 | 0.331992 | 994 | 36 | 84 | 27.611111 | 0.801205 | 0 | 0 | 0.266667 | 0 | 0 | 0.069417 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.1 | false | 0 | 0.066667 | 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 |
a1bd03e3331cbcbbf33a34ef1ec3d6df2690c375 | 654 | py | Python | aaulan/models/sponsor.py | AAULAN/aaulan2.0 | f0400914fe9e126a2dbf94cbce78cc34f976f3b8 | [
"MIT"
] | null | null | null | aaulan/models/sponsor.py | AAULAN/aaulan2.0 | f0400914fe9e126a2dbf94cbce78cc34f976f3b8 | [
"MIT"
] | null | null | null | aaulan/models/sponsor.py | AAULAN/aaulan2.0 | f0400914fe9e126a2dbf94cbce78cc34f976f3b8 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib import admin
from rest_framework import serializers
class Sponsor(models.Model):
class Meta:
verbose_name = 'Event sponsor'
name = models.CharField(max_length=100)
#logo = models.ImageField()
tagline = models.CharField(max_length=200)
link ... | 21.8 | 53 | 0.701835 | 75 | 654 | 6 | 0.56 | 0.044444 | 0.08 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.197248 | 654 | 29 | 54 | 22.551724 | 0.845714 | 0.039755 | 0 | 0.111111 | 0 | 0 | 0.051037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.055556 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1bf14b0eb937fb228ee18a29d0829f4e7ab2b09 | 12,894 | py | Python | elasticsearch_collectd.py | F4-Group/collectd-elasticsearch | 7443d82db9902a9e000d01606b666fe09d416eeb | [
"Apache-2.0"
] | null | null | null | elasticsearch_collectd.py | F4-Group/collectd-elasticsearch | 7443d82db9902a9e000d01606b666fe09d416eeb | [
"Apache-2.0"
] | null | null | null | elasticsearch_collectd.py | F4-Group/collectd-elasticsearch | 7443d82db9902a9e000d01606b666fe09d416eeb | [
"Apache-2.0"
] | null | null | null | # ! /usr/bin/python
# Copyright 2014 Jeremy Carroll
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 40.933333 | 121 | 0.658756 | 1,713 | 12,894 | 4.819615 | 0.166375 | 0.047965 | 0.069283 | 0.072069 | 0.441739 | 0.36422 | 0.266473 | 0.127907 | 0.102713 | 0.063227 | 0 | 0.005467 | 0.177137 | 12,894 | 314 | 122 | 41.063694 | 0.772667 | 0.078176 | 0 | 0.103774 | 0 | 0.004717 | 0.463983 | 0.315203 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033019 | 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 |
a1c3048581957ebd777e090b149832c967f7dd20 | 1,074 | py | Python | instagram_image_uploader/__main__.py | remorses/instagram-photo-uploader | 3ddc8e63a8342e9416c391adfbd7bae4679be8bc | [
"MIT"
] | null | null | null | instagram_image_uploader/__main__.py | remorses/instagram-photo-uploader | 3ddc8e63a8342e9416c391adfbd7bae4679be8bc | [
"MIT"
] | null | null | null | instagram_image_uploader/__main__.py | remorses/instagram-photo-uploader | 3ddc8e63a8342e9416c391adfbd7bae4679be8bc | [
"MIT"
] | null | null | null |
from instabotnet import execute
import getpass
import warnings
script = """
bot:
username: {{ username }}
password: {{ password }}
settings_path: {{ username + '_cookies.json' }}
actions:
-
name: post photo
nodes:
- {{ path }}
from: arg
edges:
- upload_post
"""
warnings.simplefi... | 24.409091 | 88 | 0.587523 | 117 | 1,074 | 5.358974 | 0.547009 | 0.051037 | 0.076555 | 0.102073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001282 | 0.273743 | 1,074 | 44 | 89 | 24.409091 | 0.802564 | 0.01676 | 0 | 0 | 0 | 0 | 0.420304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.131579 | 0.078947 | 0 | 0.105263 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a1c4d564c1c2efad138c19d2bc2e4d19231fc4f1 | 1,109 | py | Python | setup.py | ekumenlabs/terminus | ce6dcdc797011155e8fd52d40d910bdaf9bfe397 | [
"Apache-2.0"
] | 52 | 2016-10-12T17:54:10.000Z | 2021-09-29T04:06:24.000Z | setup.py | ekumenlabs/terminus | ce6dcdc797011155e8fd52d40d910bdaf9bfe397 | [
"Apache-2.0"
] | 216 | 2016-09-14T18:51:36.000Z | 2019-01-31T05:57:57.000Z | setup.py | ekumenlabs/terminus | ce6dcdc797011155e8fd52d40d910bdaf9bfe397 | [
"Apache-2.0"
] | 28 | 2016-09-21T17:55:23.000Z | 2021-09-29T04:06:25.000Z | """
Copyright (C) 2017 Open Source Robotics Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 28.435897 | 72 | 0.651037 | 136 | 1,109 | 5.294118 | 0.75 | 0.083333 | 0.036111 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013285 | 0.253381 | 1,109 | 38 | 73 | 29.184211 | 0.85628 | 0.518485 | 0 | 0 | 0 | 0 | 0.336502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1d4e5ddac20f1031b339557621136a0b12a579e | 20,713 | py | Python | low_prio_sound_gen.py | MarkusRJK/IEC-60601-1-8 | b1af07b39b2423d5c9be063d03d1044c8a9a98af | [
"MIT"
] | 1 | 2022-01-12T15:59:18.000Z | 2022-01-12T15:59:18.000Z | low_prio_sound_gen.py | MarkusRJK/IEC-60601-1-8 | b1af07b39b2423d5c9be063d03d1044c8a9a98af | [
"MIT"
] | null | null | null | low_prio_sound_gen.py | MarkusRJK/IEC-60601-1-8 | b1af07b39b2423d5c9be063d03d1044c8a9a98af | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import division
from wavtools import getVolumes
from wavtools import volumesOutOfDbRange
from wavtools import hasEnoughHarmonics
from wavtools import hasSignificantVolumesInsideDbRange
from wavtools import getMax
from wavtools import save_wav
from wavtools import IEC_60601_1_8_Pulse
... | 39.756238 | 219 | 0.601989 | 2,246 | 20,713 | 5.432769 | 0.199466 | 0.009179 | 0.011719 | 0.018112 | 0.275119 | 0.223078 | 0.1703 | 0.153581 | 0.147189 | 0.142763 | 0 | 0.034539 | 0.194853 | 20,713 | 520 | 220 | 39.832692 | 0.697128 | 0.144354 | 0 | 0.212766 | 0 | 0.00304 | 0.267806 | 0.012191 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006079 | 0.091185 | null | null | 0.25228 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1d5a012d5d7908b5f79d7eaa445a1a8fd148deb | 1,212 | py | Python | tests/_site/apps/catalogue/migrations/0019_option_required.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | null | null | null | tests/_site/apps/catalogue/migrations/0019_option_required.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | 5 | 2021-05-28T19:38:28.000Z | 2022-03-12T00:45:39.000Z | tests/_site/apps/catalogue/migrations/0019_option_required.py | Jean1508/ya-madoa | 1ffb1d11e15bf33e4c3a09698675a4357e887eaa | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1 on 2019-06-17 17:42
from django.db import migrations, models
def migrate_product_options(apps, schema_editor):
"""
Migrate product Option.type field to required
Set Option.type='text'
"""
Option = apps.get_model('catalogue', 'Option')
for option in Option.... | 31.894737 | 208 | 0.591584 | 125 | 1,212 | 5.624 | 0.528 | 0.056899 | 0.059744 | 0.056899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037246 | 0.268977 | 1,212 | 37 | 209 | 32.756757 | 0.756208 | 0.093234 | 0 | 0.16 | 1 | 0 | 0.162188 | 0.022073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1dc6de5d018442479dd847ccc711758b6b99fc0 | 4,556 | py | Python | src/cmd_exec/context/AppContext.py | ahuyuktepe/cmd-exec | 835037a4b7784d4901bf35db5eaa88a0757c5ce9 | [
"MIT"
] | null | null | null | src/cmd_exec/context/AppContext.py | ahuyuktepe/cmd-exec | 835037a4b7784d4901bf35db5eaa88a0757c5ce9 | [
"MIT"
] | 1 | 2021-06-07T21:25:52.000Z | 2021-06-07T21:25:52.000Z | src/cmd_exec/context/AppContext.py | ahuyuktepe/cmd-exec | 835037a4b7784d4901bf35db5eaa88a0757c5ce9 | [
"MIT"
] | null | null | null | from ..config.AppConfigs import AppConfigs
from ..error.CmdExecError import CmdExecError
from ..module.AppModule import AppModule
from ..service.ArgumentService import ArgumentService
from ..service.ConfigurationService import ConfigurationService
from ..service.ServiceBuilder import ServiceBuilder
class AppC... | 36.741935 | 106 | 0.589772 | 409 | 4,556 | 6.427873 | 0.254279 | 0.037657 | 0.013693 | 0.027387 | 0.026626 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003516 | 0.313213 | 4,556 | 123 | 107 | 37.04065 | 0.836689 | 0.325066 | 0 | 0 | 0 | 0 | 0.017164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.106061 | 0.060606 | 0.5 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1dcc15de710546452aac53b7b78812358893e0f | 450 | py | Python | url_test.py | DBeath/python-snippets | c9642c37183d947eb8a1a781e47bd70b1306d5ca | [
"MIT"
] | null | null | null | url_test.py | DBeath/python-snippets | c9642c37183d947eb8a1a781e47bd70b1306d5ca | [
"MIT"
] | 2 | 2019-10-19T07:27:43.000Z | 2021-03-22T16:58:21.000Z | url_test.py | DBeath/python-snippets | c9642c37183d947eb8a1a781e47bd70b1306d5ca | [
"MIT"
] | null | null | null | from werkzeug.urls import url_parse, url_fix
from pprint import pprint
from urllib.parse import urlsplit
# url = 'feeds://boingboing.com/testing/123?query=queryingtest'
url = 'boingboing.net'
parsed = url_parse(url, 'http')
pprint(parsed)
print()
replaced = parsed.replace(scheme='https')
pprint(replaced)
print(rep... | 15.517241 | 63 | 0.744444 | 62 | 450 | 5.322581 | 0.451613 | 0.048485 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01269 | 0.124444 | 450 | 28 | 64 | 16.071429 | 0.824873 | 0.135556 | 0 | 0.25 | 0 | 0 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
a1dd777e30ba67c1df9c906479791d4bdd994733 | 703 | py | Python | setup.py | jun66j5/trac-advancedticketworkflowplugin | 320e5b32586303f360b0a0154aefba77cab92899 | [
"BSD-3-Clause"
] | null | null | null | setup.py | jun66j5/trac-advancedticketworkflowplugin | 320e5b32586303f360b0a0154aefba77cab92899 | [
"BSD-3-Clause"
] | null | null | null | setup.py | jun66j5/trac-advancedticketworkflowplugin | 320e5b32586303f360b0a0154aefba77cab92899 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='AdvancedTicketWorkflowPlugin',
version='0.11',
author = 'Eli Carter',
author_email = 'elicarter@retracile.net',
license='BSD',
description = 'Advanced workflow operations Trac plugin',
... | 33.47619 | 102 | 0.650071 | 68 | 703 | 6.602941 | 0.764706 | 0.053452 | 0.115813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011152 | 0.234708 | 703 | 20 | 103 | 35.15 | 0.82342 | 0.052632 | 0 | 0 | 0 | 0 | 0.433735 | 0.158133 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1dfb9592068d8502d45c3857cbfeb1f2e086f7e | 31,478 | py | Python | src/libs/api.py | iicc/EauDouce | 6d9850c4b62309a6b88ec8a960ed54ffd641fa10 | [
"MIT"
] | null | null | null | src/libs/api.py | iicc/EauDouce | 6d9850c4b62309a6b88ec8a960ed54ffd641fa10 | [
"MIT"
] | null | null | null | src/libs/api.py | iicc/EauDouce | 6d9850c4b62309a6b88ec8a960ed54ffd641fa10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
EauDouce.libs.api
~~~~~~~~~~~~~~
Interface class.
:copyright: (c) 2017 by Mr.tao.
:license: MIT, see LICENSE for more details.
"""
import requests, sys, json
from config import PLUGINS
from torndb import IntegrityError
from utils.tool import logger, get_t... | 36.773364 | 185 | 0.534596 | 3,718 | 31,478 | 4.428725 | 0.110274 | 0.050832 | 0.036439 | 0.048099 | 0.555933 | 0.498421 | 0.452933 | 0.412 | 0.383032 | 0.351573 | 0 | 0.017335 | 0.340269 | 31,478 | 855 | 186 | 36.816374 | 0.775557 | 0.014582 | 0 | 0.515244 | 0 | 0.016768 | 0.19721 | 0.029372 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001524 | 0.007622 | 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 |
a1e078cdbde43e750df560557ee80e9869a6e413 | 324 | py | Python | third_party/closure_compiler/run_tests.py | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/closure_compiler/run_tests.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/closure_compiler/run_tests.py | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import compiler_test
import processor_test
for test_module in [compiler_test, processor_test]:
test_module.unittest.main(test_modu... | 24.923077 | 72 | 0.790123 | 52 | 324 | 4.788462 | 0.730769 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.148148 | 324 | 12 | 73 | 27 | 0.887681 | 0.54321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a1e1c3d609fc8c51b78d1d502eaa2138b9e9517d | 668 | py | Python | settings.py | dev-abir/aiPlays-python | 1ae229c42941a7c0466b9a62ac603f5e714f266c | [
"MIT"
] | null | null | null | settings.py | dev-abir/aiPlays-python | 1ae229c42941a7c0466b9a62ac603f5e714f266c | [
"MIT"
] | null | null | null | settings.py | dev-abir/aiPlays-python | 1ae229c42941a7c0466b9a62ac603f5e714f266c | [
"MIT"
] | null | null | null |
'''
# settings ###################################################################################
'''
WINDOW_WIDTH = 1280
WINDOW_HEIGHT = 720
PIPE_VERT_DIST = 200 # vertical distance between pipes
NUM_PIPES_PER_FRAME = 3 # number of fully visible pipes per frame
PIPE_MOVEMENT_SPEED = 5 # 200 pixels per frame...
F... | 23.857143 | 94 | 0.664671 | 97 | 668 | 4.257732 | 0.670103 | 0.077482 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062937 | 0.143713 | 668 | 27 | 95 | 24.740741 | 0.659091 | 0.36976 | 0 | 0 | 0 | 0 | 0.07335 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1e404bc208c0841715e627467526eb7f9db2f6a | 3,178 | py | Python | reimzul-mqtt-sub.py | psgreco/reimzul | 29d38553b5d7a65f55e33097bfbb3f3cd96f8f32 | [
"Apache-2.0"
] | 10 | 2018-04-24T08:34:14.000Z | 2021-11-04T06:53:51.000Z | reimzul-mqtt-sub.py | potatogim/reimzul | 7b7a81e2766c68de3dac5c2c3486c59f5fe18e28 | [
"Apache-2.0"
] | 2 | 2018-11-03T17:42:18.000Z | 2018-11-05T15:18:16.000Z | reimzul-mqtt-sub.py | potatogim/reimzul | 7b7a81e2766c68de3dac5c2c3486c59f5fe18e28 | [
"Apache-2.0"
] | 3 | 2018-11-05T20:33:43.000Z | 2021-11-04T06:08:51.000Z | #!/usr/bin/env python
import paho.mqtt.client as mqtt
import os
import ConfigParser
import json
import time
import subprocess
import tempfile
import shutil
import json
import beanstalkc
# Config file used for variables
config_file = '/etc/reimzul/reimzul.ini'
config = ConfigParser.SafeConfigParser()
config.read(confi... | 33.808511 | 193 | 0.696979 | 471 | 3,178 | 4.501062 | 0.33758 | 0.029717 | 0.042925 | 0.022642 | 0.021698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017004 | 0.130271 | 3,178 | 93 | 194 | 34.172043 | 0.75 | 0.034613 | 0 | 0.078947 | 0 | 0.013158 | 0.188316 | 0.039164 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.131579 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1e4faa8c0db29c78de180de18be0ca4357c118c | 506 | py | Python | iqps/data/migrations/0006_auto_20200809_1841.py | pasthorizon/iqps | 6d9b027432615338c97b95fb0ef4da52c9794554 | [
"MIT"
] | 19 | 2020-05-04T14:29:22.000Z | 2020-12-19T06:58:49.000Z | iqps/data/migrations/0006_auto_20200809_1841.py | pasthorizon/iqps | 6d9b027432615338c97b95fb0ef4da52c9794554 | [
"MIT"
] | 46 | 2020-06-25T15:38:15.000Z | 2021-09-22T18:57:42.000Z | iqps/data/migrations/0006_auto_20200809_1841.py | pasthorizon/iqps | 6d9b027432615338c97b95fb0ef4da52c9794554 | [
"MIT"
] | 25 | 2020-07-05T18:29:17.000Z | 2020-12-20T11:21:22.000Z | # Generated by Django 3.0.4 on 2020-08-09 18:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0005_auto_20200802_1525'),
]
operations = [
migrations.AlterField(
model_name='paper',
name='paper_type',
... | 26.631579 | 170 | 0.579051 | 59 | 506 | 4.864407 | 0.79661 | 0.062718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.23913 | 506 | 18 | 171 | 28.111111 | 0.65974 | 0.088933 | 0 | 0 | 1 | 0 | 0.222222 | 0.050109 | 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 |
a1eb3a914c2da430953699a1458a475940c1fcdd | 2,509 | py | Python | dpmModule/jobs/store.py | kmsiapps/maplestory_dpm_calc | fbbc5384fdb6aefb58aa4d0d286a6c2972807d57 | [
"MIT"
] | null | null | null | dpmModule/jobs/store.py | kmsiapps/maplestory_dpm_calc | fbbc5384fdb6aefb58aa4d0d286a6c2972807d57 | [
"MIT"
] | null | null | null | dpmModule/jobs/store.py | kmsiapps/maplestory_dpm_calc | fbbc5384fdb6aefb58aa4d0d286a6c2972807d57 | [
"MIT"
] | null | null | null | from functools import partial
'''
store.py :: Store for graph element
사용자들은 그래프를 빌드한 이후에, 그래프 간의 상호작용을 정의하거나, 그래프 내의 원소들에 제약을 부여하는 등 내부 요소에 접근하고 싶을 수 있습니다.
그러나, ScheduleGraph Object는 내부적으로는 모든 그래프 요소를 Tracking 할 수 있으나, 명시적으로 그래프 요소에 접근하는 행위를 허용하고 있지는 않습니다.
이는 그래프 요소에 접근하는 행위가 통제되지 않은 변경을 유발하여 내부 로직을 망가뜨리거나, 잘못된 결과물을 ... | 44.017544 | 156 | 0.687126 | 343 | 2,509 | 4.787172 | 0.478134 | 0.060292 | 0.065773 | 0.095006 | 0.261267 | 0.101096 | 0.101096 | 0 | 0 | 0 | 0 | 0.002115 | 0.246313 | 2,509 | 57 | 157 | 44.017544 | 0.866208 | 0 | 0 | 0.074074 | 0 | 0 | 0.086747 | 0.046988 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | 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 |
a1f08d19916ad2bcafde5a67743e4f10cca3d748 | 489 | py | Python | tests/app/notify_client/test_inbound_number_client.py | cds-snc/notifier-admin | 69aab94cb8d1711488e471cac52223c7f9f6f90e | [
"MIT"
] | 16 | 2019-11-05T21:35:49.000Z | 2022-01-12T15:00:32.000Z | tests/app/notify_client/test_inbound_number_client.py | cds-snc/notification-admin | d4056798bf889ad29893667bbb67ead2f8e466e4 | [
"MIT"
] | 509 | 2019-07-11T22:03:19.000Z | 2022-03-30T15:19:26.000Z | tests/app/notify_client/test_inbound_number_client.py | cds-snc/notifier-admin | 69aab94cb8d1711488e471cac52223c7f9f6f90e | [
"MIT"
] | 8 | 2020-02-21T20:19:29.000Z | 2022-03-31T14:17:02.000Z | from app.notify_client.inbound_number_client import InboundNumberClient
def test_add_inbound_sms_number(mocker, api_user_active):
inbound_number = "12345678901"
expected_url = "/inbound-number/add"
client = InboundNumberClient()
mock_post = mocker.patch("app.notify_client.inbound_number_client.Inboun... | 37.615385 | 96 | 0.809816 | 62 | 489 | 5.967742 | 0.435484 | 0.245946 | 0.081081 | 0.118919 | 0.183784 | 0.183784 | 0 | 0 | 0 | 0 | 0 | 0.025114 | 0.104294 | 489 | 12 | 97 | 40.75 | 0.819635 | 0 | 0 | 0 | 0 | 0 | 0.220859 | 0.130879 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 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 |
a1f17ca1ee66791c4d608df7b93235e3ed86f619 | 1,951 | py | Python | registration_eval/multimodal_vishal/random_tfom_error_summary.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | 2 | 2015-09-18T00:17:16.000Z | 2019-02-06T04:41:29.000Z | registration_eval/multimodal_vishal/random_tfom_error_summary.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | registration_eval/multimodal_vishal/random_tfom_error_summary.py | mirestrepo/voxels-at-lems | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Maria Isabel Restrepo
# @Date: 2014-02-28 11:04:16
# @Last Modified by: Maria Isabel Restrepo
# @Last Modified time: 2014-02-28 11:19:29
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Maria Isabel Restrepo
# @Date: 2014-01-17 16:38:15
# Script to... | 25.671053 | 76 | 0.568939 | 253 | 1,951 | 4.237154 | 0.426877 | 0.041978 | 0.053172 | 0.039179 | 0.201493 | 0.16791 | 0.16791 | 0.16791 | 0.108209 | 0.108209 | 0 | 0.035564 | 0.149667 | 1,951 | 75 | 77 | 26.013333 | 0.610609 | 0.171707 | 0 | 0.097561 | 0 | 0 | 0.275733 | 0.171553 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146341 | null | null | 0.219512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1f4d0337d7c4be011779c681c8cf8488258adc8 | 365 | py | Python | nomadgram/images/migrations/0003_auto_20181009_0801.py | nanobeauty/nomadgram | e8792405ec2620d98bef980fd3d5cdfe358d2210 | [
"MIT"
] | null | null | null | nomadgram/images/migrations/0003_auto_20181009_0801.py | nanobeauty/nomadgram | e8792405ec2620d98bef980fd3d5cdfe358d2210 | [
"MIT"
] | 5 | 2020-06-05T19:24:18.000Z | 2021-09-08T00:38:57.000Z | nomadgram/images/migrations/0003_auto_20181009_0801.py | nanobeauty/nomadgram | e8792405ec2620d98bef980fd3d5cdfe358d2210 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-10-09 08:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('images', '0002_auto_20181007_1001'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='comment',
... | 19.210526 | 47 | 0.586301 | 39 | 365 | 5.333333 | 0.820513 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121569 | 0.30137 | 365 | 18 | 48 | 20.277778 | 0.694118 | 0.123288 | 0 | 0 | 1 | 0 | 0.157233 | 0.072327 | 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 |
a1f7ed50b64365d06c63e6848d99958eca38a6b8 | 7,051 | py | Python | gslab_scons/tests/test_log.py | lboxell/gslab_python | 0e6d687962146d8745cd80d5c888c69647863d2d | [
"MIT"
] | null | null | null | gslab_scons/tests/test_log.py | lboxell/gslab_python | 0e6d687962146d8745cd80d5c888c69647863d2d | [
"MIT"
] | null | null | null | gslab_scons/tests/test_log.py | lboxell/gslab_python | 0e6d687962146d8745cd80d5c888c69647863d2d | [
"MIT"
] | null | null | null | import unittest
import sys
import os
import re
import mock
import time
# Import gslab_scons testing helpers
import _test_helpers as helpers
# Ensure that Python can find and load the GSLab libraries
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append('../..')
import gslab_scons.log as gs
import gsla... | 35.432161 | 79 | 0.60729 | 917 | 7,051 | 4.490731 | 0.196292 | 0.054395 | 0.033997 | 0.047596 | 0.492958 | 0.423021 | 0.423021 | 0.354541 | 0.306702 | 0.26202 | 0 | 0.005044 | 0.268898 | 7,051 | 198 | 80 | 35.611111 | 0.793792 | 0.091051 | 0 | 0.418033 | 0 | 0 | 0.152138 | 0.014741 | 0 | 0 | 0 | 0 | 0.163934 | 0 | null | null | 0 | 0.090164 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b8019cda4cc391a603aed739478af71eed861176 | 6,771 | py | Python | mlonmcu/target/common.py | tum-ei-eda/mlonmcu | 0d5c114b85f2ae9e48e7d815bfce8df04c2bdb46 | [
"Apache-2.0"
] | 3 | 2022-03-07T09:38:12.000Z | 2022-03-24T09:28:36.000Z | mlonmcu/target/common.py | tum-ei-eda/mlonmcu | 0d5c114b85f2ae9e48e7d815bfce8df04c2bdb46 | [
"Apache-2.0"
] | 24 | 2022-03-07T16:09:32.000Z | 2022-03-31T08:08:51.000Z | mlonmcu/target/common.py | tum-ei-eda/mlonmcu | 0d5c114b85f2ae9e48e7d815bfce8df04c2bdb46 | [
"Apache-2.0"
] | 1 | 2022-03-07T09:38:17.000Z | 2022-03-07T09:38:17.000Z | #
# Copyright (c) 2022 TUM Department of Electrical and Computer Engineering.
#
# This file is part of MLonMCU.
# See https://github.com/tum-ei-eda/mlonmcu.git for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You m... | 34.723077 | 112 | 0.660464 | 855 | 6,771 | 5.08538 | 0.284211 | 0.027599 | 0.018399 | 0.015179 | 0.233671 | 0.209292 | 0.209292 | 0.209292 | 0.185373 | 0.165133 | 0 | 0.002336 | 0.241323 | 6,771 | 194 | 113 | 34.902062 | 0.844072 | 0.264658 | 0 | 0.217391 | 0 | 0 | 0.123726 | 0 | 0 | 0 | 0 | 0.010309 | 0.026087 | 1 | 0.052174 | false | 0 | 0.06087 | 0 | 0.13913 | 0.026087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b80322d5ace57f6017e42528eb56f15c36c1535e | 11,217 | py | Python | flow/flow_optim_v1_forward_return.py | jokbull/benew_model | 12dfcfcf48a8fd14d62faee5e79e9ac83b0f02d7 | [
"MIT"
] | 1 | 2019-05-27T02:13:47.000Z | 2019-05-27T02:13:47.000Z | flow/flow_optim_v1_forward_return.py | jokbull/benew_model | 12dfcfcf48a8fd14d62faee5e79e9ac83b0f02d7 | [
"MIT"
] | null | null | null | flow/flow_optim_v1_forward_return.py | jokbull/benew_model | 12dfcfcf48a8fd14d62faee5e79e9ac83b0f02d7 | [
"MIT"
] | null | null | null | from model.breakdown.Optimization.L1Norm.L1Norm import *
from collider.const import FACTOR_STYLE
from collider.sensor.get_factor_list import FactorList
from collider.utils.data_process import DataProcessing
from sensor.optimization_stock_weight_v2tc import OptimizationStockWeightV2tc
from sensor.get_fundamental_pool_v... | 53.927885 | 116 | 0.380137 | 807 | 11,217 | 4.987608 | 0.225527 | 0.046211 | 0.163975 | 0.035776 | 0.499876 | 0.455155 | 0.397019 | 0.30087 | 0.30087 | 0.292919 | 0 | 0.050425 | 0.538558 | 11,217 | 207 | 117 | 54.188406 | 0.725657 | 0.027726 | 0 | 0.488372 | 0 | 0 | 0.178522 | 0.065902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.052326 | 0 | 0.075581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b809058cc662c930d32404d13bbbc9971e33f97b | 1,795 | py | Python | src/test.py | charlierlee/deep-RL-trading | 786c13d0eed0ad7f343868a1ebd0078c90400c7c | [
"MIT"
] | null | null | null | src/test.py | charlierlee/deep-RL-trading | 786c13d0eed0ad7f343868a1ebd0078c90400c7c | [
"MIT"
] | null | null | null | src/test.py | charlierlee/deep-RL-trading | 786c13d0eed0ad7f343868a1ebd0078c90400c7c | [
"MIT"
] | null | null | null | from lib import *
from sampler import *
from agents import *
from emulator import *
from simulators import *
from visualizer import *
from main import *
import os
import pickle
import matplotlib
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def main():
"""
it is recommended to generate datab... | 29.916667 | 96 | 0.741504 | 268 | 1,795 | 4.727612 | 0.414179 | 0.047356 | 0.023678 | 0.022099 | 0.025257 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026198 | 0.128134 | 1,795 | 59 | 97 | 30.423729 | 0.783387 | 0.079666 | 0 | 0 | 0 | 0 | 0.058036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.351351 | 0 | 0.378378 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b81493172514f56d956846d4107408eac80ae955 | 1,889 | py | Python | rig/config.py | tgbugs/mlab | dacc1663cbe714bb45c31b1b133fddb7ebcf5c79 | [
"MIT"
] | null | null | null | rig/config.py | tgbugs/mlab | dacc1663cbe714bb45c31b1b133fddb7ebcf5c79 | [
"MIT"
] | null | null | null | rig/config.py | tgbugs/mlab | dacc1663cbe714bb45c31b1b133fddb7ebcf5c79 | [
"MIT"
] | null | null | null | """ This is the config file for the rig, it contains functions that set
sane defaults for different bits of the rig, at some point this may be
converted so that those defaults can be saved in the database, but that
may not really matter since these measures will be taken elsewhere too
This file will be... | 31.483333 | 99 | 0.56432 | 233 | 1,889 | 4.459227 | 0.532189 | 0.030799 | 0.040423 | 0.049086 | 0.042348 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019763 | 0.330334 | 1,889 | 59 | 100 | 32.016949 | 0.801581 | 0.323981 | 0 | 0 | 0 | 0 | 0.192954 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.081081 | false | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b816321c99394a9a0e5b289435e0ed1d93d57542 | 4,225 | py | Python | collect_pic.py | gamblenull1996/zhihu_favorites_spider | dfec59854c2a16d57070081f101bb27b03eb8896 | [
"MIT"
] | 7 | 2017-06-10T16:13:29.000Z | 2020-06-13T04:08:00.000Z | collect_pic.py | CooperNiu/zhihu_favorites_spider | dfec59854c2a16d57070081f101bb27b03eb8896 | [
"MIT"
] | 1 | 2017-05-08T09:07:13.000Z | 2017-05-08T11:02:45.000Z | collect_pic.py | CooperNiu/zhihu_favorites_spider | dfec59854c2a16d57070081f101bb27b03eb8896 | [
"MIT"
] | 3 | 2021-01-26T09:45:34.000Z | 2021-12-11T23:26:08.000Z | #-*- coding:utf-8 -*-
import os
import sys
import time
import requests
from bs4 import BeautifulSoup
reload(sys)
sys.setdefaultencoding('utf-8')
"""
分析
<div class="zh-summary summary clearfix">
<img data-rawheight="1280" data-width="960" ....
class="origin_image inline-img zh-lightbox-thumb"
data-original... | 31.066176 | 147 | 0.588402 | 560 | 4,225 | 4.326786 | 0.346429 | 0.006603 | 0.004953 | 0.017334 | 0.247627 | 0.23442 | 0.23442 | 0.23442 | 0.23442 | 0.23442 | 0 | 0.047422 | 0.256331 | 4,225 | 135 | 148 | 31.296296 | 0.723743 | 0.015858 | 0 | 0.209302 | 0 | 0.046512 | 0.262763 | 0.063167 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05814 | null | null | 0.081395 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b817488f5759fc9502f69e1ebea6fe8430f314c1 | 1,224 | py | Python | django_any/tests/test_model_creation_constraint.py | kadych/django-whatever | 8b706a2728c8f3f80bbce7191f83285238eb975b | [
"MIT"
] | null | null | null | django_any/tests/test_model_creation_constraint.py | kadych/django-whatever | 8b706a2728c8f3f80bbce7191f83285238eb975b | [
"MIT"
] | null | null | null | django_any/tests/test_model_creation_constraint.py | kadych/django-whatever | 8b706a2728c8f3f80bbce7191f83285238eb975b | [
"MIT"
] | null | null | null | # -*- coding: utf-8; mode: django -*-
"""
Models that have custom validation checks
"""
from django.core.exceptions import ValidationError
from django.db import models
from django.test import TestCase
from django_any.models import any_model
class ModelWithConstraint(models.Model):
"""
Validates that start_tim... | 29.142857 | 85 | 0.736111 | 144 | 1,224 | 6.0625 | 0.381944 | 0.061856 | 0.052692 | 0.038946 | 0.128293 | 0.071019 | 0.071019 | 0 | 0 | 0 | 0 | 0.000995 | 0.178922 | 1,224 | 41 | 86 | 29.853659 | 0.867662 | 0.106209 | 0 | 0.173913 | 0 | 0 | 0.054206 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.130435 | false | 0.043478 | 0.173913 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b81fa444d038fe491ea91dea83e85d924df89dfd | 34,353 | py | Python | elastipy/query/generated_classes.py | defgsus/elastipy | c1144ab39fa70571ba0e02ccf41d380a8a1bd730 | [
"Apache-2.0"
] | 1 | 2021-02-17T17:50:28.000Z | 2021-02-17T17:50:28.000Z | elastipy/query/generated_classes.py | defgsus/elastipy | c1144ab39fa70571ba0e02ccf41d380a8a1bd730 | [
"Apache-2.0"
] | 2 | 2021-03-29T02:09:41.000Z | 2022-03-01T20:09:48.000Z | elastipy/query/generated_classes.py | netzkolchose/elastipy | c1144ab39fa70571ba0e02ccf41d380a8a1bd730 | [
"Apache-2.0"
] | null | null | null | # auto-generated file - do not edit
from datetime import date, datetime
from typing import Mapping, Sequence, Any, Union, Optional
from .query import Query, QueryInterface
__all__ = (
"_Bool", "Match", "_MatchAll", "_MatchNone", "QueryString", "Range", "Term",
"_Terms"
)
class _Bool(Query, factory=False):
... | 43.706107 | 683 | 0.641487 | 4,205 | 34,353 | 5.13365 | 0.10107 | 0.015936 | 0.029879 | 0.033863 | 0.717423 | 0.683189 | 0.650021 | 0.626164 | 0.593691 | 0.554778 | 0 | 0.004662 | 0.269496 | 34,353 | 785 | 684 | 43.761783 | 0.855469 | 0.672285 | 0 | 0.427027 | 1 | 0 | 0.135002 | 0.017305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043243 | false | 0 | 0.016216 | 0 | 0.210811 | 0 | 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 |
6293d305ce4d4f297861c33087fbe6ee3926a87a | 2,165 | py | Python | rss_converter.py | dzzh/google-alerts-to-slack | 744ce3ca854c2347ae53cb458d3c9081d26ce5a1 | [
"Unlicense"
] | 7 | 2018-05-14T16:43:41.000Z | 2021-10-30T12:05:30.000Z | rss_converter.py | dzzh/google-alerts-to-slack | 744ce3ca854c2347ae53cb458d3c9081d26ce5a1 | [
"Unlicense"
] | null | null | null | rss_converter.py | dzzh/google-alerts-to-slack | 744ce3ca854c2347ae53cb458d3c9081d26ce5a1 | [
"Unlicense"
] | 1 | 2018-01-24T11:30:14.000Z | 2018-01-24T11:30:14.000Z | import cStringIO
import feeds
from flask import Flask
import urllib2
import urlparse as urlparse2
import xml.etree.ElementTree as ET
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
@app.route('/feed/<feed_route>')
def handle_feed(feed_route):
for feed in feeds.FEEDS:
... | 23.532609 | 77 | 0.670208 | 290 | 2,165 | 4.834483 | 0.32069 | 0.032097 | 0.025678 | 0.038516 | 0.055635 | 0.028531 | 0 | 0 | 0 | 0 | 0 | 0.011514 | 0.197691 | 2,165 | 91 | 78 | 23.791209 | 0.795625 | 0 | 0 | 0.031746 | 0 | 0 | 0.107159 | 0.012471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62a46c8e7666689d4cddc23f6df8ff1ff650dcd2 | 1,363 | py | Python | kvuilder/data/templates/service/main.py | aorizondo/kvuilder | a4c4f7d017c364a4f39044c63c3594e6bd18ef01 | [
"MIT"
] | null | null | null | kvuilder/data/templates/service/main.py | aorizondo/kvuilder | a4c4f7d017c364a4f39044c63c3594e6bd18ef01 | [
"MIT"
] | null | null | null | kvuilder/data/templates/service/main.py | aorizondo/kvuilder | a4c4f7d017c364a4f39044c63c3594e6bd18ef01 | [
"MIT"
] | null | null | null | from os.path import join
from time import sleep
from kivy.storage.dictstore import DictStore
from kivy import Logger
from libs.core.rpc import API, send_message
try:
from android.storage import app_storage_path
from jnius import autoclass
PythonService = autoclass('org.kivy.android.PythonService')
P... | 33.243902 | 101 | 0.688921 | 167 | 1,363 | 5.443114 | 0.419162 | 0.121012 | 0.158416 | 0.083608 | 0.129813 | 0.129813 | 0 | 0 | 0 | 0 | 0 | 0.013674 | 0.195158 | 1,363 | 40 | 102 | 34.075 | 0.81495 | 0 | 0 | 0.066667 | 0 | 0 | 0.264857 | 0.159208 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | 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 |
62a6e28d082b6045ae201c5d8de97482aa4bfb9b | 659 | py | Python | volebni_kalkulacka/psp_data/migrations/0009_auto_20210228_0036.py | tmajerech/volebni_kalkulacka | dfe0533d4359806ff8f90bd7aa1c679b4a016d09 | [
"MIT"
] | null | null | null | volebni_kalkulacka/psp_data/migrations/0009_auto_20210228_0036.py | tmajerech/volebni_kalkulacka | dfe0533d4359806ff8f90bd7aa1c679b4a016d09 | [
"MIT"
] | 1 | 2021-02-12T10:03:31.000Z | 2021-02-12T10:03:31.000Z | volebni_kalkulacka/psp_data/migrations/0009_auto_20210228_0036.py | tmajerech/volebni_kalkulacka | dfe0533d4359806ff8f90bd7aa1c679b4a016d09 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.12 on 2021-02-27 23:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('psp_data', '0008_auto_20210228_0034'),
]
operations = [
migrations.AlterField(
model_name='pre... | 26.36 | 129 | 0.620637 | 76 | 659 | 5.197368 | 0.631579 | 0.060759 | 0.070886 | 0.111392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065708 | 0.261002 | 659 | 24 | 130 | 27.458333 | 0.74538 | 0.069803 | 0 | 0.222222 | 1 | 0 | 0.140753 | 0.037643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 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 |
62a704d3379e1e48fe4590e8472f3583c2ce8acd | 2,239 | py | Python | Ambyar-TesOtp/SpamIndihome_Deob.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | Ambyar-TesOtp/SpamIndihome_Deob.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | Ambyar-TesOtp/SpamIndihome_Deob.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | import requests, sys, re
from concurrent.futures import ThreadPoolExecutor
def gas(no):
s = requests.Session()
url = "https://www.indihome.co.id/verifikasi-layanan/login-otp"
req = s.get(url).text
token = re.findall(r"name=\"_token\" value=\"(.*?)\"", req)[0]
data = {
"_token":token,
"msisdn":no
}
spam... | 25.443182 | 67 | 0.351496 | 205 | 2,239 | 6.004878 | 0.570732 | 0.028432 | 0.034119 | 0.032494 | 0.05199 | 0.05199 | 0.05199 | 0 | 0 | 0 | 0 | 0.022152 | 0.294328 | 2,239 | 87 | 68 | 25.735632 | 0.468987 | 0 | 0 | 0.184211 | 0 | 0 | 0.567664 | 0.265744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.013158 | 0.026316 | 0 | 0.065789 | 0.131579 | 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 |
62ac411bb9a924706032981e958f4909a3ff573b | 3,675 | py | Python | main/wp_detect.py | Ollen/wp-scanner | 58b0452162e0a92ce5bc24eb6f0a2083f93a6774 | [
"MIT"
] | null | null | null | main/wp_detect.py | Ollen/wp-scanner | 58b0452162e0a92ce5bc24eb6f0a2083f93a6774 | [
"MIT"
] | null | null | null | main/wp_detect.py | Ollen/wp-scanner | 58b0452162e0a92ce5bc24eb6f0a2083f93a6774 | [
"MIT"
] | null | null | null | """ Finds the WordPress dir. and detect its version in the FTP server """
import re
from os import walk
from os.path import normpath, join
#from ftp_connector import ftp_connect
def change_wp_dir(con, wp_path):
""" Changes the WP file directory in the FTP connection server
Change the FTPutil connection dire... | 36.386139 | 109 | 0.647619 | 512 | 3,675 | 4.554688 | 0.248047 | 0.033448 | 0.013722 | 0.01801 | 0.340909 | 0.246141 | 0.15952 | 0.095197 | 0.066895 | 0.066895 | 0 | 0.001836 | 0.259048 | 3,675 | 101 | 110 | 36.386139 | 0.854572 | 0.04381 | 0 | 0.14 | 0 | 0 | 0.221996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.26 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62acee347ad9034316b1598a2dff7b4a45b96145 | 1,227 | py | Python | p187_repeated_dna_sequences.py | feigaochn/leetcode | abf0877fae02aa9c2549051f0b68df0ace952512 | [
"MIT"
] | null | null | null | p187_repeated_dna_sequences.py | feigaochn/leetcode | abf0877fae02aa9c2549051f0b68df0ace952512 | [
"MIT"
] | null | null | null | p187_repeated_dna_sequences.py | feigaochn/leetcode | abf0877fae02aa9c2549051f0b68df0ace952512 | [
"MIT"
] | null | null | null | #!/bin/env python3
# author: Fei Gao
#
# Repeated Dna Sequences
#
# All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA.
# Write a function to find all the 10-letter-long sequenc... | 27.266667 | 195 | 0.624287 | 153 | 1,227 | 4.954248 | 0.562092 | 0.026385 | 0.015831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014444 | 0.266504 | 1,227 | 44 | 196 | 27.886364 | 0.827778 | 0.416463 | 0 | 0.083333 | 0 | 0 | 0.078348 | 0.045584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.041667 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
62b3838c10149d00d3030d186d99b63fdf3343ca | 11,627 | py | Python | npfc/report.py | mpimp-comas/npfc | 316156a8826759d767ef16833cd4f0670868693e | [
"MIT"
] | 6 | 2021-07-22T07:05:23.000Z | 2021-11-16T11:23:53.000Z | npfc/report.py | mpimp-comas/npfc | 316156a8826759d767ef16833cd4f0670868693e | [
"MIT"
] | 4 | 2021-08-10T11:48:25.000Z | 2021-09-13T07:53:42.000Z | npfc/report.py | mpimp-comas/npfc | 316156a8826759d767ef16833cd4f0670868693e | [
"MIT"
] | 2 | 2021-07-22T07:05:26.000Z | 2021-09-13T11:03:43.000Z | """
Module report
================
A module with helper functions for computing pre-defined plots for the analysis
of fragment combinations.
"""
import warnings
import logging
import argparse
import sys
from shutil import rmtree
from datetime import datetime
import re
from pathlib import Path
from collections import ... | 38.5 | 187 | 0.653565 | 1,677 | 11,627 | 4.335719 | 0.19678 | 0.030945 | 0.032183 | 0.008665 | 0.278916 | 0.223491 | 0.191858 | 0.167102 | 0.161188 | 0.144409 | 0 | 0.005176 | 0.202374 | 11,627 | 301 | 188 | 38.627907 | 0.778844 | 0.262406 | 0 | 0.144509 | 0 | 0.00578 | 0.178448 | 0.018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057803 | false | 0.138728 | 0.17341 | 0 | 0.283237 | 0.00578 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62b543ab6e48353d3a35310c93cd2b3ed5124590 | 441 | py | Python | examples/example_test/main.py | XiaYoung/XYNodeEditor | 0846733874cae499ca4a3851a2a9e52e9592b0d0 | [
"MIT"
] | null | null | null | examples/example_test/main.py | XiaYoung/XYNodeEditor | 0846733874cae499ca4a3851a2a9e52e9592b0d0 | [
"MIT"
] | null | null | null | examples/example_test/main.py | XiaYoung/XYNodeEditor | 0846733874cae499ca4a3851a2a9e52e9592b0d0 | [
"MIT"
] | null | null | null | import os
import sys
import inspect
from PySide2.QtWidgets import QApplication
from xynodeeditor.utils import loadStylesheet
from xynodeeditor.node_editor_window import NodeEditorWindow
if __name__ == '__main__':
app = QApplication(sys.argv)
wnd = NodeEditorWindow()
module_path = os.path.dirname(inspec... | 22.05 | 66 | 0.768707 | 54 | 441 | 5.962963 | 0.574074 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002632 | 0.138322 | 441 | 19 | 67 | 23.210526 | 0.844737 | 0 | 0 | 0 | 0 | 0 | 0.056689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62b80149c9e4d32b11a4dd9b0fb3a92ad5eb803e | 485 | py | Python | setup.py | JamesRCr/Alethtils | f1f92fadf8900f0ee74f86c3fe3ac781c6a4e721 | [
"MIT"
] | null | null | null | setup.py | JamesRCr/Alethtils | f1f92fadf8900f0ee74f86c3fe3ac781c6a4e721 | [
"MIT"
] | null | null | null | setup.py | JamesRCr/Alethtils | f1f92fadf8900f0ee74f86c3fe3ac781c6a4e721 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='alethtils',
url='https://github.com/JamesRCr/Alethtils',
author='James Ronald Crowley',
email='j.crowely@mail.utoronto.ca',
packages=['alethtils'],
install_requirements=['logging',
'functools',
'timeit... | 28.529412 | 74 | 0.610309 | 50 | 485 | 5.88 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005479 | 0.247423 | 485 | 16 | 75 | 30.3125 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.397938 | 0.053608 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62b8bfd386615dd9658a7a7bd77d74dd3866e727 | 1,285 | py | Python | Datacamp Assignments/NLP Skills Track/1. NLP Fundamentals/4_nltk_regex.py | Ali-Parandeh/Data_Science_Playground | c529e9b3692381572de259e7c93938d6611d83da | [
"MIT"
] | null | null | null | Datacamp Assignments/NLP Skills Track/1. NLP Fundamentals/4_nltk_regex.py | Ali-Parandeh/Data_Science_Playground | c529e9b3692381572de259e7c93938d6611d83da | [
"MIT"
] | null | null | null | Datacamp Assignments/NLP Skills Track/1. NLP Fundamentals/4_nltk_regex.py | Ali-Parandeh/Data_Science_Playground | c529e9b3692381572de259e7c93938d6611d83da | [
"MIT"
] | 1 | 2021-03-10T09:40:05.000Z | 2021-03-10T09:40:05.000Z | # Unlike the syntax for the regex library, with nltk_tokenize() you pass the pattern as the second argument.
# Import the necessary modules
from nltk.tokenize import regexp_tokenize
from nltk.tokenize import TweetTokenizer
# Define a regex pattern to find hashtags: pattern1
pattern1 = r"#\w+"
# Use the pattern on the ... | 40.15625 | 108 | 0.722179 | 175 | 1,285 | 5.245714 | 0.388571 | 0.091503 | 0.104575 | 0.143791 | 0.423747 | 0.380174 | 0.380174 | 0.336601 | 0.336601 | 0.336601 | 0 | 0.007201 | 0.135409 | 1,285 | 32 | 109 | 40.15625 | 0.819082 | 0.554864 | 0 | 0.4 | 0 | 0 | 0.023723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62bb0cdcbded18426020b6ceb16e9f738accabb6 | 4,624 | py | Python | plot/io_tache.py | dh4gan/tache | 51ed037769ecc4fdadc591e3b3619416c79e65b7 | [
"MIT"
] | 5 | 2018-02-27T04:07:15.000Z | 2020-12-29T20:49:36.000Z | plot/io_tache.py | dh4gan/tache | 51ed037769ecc4fdadc591e3b3619416c79e65b7 | [
"MIT"
] | null | null | null | plot/io_tache.py | dh4gan/tache | 51ed037769ecc4fdadc591e3b3619416c79e65b7 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import read_eigenvalue_file as eigen
import read_eigenvector_file as eigvec
def read_eigenvalue_file(filename):
'''Calls the f2py functions needed to read the eigenvalue file'''
nelement = eigen.find_number_entries(filename)
x,y,z,eigenelement,eigenvalue... | 30.421053 | 87 | 0.70026 | 560 | 4,624 | 5.671429 | 0.241071 | 0.030856 | 0.025189 | 0.042821 | 0.12563 | 0.057305 | 0.030227 | 0.030227 | 0.030227 | 0.030227 | 0 | 0.012254 | 0.188149 | 4,624 | 151 | 88 | 30.622517 | 0.833777 | 0.113971 | 0 | 0 | 0 | 0 | 0.067359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051948 | null | null | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62c358bc4d9f634a47eee03663338b42ec73999a | 804 | py | Python | project/settings/dev.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 4 | 2015-03-03T17:48:14.000Z | 2019-02-27T20:28:42.000Z | project/settings/dev.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 104 | 2015-02-25T18:09:15.000Z | 2019-06-21T10:02:53.000Z | project/settings/dev.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 9 | 2015-03-01T18:59:14.000Z | 2019-06-10T06:48:45.000Z | from .base import * # noqa
DEBUG = True
ALLOWED_HOSTS = ['*']
try:
import dj_database_url
DATABASES = {'default': dj_database_url.config(
default='postgres://postgres:postgres@db:5432/postgres')}
except ImportError:
pass
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Disab... | 20.615385 | 65 | 0.665423 | 85 | 804 | 6.129412 | 0.6 | 0.115163 | 0.049904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00639 | 0.221393 | 804 | 38 | 66 | 21.157895 | 0.825879 | 0.108209 | 0 | 0.214286 | 0 | 0 | 0.332865 | 0.283708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.178571 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62c4223ac4c725f02c8bf4a2ed98a6a9b6483c1a | 659 | py | Python | palantir/oracle.py | Ithil-protocol/palantir | 48dcfd05a04890c6e49cff16b26e854c026b104b | [
"MIT"
] | null | null | null | palantir/oracle.py | Ithil-protocol/palantir | 48dcfd05a04890c6e49cff16b26e854c026b104b | [
"MIT"
] | null | null | null | palantir/oracle.py | Ithil-protocol/palantir | 48dcfd05a04890c6e49cff16b26e854c026b104b | [
"MIT"
] | 1 | 2022-03-03T17:32:03.000Z | 2022-03-03T17:32:03.000Z | from typing import Dict, List
from palantir.clock import Clock
from palantir.db import Quote
from palantir.types import Currency, Price
class PriceOracle:
clock: Clock
quotes: Dict[Currency, List[Quote]] = {}
def __init__(self, clock: Clock, quotes: Dict[Currency, List[Quote]]) -> None:
quote_pe... | 27.458333 | 82 | 0.661608 | 86 | 659 | 4.988372 | 0.453488 | 0.083916 | 0.074592 | 0.09324 | 0.172494 | 0.172494 | 0.172494 | 0 | 0 | 0 | 0 | 0.001984 | 0.235205 | 659 | 23 | 83 | 28.652174 | 0.849206 | 0 | 0 | 0 | 0 | 0 | 0.072838 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.125 | false | 0 | 0.25 | 0.0625 | 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 |
62cb76d178817f6b05c87b45ccd2138b764b2b31 | 399 | py | Python | modules/helper.py | blockpass-org/service-auth-example-python | dca07eba5ca92b01ac7deec4f3af21233f16d648 | [
"Apache-2.0"
] | null | null | null | modules/helper.py | blockpass-org/service-auth-example-python | dca07eba5ca92b01ac7deec4f3af21233f16d648 | [
"Apache-2.0"
] | null | null | null | modules/helper.py | blockpass-org/service-auth-example-python | dca07eba5ca92b01ac7deec4f3af21233f16d648 | [
"Apache-2.0"
] | null | null | null | import json
def read_json (path):
rows = []
with open(path, 'rb') as filedata:
rows = json.load(filedata)
return rows
def print_json (data):
print json.dumps(data, indent=2)
def write_json (data, filename):
with open(filename, 'w') as outfile:
json.dump(data, outfile, indent=2)
def flatten (arr):
... | 19.95 | 38 | 0.669173 | 66 | 399 | 4 | 0.484848 | 0.060606 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.200501 | 399 | 20 | 39 | 19.95 | 0.821317 | 0 | 0 | 0 | 0 | 0 | 0.0075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62cd5a49cd707fc38a478da5b91198f9c4fd1afd | 1,419 | py | Python | lib/box.py | koenigscode/sudoku-solver | 3c247b382ef683f683a2cd988aaf919a12d73fa6 | [
"Unlicense"
] | null | null | null | lib/box.py | koenigscode/sudoku-solver | 3c247b382ef683f683a2cd988aaf919a12d73fa6 | [
"Unlicense"
] | null | null | null | lib/box.py | koenigscode/sudoku-solver | 3c247b382ef683f683a2cd988aaf919a12d73fa6 | [
"Unlicense"
] | null | null | null | class Box:
def __init__(self, values):
"""Create a new box
Args:
values (numpy.array): 2D array containing the values
"""
self.values = values
@property
def size(self):
"""Get size of the box
e.g. most sudokus are 9x9 and have a size of 3 (... | 24.465517 | 79 | 0.559549 | 197 | 1,419 | 3.964467 | 0.329949 | 0.03201 | 0.03073 | 0.033291 | 0.102433 | 0.06146 | 0 | 0 | 0 | 0 | 0 | 0.011038 | 0.361522 | 1,419 | 57 | 80 | 24.894737 | 0.850993 | 0.430585 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62d71a4cbf6ec133cedc1374be68708167f29e47 | 1,934 | py | Python | tests/unit.py | mbrossard/cmsis-pack-manager | ab66ddcad1bdc5728b8af16ee8fec7920dcb3d66 | [
"Apache-2.0"
] | 9 | 2019-01-07T19:18:21.000Z | 2020-09-08T15:19:09.000Z | tests/unit.py | mbrossard/cmsis-pack-manager | ab66ddcad1bdc5728b8af16ee8fec7920dcb3d66 | [
"Apache-2.0"
] | 75 | 2017-12-12T13:10:07.000Z | 2020-09-29T18:42:54.000Z | tests/unit.py | mbrossard/cmsis-pack-manager | ab66ddcad1bdc5728b8af16ee8fec7920dcb3d66 | [
"Apache-2.0"
] | 15 | 2018-01-11T20:51:31.000Z | 2020-09-03T12:36:22.000Z | """Unit tests for the cmsis_pack_manager module"""
from os.path import join
from string import ascii_lowercase, ascii_letters, hexdigits
from mock import patch, MagicMock, call
from hypothesis import given, settings, example
from hypothesis.strategies import booleans, text, lists, just, integers, tuples
from hypothesi... | 42.977778 | 79 | 0.690279 | 265 | 1,934 | 4.758491 | 0.237736 | 0.099921 | 0.107851 | 0.164948 | 0.637589 | 0.637589 | 0.559873 | 0.472641 | 0.472641 | 0.472641 | 0 | 0.013496 | 0.19545 | 1,934 | 44 | 80 | 43.954545 | 0.796915 | 0.022751 | 0 | 0.410256 | 0 | 0 | 0.054671 | 0.026008 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.102564 | false | 0 | 0.205128 | 0 | 0.307692 | 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 |
62d7cbfc08a54080c7e15555e162c352603f4f23 | 7,821 | py | Python | ipyannotator/bbox_canvas.py | EnriqueMoran/ipyannotator | 5517f8ded24e9e1347d0d72c73d620778f7b3069 | [
"Apache-2.0"
] | 19 | 2020-10-12T19:52:10.000Z | 2022-02-07T18:23:26.000Z | ipyannotator/bbox_canvas.py | EnriqueMoran/ipyannotator | 5517f8ded24e9e1347d0d72c73d620778f7b3069 | [
"Apache-2.0"
] | 6 | 2021-08-02T09:36:32.000Z | 2022-01-05T15:29:30.000Z | ipyannotator/bbox_canvas.py | EnriqueMoran/ipyannotator | 5517f8ded24e9e1347d0d72c73d620778f7b3069 | [
"Apache-2.0"
] | 1 | 2020-12-01T22:42:01.000Z | 2020-12-01T22:42:01.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_bbox_canvas.ipynb (unless otherwise specified).
__all__ = ['BBoxCanvas']
# Internal Cell
import numpy as np
import traitlets
import ipywidgets as widgets
from pathlib import Path
from math import log
from ipycanvas import MultiCanvas, hold_canvas
from ipywidgets impo... | 35.38914 | 128 | 0.625112 | 1,027 | 7,821 | 4.447907 | 0.199611 | 0.063485 | 0.077058 | 0.083187 | 0.259413 | 0.190674 | 0.161997 | 0.154772 | 0.092601 | 0.049912 | 0 | 0.007365 | 0.270809 | 7,821 | 221 | 129 | 35.38914 | 0.793617 | 0.159315 | 0 | 0.145985 | 1 | 0 | 0.034959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.124088 | false | 0.007299 | 0.058394 | 0.014599 | 0.270073 | 0.014599 | 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 |
62d861eafc0a9be57cad0e0de6dedef78e5579b1 | 1,062 | py | Python | setup.py | tomgun132/Chatette | b2be5f754fddaee788d36c04e5d3824a1f3c46eb | [
"MIT"
] | null | null | null | setup.py | tomgun132/Chatette | b2be5f754fddaee788d36c04e5d3824a1f3c46eb | [
"MIT"
] | 1 | 2021-06-16T18:59:39.000Z | 2021-06-27T04:44:11.000Z | setup.py | tomgun132/Chatette | b2be5f754fddaee788d36c04e5d3824a1f3c46eb | [
"MIT"
] | 1 | 2021-06-16T18:49:13.000Z | 2021-06-16T18:49:13.000Z | #!/usr/bin/env python3
# coding: utf-8
from os.path import dirname, join
from setuptools import find_packages, setup
# Manual:
# https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/quickstart.html
setup(
name="chatette",
version="1.6.2",
description="A dataset generator for Rasa NLU",
... | 27.230769 | 85 | 0.620527 | 113 | 1,062 | 5.734513 | 0.778761 | 0.037037 | 0.07716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009792 | 0.230697 | 1,062 | 38 | 86 | 27.947368 | 0.783354 | 0.119586 | 0 | 0 | 0 | 0 | 0.432868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62dd35f539d5e2901696bd44d9523d25fac0c2fb | 368 | py | Python | dashboard/migrations/0017_auto_20200224_2129.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | dashboard/migrations/0017_auto_20200224_2129.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | dashboard/migrations/0017_auto_20200224_2129.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-02-24 20:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0016_auto_20200222_2336'),
]
operations = [
migrations.RenameField(
model_name='psdata',
old_name='subject',
... | 19.368421 | 49 | 0.589674 | 40 | 368 | 5.25 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120155 | 0.298913 | 368 | 18 | 50 | 20.444444 | 0.693798 | 0.122283 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 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 |
62e7634192faf6e026dd136c22294f7fd4078897 | 464 | py | Python | utils/file_utils.py | perjohn/knn | e63be7f28dceb2b4e51cb2865d4936b0b0e2eaec | [
"MIT"
] | null | null | null | utils/file_utils.py | perjohn/knn | e63be7f28dceb2b4e51cb2865d4936b0b0e2eaec | [
"MIT"
] | null | null | null | utils/file_utils.py | perjohn/knn | e63be7f28dceb2b4e51cb2865d4936b0b0e2eaec | [
"MIT"
] | null | null | null | import gzip
import os
import shutil
import tarfile
def extract_tar_file(save_dir, tar_filename):
tar = tarfile.open(os.path.join(save_dir, tar_filename), 'r:gz')
tar.extractall(path=save_dir)
tar.close()
def extract_gzip_file(save_dir, gzip_filename, filename):
with gzip.open(os.path.join(save_dir,... | 25.777778 | 72 | 0.713362 | 76 | 464 | 4.118421 | 0.355263 | 0.134185 | 0.095847 | 0.134185 | 0.201278 | 0.201278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165948 | 464 | 17 | 73 | 27.294118 | 0.808786 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62ec1c862adbe843d5ffd9086f3f8278cec9a6e0 | 246 | py | Python | aoc_2021_01_1.py | camelusferus/aoc_2021 | 3e9665d6feb3eea1fc5460c5d055dd57ce5d2b81 | [
"Apache-2.0"
] | null | null | null | aoc_2021_01_1.py | camelusferus/aoc_2021 | 3e9665d6feb3eea1fc5460c5d055dd57ce5d2b81 | [
"Apache-2.0"
] | null | null | null | aoc_2021_01_1.py | camelusferus/aoc_2021 | 3e9665d6feb3eea1fc5460c5d055dd57ce5d2b81 | [
"Apache-2.0"
] | null | null | null | file = open("input/input_01.txt")
old = sum([int(number) for number in file.readlines()])
increments = 0
for line in file.readlines():
new = int(line)
if (new > old):
increments = increments + 1
old = new
print(increments)
| 18.923077 | 55 | 0.634146 | 35 | 246 | 4.428571 | 0.542857 | 0.077419 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.227642 | 246 | 12 | 56 | 20.5 | 0.794737 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
62eece5bb69b422622a4d4a49eeb0a58c23e3537 | 715 | py | Python | create_users.py | jorisboeye/ml-tutorial | 2b6dc88d03e3aa1f6f56dc5c2e5989d40c952287 | [
"MIT"
] | 38 | 2016-11-24T12:18:10.000Z | 2021-12-07T08:15:45.000Z | create_users.py | jorisboeye/ml-tutorial | 2b6dc88d03e3aa1f6f56dc5c2e5989d40c952287 | [
"MIT"
] | 3 | 2016-11-24T14:52:15.000Z | 2021-11-23T11:54:46.000Z | create_users.py | jorisboeye/ml-tutorial | 2b6dc88d03e3aa1f6f56dc5c2e5989d40c952287 | [
"MIT"
] | 24 | 2016-11-24T12:13:29.000Z | 2021-12-08T12:10:30.000Z | #!/usr/bin/python3
import subprocess as p
import os
import sys
if len(sys.argv) != 3:
print(f"Usage {sys.argv[0]} <number_of_users> <password>")
sys.exit()
N = int(sys.argv[1])
PWD = str(sys.argv[2])
if N > 1000:
raise Exception(f"Cannot create more than 1000 users ({N} asked)")
for ix in range(N):
... | 25.535714 | 89 | 0.615385 | 114 | 715 | 3.815789 | 0.526316 | 0.064368 | 0.068966 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.165035 | 715 | 27 | 90 | 26.481481 | 0.703518 | 0.023776 | 0 | 0 | 0 | 0 | 0.351506 | 0.065997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.157895 | 0 | 0.157895 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
62f487fbfc5ab6b50b83ec42bc0075782ead29cb | 4,418 | py | Python | IML_2018_Fall/Final/cnn.py | scdsr/NCTU-CS-assignments | 2a61158c71a11b0a477b2a71f6214997f97e9b9f | [
"MIT"
] | 3 | 2019-04-17T03:33:42.000Z | 2021-03-31T11:03:03.000Z | IML_2018_Fall/Final/cnn.py | fchsieh/NCTU-CS-assignments | 2a61158c71a11b0a477b2a71f6214997f97e9b9f | [
"MIT"
] | null | null | null | IML_2018_Fall/Final/cnn.py | fchsieh/NCTU-CS-assignments | 2a61158c71a11b0a477b2a71f6214997f97e9b9f | [
"MIT"
] | 1 | 2020-10-01T13:48:07.000Z | 2020-10-01T13:48:07.000Z | # -*- coding: utf-8 -*-
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.layers import Conv2D, MaxPooling2D, Flatten
from keras.optimizers import SGD, ... | 29.065789 | 94 | 0.678588 | 733 | 4,418 | 3.941337 | 0.158254 | 0.049844 | 0.055382 | 0.043614 | 0.653167 | 0.632745 | 0.615438 | 0.564555 | 0.564555 | 0.526826 | 0 | 0.037887 | 0.151652 | 4,418 | 151 | 95 | 29.258278 | 0.732924 | 0.046854 | 0 | 0.512 | 0 | 0 | 0.09182 | 0.005724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064 | 0.112 | 0 | 0.112 | 0.048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62f4c3a0155e75b30ca9098aebf662985cb7307e | 916 | py | Python | sepulsa/core/exceptions.py | vousmeevoyez/sepulsa | eebc1cd09471f03eb5ff1e3f3389f43e508f1ca6 | [
"MIT"
] | 4 | 2020-04-08T10:15:00.000Z | 2021-11-27T03:46:38.000Z | sepulsa/core/exceptions.py | vousmeevoyez/sepulsa | eebc1cd09471f03eb5ff1e3f3389f43e508f1ca6 | [
"MIT"
] | null | null | null | sepulsa/core/exceptions.py | vousmeevoyez/sepulsa | eebc1cd09471f03eb5ff1e3f3389f43e508f1ca6 | [
"MIT"
] | null | null | null | """
Exceptions
________________
"""
class BaseError(Exception):
""" Base Error for all Sepulsa Library """
def __init__(self, message=None, original_exception=None):
super().__init__(original_exception)
self.original_exception = original_exception
self.message = message
# HT... | 23.487179 | 88 | 0.715066 | 100 | 916 | 6.27 | 0.52 | 0.108453 | 0.127592 | 0.114833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19869 | 916 | 38 | 89 | 24.105263 | 0.854223 | 0.45524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
62f5c7226b2749f059750a28441711c0e236e44e | 525 | py | Python | ledger.py | ScruffyLNH/pyMonBot | 71e15410788c82fbdefa7a3bf1083fc49f81276c | [
"MIT"
] | null | null | null | ledger.py | ScruffyLNH/pyMonBot | 71e15410788c82fbdefa7a3bf1083fc49f81276c | [
"MIT"
] | null | null | null | ledger.py | ScruffyLNH/pyMonBot | 71e15410788c82fbdefa7a3bf1083fc49f81276c | [
"MIT"
] | null | null | null | #from lib2to3.pytree import Base
from typing import List
from enum import Enum
from decimal import Decimal
from pydantic import BaseModel
from datetime import datetime
class AssetType(Enum):
aUec = 1
merits = 2
class Contribution(BaseModel):
contibuterId: int = None
serverId: int = None
serv... | 18.75 | 42 | 0.710476 | 61 | 525 | 6.114754 | 0.540984 | 0.069705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.230476 | 525 | 28 | 43 | 18.75 | 0.913366 | 0.059048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0.052632 | 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 |
62f62b771ba2ae9f27f84959395d1c311bf2200f | 299 | py | Python | FeatureServer/Exceptions/WebFeatureService/WFSException.py | AstunTechnology/featureserver | 0697730de12b7bc4c8d90bab829d95a865253e77 | [
"BSD-3-Clause-Open-MPI",
"MIT"
] | 55 | 2015-01-20T14:29:59.000Z | 2020-12-13T12:54:28.000Z | FeatureServer/Exceptions/WebFeatureService/WFSException.py | makinacorpus/featureserver | 379c1a7f51e75517ae7237751e1908f45c0c4d9a | [
"BSD-3-Clause-Open-MPI",
"MIT"
] | 3 | 2015-06-24T23:34:03.000Z | 2017-02-05T02:16:19.000Z | FeatureServer/Exceptions/WebFeatureService/WFSException.py | makinacorpus/featureserver | 379c1a7f51e75517ae7237751e1908f45c0c4d9a | [
"BSD-3-Clause-Open-MPI",
"MIT"
] | 19 | 2015-02-08T12:32:25.000Z | 2021-12-01T08:14:32.000Z | '''
Created on May 24, 2011
@author: michel
'''
from FeatureServer.Exceptions.BaseException import BaseException
class WFSException(BaseException):
def __init__(self, locator, layer, message, code="", dump = ""):
BaseException.__init__(self, message, code, locator, layer, dump)
| 23 | 73 | 0.712375 | 32 | 299 | 6.40625 | 0.6875 | 0.078049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.167224 | 299 | 13 | 74 | 23 | 0.799197 | 0.133779 | 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 |
62fc4e5e9409da5908dea80c019ad89c917a93a3 | 2,116 | py | Python | setup.py | jbcostello/Stele | a091ed1eb6b166771b75fcffac09737e6c86a1c9 | [
"MIT"
] | null | null | null | setup.py | jbcostello/Stele | a091ed1eb6b166771b75fcffac09737e6c86a1c9 | [
"MIT"
] | null | null | null | setup.py | jbcostello/Stele | a091ed1eb6b166771b75fcffac09737e6c86a1c9 | [
"MIT"
] | 1 | 2020-11-20T01:40:11.000Z | 2020-11-20T01:40:11.000Z | from setuptools import find_namespace_packages, setup
# to understand how setuptools and many following commannds work, see
# https://setuptools.readthedocs.io/en/latest/setuptools.html
setup(
# ***package setup***
name='Stele', # package name
version='0.1a1',
# what version, pre release cod... | 36.482759 | 79 | 0.658318 | 286 | 2,116 | 4.807692 | 0.573427 | 0.004364 | 0.030545 | 0.033455 | 0.040727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032555 | 0.230624 | 2,116 | 57 | 80 | 37.122807 | 0.812039 | 0.560491 | 0 | 0 | 0 | 0 | 0.291713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a0678113b492330b4f89822a196199a8f729e58 | 3,773 | py | Python | exercise_02.py | neurotechuoft/bci_workshop | 6c701b9bc0e81a3920c74edcebfe585142d714e8 | [
"MIT"
] | null | null | null | exercise_02.py | neurotechuoft/bci_workshop | 6c701b9bc0e81a3920c74edcebfe585142d714e8 | [
"MIT"
] | 2 | 2016-02-09T04:31:06.000Z | 2016-02-09T04:32:33.000Z | exercise_02.py | neurotechuoft/HackNight0 | 6c701b9bc0e81a3920c74edcebfe585142d714e8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
MuLES Simple Client example
This script shows how to connect to MuLES and request EEG data
Basic BCI
"""
import mules
import numpy as np
import bci_workshop_tools as BCIw
import matplotlib.pyplot as plt
if __name__ == "__main__":
# MuLES connection paramters
mules_ip = ... | 35.261682 | 120 | 0.635834 | 455 | 3,773 | 5.068132 | 0.373626 | 0.060711 | 0.09974 | 0.058543 | 0.146574 | 0.073721 | 0.058977 | 0.058977 | 0.058977 | 0.058977 | 0 | 0.020657 | 0.281474 | 3,773 | 107 | 121 | 35.261682 | 0.829952 | 0.240922 | 0 | 0.108696 | 0 | 0 | 0.102924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a097d9fef35a509ffcab40f0d2e36d32be80cfe | 5,790 | py | Python | rating.py | ffbskt/graphofgroups | a21355ed6136d2ead004221f10c9bddcde92d3fb | [
"MIT"
] | null | null | null | rating.py | ffbskt/graphofgroups | a21355ed6136d2ead004221f10c9bddcde92d3fb | [
"MIT"
] | null | null | null | rating.py | ffbskt/graphofgroups | a21355ed6136d2ead004221f10c9bddcde92d3fb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#import endpoints
#from google.appengine.api import users
#from protorpc import messages
#from protorpc import message_types
#from protorpc import remote
#from google.appengine.ext import ndb
#from google.appengine.api import mail
#import json
from models import *
#from extra_library import *
#f... | 35.304878 | 123 | 0.644732 | 911 | 5,790 | 3.909989 | 0.184413 | 0.056148 | 0.047445 | 0.017967 | 0.207187 | 0.120157 | 0.118473 | 0.0758 | 0.06064 | 0.06064 | 0 | 0.018286 | 0.187737 | 5,790 | 163 | 124 | 35.521472 | 0.739103 | 0.249914 | 0 | 0.185841 | 0 | 0 | 0.022569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017699 | null | null | 0.097345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a0e4032a703cb0da9c38f319e6659368e0e9969 | 2,241 | py | Python | reel/core.py | kennethreitz-archive/webhook-reel | 9de3a64f81090b3352c561c969a58ee78a3162bc | [
"0BSD"
] | 3 | 2015-11-05T08:56:17.000Z | 2016-07-17T18:11:54.000Z | reel/core.py | kennethreitz-archive/webhook-reel | 9de3a64f81090b3352c561c969a58ee78a3162bc | [
"0BSD"
] | null | null | null | reel/core.py | kennethreitz-archive/webhook-reel | 9de3a64f81090b3352c561c969a58ee78a3162bc | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import requests
from flask import Flask, request, abort, render_template, redirect
SLASH_REPLACEMENT = '\\'
app = Flask(__name__)
def clippy(text, bgcolor='#FFFFFF'):
html = """
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width=... | 22.867347 | 72 | 0.575636 | 260 | 2,241 | 4.865385 | 0.396154 | 0.042688 | 0.023715 | 0.06166 | 0.148617 | 0.148617 | 0.112253 | 0.071146 | 0.071146 | 0 | 0 | 0.01915 | 0.254351 | 2,241 | 97 | 73 | 23.103093 | 0.737882 | 0.042838 | 0 | 0.109091 | 0 | 0 | 0.487241 | 0.097737 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a0f8553688635c46c048881eb597299cce0f65a | 5,963 | py | Python | kubespec/openshift/quota/v1.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | 7 | 2019-10-22T14:21:16.000Z | 2021-03-18T15:57:41.000Z | kubespec/openshift/quota/v1.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | null | null | null | kubespec/openshift/quota/v1.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | null | null | null | # Code is generated: DO NOT EDIT
# Copyright 2019 Machine Zone, Inc. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from kubespec import context
from kubespec import types
from kubespec.k8s import base
from kubespec.k8s import v1 as k8sv1
fr... | 32.584699 | 113 | 0.627704 | 633 | 5,963 | 5.797788 | 0.238547 | 0.016349 | 0.029428 | 0.042507 | 0.376839 | 0.370845 | 0.322071 | 0.296458 | 0.283379 | 0.283379 | 0 | 0.005779 | 0.274526 | 5,963 | 182 | 114 | 32.763736 | 0.84258 | 0.226732 | 0 | 0.59292 | 1 | 0 | 0.131754 | 0.084157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123894 | false | 0 | 0.061947 | 0 | 0.309735 | 0 | 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 |
1a1650d777d61372df95a5ad2060f7d8c9441d08 | 30,215 | py | Python | witte_jacquelyn_ndvi.py | jacquiewitte/ea-2021-ndvi-automation-review | 53c3568278b4a2258b6a99e4b1962361a232b2a6 | [
"MIT"
] | null | null | null | witte_jacquelyn_ndvi.py | jacquiewitte/ea-2021-ndvi-automation-review | 53c3568278b4a2258b6a99e4b1962361a232b2a6 | [
"MIT"
] | null | null | null | witte_jacquelyn_ndvi.py | jacquiewitte/ea-2021-ndvi-automation-review | 53c3568278b4a2258b6a99e4b1962361a232b2a6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# <img style="float: left;" src="earth-lab-logo-rgb.png" width="150" height="150" />
#
# # Earth Analytics Education - EA Python Course Spring 2021
# ## Important - Assignment Guidelines
#
# 1. Before you submit your assignment to GitHub, make sure to run the entire notebook ... | 33.609566 | 618 | 0.687771 | 4,567 | 30,215 | 4.469236 | 0.181739 | 0.017638 | 0.007839 | 0.005487 | 0.390917 | 0.342119 | 0.316986 | 0.299005 | 0.267699 | 0.258684 | 0 | 0.019498 | 0.222572 | 30,215 | 898 | 619 | 33.646993 | 0.849425 | 0 | 0 | 0.456446 | 0 | 0.006969 | 0.172966 | 0.010888 | 0 | 0 | 0 | 0.001114 | 0 | 0 | null | null | 0.006969 | 0.062718 | null | null | 0.083624 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a1802c81b11401c5dccd5a29e388bc07074b74b | 2,792 | py | Python | day3/test/test_toboggan_trajectory.py | AlanRosenthal/adventofcode2020 | 9739c34ea5c7ba0112aeb55d297e67b10376ad31 | [
"MIT"
] | 5 | 2020-12-02T16:41:00.000Z | 2020-12-08T21:14:03.000Z | day3/test/test_toboggan_trajectory.py | AlanRosenthal/adventofcode2020 | 9739c34ea5c7ba0112aeb55d297e67b10376ad31 | [
"MIT"
] | null | null | null | day3/test/test_toboggan_trajectory.py | AlanRosenthal/adventofcode2020 | 9739c34ea5c7ba0112aeb55d297e67b10376ad31 | [
"MIT"
] | null | null | null | """
Test of toboggan_trajectory.py
"""
from day3.toboggan_trajectory import process
from day3.toboggan_trajectory import get_location
from day3.toboggan_trajectory import is_tree
from day3.toboggan_trajectory import toboggan
def test_get_location_basic1():
"""
Basic test of get_location(), take 1
"""
... | 21.312977 | 74 | 0.562321 | 402 | 2,792 | 3.706468 | 0.131841 | 0.140268 | 0.053691 | 0.018792 | 0.683893 | 0.537584 | 0.374497 | 0.195302 | 0 | 0 | 0 | 0.034368 | 0.249642 | 2,792 | 130 | 75 | 21.476923 | 0.67685 | 0.206304 | 0 | 0.098039 | 0 | 0 | 0.076147 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.294118 | false | 0 | 0.078431 | 0 | 0.372549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a19e98ad02abca0054d372610642ebd83f80813 | 1,680 | py | Python | otcore/common/tests.py | NYULibraries/dlts-enm-tct-backend | 07455a660fb2cb8bc91a54f7f12d150923678157 | [
"Apache-2.0"
] | null | null | null | otcore/common/tests.py | NYULibraries/dlts-enm-tct-backend | 07455a660fb2cb8bc91a54f7f12d150923678157 | [
"Apache-2.0"
] | 2 | 2017-10-30T21:19:07.000Z | 2017-10-31T18:06:30.000Z | otcore/common/tests.py | NYULibraries/dlts-enm-tct-backend | 07455a660fb2cb8bc91a54f7f12d150923678157 | [
"Apache-2.0"
] | null | null | null | from django.test import TestCase
from .utils import clean_duplicates
from ..hit.models import Scope, Hit
class UtilityFunctionTests(TestCase):
def test_clean_duplicates_single_field(self):
"""
Remove duplicate models based on a single field
"""
person = Scope.objects.create(scope=... | 35.744681 | 72 | 0.661905 | 201 | 1,680 | 5.477612 | 0.218905 | 0.163488 | 0.145322 | 0.181653 | 0.699364 | 0.61762 | 0.522253 | 0.422343 | 0.312443 | 0.312443 | 0 | 0.002972 | 0.19881 | 1,680 | 46 | 73 | 36.521739 | 0.815007 | 0.053571 | 0 | 0.214286 | 0 | 0 | 0.094621 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0 | 0.107143 | 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 |
1a1e36b8b05a61cc70b94ee5dee921fa83901f04 | 6,518 | py | Python | tests/document_tests.py | lessaworld/sqlpie | 22cac1fc7f9cb939e823058f84a68988e03ab239 | [
"MIT"
] | 3 | 2016-01-27T19:49:23.000Z | 2020-08-18T13:59:02.000Z | tests/document_tests.py | lessaworld/sqlpie | 22cac1fc7f9cb939e823058f84a68988e03ab239 | [
"MIT"
] | null | null | null | tests/document_tests.py | lessaworld/sqlpie | 22cac1fc7f9cb939e823058f84a68988e03ab239 | [
"MIT"
] | 1 | 2016-02-01T01:57:54.000Z | 2016-02-01T01:57:54.000Z | # -*- coding: utf-8 -*-
"""
SQLpie License (MIT License)
Copyright (c) 2011-2016 André Lessa, http://sqlpie.com
See LICENSE file.
"""
import json
import sqlpie
class DocumentTests(object):
#
# Document Tests
#
def test_document_01_put_multiple(self):
request = {"documents":[{"_id":"001", "... | 64.534653 | 829 | 0.658638 | 782 | 6,518 | 5.285166 | 0.173913 | 0.133559 | 0.068957 | 0.087346 | 0.696346 | 0.662715 | 0.655456 | 0.655456 | 0.615775 | 0.605371 | 0 | 0.020693 | 0.154802 | 6,518 | 100 | 830 | 65.18 | 0.729533 | 0.021326 | 0 | 0.528571 | 0 | 0 | 0.309614 | 0 | 0 | 0 | 0 | 0 | 0.271429 | 1 | 0.128571 | false | 0 | 0.028571 | 0 | 0.171429 | 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 |
1a1fc3b4870ce96e63bc9419b95891ec1f196ec5 | 800 | py | Python | rosdep.py | xiteen/Cloudroid | 275664d7448ae26df3e521a545cdff1a21b15fb0 | [
"BSD-3-Clause"
] | null | null | null | rosdep.py | xiteen/Cloudroid | 275664d7448ae26df3e521a545cdff1a21b15fb0 | [
"BSD-3-Clause"
] | null | null | null | rosdep.py | xiteen/Cloudroid | 275664d7448ae26df3e521a545cdff1a21b15fb0 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/python
#coding=utf-8
# filename : rosdep.py
# author : Siteen
# update : 2016/12/7
import os
import xml.dom.minidom
import subprocess
startdir = '/catkin_install'
target = 'package.xml'
def scandir(startdir, target) :
os.chdir(startdir)
for obj in os.listdir(os.curdir) :
if obj == targ... | 25 | 69 | 0.61 | 91 | 800 | 5.351648 | 0.604396 | 0.024641 | 0.053388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015437 | 0.27125 | 800 | 31 | 70 | 25.806452 | 0.819897 | 0.11125 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a25758d487058dc6e22650aeed3ddca6439b6fa | 246 | py | Python | blog/migrations/0009_merge_20191231_1709.py | erlotsman/djangoBlog | d9bd4ec495da3a96abea61a7aaa75ee599b17564 | [
"MIT"
] | 17 | 2019-11-12T18:51:50.000Z | 2022-03-11T10:27:18.000Z | blog/migrations/0009_merge_20191231_1709.py | erlotsman/djangoBlog | d9bd4ec495da3a96abea61a7aaa75ee599b17564 | [
"MIT"
] | 65 | 2019-11-12T18:39:12.000Z | 2022-02-10T11:07:28.000Z | blog/migrations/0009_merge_20191231_1709.py | erlotsman/djangoBlog | d9bd4ec495da3a96abea61a7aaa75ee599b17564 | [
"MIT"
] | 44 | 2019-11-10T16:58:24.000Z | 2022-03-11T09:42:18.000Z | # Generated by Django 2.2.8 on 2019-12-31 17:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_post_like'),
('blog', '0008_answer'),
]
operations = [
]
| 16.4 | 47 | 0.609756 | 30 | 246 | 4.9 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125683 | 0.256098 | 246 | 14 | 48 | 17.571429 | 0.677596 | 0.182927 | 0 | 0 | 1 | 0 | 0.165829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a2713238d72b0606741dd09b7c5457927a7079e | 1,897 | py | Python | oo/carro.py | CairuCaco/pythonbirds | 4d1dd07220dcb2fb511fabcd45312692a9bdbd7e | [
"MIT"
] | null | null | null | oo/carro.py | CairuCaco/pythonbirds | 4d1dd07220dcb2fb511fabcd45312692a9bdbd7e | [
"MIT"
] | null | null | null | oo/carro.py | CairuCaco/pythonbirds | 4d1dd07220dcb2fb511fabcd45312692a9bdbd7e | [
"MIT"
] | null | null | null | class Motor:
def __init__(self):
self.velocidade = 0
def acelerar(self):
self.velocidade += 1
def frear(self):
self.velocidade -= 2
self.velocidade = max(0,self.velocidade)
return
NORTE = 'Norte'
SUL ='Sul'
LESTE ='Leste'
OESTE ='Oeste'
class Direçao:
rotaçao... | 24.012658 | 82 | 0.660517 | 233 | 1,897 | 5.120172 | 0.137339 | 0.067058 | 0.090528 | 0.070411 | 0.246438 | 0.192791 | 0.108969 | 0 | 0 | 0 | 0 | 0.002725 | 0.226147 | 1,897 | 79 | 83 | 24.012658 | 0.809946 | 0 | 0 | 0.322581 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209677 | false | 0 | 0 | 0.032258 | 0.33871 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7e0d365d54e8df85bb38d160414e59480930b12 | 30,552 | py | Python | src/s2_data/journal_entries.py | Cloppershy/s2-data | c19d9f94ea65a78e3c3785f1f983ad9c5b81df0e | [
"Apache-2.0"
] | 8 | 2020-10-16T12:27:59.000Z | 2021-12-22T12:27:22.000Z | src/s2_data/journal_entries.py | Cloppershy/s2-data | c19d9f94ea65a78e3c3785f1f983ad9c5b81df0e | [
"Apache-2.0"
] | 7 | 2020-10-16T17:57:22.000Z | 2020-11-14T19:28:50.000Z | src/s2_data/journal_entries.py | Cloppershy/s2-data | c19d9f94ea65a78e3c3785f1f983ad9c5b81df0e | [
"Apache-2.0"
] | 5 | 2020-10-16T17:41:48.000Z | 2020-12-07T16:35:27.000Z | from dataclasses import dataclass
@dataclass
class Entry:
id_: int
name: str
description: str
ENTRIES = {
"places": [
Entry(
1, "Dwelling", "The air here is warm and dry. It smells of campfire smoke and bat guano.",
),
Entry(
2, "Jungle", "Despite all ... | 46.715596 | 166 | 0.583922 | 4,012 | 30,552 | 4.446411 | 0.384347 | 0.007848 | 0.002354 | 0.002859 | 0.007287 | 0.005269 | 0 | 0 | 0 | 0 | 0 | 0.018885 | 0.329242 | 30,552 | 653 | 167 | 46.787136 | 0.851608 | 0 | 0 | 0.655864 | 0 | 0.072531 | 0.649712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00463 | 0.006173 | 0 | 0.012346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7e31d262843ff69803dc428cf4393a4259b1b51 | 250 | py | Python | statsu_legacy/actions/menu_action/tools.py | ysb06/statsu | 7d13088ce6decf80fc1f2d733524fbcaa84d5f3c | [
"MIT"
] | null | null | null | statsu_legacy/actions/menu_action/tools.py | ysb06/statsu | 7d13088ce6decf80fc1f2d733524fbcaa84d5f3c | [
"MIT"
] | null | null | null | statsu_legacy/actions/menu_action/tools.py | ysb06/statsu | 7d13088ce6decf80fc1f2d733524fbcaa84d5f3c | [
"MIT"
] | null | null | null | import logging
from statsu_legacy.actions.menu_action import MenuAction
logger = logging.getLogger(__name__)
class ToolsAction(MenuAction):
def run_script(self):
data = self.main_window.get_current_datasheet().data
print(data)
| 22.727273 | 60 | 0.76 | 31 | 250 | 5.806452 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 250 | 10 | 61 | 25 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a7e3a98d3c98052699bf6bb3290c7bf3110c9cef | 1,822 | py | Python | snuba/redis.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | snuba/redis.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | snuba/redis.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from typing import Union
from redis.client import StrictRedis
from redis.exceptions import BusyLoadingError, ConnectionError
from rediscluster import StrictRedisCluster
from snuba import settings
RedisClientType = Union[StrictRedis, StrictRedisCluster]
class RetryingStrictRe... | 33.127273 | 86 | 0.715148 | 204 | 1,822 | 6.181373 | 0.426471 | 0.082474 | 0.023791 | 0.031721 | 0.203013 | 0.203013 | 0.203013 | 0.203013 | 0.07613 | 0 | 0 | 0.00417 | 0.210209 | 1,822 | 54 | 87 | 33.740741 | 0.872133 | 0.216246 | 0 | 0.162162 | 0 | 0 | 0.005718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.054054 | 0.162162 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a7ebb56901f1fe6b4119599a9f311aa9d6b94223 | 1,251 | py | Python | pputidame/generics.py | jdtibochab/ME-Models | db2ca64d697f36d4548a0039f30ce8a13ba8f9d8 | [
"MIT"
] | null | null | null | pputidame/generics.py | jdtibochab/ME-Models | db2ca64d697f36d4548a0039f30ce8a13ba8f9d8 | [
"MIT"
] | null | null | null | pputidame/generics.py | jdtibochab/ME-Models | db2ca64d697f36d4548a0039f30ce8a13ba8f9d8 | [
"MIT"
] | 1 | 2021-03-11T23:18:23.000Z | 2021-03-11T23:18:23.000Z | generic_dict = {'generic_16Sm4Cm1402': ['G1G01-1416-MONOMER', 'G1G01-1413-MONOMER'],
'generic_Dus': ['G1G01-2310-MONOMER', 'G1G01-5157-MONOMER', 'G1G01-2112-MONOMER'],
'generic_RF': ['G1G01-808-MONOMER', 'G1G01-1586-MONOMER'],
'generic_Tuf': ['G1G01-482-MONOMER', 'G1G01-4... | 69.5 | 98 | 0.472422 | 134 | 1,251 | 3.947761 | 0.402985 | 0.20794 | 0.056711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185379 | 0.38769 | 1,251 | 17 | 99 | 73.588235 | 0.505222 | 0 | 0 | 0 | 0 | 0 | 0.485212 | 0.065548 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
a7ee5cea98d513ec5be207bee9dd20b3b04dbffa | 423 | py | Python | reo/migrations/0130_auto_20211108_0441.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 7 | 2022-01-29T12:10:10.000Z | 2022-03-28T13:45:20.000Z | reo/migrations/0130_auto_20211108_0441.py | NREL/reopt_api | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 12 | 2022-02-01T18:23:18.000Z | 2022-03-31T17:22:17.000Z | reo/migrations/0130_auto_20211108_0441.py | NREL/REopt_API | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 3 | 2022-02-08T19:44:40.000Z | 2022-03-12T11:05:36.000Z | # Generated by Django 3.1.12 on 2021-11-08 04:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reo', '0129_auto_20211108_0423'),
]
operations = [
migrations.RenameField(
model_name='sitemodel',
old_name='year_one_emiss... | 22.263158 | 60 | 0.643026 | 49 | 423 | 5.22449 | 0.755102 | 0.0625 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108626 | 0.260047 | 423 | 18 | 61 | 23.5 | 0.709265 | 0.108747 | 0 | 0 | 1 | 0 | 0.285333 | 0.253333 | 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 |
a7f6cbf1c5237e3b9434283de41c1646b16ec93e | 1,089 | py | Python | setup.py | sertac/django-fancytree | 677af7ba1f74bcf4b05053aa0f606bdcc4e5c9e9 | [
"BSD-2-Clause"
] | 14 | 2015-04-04T09:21:51.000Z | 2021-01-14T03:06:45.000Z | setup.py | sertac/django-fancytree | 677af7ba1f74bcf4b05053aa0f606bdcc4e5c9e9 | [
"BSD-2-Clause"
] | 9 | 2015-04-05T16:32:07.000Z | 2022-02-11T14:43:39.000Z | setup.py | sertac/django-fancytree | 677af7ba1f74bcf4b05053aa0f606bdcc4e5c9e9 | [
"BSD-2-Clause"
] | 9 | 2015-10-18T21:18:54.000Z | 2022-02-11T13:57:01.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
import fancytree
import os
setup(name='django-fancytree',
version=fancytree.__version__,
description='Django forms widget that uses Fancytree to display tree data',
author='Riccardo Magliocchetti',
author_email='riccardo.maglioc... | 33 | 81 | 0.626263 | 106 | 1,089 | 6.292453 | 0.688679 | 0.067466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244261 | 1,089 | 32 | 82 | 34.03125 | 0.81045 | 0.018365 | 0 | 0.068966 | 0 | 0 | 0.440075 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.103448 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c501d345e5c15b0a3cb97e47a9533738f9f39ca4 | 472 | py | Python | user_profile/migrations/0003_auto_20201013_1730.py | hlwarun/Instagram-Clone | 276d8076f49bae8de9539c9df542d817a2ca30b4 | [
"Apache-2.0"
] | 3 | 2020-11-12T17:48:27.000Z | 2022-02-03T03:40:50.000Z | user_profile/migrations/0003_auto_20201013_1730.py | hlwarun/Instagram-Clone | 276d8076f49bae8de9539c9df542d817a2ca30b4 | [
"Apache-2.0"
] | null | null | null | user_profile/migrations/0003_auto_20201013_1730.py | hlwarun/Instagram-Clone | 276d8076f49bae8de9539c9df542d817a2ca30b4 | [
"Apache-2.0"
] | 1 | 2021-04-27T08:02:02.000Z | 2021-04-27T08:02:02.000Z | # Generated by Django 3.1.2 on 2020-10-13 17:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profile', '0002_profile_nickname'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='picture... | 24.842105 | 131 | 0.631356 | 53 | 472 | 5.490566 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053221 | 0.243644 | 472 | 18 | 132 | 26.222222 | 0.761905 | 0.095339 | 0 | 0 | 1 | 0 | 0.178824 | 0.049412 | 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 |
c508650d5682825f2feb947da642ea9cbca45472 | 310 | py | Python | rubik_solver/scrambler.py | itsdaveba/rubik-solver | eebae6cffc9f91e64d5f3e49d556a78df0e703f5 | [
"MIT"
] | null | null | null | rubik_solver/scrambler.py | itsdaveba/rubik-solver | eebae6cffc9f91e64d5f3e49d556a78df0e703f5 | [
"MIT"
] | null | null | null | rubik_solver/scrambler.py | itsdaveba/rubik-solver | eebae6cffc9f91e64d5f3e49d556a78df0e703f5 | [
"MIT"
] | null | null | null | from .defs import available_moves
import random
def generate_random_scramble(num_moves):
scramble = []
last_move = None
for _ in range(num_moves):
last_move = random.choice(available_moves[last_move])
scramble.append(last_move)
return ' '.join(scramble).replace('1', '').replace('3', "'") | 25.833333 | 61 | 0.709677 | 41 | 310 | 5.097561 | 0.560976 | 0.15311 | 0.124402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.154839 | 310 | 12 | 61 | 25.833333 | 0.790076 | 0 | 0 | 0 | 1 | 0 | 0.013333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c514fed2f0fc48201dd99f684c070ac5f328d45a | 568 | py | Python | app_challenges_sections_units/migrations/0051_auto_20190625_1006.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | app_challenges_sections_units/migrations/0051_auto_20190625_1006.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | app_challenges_sections_units/migrations/0051_auto_20190625_1006.py | Audiotuete/backend_wagtail_api | 3c5a4a610ffdbb75d45a57fc670e2ae3b7178c62 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2019-06-25 10:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_challenges_sections_units', '0050_auto_20190625_0850'),
]
operations = [
migrations.AlterField(
... | 28.4 | 152 | 0.690141 | 65 | 568 | 5.846154 | 0.676923 | 0.063158 | 0.073684 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068584 | 0.204225 | 568 | 19 | 153 | 29.894737 | 0.772124 | 0.079225 | 0 | 0 | 1 | 0 | 0.247601 | 0.176583 | 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 |
c52798e7479817130bc6720b1d7d9009449a53b7 | 1,542 | py | Python | fibo.py | theamurtagh/exercises | 025cd4619eb97df66c66d73caaa8bd1c2fe908b1 | [
"Apache-2.0"
] | null | null | null | fibo.py | theamurtagh/exercises | 025cd4619eb97df66c66d73caaa8bd1c2fe908b1 | [
"Apache-2.0"
] | null | null | null | fibo.py | theamurtagh/exercises | 025cd4619eb97df66c66d73caaa8bd1c2fe908b1 | [
"Apache-2.0"
] | null | null | null | # Ian McLoughlin
# A program that displays Fibonacci numbers.
def fib(n):
"""This function returns the nth Fibonacci number."""
i = 0
j = 1
n = n - 1
while n >= 0:
i, j = j, i + j
n = n - 1
return i
# Test the function with the following value.
x = 21
ans = fib(x)
print("Fibonacci number", x,... | 22.347826 | 129 | 0.671855 | 251 | 1,542 | 4.12749 | 0.350598 | 0.086873 | 0.011583 | 0.040541 | 0.359073 | 0.291506 | 0.241313 | 0.241313 | 0.146718 | 0.146718 | 0 | 0.085977 | 0.223087 | 1,542 | 68 | 130 | 22.676471 | 0.778798 | 0.116732 | 0 | 0.5 | 0 | 0.025 | 0.084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c52d4d74fe962ee6000de5a22b7585ec6ff09dc0 | 1,863 | py | Python | userpresence.py | proximate/proximate | 671f5d816137ef83de2d8b9ccff502c9a5f2fb28 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 3 | 2015-02-16T02:55:31.000Z | 2016-04-14T16:19:50.000Z | userpresence.py | proximate/proximate | 671f5d816137ef83de2d8b9ccff502c9a5f2fb28 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | userpresence.py | proximate/proximate | 671f5d816137ef83de2d8b9ccff502c9a5f2fb28 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | #
# Proximate - Peer-to-peer social networking
#
# Copyright (c) 2008-2011 Nokia Corporation
#
# All rights reserved.
#
# This software is licensed under The Clear BSD license.
# See the LICENSE file for more details.
#
from plugins import Plugin, get_plugin_by_type
from proximateprotocol import PLUGIN_TYPE_COMMUNITY, ... | 27.80597 | 104 | 0.670424 | 241 | 1,863 | 4.954357 | 0.344398 | 0.050251 | 0.027638 | 0.037688 | 0.204355 | 0.204355 | 0.162479 | 0.162479 | 0.162479 | 0.162479 | 0 | 0.006383 | 0.243156 | 1,863 | 66 | 105 | 28.227273 | 0.840426 | 0.106817 | 0 | 0.186047 | 0 | 0 | 0.021779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0.069767 | 0.069767 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5309ff230ff81efc755e7882f80b6a60c389af4 | 55,126 | py | Python | python/proton/_endpoints.py | jiridanek/qpid-proton | 341d30f8cff0ba98bac65604ad87e4d01062080c | [
"Apache-2.0"
] | null | null | null | python/proton/_endpoints.py | jiridanek/qpid-proton | 341d30f8cff0ba98bac65604ad87e4d01062080c | [
"Apache-2.0"
] | 33 | 2021-04-27T21:40:31.000Z | 2021-06-30T17:52:17.000Z | python/proton/_endpoints.py | jiridanek/qpid-proton | 341d30f8cff0ba98bac65604ad87e4d01062080c | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 34.956246 | 122 | 0.656006 | 7,133 | 55,126 | 4.874106 | 0.097715 | 0.028073 | 0.012656 | 0.016395 | 0.448471 | 0.361377 | 0.311157 | 0.274226 | 0.254638 | 0.239365 | 0 | 0.001578 | 0.264304 | 55,126 | 1,576 | 123 | 34.978426 | 0.855681 | 0.361898 | 0 | 0.305085 | 0 | 0 | 0.220166 | 0.009931 | 0 | 0 | 0 | 0.001269 | 0.003082 | 1 | 0.220339 | false | 0.013867 | 0.016949 | 0.046225 | 0.476117 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5451fabda744a78561ed09538fee5c812e98dea | 4,757 | py | Python | tests/unit/benchmark/scenarios/availability/test_result_checker_general.py | kkltcjk/kklt | 5388eb439616a442dde496ef77ba6b71169369e0 | [
"Apache-2.0"
] | null | null | null | tests/unit/benchmark/scenarios/availability/test_result_checker_general.py | kkltcjk/kklt | 5388eb439616a442dde496ef77ba6b71169369e0 | [
"Apache-2.0"
] | null | null | null | tests/unit/benchmark/scenarios/availability/test_result_checker_general.py | kkltcjk/kklt | 5388eb439616a442dde496ef77ba6b71169369e0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
##############################################################################
# Copyright (c) 2016 Huan Li and others
# lihuansse@tongji.edu.cn
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accom... | 40.65812 | 78 | 0.57326 | 486 | 4,757 | 5.376543 | 0.218107 | 0.124378 | 0.091848 | 0.061232 | 0.704171 | 0.687715 | 0.64868 | 0.64868 | 0.64868 | 0.621125 | 0 | 0.009107 | 0.284423 | 4,757 | 116 | 79 | 41.008621 | 0.758519 | 0.086609 | 0 | 0.466667 | 0 | 0 | 0.115789 | 0.045694 | 0 | 0 | 0 | 0 | 0.077778 | 1 | 0.1 | false | 0 | 0.055556 | 0 | 0.166667 | 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 |
c5485a9f8ab21a851005fae50aab3630ef388b20 | 1,211 | py | Python | 8.py | z52527/Leetcode | 2f816a84f9d72906215465e9355952069adc854d | [
"Apache-2.0"
] | null | null | null | 8.py | z52527/Leetcode | 2f816a84f9d72906215465e9355952069adc854d | [
"Apache-2.0"
] | null | null | null | 8.py | z52527/Leetcode | 2f816a84f9d72906215465e9355952069adc854d | [
"Apache-2.0"
] | null | null | null | def is_number(s):
try:
float(s)
return True
except ValueError:
pass
try:
import unicodedata
unicodedata.numeric(s)
True
except (TypeError, ValueError):
pass
return False
class Solution:
def myAtoi(self, str):
"""
:ty... | 19.852459 | 48 | 0.330306 | 119 | 1,211 | 3.336134 | 0.403361 | 0.020151 | 0.040302 | 0.030227 | 0.040302 | 0.040302 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.57886 | 1,211 | 61 | 49 | 19.852459 | 0.719608 | 0.02147 | 0 | 0.4 | 0 | 0 | 0.019931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.044444 | 0.022222 | 0 | 0.2 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c54ea9c1a61784fcae5b881fcb1c8aaddb6767e8 | 518 | py | Python | golem/bin/golem_admin.py | kangchenwei/keyautotest2 | f980d46cabfc128b2099af3d33968f236923063f | [
"MIT"
] | 1 | 2018-10-31T07:43:26.000Z | 2018-10-31T07:43:26.000Z | golem/bin/golem_admin.py | kangchenwei/keyautotest2 | f980d46cabfc128b2099af3d33968f236923063f | [
"MIT"
] | null | null | null | golem/bin/golem_admin.py | kangchenwei/keyautotest2 | f980d46cabfc128b2099af3d33968f236923063f | [
"MIT"
] | null | null | null | """A CLI admin script used to generate the initial 'test directory that
contains the projects and all the required fields for Golem to
work. This is a is directory independent script.
"""
import argparse
from .. import commands
def main():
parser = argparse.ArgumentParser(add_help=False)
sub_parsers = parser.... | 28.777778 | 71 | 0.752896 | 75 | 518 | 5.04 | 0.6 | 0.079365 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167954 | 518 | 17 | 72 | 30.470588 | 0.87703 | 0.34749 | 0 | 0 | 1 | 0 | 0.033233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
c55171a8899c2f5c0957c65383cc56566b40d8e5 | 353 | py | Python | dinamicos-bworld/runme_balloon.py | ochoadavid/SciPyLA2016-VisPy | 1bcd965e9706bbf48a0aedb1ad200db7edc90ba2 | [
"MIT"
] | 1 | 2016-05-16T16:51:18.000Z | 2016-05-16T16:51:18.000Z | dinamicos-bworld/runme_balloon.py | ochoadavid/SciPyLA2016-VisPy | 1bcd965e9706bbf48a0aedb1ad200db7edc90ba2 | [
"MIT"
] | null | null | null | dinamicos-bworld/runme_balloon.py | ochoadavid/SciPyLA2016-VisPy | 1bcd965e9706bbf48a0aedb1ad200db7edc90ba2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
## Autor: David Ochoa
import numpy as np
from balloon import Balloon
from bworld import Bworld
n = 30
balloons = []
for i in range(n):
balloons.append(Balloon(np.random.rand(3) * 10, (np.random.rand(3) - 0.5) * 10,
color = np.random.rand(4) / 2 + 0.5... | 22.0625 | 83 | 0.620397 | 55 | 353 | 3.981818 | 0.618182 | 0.109589 | 0.164384 | 0.118721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058182 | 0.220963 | 353 | 15 | 84 | 23.533333 | 0.738182 | 0.164306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c5529b03cd66fa57d80af4c7d14981e891ae8105 | 442 | py | Python | app/core/globals.py | doseextra/site | 40e1e5684a8f562bdad74b33cfa71f6304c88054 | [
"MIT"
] | null | null | null | app/core/globals.py | doseextra/site | 40e1e5684a8f562bdad74b33cfa71f6304c88054 | [
"MIT"
] | null | null | null | app/core/globals.py | doseextra/site | 40e1e5684a8f562bdad74b33cfa71f6304c88054 | [
"MIT"
] | null | null | null | from dynaconf import settings
from flask import request
def init_app(app):
@app.context_processor
def inject_globals():
return {
"app_name": settings.get("APP_NAME") or "[DEV_MOD] - FALAFEL",
"app_url": settings.get("APP_URL") if settings.get("APP_ENV") == "production" else request.url_r... | 34 | 108 | 0.662896 | 59 | 442 | 4.728814 | 0.474576 | 0.197133 | 0.250896 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196833 | 442 | 13 | 109 | 34 | 0.785915 | 0 | 0 | 0 | 0 | 0 | 0.255079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.454545 | 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 |
c553a8597b0498cb17ede31710f7546d4e339a23 | 1,874 | py | Python | ancfinder_site/migrations/0001_initial.py | rbmy/ancfinder | fdf5af4ea185857e06f04714b465c0e05f0a0a8e | [
"CC0-1.0"
] | 1 | 2018-12-04T01:50:06.000Z | 2018-12-04T01:50:06.000Z | ancfinder_site/migrations/0001_initial.py | rbmy/ancfinder | fdf5af4ea185857e06f04714b465c0e05f0a0a8e | [
"CC0-1.0"
] | 1 | 2019-02-09T18:45:55.000Z | 2019-02-09T18:45:55.000Z | ancfinder_site/migrations/0001_initial.py | rbmy/ancfinder | fdf5af4ea185857e06f04714b465c0e05f0a0a8e | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-08 22:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Anc',
fields=[
... | 36.745098 | 171 | 0.578975 | 190 | 1,874 | 5.584211 | 0.342105 | 0.0377 | 0.05278 | 0.082941 | 0.604147 | 0.577757 | 0.577757 | 0.577757 | 0.577757 | 0.577757 | 0 | 0.01506 | 0.291355 | 1,874 | 50 | 172 | 37.48 | 0.783886 | 0.024013 | 0 | 0.581395 | 1 | 0 | 0.141762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.139535 | 0 | 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 |
c558eb4bb85954eeab7f5ec46b31d6f51bde3508 | 3,007 | py | Python | bibleapp/models.py | kiwiheretic/logos-v2 | 22739221a6d431322c809b7e17aba54f37eb9617 | [
"Apache-2.0"
] | 4 | 2015-02-20T08:11:59.000Z | 2019-05-15T23:48:11.000Z | bibleapp/models.py | kiwiheretic/logos-v2 | 22739221a6d431322c809b7e17aba54f37eb9617 | [
"Apache-2.0"
] | 58 | 2015-01-11T02:10:09.000Z | 2022-03-20T01:20:15.000Z | bibleapp/models.py | kiwiheretic/logos-v2 | 22739221a6d431322c809b7e17aba54f37eb9617 | [
"Apache-2.0"
] | 1 | 2016-06-15T00:49:44.000Z | 2016-06-15T00:49:44.000Z | from django.db import models
DB_ROUTER={"bibles":('BibleTranslations', 'BibleBooks',
'BibleVerses', 'BibleConcordance',
'BibleDict', 'XRefs')}
class BibleColours(models.Model):
network = models.TextField()
room = models.TextField()
element = models.TextField()
mir... | 31.652632 | 77 | 0.633189 | 309 | 3,007 | 5.996764 | 0.23301 | 0.14571 | 0.056125 | 0.06476 | 0.509444 | 0.424717 | 0.319482 | 0.243929 | 0.137075 | 0.137075 | 0 | 0.008783 | 0.242767 | 3,007 | 94 | 78 | 31.989362 | 0.805007 | 0.054207 | 0 | 0.297297 | 0 | 0 | 0.120014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013514 | 0 | 0.702703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c55b1e3753f81a285ffc11eb1cb178dfd69fca60 | 9,853 | py | Python | views/auth.py | tigerwingxys/tigerwingblog | 655454e96a152384629352814054f56fe4f2ece6 | [
"Apache-2.0"
] | 1 | 2019-10-25T03:13:05.000Z | 2019-10-25T03:13:05.000Z | views/auth.py | tigerwingxys/tigerwingblog | 655454e96a152384629352814054f56fe4f2ece6 | [
"Apache-2.0"
] | null | null | null | views/auth.py | tigerwingxys/tigerwingblog | 655454e96a152384629352814054f56fe4f2ece6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2019 Tigerwing(tigerwingxys@qq.com)
#
# 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... | 41.57384 | 134 | 0.642241 | 1,201 | 9,853 | 5.147377 | 0.222315 | 0.037205 | 0.038822 | 0.024749 | 0.570204 | 0.47606 | 0.374313 | 0.317697 | 0.279521 | 0.263992 | 0 | 0.009566 | 0.225515 | 9,853 | 236 | 135 | 41.75 | 0.797405 | 0.062925 | 0 | 0.44086 | 0 | 0.010753 | 0.147043 | 0.034075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010753 | false | 0.11828 | 0.091398 | 0 | 0.188172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c55df16737679a8b961c4983917f2df0ab6870e4 | 3,583 | py | Python | pdb2pqr-1.9.0/src/errors.py | Acpharis/protein_prep | 8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8 | [
"BSD-3-Clause"
] | null | null | null | pdb2pqr-1.9.0/src/errors.py | Acpharis/protein_prep | 8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8 | [
"BSD-3-Clause"
] | null | null | null | pdb2pqr-1.9.0/src/errors.py | Acpharis/protein_prep | 8cc2f0caedefd5a3fdaa764ed013c2660a4df1b8 | [
"BSD-3-Clause"
] | null | null | null | """
PDB2PQR exceptions
This module represents errors specific to PDB2PQR. Exists mainly to allow
us to more easily distinguish between code errors and input errors.
Parsing utilities provided by Nathan A. Baker (Nathan.Baker@pnl.gov)
Pacific Northwest National Laboratory
Copyright (... | 47.144737 | 97 | 0.680156 | 421 | 3,583 | 5.691211 | 0.496437 | 0.026711 | 0.03005 | 0.042571 | 0.131886 | 0.056761 | 0.056761 | 0.056761 | 0.056761 | 0.056761 | 0 | 0.008407 | 0.269606 | 3,583 | 76 | 97 | 47.144737 | 0.907146 | 0.624058 | 0 | 0.153846 | 0 | 0 | 0.130282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.038462 | 0.076923 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c55e4602c0dc2da4677539eb1e0358fd19bb2f49 | 1,815 | py | Python | bzt/modules/services.py | gulraiz14/Taurus | 3fb886092634fd97f38012dc81fb62b1ed20a145 | [
"Apache-2.0"
] | null | null | null | bzt/modules/services.py | gulraiz14/Taurus | 3fb886092634fd97f38012dc81fb62b1ed20a145 | [
"Apache-2.0"
] | null | null | null | bzt/modules/services.py | gulraiz14/Taurus | 3fb886092634fd97f38012dc81fb62b1ed20a145 | [
"Apache-2.0"
] | null | null | null | """
Implementations for small services
Copyright 2015 BlazeMeter Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | 33 | 102 | 0.700275 | 247 | 1,815 | 5.040486 | 0.489879 | 0.048193 | 0.020884 | 0.025703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006311 | 0.214325 | 1,815 | 54 | 103 | 33.611111 | 0.86676 | 0.350413 | 0 | 0 | 0 | 0 | 0.081127 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5714d2b9c12cb05de34ba7c025f4db712f600b9 | 2,451 | py | Python | ceasiompy/BalanceUnconventional/__specs__.py | jphkun/CEASIOMpy | 6425cfeb786019fccfc98aaa2fd676b2de466dac | [
"Apache-2.0"
] | 33 | 2018-11-20T16:34:40.000Z | 2022-03-29T07:26:18.000Z | ceasiompy/BalanceUnconventional/__specs__.py | jphkun/CEASIOMpy | 6425cfeb786019fccfc98aaa2fd676b2de466dac | [
"Apache-2.0"
] | 54 | 2019-09-17T15:57:47.000Z | 2022-03-30T08:12:52.000Z | ceasiompy/BalanceUnconventional/__specs__.py | jphkun/CEASIOMpy | 6425cfeb786019fccfc98aaa2fd676b2de466dac | [
"Apache-2.0"
] | 26 | 2018-11-30T14:33:44.000Z | 2022-03-22T07:30:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from ceasiompy.utils.moduleinterfaces import CPACSInOut, AIRCRAFT_XPATH
# ===== RCE integration =====
RCE = {
"name": "BalanceUnconventional",
"description": "Module to calculate Center of gravity and inertia for a unconventonal aircraft",
"exec": "pwd\npyth... | 26.934066 | 100 | 0.639739 | 289 | 2,451 | 5.231834 | 0.408305 | 0.05291 | 0.051587 | 0.059524 | 0.382937 | 0.258598 | 0.138889 | 0.138889 | 0.138889 | 0.138889 | 0 | 0.005604 | 0.199102 | 2,451 | 90 | 101 | 27.233333 | 0.764646 | 0.783762 | 0 | 0 | 0 | 0 | 0.412664 | 0.045852 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.