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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ac441af56178489e738d7ad190d984b019e066c | 572 | py | Python | backoffice/cloud/create_dbslave.py | linkedin/indextank-service | 880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e | [
"Apache-2.0"
] | 26 | 2015-06-15T11:21:09.000Z | 2020-12-27T19:42:14.000Z | backoffice/cloud/create_dbslave.py | LinkedInAttic/indextank-service | 880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e | [
"Apache-2.0"
] | 1 | 2020-09-15T19:34:38.000Z | 2020-09-15T19:34:38.000Z | backoffice/cloud/create_dbslave.py | LinkedInAttic/indextank-service | 880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e | [
"Apache-2.0"
] | 12 | 2015-03-17T17:14:19.000Z | 2019-12-21T13:26:23.000Z | import subprocess, sys, json
from config_dbslave import config_dbslave
from launch_ami import launch_ami
def create_dbslave(master_host):
print 'Creating DB SLAVE from MASTER %s' % master_host
instance_data = launch_ami('db')
slave_host = instance_data['public_dns']
config_dbslave(master_host, slave_host, '**... | 24.869565 | 58 | 0.716783 | 84 | 572 | 4.547619 | 0.416667 | 0.157068 | 0.133508 | 0.120419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.160839 | 572 | 22 | 59 | 26 | 0.7875 | 0 | 0 | 0 | 0 | 0 | 0.207018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ac62699340a5c0c53e7f88fa7a72a6200584408 | 625 | py | Python | meirin/db/policy.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | meirin/db/policy.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | meirin/db/policy.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | from sqlalchemy import Column, ForeignKey, Sequence
from sqlalchemy import Integer, String, Text
from meirin.db.base_class import Base
class Policy(Base):
__tablename__ = 'policy'
# helper
policy_id_seq = Sequence('policy_id_seq', metadata=Base.metadata)
# columns
id = Column(Integer, policy... | 27.173913 | 105 | 0.6992 | 83 | 625 | 5.024096 | 0.46988 | 0.095923 | 0.105516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.184 | 625 | 22 | 106 | 28.409091 | 0.809804 | 0.0224 | 0 | 0 | 0 | 0 | 0.121711 | 0.036184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 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 |
1ac9b36bc2bf5c2125c9c2195b0b4a02e18499f4 | 1,280 | py | Python | mi/97.py | 1005281342/learn | c9d1e2e256842d9b4846c4870ac72e83d172b20e | [
"Apache-2.0"
] | 1 | 2018-11-29T01:01:32.000Z | 2018-11-29T01:01:32.000Z | mi/97.py | 1005281342/learn | c9d1e2e256842d9b4846c4870ac72e83d172b20e | [
"Apache-2.0"
] | null | null | null | mi/97.py | 1005281342/learn | c9d1e2e256842d9b4846c4870ac72e83d172b20e | [
"Apache-2.0"
] | null | null | null | """
描述
市政府想在品罗路建一些基站,保证这条路上每个公司的员工都能享受到 Wi-Fi。
为了简化问题,我们将品罗路理解成一条直线,一个 Wi-Fi 基站为直线上的一个点。
基站的费用为 A + k*B,其中A为建立基站的固定费用,B 为覆盖每单位距离需要的费用,k 为覆盖半径。
如果在 a 点建立基站,覆盖半径为 k,那么位于 [a-k, a+k] 的公司都能享受到这个基站的服务。
现在给出每个公司的坐标,以及 A 和 B,求覆盖到所有公司需要的最小建设费用。
输入
前两个整数是 A 和 B,然后是一个分号,然后是每个公司的坐标。(0 <= A, B <= 1000,0 <= 公司坐标 <= 1,000,000... | 17.066667 | 98 | 0.560938 | 219 | 1,280 | 3.159817 | 0.447489 | 0.034682 | 0.026012 | 0.020231 | 0.104046 | 0.080925 | 0.080925 | 0.080925 | 0.080925 | 0.080925 | 0 | 0.059395 | 0.276563 | 1,280 | 75 | 99 | 17.066667 | 0.687905 | 0.439844 | 0 | 0.086957 | 0 | 0 | 0.040185 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1acec240d4f8863f1a27c5520c073f8fdb0733e4 | 311 | py | Python | functions/decorators/practice3.py | Rorima/exercicios-python | ca78e2d2402c2aa90efd95ccaa620c0a8b42444f | [
"MIT"
] | null | null | null | functions/decorators/practice3.py | Rorima/exercicios-python | ca78e2d2402c2aa90efd95ccaa620c0a8b42444f | [
"MIT"
] | null | null | null | functions/decorators/practice3.py | Rorima/exercicios-python | ca78e2d2402c2aa90efd95ccaa620c0a8b42444f | [
"MIT"
] | null | null | null | """
Parameters and syntactic sugar.
"""
def dec(func):
def wrapper(*args, **kwargs):
print('Top decoration')
rv = func(*args, **kwargs)
print('Bottom decoration')
return rv
return wrapper
@dec
def sum_it(a, b):
return(a + b)
x = sum_it(10, 5)
print(x)
| 13.521739 | 34 | 0.549839 | 41 | 311 | 4.121951 | 0.560976 | 0.118343 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.302251 | 311 | 22 | 35 | 14.136364 | 0.764977 | 0.099678 | 0 | 0 | 0 | 0 | 0.114391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 0.416667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46b99eea5cb557c8c2bab50cd3f51032025e3545 | 1,198 | py | Python | tock/projects/migrations/0026_auto_20200519_1616.py | elisoncrum/tock | 5d8468ddc1cb73d67bb434bca04e6d5f07a08c2c | [
"CC0-1.0"
] | 134 | 2015-02-02T18:42:03.000Z | 2022-01-20T04:27:06.000Z | tock/projects/migrations/0026_auto_20200519_1616.py | elisoncrum/tock | 5d8468ddc1cb73d67bb434bca04e6d5f07a08c2c | [
"CC0-1.0"
] | 1,220 | 2015-03-19T01:57:30.000Z | 2022-03-23T21:52:15.000Z | tock/projects/migrations/0026_auto_20200519_1616.py | elisoncrum/tock | 5d8468ddc1cb73d67bb434bca04e6d5f07a08c2c | [
"CC0-1.0"
] | 49 | 2015-03-09T15:44:33.000Z | 2022-01-19T02:02:37.000Z | # Generated by Django 2.2.12 on 2020-05-19 20:16
from django.db import migrations
def populate_project_organizations(apps, schema_editor):
Project = apps.get_model('projects', 'Project')
Organization = apps.get_model('organizations', 'Organization')
# assignment of existing projects to orgs based on proj... | 30.717949 | 101 | 0.639399 | 139 | 1,198 | 5.309353 | 0.532374 | 0.044715 | 0.069106 | 0.051491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053611 | 0.237062 | 1,198 | 38 | 102 | 31.526316 | 0.753829 | 0.131886 | 0 | 0 | 1 | 0 | 0.168919 | 0.043436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.037037 | 0 | 0.185185 | 0 | 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 |
46ba2de16347c99600677eaa9c470bf1b191f6ab | 2,507 | py | Python | build/full_test.py | wanghuan578/chrome-gn | adb3afd0b3f9d3040d97b7d8b8bc86d71c137a84 | [
"BSD-3-Clause"
] | 10 | 2018-11-16T09:38:06.000Z | 2021-04-27T08:27:52.000Z | build/full_test.py | wanghuan578/chrome-gn | adb3afd0b3f9d3040d97b7d8b8bc86d71c137a84 | [
"BSD-3-Clause"
] | 1 | 2020-12-17T17:03:36.000Z | 2020-12-17T17:03:36.000Z | build/full_test.py | wanghuan578/chrome-gn | adb3afd0b3f9d3040d97b7d8b8bc86d71c137a84 | [
"BSD-3-Clause"
] | 15 | 2019-02-07T18:45:33.000Z | 2021-10-31T21:45:17.000Z | #!/usr/bin/env python3
# Copyright 2018 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 os
import shutil
import subprocess
import sys
import timeit
IS_WIN = sys.platform.startswith('win')
def RemoveDir(d):
if ... | 30.573171 | 80 | 0.667331 | 410 | 2,507 | 3.887805 | 0.360976 | 0.037641 | 0.050188 | 0.040778 | 0.067754 | 0.067754 | 0.047679 | 0.047679 | 0 | 0 | 0 | 0.020118 | 0.187076 | 2,507 | 81 | 81 | 30.950617 | 0.762022 | 0.227363 | 0 | 0.04 | 0 | 0 | 0.184935 | 0.014545 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.14 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46be2293073c575450bbf65e267ad4f69192c81a | 275 | py | Python | Snippets and Basic Functions/File Operations/Text/text-file-reader.py | sckulkarni246/python-snippets-for-embedded-programmers | 9dfd0b193f86a6de54598917f3d7088a60ec4abc | [
"MIT"
] | null | null | null | Snippets and Basic Functions/File Operations/Text/text-file-reader.py | sckulkarni246/python-snippets-for-embedded-programmers | 9dfd0b193f86a6de54598917f3d7088a60ec4abc | [
"MIT"
] | null | null | null | Snippets and Basic Functions/File Operations/Text/text-file-reader.py | sckulkarni246/python-snippets-for-embedded-programmers | 9dfd0b193f86a6de54598917f3d7088a60ec4abc | [
"MIT"
] | null | null | null | def read_lines_of_file(filename):
with open(filename) as f:
content = f.readlines()
return content,len(content)
alltext,alltextlen = read_lines_of_file('read.txt')
for line in alltext:
print(line.rstrip())
print("Number of lines read from file --> %d" %(alltextlen)) | 30.555556 | 60 | 0.734545 | 42 | 275 | 4.666667 | 0.595238 | 0.091837 | 0.112245 | 0.153061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130909 | 275 | 9 | 60 | 30.555556 | 0.820084 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
46ce127d22f0c64ed5c621d844368e8357ccc170 | 739 | py | Python | setup.py | rmax/django-dummyimage | e95c60a1a8f9f4c9ed1805dc219ed79ad83b877c | [
"BSD-3-Clause"
] | 11 | 2020-02-25T22:22:54.000Z | 2021-11-15T09:52:24.000Z | setup.py | rolando/django-dummyimage | e95c60a1a8f9f4c9ed1805dc219ed79ad83b877c | [
"BSD-3-Clause"
] | null | null | null | setup.py | rolando/django-dummyimage | e95c60a1a8f9f4c9ed1805dc219ed79ad83b877c | [
"BSD-3-Clause"
] | 3 | 2018-04-08T21:04:55.000Z | 2019-04-11T22:41:01.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "django-dummyimage",
version = "0.1.1",
description = "Dynamic Dummy Image Generator For Django!",
author = "Rolando Espinoza La fuente",
author_email = "darkrho@gmail.com",
url = "https://github.com/darkrho/django-... | 28.423077 | 69 | 0.625169 | 79 | 739 | 5.759494 | 0.810127 | 0.052747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.247632 | 739 | 25 | 70 | 29.56 | 0.811151 | 0.092016 | 0 | 0.086957 | 0 | 0 | 0.406577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46da9ee512eabb0e5a612d5c4518ea3c0f5a9585 | 376 | py | Python | src/jupyter_starters/types.py | nrbgt/jupyterlab-starters | ef5384b754f92873d4ae328ad910e1de3b3782f7 | [
"BSD-3-Clause"
] | null | null | null | src/jupyter_starters/types.py | nrbgt/jupyterlab-starters | ef5384b754f92873d4ae328ad910e1de3b3782f7 | [
"BSD-3-Clause"
] | null | null | null | src/jupyter_starters/types.py | nrbgt/jupyterlab-starters | ef5384b754f92873d4ae328ad910e1de3b3782f7 | [
"BSD-3-Clause"
] | null | null | null | """ some types and constants
"""
# pylint: disable=too-few-public-methods
NS = "starters"
class Status:
""" pseudo-enum for managing statuses
"""
# the starter isn't done yet, and more data is required
CONTINUING = "continuing"
# the starter is done, and should not continue
DONE = "done"
... | 19.789474 | 59 | 0.656915 | 48 | 376 | 5.145833 | 0.791667 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242021 | 376 | 18 | 60 | 20.888889 | 0.866667 | 0.62234 | 0 | 0 | 0 | 0 | 0.216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46df040ea67244930a81753706305710278b4c57 | 514 | py | Python | src/main/python/coding_problems/bs_consecutive_duplicates.py | ikumen/today-i-learned | 323bbe83dd73b65d3ad91b0d908613ee29f8cf8c | [
"MIT"
] | null | null | null | src/main/python/coding_problems/bs_consecutive_duplicates.py | ikumen/today-i-learned | 323bbe83dd73b65d3ad91b0d908613ee29f8cf8c | [
"MIT"
] | null | null | null | src/main/python/coding_problems/bs_consecutive_duplicates.py | ikumen/today-i-learned | 323bbe83dd73b65d3ad91b0d908613ee29f8cf8c | [
"MIT"
] | null | null | null | """
Given a string s, consisting of "X" and "Y"s, delete the minimum number of characters such that there's no consecutive "X" and no consecutive "Y".
Constraints
n ≤ 100,000 where n is the length of s
https://binarysearch.com/problems/Consecutive-Duplicates
"""
class Solution:
def solve(self, s):
#... | 28.555556 | 146 | 0.620623 | 76 | 514 | 4.210526 | 0.697368 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.268482 | 514 | 18 | 147 | 28.555556 | 0.827128 | 0.552529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 |
46df9ce80fe3c5ba5e3fcd768cc0def4646520d2 | 4,426 | py | Python | StartWithPython/StartWithPython/Theory/DataTypes/String.py | CaptainMich/Python_Project | 07238252570cd102e49c635f0455ec2c0c978342 | [
"MIT"
] | 1 | 2016-12-22T16:25:39.000Z | 2016-12-22T16:25:39.000Z | StartWithPython/StartWithPython/Theory/DataTypes/String.py | CaptainMich/Python_Project | 07238252570cd102e49c635f0455ec2c0c978342 | [
"MIT"
] | null | null | null | StartWithPython/StartWithPython/Theory/DataTypes/String.py | CaptainMich/Python_Project | 07238252570cd102e49c635f0455ec2c0c978342 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------------------------------------------
# STRING
# -------------------------------------------------------------------------------------------------
print('\n\t\tSTRING\n')
print("Hello Word!") # first example
print('Hello Word!')... | 48.108696 | 160 | 0.415951 | 407 | 4,426 | 4.515971 | 0.410319 | 0.083243 | 0.060936 | 0.014146 | 0.089771 | 0.073993 | 0.073993 | 0.04679 | 0 | 0 | 0 | 0.00762 | 0.347718 | 4,426 | 91 | 161 | 48.637363 | 0.629027 | 0.455264 | 0 | 0.058824 | 0 | 0 | 0.134607 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.019608 | 0.823529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46e7d16616add910f55741c2b81baf58accf3da6 | 1,966 | py | Python | apps/keyboard/js/imes/jskanji/dict/conv.py | wilsonpage/gaia | d0beeca2401ff90564dfcbe45ee5237d46605ab8 | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | apps/keyboard/js/imes/jskanji/dict/conv.py | ganesh7/gaia | 32112b10072e82ac8d52be891d09685f8eaa02f8 | [
"Apache-2.0"
] | 3 | 2016-09-10T15:41:48.000Z | 2016-09-10T15:42:41.000Z | apps/keyboard/js/imes/jskanji/dict/conv.py | ganesh7/gaia | 32112b10072e82ac8d52be891d09685f8eaa02f8 | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
import codecs
from jcconv import kata2hira
file_list = ['dict.utf8',]
temp_obj = dict()
total_freq = 0
for file_name in file_list:
print file_name
with codecs.open(file_name, 'r', 'utf-8') as f:
for line in f:... | 28.085714 | 92 | 0.423703 | 239 | 1,966 | 3.393305 | 0.313808 | 0.051788 | 0.033292 | 0.019729 | 0.078915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02518 | 0.434385 | 1,966 | 69 | 93 | 28.492754 | 0.704137 | 0.021363 | 0 | 0.081633 | 0 | 0 | 0.048056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46e7e33f4d53b6a1de4d6cc216b3c579dffc5dd5 | 7,677 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_cloud_epg.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_cloud_epg.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_cloud_epg.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2021, Cindy Zhao <cizhao@cisco.com>
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
---
module: aci_cloud_... | 26.291096 | 141 | 0.598411 | 859 | 7,677 | 5.232829 | 0.281723 | 0.033815 | 0.01713 | 0.024472 | 0.331257 | 0.288988 | 0.239155 | 0.231368 | 0.189544 | 0.11257 | 0 | 0.007256 | 0.281881 | 7,677 | 291 | 142 | 26.381443 | 0.80809 | 0.023447 | 0 | 0.348485 | 0 | 0.011364 | 0.718404 | 0.026958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003788 | false | 0.015152 | 0.011364 | 0 | 0.015152 | 0.003788 | 0 | 0 | 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 |
46ee1fb154a495b5b0aca7ba99215c6cfa623271 | 3,982 | py | Python | allthevhosts.py | 99scratch/allthevhosts | e9b9a8bef665b7e976aa815dcefa97e3a3d2ce9c | [
"MIT"
] | 1 | 2020-06-03T02:44:27.000Z | 2020-06-03T02:44:27.000Z | allthevhosts.py | 99scratch/allthevhosts | e9b9a8bef665b7e976aa815dcefa97e3a3d2ce9c | [
"MIT"
] | null | null | null | allthevhosts.py | 99scratch/allthevhosts | e9b9a8bef665b7e976aa815dcefa97e3a3d2ce9c | [
"MIT"
] | 1 | 2020-06-03T02:44:28.000Z | 2020-06-03T02:44:28.000Z | ## ALLTHEVHOSTS.py
## A quick little webscraper to identify all the webapps associated with an IP address.
#
# Version 1.0
#
## Usage allthevhosts.py <ip or URL> <outputfile (optional)>
import urllib2
import sys
import re
import json
import socket
import ssl
from HTMLParser import HTMLParser
from bs4 import Beautiful... | 25.202532 | 166 | 0.679809 | 574 | 3,982 | 4.682927 | 0.318815 | 0.026786 | 0.020833 | 0.035342 | 0.240699 | 0.198289 | 0.104167 | 0.104167 | 0.084077 | 0.068452 | 0 | 0.006581 | 0.160472 | 3,982 | 157 | 167 | 25.363057 | 0.797487 | 0.067052 | 0 | 0.259843 | 0 | 0.007874 | 0.318833 | 0.009187 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023622 | 0.062992 | null | null | 0.165354 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46f326b4ebaef8ad063657f7425f67cab24eb158 | 996 | py | Python | case/file1.py | xierensong/learnPython | 33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455 | [
"MIT"
] | null | null | null | case/file1.py | xierensong/learnPython | 33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455 | [
"MIT"
] | null | null | null | case/file1.py | xierensong/learnPython | 33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455 | [
"MIT"
] | 1 | 2018-10-11T08:20:44.000Z | 2018-10-11T08:20:44.000Z | from pathlib import Path
if __name__ == '__main__':
p = Path('..')
print(p)
print([x for x in p.iterdir() if x.is_dir()])
# assign file with path, not exist
q = Path('../data/tmp')
if q.exists() == 0:
# not exist case
print(q.name, 'is not exist!')
# create empty file
... | 24.292683 | 52 | 0.498996 | 133 | 996 | 3.616541 | 0.398496 | 0.06237 | 0.08316 | 0.068607 | 0.174636 | 0.174636 | 0.087318 | 0 | 0 | 0 | 0 | 0.006154 | 0.34739 | 996 | 40 | 53 | 24.9 | 0.733846 | 0.140562 | 0 | 0.24 | 0 | 0 | 0.12114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.44 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46f8fca3c3be5d4fd57b241b88fa3e8c6b3e2f05 | 669 | py | Python | auth_webapp/auth_webapp/auth_backend.py | cscosu/auth | 7cbee90777ee06a8251348e5e79cd099fd6fccd8 | [
"MIT"
] | 1 | 2022-03-30T23:14:51.000Z | 2022-03-30T23:14:51.000Z | auth_webapp/auth_webapp/auth_backend.py | cscosu/auth | 7cbee90777ee06a8251348e5e79cd099fd6fccd8 | [
"MIT"
] | null | null | null | auth_webapp/auth_webapp/auth_backend.py | cscosu/auth | 7cbee90777ee06a8251348e5e79cd099fd6fccd8 | [
"MIT"
] | null | null | null | from django.contrib.auth.backends import ModelBackend
from .models import OSUUser
class ShibAuthBackend(ModelBackend):
"""This does not implement shibboleth authentication - we are using nginx
for that. Trusted headers are sent from nginx to /login and then we explicitly
call login. This is pretty much a ... | 33.45 | 88 | 0.705531 | 89 | 669 | 5.258427 | 0.707865 | 0.029915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239163 | 669 | 19 | 89 | 35.210526 | 0.91945 | 0.437967 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
46fc5415113cc25c0fc024f4159a091921b3bb6f | 467 | py | Python | approx/generate.py | Oreder/AoD | a4066341f32dc22bc237235a71871463630ad52b | [
"MIT"
] | null | null | null | approx/generate.py | Oreder/AoD | a4066341f32dc22bc237235a71871463630ad52b | [
"MIT"
] | null | null | null | approx/generate.py | Oreder/AoD | a4066341f32dc22bc237235a71871463630ad52b | [
"MIT"
] | null | null | null | from math import *
import numpy as np
def f(x, a=1):
return sin(exp(a * x))
def generate(fileName, start=0, end=2, n=20):
X = np.linspace(start, end, n)
Y = list()
for a in range(1, n+1):
Y.append([f(x, a) for x in X])
with open('test/X.csv', 'w') as fs:
line = X.join(',')
... | 22.238095 | 45 | 0.486081 | 82 | 467 | 2.768293 | 0.463415 | 0.017621 | 0.026432 | 0.070485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022581 | 0.336188 | 467 | 21 | 46 | 22.238095 | 0.709677 | 0 | 0 | 0.125 | 1 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2003ca973a8ed5231d52cd536735e569ffd90427 | 275 | py | Python | Python_Exercise/py_exercise_twenty_five.py | kindyluv/My_Personal_Python_Exercises | 5192ee6ab57c537f0231ee004f06879f14ba2138 | [
"MIT"
] | null | null | null | Python_Exercise/py_exercise_twenty_five.py | kindyluv/My_Personal_Python_Exercises | 5192ee6ab57c537f0231ee004f06879f14ba2138 | [
"MIT"
] | null | null | null | Python_Exercise/py_exercise_twenty_five.py | kindyluv/My_Personal_Python_Exercises | 5192ee6ab57c537f0231ee004f06879f14ba2138 | [
"MIT"
] | null | null | null | price = 1000000
good_credit = True
high_income = True
if good_credit and high_income:
down_payment = 1.0 * price
print(f"eligible for loan")
else:
down_payment = 2.0 * price
print(f"ineligible for loan")
print(f"down payment is {down_payment}")
| 25 | 45 | 0.676364 | 42 | 275 | 4.261905 | 0.52381 | 0.24581 | 0.122905 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052133 | 0.232727 | 275 | 10 | 46 | 27.5 | 0.796209 | 0 | 0 | 0 | 0 | 0 | 0.249057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 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 |
200b3e590287d09515fb9d27346ae4af818a2dad | 3,740 | py | Python | tests/unit/services/view/conftest.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | tests/unit/services/view/conftest.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | tests/unit/services/view/conftest.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
import dectate
import pytest
from predico.servicemanager.action import ServiceAction
from predico.servicemanager.manager import ServiceManager
from predico.services.request.base_request import Request
from predico.services.resource.base_resource import ... | 21.129944 | 76 | 0.726738 | 425 | 3,740 | 6.291765 | 0.214118 | 0.082648 | 0.10172 | 0.059835 | 0.159312 | 0.148467 | 0.093119 | 0.066193 | 0.066193 | 0.066193 | 0 | 0.005351 | 0.150535 | 3,740 | 176 | 77 | 21.25 | 0.836324 | 0.094652 | 0 | 0.295238 | 0 | 0 | 0.072045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161905 | false | 0 | 0.104762 | 0.038095 | 0.628571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
200e0910a14ca702da69c3be88dc33aa0781ecae | 1,500 | py | Python | flask_api_server/api_server.py | gdcrocx/CiscoDevNetHackathonToronto | e47df218942b919c62104dbf3c595ff86d92e129 | [
"Apache-2.0"
] | null | null | null | flask_api_server/api_server.py | gdcrocx/CiscoDevNetHackathonToronto | e47df218942b919c62104dbf3c595ff86d92e129 | [
"Apache-2.0"
] | null | null | null | flask_api_server/api_server.py | gdcrocx/CiscoDevNetHackathonToronto | e47df218942b919c62104dbf3c595ff86d92e129 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, request, redirect, url_for
from bson import ObjectId
from pymongo import MongoClient
import os
app = Flask(__name__)
title = "Paste-Wise"
heading = "Paste-Wise Dashboard"
mongoClient = MongoClient("mongodb://10.4.64.209:27017") # host uri
dbObject = mongoClient.webex_teams ... | 31.25 | 89 | 0.673333 | 209 | 1,500 | 4.660287 | 0.397129 | 0.030801 | 0.070842 | 0.077002 | 0.334702 | 0.277207 | 0.277207 | 0.277207 | 0.243326 | 0.243326 | 0 | 0.022329 | 0.164 | 1,500 | 47 | 90 | 31.914894 | 0.754386 | 0.210667 | 0 | 0.071429 | 0 | 0 | 0.14578 | 0.023018 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.035714 | 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 |
2010d18c054ca88da896d9778eb90f83a5801101 | 28,851 | py | Python | src/icemac/addressbook/tests/test_entities.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 1 | 2020-03-26T20:16:44.000Z | 2020-03-26T20:16:44.000Z | src/icemac/addressbook/tests/test_entities.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 2 | 2020-02-21T13:04:23.000Z | 2020-02-21T13:06:10.000Z | src/icemac/addressbook/tests/test_entities.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | null | null | null | from icemac.addressbook.address import phone_number_entity
from icemac.addressbook.address import postal_address_entity
from icemac.addressbook.addressbook import address_book_entity
from icemac.addressbook.entities import Entities, PersistentEntities, Field
from icemac.addressbook.entities import Entity, get_bound_sch... | 36.42803 | 79 | 0.725937 | 3,499 | 28,851 | 5.709917 | 0.093741 | 0.053456 | 0.066069 | 0.044146 | 0.607538 | 0.452775 | 0.350918 | 0.27609 | 0.240452 | 0.198709 | 0 | 0.006596 | 0.164431 | 28,851 | 791 | 80 | 36.474083 | 0.822168 | 0.221275 | 0 | 0.302483 | 0 | 0 | 0.084248 | 0.026147 | 0 | 0 | 0 | 0 | 0.196388 | 1 | 0.221219 | false | 0 | 0.054176 | 0 | 0.30474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
20166c4d199701ec31ae6a1c5903f1347bd3f2e6 | 3,937 | py | Python | src/kivysec/screenmanager.py | ognibit/kivy-security | 69edd716b90f010f1126a959c705dcd8ca535903 | [
"Apache-2.0"
] | null | null | null | src/kivysec/screenmanager.py | ognibit/kivy-security | 69edd716b90f010f1126a959c705dcd8ca535903 | [
"Apache-2.0"
] | null | null | null | src/kivysec/screenmanager.py | ognibit/kivy-security | 69edd716b90f010f1126a959c705dcd8ca535903 | [
"Apache-2.0"
] | null | null | null | """The ScreenManager extension for enabling the secure mode"""
from kivy.properties import StringProperty, ObjectProperty
from kivy.uix.screenmanager import ScreenManager, Screen
from .auth.user import anonymous_user
from .auth.errors import LoginError
class LoginScreen(Screen):
"""The dedicated screen for the l... | 30.053435 | 74 | 0.597409 | 430 | 3,937 | 5.304651 | 0.286047 | 0.048224 | 0.046032 | 0.033319 | 0.174046 | 0.174046 | 0.151249 | 0.151249 | 0.097326 | 0.097326 | 0 | 0 | 0.316231 | 3,937 | 130 | 75 | 30.284615 | 0.847325 | 0.319533 | 0 | 0.196429 | 0 | 0 | 0.026135 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 1 | 0.160714 | false | 0.107143 | 0.071429 | 0 | 0.392857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
20373d2a8bbbd8720900916545a443daacd1c2d9 | 718 | py | Python | main.py | Allchymist/simple-calculator | e816aaab72910fd1e68b0dc56e84f1764be9d7f5 | [
"MIT"
] | null | null | null | main.py | Allchymist/simple-calculator | e816aaab72910fd1e68b0dc56e84f1764be9d7f5 | [
"MIT"
] | null | null | null | main.py | Allchymist/simple-calculator | e816aaab72910fd1e68b0dc56e84f1764be9d7f5 | [
"MIT"
] | null | null | null | def calculator():
values = input('Insira os valores que deseja calcular por exemplo 5+5: ')
if not values:
return 'Você não inseriu os valores.'
try:
primary = int(values[0])
secondary = int(values[2])
value = values[1]
obj = {
'+': primary + secondary,... | 23.933333 | 77 | 0.544568 | 81 | 718 | 4.82716 | 0.604938 | 0.163683 | 0.117647 | 0.163683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014862 | 0.344011 | 718 | 29 | 78 | 24.758621 | 0.815287 | 0 | 0 | 0 | 0 | 0 | 0.275766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.227273 | 0.045455 | 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 |
203ce44d250519aed585d207b9eb1cff2945e871 | 243 | py | Python | example/makeTable.py | htrojan/TexUtils | e1d25a5d0b693e16502ba546a99f275e3a32c38b | [
"MIT"
] | 5 | 2021-12-22T12:25:27.000Z | 2021-12-24T16:48:46.000Z | example/makeTable.py | htrojan/TexUtils | e1d25a5d0b693e16502ba546a99f275e3a32c38b | [
"MIT"
] | null | null | null | example/makeTable.py | htrojan/TexUtils | e1d25a5d0b693e16502ba546a99f275e3a32c38b | [
"MIT"
] | null | null | null | import sys
sys.path.append('../') # Only needed because tabelle.py sits in parent folder
from table import TexTable
a = TexTable([[0, 2, 3], [4, 5, 6]], ['eins', 'zwei'])
a.addRowOption(0, ' ')
a.setRowRounding(1, 3)
a.writeFile('test.tex')
| 24.3 | 77 | 0.658436 | 39 | 243 | 4.102564 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043062 | 0.139918 | 243 | 9 | 78 | 27 | 0.722488 | 0.213992 | 0 | 0 | 0 | 0 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2040f9b13716ccf6e55381c626de15141a76ce12 | 2,029 | py | Python | brules/stepset.py | pib/brules | 81abd1d7fbf1320dc6596eb5d56c204038dc5d8a | [
"MIT"
] | 2 | 2017-08-10T03:27:00.000Z | 2021-05-25T20:01:34.000Z | brules/stepset.py | pib/brules | 81abd1d7fbf1320dc6596eb5d56c204038dc5d8a | [
"MIT"
] | null | null | null | brules/stepset.py | pib/brules | 81abd1d7fbf1320dc6596eb5d56c204038dc5d8a | [
"MIT"
] | null | null | null | from .common import Context, UnmatchedStepError
from .steps import RegexFuncStep
class StepSet(object):
def __init__(self, *steps):
self._steps = list(steps)
def run(self, step_text=None, parsed_steps=None, context=None):
context = context if context is not None else Context()
steps ... | 28.577465 | 68 | 0.565796 | 235 | 2,029 | 4.73617 | 0.302128 | 0.044924 | 0.061096 | 0.056604 | 0.204852 | 0.115004 | 0.061096 | 0.061096 | 0 | 0 | 0 | 0.003003 | 0.343519 | 2,029 | 70 | 69 | 28.985714 | 0.832583 | 0.025628 | 0 | 0.111111 | 0 | 0 | 0.00965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.037037 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2043c189b68be62651396118f4c4ccfe0935f8e3 | 3,846 | py | Python | jarvisUI.py | Matrix-GaxyOP/myjarvis | 76eee76658e71432f917faed0927a040d35f888e | [
"MIT"
] | null | null | null | jarvisUI.py | Matrix-GaxyOP/myjarvis | 76eee76658e71432f917faed0927a040d35f888e | [
"MIT"
] | null | null | null | jarvisUI.py | Matrix-GaxyOP/myjarvis | 76eee76658e71432f917faed0927a040d35f888e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Rohan J Billava\Desktop\myjarvis\jarvisUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know wh... | 42.733333 | 114 | 0.662507 | 441 | 3,846 | 5.689342 | 0.333333 | 0.043045 | 0.058589 | 0.014348 | 0.436827 | 0.400159 | 0.284576 | 0.271024 | 0.271024 | 0.271024 | 0 | 0.047588 | 0.213209 | 3,846 | 89 | 115 | 43.213483 | 0.78156 | 0.081903 | 0 | 0.273973 | 1 | 0 | 0.163075 | 0.052417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0 | 0.027397 | 0 | 0.068493 | 0 | 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 |
2045023196e9a5f92fa70bc597f1cc3df3b8b305 | 432 | py | Python | players.py | pikulak/xoxo | 2c2aec2cc890907593d3837da2b5942b87993072 | [
"Apache-2.0"
] | 1 | 2017-02-26T11:08:19.000Z | 2017-02-26T11:08:19.000Z | players.py | pikulak/xoxo | 2c2aec2cc890907593d3837da2b5942b87993072 | [
"Apache-2.0"
] | null | null | null | players.py | pikulak/xoxo | 2c2aec2cc890907593d3837da2b5942b87993072 | [
"Apache-2.0"
] | null | null | null | import random
from prototypes import PlayerPrototype
from prototypes import ArtificialPlayerPrototype
class HumanPlayer(PlayerPrototype):
def move(self):
return self._input.get_next_move(self)
class ArtificialPlayer(ArtificialPlayerPrototype):
def move(self):
available_moves = self._game.... | 22.736842 | 64 | 0.766204 | 46 | 432 | 6.978261 | 0.478261 | 0.074766 | 0.124611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173611 | 432 | 18 | 65 | 24 | 0.89916 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2047266c5434027e0ac07b2433f5298512dd6620 | 899 | py | Python | src/app/tools/logger_tool_ui.py | chrisbpoint/the-app | 960307718c2cef7cdd86d348d380381aafaab10a | [
"MIT"
] | null | null | null | src/app/tools/logger_tool_ui.py | chrisbpoint/the-app | 960307718c2cef7cdd86d348d380381aafaab10a | [
"MIT"
] | null | null | null | src/app/tools/logger_tool_ui.py | chrisbpoint/the-app | 960307718c2cef7cdd86d348d380381aafaab10a | [
"MIT"
] | null | null | null | from PyQt5.QtWidgets import QMainWindow, QWidget, QHBoxLayout, QVBoxLayout
from ..plotter.logger_plotter import LoggerPlotter
class LoggerToolUi(QMainWindow):
NAME = "Logger"
def __init__(self):
super().__init__()
self._main_layout = QVBoxLayout()
self._logger_plotter = LoggerPlotte... | 28.09375 | 74 | 0.708565 | 101 | 899 | 5.821782 | 0.29703 | 0.085034 | 0.071429 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001401 | 0.205784 | 899 | 31 | 75 | 29 | 0.822129 | 0 | 0 | 0 | 0 | 0 | 0.006674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
204a9e4a261b42b135ad99482c7bb6d6f8225fa6 | 1,336 | py | Python | snappy_wrappers/wrappers/xhmm/genotype/wrapper.py | PotatoThrone/snappy-pipeline | 31200eba84bff8e459e9e210d6d95e2984627f5c | [
"MIT"
] | 5 | 2021-02-26T10:39:56.000Z | 2021-12-23T07:53:26.000Z | snappy_wrappers/wrappers/xhmm/genotype/wrapper.py | PotatoThrone/snappy-pipeline | 31200eba84bff8e459e9e210d6d95e2984627f5c | [
"MIT"
] | 93 | 2021-02-22T11:23:59.000Z | 2022-03-31T09:58:39.000Z | snappy_wrappers/wrappers/xhmm/genotype/wrapper.py | PotatoThrone/snappy-pipeline | 31200eba84bff8e459e9e210d6d95e2984627f5c | [
"MIT"
] | 3 | 2021-02-22T11:44:59.000Z | 2021-06-21T19:33:53.000Z | # -*- coding: utf-8 -*-
# Perform the final step of XHMM: genotyping.
from snakemake.shell import shell
shell(
r"""
set -x
out_dir=$(dirname {snakemake.output.vcf})
tmp_dir=$out_dir/../tmp
mkdir -p $tmp_dir
cat >$tmp_dir/header.txt <<"EOF"
##INFO=<ID=SVMETHOD,Number=1,Type=String,Description="Type of approach ... | 26.196078 | 90 | 0.66991 | 200 | 1,336 | 4.35 | 0.475 | 0.075862 | 0.124138 | 0.109195 | 0.133333 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0.032371 | 0.144461 | 1,336 | 50 | 91 | 26.72 | 0.728784 | 0.048653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
204c3a7a2eb1eaaad006cefb3589ddd68afaea40 | 4,859 | py | Python | src/util/data.py | chrisnig/long-term-workload | 6a56182115f3f736e7c141abf868f2370e2bb8d7 | [
"MIT"
] | null | null | null | src/util/data.py | chrisnig/long-term-workload | 6a56182115f3f736e7c141abf868f2370e2bb8d7 | [
"MIT"
] | null | null | null | src/util/data.py | chrisnig/long-term-workload | 6a56182115f3f736e7c141abf868f2370e2bb8d7 | [
"MIT"
] | null | null | null | from util.filter import TupleFilter
class DataSet:
"""Represents a set of several variables.
"""
TYPE_MATRIX = "matrix"
TYPE_SET = "set"
TYPE_SCALAR = "scalar"
def __init__(self) -> None:
self.variables = dict()
self.matching_cache = dict()
def create(self, var: str, def... | 32.393333 | 119 | 0.591068 | 615 | 4,859 | 4.604878 | 0.2 | 0.123941 | 0.135593 | 0.077684 | 0.281073 | 0.212218 | 0.187853 | 0.162429 | 0.101695 | 0.062853 | 0 | 0.002335 | 0.294917 | 4,859 | 149 | 120 | 32.610738 | 0.824285 | 0.294505 | 0 | 0.267606 | 0 | 0 | 0.075795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.239437 | false | 0 | 0.014085 | 0 | 0.464789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
204c674307a1214f0a447166891b69a461bb4f98 | 1,049 | py | Python | tests/test_subscribers_img.py | ivaROS/ROSWrapper | c95c67885273ef815f4624c8b91db1d6430bc112 | [
"BSD-3-Clause"
] | null | null | null | tests/test_subscribers_img.py | ivaROS/ROSWrapper | c95c67885273ef815f4624c8b91db1d6430bc112 | [
"BSD-3-Clause"
] | null | null | null | tests/test_subscribers_img.py | ivaROS/ROSWrapper | c95c67885273ef815f4624c8b91db1d6430bc112 | [
"BSD-3-Clause"
] | null | null | null | # ================================= test_sensors_RGB ===============================
"""
@brief Test the functionality of the sensors/Image class on one
Image topic
@Author: Yiye Chen yychen2019@gatech.edu
@Date: 07/13/2021
... | 33.83871 | 86 | 0.566254 | 126 | 1,049 | 4.468254 | 0.547619 | 0.058615 | 0.0746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020487 | 0.255481 | 1,049 | 31 | 87 | 33.83871 | 0.700384 | 0.533842 | 0 | 0 | 0 | 0 | 0.144772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2058170618c35bba4a268fdd9b98e1f857f91eee | 571 | py | Python | apps/Transacao/admin.py | GomesMilla/ControleDeEstoque | 0a5dd2d4eef4cd07a0c207ff2fc8a13349113cc4 | [
"MIT"
] | 2 | 2021-07-20T13:04:31.000Z | 2021-07-20T17:53:43.000Z | apps/Transacao/admin.py | GomesMilla/ControleDeEstoque | 0a5dd2d4eef4cd07a0c207ff2fc8a13349113cc4 | [
"MIT"
] | null | null | null | apps/Transacao/admin.py | GomesMilla/ControleDeEstoque | 0a5dd2d4eef4cd07a0c207ff2fc8a13349113cc4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.admin.options import ModelAdmin
from .models import Movimentacao
class MovimentacaoPersonalizado(admin.ModelAdmin):
list_display = ('tipoTransacao', 'empresaTransacao', 'vendendor','dataCadastro', 'produto', 'resposavel')
list_filter = ['tipoTransacao']
... | 38.066667 | 109 | 0.761821 | 53 | 571 | 8.075472 | 0.622642 | 0.046729 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127846 | 571 | 14 | 110 | 40.785714 | 0.859438 | 0 | 0 | 0 | 0 | 0 | 0.252189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
644497b5a065881678a0dac074f0736c148ceb15 | 1,540 | py | Python | rental_property/urls.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | 1 | 2022-03-16T13:29:30.000Z | 2022-03-16T13:29:30.000Z | rental_property/urls.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | rental_property/urls.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | from django.urls import path
from rental_property import views
urlpatterns = [
path('', views.buildings, name='operational-buildings'),
path('building-units/<slug:building_slug>/', views.vacant_building_units, name='building-units'),
path('building/<slug:building_slug>/rental-units/', views.managed_buildi... | 81.052632 | 151 | 0.773377 | 196 | 1,540 | 5.795918 | 0.158163 | 0.137324 | 0.169014 | 0.129401 | 0.193662 | 0.117958 | 0.117958 | 0 | 0 | 0 | 0 | 0 | 0.067532 | 1,540 | 19 | 152 | 81.052632 | 0.791086 | 0 | 0 | 0 | 0 | 0 | 0.527579 | 0.46074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
644671e01db96dd91a3ed64a738a9e79ecbc8487 | 2,057 | py | Python | hal/minimize_automated_seeker_stats.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | 2 | 2019-11-07T02:55:40.000Z | 2021-12-30T01:37:43.000Z | hal/minimize_automated_seeker_stats.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | null | null | null | hal/minimize_automated_seeker_stats.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | 2 | 2019-09-27T12:01:50.000Z | 2019-10-09T21:39:52.000Z | import glob
import os
def run_cmd(cmd):
print cmd
os.system(cmd)
def minimize(binary_id, pov_name):
afl_path = "/home/angr/.virtualenvs/angr/bin/afl-cgc/tracers/i386/"
afl_cmin_path = '/home/angr/angr-dev/fuzzer/afl-cmin'
seeds_to_min_dir = "/results/{}/automated_seekers/seeds_{}".format(binary_... | 39.557692 | 101 | 0.66456 | 318 | 2,057 | 3.915094 | 0.22327 | 0.062651 | 0.053012 | 0.06747 | 0.451406 | 0.345382 | 0.273092 | 0.238554 | 0.183133 | 0.062651 | 0 | 0.008844 | 0.175498 | 2,057 | 51 | 102 | 40.333333 | 0.725236 | 0 | 0 | 0.052632 | 0 | 0.026316 | 0.282588 | 0.137646 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6447ad774413f38242620c55be71fdb51731c85f | 2,600 | py | Python | cemc/wanglandau/degeneracy_finder.py | davidkleiven/WangLandau | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 2 | 2022-02-10T00:38:53.000Z | 2022-03-17T22:08:40.000Z | cemc/wanglandau/degeneracy_finder.py | davidkleiven/CEMC | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 30 | 2018-05-21T14:52:00.000Z | 2021-02-24T07:45:09.000Z | cemc/wanglandau/degeneracy_finder.py | davidkleiven/WangLandau | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 3 | 2018-10-09T14:03:32.000Z | 2022-02-09T05:36:05.000Z | from ase.spacegroup.spacegroup import SpaceGroup
from cemc.wanglandau.wltools import count_elements
import numpy as np
from scipy.spatial import cKDTree as KDTree
class DegeneracyFinder( object ):
"""
This class finds all UNIQUE symmetrically equivalent states
"""
def __init__( self, atoms, spgroup ):
... | 35.616438 | 87 | 0.567692 | 321 | 2,600 | 4.445483 | 0.352025 | 0.063069 | 0.033637 | 0.022425 | 0.019622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00232 | 0.336923 | 2,600 | 72 | 88 | 36.111111 | 0.825406 | 0.163077 | 0 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.102041 | false | 0 | 0.081633 | 0 | 0.306122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6448b26ddf50ad7d996477c29f306efa251ee8c2 | 3,708 | py | Python | wealthbot/user/views/client.py | jliev/wealthbot_chatterbot | f6681da8e5f833990ccd321e166994f31253353f | [
"MIT"
] | 1 | 2019-04-22T07:20:31.000Z | 2019-04-22T07:20:31.000Z | wealthbot/user/views/client.py | jliev/wealthbot_chatterbot | f6681da8e5f833990ccd321e166994f31253353f | [
"MIT"
] | null | null | null | wealthbot/user/views/client.py | jliev/wealthbot_chatterbot | f6681da8e5f833990ccd321e166994f31253353f | [
"MIT"
] | null | null | null | from django.http import Http404
from django.shortcuts import get_object_or_404, render, redirect
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import Group
from django.contrib.auth.password_validation import validate_passwor... | 34.654206 | 98 | 0.737055 | 498 | 3,708 | 5.369478 | 0.299197 | 0.03291 | 0.033657 | 0.031414 | 0.090501 | 0.05834 | 0.038893 | 0.038893 | 0 | 0 | 0 | 0.005823 | 0.166397 | 3,708 | 106 | 99 | 34.981132 | 0.859269 | 0.25 | 0 | 0.150685 | 0 | 0 | 0.126362 | 0.07008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0.068493 | 0.150685 | 0 | 0.246575 | 0.068493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
644deb33874eaa99744d1b8954e6cb27925824f8 | 2,425 | py | Python | poc/poc_client.py | DiabloHorn/qiba_poc | 7250278889ec52229c54bb2d448dd5d01f13c96b | [
"MIT"
] | 9 | 2017-05-21T16:47:21.000Z | 2021-08-29T19:01:24.000Z | poc/poc_client.py | DiabloHorn/qiba_poc | 7250278889ec52229c54bb2d448dd5d01f13c96b | [
"MIT"
] | null | null | null | poc/poc_client.py | DiabloHorn/qiba_poc | 7250278889ec52229c54bb2d448dd5d01f13c96b | [
"MIT"
] | 5 | 2017-05-22T08:12:04.000Z | 2021-12-22T22:23:36.000Z | #!/usr/bin/env python
"""
DiabloHorn - https://diablohorn.com
POC client on 'infected' machines to receive injected packets
intended to bypass IP whitelisting
"""
import sys
import time
import socket
from threading import Thread
from Queue import Queue, Empty
from scapy.all import *
conf.sniff_promisc = 0
... | 27.247191 | 107 | 0.594639 | 304 | 2,425 | 4.674342 | 0.470395 | 0.024631 | 0.018297 | 0.019704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028785 | 0.283711 | 2,425 | 88 | 108 | 27.556818 | 0.789292 | 0.061031 | 0 | 0.060606 | 0 | 0 | 0.043376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.090909 | null | null | 0.075758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6450e1dd57dc67c95e30750ffd91928c033c8178 | 2,613 | py | Python | xunit-autolabeler-v2/ast_parser/core/cli_list_region_tags_datatypes.py | GoogleCloudPlatform/repo-automation-playground | a4c8f104c246ede002f6c18fcebfc0496c8abb94 | [
"Apache-2.0"
] | 5 | 2019-07-11T17:35:44.000Z | 2021-10-09T01:49:04.000Z | xunit-autolabeler-v2/ast_parser/core/cli_list_region_tags_datatypes.py | GoogleCloudPlatform/repo-automation-playground | a4c8f104c246ede002f6c18fcebfc0496c8abb94 | [
"Apache-2.0"
] | 36 | 2019-08-27T18:20:21.000Z | 2022-01-12T21:29:00.000Z | xunit-autolabeler-v2/ast_parser/core/cli_list_region_tags_datatypes.py | GoogleCloudPlatform/repo-automation-playground | a4c8f104c246ede002f6c18fcebfc0496c8abb94 | [
"Apache-2.0"
] | 13 | 2019-10-30T19:39:51.000Z | 2021-04-04T09:31:52.000Z | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.6625 | 79 | 0.742059 | 386 | 2,613 | 4.958549 | 0.42487 | 0.052247 | 0.029258 | 0.026646 | 0.207419 | 0.138976 | 0.111808 | 0.111808 | 0.043887 | 0 | 0 | 0.00382 | 0.198622 | 2,613 | 79 | 80 | 33.075949 | 0.91022 | 0.651359 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6462edc52efd5cacee74d2d287b32eb6f87910d0 | 1,514 | py | Python | manage.py | P-ssh/Interactive-alphabet-learning | c531a91a195b94ffe37f63314a7cd4850675b499 | [
"MIT"
] | null | null | null | manage.py | P-ssh/Interactive-alphabet-learning | c531a91a195b94ffe37f63314a7cd4850675b499 | [
"MIT"
] | null | null | null | manage.py | P-ssh/Interactive-alphabet-learning | c531a91a195b94ffe37f63314a7cd4850675b499 | [
"MIT"
] | null | null | null | from project import app, db
from project.models import *
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
import os
import unittest
import coverage
app.config.from_object('project.config.DevelopmentConfig')
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db'... | 22.264706 | 70 | 0.702774 | 180 | 1,514 | 5.794444 | 0.411111 | 0.053691 | 0.065197 | 0.034516 | 0.189837 | 0.076702 | 0 | 0 | 0 | 0 | 0 | 0.0032 | 0.174373 | 1,514 | 68 | 71 | 22.264706 | 0.8312 | 0 | 0 | 0.142857 | 0 | 0 | 0.097892 | 0.024096 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
646711bad18fe43b632ea9eb243f651dc9bf2df2 | 6,689 | py | Python | util/command_console_tui.py | max-susi/PythonTwitchBotFramework | 09f9a8dbb56978550e61855c9809f6d7af0c3031 | [
"MIT"
] | 87 | 2018-05-22T18:30:42.000Z | 2022-03-12T19:31:52.000Z | util/command_console_tui.py | max-susi/PythonTwitchBotFramework | 09f9a8dbb56978550e61855c9809f6d7af0c3031 | [
"MIT"
] | 32 | 2019-04-01T20:07:33.000Z | 2022-01-14T03:00:58.000Z | util/command_console_tui.py | max-susi/PythonTwitchBotFramework | 09f9a8dbb56978550e61855c9809f6d7af0c3031 | [
"MIT"
] | 43 | 2018-08-29T04:59:47.000Z | 2022-03-09T16:47:14.000Z | #!/usr/bin/env python3
import asyncio
import json
import click
import websockets
from urwid import AsyncioEventLoop, Edit, ExitMainLoop, Filler, Frame, MainLoop, Text, connect_signal
COMMAND_READ, PASSWORD_READ = 0, 1
SEND_PASSWORD = 'send_password'
BAD_PASSWORD = 'bad_password'
DISCONNECTING = 'disconnecting'
LIST_C... | 33.782828 | 140 | 0.552997 | 733 | 6,689 | 4.873124 | 0.268759 | 0.040314 | 0.014558 | 0.017917 | 0.115342 | 0.089026 | 0.06047 | 0.06047 | 0.06047 | 0.039754 | 0 | 0.00433 | 0.343998 | 6,689 | 197 | 141 | 33.954315 | 0.809708 | 0.050979 | 0 | 0.165563 | 0 | 0.019868 | 0.223661 | 0.007445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05298 | false | 0.07947 | 0.033113 | 0 | 0.099338 | 0.019868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
646b10ef17ef805102aec5808899f5fbc5dec269 | 742 | py | Python | tests/seahub/wiki/test_views.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | tests/seahub/wiki/test_views.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | tests/seahub/wiki/test_views.py | gzy403999903/seahub | 992e5852579a6d9e0cfdaf18c77ce0191cb64449 | [
"Apache-2.0"
] | null | null | null | from django.core.urlresolvers import reverse
from seahub.wiki.models import Wiki
from seahub.test_utils import BaseTestCase
class SlugTest(BaseTestCase):
def setUp(self, ):
self.wiki = Wiki.objects.add('new wiki', self.user.username)
self.login_as(self.user)
# def test_home_page(self, ):
... | 35.333333 | 79 | 0.67655 | 98 | 742 | 5.030612 | 0.438776 | 0.056795 | 0.044625 | 0.064909 | 0.223124 | 0.223124 | 0.223124 | 0.223124 | 0.223124 | 0.223124 | 0 | 0.00982 | 0.17655 | 742 | 20 | 80 | 37.1 | 0.797054 | 0.257412 | 0 | 0 | 0 | 0 | 0.10989 | 0.042125 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64765bbde90f36250cc7286cd5353eab2c32f046 | 1,347 | py | Python | simple_french/guide/migrations/0005_auto_20180310_2053.py | ericgroom/simplefrench | 4bf486aeaa4e9416215936a7bd84e4b5a8fa323c | [
"MIT"
] | null | null | null | simple_french/guide/migrations/0005_auto_20180310_2053.py | ericgroom/simplefrench | 4bf486aeaa4e9416215936a7bd84e4b5a8fa323c | [
"MIT"
] | null | null | null | simple_french/guide/migrations/0005_auto_20180310_2053.py | ericgroom/simplefrench | 4bf486aeaa4e9416215936a7bd84e4b5a8fa323c | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-10 20:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('guide', '0004_auto_20180310_2033'),
]
operations = [
migrations.CreateModel(
name='TableOfConte... | 32.071429 | 150 | 0.586488 | 127 | 1,347 | 6.102362 | 0.496063 | 0.04129 | 0.054194 | 0.085161 | 0.206452 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0.032359 | 0.28879 | 1,347 | 41 | 151 | 32.853659 | 0.776618 | 0.033408 | 0 | 0.371429 | 1 | 0 | 0.141538 | 0.036923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.142857 | 0 | 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 |
647997ef1246da286361f8f2df58716cf8606226 | 1,942 | py | Python | test/common.py | Anthonyntilelli/prewar_login_game | 64fe09b85f714fed3c75dbf48dae9ce8905ff7c2 | [
"MIT"
] | 1 | 2020-08-16T19:58:30.000Z | 2020-08-16T19:58:30.000Z | test/common.py | Anthonyntilelli/prewar_login_game | 64fe09b85f714fed3c75dbf48dae9ce8905ff7c2 | [
"MIT"
] | 1 | 2019-10-07T02:20:18.000Z | 2019-10-07T02:20:18.000Z | test/common.py | Anthonyntilelli/prewar_login_game | 64fe09b85f714fed3c75dbf48dae9ce8905ff7c2 | [
"MIT"
] | 1 | 2019-10-07T01:34:02.000Z | 2019-10-07T01:34:02.000Z | """Common testing word list."""
# word list Breakdown
# 1: a (1)
# 2: go. no, be, by (4)
# 3: cry, fun, run, for (4)
# 4: demo, foul, wait, sell (4)
# 5: yeast, wrong, water, skill (4)
# 6: accept, admire, bicorn, biceps, planks (5)
# 7: bizonal, biofuel, bigfoot, scalene (4)
# 8: mobility, notebook, superior, taxpaye... | 17.185841 | 51 | 0.547374 | 173 | 1,942 | 6.092486 | 0.387283 | 0.052182 | 0.025617 | 0.034156 | 0.54649 | 0.518027 | 0.387097 | 0.26186 | 0.26186 | 0.26186 | 0 | 0.019788 | 0.27137 | 1,942 | 112 | 52 | 17.339286 | 0.725088 | 0.275489 | 0 | 0.826087 | 0 | 0 | 0.424352 | 0.024496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
647fa4d1b492d096abe9fa76b21f622f14cb868b | 55,810 | py | Python | anaconda-updates/6/gui.py | eucalyptus/silvereye | 83ff1e4d497af0906f13a246acd078a8a7a5a3c5 | [
"BSD-2-Clause"
] | 3 | 2016-08-31T07:01:22.000Z | 2017-04-07T15:33:19.000Z | anaconda-updates/6/gui.py | eucalyptus/silvereye | 83ff1e4d497af0906f13a246acd078a8a7a5a3c5 | [
"BSD-2-Clause"
] | null | null | null | anaconda-updates/6/gui.py | eucalyptus/silvereye | 83ff1e4d497af0906f13a246acd078a8a7a5a3c5 | [
"BSD-2-Clause"
] | 6 | 2015-06-10T10:52:25.000Z | 2020-11-01T23:19:51.000Z | #
# gui.py - Graphical front end for anaconda
#
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
# Red Hat, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software F... | 33.279666 | 176 | 0.566888 | 5,863 | 55,810 | 5.275968 | 0.168003 | 0.012931 | 0.006304 | 0.006789 | 0.294637 | 0.243947 | 0.203892 | 0.179097 | 0.16901 | 0.140788 | 0 | 0.006249 | 0.334832 | 55,810 | 1,676 | 177 | 33.299523 | 0.827008 | 0.059631 | 0 | 0.38066 | 0 | 0 | 0.101311 | 0.012769 | 0 | 0 | 0 | 0.000597 | 0 | 0 | null | null | 0.042978 | 0.022256 | null | null | 0.001535 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6482ad7ae539f5cdb6a27e353f94fe1ff5b52cda | 2,301 | py | Python | drivers/data/mysql.py | obnoxiousnerd/rep | 6afa06bfd092efec8ce650b7bef8cb1808159b12 | [
"Apache-2.0"
] | null | null | null | drivers/data/mysql.py | obnoxiousnerd/rep | 6afa06bfd092efec8ce650b7bef8cb1808159b12 | [
"Apache-2.0"
] | null | null | null | drivers/data/mysql.py | obnoxiousnerd/rep | 6afa06bfd092efec8ce650b7bef8cb1808159b12 | [
"Apache-2.0"
] | null | null | null | from driver_class import DataDriver
import mysql.connector
from mysql.connector import errorcode
from getpass import getpass
class MySQLDataDriver(DataDriver):
def load(self):
mysql_config = {
"connect": {
"host": self.config.get("host") or "localhost",
"port": ... | 39 | 95 | 0.570621 | 261 | 2,301 | 4.980843 | 0.490421 | 0.050769 | 0.05 | 0.026154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00526 | 0.338983 | 2,301 | 58 | 96 | 39.672414 | 0.849441 | 0.130813 | 0 | 0.066667 | 0 | 0 | 0.261044 | 0.01757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.066667 | 0.088889 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64852f995a2d7be86a2087196aa9b05a00332f59 | 600 | py | Python | bitbots_navigation/bitbots_visual_compass/src/worker/debug.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | 5 | 2019-10-30T06:32:37.000Z | 2022-03-11T08:48:43.000Z | bitbots_navigation/bitbots_visual_compass/src/worker/debug.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | 83 | 2019-03-07T16:34:47.000Z | 2022-03-23T17:02:06.000Z | bitbots_navigation/bitbots_visual_compass/src/worker/debug.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | 4 | 2019-08-01T03:49:13.000Z | 2019-09-04T03:05:48.000Z | import cv2
class Debug:
def __init__(self):
pass
def print_debug_info(self, image, state, callback):
debug_image = image.copy()
font = cv2.FONT_HERSHEY_SIMPLEX
bottom_left_corner_of_text = (10, 35)
font_scale = 1
font_color = (255, 255, 255)
line_type ... | 24 | 74 | 0.533333 | 66 | 600 | 4.469697 | 0.530303 | 0.101695 | 0.122034 | 0.122034 | 0.149153 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.385 | 600 | 24 | 75 | 25 | 0.750678 | 0 | 0 | 0 | 0 | 0 | 0.038333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.055556 | 0 | 0.222222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
648defb5a3e946001b263f20501e493b7a9a8358 | 4,162 | py | Python | CitiesAndPopulations/scrape_wiki_cities.py | ArtezGDA/MappingTheCity-Data | 88f6609e801b86395ab3ca0a2181311424541a83 | [
"MIT"
] | null | null | null | CitiesAndPopulations/scrape_wiki_cities.py | ArtezGDA/MappingTheCity-Data | 88f6609e801b86395ab3ca0a2181311424541a83 | [
"MIT"
] | null | null | null | CitiesAndPopulations/scrape_wiki_cities.py | ArtezGDA/MappingTheCity-Data | 88f6609e801b86395ab3ca0a2181311424541a83 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# scrape_wiki_cities.py
import wikipedia
from bs4 import BeautifulSoup
import urllib
import json
from tqdm import tqdm
def appendLinkToCities(link, cityNameList, cityDictList):
if link and link.has_attr('title'):
cityName = link['title']
# remove duplicates and broken pages
if cityName and n... | 32.015385 | 98 | 0.679241 | 547 | 4,162 | 5.137112 | 0.35649 | 0.014235 | 0.014947 | 0.018149 | 0.14911 | 0.084698 | 0.084698 | 0.064057 | 0.064057 | 0.064057 | 0 | 0.002443 | 0.213359 | 4,162 | 130 | 99 | 32.015385 | 0.855834 | 0.226333 | 0 | 0.208791 | 0 | 0 | 0.078594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054945 | null | null | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6498c0dcbc4ab3677ca6fb1af73e60e3ab4d50ee | 1,416 | py | Python | app/content/migrations/0021_strike.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 7 | 2021-03-04T18:49:12.000Z | 2021-03-08T18:25:51.000Z | app/content/migrations/0021_strike.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 251 | 2021-03-04T19:19:14.000Z | 2022-03-31T14:47:53.000Z | app/content/migrations/0021_strike.py | tihlde/Lepton | 5cab3522c421b76373a5c25f49267cfaef7b826a | [
"MIT"
] | 3 | 2021-10-05T19:03:04.000Z | 2022-02-25T13:32:09.000Z | # Generated by Django 3.1.8 on 2021-04-12 16:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('content', '0020_auto_20210302_1929'),
]
operations = [
migrati... | 41.647059 | 177 | 0.628531 | 158 | 1,416 | 5.455696 | 0.462025 | 0.046404 | 0.064965 | 0.102088 | 0.357309 | 0.292343 | 0.187935 | 0.187935 | 0.187935 | 0.187935 | 0 | 0.033395 | 0.238701 | 1,416 | 33 | 178 | 42.909091 | 0.766234 | 0.03178 | 0 | 0 | 1 | 0 | 0.132944 | 0.016801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.259259 | 0 | 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 |
649c3bae2c1ea22f52add5edd14f657cf2410cf3 | 374 | py | Python | 198. House Robber/198. House Robber top-down.py | JawadAsif/leetcode | 13046653d8203ee3d8b524b7402f59c4e2bec7d0 | [
"MIT"
] | null | null | null | 198. House Robber/198. House Robber top-down.py | JawadAsif/leetcode | 13046653d8203ee3d8b524b7402f59c4e2bec7d0 | [
"MIT"
] | null | null | null | 198. House Robber/198. House Robber top-down.py | JawadAsif/leetcode | 13046653d8203ee3d8b524b7402f59c4e2bec7d0 | [
"MIT"
] | null | null | null | class Solution:
def rob(self, nums: List[int]) -> int:
def dp(i: int) -> int:
if i == 0:
return nums[0]
if i == 1:
return max(nums[0], nums[1])
if i not in memo:
memo[i] = max(dp(i-1), nums[i]+dp(i-2))
return mem... | 28.769231 | 55 | 0.403743 | 54 | 374 | 2.796296 | 0.37037 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.44385 | 374 | 12 | 56 | 31.166667 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64b149ad4ef055b9bb2b97fdd354784691181494 | 285 | py | Python | sopel_modules/lua/__init__.py | maxpowa/sopel-lua | 7620374675706d6e355614fee5f64b29a974e965 | [
"EFL-2.0"
] | null | null | null | sopel_modules/lua/__init__.py | maxpowa/sopel-lua | 7620374675706d6e355614fee5f64b29a974e965 | [
"EFL-2.0"
] | null | null | null | sopel_modules/lua/__init__.py | maxpowa/sopel-lua | 7620374675706d6e355614fee5f64b29a974e965 | [
"EFL-2.0"
] | null | null | null | # coding=utf8
"""Sopel Lua
Lua module for Sopel
"""
from __future__ import unicode_literals, absolute_import, division, print_function
from .lua import *
__author__ = 'maxpowa'
__email__ = 'maxpowa@outlook.com'
__version__ = '0.1.0'
__repo__ = 'http://github.com/maxpowa/sopel-lua'
| 20.357143 | 82 | 0.750877 | 38 | 285 | 5.026316 | 0.684211 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.122807 | 285 | 13 | 83 | 21.923077 | 0.748 | 0.154386 | 0 | 0 | 0 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
64b7d58db39539a156eddd4bb5f83bf3ed138e34 | 199 | py | Python | test-repo/fabscript/fabkit_tools/fabclient.py | fabrickit-fablib/fabkit_tools | 58cccd95c72699d8c99f1720efbd3a874ad4d488 | [
"MIT"
] | null | null | null | test-repo/fabscript/fabkit_tools/fabclient.py | fabrickit-fablib/fabkit_tools | 58cccd95c72699d8c99f1720efbd3a874ad4d488 | [
"MIT"
] | null | null | null | test-repo/fabscript/fabkit_tools/fabclient.py | fabrickit-fablib/fabkit_tools | 58cccd95c72699d8c99f1720efbd3a874ad4d488 | [
"MIT"
] | null | null | null | # coding: utf-8
from fabkit import task, parallel
from fablib.fabkit_tools import FabClient
@task
@parallel
def setup():
fabclient = FabClient()
fabclient.setup()
return {'status': 1}
| 15.307692 | 41 | 0.703518 | 25 | 199 | 5.56 | 0.64 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.190955 | 199 | 12 | 42 | 16.583333 | 0.850932 | 0.065327 | 0 | 0 | 0 | 0 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64baa3cbcbca1323be4b7355c59c68f7befd8df7 | 3,521 | py | Python | examples/change_access_profile.py | L-I-Am/pyd7a | 7e3dd6ff71c92df72570d6b852ca74cc5af50707 | [
"Apache-2.0"
] | 9 | 2016-05-12T20:11:30.000Z | 2020-08-18T05:46:15.000Z | examples/change_access_profile.py | L-I-Am/pyd7a | 7e3dd6ff71c92df72570d6b852ca74cc5af50707 | [
"Apache-2.0"
] | 2 | 2018-01-14T12:39:06.000Z | 2019-11-25T09:11:08.000Z | examples/change_access_profile.py | L-I-Am/pyd7a | 7e3dd6ff71c92df72570d6b852ca74cc5af50707 | [
"Apache-2.0"
] | 7 | 2016-09-06T11:08:15.000Z | 2020-10-27T10:29:24.000Z | #!/usr/bin/env python
#
# Copyright (c) 2015-2021 University of Antwerp, Aloxy NV.
#
# This file is part of pyd7a.
# See https://github.com/Sub-IoT/pyd7a 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 may obt... | 42.939024 | 204 | 0.775064 | 508 | 3,521 | 5.224409 | 0.419291 | 0.026375 | 0.060286 | 0.020347 | 0.02939 | 0.02939 | 0.02939 | 0.02939 | 0 | 0 | 0 | 0.024719 | 0.115308 | 3,521 | 81 | 205 | 43.469136 | 0.827287 | 0.193695 | 0 | 0 | 0 | 0.040816 | 0.197233 | 0.008514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.306122 | 0 | 0.326531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64bda217b3002f45450445248263e0ad551d499d | 371 | py | Python | ip_proxy_site/ip_proxy/admin.py | LZC6244/ip_proxy_pool | de9940ed0486ed648a527f1390980df8cdfa4187 | [
"MIT"
] | 17 | 2019-09-05T07:52:26.000Z | 2022-02-28T05:45:31.000Z | ip_proxy_site/ip_proxy/admin.py | LZC6244/ip_proxy_pool | de9940ed0486ed648a527f1390980df8cdfa4187 | [
"MIT"
] | 1 | 2019-12-05T01:50:13.000Z | 2020-03-03T02:53:00.000Z | ip_proxy_site/ip_proxy/admin.py | LZC6244/ip_proxy_pool | de9940ed0486ed648a527f1390980df8cdfa4187 | [
"MIT"
] | 4 | 2020-03-05T02:11:00.000Z | 2022-02-01T16:52:56.000Z | from django.contrib import admin
# Register your models here.
from .models import IpProxy
class IpProxyAdmin(admin.ModelAdmin):
list_display = ['ip', 'port', 'anonymity', 'net_type', 'ip_location', 'available', 'count', 'verify_time']
list_filter = ['anonymity', 'net_type', 'available']
search_fields = [... | 26.5 | 110 | 0.71159 | 44 | 371 | 5.840909 | 0.659091 | 0.093385 | 0.124514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140162 | 371 | 13 | 111 | 28.538462 | 0.805643 | 0.070081 | 0 | 0 | 0 | 0 | 0.253644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64c0101909f2e0c934131ce317ccb26d40dd1185 | 404 | py | Python | examples/super_simple_gui.py | zachbateman/easy_gui | beefe6590e15d6f963fa625035b7c9dafe1ba69f | [
"MIT"
] | 4 | 2021-07-13T06:22:22.000Z | 2022-01-11T05:44:33.000Z | examples/super_simple_gui.py | zachbateman/easy_gui | beefe6590e15d6f963fa625035b7c9dafe1ba69f | [
"MIT"
] | 1 | 2019-12-19T17:51:55.000Z | 2020-01-09T22:44:42.000Z | examples/super_simple_gui.py | zachbateman/easy_gui | beefe6590e15d6f963fa625035b7c9dafe1ba69f | [
"MIT"
] | 2 | 2020-05-18T20:59:08.000Z | 2022-01-24T02:52:36.000Z | '''
Example super simple easy_gui application.
'''
import sys; sys.path.insert(1, '..') # Just enables below import of dev library as if normally installed
import easy_gui
class GUI(easy_gui.EasyGUI):
def __init__(self):
self.add_widget(type='label', text='Example Label')
self.add_widget(type='b... | 31.076923 | 105 | 0.69802 | 57 | 404 | 4.77193 | 0.666667 | 0.077206 | 0.095588 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.165842 | 404 | 12 | 106 | 33.666667 | 0.804154 | 0.269802 | 0 | 0 | 0 | 0 | 0.125436 | 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 |
64c19546d351ef7cfa224236a1cafd5cbd436b3b | 1,895 | py | Python | magnum/common/k8s_manifest.py | ISCAS-VDI/magnum-base | 5bb88e12b3e5d665ae1b345b62023d1016217e08 | [
"Apache-2.0"
] | null | null | null | magnum/common/k8s_manifest.py | ISCAS-VDI/magnum-base | 5bb88e12b3e5d665ae1b345b62023d1016217e08 | [
"Apache-2.0"
] | null | null | null | magnum/common/k8s_manifest.py | ISCAS-VDI/magnum-base | 5bb88e12b3e5d665ae1b345b62023d1016217e08 | [
"Apache-2.0"
] | 1 | 2020-09-09T14:35:08.000Z | 2020-09-09T14:35:08.000Z | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | 30.564516 | 78 | 0.65752 | 247 | 1,895 | 4.97166 | 0.510121 | 0.04886 | 0.043974 | 0.026059 | 0.068404 | 0.068404 | 0.068404 | 0.068404 | 0.068404 | 0.068404 | 0 | 0.004326 | 0.268074 | 1,895 | 61 | 79 | 31.065574 | 0.881038 | 0.432718 | 0 | 0.258065 | 0 | 0 | 0.132438 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0.032258 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
64c7eab5ffb5eaf6cef6cf76a09abf38dc93f22f | 1,030 | py | Python | cogs/utils/perms.py | j-nguyen/FractalBot | 03e562cf1a697a4b3106f8565083b85c7c5ed76b | [
"Apache-2.0"
] | 8 | 2016-11-06T04:24:39.000Z | 2021-07-18T11:32:05.000Z | cogs/utils/perms.py | j-nguyen/FractalBot | 03e562cf1a697a4b3106f8565083b85c7c5ed76b | [
"Apache-2.0"
] | 44 | 2016-10-11T14:18:27.000Z | 2017-06-03T05:26:52.000Z | cogs/utils/perms.py | j-nguyen/FractalBot | 03e562cf1a697a4b3106f8565083b85c7c5ed76b | [
"Apache-2.0"
] | 1 | 2021-07-18T13:59:07.000Z | 2021-07-18T13:59:07.000Z | # permissions to check for commands
# We'll attempt to load from the file again as well.
from discord.ext import commands
import discord.utils
# Checks permission based on the attribute given.
def check_permissions(ctx, perms):
msg = ctx.message
ch = msg.channel
author = msg.author
resolved = ch.permi... | 29.428571 | 87 | 0.708738 | 148 | 1,030 | 4.864865 | 0.432432 | 0.077778 | 0.058333 | 0.063889 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204854 | 1,030 | 34 | 88 | 30.294118 | 0.879121 | 0.251456 | 0 | 0 | 0 | 0 | 0.006553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0.047619 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64c820482b51e9d8fa352527603bb4f4b0bfff9c | 3,061 | py | Python | __init__.py | ousttrue/blpymeshio | 6f79c0b1c902f297ebb562cee633fbbab8790cd6 | [
"MIT"
] | 4 | 2019-10-02T20:46:18.000Z | 2021-03-16T23:35:48.000Z | __init__.py | ousttrue/blpymeshio | 6f79c0b1c902f297ebb562cee633fbbab8790cd6 | [
"MIT"
] | 3 | 2018-08-27T16:15:33.000Z | 2020-05-19T17:29:50.000Z | __init__.py | ousttrue/blpymeshio | 6f79c0b1c902f297ebb562cee633fbbab8790cd6 | [
"MIT"
] | 5 | 2019-05-13T18:23:39.000Z | 2021-07-05T20:56:10.000Z | # coding: utf-8
import os
import sys
append_path=os.path.join(os.path.dirname(__file__), 'pymeshio')
sys.path.append(append_path)
bl_info={
"category": "Import-Export",
"name": "blpymeshio(pmx)",
"author": "ousttrue",
"version": (1, 0, 0),
"blender": (2, 79, 0),
"location": "File > Import-Expo... | 33.271739 | 177 | 0.707939 | 395 | 3,061 | 5.174684 | 0.318987 | 0.050881 | 0.07045 | 0.082192 | 0.400685 | 0.385519 | 0.35225 | 0.283757 | 0.157534 | 0 | 0 | 0.0064 | 0.183273 | 3,061 | 91 | 178 | 33.637363 | 0.8112 | 0.094414 | 0 | 0.057971 | 0 | 0 | 0.13196 | 0.008315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.333333 | 0 | 0.434783 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
64c9b046fb2254902dab82bd6b06175773eab681 | 401 | py | Python | main/migrations/0002_sitesetting_admin_logo.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | 19 | 2022-02-16T20:00:08.000Z | 2022-03-08T17:38:59.000Z | main/migrations/0002_sitesetting_admin_logo.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | 3 | 2022-02-16T20:59:11.000Z | 2022-02-23T20:40:12.000Z | main/migrations/0002_sitesetting_admin_logo.py | AminAliH47/PicoStyle | 768daccc6f28f08aa848318d633af1a19544e499 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.9 on 2022-02-13 22:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='sitesetting',
name='admin_logo',
... | 21.105263 | 72 | 0.593516 | 44 | 401 | 5.318182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069204 | 0.279302 | 401 | 18 | 73 | 22.277778 | 0.740484 | 0.112219 | 0 | 0 | 1 | 0 | 0.132768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64c9d9d89236cfd32996b2281be79b28447d85b6 | 463 | py | Python | wz.py | DrGFreeman/multi-dash | 377788c4404a9f7b59ba0dbfb697b4db074fdbd4 | [
"Unlicense"
] | null | null | null | wz.py | DrGFreeman/multi-dash | 377788c4404a9f7b59ba0dbfb697b4db074fdbd4 | [
"Unlicense"
] | null | null | null | wz.py | DrGFreeman/multi-dash | 377788c4404a9f7b59ba0dbfb697b4db074fdbd4 | [
"Unlicense"
] | null | null | null |
"""
An alternative to wsgi.py to run with the werkzeug server for local development.
Run with :
$ python wg.py
"""
from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware
from flask_app import flask_app
from app1 import app as app1
from app2 import app as app2
application = Dispatc... | 21.045455 | 80 | 0.760259 | 66 | 463 | 5.242424 | 0.469697 | 0.069364 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030691 | 0.155508 | 463 | 22 | 81 | 21.045455 | 0.85422 | 0.233261 | 0 | 0 | 0 | 0 | 0.054913 | 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 |
64d3657212b6715089b915bb00427dc29bb04a9e | 833 | py | Python | misc_tools/matrix_to_column.py | tai271828/alice-the-cutie | b616524b2c5b92850822948ad8fe9b87f628f928 | [
"MIT"
] | null | null | null | misc_tools/matrix_to_column.py | tai271828/alice-the-cutie | b616524b2c5b92850822948ad8fe9b87f628f928 | [
"MIT"
] | null | null | null | misc_tools/matrix_to_column.py | tai271828/alice-the-cutie | b616524b2c5b92850822948ad8fe9b87f628f928 | [
"MIT"
] | null | null | null | #!/usr/bin/python
FILENAME="arr1new.txt"
def matrix2column(filename):
"""
@filename: a file contains data format looks like
<string1: value01, value02, .....>
<string2: value11, value12, .....>
return: a list looks like
[value01, value11, ......, value02, value12......]
"""
... | 26.870968 | 58 | 0.54982 | 91 | 833 | 4.846154 | 0.505495 | 0.090703 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041522 | 0.306122 | 833 | 30 | 59 | 27.766667 | 0.721453 | 0.270108 | 0 | 0 | 0 | 0 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64d7292f265d2fc9cba421c7cc1929983339692f | 1,717 | py | Python | py/lcd.py | nova706/nomega | 3e8d701e559bd84372873ede8ecf9b56dbb35bd0 | [
"MIT"
] | null | null | null | py/lcd.py | nova706/nomega | 3e8d701e559bd84372873ede8ecf9b56dbb35bd0 | [
"MIT"
] | null | null | null | py/lcd.py | nova706/nomega | 3e8d701e559bd84372873ede8ecf9b56dbb35bd0 | [
"MIT"
] | null | null | null | from optparse import OptionParser
from types import NoneType
# parse arguments
parser = OptionParser()
# parse values
parser.add_option("-a", "--address", action="store", dest="address",
help="I2C Address")
parser.add_option("-p", "--persistent", action="store_true", dest="persistent", default=False... | 31.218182 | 102 | 0.637158 | 226 | 1,717 | 4.765487 | 0.336283 | 0.058496 | 0.097493 | 0.051996 | 0.081708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014959 | 0.221316 | 1,717 | 54 | 103 | 31.796296 | 0.790576 | 0.115317 | 0 | 0.057143 | 0 | 0 | 0.228477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b38105682e61eac2ec16756dce5ecf7940d804f2 | 13,096 | py | Python | hazard_products/hc_plot_run.py | rjleveque/fema_source_filter | 6b984e8025c72647c8563c9045510e4b75abec79 | [
"BSD-3-Clause"
] | null | null | null | hazard_products/hc_plot_run.py | rjleveque/fema_source_filter | 6b984e8025c72647c8563c9045510e4b75abec79 | [
"BSD-3-Clause"
] | null | null | null | hazard_products/hc_plot_run.py | rjleveque/fema_source_filter | 6b984e8025c72647c8563c9045510e4b75abec79 | [
"BSD-3-Clause"
] | null | null | null | from hazard_curves_2Dgrid_plot import hazard_curves_2Dgrid_plot
from hazard_curves_transect_plot import hazard_curves_transect_plot
from numpy import array,save,loadtxt,linspace
from numpy import integer,size
import matplotlib.pyplot as plt
import os
#### The program produces plots for the scenarios described in sc... | 47.621818 | 107 | 0.598274 | 1,600 | 13,096 | 4.708125 | 0.195625 | 0.111509 | 0.073278 | 0.03186 | 0.427718 | 0.364529 | 0.33798 | 0.30612 | 0.274127 | 0.253949 | 0 | 0.042172 | 0.288409 | 13,096 | 274 | 108 | 47.79562 | 0.766177 | 0.431429 | 0 | 0.453237 | 0 | 0 | 0.164023 | 0.030719 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05036 | null | null | 0.273381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b385123b0e494546921676d7a1b850c4d04c1cfc | 7,254 | py | Python | post-commit.py | jjotterson/git-repo-hooks | 583df44e18f1a100c12888678669b36cc49e32d7 | [
"MIT"
] | null | null | null | post-commit.py | jjotterson/git-repo-hooks | 583df44e18f1a100c12888678669b36cc49e32d7 | [
"MIT"
] | null | null | null | post-commit.py | jjotterson/git-repo-hooks | 583df44e18f1a100c12888678669b36cc49e32d7 | [
"MIT"
] | 1 | 2019-01-23T04:44:50.000Z | 2019-01-23T04:44:50.000Z | #!/python
import sys
import os
import win32com.client as win32
import subprocess
import re
import html
import webbrowser
#import tempfile #TODO: include attachment to the email else save as
class CommitEmail():
"""
Produces an email from the lastest git commit. If exists, takes as input two files:
.gi... | 40.3 | 128 | 0.537359 | 772 | 7,254 | 5.044041 | 0.32513 | 0.032357 | 0.026194 | 0.011299 | 0.126348 | 0.093477 | 0.083205 | 0.048279 | 0.048279 | 0.048279 | 0 | 0.010045 | 0.30011 | 7,254 | 180 | 129 | 40.3 | 0.756943 | 0.203474 | 0 | 0.125 | 0 | 0.008929 | 0.253772 | 0.040769 | 0.008929 | 0 | 0 | 0.022222 | 0 | 1 | 0.044643 | false | 0 | 0.0625 | 0 | 0.142857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b385436943218ef60ee7f1cf14f4f0dc3c9830cc | 325 | py | Python | ex071.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | ex071.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | ex071.py | JuuzouMarques/CursoEmVideo-Python | 8fdeae09f69d4047b6532a4759af115beedb8545 | [
"MIT"
] | null | null | null | print('-' * 30)
print('BANCO DO BRASILEIRO')
print('-' * 30)
valor = int(input('Qual valor você quer sacar? R$ '))
valorRestante = valor
valores = [50, 20, 10, 1]
for i in valores:
if valorRestante // i > 0:
print(f'Total de {valorRestante // i} cédulas de R${str(i)}')
valorRestante = valorRestante... | 27.083333 | 69 | 0.621538 | 46 | 325 | 4.391304 | 0.630435 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047244 | 0.218462 | 325 | 11 | 70 | 29.545455 | 0.748032 | 0 | 0 | 0.2 | 0 | 0 | 0.316923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
b38a5510ee852539749cca6ee72346b3588cd053 | 790 | py | Python | tests/__init__.py | saeub/drf-openapi-tester | eca2fb2339c6666311856ceb38265bd6d6f51f04 | [
"BSD-3-Clause"
] | 34 | 2021-01-27T16:43:47.000Z | 2022-02-23T10:13:33.000Z | tests/__init__.py | saeub/drf-openapi-tester | eca2fb2339c6666311856ceb38265bd6d6f51f04 | [
"BSD-3-Clause"
] | 73 | 2021-01-21T22:27:19.000Z | 2022-03-16T08:08:18.000Z | tests/__init__.py | saeub/drf-openapi-tester | eca2fb2339c6666311856ceb38265bd6d6f51f04 | [
"BSD-3-Clause"
] | 6 | 2020-07-28T13:07:09.000Z | 2020-12-17T08:30:30.000Z | example_schema_array = {"type": "array", "items": {"type": "string"}}
example_array = ["string"]
example_schema_integer = {"type": "integer", "minimum": 3, "maximum": 5}
example_integer = 3
example_schema_number = {"type": "number", "minimum": 3, "maximum": 5}
example_number = 3.2
example_schema_object = {"type": "obje... | 41.578947 | 111 | 0.716456 | 94 | 790 | 5.659574 | 0.244681 | 0.268797 | 0.067669 | 0.06015 | 0.086466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014347 | 0.117722 | 790 | 18 | 112 | 43.888889 | 0.748924 | 0 | 0 | 0 | 0 | 0 | 0.207595 | 0 | 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 |
b38cae63d64aba1d5f0f3dea11be05f3da597dd4 | 272 | py | Python | src/dev/case/simple1.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | 1 | 2020-02-17T08:18:29.000Z | 2020-02-17T08:18:29.000Z | src/dev/case/simple1.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | null | null | null | src/dev/case/simple1.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2011-7-28
@author: dholer
'''
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4 import *
import sys
app=QApplication(sys.argv)
b=QPushButton("Hello Kitty!")
b.show()
app.connect(b,SIGNAL("clicked()"),app,SLOT("quit()"))
app.exec_() | 18.133333 | 55 | 0.680147 | 40 | 272 | 4.6 | 0.675 | 0.146739 | 0.163043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0.139706 | 272 | 15 | 56 | 18.133333 | 0.74359 | 0.136029 | 0 | 0 | 0 | 0 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b38d251a6084f7758177d8c4017061bea3bb2e8b | 908 | py | Python | Scores/migrations/0001_initial.py | beren5000/LudumDare41web | 70836b3ed04abbf3d4bd49f0bca49ab77c67b523 | [
"MIT"
] | null | null | null | Scores/migrations/0001_initial.py | beren5000/LudumDare41web | 70836b3ed04abbf3d4bd49f0bca49ab77c67b523 | [
"MIT"
] | null | null | null | Scores/migrations/0001_initial.py | beren5000/LudumDare41web | 70836b3ed04abbf3d4bd49f0bca49ab77c67b523 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-22 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Scores',
fields=[
('id', models.AutoField(a... | 31.310345 | 114 | 0.570485 | 90 | 908 | 5.6 | 0.555556 | 0.152778 | 0.09127 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029734 | 0.296256 | 908 | 28 | 115 | 32.428571 | 0.758998 | 0.049559 | 0 | 0 | 1 | 0 | 0.124274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 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 |
b392ec223487f3eb8cdfe5d1c250401eff805d9a | 591 | py | Python | test/test_info_point_hr.py | lev-galaktionov-epam/AppDynamicsREST | d00cccb43cda1348143c60bd07cc9b3c5c76e629 | [
"Apache-2.0"
] | 11 | 2017-06-20T23:59:00.000Z | 2021-01-18T17:09:05.000Z | test/test_info_point_hr.py | lev-galaktionov-epam/AppDynamicsREST | d00cccb43cda1348143c60bd07cc9b3c5c76e629 | [
"Apache-2.0"
] | 4 | 2017-04-28T16:02:28.000Z | 2020-11-23T00:48:54.000Z | test/test_info_point_hr.py | lev-galaktionov-epam/AppDynamicsREST | d00cccb43cda1348143c60bd07cc9b3c5c76e629 | [
"Apache-2.0"
] | 20 | 2017-04-27T07:36:08.000Z | 2021-07-02T17:59:24.000Z | #!/bin/bash
from appd.request import AppDynamicsClient
from appd.time import from_ts, to_ts
from datetime import datetime
from pprint import pprint
appdProduction = AppDynamicsClient('https://fedex1.saas.appdynamics.com', 'RetailRelyAPI', 'F3d#x@M!45', 'fedex1' )
for app in appdProduction.get_applications():
if ... | 32.833333 | 118 | 0.77665 | 81 | 591 | 5.506173 | 0.567901 | 0.044843 | 0.044843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01341 | 0.116751 | 591 | 17 | 119 | 34.764706 | 0.840996 | 0.01692 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b39a3db1d750837cdef6c5445854bace51161a4f | 8,054 | py | Python | sug-blog/unit4/account.py | SolangeUG/blog-application | efe8237d51fd2ce77cf88f0d238945b9858f13fe | [
"Apache-2.0"
] | 1 | 2018-02-03T20:11:03.000Z | 2018-02-03T20:11:03.000Z | sug-blog/unit4/account.py | SolangeUG/blog-application | efe8237d51fd2ce77cf88f0d238945b9858f13fe | [
"Apache-2.0"
] | null | null | null | sug-blog/unit4/account.py | SolangeUG/blog-application | efe8237d51fd2ce77cf88f0d238945b9858f13fe | [
"Apache-2.0"
] | null | null | null | import handler.handler as handler
import util.security as security
import util.validator as validator
from google.appengine.ext import db
class AccountHandler(handler.TemplateHandler):
"""
AccountHandler inherits from the hander.TemplateHandler class.
It gives users the possibility to signup for, or log i... | 41.091837 | 119 | 0.609262 | 900 | 8,054 | 5.353333 | 0.212222 | 0.032379 | 0.02034 | 0.019718 | 0.35741 | 0.326692 | 0.290162 | 0.214612 | 0.205064 | 0.205064 | 0 | 0.001972 | 0.307425 | 8,054 | 195 | 120 | 41.302564 | 0.861778 | 0.252049 | 0 | 0.318966 | 0 | 0 | 0.104483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.172414 | 0.034483 | 0 | 0.198276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b39ca3137af9d550e97b164160a6948dde3524bc | 3,033 | py | Python | infra/auto-setup/sync.py | cryptomilk/oss-fuzz | ca9715a55a6ba23806ccc37e0b79771f14914b6a | [
"Apache-2.0"
] | 7 | 2017-06-03T13:11:56.000Z | 2021-09-21T05:21:08.000Z | infra/auto-setup/sync.py | cryptomilk/oss-fuzz | ca9715a55a6ba23806ccc37e0b79771f14914b6a | [
"Apache-2.0"
] | null | null | null | infra/auto-setup/sync.py | cryptomilk/oss-fuzz | ca9715a55a6ba23806ccc37e0b79771f14914b6a | [
"Apache-2.0"
] | 4 | 2017-07-11T09:42:32.000Z | 2022-03-19T02:32:54.000Z | #!/usr/bin/env python
"""Script to sync CF and Jenkins jobs."""
import json
import os
import re
import sys
import urllib2
import yaml
import xml.etree.ElementTree as ET
import jenkins
JENKINS_SERVER = ('localhost', 8080)
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
OSSFUZZ_DIR = os.path.dirname(os.path.d... | 27.825688 | 116 | 0.704253 | 425 | 3,033 | 4.804706 | 0.305882 | 0.038198 | 0.029383 | 0.015671 | 0.116552 | 0.070519 | 0 | 0 | 0 | 0 | 0 | 0.003976 | 0.170788 | 3,033 | 108 | 117 | 28.083333 | 0.807952 | 0.026377 | 0 | 0.028571 | 0 | 0.014286 | 0.16752 | 0.019386 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042857 | 0.114286 | null | null | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3ac39b4f8e6c769d2dfc127bbf1485fa5e2544d | 6,078 | py | Python | src/hand_evaluation.py | lrassbach/blackjack-training-simulator | 8bf919378538023cadded1b153d5a5bf8142cc2d | [
"MIT"
] | null | null | null | src/hand_evaluation.py | lrassbach/blackjack-training-simulator | 8bf919378538023cadded1b153d5a5bf8142cc2d | [
"MIT"
] | null | null | null | src/hand_evaluation.py | lrassbach/blackjack-training-simulator | 8bf919378538023cadded1b153d5a5bf8142cc2d | [
"MIT"
] | null | null | null | ###Hand Evaluation Class
import card_deck
class HandEvaluation:
#this method will determine the makeup of the dealer hand
def dealer_upcard(dealer_hand):
card_deck_dict = card_deck.CardBuilder.card_builder_dict()
dealer_show = dealer_hand[1]
dealer_up_value = card_deck_dict[dealer_show... | 35.964497 | 121 | 0.565318 | 863 | 6,078 | 3.701043 | 0.115875 | 0.105197 | 0.170946 | 0.160301 | 0.581716 | 0.494991 | 0.439261 | 0.403256 | 0.210081 | 0.171572 | 0 | 0.040547 | 0.350773 | 6,078 | 168 | 122 | 36.178571 | 0.76888 | 0.054294 | 0 | 0.394558 | 0 | 0 | 0.019533 | 0 | 0 | 0 | 0 | 0.005952 | 0 | 1 | 0.054422 | false | 0 | 0.006803 | 0 | 0.122449 | 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 |
b3ac9a21deb9130fb137cc1cc43495638b2dc28d | 356 | py | Python | open_source_code_node/use_output_in_child_nodes/uc_log_transform_var.py | Pulpanj/sas-viya-dmml-pipelines | 6740a5a0c6e8594967a9bcf348d4d8001744e8b5 | [
"Apache-2.0"
] | 18 | 2018-09-21T15:28:30.000Z | 2021-11-22T15:26:44.000Z | open_source_code_node/use_output_in_child_nodes/uc_log_transform_var.py | Pulpanj/sas-viya-dmml-pipelines | 6740a5a0c6e8594967a9bcf348d4d8001744e8b5 | [
"Apache-2.0"
] | 3 | 2020-11-12T16:22:16.000Z | 2021-02-19T16:28:27.000Z | open_source_code_node/use_output_in_child_nodes/uc_log_transform_var.py | Pulpanj/sas-viya-dmml-pipelines | 6740a5a0c6e8594967a9bcf348d4d8001744e8b5 | [
"Apache-2.0"
] | 18 | 2018-10-04T13:51:17.000Z | 2022-02-04T06:37:53.000Z | import numpy as np
print('Input column names:')
print(dm_inputdf.columns)
# Log transform IMP_DEBTINC variable. dm_scoreddf should contain output data.
dm_scoreddf = dm_inputdf
dm_scoreddf['LOG_IMP_DEBTINC'] = np.log(dm_inputdf['IMP_DEBTINC'])
dm_scoreddf.drop('IMP_DEBTINC', axis=1, inplace=True)
print('Output column... | 32.363636 | 77 | 0.794944 | 55 | 356 | 4.909091 | 0.472727 | 0.185185 | 0.118519 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.089888 | 356 | 11 | 78 | 32.363636 | 0.830247 | 0.210674 | 0 | 0 | 0 | 0 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
b3ade111f6c18be60b5f8aa7e3f9b53914c87a52 | 1,106 | py | Python | plot/plot_boyer_diff.py | lpraat/string-matching | f66fa1f1c9bdb0a189c1168948288a92eedb7794 | [
"MIT"
] | 1 | 2021-04-23T19:55:04.000Z | 2021-04-23T19:55:04.000Z | plot/plot_boyer_diff.py | lpraat/string-matching | f66fa1f1c9bdb0a189c1168948288a92eedb7794 | [
"MIT"
] | null | null | null | plot/plot_boyer_diff.py | lpraat/string-matching | f66fa1f1c9bdb0a189c1168948288a92eedb7794 | [
"MIT"
] | null | null | null | """
BoyerMoore vs BoyerMooreSimple(no delta2) execution time
"""
import matplotlib.pyplot as plt
from plot_utils import generate_legend_label
alphabet_lengths = [2, 64]
pattern_lengths = [5, 10, 25, 50, 100, 300, 500, 750, 1000, 2500, 5000, 10000, 15000, 20000, 50000]
algs = ['boyer_moore_simple', 'boyer_moore']
for... | 33.515152 | 117 | 0.63472 | 158 | 1,106 | 4.329114 | 0.537975 | 0.081871 | 0.02193 | 0.030702 | 0.084795 | 0.084795 | 0.084795 | 0.084795 | 0 | 0 | 0 | 0.070602 | 0.218807 | 1,106 | 33 | 118 | 33.515152 | 0.721065 | 0.050633 | 0 | 0 | 1 | 0 | 0.162033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 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 |
b3b64f18afe1cce75a10c23ab31a310094297296 | 6,140 | py | Python | lbms.py | gdeskos/TurboGenPY | 80f50a55ac8d464913a612d1e4d0004c000a37fb | [
"MIT"
] | 22 | 2018-09-11T12:58:53.000Z | 2021-12-11T11:14:03.000Z | lbms.py | minhbau/TurboGenPY | 87ebacc354cbf426783e8bf023ea16bba87814c3 | [
"MIT"
] | 3 | 2018-10-08T18:32:39.000Z | 2022-01-30T09:53:16.000Z | lbms.py | minhbau/TurboGenPY | 87ebacc354cbf426783e8bf023ea16bba87814c3 | [
"MIT"
] | 13 | 2018-06-18T14:01:45.000Z | 2021-12-11T13:46:37.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 18 11:59:29 2015
@author: tsaad
"""
#!/usr/bin/env python
from scipy import interpolate
import numpy as np
from numpy import pi
import time
import scipy
import scipy.io
from tkespec import compute_tke_spectrum
import isoturb
import isoturbo
import matplotlib.pyplot as plt... | 33.010753 | 147 | 0.565472 | 847 | 6,140 | 3.974026 | 0.337662 | 0.016043 | 0.010695 | 0.011884 | 0.057338 | 0.051099 | 0.033274 | 0.033274 | 0.033274 | 0.033274 | 0 | 0.031772 | 0.200326 | 6,140 | 186 | 148 | 33.010753 | 0.653768 | 0.398371 | 0 | 0.016667 | 0 | 0 | 0.087949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3b82d935b78793293b24cfdaf59e13159f1bea4 | 804 | py | Python | eyeflow_sdk/jetson_utils.py | Eyeflow-AI/eyeflow-sdk | 65e5d85daab249032de92cd9bbd0e2229d9bf3bf | [
"MIT"
] | null | null | null | eyeflow_sdk/jetson_utils.py | Eyeflow-AI/eyeflow-sdk | 65e5d85daab249032de92cd9bbd0e2229d9bf3bf | [
"MIT"
] | null | null | null | eyeflow_sdk/jetson_utils.py | Eyeflow-AI/eyeflow-sdk | 65e5d85daab249032de92cd9bbd0e2229d9bf3bf | [
"MIT"
] | 1 | 2021-04-13T04:54:32.000Z | 2021-04-13T04:54:32.000Z | """
Functions to interact with NVidia Jetson Hardware
"""
import subprocess
#----------------------------------------------------------------------------------------------------------------------------------
def get_jetson_module_sn():
"""
Gets the module serial number for Jetson
"""
cvm_addr ... | 32.16 | 131 | 0.400498 | 72 | 804 | 4.402778 | 0.722222 | 0.044164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022255 | 0.161692 | 804 | 24 | 132 | 33.5 | 0.448071 | 0.436567 | 0 | 0 | 0 | 0 | 0.114014 | 0 | 0 | 0 | 0.009501 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 0.090909 | 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 |
b3ba6ae40470154e457cfd22acebc43bdd8d23d8 | 16,467 | py | Python | recipes/Python/535165_stock_market_check_v2/recipe-535165.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/535165_stock_market_check_v2/recipe-535165.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/535165_stock_market_check_v2/recipe-535165.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from threading import Thread
from time import sleep
from PythonCard import model
import urllib
import re
def get_quote(symbol):
global quote
base_url = 'http://finance.google.com/finance?q='
content = urllib.urlopen(base_url + symbol).read()
m = re.search('class="pr".*?>(.*?)<', conten... | 23.55794 | 79 | 0.518006 | 1,802 | 16,467 | 4.637625 | 0.162042 | 0.068685 | 0.048821 | 0.032308 | 0.349886 | 0.298193 | 0.280005 | 0.266364 | 0.221491 | 0.211918 | 0 | 0.052845 | 0.280622 | 16,467 | 698 | 80 | 23.591691 | 0.652625 | 0.002733 | 0 | 0.295 | 0 | 0 | 0.253868 | 0.002558 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008333 | 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 |
b3bf855e49adc7c798d818c45042fce6c0fcee25 | 4,366 | py | Python | manila_tempest_tests/tests/api/admin/test_share_types_negative.py | raissaa/manila-tempest-plugin | 3dd627bdec282071450694bf5399d53e9f9abd5b | [
"Apache-2.0"
] | null | null | null | manila_tempest_tests/tests/api/admin/test_share_types_negative.py | raissaa/manila-tempest-plugin | 3dd627bdec282071450694bf5399d53e9f9abd5b | [
"Apache-2.0"
] | null | null | null | manila_tempest_tests/tests/api/admin/test_share_types_negative.py | raissaa/manila-tempest-plugin | 3dd627bdec282071450694bf5399d53e9f9abd5b | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 42.38835 | 79 | 0.663078 | 574 | 4,366 | 4.665505 | 0.226481 | 0.0941 | 0.084018 | 0.09522 | 0.676998 | 0.660941 | 0.660941 | 0.660941 | 0.660941 | 0.633308 | 0 | 0.00802 | 0.257444 | 4,366 | 102 | 80 | 42.803922 | 0.818014 | 0.1388 | 0 | 0.561644 | 0 | 0 | 0.021629 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 1 | 0.150685 | false | 0 | 0.054795 | 0 | 0.232877 | 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 |
b3bff242a851ce98f5337796c24ae6a11c8e8983 | 8,579 | py | Python | mongobongo/document.py | svetlyak40wt/pymongo-bongo | 103fb9a4f761340a0655f437793240c95dd4475d | [
"BSD-3-Clause"
] | 2 | 2015-09-06T15:37:35.000Z | 2015-09-09T16:42:48.000Z | mongobongo/document.py | svetlyak40wt/pymongo-bongo | 103fb9a4f761340a0655f437793240c95dd4475d | [
"BSD-3-Clause"
] | null | null | null | mongobongo/document.py | svetlyak40wt/pymongo-bongo | 103fb9a4f761340a0655f437793240c95dd4475d | [
"BSD-3-Clause"
] | 2 | 2016-09-30T13:28:16.000Z | 2019-06-10T16:40:19.000Z | # This code is licensed under the New BSD License
# 2009, Alexander Artemenko <svetlyak.40wt@gmail.com>
# For other contacts, visit http://aartemenko.com
"""
This is a helper to work with MongoDB's documents.
Author: Alexander Artemenko <svetlyak.40wt@gmail.com>
"""
import types
from pymongo.dbref import DBRef
from ... | 28.983108 | 91 | 0.599604 | 980 | 8,579 | 4.957143 | 0.208163 | 0.032935 | 0.011322 | 0.011527 | 0.157266 | 0.08275 | 0.055167 | 0.024702 | 0.024702 | 0.024702 | 0 | 0.001664 | 0.299569 | 8,579 | 295 | 92 | 29.081356 | 0.80679 | 0.210864 | 0 | 0.116564 | 0 | 0 | 0.013429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220859 | false | 0 | 0.018405 | 0.067485 | 0.484663 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3c6d61aa09a5a25e339ae2e11ca6fa916c579da | 560 | py | Python | th_evernote/forms.py | Leopere/django-th | 86c999d16bcf30b6224206e5b40824309834ac8c | [
"BSD-3-Clause"
] | 1,069 | 2015-01-07T01:55:57.000Z | 2022-02-17T10:50:57.000Z | th_evernote/forms.py | barrygolden/django-th | 86c999d16bcf30b6224206e5b40824309834ac8c | [
"BSD-3-Clause"
] | 207 | 2015-01-06T21:41:17.000Z | 2018-02-20T14:10:15.000Z | th_evernote/forms.py | barrygolden/django-th | 86c999d16bcf30b6224206e5b40824309834ac8c | [
"BSD-3-Clause"
] | 117 | 2015-01-04T16:21:13.000Z | 2022-02-22T06:18:49.000Z | # coding: utf-8
from django import forms
from django.forms import TextInput
from th_evernote.models import Evernote
class EvernoteForm(forms.ModelForm):
"""
for to handle Evernote service
"""
class Meta:
model = Evernote
fields = ('tag', 'notebook', )
widgets = {
... | 19.310345 | 67 | 0.628571 | 55 | 560 | 6.381818 | 0.545455 | 0.05698 | 0.108262 | 0.131054 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002398 | 0.255357 | 560 | 28 | 68 | 20 | 0.839329 | 0.080357 | 0 | 0.133333 | 0 | 0 | 0.113131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b3c85ced033f1053b4a79e003d59ce2d046552e1 | 601 | py | Python | python/sprint_13/brackets.py | Talgatovich/algorithms-templates | e7c6fd71451304ed0dacc393c3f30ca3f5282d46 | [
"MIT"
] | null | null | null | python/sprint_13/brackets.py | Talgatovich/algorithms-templates | e7c6fd71451304ed0dacc393c3f30ca3f5282d46 | [
"MIT"
] | null | null | null | python/sprint_13/brackets.py | Talgatovich/algorithms-templates | e7c6fd71451304ed0dacc393c3f30ca3f5282d46 | [
"MIT"
] | null | null | null | def gen_binary(control, n1, n2, prefix):
if n1 == 0 and n2 == 0:
print(prefix)
else:
if n1 > 0:
gen_binary(control + 1, n1 - 1, n2, prefix + "(")
if control > 0 and n2 > 0:
gen_binary(control - 1, n1, n2 - 1, prefix + ")")
def read_input():
n = int(input())
... | 22.259259 | 84 | 0.554077 | 86 | 601 | 3.686047 | 0.360465 | 0.063091 | 0.201893 | 0.113565 | 0.252366 | 0.126183 | 0 | 0 | 0 | 0 | 0 | 0.066351 | 0.297837 | 601 | 26 | 85 | 23.115385 | 0.684834 | 0.136439 | 0 | 0 | 0 | 0 | 0.019342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.210526 | 0.052632 | 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 |
b3ccde5ea3c6b5199719d28052bd5e02548cc593 | 391 | py | Python | dbcat/settings.py | tokern/dbcat | 3de5955f625aa690235f8eb23b437106f54bcbc2 | [
"MIT"
] | 8 | 2021-01-08T11:15:53.000Z | 2021-11-19T13:07:40.000Z | dbcat/settings.py | tokern/dbcat | 3de5955f625aa690235f8eb23b437106f54bcbc2 | [
"MIT"
] | 48 | 2020-12-23T05:09:13.000Z | 2021-12-19T06:24:53.000Z | dbcat/settings.py | tokern/dbcat | 3de5955f625aa690235f8eb23b437106f54bcbc2 | [
"MIT"
] | 2 | 2020-12-11T05:11:02.000Z | 2021-07-17T15:41:20.000Z | from enum import Enum
from pathlib import Path
CATALOG_PATH: Path
CATALOG_USER: str
CATALOG_PASSWORD: str
CATALOG_HOST: str
CATALOG_PORT: int
CATALOG_DB: str
CATALOG_SECRET: str
APP_DIR: Path
class OutputFormat(str, Enum):
tabular = "tabular"
json = "json"
OUTPUT_FORMAT: OutputFormat = None # type:... | 13.482759 | 61 | 0.764706 | 54 | 391 | 5.277778 | 0.5 | 0.140351 | 0.112281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168798 | 391 | 28 | 62 | 13.964286 | 0.876923 | 0.030691 | 0 | 0 | 0 | 0 | 0.106101 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b3ce57152f4b10bb31ebdad5cfb0da4be97cc532 | 323 | py | Python | Scripts/SumList/SumList.py | vibhuabharadwaj/content | 30d639dbea0015536a3040ec18f93e50322bded0 | [
"MIT"
] | null | null | null | Scripts/SumList/SumList.py | vibhuabharadwaj/content | 30d639dbea0015536a3040ec18f93e50322bded0 | [
"MIT"
] | null | null | null | Scripts/SumList/SumList.py | vibhuabharadwaj/content | 30d639dbea0015536a3040ec18f93e50322bded0 | [
"MIT"
] | null | null | null | from CommonServerPython import *
value = demisto.args()["value"]
if isinstance(value, list):
try:
result = sum(value)
except TypeError:
return_error('This transformer applies only to numbers.')
else:
return_error('This transformer applies only to a list of numbers.')
demisto.results(resul... | 23.071429 | 71 | 0.702786 | 40 | 323 | 5.625 | 0.65 | 0.097778 | 0.133333 | 0.231111 | 0.346667 | 0.346667 | 0.346667 | 0 | 0 | 0 | 0 | 0 | 0.198142 | 323 | 13 | 72 | 24.846154 | 0.868726 | 0 | 0 | 0 | 0 | 0 | 0.30031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
b3e0f3df05d823ff7dd305b371da5bb7c79ba618 | 13,308 | py | Python | Utils/preprocess_MIMIC_CXR.py | tjvsonsbeek/Multi-modal-automated-diagnosis-with-chestXray-and-EHR | 2ffa98b88708ca19475e09b31aac7b6569c377ff | [
"MIT"
] | 1 | 2021-06-04T06:47:38.000Z | 2021-06-04T06:47:38.000Z | Utils/preprocess_MIMIC_CXR.py | tjvsonsbeek/Multi-modal-automated-diagnosis-with-chestXray-and-EHR | 2ffa98b88708ca19475e09b31aac7b6569c377ff | [
"MIT"
] | 1 | 2021-03-24T19:23:20.000Z | 2021-03-24T19:23:20.000Z | Utils/preprocess_MIMIC_CXR.py | tjvsonsbeek/Multi-modal-automated-diagnosis-with-chestXray-and-EHR | 2ffa98b88708ca19475e09b31aac7b6569c377ff | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from collections import Counter
from skmultilearn.model_selection.measures import get_combination_wise_output_matrix
from skmultilearn.model_selection import iterative_train_test_split
from tqdm import tqdm
def get_section(report, section_name, section_status = False):
if rep... | 48.747253 | 190 | 0.583709 | 1,477 | 13,308 | 5.10562 | 0.139472 | 0.005039 | 0.046413 | 0.061265 | 0.728153 | 0.693012 | 0.689299 | 0.683464 | 0.663572 | 0.642355 | 0 | 0.015687 | 0.267133 | 13,308 | 272 | 191 | 48.926471 | 0.757511 | 0.016757 | 0 | 0.504587 | 0 | 0.041284 | 0.295076 | 0.055513 | 0.013761 | 0 | 0 | 0 | 0 | 1 | 0.03211 | false | 0 | 0.027523 | 0 | 0.077982 | 0.133028 | 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 |
b3e850bc09dfda1bbb611b38d06234d0f52ef88b | 1,766 | py | Python | tests/testguid.py | grodansparadis/pyvscpws1 | af9247afd2014e566a2a781f8c2e4247c746b2ea | [
"MIT"
] | 1 | 2021-06-16T18:24:26.000Z | 2021-06-16T18:24:26.000Z | tests/testguid.py | grodansparadis/pyvscpws1 | af9247afd2014e566a2a781f8c2e4247c746b2ea | [
"MIT"
] | null | null | null | tests/testguid.py | grodansparadis/pyvscpws1 | af9247afd2014e566a2a781f8c2e4247c746b2ea | [
"MIT"
] | null | null | null | import sys
from ctypes import *
sys.path.append('../')
from vscp import *
# GUID conversion
gg = vscp.guid()
print("After creation:", gg.getAsString())
gg.setFromString("00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF")
print("guid = ", gg.getAsString())
gg.reverse()
print("reverse guid = ", gg.getAsString())
print... | 32.703704 | 138 | 0.634202 | 278 | 1,766 | 4.028777 | 0.223022 | 0.044643 | 0.061607 | 0.075 | 0.505357 | 0.358036 | 0.358036 | 0.308036 | 0.29375 | 0.29375 | 0 | 0.109068 | 0.107022 | 1,766 | 53 | 139 | 33.320755 | 0.601141 | 0.008494 | 0 | 0.111111 | 0 | 0.083333 | 0.315398 | 0.08071 | 0 | 0 | 0.019462 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.527778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3ef3e80ed08b0eef08c21949efa869760e81d1d | 437 | py | Python | saleor/dashboard/graphql/page/mutations.py | djlowes/russell-westbark | 7c3857e8a35b3bd0fea575ef0031360a1c5c0254 | [
"BSD-3-Clause"
] | null | null | null | saleor/dashboard/graphql/page/mutations.py | djlowes/russell-westbark | 7c3857e8a35b3bd0fea575ef0031360a1c5c0254 | [
"BSD-3-Clause"
] | null | null | null | saleor/dashboard/graphql/page/mutations.py | djlowes/russell-westbark | 7c3857e8a35b3bd0fea575ef0031360a1c5c0254 | [
"BSD-3-Clause"
] | null | null | null | import graphene
from ....page import models
from ...page.forms import PageForm
from ..mutations import (
ModelDeleteMutation, ModelFormMutation, ModelFormUpdateMutation)
class PageCreate(ModelFormMutation):
class Meta:
form_class = PageForm
class PageUpdate(ModelFormUpdateMutation):
class Meta:... | 19 | 68 | 0.734554 | 41 | 437 | 7.780488 | 0.439024 | 0.08464 | 0.081505 | 0.112853 | 0.194357 | 0.194357 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196796 | 437 | 22 | 69 | 19.863636 | 0.908832 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3f407e7e3817cef3588c533c21891fc5a505d9f | 3,518 | py | Python | ssbio/protein/structure/utils/mutatepdb.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 76 | 2017-03-06T02:50:38.000Z | 2022-02-08T08:08:48.000Z | ssbio/protein/structure/utils/mutatepdb.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 30 | 2017-03-09T14:54:05.000Z | 2021-10-06T10:57:45.000Z | ssbio/protein/structure/utils/mutatepdb.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 21 | 2017-09-01T23:00:31.000Z | 2022-02-23T14:04:30.000Z | """
MutatePDB
=========
"""
import argparse
import tempfile
from Bio import PDB
from Bio.PDB.Polypeptide import aa1
from Bio.PDB.Polypeptide import aa3
from Bio.PDB.Polypeptide import one_to_three
from ssbio.protein.structure.utils.cleanpdb import CleanPDB
from ssbio.protein.structure.utils.structureio import Struct... | 35.535354 | 140 | 0.666856 | 483 | 3,518 | 4.643892 | 0.308489 | 0.021846 | 0.028979 | 0.03745 | 0.219795 | 0.1177 | 0.1177 | 0.095408 | 0.095408 | 0.095408 | 0 | 0.011931 | 0.213758 | 3,518 | 98 | 141 | 35.897959 | 0.798988 | 0.108584 | 0 | 0.137931 | 0 | 0.017241 | 0.123408 | 0.016324 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.086207 | false | 0 | 0.137931 | 0 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3f8ef7b3373e7390053850400ff7e723473b982 | 574 | py | Python | app/controller/api.py | tanakeiQ/imageIndexer | 38105a8641303f1fcc2e7e5a145aae9c519b0d16 | [
"MIT"
] | 1 | 2018-07-20T19:10:20.000Z | 2018-07-20T19:10:20.000Z | app/controller/api.py | tanakeiQ/imageIndexer | 38105a8641303f1fcc2e7e5a145aae9c519b0d16 | [
"MIT"
] | 18 | 2018-02-05T17:57:57.000Z | 2018-02-17T05:51:02.000Z | app/controller/api.py | tanakeiQ/imageIndexer | 38105a8641303f1fcc2e7e5a145aae9c519b0d16 | [
"MIT"
] | null | null | null | from bottle import request, response, abort
from bottle import get, post
import os
import json
import sys
from log import *
from models import Route
response.headers['Content-Type'] = 'application/json'
@post('/api/routes/<id>')
def routes(id):
try:
description = request.params.decode().get('description'... | 23.916667 | 64 | 0.646341 | 70 | 574 | 5.285714 | 0.557143 | 0.081081 | 0.086486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.226481 | 574 | 23 | 65 | 24.956522 | 0.81982 | 0 | 0 | 0 | 0 | 0 | 0.137631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3f99ca620fc0ff5b5c4a152dcb533897a24af61 | 1,127 | py | Python | stack/stack/templates/tmpl_prepxml.py | earthobservatory/ariamh-pub | f33731e127f38ff33b02e02c07b16793c07651a6 | [
"Apache-2.0"
] | 4 | 2019-11-19T03:35:35.000Z | 2020-12-07T18:43:11.000Z | stack/stack/templates/tmpl_prepxml.py | earthobservatory/ariamh-pub | f33731e127f38ff33b02e02c07b16793c07651a6 | [
"Apache-2.0"
] | 3 | 2019-06-05T03:35:55.000Z | 2020-04-09T14:16:08.000Z | stack/stack/templates/tmpl_prepxml.py | earthobservatory/ariamh-pub | f33731e127f38ff33b02e02c07b16793c07651a6 | [
"Apache-2.0"
] | 6 | 2019-08-23T22:53:11.000Z | 2021-11-06T15:15:30.000Z | import tsinsar as ts
import argparse
import numpy as np
def parse():
parser= argparse.ArgumentParser(description='Preparation of XML files'+
'for setting up the processing chain. Check tsinsar/tsxml.py' +
'for details on the parameters.')
parser.parse_args()
parse()
g = ts.TSXML('da... | 28.175 | 102 | 0.645963 | 151 | 1,127 | 4.774834 | 0.569536 | 0.012483 | 0.033287 | 0.030513 | 0.199723 | 0.199723 | 0.199723 | 0.130374 | 0.130374 | 0 | 0 | 0.018162 | 0.169476 | 1,127 | 39 | 103 | 28.897436 | 0.752137 | 0.129547 | 0 | 0 | 0 | 0 | 0.216991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | 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 |
b3fb0d31a237dc4145ab114f387ffc080db5a823 | 381 | py | Python | med_files_api/med_result/migrations/0003_auto_20200509_1024.py | TheProrok29/med-files-api | 4f00ea016143f04106fce34e86c630081ed6d46a | [
"MIT"
] | null | null | null | med_files_api/med_result/migrations/0003_auto_20200509_1024.py | TheProrok29/med-files-api | 4f00ea016143f04106fce34e86c630081ed6d46a | [
"MIT"
] | 6 | 2021-03-30T13:02:39.000Z | 2022-03-12T00:24:41.000Z | med_files_api/med_result/migrations/0003_auto_20200509_1024.py | TheProrok29/med-files-api | 4f00ea016143f04106fce34e86c630081ed6d46a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-09 08:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('med_result', '0002_medresult_name'),
]
operations = [
migrations.AlterField(
model_name='medresult',
name='date_of_e... | 20.052632 | 47 | 0.595801 | 41 | 381 | 5.390244 | 0.804878 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07037 | 0.291339 | 381 | 18 | 48 | 21.166667 | 0.748148 | 0.11811 | 0 | 0 | 1 | 0 | 0.149701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b60180abb7b7715aa4d7a82e4348992e78580760 | 1,031 | py | Python | scrapy_httpcache/extensions/default_settings.py | vuchau/scrapy-httpcache | abef71aafe43b7449469df94101407184bb9d1a6 | [
"BSD-3-Clause"
] | 9 | 2018-03-06T06:42:42.000Z | 2022-01-16T01:56:25.000Z | scrapy_httpcache/extensions/default_settings.py | vuchau/scrapy-httpcache | abef71aafe43b7449469df94101407184bb9d1a6 | [
"BSD-3-Clause"
] | 3 | 2018-03-12T09:48:42.000Z | 2021-04-09T09:07:17.000Z | scrapy_httpcache/extensions/default_settings.py | vuchau/scrapy-httpcache | abef71aafe43b7449469df94101407184bb9d1a6 | [
"BSD-3-Clause"
] | 10 | 2018-06-13T02:46:17.000Z | 2022-01-23T04:37:49.000Z | # DOWNLOADER_MIDDLEWARES = {}
# DOWNLOADER_MIDDLEWARES.update({
# 'scrapy.downloadermiddlewares.httpcache.HttpCacheMiddleware': None,
# 'scrapy_httpcache.downloadermiddlewares.httpcache.AsyncHttpCacheMiddleware': 900,
# })
HTTPCACHE_STORAGE = 'scrapy_httpcache.extensions.httpcache_storage.MongoDBCacheStorage'
... | 39.653846 | 100 | 0.828322 | 109 | 1,031 | 7.376147 | 0.330275 | 0.179104 | 0.08209 | 0.119403 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01782 | 0.074685 | 1,031 | 25 | 101 | 41.24 | 0.824948 | 0.213385 | 0 | 0 | 0 | 0 | 0.347015 | 0.248756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b6022da68d502f5ee1082daa541275b70bb1dc7c | 1,125 | py | Python | src/wai/annotations/isp/filter_labels/specifier/_FilterLabelsISPSpecifier.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/isp/filter_labels/specifier/_FilterLabelsISPSpecifier.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | 3 | 2021-06-30T23:42:47.000Z | 2022-03-01T03:45:07.000Z | src/wai/annotations/isp/filter_labels/specifier/_FilterLabelsISPSpecifier.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | from typing import Type, Tuple
from ....core.component import ProcessorComponent
from ....core.domain import DomainSpecifier
from ....core.specifier import ProcessorStageSpecifier
class FilterLabelsISPSpecifier(ProcessorStageSpecifier):
"""
Specifies the filter-labels ISP.
"""
@classmethod
def de... | 33.088235 | 89 | 0.690667 | 96 | 1,125 | 8.03125 | 0.53125 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236444 | 1,125 | 33 | 90 | 34.090909 | 0.897555 | 0.028444 | 0 | 0.12 | 0 | 0 | 0.131848 | 0.040854 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.24 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b607ba8778b0b29f41633a7d84d038e6680e837f | 2,097 | py | Python | tia/trad/tools/dicDiff.py | jmakov/market_tia | 0804fd82b4fb3ea52c171ea0759f0e10fc659bb2 | [
"MIT"
] | 1 | 2020-07-24T04:18:57.000Z | 2020-07-24T04:18:57.000Z | tia/trad/tools/dicDiff.py | jmakov/market_tia | 0804fd82b4fb3ea52c171ea0759f0e10fc659bb2 | [
"MIT"
] | null | null | null | tia/trad/tools/dicDiff.py | jmakov/market_tia | 0804fd82b4fb3ea52c171ea0759f0e10fc659bb2 | [
"MIT"
] | 1 | 2020-07-24T04:22:14.000Z | 2020-07-24T04:22:14.000Z | import tia.trad.tools.ipc.naming_conventions as names
class DictDiff(object):
"""
Calculate the difference between two dictionaries as:
(1) items added
(2) items removed
(3) keys same in both but changed values
(4) keys same in both and unchanged values
"""
def __init__(self, current_di... | 41.94 | 93 | 0.639962 | 282 | 2,097 | 4.624113 | 0.255319 | 0.050614 | 0.046012 | 0.02454 | 0.291411 | 0.230061 | 0.230061 | 0.217791 | 0.217791 | 0.102761 | 0 | 0.007435 | 0.230329 | 2,097 | 49 | 94 | 42.795918 | 0.800496 | 0.087268 | 0 | 0 | 0 | 0 | 0.008502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.029412 | 0.117647 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b60dc6ca7f61ceeb512b0a9e150c2c67bee43585 | 483 | py | Python | Chapter12/Scripts/Chapter12_0.py | monocilindro/Mastering-Geospatial-Analysis-with-Python | 2cee571403aa0d96f6c2eb7400792286a81dc7e9 | [
"MIT"
] | 64 | 2018-05-04T16:54:59.000Z | 2022-03-22T11:26:21.000Z | Chapter12/Scripts/Chapter12_0.py | monocilindro/Mastering-Geospatial-Analysis-with-Python | 2cee571403aa0d96f6c2eb7400792286a81dc7e9 | [
"MIT"
] | 1 | 2020-05-31T00:45:28.000Z | 2020-05-31T18:29:07.000Z | Chapter12/Scripts/Chapter12_0.py | monocilindro/Mastering-Geospatial-Analysis-with-Python | 2cee571403aa0d96f6c2eb7400792286a81dc7e9 | [
"MIT"
] | 41 | 2018-05-10T21:31:44.000Z | 2022-03-23T11:12:33.000Z | import psycopg2
connection = psycopg2.connect(host='localhost', user='{user}',
password='{password}', port="5432")
connection.autocommit = True
cursor = connection.cursor()
cursor.execute('CREATE DATABASE chapter122')
connection.close()
connection = psycopg2.connect(dbname='chapter12', host='localhost',
user='{use... | 28.411765 | 67 | 0.751553 | 52 | 483 | 6.980769 | 0.423077 | 0.132231 | 0.137741 | 0.115702 | 0.247934 | 0.247934 | 0.247934 | 0.247934 | 0 | 0 | 0 | 0.036281 | 0.086957 | 483 | 16 | 68 | 30.1875 | 0.786848 | 0 | 0 | 0.461538 | 0 | 0 | 0.242739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b614928b1392e5be7d993943b612fcd409d04904 | 451 | py | Python | packages/PIPS/pips/src/Passes/paws/pawsapp/pawsapp/security.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 51 | 2015-01-31T01:51:39.000Z | 2022-02-18T02:01:50.000Z | packages/PIPS/pips/src/Passes/paws/pawsapp/pawsapp/security.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 7 | 2017-05-29T09:29:00.000Z | 2019-03-11T16:01:39.000Z | packages/PIPS/pips/src/Passes/paws/pawsapp/pawsapp/security.py | DVSR1966/par4all | 86b33ca9da736e832b568c5637a2381f360f1996 | [
"MIT"
] | 12 | 2015-03-26T08:05:38.000Z | 2022-02-18T02:01:51.000Z | # -*- coding: utf-8 -*-
from pyramid.security import Allow, Everyone
# Users and groups
USERS = {'paws': 'foot_print',
}
GROUPS = {'paws': ['group:members'],
}
# Basic permissions
class RootFactory(object):
__acl__ = [ (Allow, 'group:members', 'view'),
]
def __init_... | 15.033333 | 49 | 0.572062 | 47 | 451 | 5.297872 | 0.744681 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.283814 | 451 | 29 | 50 | 15.551724 | 0.767802 | 0.124169 | 0 | 0 | 0 | 0 | 0.123393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
373c87feb54193b470998dd6955c39b3799375c4 | 680 | py | Python | app/models/game.py | TylerJang27/Pikachooze | 1497e4e5b2bb5e8136c9cfea6e13260478fe7502 | [
"MIT"
] | 2 | 2021-10-20T16:44:23.000Z | 2021-11-29T04:54:02.000Z | app/models/game.py | TylerJang27/Pikachooze | 1497e4e5b2bb5e8136c9cfea6e13260478fe7502 | [
"MIT"
] | null | null | null | app/models/game.py | TylerJang27/Pikachooze | 1497e4e5b2bb5e8136c9cfea6e13260478fe7502 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from app.models.base import Base
class Game(Base):
__tablename__ = 'game'
game_id = Column(Integer, primary_key = True)
game_name = Column(String(16), index=True, unique=True, nullable=False)
generation... | 37.777778 | 99 | 0.695588 | 81 | 680 | 5.617284 | 0.481481 | 0.085714 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005396 | 0.182353 | 680 | 18 | 100 | 37.777778 | 0.81295 | 0 | 0 | 0 | 0 | 0 | 0.129222 | 0.030837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0.076923 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
373c99404eaa7d21f2d4341b8206664c294e2494 | 433 | bzl | Python | third_party/zlib/zlib.bzl | jinay1991/motion_planning | 2468c42cf67ae43fb412a2ada4e2ac8cc2379d08 | [
"MIT"
] | 2 | 2019-09-19T03:34:27.000Z | 2019-10-30T06:55:40.000Z | third_party/zlib/zlib.bzl | jinay1991/motion_planning | 2468c42cf67ae43fb412a2ada4e2ac8cc2379d08 | [
"MIT"
] | 1 | 2019-10-02T19:17:38.000Z | 2019-10-02T19:18:20.000Z | third_party/zlib/zlib.bzl | jinay1991/motion_planning | 2468c42cf67ae43fb412a2ada4e2ac8cc2379d08 | [
"MIT"
] | null | null | null | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def zlib():
if "zlib" not in native.existing_rules():
http_archive(
name = "zlib",
build_file = "//third_party/zlib:zlib.BUILD",
sha256 = "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d... | 36.083333 | 88 | 0.60739 | 49 | 433 | 5.204082 | 0.673469 | 0.086275 | 0.047059 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180982 | 0.247113 | 433 | 11 | 89 | 39.363636 | 0.601227 | 0 | 0 | 0 | 0 | 0 | 0.468822 | 0.316397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
373efec0f722b5b7383af1190bb0cdf44eb1818c | 7,861 | py | Python | gnome/gnome2/gedit/plugins.symlink/todo/__init__.py | icebreaker/dotfiles | 5c3dc7f981069a728cc6b34ae39cd4c2da1122aa | [
"MIT"
] | 4 | 2015-03-17T14:36:49.000Z | 2019-06-10T09:34:35.000Z | gnome/gnome2/gedit/plugins.symlink/todo/__init__.py | icebreaker/dotfiles | 5c3dc7f981069a728cc6b34ae39cd4c2da1122aa | [
"MIT"
] | null | null | null | gnome/gnome2/gedit/plugins.symlink/todo/__init__.py | icebreaker/dotfiles | 5c3dc7f981069a728cc6b34ae39cd4c2da1122aa | [
"MIT"
] | 1 | 2019-03-01T13:21:55.000Z | 2019-03-01T13:21:55.000Z | # Copyright (C) 2007 - Nando Vieira
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that ... | 32.618257 | 145 | 0.611118 | 1,004 | 7,861 | 4.588645 | 0.278884 | 0.032993 | 0.057738 | 0.019535 | 0.191231 | 0.149772 | 0.114174 | 0.080747 | 0.067723 | 0.054699 | 0 | 0.007647 | 0.284697 | 7,861 | 240 | 146 | 32.754167 | 0.811666 | 0.147182 | 0 | 0.172619 | 0 | 0 | 0.119305 | 0.023831 | 0 | 0 | 0 | 0.004167 | 0 | 0 | null | null | 0.011905 | 0.065476 | null | null | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
37405afa425305cb771525ff7033a75cac9da8e2 | 464 | py | Python | lib/pysgpp/extensions/datadriven/uq/sampler/Sampler.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | 4 | 2022-01-15T19:50:36.000Z | 2022-01-15T20:16:10.000Z | lib/pysgpp/extensions/datadriven/uq/sampler/Sampler.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | lib/pysgpp/extensions/datadriven/uq/sampler/Sampler.py | valentjn/thesis | 65a0eb7d5f7488aac93882959e81ac6b115a9ea8 | [
"CC0-1.0"
] | null | null | null | class Sampler(object):
def __init__(self):
self._params = None
self._dim = None
self._iteration = 0
def setParameters(self, params):
self._params = params
self._dim = params.getStochasticDim()
def nextSamples(self, *args, **kws):
raise NotImplementedError()... | 23.2 | 45 | 0.622845 | 45 | 464 | 6.222222 | 0.444444 | 0.107143 | 0.078571 | 0.114286 | 0.271429 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.273707 | 464 | 19 | 46 | 24.421053 | 0.827893 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37463e423f68cc7b6bfb9e3dc01ed049424b134b | 1,093 | py | Python | Hypervisor/bin/board-control.py | Felipe-Rubin/ResearchIoTSecurity | 633526d2eca691d0099189e61a84c4e09264723a | [
"MIT"
] | 36 | 2016-07-08T17:53:39.000Z | 2021-03-04T17:32:16.000Z | Hypervisor/bin/board-control.py | Felipe-Rubin/ResearchIoTSecurity | 633526d2eca691d0099189e61a84c4e09264723a | [
"MIT"
] | 7 | 2017-01-06T21:03:43.000Z | 2017-11-27T14:21:48.000Z | Hypervisor/bin/board-control.py | Felipe-Rubin/ResearchIoTSecurity | 633526d2eca691d0099189e61a84c4e09264723a | [
"MIT"
] | 10 | 2016-09-24T15:13:01.000Z | 2018-09-26T19:14:32.000Z | import serial
from time import sleep
import base64
import sys
def readSerial():
while True:
response = ser.readline();
return response
# main
ser = serial.Serial(port='/dev/ttyACM0', baudrate=115200, timeout=3)
ser.isOpen()
# Wait UART Listener VM to be done.
while(1):
message = readSerial()
i... | 18.525424 | 68 | 0.616651 | 147 | 1,093 | 4.537415 | 0.469388 | 0.047976 | 0.038981 | 0.068966 | 0.143928 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0.03034 | 0.246112 | 1,093 | 58 | 69 | 18.844828 | 0.779126 | 0.087832 | 0 | 0.315789 | 0 | 0 | 0.125126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
37489728e7044db87172ab0beeb04342437f5aae | 18,445 | py | Python | pipeline/arc_finder.py | ronpandolfi/Xi-cam | f6388c7c44b202403194a04ca2b4d8bcca41cc74 | [
"BSD-3-Clause-LBNL"
] | 19 | 2016-11-18T18:20:36.000Z | 2020-03-06T09:04:25.000Z | pipeline/arc_finder.py | ronpandolfi/Xi-cam | f6388c7c44b202403194a04ca2b4d8bcca41cc74 | [
"BSD-3-Clause-LBNL"
] | 29 | 2016-10-27T17:43:01.000Z | 2018-07-09T03:06:54.000Z | pipeline/arc_finder.py | ronpandolfi/Xi-cam | f6388c7c44b202403194a04ca2b4d8bcca41cc74 | [
"BSD-3-Clause-LBNL"
] | 10 | 2017-01-27T00:40:27.000Z | 2019-11-12T15:23:51.000Z | import glob
import os
import numpy as np
import scipy
from scipy import signal
import fabio
import matplotlib.pyplot as plt
import center_approx
import integration
import peakfindingrem
import peakfinding
import scipy.optimize as optimize
import scipy.stats
from scipy import interpolate
from lmfit import minimize, ... | 29.846278 | 168 | 0.563459 | 2,450 | 18,445 | 4.196735 | 0.157143 | 0.015658 | 0.005835 | 0.010698 | 0.35071 | 0.301109 | 0.256565 | 0.22729 | 0.187123 | 0.173993 | 0 | 0.037101 | 0.273733 | 18,445 | 617 | 169 | 29.894652 | 0.730442 | 0.381946 | 0 | 0.273469 | 0 | 0 | 0.029926 | 0.001971 | 0 | 0 | 0 | 0.001621 | 0 | 0 | null | null | 0.004082 | 0.089796 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.