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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6f189ef85697f774e1b7b0fd4ad59178117e3ff | 107 | py | Python | es_synonyms/constants.py | agora-team/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | 38 | 2018-09-22T11:54:03.000Z | 2022-01-25T05:42:11.000Z | es_synonyms/constants.py | prashnts/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | null | null | null | es_synonyms/constants.py | prashnts/elasticsearch-synonyms | f4ef2e136d212b6f34222d197a861d469e573f9a | [
"MIT"
] | 5 | 2017-08-18T15:36:40.000Z | 2018-08-02T13:36:26.000Z | LEVELS = dict(
ok=0,
warn=1,
error=2)
OPERATORS = dict(
map='=>',
delimiter=',',
comment='#')
| 10.7 | 17 | 0.523364 | 13 | 107 | 4.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.233645 | 107 | 9 | 18 | 11.888889 | 0.646341 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b6f23930d3e912ee805e9716c8b0824677ddf74a | 2,956 | py | Python | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | 4 | 2020-12-31T01:18:05.000Z | 2021-08-13T08:33:25.000Z | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | null | null | null | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | 5 | 2020-12-06T01:46:33.000Z | 2022-02-22T05:27:54.000Z | import json
import os
import pickle
import subprocess
from inspect import getframeinfo, stack
import langid
PARAMS = dict(
TRACE=1,
TARGET_LANG='en', # tried zh,fr,sp,de,hu,ro,ar,el,la,it,ru,ja
RANKER='betweenness',
UPLOAD_DIRECTORY='uploads/',
OUTPUT_DIRECTORY='out/',
k_count=7,
s_count=... | 20.386207 | 66 | 0.578823 | 406 | 2,956 | 4.162562 | 0.403941 | 0.023669 | 0.038462 | 0.023669 | 0.060355 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0.00992 | 0.28383 | 2,956 | 144 | 67 | 20.527778 | 0.78838 | 0.135318 | 0 | 0 | 0 | 0 | 0.056477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17284 | false | 0 | 0.08642 | 0.012346 | 0.358025 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f376b60a00ab17f19cd60c626a3bd2ccf60f7f | 12,589 | py | Python | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | """Contains the n dimensional inverted pendulum environment."""
import warnings
from typing import Optional
import matplotlib.pyplot as plt
import numpy as np
from numpy import ndarray
from polytope import polytope
from scipy.integrate import ode
from scipy.spatial.qhull import ConvexHull
from ..utils import assert_s... | 38.381098 | 120 | 0.562157 | 1,774 | 12,589 | 3.795941 | 0.196731 | 0.010989 | 0.008465 | 0.05049 | 0.253787 | 0.208494 | 0.187853 | 0.176715 | 0.149985 | 0.118503 | 0 | 0.041739 | 0.316784 | 12,589 | 327 | 121 | 38.498471 | 0.741193 | 0.288982 | 0 | 0.072289 | 0 | 0.036145 | 0.016137 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 1 | 0.078313 | false | 0 | 0.060241 | 0.012048 | 0.192771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6f37b1b2d758914c3434554bfc9d96346d89687 | 1,062 | py | Python | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 1 | 2022-03-07T13:53:11.000Z | 2022-03-07T13:53:11.000Z | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 16 | 2018-03-02T17:18:03.000Z | 2022-03-01T22:38:05.000Z | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 1 | 2018-04-09T23:44:51.000Z | 2018-04-09T23:44:51.000Z | # -*- coding: utf-8 -*-
import guzzle_sphinx_theme
from recommonmark.parser import CommonMarkParser
# -- General configuration ------------------------------------------------
project = u'Keycard'
copyright = u'2018, Regents of the University of Michigan'
author = u'Noah Botimer'
version = u'0.2.4'
release = u'0.2.4'... | 22.595745 | 75 | 0.632768 | 121 | 1,062 | 5.289256 | 0.603306 | 0.075 | 0.10625 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012236 | 0.153484 | 1,062 | 46 | 76 | 23.086957 | 0.699666 | 0.214689 | 0 | 0 | 0 | 0 | 0.288647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6f397e507056289717eaa16d0283482c1ef5f4e | 2,970 | py | Python | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 76 | 2015-03-01T11:46:57.000Z | 2022-02-18T10:57:44.000Z | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 119 | 2015-01-14T11:53:08.000Z | 2022-03-30T08:22:50.000Z | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 46 | 2015-02-09T23:50:57.000Z | 2022-01-06T16:04:40.000Z | from webtest import TestApp
import bottle
from bottle import route, template
import bugsnag
from bugsnag.wsgi.middleware import BugsnagMiddleware
from tests.utils import IntegrationTest
class TestBottle(IntegrationTest):
def setUp(self):
super(TestBottle, self).setUp()
bugsnag.configure(endpoint=... | 37.594937 | 75 | 0.619529 | 307 | 2,970 | 5.918567 | 0.29316 | 0.099064 | 0.059439 | 0.066043 | 0.625206 | 0.614199 | 0.488718 | 0.488718 | 0.488718 | 0.488718 | 0 | 0.01819 | 0.241077 | 2,970 | 78 | 76 | 38.076923 | 0.787933 | 0 | 0 | 0.484375 | 0 | 0 | 0.156566 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 1 | 0.109375 | false | 0 | 0.09375 | 0.015625 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6f43762f841c177bcebca927c3b07f71f1acd71 | 21,087 | py | Python | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 5 | 2021-02-26T10:39:56.000Z | 2021-12-23T07:53:26.000Z | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 93 | 2021-02-22T11:23:59.000Z | 2022-03-31T09:58:39.000Z | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 3 | 2021-02-22T11:44:59.000Z | 2021-06-21T19:33:53.000Z | # -*- coding: utf-8 -*-
"""Implementation of the ``somatic_variant_filtration`` step
=====================
Default Configuration
=====================
The default configuration is as follows.
.. include:: DEFAULT_CONFIG_somatic_variant_filtration.rst
=========
Important
=========
Because the EB Filter step is so t... | 37.790323 | 100 | 0.627685 | 2,458 | 21,087 | 5.114727 | 0.17738 | 0.03118 | 0.021158 | 0.031021 | 0.417276 | 0.384505 | 0.31936 | 0.281737 | 0.265749 | 0.226933 | 0 | 0.007508 | 0.267274 | 21,087 | 557 | 101 | 37.858169 | 0.806161 | 0.141841 | 0 | 0.270471 | 0 | 0 | 0.321024 | 0.134769 | 0 | 0 | 0 | 0.005386 | 0.029777 | 1 | 0.086849 | false | 0.002481 | 0.027295 | 0 | 0.186104 | 0.004963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6f68264ab402d31bf82d19fd43f6fff3290e562 | 983 | py | Python | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | __version__ = "0.0.1"
import asyncio
import logging
from contextvars import ContextVar
from pathlib import Path
from typing import Any, Awaitable, Union, cast
from .context import Context
logger = logging.getLogger(__name__)
class wrapper:
def __getattr__(self, name: str) -> Any:
return getattr(_contex... | 21.369565 | 68 | 0.65412 | 122 | 983 | 5.04918 | 0.401639 | 0.048701 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003942 | 0.225839 | 983 | 45 | 69 | 21.844444 | 0.805519 | 0 | 0 | 0.0625 | 0 | 0 | 0.032553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.03125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f6cba04c95192eedb8de4a8cd97764c5fedc28 | 15,739 | py | Python | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | import os
import random
import time
import json
import datetime
from random import randint
from pyfiglet import figlet_format
from flask import Flask, g, session, redirect, request, url_for, jsonify
from requests_oauthlib import OAuth2Session
OAUTH2_CLIENT_ID = '456608429843283998' #os.environ['OAUTH2_CLIENT_ID']
OAUT... | 32.995807 | 165 | 0.595781 | 1,829 | 15,739 | 5.06561 | 0.200109 | 0.089153 | 0.062385 | 0.075985 | 0.556287 | 0.511171 | 0.480842 | 0.45116 | 0.433028 | 0.417809 | 0 | 0.020837 | 0.301735 | 15,739 | 476 | 166 | 33.065126 | 0.822202 | 0.03844 | 0 | 0.502703 | 0 | 0.005405 | 0.183069 | 0.006556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005405 | false | 0.018919 | 0.027027 | 0 | 0.124324 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f74da2f5764dcc1d735f4668f8bb729ddbbf60 | 1,614 | py | Python | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-07-19T01:46:17.000Z | 2021-07-19T01:46:17.000Z | import unittest
import pysal
from pysal.core.IOHandlers.gwt import GwtIO
import tempfile
import os
import warnings
class test_GwtIO(unittest.TestCase):
def setUp(self):
self.test_file = test_file = pysal.examples.get_path('juvenile.gwt')
self.obj = GwtIO(test_file, 'r')
def test_close(self):
... | 29.345455 | 107 | 0.619579 | 218 | 1,614 | 4.481651 | 0.449541 | 0.057318 | 0.033777 | 0.040942 | 0.032753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022708 | 0.263321 | 1,614 | 54 | 108 | 29.888889 | 0.798991 | 0.193928 | 0 | 0.153846 | 0 | 0 | 0.021672 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.128205 | false | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f7870471a4c3b9fc2d6873b860248bf22dc993 | 3,036 | py | Python | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | """
Filters cells based on gene number, total counts, and % mitochondrial
From sc-rna-tools package
Created on Mon Jan 10 15:57:46 2022
@author: joe germino (joe.germino@ucsf.edu)
"""
# external imports
from anndata import AnnData
from typing import Tuple, Optional
# sc-rna-tools package imports
from .._configs imp... | 37.02439 | 120 | 0.675231 | 404 | 3,036 | 4.873762 | 0.29703 | 0.105637 | 0.085323 | 0.105637 | 0.425597 | 0.408329 | 0.358558 | 0.326054 | 0.283393 | 0.197054 | 0 | 0.010815 | 0.208169 | 3,036 | 81 | 121 | 37.481481 | 0.808236 | 0.458169 | 0 | 0.135135 | 0 | 0 | 0.125082 | 0.064178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6f7e210a8d6b1b4f112bb42361c0f38357cf65e | 65 | py | Python | app/models.py | Darius8867/django_ | 3f420d3b96270c88287fe2017899036dc5c2a424 | [
"MIT"
] | null | null | null | app/models.py | Darius8867/django_ | 3f420d3b96270c88287fe2017899036dc5c2a424 | [
"MIT"
] | null | null | null | app/models.py | Darius8867/django_ | 3f420d3b96270c88287fe2017899036dc5c2a424 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models
# well hello
| 10.833333 | 28 | 0.753846 | 10 | 65 | 4.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 65 | 5 | 29 | 13 | 0.942308 | 0.446154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
b6f890c3e690fdebe8e1a0836fd68af2ccbf3ac2 | 870 | py | Python | tests/046.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | tests/046.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | tests/046.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | import unittest
import sys
import itertools
sys.path.append('./')
solutions = __import__('solutions.046_permutations', fromlist='*')
class Test046(unittest.TestCase):
def test_permute(self):
s = solutions.Solution()
l = [1]
self.assertEqual(s.permute(l), self._permutaions(l))
l... | 24.166667 | 75 | 0.594253 | 112 | 870 | 4.4375 | 0.348214 | 0.150905 | 0.160966 | 0.231388 | 0.428571 | 0.428571 | 0.428571 | 0.428571 | 0.348089 | 0.263581 | 0 | 0.027778 | 0.255172 | 870 | 35 | 76 | 24.857143 | 0.739198 | 0.127586 | 0 | 0.2 | 0 | 0 | 0.049007 | 0.034437 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 0.05 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6f9606013d32904365396c03ae83f542f67efc6 | 10,618 | py | Python | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | null | null | null | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | null | null | null | kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py | gabriel-samfira/client-python | c2e184c3cad6797af35b0160a36ffcbba77284a7 | [
"Apache-2.0"
] | 1 | 2020-12-10T03:16:05.000Z | 2020-12-10T03:16:05.000Z | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1Virtua... | 32.975155 | 298 | 0.646261 | 1,134 | 10,618 | 5.910935 | 0.15873 | 0.030434 | 0.210055 | 0.015515 | 0.588095 | 0.523497 | 0.464866 | 0.398926 | 0.367597 | 0.367597 | 0 | 0.007225 | 0.283104 | 10,618 | 321 | 299 | 33.077882 | 0.873358 | 0.476455 | 0 | 0.07874 | 1 | 0 | 0.080101 | 0.026165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173228 | false | 0 | 0.023622 | 0 | 0.330709 | 0.007874 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
b6f965dfcb63aec2b920f05b495039fb46c693bf | 6,560 | py | Python | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""SOG infile processor.
Do various operations on input files for the the SOG bio-physical
model of deep estuaries. Most notably, convert new YAML infiles into
the old Fortran-style infiles that SOG reads.
This module provides services to the SOG command processor.
:Author: Doug Latornell <dj... | 32.8 | 79 | 0.676829 | 907 | 6,560 | 4.702315 | 0.259096 | 0.107855 | 0.02626 | 0.015944 | 0.370692 | 0.325205 | 0.295662 | 0.240328 | 0.240328 | 0.223447 | 0 | 0.004261 | 0.24878 | 6,560 | 199 | 80 | 32.964824 | 0.861201 | 0.504878 | 0 | 0.277108 | 0 | 0 | 0.059786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.012048 | 0.120482 | 0 | 0.228916 | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6fa2f56f4a3f21213075bc4eb29f49e9176bc1f | 278 | py | Python | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 36 | 2020-09-26T08:52:51.000Z | 2022-03-21T21:38:06.000Z | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 11 | 2020-03-22T00:06:34.000Z | 2021-06-22T15:01:20.000Z | epicstore_api/__init__.py | SD4RK/epicstore_api | 63eaf25018df6b536b5b0be4cb16f2c27b9ebb30 | [
"MIT"
] | 11 | 2020-09-26T15:27:04.000Z | 2022-03-21T15:42:27.000Z | # -*- coding: utf-8 -*-
"""
Epic Games Store API Wrapper
~~~~~~~~~~~~~~~~~~~
An API wrapper for Epic Games Store
:copyright: (c) 2020 SD4RK
:license: MIT, see LICENSE for more details.
"""
from .api import *
from .models import *
from .exc import EGSException, EGSNotFound
| 16.352941 | 44 | 0.651079 | 37 | 278 | 4.891892 | 0.675676 | 0.099448 | 0.154696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026201 | 0.176259 | 278 | 16 | 45 | 17.375 | 0.764192 | 0.651079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b6fa4e224f2429e0da069e839232d4b3abb740f6 | 12,127 | py | Python | zopeskel/zopeskel_script.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | 1 | 2021-05-31T13:51:43.000Z | 2021-05-31T13:51:43.000Z | zopeskel/zopeskel_script.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | null | null | null | zopeskel/zopeskel_script.py | jean/ZopeSkel | c9084f30aa03c2b36411bce5c75b9b85ccbabb2f | [
"MIT"
] | null | null | null | import sys
import pkg_resources
from cStringIO import StringIO
from textwrap import TextWrapper
from zopeskel.base import wrap_help_paras
from paste.script.command import get_commands
from zopeskel.ui import list_sorted_templates
USAGE = """
Usage:
zopeskel <template> <output-name> [var1=value] ... [varN=value]
... | 30.3175 | 96 | 0.645337 | 1,636 | 12,127 | 4.733496 | 0.265892 | 0.01937 | 0.010331 | 0.015496 | 0.076059 | 0.054623 | 0.054623 | 0.022469 | 0 | 0 | 0 | 0.003783 | 0.258844 | 12,127 | 399 | 97 | 30.393484 | 0.85781 | 0.061186 | 0 | 0.172794 | 0 | 0.003676 | 0.563422 | 0.011863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003676 | 0.025735 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b6fbdea6cb4c3770d8a7144d06603a4a9da8d80a | 3,330 | py | Python | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | 2 | 2021-01-20T18:00:03.000Z | 2021-01-21T13:34:56.000Z | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:06:40.000Z | 2020-10-15T12:06:40.000Z | # Copyright 2020 The TensorFlow Authors. 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 applica... | 34.329897 | 80 | 0.612913 | 477 | 3,330 | 4.125786 | 0.30608 | 0.019309 | 0.042683 | 0.057927 | 0.221545 | 0.199187 | 0.190041 | 0.109756 | 0.086382 | 0.086382 | 0 | 0.059226 | 0.254655 | 3,330 | 96 | 81 | 34.6875 | 0.733683 | 0.351652 | 0 | 0.113636 | 0 | 0 | 0.018536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.159091 | 0 | 0.204545 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6fd138f9d6faa66d73686eff259aaba67f2723e | 6,505 | py | Python | scilifelab/lims_utils/process_categories.py | ssjunnebo/scilifelab | 79960f7042118f900bd1eaabe4902ee76abd8020 | [
"MIT"
] | 1 | 2016-03-21T14:04:09.000Z | 2016-03-21T14:04:09.000Z | scilifelab/lims_utils/process_categories.py | ssjunnebo/scilifelab | 79960f7042118f900bd1eaabe4902ee76abd8020 | [
"MIT"
] | 35 | 2015-01-22T08:25:02.000Z | 2020-02-17T12:09:12.000Z | scilifelab/lims_utils/process_categories.py | ssjunnebo/scilifelab | 79960f7042118f900bd1eaabe4902ee76abd8020 | [
"MIT"
] | 6 | 2015-01-16T15:32:08.000Z | 2020-01-30T14:34:40.000Z | INITALQCFINISHEDLIB = {'Description':'All processes included in the initial qc protocol for finished libraries, except the aggregation step.',
'24' : 'Customer Gel QC',
'62' : 'qPCR QC (Library Validation) 4.0',
'64' : 'Quant-iT QC (Library Validation) 4.0',
'67' : 'Qubit QC (Library Validation) 4.0',
... | 56.565217 | 349 | 0.646272 | 839 | 6,505 | 4.98093 | 0.294398 | 0.019143 | 0.059105 | 0.062216 | 0.334051 | 0.295047 | 0.274228 | 0.274228 | 0.230677 | 0.186169 | 0 | 0.05103 | 0.216756 | 6,505 | 114 | 350 | 57.061404 | 0.769185 | 0 | 0 | 0.166667 | 0 | 0.064815 | 0.699769 | 0.011991 | 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 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6ff02751decc20312bc14dcf1d511eecda15068 | 2,240 | py | Python | basic_calculator_2.py | Ahmed--Mohsen/leetcode | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | [
"MIT"
] | 4 | 2016-01-03T20:57:21.000Z | 2017-07-06T23:22:40.000Z | basic_calculator_2.py | Ahmed--Mohsen/leetcode | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | [
"MIT"
] | null | null | null | basic_calculator_2.py | Ahmed--Mohsen/leetcode | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | [
"MIT"
] | null | null | null | """
Implement a basic calculator to evaluate a simple expression string.
The expression string contains only non-negative integers, +, -, *, / operators and empty spaces.
The integer division should truncate toward zero.
You may assume that the given expression is always valid.
Some examples:
"3+2*2" = 7
" 3/2 " =... | 19.823009 | 98 | 0.579464 | 299 | 2,240 | 4.301003 | 0.351171 | 0.048989 | 0.050544 | 0.027994 | 0.162519 | 0.109642 | 0.075428 | 0.027216 | 0.027216 | 0 | 0 | 0.016864 | 0.285268 | 2,240 | 113 | 99 | 19.823009 | 0.786384 | 0.172321 | 0 | 0.306452 | 0 | 0 | 0.01945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b6ffc4004aece2db3208e45e2a34bebeaa9566bf | 141,004 | py | Python | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | import contextlib
import unittest
from test import support
from itertools import permutations, product
from random import randrange, sample, choice
import warnings
import sys, array, io
from decimal import Decimal
from fractions import Fraction
try:
from _testbuffer import *
except ImportError:
ndarray = None
t... | 41.630942 | 105 | 0.530304 | 17,632 | 141,004 | 4.141901 | 0.03885 | 0.086061 | 0.030125 | 0.014569 | 0.679515 | 0.604108 | 0.536601 | 0.482651 | 0.44186 | 0.408271 | 0 | 0.043371 | 0.328913 | 141,004 | 3,386 | 106 | 41.643237 | 0.728404 | 0.026574 | 0 | 0.480323 | 0 | 0.000323 | 0.011346 | 0 | 0 | 0 | 0 | 0 | 0.273548 | 1 | 0.043226 | false | 0.000968 | 0.005484 | 0.002258 | 0.076452 | 0.000645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
b6ffd2696b9f634b1125ab8580ad189db011c7f4 | 253 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_1_15.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_1_15.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_1_15.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | def setNextPin(self,source):
if self.pinA == None:
self.pinA = source
else:
if self.pinB == None:
self.pinB = source
else:
raise RuntimeError("Error: NO EMPTY PINS")
| 28.111111 | 57 | 0.474308 | 26 | 253 | 4.615385 | 0.576923 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 253 | 8 | 58 | 31.625 | 0.839161 | 0 | 0 | 0.25 | 0 | 0 | 0.079051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e01dbee5a897965e7567344ae6fcd28826e16b6 | 721 | py | Python | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | tessflux/__init__.py | astrorafael/tessflux | ffd83a6fa3ceacf7ab7418433ba8353e6ba3c08d | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------
# Copyright (c) 2014 Rafael Gonzalez.
#
# See the LICENSE file for details
# ----------------------------------------------------------------------
#--------------------
# System wide imports
# -------------------
from __future__ import divisio... | 17.585366 | 72 | 0.389736 | 49 | 721 | 5.44898 | 0.693878 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011058 | 0.122053 | 721 | 40 | 73 | 18.025 | 0.410743 | 0.669903 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8e04477a8705dc2344d3c75791a0441dfe9889b8 | 6,269 | py | Python | loldib/getratings/models/NA/na_jinx/na_jinx_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_jinx/na_jinx_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_jinx/na_jinx_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Jinx_Mid_Aatrox(Ratings):
pass
class NA_Jinx_Mid_Ahri(Ratings):
pass
class NA_Jinx_Mid_Akali(Ratings):
pass
class NA_Jinx_Mid_Alistar(Ratings):
pass
class NA_Jinx_Mid_Amumu(Ratings):
pass
class NA_Jinx_Mid_Anivia(Ratings):
pass
clas... | 15.033573 | 46 | 0.75642 | 972 | 6,269 | 4.452675 | 0.151235 | 0.223198 | 0.350739 | 0.446396 | 0.791359 | 0.791359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177221 | 6,269 | 416 | 47 | 15.069712 | 0.839085 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
8e049f0aa27352585b06ca05df30f94ec3db1091 | 475 | py | Python | backend/genomafoodies/models.py | heraldofortuna/genomafoodies | d625e13c628c31a11732f2b36f9b752980a5cd9b | [
"Unlicense"
] | null | null | null | backend/genomafoodies/models.py | heraldofortuna/genomafoodies | d625e13c628c31a11732f2b36f9b752980a5cd9b | [
"Unlicense"
] | null | null | null | backend/genomafoodies/models.py | heraldofortuna/genomafoodies | d625e13c628c31a11732f2b36f9b752980a5cd9b | [
"Unlicense"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
# Create your models here.
class Genomafoodies(models.Model):
title = models.CharField(max_length=50)
ubication = models.TextField()
food_type = models.TextField()
score = models.IntegerField(
... | 27.941176 | 71 | 0.736842 | 52 | 475 | 6.653846 | 0.692308 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010152 | 0.170526 | 475 | 16 | 72 | 29.6875 | 0.86802 | 0.050526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e05037d170429d47d930aeb22964eb109747dee | 48,157 | py | Python | pysmFISH/stitching_package/stitching.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-05-29T23:03:19.000Z | 2022-02-02T02:04:41.000Z | pysmFISH/stitching_package/stitching.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 3 | 2018-12-18T20:18:38.000Z | 2019-01-18T22:47:45.000Z | pysmFISH/stitching_package/stitching.py | ambrosejcarr/pysmFISH | 0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb | [
"MIT"
] | 5 | 2018-08-10T14:54:54.000Z | 2021-10-09T13:32:08.000Z |
"""Find or apply coordinates to stitch an image
"""
#import matplotlib.pyplot as plt
#plt_available = True
plt_available = False
import sklearn.feature_extraction.image as sklim
import numpy as np
import skimage.transform as smtf
import h5py
import logging
import time
import os
# Own imports
from . import inout
from... | 40.673142 | 113 | 0.612393 | 6,187 | 48,157 | 4.644739 | 0.085017 | 0.012005 | 0.009952 | 0.005846 | 0.750774 | 0.7308 | 0.717646 | 0.706093 | 0.701361 | 0.691165 | 0 | 0.005746 | 0.306082 | 48,157 | 1,183 | 114 | 40.707523 | 0.854206 | 0.453973 | 0 | 0.603854 | 0 | 0 | 0.201502 | 0.004112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023555 | false | 0 | 0.027837 | 0 | 0.070664 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
8e05612e6454e3a0201075d9aac7b407c9a0e0af | 221 | py | Python | ode_explorer/integrators/__init__.py | nicholasjng/ode-explorer | 0bcb5d4834f6001b2a3e54bd5e000e86bbedf221 | [
"MIT"
] | 3 | 2021-11-11T02:14:18.000Z | 2022-03-14T11:18:59.000Z | ode_explorer/integrators/__init__.py | njunge94/ode-explorer | 0bcb5d4834f6001b2a3e54bd5e000e86bbedf221 | [
"MIT"
] | null | null | null | ode_explorer/integrators/__init__.py | njunge94/ode-explorer | 0bcb5d4834f6001b2a3e54bd5e000e86bbedf221 | [
"MIT"
] | null | null | null | from ode_explorer.integrators.integrator_loops import (
constant_h_loop,
adaptive_h_loop
)
from ode_explorer.integrators.integrator import Integrator
from ode_explorer.integrators.loop_factory import loop_factory
| 31.571429 | 62 | 0.855204 | 29 | 221 | 6.172414 | 0.413793 | 0.117318 | 0.251397 | 0.435754 | 0.402235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104072 | 221 | 6 | 63 | 36.833333 | 0.90404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8e05b464f863ee3ff6b1d8a71e1c57c1ec0a71f1 | 3,374 | py | Python | assignment4/gan/models.py | yutong-xie/CS498-DL-Assignment | a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef | [
"MIT"
] | null | null | null | assignment4/gan/models.py | yutong-xie/CS498-DL-Assignment | a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef | [
"MIT"
] | null | null | null | assignment4/gan/models.py | yutong-xie/CS498-DL-Assignment | a0c93422c31a19ece7abbd2a7bb19f7feb8ea5ef | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from gan.spectral_normalization import SpectralNorm
class Discriminator(nn.Module):
def __init__(self, input_channels=3):
super(Discriminator, self).__init__()
#Hint: Hint: Apply spectral normalization to convolutional layers. Input to SpectralNorm should be your... | 36.27957 | 126 | 0.479549 | 380 | 3,374 | 4.192105 | 0.178947 | 0.065913 | 0.060264 | 0.112994 | 0.526679 | 0.467043 | 0.450094 | 0.39548 | 0.39548 | 0.39548 | 0 | 0.092184 | 0.302312 | 3,374 | 92 | 127 | 36.673913 | 0.584537 | 0.098696 | 0 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.067797 | false | 0 | 0.050847 | 0 | 0.186441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8e07d4a290a89738baa85c1f2a65b178b1380804 | 3,388 | py | Python | processing/geoboundaries/standardize/recode.py | fieldmaps/edge-matcher | d5aac4b1fbd5da3518b5a33fb6ddbe4e936af3bd | [
"MIT"
] | 1 | 2021-11-10T12:59:01.000Z | 2021-11-10T12:59:01.000Z | processing/geoboundaries/standardize/recode.py | fieldmaps/admin-boundaries | 6ec585174656cdc1d209c5ccd31087b7aa6d9929 | [
"MIT"
] | null | null | null | processing/geoboundaries/standardize/recode.py | fieldmaps/admin-boundaries | 6ec585174656cdc1d209c5ccd31087b7aa6d9929 | [
"MIT"
] | null | null | null | import pandas as pd
from .utils import logging, filter_config, DATABASE
logger = logging.getLogger(__name__)
con = f'postgresql:///{DATABASE}'
def get_ids(level):
result = []
for l in range(level, -1, -1):
result += [f'adm{l}_id', f'adm{l}_name']
return ','.join(result)
def rename_id(df, level)... | 29.719298 | 78 | 0.556375 | 539 | 3,388 | 3.276438 | 0.200371 | 0.043035 | 0.039638 | 0.019819 | 0.396376 | 0.337486 | 0.323896 | 0.286523 | 0.286523 | 0.286523 | 0 | 0.015164 | 0.279811 | 3,388 | 113 | 79 | 29.982301 | 0.708607 | 0 | 0 | 0.333333 | 0 | 0 | 0.182113 | 0.036895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.020833 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e087c3aba36d8a1da8af28ad2d6df931d6e4180 | 1,112 | py | Python | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | from app.db import DTOBase
class Vehicle(DTOBase):
__id_field__ = "vin"
__display__ = "display_name"
def __init__(
self,
make: str,
model: str,
year: int,
state: str,
policy_id: int = -1,
vin: str = None,
):
self.make = make
sel... | 20.981132 | 85 | 0.563849 | 131 | 1,112 | 4.503817 | 0.267176 | 0.047458 | 0.055932 | 0.050847 | 0.064407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001346 | 0.331835 | 1,112 | 52 | 86 | 21.384615 | 0.792732 | 0 | 0 | 0.25 | 0 | 0 | 0.083633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.025 | 0.05 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e098d9290daa9ce8fe636df83ecdb38807d6eed | 484 | py | Python | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in apptest/__init__.py
from apptest import __version__ as version
setup(
name='apptest',
version=version,
description='prueba',
author='orlando ... | 24.2 | 62 | 0.783058 | 64 | 484 | 5.578125 | 0.671875 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004619 | 0.105372 | 484 | 19 | 63 | 25.473684 | 0.819861 | 0.123967 | 0 | 0 | 0 | 0 | 0.172986 | 0.063981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e0b0e23dd2e90df198a864385d478cf3eb2e293 | 5,448 | py | Python | flask_helper/_flask.py | meisanggou/JYFlask | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | 2 | 2018-11-15T11:18:13.000Z | 2020-05-16T22:12:10.000Z | flask_helper/_flask.py | meisanggou/Flask-Helper | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | null | null | null | flask_helper/_flask.py | meisanggou/Flask-Helper | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | 1 | 2018-05-07T01:11:23.000Z | 2018-05-07T01:11:23.000Z | # !/usr/bin/env python
# coding: utf-8
from flask import Flask
import os
from flask_helper.exception import InvalidHookClass
from flask_helper.flask_hook import FlaskHook
from flask_helper.hooks.cors_hook import CorsHook
from flask_helper.hooks.handle_30x_hook import Handle30xHook
from flask_helper.hooks.real_ip_hook ... | 37.572414 | 76 | 0.641887 | 690 | 5,448 | 4.794203 | 0.181159 | 0.04081 | 0.045345 | 0.024184 | 0.247279 | 0.093712 | 0.055623 | 0 | 0 | 0 | 0 | 0.006497 | 0.265419 | 5,448 | 144 | 77 | 37.833333 | 0.82009 | 0.010646 | 0 | 0.067797 | 0 | 0 | 0.036762 | 0.007798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110169 | false | 0 | 0.144068 | 0 | 0.372881 | 0.059322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e0bf2d45dfd6e0b97aceb7f22a0e37420a6dce5 | 167 | py | Python | problem0217.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0217.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0217.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #217 Balanced Numbers - Project Euler
# https://projecteuler.net/problem=217
#
# Code by Kevin Marciniak
#
###########################
| 18.555556 | 39 | 0.479042 | 14 | 167 | 5.714286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.113772 | 167 | 8 | 40 | 20.875 | 0.5 | 0.580838 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e0ce2cde6afdfd6d125f65d229bd7d0e3594dc9 | 5,802 | py | Python | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | import base64
import boto3
import datetime
import gspread
import json
import logging
from oauth2client.service_account import ServiceAccountCredentials
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def get_client_secret(filename):
"""Get the client secret from encrypted file. Returns decrypted json o... | 32.413408 | 181 | 0.777146 | 794 | 5,802 | 5.440806 | 0.255668 | 0.027778 | 0.017361 | 0.027778 | 0.098611 | 0.022685 | 0 | 0 | 0 | 0 | 0 | 0.004353 | 0.128921 | 5,802 | 178 | 182 | 32.595506 | 0.850416 | 0.154947 | 0 | 0.017857 | 0 | 0 | 0.105328 | 0.00576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098214 | false | 0 | 0.0625 | 0 | 0.214286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e0d07e6ae3069591aee66b7e572a4f8ae9db266 | 191 | py | Python | nac/plotter/tests/test_plotter.py | NaleRaphael/nac | 205e81502a6bb963bfca47793e3e2b5bc1d582c8 | [
"MIT"
] | 1 | 2019-10-08T07:50:39.000Z | 2019-10-08T07:50:39.000Z | nac/plotter/tests/test_plotter.py | NaleRaphael/nac | 205e81502a6bb963bfca47793e3e2b5bc1d582c8 | [
"MIT"
] | null | null | null | nac/plotter/tests/test_plotter.py | NaleRaphael/nac | 205e81502a6bb963bfca47793e3e2b5bc1d582c8 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import unittest
import numpy as np
from nac.plotter import LogPlotter
class TestLogPlotter(unittest.TestCase):
def test_plot(self):
pass
| 17.363636 | 40 | 0.780105 | 25 | 191 | 5.72 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17801 | 191 | 10 | 41 | 19.1 | 0.910828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.571429 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
8e0d08f5530176dfcb7574842571feb83189d573 | 1,644 | py | Python | config.py | oogway/pyhystrix | 941de918d0433aaae958cb6de87ec32d6d943bb4 | [
"MIT"
] | 15 | 2017-11-26T16:04:33.000Z | 2020-04-16T02:49:50.000Z | config.py | oogway/pyhystrix | 941de918d0433aaae958cb6de87ec32d6d943bb4 | [
"MIT"
] | 1 | 2021-06-01T21:20:18.000Z | 2021-06-01T21:20:18.000Z | config.py | last9/pyhystrix | 941de918d0433aaae958cb6de87ec32d6d943bb4 | [
"MIT"
] | 1 | 2021-07-29T16:52:26.000Z | 2021-07-29T16:52:26.000Z | """Constants that will be used to define default
behaviour. Can be overridden by setting env vars
"""
import os
import requests
import logging
log_levels = {
logging.getLevelName(logging.CRITICAL): logging.CRITICAL,
logging.getLevelName(logging.ERROR): logging.ERROR,
logging.getLevelName(logging.WARNING)... | 25.292308 | 69 | 0.699513 | 196 | 1,644 | 5.709184 | 0.367347 | 0.134048 | 0.085791 | 0.096515 | 0.173369 | 0.154602 | 0.154602 | 0.071492 | 0 | 0 | 0 | 0.008942 | 0.183698 | 1,644 | 64 | 70 | 25.6875 | 0.824888 | 0.057178 | 0 | 0.222222 | 0 | 0 | 0.103046 | 0.034349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.066667 | 0.222222 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 3 |
8e0d8add1a61f1897a6bf0bdee26d14f7d06d4d5 | 543 | py | Python | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | 1 | 2020-11-18T11:30:42.000Z | 2020-11-18T11:30:42.000Z | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | 7 | 2021-04-30T21:39:14.000Z | 2022-01-13T03:32:59.000Z | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | null | null | null | # Helper Functions
try:
from src.utils import load_json
except ImportError as error:
print(f"Error: {error}; Local modules not found")
except Exception as exception:
print(exception)
def load_params_1():
"""Returns source path of images and number of exposures
"""
PKG_1_PARAMS = load_json("con... | 22.625 | 60 | 0.71639 | 81 | 543 | 4.567901 | 0.432099 | 0.064865 | 0.07027 | 0.102703 | 0.383784 | 0.259459 | 0.259459 | 0.259459 | 0.259459 | 0.259459 | 0 | 0.018349 | 0.197053 | 543 | 23 | 61 | 23.608696 | 0.830275 | 0.248619 | 0 | 0 | 0 | 0 | 0.219144 | 0.120907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e10e72463d04064e483ee31cb51f2fbc3e11508 | 380 | py | Python | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | 2 | 2015-01-26T07:15:19.000Z | 2015-11-09T13:42:11.000Z | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | #!/usr/bin/env python
import os
import sys
modules = ['common',
'agent',
'dbus',
'client',
'shell',
'utils']
for module in modules:
os.system("cd %s && ./setup.py %s" % (module, " ".join(sys.argv[1:])))
for root, dirs, files in os.walk("plugins"):
if "setup.py" in files:
os.system... | 21.111111 | 76 | 0.544737 | 56 | 380 | 3.696429 | 0.553571 | 0.101449 | 0.096618 | 0.10628 | 0.183575 | 0.183575 | 0.183575 | 0 | 0 | 0 | 0 | 0.00678 | 0.223684 | 380 | 17 | 77 | 22.352941 | 0.694915 | 0.052632 | 0 | 0 | 0 | 0 | 0.256267 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e11efc1468ab165d3d0fc871df7995ea5f39913 | 130 | py | Python | kanagata/__init__.py | podhmo/kanagata | 078d4e87ae474b873690b0905ae1557c5e5b4846 | [
"MIT"
] | null | null | null | kanagata/__init__.py | podhmo/kanagata | 078d4e87ae474b873690b0905ae1557c5e5b4846 | [
"MIT"
] | null | null | null | kanagata/__init__.py | podhmo/kanagata | 078d4e87ae474b873690b0905ae1557c5e5b4846 | [
"MIT"
] | null | null | null | from kanagata.builder import RestrictionBuilder # NOQA
from kanagata.builder import Module # NOQA
Builder = RestrictionBuilder
| 26 | 55 | 0.823077 | 14 | 130 | 7.642857 | 0.5 | 0.224299 | 0.35514 | 0.46729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 130 | 4 | 56 | 32.5 | 0.955357 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 6 |
8e129a5dd5ce56a18e4bf1c6c8ee6d799374887d | 318 | py | Python | modules/name.py | onrcayci/python3-notes | 64f6708553a54a2b85641690e5e90444a0a68737 | [
"MIT"
] | null | null | null | modules/name.py | onrcayci/python3-notes | 64f6708553a54a2b85641690e5e90444a0a68737 | [
"MIT"
] | null | null | null | modules/name.py | onrcayci/python3-notes | 64f6708553a54a2b85641690e5e90444a0a68737 | [
"MIT"
] | null | null | null | """
__name__
When run, every Python file has a __name__ variable.
If the file is the main file being run/executed, its value is "__main__".
Otherwise, its value is the file name.
"""
# To ignore executable code on import
if __name__ == "__main__":
# this code will only run if the file is the main file
pass | 24.461538 | 73 | 0.720126 | 53 | 318 | 3.943396 | 0.528302 | 0.100478 | 0.086124 | 0.105263 | 0.210526 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0.210692 | 318 | 13 | 74 | 24.461538 | 0.832669 | 0.833333 | 0 | 0 | 0 | 0 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8e134e72e201eb3b080e13c59ab9963fb4dd6a5d | 44 | py | Python | Common/config.py | lkean9/GrabTaxi | 93d916dff777ac69ad83973fa00704ed2ae110ee | [
"MIT"
] | null | null | null | Common/config.py | lkean9/GrabTaxi | 93d916dff777ac69ad83973fa00704ed2ae110ee | [
"MIT"
] | null | null | null | Common/config.py | lkean9/GrabTaxi | 93d916dff777ac69ad83973fa00704ed2ae110ee | [
"MIT"
] | null | null | null | SECRET_KEY = "TOP_SECRET"
EXPIRATION = 1000
| 14.666667 | 25 | 0.772727 | 6 | 44 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.136364 | 44 | 2 | 26 | 22 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
8e1396c831f746a08108e2cb3118687406bb55ae | 546 | py | Python | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Thomas AMORIM"
__credits__ = ["Thomas Amorim", "Pierre-François Bonnefoi" "Scapy"]
__license__ = "MIT"
__version__ = "1.1"
__status__ = "OK"
from scapy.all import *
import sys
def force_arp(ipslash):
p = Ether(dst="ff:ff:ff:ff:ff:ff", src="00:03:24:45:11:34... | 26 | 123 | 0.663004 | 98 | 546 | 3.367347 | 0.571429 | 0.060606 | 0.072727 | 0.072727 | 0.169697 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0.120833 | 0.120879 | 546 | 21 | 124 | 26 | 0.566667 | 0.076923 | 0 | 0 | 0 | 0 | 0.32008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e13e88951d6d92ee282735ac8cfc21a6802ca4c | 1,877 | py | Python | app/accounts/mutations/admins.py | Alohomora-team/AlohomoraAPI | 8c5aefa37c16a1849e5af72b7d130a132d198eb0 | [
"MIT"
] | 2 | 2019-10-25T02:35:12.000Z | 2019-11-20T21:18:42.000Z | app/accounts/mutations/admins.py | Alohomora-team/AlohomoraAPI | 8c5aefa37c16a1849e5af72b7d130a132d198eb0 | [
"MIT"
] | 65 | 2019-10-23T12:43:39.000Z | 2022-02-10T13:18:08.000Z | app/accounts/mutations/admins.py | Alohomora-team/AlohomoraAPI | 8c5aefa37c16a1849e5af72b7d130a132d198eb0 | [
"MIT"
] | null | null | null | """
Create a CRUD of admin users
"""
import graphene
from django.contrib.auth import get_user_model
from graphql_jwt.decorators import superuser_required, login_required
from accounts.models import Admin
from accounts.types import UserType
class CreateAdmin(graphene.Mutation):
"""Mutation from graphene for creati... | 26.069444 | 69 | 0.614811 | 196 | 1,877 | 5.821429 | 0.331633 | 0.06135 | 0.063103 | 0.084137 | 0.327783 | 0.136722 | 0.068361 | 0 | 0 | 0 | 0 | 0 | 0.295685 | 1,877 | 71 | 70 | 26.43662 | 0.863086 | 0.133191 | 0 | 0.23913 | 0 | 0 | 0.01825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.108696 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e1613b75fb1c4e2a9d36edca9ff6e926c969de5 | 1,887 | py | Python | src/Generate.py | cisprague/Astro.IQ | 4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1 | [
"MIT"
] | 20 | 2017-11-21T18:25:52.000Z | 2022-03-16T18:18:41.000Z | src/Generate.py | siddharthdeore/Astro.IQ | 4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1 | [
"MIT"
] | 2 | 2017-08-16T19:51:03.000Z | 2017-11-14T21:03:18.000Z | src/Generate.py | siddharthdeore/Astro.IQ | 4e2df67ddc0ffc518c4f65d0bf558380e6a7c6d1 | [
"MIT"
] | 5 | 2019-07-08T23:10:11.000Z | 2022-03-15T15:32:53.000Z | # Resources
from Trajectory import Point_Lander_Drag
from Optimisation import HSS
from PyGMO import *
from numpy import *
import multiprocessing
def main(n):
''' -------------------------------------------------
Problem : SpaceX Dragon 2 Martian Soft Landing
Dynamics : 2-Dimensional Variable Ma... | 33.105263 | 78 | 0.591415 | 231 | 1,887 | 4.679654 | 0.528139 | 0.030527 | 0.027752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012169 | 0.259671 | 1,887 | 56 | 79 | 33.696429 | 0.761632 | 0.149444 | 0 | 0 | 0 | 0 | 0.15154 | 0.069692 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8e18b1fe8693079c206be0f80851013efb31a74f | 2,870 | py | Python | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 14 | 2021-01-13T12:15:03.000Z | 2022-03-20T10:02:11.000Z | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 570 | 2020-09-19T13:37:27.000Z | 2022-03-31T09:14:37.000Z | tests/core/test_signup_methods.py | ephios-dev/ephios | c8d30576238a189ccef1929661f547ee3fe6e5d7 | [
"MIT"
] | 5 | 2021-01-08T16:52:31.000Z | 2022-03-20T10:02:25.000Z | import functools
from datetime import datetime, timedelta
import pytest
from django.utils.timezone import make_aware
from ephios.core.models import AbstractParticipation, Shift
from ephios.core.signup import LocalParticipation, SignupStats, get_conflicting_participations
from ephios.plugins.basesignup.signup.instant ... | 35.432099 | 96 | 0.606272 | 369 | 2,870 | 4.579946 | 0.252033 | 0.170414 | 0.184615 | 0.198817 | 0.385799 | 0.322485 | 0.215976 | 0.215976 | 0.215976 | 0.206509 | 0 | 0.103756 | 0.25784 | 2,870 | 80 | 97 | 35.875 | 0.689671 | 0 | 0 | 0.277778 | 0 | 0 | 0.011498 | 0.011498 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.041667 | false | 0 | 0.097222 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
8e19ea2590ae17fc18a92de3663174cfd5b2b77b | 504 | py | Python | synthetic/discrepancy.py | Meng-Lingjun-xjtu/ttt-plus-plus | 0f26c689fcaa666fa3524e7c5b6de0c1cb510e89 | [
"MIT"
] | 23 | 2021-11-21T10:50:49.000Z | 2022-03-14T09:34:10.000Z | synthetic/discrepancy.py | Meng-Lingjun-xjtu/ttt-plus-plus | 0f26c689fcaa666fa3524e7c5b6de0c1cb510e89 | [
"MIT"
] | 2 | 2022-01-06T01:19:24.000Z | 2022-03-03T15:39:23.000Z | synthetic/discrepancy.py | Meng-Lingjun-xjtu/ttt-plus-plus | 0f26c689fcaa666fa3524e7c5b6de0c1cb510e89 | [
"MIT"
] | 2 | 2021-12-14T22:34:55.000Z | 2022-01-23T10:49:14.000Z | import numpy as np
import torch
def covariance(features):
assert len(features.size()) == 2, "TODO: multi-dimensional feature map covariance"
n = features.shape[0]
tmp = torch.ones((1, n), device=features.device) @ features
cov = (features.t() @ features - (tmp.t() @ tmp) / n) / (n - 1)
return cov
... | 22.909091 | 86 | 0.589286 | 77 | 504 | 3.844156 | 0.519481 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023377 | 0.236111 | 504 | 21 | 87 | 24 | 0.745455 | 0 | 0 | 0.133333 | 0 | 0 | 0.091451 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e1afbc263f6d797c000a3851ad609f3c38c6432 | 747 | py | Python | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | # from io_scene_gltf2
# Copyright 2018-2019 The glTF-Blender-IO authors.
# Apache 2.0
#
# Script reloading (if the user calls 'Reload Scripts' from Blender)
#
def reload_package(module_dict_main):
import importlib
from pathlib import Path
def reload_package_recursive(current_dir, module_dict):
for... | 31.125 | 79 | 0.677376 | 100 | 747 | 4.73 | 0.49 | 0.12685 | 0.139535 | 0.07611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019264 | 0.235609 | 747 | 23 | 80 | 32.478261 | 0.809107 | 0.195448 | 0 | 0 | 0 | 0 | 0.01855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e1e0c186a840151723210baf4fa4bdbf7361239 | 7,938 | py | Python | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# DEPRECATED -- model didn't work. Was trying to constrain rewards differently.
# Beware -- lack of documentation. Refer to nnAvicaching_find_rewards.py for
# support
from __future__ import print_function
import torch, torch.nn as nn, torch.nn.functional as torchfun, torch.optim as optim
from to... | 45.102273 | 123 | 0.599899 | 1,077 | 7,938 | 4.267409 | 0.264624 | 0.027415 | 0.051784 | 0.015666 | 0.084856 | 0.049608 | 0.01262 | 0.01262 | 0.01262 | 0 | 0 | 0.020276 | 0.16125 | 7,938 | 176 | 124 | 45.102273 | 0.670021 | 0.240867 | 0 | 0.027523 | 0 | 0.009174 | 0.220845 | 0.038874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.045872 | 0 | 0.137615 | 0.06422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e1eb2172438f2b56adc51f147f65e93bc5948ab | 8,094 | py | Python | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 15 | 2021-02-18T15:30:25.000Z | 2022-02-19T18:57:51.000Z | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 70 | 2021-02-24T17:59:23.000Z | 2022-03-31T08:24:56.000Z | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 6 | 2021-02-23T18:10:15.000Z | 2022-02-15T16:07:38.000Z | # Copyright 2019-2020 SURF.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 33.308642 | 142 | 0.657401 | 1,195 | 8,094 | 4.400837 | 0.307113 | 0.031945 | 0.030424 | 0.03803 | 0.087659 | 0.062559 | 0.047347 | 0.042974 | 0.016733 | 0.016733 | 0 | 0.033851 | 0.244502 | 8,094 | 242 | 143 | 33.446281 | 0.826165 | 0.704102 | 0 | 0.047619 | 0 | 0.02381 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e1efde181bc7ecf4280c02509459ae898ca2dfa | 23 | py | Python | horch/_version.py | sbl1996/pytorch-hrvvi-ext | f19abcbedd844a700b2e2596dd817ea80cbb6287 | [
"MIT"
] | 17 | 2019-05-14T10:47:25.000Z | 2021-06-09T05:39:47.000Z | horch/_version.py | sbl1996/pytorch-hrvvi-ext | f19abcbedd844a700b2e2596dd817ea80cbb6287 | [
"MIT"
] | null | null | null | horch/_version.py | sbl1996/pytorch-hrvvi-ext | f19abcbedd844a700b2e2596dd817ea80cbb6287 | [
"MIT"
] | 5 | 2019-08-08T07:04:38.000Z | 2020-07-04T08:58:32.000Z | __version__ = "1.4.14"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8e2030448752921687eb59abb1913c4abb6e301c | 7,680 | py | Python | sdk/python/pulumi_civo/get_snapshot.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-04T12:27:02.000Z | 2022-03-14T13:16:43.000Z | sdk/python/pulumi_civo/get_snapshot.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 85 | 2020-08-17T19:03:57.000Z | 2022-03-25T19:17:57.000Z | sdk/python/pulumi_civo/get_snapshot.py | dirien/pulumi-civo | f75eb1482bade0d21fb25c9e20e6838791518226 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2020-08-04T12:27:03.000Z | 2022-03-24T00:56:24.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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 ... | 33.103448 | 225 | 0.625 | 933 | 7,680 | 4.894962 | 0.165059 | 0.037005 | 0.045544 | 0.085395 | 0.181082 | 0.120429 | 0.082111 | 0.040508 | 0.015327 | 0 | 0 | 0.000179 | 0.271484 | 7,680 | 231 | 226 | 33.246753 | 0.816086 | 0.147266 | 0 | 0.129252 | 1 | 0 | 0.145924 | 0.009685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108844 | false | 0 | 0.034014 | 0.006803 | 0.258503 | 0 | 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 |
8e20378cb6c72af2f65ef451864ac0fc081b93ee | 9,267 | py | Python | airflow/tests/test_sync_documents_to_kernel.py | cesarbruschetta/opac-airflow | 7deaf1d9ba64bfdb57081698308219f95200fca5 | [
"BSD-2-Clause"
] | null | null | null | airflow/tests/test_sync_documents_to_kernel.py | cesarbruschetta/opac-airflow | 7deaf1d9ba64bfdb57081698308219f95200fca5 | [
"BSD-2-Clause"
] | null | null | null | airflow/tests/test_sync_documents_to_kernel.py | cesarbruschetta/opac-airflow | 7deaf1d9ba64bfdb57081698308219f95200fca5 | [
"BSD-2-Clause"
] | null | null | null | from unittest import TestCase, main
from unittest.mock import patch, MagicMock
from airflow import DAG
from sync_documents_to_kernel import (
list_documents,
delete_documents,
register_update_documents,
)
class TestListDocuments(TestCase):
@patch("sync_documents_to_kernel.sync_documents_to_kernel_op... | 44.128571 | 117 | 0.697097 | 1,242 | 9,267 | 4.733494 | 0.067633 | 0.060214 | 0.055792 | 0.110733 | 0.886715 | 0.886715 | 0.885695 | 0.871067 | 0.865623 | 0.829393 | 0 | 0.041577 | 0.195425 | 9,267 | 209 | 118 | 44.339713 | 0.746915 | 0 | 0 | 0.668449 | 0 | 0 | 0.266861 | 0.233085 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.080214 | false | 0 | 0.02139 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8e218d1e4830fc81eed6cc871e828febdb5d8a5f | 4,884 | py | Python | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | import itertools
import os
import reframe as rfm
import reframe.utility.sanity as sn
class GromacsBaseCheck(rfm.RunOnlyRegressionTest):
def __init__(self, output_file):
super().__init__()
self.valid_prog_environs = ['PrgEnv-gnu']
self.executable = 'gmx_mpi'
# Reset sources dir r... | 31.509677 | 79 | 0.524775 | 550 | 4,884 | 4.410909 | 0.310909 | 0.03751 | 0.054411 | 0.037098 | 0.340066 | 0.314509 | 0.241962 | 0.229596 | 0.229596 | 0.198269 | 0 | 0.035736 | 0.341114 | 4,884 | 154 | 80 | 31.714286 | 0.718148 | 0.022523 | 0 | 0.284553 | 0 | 0.00813 | 0.168309 | 0.025781 | 0 | 0 | 0 | 0.006494 | 0.01626 | 1 | 0.056911 | false | 0 | 0.03252 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e21a21a2e04fd87d50fcbd6fe1e05543f8a0c63 | 3,490 | py | Python | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 2 | 2021-11-11T12:16:43.000Z | 2022-01-13T06:06:20.000Z | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 5 | 2022-01-13T08:01:54.000Z | 2022-02-22T12:28:02.000Z | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 3 | 2022-01-11T18:16:35.000Z | 2022-01-13T13:14:26.000Z | import unittest
import enum
from typing import NamedTuple
import numpy as np
from numpy.testing import assert_equal
from scipy.interpolate import PPoly, CubicSpline, BPoly
from being.serialization import (
ENUM_LOOKUP, EOT, NAMED_TUPLE_LOOKUP, FlyByDecoder, dumps, enum_from_dict,
enum_to_dict, loads, named_tu... | 28.842975 | 83 | 0.601719 | 452 | 3,490 | 4.418142 | 0.25 | 0.090135 | 0.045068 | 0.044066 | 0.27992 | 0.224337 | 0.161242 | 0.064096 | 0.064096 | 0.064096 | 0 | 0.031141 | 0.263897 | 3,490 | 120 | 84 | 29.083333 | 0.746205 | 0 | 0 | 0.113636 | 0 | 0 | 0.049284 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 1 | 0.090909 | false | 0 | 0.079545 | 0 | 0.193182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e21ee7427997f0bb676f02cdf4a2c28027d8026 | 355 | py | Python | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | 6 | 2020-10-28T12:02:10.000Z | 2022-01-25T00:13:00.000Z | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | null | null | null | config/dirs.py | AxelJanRousseau/PostTrainCalibration | adbe0240f5e274713fdb3433084786508eceacd9 | [
"MIT"
] | null | null | null | import os
PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
DATA_PATH = os.path.join(PROJECT_PATH,'Datasets')
MODELS_PATH = os.path.join(PROJECT_PATH,'Models')
RESULT_FILE_PATH = os.path.join(PROJECT_PATH,'Results')
CALIBRATED_MODELS_PATH = os.path.join(PROJECT_PATH,'Models')
SAVED_SEG_MAPS = os.path.join(P... | 32.272727 | 66 | 0.797183 | 55 | 355 | 4.8 | 0.327273 | 0.159091 | 0.189394 | 0.32197 | 0.549242 | 0.469697 | 0.280303 | 0.280303 | 0 | 0 | 0 | 0 | 0.064789 | 355 | 11 | 66 | 32.272727 | 0.795181 | 0 | 0 | 0 | 0 | 0 | 0.132022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
8e22442365d785a783e5e25a9bd0e144d5615dbf | 586 | py | Python | pset_challenging_ext/exercises/p54.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 5 | 2019-04-08T20:05:37.000Z | 2019-12-04T20:48:45.000Z | pset_challenging_ext/exercises/p54.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 8 | 2019-04-15T15:16:05.000Z | 2022-02-12T10:33:32.000Z | pset_challenging_ext/exercises/p54.py | mottaquikarim/pydev-psets | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | [
"MIT"
] | 2 | 2019-04-10T00:14:42.000Z | 2020-02-26T20:35:21.000Z | """
Define a class named Shape and its subclass Square. The Square class has an init function which takes a length as argument. Both classes have a area function which can print the area of the shape where Shape's area is 0 by default.
"""
"""Define a class named Shape and its subclass Square. The Square class has an ... | 65.111111 | 234 | 0.771331 | 109 | 586 | 4.146789 | 0.385321 | 0.115044 | 0.053097 | 0.075221 | 0.818584 | 0.818584 | 0.818584 | 0.818584 | 0.818584 | 0.818584 | 0 | 0.004211 | 0.18942 | 586 | 9 | 235 | 65.111111 | 0.947368 | 0.394198 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
8e26086aba7603148c273d61c7a69ca661694730 | 205 | py | Python | quorachallenge/exemplar.py | TonyFlury/QuoraChallenge | df4146787e871fced196f2e22f31d0ef5b1f1ad9 | [
"MIT"
] | null | null | null | quorachallenge/exemplar.py | TonyFlury/QuoraChallenge | df4146787e871fced196f2e22f31d0ef5b1f1ad9 | [
"MIT"
] | 3 | 2019-10-18T09:07:04.000Z | 2019-10-18T11:00:01.000Z | quorachallenge/exemplar.py | TonyFlury/QuoraChallenge | df4146787e871fced196f2e22f31d0ef5b1f1ad9 | [
"MIT"
] | null | null | null | def func(a,b):
if a < 0 and b < 0:
raise ValueError
if a < 0 or b < 0:
return 0
if a == 0 and b == 0:
return 1
if a == 0 or b == 0:
return 0
return a + b | 20.5 | 25 | 0.42439 | 39 | 205 | 2.230769 | 0.307692 | 0.137931 | 0.183908 | 0.16092 | 0.551724 | 0.551724 | 0.344828 | 0.344828 | 0 | 0 | 0 | 0.101852 | 0.473171 | 205 | 10 | 26 | 20.5 | 0.703704 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
8e2643cf3118e11758efb3f7ee35bad253c1c578 | 580 | py | Python | index.py | incognitofox/uncommon_hacks_2021 | 69ead646426b05f9aded2f8899d271eb9e95ff58 | [
"MIT"
] | null | null | null | index.py | incognitofox/uncommon_hacks_2021 | 69ead646426b05f9aded2f8899d271eb9e95ff58 | [
"MIT"
] | null | null | null | index.py | incognitofox/uncommon_hacks_2021 | 69ead646426b05f9aded2f8899d271eb9e95ff58 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import audd_test
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html', text='')
@app.route('/rr_check', methods=["POST"])
def rr_check():
url = request.form['url']
is_rr = audd_test.url_to_audio(url)
if is_rr:
... | 27.619048 | 125 | 0.674138 | 86 | 580 | 4.267442 | 0.546512 | 0.152589 | 0.163488 | 0.20436 | 0.286104 | 0.286104 | 0.196185 | 0 | 0 | 0 | 0 | 0.008351 | 0.174138 | 580 | 20 | 126 | 29 | 0.757829 | 0 | 0 | 0 | 0 | 0 | 0.217241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e267a431f39688558b66516192bbde659a69318 | 3,056 | py | Python | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | 1 | 2019-07-15T11:42:38.000Z | 2019-07-15T11:42:38.000Z | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
# 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/LI... | 38.683544 | 80 | 0.717932 | 424 | 3,056 | 4.962264 | 0.403302 | 0.03327 | 0.038023 | 0.015209 | 0.026616 | 0.026616 | 0 | 0 | 0 | 0 | 0 | 0.003421 | 0.139071 | 3,056 | 78 | 81 | 39.179487 | 0.796275 | 0.30072 | 0 | 0 | 0 | 0 | 0.141081 | 0.026781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.066667 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e26b7efd0da64ad183019357195a91e0a8d6354 | 858 | py | Python | Shell-Socket-Programming/Shell.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | 2 | 2019-06-09T23:26:44.000Z | 2019-06-27T08:18:05.000Z | Shell-Socket-Programming/Shell.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | null | null | null | Shell-Socket-Programming/Shell.py | bayudwiyansatria/Network-Security-Management | 8021c3a976337282a261f086024f248aa5c9e4ec | [
"MIT"
] | null | null | null | import os;
def createStringCommand(String):
return "echo "+String;
def shellexec(command):
return os.system(command);
def checkFileExist(pathToFile):
exists = os.path.isfile(pathToFile);
if exists:
return True;
else:
return False;
def getCurrentDirectory():
return os.getcwd()... | 22 | 86 | 0.678322 | 93 | 858 | 6.258065 | 0.537634 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004286 | 0.184149 | 858 | 39 | 87 | 22 | 0.827143 | 0 | 0 | 0.068966 | 0 | 0.034483 | 0.203725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.034483 | 0.103448 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8e272497ace8b6a02c22d0afb516f7356ea6be45 | 2,033 | py | Python | 2021/day20.py | JLMadsen/AdventOfCode | 127a78955e48618814ef0e3fbfbe0571c7b3ca1a | [
"MIT"
] | 2 | 2019-12-03T20:23:09.000Z | 2020-08-28T10:46:18.000Z | 2021/day20.py | JLMadsen/AdventOfCode | 127a78955e48618814ef0e3fbfbe0571c7b3ca1a | [
"MIT"
] | null | null | null | 2021/day20.py | JLMadsen/AdventOfCode | 127a78955e48618814ef0e3fbfbe0571c7b3ca1a | [
"MIT"
] | 1 | 2021-10-30T07:27:54.000Z | 2021-10-30T07:27:54.000Z | from collections import defaultdict
def adjacent(y, x):
for dy in [-1, 0, 1]:
for dx in [-1, 0, 1]:
yield y+dy, x+dx
def enhance(image, enhancement):
new_image = defaultdict(lambda: 0)
for cell, value in image.items():
for y1, x1, in adjacent(*cell):
if (y1, x1) i... | 32.269841 | 522 | 0.352681 | 195 | 2,033 | 3.584615 | 0.338462 | 0.04578 | 0.011445 | 0.014306 | 0.074392 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036054 | 0.276931 | 2,033 | 62 | 523 | 32.790323 | 0.438776 | 0.034432 | 0 | 0 | 0 | 0 | 0.298264 | 0.261491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.023256 | 0 | 0.116279 | 0.139535 | 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 |
8e2993e5a56b11ac8836692f147cfd5604388f38 | 18,543 | py | Python | op2orig/translator/c/python/op2_gen_openmp_simple.py | octurion/ecoop-artifact | 4afd9c44bddbd365141b0e3e38b26f971d5dd898 | [
"MIT"
] | null | null | null | op2orig/translator/c/python/op2_gen_openmp_simple.py | octurion/ecoop-artifact | 4afd9c44bddbd365141b0e3e38b26f971d5dd898 | [
"MIT"
] | null | null | null | op2orig/translator/c/python/op2_gen_openmp_simple.py | octurion/ecoop-artifact | 4afd9c44bddbd365141b0e3e38b26f971d5dd898 | [
"MIT"
] | null | null | null | ##########################################################################
#
# OpenMP code generator
#
# This routine is called by op2 which parses the input files
#
# It produces a file xxx_kernel.cpp for each kernel,
# plus a master kernel file
#
#######################################################################... | 30.905 | 143 | 0.512484 | 2,570 | 18,543 | 3.528016 | 0.114008 | 0.019632 | 0.011911 | 0.014117 | 0.504687 | 0.457373 | 0.405647 | 0.36109 | 0.343554 | 0.318407 | 0 | 0.016075 | 0.258588 | 18,543 | 599 | 144 | 30.956594 | 0.643439 | 0.046163 | 0 | 0.558442 | 0 | 0.010823 | 0.281287 | 0.059589 | 0.004329 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002165 | 0.008658 | null | null | 0.006494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8e29d55763438496cb979931a67e9e766a90599d | 1,529 | py | Python | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | null | null | null | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | null | null | null | freeverse/expectations.py | Kazark/pyfreeverse | 07c6a914425da951cda99d976e2e530b9c6144da | [
"MIT"
] | 1 | 2018-03-03T16:06:54.000Z | 2018-03-03T16:06:54.000Z | class ActualValue:
def __init__(self, actual_value):
self.__actual_value = actual_value
def should(self, predicate):
if predicate(self.__actual_value):
return ''
else:
return 'Predicate not true of %s' % self.__actual_value
def should_equal(self, e... | 33.23913 | 87 | 0.606279 | 172 | 1,529 | 4.976744 | 0.215116 | 0.205607 | 0.21028 | 0.107477 | 0.434579 | 0.434579 | 0.434579 | 0.350467 | 0.170561 | 0.170561 | 0 | 0.001878 | 0.303466 | 1,529 | 45 | 88 | 33.977778 | 0.801878 | 0 | 0 | 0.236842 | 0 | 0 | 0.060688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
8e2a7ecb5e30e765a31e831a79df046ffd35183a | 5,255 | py | Python | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 31 | 2015-12-02T15:41:06.000Z | 2022-03-16T22:27:23.000Z | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 1 | 2021-06-24T11:23:00.000Z | 2021-06-24T11:23:00.000Z | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 15 | 2015-12-10T16:48:20.000Z | 2022-02-26T18:12:44.000Z | #!/usr/bin/env python
import imp
import logging
import os
import ply.yacc
LOGDIR = 'logs'
logging.getLogger().setLevel(logging.DEBUG)
class SPLParser(object):
"""Represents a parser object that can parse SPL queries.
You should not need to create one of these. Simply import
parse from the splparser modu... | 38.639706 | 217 | 0.577735 | 582 | 5,255 | 5.113402 | 0.286942 | 0.066532 | 0.033602 | 0.038642 | 0.320228 | 0.276546 | 0.244288 | 0.22379 | 0.171371 | 0.171371 | 0 | 0 | 0.354139 | 5,255 | 135 | 218 | 38.925926 | 0.876841 | 0.294386 | 0 | 0.433735 | 0 | 0 | 0.025985 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 1 | 0.048193 | false | 0.024096 | 0.048193 | 0 | 0.168675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e2ad0c9668e9013681310d26a6aea715a24b95b | 8,884 | py | Python | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | 1 | 2021-02-24T21:50:18.000Z | 2021-02-24T21:50:18.000Z | events/sound_events.py | mtasa-typescript/mtasa-wiki-dump | edea1746850fb6c99d6155d1d7891e2cceb33a5c | [
"MIT"
] | null | null | null | # Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN
from to_python.core.types import FunctionType, \
FunctionArgument, \
FunctionArgumentValues, \
FunctionReturnTypes, \
FunctionSignature, \
FunctionDoc, \
EventData, \
CompoundEventData
DUMP_PARTIAL = [
CompoundEventData(
serv... | 37.327731 | 344 | 0.366276 | 505 | 8,884 | 6.374257 | 0.291089 | 0.055918 | 0.067102 | 0.081081 | 0.576266 | 0.563218 | 0.487418 | 0.448276 | 0.426219 | 0.410376 | 0 | 0.000259 | 0.566074 | 8,884 | 237 | 345 | 37.485232 | 0.83476 | 0.005741 | 0 | 0.672489 | 1 | 0.0131 | 0.195674 | 0.006002 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004367 | 0 | 0.004367 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e2ae803021020350bb09f7d54399a26e4cd9148 | 4,400 | py | Python | irm/cges_utils.py | ashok-arjun/DomainBed | 8c21f36c0b447221c9ad9792d4d867fb5aa26198 | [
"MIT"
] | null | null | null | irm/cges_utils.py | ashok-arjun/DomainBed | 8c21f36c0b447221c9ad9792d4d867fb5aa26198 | [
"MIT"
] | null | null | null | irm/cges_utils.py | ashok-arjun/DomainBed | 8c21f36c0b447221c9ad9792d4d867fb5aa26198 | [
"MIT"
] | null | null | null | import os
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import torch
import random
import numpy as np
import torch
import os
from collections import OrderedDict
... | 66.666667 | 150 | 0.277045 | 296 | 4,400 | 3.959459 | 0.334459 | 0.029863 | 0.020478 | 0.028157 | 0.223549 | 0.076792 | 0.076792 | 0.076792 | 0.042662 | 0 | 0 | 0.041272 | 0.664091 | 4,400 | 66 | 151 | 66.666667 | 0.751691 | 0.152045 | 0 | 0.153846 | 0 | 0.025641 | 0.023125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.25641 | 0 | 0.282051 | 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 |
8e2b126355edbe84a1de3d96f2ced5993bbd3398 | 1,529 | py | Python | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 28,992 | 2017-05-24T12:21:03.000Z | 2022-03-31T09:35:08.000Z | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 274 | 2017-05-24T17:14:48.000Z | 2022-03-31T12:50:14.000Z | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 1,578 | 2017-05-24T20:40:41.000Z | 2022-03-31T15:23:42.000Z | """
Cache implementation.
Currently only two types of cache are allowed:
* "none" cache switched off
* "redis" use redis for cache
Configuration parameters:
cache.type = redis | none
cache.redis.db
cache.redis.host
cache.redis.port
"""
import os
import json
from config import CONFIG
_RE... | 20.662162 | 55 | 0.590582 | 188 | 1,529 | 4.675532 | 0.308511 | 0.125142 | 0.095563 | 0.086462 | 0.21843 | 0.193402 | 0.193402 | 0.159272 | 0.159272 | 0.159272 | 0 | 0 | 0.286462 | 1,529 | 73 | 56 | 20.945205 | 0.805683 | 0.257031 | 0 | 0.27027 | 0 | 0 | 0.11819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.027027 | 0.108108 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2b2151bad3cd55a3b085be74899c264fdd8090 | 4,614 | py | Python | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
from Bio import SeqIO
import argparse
import sys
from argparse import RawTextHelpFormatter
import numpy as np
from collections import namedtuple
MySNP = namedtuple("MySNP", "pos prev new")
snps=[]
def print_vnc(reference, snps, out):
f = open(out+".vcf", "w")
... | 35.221374 | 127 | 0.504551 | 561 | 4,614 | 4.067736 | 0.285205 | 0.042068 | 0.030675 | 0.032866 | 0.218668 | 0.124452 | 0.104294 | 0 | 0 | 0 | 0 | 0.009065 | 0.306675 | 4,614 | 131 | 128 | 35.221374 | 0.704283 | 0.03186 | 0 | 0.077586 | 0 | 0 | 0.241093 | 0.056688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.008621 | 0.051724 | 0 | 0.068966 | 0.060345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e2cb35cee027810b3a9f3b5a2585ec05cb53c10 | 3,287 | py | Python | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 73 | 2021-07-08T23:35:08.000Z | 2022-03-31T15:17:58.000Z | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 5 | 2021-09-27T14:27:32.000Z | 2022-03-21T23:50:02.000Z | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 39 | 2021-07-12T05:42:51.000Z | 2022-03-31T15:15:34.000Z | import requests
import json
import argparse
import xml.etree.ElementTree as ET
#----------------------------------------
# example ---> python cost_metadata.py -s MOBS
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-s',dest='station',default='',help="sta... | 40.580247 | 220 | 0.613325 | 401 | 3,287 | 4.972569 | 0.396509 | 0.040622 | 0.033099 | 0.034102 | 0.294885 | 0.225677 | 0.19659 | 0.19659 | 0.191575 | 0.142427 | 0 | 0.020748 | 0.178887 | 3,287 | 80 | 221 | 41.0875 | 0.718044 | 0.184971 | 0 | 0.085106 | 0 | 0.021277 | 0.383092 | 0.109673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.148936 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e2d474ceec169ad641399b6fbca19e9290b3d72 | 332 | py | Python | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 19 | 2016-01-29T14:37:52.000Z | 2022-03-30T18:08:01.000Z | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 223 | 2016-03-02T16:39:41.000Z | 2022-03-03T12:26:35.000Z | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 64 | 2016-02-04T19:45:26.000Z | 2021-12-15T02:02:31.000Z | """
Utilies for beacons
"""
import copy
def remove_hidden_options(config, whitelist):
"""
Remove any hidden options not whitelisted
"""
for entry in copy.copy(config):
for func in entry:
if func.startswith("_") and func not in whitelist:
config.remove(entry)
re... | 19.529412 | 62 | 0.623494 | 40 | 332 | 5.1 | 0.525 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286145 | 332 | 16 | 63 | 20.75 | 0.860759 | 0.183735 | 0 | 0 | 0 | 0 | 0.004032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2fa21023b492b98716387cb3f3d9474c117974 | 806 | py | Python | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | import random
import math
from Crypto.Util.number import *
def isPrime(p):
for i in range(2, math.isqrt(p) + 1):
if p % i == 0:
return False
return True
flag = bytes_to_long(open('flag.txt','rb').read())
p = int(input('Enter a prime: '))
assert 10 < p, 'Prime too small'
asse... | 25.1875 | 67 | 0.586849 | 142 | 806 | 3.309859 | 0.43662 | 0.034043 | 0.038298 | 0.070213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036545 | 0.253102 | 806 | 32 | 68 | 25.1875 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.150773 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.125 | 0.041667 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e30ac0c1a2d30dc96d7adaed4df1ae64f1e8c10 | 4,170 | py | Python | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 15 | 2020-07-01T16:16:09.000Z | 2021-12-20T21:56:33.000Z | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 14 | 2020-09-25T22:41:20.000Z | 2022-03-12T00:38:44.000Z | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 2 | 2020-07-01T16:19:08.000Z | 2020-11-28T10:45:59.000Z | from gym import utils
from wtm_envs.mujoco import ant_env
from wtm_envs.mujoco.hook_env_pddl import PDDLHookEnv
import numpy as np
class AntFourRoomsEnv(ant_env.AntEnv, utils.EzPickle):
def __init__(self, reward_type='sparse'):
name = "ant_four_rooms.xml"
# Provide initial state space consisting... | 58.732394 | 201 | 0.68777 | 640 | 4,170 | 4.248438 | 0.23125 | 0.011769 | 0.012137 | 0.008827 | 0.329165 | 0.269952 | 0.252666 | 0.208533 | 0.135712 | 0.080544 | 0 | 0.026058 | 0.217746 | 4,170 | 70 | 202 | 59.571429 | 0.80748 | 0.359233 | 0 | 0 | 0 | 0 | 0.020354 | 0.011308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e311c72a870044e223da7fcbd021949601c16fc | 5,546 | py | Python | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from OTLMOW.OTLModel.BaseClasses.AttributeInfo import AttributeInfo
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Datatypes.ComplexField import ComplexField
from OTLMOW.OTLModel.Datatypes.KlAanplantingswijzeSierbeplanting import KlAanplantingswijzeSierbeplanting
f... | 50.880734 | 212 | 0.622611 | 476 | 5,546 | 7.157563 | 0.222689 | 0.026416 | 0.042266 | 0.047549 | 0.399472 | 0.381861 | 0.373349 | 0.35339 | 0.306428 | 0.14617 | 0 | 0.000259 | 0.304724 | 5,546 | 108 | 213 | 51.351852 | 0.883299 | 0.100613 | 0 | 0.126582 | 0 | 0.012658 | 0.214574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151899 | false | 0 | 0.101266 | 0.012658 | 0.417722 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e31a8f06c8e8b07d56c47355fdc08ec8b4d9a6d | 1,033 | py | Python | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
ROOM_COLLECTION = "rooms"
cred = credentials.Certificate("../onlinetown-401f0-firebase-adminsdk-gab3z-1a7a54c2da.json");
firebase_admin.initialize_app(cred)
db = firestore.client()
SERVER_MAP = {
"BLANK": "BLANK",
}... | 28.694444 | 94 | 0.643756 | 117 | 1,033 | 5.504274 | 0.418803 | 0.080745 | 0.074534 | 0.121118 | 0.139752 | 0.139752 | 0.139752 | 0.139752 | 0 | 0 | 0 | 0.023313 | 0.211036 | 1,033 | 35 | 95 | 29.514286 | 0.766871 | 0.199419 | 0 | 0.24 | 0 | 0 | 0.131547 | 0.071864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e31dbd191b4113bed77fb5423e06dc9fe9281eb | 8,542 | py | Python | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ar... | 46.172973 | 150 | 0.637321 | 1,078 | 8,542 | 4.874768 | 0.325603 | 0.026641 | 0.027402 | 0.03197 | 0.278021 | 0.21313 | 0.200951 | 0.200951 | 0.200951 | 0.183825 | 0 | 0.062833 | 0.252868 | 8,542 | 184 | 151 | 46.423913 | 0.760577 | 0.73402 | 0 | 0 | 0 | 0 | 0.108041 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.054054 | false | 0 | 0.162162 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e32e2f7e162c653864236624b206fa5e65569ed | 2,645 | py | Python | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | """/**
* @author [Jai Miles]
* @email [jaimiles23@gmail.com]
* @create date 2020-05-21 11:55:58
* @modify date 2020-06-16 23:33:58
* @desc [
SC_Difficulty class with methods to set speed challenge difficulty:
- Ask for difficulties
- Acknowledge difficulty message.
]
*/
"""
##########
# Imports
####... | 25.679612 | 76 | 0.653308 | 335 | 2,645 | 4.820896 | 0.325373 | 0.06935 | 0.047678 | 0.085449 | 0.256347 | 0.220433 | 0.204334 | 0.1387 | 0 | 0 | 0 | 0.017839 | 0.237051 | 2,645 | 102 | 77 | 25.931373 | 0.782458 | 0.245747 | 0 | 0.319149 | 0 | 0 | 0.001073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.12766 | 0 | 0.404255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e3356c7912fd0f7b6244841488af8abd65adea1 | 1,600 | py | Python | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 9 | 2020-09-20T07:26:19.000Z | 2022-02-28T09:12:30.000Z | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 2 | 2020-10-03T07:53:23.000Z | 2020-10-12T11:40:24.000Z | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | null | null | null | """
pyTailor Example 7
This example introduces the following NEW concepts:
- Use BranchTask to "branch out" a DAG
- For BranchTask definitions:
- Use *branch_files* to specify which files to use for branching
*branch_files* is given as one or more file tags.
"""
from pytailor import (
PythonTask,... | 23.529412 | 84 | 0.595625 | 185 | 1,600 | 5.091892 | 0.410811 | 0.059448 | 0.023355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008787 | 0.28875 | 1,600 | 67 | 85 | 23.880597 | 0.818981 | 0.26625 | 0 | 0 | 0 | 0 | 0.149565 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e33bc00683d4cf4a9536ce4e2daa6b3723bb494 | 716 | py | Python | app/tests/api_tests/test_schema.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 101 | 2018-04-11T14:48:04.000Z | 2022-03-28T00:29:48.000Z | app/tests/api_tests/test_schema.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 1,733 | 2018-03-21T11:56:16.000Z | 2022-03-31T14:58:30.000Z | app/tests/api_tests/test_schema.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 42 | 2018-06-08T05:49:07.000Z | 2022-03-29T08:43:01.000Z | from drf_spectacular.validation import validate_schema
from rest_framework.test import APIRequestFactory
from grandchallenge.api.urls import SchemaView
def test_schema_is_valid():
schema_view = SchemaView()
# Initialize the url conf
rf = APIRequestFactory()
schema_view.get(rf.get("/"))
generato... | 27.538462 | 72 | 0.751397 | 89 | 716 | 5.808989 | 0.505618 | 0.116054 | 0.069633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182961 | 716 | 25 | 73 | 28.64 | 0.883761 | 0.22905 | 0 | 0 | 0 | 0 | 0.001828 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e360aca7a0096d2ef70db4b3365b99c68c728bf | 141 | py | Python | client0.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | client0.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | client0.py | pabitra0177/ITR-internship | 3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75 | [
"MIT"
] | null | null | null | import socket
s=socket.socket()
#host=socket.gethostname()
#print(host)
host=''
port=112
s.connect((host,port))
print(s.recv())
s.close()
| 10.846154 | 26 | 0.695035 | 22 | 141 | 4.454545 | 0.5 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.092199 | 141 | 12 | 27 | 11.75 | 0.742188 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e3614f97a735aef0ef5def156ca789d1a024710 | 1,122 | py | Python | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | 1 | 2021-12-28T22:26:47.000Z | 2021-12-28T22:26:47.000Z | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | null | null | null | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | null | null | null | from SimConnect import AircraftRequests, SimConnect
import csv
import os
import time
class Telemetry():
def __init__(self, keys):
self.requests = self._make_connection()
self.keys = keys
def _make_connection(self):
sm = SimConnect()
return AircraftRequests(sm, _time=0)
def... | 26.093023 | 70 | 0.567736 | 134 | 1,122 | 4.656716 | 0.432836 | 0.038462 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.326203 | 1,122 | 43 | 71 | 26.093023 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.077471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.125 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e368ecaa3618ea3350cdc9b894198340ff6d925 | 346 | py | Python | python/udacity_programming_foundations/translate.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | python/udacity_programming_foundations/translate.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | python/udacity_programming_foundations/translate.py | juancarlosqr/datascience | 2e4d78365b059a3e501e988bee53970ac0d718fc | [
"MIT"
] | null | null | null | #!/usr/bin/python
def run_test():
intab = 'aeiou'
outtab = '54321'
trantab = str.maketrans(intab, outtab)
result = 'this is string example....wow!!!'
print(result)
print(result.translate(trantab))
trantab = str.maketrans(outtab, intab)
print(result.translate(trantab))
if __name__ == ... | 21.625 | 47 | 0.644509 | 41 | 346 | 5.195122 | 0.585366 | 0.15493 | 0.178404 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018116 | 0.202312 | 346 | 16 | 48 | 21.625 | 0.753623 | 0.046243 | 0 | 0.181818 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.272727 | 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 |
8e3731f718e57164a53fc2dd11f980d626c81555 | 276 | py | Python | autoselenium/__init__.py | saizk/auto-selenium | 02c5ec3e02e4b36309002d8418be0d6a4ee56ebd | [
"MIT"
] | 2 | 2021-11-26T08:41:45.000Z | 2022-01-31T10:30:53.000Z | autoselenium/__init__.py | saizk/auto-selenium | 02c5ec3e02e4b36309002d8418be0d6a4ee56ebd | [
"MIT"
] | null | null | null | autoselenium/__init__.py | saizk/auto-selenium | 02c5ec3e02e4b36309002d8418be0d6a4ee56ebd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from autoselenium.driver import Driver
from autoselenium.download import download_driver, download_default_driver, get_version
__author__ = 'saizk'
__all__ = [
'Driver',
'download_driver',
'download_default_driver',
'get_version'
]
| 18.4 | 87 | 0.724638 | 30 | 276 | 6.133333 | 0.466667 | 0.228261 | 0.23913 | 0.315217 | 0.48913 | 0.48913 | 0.48913 | 0 | 0 | 0 | 0 | 0.004348 | 0.166667 | 276 | 14 | 88 | 19.714286 | 0.795652 | 0.076087 | 0 | 0 | 0 | 0 | 0.238095 | 0.09127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
8e38670c4af3cddf39a7934e3dd858bcc1966769 | 1,840 | py | Python | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | import pandas as pd
import requests
class hhs_extract:
# initialize with api_key
def __init__(self, bearer_token):
self.api_key = bearer_token
# extract HHS data
def extract_data(self) -> pd.DataFrame:
# read data from Socrata HHS API for county level hospitalizations at CMS regis... | 40 | 102 | 0.658152 | 254 | 1,840 | 4.413386 | 0.26378 | 0.080285 | 0.069581 | 0.053524 | 0.50669 | 0.50669 | 0.4157 | 0.4157 | 0.4157 | 0.4157 | 0 | 0.01312 | 0.254348 | 1,840 | 46 | 103 | 40 | 0.803936 | 0.136957 | 0 | 0.176471 | 0 | 0 | 0.087231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e395970b87c621a1fcc58e8559a6aaf781e24f8 | 263 | py | Python | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | 1 | 2021-02-10T12:53:37.000Z | 2021-02-10T12:53:37.000Z | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | import socket
import sys
for i in range(1, 65535):
skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
if skt.connect((sys.argv[1], i)) == 0:
print("Port: {0} OPEN".format(i))
skt.close()
except:
continue
| 21.916667 | 59 | 0.574144 | 38 | 263 | 3.921053 | 0.684211 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.281369 | 263 | 11 | 60 | 23.909091 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e3a44cfa7146ec2b5aaef9188e372242a439598 | 1,933 | py | Python | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
def pyunit_unique():
iris = h2o.import_file(pyunit_utils.locate("smalldata/iris/iris.csv"))
uniques = iris[4].unique()
rows, cols = uniques.dim
assert rows == 3 and cols == 1, "Expected 3 rows and 1 column, but got {0}... | 39.44898 | 120 | 0.669943 | 284 | 1,933 | 4.419014 | 0.320423 | 0.035857 | 0.023904 | 0.043028 | 0.246215 | 0.166534 | 0.166534 | 0.104382 | 0.104382 | 0.104382 | 0 | 0.023285 | 0.177962 | 1,933 | 48 | 121 | 40.270833 | 0.76652 | 0.028971 | 0 | 0.054054 | 0 | 0 | 0.2608 | 0.0336 | 0 | 0 | 0 | 0 | 0.297297 | 1 | 0.027027 | false | 0 | 0.135135 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e3d4fcee238ceff7811d96519efed30ed465e26 | 261 | py | Python | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | 1 | 2020-03-09T13:38:55.000Z | 2020-03-09T13:38:55.000Z | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | Aula 17/ex2.py | ohanamirella/TrabalhosPython | 453a97848654b0391d0d717bf102f6c466f79b3d | [
"MIT"
] | null | null | null | # Faça um prgrama que leia um numero inteiro de 1 a 10 no teclado e mostre se você acertou
# ou o número digitado é maior ou meor.
# Quando você acertar o programa deve ser finalizado
from randon import randint
aleatorio = randint(1,10)
print(aleatorio)
if | 29 | 91 | 0.766284 | 46 | 261 | 4.347826 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.195402 | 261 | 9 | 92 | 29 | 0.92381 | 0.681992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e3dc13790b6ecb78f8cb8ae5b5dab37555d4c18 | 52 | py | Python | nipy/externals/__init__.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | 1 | 2015-08-22T16:14:45.000Z | 2015-08-22T16:14:45.000Z | nipy/externals/__init__.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | null | null | null | nipy/externals/__init__.py | yarikoptic/NiPy-OLD | 8759b598ac72d3b9df7414642c7a662ad9c55ece | [
"BSD-3-Clause"
] | null | null | null | # init for externals package
from . import argparse
| 17.333333 | 28 | 0.788462 | 7 | 52 | 5.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 52 | 2 | 29 | 26 | 0.953488 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
8e40586624bfd81a0d9a6a3e8dac58538818efa1 | 310 | py | Python | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | import socket
s = socket.socket()
host = socket.gethostname()
port = 12346
s.bind((host, port))
s.listen(5)
while True:
c, addr = s.accept()
print("connection from", addr)
rec = c.recv(1024).decode("utf-8")
print(rec)
if rec == 'ping':
c.sendto('pong'.encode(), addr)
c.close() | 20.666667 | 39 | 0.6 | 46 | 310 | 4.043478 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045082 | 0.212903 | 310 | 15 | 40 | 20.666667 | 0.717213 | 0 | 0 | 0 | 0 | 0 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e41732c0c1c201ebe223546073ee99f68d2d8f4 | 1,085 | py | Python | spider/luogu.py | MeiK2333/recent_contests | d3c7d2bfb83651b556b501f6000117493503dc7c | [
"MIT"
] | 3 | 2019-08-01T13:18:12.000Z | 2021-04-21T09:10:55.000Z | spider/luogu.py | MeiK-h/recent_contests | 5d4890b3fb9bf65bb31854a8be0e6049ebbf0a06 | [
"MIT"
] | 2 | 2021-06-04T04:53:04.000Z | 2021-06-15T06:40:09.000Z | spider/luogu.py | MeiK-h/recent_contests | 5d4890b3fb9bf65bb31854a8be0e6049ebbf0a06 | [
"MIT"
] | 1 | 2021-06-10T13:33:36.000Z | 2021-06-10T13:33:36.000Z | from datetime import datetime, timezone
import requests
from schemas import Contest
from spider.utils import update_platform
def main():
headers = {
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 "
"Safari/537.36 "
}
resp = requ... | 25.232558 | 116 | 0.587097 | 126 | 1,085 | 4.904762 | 0.531746 | 0.043689 | 0.042071 | 0.05178 | 0.074434 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03944 | 0.275576 | 1,085 | 42 | 117 | 25.833333 | 0.746819 | 0 | 0 | 0 | 0 | 0.032258 | 0.251613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e4174c582d0f7afb25fdca0511c1255d5ea364c | 1,054 | py | Python | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | 2 | 2021-01-21T22:23:40.000Z | 2021-01-29T23:19:14.000Z | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | null | null | null | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | null | null | null | from processing import *
from decodingModel import *
# Using Transfer learning
feature_extract_model = VggModel()
#Decoding model
colorize = model()
#prepare data in hard disk
PrepareData(datapath = "/content/data" , save_file = "/content/processed/" ,
target_size = (224 , 224) , batch_size = 32 , fea... | 34 | 104 | 0.701139 | 140 | 1,054 | 5 | 0.5 | 0.1 | 0.135714 | 0.042857 | 0.177143 | 0.108571 | 0 | 0 | 0 | 0 | 0 | 0.042403 | 0.194497 | 1,054 | 30 | 105 | 35.133333 | 0.782097 | 0.058824 | 0 | 0 | 0 | 0 | 0.082636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e42b718ee16f23a8ba27a4d6ff7efea8f8ce315 | 23,434 | py | Python | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | null | null | null | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | 10 | 2020-08-02T07:45:42.000Z | 2021-06-11T01:03:45.000Z | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | null | null | null | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. 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... | 35.886677 | 79 | 0.646454 | 2,923 | 23,434 | 4.967841 | 0.13753 | 0.030301 | 0.008264 | 0.005165 | 0.249776 | 0.166104 | 0.113629 | 0.088286 | 0.072791 | 0.066593 | 0 | 0.002068 | 0.27793 | 23,434 | 652 | 80 | 35.941718 | 0.856096 | 0.14415 | 0 | 0.198257 | 0 | 0 | 0.110501 | 0.003932 | 0 | 0 | 0 | 0.001534 | 0.008715 | 1 | 0.108932 | false | 0.043573 | 0.039216 | 0.010893 | 0.265795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e44044cdc3759630dbb0df881a857baa4e03f7d | 972 | py | Python | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
# output block for alcastream HCAL Isotrk
# output module
# module alcastreamHcalIsotrkOutput = PoolOutputModule
alcastreamHcalIsotrkOutput = cms.PSet(
outputCommands = cms.untracked.vstring('drop *',
'keep *_offlineBeamSpot_*_*... | 48.6 | 84 | 0.429012 | 46 | 972 | 8.478261 | 0.695652 | 0.087179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.498971 | 972 | 19 | 85 | 51.157895 | 0.798768 | 0.111111 | 0 | 0 | 0 | 0 | 0.299185 | 0.186263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e44300df9e4409d4508d36cc2011c526c3cb3f9 | 3,256 | py | Python | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | 1 | 2021-04-23T10:01:38.000Z | 2021-04-23T10:01:38.000Z | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | null | null | null | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | null | null | null | #Python: String Representations of Objects
#Implement two vehicle classes:
#Car:
#The constructor for Car must take two arguments. The first of them is its maximum speed, and the second one is a string that denotes the units in which the speed is given: either "km/h" or "mph".
#The class must be implemented to return... | 38.761905 | 433 | 0.697174 | 520 | 3,256 | 4.298077 | 0.288462 | 0.075168 | 0.068904 | 0.07651 | 0.279642 | 0.22774 | 0.176286 | 0.127069 | 0.127069 | 0.089485 | 0 | 0.021446 | 0.226658 | 3,256 | 83 | 434 | 39.228916 | 0.864575 | 0.637592 | 0 | 0.171429 | 0 | 0 | 0.108319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e455903aafe2cb46d5096d1e57569e66b92de48 | 42,807 | py | Python | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 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 or agreed to in writ... | 47.93617 | 117 | 0.636134 | 5,115 | 42,807 | 5.136461 | 0.113001 | 0.019716 | 0.019259 | 0.021695 | 0.586343 | 0.523313 | 0.459103 | 0.411944 | 0.34347 | 0.318616 | 0 | 0.065667 | 0.25365 | 42,807 | 892 | 118 | 47.98991 | 0.756675 | 0.090125 | 0 | 0.389928 | 0 | 0 | 0.086796 | 0.007184 | 0 | 0 | 0 | 0.001121 | 0.169784 | 1 | 0.05036 | false | 0 | 0.004317 | 0 | 0.086331 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e458ec666fb6bb429d2b86775e948ed0999ac48 | 2,668 | py | Python | speaking_portfolio/models.py | jacobian/jacobian.org | cacff78aa68cb1585a63c04ff5bd7fc484066730 | [
"Apache-2.0"
] | 8 | 2018-11-12T21:11:18.000Z | 2020-10-20T09:03:54.000Z | speaking_portfolio/models.py | jacobian/jacobian.org | cacff78aa68cb1585a63c04ff5bd7fc484066730 | [
"Apache-2.0"
] | 5 | 2018-11-28T12:56:57.000Z | 2020-02-05T21:56:48.000Z | speaking_portfolio/models.py | jacobian/jacobian.org | cacff78aa68cb1585a63c04ff5bd7fc484066730 | [
"Apache-2.0"
] | 5 | 2018-11-19T16:47:15.000Z | 2020-02-14T22:34:26.000Z | import micawber
import logging
from django.db import models
from django_postgres_unlimited_varchar import UnlimitedCharField
from django.urls import reverse
from django.utils import timezone
from django.contrib.postgres.fields import JSONField
log = logging.getLogger(__name__)
class Conference(models.Model):
tit... | 27.22449 | 80 | 0.668666 | 322 | 2,668 | 5.39441 | 0.400621 | 0.040299 | 0.032239 | 0.029361 | 0.157168 | 0.157168 | 0.157168 | 0.06563 | 0 | 0 | 0 | 0 | 0.211019 | 2,668 | 97 | 81 | 27.505155 | 0.825178 | 0.065592 | 0 | 0.144928 | 0 | 0 | 0.112138 | 0.010048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0 | 0.101449 | 0.101449 | 0.57971 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8e46875c490fe502ca1757b91de8b131eca3be26 | 1,365 | py | Python | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 3 | 2021-04-28T07:19:39.000Z | 2022-03-07T09:34:19.000Z | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 18 | 2020-08-24T12:40:38.000Z | 2022-03-12T00:47:14.000Z | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 1 | 2020-10-15T10:09:20.000Z | 2020-10-15T10:09:20.000Z | from preprocessing.sentence_processor import *
from preprocessing.coreference import *
from preprocessing.to_statement import *
from utils.macro import *
class preprocessor:
def __init__(self, config, demo_json):
self.input = []
self.config = config
if config['preprocessing']['load']:
... | 33.292683 | 79 | 0.649084 | 151 | 1,365 | 5.688742 | 0.258278 | 0.069849 | 0.107101 | 0.039581 | 0.153667 | 0.090803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1,365 | 40 | 80 | 34.125 | 0.825962 | 0.05348 | 0 | 0.16129 | 0 | 0 | 0.100155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e47cd17e77fb3b0811f86a62f39cd51c5713162 | 5,400 | py | Python | spardaqus/core/types.py | bretlowery/Spardaqus | 675aac35823541d08f99af70b5d2a50264e561f9 | [
"MIT"
] | null | null | null | spardaqus/core/types.py | bretlowery/Spardaqus | 675aac35823541d08f99af70b5d2a50264e561f9 | [
"MIT"
] | null | null | null | spardaqus/core/types.py | bretlowery/Spardaqus | 675aac35823541d08f99af70b5d2a50264e561f9 | [
"MIT"
] | null | null | null | from enum import Enum, unique
import socket
from pyspark.sql.types import StringType, StructType, ArrayType
from spardaqus import globals
from spardaqus.core.utils import mergedicts
from spardaqus.core.exceptions import \
SpardaqusMissingSparkSQLStructMetadata, \
SpardaqusSparkSQLStructParseError, \
Spard... | 46.153846 | 147 | 0.537593 | 511 | 5,400 | 5.604697 | 0.236791 | 0.094274 | 0.120461 | 0.16236 | 0.315642 | 0.119763 | 0.032821 | 0 | 0 | 0 | 0 | 0.00375 | 0.308704 | 5,400 | 116 | 148 | 46.551724 | 0.763461 | 0.027222 | 0 | 0.157895 | 0 | 0 | 0.100019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0 | 0.063158 | 0.021053 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8e48b9d3b7904192c28927ccbc6170940d53e5e0 | 245 | py | Python | udpoptions/listener.py | adventureloop/network-tests | 2a65c0d10d36842ef63ee33691a911dcec00c6e3 | [
"0BSD"
] | null | null | null | udpoptions/listener.py | adventureloop/network-tests | 2a65c0d10d36842ef63ee33691a911dcec00c6e3 | [
"0BSD"
] | null | null | null | udpoptions/listener.py | adventureloop/network-tests | 2a65c0d10d36842ef63ee33691a911dcec00c6e3 | [
"0BSD"
] | null | null | null | import udp_options
import udp_usrreq
def callback(pcb, data=None, options=None, error=None):
print(pcb)
if __name__ == "__main__":
print("startings")
udp_usrreq.bindaddr('0.0.0.0', 5005, callback)
udp_usrreq.run_loop()
| 22.272727 | 58 | 0.681633 | 35 | 245 | 4.4 | 0.571429 | 0.175325 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.183673 | 245 | 10 | 59 | 24.5 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e493c2e212c9c101abf9e6677ffaff7e95ab64e | 4,095 | py | Python | tests/test_events.py | mucker-capital/django-slack-utils | b3ad098f90123ac6bc0b26f1f9f674a4e1e71630 | [
"BSD-3-Clause"
] | 20 | 2018-12-18T20:51:28.000Z | 2019-08-29T19:34:24.000Z | tests/test_events.py | startmatter/django-slack-utils | 7ef321edf8ac91d94262845785d9e505dd84dbfb | [
"BSD-3-Clause"
] | 5 | 2020-05-31T16:16:25.000Z | 2021-06-15T02:01:44.000Z | tests/test_events.py | startmatter/django-slack-utils | 7ef321edf8ac91d94262845785d9e505dd84dbfb | [
"BSD-3-Clause"
] | 5 | 2020-03-25T12:55:48.000Z | 2021-06-14T20:21:26.000Z | import json
from unittest import mock
from django.http import JsonResponse
from django.test import TestCase
from django.urls import reverse
from slack_utils import signals
class EventsViewTestCase(TestCase):
def test_verification(self):
with mock.patch('slack_utils.decorators.verify_request') as verify_... | 39.375 | 117 | 0.542369 | 348 | 4,095 | 6.16954 | 0.284483 | 0.023288 | 0.02422 | 0.033535 | 0.540289 | 0.526316 | 0.526316 | 0.507685 | 0.48952 | 0.359572 | 0 | 0.075803 | 0.346032 | 4,095 | 104 | 118 | 39.375 | 0.725915 | 0 | 0 | 0.539326 | 0 | 0 | 0.268311 | 0.095215 | 0 | 0 | 0 | 0 | 0.101124 | 1 | 0.05618 | false | 0 | 0.067416 | 0 | 0.134831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e4a79c3b1a36fed4482fd94b962204fce143c66 | 46,378 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_autorp_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_autorp_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_autorp_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_ipv4_autorp_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR ipv4\-autorp package operational data.
This module contains definitions
for the following management objects\:
auto\-rp\: AutoRP operational data
Copyright (c) 2013\-2016 by Cisco Systems, Inc.
All rights res... | 36.691456 | 310 | 0.449351 | 4,488 | 46,378 | 4.444742 | 0.040998 | 0.054943 | 0.068679 | 0.068077 | 0.956036 | 0.953429 | 0.951073 | 0.951073 | 0.951073 | 0.951073 | 0 | 0.035263 | 0.455798 | 46,378 | 1,263 | 311 | 36.720507 | 0.755101 | 0.262538 | 0 | 0.891182 | 0 | 0.026266 | 0.130958 | 0.100596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161351 | false | 0 | 0.043152 | 0.02439 | 0.515947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
8e4bf28a810774213c7d1cbf7b0fb39fe9162916 | 4,922 | py | Python | goes17.py | MarcoCiaramella/goes17-to-geotiff | f51cdff60a22eefb3234486eb204bd2069b44410 | [
"MIT"
] | 1 | 2020-06-02T12:32:58.000Z | 2020-06-02T12:32:58.000Z | goes17.py | MarcoCiaramella/goes17-to-geotiff | f51cdff60a22eefb3234486eb204bd2069b44410 | [
"MIT"
] | null | null | null | goes17.py | MarcoCiaramella/goes17-to-geotiff | f51cdff60a22eefb3234486eb204bd2069b44410 | [
"MIT"
] | null | null | null | import sys
from osgeo import gdal
from osgeo.gdalconst import *
from osgeo import osr
import netCDFreader as ncr
import datetime
import numpy as np
class Goes17Reader:
def __init__(self, nc):
self.dataset = ncr.open(nc,'NETCDF4')
self._read_rad()
self._read_projection()
self... | 36.731343 | 133 | 0.58269 | 593 | 4,922 | 4.637437 | 0.359191 | 0.025455 | 0.025455 | 0.038182 | 0.133818 | 0.061091 | 0.042182 | 0.042182 | 0.042182 | 0 | 0 | 0.069967 | 0.314709 | 4,922 | 133 | 134 | 37.007519 | 0.745331 | 0.303941 | 0 | 0.029851 | 0 | 0.014925 | 0.061071 | 0.007185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0 | 0.119403 | 0 | 0.238806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |