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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
626da6082711a7b1faf08151b4a6a973a16e2b94 | 1,174 | py | Python | rdmo/questions/migrations/0008_data_migration.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 77 | 2016-08-09T11:40:20.000Z | 2022-03-06T11:03:26.000Z | rdmo/questions/migrations/0008_data_migration.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 377 | 2016-07-01T13:59:36.000Z | 2022-03-30T13:53:19.000Z | rdmo/questions/migrations/0008_data_migration.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 47 | 2016-06-23T11:32:19.000Z | 2022-03-01T11:34:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-01-19 16:53
from __future__ import unicode_literals
from django.db import migrations
from django.utils.text import slugify
def create_identifier(apps, schema_editor):
Catalog = apps.get_model('questions', 'Catalog')
Section = apps.get_model('question... | 25.521739 | 66 | 0.634583 | 146 | 1,174 | 4.986301 | 0.390411 | 0.065934 | 0.065934 | 0.115385 | 0.293956 | 0.293956 | 0.293956 | 0.293956 | 0.293956 | 0.293956 | 0 | 0.021469 | 0.246167 | 1,174 | 45 | 67 | 26.088889 | 0.80113 | 0.055366 | 0 | 0.354839 | 1 | 0 | 0.089512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 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 |
626e8e589fdc7d87108b5ad62d8b3a1922eb686c | 2,804 | py | Python | practice/src/decorator/class/cached_property.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | practice/src/decorator/class/cached_property.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | practice/src/decorator/class/cached_property.py | t10471/python | 75056454bfb49197eb44f6b4d6a1b0a0b4b408ec | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# © 2011 Christopher Arndt, MIT License
#
#引数ありクラスデコレータ
import time
import random
class cached_property(object):
"""Decorator for read-only properties evaluated only once within TTL period.
It can be used to created a cached property like this::
import random
# th... | 31.155556 | 80 | 0.632311 | 367 | 2,804 | 4.615804 | 0.343324 | 0.049587 | 0.023022 | 0.030106 | 0.186541 | 0.186541 | 0.186541 | 0.146399 | 0.146399 | 0.146399 | 0 | 0.017821 | 0.299572 | 2,804 | 89 | 81 | 31.505618 | 0.844196 | 0.10913 | 0 | 0.108108 | 0 | 0 | 0.02457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.189189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62700424ca8319e2dba8c0b4804ef8f775dcac48 | 808 | py | Python | tests/terraform/graph/db_connector/test_networkx_connector.py | graybrandonpfg/checkov | 3081a8560f6369465314ee8f4ac8a8ec01649d68 | [
"Apache-2.0"
] | null | null | null | tests/terraform/graph/db_connector/test_networkx_connector.py | graybrandonpfg/checkov | 3081a8560f6369465314ee8f4ac8a8ec01649d68 | [
"Apache-2.0"
] | 3 | 2020-02-07T19:51:40.000Z | 2022-03-21T05:06:29.000Z | tests/terraform/graph/db_connector/test_networkx_connector.py | graybrandonpfg/checkov | 3081a8560f6369465314ee8f4ac8a8ec01649d68 | [
"Apache-2.0"
] | null | null | null | import os
from unittest import TestCase
from checkov.common.graph.db_connectors.networkx.networkx_db_connector import NetworkxConnector
from checkov.terraform.graph_builder.local_graph import TerraformLocalGraph
from checkov.terraform.parser import Parser
TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__))
c... | 40.4 | 99 | 0.780941 | 97 | 808 | 6.175258 | 0.443299 | 0.066778 | 0.066778 | 0.083472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137376 | 808 | 19 | 100 | 42.526316 | 0.859397 | 0 | 0 | 0 | 0 | 0 | 0.032178 | 0.028465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6270d26e6e0e1f581bbdea1eb673f5438d13e501 | 775 | py | Python | doc/test.py | jinminhao/cloud-native-ernie | b4456d302fd79ffebaa6a565f83762cb46a36575 | [
"Apache-2.0"
] | 2 | 2020-09-02T07:53:15.000Z | 2020-09-08T01:17:34.000Z | doc/test.py | jinminhao/cloud-native-ernie | b4456d302fd79ffebaa6a565f83762cb46a36575 | [
"Apache-2.0"
] | null | null | null | doc/test.py | jinminhao/cloud-native-ernie | b4456d302fd79ffebaa6a565f83762cb46a36575 | [
"Apache-2.0"
] | 2 | 2020-09-02T07:53:21.000Z | 2020-09-07T08:12:52.000Z | import numpy as np
import paddle.fluid.dygraph as D
from ernie.tokenizing_ernie import ErnieTokenizer
from ernie.modeling_ernie import ErnieModel
D.guard().__enter__() # activate paddle `dygrpah` mode
model = ErnieModel.from_pretrained('ernie-1.0') # Try to get pretrained model from server, make sure you have netw... | 45.588235 | 131 | 0.745806 | 99 | 775 | 5.727273 | 0.606061 | 0.031746 | 0.067019 | 0.070547 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.154839 | 775 | 16 | 132 | 48.4375 | 0.858015 | 0.378065 | 0 | 0 | 0 | 0 | 0.061181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6273ec88e632a128f8c415204f765163e91fa958 | 361 | py | Python | preprocess/009_category/02/python_awesome.py | liyiliuxingyu/Data-preprocessing-goes-from-getting-started-to-real-world | c83fc7b92b52bc106d9a803a6fec24d6470889c3 | [
"BSD-3-Clause"
] | null | null | null | preprocess/009_category/02/python_awesome.py | liyiliuxingyu/Data-preprocessing-goes-from-getting-started-to-real-world | c83fc7b92b52bc106d9a803a6fec24d6470889c3 | [
"BSD-3-Clause"
] | null | null | null | preprocess/009_category/02/python_awesome.py | liyiliuxingyu/Data-preprocessing-goes-from-getting-started-to-real-world | c83fc7b92b52bc106d9a803a6fec24d6470889c3 | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
from preprocess.load_data.data_loader import load_hotel_reserve
customer_tb, hotel_tb, reserve_tb = load_hotel_reserve()
# 本书刊登内容如下
# 在哑变量化之前先转换为分类型
customer_tb['sex'] = pd.Categorical(customer_tb['sex'])
# 通过get_dummies函数实现sex的哑变量化
# 当drop_first为False时,生成分类值的所有种类的值的哑变量标志
dummy_vars = pd.get_dummi... | 30.083333 | 65 | 0.822715 | 49 | 361 | 5.714286 | 0.591837 | 0.142857 | 0.139286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083102 | 361 | 11 | 66 | 32.818182 | 0.845921 | 0.240997 | 0 | 0 | 0 | 0 | 0.033457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
62750c1128e71fbcd983e42d8088ffaecbffde1d | 605 | py | Python | fontfinder/__init__.py | MaxNoe/fontfinder | d97503d45d7e86433fb1283134e12870fdb7933d | [
"MIT"
] | null | null | null | fontfinder/__init__.py | MaxNoe/fontfinder | d97503d45d7e86433fb1283134e12870fdb7933d | [
"MIT"
] | null | null | null | fontfinder/__init__.py | MaxNoe/fontfinder | d97503d45d7e86433fb1283134e12870fdb7933d | [
"MIT"
] | null | null | null | from .fontconfig import has_fontconfig, query_fontconfig_database
__all__ = ['find_font', 'query_fontconfig_database']
if not has_fontconfig():
raise OSError(
'This module currently only supports systems using "fontconfig"'
)
def find_font(name, **kwargs):
try:
return query_fontconfig_da... | 30.25 | 77 | 0.642975 | 75 | 605 | 5 | 0.533333 | 0.12 | 0.184 | 0.090667 | 0.112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002151 | 0.231405 | 605 | 19 | 78 | 31.842105 | 0.804301 | 0 | 0 | 0 | 0 | 0 | 0.294215 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
627d78ffbe727850415492618dab63b63ccaf653 | 2,882 | py | Python | readthedocs/search/faceted_search.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 10 | 2019-05-21T03:00:40.000Z | 2022-03-12T11:24:39.000Z | readthedocs/search/faceted_search.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 12 | 2019-12-05T04:47:01.000Z | 2022-01-09T00:56:58.000Z | readthedocs/search/faceted_search.py | agarwalrounak/readthedocs.org | 4911600c230809bd6fb3585d1903121db2928ad6 | [
"MIT"
] | 5 | 2019-07-08T23:45:10.000Z | 2021-02-26T07:29:49.000Z | import logging
from elasticsearch_dsl import FacetedSearch, TermsFacet
from elasticsearch_dsl.query import Bool, SimpleQueryString
from readthedocs.core.utils.extend import SettingsOverrideObject
from readthedocs.search.documents import PageDocument, ProjectDocument
log = logging.getLogger(__name__)
class RTDFacet... | 29.71134 | 92 | 0.667245 | 336 | 2,882 | 5.60119 | 0.404762 | 0.029224 | 0.019129 | 0.019129 | 0.21254 | 0.159405 | 0.159405 | 0.159405 | 0.159405 | 0.159405 | 0 | 0.003207 | 0.24254 | 2,882 | 96 | 93 | 30.020833 | 0.85891 | 0.282096 | 0 | 0.136364 | 0 | 0 | 0.066324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
627e95e8899c7e44f20df86d314502353b8fbc7e | 16,563 | py | Python | BioNetGen-2.3.0/source_Atomizer/SBMLparser/merging/namingDatabase.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | BioNetGen-2.3.0/source_Atomizer/SBMLparser/merging/namingDatabase.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | BioNetGen-2.3.0/source_Atomizer/SBMLparser/merging/namingDatabase.py | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | null | null | null | import sqlite3
import utils.annotationExtractor
import utils.annotationResolver
import argparse
import os
from copy import copy
import pprint
import fnmatch
import progressbar
import enum
import utils.readBNGXML
Query = enum.Enum('Query', 'all organism species family')
organismFamilies = {'mammals': ['Homo sapiens', '... | 47.053977 | 223 | 0.659603 | 1,676 | 16,563 | 6.495227 | 0.173628 | 0.008819 | 0.013228 | 0.01433 | 0.323994 | 0.295609 | 0.285321 | 0.23296 | 0.228734 | 0.208525 | 0 | 0.009375 | 0.227193 | 16,563 | 351 | 224 | 47.188034 | 0.841094 | 0.056934 | 0 | 0.290196 | 0 | 0.031373 | 0.201775 | 0.021404 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003922 | 0.047059 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
627fc55c1f1c1508ef5e363da240086f7af4b0e1 | 2,053 | py | Python | src/codes/code.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 26 | 2015-02-06T02:59:17.000Z | 2021-11-15T18:13:27.000Z | src/codes/code.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-06-14T04:43:43.000Z | 2019-10-27T11:03:30.000Z | src/codes/code.py | cvxgrp/qcml | ff5e378cfeeebcf3f85a6e30c3449585f9af869f | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-03-14T07:40:56.000Z | 2019-12-30T23:11:36.000Z | from abc import ABCMeta
class Code(object):
__metclass__ = ABCMeta
""" Defines an object that can have code generated for any language.
"""
class Just(Code):
""" Just a single element to loop over.
"""
def __init__(self, x):
self.x = x
super(Just, self).__init__()
class LoopIn... | 27.373333 | 72 | 0.608865 | 262 | 2,053 | 4.480916 | 0.290076 | 0.053663 | 0.084327 | 0.057922 | 0.198467 | 0.198467 | 0.085179 | 0.085179 | 0.085179 | 0.085179 | 0 | 0 | 0.273746 | 2,053 | 74 | 73 | 27.743243 | 0.787391 | 0.204092 | 0 | 0.155556 | 1 | 0 | 0.001341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.022222 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
628118e6ebd62851ada25cdebd3da0fc59cc0fb7 | 9,335 | py | Python | sightseeingtech_passhub_api/models/address.py | BYMdevelopment/passhub-api-client-python | 13537fe9b03d91aa451eb81a86047d8f715df681 | [
"MIT"
] | null | null | null | sightseeingtech_passhub_api/models/address.py | BYMdevelopment/passhub-api-client-python | 13537fe9b03d91aa451eb81a86047d8f715df681 | [
"MIT"
] | null | null | null | sightseeingtech_passhub_api/models/address.py | BYMdevelopment/passhub-api-client-python | 13537fe9b03d91aa451eb81a86047d8f715df681 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
PassHub API
PassHub API documentation # noqa: E501
OpenAPI spec version: 1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Address(object):
"""NOTE: This class is auto generated by the swa... | 23.39599 | 190 | 0.530798 | 1,075 | 9,335 | 4.538605 | 0.107907 | 0.059028 | 0.127895 | 0.125436 | 0.385325 | 0.33183 | 0.329986 | 0.190408 | 0.103505 | 0.015577 | 0 | 0.031398 | 0.365399 | 9,335 | 398 | 191 | 23.454774 | 0.792201 | 0.331762 | 0 | 0.081395 | 1 | 0 | 0.051178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174419 | false | 0 | 0.017442 | 0 | 0.313953 | 0.011628 | 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 |
628295d895bd9288456b3f2e5a31623f3746a52b | 809 | py | Python | ctdmv/api/filters.py | alexpetralia/ctdmv | 74393c7c0c46fd5bd4023821c3afb66ac4c69e4b | [
"MIT"
] | 1 | 2020-05-28T16:28:31.000Z | 2020-05-28T16:28:31.000Z | ctdmv/api/filters.py | alexpetralia/ctdmv | 74393c7c0c46fd5bd4023821c3afb66ac4c69e4b | [
"MIT"
] | 9 | 2019-12-26T17:39:49.000Z | 2022-02-26T19:15:36.000Z | ctdmv/api/filters.py | alexpetralia/ctdmv | 74393c7c0c46fd5bd4023821c3afb66ac4c69e4b | [
"MIT"
] | null | null | null | from django_filters.rest_framework import (
DjangoFilterBackend, FilterSet, OrderingFilter, filters
)
from ctdmv.models import WaitEntry
class WaitEntryFilter(FilterSet):
service = filters.CharFilter(field_name="service__name", lookup_expr="icontains")
branch = filters.CharFilter(field_name="branch__name... | 35.173913 | 85 | 0.718171 | 92 | 809 | 6.097826 | 0.532609 | 0.048128 | 0.078431 | 0.092692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003017 | 0.18047 | 809 | 22 | 86 | 36.772727 | 0.843137 | 0.086527 | 0 | 0 | 0 | 0 | 0.137063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6284b929af0a01615c53b0e9c3b4d435e133d686 | 506 | py | Python | accounts/referrals/migrations/0005_pointcategory_repeating.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | 2 | 2022-01-24T23:30:18.000Z | 2022-01-26T00:21:22.000Z | accounts/referrals/migrations/0005_pointcategory_repeating.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | accounts/referrals/migrations/0005_pointcategory_repeating.py | Revibe-Music/core-services | 6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2020-06-04 18:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('referrals', '0004_point_pointcategory'),
]
operations = [
migrations.AddField(
model_name='pointcategory',
name='repea... | 26.631579 | 161 | 0.656126 | 55 | 506 | 5.945455 | 0.818182 | 0.079511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046997 | 0.243083 | 506 | 18 | 162 | 28.111111 | 0.806789 | 0.08498 | 0 | 0 | 1 | 0 | 0.286334 | 0.052061 | 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 |
6286f80e04c5e23ec9d57302e57aa6be1889af54 | 402 | py | Python | additional_codes/migrations/0004_auto_20210419_1247.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 14 | 2020-03-25T11:11:29.000Z | 2022-03-08T20:41:33.000Z | additional_codes/migrations/0004_auto_20210419_1247.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 352 | 2020-03-25T10:42:09.000Z | 2022-03-30T15:32:26.000Z | additional_codes/migrations/0004_auto_20210419_1247.py | uktrade/tamato | 4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca | [
"MIT"
] | 3 | 2020-08-06T12:22:41.000Z | 2022-01-16T11:51:12.000Z | # Generated by Django 3.1 on 2021-04-19 12:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("additional_codes", "0003_auto_20210219_0955"),
]
operations = [
migrations.RenameField(
model_name="additionalcodedescription",
... | 21.157895 | 56 | 0.626866 | 41 | 402 | 5.926829 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10274 | 0.273632 | 402 | 18 | 57 | 22.333333 | 0.729452 | 0.106965 | 0 | 0 | 1 | 0 | 0.2493 | 0.196078 | 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 |
6289d46e27d79652ac209fda7705f16706a0d419 | 422 | py | Python | study_bot/cogs/misc.py | kasu77/studyadda | f29fa52a7d7dc60a92ee6c960be8dd2ba095fc32 | [
"Apache-2.0"
] | null | null | null | study_bot/cogs/misc.py | kasu77/studyadda | f29fa52a7d7dc60a92ee6c960be8dd2ba095fc32 | [
"Apache-2.0"
] | null | null | null | study_bot/cogs/misc.py | kasu77/studyadda | f29fa52a7d7dc60a92ee6c960be8dd2ba095fc32 | [
"Apache-2.0"
] | null | null | null | from discord.ext.commands import Cog, command, Context
from discord import Embed, Color
class Misc(Cog):
@command()
async def code(self, ctx: Context):
"""Get the link to view my source code"""
await ctx.send(embed=Embed(
title="Study Adda bot",
description="**GitHub p... | 30.142857 | 94 | 0.616114 | 55 | 422 | 4.727273 | 0.709091 | 0.084615 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255924 | 422 | 14 | 95 | 30.142857 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0.212042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
628f16a65a45c699c07d1e5141f4b6669b72c86d | 12,442 | py | Python | sdk/python/pulumi_aws_native/ssmincidents/response_plan.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/ssmincidents/response_plan.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/ssmincidents/response_plan.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 42.319728 | 138 | 0.646681 | 1,322 | 12,442 | 5.827534 | 0.111195 | 0.09852 | 0.07892 | 0.068146 | 0.6642 | 0.611111 | 0.532321 | 0.446262 | 0.395639 | 0.357217 | 0 | 0.000106 | 0.241119 | 12,442 | 293 | 139 | 42.464164 | 0.815823 | 0.184376 | 0 | 0.410526 | 1 | 0 | 0.143153 | 0.057738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147368 | false | 0.005263 | 0.042105 | 0.021053 | 0.284211 | 0 | 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 |
628f310aa2a99c2d1adb3cc7c777e785dba69661 | 2,787 | py | Python | manage.py | dengjinshan/bbs | b61ae9839d3b72ffba7adb94ab4327ecd78be14e | [
"MIT"
] | null | null | null | manage.py | dengjinshan/bbs | b61ae9839d3b72ffba7adb94ab4327ecd78be14e | [
"MIT"
] | 5 | 2021-03-19T02:01:00.000Z | 2022-03-11T23:52:57.000Z | manage.py | dengjinshan/bbs | b61ae9839d3b72ffba7adb94ab4327ecd78be14e | [
"MIT"
] | null | null | null | #coding:utf-8
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from bbs import create_app
from exts import db
from apps.cms import models as cms_models
from apps.cms.models import CMSPermission, CMSRole
from apps.front import models as front_models
from apps.models import BannerModel
... | 32.034483 | 94 | 0.685684 | 331 | 2,787 | 5.679758 | 0.296073 | 0.055319 | 0.031915 | 0.030319 | 0.271809 | 0.256383 | 0.226596 | 0.193617 | 0.193617 | 0.193617 | 0 | 0.002161 | 0.169717 | 2,787 | 87 | 95 | 32.034483 | 0.810285 | 0.03624 | 0 | 0.230769 | 0 | 0 | 0.094438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.092308 | 0.123077 | 0 | 0.2 | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
654f026cb8abf9182c2d8f77ddf6d7538e751aab | 1,357 | py | Python | language_acts/cms/migrations/0064_bibliographyentry_glossaryterm.py | kingsdigitallab/language-acts-docker | 5597804d16604b525795d3cde3d968028807d7e0 | [
"MIT"
] | null | null | null | language_acts/cms/migrations/0064_bibliographyentry_glossaryterm.py | kingsdigitallab/language-acts-docker | 5597804d16604b525795d3cde3d968028807d7e0 | [
"MIT"
] | null | null | null | language_acts/cms/migrations/0064_bibliographyentry_glossaryterm.py | kingsdigitallab/language-acts-docker | 5597804d16604b525795d3cde3d968028807d7e0 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-10-14 13:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0063_rich_text_headings'),
]
operations = [
migrations.CreateModel(
name='BibliographyEntry',
fields=[
... | 32.309524 | 75 | 0.501842 | 114 | 1,357 | 5.807018 | 0.464912 | 0.099698 | 0.108761 | 0.145015 | 0.583082 | 0.41994 | 0.41994 | 0.41994 | 0.41994 | 0.41994 | 0 | 0.037736 | 0.375092 | 1,357 | 41 | 76 | 33.097561 | 0.742925 | 0.033898 | 0 | 0.444444 | 1 | 0 | 0.163484 | 0.017571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65525444d1c18962d8d65fa788eb43f7c6a827b9 | 4,663 | py | Python | h2o-py/h2o/model/model_base.py | suhassatish/h2o-dev | cb82974b93193b9fe6df4db5caa44016f83880c4 | [
"Apache-2.0"
] | null | null | null | h2o-py/h2o/model/model_base.py | suhassatish/h2o-dev | cb82974b93193b9fe6df4db5caa44016f83880c4 | [
"Apache-2.0"
] | null | null | null | h2o-py/h2o/model/model_base.py | suhassatish/h2o-dev | cb82974b93193b9fe6df4db5caa44016f83880c4 | [
"Apache-2.0"
] | null | null | null | """
This module implements the base model class. All model things inherit from this class.
"""
import h2o
from . import H2OFrame
from . import H2OVec
from . import H2OTwoDimTable
from . import H2OConnection
class ModelBase(object):
def __init__(self, dest_key, model_json, metrics_class):
self._key = dest_key
... | 35.869231 | 129 | 0.686468 | 675 | 4,663 | 4.555556 | 0.248889 | 0.085854 | 0.028618 | 0.026016 | 0.301463 | 0.259837 | 0.224715 | 0.213659 | 0.213659 | 0.190894 | 0 | 0.010566 | 0.20845 | 4,663 | 129 | 130 | 36.147287 | 0.822541 | 0.148402 | 0 | 0.230769 | 0 | 0 | 0.126756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65570792256bb6911ddd8853e1e37b2d4832ac0d | 1,402 | py | Python | frontend/src/billing/admin.py | ANRGUSC/I3-core | f4da02a5b475f400d41afd453bfbed6cd53ba087 | [
"BSD-3-Clause"
] | 11 | 2020-01-30T22:26:19.000Z | 2022-02-18T19:47:27.000Z | frontend/src/billing/admin.py | ANRGUSC/I3-core | f4da02a5b475f400d41afd453bfbed6cd53ba087 | [
"BSD-3-Clause"
] | 11 | 2020-02-13T19:16:40.000Z | 2022-03-12T00:08:46.000Z | frontend/src/billing/admin.py | ANRGUSC/I3-core | f4da02a5b475f400d41afd453bfbed6cd53ba087 | [
"BSD-3-Clause"
] | 4 | 2020-02-26T22:34:29.000Z | 2021-09-04T07:39:48.000Z | from django.contrib import admin
# Register your models here.
from .models import Transaction
from .models import ItemCount, RestrictedRequest
class TransactionAdmin(admin.ModelAdmin):
# inlines = [ThumbnailInline]
list_display = ["__unicode__", "product", "buyer", "seller", "quantity", "price", "timestamp"... | 29.829787 | 113 | 0.68331 | 132 | 1,402 | 7.015152 | 0.325758 | 0.048596 | 0.071274 | 0.11987 | 0.37689 | 0.37689 | 0.37689 | 0.339093 | 0.272138 | 0.12743 | 0 | 0 | 0.180456 | 1,402 | 46 | 114 | 30.478261 | 0.805918 | 0.199001 | 0 | 0.130435 | 0 | 0 | 0.211141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
655f5611874ff34561cc681a5abd0da771fd98c6 | 336 | py | Python | astropy/cosmology/funcs/__init__.py | JefftheCloudDog/astropy | 508fc677f96471c5b29ce47eb79aedf4204d238f | [
"BSD-3-Clause"
] | 1 | 2022-03-27T18:53:58.000Z | 2022-03-27T18:53:58.000Z | astropy/cosmology/funcs/__init__.py | JefftheCloudDog/astropy | 508fc677f96471c5b29ce47eb79aedf4204d238f | [
"BSD-3-Clause"
] | null | null | null | astropy/cosmology/funcs/__init__.py | JefftheCloudDog/astropy | 508fc677f96471c5b29ce47eb79aedf4204d238f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Functions for `astropy.cosmology`."""
from .comparison import cosmology_equal
# _z_at_scalar_value is imported for backards compat
from .optimize import _z_at_scalar_value, z_at_value # F401, F403
__all__ = ["z_at_value", "co... | 30.545455 | 66 | 0.752976 | 50 | 336 | 4.7 | 0.66 | 0.051064 | 0.076596 | 0.119149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.136905 | 336 | 10 | 67 | 33.6 | 0.782759 | 0.53869 | 0 | 0 | 0 | 0 | 0.171233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
656137ed2b3d5e2f49f1175e3e3d24c75e80f004 | 636 | py | Python | Others/code_festival/code-formula-2014-final/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | Others/code_festival/code-formula-2014-final/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | Others/code_festival/code-formula-2014-final/c.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
def main():
s = input().split()
ans = list()
for si in s:
if '@' in si:
is_at = False
string = ''
for sii in si:
if sii == '@':
if string != '':
ans.append(strin... | 20.516129 | 49 | 0.33805 | 60 | 636 | 3.4 | 0.516667 | 0.058824 | 0.107843 | 0.137255 | 0.254902 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.525157 | 636 | 30 | 50 | 21.2 | 0.672185 | 0.033019 | 0 | 0.3 | 0 | 0 | 0.022298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.05 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
656307713cd4130c14e9faef3b0c9d3ee0939636 | 1,825 | py | Python | src/commands/move.py | buckets1337/UOMUMM | b43e88d34fa967029e2206dd8f8558e2fa1bbdfc | [
"Apache-2.0"
] | null | null | null | src/commands/move.py | buckets1337/UOMUMM | b43e88d34fa967029e2206dd8f8558e2fa1bbdfc | [
"Apache-2.0"
] | null | null | null | src/commands/move.py | buckets1337/UOMUMM | b43e88d34fa967029e2206dd8f8558e2fa1bbdfc | [
"Apache-2.0"
] | null | null | null | # move.py
# handles movement in the world
def toRoom(server, player, command):
'''
moves player from their currentRoom to newRoom
'''
newRoom = None
#print "cmd:" + str(command)
#print "cmd0:" + str(command[0])
#print str(player.currentRoom.orderedExits)
# args = <some int>
if int(command[0]) <= len(player.cu... | 32.589286 | 109 | 0.716712 | 241 | 1,825 | 5.410788 | 0.307054 | 0.208589 | 0.177914 | 0.07362 | 0.319785 | 0.319785 | 0.255368 | 0.096626 | 0.096626 | 0.096626 | 0 | 0.007083 | 0.149041 | 1,825 | 55 | 110 | 33.181818 | 0.832582 | 0.321096 | 0 | 0.214286 | 0 | 0 | 0.072607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.071429 | 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 |
6567a39dbf11d8334dd3d8bdaa12ae9c808da22f | 18,444 | py | Python | app/models.py | graypay/trade_journal | a2489dad44ad93861c08e6a9d4256e67efbd5c14 | [
"MIT"
] | 2 | 2021-07-28T17:56:55.000Z | 2021-12-07T23:06:42.000Z | app/models.py | graypay/trade_journal | a2489dad44ad93861c08e6a9d4256e67efbd5c14 | [
"MIT"
] | null | null | null | app/models.py | graypay/trade_journal | a2489dad44ad93861c08e6a9d4256e67efbd5c14 | [
"MIT"
] | null | null | null | from app import db, login
import uuid
import requests
import re
from datetime import datetime, date
from sqlalchemy.orm import backref
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin, current_user
NAMESPACE_GPFIX = uuid.uuid5(uuid.NAMESPACE_DNS, "gpfix.net")
... | 35.883268 | 126 | 0.626274 | 2,310 | 18,444 | 4.861905 | 0.102597 | 0.055561 | 0.069451 | 0.033123 | 0.556941 | 0.500846 | 0.463627 | 0.418485 | 0.3818 | 0.358205 | 0 | 0.007898 | 0.238018 | 18,444 | 514 | 127 | 35.883268 | 0.791234 | 0.074821 | 0 | 0.41092 | 1 | 0 | 0.107128 | 0.001234 | 0 | 0 | 0 | 0.001946 | 0 | 1 | 0.12069 | false | 0.028736 | 0.022989 | 0.04023 | 0.491379 | 0 | 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 |
656bee2093cffabbc6baec8882c59b60fa4b296c | 2,383 | py | Python | moogle/utils/solr.py | nimiq/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | 4 | 2018-06-25T15:57:26.000Z | 2021-06-07T23:53:31.000Z | moogle/utils/solr.py | puntonim/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | null | null | null | moogle/utils/solr.py | puntonim/moogle-project | f1fcac13fba43a6e93baf172571003359f4b725c | [
"Apache-2.0"
] | 1 | 2017-06-17T09:53:21.000Z | 2017-06-17T09:53:21.000Z | from mysolr import Solr as MySolr
from django.conf import settings
from .exceptions import SolrResponseError
from tokens.models import Provider
CORE_NAMES = {
Provider.NAME_TWITTER: 'twitter',
Provider.NAME_FACEBOOK: 'facebook',
Provider.NAME_DROPBOX: 'dropbox'
}
def escape_solr_query(query):
"""
... | 29.7875 | 96 | 0.576584 | 269 | 2,383 | 4.962825 | 0.408922 | 0.037453 | 0.033708 | 0.031461 | 0.050936 | 0.050936 | 0.050936 | 0.050936 | 0 | 0 | 0 | 0.006467 | 0.286194 | 2,383 | 80 | 97 | 29.7875 | 0.778366 | 0.280319 | 0 | 0.047619 | 0 | 0 | 0.056329 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
656c0d6be6dcc47b807793a7e97382ed7f67e56a | 6,674 | py | Python | tests/benchmarks/recipe-577834-1.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2019-09-09T19:27:43.000Z | 2019-09-09T19:27:43.000Z | tests/benchmarks/recipe-577834-1.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | 1 | 2020-07-11T17:53:56.000Z | 2020-07-11T17:53:56.000Z | tests/benchmarks/recipe-577834-1.py | juanfra684/Nuitka | 0e276895fadabefb598232f2ccf8cc7736c9a85b | [
"Apache-2.0"
] | null | null | null | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | 39.964072 | 90 | 0.547498 | 1,165 | 6,674 | 2.951931 | 0.128755 | 0.05932 | 0.045362 | 0.05583 | 0.600174 | 0.589125 | 0.571678 | 0.536784 | 0.536784 | 0.532713 | 0 | 0.034561 | 0.33668 | 6,674 | 166 | 91 | 40.204819 | 0.742263 | 0.153581 | 0 | 0.729508 | 0 | 0 | 0.008184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139344 | false | 0.016393 | 0.008197 | 0 | 0.172131 | 0.008197 | 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 |
656d67bd0bcb94dbe15b87a826f4a29b2685ef28 | 1,786 | py | Python | python/tests/test_random.py | mbp28/ecole | e9522ef138cd52de3859b15433b02e07cd43f2b2 | [
"BSD-3-Clause"
] | 234 | 2019-11-22T15:50:52.000Z | 2022-03-28T15:03:02.000Z | python/tests/test_random.py | mbp28/ecole | e9522ef138cd52de3859b15433b02e07cd43f2b2 | [
"BSD-3-Clause"
] | 179 | 2019-12-04T19:19:04.000Z | 2022-03-24T14:20:01.000Z | python/tests/test_random.py | mbp28/ecole | e9522ef138cd52de3859b15433b02e07cd43f2b2 | [
"BSD-3-Clause"
] | 47 | 2020-01-29T19:48:24.000Z | 2022-03-31T08:42:09.000Z | import copy
import pickle
import ecole
def test_RandomEngine():
"""Test bindings of the RandomEngine."""
assert ecole.RandomEngine.min_seed < ecole.RandomEngine.max_seed
random_engine = ecole.RandomEngine(42)
rand_val_1 = random_engine()
assert isinstance(rand_val_1, int)
random_engine.seed(... | 29.278689 | 69 | 0.74692 | 243 | 1,786 | 5.139918 | 0.18107 | 0.365092 | 0.129704 | 0.134508 | 0.507606 | 0.432346 | 0.432346 | 0.279424 | 0.279424 | 0.279424 | 0 | 0.019515 | 0.167973 | 1,786 | 60 | 70 | 29.766667 | 0.820996 | 0.141097 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 1 | 0.157895 | false | 0 | 0.078947 | 0 | 0.236842 | 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 |
6576046e941f94738875cb57fec31bdea32c8a28 | 633 | py | Python | core/urls.py | AhteshamSid/News-Scrapper | 956787e96239f2fdb279efa36e9d7a41fc4327e7 | [
"MIT"
] | null | null | null | core/urls.py | AhteshamSid/News-Scrapper | 956787e96239f2fdb279efa36e9d7a41fc4327e7 | [
"MIT"
] | null | null | null | core/urls.py | AhteshamSid/News-Scrapper | 956787e96239f2fdb279efa36e9d7a41fc4327e7 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import HomeView, StatisticsView, NdtvView, QtvView
app_name = 'core'
urlpatterns = [
path('', HomeView.as_view(), name="home"),
path('ndtv/', NdtvView.as_view(), name="ndtv"),
path('qtv/', QtvView.as_view(), name="qtv"),
path('chart-1/', StatisticsV... | 37.235294 | 85 | 0.684044 | 88 | 633 | 4.647727 | 0.386364 | 0.08802 | 0.127139 | 0.176039 | 0.107579 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014787 | 0.14534 | 633 | 16 | 86 | 39.5625 | 0.74122 | 0 | 0 | 0 | 0 | 0 | 0.136143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
6585a4a98c040018d543d833cb90ed8a6da54225 | 453 | py | Python | backend/lm_backend/api/__init__.py | omnivector-solutions/license-manager | 9eb1e4569d692aef83a2388096e7413bc010be61 | [
"MIT"
] | 2 | 2020-11-15T22:54:39.000Z | 2022-02-15T07:58:55.000Z | backend/lm_backend/api/__init__.py | omnivector-solutions/license-manager | 9eb1e4569d692aef83a2388096e7413bc010be61 | [
"MIT"
] | 2 | 2022-02-18T19:36:45.000Z | 2022-03-16T23:07:44.000Z | backend/lm_backend/api/__init__.py | omnivector-solutions/license-manager | 9eb1e4569d692aef83a2388096e7413bc010be61 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from lm_backend.api.booking import router as router_booking
from lm_backend.api.config import router as router_config
from lm_backend.api.license import router as router_license
api_v1 = APIRouter()
api_v1.include_router(router_license, prefix="/license", tags=["License"])
api_v1.include... | 41.181818 | 74 | 0.807947 | 67 | 453 | 5.223881 | 0.238806 | 0.057143 | 0.111429 | 0.137143 | 0.205714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009592 | 0.07947 | 453 | 10 | 75 | 45.3 | 0.829736 | 0 | 0 | 0 | 0 | 0 | 0.094923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
658710e24d3b1113dd5caf2f2f3ae854244c930d | 714 | py | Python | todoapi/migrations/0017_note.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | null | null | null | todoapi/migrations/0017_note.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | null | null | null | todoapi/migrations/0017_note.py | Faysa1/Gestion-Tickets-Taches | eeba92df59c3217d15b02a5bb1ed3c6e673537a4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.7 on 2020-02-17 19:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todoapi', '0016_auto_20200217_2022'),
]
operations = [
migrations.CreateModel(
name='note',
fields=[
... | 29.75 | 115 | 0.546218 | 71 | 714 | 5.338028 | 0.690141 | 0.079156 | 0.094987 | 0.126649 | 0.137203 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071869 | 0.317927 | 714 | 23 | 116 | 31.043478 | 0.706366 | 0.063025 | 0 | 0 | 1 | 0 | 0.108696 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
658c325be3fd7f6ebce7d01bbb111ae9569e1814 | 1,691 | py | Python | python/Experiment/ExperimentsPerNSupport.py | gingi99/research_dr | 584f66738f345706e3cba1ae9cc1f417d6a0e72e | [
"MIT"
] | 1 | 2016-09-08T12:16:01.000Z | 2016-09-08T12:16:01.000Z | python/Experiment/ExperimentsPerNSupport.py | gingi99/research_dr | 584f66738f345706e3cba1ae9cc1f417d6a0e72e | [
"MIT"
] | null | null | null | python/Experiment/ExperimentsPerNSupport.py | gingi99/research_dr | 584f66738f345706e3cba1ae9cc1f417d6a0e72e | [
"MIT"
] | null | null | null | # coding: utf-8
# python 3.5
from itertools import product
from sklearn.metrics import accuracy_score
from multiprocessing import Pool
from multiprocessing import freeze_support
import numpy as np
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath("__file__"))+'/../MLEM2')
#sys.path.append('/Users/ook... | 30.196429 | 144 | 0.642224 | 202 | 1,691 | 5.188119 | 0.450495 | 0.028626 | 0.049618 | 0.028626 | 0.160305 | 0.160305 | 0.160305 | 0.160305 | 0.160305 | 0.082061 | 0 | 0.022161 | 0.146067 | 1,691 | 55 | 145 | 30.745455 | 0.703601 | 0.305736 | 0 | 0 | 0 | 0 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.466667 | 0 | 0.5 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
659125223696df3f3eb216b6d5c6fcd36b97cc3f | 2,005 | py | Python | train.py | aalshaib/Flower-Image-Classifier | 465030c017d97bc57ab21d1cbb056a42472f06ee | [
"CNRI-Python"
] | null | null | null | train.py | aalshaib/Flower-Image-Classifier | 465030c017d97bc57ab21d1cbb056a42472f06ee | [
"CNRI-Python"
] | null | null | null | train.py | aalshaib/Flower-Image-Classifier | 465030c017d97bc57ab21d1cbb056a42472f06ee | [
"CNRI-Python"
] | null | null | null | # Imports here
import matplotlib.pyplot as plt
import torch
from torch import nn
import numpy as np
from torch import optim
import torch.nn.functional as F
import torchvision
from PIL import Image
import time
from torchvision import datasets, transforms, models
import argparse
import flower
parser = argparse.Argumen... | 36.454545 | 120 | 0.748628 | 267 | 2,005 | 5.430712 | 0.284644 | 0.062069 | 0.117241 | 0.049655 | 0.049655 | 0.049655 | 0 | 0 | 0 | 0 | 0 | 0.017016 | 0.120698 | 2,005 | 55 | 121 | 36.454545 | 0.805445 | 0.005985 | 0 | 0 | 0 | 0 | 0.137048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
659156f48a9c1b705d49602f39ef075195b9e6f0 | 596 | py | Python | points.py | euzeb73/Trace | ae16f0b29ce387a2ab1cbd981da87b31568fca29 | [
"MIT"
] | null | null | null | points.py | euzeb73/Trace | ae16f0b29ce387a2ab1cbd981da87b31568fca29 | [
"MIT"
] | null | null | null | points.py | euzeb73/Trace | ae16f0b29ce387a2ab1cbd981da87b31568fca29 | [
"MIT"
] | null | null | null | # from zone import Zone
from position import Position
# Chalet
chalet=Position(45.524949 , 6.791012).get_xy()
#Autour de la bosse de l'étroit
sortie_foret=Position(45.521279 , 6.77825).get_xy()
sommet_bosse=Position(45.518665 , 6.76557).get_xy()
fin_descente=Position(45.524455 , 6.762408).get_xy() #sous le... | 39.733333 | 96 | 0.751678 | 100 | 596 | 4.33 | 0.51 | 0.184758 | 0.069284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222433 | 0.11745 | 596 | 15 | 97 | 39.733333 | 0.60076 | 0.208054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6591a43fb377093bacf3d7342a9fba7323486713 | 680 | py | Python | checkapache/cli.py | GedLawrenson/checkApache | f8b90aa68f85903ad7141b31b24d7cfe2da2fccf | [
"MIT"
] | null | null | null | checkapache/cli.py | GedLawrenson/checkApache | f8b90aa68f85903ad7141b31b24d7cfe2da2fccf | [
"MIT"
] | null | null | null | checkapache/cli.py | GedLawrenson/checkApache | f8b90aa68f85903ad7141b31b24d7cfe2da2fccf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import click
import argparse
def _display_menu():
print 'TBC'
def _run_update():
return ('TBC')
# Backup the file
# Do the replacements
# Inform user of backup + new file name
@click.command()
@click.option('--file', help='Full path to an Apache httpd.conf file.')
@cli... | 21.25 | 75 | 0.65 | 92 | 680 | 4.619565 | 0.619565 | 0.051765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001845 | 0.202941 | 680 | 31 | 76 | 21.935484 | 0.782288 | 0.307353 | 0 | 0 | 0 | 0 | 0.219626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65945e18029d67dd49d5c54c52fd8d395209d5ee | 8,069 | py | Python | src/oci/devops/models/create_build_run_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/devops/models/create_build_run_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/devops/models/create_build_run_details.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 35.70354 | 245 | 0.670219 | 944 | 8,069 | 5.493644 | 0.174788 | 0.035866 | 0.15619 | 0.071732 | 0.650983 | 0.541651 | 0.440995 | 0.270343 | 0.256845 | 0.256845 | 0 | 0.002974 | 0.249845 | 8,069 | 225 | 246 | 35.862222 | 0.853792 | 0.567357 | 0 | 0.084507 | 0 | 0 | 0.120944 | 0.009587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225352 | false | 0 | 0.028169 | 0.028169 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6597c2a816244fa40bc51f3482a72383510a6bfe | 2,256 | py | Python | server/ripoff9gag/api_comments.py | secret-transaction/RipOff9Gag | 49b13c047137b9fad182ebfc6097ccfbeb35a289 | [
"Apache-2.0"
] | 1 | 2017-11-05T04:05:46.000Z | 2017-11-05T04:05:46.000Z | server/ripoff9gag/api_comments.py | secret-transaction/RipOff9Gag | 49b13c047137b9fad182ebfc6097ccfbeb35a289 | [
"Apache-2.0"
] | null | null | null | server/ripoff9gag/api_comments.py | secret-transaction/RipOff9Gag | 49b13c047137b9fad182ebfc6097ccfbeb35a289 | [
"Apache-2.0"
] | null | null | null | import endpoints
import logging
from api_common import *
from protorpc import messages
from protorpc import remote
'''
Endpoint DTOs
'''
class UserComment(messages.Message):
commentId = messages.StringField(1)
postId = messages.StringField(2)
points = messages.IntegerField(3)
message = messages.Strin... | 30.486486 | 115 | 0.72828 | 234 | 2,256 | 6.995727 | 0.354701 | 0.104459 | 0.04887 | 0.047648 | 0.271228 | 0.235797 | 0.131949 | 0.131949 | 0.131949 | 0.131949 | 0 | 0.009484 | 0.158688 | 2,256 | 73 | 116 | 30.90411 | 0.853003 | 0 | 0 | 0.181818 | 0 | 0 | 0.088528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.113636 | 0 | 0.795455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
659fedb00e8b974add02392322162a173865f931 | 1,015 | py | Python | o4ocart/draw/migrations/0001_initial.py | kangbada0728/O4O_Cart | d719adc26cdfd419853e0bb0eed12ef15135396e | [
"Apache-2.0"
] | null | null | null | o4ocart/draw/migrations/0001_initial.py | kangbada0728/O4O_Cart | d719adc26cdfd419853e0bb0eed12ef15135396e | [
"Apache-2.0"
] | null | null | null | o4ocart/draw/migrations/0001_initial.py | kangbada0728/O4O_Cart | d719adc26cdfd419853e0bb0eed12ef15135396e | [
"Apache-2.0"
] | 1 | 2020-07-14T01:31:30.000Z | 2020-07-14T01:31:30.000Z | # Generated by Django 2.0.5 on 2018-06-09 13:03
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('cart', '0001_initial'),
]
operations = [
migrations.Create... | 32.741935 | 137 | 0.604926 | 109 | 1,015 | 5.495413 | 0.559633 | 0.110184 | 0.095159 | 0.073456 | 0.210351 | 0.210351 | 0.210351 | 0.210351 | 0.210351 | 0.210351 | 0 | 0.025367 | 0.262069 | 1,015 | 30 | 138 | 33.833333 | 0.774366 | 0.044335 | 0 | 0 | 1 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 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 |
65a8b43aa6e9bbb19e64d3a392c580ad9720f28b | 776 | py | Python | setup.py | noisy/-python-social-auth-steemconnect | 087299895bceab587b30740c38fce8d5dbecddb7 | [
"MIT"
] | 8 | 2017-09-14T17:10:25.000Z | 2018-06-30T00:32:16.000Z | setup.py | noisy/-python-social-auth-steemconnect | 087299895bceab587b30740c38fce8d5dbecddb7 | [
"MIT"
] | 1 | 2017-09-14T13:54:59.000Z | 2017-09-14T16:49:05.000Z | setup.py | noisy/-python-social-auth-steemconnect | 087299895bceab587b30740c38fce8d5dbecddb7 | [
"MIT"
] | 1 | 2018-09-11T06:10:09.000Z | 2018-09-11T06:10:09.000Z | from setuptools import setup, find_packages
setup(
name='social-auth-steemconnect',
version='0.0.3',
packages=find_packages(),
author='Krzysztof @noisy Szumny',
author_email='noisy.pl@gmail.com',
description='SteemConnect backend for python-social-auth.',
long_description=open('README.md')... | 31.04 | 80 | 0.659794 | 86 | 776 | 5.895349 | 0.651163 | 0.118343 | 0.094675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011272 | 0.199742 | 776 | 24 | 81 | 32.333333 | 0.805153 | 0 | 0 | 0 | 0 | 0 | 0.527062 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65aa6d1f4382bc4887c52e0b522f980530519beb | 13,806 | py | Python | envinorma/from_legifrance/numbering_exceptions.py | Envinorma/envinorma-data | 85c00abc1af9a3b14912229b0789a0d1d5ae7b69 | [
"MIT"
] | 4 | 2020-12-11T09:40:12.000Z | 2022-03-08T13:43:35.000Z | envinorma/from_legifrance/numbering_exceptions.py | Envinorma/envinorma-data | 85c00abc1af9a3b14912229b0789a0d1d5ae7b69 | [
"MIT"
] | 104 | 2020-12-10T15:20:13.000Z | 2021-09-30T13:05:00.000Z | envinorma/from_legifrance/numbering_exceptions.py | Envinorma/envinorma-data | 85c00abc1af9a3b14912229b0789a0d1d5ae7b69 | [
"MIT"
] | null | null | null | MAX_PREFIX_LEN = 60
EXCEPTION_PREFIXES = {
"1. Une attestation de la maîtrise foncière sur l'emprise de ": None,
"2. Un plan de l'exploitation à une échelle adaptée à la supe": None,
'3. Une note succincte indiquant la nature de la substance ex': None,
'4. Pour les carrières visées à la rubrique 2510-6,... | 66.375 | 86 | 0.679415 | 2,176 | 13,806 | 4.31204 | 0.290901 | 0.026857 | 0.009698 | 0.009592 | 0.214324 | 0.169562 | 0.139934 | 0.131621 | 0.131621 | 0.114782 | 0 | 0.028569 | 0.206432 | 13,806 | 207 | 87 | 66.695652 | 0.827309 | 0 | 0 | 0.009662 | 0 | 0.004831 | 0.801463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.019324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65ab865e11cb1e5f9f6174980d1c7b0d2148953b | 9,503 | py | Python | utils/python_data_layers.py | LisaAnne/DCC | a885b5ddc029f98c2cedbf1b055e5ad3dde5e352 | [
"BSD-2-Clause"
] | 78 | 2016-06-06T09:18:51.000Z | 2021-12-21T09:07:23.000Z | utils/python_data_layers.py | LisaAnne/DCC | a885b5ddc029f98c2cedbf1b055e5ad3dde5e352 | [
"BSD-2-Clause"
] | null | null | null | utils/python_data_layers.py | LisaAnne/DCC | a885b5ddc029f98c2cedbf1b055e5ad3dde5e352 | [
"BSD-2-Clause"
] | 34 | 2016-06-27T02:56:28.000Z | 2022-01-30T11:31:19.000Z | #!/usr/bin/env python
import pdb
import sys
try:
from config import *
except:
raise Exception("Please setup config file (see instructions)")
sys.path.append(pycaffe_dir)
import caffe
import io
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
import scipy.misc
import time
import glob
import ... | 32.433447 | 153 | 0.698621 | 1,353 | 9,503 | 4.689579 | 0.181079 | 0.036879 | 0.036879 | 0.018755 | 0.304492 | 0.2487 | 0.147991 | 0.113633 | 0.089046 | 0.077069 | 0 | 0.003354 | 0.184363 | 9,503 | 292 | 154 | 32.544521 | 0.81525 | 0.08029 | 0 | 0.22973 | 0 | 0 | 0.084843 | 0 | 0 | 0 | 0 | 0 | 0.031532 | 0 | null | null | 0.018018 | 0.099099 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65aed4847ed069ee25dd1e1f8fa7a70fd9fb1240 | 379 | py | Python | elFrutero/frutero.py | Sbastdia/JMPEstadistica | b64d46f510ae5186d29c75c6d3f99cd5b928d317 | [
"Apache-2.0"
] | null | null | null | elFrutero/frutero.py | Sbastdia/JMPEstadistica | b64d46f510ae5186d29c75c6d3f99cd5b928d317 | [
"Apache-2.0"
] | null | null | null | elFrutero/frutero.py | Sbastdia/JMPEstadistica | b64d46f510ae5186d29c75c6d3f99cd5b928d317 | [
"Apache-2.0"
] | null | null | null | import pandas as pnd
import numpy as np
import JMPEstadisticas as jmp
import os
current_dir = os.path.dirname(os.path.realpath(__file__))
filename = os.path.join(current_dir, 'datos.csv')
raw_data = open(filename)
data = np.loadtxt(raw_data, delimiter=";",skiprows=1)
data=pnd.DataFrame({'Pesos':data})
stats = jmp.JMPE... | 27.071429 | 57 | 0.770449 | 55 | 379 | 5.163636 | 0.545455 | 0.06338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.092348 | 379 | 13 | 58 | 29.153846 | 0.822674 | 0 | 0 | 0 | 0 | 0 | 0.05291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
65b3dcea65e212ae8195ececc2e4f06af81789ec | 7,213 | py | Python | helpers/pedigree_from_sample_metadata.py | populationgenomics/automated-interpretation-pipeline | 64afbf396dcc2f4f2330cdfd0414238560910e93 | [
"MIT"
] | null | null | null | helpers/pedigree_from_sample_metadata.py | populationgenomics/automated-interpretation-pipeline | 64afbf396dcc2f4f2330cdfd0414238560910e93 | [
"MIT"
] | 4 | 2022-03-28T06:28:01.000Z | 2022-03-31T00:16:02.000Z | helpers/pedigree_from_sample_metadata.py | populationgenomics/automated-interpretation-pipeline | 64afbf396dcc2f4f2330cdfd0414238560910e93 | [
"MIT"
] | null | null | null | """
generate a ped file on the fly using the sample-metadata api client
optional argument will remove all family associations
- family structure removal enforces singleton structure during this MVP
optional argument will replace missing parents with '0' to be valid PLINK structure
"""
from collections import defa... | 31.635965 | 85 | 0.657008 | 914 | 7,213 | 5.00547 | 0.251641 | 0.022732 | 0.024044 | 0.032787 | 0.138142 | 0.110601 | 0.064262 | 0.045464 | 0.03541 | 0.023607 | 0 | 0.005203 | 0.253847 | 7,213 | 227 | 86 | 31.77533 | 0.844853 | 0.310273 | 0 | 0.102362 | 1 | 0 | 0.163518 | 0.009656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047244 | false | 0 | 0.055118 | 0 | 0.133858 | 0 | 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 |
65b5d261cf28b7dbc2e3263cc8d021bffcf7055c | 1,040 | py | Python | hub_app/management/commands/cleanburnedotp.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | hub_app/management/commands/cleanburnedotp.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | 29 | 2020-02-09T18:28:01.000Z | 2021-06-25T15:32:48.000Z | hub_app/management/commands/cleanburnedotp.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | """
Clean up burned OTPs from database
You should use a cron job to trigger this regularly.
"""
import datetime
from django.core.management import BaseCommand
from django.utils.timezone import now
from django.utils.translation import gettext_lazy as _
from hub_app.models import BurnedOtp
class Command(BaseCommand... | 28.108108 | 91 | 0.685577 | 138 | 1,040 | 4.978261 | 0.528986 | 0.07278 | 0.043668 | 0.043668 | 0.052402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004914 | 0.217308 | 1,040 | 36 | 92 | 28.888889 | 0.839066 | 0.178846 | 0 | 0 | 0 | 0 | 0.095297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 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 |
65b89d295bd439a5df7563c6e3bf50cc8ff4f005 | 2,206 | py | Python | 2016-2017.Meetings/05.DIY_naive_bayes/data/src/get_raw_tweets.py | NViday/machine_learning_workshop_Winter17 | 834c4abee998b3143cd562ecd240c8054d29ffc6 | [
"MIT"
] | 3 | 2018-02-07T09:18:04.000Z | 2021-04-27T09:49:35.000Z | 2016-2017.Meetings/05.DIY_naive_bayes/data/src/get_raw_tweets.py | NViday/machine_learning_workshop_Winter17 | 834c4abee998b3143cd562ecd240c8054d29ffc6 | [
"MIT"
] | null | null | null | 2016-2017.Meetings/05.DIY_naive_bayes/data/src/get_raw_tweets.py | NViday/machine_learning_workshop_Winter17 | 834c4abee998b3143cd562ecd240c8054d29ffc6 | [
"MIT"
] | 1 | 2018-03-27T11:06:24.000Z | 2018-03-27T11:06:24.000Z | #!/usr/bin/env python
# encoding: utf-8
import tweepy # https://github.com/tweepy/tweepy
import csv
import os
import sys
# Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
access_secret = ""
def get_all_tweets(screen_name):
# Twitter only allows access to a users most recent 3240 t... | 31.971014 | 77 | 0.671804 | 306 | 2,206 | 4.699346 | 0.460784 | 0.041725 | 0.03338 | 0.034771 | 0.193324 | 0.193324 | 0.133519 | 0.133519 | 0.072323 | 0.072323 | 0 | 0.013658 | 0.236627 | 2,206 | 68 | 78 | 32.441176 | 0.840261 | 0.334542 | 0 | 0.117647 | 0 | 0 | 0.133195 | 0.018634 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65bc49a11f20146715e5e8abe770a25b0daa3416 | 821 | py | Python | bundle_cache/app_store/tk-multi-demo/v1.0.2/python/tk_multi_demo/demos/navigation/qtwidgets.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 4 | 2019-01-11T03:41:28.000Z | 2019-09-12T06:57:17.000Z | bundle_cache/app_store/tk-multi-demo/v1.0.2/python/tk_multi_demo/demos/navigation/qtwidgets.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | null | null | null | bundle_cache/app_store/tk-multi-demo/v1.0.2/python/tk_multi_demo/demos/navigation/qtwidgets.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 2 | 2019-01-10T05:00:18.000Z | 2020-02-15T16:32:56.000Z | # Copyright (c) 2016 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the S... | 32.84 | 77 | 0.795371 | 108 | 821 | 6.037037 | 0.657407 | 0.046012 | 0.055215 | 0.06135 | 0.134969 | 0.134969 | 0.134969 | 0.134969 | 0 | 0 | 0 | 0.005747 | 0.152253 | 821 | 24 | 78 | 34.208333 | 0.931034 | 0.72229 | 0 | 0 | 0 | 0 | 0.152381 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65bc817db39b59c92a648fc699a44e94dfd8e435 | 373 | py | Python | tottle/dispatch/routers/bot.py | TheBakerCat/tottle | c7dbe741014caff1fadaa39d06db56d44886c31d | [
"MIT"
] | 1 | 2022-02-11T17:43:18.000Z | 2022-02-11T17:43:18.000Z | tottle/dispatch/routers/bot.py | TheBakerCat/tottle | c7dbe741014caff1fadaa39d06db56d44886c31d | [
"MIT"
] | null | null | null | tottle/dispatch/routers/bot.py | TheBakerCat/tottle | c7dbe741014caff1fadaa39d06db56d44886c31d | [
"MIT"
] | null | null | null | from tottle.api import API
from .abc import ABCRouter
from ..views import MessageView
class BotRouter(ABCRouter):
views = {"message": MessageView()}
async def route(self, event: dict, api: "API"):
for view in self.views.values():
if not await view.processor(event):
contin... | 24.866667 | 51 | 0.63807 | 46 | 373 | 5.173913 | 0.608696 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262735 | 373 | 14 | 52 | 26.642857 | 0.865455 | 0 | 0 | 0 | 0 | 0 | 0.02681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 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 |
65c53b4acbb52370de5eaaf67fc9e723fd310d67 | 1,057 | py | Python | chris_backend/plugins/migrations/0004_auto_20160708_1529.py | rudolphpienaar/ChRIS_ultron_backEnd | 5de4e255fb151ac7a6f900327704831da11dcd1f | [
"MIT"
] | 26 | 2016-05-26T14:09:35.000Z | 2022-01-28T19:12:43.000Z | chris_backend/plugins/migrations/0004_auto_20160708_1529.py | rudolphpienaar/ChRIS_ultron_backEnd | 5de4e255fb151ac7a6f900327704831da11dcd1f | [
"MIT"
] | 168 | 2016-06-24T11:07:15.000Z | 2022-03-21T12:33:43.000Z | chris_backend/plugins/migrations/0004_auto_20160708_1529.py | rudolphpienaar/ChRIS_ultron_backEnd | 5de4e255fb151ac7a6f900327704831da11dcd1f | [
"MIT"
] | 45 | 2017-08-16T16:41:40.000Z | 2022-03-31T18:12:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-07-08 19:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | 28.567568 | 121 | 0.62157 | 104 | 1,057 | 6.125 | 0.596154 | 0.037677 | 0.043956 | 0.069074 | 0.153846 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0.042636 | 0.267739 | 1,057 | 36 | 122 | 29.361111 | 0.780362 | 0.063387 | 0 | 0.275862 | 1 | 0 | 0.12766 | 0.023303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.241379 | 0 | 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 |
65c5f1b635f8cd8fe27dbd3ef9d7751eb2e5d0d5 | 892 | py | Python | parlai/utils/typing.py | kifish/ParlAI | 93a0f31f3d6b03a97c1a081927427dbe1eb1242e | [
"MIT"
] | null | null | null | parlai/utils/typing.py | kifish/ParlAI | 93a0f31f3d6b03a97c1a081927427dbe1eb1242e | [
"MIT"
] | null | null | null | parlai/utils/typing.py | kifish/ParlAI | 93a0f31f3d6b03a97c1a081927427dbe1eb1242e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Definitions of general ParlAI types.
"""
from typing import Any, Dict, TypeVar, Union
import torch
class _Shared(... | 26.235294 | 88 | 0.720852 | 131 | 892 | 4.89313 | 0.687023 | 0.031201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.186099 | 892 | 33 | 89 | 27.030303 | 0.880165 | 0.451794 | 0 | 0 | 0 | 0 | 0.036082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
65c86f6ce245b0a14a40cb654fb3fb69402bce83 | 3,115 | py | Python | code/measures/cosine_similarity.py | christopher-gong/stale-news | f219a4f427787c9a26b3a772d169e856f9ef18af | [
"MIT"
] | null | null | null | code/measures/cosine_similarity.py | christopher-gong/stale-news | f219a4f427787c9a26b3a772d169e856f9ef18af | [
"MIT"
] | null | null | null | code/measures/cosine_similarity.py | christopher-gong/stale-news | f219a4f427787c9a26b3a772d169e856f9ef18af | [
"MIT"
] | null | null | null | import nml_parseutil
from article import Article
from measure_constants import MeasureConstants
import numpy as np
import datetime
from nltk.stem import PorterStemmer
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk import ngrams, FreqDist
stop_words = set(stopwords.words('english'... | 38.45679 | 105 | 0.698234 | 392 | 3,115 | 5.285714 | 0.280612 | 0.072394 | 0.043436 | 0.030405 | 0.190154 | 0.15444 | 0.106178 | 0.106178 | 0.106178 | 0.106178 | 0 | 0.000845 | 0.239807 | 3,115 | 81 | 106 | 38.45679 | 0.874155 | 0.263563 | 0 | 0.04878 | 0 | 0 | 0.003286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.219512 | 0.02439 | 0.536585 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65cd038d584bc0d97e1d6a17d6fd55a310227353 | 698 | py | Python | ex20.py | AyeNandar/python-exercises | 63936b53a48dafd96b7e9b222167faf5124bb86c | [
"MIT"
] | null | null | null | ex20.py | AyeNandar/python-exercises | 63936b53a48dafd96b7e9b222167faf5124bb86c | [
"MIT"
] | null | null | null | ex20.py | AyeNandar/python-exercises | 63936b53a48dafd96b7e9b222167faf5124bb86c | [
"MIT"
] | null | null | null | def cheese_and_crackers(cheese_count, boxes_of_crackers):
print("You have ", cheese_count, "cheese!")
print("you have ", boxes_of_crackers," boxes of crackers!")
print("Man that's enough for a party!")
print("Get a blamnket.\n")
print("We can just give the function numbers directly:")
cheese_and_cracke... | 33.238095 | 71 | 0.750716 | 113 | 698 | 4.389381 | 0.442478 | 0.120968 | 0.171371 | 0.080645 | 0.125 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.035176 | 0.144699 | 698 | 20 | 72 | 34.9 | 0.795645 | 0 | 0 | 0 | 0 | 0 | 0.37106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.066667 | 0.533333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65cf6ca7e59e2115c34ca0d0e88bbd3fae6de2b1 | 1,379 | py | Python | smu/make_sqlite.py | tomsander1998/google-research | 65eceeae83dab8eef5cc6bbbb8fa451494a69736 | [
"Apache-2.0"
] | 2 | 2022-01-21T18:15:34.000Z | 2022-01-25T15:21:34.000Z | smu/make_sqlite.py | tomsander1998/google-research | 65eceeae83dab8eef5cc6bbbb8fa451494a69736 | [
"Apache-2.0"
] | null | null | null | smu/make_sqlite.py | tomsander1998/google-research | 65eceeae83dab8eef5cc6bbbb8fa451494a69736 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 30.644444 | 77 | 0.754895 | 212 | 1,379 | 4.820755 | 0.570755 | 0.058708 | 0.041096 | 0.031311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012853 | 0.153735 | 1,379 | 44 | 78 | 31.340909 | 0.862896 | 0.451777 | 0 | 0 | 0 | 0 | 0.188602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65d75b953ea73b560b814ad3a0a006f3468fb8cb | 2,226 | py | Python | CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/config/explore.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 7 | 2016-05-20T21:56:39.000Z | 2022-02-07T21:09:48.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/config/explore.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2019-03-21T16:10:04.000Z | 2019-03-22T17:21:56.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/config/explore.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2020-05-19T16:17:17.000Z | 2020-05-19T16:17:17.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | 60.162162 | 173 | 0.668913 | 263 | 2,226 | 5.574144 | 0.403042 | 0.124147 | 0.092769 | 0.030696 | 0.297408 | 0.210778 | 0.096862 | 0.05457 | 0.05457 | 0.05457 | 0 | 0.009654 | 0.115903 | 2,226 | 36 | 174 | 61.833333 | 0.734756 | 0.252471 | 0 | 0 | 0 | 0 | 0.606905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65da4ea261fc5d0e159dbe2d42f12a81f08ee61b | 1,071 | py | Python | app/tests/bot_handlers/test_handle_stats.py | TG-AI/telegram-bot | f08cd99b4f5ebc98293a0d517340e837ee8ea277 | [
"MIT"
] | null | null | null | app/tests/bot_handlers/test_handle_stats.py | TG-AI/telegram-bot | f08cd99b4f5ebc98293a0d517340e837ee8ea277 | [
"MIT"
] | null | null | null | app/tests/bot_handlers/test_handle_stats.py | TG-AI/telegram-bot | f08cd99b4f5ebc98293a0d517340e837ee8ea277 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import MagicMock, call
from app.lib.handlers.stats import StatsCommand
from base import TestBotHandlersBase
class TestHandler(TestBotHandlersBase):
def test(self):
command = StatsCommand()
self.bot.get_updates = MagicMock(return_value=[self.fake_update()])
... | 28.184211 | 75 | 0.676004 | 128 | 1,071 | 5.414063 | 0.4375 | 0.111111 | 0.103896 | 0.132756 | 0.265512 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0.00122 | 0.23436 | 1,071 | 37 | 76 | 28.945946 | 0.843902 | 0.05042 | 0 | 0.090909 | 0 | 0 | 0.0455 | 0 | 0 | 0 | 0 | 0.027027 | 0.136364 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
65de354b2d6f081fc5eccae2569c6a793a34697f | 20,365 | py | Python | 00-notes/001-moex/get_data_moex.v2.py | mikelaud/mikelaud.github.io | 4d0a737aaf8b297810951090782f380890853600 | [
"MIT"
] | 1 | 2020-02-24T18:07:47.000Z | 2020-02-24T18:07:47.000Z | 00-notes/001-moex/get_data_moex.v2.py | mikelaud/mikelaud.github.io | 4d0a737aaf8b297810951090782f380890853600 | [
"MIT"
] | null | null | null | 00-notes/001-moex/get_data_moex.v2.py | mikelaud/mikelaud.github.io | 4d0a737aaf8b297810951090782f380890853600 | [
"MIT"
] | 2 | 2020-02-25T20:56:32.000Z | 2020-09-05T04:03:37.000Z | """
MOEX data downloader based on:
Programming interface to ISS
- https://www.moex.com/a2193
- http://iss.moex.com/iss/reference/
- https://fs.moex.com/files/6523
- https://fs.moex.com/files/6524
=============================================
Run program:
---------------------------------------------... | 25.942675 | 149 | 0.621409 | 2,540 | 20,365 | 4.832283 | 0.155118 | 0.044484 | 0.043344 | 0.018006 | 0.426267 | 0.38496 | 0.293955 | 0.260877 | 0.252322 | 0.244338 | 0 | 0.022336 | 0.261331 | 20,365 | 784 | 150 | 25.975765 | 0.793592 | 0.12988 | 0 | 0.45124 | 0 | 0.004959 | 0.061126 | 0.002518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099174 | false | 0 | 0.013223 | 0.077686 | 0.679339 | 0.034711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65e26971f950eea89c6af2bf3023e96e5566d1db | 1,520 | py | Python | transformations/abbreviation_transformation/abbrev.py | raft001/NL-Augmenter | 147932f311bafe429a23b69c4cd4fd3f4e02bbf1 | [
"MIT"
] | 583 | 2021-06-12T02:30:26.000Z | 2022-03-28T05:57:45.000Z | transformations/abbreviation_transformation/abbrev.py | raft001/NL-Augmenter | 147932f311bafe429a23b69c4cd4fd3f4e02bbf1 | [
"MIT"
] | 246 | 2021-06-11T15:49:36.000Z | 2022-02-02T12:17:41.000Z | transformations/abbreviation_transformation/abbrev.py | raft001/NL-Augmenter | 147932f311bafe429a23b69c4cd4fd3f4e02bbf1 | [
"MIT"
] | 189 | 2021-06-15T14:14:15.000Z | 2022-03-15T22:10:46.000Z | """
THIS CODE IS NOT BEING USED DIRECTLY. This is the code used to scrape the dictionaries.
#!/usr/bin/env python
# coding: utf-8
# In[ ]:
"""
ref: https://medium.com/coinmonks/remaking-of-shortened-sms-tweet-post-slangs-and-word-contraction-into-sentences-nlp-7bd1bbc6fcff
"""
from bs4 import Beautifu... | 27.142857 | 131 | 0.634868 | 215 | 1,520 | 4.381395 | 0.47907 | 0.093418 | 0.059448 | 0.057325 | 0.205945 | 0.116773 | 0.078556 | 0.078556 | 0.078556 | 0 | 0 | 0.011804 | 0.219737 | 1,520 | 55 | 132 | 27.636364 | 0.782462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65e3f2b9cd93268c9a688919f34fce672155a557 | 1,022 | py | Python | school/unit/admin.py | yucealiosman/school | 630059760f411c163db57f980b780d8501aa1a6d | [
"MIT"
] | null | null | null | school/unit/admin.py | yucealiosman/school | 630059760f411c163db57f980b780d8501aa1a6d | [
"MIT"
] | null | null | null | school/unit/admin.py | yucealiosman/school | 630059760f411c163db57f980b780d8501aa1a6d | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import gettext_lazy as _
from school.unit import models
class BaseAdmin(admin.ModelAdmin):
search_fields = ('pk',)
readonly_fields = ('pk',)
class StudentAdmin(UserAdmin):
fieldsets = (
... | 31.9375 | 74 | 0.666341 | 108 | 1,022 | 6.157407 | 0.5 | 0.081203 | 0.153383 | 0.207519 | 0.192481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177104 | 1,022 | 31 | 75 | 32.967742 | 0.790725 | 0 | 0 | 0 | 0 | 0 | 0.190802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.041667 | 0.208333 | 0 | 0.416667 | 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 |
65ea05ec336c58cdbf1119b4047fb4a345a8094c | 10,045 | py | Python | featureextractor.py | UJJWAL97/MAJORPYTHON | f143995117561c917b202830d8a4555b96ce6008 | [
"MIT"
] | null | null | null | featureextractor.py | UJJWAL97/MAJORPYTHON | f143995117561c917b202830d8a4555b96ce6008 | [
"MIT"
] | null | null | null | featureextractor.py | UJJWAL97/MAJORPYTHON | f143995117561c917b202830d8a4555b96ce6008 | [
"MIT"
] | null | null | null | import urllib
import seolib
import whois
import re
import dateutil.parser
import datetime
import requests
import ssl, socket
from urllib import urlencode
from slimit.parser import Parser
from bs4 import BeautifulSoup
import urlparse
from pyfav import get_favicon_url
def featureextractor(link):
arr = []
domain... | 24.5 | 134 | 0.533698 | 1,269 | 10,045 | 4.130024 | 0.227738 | 0.11162 | 0.108758 | 0.06411 | 0.338485 | 0.291929 | 0.283534 | 0.202442 | 0.16161 | 0.155886 | 0 | 0.041961 | 0.338079 | 10,045 | 409 | 135 | 24.559902 | 0.746278 | 0.100747 | 0 | 0.555921 | 0 | 0.003289 | 0.055011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042763 | null | null | 0.009868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
029180f739a286973f40d615bff9f2d284499720 | 5,238 | py | Python | adi/cffi_build.py | tjjlemaire/adinstruments_sdk_python | 081ffb890deeeb420c1b6d96f05a607e39f9d1c7 | [
"MIT"
] | null | null | null | adi/cffi_build.py | tjjlemaire/adinstruments_sdk_python | 081ffb890deeeb420c1b6d96f05a607e39f9d1c7 | [
"MIT"
] | null | null | null | adi/cffi_build.py | tjjlemaire/adinstruments_sdk_python | 081ffb890deeeb420c1b6d96f05a607e39f9d1c7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 13 09:31:53 2019
@author: RNEL
"""
from cffi import FFI
ffibuilder = FFI()
# cdef() expects a single string declaring the C types, functions and
# globals needed to use the shared object. It must be in valid C syntax.
ffibuilder.cdef("""
typedef enum ADIResultCode... | 46.767857 | 167 | 0.684231 | 564 | 5,238 | 6.230496 | 0.430851 | 0.077405 | 0.066591 | 0.068867 | 0.208879 | 0.083381 | 0.061184 | 0.050085 | 0 | 0 | 0 | 0.022612 | 0.248568 | 5,238 | 112 | 168 | 46.767857 | 0.870173 | 0.088774 | 0 | 0 | 0 | 0.107692 | 0.960726 | 0.162006 | 0 | 0 | 0.014941 | 0 | 0 | 1 | 0 | false | 0.015385 | 0.015385 | 0 | 0.015385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
029a6a84be0dddba73dc7fd996eee96f0a138dc8 | 6,205 | py | Python | python/pyApprox/rational.py | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | python/pyApprox/rational.py | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | null | null | null | python/pyApprox/rational.py | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z | # https://stackoverflow.com/questions/18662261/fastest-implementation-of-sine-cosine-and-square-root-in-c-doesnt-need-to-b
# https://en.wikipedia.org/wiki/Bhaskara_I's_sine_approximation_formula
# https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.polynomial.chebyshev.Chebyshev.fit.html
import numpy as... | 31.497462 | 171 | 0.512973 | 1,033 | 6,205 | 3.016457 | 0.193611 | 0.014121 | 0.015725 | 0.022465 | 0.327664 | 0.261232 | 0.202824 | 0.15276 | 0.130295 | 0.130295 | 0 | 0.117436 | 0.280903 | 6,205 | 197 | 172 | 31.497462 | 0.580905 | 0.267204 | 0 | 0.305556 | 0 | 0 | 0.0219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018519 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02a23eeac49d3f0ef5c99ea83b53eda37456b6b6 | 897 | py | Python | src/HafrenHaver/audio_gui.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | 2 | 2020-11-09T19:30:26.000Z | 2020-12-29T21:38:40.000Z | src/HafrenHaver/audio_gui.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | null | null | null | src/HafrenHaver/audio_gui.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python3
import pygame
from pygame import mixer
from constants import DEFAULT_SAMPLE_RATE
from decorated_gui import DecoratedGUI
class AudioGUI (DecoratedGUI):
def __init__ (self, sample_rate=DEFAULT_SAMPLE_RATE, *args, **kwargs):
DecoratedGUI.__init__ (self, *args, **kwargs)
self.sample_rate = ... | 27.181818 | 115 | 0.707915 | 126 | 897 | 4.738095 | 0.547619 | 0.100503 | 0.070352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.179487 | 897 | 32 | 116 | 28.03125 | 0.805707 | 0.289855 | 0 | 0 | 0 | 0 | 0.025518 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.45 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02a52b952fdc4321af8943ae61b439349b8f8185 | 441 | py | Python | lessons 20/HomeWork/task6.py | zainllw0w/skillbox | 896287b6f7f5612cf589094131fd1a12b0b192ba | [
"MIT"
] | null | null | null | lessons 20/HomeWork/task6.py | zainllw0w/skillbox | 896287b6f7f5612cf589094131fd1a12b0b192ba | [
"MIT"
] | null | null | null | lessons 20/HomeWork/task6.py | zainllw0w/skillbox | 896287b6f7f5612cf589094131fd1a12b0b192ba | [
"MIT"
] | null | null | null | import random
my_list = [random.randint(1, 9) for _ in range(10)]
print(my_list)
new_list = list()
second_list = list()
# for value in my_list:
# new_list.append(value)
# if len(new_list) == 2:
# second_list.append(tuple(new_list))
# new_list.clear()
for i in range(10):
new_list.append(... | 18.375 | 51 | 0.630385 | 71 | 441 | 3.676056 | 0.323944 | 0.214559 | 0.168582 | 0.099617 | 0.306513 | 0.306513 | 0.306513 | 0.306513 | 0.306513 | 0 | 0 | 0.026549 | 0.231293 | 441 | 24 | 52 | 18.375 | 0.743363 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.181818 | 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 |
02b2f4b103eff19c11cd79353b68a9f5ee11bc5e | 744 | py | Python | lingcod/common/management/commands/install_cleangeometry.py | google-code-export/marinemap | b7d58db11720637845b6a83bf70435c32c5af531 | [
"BSD-3-Clause"
] | 3 | 2017-06-09T20:44:58.000Z | 2017-12-26T12:09:21.000Z | lingcod/common/management/commands/install_cleangeometry.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | null | null | null | lingcod/common/management/commands/install_cleangeometry.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | 3 | 2016-11-30T13:41:56.000Z | 2019-05-07T17:07:12.000Z | from django.core.management.base import BaseCommand, AppCommand
from django.db import connection, transaction
import os
class Command(BaseCommand):
help = "Installs a cleangeometry function in postgres required for processing incoming geometries."
def handle(self, **options):
path = os.path.abspat... | 41.333333 | 124 | 0.665323 | 95 | 744 | 5.147368 | 0.736842 | 0.0409 | 0.08998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237903 | 744 | 18 | 125 | 41.333333 | 0.862434 | 0 | 0 | 0 | 0 | 0.083333 | 0.530201 | 0.034899 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02ba84c0c83ffa9bfe410f5d34953a456d26e561 | 2,412 | py | Python | src/scheduler/admin.py | btmc/mogura | 1f105e3ddf66e134ad94857a2a22d153dc70a811 | [
"MIT"
] | null | null | null | src/scheduler/admin.py | btmc/mogura | 1f105e3ddf66e134ad94857a2a22d153dc70a811 | [
"MIT"
] | null | null | null | src/scheduler/admin.py | btmc/mogura | 1f105e3ddf66e134ad94857a2a22d153dc70a811 | [
"MIT"
] | null | null | null | # coding: utf-8
from scheduler.models import schedule, chain
from django.contrib import admin
from reversion_compare.admin import CompareVersionAdmin
from reports.customWidgets import JSONEditorWidget, CodeMirrorSQLWidget
from django import forms
from django.contrib.auth.models import User
class chainInline(admin.Sta... | 36.545455 | 173 | 0.731758 | 284 | 2,412 | 6.066901 | 0.373239 | 0.028439 | 0.032501 | 0.046431 | 0.357516 | 0.316889 | 0.28787 | 0.240279 | 0.185723 | 0.185723 | 0 | 0.008221 | 0.14262 | 2,412 | 65 | 174 | 37.107692 | 0.824952 | 0.00539 | 0 | 0.04 | 0 | 0 | 0.103463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.12 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02bb0b75796feab1609f3e254c09381361e72f57 | 692 | py | Python | LeetCode/Medium/combinationOf2.py | shrey199325/LeetCodeSolution | fede0d98d2aeeedc3cd501ac5042f2217494f4c6 | [
"Unlicense"
] | null | null | null | LeetCode/Medium/combinationOf2.py | shrey199325/LeetCodeSolution | fede0d98d2aeeedc3cd501ac5042f2217494f4c6 | [
"Unlicense"
] | null | null | null | LeetCode/Medium/combinationOf2.py | shrey199325/LeetCodeSolution | fede0d98d2aeeedc3cd501ac5042f2217494f4c6 | [
"Unlicense"
] | 1 | 2020-09-18T09:38:26.000Z | 2020-09-18T09:38:26.000Z |
p = [0, 4, 8, 6, 2, 10, 100000000]
s=[]
d = {}
rem=10
for i in p:
if i in d:
d[i] += 1
else:
d[i] = 1
for i in range(0,rem/2+1):
if i in d:
pair = [i, rem-i]
if pair[0]==pair[1] and d[i]>=2:
s.append(pair)
elif pair[1] in d:
s.append(pair)
p... | 20.352941 | 87 | 0.371387 | 97 | 692 | 2.618557 | 0.350515 | 0.047244 | 0.047244 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068093 | 0.257225 | 692 | 33 | 88 | 20.969697 | 0.42607 | 0.023121 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02c09bfd3cf99cbc272594fac41e0092ab49206f | 12,502 | py | Python | various/iap_5_iteration.py | Walber55/projects | 6c3de0797ffbc2dfcb5c4a1fa5a9ddd4580bbb1e | [
"MIT"
] | 15 | 2016-10-09T10:10:16.000Z | 2021-06-02T08:52:47.000Z | various/iap_5_iteration.py | Walber55/projects | 6c3de0797ffbc2dfcb5c4a1fa5a9ddd4580bbb1e | [
"MIT"
] | null | null | null | various/iap_5_iteration.py | Walber55/projects | 6c3de0797ffbc2dfcb5c4a1fa5a9ddd4580bbb1e | [
"MIT"
] | 9 | 2018-04-26T16:55:36.000Z | 2022-02-02T17:25:54.000Z | #! /usr/bin/env python2
"Interactive Python Part 5: Iteration and Repetition"
import random
from lib import cImage as image
def wandering_turtle():
"""Modify the walking turtle program so that rather than a 90 degree left or
right turn the angle of the turn is determined randomly at each step.
Modify the... | 33.698113 | 88 | 0.583907 | 1,828 | 12,502 | 3.924508 | 0.21116 | 0.031224 | 0.041818 | 0.019933 | 0.367159 | 0.330917 | 0.282687 | 0.26136 | 0.217173 | 0.195149 | 0 | 0.032127 | 0.290434 | 12,502 | 370 | 89 | 33.789189 | 0.775561 | 0.100544 | 0 | 0.362869 | 0 | 0 | 0.074624 | 0 | 0 | 0 | 0 | 0.002703 | 0 | 0 | null | null | 0 | 0.012658 | null | null | 0.016878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02c43fcbc3aa5f93576a05a921c822c904cb0533 | 1,135 | py | Python | src/astrolib/integration/euler.py | space-geek/integrationutils | 384375702a6c053aa2e5aaca6b9d5c43d86a16ad | [
"MIT"
] | null | null | null | src/astrolib/integration/euler.py | space-geek/integrationutils | 384375702a6c053aa2e5aaca6b9d5c43d86a16ad | [
"MIT"
] | null | null | null | src/astrolib/integration/euler.py | space-geek/integrationutils | 384375702a6c053aa2e5aaca6b9d5c43d86a16ad | [
"MIT"
] | null | null | null | from typing import Callable
from typing import Tuple
from astrolib.base_objects import Matrix
from astrolib.base_objects import TimeSpan
def integrate(t_0: TimeSpan, X_0: Matrix, h: TimeSpan, dynamics_func: Callable[[TimeSpan, Matrix],Matrix]) -> Tuple[TimeSpan, Matrix, TimeSpan]:
""" Function utilizes a first-o... | 49.347826 | 144 | 0.601762 | 135 | 1,135 | 4.955556 | 0.362963 | 0.011958 | 0.047833 | 0.068759 | 0.206278 | 0.119581 | 0 | 0 | 0 | 0 | 0 | 0.010596 | 0.334802 | 1,135 | 22 | 145 | 51.590909 | 0.875497 | 0.640529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.666667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
02c45a4cc75c2fa2bbb4b7020af194c66637d946 | 621 | py | Python | scripts/iiwa_node.py | Ram2301/rik | c36fa7edf725199d1ab913e83d07f2ae647ea32d | [
"MIT"
] | 1 | 2021-01-20T01:28:56.000Z | 2021-01-20T01:28:56.000Z | scripts/iiwa_node.py | Ram2301/rik | c36fa7edf725199d1ab913e83d07f2ae647ea32d | [
"MIT"
] | null | null | null | scripts/iiwa_node.py | Ram2301/rik | c36fa7edf725199d1ab913e83d07f2ae647ea32d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
## python 2.7
## ik_solver.py
## Created on: 16.02.2018
## By: Nikoaly Dema
## Email: Nicko_Dema@protonmail.com
import os, sys
import rospy, tf, tf2_ros
from geometry_msgs.msg import Twist
from std_msgs.msg import String
#from tf2_msgs.msg import TFMessage
# add include d... | 22.178571 | 51 | 0.705314 | 93 | 621 | 4.473118 | 0.655914 | 0.050481 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023301 | 0.170692 | 621 | 27 | 52 | 23 | 0.784466 | 0.383253 | 0 | 0 | 0 | 0 | 0.062331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
02c927a6ab97ecb737b61bf0440cacd310e1fcc0 | 380 | py | Python | date.py | sim6998/Python-Tutorials | 07bead55b6b9a6bbdc2479907de06f28761aca59 | [
"MIT"
] | null | null | null | date.py | sim6998/Python-Tutorials | 07bead55b6b9a6bbdc2479907de06f28761aca59 | [
"MIT"
] | null | null | null | date.py | sim6998/Python-Tutorials | 07bead55b6b9a6bbdc2479907de06f28761aca59 | [
"MIT"
] | null | null | null | import time
#returns the total number of ticks spent since 12 AM, 1st January 1970.
print(time.time())
#used get the current time tuple.
print(time.localtime(time.time()))
#time in well formate
print(time.asctime(time.localtime(time.time())))
#used to stop the execution of the script for a given amount... | 22.352941 | 72 | 0.705263 | 65 | 380 | 4.123077 | 0.6 | 0.119403 | 0.089552 | 0.156716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032362 | 0.186842 | 380 | 16 | 73 | 23.75 | 0.834951 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
02cd30819d99911fc622b18bc3a0564f96a488e7 | 7,820 | py | Python | euca2ools/commands/ec2/modifysecuritygrouprule.py | vasiliykochergin/euca2ools | 23781599a9da28dcc582cffd1df7a7e3f8ce8ba0 | [
"BSD-2-Clause"
] | null | null | null | euca2ools/commands/ec2/modifysecuritygrouprule.py | vasiliykochergin/euca2ools | 23781599a9da28dcc582cffd1df7a7e3f8ce8ba0 | [
"BSD-2-Clause"
] | null | null | null | euca2ools/commands/ec2/modifysecuritygrouprule.py | vasiliykochergin/euca2ools | 23781599a9da28dcc582cffd1df7a7e3f8ce8ba0 | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2012-2015 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions ... | 46.826347 | 80 | 0.609974 | 914 | 7,820 | 5.16849 | 0.276805 | 0.077053 | 0.057578 | 0.066046 | 0.309907 | 0.229678 | 0.214225 | 0.200677 | 0.129763 | 0.077265 | 0 | 0.013761 | 0.275192 | 7,820 | 166 | 81 | 47.108434 | 0.819689 | 0.190537 | 0 | 0.131579 | 0 | 0 | 0.35396 | 0.142193 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008772 | 0.035088 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02ce9f61b4b09b6958c011dd158479105223394e | 4,309 | py | Python | webrecorder/test/test_colls_api.py | ssteo/webrecorder | 8690608171f35c475842df8fabbe666f5058193d | [
"Apache-2.0"
] | 1,217 | 2015-10-16T06:37:32.000Z | 2020-06-08T14:02:08.000Z | webrecorder/test/test_colls_api.py | ssteo/webrecorder | 8690608171f35c475842df8fabbe666f5058193d | [
"Apache-2.0"
] | 476 | 2015-10-15T22:24:07.000Z | 2020-06-11T07:43:29.000Z | webrecorder/test/test_colls_api.py | nla/webrecorder | 29be63e71999de6a4bc1144a47d59137fab34239 | [
"Apache-2.0"
] | 101 | 2015-10-16T01:24:07.000Z | 2020-05-18T00:49:49.000Z | from datetime import datetime
import os
from .testutils import FullStackTests
# ============================================================================
class TestWebRecCollsAPI(FullStackTests):
@classmethod
def setup_class(cls):
super(TestWebRecCollsAPI, cls).setup_class()
def test_create_a... | 38.81982 | 125 | 0.614296 | 546 | 4,309 | 4.657509 | 0.175824 | 0.064884 | 0.071569 | 0.084939 | 0.62328 | 0.545026 | 0.515926 | 0.462839 | 0.435706 | 0.383012 | 0 | 0.015868 | 0.210258 | 4,309 | 110 | 126 | 39.172727 | 0.731413 | 0.042237 | 0 | 0.081081 | 0 | 0 | 0.222411 | 0.100412 | 0 | 0 | 0 | 0 | 0.432432 | 1 | 0.189189 | false | 0 | 0.040541 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02d034fa00d2bc610e81680c6553db9ac85a90a9 | 8,449 | py | Python | tests.py | shurph/cyrillic-transliteration | 84dad6208759d1dc540161e28414026d0e2908f6 | [
"MIT"
] | null | null | null | tests.py | shurph/cyrillic-transliteration | 84dad6208759d1dc540161e28414026d0e2908f6 | [
"MIT"
] | null | null | null | tests.py | shurph/cyrillic-transliteration | 84dad6208759d1dc540161e28414026d0e2908f6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import cyrtranslit
# Test inputs and output strings
serbian_alphabet_cyrillic = 'АаБбВвГгДдЂђЕеЖжЗзИиЈјКкЛлЉљМмНнЊњОоПпРрСсТтЋћУуФфХхЦцЧчЏџШш'
serbian_alphabet_latin = 'AaBbVvGgDdĐđEeŽžZzIiJjKkLlLjljMmNnNjnjOoPpRrSsTtĆćUuFfHhCcČčDždžŠš'
montenegrin_alphabet_cyrillic = 'АаБбВвГг... | 40.425837 | 112 | 0.76731 | 831 | 8,449 | 7.521059 | 0.158845 | 0.02464 | 0.09744 | 0.048 | 0.65616 | 0.6536 | 0.59408 | 0.56288 | 0.56288 | 0.5264 | 0 | 0.004471 | 0.152918 | 8,449 | 208 | 113 | 40.620192 | 0.860416 | 0.175287 | 0 | 0.307692 | 0 | 0 | 0.134416 | 0.121106 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.021978 | 0 | 0.318681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
02d2fb6a403a59d25e1c036ea1cfb164f21fb1b6 | 1,676 | py | Python | tools/deseq/stderr_wrapper.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | tools/deseq/stderr_wrapper.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | tools/deseq/stderr_wrapper.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/python
"""
Wrapper that executes a program with its arguments but reports standard error
messages only if the program exit status was not 0. This is useful to prevent
Galaxy to interpret that there was an error if something was printed on stderr,
e.g. if this was simply a warning.
Example: ./stderr_wrapper.... | 28.896552 | 81 | 0.613962 | 221 | 1,676 | 4.561086 | 0.58371 | 0.025794 | 0.029762 | 0.049603 | 0.089286 | 0.089286 | 0.089286 | 0.089286 | 0 | 0 | 0 | 0.014334 | 0.292363 | 1,676 | 57 | 82 | 29.403509 | 0.835582 | 0.231504 | 0 | 0.068966 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | null | null | 0.034483 | 0.034483 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02dad10582e003681464f1ec2d8f19aa41cbe790 | 11,663 | py | Python | src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/game/saints_row_2_vpp_pc.py | SabheeR/hobbits | 8bfb997940c73467af2ceb0275c470b763d2c1bf | [
"MIT"
] | 304 | 2020-02-07T21:05:22.000Z | 2022-03-24T05:30:37.000Z | src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/game/saints_row_2_vpp_pc.py | SabheeR/hobbits | 8bfb997940c73467af2ceb0275c470b763d2c1bf | [
"MIT"
] | 2,107 | 2019-11-05T09:26:16.000Z | 2022-02-14T13:35:36.000Z | src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/game/saints_row_2_vpp_pc.py | SabheeR/hobbits | 8bfb997940c73467af2ceb0275c470b763d2c1bf | [
"MIT"
] | 30 | 2020-03-11T14:36:43.000Z | 2022-03-07T04:45:17.000Z | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
import collections
if parse_version(kaitaistruct.__version__) < parse_version('0.9'):
raise E... | 45.737255 | 160 | 0.583726 | 1,486 | 11,663 | 4.193809 | 0.083445 | 0.092426 | 0.079429 | 0.098042 | 0.74294 | 0.61457 | 0.45491 | 0.362323 | 0.362323 | 0.35061 | 0 | 0.016295 | 0.268627 | 11,663 | 254 | 161 | 45.917323 | 0.714302 | 0.008231 | 0 | 0.391705 | 1 | 0 | 0.120125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078341 | false | 0 | 0.018433 | 0 | 0.202765 | 0 | 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 |
02e2c1e3e68635671862fc931493085a481ee966 | 4,128 | py | Python | edb/pgsql/dbops/roles.py | rongfengliang/edgedb-pg-expose | 1ddc279511595b4b1a3a1532ea873ed4e05e8b01 | [
"Apache-2.0"
] | null | null | null | edb/pgsql/dbops/roles.py | rongfengliang/edgedb-pg-expose | 1ddc279511595b4b1a3a1532ea873ed4e05e8b01 | [
"Apache-2.0"
] | null | null | null | edb/pgsql/dbops/roles.py | rongfengliang/edgedb-pg-expose | 1ddc279511595b4b1a3a1532ea873ed4e05e8b01 | [
"Apache-2.0"
] | null | null | null | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.
#
# 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... | 30.131387 | 77 | 0.631783 | 489 | 4,128 | 5.182004 | 0.288344 | 0.061563 | 0.072612 | 0.037885 | 0.348856 | 0.348856 | 0.348856 | 0.348856 | 0.334649 | 0.317285 | 0 | 0.00396 | 0.265988 | 4,128 | 136 | 78 | 30.352941 | 0.832343 | 0.156008 | 0 | 0.390805 | 0 | 0 | 0.139931 | 0.013849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.068966 | 0.057471 | 0.08046 | 0.425287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
02e3defc4c83e80ef16ed8f9cd23673bb99c6910 | 5,737 | py | Python | sample_data/Set-PD-Ix-100/4_Postprocessing/DOE_Ix-PD-100/script_write_postproc_CPU1.py | hanklu2020/mabessa_F3DAS | 57b1bd1cb85d96567ad1044c216535ab3df88db3 | [
"BSD-3-Clause"
] | null | null | null | sample_data/Set-PD-Ix-100/4_Postprocessing/DOE_Ix-PD-100/script_write_postproc_CPU1.py | hanklu2020/mabessa_F3DAS | 57b1bd1cb85d96567ad1044c216535ab3df88db3 | [
"BSD-3-Clause"
] | null | null | null | sample_data/Set-PD-Ix-100/4_Postprocessing/DOE_Ix-PD-100/script_write_postproc_CPU1.py | hanklu2020/mabessa_F3DAS | 57b1bd1cb85d96567ad1044c216535ab3df88db3 | [
"BSD-3-Clause"
] | null | null | null | #=====================================================================#
#
# Created by M.A. Bessa on 12-Nov-2019 07:05:11
#=====================================================================#
from abaqusConstants import *
from odbAccess import *
import os
import numpy
import collections
from copy import deepcopy
try:... | 38.246667 | 127 | 0.688862 | 794 | 5,737 | 4.81738 | 0.293451 | 0.036601 | 0.029281 | 0.029804 | 0.28732 | 0.209935 | 0.180654 | 0.180654 | 0.154771 | 0.115556 | 0 | 0.019873 | 0.175527 | 5,737 | 149 | 128 | 38.503356 | 0.788795 | 0.223462 | 0 | 0.237113 | 0 | 0.010309 | 0.087835 | 0.04857 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092784 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
02f34f95cf70a323fecde7bcefdc676b396c30ce | 712 | py | Python | core/views/sermons.py | mugagambi/church-erp-rest-api | 8044637bba22eadd1f85a2492237cae7ed66b39d | [
"MIT"
] | 1 | 2019-12-14T07:47:20.000Z | 2019-12-14T07:47:20.000Z | core/views/sermons.py | mugagambi/church-erp-rest-api | 8044637bba22eadd1f85a2492237cae7ed66b39d | [
"MIT"
] | 8 | 2020-06-05T20:09:41.000Z | 2021-09-22T18:07:07.000Z | core/views/sermons.py | mugagambi/church-erp-rest-api | 8044637bba22eadd1f85a2492237cae7ed66b39d | [
"MIT"
] | null | null | null | from rest_framework.decorators import api_view
from rest_framework.response import Response
from core.utils import models, admin_uid, erp_database, erp_admin_password
@api_view(['GET'])
def index(request):
"""
Fetch the latest sermons
"""
if request.method == 'GET':
sermon_list = models.execu... | 37.473684 | 113 | 0.537921 | 70 | 712 | 5.2 | 0.628571 | 0.043956 | 0.093407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355337 | 712 | 18 | 114 | 39.555556 | 0.793028 | 0.033708 | 0 | 0 | 0 | 0 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
02f8accd3a8e168e0483a93c87255c152598aab9 | 764 | py | Python | src/home_assistant.py | macbury/snips-aiy | 0990baf6237f4d1aa8d655f4f6e39cee397c5685 | [
"MIT"
] | 8 | 2017-11-23T10:26:03.000Z | 2019-07-17T07:56:36.000Z | src/home_assistant.py | macbury/snips-aiy | 0990baf6237f4d1aa8d655f4f6e39cee397c5685 | [
"MIT"
] | null | null | null | src/home_assistant.py | macbury/snips-aiy | 0990baf6237f4d1aa8d655f4f6e39cee397c5685 | [
"MIT"
] | 4 | 2017-11-23T20:02:37.000Z | 2020-04-10T11:29:06.000Z | from mqtt_controller import MqttController
class HomeAssistant(MqttController):
def __init__(self, config, device_id):
MqttController.__init__(self, config)
self.device_id = device_id
self.tts_topic = device_id+'/hermes/tts/say'
self.snips = None
def on_connect(self, client, userdata, flags, rc):
... | 36.380952 | 85 | 0.721204 | 107 | 764 | 4.953271 | 0.457944 | 0.075472 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001548 | 0.15445 | 764 | 20 | 86 | 38.2 | 0.818885 | 0.060209 | 0 | 0 | 0 | 0 | 0.096369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
02fa1f628f616e5f17a6970f6bb6b9608a85d66d | 1,450 | py | Python | tests/hogwarts/wizards.py | alixryu/getpost1.0 | c3bb7f15261a5a50fe79103c1fa1008817250ae1 | [
"MIT"
] | 1 | 2019-08-29T00:03:08.000Z | 2019-08-29T00:03:08.000Z | tests/hogwarts/wizards.py | alixryu/getpost1.0 | c3bb7f15261a5a50fe79103c1fa1008817250ae1 | [
"MIT"
] | null | null | null | tests/hogwarts/wizards.py | alixryu/getpost1.0 | c3bb7f15261a5a50fe79103c1fa1008817250ae1 | [
"MIT"
] | null | null | null | """:mod:`tests.hogwarts.wizards` --- Test module of getpost.hogwarts.wizards
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from nose.tools import eq_, ok_
from getpost.hogwarts.wizards import search_model
from getpost.models import Student
from getpost.orm import Session as db_sessi... | 27.358491 | 77 | 0.661379 | 171 | 1,450 | 5.321637 | 0.426901 | 0.059341 | 0.098901 | 0.069231 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027638 | 0.176552 | 1,450 | 52 | 78 | 27.884615 | 0.734506 | 0.155862 | 0 | 0.055556 | 0 | 0 | 0.097039 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.138889 | false | 0 | 0.138889 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f307cde071aa088405ae0542909da94bf1de68c3 | 40,531 | py | Python | cui_classes/cui_containers.py | BlenderNPR/Abnormal | 0db8471b2cf6832c74aa2a7e8c60c18218703300 | [
"MIT"
] | 133 | 2020-03-25T14:22:15.000Z | 2021-01-05T16:23:36.000Z | cui_classes/cui_containers.py | bnpr/Abnormal | 0db8471b2cf6832c74aa2a7e8c60c18218703300 | [
"MIT"
] | 12 | 2021-01-28T09:57:56.000Z | 2022-03-13T19:48:06.000Z | cui_classes/cui_containers.py | bnpr/Abnormal | 0db8471b2cf6832c74aa2a7e8c60c18218703300 | [
"MIT"
] | 8 | 2021-06-24T05:52:09.000Z | 2022-03-28T05:52:12.000Z | import bgl
from .cui_shapes import *
from .cui_bezier_box import *
from .cui_items import *
#
#
#
class CUIContainer(CUIRectWidget):
def __init__(self):
super().__init__()
self.horizontal_margin = 0
self.vertical_margin = 0
self.draw_backdrop = True
return
#
de... | 35.80477 | 150 | 0.557672 | 4,930 | 40,531 | 4.343611 | 0.044625 | 0.044364 | 0.028019 | 0.042029 | 0.748342 | 0.712851 | 0.664892 | 0.614318 | 0.572149 | 0.538059 | 0 | 0.013477 | 0.353754 | 40,531 | 1,131 | 151 | 35.836428 | 0.80407 | 0.018874 | 0 | 0.630992 | 0 | 0 | 0.008811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100334 | false | 0 | 0.004459 | 0.003344 | 0.208473 | 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 |
f30b30c3d720135f893f71d2936666a6d929906e | 186 | py | Python | dronekit/servo_test.py | nmarks99/aero-capstone | d828ccb80ff9835a40e7b1872e6b5851ad2b5058 | [
"MIT"
] | null | null | null | dronekit/servo_test.py | nmarks99/aero-capstone | d828ccb80ff9835a40e7b1872e6b5851ad2b5058 | [
"MIT"
] | null | null | null | dronekit/servo_test.py | nmarks99/aero-capstone | d828ccb80ff9835a40e7b1872e6b5851ad2b5058 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import dklib
import dronekit
v = dronekit.connect("/dev/serial0",baud=921600,wait_ready=True)
input("Press enter to spin servo")
dklib.set_servo(v, 9, "LOW")
| 15.5 | 64 | 0.731183 | 30 | 186 | 4.466667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054878 | 0.11828 | 186 | 11 | 65 | 16.909091 | 0.762195 | 0.112903 | 0 | 0 | 0 | 0 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f30f2602db8dc3162792e32c0e29c652073bb541 | 844 | py | Python | examples/test_db.py | krishnachaitanya7/Manifolk | 779a044af8ce82c913957ce341b9c9f2f1d1e815 | [
"MIT"
] | 1 | 2021-07-01T16:54:42.000Z | 2021-07-01T16:54:42.000Z | examples/test_db.py | krishnachaitanya7/Manifolk | 779a044af8ce82c913957ce341b9c9f2f1d1e815 | [
"MIT"
] | null | null | null | examples/test_db.py | krishnachaitanya7/Manifolk | 779a044af8ce82c913957ce341b9c9f2f1d1e815 | [
"MIT"
] | null | null | null | """
Assumption: The only assumption I would be doing is that the present working directory would be the root
folder of the project
"""
import unittest
from sqlite_db import SQLDb
class TestDB(unittest.TestCase):
def test_create_db(self):
sql_db = SQLDb("test")
sql_db.insert_entry(1, 1.0, 2.0, 3.0,... | 29.103448 | 104 | 0.670616 | 129 | 844 | 4.124031 | 0.55814 | 0.065789 | 0.050752 | 0.078947 | 0.161654 | 0.12782 | 0.12782 | 0.12782 | 0 | 0 | 0 | 0.033486 | 0.221564 | 844 | 28 | 105 | 30.142857 | 0.776256 | 0.246446 | 0 | 0.125 | 0 | 0 | 0.100478 | 0.043062 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.375 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f30f7fe5ab89fc13e6322525d2482676f11571fc | 403 | py | Python | d15/__main__.py | RuedigerLudwig/advent2020 | 0817484fb99daf9548352ee02012c739bfafc1e6 | [
"Unlicense"
] | 2 | 2020-12-25T09:26:46.000Z | 2021-04-01T12:34:21.000Z | d15/__main__.py | RuedigerLudwig/advent2020 | 0817484fb99daf9548352ee02012c739bfafc1e6 | [
"Unlicense"
] | null | null | null | d15/__main__.py | RuedigerLudwig/advent2020 | 0817484fb99daf9548352ee02012c739bfafc1e6 | [
"Unlicense"
] | null | null | null | from common.timer import Timer
from . import puzzle
@Timer()
def main() -> None:
starting_numbers = [12, 20, 0, 6, 1, 17, 7]
result = puzzle.play_game(starting_numbers, 2020)
print(f"The 2020th number spoken is: {result}")
result2 = puzzle.play_game(starting_numbers, 30000000)
print(f"The ... | 22.388889 | 58 | 0.665012 | 57 | 403 | 4.473684 | 0.614035 | 0.176471 | 0.109804 | 0.172549 | 0.227451 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1125 | 0.205955 | 403 | 17 | 59 | 23.705882 | 0.684375 | 0 | 0 | 0 | 0 | 0 | 0.235732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0.181818 | 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 |
f324985a7936a476ccc94925f3e86a1630e5383b | 824 | py | Python | problems/A/Twins.py | deveshbajpai19/CodeForces | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 55 | 2016-06-19T05:45:15.000Z | 2022-03-31T15:18:53.000Z | problems/A/Twins.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | null | null | null | problems/A/Twins.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 25 | 2016-07-29T13:03:15.000Z | 2021-09-17T01:45:45.000Z | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/problemset/problem/160/A
Solution: Find the total of all coins so that we know the half of the total value which you need to exceed. Now sort the
coins in reverse order and iterate over them. In each round, add the coin to your total and break the iteration if y... | 21.128205 | 120 | 0.651699 | 118 | 824 | 4.432203 | 0.576271 | 0.030593 | 0.042065 | 0.053537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013201 | 0.264563 | 824 | 38 | 121 | 21.684211 | 0.849835 | 0 | 0 | 0.105263 | 0 | 0 | 0.044534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b8265ae2d6c842de2582c330c9e33a3d9b64c1b1 | 1,256 | py | Python | tests/test_file_utils.py | plusuncold/epub-bouncer | 369e5c4947808d925e9a2347e0a5ba049b1970a9 | [
"MIT"
] | 1 | 2020-02-10T10:29:15.000Z | 2020-02-10T10:29:15.000Z | tests/test_file_utils.py | plusuncold/epub-bouncer | 369e5c4947808d925e9a2347e0a5ba049b1970a9 | [
"MIT"
] | 3 | 2020-02-05T17:52:14.000Z | 2020-02-07T17:03:06.000Z | tests/test_file_utils.py | plusuncold/epub-bouncer | 369e5c4947808d925e9a2347e0a5ba049b1970a9 | [
"MIT"
] | 1 | 2020-02-05T17:01:18.000Z | 2020-02-05T17:01:18.000Z | import pytest
import os
import sys
import shutil
DIR = os.path.abspath(os.path.dirname(__file__))
path = os.path.join(DIR, '../bouncer')
print(path)
sys.path.append(path)
from bouncer.file_utils import delete_folder # noqa E402
TEST_TEMP_FOLDER = 'test_temp'
# delete folder
def test_delete_folder_no_folder_provided(... | 25.632653 | 68 | 0.69586 | 173 | 1,256 | 4.757225 | 0.294798 | 0.126367 | 0.204131 | 0.097205 | 0.494532 | 0.402187 | 0.312272 | 0.27582 | 0.27582 | 0.230863 | 0 | 0.00404 | 0.211783 | 1,256 | 48 | 69 | 26.166667 | 0.827273 | 0.018312 | 0 | 0.314286 | 0 | 0 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.257143 | 0.028571 | 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 |
b827502093ac560ad9a43338fe6ab3b00706e31b | 294 | py | Python | algo/check_bst.py | gsathya/dsalgo | 61c89ec597ced3e69bfbb438fd856c8fc5f20aba | [
"MIT"
] | 2 | 2017-02-25T04:05:29.000Z | 2018-05-10T16:54:31.000Z | algo/check_bst.py | gsathya/dsalgo | 61c89ec597ced3e69bfbb438fd856c8fc5f20aba | [
"MIT"
] | null | null | null | algo/check_bst.py | gsathya/dsalgo | 61c89ec597ced3e69bfbb438fd856c8fc5f20aba | [
"MIT"
] | null | null | null | prev = None
def check_bst(root):
if not root:
return True
ans = check_bst(root.left)
if ans == False:
return False
if prev and root.value < prev:
return False
global prev
prev = root
return check_bst(root.right)
| 15.473684 | 34 | 0.540816 | 38 | 294 | 4.105263 | 0.447368 | 0.153846 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.394558 | 294 | 18 | 35 | 16.333333 | 0.876404 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.416667 | 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 |
b832885b3a472060bfdc98e77e2a10977c37af73 | 20,146 | py | Python | moe/actions.py | cgruber/make-open-easy | b433ba61d2f7b32d06eb7df8db38ba545827ad5e | [
"Apache-2.0"
] | 5 | 2016-05-08T00:55:46.000Z | 2020-03-14T06:57:30.000Z | moe/actions.py | cgruber/make-open-easy | b433ba61d2f7b32d06eb7df8db38ba545827ad5e | [
"Apache-2.0"
] | null | null | null | moe/actions.py | cgruber/make-open-easy | b433ba61d2f7b32d06eb7df8db38ba545827ad5e | [
"Apache-2.0"
] | 10 | 2015-06-08T21:15:13.000Z | 2021-10-16T15:06:01.000Z | #!/usr/bin/env python
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Actions are the steps MOE performs to manage codebases."""
__author__ = 'dbentley@google.com (Daniel Bentley)'
import copy
from moe import base
from moe import codebase_utils
from moe import config
from moe import db_client
from moe import... | 37.726592 | 80 | 0.657848 | 2,199 | 20,146 | 5.796726 | 0.162801 | 0.037656 | 0.035773 | 0.01318 | 0.32996 | 0.234408 | 0.173296 | 0.146387 | 0.125363 | 0.125363 | 0 | 0.001157 | 0.270972 | 20,146 | 533 | 81 | 37.797373 | 0.866753 | 0.059516 | 0 | 0.198847 | 0 | 0 | 0.064226 | 0.005509 | 0 | 0 | 0 | 0.001876 | 0.002882 | 0 | null | null | 0 | 0.037464 | null | null | 0.014409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b83518be96456cc59666bf3079484c5bb6eafcf1 | 1,237 | py | Python | plantit_cli/tests/utils.py | Computational-Plant-Science/plantit-cli | 020b6deaefb657e83e0e543f7bb2e55b7dd32158 | [
"BSD-3-Clause"
] | 2 | 2020-11-23T20:30:55.000Z | 2020-11-24T22:12:47.000Z | plantit_cli/tests/utils.py | Computational-Plant-Science/plantit-cli | 020b6deaefb657e83e0e543f7bb2e55b7dd32158 | [
"BSD-3-Clause"
] | 30 | 2020-07-23T14:57:15.000Z | 2022-01-11T16:23:19.000Z | plantit_cli/tests/utils.py | Computational-Plant-Science/plantit-cli | 020b6deaefb657e83e0e543f7bb2e55b7dd32158 | [
"BSD-3-Clause"
] | null | null | null | import os
from os import listdir, remove
from os.path import isdir, isfile, islink, join
import shutil
import requests
def clear_dir(dir):
for file in listdir(dir):
p = join(dir, file)
if isfile(p) or islink(p):
remove(p)
elif isdir(p):
shutil.rmtree(p)
def check_... | 28.113636 | 125 | 0.649151 | 157 | 1,237 | 4.968153 | 0.407643 | 0.064103 | 0.041026 | 0.048718 | 0.138462 | 0.138462 | 0.138462 | 0.138462 | 0 | 0 | 0 | 0.002158 | 0.250606 | 1,237 | 44 | 126 | 28.113636 | 0.839266 | 0 | 0 | 0.060606 | 0 | 0 | 0.155089 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0.090909 | 0.151515 | 0 | 0.363636 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b835242193261360bb2d646d93a4d57b4aab0a14 | 20,728 | py | Python | tests/Hydro/Riemann/Riemann.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | tests/Hydro/Riemann/Riemann.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | tests/Hydro/Riemann/Riemann.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | import os, sys
import shutil
from SolidSpheral1d import *
from SpheralTestUtilities import *
from RiemannSolution import *
from DistributeNodes import distributeNodesInRange1d
title("1-D hydro test -- a variety of Riemann shocktubes")
#-------------------------------------------------------------------------------
# ... | 36.882562 | 157 | 0.470234 | 1,913 | 20,728 | 5.081025 | 0.260847 | 0.003292 | 0.004321 | 0.004527 | 0.15463 | 0.127469 | 0.099794 | 0.082613 | 0.052984 | 0.05072 | 0 | 0.025826 | 0.299498 | 20,728 | 561 | 158 | 36.948307 | 0.643595 | 0.196642 | 0 | 0.195853 | 0 | 0.004608 | 0.091019 | 0.009174 | 0 | 0 | 0 | 0 | 0.013825 | 0 | null | null | 0.002304 | 0.020737 | null | null | 0.020737 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b83892768184fca9ccbd1f934e92f8d1a5e1b699 | 2,981 | py | Python | RCNN-Python/rcnn_cache_features.py | concerttttt/RCNNs-on-Win64 | 603f46efcf9fb74eb0c0975e021ce2c7db184bb7 | [
"MIT"
] | 1 | 2017-09-02T12:35:39.000Z | 2017-09-02T12:35:39.000Z | RCNN-Python/rcnn_cache_features.py | concerttttt/RCNNs-on-Win64 | 603f46efcf9fb74eb0c0975e021ce2c7db184bb7 | [
"MIT"
] | null | null | null | RCNN-Python/rcnn_cache_features.py | concerttttt/RCNNs-on-Win64 | 603f46efcf9fb74eb0c0975e021ce2c7db184bb7 | [
"MIT"
] | null | null | null | from datasets.factory import *
from rcnn_create_model import *
from rcnn_load_model import *
from rcnn_feature import *
import roi_data_layer.roidb as rdl_roidb
import cv2
import numpy as np
import os
import sys
import multiprocessing
def rcnn_cache_features(chunk):
net_file = './data/caffe_nets/finetune_voc_200... | 38.714286 | 109 | 0.687353 | 445 | 2,981 | 4.226966 | 0.253933 | 0.057416 | 0.038278 | 0.05848 | 0.348219 | 0.258905 | 0.227007 | 0.190856 | 0.190856 | 0.166932 | 0 | 0.022268 | 0.186515 | 2,981 | 77 | 110 | 38.714286 | 0.753402 | 0.009057 | 0 | 0 | 0 | 0 | 0.122587 | 0.047409 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b8390ff058c25069967abbfc640c4bd52ff8ba2c | 3,433 | py | Python | flashing_lights/tests/test_GenerateHeatMap.py | cmcalli716/flashing_lights | 19c12b610e2e4ab0811ec9242568142a1fde94e4 | [
"MIT"
] | 3 | 2020-02-25T23:22:12.000Z | 2020-06-20T00:27:45.000Z | flashing_lights/tests/test_GenerateHeatMap.py | cmcalli716/flashing_lights | 19c12b610e2e4ab0811ec9242568142a1fde94e4 | [
"MIT"
] | 4 | 2020-03-09T16:56:59.000Z | 2020-03-16T20:34:34.000Z | flashing_lights/tests/test_GenerateHeatMap.py | cmcalli716/flashing_lights | 19c12b610e2e4ab0811ec9242568142a1fde94e4 | [
"MIT"
] | 5 | 2020-02-25T23:44:40.000Z | 2021-01-06T23:32:40.000Z | import os
import unittest
import matplotlib
import numpy as np
import cv2
import flashing_lights
from flashing_lights import GenerateHeatMap
file_name1 = 'July_test.tif'
data_path = os.path.join(flashing_lights.__path__[0], 'data')
test_vid1 = os.path.join(data_path, file_name1)
class test_GenerateHeatMap(unittes... | 40.869048 | 78 | 0.58462 | 381 | 3,433 | 5.023622 | 0.212598 | 0.062173 | 0.041797 | 0.047022 | 0.600836 | 0.573668 | 0.538662 | 0.519331 | 0.519331 | 0.411703 | 0 | 0.028922 | 0.335275 | 3,433 | 83 | 79 | 41.361446 | 0.809816 | 0.080687 | 0 | 0.380952 | 1 | 0 | 0.071178 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 1 | 0.047619 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b843d297b8126cbe7f87fe161870eb7308e0d647 | 15,887 | py | Python | pycog/tasktools.py | mjkleinman/multi-area-cleaned | cd5618ab9fb77290a6ca1e096fcee74eb153fb17 | [
"MIT"
] | null | null | null | pycog/tasktools.py | mjkleinman/multi-area-cleaned | cd5618ab9fb77290a6ca1e096fcee74eb153fb17 | [
"MIT"
] | null | null | null | pycog/tasktools.py | mjkleinman/multi-area-cleaned | cd5618ab9fb77290a6ca1e096fcee74eb153fb17 | [
"MIT"
] | null | null | null | """
Some commonly used functions for defining a task.
"""
from __future__ import division
import numpy as np
import pdb
from sklearn.metrics import r2_score
#-----------------------------------------------------------------------------------------
# Define E/I populations
#-------------------------------------------... | 36.438073 | 194 | 0.531315 | 2,214 | 15,887 | 3.673893 | 0.120145 | 0.038726 | 0.035038 | 0.030981 | 0.694369 | 0.660069 | 0.630932 | 0.622695 | 0.597861 | 0.595279 | 0 | 0.024128 | 0.233021 | 15,887 | 435 | 195 | 36.521839 | 0.643414 | 0.168943 | 0 | 0.532319 | 0 | 0 | 0.051682 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0 | null | null | 0 | 0.015209 | null | null | 0.003802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b8491a9440e57a3f8c05ed57ee094ac378976cd9 | 175 | py | Python | examples/practice/student_manager_01/practice04.py | zhangdapeng520/zdppy_mysql | de3a0d94a87825d60869141893d45cca27c8cedf | [
"MIT"
] | null | null | null | examples/practice/student_manager_01/practice04.py | zhangdapeng520/zdppy_mysql | de3a0d94a87825d60869141893d45cca27c8cedf | [
"MIT"
] | null | null | null | examples/practice/student_manager_01/practice04.py | zhangdapeng520/zdppy_mysql | de3a0d94a87825d60869141893d45cca27c8cedf | [
"MIT"
] | 1 | 2022-02-20T23:14:10.000Z | 2022-02-20T23:14:10.000Z | from zdppy_mysql import Mysql
m = Mysql(db="test")
# 查询“95031”班的学生人数。
sql = """
select count(*)
from student
where student.CLASS = '95031';
"""
m.log.info(m.fetchone(sql))
| 13.461538 | 30 | 0.674286 | 27 | 175 | 4.333333 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.142857 | 175 | 12 | 31 | 14.583333 | 0.713333 | 0.091429 | 0 | 0 | 0 | 0 | 0.414013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b84b63b5195e5d58eed93f1c3b23cee18be28a35 | 217 | py | Python | temp.py | CodeLogist/RL-Forex-trader-LSTM | eb3c61293d6f0b650726c690fd8b3e0e1eb76735 | [
"MIT"
] | 76 | 2020-04-20T21:27:39.000Z | 2022-03-22T19:09:27.000Z | temp.py | happydasch/RL-Forex-trader-LSTM | eb3c61293d6f0b650726c690fd8b3e0e1eb76735 | [
"MIT"
] | 13 | 2020-03-31T11:53:56.000Z | 2022-03-12T00:21:29.000Z | temp.py | happydasch/RL-Forex-trader-LSTM | eb3c61293d6f0b650726c690fd8b3e0e1eb76735 | [
"MIT"
] | 23 | 2020-07-21T04:38:42.000Z | 2022-03-31T04:58:48.000Z | import pandas as pd
import talib
df= pd.read_csv('data/train/EURUSD_H1_2010-2019_train.csv')
close = df['close'].astype('float')
volume = df['volume'].astype('float')
obv = talib.MA(close, volume)
print(obv) | 24.111111 | 60 | 0.700461 | 35 | 217 | 4.228571 | 0.6 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.129032 | 217 | 9 | 61 | 24.111111 | 0.73545 | 0 | 0 | 0 | 0 | 0 | 0.290476 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8523d9d5bdc8328d8aeb45ed7f189a0fb14905b | 9,459 | py | Python | atoll/pipeline.py | coralproject/atoll | 2b62b37d3a320480264c4a0242532aad99c338ec | [
"Apache-2.0"
] | 12 | 2016-01-09T17:47:05.000Z | 2022-02-09T18:09:41.000Z | atoll/pipeline.py | coralproject/atoll | 2b62b37d3a320480264c4a0242532aad99c338ec | [
"Apache-2.0"
] | 16 | 2016-01-05T15:49:31.000Z | 2016-08-04T20:59:15.000Z | atoll/pipeline.py | coralproject/atoll | 2b62b37d3a320480264c4a0242532aad99c338ec | [
"Apache-2.0"
] | 1 | 2016-04-06T16:00:32.000Z | 2016-04-06T16:00:32.000Z | import logging
from hashlib import md5
from itertools import chain
from functools import partial
from joblib import Parallel, delayed
from atoll import distrib
from atoll.utility import prep_func
from atoll.pipes import Pipe, Branches
from atoll.exceptions import InvalidInputError
logger = logging.getLogger(__name__)... | 32.173469 | 112 | 0.587694 | 1,153 | 9,459 | 4.750217 | 0.196878 | 0.030674 | 0.038342 | 0.026292 | 0.403506 | 0.361512 | 0.322804 | 0.245755 | 0.188059 | 0.176009 | 0 | 0.00121 | 0.300772 | 9,459 | 293 | 113 | 32.283276 | 0.826882 | 0.150544 | 0 | 0.352941 | 0 | 0 | 0.027824 | 0.007369 | 0 | 0 | 0 | 0.003413 | 0.009804 | 1 | 0.205882 | false | 0 | 0.044118 | 0.044118 | 0.460784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8586abe3a9653c42a4b1918fb9358d8906a40ad | 3,010 | py | Python | angr/engines/vex/statements/cas.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:11.000Z | 2020-11-18T16:39:11.000Z | angr/engines/vex/statements/cas.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2019-04-08T12:10:07.000Z | 2019-04-08T12:10:07.000Z | angr/engines/vex/statements/cas.py | aeflores/angr | ac85a3f168375ed0ee20551b1b716c1bff4ac02b | [
"BSD-2-Clause"
] | 1 | 2020-11-18T16:39:13.000Z | 2020-11-18T16:39:13.000Z | # TODO: mem read SimActions
def SimIRStmt_CAS(engine, state, stmt):
# first, get the expression of the add
with state.history.subscribe_actions() as addr_actions:
addr = engine.handle_expression(state, stmt.addr)
# figure out if it's a single or double
double_element = (stmt.oldHi != 0xFFFFFFF... | 46.307692 | 132 | 0.692691 | 405 | 3,010 | 4.960494 | 0.217284 | 0.035839 | 0.076655 | 0.094077 | 0.726232 | 0.655052 | 0.567446 | 0.539572 | 0.539572 | 0.539572 | 0 | 0.001258 | 0.207973 | 3,010 | 64 | 133 | 47.03125 | 0.841443 | 0.080066 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003627 | 0.015625 | 0 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b86566688071e1b9be11c16e2797f8aae42b7573 | 1,583 | pyde | Python | Bouncing_Ball/Bouncing_Ball.pyde | jarredthejellyfish/coding_workshop | aacb95770c9cf02eb63d1b42a238a74f46f1f3ac | [
"MIT"
] | null | null | null | Bouncing_Ball/Bouncing_Ball.pyde | jarredthejellyfish/coding_workshop | aacb95770c9cf02eb63d1b42a238a74f46f1f3ac | [
"MIT"
] | null | null | null | Bouncing_Ball/Bouncing_Ball.pyde | jarredthejellyfish/coding_workshop | aacb95770c9cf02eb63d1b42a238a74f46f1f3ac | [
"MIT"
] | null | null | null | # This is the ball class that handles everything related to Balls
class Ball:
# The __init__ method is used to initialize class variables
def __init__(self, position, velocity, acceleration):
# Each ball has a position, velocity and acceleration
self.position = position
self.velocity = v... | 31.66 | 75 | 0.65319 | 215 | 1,583 | 4.744186 | 0.330233 | 0.082353 | 0.029412 | 0.037255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031842 | 0.265951 | 1,583 | 49 | 76 | 32.306122 | 0.845955 | 0.385976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b86958e8f351f8543d42411bd84398617b9430db | 1,419 | py | Python | demo/dask/cpu_training.py | bclehmann/xgboost | 345796825f7bbeb0251bca1244e296fda211551b | [
"Apache-2.0"
] | 23,866 | 2015-03-22T05:53:05.000Z | 2022-03-31T23:59:37.000Z | demo/dask/cpu_training.py | bclehmann/xgboost | 345796825f7bbeb0251bca1244e296fda211551b | [
"Apache-2.0"
] | 6,405 | 2015-03-22T09:41:16.000Z | 2022-03-31T23:28:40.000Z | demo/dask/cpu_training.py | bclehmann/xgboost | 345796825f7bbeb0251bca1244e296fda211551b | [
"Apache-2.0"
] | 9,745 | 2015-03-22T05:25:51.000Z | 2022-03-31T09:24:51.000Z | import xgboost as xgb
from xgboost.dask import DaskDMatrix
from dask.distributed import Client
from dask.distributed import LocalCluster
from dask import array as da
def main(client):
# generate some random data for demonstration
m = 100000
n = 100
X = da.random.random(size=(m, n), chunks=100)
y =... | 33.785714 | 73 | 0.64623 | 175 | 1,419 | 5.16 | 0.52 | 0.026578 | 0.033223 | 0.055371 | 0.042082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018322 | 0.269204 | 1,419 | 41 | 74 | 34.609756 | 0.852459 | 0.298802 | 0 | 0 | 1 | 0 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.28 | 0.04 | 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 |
b86a37b609d2ee31427916044c86a46961214a33 | 1,142 | py | Python | solutions/problem-027/python.py | kmchmk/projecteuler-solutions | 0900f4ef031e360fb80414420fb61522be1dd66a | [
"MIT"
] | null | null | null | solutions/problem-027/python.py | kmchmk/projecteuler-solutions | 0900f4ef031e360fb80414420fb61522be1dd66a | [
"MIT"
] | null | null | null | solutions/problem-027/python.py | kmchmk/projecteuler-solutions | 0900f4ef031e360fb80414420fb61522be1dd66a | [
"MIT"
] | null | null | null | # Function names are self explanatory
import math
def is_prime(N):
if N < 2:
return False
for i in range(2, math.floor(math.sqrt(N)) + 1):
if N % i == 0:
return False
return True
def evaluate_function(a, b, n):
return (n*n) + (a*n) + b
def get_how_many_conecutive_prime... | 25.954545 | 97 | 0.598074 | 178 | 1,142 | 3.629213 | 0.292135 | 0.148607 | 0.195046 | 0.111455 | 0.232198 | 0.173375 | 0.086687 | 0 | 0 | 0 | 0 | 0.025445 | 0.311734 | 1,142 | 43 | 98 | 26.55814 | 0.796438 | 0.149737 | 0 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.032258 | 0.032258 | 0.354839 | 0.032258 | 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 |
b8740dfac1dd583d38c8e21a0e0014a535f9dcc5 | 758 | py | Python | tests/test_local_shell.py | ackerleytng/automator | 547585a6217a3919bd9e9657106c07361771c82d | [
"MIT"
] | null | null | null | tests/test_local_shell.py | ackerleytng/automator | 547585a6217a3919bd9e9657106c07361771c82d | [
"MIT"
] | null | null | null | tests/test_local_shell.py | ackerleytng/automator | 547585a6217a3919bd9e9657106c07361771c82d | [
"MIT"
] | null | null | null | import select
import pytest
from pynomator import local_shell
def _read_until(selectable, until):
data = ""
while until not in data:
rl, wl, xl = select.select([selectable], [], [], 10)
for c in rl:
d = c.recv(1)
data += d
print repr(data)
return data... | 18.047619 | 60 | 0.602902 | 102 | 758 | 4.352941 | 0.431373 | 0.081081 | 0.081081 | 0.081081 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005474 | 0.277045 | 758 | 41 | 61 | 18.487805 | 0.804745 | 0 | 0 | 0.142857 | 0 | 0 | 0.059367 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0 | null | null | 0 | 0.107143 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b88118b0eea49cc570ad8e58a28c88cf5fafd19f | 539 | py | Python | examples/om-extensions/hello_world.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | examples/om-extensions/hello_world.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | examples/om-extensions/hello_world.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | # Oasis montaj Python extension to say Hello.
# To run this extension, select "Settings / Run GX or Python...",
# then browse to this script file.
import geosoft.gxpy as gxpy
# a python script must have a rungx()
def rungx():
gxpy.utility.check_version('9.2')
# Get the current gx context
# This is norm... | 28.368421 | 77 | 0.684601 | 86 | 539 | 4.267442 | 0.616279 | 0.043597 | 0.054496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.217069 | 539 | 18 | 78 | 29.944444 | 0.864929 | 0.584416 | 0 | 0 | 0 | 0 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b886a3d47811f894ff5188bae6cb3908452e9ae4 | 1,919 | py | Python | spider/fetch/followers/helper.py | weibo-spider/back-end | 0ccc8ad1a09a6ba1cd91c8030b554a14ed75e4f1 | [
"Apache-2.0"
] | null | null | null | spider/fetch/followers/helper.py | weibo-spider/back-end | 0ccc8ad1a09a6ba1cd91c8030b554a14ed75e4f1 | [
"Apache-2.0"
] | null | null | null | spider/fetch/followers/helper.py | weibo-spider/back-end | 0ccc8ad1a09a6ba1cd91c8030b554a14ed75e4f1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
# author:昌维[867597730@qq.com]
# github:https://github.com/cw1997
from spider.api.api import generate_followers_url
from spider.util.request import fetch
from spider.util.json import json_decode
def get_followers_json(int_uid, int_page):
url = generate_followers_url(int_uid, int_page)
... | 26.652778 | 102 | 0.64617 | 256 | 1,919 | 4.554688 | 0.347656 | 0.122642 | 0.087479 | 0.022298 | 0.080618 | 0.054889 | 0.054889 | 0.054889 | 0.054889 | 0 | 0 | 0.010907 | 0.235539 | 1,919 | 71 | 103 | 27.028169 | 0.783913 | 0.266806 | 0 | 0 | 1 | 0 | 0.067285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.40625 | 0.03125 | 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.