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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41df3e0d617a0c44fda1dbf09fdfe0802a9802fc | 12,716 | py | Python | CMUTweetTagger.py | renhaocui/activityExtractor | f5abaff28bb84af3af3a7268729541af6fa25f36 | [
"MIT"
] | 1 | 2019-09-18T16:39:00.000Z | 2019-09-18T16:39:00.000Z | CMUTweetTagger.py | renhaocui/activityExtractor | f5abaff28bb84af3af3a7268729541af6fa25f36 | [
"MIT"
] | 1 | 2019-09-18T19:40:35.000Z | 2019-09-18T19:40:35.000Z | CMUTweetTagger.py | renhaocui/activityExtractor | f5abaff28bb84af3af3a7268729541af6fa25f36 | [
"MIT"
] | null | null | null | import subprocess, shlex, json, re
from wordsegment import load, segment
from difflib import SequenceMatcher
import sys
reload(sys)
sys.setdefaultencoding('utf8')
load()
RUN_TAGGER_CMD = "java -XX:ParallelGCThreads=2 -Xmx1000m -jar utilities/ark-tweet-nlp-0.3.2.jar"
def removeLinks(input):
urls = re.findall("(?P... | 39.368421 | 172 | 0.533973 | 1,299 | 12,716 | 5.169361 | 0.224788 | 0.010722 | 0.014296 | 0.018764 | 0.416232 | 0.392554 | 0.367089 | 0.367089 | 0.349218 | 0.316754 | 0 | 0.010301 | 0.335797 | 12,716 | 322 | 173 | 39.490683 | 0.78475 | 0.097594 | 0 | 0.492248 | 0 | 0.003876 | 0.076902 | 0.02671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015504 | null | null | 0.050388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
41ea908d2cb1c1e2858cedb1b00c6722a8ee4eee | 867 | py | Python | src/mem/HybridController/eDRAM_Cache_Side/eDRAM.py | MattDAngeli/Hybrid-eDRAM-PCM-Full-System-Simulator | 4ae14eb6d3c13ab8287e792054dadf8c44f064c3 | [
"BSD-3-Clause"
] | null | null | null | src/mem/HybridController/eDRAM_Cache_Side/eDRAM.py | MattDAngeli/Hybrid-eDRAM-PCM-Full-System-Simulator | 4ae14eb6d3c13ab8287e792054dadf8c44f064c3 | [
"BSD-3-Clause"
] | null | null | null | src/mem/HybridController/eDRAM_Cache_Side/eDRAM.py | MattDAngeli/Hybrid-eDRAM-PCM-Full-System-Simulator | 4ae14eb6d3c13ab8287e792054dadf8c44f064c3 | [
"BSD-3-Clause"
] | null | null | null | from m5.params import *
from m5.proxy import *
from MemObject import *
from eDRAMCacheTags import *
class eDRAMCache(MemObject):
type = 'eDRAMCache'
cxx_header = "mem/HybridController/eDRAM_Cache_Side/eDRAM_cache.hh"
block_size = Param.Int(Parent.block_size, "same as parent")
size = Param.MemoryS... | 37.695652 | 77 | 0.758939 | 114 | 867 | 5.482456 | 0.377193 | 0.144 | 0.1792 | 0.1248 | 0.2608 | 0.2112 | 0 | 0 | 0 | 0 | 0 | 0.002667 | 0.134948 | 867 | 22 | 78 | 39.409091 | 0.830667 | 0 | 0 | 0 | 0 | 0 | 0.130334 | 0.059977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
41ec0228ce778ad3bf08a92d4dc659af6c15f8f7 | 483 | py | Python | interview/leet/859_Buddy_Strings.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2020-10-12T13:33:29.000Z | 2020-10-12T13:33:29.000Z | interview/leet/859_Buddy_Strings.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | null | null | null | interview/leet/859_Buddy_Strings.py | eroicaleo/LearningPython | 297d46eddce6e43ce0c160d2660dff5f5d616800 | [
"MIT"
] | 1 | 2016-11-09T07:28:45.000Z | 2016-11-09T07:28:45.000Z | #!/usr/bin/env python3
class Solution:
def buddStrings(self, A, B):
la, lb = len(A), len(B)
if la != lb:
return False
diff = [i for i in range(la) if A[i] != B[i]]
if len(diff) > 2 or len(diff) == 1:
return False
elif len(diff) == 0 and len(set(A)) ==... | 25.421053 | 53 | 0.436853 | 73 | 483 | 2.890411 | 0.438356 | 0.208531 | 0.037915 | 0.047393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.424431 | 483 | 18 | 54 | 26.833333 | 0.744604 | 0.043478 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.466667 | 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 |
41ed42ba155f4f8c3b0e56171e05cd1321ae8090 | 502 | py | Python | classes/magic_method/method1.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | 1 | 2020-06-04T08:44:09.000Z | 2020-06-04T08:44:09.000Z | classes/magic_method/method1.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | classes/magic_method/method1.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
__new__ __init__
'''
class Programer(object):
def __new__(self, *args, **kwargs):
print 'call __new__ method!'
print args
return object.__new__(self, *args, **kwargs)
def __init__(self,name,age):
prin... | 21.826087 | 53 | 0.557769 | 54 | 502 | 4.444444 | 0.5 | 0.058333 | 0.091667 | 0.141667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008671 | 0.310757 | 502 | 23 | 54 | 21.826087 | 0.684971 | 0.081673 | 0 | 0 | 0 | 0 | 0.131068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41f2f05dc184e0a4fdb150d39e607ae1b449e7c0 | 2,533 | py | Python | Projects/events/views.py | jjfleet/Capstone | f81e21f0641ed0b75e06161198fca52805acb2e4 | [
"Apache-2.0"
] | 2 | 2018-07-23T05:44:50.000Z | 2018-09-10T09:12:36.000Z | Projects/events/views.py | jjmassey/Capstone | f81e21f0641ed0b75e06161198fca52805acb2e4 | [
"Apache-2.0"
] | 14 | 2018-09-10T10:42:39.000Z | 2018-10-24T00:04:36.000Z | Projects/events/views.py | jjfleet/Capstone | f81e21f0641ed0b75e06161198fca52805acb2e4 | [
"Apache-2.0"
] | 2 | 2018-09-10T06:34:31.000Z | 2018-09-17T06:05:23.000Z | from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView
from .models import EventListing
from django.contrib.auth.models import User
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestM... | 34.22973 | 103 | 0.771812 | 320 | 2,533 | 5.99375 | 0.321875 | 0.036496 | 0.035454 | 0.021898 | 0.244004 | 0.202294 | 0.157456 | 0.115746 | 0.115746 | 0.067779 | 0 | 0.004474 | 0.117647 | 2,533 | 73 | 104 | 34.69863 | 0.853691 | 0.022503 | 0 | 0.278689 | 0 | 0 | 0.095392 | 0.031932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0.04918 | 0.147541 | 0 | 0.672131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41f5feecfe50cf78c71aaf4a80ea65c9c1794f05 | 1,594 | py | Python | todo/migrations/0004_rename_list_tasklist.py | Sowmya-1998/https-github.com-shacker-django-todo | 79a272d222ef262f4f6caee91d9accfb8569ccea | [
"BSD-3-Clause"
] | 567 | 2015-01-02T00:34:10.000Z | 2022-03-30T07:52:08.000Z | todo/migrations/0004_rename_list_tasklist.py | wu1f72514/django-todo | 2d86a51177a6f16cf4239fa3c034f6844c4bc048 | [
"BSD-3-Clause"
] | 94 | 2015-06-07T09:26:31.000Z | 2022-03-05T23:53:22.000Z | todo/migrations/0004_rename_list_tasklist.py | yeastbaron/tst | 2d86a51177a6f16cf4239fa3c034f6844c4bc048 | [
"BSD-3-Clause"
] | 272 | 2015-01-03T08:16:51.000Z | 2022-03-29T09:37:17.000Z | # Generated by Django 2.0.2 on 2018-02-09 23:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("auth", "0009_alter_user_last_name_max_length"),
("todo", "0003_assignee_optional"),
]
operations = [
... | 34.652174 | 100 | 0.542033 | 146 | 1,594 | 5.767123 | 0.5 | 0.038005 | 0.049881 | 0.078385 | 0.092637 | 0.092637 | 0.092637 | 0.092637 | 0 | 0 | 0 | 0.023191 | 0.323714 | 1,594 | 45 | 101 | 35.422222 | 0.757885 | 0.028231 | 0 | 0.153846 | 1 | 0 | 0.132515 | 0.037492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.128205 | 0 | 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 |
41f9ca29c3f35036a1832f13ceb7d1aad3a2fd84 | 2,753 | py | Python | src/dx/share/property_maker.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | null | null | null | src/dx/share/property_maker.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | 2 | 2021-01-03T16:22:11.000Z | 2021-02-07T08:41:57.000Z | src/dx/share/property_maker.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | null | null | null | from inspect import currentframe
__all__ = ["add_props_to_ns", "add_classprops_to_ns", "classproperty", "props_as_dict"]
def prop_getsetdel(property_name, prefix="_", read_only=False, deletable=False):
internal_attr = prefix + property_name
def prop_getter(internal_attr):
def getter_func(self):
... | 34.4125 | 87 | 0.687977 | 362 | 2,753 | 4.925414 | 0.234807 | 0.062815 | 0.102075 | 0.074593 | 0.469994 | 0.469994 | 0.469994 | 0.462703 | 0.437465 | 0.437465 | 0 | 0.000928 | 0.216854 | 2,753 | 79 | 88 | 34.848101 | 0.826067 | 0.079913 | 0 | 0.370968 | 0 | 0 | 0.02692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.016129 | 0.032258 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41fe10662f063c61998d2ea5f5fcc421ad3d452f | 581 | py | Python | mulm/residualizer/__init__.py | neurospin/pylearn-mulm | cfbcda8312a495a8e82657e04b67dc95db2a3306 | [
"BSD-3-Clause"
] | 6 | 2015-02-27T13:29:36.000Z | 2021-05-04T11:45:42.000Z | mulm/residualizer/__init__.py | neurospin/pylearn-mulm | cfbcda8312a495a8e82657e04b67dc95db2a3306 | [
"BSD-3-Clause"
] | null | null | null | mulm/residualizer/__init__.py | neurospin/pylearn-mulm | cfbcda8312a495a8e82657e04b67dc95db2a3306 | [
"BSD-3-Clause"
] | 1 | 2020-05-20T15:42:07.000Z | 2020-05-20T15:42:07.000Z | # -*- coding: utf-8 -*-
##########################################################################
# Created on Tue Jun 25 13:25:41 2013
# Copyright (c) 2013-2021, CEA/DRF/Joliot/NeuroSpin. All rights reserved.
# @author: Edouard Duchesnay
# @email: edouard.duchesnay@cea.fr
# @license: BSD 3-clause.
################... | 29.05 | 74 | 0.531842 | 51 | 581 | 5.980392 | 0.764706 | 0.104918 | 0.144262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043137 | 0.122203 | 581 | 19 | 75 | 30.578947 | 0.554902 | 0.442341 | 0 | 0 | 0 | 0 | 0.202454 | 0.128834 | 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 |
510189956b36fd250d873884e457135e0f5d9814 | 352 | py | Python | pset_pandas_ext/101problems/p37.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_pandas_ext/101problems/p37.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_pandas_ext/101problems/p37.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
37. How to get the nrows, ncolumns, datatype, summary stats of each column of a dataframe? Also get the array and list equivalent.
"""
"""
Difficulty Level: L2
"""
"""
Get the number of rows, columns, datatype and summary statistics of each column of the Cars93 dataset. Also get the numpy array and list equivalent ... | 27.076923 | 165 | 0.71875 | 54 | 352 | 4.685185 | 0.555556 | 0.094862 | 0.094862 | 0.110672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017361 | 0.181818 | 352 | 12 | 166 | 29.333333 | 0.861111 | 0.369318 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5102d3fc83a6a50bd2856d794fbbf9fc67809890 | 3,423 | py | Python | bookstore/news/views.py | M0673N/bookstore | ec9477550ba46f9ffde3817cf676e97b0239263d | [
"MIT"
] | null | null | null | bookstore/news/views.py | M0673N/bookstore | ec9477550ba46f9ffde3817cf676e97b0239263d | [
"MIT"
] | null | null | null | bookstore/news/views.py | M0673N/bookstore | ec9477550ba46f9ffde3817cf676e97b0239263d | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect, render
from django.urls import reverse_lazy
from django.views import View
from django.views.generic import ListView, CreateView, DetailView, UpdateView, DeleteView
from bookstore.news.forms import ArticleForm, ArticleComme... | 32.913462 | 100 | 0.682734 | 373 | 3,423 | 6.117962 | 0.268097 | 0.030675 | 0.035057 | 0.03681 | 0.349693 | 0.305872 | 0.272568 | 0.244522 | 0.163015 | 0.119194 | 0 | 0.00074 | 0.210926 | 3,423 | 103 | 101 | 33.23301 | 0.844132 | 0 | 0 | 0.315789 | 0 | 0 | 0.085013 | 0.030675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.118421 | 0 | 0.605263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
511056a39b1c224d0c6ccad1ee52150327e9b87b | 4,074 | py | Python | functions.py | QijingMa/COGS18-Final-Project | 71d2761706f2614bcee2e5d5d2b42a98af542d21 | [
"MIT"
] | null | null | null | functions.py | QijingMa/COGS18-Final-Project | 71d2761706f2614bcee2e5d5d2b42a98af542d21 | [
"MIT"
] | null | null | null | functions.py | QijingMa/COGS18-Final-Project | 71d2761706f2614bcee2e5d5d2b42a98af542d21 | [
"MIT"
] | null | null | null | """A collection of function for doing my project."""
import time
import random
#Background Introduction
def Intro():
print("Hello, how are you doing after the long journey? ")
time.sleep(2)
print("You are now at Pallet Town,Kanto.")
time.sleep(2)
print("A place where is abounded with amazing... | 29.309353 | 148 | 0.61512 | 553 | 4,074 | 4.515371 | 0.298373 | 0.061274 | 0.064077 | 0.072087 | 0.428915 | 0.39207 | 0.36644 | 0.327994 | 0.327994 | 0.327994 | 0 | 0.022989 | 0.273932 | 4,074 | 139 | 149 | 29.309353 | 0.821163 | 0.108738 | 0 | 0.541667 | 0 | 0 | 0.403163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.020833 | 0 | 0.145833 | 0.40625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
511348d0f7e727316d9decb80f7903c72de66bea | 486 | py | Python | changelogger/urls.py | zhelyabuzhsky/changelogger | 8dbbfe978a86fa89a7eae23525c60c5f281fea6c | [
"MIT"
] | 1 | 2020-04-14T06:10:23.000Z | 2020-04-14T06:10:23.000Z | changelogger/urls.py | zhelyabuzhsky/changelogger | 8dbbfe978a86fa89a7eae23525c60c5f281fea6c | [
"MIT"
] | 43 | 2019-08-23T06:23:57.000Z | 2022-03-18T06:30:34.000Z | changelogger/urls.py | zhelyabuzhsky/changelogger | 8dbbfe978a86fa89a7eae23525c60c5f281fea6c | [
"MIT"
] | null | null | null | from django.conf.urls import include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path
urlpatterns = [
path("", include("changelogs.urls")),
path("admin/", admin.site.urls),
path("accounts/", include("django.contrib.auth.urls")),
path("log... | 34.714286 | 70 | 0.709877 | 64 | 486 | 5.296875 | 0.375 | 0.117994 | 0.100295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 486 | 13 | 71 | 37.384615 | 0.795775 | 0 | 0 | 0 | 0 | 0 | 0.199588 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5116c1aaabb06943907a648c428e69e237f18f57 | 264 | py | Python | sfa.py | ISeeBugsEverywhere/SnapFlatApp | 5526311297a018312175b90623e1ff9613bc4d30 | [
"Unlicense"
] | null | null | null | sfa.py | ISeeBugsEverywhere/SnapFlatApp | 5526311297a018312175b90623e1ff9613bc4d30 | [
"Unlicense"
] | null | null | null | sfa.py | ISeeBugsEverywhere/SnapFlatApp | 5526311297a018312175b90623e1ff9613bc4d30 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
#-*- coding: utf-8 -*-
from PyQt5.QtWidgets import QApplication
from Main.SFA_main import SFA_window
import sys
if __name__ == "__main__":
app = QApplication(sys.argv)
window = SFA_window()
window.show()
sys.exit(app.exec_())
| 18.857143 | 40 | 0.685606 | 36 | 264 | 4.694444 | 0.611111 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013761 | 0.174242 | 264 | 13 | 41 | 20.307692 | 0.761468 | 0.143939 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
511b45e66c5245a99c2902dd04256ca1c0aa4500 | 756 | py | Python | preader/reader/forms.py | jobscry/preader | 20bfcc88da723f1393f43a296ed12c03320d232e | [
"MIT"
] | null | null | null | preader/reader/forms.py | jobscry/preader | 20bfcc88da723f1393f43a296ed12c03320d232e | [
"MIT"
] | null | null | null | preader/reader/forms.py | jobscry/preader | 20bfcc88da723f1393f43a296ed12c03320d232e | [
"MIT"
] | null | null | null | from django import forms
from .models import Feed
class URLForm(forms.Form):
url = forms.URLField(label='URL', max_length=255)
class NewSubscriptionForm(forms.Form):
feeds = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple, label='URLs')
def __init__(self, *args, **kwargs):
feed_id... | 30.24 | 88 | 0.678571 | 86 | 756 | 5.732558 | 0.465116 | 0.036511 | 0.060852 | 0.154158 | 0.170385 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004942 | 0.19709 | 756 | 24 | 89 | 31.5 | 0.807249 | 0 | 0 | 0 | 0 | 0 | 0.060847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
511ba19bf0b9fb7d2426745e79893e633d788d0d | 1,344 | py | Python | dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_screener.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_screener.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_screener.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | #py_screener.py
def screener(user_inp=None):
"""A function to square only floating points.
Returns custom exceptions if an int or complex is encountered."""
#make sure something was input
if not user_inp:
print("Ummm...did you type in ANYTHING?")
return
#If it *might* be a floa... | 34.461538 | 85 | 0.613839 | 190 | 1,344 | 4.194737 | 0.4 | 0.079046 | 0.037641 | 0.071518 | 0.090339 | 0.090339 | 0 | 0 | 0 | 0 | 0 | 0.001068 | 0.303571 | 1,344 | 39 | 86 | 34.461538 | 0.850427 | 0.335565 | 0 | 0.384615 | 0 | 0 | 0.100687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0 | 0 | 0.115385 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5126df55db07533e80af8cb011974663ad79b0a2 | 2,442 | py | Python | labellab-flask/api/models/Issue.py | M-A-D-A-R-A/LabelLab | 4e86ff52f6bd78ede853e001b5e9a38ebb234b83 | [
"Apache-2.0"
] | null | null | null | labellab-flask/api/models/Issue.py | M-A-D-A-R-A/LabelLab | 4e86ff52f6bd78ede853e001b5e9a38ebb234b83 | [
"Apache-2.0"
] | null | null | null | labellab-flask/api/models/Issue.py | M-A-D-A-R-A/LabelLab | 4e86ff52f6bd78ede853e001b5e9a38ebb234b83 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from email.policy import default
from flask import current_app
from api.extensions import db, Base
class Issue(db.Model):
"""
This model holds information about an Issue
"""
__tablename__ = "issue"
id = db.Column(db.Integer, primary_key=True)
title =... | 44.4 | 190 | 0.618346 | 292 | 2,442 | 5.010274 | 0.239726 | 0.082023 | 0.102529 | 0.06972 | 0.336979 | 0.283664 | 0.283664 | 0.151743 | 0.099795 | 0.099795 | 0 | 0.007791 | 0.264128 | 2,442 | 55 | 191 | 44.4 | 0.806344 | 0.031532 | 0 | 0.136364 | 0 | 0 | 0.074791 | 0.019798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
512889aa7d8884a615563804875a0c84c20d6faf | 6,310 | py | Python | src/dumpBuggyPatches/dumpLogs.py | dSar-UVA/repoMiner | 8f75074e388ff13419a0a37b4337c0cdcb459f74 | [
"BSD-3-Clause"
] | null | null | null | src/dumpBuggyPatches/dumpLogs.py | dSar-UVA/repoMiner | 8f75074e388ff13419a0a37b4337c0cdcb459f74 | [
"BSD-3-Clause"
] | null | null | null | src/dumpBuggyPatches/dumpLogs.py | dSar-UVA/repoMiner | 8f75074e388ff13419a0a37b4337c0cdcb459f74 | [
"BSD-3-Clause"
] | null | null | null | import sys, os
#import psycopg2
import logging
import codecs
sys.path.append("../util")
from DatabaseCon import DatabaseCon
#from Config import Config
import Util
class dumpLogs:
def __init__(self, password, c_info):
self.config_info = c_info
self.db_config = self.config_info.config_db
... | 37.337278 | 132 | 0.581775 | 689 | 6,310 | 5.162554 | 0.214804 | 0.047231 | 0.094462 | 0.080967 | 0.577453 | 0.532752 | 0.480742 | 0.437166 | 0.437166 | 0.425077 | 0 | 0.00559 | 0.291284 | 6,310 | 168 | 133 | 37.559524 | 0.789803 | 0.155626 | 0 | 0.346939 | 0 | 0 | 0.27793 | 0 | 0 | 0 | 0 | 0.005952 | 0 | 0 | null | null | 0.030612 | 0.05102 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5129fb2575eab078132f342aff13007a4b5635a4 | 687 | py | Python | app/apiv2/internal/tasking/mobius_task.py | Joey-Wondersign/Staffjoy-suite-Joey | b6d0d87b8e60e6b866810ebeed631fb02fadad48 | [
"MIT"
] | 890 | 2017-02-25T07:11:09.000Z | 2022-03-08T05:49:20.000Z | app/apiv2/internal/tasking/mobius_task.py | Joey-Wondersign/Staffjoy-suite-Joey | b6d0d87b8e60e6b866810ebeed631fb02fadad48 | [
"MIT"
] | 11 | 2017-02-25T18:07:11.000Z | 2020-10-19T13:09:41.000Z | app/apiv2/internal/tasking/mobius_task.py | nfriedly/suite | c58c772d98d1476cad0531b8a296f27ad2ab945c | [
"MIT"
] | 276 | 2017-02-25T09:01:23.000Z | 2022-03-19T02:24:02.000Z | from flask_restful import marshal, abort, Resource
from app.models import Schedule2
from app.apiv2.decorators import permission_sudo
from app.apiv2.marshal import tasking_schedule_fields
class MobiusTaskApi(Resource):
method_decorators = [permission_sudo]
def get(self, schedule_id):
""" Peek at a sc... | 27.48 | 53 | 0.682678 | 88 | 687 | 5.125 | 0.522727 | 0.088692 | 0.053215 | 0.079823 | 0.146341 | 0.146341 | 0.146341 | 0.146341 | 0 | 0 | 0 | 0.031955 | 0.225619 | 687 | 24 | 54 | 28.625 | 0.815789 | 0.056769 | 0 | 0.133333 | 0 | 0 | 0.029968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5130695836f69d3767c643d9186227a5de4c2625 | 1,388 | py | Python | Scripts/simulation/sims/university/university_enums.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/sims/university/university_enums.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/sims/university/university_enums.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\sims\university\university_enums.py
# Compiled at: 2019-08-26 20:01:13
# Size of source mod 2**32: 4... | 21.030303 | 107 | 0.680115 | 184 | 1,388 | 5.076087 | 0.548913 | 0.052463 | 0.047109 | 0.051392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095014 | 0.23415 | 1,388 | 66 | 108 | 21.030303 | 0.783631 | 0.228386 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5132a18e10327c76ac7e1f41f76399315fe8da2f | 2,995 | py | Python | customize_notifications/customize-notifications.py | renjunok/customize-notifications-python-sdk | 759d9bee278595e6f800451648301564a250e3ab | [
"MIT"
] | null | null | null | customize_notifications/customize-notifications.py | renjunok/customize-notifications-python-sdk | 759d9bee278595e6f800451648301564a250e3ab | [
"MIT"
] | null | null | null | customize_notifications/customize-notifications.py | renjunok/customize-notifications-python-sdk | 759d9bee278595e6f800451648301564a250e3ab | [
"MIT"
] | null | null | null | import random
import time
import json
import hashlib
import requests
def generateNonceStr():
return "".join(random.sample('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 16))
# def change_type(byte):
# if isinstance(byte, bytes):
# return str(byte, encoding="utf-8")
# return js... | 32.554348 | 117 | 0.573289 | 346 | 2,995 | 4.815029 | 0.315029 | 0.063025 | 0.092437 | 0.042017 | 0.123649 | 0.040816 | 0.040816 | 0 | 0 | 0 | 0 | 0.016256 | 0.281135 | 2,995 | 91 | 118 | 32.912088 | 0.757548 | 0.05576 | 0 | 0.0625 | 1 | 0 | 0.144275 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.078125 | 0.015625 | 0.265625 | 0.046875 | 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 |
51337874245c3ee667e619871bcb80cf5b620260 | 8,865 | py | Python | dashboard_viewer/uploader/models.py | EHDEN/NetworkDashboards | 8f67debe0e62606c1067eea8f27f2935242c62b4 | [
"MIT"
] | 4 | 2021-05-24T15:12:44.000Z | 2022-03-13T11:51:36.000Z | dashboard_viewer/uploader/models.py | EHDEN/NetworkDashboards | 8f67debe0e62606c1067eea8f27f2935242c62b4 | [
"MIT"
] | 111 | 2020-07-27T14:48:31.000Z | 2022-01-06T17:40:11.000Z | dashboard_viewer/uploader/models.py | EHDEN/NetworkDashboards | 8f67debe0e62606c1067eea8f27f2935242c62b4 | [
"MIT"
] | null | null | null | import datetime
import json
import os
import pathlib
import uuid
from django.conf import settings
from django.db import models
from django_celery_results.models import TaskResult
class Country(models.Model):
class Meta:
db_table = "country"
ordering = ("country",)
country = models.CharField(... | 32.95539 | 118 | 0.676593 | 1,087 | 8,865 | 5.308188 | 0.24011 | 0.054073 | 0.072097 | 0.058232 | 0.493241 | 0.481802 | 0.45078 | 0.421837 | 0.368977 | 0.331369 | 0 | 0.010935 | 0.226283 | 8,865 | 268 | 119 | 33.078358 | 0.830296 | 0.052002 | 0 | 0.422535 | 0 | 0 | 0.135274 | 0.013003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.037559 | 0.046948 | 0.577465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51341e2322007046ce7610e475fc608433c5d8ed | 439 | py | Python | write_new_table.py | Cassiel60/python | 3f451e398a8705a5859d347d5fcdcfd9a5671e1c | [
"MIT"
] | null | null | null | write_new_table.py | Cassiel60/python | 3f451e398a8705a5859d347d5fcdcfd9a5671e1c | [
"MIT"
] | null | null | null | write_new_table.py | Cassiel60/python | 3f451e398a8705a5859d347d5fcdcfd9a5671e1c | [
"MIT"
] | 1 | 2019-12-19T00:34:02.000Z | 2019-12-19T00:34:02.000Z | import sys
import pandas as pd
varFil = sys.argv[1]
df = pd.read_csv(varFil, header=0, sep='\t')
print len(df)
df_new = df[df['Allele Call'].isin(['Heterozygous', 'Homozygous'])]
print len(df_new)
df_res = df_new[df_new['Allele Cov'] >= 30]
print len(df_res)
df_res.to_csv('output.xls', index=False, header=True, s... | 21.95 | 67 | 0.697039 | 75 | 439 | 3.933333 | 0.52 | 0.067797 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012853 | 0.113895 | 439 | 20 | 68 | 21.95 | 0.745501 | 0 | 0 | 0 | 0 | 0 | 0.179545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
513560c2982f0246b4627dd184d69ec56e1a83d4 | 1,583 | py | Python | challenges/repeated_word/test_repeated_word.py | nastinsk/python-data-structures-and-algorithms | 505b26a70fb846f6e9d0681bbe4f77e3797acf2d | [
"MIT"
] | null | null | null | challenges/repeated_word/test_repeated_word.py | nastinsk/python-data-structures-and-algorithms | 505b26a70fb846f6e9d0681bbe4f77e3797acf2d | [
"MIT"
] | null | null | null | challenges/repeated_word/test_repeated_word.py | nastinsk/python-data-structures-and-algorithms | 505b26a70fb846f6e9d0681bbe4f77e3797acf2d | [
"MIT"
] | 3 | 2020-05-31T03:25:49.000Z | 2020-12-05T21:03:13.000Z | from repeated_word import find_first_repeat
import pytest
def test_regular_str():
text = "Once upon a time, there was a brave princess who..."
assert find_first_repeat(text) == "a"
def test_bigger_different_case():
text = "It was the best of times, it was the worst of times, it was the age of wisdom, it w... | 45.228571 | 628 | 0.721415 | 265 | 1,583 | 4.184906 | 0.456604 | 0.049594 | 0.072137 | 0.119928 | 0.338142 | 0.090171 | 0.090171 | 0.090171 | 0.090171 | 0 | 0 | 0.002364 | 0.198358 | 1,583 | 34 | 629 | 46.558824 | 0.870764 | 0 | 0 | 0.16 | 0 | 0.08 | 0.541429 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.28 | false | 0 | 0.08 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
513799080335e27a87d9d53d12c63255df8de4ad | 1,369 | py | Python | study/day01_spider/03_urllib2_useragentlist.py | Youngfellows/HPython2-Spider | 24e51e81f926b5c5dbc1c9f1cc87050e733d376c | [
"Apache-2.0"
] | null | null | null | study/day01_spider/03_urllib2_useragentlist.py | Youngfellows/HPython2-Spider | 24e51e81f926b5c5dbc1c9f1cc87050e733d376c | [
"Apache-2.0"
] | null | null | null | study/day01_spider/03_urllib2_useragentlist.py | Youngfellows/HPython2-Spider | 24e51e81f926b5c5dbc1c9f1cc87050e733d376c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import urllib2
import random
url = "http://www.baidu.com/"
# 可以是User-Agent列表,也可以是代理列表
ua_list = [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (Windows NT 6.1; rv2.0.1) Gecko/20100101 Firefox/4.0.1",
"Opera/9.80 (Macintosh; Int... | 28.520833 | 125 | 0.699781 | 207 | 1,369 | 4.550725 | 0.468599 | 0.047771 | 0.028662 | 0.06051 | 0.203822 | 0.203822 | 0.203822 | 0.178344 | 0.178344 | 0 | 0 | 0.08643 | 0.154858 | 1,369 | 47 | 126 | 29.12766 | 0.727744 | 0.230825 | 0 | 0 | 0 | 0.217391 | 0.514602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
513879b46eed9121763c814ec735a00ff6dc4b80 | 60,220 | py | Python | skills.py | chombatant/python-kik-chatbot | 9f5d966378df683efed6f3d74eafded150b2579b | [
"MIT"
] | 1 | 2021-11-19T02:20:50.000Z | 2021-11-19T02:20:50.000Z | skills.py | chombatant/python-kik-chatbot | 9f5d966378df683efed6f3d74eafded150b2579b | [
"MIT"
] | null | null | null | skills.py | chombatant/python-kik-chatbot | 9f5d966378df683efed6f3d74eafded150b2579b | [
"MIT"
] | 1 | 2018-04-13T14:11:14.000Z | 2018-04-13T14:11:14.000Z | import re
import regex as re2
from regex import sub as sub2
from collections import defaultdict
from datetime import datetime
from ngrams.ngrams import corrections, Pw
import nltk
# ===========================================================================================
# # ... | 30.352823 | 143 | 0.410628 | 6,096 | 60,220 | 3.968504 | 0.17126 | 0.020337 | 0.020461 | 0.025628 | 0.365989 | 0.302207 | 0.259631 | 0.202546 | 0.171999 | 0.141162 | 0 | 0.002418 | 0.382033 | 60,220 | 1,983 | 144 | 30.368129 | 0.647659 | 0.202873 | 0 | 0.264706 | 0 | 0.009576 | 0.327491 | 0.039282 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005472 | null | null | 0.002736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
513d10cc8c7e94f6157cf7b1bc732ab90ec7a284 | 11,967 | py | Python | utils/scripts/debug/data_utils.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | 31 | 2018-03-06T09:30:03.000Z | 2022-03-23T09:51:05.000Z | utils/scripts/debug/data_utils.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | 3 | 2020-08-28T17:16:50.000Z | 2021-11-11T21:58:02.000Z | utils/scripts/debug/data_utils.py | eflows4hpc/compss | c497f6d34722103c6c8f83ebc314b495573ce054 | [
"Apache-2.0"
] | 15 | 2018-06-07T10:03:27.000Z | 2022-02-23T14:59:42.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# For better print formatting
from __future__ import print_function
# Imports
from abc import abstractmethod
from enum import Enum
class Version:
def __init__(self, data, version_id, timestamp):
self._data = data
self._id = version_id
self._pro... | 30.296203 | 112 | 0.637587 | 1,423 | 11,967 | 5.085032 | 0.090654 | 0.050166 | 0.032338 | 0.033168 | 0.576423 | 0.518519 | 0.478579 | 0.466833 | 0.439193 | 0.397181 | 0 | 0.001718 | 0.270577 | 11,967 | 394 | 113 | 30.373096 | 0.827243 | 0.013955 | 0 | 0.513514 | 0 | 0 | 0.036886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.013514 | 0.010135 | 0.074324 | 0.469595 | 0.010135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5143a930ff33b9a0eb7adad59c1687c5c52a46b5 | 833 | py | Python | conduit_ui_tests/sign_in/signin_steps.py | dduleba/tw2019-ui-tests | 5f149c6c2bdb9f2d69a02c038248374f6b0b5903 | [
"MIT"
] | 1 | 2019-09-27T23:12:07.000Z | 2019-09-27T23:12:07.000Z | conduit_ui_tests/sign_in/signin_steps.py | dduleba/conduit-tests | 5f149c6c2bdb9f2d69a02c038248374f6b0b5903 | [
"MIT"
] | null | null | null | conduit_ui_tests/sign_in/signin_steps.py | dduleba/conduit-tests | 5f149c6c2bdb9f2d69a02c038248374f6b0b5903 | [
"MIT"
] | null | null | null | from radish import steps, after
from radish_selenium.radish.selenium_base_steps import attach_screenshot_on_failure, \
attach_page_source_on_failure, attach_console_log_on_failure, close_web_browser
# from realworld_ui.sdk.page_objects.general import LoggedPageObject
from conduit_rest.radish.conduit_rest_steps imp... | 25.242424 | 86 | 0.836735 | 107 | 833 | 6.140187 | 0.373832 | 0.09589 | 0.079148 | 0.086758 | 0.152207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108043 | 833 | 32 | 87 | 26.03125 | 0.884253 | 0.079232 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.136364 | 0.181818 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
514938d6e5f155ccafb92cff10d67e8a7f542275 | 4,528 | py | Python | torchvision/prototype/datasets/_builtin/cifar.py | yassineAlouini/vision-1 | ee26e9c260a255e2afb5e691e713349529170c8b | [
"BSD-3-Clause"
] | 1 | 2022-02-14T09:16:02.000Z | 2022-02-14T09:16:02.000Z | torchvision/prototype/datasets/_builtin/cifar.py | yassineAlouini/vision-1 | ee26e9c260a255e2afb5e691e713349529170c8b | [
"BSD-3-Clause"
] | null | null | null | torchvision/prototype/datasets/_builtin/cifar.py | yassineAlouini/vision-1 | ee26e9c260a255e2afb5e691e713349529170c8b | [
"BSD-3-Clause"
] | null | null | null | import abc
import io
import pathlib
import pickle
from typing import Any, Dict, List, Optional, Tuple, Iterator, cast, BinaryIO, Union
import numpy as np
from torchdata.datapipes.iter import (
IterDataPipe,
Filter,
Mapper,
)
from torchvision.prototype.datasets.utils import Dataset, HttpResource, OnlineReso... | 31.444444 | 91 | 0.662323 | 540 | 4,528 | 5.266667 | 0.251852 | 0.018987 | 0.024613 | 0.022504 | 0.214135 | 0.158579 | 0.150141 | 0.150141 | 0.139944 | 0.139944 | 0 | 0.043295 | 0.214443 | 4,528 | 143 | 92 | 31.664336 | 0.756255 | 0.026281 | 0 | 0.055556 | 0 | 0 | 0.091138 | 0.039516 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12963 | false | 0.009259 | 0.101852 | 0.037037 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
515e6016ab981fef14aba771dd1e8745df2000d2 | 24,147 | py | Python | libspn/tests/test_partition.py | pronobis/libspn | b98141ea5a609a02706433220758e58f46bd3f5e | [
"MIT"
] | 22 | 2019-03-01T15:58:20.000Z | 2022-02-18T10:32:04.000Z | libspn/tests/test_partition.py | pronobis/libspn | b98141ea5a609a02706433220758e58f46bd3f5e | [
"MIT"
] | 10 | 2019-03-03T18:15:24.000Z | 2021-05-04T09:02:55.000Z | libspn/tests/test_partition.py | pronobis/libspn | b98141ea5a609a02706433220758e58f46bd3f5e | [
"MIT"
] | 8 | 2019-03-22T20:45:20.000Z | 2021-05-03T13:22:09.000Z | #!/usr/bin/env python3
from context import libspn as spn
from test import TestCase
import numpy as np
import random
import tensorflow as tf
def assert_list_elements_equal(list1, list2):
"""Check if lists have the same elements."""
for l1 in list1:
if l1 not in list2:
raise AssertionError(... | 48.487952 | 92 | 0.44755 | 2,623 | 24,147 | 3.981319 | 0.091498 | 0.01264 | 0.013215 | 0.012257 | 0.766638 | 0.715312 | 0.638131 | 0.60835 | 0.534042 | 0.468735 | 0 | 0.094331 | 0.423572 | 24,147 | 497 | 93 | 48.585513 | 0.655938 | 0.091399 | 0 | 0.464467 | 0 | 0 | 0.001746 | 0 | 0 | 0 | 0 | 0 | 0.192893 | 1 | 0.055838 | false | 0 | 0.015228 | 0 | 0.076142 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
515ff9d70a03bd916a813d03ff79f40b0a4d32a2 | 358 | py | Python | dist/snippets/maps_http_places_textsearch_incomplete_address/maps_http_places_textsearch_incomplete_address.py | Mike-Tran/openapi-specification | 3cbe1afa3539143943538b51a49fa621a3a3ab66 | [
"Apache-2.0"
] | 37 | 2021-05-01T20:55:14.000Z | 2022-03-28T12:35:20.000Z | dist/snippets/maps_http_places_textsearch_incomplete_address/maps_http_places_textsearch_incomplete_address.py | Mike-Tran/openapi-specification | 3cbe1afa3539143943538b51a49fa621a3a3ab66 | [
"Apache-2.0"
] | 244 | 2021-03-16T00:07:42.000Z | 2022-03-29T17:21:42.000Z | dist/snippets/maps_http_places_textsearch_incomplete_address/maps_http_places_textsearch_incomplete_address.py | Mike-Tran/openapi-specification | 3cbe1afa3539143943538b51a49fa621a3a3ab66 | [
"Apache-2.0"
] | 28 | 2021-05-03T02:41:49.000Z | 2022-03-31T12:07:52.000Z | # [START maps_http_places_textsearch_incomplete_address]
import requests
url = "https://maps.googleapis.com/maps/api/place/textsearch/json?query=123%20main%20street&key=YOUR_API_KEY"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
# [END maps_http... | 27.538462 | 109 | 0.801676 | 48 | 358 | 5.729167 | 0.645833 | 0.058182 | 0.101818 | 0.174545 | 0.298182 | 0.298182 | 0 | 0 | 0 | 0 | 0 | 0.021084 | 0.072626 | 358 | 13 | 110 | 27.538462 | 0.807229 | 0.298883 | 0 | 0 | 0 | 0.166667 | 0.417671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
516363767adb5e46529c4c8a6d02a33469f596dd | 2,681 | py | Python | main.py | cmungall/ontology-term-usage | 8fcb42cb95d45db4bb6b1589293bcea019113326 | [
"CC0-1.0"
] | 2 | 2021-11-11T08:32:42.000Z | 2021-12-07T22:06:20.000Z | main.py | cmungall/ontology-term-usage | 8fcb42cb95d45db4bb6b1589293bcea019113326 | [
"CC0-1.0"
] | 1 | 2021-11-11T02:58:37.000Z | 2021-11-11T02:58:37.000Z | main.py | cmungall/ontology-term-usage | 8fcb42cb95d45db4bb6b1589293bcea019113326 | [
"CC0-1.0"
] | null | null | null | # TODO: figure out how to put this in the app/ folder and still use serverless
# This line: `handler: main.handler`
# How do we specify a path here, as per uvicorn?
import os
from enum import Enum
from typing import Optional
from pydantic import BaseModel
from fastapi import FastAPI, Query
# for lambda; see https://... | 31.541176 | 112 | 0.666915 | 323 | 2,681 | 5.501548 | 0.47678 | 0.030388 | 0.038267 | 0.0287 | 0.110298 | 0.110298 | 0.110298 | 0.110298 | 0.086663 | 0.086663 | 0 | 0.006724 | 0.223424 | 2,681 | 85 | 113 | 31.541176 | 0.846782 | 0.099217 | 0 | 0.132075 | 0 | 0 | 0.372491 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
516366f3ce6321c828167d27328552506084f971 | 881 | py | Python | migrations/versions/0035.py | NewAcropolis/api | 61ffe14cb64407ffe1f58d0e970703bf07d60ea3 | [
"MIT"
] | 1 | 2018-10-12T15:04:31.000Z | 2018-10-12T15:04:31.000Z | migrations/versions/0035.py | NewAcropolis/api | 61ffe14cb64407ffe1f58d0e970703bf07d60ea3 | [
"MIT"
] | 169 | 2017-11-07T00:45:25.000Z | 2022-03-12T00:08:59.000Z | migrations/versions/0035.py | NewAcropolis/api | 61ffe14cb64407ffe1f58d0e970703bf07d60ea3 | [
"MIT"
] | 1 | 2019-08-15T14:51:31.000Z | 2019-08-15T14:51:31.000Z | """empty message
Revision ID: 0035 add basic email template
Revises: 0034 add send_after to emails
Create Date: 2019-10-30 00:01:13.441215
"""
# revision identifiers, used by Alembic.
revision = '0035 add basic email template'
down_revision = '0034 add send_after to emails'
from alembic import op
import sqlalchemy ... | 25.171429 | 87 | 0.702611 | 132 | 881 | 4.568182 | 0.530303 | 0.13267 | 0.039801 | 0.056385 | 0.162521 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0.059593 | 0.219069 | 881 | 34 | 88 | 25.911765 | 0.81686 | 0.284904 | 0 | 0 | 0 | 0 | 0.228663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.235294 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51693d983dbdb9e8a3c0e6a2b046c58c72c14680 | 2,263 | py | Python | setup.py | cowanml/samplemangler | cd2b772beb74cf5d2106cd67e74e95ebafc74735 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cowanml/samplemangler | cd2b772beb74cf5d2106cd67e74e95ebafc74735 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cowanml/samplemangler | cd2b772beb74cf5d2106cd67e74e95ebafc74735 | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
import glob
import io
import re
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from setuptools import find_packages
from setuptools import setup
def read(*names, **kwargs):
return io.open(
join(dirname(__file__), *n... | 31.430556 | 113 | 0.604507 | 250 | 2,263 | 5.376 | 0.568 | 0.113095 | 0.14881 | 0.047619 | 0.040179 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016657 | 0.230667 | 2,263 | 71 | 114 | 31.873239 | 0.755313 | 0.185594 | 0 | 0.053571 | 0 | 0 | 0.407104 | 0.014754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | true | 0 | 0.160714 | 0.017857 | 0.196429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
516adb054f9d8040e8884b18e04338d797104ab6 | 291 | py | Python | Mundo 1/ex030.py | judigunkel/judi-exercicios-python | c61bb75b1ae6141defcf42214194e141a70af15d | [
"MIT"
] | null | null | null | Mundo 1/ex030.py | judigunkel/judi-exercicios-python | c61bb75b1ae6141defcf42214194e141a70af15d | [
"MIT"
] | null | null | null | Mundo 1/ex030.py | judigunkel/judi-exercicios-python | c61bb75b1ae6141defcf42214194e141a70af15d | [
"MIT"
] | 1 | 2021-03-06T02:41:36.000Z | 2021-03-06T02:41:36.000Z | """
30 - Crie um programa que leia um número inteiro qualquer e mostre na tela se
ele é par ou ímpar
"""
num = int(input('\033[35mDigite um número qualquer: \033[m'))
if num % 2 == 0:
print(f'O número {num} é \033[34mPAR\033[m')
else:
print(f'O número {num} é \033[34mÍMPAR\033[m.')
| 29.1 | 77 | 0.656357 | 55 | 291 | 3.472727 | 0.618182 | 0.062827 | 0.073298 | 0.136126 | 0.209424 | 0.209424 | 0.209424 | 0 | 0 | 0 | 0 | 0.118644 | 0.189003 | 291 | 9 | 78 | 32.333333 | 0.690678 | 0.329897 | 0 | 0 | 0 | 0 | 0.59893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
5a8c45b620d79f635c96d387b1c36d837c1ad948 | 978 | py | Python | scripts/pastry.py | arthurwpessoa/machine_learning | a63e4d0f1effc5ab07eedeb5664d845708edfb05 | [
"MIT"
] | 2 | 2021-03-16T16:58:29.000Z | 2021-11-08T13:05:45.000Z | scripts/pastry.py | arthurwpessoa/machine_learning | a63e4d0f1effc5ab07eedeb5664d845708edfb05 | [
"MIT"
] | null | null | null | scripts/pastry.py | arthurwpessoa/machine_learning | a63e4d0f1effc5ab07eedeb5664d845708edfb05 | [
"MIT"
] | null | null | null | # Required libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import datetime, re
#Reading pastry dataset
df = pd.read_csv('../datasets/coffee_shop/pastry.csv')
# Drops null values
df.dropna(inplace = True)
# Replaces column to remove special character
df = df.rena... | 30.5625 | 100 | 0.736196 | 145 | 978 | 4.896552 | 0.641379 | 0.033803 | 0.070423 | 0.076056 | 0.129577 | 0.129577 | 0.129577 | 0 | 0 | 0 | 0 | 0.015081 | 0.118609 | 978 | 31 | 101 | 31.548387 | 0.808585 | 0.362986 | 0 | 0 | 0 | 0 | 0.227124 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a8ce4bdcee556442797bf38719e0cd5e80d0426 | 789 | py | Python | pyexcel_io/writers/__init__.py | vinraspa/pyexcel-io | 1b4fde5b79c42c57ebed54ed94272d700c6f9317 | [
"BSD-3-Clause"
] | 52 | 2016-06-15T17:11:23.000Z | 2022-02-07T12:44:07.000Z | pyexcel_io/writers/__init__.py | vinraspa/pyexcel-io | 1b4fde5b79c42c57ebed54ed94272d700c6f9317 | [
"BSD-3-Clause"
] | 100 | 2015-12-28T17:58:50.000Z | 2022-01-29T19:48:39.000Z | pyexcel_io/writers/__init__.py | vinraspa/pyexcel-io | 1b4fde5b79c42c57ebed54ed94272d700c6f9317 | [
"BSD-3-Clause"
] | 20 | 2016-05-09T16:44:36.000Z | 2021-09-27T11:54:00.000Z | """
pyexcel_io.writers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file writers
:copyright: (c) 2014-2020 by Onni Software Ltd.
:license: New BSD License, see LICENSE for more details
"""
from pyexcel_io.plugins import IOPluginInfoChainV2
IOPluginInfoChainV2(__name__).add_a_writer(
relative_plugin_cla... | 28.178571 | 63 | 0.667934 | 92 | 789 | 5.380435 | 0.51087 | 0.024242 | 0.060606 | 0.109091 | 0.337374 | 0.337374 | 0.337374 | 0.337374 | 0.337374 | 0.250505 | 0 | 0.014925 | 0.150824 | 789 | 27 | 64 | 29.222222 | 0.723881 | 0.217997 | 0 | 0.352941 | 0 | 0 | 0.247878 | 0.132428 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a8cf7bc0cb4442c58ea3979c4ae7da99ab95e65 | 561 | py | Python | Interview-Preparation/Facebook/Parenthesis-valid-parenthesis.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | 1 | 2020-11-14T18:28:13.000Z | 2020-11-14T18:28:13.000Z | Interview-Preparation/Facebook/Parenthesis-valid-parenthesis.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | Interview-Preparation/Facebook/Parenthesis-valid-parenthesis.py | shoaibur/SWE | 1e114a2750f2df5d6c50b48c8e439224894d65da | [
"MIT"
] | null | null | null | class Solution:
def isValid(self, s: str) -> bool:
if not s: return True
if len(s) % 2: return False
if s[0] in ']})': return False
maps = {'(':')', '{':'}', '[':']'}
stack = []
for char in s:
if char in '({[':
stack.appen... | 28.05 | 42 | 0.372549 | 57 | 561 | 3.666667 | 0.438596 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.491979 | 561 | 19 | 43 | 29.526316 | 0.722807 | 0 | 0 | 0.117647 | 0 | 0 | 0.02139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.235294 | 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 |
5a966f94b9c16f0705907add44bb45e9dcfe5e10 | 2,777 | py | Python | copy_release_bin.py | AlexanderYunker1983/YBuild | ad34bb01983d2bac83cecc772efffaeba8717750 | [
"MIT"
] | null | null | null | copy_release_bin.py | AlexanderYunker1983/YBuild | ad34bb01983d2bac83cecc772efffaeba8717750 | [
"MIT"
] | null | null | null | copy_release_bin.py | AlexanderYunker1983/YBuild | ad34bb01983d2bac83cecc772efffaeba8717750 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import threading
import traceback
import sys
import os
import shutil
import zipfile
from subprocess import Popen, PIPE
from re import search
from datetime import datetime
from call_helper import CallHelper
from os.path import basename
class OtherException(Exception):
... | 29.542553 | 131 | 0.540151 | 317 | 2,777 | 4.567823 | 0.416404 | 0.033149 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007012 | 0.332373 | 2,777 | 94 | 132 | 29.542553 | 0.774002 | 0.033129 | 0 | 0.027027 | 0 | 0 | 0.136838 | 0.03915 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.148649 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5aa83b96362baef92bbabc498a99e7ddfae72bea | 421 | py | Python | wall.py | Kimeg/Raycasting-Visualization-in-3D | 77f6cc06f0d03c454fc5d8e0b98820fe6aa0f407 | [
"MIT"
] | null | null | null | wall.py | Kimeg/Raycasting-Visualization-in-3D | 77f6cc06f0d03c454fc5d8e0b98820fe6aa0f407 | [
"MIT"
] | null | null | null | wall.py | Kimeg/Raycasting-Visualization-in-3D | 77f6cc06f0d03c454fc5d8e0b98820fe6aa0f407 | [
"MIT"
] | null | null | null | from static import *
from point import Point
class Wall:
def __init__(self, x1, y1, x2, y2, color, pg, screen):
self.p1 = Point(x1, y1)
self.p2 = Point(x2, y2)
self.color = color
self.pg = pg
self.screen = screen
return
def draw(self):
self.pg.... | 24.764706 | 101 | 0.555819 | 64 | 421 | 3.59375 | 0.375 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.311164 | 421 | 16 | 102 | 26.3125 | 0.741379 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5aa86d20c6cc95191053b38a5b1e5cc77507fe57 | 1,919 | py | Python | dll_test.py | heicj/data-structures | 6a55abf7108d0a3157e372e9122b716158a22d94 | [
"MIT"
] | null | null | null | dll_test.py | heicj/data-structures | 6a55abf7108d0a3157e372e9122b716158a22d94 | [
"MIT"
] | null | null | null | dll_test.py | heicj/data-structures | 6a55abf7108d0a3157e372e9122b716158a22d94 | [
"MIT"
] | null | null | null | import unittest
from dll import Node, DoubleLinkedList
class TestIt(unittest.TestCase):
def test_1(self):
"""make a node"""
n1 = Node('A')
self.assertEqual(n1._value, 'A')
def test_2(self):
"""make a test head is set when add first node"""
n1 = Node('A')
dl = DoubleLinkedList()
dl.append(n1)
self... | 22.313953 | 74 | 0.627931 | 308 | 1,919 | 3.86039 | 0.237013 | 0.100925 | 0.047098 | 0.15307 | 0.497056 | 0.429773 | 0.407065 | 0.400336 | 0.31455 | 0.31455 | 0 | 0.028327 | 0.208963 | 1,919 | 86 | 75 | 22.313953 | 0.754941 | 0.25013 | 0 | 0.709677 | 0 | 0 | 0.018638 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.129032 | false | 0 | 0.032258 | 0 | 0.177419 | 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 |
5aa96091626ad42c5d306a62910ed2be6278004e | 2,513 | py | Python | comprobo_final_project/scripts/models/robot.py | comprobo-final-project/genetic_racer | edf5d3a6f2a99aa8138962dc880341285f73530e | [
"MIT"
] | null | null | null | comprobo_final_project/scripts/models/robot.py | comprobo-final-project/genetic_racer | edf5d3a6f2a99aa8138962dc880341285f73530e | [
"MIT"
] | null | null | null | comprobo_final_project/scripts/models/robot.py | comprobo-final-project/genetic_racer | edf5d3a6f2a99aa8138962dc880341285f73530e | [
"MIT"
] | null | null | null | #!usr/bin/env python
"""
The real world robot class which has been made modular to mirror the simulation
robot class. It connects to april tags in the real world (or Gazebo) and can run
the most fit organism in the same way as done in simulation.
"""
import rospy
import tf
import numpy as np
from geometry_msgs.msg i... | 28.235955 | 90 | 0.67688 | 337 | 2,513 | 4.89911 | 0.379822 | 0.053301 | 0.063598 | 0.069049 | 0.13083 | 0.058147 | 0.058147 | 0 | 0 | 0 | 0 | 0.006781 | 0.237167 | 2,513 | 88 | 91 | 28.556818 | 0.85446 | 0.246319 | 0 | 0.1 | 0 | 0 | 0.013065 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.175 | false | 0.05 | 0.2 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ab302ab4df0af198345e6c5a8acf2ac20fe3b00 | 10,899 | py | Python | crawler/chengdulib.py | zixinzeng-jennifer/public-culture-activity | abe908cb10407e7e4753ef541476e4267d24a1b8 | [
"CC0-1.0"
] | null | null | null | crawler/chengdulib.py | zixinzeng-jennifer/public-culture-activity | abe908cb10407e7e4753ef541476e4267d24a1b8 | [
"CC0-1.0"
] | null | null | null | crawler/chengdulib.py | zixinzeng-jennifer/public-culture-activity | abe908cb10407e7e4753ef541476e4267d24a1b8 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from bs4 import BeautifulSoup
from cultureBigdata.items import CultureNewsItem, CultureBasicItem, CultureEventItem
from selenium import webdriver
import re
import time
class ChengdulibSpider(scrapy.Spider):
name = 'chengdulib'
# 爬去机构动态所需的参数
news_u... | 44.125506 | 160 | 0.439857 | 1,134 | 10,899 | 4.119929 | 0.18254 | 0.053082 | 0.046233 | 0.030608 | 0.534461 | 0.481807 | 0.436644 | 0.376284 | 0.316139 | 0.290668 | 0 | 0.018895 | 0.300762 | 10,899 | 246 | 161 | 44.304878 | 0.592311 | 0.038352 | 0 | 0.352601 | 0 | 0.00578 | 0.182374 | 0.016793 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023121 | false | 0.057803 | 0.034682 | 0 | 0.104046 | 0.040462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ab574781671ffe46d32f9a44876e2d5bdff2e85 | 1,730 | py | Python | dev/add_images_to_db.py | johncoleman83/stamp | bc7b1ad56accdcbb8230ebbd7e5dd57ee137fc0e | [
"MIT"
] | null | null | null | dev/add_images_to_db.py | johncoleman83/stamp | bc7b1ad56accdcbb8230ebbd7e5dd57ee137fc0e | [
"MIT"
] | null | null | null | dev/add_images_to_db.py | johncoleman83/stamp | bc7b1ad56accdcbb8230ebbd7e5dd57ee137fc0e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
generates DB from Getty API
"""
import json
import models
User = models.User
Image = models.Image
storage = models.storage
def load_from_json_file(filename):
"""creates json object from file"""
with open(filename, mode='r', encoding='utf-8') as f_io:
my_dict = json.loads(f_io.re... | 26.212121 | 60 | 0.531214 | 212 | 1,730 | 4.075472 | 0.415094 | 0.092593 | 0.113426 | 0.037037 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005868 | 0.310405 | 1,730 | 65 | 61 | 26.615385 | 0.718357 | 0.054335 | 0 | 0.08 | 1 | 0 | 0.231638 | 0.130571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.02 | 0.04 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5abbbe8c4d6c302ee2b44f9009054418d7c3a84a | 228 | py | Python | src/tfNetwork/cost.py | RaymondLZhou/deep-neural-networks | 9223ae4fa78364def8cc5dcbe58be566ab33a132 | [
"MIT"
] | null | null | null | src/tfNetwork/cost.py | RaymondLZhou/deep-neural-networks | 9223ae4fa78364def8cc5dcbe58be566ab33a132 | [
"MIT"
] | null | null | null | src/tfNetwork/cost.py | RaymondLZhou/deep-neural-networks | 9223ae4fa78364def8cc5dcbe58be566ab33a132 | [
"MIT"
] | null | null | null | import tensorflow as tf
def compute_cost(Z3, Y):
logits = tf.transpose(Z3)
labels = tf.transpose(Y)
cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits = logits, labels = labels))
return cost
| 22.8 | 100 | 0.714912 | 34 | 228 | 4.617647 | 0.588235 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.184211 | 228 | 9 | 101 | 25.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
5ac23c52534d79e0dcc78d358b525334710827af | 4,665 | py | Python | wallee/models/subscription_product_version_retirement_create.py | bluedynamics/wallee-python-sdk | 7f20df96d2c3dba3b1ca5236e8deca578819eea2 | [
"Apache-2.0"
] | null | null | null | wallee/models/subscription_product_version_retirement_create.py | bluedynamics/wallee-python-sdk | 7f20df96d2c3dba3b1ca5236e8deca578819eea2 | [
"Apache-2.0"
] | null | null | null | wallee/models/subscription_product_version_retirement_create.py | bluedynamics/wallee-python-sdk | 7f20df96d2c3dba3b1ca5236e8deca578819eea2 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import pprint
import six
from enum import Enum
class SubscriptionProductVersionRetirementCreate:
swagger_types = {
'product_version': 'int',
'respect_terminiation_periods_enabled': 'bool',
'target_product': 'int',
}
attribute_map = {
'product_version... | 31.1 | 154 | 0.651661 | 437 | 4,665 | 6.649886 | 0.185355 | 0.091535 | 0.152099 | 0.193049 | 0.481762 | 0.38128 | 0.209222 | 0.163799 | 0.048176 | 0 | 0 | 0.001183 | 0.275456 | 4,665 | 149 | 155 | 31.308725 | 0.85858 | 0.261522 | 0 | 0.066667 | 0 | 0 | 0.106032 | 0.043843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.04 | 0.04 | 0.4 | 0.026667 | 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 |
5ac28b181d3a3747712ef8eeb27527de2879c03b | 2,729 | py | Python | materials_io/csv.py | jat255/MaterialsIO | 04df70eddc9d0a464f7a089cf753ce26c2adf81f | [
"Apache-2.0"
] | 10 | 2019-03-25T01:16:48.000Z | 2022-02-23T16:47:02.000Z | materials_io/csv.py | jat255/MaterialsIO | 04df70eddc9d0a464f7a089cf753ce26c2adf81f | [
"Apache-2.0"
] | 31 | 2019-02-05T22:47:44.000Z | 2022-03-25T21:50:55.000Z | materials_io/csv.py | jat255/MaterialsIO | 04df70eddc9d0a464f7a089cf753ce26c2adf81f | [
"Apache-2.0"
] | 2 | 2019-11-12T18:30:49.000Z | 2022-01-13T20:04:01.000Z | from materials_io.base import BaseSingleFileParser
from tableschema.exceptions import CastError
from tableschema import Table
from typing import List
import logging
logger = logging.getLogger(__name__)
class CSVParser(BaseSingleFileParser):
"""Reads comma-separated value (CSV) files
The context dictionary f... | 33.691358 | 95 | 0.607549 | 308 | 2,729 | 5.288961 | 0.428571 | 0.024555 | 0.031308 | 0.055249 | 0.07919 | 0.07919 | 0 | 0 | 0 | 0 | 0 | 0.004695 | 0.297545 | 2,729 | 80 | 96 | 34.1125 | 0.84507 | 0.275559 | 0 | 0 | 0 | 0 | 0.111762 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.121951 | false | 0 | 0.121951 | 0.073171 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5ac86f88e6b4493b0b7cca01a2e5799e654214bf | 436 | py | Python | renderer/plane.py | darsovit/pyRayTracerChallenge | 5ca833c3606c67c3113d91e5de0750cbfd73660d | [
"MIT"
] | 2 | 2020-05-13T20:55:23.000Z | 2020-10-26T02:54:40.000Z | renderer/plane.py | darsovit/pyRayTracerChallenge | 5ca833c3606c67c3113d91e5de0750cbfd73660d | [
"MIT"
] | null | null | null | renderer/plane.py | darsovit/pyRayTracerChallenge | 5ca833c3606c67c3113d91e5de0750cbfd73660d | [
"MIT"
] | 1 | 2020-05-15T02:18:15.000Z | 2020-05-15T02:18:15.000Z | #! python
#
#
from renderer.shape import Shape
from renderer.bolts import Vector, EPSILON
class Plane(Shape):
def LocalNormal( self, localPoint ):
return Vector( 0, 1, 0 )
def LocalIntersect(self, localRay):
if abs(localRay.Direction()[1]) < EPSILON:
return []
timeToInters... | 25.647059 | 77 | 0.635321 | 48 | 436 | 5.770833 | 0.541667 | 0.086643 | 0.129964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.229358 | 436 | 16 | 78 | 27.25 | 0.803571 | 0.018349 | 0 | 0 | 0 | 0 | 0.023529 | 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 |
5acd31e6aea73c938e33e02e7c93df12421f650e | 590 | py | Python | utils/rsa.py | vsgobbi/nfe-library | 9e35884e7a6fe83d61779fed13efb6932ff70102 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | utils/rsa.py | vsgobbi/nfe-library | 9e35884e7a6fe83d61779fed13efb6932ff70102 | [
"Python-2.0",
"OLDAP-2.7"
] | 4 | 2021-03-31T19:25:04.000Z | 2021-12-13T20:20:04.000Z | utils/rsa.py | vsgobbi/nfe-library | 9e35884e7a6fe83d61779fed13efb6932ff70102 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | from base64 import b64encode
from hashlib import sha1
from Crypto.Hash import SHA
from Crypto.Signature import PKCS1_v1_5
from Crypto.PublicKey import RSA
class Rsa:
@classmethod
def sign(cls, text, privateKeyContent):
digest = SHA.new(text)
rsaKey = RSA.importKey(privateKeyContent)
s... | 24.583333 | 49 | 0.676271 | 70 | 590 | 5.642857 | 0.428571 | 0.075949 | 0.040506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.247458 | 590 | 23 | 50 | 25.652174 | 0.853604 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ace1d6b1f8036c2d2089c4a9bc34a0d20981615 | 458 | py | Python | equipment_assigments/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | equipment_assigments/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | 7 | 2021-03-19T03:09:53.000Z | 2022-01-13T02:48:44.000Z | equipment_assigments/models.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | from django.db import models
'''
Equipment_Assigment
id_user (FK)
id_equipment (FK)
'''
class Equipment_Assigment(models.Model):
'''
id_user = models.ForeignKey(
'Users.User',
on_delete = models.CASCADE,
null = False,
blank = False
)
'''
id_equipment = models.ForeignKe... | 15.266667 | 40 | 0.572052 | 46 | 458 | 5.521739 | 0.456522 | 0.141732 | 0.110236 | 0.165354 | 0.314961 | 0.314961 | 0.314961 | 0.314961 | 0 | 0 | 0 | 0 | 0.320961 | 458 | 29 | 41 | 15.793103 | 0.81672 | 0.253275 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 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 |
5adb9f347a688298339e2ea270f8f53c573156cb | 473 | py | Python | django_basics/logging.py | pinehq/django_basics | fae7f66ece3f8b4c3e6f24ca461622a2dd44d586 | [
"MIT"
] | null | null | null | django_basics/logging.py | pinehq/django_basics | fae7f66ece3f8b4c3e6f24ca461622a2dd44d586 | [
"MIT"
] | null | null | null | django_basics/logging.py | pinehq/django_basics | fae7f66ece3f8b4c3e6f24ca461622a2dd44d586 | [
"MIT"
] | null | null | null | from logging import StreamHandler
from ipware import get_client_ip
class EnhancedStreamHandler(StreamHandler, object):
def emit(self, record):
record.ip = ''
record.email = ''
try:
request = record.args[0]
record.ip, _ = get_client_ip(request)
record.a... | 24.894737 | 55 | 0.602537 | 49 | 473 | 5.714286 | 0.530612 | 0.064286 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.312896 | 473 | 18 | 56 | 26.277778 | 0.858462 | 0.008457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5adef8da9843a5dde1a9faa4f8073df12522f1a0 | 4,048 | py | Python | invoicer/_login/__init__.py | mtik00/invoicer | 6128202ca86823dc998b8ea661050702544b9b21 | [
"MIT"
] | null | null | null | invoicer/_login/__init__.py | mtik00/invoicer | 6128202ca86823dc998b8ea661050702544b9b21 | [
"MIT"
] | 1 | 2021-08-04T23:32:15.000Z | 2021-08-04T23:32:15.000Z | invoicer/_login/__init__.py | mtik00/invoicer | 6128202ca86823dc998b8ea661050702544b9b21 | [
"MIT"
] | null | null | null | from flask import (
Blueprint, render_template, request, flash, redirect, url_for, session)
from flask_login import login_user, logout_user, login_required, current_user
from ..common import is_safe_url
from ..password import verify_password, hash_password
from ..models import User
from ..logger import AUTH_LOG
f... | 32.384 | 107 | 0.661314 | 518 | 4,048 | 4.959459 | 0.249035 | 0.024523 | 0.035033 | 0.046711 | 0.151032 | 0.092643 | 0.082522 | 0.047489 | 0.047489 | 0.047489 | 0 | 0.012424 | 0.224555 | 4,048 | 124 | 108 | 32.645161 | 0.805989 | 0.025939 | 0 | 0.044444 | 0 | 0 | 0.123889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.088889 | 0.088889 | 0 | 0.288889 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5adfe79ab6406cab06a4c7ac22f823c3c4c4d29e | 1,003 | py | Python | tests/api/mocks.py | gmos2104/poke-query | 7c44805cdcffc75d4e075c61ece07b92028a1a3f | [
"MIT"
] | null | null | null | tests/api/mocks.py | gmos2104/poke-query | 7c44805cdcffc75d4e075c61ece07b92028a1a3f | [
"MIT"
] | null | null | null | tests/api/mocks.py | gmos2104/poke-query | 7c44805cdcffc75d4e075c61ece07b92028a1a3f | [
"MIT"
] | null | null | null | class MockRequests:
def __init__(self, ok=True, json_data=None):
self.ok = ok
self.json_data = json_data
self.get_method_called = False
def __call__(self, *args, **kwargs):
self.get_method_called = True
self.response = MockResponse(json_data=self.json_data)
retur... | 25.717949 | 62 | 0.639083 | 133 | 1,003 | 4.451128 | 0.165414 | 0.121622 | 0.081081 | 0.128378 | 0.527027 | 0.371622 | 0.277027 | 0.277027 | 0.152027 | 0.152027 | 0 | 0 | 0.269192 | 1,003 | 38 | 63 | 26.394737 | 0.80764 | 0 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0 | 0.034483 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ae22ad84a9e479681fb10a82237a423fd3d12b8 | 3,899 | py | Python | safenotes/displayer.py | Guilherme-Vasconcelos/safenotes | 8c49c3c0cad5c4596524933af6fc378b0c548200 | [
"MIT"
] | 1 | 2020-12-22T17:31:52.000Z | 2020-12-22T17:31:52.000Z | safenotes/displayer.py | Guilherme-Vasconcelos/safenotes | 8c49c3c0cad5c4596524933af6fc378b0c548200 | [
"MIT"
] | 22 | 2020-12-22T17:30:17.000Z | 2020-12-28T08:21:35.000Z | safenotes/displayer.py | Guilherme-Vasconcelos/safenotes | 8c49c3c0cad5c4596524933af6fc378b0c548200 | [
"MIT"
] | null | null | null | from safenotes.helpers import display_colored_text
from safenotes.colors import red, blue
from typing import Callable, Dict
from os import system
from sys import exit
import safenotes.files_accessor as files_accessor
import questionary
class Displayer:
"""
Class for displaying all notes, handling user action... | 38.60396 | 108 | 0.65504 | 508 | 3,899 | 4.78937 | 0.281496 | 0.069462 | 0.04439 | 0.045212 | 0.260173 | 0.230169 | 0.164406 | 0.122072 | 0.10522 | 0.10522 | 0 | 0 | 0.255194 | 3,899 | 100 | 109 | 38.99 | 0.83781 | 0.173891 | 0 | 0.242857 | 0 | 0 | 0.0851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128571 | false | 0.085714 | 0.1 | 0 | 0.242857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ae9d6a1998998f21d0ccfebf209ef91da6c751f | 359 | py | Python | template/src/handlers/common.py | zhkzyth/storm_maker | 01e90742fb6aacc139cd94f6ea01fa7795ef5204 | [
"MIT"
] | null | null | null | template/src/handlers/common.py | zhkzyth/storm_maker | 01e90742fb6aacc139cd94f6ea01fa7795ef5204 | [
"MIT"
] | null | null | null | template/src/handlers/common.py | zhkzyth/storm_maker | 01e90742fb6aacc139cd94f6ea01fa7795ef5204 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
from base import BaseHandler
class Better404Handler(BaseHandler):
def _write_404(self):
self.send_response(
None,
error_code=-1,
error_msg='The api does not exist.'
)
def get(self):
self._write_404()
def... | 17.95 | 47 | 0.582173 | 44 | 359 | 4.545455 | 0.704545 | 0.12 | 0.13 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0.314763 | 359 | 19 | 48 | 18.894737 | 0.756098 | 0.100279 | 0 | 0.166667 | 0 | 0 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5aecb77655ae47aa329aff75bb06156a664a0045 | 809 | py | Python | pepper/urls.py | GeekyShacklebolt/pepper | 3952c1e21a39e0e9caa5e2b0d564a2b6dfdf7606 | [
"MIT"
] | null | null | null | pepper/urls.py | GeekyShacklebolt/pepper | 3952c1e21a39e0e9caa5e2b0d564a2b6dfdf7606 | [
"MIT"
] | 10 | 2019-07-22T11:08:22.000Z | 2022-02-10T07:51:06.000Z | pepper/urls.py | GeekyShacklebolt/pepper | 3952c1e21a39e0e9caa5e2b0d564a2b6dfdf7606 | [
"MIT"
] | 1 | 2019-07-08T17:59:52.000Z | 2019-07-08T17:59:52.000Z | # Third party imports
from django.conf.urls import url, include
from rest_framework import routers
from django.contrib import admin
# Pepper imports
from pepper.facebook.api import UserViewSet, GroupViewSet
# Relative imports
from . import api_urls
# Default user and group routers
router = routers.DefaultRouter()
ro... | 26.096774 | 75 | 0.733004 | 109 | 809 | 5.40367 | 0.504587 | 0.056027 | 0.050934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159456 | 809 | 30 | 76 | 26.966667 | 0.866176 | 0.326329 | 0 | 0 | 0 | 0 | 0.108411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5af85a8ed082740f9c81032bd87835377b4b926e | 4,137 | py | Python | src/main/app-resources/data_download_publish/hist_skip_no_zero.py | geohazards-tep/dcs-rss-fullres-mm-data-browser | daaaa1b9e458b2deedfa9383173a5b724e77a6b7 | [
"Apache-2.0"
] | null | null | null | src/main/app-resources/data_download_publish/hist_skip_no_zero.py | geohazards-tep/dcs-rss-fullres-mm-data-browser | daaaa1b9e458b2deedfa9383173a5b724e77a6b7 | [
"Apache-2.0"
] | null | null | null | src/main/app-resources/data_download_publish/hist_skip_no_zero.py | geohazards-tep/dcs-rss-fullres-mm-data-browser | daaaa1b9e458b2deedfa9383173a5b724e77a6b7 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import gdal, gdalconst
import os
# See http://www.gdal.org/classVRTRasterBand.html#a155a54960c422941d3d5c2853c6c7cef
def hist_skip(inFname, bandIndex, percentileMin, percentileMax, outFname, nbuckets=1000):
"""
Given a filename, finds approximate percentile values and provides the
gdal_transla... | 41.787879 | 213 | 0.701233 | 586 | 4,137 | 4.906143 | 0.372014 | 0.014609 | 0.01113 | 0.007304 | 0.201739 | 0.201739 | 0.201739 | 0.201739 | 0.201739 | 0.201739 | 0 | 0.031222 | 0.179357 | 4,137 | 98 | 214 | 42.214286 | 0.815611 | 0.175973 | 0 | 0.27451 | 0 | 0.019608 | 0.234477 | 0.01157 | 0.019608 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5aff1baa18ae5ed95e1d9b0372e653977030aa2f | 285 | py | Python | test/test_skunit.py | Hsuxu/vnet_attention | 6958932f3974d268e93bd6443369a3f43c497ed3 | [
"MIT"
] | 45 | 2018-11-05T10:59:19.000Z | 2021-12-30T15:58:10.000Z | test/test_skunit.py | Hsuxu/vnet_attention | 6958932f3974d268e93bd6443369a3f43c497ed3 | [
"MIT"
] | 2 | 2019-06-21T02:55:59.000Z | 2020-07-14T08:29:40.000Z | test/test_skunit.py | Hsuxu/vnet_attention | 6958932f3974d268e93bd6443369a3f43c497ed3 | [
"MIT"
] | 9 | 2019-01-17T11:36:53.000Z | 2021-07-06T05:01:06.000Z | import torch
import torch.nn as nn
from magic_vnet.blocks.skunit.skunit import SKConv3d, SK_Block
if __name__ == '__main__':
down = torch.rand((1, 64, 32, 32, 32))
# up = torch.rand((1, 16, 64, 64, 64))
model = SK_Block(64, 64)
out = model(down)
print(out.shape)
| 23.75 | 62 | 0.645614 | 47 | 285 | 3.680851 | 0.553191 | 0.069364 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102222 | 0.210526 | 285 | 11 | 63 | 25.909091 | 0.666667 | 0.126316 | 0 | 0 | 0 | 0 | 0.032389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5aff4af7e6263480bbafe9f470c613941cd21707 | 5,590 | py | Python | apps/scraper/bing_api.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | 1 | 2022-02-15T14:03:10.000Z | 2022-02-15T14:03:10.000Z | apps/scraper/bing_api.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | apps/scraper/bing_api.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | #script to scraper bing api
#include libs
import sys
sys.path.insert(0, '..')
from include import *
def generate_scraping_job(query, scraper):
query_string = query[1]
query_id = query[4]
study_id = query[0]
search_engine = scraper
result_pages = 20
number_multi = 50
check_jobs = Scrapers... | 31.942857 | 193 | 0.569946 | 602 | 5,590 | 5.069767 | 0.237542 | 0.038991 | 0.042595 | 0.03211 | 0.239187 | 0.228702 | 0.183159 | 0.114024 | 0.070118 | 0.056356 | 0 | 0.02596 | 0.324687 | 5,590 | 174 | 194 | 32.126437 | 0.782517 | 0.023792 | 0 | 0.072727 | 1 | 0 | 0.068757 | 0.010451 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0.018182 | false | 0 | 0.018182 | 0 | 0.036364 | 0.027273 | 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 |
850520991795398bea7333efd1e1838193a82e7a | 802 | py | Python | python/problem17b.py | jreese/euler | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | [
"MIT"
] | 1 | 2015-12-19T09:59:39.000Z | 2015-12-19T09:59:39.000Z | python/problem17b.py | jreese/euler | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | [
"MIT"
] | null | null | null | python/problem17b.py | jreese/euler | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | [
"MIT"
] | null | null | null |
onetonine = len("onetwothreefourfivesixseveneightnine")
onetoten = onetonine + len("ten")
eleventotwenty = len("eleventwelvethirteenfourteenfifteensixteenseventeeneighteennineteen")
twenties = len("twenty")*10 + onetonine
thirties = len("thirty")*10 + onetonine
forties = len("forty")*10 + onetonine
fifties = len("fift... | 36.454545 | 121 | 0.739401 | 80 | 802 | 7.4125 | 0.4125 | 0.166948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035817 | 0.129676 | 802 | 21 | 122 | 38.190476 | 0.813754 | 0 | 0 | 0 | 0 | 0 | 0.225 | 0.12875 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
850664af9ae52cf04b067165f2ed6e6601361122 | 725 | py | Python | web_applications/social_network/blog/signals.py | Had96dad/Python | 9b5cdf0a18fdb195abb8ed9861ff471d6dacde1b | [
"MIT"
] | null | null | null | web_applications/social_network/blog/signals.py | Had96dad/Python | 9b5cdf0a18fdb195abb8ed9861ff471d6dacde1b | [
"MIT"
] | null | null | null | web_applications/social_network/blog/signals.py | Had96dad/Python | 9b5cdf0a18fdb195abb8ed9861ff471d6dacde1b | [
"MIT"
] | null | null | null | from django.dispatch import receiver
from django.utils.text import slugify
from django.db.models.signals import post_delete, pre_save
from blog.models import *
def category_create(sender, instance, **kwargs):
instance.name = instance.name.lower()
pre_save.connect(category_create, sender=Category)
# Create Sl... | 26.851852 | 116 | 0.755862 | 100 | 725 | 5.36 | 0.41 | 0.089552 | 0.074627 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133793 | 725 | 26 | 117 | 27.884615 | 0.853503 | 0.070345 | 0 | 0 | 0 | 0 | 0.002976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85145f85900cfbb884381ee42e38fa0f4eb6fe68 | 3,323 | py | Python | urllib2demo/test17_HTTPError_URLError.py | liang1024/CrawlerDemo | f9b93d062477ff96c31decc600f35e2dc84d27e4 | [
"Apache-2.0"
] | null | null | null | urllib2demo/test17_HTTPError_URLError.py | liang1024/CrawlerDemo | f9b93d062477ff96c31decc600f35e2dc84d27e4 | [
"Apache-2.0"
] | null | null | null | urllib2demo/test17_HTTPError_URLError.py | liang1024/CrawlerDemo | f9b93d062477ff96c31decc600f35e2dc84d27e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
'''
在我们用urlopen或opener.open方法发出一个请求时,
如果urlopen或opener.open不能处理这个response,就产生错误。
主要是URLError和HTTPError,以及对它们的错误处理。
URLError 产生的原因主要有:
没有网络连接
服务器连接失败
找不到指定的服务器
'''
import urllib2
requset = urllib2.Request('http://blog.baidu.com/blog')
try:
urllib2.urlopen(requset)
except urllib2.HTTPError, err:
... | 15.104545 | 95 | 0.814023 | 449 | 3,323 | 6.026726 | 0.683742 | 0.022173 | 0.02439 | 0.026608 | 0.037694 | 0.026608 | 0 | 0 | 0 | 0 | 0 | 0.109412 | 0.114355 | 3,323 | 219 | 96 | 15.173516 | 0.809718 | 0.003611 | 0 | 0 | 0 | 0 | 0.144681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8515513f03922fe11079924ffdb45f303026df94 | 4,745 | py | Python | lisn/test_match.py | Algy/tempy | 3fe3da6380628a6ab4af56e5ad738efbcb9eaedb | [
"Apache-2.0"
] | null | null | null | lisn/test_match.py | Algy/tempy | 3fe3da6380628a6ab4af56e5ad738efbcb9eaedb | [
"Apache-2.0"
] | null | null | null | lisn/test_match.py | Algy/tempy | 3fe3da6380628a6ab4af56e5ad738efbcb9eaedb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env ipython
import unittest
from clisn import loads
from match import LISNPattern
from pprint import pprint
class PatternTest(unittest.TestCase):
def test_very_basic_pattern(self):
@LISNPattern
def pat_vb(case, default):
@case
def A(res):
'''
... | 26.21547 | 72 | 0.393256 | 429 | 4,745 | 4.062937 | 0.230769 | 0.040161 | 0.056799 | 0.072289 | 0.199656 | 0.176707 | 0 | 0 | 0 | 0 | 0 | 0.008575 | 0.483878 | 4,745 | 180 | 73 | 26.361111 | 0.703144 | 0.167334 | 0 | 0.428571 | 0 | 0.011905 | 0.12233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.047619 | 0 | 0.440476 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8522e5b958846afd1515181c782873e1918b22c4 | 696 | py | Python | datahub/interaction/migrations/0075_add_trade_agreement_fields.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/interaction/migrations/0075_add_trade_agreement_fields.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/interaction/migrations/0075_add_trade_agreement_fields.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | # Generated by Django 3.1.7 on 2021-04-12 12:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('metadata', '0009_tradeagreement'),
('interaction', '0074_update_service_questions_and_answers'),
]
operations = [
migrations.AddFiel... | 27.84 | 83 | 0.630747 | 68 | 696 | 6.264706 | 0.647059 | 0.084507 | 0.107981 | 0.126761 | 0.352113 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0.044574 | 0.258621 | 696 | 24 | 84 | 29 | 0.781008 | 0.064655 | 0 | 0.333333 | 1 | 0 | 0.271186 | 0.178737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 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 |
85283b88ff00316970c14b2face4e2f43d0be40a | 5,822 | py | Python | Tools/resourceCompiler/mayaExporter/workers/skinclusterExporter.py | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | 114 | 2020-12-03T10:25:21.000Z | 2022-03-16T20:06:15.000Z | Tools/resourceCompiler/mayaExporter/workers/skinclusterExporter.py | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | null | null | null | Tools/resourceCompiler/mayaExporter/workers/skinclusterExporter.py | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | 3 | 2021-01-11T16:22:26.000Z | 2022-01-29T16:41:09.000Z | import sys
sys.path.append( "E:\\WORK_IN_PROGRESS\\C\\platfoorm\\engine\\misc\\exporters")
from maya import cmds
from maya import OpenMaya
from maya import OpenMayaAnim
import skeletonExporter
reload(skeletonExporter)
import json
MAX_INFLUENCE = 6;
def map_shadow_to_skeleton(root):
data,joints = skeletonExport... | 31.47027 | 101 | 0.614394 | 691 | 5,822 | 5.01013 | 0.286541 | 0.024263 | 0.037551 | 0.020797 | 0.281629 | 0.259676 | 0.245523 | 0.215482 | 0.185442 | 0.172733 | 0 | 0.006587 | 0.269839 | 5,822 | 184 | 102 | 31.641304 | 0.80781 | 0.07695 | 0 | 0.116071 | 0 | 0 | 0.129294 | 0.051634 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.080357 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
516d85a5a28f621b638975ffe3f7c2a1bbb06e93 | 11,468 | py | Python | venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_us_race_ethnicity_out.py | akshitgoyal/csc398nlp | 6adf80cb7fa3737f88faf73a6e818da495b95ab4 | [
"MIT"
] | 1 | 2020-09-28T10:09:25.000Z | 2020-09-28T10:09:25.000Z | venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_us_race_ethnicity_out.py | akshitgoyal/NLP-Research-Project | 6adf80cb7fa3737f88faf73a6e818da495b95ab4 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_us_race_ethnicity_out.py | akshitgoyal/NLP-Research-Project | 6adf80cb7fa3737f88faf73a6e818da495b95ab4 | [
"MIT"
] | 1 | 2020-07-01T18:46:20.000Z | 2020-07-01T18:46:20.000Z | # coding: utf-8
"""
NamSor API v2
NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't fi... | 33.532164 | 385 | 0.643966 | 1,266 | 11,468 | 5.613744 | 0.149289 | 0.087801 | 0.187421 | 0.155762 | 0.606726 | 0.501055 | 0.453215 | 0.361756 | 0.297313 | 0.182918 | 0 | 0.017829 | 0.27616 | 11,468 | 341 | 386 | 33.630499 | 0.838333 | 0.396582 | 0 | 0.099338 | 0 | 0 | 0.09618 | 0.023626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15894 | false | 0 | 0.019868 | 0 | 0.298013 | 0.013245 | 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 |
517daa5290ced1affd3a8d3d48d8b9924bd823b5 | 6,746 | py | Python | scripts/threshold_algorithm_randomized.py | NSSAC/active_queries_threshold_gds_published_code | ee1e1035c62d4b66fcf467e0b1c9ae7031fb595d | [
"Apache-2.0"
] | null | null | null | scripts/threshold_algorithm_randomized.py | NSSAC/active_queries_threshold_gds_published_code | ee1e1035c62d4b66fcf467e0b1c9ae7031fb595d | [
"Apache-2.0"
] | null | null | null | scripts/threshold_algorithm_randomized.py | NSSAC/active_queries_threshold_gds_published_code | ee1e1035c62d4b66fcf467e0b1c9ae7031fb595d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# tags: code python thresholdAlgorithm threshold class
#
import argparse
import networkx as nx
from random import randint
from random import random
from random import seed
import os
import sys
import argparse
import pdb
import logging
import time
DESC="""This code implements the algorithm for di... | 30.251121 | 102 | 0.64542 | 845 | 6,746 | 5.113609 | 0.23787 | 0.052071 | 0.014811 | 0.01134 | 0.265448 | 0.245082 | 0.218468 | 0.213839 | 0.185142 | 0.172182 | 0 | 0.010378 | 0.242959 | 6,746 | 222 | 103 | 30.387387 | 0.835716 | 0.149274 | 0 | 0.295597 | 0 | 0.006289 | 0.124781 | 0.02103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069182 | null | null | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
518b046e2ab1fc7c0553b8c1b697fb51787ff7f0 | 3,180 | py | Python | app/controllers/settings.py | williamflynt/MailgunMailer | c25212ddd57b0603dd10f651acc0e381c10b8cdd | [
"MIT"
] | null | null | null | app/controllers/settings.py | williamflynt/MailgunMailer | c25212ddd57b0603dd10f651acc0e381c10b8cdd | [
"MIT"
] | null | null | null | app/controllers/settings.py | williamflynt/MailgunMailer | c25212ddd57b0603dd10f651acc0e381c10b8cdd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import render_template, session, request
from app import app
from app.log import get_logger
from app.models.Login import login_required
from app.models.SQL_DB import User
logger = get_logger(__name__)
@app.route("/settings/profile", methods=["GET", "POST"])
@login_required
def set... | 31.176471 | 71 | 0.713522 | 390 | 3,180 | 5.587179 | 0.194872 | 0.032125 | 0.047728 | 0.055071 | 0.543827 | 0.51262 | 0.496558 | 0.348784 | 0.239559 | 0.239559 | 0 | 0.003092 | 0.186478 | 3,180 | 101 | 72 | 31.485149 | 0.839196 | 0.006604 | 0 | 0.358974 | 0 | 0 | 0.203358 | 0.042762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.371795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
518f3024a30d130d5b61ad1a31e1cc80b846e52d | 901 | py | Python | Scraping/Scraping_Instagram/insta_crawler/Image.py | ghassen1302/Interview_Code_Demonstration | fd9e2b313d3203e79e4f40bd52f82365508126d2 | [
"Apache-2.0"
] | null | null | null | Scraping/Scraping_Instagram/insta_crawler/Image.py | ghassen1302/Interview_Code_Demonstration | fd9e2b313d3203e79e4f40bd52f82365508126d2 | [
"Apache-2.0"
] | null | null | null | Scraping/Scraping_Instagram/insta_crawler/Image.py | ghassen1302/Interview_Code_Demonstration | fd9e2b313d3203e79e4f40bd52f82365508126d2 | [
"Apache-2.0"
] | null | null | null |
import os
import json
import time
from selenium import webdriver
# from .crawler.media import login
from .crawler.media import getimages
# from .crawler.media import getcomments
# from .crawler.crawler.spiders.profil import launch
# from webdriver_manager.chrome import ChromeDriverManager
username = 'jawherbouhouch7... | 30.033333 | 87 | 0.657048 | 106 | 901 | 5.415094 | 0.490566 | 0.076655 | 0.083624 | 0.114983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016224 | 0.247503 | 901 | 29 | 88 | 31.068966 | 0.830383 | 0.198668 | 0 | 0 | 0 | 0 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.105263 | 0.263158 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5193249282cd300d38e16d581f1b6ec59e9d1f3a | 3,605 | py | Python | app.py | vblazhnov/stats | dfe103521543af40b6e6c941d28cdd831b765a92 | [
"Apache-2.0"
] | null | null | null | app.py | vblazhnov/stats | dfe103521543af40b6e6c941d28cdd831b765a92 | [
"Apache-2.0"
] | null | null | null | app.py | vblazhnov/stats | dfe103521543af40b6e6c941d28cdd831b765a92 | [
"Apache-2.0"
] | null | null | null | #!flask/bin/python
# Copyright 2015 vblazhnov
#
# 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 t... | 26.123188 | 99 | 0.678225 | 483 | 3,605 | 4.954451 | 0.327122 | 0.045967 | 0.027163 | 0.033431 | 0.336398 | 0.250313 | 0.161722 | 0.161722 | 0.133305 | 0.133305 | 0 | 0.023129 | 0.184466 | 3,605 | 137 | 100 | 26.313869 | 0.790816 | 0.197226 | 0 | 0.28169 | 0 | 0 | 0.136283 | 0.01106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183099 | false | 0.070423 | 0.042254 | 0.084507 | 0.422535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51952efcf7c6d5d53b78efef09aae93be736969f | 1,773 | py | Python | paraview_scripts/export_slice_to_csv.py | ric-95/azimuthal-average | a955ff4c6904c8f15d062d08cd83b59655f64db0 | [
"MIT"
] | null | null | null | paraview_scripts/export_slice_to_csv.py | ric-95/azimuthal-average | a955ff4c6904c8f15d062d08cd83b59655f64db0 | [
"MIT"
] | null | null | null | paraview_scripts/export_slice_to_csv.py | ric-95/azimuthal-average | a955ff4c6904c8f15d062d08cd83b59655f64db0 | [
"MIT"
] | null | null | null | # trace generated using paraview version 5.9.0-RC2
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
def export_slice_to_csv(render_view, output_file="slice.csv"):
paraview.simple._DisableFirstRenderCameraReset()
# get active view
... | 30.568966 | 107 | 0.640722 | 163 | 1,773 | 6.920245 | 0.625767 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024088 | 0.180485 | 1,773 | 57 | 108 | 31.105263 | 0.752237 | 0.468697 | 0 | 0 | 1 | 0 | 0.063527 | 0.027382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
519703519b1822b675914d8d9bbde49d58e9c9f1 | 2,098 | py | Python | NewDeclarationInQueue/preprocess/document_location.py | it-pebune/ani-research-data-extraction | e8b0ffecb0835020ce7942223cf566dc45ccee35 | [
"MIT"
] | null | null | null | NewDeclarationInQueue/preprocess/document_location.py | it-pebune/ani-research-data-extraction | e8b0ffecb0835020ce7942223cf566dc45ccee35 | [
"MIT"
] | 7 | 2022-01-29T22:19:55.000Z | 2022-03-28T18:18:19.000Z | NewDeclarationInQueue/preprocess/document_location.py | it-pebune/ani-research-data-extraction | e8b0ffecb0835020ce7942223cf566dc45ccee35 | [
"MIT"
] | null | null | null | from NewDeclarationInQueue.preprocess.models import DocumentType
class DocumentLocation:
"""Class for all the parameters necessary for processing a file
"""
type = DocumentType.DOC_WEALTH
storage = 'azure'
path = ''
filename = ''
out_path = ''
page_image_filename = ''
ocr_json_file... | 39.584906 | 133 | 0.639657 | 235 | 2,098 | 5.570213 | 0.310638 | 0.055004 | 0.061115 | 0.076394 | 0.103896 | 0.067227 | 0.067227 | 0.067227 | 0.067227 | 0 | 0 | 0.000676 | 0.295043 | 2,098 | 53 | 134 | 39.584906 | 0.884381 | 0.487131 | 0 | 0 | 0 | 0 | 0.005247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0.04 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5198c026cb3a9f64c17f8f6d7e821a1da7113439 | 1,850 | py | Python | examples/simple_rnn_comparison/without_treeano.py | diogo149/treeano | 9b3fd6bb5eb2f6738c9e5c357e70bef95dcae7b7 | [
"Apache-2.0"
] | 45 | 2015-04-26T04:45:51.000Z | 2022-01-24T15:03:55.000Z | examples/simple_rnn_comparison/without_treeano.py | diogo149/treeano | 9b3fd6bb5eb2f6738c9e5c357e70bef95dcae7b7 | [
"Apache-2.0"
] | 5 | 2015-07-24T00:51:19.000Z | 2016-02-03T07:32:49.000Z | examples/simple_rnn_comparison/without_treeano.py | diogo149/treeano | 9b3fd6bb5eb2f6738c9e5c357e70bef95dcae7b7 | [
"Apache-2.0"
] | 13 | 2015-07-24T00:46:28.000Z | 2022-01-18T16:55:47.000Z | import numpy as np
import theano
import theano.tensor as T
fX = theano.config.floatX
LAG = 20
LENGTH = 50
N_TRAIN = 5000
HIDDEN_STATE_SIZE = 10
def binary_toy_data(lag=1, length=20):
inputs = np.random.randint(0, 2, length).astype(fX)
outputs = np.array(lag * [0] + list(inputs), dtype=fX)[:length]
retur... | 25.694444 | 67 | 0.636216 | 311 | 1,850 | 3.62701 | 0.279743 | 0.068262 | 0.093085 | 0.042553 | 0.249113 | 0.218972 | 0.176418 | 0.152482 | 0.152482 | 0.074468 | 0 | 0.026139 | 0.193514 | 1,850 | 71 | 68 | 26.056338 | 0.729893 | 0 | 0 | 0.037736 | 0 | 0 | 0.008649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | null | null | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
51a0bd2bff320ee855b3e9dd424da651c680ad50 | 282 | py | Python | src/helpers/config.py | daavofficial/Aural | b4ef4170dcc27d87b2a08a9ae59383ea8099e024 | [
"MIT"
] | null | null | null | src/helpers/config.py | daavofficial/Aural | b4ef4170dcc27d87b2a08a9ae59383ea8099e024 | [
"MIT"
] | null | null | null | src/helpers/config.py | daavofficial/Aural | b4ef4170dcc27d87b2a08a9ae59383ea8099e024 | [
"MIT"
] | null | null | null |
VERSION = "0.0.2"
VERSION_GUI = "0.0.2"
VERSION_CUI = "0.0.0"
VERSION_AUDIOCABLE = "0.0.2"
VERSION_ROUTE = "0.0.2"
VERSION_SETINGS = "0.0.1"
CALLBACK_AUDIOCABLE_SELECTED = None
CALLBACK_ROUTE_SELECTED = None
SETTINGS = None
CONFIGURATION = None
PATH_ROOT = ""
PATH_SETTINGS = "" | 17.625 | 35 | 0.719858 | 45 | 282 | 4.266667 | 0.355556 | 0.072917 | 0.0625 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.138298 | 282 | 16 | 36 | 17.625 | 0.716049 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
51a6cf65d39a2bf9aac0a6337d87e8b618aefc57 | 410 | py | Python | gochan/browser.py | morin4ga/gochan | 46285caa394c6b37e1e418ebd5c8be2b296b564f | [
"MIT"
] | 1 | 2020-04-22T09:25:53.000Z | 2020-04-22T09:25:53.000Z | gochan/browser.py | anon774/gochan | 46285caa394c6b37e1e418ebd5c8be2b296b564f | [
"MIT"
] | 4 | 2021-04-23T03:20:39.000Z | 2022-03-12T00:29:19.000Z | gochan/browser.py | anon774/gochan | 46285caa394c6b37e1e418ebd5c8be2b296b564f | [
"MIT"
] | null | null | null | import webbrowser
from subprocess import Popen
from typing import List
from gochan.config import BROWSER_PATH
def open_link(url: str):
if BROWSER_PATH is None:
webbrowser.open(url)
else:
Popen([BROWSER_PATH, url])
def open_links(urls: List[str]):
if BROWSER_PATH is None:
for url... | 19.52381 | 38 | 0.663415 | 57 | 410 | 4.649123 | 0.421053 | 0.207547 | 0.090566 | 0.120755 | 0.445283 | 0.445283 | 0.279245 | 0 | 0 | 0 | 0 | 0 | 0.256098 | 410 | 20 | 39 | 20.5 | 0.868852 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.4 | 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 |
51acd6a8ef3173804b57f91d34eb632d4e8c1afe | 574 | py | Python | vstutils/api/meta.py | FloThinksPi-Forks/vstutils | eeb4d7a4d280cb8b844d9c9ab212e88f7bbe5d38 | [
"Apache-2.0"
] | 36 | 2018-05-29T22:55:45.000Z | 2021-11-18T22:59:29.000Z | vstutils/api/meta.py | FloThinksPi-Forks/vstutils | eeb4d7a4d280cb8b844d9c9ab212e88f7bbe5d38 | [
"Apache-2.0"
] | 19 | 2020-03-05T01:31:52.000Z | 2022-01-21T08:22:19.000Z | vstutils/api/meta.py | FloThinksPi-Forks/vstutils | eeb4d7a4d280cb8b844d9c9ab212e88f7bbe5d38 | [
"Apache-2.0"
] | 10 | 2018-07-30T10:14:30.000Z | 2022-01-08T12:07:20.000Z | from rest_framework.metadata import SimpleMetadata
from . import fields, serializers
class VSTMetadata(SimpleMetadata):
label_lookup = SimpleMetadata.label_lookup
origin_mapping = SimpleMetadata.label_lookup.mapping
mapping_fields = {
fields.FileInStringField: 'file',
fields.SecretFileInS... | 31.888889 | 56 | 0.733449 | 50 | 574 | 8.26 | 0.54 | 0.106538 | 0.181598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 574 | 17 | 57 | 33.764706 | 0.880597 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51b46c0a7235d08384e87af73a0f41cd3c65733d | 2,411 | py | Python | opexebo/tests/test_general/test_upsample.py | simon-ball/opexebo | 8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31 | [
"MIT"
] | 4 | 2019-06-12T07:50:42.000Z | 2021-11-19T12:55:47.000Z | opexebo/tests/test_general/test_upsample.py | simon-ball/opexebo | 8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31 | [
"MIT"
] | 12 | 2019-06-12T07:26:40.000Z | 2021-08-11T15:10:47.000Z | opexebo/tests/test_general/test_upsample.py | simon-ball/opexebo | 8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31 | [
"MIT"
] | 4 | 2019-11-21T10:44:37.000Z | 2022-01-07T14:21:07.000Z | """ Tests for upsampling"""
import numpy as np
import pytest
from opexebo.general import upsample as func
print("=== tests_upsampling ===")
###############################################################################
################ MAIN TESTS
#####################################################... | 30.1375 | 87 | 0.622148 | 294 | 2,411 | 4.894558 | 0.282313 | 0.038916 | 0.035441 | 0.041696 | 0.277276 | 0.134121 | 0.134121 | 0.063933 | 0.063933 | 0.063933 | 0 | 0.023573 | 0.208212 | 2,411 | 79 | 88 | 30.518987 | 0.730225 | 0.164247 | 0 | 0.148936 | 0 | 0 | 0.063596 | 0.026864 | 0 | 0 | 0 | 0 | 0.085106 | 1 | 0.06383 | false | 0.06383 | 0.06383 | 0 | 0.191489 | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
51c4801c1f9f8af4b3019cc7abe4aa467e67d141 | 4,641 | py | Python | awards/models.py | shamanu4/test_project | 8ec52b5ab88c7bae4e469dc04fe64630e2f081fa | [
"MIT"
] | 1 | 2019-07-26T09:56:38.000Z | 2019-07-26T09:56:38.000Z | awards/models.py | shamanu4/test_project | 8ec52b5ab88c7bae4e469dc04fe64630e2f081fa | [
"MIT"
] | 6 | 2020-06-05T19:00:20.000Z | 2022-03-11T23:29:35.000Z | awards/models.py | vintkor/cryptotrade | cd27b5d58e4149cf9ad5e035983fcec566369833 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext as _
from ckeditor_uploader.fields import RichTextUploadingField
class RangAward(models.Model):
title = models.CharField(verbose_name=_('Заголовок'), max_length=60)
volume = models.DecimalField(verbose_name=_('Объём'), max_digits=10, d... | 47.357143 | 134 | 0.731954 | 590 | 4,641 | 5.437288 | 0.232203 | 0.12687 | 0.064838 | 0.084165 | 0.576995 | 0.475998 | 0.40586 | 0.366895 | 0.366895 | 0.366895 | 0 | 0.019417 | 0.156647 | 4,641 | 97 | 135 | 47.845361 | 0.800204 | 0 | 0 | 0.263158 | 0 | 0 | 0.151691 | 0.004956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.039474 | 0.065789 | 0.723684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51cbb58d8357f9795453f4cf8aa2840be325e66d | 3,255 | py | Python | tests/images/test_image_utils.py | danjampro/panoptes-utils | ff51019cdd0e188cf5e8d8d70fc3579776a31716 | [
"MIT"
] | 3 | 2019-03-26T03:35:46.000Z | 2021-08-16T16:59:12.000Z | tests/images/test_image_utils.py | danjampro/panoptes-utils | ff51019cdd0e188cf5e8d8d70fc3579776a31716 | [
"MIT"
] | 254 | 2019-03-29T05:42:54.000Z | 2022-02-18T05:03:09.000Z | tests/images/test_image_utils.py | danjampro/panoptes-utils | ff51019cdd0e188cf5e8d8d70fc3579776a31716 | [
"MIT"
] | 9 | 2019-03-25T09:55:35.000Z | 2021-05-18T02:45:17.000Z | import os
import tempfile
import numpy as np
import pytest
from astropy.nddata import Cutout2D
from panoptes.utils import images as img_utils
from panoptes.utils import error
def test_crop_data():
ones = np.ones((201, 201))
assert ones.sum() == 40401.
cropped01 = img_utils.crop_data(ones) # False to ex... | 35.769231 | 83 | 0.626421 | 425 | 3,255 | 4.625882 | 0.324706 | 0.044761 | 0.068667 | 0.054934 | 0.346897 | 0.25178 | 0.151577 | 0.10885 | 0.066124 | 0.066124 | 0 | 0.033775 | 0.281413 | 3,255 | 90 | 84 | 36.166667 | 0.806755 | 0.10722 | 0 | 0.15873 | 0 | 0 | 0.054558 | 0 | 0 | 0 | 0 | 0.011111 | 0.285714 | 1 | 0.063492 | false | 0 | 0.111111 | 0 | 0.174603 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
51d2854307f8ceec0db67f9e86abcc56e1aa5109 | 5,261 | py | Python | polyadicqml/circuitML.py | JoaquinKeller/polyadicQML | 9534ca59285baf9b4060ed546827f2977a8d8657 | [
"Apache-2.0"
] | 19 | 2020-07-24T01:28:44.000Z | 2022-03-29T07:52:19.000Z | polyadicqml/circuitML.py | JoaquinKeller/polyadicQML | 9534ca59285baf9b4060ed546827f2977a8d8657 | [
"Apache-2.0"
] | null | null | null | polyadicqml/circuitML.py | JoaquinKeller/polyadicQML | 9534ca59285baf9b4060ed546827f2977a8d8657 | [
"Apache-2.0"
] | 8 | 2020-07-26T17:27:06.000Z | 2021-11-03T16:17:54.000Z | """Implementation of circuit for ML
"""
from numpy import pi, random, zeros_like, zeros, log2
class circuitML():
"""Abstract Quantum ML circuit interface.
Provides a unified interface to run multiple parametric circuits with
different input and model parameters, agnostic of the backend, implemented
in... | 30.766082 | 78 | 0.569093 | 622 | 5,261 | 4.696141 | 0.254019 | 0.030811 | 0.022253 | 0.020541 | 0.311879 | 0.277302 | 0.264978 | 0.264978 | 0.264978 | 0.232112 | 0 | 0.005719 | 0.335297 | 5,261 | 170 | 79 | 30.947059 | 0.829568 | 0.519863 | 0 | 0.108696 | 0 | 0 | 0.005908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.021739 | 0.065217 | 0.369565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51d6936665b7826005993a52b90d85027da66187 | 2,210 | py | Python | src/permedcoe/utils/artifact.py | PerMedCoE/permedcoe | 528415135d16963212cd81b0ea64fa655364e64a | [
"Apache-2.0"
] | null | null | null | src/permedcoe/utils/artifact.py | PerMedCoE/permedcoe | 528415135d16963212cd81b0ea64fa655364e64a | [
"Apache-2.0"
] | null | null | null | src/permedcoe/utils/artifact.py | PerMedCoE/permedcoe | 528415135d16963212cd81b0ea64fa655364e64a | [
"Apache-2.0"
] | null | null | null | import os
from permedcoe.core.constants import SEPARATOR
DO_NOT_PARSE = (".pyc", ".def", ".sif")
PARSING_KEY = "NEW_NAME"
PARSING_PATH = "/PATH/TO/"
def adapt_name(name, path):
""" Replace recursively into the given path they keyword with name.
Like a set recursively.
Args:
name (str): Name to p... | 29.466667 | 71 | 0.566516 | 291 | 2,210 | 4.14433 | 0.292096 | 0.059701 | 0.033168 | 0.039801 | 0.359867 | 0.331675 | 0.300166 | 0.207297 | 0.207297 | 0.207297 | 0 | 0.001331 | 0.31991 | 2,210 | 74 | 72 | 29.864865 | 0.801065 | 0.223077 | 0 | 0.285714 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.142857 | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
51dc710f797c5dd8ee717e037b8c2c3dc22aed7d | 422 | py | Python | app/migrations/0004_auto_20210528_2005.py | ThebiggunSeeoil/VIS-MASTER | a54a5f321cfe8b258bacc25458490c5b154edf19 | [
"MIT"
] | null | null | null | app/migrations/0004_auto_20210528_2005.py | ThebiggunSeeoil/VIS-MASTER | a54a5f321cfe8b258bacc25458490c5b154edf19 | [
"MIT"
] | null | null | null | app/migrations/0004_auto_20210528_2005.py | ThebiggunSeeoil/VIS-MASTER | a54a5f321cfe8b258bacc25458490c5b154edf19 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2021-05-28 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20210528_1759'),
]
operations = [
migrations.AlterField(
model_name='site',
name='stati... | 22.210526 | 69 | 0.580569 | 44 | 422 | 5.431818 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113014 | 0.308057 | 422 | 18 | 70 | 23.444444 | 0.705479 | 0.101896 | 0 | 0 | 1 | 0 | 0.13649 | 0.064067 | 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 |
51df1caba9434b15b6d1ad06110006e4c3bd4231 | 10,885 | py | Python | pytouch/trainingmachine.py | aboutNisblee/PyTouch | 0098aa07ac78ec1868e0a155c92342512d07613a | [
"MIT"
] | 3 | 2016-08-19T16:17:53.000Z | 2017-07-19T18:55:37.000Z | pytouch/trainingmachine.py | mNisblee/PyTouch | 0098aa07ac78ec1868e0a155c92342512d07613a | [
"MIT"
] | null | null | null | pytouch/trainingmachine.py | mNisblee/PyTouch | 0098aa07ac78ec1868e0a155c92342512d07613a | [
"MIT"
] | null | null | null | import copy
import logging
from datetime import datetime, timedelta
from collections import namedtuple
from blinker import Signal
__all__ = [
'Event',
'TrainingMachineObserver',
'TrainingMachine',
]
logger = logging.getLogger(__name__)
class Event(dict):
""" Events that are expected by the process... | 31.550725 | 142 | 0.615342 | 1,335 | 10,885 | 4.875655 | 0.18427 | 0.022123 | 0.022123 | 0.022123 | 0.242126 | 0.172069 | 0.083269 | 0.064526 | 0.055001 | 0.055001 | 0 | 0.001804 | 0.286909 | 10,885 | 344 | 143 | 31.642442 | 0.836769 | 0.270648 | 0 | 0.243386 | 0 | 0 | 0.0414 | 0.003062 | 0 | 0 | 0 | 0.002907 | 0 | 1 | 0.232804 | false | 0 | 0.026455 | 0.084656 | 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 |
51f48b69f5a97792ed83236058b2281a9436bf6c | 1,221 | py | Python | parsec/commands/workflows/extract_workflow_from_history.py | erasche/parsec | c2f1bda7ff776f9aa121c7b94d62e3da2fad93f6 | [
"Apache-2.0"
] | 8 | 2015-03-27T17:09:15.000Z | 2021-07-13T15:33:02.000Z | parsec/commands/workflows/extract_workflow_from_history.py | erasche/parsec | c2f1bda7ff776f9aa121c7b94d62e3da2fad93f6 | [
"Apache-2.0"
] | 30 | 2015-02-27T21:21:47.000Z | 2021-08-31T14:19:55.000Z | parsec/commands/workflows/extract_workflow_from_history.py | erasche/parsec | c2f1bda7ff776f9aa121c7b94d62e3da2fad93f6 | [
"Apache-2.0"
] | 12 | 2017-06-01T03:49:23.000Z | 2021-07-13T15:33:06.000Z | import click
from parsec.cli import pass_context, json_loads
from parsec.decorators import custom_exception, json_output
@click.command('extract_workflow_from_history')
@click.argument("history_id", type=str)
@click.argument("workflow_name", type=str)
@click.option(
"--job_ids",
help="Optional list of job IDs... | 32.131579 | 177 | 0.763309 | 168 | 1,221 | 5.339286 | 0.297619 | 0.06689 | 0.117057 | 0.060201 | 0.476031 | 0.38573 | 0.26087 | 0.26087 | 0.19175 | 0.19175 | 0 | 0 | 0.143325 | 1,221 | 37 | 178 | 33 | 0.857553 | 0.070434 | 0 | 0.310345 | 0 | 0 | 0.343416 | 0.048043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51f92deb6441bf615c9c55898b9be6727d70fddd | 1,647 | py | Python | main_menu.py | Steven-Wilson/pyweek25 | 1547919a17973d0b13ed630bdb1d7285f07f2a5e | [
"MIT"
] | null | null | null | main_menu.py | Steven-Wilson/pyweek25 | 1547919a17973d0b13ed630bdb1d7285f07f2a5e | [
"MIT"
] | null | null | null | main_menu.py | Steven-Wilson/pyweek25 | 1547919a17973d0b13ed630bdb1d7285f07f2a5e | [
"MIT"
] | null | null | null | import model
import pyxelen
from view import *
from sounds import *
from utils import *
def set_scene(state, **kwargs):
return state.set(scene=state.scene.set(**kwargs))
def selection(state):
return state.scene.selection
def select_next(state):
state = set_scene(state, selection=selection(state).next... | 26.142857 | 77 | 0.677596 | 214 | 1,647 | 5.088785 | 0.28972 | 0.10101 | 0.071625 | 0.069789 | 0.400367 | 0.257117 | 0.257117 | 0.257117 | 0.10652 | 0 | 0 | 0.016229 | 0.214329 | 1,647 | 62 | 78 | 26.564516 | 0.825348 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.111111 | 0.066667 | 0.577778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
51fd1ee0affbea3983a9baf19ef487642c72089d | 4,056 | py | Python | gui_rest_client/menu_handlers.py | devdo-eu/macau | 6f3c4ad119c133be01935485d8afe6aa0a8d0589 | [
"MIT"
] | null | null | null | gui_rest_client/menu_handlers.py | devdo-eu/macau | 6f3c4ad119c133be01935485d8afe6aa0a8d0589 | [
"MIT"
] | 18 | 2021-03-07T13:01:01.000Z | 2021-03-25T18:56:33.000Z | gui_rest_client/menu_handlers.py | devdo-eu/macau | 6f3c4ad119c133be01935485d8afe6aa0a8d0589 | [
"MIT"
] | 1 | 2022-02-20T05:42:41.000Z | 2022-02-20T05:42:41.000Z | import gui_rest_client.common as common
import pyglet
def on_key_release_factory(window):
"""
Function used to create specific on_key_release method for window property of MenuWindow object.
:param window: MenuWindow object
:return: functor with prepared on_key_release method
"""
def functor(s... | 31.6875 | 115 | 0.649408 | 532 | 4,056 | 4.778195 | 0.193609 | 0.051141 | 0.062943 | 0.061369 | 0.531471 | 0.38513 | 0.339496 | 0.339496 | 0.322581 | 0.239182 | 0 | 0.016124 | 0.266026 | 4,056 | 127 | 116 | 31.937008 | 0.837756 | 0.240631 | 0 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.260274 | false | 0.013699 | 0.027397 | 0 | 0.383562 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a400495c45ce712f436631104311183285251059 | 628 | py | Python | var/spack/repos/builtin/packages/py-iocapture/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/py-iocapture/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/py-iocapture/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyIocapture(PythonPackage):
"""Capture stdout, stderr easily."""
homepage = "https://... | 29.904762 | 95 | 0.716561 | 75 | 628 | 5.973333 | 0.813333 | 0.008929 | 0.013393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117537 | 0.146497 | 628 | 20 | 96 | 31.4 | 0.718284 | 0.350318 | 0 | 0 | 0 | 0 | 0.453634 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4042c74bb460724f81c2a3bc84335fbfffb8bdc | 5,526 | py | Python | tobias/tobiasfyi/settings/base.py | tobias-fyi/tobiasfyi | 194768e27d9767f2d3f839106b56ff3502c86564 | [
"MIT"
] | null | null | null | tobias/tobiasfyi/settings/base.py | tobias-fyi/tobiasfyi | 194768e27d9767f2d3f839106b56ff3502c86564 | [
"MIT"
] | 16 | 2020-01-19T20:15:49.000Z | 2021-09-22T18:49:09.000Z | tobias/tobiasfyi/settings/base.py | tobias-fyi/tobiasfyi | 194768e27d9767f2d3f839106b56ff3502c86564 | [
"MIT"
] | null | null | null | """
tobias.fyi :: Base Django settings
"""
import os
import dj_database_url
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(PROJECT_DIR)
# === Application definition === #
INSTALLED_APPS = [
"home",
"search",
"blog",
"navigator",
"wagtail.co... | 32.698225 | 91 | 0.675172 | 591 | 5,526 | 6.098139 | 0.2978 | 0.064928 | 0.046615 | 0.029134 | 0.207547 | 0.169256 | 0.083241 | 0.068812 | 0.068812 | 0.068812 | 0 | 0.007494 | 0.178972 | 5,526 | 168 | 92 | 32.892857 | 0.786864 | 0.092291 | 0 | 0.062016 | 0 | 0 | 0.485273 | 0.304749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054264 | 0.015504 | 0 | 0.015504 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a405e633e0bf2bee6a4d55ce17c3b01ad230679e | 21,789 | py | Python | try1.py | joseph-reynolds/minecraft-pidoodles | e5b1f309a8a773b35f760e67588a52fb23916d65 | [
"MIT"
] | 1 | 2021-01-27T17:48:24.000Z | 2021-01-27T17:48:24.000Z | try1.py | joseph-reynolds/minecraft-pidoodles | e5b1f309a8a773b35f760e67588a52fb23916d65 | [
"MIT"
] | null | null | null | try1.py | joseph-reynolds/minecraft-pidoodles | e5b1f309a8a773b35f760e67588a52fb23916d65 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""Ideas for minecraft
Ideas:
- determine the size of the world (x..x, y..y, z..z)
- given a house foundation, build the entire house
- clear a large area of blocks
- dig a shaft or steps down
- jump to the top of a nearby tree
- create a miniature world: reduce (256,256) to (16,16)
- determi... | 33.781395 | 93 | 0.579788 | 3,025 | 21,789 | 4.093884 | 0.219174 | 0.014131 | 0.008882 | 0.015342 | 0.220688 | 0.192103 | 0.169008 | 0.155846 | 0.145833 | 0.145833 | 0 | 0.041551 | 0.319611 | 21,789 | 644 | 94 | 33.833851 | 0.793794 | 0.059984 | 0 | 0.320144 | 0 | 0 | 0.029273 | 0.006755 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014388 | 0.028777 | null | null | 0.02518 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4070d5261493c37bcf2333af0d0da98724223b5 | 266 | py | Python | setup.py | philipwfowler/gromarks | d30c1d08a403b5044db5af2cb69d48f49f2d21fd | [
"MIT"
] | null | null | null | setup.py | philipwfowler/gromarks | d30c1d08a403b5044db5af2cb69d48f49f2d21fd | [
"MIT"
] | null | null | null | setup.py | philipwfowler/gromarks | d30c1d08a403b5044db5af2cb69d48f49f2d21fd | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='gromarks',
version='0.1',
author='Philip Fowler',
packages=['gromarks'],
scripts=["bin/gromarks-analyse.py","bin/gromarks-create.py"],
license='MIT',
long_description=open('README.md').read(),
)
| 22.166667 | 65 | 0.650376 | 32 | 266 | 5.375 | 0.8125 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.161654 | 266 | 11 | 66 | 24.181818 | 0.762332 | 0 | 0 | 0 | 0 | 0 | 0.334586 | 0.169173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a40c134772d49ab93a95b17b92d661e9e1dc23d1 | 533 | py | Python | modules/example_name_get/models/custom_model.py | ngi-odoo/examples | d1d4dc109862d90f8fc4f34af169ff09f0c8ea2f | [
"MIT"
] | null | null | null | modules/example_name_get/models/custom_model.py | ngi-odoo/examples | d1d4dc109862d90f8fc4f34af169ff09f0c8ea2f | [
"MIT"
] | null | null | null | modules/example_name_get/models/custom_model.py | ngi-odoo/examples | d1d4dc109862d90f8fc4f34af169ff09f0c8ea2f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import api, fields, models
class CustomModel(models.Model):
_name = 'custom.model'
_description = 'Custom Model'
_rec_name = 'custom_name'
name = fields.Char('Name', default='Name', required=True)
custom_int = fields.Integer('Custom Int', required=True)
cust... | 29.611111 | 76 | 0.673546 | 68 | 533 | 5.044118 | 0.397059 | 0.174927 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002288 | 0.180113 | 533 | 17 | 77 | 31.352941 | 0.782609 | 0.0394 | 0 | 0 | 0 | 0 | 0.198039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 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 |
a40c8b53c82db18dc8dc952f046c2a7a09fe4bf4 | 1,103 | py | Python | spike2_processor/tests/params.py | Pennsieve/timeseries-processor | 85766afa76182503fd66cec8382c22e757743f01 | [
"Apache-2.0"
] | null | null | null | spike2_processor/tests/params.py | Pennsieve/timeseries-processor | 85766afa76182503fd66cec8382c22e757743f01 | [
"Apache-2.0"
] | null | null | null | spike2_processor/tests/params.py | Pennsieve/timeseries-processor | 85766afa76182503fd66cec8382c22e757743f01 | [
"Apache-2.0"
] | null | null | null | from base_processor.timeseries.tests import TimeSeriesTest, ChannelTest
# -----------------------------
# parameters for channel tests
# -----------------------------
# ----------------------- test channels -----------------------
channels_00 = [
# continuous channels
ChannelTest(name='EKG-1000.0', nsamples=... | 34.46875 | 93 | 0.547597 | 104 | 1,103 | 5.711538 | 0.394231 | 0.06734 | 0.10101 | 0.185185 | 0.43771 | 0.43771 | 0.43771 | 0.43771 | 0.43771 | 0.43771 | 0 | 0.105085 | 0.197643 | 1,103 | 31 | 94 | 35.580645 | 0.566102 | 0.208522 | 0 | 0 | 0 | 0 | 0.158199 | 0.028868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.05 | 0 | 0.05 | 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 |
cf8bf175075177bf940eb88972c096da0cd5c335 | 2,764 | py | Python | src/ModuleManager.py | RhysRead/RhysRoom | 7cc2643f4ff10f56263310e1d7648a90720122be | [
"MIT"
] | null | null | null | src/ModuleManager.py | RhysRead/RhysRoom | 7cc2643f4ff10f56263310e1d7648a90720122be | [
"MIT"
] | null | null | null | src/ModuleManager.py | RhysRead/RhysRoom | 7cc2643f4ff10f56263310e1d7648a90720122be | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""ModuleManager.py: This file contains the code for the module managing aspect of the RhysRoom software."""
__author__ = "Rhys Read"
__copyright__ = "Copyright 2018, Rhys Read"
import logging
import os
from importlib.machinery import SourceFileLoader
import threading
MODULE_FOLDER_LOCATION ... | 30.711111 | 120 | 0.62301 | 334 | 2,764 | 4.928144 | 0.335329 | 0.04678 | 0.036452 | 0.025516 | 0.170109 | 0.110571 | 0.071689 | 0 | 0 | 0 | 0 | 0.003595 | 0.295586 | 2,764 | 89 | 121 | 31.05618 | 0.841808 | 0.26411 | 0 | 0.088889 | 0 | 0 | 0.046883 | 0 | 0 | 0 | 0 | 0.022472 | 0 | 1 | 0.111111 | false | 0 | 0.088889 | 0 | 0.288889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cf8c77a8403d7c2b9ad92146eb9320547377a0ac | 1,441 | py | Python | dependencies/svgwrite/tests/test_rect.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 21 | 2015-01-16T05:10:02.000Z | 2021-06-11T20:48:15.000Z | dependencies/svgwrite/tests/test_rect.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 1 | 2019-09-09T12:10:27.000Z | 2020-05-22T10:12:14.000Z | dependencies/svgwrite/tests/test_rect.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 2 | 2015-05-03T04:51:08.000Z | 2018-08-24T08:28:53.000Z | #!/usr/bin/env python
#coding:utf-8
# Author: mozman --<mozman@gmx.at>
# Purpose: test rect object
# Created: 25.09.2010
# Copyright (C) 2010, Manfred Moitzi
# License: GPLv3
import sys
import unittest
from svgwrite.shapes import Rect
class TestRect(unittest.TestCase):
def test_numbers(self):
... | 36.025 | 105 | 0.616239 | 193 | 1,441 | 4.523316 | 0.341969 | 0.109966 | 0.171821 | 0.199313 | 0.486827 | 0.402062 | 0.219931 | 0.130584 | 0 | 0 | 0 | 0.052539 | 0.207495 | 1,441 | 40 | 106 | 36.025 | 0.711909 | 0.112422 | 0 | 0 | 0 | 0.08 | 0.194489 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.12 | 0 | 0.36 | 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 |
cf93a8fb947171db61193394450cab6da3bc92ab | 841 | py | Python | freenodejobs/urls.py | freenode/freenodejobs | 235388c88ac6f984f36cd20074542e21369bcc8b | [
"MIT"
] | 4 | 2018-06-22T22:27:33.000Z | 2021-12-04T20:48:52.000Z | freenodejobs/urls.py | freenode/freenodejobs | 235388c88ac6f984f36cd20074542e21369bcc8b | [
"MIT"
] | 31 | 2018-05-22T15:38:55.000Z | 2021-03-18T20:31:53.000Z | freenodejobs/urls.py | freenode/freenodejobs | 235388c88ac6f984f36cd20074542e21369bcc8b | [
"MIT"
] | 5 | 2018-06-02T17:28:42.000Z | 2021-12-04T20:48:41.000Z | from django.conf import settings
from django.urls import path, include
from django.views.static import serve
urlpatterns = (
path('', include('freenodejobs.account.urls',
namespace='account')),
path('', include('freenodejobs.admin.urls',
namespace='admin')),
path('', include('freenodejob... | 31.148148 | 54 | 0.634958 | 81 | 841 | 6.555556 | 0.333333 | 0.165725 | 0.303202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195006 | 841 | 26 | 55 | 32.346154 | 0.784343 | 0 | 0 | 0 | 0 | 0 | 0.321046 | 0.209275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf9f2dffcca7faa4bae484271d8e331b630da008 | 663 | py | Python | karanja_me/polls/admin.py | denisKaranja/django-dive-in | 451742ac065136cb0f9ac7b042d5913bbc2a36d0 | [
"MIT"
] | null | null | null | karanja_me/polls/admin.py | denisKaranja/django-dive-in | 451742ac065136cb0f9ac7b042d5913bbc2a36d0 | [
"MIT"
] | null | null | null | karanja_me/polls/admin.py | denisKaranja/django-dive-in | 451742ac065136cb0f9ac7b042d5913bbc2a36d0 | [
"MIT"
] | null | null | null | from django.contrib import admin
# register Pools app in the admin interface
from .models import Choice, Question
class ChoiceInLine(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
# re-order which field comes first
fieldsets = [
("Question", {"fields": ["qu... | 24.555556 | 75 | 0.701357 | 77 | 663 | 5.896104 | 0.649351 | 0.079295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001815 | 0.168929 | 663 | 26 | 76 | 25.5 | 0.822142 | 0.155354 | 0 | 0 | 0 | 0 | 0.245487 | 0.039711 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfa4ca9a10bea098722aaeb8c2a7d2d1a93ebf25 | 9,065 | py | Python | tests/src/main/python/rest/tests/extract/swagger_client/models/measure_parameter_info.py | IBM/quality-measure-and-cohort-service | 8963227bf4941d6a5fdc641b37ca0f72da5a6f2b | [
"Apache-2.0"
] | 1 | 2020-10-05T15:10:03.000Z | 2020-10-05T15:10:03.000Z | tests/src/main/python/rest/tests/extract/swagger_client/models/measure_parameter_info.py | IBM/quality-measure-and-cohort-service | 8963227bf4941d6a5fdc641b37ca0f72da5a6f2b | [
"Apache-2.0"
] | null | null | null | tests/src/main/python/rest/tests/extract/swagger_client/models/measure_parameter_info.py | IBM/quality-measure-and-cohort-service | 8963227bf4941d6a5fdc641b37ca0f72da5a6f2b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
IBM Cohort Engine
Service to evaluate cohorts and measures # noqa: E501
OpenAPI spec version: 2.1.0 2022-02-18T21:50:45Z
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.configuratio... | 30.833333 | 196 | 0.60706 | 1,042 | 9,065 | 5.202495 | 0.146833 | 0.056078 | 0.134293 | 0.116215 | 0.570559 | 0.520753 | 0.501937 | 0.408965 | 0.31876 | 0.261206 | 0 | 0.022684 | 0.309432 | 9,065 | 293 | 197 | 30.938567 | 0.843291 | 0.453282 | 0 | 0.087302 | 1 | 0 | 0.041626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.031746 | 0 | 0.325397 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfa7c54b2c60bb286552dff00421bc13413e5568 | 2,352 | py | Python | beartype_test/util/pyterror.py | jonathanmorley/beartype | 0d1207210220807d5c5848033d13657afa307983 | [
"MIT"
] | null | null | null | beartype_test/util/pyterror.py | jonathanmorley/beartype | 0d1207210220807d5c5848033d13657afa307983 | [
"MIT"
] | null | null | null | beartype_test/util/pyterror.py | jonathanmorley/beartype | 0d1207210220807d5c5848033d13657afa307983 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2021 Beartype authors.
# See "LICENSE" for further details.
'''
**:mod:`pytest` exception-handling utilities.**
This submodule provides functions validating caller-defined exceptions raised
duri... | 37.333333 | 79 | 0.616922 | 239 | 2,352 | 5.991632 | 0.535565 | 0.041899 | 0.035615 | 0.064944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004715 | 0.18835 | 2,352 | 62 | 80 | 37.935484 | 0.745416 | 0.755527 | 0 | 0 | 0 | 0 | 0.028078 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.4 | 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 |
cfab1a84be9c0072b43334afcc4dc985928ed6db | 2,247 | py | Python | tests/utils.py | Upabjojr/matchpy | ff8b28a0e178f3cc5d6546c25ee1d891cff64425 | [
"MIT"
] | null | null | null | tests/utils.py | Upabjojr/matchpy | ff8b28a0e178f3cc5d6546c25ee1d891cff64425 | [
"MIT"
] | null | null | null | tests/utils.py | Upabjojr/matchpy | ff8b28a0e178f3cc5d6546c25ee1d891cff64425 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from matchpy.expressions.constraints import Constraint
from matchpy.expressions.substitution import Substitution
from matchpy.expressions.expressions import Pattern
class MockConstraint(Constraint):
def __init__(self, return_value, *variables, renaming=None):
self.return_va... | 37.45 | 132 | 0.64308 | 270 | 2,247 | 5.174074 | 0.274074 | 0.057266 | 0.053686 | 0.041518 | 0.143164 | 0.110236 | 0.073014 | 0.073014 | 0.073014 | 0 | 0 | 0.000592 | 0.248331 | 2,247 | 60 | 133 | 37.45 | 0.826525 | 0.009346 | 0 | 0.042553 | 0 | 0.021277 | 0.137581 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 1 | 0.212766 | false | 0 | 0.06383 | 0.085106 | 0.468085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfb21d4a9cdd85f0f62e4fd06045dd96b635904d | 11,617 | py | Python | habitat/extravehicular/migrations/0001_initial.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | 1 | 2021-02-01T19:04:39.000Z | 2021-02-01T19:04:39.000Z | habitat/extravehicular/migrations/0001_initial.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | habitat/extravehicular/migrations/0001_initial.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-29 18:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import habitat.timezone.models.martian_standard_time
class Migration(migrations.Migration):
... | 71.269939 | 308 | 0.634845 | 1,191 | 11,617 | 6.02183 | 0.157011 | 0.122699 | 0.07111 | 0.044618 | 0.639989 | 0.612103 | 0.571668 | 0.563581 | 0.535555 | 0.535555 | 0 | 0.009768 | 0.215718 | 11,617 | 162 | 309 | 71.709877 | 0.777412 | 0.005853 | 0 | 0.493506 | 1 | 0 | 0.228651 | 0.016196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032468 | 0 | 0.058442 | 0 | 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 |
cfb23450358399f117f247e51bf8ad70f91b84ed | 1,014 | py | Python | scraper/storage_spiders/vanphongphamanhkhoacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/vanphongphamanhkhoacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/vanphongphamanhkhoacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='clus']/h2[@class='nomargin title_sp']",
'price' : "//h2[@class='nomargin']/font",
'category' : "//div[@class='head_t... | 37.555556 | 83 | 0.642998 | 121 | 1,014 | 5.223141 | 0.603306 | 0.063291 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 0.12426 | 1,014 | 26 | 84 | 39 | 0.707207 | 0.118343 | 0 | 0 | 1 | 0 | 0.515152 | 0.35578 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.