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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b918c27f2b168efd69908773e44475244b686dd0 | 3,379 | py | Python | imageproc_OE_IF_quant/2_annotate_extracted_cells.py | hshayya/2022_Shayya_UPR_Guidance | b9a305a147a105c3ac9c0173e06b94f66e4a6102 | [
"MIT"
] | null | null | null | imageproc_OE_IF_quant/2_annotate_extracted_cells.py | hshayya/2022_Shayya_UPR_Guidance | b9a305a147a105c3ac9c0173e06b94f66e4a6102 | [
"MIT"
] | null | null | null | imageproc_OE_IF_quant/2_annotate_extracted_cells.py | hshayya/2022_Shayya_UPR_Guidance | b9a305a147a105c3ac9c0173e06b94f66e4a6102 | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
import csv
import os
import re
from ij import IJ
from loci.plugins.in import ImporterOptions
from loci.plugins import BF
from ij.plugin import ImagesToStack
from ij import io
#Records metadata (x,y location) for cells that were extracted with 1_find_extract_cells.py
#metadata will be... | 40.710843 | 137 | 0.693992 | 550 | 3,379 | 4.081818 | 0.321818 | 0.021381 | 0.026726 | 0.033853 | 0.083742 | 0.05078 | 0.023163 | 0 | 0 | 0 | 0 | 0.008354 | 0.149748 | 3,379 | 83 | 138 | 40.710843 | 0.77306 | 0.213081 | 0 | 0 | 0 | 0 | 0.171895 | 0.053534 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | 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 |
b9206e8febc3abecc98cfdec65d8f8f8f61e43fc | 782 | py | Python | graphql_social_auth/mutations.py | deepsourcelabs/django-graphql-social-auth | a0cc7715144dc289ccb4d2430e7c3b94fc1dffba | [
"MIT"
] | 1 | 2021-09-03T11:55:33.000Z | 2021-09-03T11:55:33.000Z | graphql_social_auth/mutations.py | deepsourcelabs/django-graphql-social-auth | a0cc7715144dc289ccb4d2430e7c3b94fc1dffba | [
"MIT"
] | null | null | null | graphql_social_auth/mutations.py | deepsourcelabs/django-graphql-social-auth | a0cc7715144dc289ccb4d2430e7c3b94fc1dffba | [
"MIT"
] | null | null | null | import graphene
from graphql_jwt.decorators import setup_jwt_cookie
from . import mixins, types
from .decorators import social_auth
class SocialAuthMutation(mixins.SocialAuthMixin, graphene.Mutation):
social = graphene.Field(types.SocialType)
class Meta:
abstract = True
class Arguments:
... | 25.225806 | 68 | 0.726343 | 86 | 782 | 6.523256 | 0.5 | 0.071301 | 0.049911 | 0.092692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181586 | 782 | 30 | 69 | 26.066667 | 0.876563 | 0.07289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b923cd998b5a122c2fa8e86b09305b2b291d6507 | 3,873 | py | Python | platformio/commands/home/run.py | Granjow/platformio-core | 71ae579bc07b2e11fec16acda482dea04bc3a359 | [
"Apache-2.0"
] | 4,744 | 2016-11-28T14:37:47.000Z | 2022-03-31T12:35:56.000Z | platformio/commands/home/run.py | Granjow/platformio-core | 71ae579bc07b2e11fec16acda482dea04bc3a359 | [
"Apache-2.0"
] | 3,424 | 2016-11-27T22:45:41.000Z | 2022-03-31T21:40:03.000Z | platformio/commands/home/run.py | Granjow/platformio-core | 71ae579bc07b2e11fec16acda482dea04bc3a359 | [
"Apache-2.0"
] | 576 | 2016-12-01T18:48:22.000Z | 2022-03-30T02:27:35.000Z | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# 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 appli... | 38.73 | 88 | 0.737155 | 479 | 3,873 | 5.803758 | 0.386221 | 0.060432 | 0.038849 | 0.07482 | 0.103597 | 0.093165 | 0 | 0 | 0 | 0 | 0 | 0.004992 | 0.172476 | 3,873 | 99 | 89 | 39.121212 | 0.862403 | 0.150529 | 0 | 0.028169 | 0 | 0 | 0.079365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.309859 | 0 | 0.380282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b924107dfd6ae9e56411cce662afa3db86b021e5 | 11,450 | py | Python | appengine/components/components/machine_provider/rpc_messages.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2017-10-30T15:08:10.000Z | 2017-10-30T15:08:10.000Z | appengine/components/components/machine_provider/rpc_messages.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | null | null | null | appengine/components/components/machine_provider/rpc_messages.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2020-07-05T19:54:40.000Z | 2020-07-05T19:54:40.000Z | # Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Messages for the Machine Provider API."""
# pylint: disable=unused-wildcard-import, wildcard-import
from protorpc import messages
from compo... | 38.945578 | 79 | 0.773537 | 1,410 | 11,450 | 6.231206 | 0.184397 | 0.034145 | 0.056909 | 0.056226 | 0.482244 | 0.420783 | 0.373776 | 0.263374 | 0.222399 | 0.170612 | 0 | 0.009419 | 0.156245 | 11,450 | 293 | 80 | 39.078498 | 0.90001 | 0.52262 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.964912 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b925f7b3126896a3611797c97e1fa8d0eee2234c | 564 | py | Python | webscraping.py | carvalho-fdec/DesafioDSA | fec9742bd77ddc3923ed616b6511cce87de48968 | [
"MIT"
] | null | null | null | webscraping.py | carvalho-fdec/DesafioDSA | fec9742bd77ddc3923ed616b6511cce87de48968 | [
"MIT"
] | null | null | null | webscraping.py | carvalho-fdec/DesafioDSA | fec9742bd77ddc3923ed616b6511cce87de48968 | [
"MIT"
] | null | null | null | # webscraping test
import urllib.request
from bs4 import BeautifulSoup
with urllib.request.urlopen('http://www.netvasco.com.br') as url:
page = url.read()
#print(page)
print(url.geturl())
print(url.info())
print(url.getcode())
# Analise o html na variável 'page' e armazene-o no formato Beautiful... | 18.193548 | 74 | 0.687943 | 86 | 564 | 4.465116 | 0.55814 | 0.09375 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.157801 | 564 | 30 | 75 | 18.8 | 0.802105 | 0.216312 | 0 | 0 | 0 | 0 | 0.097448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
b927180a3b55091e89983dcae5d96dd47f1373ae | 4,172 | py | Python | extras/amld/cloud/quickdraw_rnn/task.py | luyang1210/tensorflow | 948324f4cafdc97ae51c0e44fc1c28677a6e2e8a | [
"Apache-2.0"
] | 1 | 2019-04-28T15:46:45.000Z | 2019-04-28T15:46:45.000Z | extras/amld/cloud/quickdraw_rnn/task.py | luyang1210/tensorflow | 948324f4cafdc97ae51c0e44fc1c28677a6e2e8a | [
"Apache-2.0"
] | null | null | null | extras/amld/cloud/quickdraw_rnn/task.py | luyang1210/tensorflow | 948324f4cafdc97ae51c0e44fc1c28677a6e2e8a | [
"Apache-2.0"
] | 1 | 2020-11-18T04:43:33.000Z | 2020-11-18T04:43:33.000Z | """Experiment wrapper for training on Cloud ML."""
import argparse, glob, os
import tensorflow as tf
# From this package.
import model
def generate_experiment_fn(data_dir, train_batch_size, eval_batch_size,
train_steps, eval_steps, cell_size, hidden,
**experime... | 28.972222 | 81 | 0.613375 | 497 | 4,172 | 4.921529 | 0.338028 | 0.051513 | 0.076451 | 0.025756 | 0.223222 | 0.123467 | 0.079313 | 0.079313 | 0.047424 | 0.047424 | 0 | 0.007092 | 0.290268 | 4,172 | 143 | 82 | 29.174825 | 0.81898 | 0.173298 | 0 | 0.216981 | 1 | 0 | 0.188087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.028302 | 0.009434 | 0.066038 | 0 | 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 |
b92c7cbb70fbc4dd2dec20c24e021d0f6405bd12 | 19,900 | py | Python | marshmallow_dataclass/__init__.py | dan-starkware/marshmallow_dataclass | 25c3e041d8c6a87d740984e57a5bd29b768afbf8 | [
"MIT"
] | null | null | null | marshmallow_dataclass/__init__.py | dan-starkware/marshmallow_dataclass | 25c3e041d8c6a87d740984e57a5bd29b768afbf8 | [
"MIT"
] | null | null | null | marshmallow_dataclass/__init__.py | dan-starkware/marshmallow_dataclass | 25c3e041d8c6a87d740984e57a5bd29b768afbf8 | [
"MIT"
] | null | null | null | """
This library allows the conversion of python 3.7's :mod:`dataclasses`
to :mod:`marshmallow` schemas.
It takes a python class, and generates a marshmallow schema for it.
Simple example::
from marshmallow import Schema
from marshmallow_dataclass import dataclass
@dataclass
class Point:
x:flo... | 34.133791 | 110 | 0.647538 | 2,355 | 19,900 | 5.323142 | 0.163057 | 0.040683 | 0.021777 | 0.014359 | 0.238274 | 0.176292 | 0.131142 | 0.121809 | 0.096921 | 0.082403 | 0 | 0.004284 | 0.237638 | 19,900 | 582 | 111 | 34.19244 | 0.822029 | 0.499196 | 0 | 0.157895 | 1 | 0.004049 | 0.043687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064777 | false | 0 | 0.040486 | 0.008097 | 0.226721 | 0 | 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 |
b9312660991c249b5bd6faf4ead63f4150e99b7e | 4,915 | py | Python | pysnmp/EXTREME-RTSTATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/EXTREME-RTSTATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/EXTREME-RTSTATS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module EXTREME-RTSTATS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EXTREME-BASE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:53:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, M... | 114.302326 | 713 | 0.790031 | 498 | 4,915 | 7.793173 | 0.25502 | 0.007215 | 0.075754 | 0.013399 | 0.345014 | 0.262304 | 0.172121 | 0.172121 | 0.172121 | 0.168771 | 0 | 0.068882 | 0.075483 | 4,915 | 42 | 714 | 117.02381 | 0.785211 | 0.066938 | 0 | 0 | 0 | 0 | 0.157745 | 0.009613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b936e2da1dfb0c50e0a4123e54c302664e300cf0 | 4,454 | py | Python | tests/core_ptl/check_for_ranks.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | 2 | 2021-09-21T07:36:20.000Z | 2022-02-05T15:29:04.000Z | tests/core_ptl/check_for_ranks.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | null | null | null | tests/core_ptl/check_for_ranks.py | PatrykNeubauer/NeMo | 3ada744b884dba5f233f22c6991fc6092c6ca8d0 | [
"Apache-2.0"
] | 12 | 2021-06-20T08:56:10.000Z | 2022-03-16T19:07:10.000Z | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 28.551282 | 102 | 0.687023 | 604 | 4,454 | 4.836093 | 0.347682 | 0.030811 | 0.012325 | 0.013352 | 0.109552 | 0.05683 | 0.043136 | 0.026703 | 0.026703 | 0 | 0 | 0.005402 | 0.210373 | 4,454 | 155 | 103 | 28.735484 | 0.825135 | 0.141895 | 0 | 0.145833 | 0 | 0 | 0.113738 | 0.032834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.09375 | 0.072917 | 0.4375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b93839299c30aa23ab066b85969c7c27e043c202 | 1,143 | py | Python | helpers/json_manager.py | Lofi-Lemonade/Python-Discord-Bot-Template | 4cb79197c751c88100ad396adb38e88bf2a4d1ed | [
"Apache-2.0"
] | null | null | null | helpers/json_manager.py | Lofi-Lemonade/Python-Discord-Bot-Template | 4cb79197c751c88100ad396adb38e88bf2a4d1ed | [
"Apache-2.0"
] | null | null | null | helpers/json_manager.py | Lofi-Lemonade/Python-Discord-Bot-Template | 4cb79197c751c88100ad396adb38e88bf2a4d1ed | [
"Apache-2.0"
] | null | null | null | """"
Copyright © Krypton 2022 - https://github.com/kkrypt0nn (https://krypton.ninja)
Description:
This is a template to create your own discord bot in python.
Version: 4.1
"""
import json
def add_user_to_blacklist(user_id: int) -> None:
"""
This function will add a user based on its ID in the blacklist.json... | 31.75 | 91 | 0.659668 | 181 | 1,143 | 4.071823 | 0.353591 | 0.141113 | 0.086839 | 0.108548 | 0.719132 | 0.708277 | 0.662144 | 0.662144 | 0.559023 | 0.559023 | 0 | 0.012346 | 0.220472 | 1,143 | 35 | 92 | 32.657143 | 0.813692 | 0.433946 | 0 | 0.533333 | 0 | 0 | 0.111296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
b93a3daf85b033d7039d8c3747eadb457802db6b | 2,814 | py | Python | GeneratePassword/generate_password_v2.py | OneScreenfulOfPython/screenfuls | ea4e378c8d9e530edadd4a3315fe9e8acc98460b | [
"Apache-2.0"
] | 2 | 2015-01-19T14:50:55.000Z | 2015-01-28T12:45:59.000Z | GeneratePassword/generate_password_v2.py | OneScreenfulOfPython/screenfuls | ea4e378c8d9e530edadd4a3315fe9e8acc98460b | [
"Apache-2.0"
] | null | null | null | GeneratePassword/generate_password_v2.py | OneScreenfulOfPython/screenfuls | ea4e378c8d9e530edadd4a3315fe9e8acc98460b | [
"Apache-2.0"
] | null | null | null | import os, sys
import random
import string
try:
# Make Python2 work like Python3
input = raw_input
except NameError:
# On Python3; already using input
pass
letters = string.ascii_letters
numbers = string.digits
punctuation = string.punctuation
def generate(password_length, at_least_one_letter, at_lea... | 33.5 | 108 | 0.658138 | 369 | 2,814 | 4.821138 | 0.365854 | 0.086565 | 0.123665 | 0.062957 | 0.229342 | 0.106802 | 0.106802 | 0.106802 | 0.084317 | 0.084317 | 0 | 0.001428 | 0.253376 | 2,814 | 83 | 109 | 33.903614 | 0.845312 | 0.327292 | 0 | 0.046512 | 0 | 0 | 0.074878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.255814 | 0.069767 | 0 | 0.116279 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b93aaafe8012e07a3a1b7cd6bfac2b4027e51ebd | 3,760 | py | Python | hard-gists/7578539/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/7578539/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/7578539/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | from pylab import *
from numpy import *
from numpy.linalg import solve
from scipy.integrate import odeint
from scipy.stats import norm, uniform, beta
from scipy.special import jacobi
a = 0.0
b = 3.0
theta=1.0
sigma=sqrt(theta/(2*(a+b+2)))
tscale = 0.05
invariant_distribution = poly1d( [-1 for x in range(int(a))], ... | 27.246377 | 109 | 0.611702 | 655 | 3,760 | 3.412214 | 0.203053 | 0.009843 | 0.018792 | 0.034452 | 0.173154 | 0.104251 | 0.085906 | 0.047427 | 0.047427 | 0.047427 | 0 | 0.036217 | 0.206915 | 3,760 | 137 | 110 | 27.445255 | 0.71328 | 0 | 0 | 0.093458 | 0 | 0 | 0.014933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056075 | null | null | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b93b21d31a5eecb527d2b3ad7f00cf5d4683d661 | 1,535 | py | Python | forms.py | lennykioko/Flask-social-network | 15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65 | [
"MIT"
] | 1 | 2018-04-15T19:35:54.000Z | 2018-04-15T19:35:54.000Z | forms.py | lennykioko/Flask-social-network | 15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65 | [
"MIT"
] | null | null | null | forms.py | lennykioko/Flask-social-network | 15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65 | [
"MIT"
] | null | null | null | # forms are not just about display, instead they are more of validation
# wtf forms protect our site against csrf attacks
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextAreaField
from wtforms.validators import (DataRequired, Regexp, ValidationError, Email,
Length, EqualTo... | 25.583333 | 85 | 0.712704 | 171 | 1,535 | 6.362573 | 0.48538 | 0.141544 | 0.082721 | 0.03125 | 0.334559 | 0.240809 | 0.152574 | 0.152574 | 0 | 0 | 0 | 0.003891 | 0.162866 | 1,535 | 59 | 86 | 26.016949 | 0.842802 | 0.084691 | 0 | 0.222222 | 0 | 0 | 0.172734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.155556 | 0.088889 | 0 | 0.355556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9417eb816defb8a05e4de472fa5d06b0845774d | 4,237 | py | Python | src/c/c_pyzstd.py | corneliusroemer/pyzstd | 06f14ad29735d9ae85c188703dcb64c24686c4f2 | [
"BSD-3-Clause"
] | 29 | 2020-10-13T03:35:37.000Z | 2022-03-14T11:09:47.000Z | src/c/c_pyzstd.py | corneliusroemer/pyzstd | 06f14ad29735d9ae85c188703dcb64c24686c4f2 | [
"BSD-3-Clause"
] | 12 | 2020-12-22T02:27:47.000Z | 2022-03-18T14:54:33.000Z | src/c/c_pyzstd.py | corneliusroemer/pyzstd | 06f14ad29735d9ae85c188703dcb64c24686c4f2 | [
"BSD-3-Clause"
] | 3 | 2020-11-21T20:57:10.000Z | 2021-09-26T01:14:44.000Z | from collections import namedtuple
from enum import IntEnum
from ._zstd import *
from . import _zstd
__all__ = (# From this file
'compressionLevel_values', 'get_frame_info',
'CParameter', 'DParameter', 'Strategy',
# From _zstd
'ZstdCompressor', 'RichMemZstdCompressor',
... | 36.213675 | 80 | 0.663441 | 468 | 4,237 | 5.583333 | 0.346154 | 0.101033 | 0.065442 | 0.022962 | 0.091083 | 0.073479 | 0.04822 | 0.04822 | 0.04822 | 0.04822 | 0 | 0.005181 | 0.271182 | 4,237 | 117 | 81 | 36.213675 | 0.840997 | 0.275667 | 0 | 0.032787 | 0 | 0 | 0.108725 | 0.030537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.065574 | 0 | 0.688525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9421dbb7e263a5a3de9a9e29e270b09ceba630c | 1,004 | py | Python | django_events/users/management/commands/create_default_su.py | chrisBrookes93/django-events-management | 93886448a7bb85c8758324977ff67bcacc80bbec | [
"MIT"
] | null | null | null | django_events/users/management/commands/create_default_su.py | chrisBrookes93/django-events-management | 93886448a7bb85c8758324977ff67bcacc80bbec | [
"MIT"
] | null | null | null | django_events/users/management/commands/create_default_su.py | chrisBrookes93/django-events-management | 93886448a7bb85c8758324977ff67bcacc80bbec | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from django.contrib.auth import get_user_model
class Command(BaseCommand):
help = "Creates a default super user if one doesn't already exist. " \
"This is designed to be used in the docker-compose.yml to create an initial super user on deploymen... | 41.833333 | 114 | 0.661355 | 129 | 1,004 | 5.069767 | 0.581395 | 0.03211 | 0.055046 | 0.058104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1,004 | 23 | 115 | 43.652174 | 0.868526 | 0.111554 | 0 | 0 | 0 | 0.076923 | 0.387214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b942ff3dafb5c886434a478e8bfb0592e83afd1c | 6,215 | bzl | Python | antlir/bzl/image_layer.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 28 | 2020-08-11T16:22:46.000Z | 2022-03-04T15:41:52.000Z | antlir/bzl/image_layer.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 137 | 2020-08-11T16:07:49.000Z | 2022-02-27T10:59:05.000Z | antlir/bzl/image_layer.bzl | zeroxoneb/antlir | 811d88965610d16a5c85d831d317f087797ca732 | [
"MIT"
] | 10 | 2020-09-10T00:01:28.000Z | 2022-03-08T18:00:28.000Z | # 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.
"""
An `image.layer` is a set of `feature` with some additional parameters. Its
purpose to materialize those `feature`s as a btrfs subvolume ... | 44.078014 | 79 | 0.740628 | 950 | 6,215 | 4.774737 | 0.374737 | 0.039683 | 0.016534 | 0.011905 | 0.037037 | 0.037037 | 0.037037 | 0.037037 | 0.037037 | 0.020723 | 0 | 0 | 0.20177 | 6,215 | 140 | 80 | 44.392857 | 0.914332 | 0.8428 | 0 | 0 | 0 | 0 | 0.157596 | 0.080499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9458ab72f55b4db845f6d76e44dba3b00e000ed | 6,265 | py | Python | src/features/v3/proc_v3_n1_calc_distance.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | src/features/v3/proc_v3_n1_calc_distance.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | src/features/v3/proc_v3_n1_calc_distance.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | import os
import sys
import pandas as pd
from datetime import datetime
from settings import RAW_DATA_DIR, DataV3, DATA_V3_SUBVERSION
from src.features.helpers.processing import add_missing_timestamp_values
from src.features.helpers.processing_v3 import get_closest_players, get_players_and_ball_indices, calculate_distan... | 35.596591 | 119 | 0.675499 | 934 | 6,265 | 4.17666 | 0.217345 | 0.017688 | 0.020508 | 0.015381 | 0.277108 | 0.136632 | 0.102538 | 0.067931 | 0.058703 | 0.044348 | 0 | 0.009312 | 0.194413 | 6,265 | 175 | 120 | 35.8 | 0.763622 | 0.03336 | 0 | 0.095588 | 0 | 0 | 0.168788 | 0.013721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051471 | 0.058824 | 0 | 0.058824 | 0.073529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b945e094a775936b9b256c03b9ad1404cebcb291 | 1,312 | py | Python | annotate-preprocessed.py | Rajpratik71/devel-scripts | 068285719a13b02889b1314361cc5bdb764d9a3a | [
"Apache-2.0"
] | null | null | null | annotate-preprocessed.py | Rajpratik71/devel-scripts | 068285719a13b02889b1314361cc5bdb764d9a3a | [
"Apache-2.0"
] | null | null | null | annotate-preprocessed.py | Rajpratik71/devel-scripts | 068285719a13b02889b1314361cc5bdb764d9a3a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""Annotates -E preprocessed source input with line numbers.
Read std input, then annotate each line with line number based on previous
expanded line directives from -E output. Useful in the context of compiler
debugging.
"""
import getopt
import os
import re
import sys
import script_utils as u
... | 19.014493 | 74 | 0.636433 | 188 | 1,312 | 4.393617 | 0.553191 | 0.039952 | 0.038741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00679 | 0.214177 | 1,312 | 68 | 75 | 19.294118 | 0.794374 | 0.035823 | 0 | 0 | 0 | 0 | 0.159629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9475ee1123a7f8c87eb161ddf2246d4b5a64a79 | 1,847 | py | Python | fst_web/demo_settings.py | kamidev/autobuild_fst | 6baffa955075ffe3c5f197789e9fd065fa74058e | [
"BSD-3-Clause"
] | null | null | null | fst_web/demo_settings.py | kamidev/autobuild_fst | 6baffa955075ffe3c5f197789e9fd065fa74058e | [
"BSD-3-Clause"
] | null | null | null | fst_web/demo_settings.py | kamidev/autobuild_fst | 6baffa955075ffe3c5f197789e9fd065fa74058e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
ROOT = os.path.abspath(os.path.dirname(__file__))
path = lambda *args: os.path.join(ROOT, *args)
""" Template for local settings of the FST webservice (fst_web)
Please edit this file and replace all generic values with values suitable to
your particular installation.
"""
# NOTE! Al... | 28.415385 | 76 | 0.721711 | 281 | 1,847 | 4.629893 | 0.519573 | 0.023059 | 0.023059 | 0.013836 | 0.047656 | 0.021522 | 0 | 0 | 0 | 0 | 0 | 0.020182 | 0.168381 | 1,847 | 64 | 77 | 28.859375 | 0.826823 | 0.494857 | 0 | 0 | 0 | 0 | 0.226287 | 0.03523 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b94890b4860019fd993040c0790c0701fc24a0c5 | 2,919 | py | Python | main.py | valurhrafn/chromium-sync | df5e3299d179fc47ff34d1a95409383f46aac4d4 | [
"MIT"
] | 4 | 2017-03-27T02:25:07.000Z | 2021-03-07T21:40:58.000Z | main.py | valurhrafn/chromium-sync | df5e3299d179fc47ff34d1a95409383f46aac4d4 | [
"MIT"
] | null | null | null | main.py | valurhrafn/chromium-sync | df5e3299d179fc47ff34d1a95409383f46aac4d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 30.40625 | 74 | 0.647825 | 363 | 2,919 | 5.121212 | 0.4573 | 0.045186 | 0.051641 | 0.043034 | 0.141474 | 0.124798 | 0.124798 | 0.023669 | 0 | 0 | 0 | 0.006891 | 0.204522 | 2,919 | 95 | 75 | 30.726316 | 0.793712 | 0.378554 | 0 | 0.191489 | 0 | 0 | 0.100338 | 0.027058 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.148936 | false | 0.042553 | 0.106383 | 0.021277 | 0.446809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b94a534d42db78fa886439d7fdfdf20e0f8b2504 | 1,434 | py | Python | comet/service/subscriber.py | dneise/Comet | abaa0da65d69f90a5262d81416477b4e71deb2ad | [
"BSD-2-Clause"
] | 15 | 2015-11-29T18:53:58.000Z | 2022-03-09T15:47:30.000Z | comet/service/subscriber.py | dneise/Comet | abaa0da65d69f90a5262d81416477b4e71deb2ad | [
"BSD-2-Clause"
] | 29 | 2016-01-21T18:10:45.000Z | 2021-10-01T16:41:12.000Z | comet/service/subscriber.py | dneise/Comet | abaa0da65d69f90a5262d81416477b4e71deb2ad | [
"BSD-2-Clause"
] | 11 | 2016-01-22T14:05:51.000Z | 2022-03-09T17:49:56.000Z | # Comet VOEvent Broker.
from twisted.application.internet import ClientService
from comet.protocol.subscriber import VOEventSubscriberFactory
__all__ = ["makeSubscriberService"]
def makeSubscriberService(endpoint, local_ivo, validators, handlers, filters):
"""Create a reconnecting VOEvent subscriber service.
... | 35.85 | 80 | 0.727336 | 162 | 1,434 | 6.395062 | 0.512346 | 0.028958 | 0.050193 | 0.050193 | 0.123552 | 0.059846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202929 | 1,434 | 39 | 81 | 36.769231 | 0.906387 | 0.66318 | 0 | 0 | 0 | 0 | 0.053571 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b94e05939494c3c75adce95bb694899b36d0a091 | 919 | py | Python | src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py | dios-game/dios-cocos | b7fbcbafe02f516ef18fdb64b4519dbf806303fc | [
"MIT"
] | 1 | 2021-07-22T15:53:26.000Z | 2021-07-22T15:53:26.000Z | src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py | dios-game/dios-cocos | b7fbcbafe02f516ef18fdb64b4519dbf806303fc | [
"MIT"
] | null | null | null | src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py | dios-game/dios-cocos | b7fbcbafe02f516ef18fdb64b4519dbf806303fc | [
"MIT"
] | null | null | null |
import cocos
from MultiLanguage import MultiLanguage
from package.helper import ProjectHelper
class FrameworkAdd(cocos.CCPlugin):
@staticmethod
def plugin_name():
return "add-framework"
@staticmethod
def brief_description():
return MultiLanguage.get_string('FRAMEWORK_ADD_BRIEF')
... | 28.71875 | 108 | 0.686616 | 99 | 919 | 6.111111 | 0.383838 | 0.044628 | 0.072727 | 0.102479 | 0.112397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225245 | 919 | 31 | 109 | 29.645161 | 0.849719 | 0.016322 | 0 | 0.095238 | 0 | 0 | 0.077691 | 0.024417 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.190476 | 0.095238 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9530c0fbf29c36506820a41f0b32bd37796d3e0 | 1,298 | py | Python | code/examples/example_binomial_and_log_normal_abtest.py | hugopibernat/BayesianABTestAnalysis | 026960524f5313f4a734f30fd447a5731be802e0 | [
"Apache-2.0"
] | null | null | null | code/examples/example_binomial_and_log_normal_abtest.py | hugopibernat/BayesianABTestAnalysis | 026960524f5313f4a734f30fd447a5731be802e0 | [
"Apache-2.0"
] | null | null | null | code/examples/example_binomial_and_log_normal_abtest.py | hugopibernat/BayesianABTestAnalysis | 026960524f5313f4a734f30fd447a5731be802e0 | [
"Apache-2.0"
] | null | null | null | #################################################
####### Author: Hugo Pibernat #######
####### Contact: hugopibernat@gmail.com #######
####### Date: April 2014 #######
#################################################
from bayesianABTest import sampleSuccessRateForBinomial, sampleMeanF... | 32.45 | 106 | 0.692604 | 173 | 1,298 | 4.930636 | 0.34104 | 0.029308 | 0.051583 | 0.049238 | 0.032825 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029903 | 0.124037 | 1,298 | 40 | 107 | 32.45 | 0.720317 | 0.195686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b95403252db42b0394653a122fd73b2b596e194d | 400 | py | Python | app/main.py | meysam81/sheypoor | aa67e20646ebc4143b83968f60c0b28c2ad340a1 | [
"MIT"
] | null | null | null | app/main.py | meysam81/sheypoor | aa67e20646ebc4143b83968f60c0b28c2ad340a1 | [
"MIT"
] | null | null | null | app/main.py | meysam81/sheypoor | aa67e20646ebc4143b83968f60c0b28c2ad340a1 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app import api
from app.core.config import config
app = FastAPI(title="Sheypoor")
# Set all CORS enabled origins
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
... | 21.052632 | 53 | 0.7425 | 51 | 400 | 5.686275 | 0.509804 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145 | 400 | 18 | 54 | 22.222222 | 0.847953 | 0.07 | 0 | 0 | 0 | 0 | 0.02973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9652ceb78b45d3bef98c61d48e3cd4630133615 | 19,317 | py | Python | sdk/python/pulumi_google_native/testing/v1/test_matrix.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/testing/v1/test_matrix.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/testing/v1/test_matrix.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.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
fro... | 50.436031 | 458 | 0.67671 | 2,305 | 19,317 | 5.431236 | 0.12321 | 0.050084 | 0.047048 | 0.031872 | 0.714754 | 0.6316 | 0.609394 | 0.596134 | 0.567058 | 0.544373 | 0 | 0.001756 | 0.233421 | 19,317 | 382 | 459 | 50.568063 | 0.843666 | 0.344567 | 0 | 0.412766 | 1 | 0 | 0.165417 | 0.038828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148936 | false | 0.004255 | 0.034043 | 0.004255 | 0.285106 | 0 | 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 |
b965c021bcb2dac479172708e85ad9ed89f09ef2 | 5,427 | py | Python | View/View.py | MoriokaReimen/ConfigHeaderGenerator | 73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e | [
"MIT"
] | null | null | null | View/View.py | MoriokaReimen/ConfigHeaderGenerator | 73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e | [
"MIT"
] | null | null | null | View/View.py | MoriokaReimen/ConfigHeaderGenerator | 73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e | [
"MIT"
] | null | null | null | import tkinter as tk
import tkinter.messagebox
from Control import Control
class View:
def __init__(self, control : Control.Control):
self.control = control
# Init Window
self.root = tk.Tk()
self.root.title(u"Header File Generator")
self.root.geometry("700x800")
se... | 43.071429 | 112 | 0.629445 | 696 | 5,427 | 4.741379 | 0.136494 | 0.06 | 0.058182 | 0.060606 | 0.763636 | 0.713939 | 0.665758 | 0.638485 | 0.6 | 0.535758 | 0 | 0.015036 | 0.252442 | 5,427 | 125 | 113 | 43.416 | 0.798373 | 0.00995 | 0 | 0.3125 | 0 | 0 | 0.054583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.010417 | 0.03125 | 0 | 0.104167 | 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 |
b967ba0197b144171458b230c2dfe31844ba0b72 | 5,231 | py | Python | dags/download_decrypt_transfer_files.py | hms-dbmi/bch-pic-sure-airflow-dags | 0c1e6f07da4e270581942e551ac30284474921d4 | [
"Apache-2.0"
] | null | null | null | dags/download_decrypt_transfer_files.py | hms-dbmi/bch-pic-sure-airflow-dags | 0c1e6f07da4e270581942e551ac30284474921d4 | [
"Apache-2.0"
] | null | null | null | dags/download_decrypt_transfer_files.py | hms-dbmi/bch-pic-sure-airflow-dags | 0c1e6f07da4e270581942e551ac30284474921d4 | [
"Apache-2.0"
] | null | null | null | """
@author: anilkdegala
"""
import os
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator, BranchPythonOperator
from datetime import date, timedelta, datetime
from collections import OrderedDict
from scripts.dag_pebbles import ... | 30.770588 | 171 | 0.664118 | 585 | 5,231 | 5.586325 | 0.218803 | 0.055692 | 0.066095 | 0.025704 | 0.250306 | 0.222766 | 0.168605 | 0.146573 | 0.083843 | 0.083843 | 0 | 0.002979 | 0.229975 | 5,231 | 169 | 172 | 30.952663 | 0.808342 | 0.003823 | 0 | 0.201493 | 0 | 0 | 0.208149 | 0.111474 | 0.022388 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.052239 | 0.074627 | 0 | 0.149254 | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b96b280416f0d557826ffa670a7914f2d45e5fc5 | 526 | py | Python | src/sot_talos_balance/test/test_feet_admittance.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | src/sot_talos_balance/test/test_feet_admittance.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | src/sot_talos_balance/test/test_feet_admittance.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | '''Test feet admittance control'''
from sot_talos_balance.utils.run_test_utils import run_ft_calibration, run_test, runCommandClient
try:
# Python 2
input = raw_input # noqa
except NameError:
pass
run_test('appli_feet_admittance.py')
run_ft_calibration('robot.ftc')
input("Wait before running the test")
... | 25.047619 | 97 | 0.752852 | 79 | 526 | 4.822785 | 0.556962 | 0.047244 | 0.055118 | 0.052493 | 0.028871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030369 | 0.123574 | 526 | 20 | 98 | 26.3 | 0.796095 | 0.081749 | 0 | 0 | 0 | 0.083333 | 0.42437 | 0.17437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b96d766a7c5eab27eb3785b1277b6beccda7c9ed | 1,446 | py | Python | auth/tests/test_views.py | asb29/Redundant | ee816fd41f9217610bd11f757cf9175288723c70 | [
"MIT"
] | null | null | null | auth/tests/test_views.py | asb29/Redundant | ee816fd41f9217610bd11f757cf9175288723c70 | [
"MIT"
] | null | null | null | auth/tests/test_views.py | asb29/Redundant | ee816fd41f9217610bd11f757cf9175288723c70 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.test import Client
class RegisterTestCase(TestCase):
def test_register(self):
c = Client()
# on success redirects to /
response = c.post('/accounts/register/', {
'username': 'asdas',
'password1': 'asdasdasd12',
... | 30.125 | 52 | 0.53527 | 116 | 1,446 | 6.62931 | 0.37931 | 0.058518 | 0.084525 | 0.136541 | 0.563069 | 0.453836 | 0.117035 | 0 | 0 | 0 | 0 | 0.037344 | 0.333333 | 1,446 | 47 | 53 | 30.765957 | 0.760373 | 0.076763 | 0 | 0.571429 | 0 | 0 | 0.258841 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.028571 | false | 0.285714 | 0.057143 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b974d5d1bd35654f50415a8f7c66f3fb9a0316ab | 704 | py | Python | tests/test_formatter.py | hbraux/kafkacli | 5f7ed23150932b66b484fb43dd6210b6c0968776 | [
"MIT"
] | null | null | null | tests/test_formatter.py | hbraux/kafkacli | 5f7ed23150932b66b484fb43dd6210b6c0968776 | [
"MIT"
] | null | null | null | tests/test_formatter.py | hbraux/kafkacli | 5f7ed23150932b66b484fb43dd6210b6c0968776 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import pytest
import json
from kafkacli.formatter import Formatter
sampleJson = json.loads('{"a":"s", "b":1}')
def test_print_default(capsys):
Formatter().print(sampleJson)
captured = capsys.readouterr()
assert captured.out == '{"a": "s", "b": 1}\n... | 24.275862 | 62 | 0.640625 | 96 | 704 | 4.635417 | 0.395833 | 0.013483 | 0.080899 | 0.195506 | 0.4 | 0.4 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0.02911 | 0.170455 | 704 | 28 | 63 | 25.142857 | 0.732877 | 0.059659 | 0 | 0.166667 | 0 | 0.055556 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.388889 | 0.333333 | 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 |
b975e6fb7fb3fa8849afb4e4ce41618c2ce94c1b | 451 | py | Python | src/test/tests/unit/protocol.py | ylee88/visit | 8e0920996d84fef70a7014b0d770360918d849d5 | [
"BSD-3-Clause"
] | 1 | 2022-01-27T23:52:04.000Z | 2022-01-27T23:52:04.000Z | src/test/tests/unit/protocol.py | ylee88/visit | 8e0920996d84fef70a7014b0d770360918d849d5 | [
"BSD-3-Clause"
] | null | null | null | src/test/tests/unit/protocol.py | ylee88/visit | 8e0920996d84fef70a7014b0d770360918d849d5 | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: protocolo.py
#
# Tests: vistprotocol unit test
#
# Mark C. Miller, Tue Jan 11 10:19:23 PST 2011
# ----------------------------------------------------------------------------
tapp = visit_bin_path(... | 26.529412 | 78 | 0.432373 | 44 | 451 | 4.340909 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049223 | 0.144124 | 451 | 16 | 79 | 28.1875 | 0.445596 | 0.618625 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b97d4675d330154e0b12b91fbd601affd888ea29 | 1,901 | py | Python | examples/airflow/dags/etl_orders_7_days.py | phixMe/marquez | 06d71635369893b371a8a9c9e7023f11d7cbb1f8 | [
"Apache-2.0"
] | null | null | null | examples/airflow/dags/etl_orders_7_days.py | phixMe/marquez | 06d71635369893b371a8a9c9e7023f11d7cbb1f8 | [
"Apache-2.0"
] | null | null | null | examples/airflow/dags/etl_orders_7_days.py | phixMe/marquez | 06d71635369893b371a8a9c9e7023f11d7cbb1f8 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from marquez_airflow import DAG
from airflow.operators.postgres_operator import PostgresOperator
from airflow.utils.dates import days_ago
default_args = {
'owner': 'datascience',
'depends_on_past': False,
'start_date': days_ago(1),
'email_on_failure': False,
'email_on_... | 29.246154 | 135 | 0.681746 | 270 | 1,901 | 4.533333 | 0.318519 | 0.044118 | 0.093137 | 0.044118 | 0.105392 | 0.07598 | 0.07598 | 0 | 0 | 0 | 0 | 0.008136 | 0.224093 | 1,901 | 64 | 136 | 29.703125 | 0.821695 | 0 | 0 | 0.137931 | 0 | 0.017241 | 0.635455 | 0.012099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0 | 0 | 0 | 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 |
b980be1e0d2b8db749e25a4f49c35cdddbdca9d9 | 1,650 | py | Python | tt/urls.py | samiksha-patil/Knowledge-Sharing-Platform | 22e61a659d5ad63fe656fa639dc897cbdebad4fe | [
"bzip2-1.0.6"
] | 1 | 2021-05-09T08:18:49.000Z | 2021-05-09T08:18:49.000Z | tt/urls.py | samiksha-patil/Knowledge-Sharing-Platform | 22e61a659d5ad63fe656fa639dc897cbdebad4fe | [
"bzip2-1.0.6"
] | 9 | 2021-03-19T01:11:35.000Z | 2022-03-12T00:20:13.000Z | tt/urls.py | samiksha-patil/Knowledge-Sharing-Platform | 22e61a659d5ad63fe656fa639dc897cbdebad4fe | [
"bzip2-1.0.6"
] | null | null | null | """
tt URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | 35.869565 | 100 | 0.726061 | 243 | 1,650 | 4.835391 | 0.316872 | 0.051064 | 0.012766 | 0.020426 | 0.138723 | 0.099574 | 0.06383 | 0 | 0 | 0 | 0 | 0.00569 | 0.147879 | 1,650 | 46 | 101 | 35.869565 | 0.830014 | 0.428485 | 0 | 0 | 0 | 0 | 0.149733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9954284c404c9a5aed225965d5006c8735af349 | 1,717 | py | Python | musa/migrations/0001_initial.py | ccsreenidhin/Music-Web-Django | 9b8286914f9099b9ed56c712c7ca384846f189d1 | [
"MIT"
] | null | null | null | musa/migrations/0001_initial.py | ccsreenidhin/Music-Web-Django | 9b8286914f9099b9ed56c712c7ca384846f189d1 | [
"MIT"
] | null | null | null | musa/migrations/0001_initial.py | ccsreenidhin/Music-Web-Django | 9b8286914f9099b9ed56c712c7ca384846f189d1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-29 06:43
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import musa.models
class Migration(migrations.Migration):
initial = True
dependencies = [... | 40.880952 | 121 | 0.633663 | 188 | 1,717 | 5.606383 | 0.457447 | 0.030361 | 0.045541 | 0.068311 | 0.363378 | 0.363378 | 0.363378 | 0.263757 | 0.263757 | 0.263757 | 0 | 0.019055 | 0.235877 | 1,717 | 41 | 122 | 41.878049 | 0.784299 | 0.038439 | 0 | 0.30303 | 1 | 0 | 0.086165 | 0.016384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b996ad8d5f407e5b1769d9b50ca7be5705a211e8 | 1,937 | py | Python | pyzmq/examples/pubsub/subscriber.py | Surfndez/source-publish | c3838b303c1a0806f21cd4e8d8c207015b3ce9c8 | [
"Intel"
] | null | null | null | pyzmq/examples/pubsub/subscriber.py | Surfndez/source-publish | c3838b303c1a0806f21cd4e8d8c207015b3ce9c8 | [
"Intel"
] | 1 | 2021-01-21T17:43:33.000Z | 2021-01-21T17:43:33.000Z | pyzmq/examples/pubsub/subscriber.py | Surfndez/source-publish | c3838b303c1a0806f21cd4e8d8c207015b3ce9c8 | [
"Intel"
] | null | null | null | """A test that subscribes to NumPy arrays.
Uses REQ/REP (on PUB/SUB socket + 1) to synchronize
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2010 Brian Granger
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD... | 25.826667 | 78 | 0.545173 | 239 | 1,937 | 4.313808 | 0.447699 | 0.061106 | 0.025218 | 0.029098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03078 | 0.245225 | 1,937 | 74 | 79 | 26.175676 | 0.674419 | 0.180176 | 0 | 0.042553 | 0 | 0 | 0.142375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b997c70668ace413cc27502883f737e007e56239 | 1,006 | py | Python | Doc/includes/sqlite3/load_extension.py | livioso/cpython | 077061a7b24917aaf31057885c69919c5a553c88 | [
"PSF-2.0"
] | 36 | 2019-06-07T20:44:06.000Z | 2022-03-23T06:19:43.000Z | Doc/includes/sqlite3/load_extension.py | livioso/cpython | 077061a7b24917aaf31057885c69919c5a553c88 | [
"PSF-2.0"
] | 49 | 2016-02-29T17:59:52.000Z | 2019-05-05T04:59:26.000Z | Doc/includes/sqlite3/load_extension.py | livioso/cpython | 077061a7b24917aaf31057885c69919c5a553c88 | [
"PSF-2.0"
] | 28 | 2019-06-27T04:11:27.000Z | 2022-03-11T06:27:44.000Z | import sqlite3
con = sqlite3.connect(":memory:")
# enable extension loading
con.enable_load_extension(True)
# Load the fulltext search extension
con.execute("select load_extension('./fts3.so')")
# alternatively you can load the extension using an API call:
# con.load_extension("./fts3.so")
# disable extension load... | 37.259259 | 104 | 0.744533 | 131 | 1,006 | 5.671756 | 0.465649 | 0.121131 | 0.086137 | 0.107672 | 0.239569 | 0.239569 | 0.239569 | 0 | 0 | 0 | 0 | 0.005794 | 0.142147 | 1,006 | 26 | 105 | 38.692308 | 0.855156 | 0.206759 | 0 | 0 | 0 | 0 | 0.723135 | 0.034134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b999024320e50c940c8f273e6f0536039450c829 | 1,949 | py | Python | config.py | jhattat/photoBooth | f6fe3ab418bb917792e10349597401ed34078766 | [
"MIT"
] | null | null | null | config.py | jhattat/photoBooth | f6fe3ab418bb917792e10349597401ed34078766 | [
"MIT"
] | null | null | null | config.py | jhattat/photoBooth | f6fe3ab418bb917792e10349597401ed34078766 | [
"MIT"
] | null | null | null | # Tumblr Setup
# Replace the values with your information
# OAuth keys can be generated from https://api.tumblr.com/console/calls/user/info
consumer_key='ShbOqI5zErQXOL7Qnd5XduXpY9XQUlBgJDpCLeq1OYqnY2KzSt' #replace with your key
consumer_secret='ulZradkbJGksjpl2MMlshAfJgEW6TNeSdZucykqeTp8jvwgnhu' #replace with your sec... | 77.96 | 130 | 0.758338 | 278 | 1,949 | 5.255396 | 0.561151 | 0.032854 | 0.051335 | 0.02601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045541 | 0.188815 | 1,949 | 25 | 131 | 77.96 | 0.878558 | 0.653155 | 0 | 0 | 1 | 0 | 0.381902 | 0.345092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b999aec7c34874ef90e0f30812ac97217ce90cca | 3,145 | py | Python | emoji.py | notagoat/Deepmoji | 1ab922306c3647f9c7ea98caa2660a53b18fe4b6 | [
"MIT"
] | 1 | 2020-03-19T20:09:00.000Z | 2020-03-19T20:09:00.000Z | emoji.py | notagoat/Deepmoji | 1ab922306c3647f9c7ea98caa2660a53b18fe4b6 | [
"MIT"
] | null | null | null | emoji.py | notagoat/Deepmoji | 1ab922306c3647f9c7ea98caa2660a53b18fe4b6 | [
"MIT"
] | null | null | null | import requests
import urllib.request
import os.path
import shutil
import csv
def main():
with open("data.csv") as i: #Open the data.csv file
instances = i.readlines() #Write them into memory
instances = [x.strip() for x in instances] #Strip any weird issues from writing
instances.sort() #Sort t... | 37.440476 | 151 | 0.574245 | 418 | 3,145 | 4.289474 | 0.373206 | 0.020078 | 0.047407 | 0.050195 | 0.139431 | 0.070273 | 0 | 0 | 0 | 0 | 0 | 0.001403 | 0.320191 | 3,145 | 83 | 152 | 37.891566 | 0.837231 | 0.294118 | 0 | 0.430556 | 0 | 0 | 0.114299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 0.069444 | 0 | 0.125 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b99add86778172fa08bc930ed29f8f26a88ec4d3 | 943 | py | Python | String/640.One Edit Distance/Solution_DP.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | String/640.One Edit Distance/Solution_DP.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | String/640.One Edit Distance/Solution_DP.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | class Solution:
"""
@param s: a string
@param t: a string
@return: true if they are both one edit distance apart or false
"""
def isOneEditDistance(self, s, t):
# write your code here
if s == t:
return False
if abs(len(s) - len(t)) > 1:
return Fal... | 29.46875 | 81 | 0.341463 | 149 | 943 | 2.154362 | 0.275168 | 0.056075 | 0.056075 | 0.049844 | 0.165109 | 0.165109 | 0.158879 | 0.158879 | 0.158879 | 0.158879 | 0 | 0.076446 | 0.486744 | 943 | 31 | 82 | 30.419355 | 0.586777 | 0.130435 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b99b1d1ec6004cbeeb91e19410dbbb1e2216c45e | 1,478 | py | Python | nsq/__init__.py | jehiah/pynsq | 899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96 | [
"MIT"
] | 1 | 2015-05-25T00:23:53.000Z | 2015-05-25T00:23:53.000Z | nsq/__init__.py | barkinet/pynsq | 899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96 | [
"MIT"
] | null | null | null | nsq/__init__.py | barkinet/pynsq | 899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import signal
import tornado.ioloop
import logging
from .protocol import (
Error,
unpack_response,
decode_message,
valid_topic_name,
valid_channel_name,
identify,
subscribe,
ready,
finish,
touch,
requeue,
nop,
pub,
mpub,
... | 26.392857 | 96 | 0.696211 | 172 | 1,478 | 5.662791 | 0.412791 | 0.055441 | 0.041068 | 0.055441 | 0.26078 | 0.26078 | 0.199179 | 0.199179 | 0.199179 | 0 | 0 | 0 | 0.190122 | 1,478 | 55 | 97 | 26.872727 | 0.813701 | 0.002706 | 0 | 0 | 0 | 0 | 0.221583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.295455 | 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 |
b99ee5dfe9849188796ff8d2b024b524adedb8d2 | 1,950 | py | Python | django_mfa/migrations/0001_initial.py | timgates42/django-mfa | 89eeb83f7da3ea24f205b40b13c7f9d33ea15b99 | [
"MIT"
] | null | null | null | django_mfa/migrations/0001_initial.py | timgates42/django-mfa | 89eeb83f7da3ea24f205b40b13c7f9d33ea15b99 | [
"MIT"
] | null | null | null | django_mfa/migrations/0001_initial.py | timgates42/django-mfa | 89eeb83f7da3ea24f205b40b13c7f9d33ea15b99 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-03-26 11:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 41.489362 | 143 | 0.598974 | 205 | 1,950 | 5.521951 | 0.4 | 0.035336 | 0.04947 | 0.077739 | 0.421378 | 0.421378 | 0.394876 | 0.394876 | 0.310071 | 0.310071 | 0 | 0.016644 | 0.260513 | 1,950 | 46 | 144 | 42.391304 | 0.768377 | 0.023077 | 0 | 0.384615 | 1 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.179487 | 0 | 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 |
b9a767c55418efb8b98d12205d59e512ca419081 | 1,860 | py | Python | blobStore.py | odeke-em/resty | 838934033e7eeca521e8c6d8cb2e99778beaa4b9 | [
"Apache-2.0"
] | null | null | null | blobStore.py | odeke-em/resty | 838934033e7eeca521e8c6d8cb2e99778beaa4b9 | [
"Apache-2.0"
] | null | null | null | blobStore.py | odeke-em/resty | 838934033e7eeca521e8c6d8cb2e99778beaa4b9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Author: Emmanuel Odeke <odeke@ualberta.ca>
# This example steps you through using resty & restAssured to save pickled/serialized
# data as a blob and then later re-using it in after deserialization.
# Sample usage might be in collaborative computing ie publish results from an expensive
# compu... | 31 | 87 | 0.7 | 234 | 1,860 | 5.529915 | 0.478632 | 0.009274 | 0.01391 | 0.025502 | 0.341577 | 0.341577 | 0.341577 | 0.341577 | 0.341577 | 0.22102 | 0 | 0.015323 | 0.193011 | 1,860 | 59 | 88 | 31.525424 | 0.846769 | 0.203226 | 0 | 0.292683 | 0 | 0 | 0.088076 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.097561 | false | 0.195122 | 0.073171 | 0 | 0.170732 | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9a7d3f5b98af28c51ffb55578408fad9a1d3f99 | 3,066 | py | Python | venv/Lib/site-packages/dataframe/_dataframe_column_set.py | kavanAdeshara/Expense_Tracker | b3e4810e858a7786e05cda6b91ba674b73b87981 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/dataframe/_dataframe_column_set.py | kavanAdeshara/Expense_Tracker | b3e4810e858a7786e05cda6b91ba674b73b87981 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/dataframe/_dataframe_column_set.py | kavanAdeshara/Expense_Tracker | b3e4810e858a7786e05cda6b91ba674b73b87981 | [
"Apache-2.0"
] | null | null | null | # dataframe: a data-frame implementation using method piping
#
# Copyright (C) 2016 Simon Dirmeier
#
# This file is part of dataframe.
#
# dataframe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versi... | 30.356436 | 71 | 0.63242 | 405 | 3,066 | 4.62963 | 0.377778 | 0.0384 | 0.072 | 0.036267 | 0.080533 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.004906 | 0.268754 | 3,066 | 100 | 72 | 30.66 | 0.831401 | 0.302022 | 0 | 0.105263 | 0 | 0 | 0.050986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.070175 | 0.070175 | 0.438596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9bb675bdbf31f94537da2d2380efe251bd20dd2 | 1,036 | py | Python | rest_auth/registration/urls.py | soul4code/django-rest-auth | b7a2e06e7736865b18f6aab79dcd42210e06c28b | [
"MIT"
] | null | null | null | rest_auth/registration/urls.py | soul4code/django-rest-auth | b7a2e06e7736865b18f6aab79dcd42210e06c28b | [
"MIT"
] | null | null | null | rest_auth/registration/urls.py | soul4code/django-rest-auth | b7a2e06e7736865b18f6aab79dcd42210e06c28b | [
"MIT"
] | null | null | null | from django.urls import re_path
from django.views.generic import TemplateView
from .views import RegisterView, VerifyEmailView
urlpatterns = [
re_path(r'^$', RegisterView.as_view(), name='rest_register'),
re_path(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
# This url is use... | 41.44 | 100 | 0.721042 | 150 | 1,036 | 4.886667 | 0.56 | 0.032742 | 0.028649 | 0.038199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17278 | 1,036 | 24 | 101 | 43.166667 | 0.855309 | 0.532819 | 0 | 0 | 0 | 0 | 0.230444 | 0.131078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b9c62ba9c79d4ffcb00ede68fc940fc877d45118 | 5,614 | py | Python | annotations/rip_annotated_junctions.py | ChristopherWilks/snaptron | 82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a | [
"MIT"
] | 25 | 2016-01-08T02:02:36.000Z | 2021-12-29T14:00:58.000Z | annotations/rip_annotated_junctions.py | ChristopherWilks/snaptron | 82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a | [
"MIT"
] | 11 | 2016-02-25T01:44:46.000Z | 2021-07-02T05:52:55.000Z | annotations/rip_annotated_junctions.py | ChristopherWilks/snaptron | 82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a | [
"MIT"
] | 7 | 2016-02-13T01:45:15.000Z | 2021-11-22T11:04:12.000Z | #!/usr/bin/env python
"""
rip_annotated_junctions.py
Non-reference/species verson of this script, no lift-over
Rips junctions from annotation files contained in
jan_24_2016_annotations.tar.gz, as described in annotation_definition.md.
Junctions are dumped to stdout, which we record as annotated_junctions.tsv.gz
in ru... | 44.555556 | 543 | 0.603669 | 658 | 5,614 | 4.995441 | 0.361702 | 0.021296 | 0.032857 | 0.027989 | 0.158807 | 0.11439 | 0.028598 | 0.028598 | 0.028598 | 0.028598 | 0 | 0.043767 | 0.275561 | 5,614 | 125 | 544 | 44.912 | 0.764446 | 0.180976 | 0 | 0.02439 | 0 | 0 | 0.134615 | 0.050108 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9c89d9ad7d4587730637df2e5c8576e03c43ad8 | 3,115 | py | Python | shellfind.py | bhavyanshu/Shell-Finder | 308b3ba7f1a53b8a6cc738d69c01f4b7108d0860 | [
"Apache-2.0"
] | 4 | 2016-06-15T22:08:29.000Z | 2019-10-16T13:12:51.000Z | shellfind.py | kaitolegion/Shell-Finder | 308b3ba7f1a53b8a6cc738d69c01f4b7108d0860 | [
"Apache-2.0"
] | null | null | null | shellfind.py | kaitolegion/Shell-Finder | 308b3ba7f1a53b8a6cc738d69c01f4b7108d0860 | [
"Apache-2.0"
] | 7 | 2015-07-08T22:21:52.000Z | 2021-05-31T14:05:47.000Z | #!/usr/bin/env python
'''
Author : Bhavyanshu Parasher
Email : bhavyanshu@codershangout.org
Description : shellfind.py is a Python command line utility which lets you look for shells on a site that the hacker must have uploaded. It considers all the shells available and tries all possibilities via dictionary match.
'''... | 35 | 224 | 0.742857 | 449 | 3,115 | 4.988864 | 0.396437 | 0.087054 | 0.072321 | 0.042857 | 0.068304 | 0.068304 | 0.068304 | 0.051786 | 0.051786 | 0.051786 | 0 | 0.013223 | 0.150241 | 3,115 | 88 | 225 | 35.397727 | 0.833019 | 0.020546 | 0 | 0.194805 | 0 | 0.025974 | 0.333091 | 0.007636 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.194805 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9cea3f3b51bf703897e952ed45d88260e3502a1 | 1,190 | py | Python | dd_app/messaging/backend.py | datadealer/dd_app | 3806b9b9df165a49f0fca8a249170b4ccd4d0177 | [
"Artistic-2.0"
] | 2 | 2018-12-17T10:10:49.000Z | 2018-12-17T11:18:32.000Z | dd_app/messaging/backend.py | datadealer/dd_app | 3806b9b9df165a49f0fca8a249170b4ccd4d0177 | [
"Artistic-2.0"
] | null | null | null | dd_app/messaging/backend.py | datadealer/dd_app | 3806b9b9df165a49f0fca8a249170b4ccd4d0177 | [
"Artistic-2.0"
] | 1 | 2021-06-06T22:28:12.000Z | 2021-06-06T22:28:12.000Z | class RedisBackend(object):
def __init__(self, settings={}, *args, **kwargs):
self.settings = settings
@property
def connection(self):
# cached redis connection
if not hasattr(self, '_connection'):
self._connection = self.settings.get('redis.connector').get()
re... | 28.333333 | 73 | 0.608403 | 131 | 1,190 | 5.381679 | 0.351145 | 0.139007 | 0.085106 | 0.04539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001185 | 0.290756 | 1,190 | 41 | 74 | 29.02439 | 0.834123 | 0.094118 | 0 | 0.074074 | 0 | 0 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0 | 0.074074 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9d22fbf764d6a06a81fe68e7bedb0cb2069ff17 | 2,360 | py | Python | mpl/models/leaf.py | jiangyuang/ModelPruningLibrary | 9c8ba5a3c5d118f37768d5d42254711f48d88745 | [
"MIT"
] | 13 | 2020-02-24T16:57:37.000Z | 2021-12-14T16:47:41.000Z | mpl/models/leaf.py | jiangyuang/ModelPruningLibrary | 9c8ba5a3c5d118f37768d5d42254711f48d88745 | [
"MIT"
] | 3 | 2021-01-08T14:06:33.000Z | 2021-09-07T13:39:46.000Z | mpl/models/leaf.py | jiangyuang/ModelPruningLibrary | 9c8ba5a3c5d118f37768d5d42254711f48d88745 | [
"MIT"
] | 3 | 2020-05-30T17:59:43.000Z | 2021-04-13T04:55:33.000Z | from torch import nn as nn
from .base_model import BaseModel
from ..nn.conv2d import DenseConv2d
from ..nn.linear import DenseLinear
__all__ = ["Conv2", "conv2", "Conv4", "conv4"]
class Conv2(BaseModel):
def __init__(self):
super(Conv2, self).__init__()
self.features = nn.Sequential(DenseConv2d(... | 36.307692 | 96 | 0.469068 | 235 | 2,360 | 4.578723 | 0.255319 | 0.055762 | 0.066915 | 0.048327 | 0.597584 | 0.515799 | 0.515799 | 0.435874 | 0.435874 | 0.368959 | 0 | 0.093658 | 0.425424 | 2,360 | 64 | 97 | 36.875 | 0.699853 | 0.025424 | 0 | 0.5 | 0 | 0 | 0.008718 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 0.041667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9d2bd5114a0540a0095f6c31a8ad07b71899f53 | 29,424 | py | Python | scripts/generate_network_interactomix.py | quimaguirre/NetworkAnalysis | c7a4da3ba5696800738b4767065ce29fa0020d79 | [
"MIT"
] | 1 | 2017-07-10T17:33:31.000Z | 2017-07-10T17:33:31.000Z | scripts/generate_network_interactomix.py | quimaguirre/NetworkAnalysis | c7a4da3ba5696800738b4767065ce29fa0020d79 | [
"MIT"
] | null | null | null | scripts/generate_network_interactomix.py | quimaguirre/NetworkAnalysis | c7a4da3ba5696800738b4767065ce29fa0020d79 | [
"MIT"
] | null | null | null | import argparse
import ConfigParser
import sys, os, re
import biana
try: from biana import *
except: sys.exit(10)
import methods_dictionaries as methods_dicts
def main():
options = parse_user_arguments()
generate_network(options)
def parse_user_arguments(*args, **kwds):
parser = arg... | 48.157119 | 591 | 0.569195 | 3,301 | 29,424 | 4.867616 | 0.106634 | 0.017924 | 0.018297 | 0.02894 | 0.521782 | 0.483943 | 0.432474 | 0.412808 | 0.409821 | 0.383869 | 0 | 0.011347 | 0.296153 | 29,424 | 610 | 592 | 48.236066 | 0.76451 | 0.131559 | 0 | 0.389744 | 0 | 0.017949 | 0.181744 | 0.019149 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002564 | 0.015385 | null | null | 0.071795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b9d992fc9c803eca7ba614c187b28cbfcef4b1f8 | 5,988 | py | Python | scripts/commit_validation/commit_validation/commit_validation.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-08-31T02:14:19.000Z | 2021-12-28T19:20:59.000Z | scripts/commit_validation/commit_validation/commit_validation.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-07-12T13:55:00.000Z | 2021-10-04T14:53:21.000Z | scripts/commit_validation/commit_validation/commit_validation.py | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-16T05:06:18.000Z | 2021-09-16T05:06:18.000Z | #
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
import abc
import importlib
import os
import pkgutil
import re
import time
from typing import Dict, List, ... | 31.68254 | 124 | 0.631096 | 720 | 5,988 | 5.047222 | 0.3 | 0.04623 | 0.033021 | 0.031646 | 0.168134 | 0.118327 | 0.106219 | 0.042928 | 0.022014 | 0.022014 | 0 | 0.003149 | 0.257515 | 5,988 | 188 | 125 | 31.851064 | 0.814215 | 0.215932 | 0 | 0.125 | 0 | 0 | 0.15374 | 0.056325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.108333 | 0.066667 | 0 | 0.175 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b9dd82e962e13070a8526b2d4d0da1d0be6265ee | 7,417 | py | Python | src/py65/devices/mpu65c02.py | dabeaz/py65 | 62d790445018f0616508022912b67d8d64935a29 | [
"BSD-3-Clause"
] | 5 | 2015-03-19T22:22:45.000Z | 2020-05-15T18:26:59.000Z | src/py65/devices/mpu65c02.py | BigEd/py65 | 57d5e7191362006c1d6fa20662da3e4854f1b7c2 | [
"BSD-3-Clause"
] | null | null | null | src/py65/devices/mpu65c02.py | BigEd/py65 | 57d5e7191362006c1d6fa20662da3e4854f1b7c2 | [
"BSD-3-Clause"
] | 3 | 2015-04-27T02:42:29.000Z | 2021-07-16T20:50:23.000Z | from py65.devices import mpu6502
from py65.utils.devices import make_instruction_decorator
class MPU(mpu6502.MPU):
def __init__(self, *args, **kwargs):
mpu6502.MPU.__init__(self, *args, **kwargs)
self.name = '65C02'
self.waiting = False
def step(self):
if self.waiting:
... | 27.369004 | 71 | 0.58676 | 949 | 7,417 | 4.528978 | 0.201264 | 0.14658 | 0.047231 | 0.117264 | 0.620754 | 0.427873 | 0.255002 | 0.079107 | 0.079107 | 0.061424 | 0 | 0.050804 | 0.262235 | 7,417 | 270 | 72 | 27.47037 | 0.734649 | 0.011191 | 0 | 0.229665 | 0 | 0 | 0.037259 | 0 | 0 | 0 | 0.009281 | 0 | 0 | 1 | 0.244019 | false | 0 | 0.009569 | 0.009569 | 0.296651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9ddc98cf55e2bef4fcf498ec4787ca57bad46d0 | 5,623 | py | Python | tests/test__io.py | soerendip/ms-mint | bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58 | [
"MIT"
] | 1 | 2021-09-03T04:02:25.000Z | 2021-09-03T04:02:25.000Z | tests/test__io.py | soerendip/ms-mint | bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58 | [
"MIT"
] | 3 | 2020-09-29T21:43:39.000Z | 2021-07-21T22:18:27.000Z | tests/test__io.py | soerendip/ms-mint | bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58 | [
"MIT"
] | 4 | 2019-11-14T13:25:24.000Z | 2021-04-30T22:08:53.000Z | import pandas as pd
import shutil
import os
import io
from ms_mint.Mint import Mint
from pathlib import Path as P
from ms_mint.io import (
ms_file_to_df,
mzml_to_pandas_df_pyteomics,
convert_ms_file_to_feather,
convert_ms_file_to_parquet,
MZMLB_AVAILABLE,
)
from paths import (
TEST_MZML,
... | 27.563725 | 81 | 0.634181 | 771 | 5,623 | 4.293126 | 0.143969 | 0.041692 | 0.050755 | 0.045317 | 0.776435 | 0.712387 | 0.676737 | 0.622659 | 0.583988 | 0.583988 | 0 | 0.003273 | 0.239374 | 5,623 | 203 | 82 | 27.699507 | 0.770634 | 0.012627 | 0 | 0.528736 | 0 | 0 | 0.178198 | 0.003784 | 0.005747 | 0 | 0 | 0 | 0.155172 | 1 | 0.068966 | false | 0 | 0.045977 | 0 | 0.12069 | 0.022989 | 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 |
b9e0543df8f2ae150950f2a9787edb6296aac618 | 2,482 | py | Python | bluesky/tests/test_simulators.py | NSLS-II/bluesky | b7d666e65cf4ef556fb46b744c33264c8e3f7507 | [
"BSD-3-Clause"
] | 43 | 2015-08-04T20:13:41.000Z | 2019-04-12T17:21:36.000Z | bluesky/tests/test_simulators.py | NSLS-II/bluesky | b7d666e65cf4ef556fb46b744c33264c8e3f7507 | [
"BSD-3-Clause"
] | 966 | 2015-07-29T16:43:21.000Z | 2019-05-09T21:02:28.000Z | bluesky/tests/test_simulators.py | NSLS-II/bluesky | b7d666e65cf4ef556fb46b744c33264c8e3f7507 | [
"BSD-3-Clause"
] | 40 | 2015-07-29T16:42:41.000Z | 2019-02-07T02:30:34.000Z | from bluesky.plans import scan
from bluesky.simulators import (print_summary, print_summary_wrapper,
summarize_plan,
check_limits,
plot_raster_path)
import pytest
from bluesky.plans import grid_scan
def test_print_summary(... | 34 | 76 | 0.636583 | 357 | 2,482 | 4.271709 | 0.268908 | 0.086557 | 0.07082 | 0.068197 | 0.531148 | 0.492459 | 0.372459 | 0.32918 | 0.251803 | 0.199344 | 0 | 0.037695 | 0.251813 | 2,482 | 72 | 77 | 34.472222 | 0.783522 | 0.224013 | 0 | 0.565217 | 0 | 0 | 0.031414 | 0 | 0 | 0 | 0 | 0.013889 | 0.043478 | 1 | 0.108696 | false | 0 | 0.108696 | 0 | 0.217391 | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b9e2c12e3855c30001fd37ab610587d3e95c803d | 535 | py | Python | microservices/users/config.py | Levakin/sanic-test-app | d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61 | [
"Apache-2.0"
] | null | null | null | microservices/users/config.py | Levakin/sanic-test-app | d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61 | [
"Apache-2.0"
] | null | null | null | microservices/users/config.py | Levakin/sanic-test-app | d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from distutils.util import strtobool
class Config:
DEBUG = bool(strtobool(os.getenv('DEBUG', "False")))
DATABASE_URI = os.getenv('DATABASE_URI', '127.0.0.1:27017')
WORKERS = int(os.getenv('WORKERS', 2))
LOGO = os.getenv('LOGO', None)
HOST = os.getenv('HOST', '127... | 31.470588 | 63 | 0.646729 | 80 | 535 | 4.2 | 0.4375 | 0.214286 | 0.130952 | 0.035714 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058166 | 0.164486 | 535 | 16 | 64 | 33.4375 | 0.693512 | 0.039252 | 0 | 0 | 0 | 0 | 0.212891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 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 |
b9e36baa14d5265769af32c8ed910969e39eaf3a | 199 | py | Python | semantic-python/test/fixtures/4-01-lambda-literals.py | Temurson/semantic | 2e9cd2c006cec9a0328791e47d8c6d60af6d5a1b | [
"MIT"
] | 8,844 | 2019-05-31T15:47:12.000Z | 2022-03-31T18:33:51.000Z | semantic-python/test/fixtures/4-01-lambda-literals.py | Qanora/semantic | b0eda9a61bbc690a342fb177cfc12eec8c1c001c | [
"MIT"
] | 401 | 2019-05-31T18:30:26.000Z | 2022-03-31T16:32:29.000Z | semantic-python/test/fixtures/4-01-lambda-literals.py | Qanora/semantic | b0eda9a61bbc690a342fb177cfc12eec8c1c001c | [
"MIT"
] | 504 | 2019-05-31T17:55:03.000Z | 2022-03-30T04:15:04.000Z | # CHECK-TREE: { const <- \x -> \y -> x; y <- const #true #true; z <- const #false #false; #record { const: const, y : y, z: z, }}
const = lambda x, y: x
y = const(True, True)
z = const(False, False)
| 39.8 | 129 | 0.557789 | 34 | 199 | 3.264706 | 0.294118 | 0.072072 | 0.054054 | 0.072072 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0.594595 | 0 | 0 | 0.221106 | 199 | 4 | 130 | 49.75 | 0.716129 | 0.613065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9e707edd4da101ada4ff00b233330f2c2f9843e | 148 | py | Python | abc153/d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc153/d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc153/d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | h = int(input())
i = 1
a = 1
b = 1
c = 1
while h >= a:
a = 2 ** i
i += 1
s = 0
t = True
for j in range(1, i-1):
c += 2 ** j
print(c)
| 8.705882 | 23 | 0.398649 | 35 | 148 | 1.685714 | 0.542857 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 0.398649 | 148 | 16 | 24 | 9.25 | 0.550562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9e96b262a690da4aaab0bf9584b51a15851826f | 6,784 | py | Python | demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py | Natureshadow/OpenGoPro | 05110123cfbf6584288b813f2d4896d3a091480e | [
"MIT"
] | 210 | 2021-06-05T20:06:17.000Z | 2022-03-31T18:13:17.000Z | demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py | Natureshadow/OpenGoPro | 05110123cfbf6584288b813f2d4896d3a091480e | [
"MIT"
] | 73 | 2021-06-01T21:22:44.000Z | 2022-03-31T18:33:24.000Z | demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py | Natureshadow/OpenGoPro | 05110123cfbf6584288b813f2d4896d3a091480e | [
"MIT"
] | 70 | 2021-06-07T03:59:04.000Z | 2022-03-26T10:51:15.000Z | # log_battery.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Wed, Sep 1, 2021 5:05:45 PM
"""Example to continuously read the battery (with no Wifi connection)"""
import csv
import time
import logging
import argparse
import threading
fro... | 34.969072 | 139 | 0.627358 | 806 | 6,784 | 5.150124 | 0.320099 | 0.02385 | 0.009636 | 0.012527 | 0.104071 | 0.065526 | 0.052517 | 0.016863 | 0 | 0 | 0 | 0.006579 | 0.283019 | 6,784 | 193 | 140 | 35.150259 | 0.846834 | 0.205483 | 0 | 0.109375 | 1 | 0.023438 | 0.13274 | 0.006059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.101563 | 0.007813 | 0.203125 | 0.039063 | 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 |
b9ebcddd99e456fbeb39a0191aad31656c7f4943 | 856 | py | Python | setup.py | EdWard680/python-firetv | 4c02f79a1c8ae60a489297178d010a31545a3b5d | [
"MIT"
] | null | null | null | setup.py | EdWard680/python-firetv | 4c02f79a1c8ae60a489297178d010a31545a3b5d | [
"MIT"
] | null | null | null | setup.py | EdWard680/python-firetv | 4c02f79a1c8ae60a489297178d010a31545a3b5d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='firetv',
version='1.0.7',
description='Communicate with an Amazon Fire TV device via ADB over a network.',
url='https://github.com/happyleavesaoc/python-firetv/',
license='MIT',
author='happyleaves',
author_email='happyleaves.tfr@gmail.com',
pac... | 30.571429 | 99 | 0.613318 | 91 | 856 | 5.67033 | 0.725275 | 0.062016 | 0.096899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018209 | 0.23014 | 856 | 27 | 100 | 31.703704 | 0.764795 | 0 | 0 | 0 | 0 | 0 | 0.538551 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038462 | 0 | 0.038462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9ec25017a264a5c2dd928342198ca509ad93675 | 893 | py | Python | neo/io/exampleio.py | Mario-Kart-Felix/python-neo | 951c97cf9eb56f5489da88940de920329e0f4c1b | [
"BSD-3-Clause"
] | 199 | 2015-01-20T13:49:13.000Z | 2022-03-21T18:35:29.000Z | neo/io/exampleio.py | Mario-Kart-Felix/python-neo | 951c97cf9eb56f5489da88940de920329e0f4c1b | [
"BSD-3-Clause"
] | 905 | 2015-01-07T09:21:15.000Z | 2022-03-31T16:29:44.000Z | neo/io/exampleio.py | Mario-Kart-Felix/python-neo | 951c97cf9eb56f5489da88940de920329e0f4c1b | [
"BSD-3-Clause"
] | 178 | 2015-01-05T12:34:39.000Z | 2022-02-20T23:06:52.000Z | """
neo.io have been split in 2 level API:
* neo.io: this API give neo object
* neo.rawio: this API give raw data as they are in files.
Developper are encourage to use neo.rawio.
When this is done the neo.io is done automagically with
this king of following code.
Author: sgarcia
"""
from neo.io.basefromrawio i... | 28.806452 | 93 | 0.724524 | 128 | 893 | 4.929688 | 0.554688 | 0.031696 | 0.07607 | 0.050713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005579 | 0.197088 | 893 | 30 | 94 | 29.766667 | 0.874477 | 0.536394 | 0 | 0 | 0 | 0 | 0.08933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b9fc3dd10a80beed547f86b535cfadc6f817e0e2 | 4,872 | tac | Python | 6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac | ladike/912_project | 5178c1c93ac6ca30ffc72dd689f5c6932704b4ab | [
"MIT"
] | 1 | 2022-03-02T16:05:49.000Z | 2022-03-02T16:05:49.000Z | 6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac | ladike/912_project | 5178c1c93ac6ca30ffc72dd689f5c6932704b4ab | [
"MIT"
] | null | null | null | 6 复试/2 笔试/4 编译原理/hw/2016_黄家晖_PA/550405220_4_decaf_PA3/TestCases/S3/output/t9.tac | ladike/912_project | 5178c1c93ac6ca30ffc72dd689f5c6932704b4ab | [
"MIT"
] | null | null | null | VTABLE(_Main) {
<empty>
Main
_Main.COPY;
}
VTABLE(_Base) {
<empty>
Base
_Base.COPY;
}
VTABLE(_Sub1) {
_Base
Sub1
_Sub1.COPY;
}
VTABLE(_Sub2) {
_Base
Sub2
_Sub2.COPY;
}
VTABLE(_Sub3) {
_Sub1
Sub3
_Sub3.COPY;
}
VTABLE(_Sub4) {
_Sub3
Sub4
_Sub4.C... | 15.76699 | 34 | 0.555829 | 657 | 4,872 | 3.563166 | 0.207002 | 0.050833 | 0.050833 | 0.035882 | 0.041008 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184833 | 0.331486 | 4,872 | 308 | 35 | 15.818182 | 0.533927 | 0 | 0 | 0.111111 | 0 | 0 | 0.022993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9ffb7c6fff3e245dc8ea1ea786cc6f60c2d4cde | 2,427 | py | Python | generator/cache/cache.py | biarmic/OpenCache | bb9e110e434deb83900de328cc76b63901ba582f | [
"BSD-3-Clause"
] | 5 | 2021-09-15T18:29:49.000Z | 2022-03-26T04:41:01.000Z | generator/cache/cache.py | VLSIDA/OpenCache | 0e79bf353c68d57dcc49d78178b12fd0b468f19a | [
"BSD-3-Clause"
] | null | null | null | generator/cache/cache.py | VLSIDA/OpenCache | 0e79bf353c68d57dcc49d78178b12fd0b468f19a | [
"BSD-3-Clause"
] | null | null | null | # See LICENSE for licensing information.
#
# Copyright (c) 2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import debug
import datetime
from policy import assoc... | 33.246575 | 86 | 0.646477 | 311 | 2,427 | 4.884244 | 0.327974 | 0.013167 | 0.050033 | 0.03555 | 0.134299 | 0.060566 | 0.060566 | 0 | 0 | 0 | 0 | 0.003319 | 0.255047 | 2,427 | 73 | 87 | 33.246575 | 0.836836 | 0.217965 | 0 | 0.051282 | 0 | 0 | 0.107817 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.102564 | false | 0 | 0.153846 | 0 | 0.282051 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6a00d6b8c83e85268bd294d4e512d54f000cfc8a | 2,843 | py | Python | pytype/tests/py2/test_stdlib.py | souravbadami/pytype | 804fa97e7f9208df2711976085a96f756b3949e6 | [
"Apache-2.0"
] | 1 | 2020-04-20T02:55:21.000Z | 2020-04-20T02:55:21.000Z | pytype/tests/py2/test_stdlib.py | doc22940/pytype | 4772ad6fe89f4df75ae3d08e7374f68074175d4a | [
"Apache-2.0"
] | null | null | null | pytype/tests/py2/test_stdlib.py | doc22940/pytype | 4772ad6fe89f4df75ae3d08e7374f68074175d4a | [
"Apache-2.0"
] | null | null | null | """Tests of selected stdlib functions."""
from pytype.tests import test_base
class StdlibTests(test_base.TargetPython27FeatureTest):
"""Tests for files in typeshed/stdlib."""
def testPosix(self):
ty = self.Infer("""
import posix
x = posix.urandom(10)
""")
self.assertTypesMatchPytd(ty, ""... | 21.869231 | 61 | 0.518115 | 299 | 2,843 | 4.866221 | 0.26087 | 0.03299 | 0.054983 | 0.082474 | 0.468729 | 0.439863 | 0.428179 | 0.428179 | 0.428179 | 0.428179 | 0 | 0.020888 | 0.326416 | 2,843 | 129 | 62 | 22.03876 | 0.738903 | 0.024974 | 0 | 0.616071 | 0 | 0 | 0.604853 | 0.03477 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.089286 | false | 0 | 0.107143 | 0 | 0.205357 | 0 | 0 | 0 | 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 |
6a04d1fd425aed6effcc3e48e1eb103f0872ab5a | 3,621 | py | Python | libqtile/widget/imapwidget.py | akloster/qtile | bd21d0744e177b8ca01ac129081472577d53ed66 | [
"MIT"
] | 1 | 2021-04-05T07:15:37.000Z | 2021-04-05T07:15:37.000Z | libqtile/widget/imapwidget.py | akloster/qtile | bd21d0744e177b8ca01ac129081472577d53ed66 | [
"MIT"
] | 1 | 2022-02-27T12:17:27.000Z | 2022-02-27T12:17:27.000Z | libqtile/widget/imapwidget.py | akloster/qtile | bd21d0744e177b8ca01ac129081472577d53ed66 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015 David R. Andersen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | 38.521277 | 98 | 0.67219 | 485 | 3,621 | 4.985567 | 0.472165 | 0.036394 | 0.021092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004681 | 0.233085 | 3,621 | 93 | 99 | 38.935484 | 0.866042 | 0.631041 | 0 | 0.064516 | 0 | 0 | 0.150741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.16129 | 0.16129 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a04e4f203740a253735948c968506f6632354e6 | 2,486 | py | Python | game/views/tests/game_definition_view_test.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | game/views/tests/game_definition_view_test.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | game/views/tests/game_definition_view_test.py | dimadk24/english-fight-api | 506a3eb2cb4cb91203b1e023b5248c27975df075 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.test import APIClient
from game.models import GameDefinition, AppUser
def create_game_definition(api_client: APIClient) -> Response:
return api_client.post("/api/game_definition")
def get_game_definition(api_client: APIClient, game_def_id: str) -... | 35.514286 | 77 | 0.79284 | 382 | 2,486 | 4.657068 | 0.172775 | 0.177066 | 0.210793 | 0.138842 | 0.680157 | 0.639123 | 0.617201 | 0.578977 | 0.578977 | 0.535132 | 0 | 0.011579 | 0.131537 | 2,486 | 69 | 78 | 36.028986 | 0.812413 | 0 | 0 | 0.444444 | 0 | 0 | 0.049879 | 0.013677 | 0 | 0 | 0 | 0 | 0.311111 | 1 | 0.133333 | false | 0 | 0.066667 | 0.044444 | 0.244444 | 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 |
6a0593a2d9f168fbcc460c2d82964c99ec312e4a | 911 | py | Python | mayan/apps/metadata/migrations/0011_auto_20180917_0645.py | prezi/mayan-edms | e9bc10a056c3379b57115c6e83022f48c6298e1d | [
"Apache-2.0"
] | 4 | 2019-02-17T08:35:42.000Z | 2019-03-28T06:02:11.000Z | mayan/apps/metadata/migrations/0011_auto_20180917_0645.py | zhoubear/mayan-edms | e9bc10a056c3379b57115c6e83022f48c6298e1d | [
"Apache-2.0"
] | 1 | 2018-10-11T13:01:34.000Z | 2018-10-11T13:01:34.000Z | mayan/apps/metadata/migrations/0011_auto_20180917_0645.py | prezi/mayan-edms | e9bc10a056c3379b57115c6e83022f48c6298e1d | [
"Apache-2.0"
] | 3 | 2019-01-29T13:21:57.000Z | 2019-10-27T03:20:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-09-17 06:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('metadata', '0010_auto_20180823_2353'),
]
operations = [
migrations.AlterFi... | 35.038462 | 199 | 0.657519 | 112 | 911 | 5.196429 | 0.642857 | 0.068729 | 0.085911 | 0.099656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055874 | 0.233809 | 911 | 25 | 200 | 36.44 | 0.777937 | 0.075741 | 0 | 0.222222 | 1 | 0.055556 | 0.293206 | 0.027414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a0b84b7b59fd4b039d379ec665100c80b070e0d | 1,347 | py | Python | 2. Add Two Numbers DC(12-1-21).py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | 4 | 2020-11-17T05:24:24.000Z | 2021-06-14T21:01:45.000Z | 2. Add Two Numbers DC(12-1-21).py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | null | null | null | 2. Add Two Numbers DC(12-1-21).py | Dharaneeshwar/Leetcode | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | [
"MIT"
] | null | null | null | # Time Complexity - O(n) ; Space Complexity - O(n)
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
carry = 0
out = temp = ListNode()
while l1 is not None and l2 is not None:
tempsum = l1.val + l2.val
tempsum += carry
... | 31.325581 | 76 | 0.400148 | 131 | 1,347 | 4.114504 | 0.236641 | 0.103896 | 0.118738 | 0.083488 | 0.539889 | 0.502783 | 0.502783 | 0.502783 | 0.502783 | 0.502783 | 0 | 0.061129 | 0.526355 | 1,347 | 43 | 77 | 31.325581 | 0.783699 | 0.035635 | 0 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a0e57de9c3d93fdc79f1a9d3f94690a6652bf6e | 989 | py | Python | wrt/wrt-manifest-tizen-tests/const.py | linshen/crosswalk-test-suite | e206b2c35fc09e583f3202fc7fc8a656c8e2b5de | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-manifest-tizen-tests/const.py | linshen/crosswalk-test-suite | e206b2c35fc09e583f3202fc7fc8a656c8e2b5de | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-manifest-tizen-tests/const.py | linshen/crosswalk-test-suite | e206b2c35fc09e583f3202fc7fc8a656c8e2b5de | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys, os
import itertools, shutil
path = os.path.abspath(__file__)
path = os.path.split(path)[0]
os.chdir(path)
print path
device_ssh_ip = ""
ssh_device = device_ssh_ip.split(",")
path_tcs = path + "/tcs"
path_result= path + "/result"
path_allpairs = path + "/allpairs"
path_resource = path ... | 31.903226 | 59 | 0.743175 | 146 | 989 | 4.726027 | 0.383562 | 0.13913 | 0.069565 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007964 | 0.111223 | 989 | 30 | 60 | 32.966667 | 0.777019 | 0.020222 | 0 | 0 | 0 | 0 | 0.26343 | 0.127066 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a186a13afeea2c9ca39fb78982684eb10c871db | 3,784 | py | Python | bench_fastapi/authentication/controllers/login.py | sharkguto/teste_carga | 56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb | [
"MIT"
] | 1 | 2021-10-14T07:27:47.000Z | 2021-10-14T07:27:47.000Z | bench_fastapi/authentication/controllers/login.py | sharkguto/teste_carga | 56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb | [
"MIT"
] | 4 | 2019-08-06T02:26:32.000Z | 2021-06-10T21:39:19.000Z | bench_fastapi/authentication/controllers/login.py | sharkguto/teste_carga | 56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb | [
"MIT"
] | 1 | 2018-05-11T18:04:41.000Z | 2018-05-11T18:04:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# login.py
# @Author : Gustavo Freitas (gustavo@gmf-tech.com)
# @Link :
# @Date : 12/12/2019, 11:43:07 AM
from typing import Optional, Any
from fastapi import APIRouter, Body, Depends, HTTPException
from fastapi import Header, Security
from authentication.models.users... | 29.795276 | 83 | 0.681818 | 496 | 3,784 | 5.08871 | 0.294355 | 0.021395 | 0.022187 | 0.021395 | 0.493265 | 0.443344 | 0.443344 | 0.425515 | 0.385103 | 0.385103 | 0 | 0.014815 | 0.17944 | 3,784 | 126 | 84 | 30.031746 | 0.798068 | 0.075846 | 0 | 0.395349 | 0 | 0 | 0.267355 | 0.055651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.069767 | 0.162791 | 0 | 0.197674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a1f7efcf406b9bcc9bc35cc271b47eed9db309f | 7,998 | py | Python | mod_core.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | null | null | null | mod_core.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | null | null | null | mod_core.py | nokia-wroclaw/innovativeproject-dbshepherd | f82f3b36caaf9fcd6d28076051cb92458ba2edd3 | [
"MIT"
] | 1 | 2020-02-05T20:02:15.000Z | 2020-02-05T20:02:15.000Z | import re
import os
import cmd
import sys
import common
from getpass import getpass
from kp import KeePassError, get_password
from configmanager import ConfigManager, ConfigManagerError
common.init()
class ParseArgsException(Exception):
def __init__(self, msg):
self.msg = msg
class ModuleCore(cmd.Cmd):
def __... | 29.512915 | 132 | 0.635159 | 1,039 | 7,998 | 4.805582 | 0.256015 | 0.006008 | 0.01442 | 0.016223 | 0.286 | 0.276387 | 0.231925 | 0.187863 | 0.175446 | 0.175446 | 0 | 0.0048 | 0.218555 | 7,998 | 271 | 133 | 29.512915 | 0.79408 | 0.147162 | 0 | 0.348416 | 0 | 0 | 0.102377 | 0.005542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081448 | false | 0.072398 | 0.036199 | 0.013575 | 0.180995 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a25b6baad0282a34406b60b6191667dfe9a128b | 13,698 | py | Python | ragweed/framework.py | soumyakoduri/ragweed | 7d4a729ff761fe1ca073b7ceade46acf1321e9fd | [
"MIT"
] | null | null | null | ragweed/framework.py | soumyakoduri/ragweed | 7d4a729ff761fe1ca073b7ceade46acf1321e9fd | [
"MIT"
] | null | null | null | ragweed/framework.py | soumyakoduri/ragweed | 7d4a729ff761fe1ca073b7ceade46acf1321e9fd | [
"MIT"
] | null | null | null | import sys
import os
import boto
import boto.s3.connection
import json
import inspect
import pickle
import bunch
import yaml
import ConfigParser
import rados
from boto.s3.key import Key
from nose.plugins.attrib import attr
from nose.tools import eq_ as eq
from .reqs import _make_admin_request
ragweed_env = None
suite... | 29.649351 | 141 | 0.593663 | 1,649 | 13,698 | 4.681019 | 0.142511 | 0.034979 | 0.015676 | 0.010364 | 0.268169 | 0.176577 | 0.123202 | 0.090038 | 0.080192 | 0.053763 | 0 | 0.001591 | 0.311651 | 13,698 | 461 | 142 | 29.713666 | 0.817054 | 0.004891 | 0 | 0.181564 | 0 | 0 | 0.043006 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 0 | null | null | 0.030726 | 0.041899 | null | null | 0.027933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a2bc3b1189d8cb91dbce9466649429945439058 | 1,127 | py | Python | ecommerce-website/orders/admin.py | Shanu85/FCS_Project | def3437d58b4d2ff00e26c0a5ca769af66eccfad | [
"MIT"
] | null | null | null | ecommerce-website/orders/admin.py | Shanu85/FCS_Project | def3437d58b4d2ff00e26c0a5ca769af66eccfad | [
"MIT"
] | null | null | null | ecommerce-website/orders/admin.py | Shanu85/FCS_Project | def3437d58b4d2ff00e26c0a5ca769af66eccfad | [
"MIT"
] | 1 | 2022-01-03T13:40:11.000Z | 2022-01-03T13:40:11.000Z | from django.contrib import admin
from .models import Order, receiverInfo
@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
date_hierarchy = 'created_at'
list_display = ('user', 'code', 'total_price', 'shipping_status', 'created_at')
list_display_links = ('user',)
list_editable = ('shipping_s... | 35.21875 | 92 | 0.696539 | 136 | 1,127 | 5.419118 | 0.397059 | 0.07327 | 0.105834 | 0.108548 | 0.404342 | 0.301221 | 0.222524 | 0.222524 | 0 | 0 | 0 | 0.004228 | 0.160603 | 1,127 | 31 | 93 | 36.354839 | 0.774841 | 0 | 0 | 0.16 | 0 | 0 | 0.281278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0.08 | 0.92 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a315f9411feef2bef3f2cfb2fab79f19fe80e02 | 7,842 | py | Python | weaver/wps_restapi/quotation/quotes.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:23:05.000Z | 2022-02-25T00:39:11.000Z | weaver/wps_restapi/quotation/quotes.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 346 | 2019-03-06T21:05:04.000Z | 2022-03-31T13:38:37.000Z | weaver/wps_restapi/quotation/quotes.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 5 | 2019-03-15T01:38:28.000Z | 2021-11-11T15:38:43.000Z | import logging
import random
from datetime import timedelta
from typing import TYPE_CHECKING
from duration import to_iso8601
from pyramid.httpexceptions import HTTPBadRequest, HTTPCreated, HTTPNotFound, HTTPOk
from weaver import sort
from weaver.config import WEAVER_CONFIGURATION_ADES, WEAVER_CONFIGURATION_EMS, get_w... | 43.810056 | 119 | 0.718822 | 968 | 7,842 | 5.568182 | 0.206612 | 0.025974 | 0.023748 | 0.016883 | 0.311317 | 0.284972 | 0.219666 | 0.200557 | 0.167532 | 0.156957 | 0 | 0.003418 | 0.179291 | 7,842 | 178 | 120 | 44.05618 | 0.834058 | 0.080719 | 0 | 0.130769 | 0 | 0 | 0.067594 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.238462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6a31701fc7c063904134f212988d1c0c79559f82 | 6,722 | py | Python | pysnmp/CISCO-VSI-CONTROLLER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-VSI-CONTROLLER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-VSI-CONTROLLER-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VSI-CONTROLLER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VSI-CONTROLLER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:03:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 105.03125 | 883 | 0.759298 | 739 | 6,722 | 6.903924 | 0.197564 | 0.012544 | 0.01176 | 0.014896 | 0.356919 | 0.253038 | 0.217758 | 0.217758 | 0.217758 | 0.215602 | 0 | 0.070471 | 0.090152 | 6,722 | 63 | 884 | 106.698413 | 0.763734 | 0.050878 | 0 | 0.09434 | 0 | 0 | 0.1849 | 0.063569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a35d2e3dec4c05f542fce0db1d5d23465661584 | 8,348 | py | Python | Masters/Copy Layer to Layer.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | 1 | 2021-09-04T18:41:30.000Z | 2021-09-04T18:41:30.000Z | Masters/Copy Layer to Layer.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | Masters/Copy Layer to Layer.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Copy Layer to Layer
# -*- coding: utf-8 -*-
__doc__="""
Copies one master to another master in selected glyphs.
"""
import GlyphsApp
import vanilla
import math
def getComponentScaleX_scaleY_rotation( self ):
a = self.transform[0]
b = self.transform[1]
c = self.transform[2]
d = self.transform[3]
... | 36.295652 | 152 | 0.713464 | 1,010 | 8,348 | 5.80099 | 0.227723 | 0.029869 | 0.053251 | 0.047619 | 0.27445 | 0.182796 | 0.157535 | 0.146783 | 0.129032 | 0.0908 | 0 | 0.01943 | 0.167705 | 8,348 | 229 | 153 | 36.454148 | 0.823834 | 0.048275 | 0 | 0.064706 | 0 | 0 | 0.153327 | 0.071734 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017647 | null | null | 0.082353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a38ce0ec26e60d5ad5f137d860bd186bef4c8e7 | 1,981 | py | Python | zorg/buildbot/conditions/FileConditions.py | dyung/llvm-zorg | 42cd139968388b14323975647faf322c99945986 | [
"Apache-2.0"
] | 27 | 2019-01-15T03:03:58.000Z | 2022-03-22T23:31:36.000Z | zorg/buildbot/conditions/FileConditions.py | dyung/llvm-zorg | 42cd139968388b14323975647faf322c99945986 | [
"Apache-2.0"
] | 21 | 2020-05-29T01:12:26.000Z | 2022-03-29T20:06:22.000Z | zorg/buildbot/conditions/FileConditions.py | dyung/llvm-zorg | 42cd139968388b14323975647faf322c99945986 | [
"Apache-2.0"
] | 38 | 2019-02-10T02:46:33.000Z | 2022-03-26T10:27:29.000Z | from buildbot.process.remotecommand import RemoteCommand
from buildbot.interfaces import WorkerTooOldError
import stat
class FileExists(object):
"""I check a file existence on the worker. I return True if the file
with the given name exists, False if the file does not exist or that is
a directory.
Us... | 30.476923 | 78 | 0.655729 | 257 | 1,981 | 4.980545 | 0.311284 | 0.05625 | 0.028125 | 0.0375 | 0.664063 | 0.61875 | 0.542188 | 0.542188 | 0.49375 | 0.49375 | 0 | 0.000686 | 0.264513 | 1,981 | 64 | 79 | 30.953125 | 0.877831 | 0.360424 | 0 | 0.625 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.09375 | 0.03125 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a415615b9b2bc4e4bdf10ab3d417314a169e277 | 44,836 | py | Python | phi/math/backend/_backend.py | marc-gav/PhiFlow | b6186fd1503d040997b52d49aa18cd875267c27e | [
"MIT"
] | null | null | null | phi/math/backend/_backend.py | marc-gav/PhiFlow | b6186fd1503d040997b52d49aa18cd875267c27e | [
"MIT"
] | null | null | null | phi/math/backend/_backend.py | marc-gav/PhiFlow | b6186fd1503d040997b52d49aa18cd875267c27e | [
"MIT"
] | null | null | null | from collections import namedtuple
from contextlib import contextmanager
from threading import Barrier
from typing import List, Callable
import numpy
from ._dtype import DType, combine_types
SolveResult = namedtuple('SolveResult', [
'method', 'x', 'residual', 'iterations', 'function_evaluations', 'converged', '... | 37.677311 | 216 | 0.629293 | 5,596 | 44,836 | 4.937098 | 0.138134 | 0.068626 | 0.066889 | 0.074055 | 0.31041 | 0.258651 | 0.223252 | 0.202295 | 0.191871 | 0.180976 | 0 | 0.008629 | 0.276274 | 44,836 | 1,189 | 217 | 37.708999 | 0.842769 | 0.322754 | 0 | 0.314035 | 0 | 0.003509 | 0.029159 | 0.000804 | 0 | 0 | 0 | 0 | 0.014035 | 1 | 0.254386 | false | 0.001754 | 0.015789 | 0.02807 | 0.396491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dbde5b0dbcab23e1ef72b1961f7810d2ab8cc002 | 6,452 | py | Python | file_importer0.py | Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis | 454583f47883edae17391f101b10b38b68c9834f | [
"MIT"
] | 1 | 2021-03-15T19:44:36.000Z | 2021-03-15T19:44:36.000Z | file_importer0.py | Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis | 454583f47883edae17391f101b10b38b68c9834f | [
"MIT"
] | null | null | null | file_importer0.py | Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis | 454583f47883edae17391f101b10b38b68c9834f | [
"MIT"
] | 1 | 2022-02-06T01:33:41.000Z | 2022-02-06T01:33:41.000Z | import xlsxwriter
import pandas as pd
import numpy as np
import mysql.connector
australia=pd.read_excel(r'\Users\jesica\Desktop\RCEP_economic_analysis.xlsx', sheet_name='Australia')
brunei=pd.read_excel(r'\Users\jesica\Desktop\RCEP_economic_analysis.xlsx', sheet_name='Brunei')
cambodia=pd.read_excel(r'\Users\jesica\De... | 72.494382 | 227 | 0.67359 | 1,019 | 6,452 | 4.14524 | 0.087341 | 0.046402 | 0.059659 | 0.066288 | 0.334754 | 0.334754 | 0.334754 | 0.334754 | 0.308239 | 0.308239 | 0 | 0.006621 | 0.110508 | 6,452 | 88 | 228 | 73.318182 | 0.729395 | 0.002015 | 0 | 0 | 0 | 0 | 0.538147 | 0.467302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe03e42e9b3d1f6b76452c08db25467c63f6175 | 30,141 | py | Python | python/das/types.py | marza-animation-planet/das | 1c7460dfdd5f138d8317c72900e90b23c0c28c7b | [
"MIT"
] | 4 | 2018-11-19T01:36:01.000Z | 2022-02-28T03:41:12.000Z | python/das/types.py | marza-animation-planet/das | 1c7460dfdd5f138d8317c72900e90b23c0c28c7b | [
"MIT"
] | 1 | 2021-12-26T11:57:07.000Z | 2022-03-16T07:18:01.000Z | python/das/types.py | marza-animation-planet/das | 1c7460dfdd5f138d8317c72900e90b23c0c28c7b | [
"MIT"
] | 2 | 2019-03-30T10:28:12.000Z | 2022-03-04T17:58:39.000Z | import sys
import das
import traceback
class ReservedNameError(Exception):
def __init__(self, name):
super(ReservedNameError, self).__init__("'%s' is a reserved name" % name)
class VersionError(Exception):
def __init__(self, msg=None, current_version=None, required_version=None):
fullmsg = "ersion... | 30.945585 | 146 | 0.563883 | 3,894 | 30,141 | 4.06831 | 0.073446 | 0.033834 | 0.024239 | 0.020831 | 0.645184 | 0.570698 | 0.546333 | 0.505807 | 0.464777 | 0.429365 | 0 | 0.00267 | 0.316612 | 30,141 | 973 | 147 | 30.97739 | 0.766434 | 0.05879 | 0 | 0.558603 | 0 | 0.001247 | 0.09278 | 0.032056 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001247 | 0.003741 | null | null | 0.041147 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbe3e139f969d2b0c02202b763923425574d8d2e | 2,764 | py | Python | default.py | SimonPreissner/get-shifty | aff49220932921c77e419a34ca472b51e0b26b72 | [
"MIT"
] | null | null | null | default.py | SimonPreissner/get-shifty | aff49220932921c77e419a34ca472b51e0b26b72 | [
"MIT"
] | null | null | null | default.py | SimonPreissner/get-shifty | aff49220932921c77e419a34ca472b51e0b26b72 | [
"MIT"
] | null | null | null | """
This file contains meta information and default configurations of the project
"""
RSC_YEARS = [1660, 1670, 1680, 1690,
1700, 1710, 1720, 1730, 1740, 1750, 1760, 1770, 1780, 1790,
1800, 1810, 1820, 1830, 1840, 1850, 1860, 1870, 1880, 1890,
1900, 1910, 1920]
# cf. Chapter 4.... | 52.150943 | 119 | 0.458032 | 272 | 2,764 | 4.511029 | 0.625 | 0.02608 | 0.01793 | 0.01304 | 0.02282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15557 | 0.434877 | 2,764 | 53 | 120 | 52.150943 | 0.629962 | 0.281476 | 0 | 0 | 0 | 0 | 0.164447 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe44f6e05680f0d1dad7aaee47f96f07f3de643 | 2,128 | py | Python | tests/python/metaclass_inheritance.py | gmgunter/pyre | e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2 | [
"BSD-3-Clause"
] | 25 | 2018-04-23T01:45:39.000Z | 2021-12-10T06:01:23.000Z | tests/python/metaclass_inheritance.py | gmgunter/pyre | e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2 | [
"BSD-3-Clause"
] | 53 | 2018-05-31T04:55:00.000Z | 2021-10-07T21:41:32.000Z | tests/python/metaclass_inheritance.py | gmgunter/pyre | e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2 | [
"BSD-3-Clause"
] | 12 | 2018-04-23T22:50:40.000Z | 2022-02-20T17:27:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2021 all rights reserved
#
#
"""
When a metaclass understands the extra keywords that can be passed during class declaration,
it has to override all these to accommodate the change in signature
"""
class meta(type):
... | 25.035294 | 92 | 0.56156 | 239 | 2,128 | 4.715481 | 0.297071 | 0.070985 | 0.074534 | 0.060337 | 0.545697 | 0.451642 | 0.451642 | 0.451642 | 0.393079 | 0.393079 | 0 | 0.017264 | 0.292293 | 2,128 | 84 | 93 | 25.333333 | 0.731076 | 0.134868 | 0 | 0.583333 | 0 | 0 | 0.077303 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.125 | false | 0 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe7a0b13a437a6e05e68098ff2efe008a915ee9 | 862 | py | Python | bin/sort.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | 4 | 2020-07-10T20:16:13.000Z | 2022-02-16T02:11:20.000Z | bin/sort.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | null | null | null | bin/sort.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | 2 | 2020-06-24T20:37:36.000Z | 2020-07-10T20:16:17.000Z | #!/usr/bin/env python3
"""
usage: sort.py [-h]
sort lines
options:
-h, --help show this help message and exit
quirks:
sorts tabs as different than spaces
sorts some spaces ending a line as different than none ending a line
examples:
Oh no! No examples disclosed!! 💥 💔 💥
"""
# FIXME: doc -k$N,$N and -n a... | 21.02439 | 70 | 0.678654 | 139 | 862 | 4.151079 | 0.618705 | 0.046794 | 0.07279 | 0.062392 | 0.086655 | 0.086655 | 0 | 0 | 0 | 0 | 0 | 0.007133 | 0.186775 | 862 | 40 | 71 | 21.55 | 0.811698 | 0.62761 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.1 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbeb68c7ee7ea08f9d92285ea9d761b3aba02878 | 5,115 | py | Python | experiments/db_test.py | mit-ll/CATAN | 7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac | [
"BSD-3-Clause"
] | 15 | 2015-06-05T20:13:40.000Z | 2020-12-24T05:16:57.000Z | experiments/db_test.py | mit-ll/CATAN | 7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac | [
"BSD-3-Clause"
] | 10 | 2016-03-04T23:05:56.000Z | 2016-05-18T18:14:13.000Z | experiments/db_test.py | mit-ll/CATAN | 7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac | [
"BSD-3-Clause"
] | 6 | 2015-10-15T19:23:58.000Z | 2021-06-29T07:36:16.000Z | #!/usr/bin/env python
"""
@author Hongyi Hu
© 2015 Massachusetts Institute of Technology
"""
import argparse
import random
import catan.db
from catan.data import NodeMessage
# test data
STATUS_LIST = ['ok', 'injured', 'deceased']
# nodes
def gen_nodes(n, db, start_lat, stop_lat, start_long, stop_long):
assert... | 31.189024 | 111 | 0.634018 | 679 | 5,115 | 4.543446 | 0.223859 | 0.046677 | 0.074554 | 0.075203 | 0.52577 | 0.351702 | 0.301135 | 0.279741 | 0.279741 | 0.257699 | 0 | 0.033483 | 0.258456 | 5,115 | 163 | 112 | 31.380368 | 0.779594 | 0.105376 | 0 | 0.233333 | 0 | 0 | 0.188568 | 0.11182 | 0 | 0 | 0 | 0 | 0.022222 | 0 | null | null | 0.011111 | 0.044444 | null | null | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbec13a8be9b82963156b2e9e29130d14a7c09eb | 975 | py | Python | tests/formatters/fseventsd.py | SamuelePilleri/plaso | f5687f12a89c7309797ccc285da78e855c120579 | [
"Apache-2.0"
] | null | null | null | tests/formatters/fseventsd.py | SamuelePilleri/plaso | f5687f12a89c7309797ccc285da78e855c120579 | [
"Apache-2.0"
] | null | null | null | tests/formatters/fseventsd.py | SamuelePilleri/plaso | f5687f12a89c7309797ccc285da78e855c120579 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the fseventsd record event formatter."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import fseventsd
from tests.formatters import test_lib
class FseventsdFormatterTest(test_lib.EventFormatterTestCase):
"""Tests for the... | 26.351351 | 67 | 0.756923 | 100 | 975 | 7.11 | 0.52 | 0.118143 | 0.030942 | 0.056259 | 0.112518 | 0.112518 | 0.112518 | 0 | 0 | 0 | 0 | 0.001202 | 0.146667 | 975 | 36 | 68 | 27.083333 | 0.853365 | 0.251282 | 0 | 0.125 | 0 | 0 | 0.067893 | 0 | 0 | 0 | 0 | 0.027778 | 0.0625 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dbed5bb534715e304b67cd5a82e6d1e8cca605fa | 1,693 | py | Python | categories/migrations/0001_initial.py | snoop2head/exercise_curation_django | ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda | [
"MIT"
] | 3 | 2020-09-30T04:44:39.000Z | 2021-07-30T08:20:18.000Z | categories/migrations/0001_initial.py | snoop2head/exercise_curation_django | ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda | [
"MIT"
] | 7 | 2021-03-30T13:09:55.000Z | 2022-01-13T02:33:34.000Z | categories/migrations/0001_initial.py | snoop2head/exercise_curation_django | ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda | [
"MIT"
] | 1 | 2022-03-31T12:01:38.000Z | 2022-03-31T12:01:38.000Z | # Generated by Django 3.0.3 on 2020-03-24 09:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('exercises', '0018_photo_file'),
]
operations = [
migrations.CreateModel(
na... | 37.622222 | 158 | 0.569403 | 163 | 1,693 | 5.779141 | 0.398773 | 0.03397 | 0.097665 | 0.110403 | 0.433121 | 0.433121 | 0.433121 | 0.433121 | 0.433121 | 0.33121 | 0 | 0.019183 | 0.29179 | 1,693 | 44 | 159 | 38.477273 | 0.766472 | 0.02658 | 0 | 0.486486 | 1 | 0 | 0.119077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.162162 | 0 | 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 |
dbef5ddea825a12fdea28a38b148d831f47bd566 | 1,446 | py | Python | python_modules/lakehouse/lakehouse/snowflake_table.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 3 | 2020-04-28T16:27:33.000Z | 2020-07-22T07:43:30.000Z | python_modules/lakehouse/lakehouse/snowflake_table.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 2 | 2021-05-11T13:36:27.000Z | 2021-09-03T01:53:11.000Z | python_modules/lakehouse/lakehouse/snowflake_table.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | from dagster import check
from .house import Lakehouse
from .table import create_lakehouse_table_def
class SnowflakeLakehouse(Lakehouse):
def __init__(self):
pass
def hydrate(self, _context, _table_type, _table_metadata, table_handle, _dest_metadata):
return None
def materialize(self, c... | 26.777778 | 98 | 0.670816 | 168 | 1,446 | 5.357143 | 0.285714 | 0.16 | 0.2 | 0.124444 | 0.368889 | 0.368889 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.253804 | 1,446 | 53 | 99 | 27.283019 | 0.834106 | 0 | 0 | 0.142857 | 0 | 0 | 0.05325 | 0.015214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.02381 | 0.071429 | 0.071429 | 0.333333 | 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 |
dbf19789118428ff5f8d3aa59b32b64fa444b8b7 | 984 | py | Python | agent_based_models/abm_allelopathy/plot_data.py | mattsmart/biomodels | 237f87489553fa1ebf5c676fab563166dd0c39e9 | [
"MIT"
] | null | null | null | agent_based_models/abm_allelopathy/plot_data.py | mattsmart/biomodels | 237f87489553fa1ebf5c676fab563166dd0c39e9 | [
"MIT"
] | null | null | null | agent_based_models/abm_allelopathy/plot_data.py | mattsmart/biomodels | 237f87489553fa1ebf5c676fab563166dd0c39e9 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import os
def data_plotter(lattice_dict, datafile_dir, plot_dir):
# total spaces on grid implies grid size
total_cells = lattice_dict['E'][0] + lattice_dict['D_a'][0] + lattice_dict['D_b'][0] + lattice_dict['B'][0]
n = int(total_cells**0.5)
plt.figure(1)
plt.plot... | 30.75 | 111 | 0.650407 | 159 | 984 | 3.830189 | 0.421384 | 0.234811 | 0.078818 | 0.118227 | 0.220033 | 0.220033 | 0.220033 | 0.111658 | 0 | 0 | 0 | 0.02091 | 0.17378 | 984 | 31 | 112 | 31.741935 | 0.728167 | 0.061992 | 0 | 0 | 0 | 0 | 0.182609 | 0.023913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.190476 | 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 |
dbf3d541561ba11217ad33d7f2e880d8ae1b4729 | 1,567 | py | Python | FOR/Analisador-completo/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | 1 | 2021-09-28T13:11:56.000Z | 2021-09-28T13:11:56.000Z | FOR/Analisador-completo/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | null | null | null | FOR/Analisador-completo/main.py | lucasf5/Python | c5649121e2af42922e2d9c19cec98322e132bdab | [
"MIT"
] | null | null | null | # Exercício Python 56: Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: a média de idade do grupo, qual é o nome do homem mais velho e quantas mulheres têm menos de 20 anos.
mediaidade = ''
nomelista = []
idadelista = []
sexolista = []
homens = []
mulherescommenosde20 =... | 27.982143 | 221 | 0.612636 | 201 | 1,567 | 4.776119 | 0.477612 | 0.025 | 0.01875 | 0.027083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.167837 | 1,567 | 55 | 222 | 28.490909 | 0.717791 | 0.454371 | 0 | 0 | 0 | 0 | 0.2891 | 0.026066 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dbf65821c57bcbfbc7d857dacc3de5d4175d7481 | 1,101 | py | Python | liststations.py | CrookedY/AirPollutionBot | ce79037d6dddd1f297fce04a694b49f8b9a1bfad | [
"Apache-2.0"
] | 1 | 2018-08-10T14:06:07.000Z | 2018-08-10T14:06:07.000Z | liststations.py | CrookedY/AirPollutionBot | ce79037d6dddd1f297fce04a694b49f8b9a1bfad | [
"Apache-2.0"
] | 2 | 2017-08-09T11:24:31.000Z | 2018-03-01T22:50:04.000Z | liststations.py | CrookedY/AirPollutionBot | ce79037d6dddd1f297fce04a694b49f8b9a1bfad | [
"Apache-2.0"
] | null | null | null | from urllib2 import Request, urlopen, URLError
import json
request = Request('https://uk-air.defra.gov.uk/sos-ukair/api/v1/stations/')
try:
response = urlopen(request)
data = response.read()
except URLError, e:
print 'error:', e
stations= json.loads (data)
#extract out station 2
stations2 = stations [7]
prope... | 23.934783 | 85 | 0.719346 | 171 | 1,101 | 4.596491 | 0.374269 | 0.030534 | 0.038168 | 0.057252 | 0.291349 | 0.291349 | 0.291349 | 0.291349 | 0.14631 | 0.14631 | 0 | 0.020021 | 0.138056 | 1,101 | 45 | 86 | 24.466667 | 0.808219 | 0.160763 | 0 | 0.290323 | 0 | 0.096774 | 0.241567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbf810a25b7c035adf73121054a304443a683fb0 | 748 | py | Python | core/migrations/0002_auto_20180702_1913.py | mertyildiran/echo | 805db64e3fa9d31fd3c24390fac2e9bf7c91ad57 | [
"Apache-2.0"
] | 5 | 2018-07-26T22:48:00.000Z | 2021-05-02T01:59:51.000Z | core/migrations/0002_auto_20180702_1913.py | mertyildiran/echo | 805db64e3fa9d31fd3c24390fac2e9bf7c91ad57 | [
"Apache-2.0"
] | null | null | null | core/migrations/0002_auto_20180702_1913.py | mertyildiran/echo | 805db64e3fa9d31fd3c24390fac2e9bf7c91ad57 | [
"Apache-2.0"
] | 1 | 2018-08-04T14:07:53.000Z | 2018-08-04T14:07:53.000Z | # Generated by Django 2.0.6 on 2018-07-02 19:13
import core.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='echo',
old_name='own... | 24.933333 | 99 | 0.57754 | 77 | 748 | 5.480519 | 0.571429 | 0.07109 | 0.061611 | 0.137441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036609 | 0.30615 | 748 | 29 | 100 | 25.793103 | 0.776493 | 0.06016 | 0 | 0.304348 | 1 | 0 | 0.07418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 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 |
dbfb34040aab0e7552b68ecebacb85f0a1f7a601 | 211 | py | Python | Chapter09/calc.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | Chapter09/calc.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | Chapter09/calc.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null |
def sum1(a,b):
try:
c = a+b
return c
except :
print "Error in sum1 function"
def divide(a,b):
try:
c = a/b
return c
except :
print "Error in divide function"
print divide(10,0)
print sum1(10,0) | 13.1875 | 34 | 0.635071 | 40 | 211 | 3.35 | 0.375 | 0.059701 | 0.074627 | 0.089552 | 0.492537 | 0.492537 | 0.492537 | 0.492537 | 0.492537 | 0.492537 | 0 | 0.05625 | 0.241706 | 211 | 16 | 35 | 13.1875 | 0.78125 | 0 | 0 | 0.428571 | 0 | 0 | 0.218009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbfdb987e6de76d1f36bf0f8ce7f9d972b1cbaed | 7,103 | py | Python | venv/Lib/site-packages/CoolProp/constants.py | kubakoziczak/gasSteamPowerPlant | e6c036cc66ee2ff0b3f2fc923d0991bf57295d61 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/CoolProp/constants.py | kubakoziczak/gasSteamPowerPlant | e6c036cc66ee2ff0b3f2fc923d0991bf57295d61 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/CoolProp/constants.py | kubakoziczak/gasSteamPowerPlant | e6c036cc66ee2ff0b3f2fc923d0991bf57295d61 | [
"MIT"
] | null | null | null | # This file is automatically generated by the generate_constants_module.py script in wrappers/Python.
# DO NOT MODIFY THE CONTENTS OF THIS FILE!
from __future__ import absolute_import
from . import _constants
INVALID_PARAMETER = _constants.INVALID_PARAMETER
igas_constant = _constants.igas_constant
imolar_mass = _cons... | 44.672956 | 120 | 0.887653 | 841 | 7,103 | 6.88585 | 0.261593 | 0.090658 | 0.01865 | 0.016059 | 0.082887 | 0.036609 | 0 | 0 | 0 | 0 | 0 | 0.004232 | 0.068563 | 7,103 | 158 | 121 | 44.955696 | 0.87107 | 0.01971 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012987 | 0 | 0.012987 | 0 | 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 |
e0023b6272774adf06f1384bdb4cb510043c4a82 | 224 | py | Python | task/w2/trenirovka/12-rivnist 2.py | beregok/pythontask | 50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e | [
"MIT"
] | 1 | 2019-09-29T14:19:54.000Z | 2019-09-29T14:19:54.000Z | task/w2/trenirovka/12-rivnist 2.py | beregok/pythontask | 50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e | [
"MIT"
] | null | null | null | task/w2/trenirovka/12-rivnist 2.py | beregok/pythontask | 50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e | [
"MIT"
] | null | null | null | a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a == 0 and b == 0:
print("INF")
else:
if (d - b * c / a) != 0 and (- b / a) == (- b // a):
print(- b // a)
else:
print("NO")
| 18.666667 | 56 | 0.397321 | 38 | 224 | 2.342105 | 0.342105 | 0.359551 | 0.11236 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.339286 | 224 | 11 | 57 | 20.363636 | 0.581081 | 0 | 0 | 0.181818 | 0 | 0 | 0.022321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 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 |
e01a5f16e11613ae6cff496ae606faff7b1d0e27 | 460 | py | Python | home/push/mipush/APIError.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | home/push/mipush/APIError.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | 223 | 2020-02-21T06:16:56.000Z | 2022-03-01T22:24:19.000Z | home/push/mipush/APIError.py | he0119/smart-home | bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683 | [
"MIT"
] | null | null | null | class APIError(Exception):
"""
raise APIError if receiving json message indicating failure.
"""
def __init__(self, error_code, error, request):
self.error_code = error_code
self.error = error
self.request = request
Exception.__init__(self, error)
def __str__(self):
... | 25.555556 | 64 | 0.576087 | 49 | 460 | 5.081633 | 0.387755 | 0.216867 | 0.156627 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321739 | 460 | 17 | 65 | 27.058824 | 0.798077 | 0.130435 | 0 | 0 | 0 | 0 | 0.075521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 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 |
e01cbf8a1a1ab981a1d993596c3a332451dcd74d | 367 | py | Python | pythonlibs/mantis/templates/webapp/src/webapp/base.py | adoggie/Tibet.6 | 3c53060edafd80b9c4dafa10699a68d86a410c66 | [
"MIT"
] | 22 | 2019-10-28T07:28:12.000Z | 2022-03-19T15:36:41.000Z | AliceBackend/src/AliceBackend/base.py | adoggie/Tibet.6 | 3c53060edafd80b9c4dafa10699a68d86a410c66 | [
"MIT"
] | 1 | 2019-11-07T04:54:14.000Z | 2019-11-07T07:12:48.000Z | AliceBackend/src/AliceBackend/base.py | adoggie/Tibet.6 | 3c53060edafd80b9c4dafa10699a68d86a410c66 | [
"MIT"
] | 13 | 2019-10-28T07:29:07.000Z | 2021-11-03T06:53:12.000Z | #coding:utf-8
class SystemDeviceType(object):
InnerBox = 1 # 主屏分离的室内主机
InnerScreen = 2 # 主屏分离的室内屏
OuterBox = 3 # 室外机
PropCallApp = 4 # 物业值守
PropSentryApp = 5 # 物业岗亭机
Others = 10
ValidatedList = (1,2,3,4,5)
class Constants(object):
SUPER_ACCESS_TOKEN = 'YTU3NzV... | 24.466667 | 80 | 0.643052 | 36 | 367 | 6.5 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067164 | 0.269755 | 367 | 15 | 80 | 24.466667 | 0.80597 | 0.125341 | 0 | 0 | 0 | 0 | 0.167722 | 0.158228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e0201884251a727105b3a8b3946ca3bc3aefd73d | 480 | py | Python | devito/passes/iet/languages/C.py | guaacoelho/devito | 7e0b873114675752c4a49ed9076ee5d52997833c | [
"MIT"
] | 199 | 2016-08-18T23:33:05.000Z | 2019-12-24T07:08:48.000Z | devito/passes/iet/languages/C.py | guaacoelho/devito | 7e0b873114675752c4a49ed9076ee5d52997833c | [
"MIT"
] | 949 | 2016-04-25T11:41:34.000Z | 2019-12-27T10:43:40.000Z | devito/passes/iet/languages/C.py | guaacoelho/devito | 7e0b873114675752c4a49ed9076ee5d52997833c | [
"MIT"
] | 78 | 2016-08-30T07:42:34.000Z | 2019-12-13T20:34:45.000Z | from devito.ir import Call
from devito.passes.iet.definitions import DataManager
from devito.passes.iet.langbase import LangBB
__all__ = ['CBB', 'CDataManager']
class CBB(LangBB):
mapper = {
'aligned': lambda i:
'__attribute__((aligned(%d)))' % i,
'host-alloc': lambda i, j, k:
... | 21.818182 | 53 | 0.591667 | 57 | 480 | 4.824561 | 0.508772 | 0.109091 | 0.116364 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260417 | 480 | 21 | 54 | 22.857143 | 0.774648 | 0 | 0 | 0 | 0 | 0 | 0.18125 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e0215d4c222f248ad7105000615a748c88340354 | 2,026 | py | Python | tests/_test_image.py | Freakwill/ell | 8aa510cefb5d63db35071820208971013fac154c | [
"MIT"
] | null | null | null | tests/_test_image.py | Freakwill/ell | 8aa510cefb5d63db35071820208971013fac154c | [
"MIT"
] | null | null | null | tests/_test_image.py | Freakwill/ell | 8aa510cefb5d63db35071820208971013fac154c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Test methods about image process
Make sure the existance of the images
"""
from ell import *
import numpy as np
_filter = Filter.from_name('db4')
def test_resize():
chennal=0
c = ImageRGB.open('src/lenna.jpg')
d=c.resize(minInd=(-100,-100), maxInd=(100,100))
d.to_image()
... | 28.535211 | 109 | 0.605133 | 338 | 2,026 | 3.428994 | 0.204142 | 0.102675 | 0.085418 | 0.120794 | 0.713546 | 0.669543 | 0.627265 | 0.584124 | 0.535807 | 0.535807 | 0 | 0.051169 | 0.218657 | 2,026 | 70 | 110 | 28.942857 | 0.680985 | 0.082922 | 0 | 0.5 | 0 | 0 | 0.052489 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e026dd61a71f4c0236cf71cd04ff440228426371 | 1,303 | py | Python | bot/views.py | eyobofficial/COVID-19-Mutual-Aid | 42d30ce95b0e9c717c5eda3ecaafea2812ec34f7 | [
"MIT"
] | null | null | null | bot/views.py | eyobofficial/COVID-19-Mutual-Aid | 42d30ce95b0e9c717c5eda3ecaafea2812ec34f7 | [
"MIT"
] | 5 | 2020-03-19T17:49:50.000Z | 2021-06-10T20:06:14.000Z | bot/views.py | eyobofficial/COVID-19-Mutual-Aid | 42d30ce95b0e9c717c5eda3ecaafea2812ec34f7 | [
"MIT"
] | null | null | null | import telegram
from django.conf import settings
from django.shortcuts import redirect
from django.utils.decorators import method_decorator
from django.views.generic import View
from django.views.decorators.csrf import csrf_exempt
from braces.views import CsrfExemptMixin
from rest_framework.authentication import Bas... | 29.613636 | 61 | 0.692249 | 154 | 1,303 | 5.714286 | 0.454545 | 0.056818 | 0.096591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.217191 | 1,303 | 43 | 62 | 30.302326 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.058462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.424242 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e0274bb01109146cf480d663260e32b7e8a8cc2d | 580 | py | Python | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | 3 | 2019-12-16T16:47:16.000Z | 2020-07-28T19:47:34.000Z | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | 15 | 2019-12-05T03:38:19.000Z | 2022-03-13T02:35:30.000Z | portfolio/urls.py | ramza007/Ramza.io | 2172d9ac13e87becbc8644ad5755070f48fab8da | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.urls import path, include,re_path
from . import views
from rest_framework.authtoken.views import obtain_auth_token
urlpatterns = [
path('', views.index, name='index'),
path('about', views.about, name='about'),
path('projects', views.projects, name='projects'),... | 34.117647 | 92 | 0.7 | 83 | 580 | 4.759036 | 0.409639 | 0.060759 | 0.053165 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.12069 | 580 | 16 | 93 | 36.25 | 0.770588 | 0 | 0 | 0 | 0 | 0 | 0.194828 | 0.067241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e027abc215159b586950e87882ad8ad4be055155 | 407 | py | Python | tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py | iPieter/kiwi | 76b66872fce68873809a0dea112e2ed552ae5b63 | [
"Apache-2.0"
] | null | null | null | tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py | iPieter/kiwi | 76b66872fce68873809a0dea112e2ed552ae5b63 | [
"Apache-2.0"
] | 1 | 2021-01-24T13:34:51.000Z | 2021-01-24T13:34:51.000Z | tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py | iPieter/kiwi | 76b66872fce68873809a0dea112e2ed552ae5b63 | [
"Apache-2.0"
] | null | null | null | from six.moves import urllib
from kiwi.store.tracking.file_store import FileStore
class PluginFileStore(FileStore):
"""FileStore provided through entrypoints system"""
def __init__(self, store_uri=None, artifact_uri=None):
path = urllib.parse.urlparse(store_uri).path if store_uri else None
s... | 31.307692 | 75 | 0.746929 | 53 | 407 | 5.45283 | 0.584906 | 0.083045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167076 | 407 | 12 | 76 | 33.916667 | 0.852507 | 0.110565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e02a89e62a53d61fc9086acef78dc03df26f1de7 | 2,140 | py | Python | backend/listings/migrations/0001_initial.py | relaxxpls/Music-Control | 76f5d10904f820607b3eb756850d5c5d7d89d875 | [
"MIT"
] | null | null | null | backend/listings/migrations/0001_initial.py | relaxxpls/Music-Control | 76f5d10904f820607b3eb756850d5c5d7d89d875 | [
"MIT"
] | null | null | null | backend/listings/migrations/0001_initial.py | relaxxpls/Music-Control | 76f5d10904f820607b3eb756850d5c5d7d89d875 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-30 04:28
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.Cr... | 48.636364 | 158 | 0.583645 | 225 | 2,140 | 5.431111 | 0.444444 | 0.0982 | 0.07365 | 0.0982 | 0.135025 | 0.090835 | 0.090835 | 0.06874 | 0.06874 | 0.06874 | 0 | 0.027295 | 0.246729 | 2,140 | 43 | 159 | 49.767442 | 0.730769 | 0.021028 | 0 | 0 | 1 | 0 | 0.154802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.194444 | 0 | 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.