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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e98217b4114545c0d568a0c9fd53d5359b6b52dd | 2,337 | py | Python | zmon_worker_extras/check_plugins/jobs.py | heroldus/zmon-worker | 458f8bacb5a00f7fd93d59db406a2c80870519d1 | [
"Apache-2.0"
] | 17 | 2016-06-03T14:59:21.000Z | 2020-11-06T13:12:18.000Z | zmon_worker_extras/check_plugins/jobs.py | heroldus/zmon-worker | 458f8bacb5a00f7fd93d59db406a2c80870519d1 | [
"Apache-2.0"
] | 394 | 2016-06-03T14:47:37.000Z | 2020-04-21T09:31:23.000Z | zmon_worker_extras/check_plugins/jobs.py | heroldus/zmon-worker | 458f8bacb5a00f7fd93d59db406a2c80870519d1 | [
"Apache-2.0"
] | 55 | 2016-08-15T12:42:28.000Z | 2021-04-06T10:49:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Zalando-specific function to query DeployCtl job information
"""
from itertools import groupby
from operator import itemgetter
from zmon_worker_monitor.adapters.ifunctionfactory_plugin import IFunctionFactoryPlugin, propartial
from zmon_worker_monitor import plugin_ma... | 37.693548 | 118 | 0.636286 | 262 | 2,337 | 5.477099 | 0.438931 | 0.050174 | 0.041812 | 0.029268 | 0.080836 | 0.080836 | 0.080836 | 0.080836 | 0.080836 | 0.080836 | 0 | 0.001172 | 0.269576 | 2,337 | 61 | 119 | 38.311475 | 0.839484 | 0.228498 | 0 | 0 | 0 | 0 | 0.055749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.129032 | 0.064516 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e988e3920f6252882b34dbb5b6ff2ee9cc30b665 | 440 | py | Python | Python/6 - kyu/6 kyu - Format a string of names like 'Bart, Lista e Maggie'.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | Python/6 - kyu/6 kyu - Format a string of names like 'Bart, Lista e Maggie'.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | Python/6 - kyu/6 kyu - Format a string of names like 'Bart, Lista e Maggie'.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/53368a47e38700bd8300030d/train/python
# My solution
def namelist(names):
return ' & '.join(', '.join(i['name'] for i in names).rsplit(', ', 1))
# Other
def namelist(names):
if not names: return ''
if len(names) == 1:
return names[0]['name']
if len(names... | 33.846154 | 75 | 0.572727 | 59 | 440 | 4.271186 | 0.457627 | 0.154762 | 0.126984 | 0.095238 | 0.15873 | 0.15873 | 0.15873 | 0 | 0 | 0 | 0 | 0.073529 | 0.227273 | 440 | 13 | 76 | 33.846154 | 0.667647 | 0.193182 | 0 | 0.222222 | 0 | 0 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e9d1ca333c8d936b41a486fc212db176d78a13d5 | 485 | py | Python | tests/test_nompi4py.py | rgreen1995/PTMCMCSampler | 3260a48bf34f78511381cf0c8aeaa8ec2ce81f10 | [
"MIT"
] | 1 | 2019-07-22T09:19:03.000Z | 2019-07-22T09:19:03.000Z | tests/test_nompi4py.py | rgreen1995/PTMCMCSampler | 3260a48bf34f78511381cf0c8aeaa8ec2ce81f10 | [
"MIT"
] | 36 | 2019-07-04T14:31:37.000Z | 2019-07-30T09:29:32.000Z | tests/test_nompi4py.py | rgreen1995/PTMCMCSampler | 3260a48bf34f78511381cf0c8aeaa8ec2ce81f10 | [
"MIT"
] | 2 | 2019-07-04T12:43:12.000Z | 2019-07-23T08:48:35.000Z | import pytest
from PTMCMCSampler.nompi4py import MPIDummy
class TestMPIDummp(object):
"""Test the MPIDummpy class
"""
def setup(self):
"""Setup the MPIDummy object
"""
self.mpidummy = MPIDummy()
def test_Get_rank(self):
"""Test the `Get_rank` method
"""
... | 22.045455 | 44 | 0.591753 | 56 | 485 | 4.982143 | 0.410714 | 0.075269 | 0.071685 | 0.100358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.290722 | 485 | 21 | 45 | 23.095238 | 0.802326 | 0.265979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.333333 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e9d8fd4094485909b7d59d68cc73d229082d4a7e | 1,244 | py | Python | src/sst/selftests/alerts.py | DramaFever/sst | 63d41a102c9d3bdb54019f28a93cff0314a0214f | [
"Apache-2.0"
] | 4 | 2015-01-21T22:20:50.000Z | 2017-12-18T11:38:16.000Z | src/sst/selftests/alerts.py | DramaFever/sst | 63d41a102c9d3bdb54019f28a93cff0314a0214f | [
"Apache-2.0"
] | 63 | 2015-01-13T19:32:06.000Z | 2020-04-22T17:01:03.000Z | src/sst/selftests/alerts.py | wbdl/sst | 7a2805391fdd390ecb0f488f8377f58381358c89 | [
"Apache-2.0"
] | null | null | null | import sst
import sst.actions
from sst import config
# PhantomJS can not do alerts by design
if config.browser_type == 'phantomjs':
sst.actions.skip()
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/alerts')
# Accept an alert box and assert its text.
sst.actions.click_... | 32.736842 | 69 | 0.780547 | 196 | 1,244 | 4.841837 | 0.27551 | 0.200211 | 0.103267 | 0.132771 | 0.638567 | 0.608008 | 0.465753 | 0.465753 | 0.399368 | 0.279241 | 0 | 0 | 0.098071 | 1,244 | 37 | 70 | 33.621622 | 0.845811 | 0.196945 | 0 | 0.272727 | 0 | 0 | 0.283266 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | true | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e9dcde39609c617467f4bf237c16f1dc66a2259d | 420 | py | Python | adDistro/api/serializers.py | forgeno/ad-distribution | c88fc6007bd84edd1364f4960d9dd923844bad7e | [
"MIT"
] | 2 | 2019-08-05T09:52:56.000Z | 2021-02-11T16:15:58.000Z | adDistro/api/serializers.py | forgeno/ad-distribution | c88fc6007bd84edd1364f4960d9dd923844bad7e | [
"MIT"
] | 15 | 2019-01-18T21:30:29.000Z | 2019-01-19T20:59:56.000Z | adDistro/api/serializers.py | forgeno/ad-distribution | c88fc6007bd84edd1364f4960d9dd923844bad7e | [
"MIT"
] | 1 | 2019-08-05T09:53:00.000Z | 2019-08-05T09:53:00.000Z | from rest_framework import serializers
from . import models
from django.contrib.auth.models import User
class CurrentUserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username', 'email', 'password', 'id')
class EbayUserSerializer(serializers.Serializer):
class M... | 30 | 63 | 0.711905 | 41 | 420 | 7.268293 | 0.634146 | 0.060403 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188095 | 420 | 14 | 63 | 30 | 0.8739 | 0 | 0 | 0.181818 | 0 | 0 | 0.135392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.272727 | 0 | 0.636364 | 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 | 1 | 0 | 0 | 2 |
756a37062b41e95d54376fd128b94d756cc8a5c9 | 248 | py | Python | koapy/koapy/examples/01_roll_your_own_koapy.py | miniyus/AutomaticPosting-koapy | 205eaeaf846f89264c95f38a3aa4ca4b2981f3d4 | [
"MIT"
] | null | null | null | koapy/koapy/examples/01_roll_your_own_koapy.py | miniyus/AutomaticPosting-koapy | 205eaeaf846f89264c95f38a3aa4ca4b2981f3d4 | [
"MIT"
] | null | null | null | koapy/koapy/examples/01_roll_your_own_koapy.py | miniyus/AutomaticPosting-koapy | 205eaeaf846f89264c95f38a3aa4ca4b2981f3d4 | [
"MIT"
] | null | null | null | import sys
from koapy.compat.pyside2.QtWidgets import QApplication
from koapy import KiwoomOpenApiPlusQAxWidget
app = QApplication(sys.argv)
control = KiwoomOpenApiPlusQAxWidget()
APIModulePath = control.GetAPIModulePath()
print(APIModulePath)
| 20.666667 | 55 | 0.83871 | 24 | 248 | 8.666667 | 0.625 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.096774 | 248 | 11 | 56 | 22.545455 | 0.924107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
75803b2ad3a84a9cf18c55a82c669387d7f54f4d | 253 | py | Python | worker.py | mdylan2/propertyfinderscraper | b4acb6858a88429ed26f188babb7a9d53701cc47 | [
"MIT"
] | null | null | null | worker.py | mdylan2/propertyfinderscraper | b4acb6858a88429ed26f188babb7a9d53701cc47 | [
"MIT"
] | null | null | null | worker.py | mdylan2/propertyfinderscraper | b4acb6858a88429ed26f188babb7a9d53701cc47 | [
"MIT"
] | null | null | null | from rq import Connection, Worker
from dash_rq_demo import app, queue
from dash_rq_demo.core import conn
if __name__ == "__main__":
with app.server.app_context():
with Connection(conn):
w = Worker([queue])
w.work()
| 23 | 35 | 0.652174 | 35 | 253 | 4.342857 | 0.542857 | 0.105263 | 0.131579 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252964 | 253 | 10 | 36 | 25.3 | 0.804233 | 0 | 0 | 0 | 0 | 0 | 0.031621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
758a8e3d12b2d5c731a5e2e7c421732860664e41 | 718 | py | Python | Adapter/python/AdapterPattern.py | hanmomhanda/DesignPatternStudy | 2a74eb8fcb75a8bb357a3b5a65b349f03c3a808a | [
"BSD-3-Clause"
] | 4 | 2015-12-08T13:27:58.000Z | 2017-11-14T10:25:15.000Z | Adapter/python/AdapterPattern.py | hanmomhanda/DesignPatternStudy | 2a74eb8fcb75a8bb357a3b5a65b349f03c3a808a | [
"BSD-3-Clause"
] | null | null | null | Adapter/python/AdapterPattern.py | hanmomhanda/DesignPatternStudy | 2a74eb8fcb75a8bb357a3b5a65b349f03c3a808a | [
"BSD-3-Clause"
] | 4 | 2015-12-01T13:29:12.000Z | 2020-01-17T06:40:56.000Z | class Target:
def print_weak(self):
raise NotImplementedError
def print_strong(self):
raise NotImplementedError
class Adaptee:
def __init__(self, message):
self.message = message
def print_paren(self):
print("(" + self.message + ")")
def print_asterisk(self):
... | 19.405405 | 72 | 0.633705 | 82 | 718 | 5.329268 | 0.243902 | 0.10984 | 0.05492 | 0.073227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250696 | 718 | 36 | 73 | 19.944444 | 0.812268 | 0 | 0 | 0.25 | 0 | 0 | 0.059889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
759093319f20427606e71e3e1216a7a233278f71 | 407 | py | Python | app/controllers/main_routes.py | HungUnicorn/mssql-prom-exporter | a6e7f78377f7b0e2592bf8ccdd0a4684502fdd9b | [
"MIT"
] | 1 | 2021-03-15T06:47:03.000Z | 2021-03-15T06:47:03.000Z | app/controllers/main_routes.py | HungUnicorn/mssql-prom-exporter | a6e7f78377f7b0e2592bf8ccdd0a4684502fdd9b | [
"MIT"
] | null | null | null | app/controllers/main_routes.py | HungUnicorn/mssql-prom-exporter | a6e7f78377f7b0e2592bf8ccdd0a4684502fdd9b | [
"MIT"
] | 1 | 2021-01-09T13:52:38.000Z | 2021-01-09T13:52:38.000Z | """
This is where all the general routes and controllers are defined.
"""
from flask import Blueprint
from flask import current_app as app
from flask import make_response
main_blueprint = Blueprint('main_blueprint', __name__)
@main_blueprint.route('/')
def index():
return make_response()
@main_blueprint.route... | 19.380952 | 65 | 0.749386 | 57 | 407 | 5.105263 | 0.578947 | 0.178694 | 0.154639 | 0.171821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002882 | 0.14742 | 407 | 20 | 66 | 20.35 | 0.835735 | 0.159705 | 0 | 0.181818 | 0 | 0 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0.363636 | 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 | 1 | 0 | 0 | 2 |
759608eba7eda325e05e7bf15e70e00c2a0edd62 | 299 | py | Python | doc/workflow/examples/example_driver1.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 24 | 2016-04-02T10:00:02.000Z | 2021-03-02T16:40:18.000Z | doc/workflow/examples/example_driver1.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 105 | 2015-10-29T03:29:58.000Z | 2021-12-30T22:00:45.000Z | doc/workflow/examples/example_driver1.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 22 | 2016-01-21T15:35:25.000Z | 2021-05-15T20:17:44.000Z | import pyutilib.workflow
import pyutilib.component.core
# @usage:
import tasks_yz
driver = pyutilib.workflow.TaskDriver()
driver.register_task('TaskZ')
driver.register_task('TaskY')
print(driver.parse_args(['TaskZ','--x=3','--y=4']))
print(driver.parse_args(['TaskY','--X=3','--Y=4']))
# @:usage
| 21.357143 | 51 | 0.712375 | 42 | 299 | 4.952381 | 0.5 | 0.134615 | 0.173077 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.06689 | 299 | 13 | 52 | 23 | 0.731183 | 0.050167 | 0 | 0 | 0 | 0 | 0.142349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
759b6cd249b9c89a138471a6d400ae05eb3d88ab | 274 | py | Python | dev/source/RequestClass.py | Gerard-007/deenux | 2ddbe3e842e87cdf37fedb0d558554784d391bb5 | [
"MIT"
] | null | null | null | dev/source/RequestClass.py | Gerard-007/deenux | 2ddbe3e842e87cdf37fedb0d558554784d391bb5 | [
"MIT"
] | 1 | 2021-06-01T23:55:30.000Z | 2021-06-01T23:55:30.000Z | dev/source/RequestClass.py | Gerard-007/denux | 2ddbe3e842e87cdf37fedb0d558554784d391bb5 | [
"MIT"
] | null | null | null | from CustomerClass import Customer
import random
class Order:
num_of_orders = 0
def __init__(self):
self.order_ID = random.randint(00000000, 999999999)
self.customer_ID =Customer.business_ID
self.ship_to_party_ID = Customer.business_address | 27.4 | 59 | 0.737226 | 36 | 274 | 5.25 | 0.638889 | 0.10582 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0.20073 | 274 | 10 | 60 | 27.4 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
75b77a3b77cb3dc789b03091db9257cd193046a9 | 450 | py | Python | topo_processor/file_system/get_fs.py | linz/topo-processor | c592e99a4992a87e38ef896aa1786cedf3497dae | [
"MIT"
] | 11 | 2021-04-07T02:33:20.000Z | 2022-03-22T08:33:44.000Z | topo_processor/file_system/get_fs.py | linz/topo-processor | c592e99a4992a87e38ef896aa1786cedf3497dae | [
"MIT"
] | 438 | 2020-09-22T22:33:47.000Z | 2022-03-31T02:30:32.000Z | topo_processor/file_system/get_fs.py | linz/topo-processor | c592e99a4992a87e38ef896aa1786cedf3497dae | [
"MIT"
] | 2 | 2021-11-04T11:37:28.000Z | 2022-01-04T15:08:05.000Z | from fsspec.implementations.local import LocalFileSystem
from s3fs import S3FileSystem
def is_s3_path(path: str) -> bool:
if path.startswith("s3://"):
return True
return False
def bucket_name_from_path(path: str) -> str:
path_parts = path.replace("s3://", "").split("/")
return path_parts.pop... | 22.5 | 56 | 0.682222 | 61 | 450 | 4.852459 | 0.491803 | 0.081081 | 0.054054 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021918 | 0.188889 | 450 | 19 | 57 | 23.684211 | 0.789041 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
75cc1d9f4abb8150812ba48828693736a97fd379 | 1,584 | py | Python | resources/lib/api/models/playback.py | MatiasStorm/plugin.video.tv2play | 2c89e8135399cf26bb3917aecc5876bf1499da96 | [
"MIT"
] | null | null | null | resources/lib/api/models/playback.py | MatiasStorm/plugin.video.tv2play | 2c89e8135399cf26bb3917aecc5876bf1499da96 | [
"MIT"
] | 2 | 2021-03-11T16:55:04.000Z | 2021-03-11T16:55:33.000Z | resources/lib/api/models/playback.py | MatiasStorm/plugin.video.tv2play | 2c89e8135399cf26bb3917aecc5876bf1499da96 | [
"MIT"
] | 1 | 2022-02-19T15:54:29.000Z | 2022-02-19T15:54:29.000Z | class PlayBack:
def __init__(self, playback):
self.playback = playback
self.src = playback["smil"]["video"]["src"]
self.mime_type = playback["smil"]["video"]["type"]
self.license_token = playback["smil"]["securityLicense"]["token"]
url = self.playback["smil"]["securityLicens... | 54.62069 | 250 | 0.625631 | 226 | 1,584 | 4.243363 | 0.376106 | 0.206465 | 0.218978 | 0.106361 | 0.334724 | 0.228363 | 0.162669 | 0.087591 | 0.087591 | 0.087591 | 0 | 0.048536 | 0.180556 | 1,584 | 28 | 251 | 56.571429 | 0.690293 | 0.151515 | 0 | 0 | 0 | 0.086957 | 0.359433 | 0.157345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0.043478 | 0.173913 | 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 |
75ed621b7e378e550b50e4ce8b08dd1c7d4546a6 | 41,740 | py | Python | pysnmp-with-texts/CISCO-CSG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-CSG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-CSG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-CSG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-CSG-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:54:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 151.781818 | 3,425 | 0.776402 | 5,173 | 41,740 | 6.264257 | 0.112121 | 0.051103 | 0.089431 | 0.010122 | 0.521494 | 0.412868 | 0.370992 | 0.344391 | 0.324857 | 0.29119 | 0 | 0.041273 | 0.104336 | 41,740 | 274 | 3,426 | 152.335766 | 0.825518 | 0.007667 | 0 | 0.045977 | 0 | 0.137931 | 0.420323 | 0.020405 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030651 | 0 | 0.091954 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
75f65c8e45adebbc6c709670e97f5a8439003af4 | 215 | py | Python | main/validating-credit-card-number/validating-credit-card-number.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/validating-credit-card-number/validating-credit-card-number.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/validating-credit-card-number/validating-credit-card-number.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import re
CCNUM = re.compile(r'(?!.*(\d)(?:\D?\1){3})[456]\d{3}(-?)(?:\d{4}\2){2}\d{4}')
for _ in range(int(input())):
print('Valid' if CCNUM.fullmatch(input().strip()) else 'Invalid')
| 23.888889 | 78 | 0.55814 | 37 | 215 | 3.216216 | 0.72973 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057292 | 0.106977 | 215 | 8 | 79 | 26.875 | 0.5625 | 0.097674 | 0 | 0 | 0 | 0.25 | 0.34715 | 0.284974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
75f9675912b828d2a1824555ac541a50168e4523 | 1,856 | py | Python | m5-joyc-mp/main.py | jessevl/m5-roverc-joyc-mp | 7f973c9cacb2c9c484926da5f4e1b2e9e2285686 | [
"MIT"
] | null | null | null | m5-joyc-mp/main.py | jessevl/m5-roverc-joyc-mp | 7f973c9cacb2c9c484926da5f4e1b2e9e2285686 | [
"MIT"
] | null | null | null | m5-joyc-mp/main.py | jessevl/m5-roverc-joyc-mp | 7f973c9cacb2c9c484926da5f4e1b2e9e2285686 | [
"MIT"
] | null | null | null | from m5stack import *
from m5ui import *
import espnow
import wifiCfg
import hat
joy_pos = None
paired = False
addr = None
data = None
setScreenColor(0x000000)
axp.setLDO2Volt(2.8)
hat_joyc0 = hat.get(hat.JOYC)
label0 = M5TextBox(22, 48, "Text", lcd.FONT_Default, 0xFFFFFF, rotate=0)
label1 = M5TextBox(22, 62, "Text"... | 25.777778 | 97 | 0.707974 | 272 | 1,856 | 4.727941 | 0.400735 | 0.037325 | 0.054432 | 0.085537 | 0.151633 | 0.125194 | 0.102644 | 0 | 0 | 0 | 0 | 0.06399 | 0.141164 | 1,856 | 72 | 98 | 25.777778 | 0.742785 | 0.045259 | 0 | 0.074074 | 0 | 0 | 0.063241 | 0 | 0 | 0 | 0.045172 | 0.013889 | 0 | 1 | 0.074074 | false | 0.074074 | 0.092593 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2f0386869eba4644d91996e3195bfb09f1886bbf | 7,847 | py | Python | api_tests/auth/test_cases.py | NHSDigital/mock-nhsid-jwks | e349e2e0fb68c87d2687315604cabb69c35ef42d | [
"MIT"
] | null | null | null | api_tests/auth/test_cases.py | NHSDigital/mock-nhsid-jwks | e349e2e0fb68c87d2687315604cabb69c35ef42d | [
"MIT"
] | 42 | 2021-03-05T11:19:27.000Z | 2021-12-21T16:23:38.000Z | api_tests/auth/test_cases.py | NHSDigital/mock-nhsid-jwks | e349e2e0fb68c87d2687315604cabb69c35ef42d | [
"MIT"
] | 1 | 2021-04-11T07:32:51.000Z | 2021-04-11T07:32:51.000Z | from os import EX_TEMPFAIL
import pytest
import requests
from assertpy import assert_that
from api_tests.config_files import config
@pytest.mark.asyncio
class TestCasesSuite:
""" A test suite for the mock oidc responses """
@pytest.mark.asyncio
async def test_cis2_simulated_token_response(self):
... | 48.141104 | 1,675 | 0.773162 | 628 | 7,847 | 9.251592 | 0.219745 | 0.025818 | 0.018589 | 0.030293 | 0.437005 | 0.424096 | 0.396041 | 0.388985 | 0.387608 | 0.387608 | 0 | 0.062567 | 0.168982 | 7,847 | 162 | 1,676 | 48.438272 | 0.828401 | 0.049701 | 0 | 0.57732 | 0 | 0.020619 | 0.460574 | 0.413668 | 0 | 0 | 0 | 0 | 0.154639 | 1 | 0 | false | 0 | 0.051546 | 0 | 0.061856 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f9385ff46d3d45c02f1853f3d43f40b432af413a | 145 | py | Python | misc.py | Friendly0Fire/manim-utils | 8f14ec0c3c7e9e8832bc8d24f64077250779e683 | [
"MIT"
] | null | null | null | misc.py | Friendly0Fire/manim-utils | 8f14ec0c3c7e9e8832bc8d24f64077250779e683 | [
"MIT"
] | null | null | null | misc.py | Friendly0Fire/manim-utils | 8f14ec0c3c7e9e8832bc8d24f64077250779e683 | [
"MIT"
] | null | null | null | def split_on_condition(seq, condition):
a, b = [], []
for item in seq:
(a if condition(item) else b).append(item)
return a, b | 29 | 50 | 0.593103 | 23 | 145 | 3.652174 | 0.608696 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268966 | 145 | 5 | 51 | 29 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 |
f9536233dbccdd441a1a4ba6ed5a894dbe6c0a2a | 979 | py | Python | src/setup.py | GML22/GeocoderPL | b9dbb5e42695272c2b2cdfa9bf3ea540ab559207 | [
"MIT"
] | null | null | null | src/setup.py | GML22/GeocoderPL | b9dbb5e42695272c2b2cdfa9bf3ea540ab559207 | [
"MIT"
] | null | null | null | src/setup.py | GML22/GeocoderPL | b9dbb5e42695272c2b2cdfa9bf3ea540ab559207 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='geocoderpl',
version='1.1',
description='GeocoderPL is an application written in Python, which can be used for geocoding address points in ' +
'Poland along with the possibility to display basic information about a given address point and the ' +
... | 51.526316 | 119 | 0.679265 | 113 | 979 | 5.867257 | 0.734513 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009067 | 0.21144 | 979 | 18 | 120 | 54.388889 | 0.849741 | 0 | 0 | 0 | 0 | 0 | 0.648621 | 0.026558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f98ffaafa8b06bc6723c3e743911ff17d4378fba | 779 | py | Python | diccionario/diccionario/dictionary/models.py | ssvargass/en-senas | a08fcb454e5b1ab9ceeda9e69227eb6bfbb3b085 | [
"Unlicense",
"MIT"
] | 1 | 2016-10-04T17:43:43.000Z | 2016-10-04T17:43:43.000Z | diccionario/diccionario/dictionary/models.py | ssvargass/en-senas | a08fcb454e5b1ab9ceeda9e69227eb6bfbb3b085 | [
"Unlicense",
"MIT"
] | null | null | null | diccionario/diccionario/dictionary/models.py | ssvargass/en-senas | a08fcb454e5b1ab9ceeda9e69227eb6bfbb3b085 | [
"Unlicense",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
from pyuploadcare.dj.models import ImageField
from taggit_autosuggest.managers import Tagga... | 29.961538 | 64 | 0.762516 | 97 | 779 | 5.85567 | 0.536082 | 0.052817 | 0.056338 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009105 | 0.154044 | 779 | 25 | 65 | 31.16 | 0.852807 | 0.026958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.368421 | 0.052632 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f9930c93c8cad2673dfdbaa1b3a91a95ddd03d63 | 563 | py | Python | textattack/models/summarization/t5_summarization.py | yuchenlin/TextAttack | 69c64016546effa1b3b197dfbdb92477614c36ca | [
"MIT"
] | 1 | 2020-06-03T16:08:00.000Z | 2020-06-03T16:08:00.000Z | textattack/models/summarization/t5_summarization.py | SatoshiRobatoFujimoto/TextAttack | a809a9bddddff9f41750949e26edde26c8af6cfa | [
"MIT"
] | null | null | null | textattack/models/summarization/t5_summarization.py | SatoshiRobatoFujimoto/TextAttack | a809a9bddddff9f41750949e26edde26c8af6cfa | [
"MIT"
] | null | null | null | from textattack.models.helpers import T5ForTextToText
class T5Summarization(T5ForTextToText):
""" A T5 model trained to summarize English text. Trained on the CNN/Daily
Mail summarization dataset.
For more information, please see the T5 paper, "Exploring the Limits of
Transfe... | 43.307692 | 80 | 0.68206 | 65 | 563 | 5.784615 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.250444 | 563 | 13 | 81 | 43.307692 | 0.876777 | 0.571936 | 0 | 0 | 0 | 0 | 0.069892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f9a8854a1ff819414f8bcd63f3cd6c122b648af1 | 464 | py | Python | notebooks/snippets/nbody/create_n.py | IsabelAverill/Scipy-2017---Numba | 4d74aba75ca8072c616c46fdc27ce78777f35f84 | [
"CC-BY-4.0"
] | 149 | 2016-06-28T21:57:25.000Z | 2022-01-09T00:03:09.000Z | notebooks/snippets/nbody/create_n.py | IsabelAverill/Scipy-2017---Numba | 4d74aba75ca8072c616c46fdc27ce78777f35f84 | [
"CC-BY-4.0"
] | 9 | 2017-06-11T21:20:59.000Z | 2018-10-18T13:57:30.000Z | notebooks/snippets/nbody/create_n.py | IsabelAverill/Scipy-2017---Numba | 4d74aba75ca8072c616c46fdc27ce78777f35f84 | [
"CC-BY-4.0"
] | 68 | 2016-06-30T00:26:57.000Z | 2021-12-28T18:50:38.000Z | @njit
def create_n_random_particles(n, m, domain=1):
'''
Creates `n` particles with mass `m` with random coordinates
between 0 and `domain`
'''
parts = numpy.zeros((n), dtype=particle_dtype)
#attribute access only in @jitted function
for p in parts:
p.x = numpy.random.random() * doma... | 29 | 63 | 0.603448 | 66 | 464 | 4.181818 | 0.515152 | 0.119565 | 0.184783 | 0.25 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008955 | 0.278017 | 464 | 15 | 64 | 30.933333 | 0.814925 | 0.267241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
f9b865f2e7205dcd5642b7a00a5eb9de164ad548 | 180 | py | Python | generators/app/templates/__main__.py | sbanwart/generator-morepath | 62ca979e155eae200efb7c1c1a62bd407ad9ece0 | [
"MIT"
] | 2 | 2017-04-04T12:14:49.000Z | 2019-06-23T09:45:32.000Z | generators/app/templates/__main__.py | sbanwart/generator-morepath | 62ca979e155eae200efb7c1c1a62bd407ad9ece0 | [
"MIT"
] | null | null | null | generators/app/templates/__main__.py | sbanwart/generator-morepath | 62ca979e155eae200efb7c1c1a62bd407ad9ece0 | [
"MIT"
] | null | null | null | import morepath
from .app import App
def run():
print('Running app...')
morepath.autoscan()
App.commit()
morepath.run(App())
if __name__ == '__main__':
run()
| 15 | 27 | 0.616667 | 22 | 180 | 4.681818 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 180 | 11 | 28 | 16.363636 | 0.735714 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 0 | 0.333333 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f9ccdd23a8c157ce2897e7fdd40f8299181bab6b | 764 | py | Python | amcp_pylib/core/client.py | dolejska-daniel/amcp-pylib | 3cccfcf263fce938de942a80e07375b17c5f82f9 | [
"MIT"
] | 5 | 2020-05-14T18:35:35.000Z | 2021-08-10T12:29:36.000Z | amcp_pylib/core/client.py | dolejska-daniel/amcp-pylib | 3cccfcf263fce938de942a80e07375b17c5f82f9 | [
"MIT"
] | 3 | 2020-10-14T16:59:38.000Z | 2021-04-30T15:33:24.000Z | amcp_pylib/core/client.py | dolejska-daniel/amcp-pylib | 3cccfcf263fce938de942a80e07375b17c5f82f9 | [
"MIT"
] | null | null | null | from .command import Command
from .connection import Connection
from .client_base import ClientBase
from amcp_pylib.response import ResponseBase, ResponseFactory
class Client(ClientBase):
""" Simple connection client class. """
def connect(self, host: str = "127.0.0.1", port: int = 5250):
if not... | 30.56 | 65 | 0.693717 | 90 | 764 | 5.8 | 0.388889 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.208115 | 764 | 24 | 66 | 31.833333 | 0.846281 | 0.040576 | 0 | 0 | 0 | 0 | 0.012414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f9e5e07964b6527192addf014cb90e44c08382b1 | 1,077 | py | Python | server/moback.py | dhilipsiva/moback | 1bb57307e8290d16087a4f6a2cd93c80d6d9dfd3 | [
"MIT"
] | 2 | 2020-05-14T06:14:12.000Z | 2021-05-13T06:58:10.000Z | server/moback.py | dhilipsiva/moback | 1bb57307e8290d16087a4f6a2cd93c80d6d9dfd3 | [
"MIT"
] | null | null | null | server/moback.py | dhilipsiva/moback | 1bb57307e8290d16087a4f6a2cd93c80d6d9dfd3 | [
"MIT"
] | null | null | null | import api
app = api.app
# URLs
## API URLs
app.add_url_rule('/', view_func=api.index)
app.add_url_rule(
'/login',
view_func=api.login, methods=['POST', ])
app.add_url_rule(
'/register',
view_func=api.register, methods=['POST', ])
app.add_url_rule(
'/forgot_password',
view_func=api.forgot_pa... | 23.933333 | 61 | 0.64624 | 164 | 1,077 | 3.871951 | 0.25 | 0.094488 | 0.141732 | 0.204724 | 0.346457 | 0.346457 | 0.259843 | 0.170079 | 0.094488 | 0 | 0 | 0.016854 | 0.17363 | 1,077 | 44 | 62 | 24.477273 | 0.696629 | 0.012071 | 0 | 0.25 | 0 | 0 | 0.157547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.027778 | 0 | 0.027778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ddac523dabf146c2b47e4398915aec6365cbecc6 | 262 | py | Python | vininfo/brands.py | ghilesmeddour/vininfo | 63cbf7dcdd9d106fb9c9a56d5c4f11c3dd794b1d | [
"BSD-3-Clause"
] | 60 | 2018-07-28T14:53:57.000Z | 2022-02-22T12:11:24.000Z | vininfo/brands.py | ghilesmeddour/vininfo | 63cbf7dcdd9d106fb9c9a56d5c4f11c3dd794b1d | [
"BSD-3-Clause"
] | 16 | 2018-07-30T08:57:08.000Z | 2021-12-25T09:20:03.000Z | vininfo/brands.py | ghilesmeddour/vininfo | 63cbf7dcdd9d106fb9c9a56d5c4f11c3dd794b1d | [
"BSD-3-Clause"
] | 29 | 2018-07-30T08:36:07.000Z | 2022-03-09T12:02:06.000Z | from .common import Brand
from .details import *
class Lada(Brand):
extractor = AvtoVazDetails
class Nissan(Brand):
extractor = NissanDetails
class Opel(Brand):
extractor = OpelDetails
class Renault(Brand):
extractor = RenaultDetails
| 11.391304 | 30 | 0.71374 | 27 | 262 | 6.925926 | 0.555556 | 0.299465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21374 | 262 | 22 | 31 | 11.909091 | 0.907767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddb7825b8cc8c4f1849fe6c2625cf31d5ca97063 | 429 | py | Python | ippon/cup_fight/views.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | null | null | null | ippon/cup_fight/views.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 13 | 2018-12-22T15:30:56.000Z | 2022-03-12T00:22:31.000Z | ippon/cup_fight/views.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 2 | 2019-06-01T11:28:23.000Z | 2020-03-27T15:19:11.000Z | from rest_framework import viewsets, permissions
import ippon.cup_fight.permissions as cfp
import ippon.cup_fight.serializers as cfs
import ippon.models.cup_fight as cfm
class CupFightViewSet(viewsets.ModelViewSet):
queryset = cfm.CupFight.objects.all()
serializer_class = cfs.CupFightSerializer
permissio... | 33 | 64 | 0.778555 | 46 | 429 | 7.130435 | 0.608696 | 0.10061 | 0.085366 | 0.115854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16317 | 429 | 12 | 65 | 35.75 | 0.913649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ddbe4424caf69f3eccc4ed93eb30ce287dff8da6 | 768 | py | Python | src/semsel/exceptions.py | modist-io/semsel | 583767bcdb2d8850419bb6579cbf4f5732423001 | [
"0BSD"
] | null | null | null | src/semsel/exceptions.py | modist-io/semsel | 583767bcdb2d8850419bb6579cbf4f5732423001 | [
"0BSD"
] | null | null | null | src/semsel/exceptions.py | modist-io/semsel | 583767bcdb2d8850419bb6579cbf4f5732423001 | [
"0BSD"
] | null | null | null | # -*- encoding: utf-8 -*-
# Copyright (c) 2019 Stephen Bunn <stephen@bunn.io>
# ISC License <https://choosealicense.com/licenses/isc>
"""Contains custom exceptions and errors."""
from typing import Optional
class SemselException(Exception):
"""Module-wide exception namespace."""
def __init__(self, message:... | 23.272727 | 77 | 0.690104 | 83 | 768 | 6.289157 | 0.746988 | 0.042146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008104 | 0.196615 | 768 | 32 | 78 | 24 | 0.837925 | 0.548177 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0.111111 | 0 | 0.555556 | 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 | 1 | 0 | 0 | 2 |
ddd09abf455e9ffb2ab514ccf4bc2ab73efd8d66 | 225 | py | Python | aoc2021/test_day2.py | jonsth131/aoc | f5d82bdcdeb2eea13dec3135dd0590b4a3bf1ebd | [
"MIT"
] | null | null | null | aoc2021/test_day2.py | jonsth131/aoc | f5d82bdcdeb2eea13dec3135dd0590b4a3bf1ebd | [
"MIT"
] | null | null | null | aoc2021/test_day2.py | jonsth131/aoc | f5d82bdcdeb2eea13dec3135dd0590b4a3bf1ebd | [
"MIT"
] | null | null | null | from day2 import part1, part2
test_input = ["forward 5", "down 5", "forward 8", "up 3", "down 8", "forward 2"]
def test_part1():
assert part1(test_input) == 150
def test_part2():
assert part2(test_input) == 900
| 17.307692 | 80 | 0.644444 | 35 | 225 | 4 | 0.514286 | 0.192857 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105556 | 0.2 | 225 | 12 | 81 | 18.75 | 0.672222 | 0 | 0 | 0 | 0 | 0 | 0.191111 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ddd75be539a023c354e05bc36fdb71ddab3ec92e | 755 | py | Python | lib/mclib/setup.py | yusht000/clickhouse-learning | dbf4cc85bfde0a6afeece39cee80e120d37f9414 | [
"Apache-2.0"
] | null | null | null | lib/mclib/setup.py | yusht000/clickhouse-learning | dbf4cc85bfde0a6afeece39cee80e120d37f9414 | [
"Apache-2.0"
] | null | null | null | lib/mclib/setup.py | yusht000/clickhouse-learning | dbf4cc85bfde0a6afeece39cee80e120d37f9414 | [
"Apache-2.0"
] | null | null | null | __author__ = 'lucky'
from setuptools import setup, find_packages
setup(
name='mclib',
version='1.0.0',
keywords=['mclib'],
description=' mock data for ck ',
author='shengtao.yu',
author_email='yusht000@163.com',
packages=find_packages(include=['mclib', 'mclib.*']),
install_requires=[
... | 26.034483 | 57 | 0.592053 | 75 | 755 | 5.84 | 0.653333 | 0.173516 | 0.228311 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031802 | 0.250331 | 755 | 28 | 58 | 26.964286 | 0.742049 | 0 | 0 | 0.08 | 0 | 0 | 0.458278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
ddf4ad907c5c69dbb086147f20ac9300819e56c3 | 210 | py | Python | colaboradores/urls.py | SurielRuano/Orientador-Legal | a3be31d6019bcf254c3dcbbb26b4ffbbc85a9871 | [
"MIT"
] | null | null | null | colaboradores/urls.py | SurielRuano/Orientador-Legal | a3be31d6019bcf254c3dcbbb26b4ffbbc85a9871 | [
"MIT"
] | null | null | null | colaboradores/urls.py | SurielRuano/Orientador-Legal | a3be31d6019bcf254c3dcbbb26b4ffbbc85a9871 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.conf import settings
from . import views
urlpatterns = [
url(r'^solicitud-colaboracion/$', views.Solicitud_colaboracion.as_view(),name="solicitud"),
] | 21 | 92 | 0.761905 | 27 | 210 | 5.851852 | 0.592593 | 0.126582 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 210 | 10 | 93 | 21 | 0.849462 | 0 | 0 | 0 | 0 | 0 | 0.161137 | 0.118483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ddfbd0153445409ba222a928f2c7c817021b9ef9 | 742 | py | Python | mp/drawing/aoi_analysis.py | Ecotrust/COMPASS | 42ee113e4d66767300cfab0d6ce1f35847f447ed | [
"Apache-2.0"
] | 1 | 2017-09-06T14:05:48.000Z | 2017-09-06T14:05:48.000Z | mp/drawing/aoi_analysis.py | Ecotrust/COMPASS | 42ee113e4d66767300cfab0d6ce1f35847f447ed | [
"Apache-2.0"
] | 118 | 2015-01-05T19:52:11.000Z | 2021-11-30T18:33:35.000Z | mp/drawing/aoi_analysis.py | Ecotrust/COMPASS | 42ee113e4d66767300cfab0d6ce1f35847f447ed | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
#from madrona.raster_stats.models import RasterDataset, zonal_stats
from settings import *
from general.utils import default_value, sq_meters_to_sq_miles
from drawing.models import *
'''
'''
def display_aoi_analysis(request, aoi, template='aoi/reports/aoi_report.html'):
... | 35.333333 | 121 | 0.746631 | 103 | 742 | 5.174757 | 0.514563 | 0.067542 | 0.037523 | 0.045028 | 0.06379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165768 | 742 | 20 | 122 | 37.1 | 0.861066 | 0.109164 | 0 | 0 | 0 | 0 | 0.093254 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fb28948a168163ce71bb5208c10d1eb1cae7e500 | 1,720 | py | Python | tests/test_structures.py | UMDBPP/PacketRaven | ae41e24b36c6c5712141d6a4e734014734b5e592 | [
"MIT"
] | 4 | 2020-09-17T00:51:13.000Z | 2021-09-21T20:52:59.000Z | tests/test_structures.py | UMDBPP/PacketRaven | ae41e24b36c6c5712141d6a4e734014734b5e592 | [
"MIT"
] | 30 | 2020-09-26T01:28:22.000Z | 2021-12-08T12:11:18.000Z | tests/test_structures.py | UMDBPP/PacketRaven | ae41e24b36c6c5712141d6a4e734014734b5e592 | [
"MIT"
] | 1 | 2021-03-21T13:24:17.000Z | 2021-03-21T13:24:17.000Z | from packetraven.packets.structures import DoublyLinkedList
def test_index():
list_1 = DoublyLinkedList([0, 5, 4, 'foo', 5, 6])
assert list_1[0] == 0
assert list_1[0] is list_1.head.value
assert list_1[3] == 'foo'
assert list_1[-2] == 5
assert list_1[-1] == 6
assert list_1[-1] is list_1.t... | 21.234568 | 59 | 0.587791 | 282 | 1,720 | 3.386525 | 0.131206 | 0.188482 | 0.218848 | 0.075393 | 0.337173 | 0.14555 | 0.14555 | 0.105759 | 0.055497 | 0.055497 | 0 | 0.08659 | 0.241279 | 1,720 | 80 | 60 | 21.5 | 0.645211 | 0 | 0 | 0.113208 | 0 | 0 | 0.034302 | 0 | 0 | 0 | 0 | 0 | 0.528302 | 1 | 0.132075 | false | 0 | 0.018868 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34845913e9c851531df30a49983e681d48dc01d7 | 212 | py | Python | 02_P12.py | wiphoo/computer_programing_101 | 59013d774f6ec6e019829d73ce163cf5766c6a48 | [
"MIT"
] | null | null | null | 02_P12.py | wiphoo/computer_programing_101 | 59013d774f6ec6e019829d73ce163cf5766c6a48 | [
"MIT"
] | null | null | null | 02_P12.py | wiphoo/computer_programing_101 | 59013d774f6ec6e019829d73ce163cf5766c6a48 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
inputList = input()
abcList = sorted( [ int( x ) for x in inputList.split() ] )
print( 'abcList = {}'.format( abcList ) )
print( 'YES' if abcList[0] + abcList[1] > abcList[2] else 'NO' )
| 26.5 | 64 | 0.622642 | 30 | 212 | 4.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.179245 | 212 | 7 | 65 | 30.285714 | 0.735632 | 0.099057 | 0 | 0 | 0 | 0 | 0.089474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
348d974b27538f88e1a4942fe1ee3623358bca21 | 1,218 | py | Python | src/graph_transpiler/webdnn/frontend/chainer/functions/noise.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | src/graph_transpiler/webdnn/frontend/chainer/functions/noise.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/frontend/chainer/functions/noise.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | import chainer
from webdnn.frontend.chainer.converter import ChainerConverter
from webdnn.util import console
@ChainerConverter.register_handler("Dropout")
def _convert_dropout(converter: ChainerConverter, c_op: "chainer.functions.Dropout"):
console.warning("[ChainerConverter] Dropout is ignored")
x = conve... | 34.8 | 114 | 0.804598 | 123 | 1,218 | 7.796748 | 0.317073 | 0.01877 | 0.129301 | 0.116788 | 0.387904 | 0.32951 | 0.145985 | 0.145985 | 0 | 0 | 0 | 0.001826 | 0.100985 | 1,218 | 34 | 115 | 35.823529 | 0.873973 | 0.077997 | 0 | 0 | 0 | 0 | 0.303763 | 0.140681 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3492e4ee39c614f2a8576971e7ddf9b6d0ce6792 | 213 | py | Python | app/__init__.py | sebbesiren/game-api | 5d4a6629995a908b89155738dd70646af5f76038 | [
"MIT"
] | null | null | null | app/__init__.py | sebbesiren/game-api | 5d4a6629995a908b89155738dd70646af5f76038 | [
"MIT"
] | null | null | null | app/__init__.py | sebbesiren/game-api | 5d4a6629995a908b89155738dd70646af5f76038 | [
"MIT"
] | null | null | null | from eve import Eve
from app.domain import DOMAIN
from app.services import Services
from config import Config
def create_app():
app = Eve()
Services.init_services(app=app, domain=DOMAIN)
return app
| 17.75 | 50 | 0.746479 | 32 | 213 | 4.90625 | 0.34375 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187793 | 213 | 11 | 51 | 19.363636 | 0.907514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
349c2079be49fddd4f075e6c900d16d7d1a4b657 | 8,205 | py | Python | openGaussBase/testcase/SQL/DCL/Set_Session_Authorization/Opengauss_Function_Set_Session_Authorization_Case0007.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DCL/Set_Session_Authorization/Opengauss_Function_Set_Session_Authorization_Case0007.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DCL/Set_Session_Authorization/Opengauss_Function_Set_Session_Authorization_Case0007.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 48.839286 | 145 | 0.565996 | 904 | 8,205 | 4.902655 | 0.211283 | 0.054152 | 0.035199 | 0.028881 | 0.699007 | 0.630415 | 0.607626 | 0.57852 | 0.508123 | 0.488267 | 0 | 0.047793 | 0.30128 | 8,205 | 167 | 146 | 49.131737 | 0.725275 | 0.061913 | 0 | 0.563492 | 0 | 0.039683 | 0.634493 | 0.210504 | 0 | 0 | 0 | 0 | 0.119048 | 1 | 0.02381 | false | 0.071429 | 0.055556 | 0 | 0.087302 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
34a2464daaa3b4975ed0bf3d3c54054232661350 | 845 | py | Python | apps/account/tests/tests_custom_user_account.py | nfeslim/dashboard_nfe | 12f4943257e8029f9d47612fb2458290d3730e4a | [
"MIT"
] | null | null | null | apps/account/tests/tests_custom_user_account.py | nfeslim/dashboard_nfe | 12f4943257e8029f9d47612fb2458290d3730e4a | [
"MIT"
] | 20 | 2019-01-28T15:58:10.000Z | 2022-02-10T08:34:48.000Z | apps/account/tests/tests_custom_user_account.py | nfeslim/dashboard_nfe | 12f4943257e8029f9d47612fb2458290d3730e4a | [
"MIT"
] | 2 | 2019-01-28T13:34:54.000Z | 2019-05-26T17:39:43.000Z | from django.test import TestCase
from apps.account.models import CustomUser
class TestsCustomUserModel(TestCase):
def setUp(self):
self.data_insert = {
"email": "teste@teste.com",
"first_name": "Teste01",
"last_name": "Last",
"is_staff": False,
... | 30.178571 | 58 | 0.589349 | 98 | 845 | 4.857143 | 0.377551 | 0.117647 | 0.205882 | 0.214286 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003306 | 0.284024 | 845 | 27 | 59 | 31.296296 | 0.783471 | 0 | 0 | 0 | 0 | 0 | 0.156213 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
34a4645acfb73881bc8db3a4fa91ee46b68770f1 | 2,464 | py | Python | web/addons/gamification/__openerp__.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | 1 | 2019-12-29T11:53:56.000Z | 2019-12-29T11:53:56.000Z | odoo/addons/gamification/__openerp__.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | null | null | null | odoo/addons/gamification/__openerp__.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | 3 | 2020-10-08T14:42:10.000Z | 2022-01-28T14:12:29.000Z | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | 42.482759 | 214 | 0.641234 | 318 | 2,464 | 4.943396 | 0.566038 | 0.020356 | 0.022901 | 0.03626 | 0.063613 | 0.063613 | 0.043257 | 0 | 0 | 0 | 0 | 0.004022 | 0.192776 | 2,464 | 57 | 215 | 43.22807 | 0.786325 | 0.317776 | 0 | 0 | 0 | 0.090909 | 0.790173 | 0.105578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
34b63a4614f6bbcc59ac08c399803209f729f02f | 3,592 | py | Python | benchmark/bm_mutable_complicated_params.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 1 | 2020-10-15T01:09:27.000Z | 2020-10-15T01:09:27.000Z | benchmark/bm_mutable_complicated_params.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:45:45.000Z | 2020-10-04T22:45:45.000Z | benchmark/bm_mutable_complicated_params.py | ryanlevy/pennylane | fb03b09d17267ebd0b9050432f9eeb84b5dff200 | [
"Apache-2.0"
] | 1 | 2021-07-11T11:45:14.000Z | 2021-07-11T11:45:14.000Z | # Copyright 2018-2020 Xanadu Quantum Technologies 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... | 39.472527 | 95 | 0.684298 | 502 | 3,592 | 4.856574 | 0.476096 | 0.02461 | 0.021329 | 0.013126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012159 | 0.244432 | 3,592 | 90 | 96 | 39.911111 | 0.886146 | 0.643931 | 0 | 0 | 0 | 0 | 0.035073 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.214286 | false | 0 | 0.107143 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
34cbbc1bf7789668d0f46ede8fef71320ddfcf33 | 269 | py | Python | tests/test_prone.py | 612twilight/CogDL-TensorFlow | f850bae3f7fc2cf98501623b0b2b291ff68c9097 | [
"MIT"
] | 85 | 2019-12-23T02:51:44.000Z | 2021-11-22T02:53:40.000Z | tests/test_prone.py | 612twilight/CogDL-TensorFlow | f850bae3f7fc2cf98501623b0b2b291ff68c9097 | [
"MIT"
] | 8 | 2019-12-24T12:33:13.000Z | 2020-01-17T04:22:02.000Z | tests/test_prone.py | 612twilight/CogDL-TensorFlow | f850bae3f7fc2cf98501623b0b2b291ff68c9097 | [
"MIT"
] | 21 | 2019-12-24T07:21:38.000Z | 2021-03-11T08:23:19.000Z | import os
import sys
sys.path.append('../')
def test_prone():
os.system("python ../scripts/train.py --task unsupervised_node_classification --dataset wikipedia --model prone --seed 0 1 2 3 4 --hidden-size 2")
pass
if __name__ == "__main__":
test_prone() | 22.416667 | 150 | 0.687732 | 39 | 269 | 4.435897 | 0.820513 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.163569 | 269 | 12 | 151 | 22.416667 | 0.742222 | 0 | 0 | 0 | 0 | 0.125 | 0.533333 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
34e63b9104fb68d8649ae0afb98770dc6c33f8a9 | 12,434 | py | Python | tests/test_httpbroker.py | scieloorg/scieloapi.py | 898864605b1aff6008bdc632d56bc68fa3087b2c | [
"BSD-2-Clause"
] | 1 | 2019-03-16T05:16:57.000Z | 2019-03-16T05:16:57.000Z | tests/test_httpbroker.py | DalavanCloud/scieloapi.py | 898864605b1aff6008bdc632d56bc68fa3087b2c | [
"BSD-2-Clause"
] | 1 | 2016-04-29T19:58:08.000Z | 2016-05-02T17:37:26.000Z | tests/test_httpbroker.py | DalavanCloud/scieloapi.py | 898864605b1aff6008bdc632d56bc68fa3087b2c | [
"BSD-2-Clause"
] | 1 | 2019-03-16T05:16:44.000Z | 2019-03-16T05:16:44.000Z | import unittest
import mocker
from scieloapi import httpbroker, exceptions
import doubles
class CheckHttpStatusTests(unittest.TestCase):
def test_400_raises_BadRequest(self):
response = doubles.RequestsResponseStub()
response.status_code = 400
self.assertRaises(exceptions.BadRequest,
... | 32.807388 | 100 | 0.625543 | 1,287 | 12,434 | 5.857809 | 0.112665 | 0.071628 | 0.053057 | 0.063006 | 0.755803 | 0.74612 | 0.72556 | 0.659769 | 0.599284 | 0.547022 | 0 | 0.015448 | 0.260737 | 12,434 | 378 | 101 | 32.89418 | 0.804722 | 0.042545 | 0 | 0.629921 | 0 | 0 | 0.120724 | 0 | 0 | 0 | 0 | 0 | 0.110236 | 1 | 0.129921 | false | 0 | 0.059055 | 0 | 0.212598 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 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 |
34ea4d0eb8625328687aacb7544cef6b1e92f0ce | 14,142 | py | Python | shift_detector/utils/ucb_list.py | hpi-bp1819-naumann/shift-detector | 5d081d05ec084021f11827aa3fd3e167854b2a2a | [
"Apache-2.0"
] | 3 | 2019-06-21T11:41:08.000Z | 2019-10-24T06:41:51.000Z | shift_detector/utils/ucb_list.py | hpi-bp1819-naumann/shift-detector | 5d081d05ec084021f11827aa3fd3e167854b2a2a | [
"Apache-2.0"
] | 63 | 2019-05-16T12:09:57.000Z | 2022-02-10T00:21:01.000Z | shift_detector/utils/ucb_list.py | hpi-bp1819-naumann/shift-detector | 5d081d05ec084021f11827aa3fd3e167854b2a2a | [
"Apache-2.0"
] | null | null | null | # from https://stackoverflow.com/questions/243831/unicode-block-of-a-character-in-python
def block(character):
""" Return the Unicode block name for character, or None if character has no block.
from https://stackoverflow.com/questions/243831/unicode-block-of-a-character-in-python
:param character"""
... | 44.753165 | 90 | 0.539598 | 1,314 | 14,142 | 5.807458 | 0.716895 | 0.009435 | 0.018346 | 0.022802 | 0.01887 | 0.01887 | 0.01887 | 0.01887 | 0.01887 | 0.01887 | 0 | 0.298565 | 0.30512 | 14,142 | 315 | 91 | 44.895238 | 0.477969 | 0.019163 | 0 | 0 | 0 | 0 | 0.338482 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 1 | 0.003257 | false | 0 | 0 | 0 | 0.006515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
34ed68e593384f523d22245bee331628d278b3d6 | 1,771 | py | Python | opnsense_cli/callbacks/click.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 13 | 2021-05-17T10:42:25.000Z | 2022-02-21T02:10:41.000Z | opnsense_cli/callbacks/click.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 14 | 2021-05-17T13:53:27.000Z | 2021-12-16T12:45:44.000Z | opnsense_cli/callbacks/click.py | jan-win1993/opn-cli | 83c4792571dacbe6483722a95276954c7a2d0b3c | [
"BSD-2-Clause"
] | 2 | 2021-04-28T08:41:07.000Z | 2022-03-28T10:20:51.000Z | import yaml
import os
from opnsense_cli.facades.commands.base import CommandFacade
from opnsense_cli.factories.cli_output_format import CliOutputFormatFactory
from opnsense_cli.formats.base import Format
"""
Click callback methods
See: https://click.palletsprojects.com/en/8.0.x/advanced/#parameter-modifications
"""
... | 25.666667 | 81 | 0.710898 | 239 | 1,771 | 5.087866 | 0.376569 | 0.052632 | 0.053454 | 0.049342 | 0.072368 | 0.072368 | 0.052632 | 0.052632 | 0 | 0 | 0 | 0.002075 | 0.183512 | 1,771 | 68 | 82 | 26.044118 | 0.838866 | 0 | 0 | 0.116279 | 0 | 0 | 0.004822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.116279 | 0.046512 | 0.697674 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5501aaa88fcb642c1fe8259098da88b6178410af | 665 | py | Python | infra/migrations/0003_instancemodel.py | Maulikchhabra/Terraform-Console | 61b9fc4a15f0c2b9c1212cd131818772ad145d5e | [
"MIT"
] | null | null | null | infra/migrations/0003_instancemodel.py | Maulikchhabra/Terraform-Console | 61b9fc4a15f0c2b9c1212cd131818772ad145d5e | [
"MIT"
] | null | null | null | infra/migrations/0003_instancemodel.py | Maulikchhabra/Terraform-Console | 61b9fc4a15f0c2b9c1212cd131818772ad145d5e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-02-11 06:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('infra', '0002_keymodel_region'),
]
operations = [
migrations.CreateModel(
name='InstanceModel',
fields... | 28.913043 | 115 | 0.557895 | 65 | 665 | 5.584615 | 0.692308 | 0.123967 | 0.14876 | 0.198347 | 0.223141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061269 | 0.312782 | 665 | 22 | 116 | 30.227273 | 0.733042 | 0.067669 | 0 | 0 | 1 | 0 | 0.102349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5501e1c576660f05235b279067fbeb757cf10b2d | 3,249 | py | Python | BB/bbObjects/battles/BattleShip.py | Laura7089/GOF2BountyBot | 96d678bb3eda116292f4c1575d5e046206aa3cdd | [
"MIT"
] | 6 | 2020-06-09T16:36:52.000Z | 2021-02-02T17:53:44.000Z | BB/bbObjects/battles/BattleShip.py | Laura7089/GOF2BountyBot | 96d678bb3eda116292f4c1575d5e046206aa3cdd | [
"MIT"
] | 138 | 2020-08-02T11:20:34.000Z | 2020-12-15T15:55:11.000Z | BB/bbObjects/battles/BattleShip.py | Laura7089/GOF2BountyBot | 96d678bb3eda116292f4c1575d5e046206aa3cdd | [
"MIT"
] | 6 | 2020-07-05T05:32:16.000Z | 2020-11-01T21:58:31.000Z | from ..items.modules import bbCloakModule
from ..items import bbShip
class BattleShip:
"""A class representing ships participting in a duel.
The ship has three health pools; hull, armour and shield.
"""
def __init__(self, bbShip : bbShip.bbShip):
"""
:param bbShip bbShip: The bbShip f... | 26.201613 | 96 | 0.585719 | 398 | 3,249 | 4.771357 | 0.223618 | 0.110585 | 0.07109 | 0.075829 | 0.571353 | 0.521854 | 0.495524 | 0.441811 | 0.134281 | 0.077409 | 0 | 0.006887 | 0.32964 | 3,249 | 123 | 97 | 26.414634 | 0.865014 | 0.470914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.297297 | false | 0 | 0.054054 | 0 | 0.567568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
55070e42b85a927fbf45d18582d97a7b856c78e6 | 419 | py | Python | src/GameObject.py | LangArthur/FlappyBird-AILearning | 40af5abb25ca417a72a4b9a6930408eea264977f | [
"MIT"
] | 1 | 2020-11-13T08:53:55.000Z | 2020-11-13T08:53:55.000Z | src/GameObject.py | LangArthur/FlappyBird-AILearning | 40af5abb25ca417a72a4b9a6930408eea264977f | [
"MIT"
] | null | null | null | src/GameObject.py | LangArthur/FlappyBird-AILearning | 40af5abb25ca417a72a4b9a6930408eea264977f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# implementing a gameObject
class GameObject():
# constructor
# param x: the window of the game
def __init__(self, x, y, displayable):
self.x = x
self.y = y
self.displayable = displayable
# draw the gameObject
# param window: the window of the game
d... | 20.95 | 42 | 0.608592 | 53 | 419 | 4.735849 | 0.415094 | 0.071713 | 0.087649 | 0.111554 | 0.167331 | 0.167331 | 0 | 0 | 0 | 0 | 0 | 0.003448 | 0.307876 | 419 | 20 | 43 | 20.95 | 0.862069 | 0.396181 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.222222 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
550c5f3932777335b180e2c420bb644dad2172c9 | 419 | py | Python | various/closure.py | sideroff/python-exercises | 6a9cc55735d977a71697204c734b3ade84a0c4fd | [
"MIT"
] | null | null | null | various/closure.py | sideroff/python-exercises | 6a9cc55735d977a71697204c734b3ade84a0c4fd | [
"MIT"
] | 4 | 2020-03-24T18:00:07.000Z | 2021-06-02T00:51:22.000Z | various/closure.py | sideroff/python-exercises | 6a9cc55735d977a71697204c734b3ade84a0c4fd | [
"MIT"
] | null | null | null |
def parent(msg, flag: bool):
local_variable = '15'
print('parent executed {}'.format(msg))
def first_child():
print('first_child {}'.format(msg))
def second_child():
print('first_child {}, {}'.format(msg, local_variable))
return (
first_child if flag
else ... | 18.217391 | 63 | 0.591885 | 47 | 419 | 5.06383 | 0.425532 | 0.168067 | 0.10084 | 0.168067 | 0.243697 | 0.243697 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.25537 | 419 | 23 | 64 | 18.217391 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.285714 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b3641f44f669d2be62da8dedecb4d4362a7f5c3 | 2,702 | py | Python | pitch_table.py | andrewtron3000/jampy | 0dedfc1f3ee3dc71100821201039b5c31abd1bcd | [
"BSD-3-Clause"
] | null | null | null | pitch_table.py | andrewtron3000/jampy | 0dedfc1f3ee3dc71100821201039b5c31abd1bcd | [
"BSD-3-Clause"
] | null | null | null | pitch_table.py | andrewtron3000/jampy | 0dedfc1f3ee3dc71100821201039b5c31abd1bcd | [
"BSD-3-Clause"
] | null | null | null | pitch_table = {
"C-1" : 8.176,
"C#-1": 8.662,
"D-1" : 9.177,
"D#-1": 9.723,
"E-1" : 10.301,
"F-1" : 10.913,
"F#-1": 11.562,
"G-1" : 12.250,
"G#-1": 12.978,
"A-1" : 13.750,
"A#-1": 14.568,
"B-1" : 15.434,
"C0" : 16.352,
"C#0" : 17.324,
"D0" : 18.354,
"D#0... | 20.625954 | 21 | 0.381569 | 446 | 2,702 | 2.309417 | 0.715247 | 0.031068 | 0.005825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.512938 | 0.356403 | 2,702 | 130 | 22 | 20.784615 | 0.079356 | 0 | 0 | 0 | 0 | 0 | 0.118801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
9b37a5820354ca23189fd17c3858e7816b89d76f | 1,338 | py | Python | code/utils/memory_file_utils.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/utils/memory_file_utils.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/utils/memory_file_utils.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | """These utils can be used to get an StringIO objects that
can be written like a file but does not close at the end of a "with" statement.
Objects can be retrieved with the virtual path.
This was implemented to use in configargparser in mind.
To use it, call for example:
holder = StringIOHolder()
parser = configargpar... | 35.210526 | 125 | 0.714499 | 191 | 1,338 | 4.806283 | 0.455497 | 0.065359 | 0.084967 | 0.034858 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198057 | 1,338 | 38 | 126 | 35.210526 | 0.855545 | 0.596413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.066667 | 0.066667 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9b54366fff45943026fb1dfa35aab1fca672af14 | 2,643 | py | Python | scripts/f247.py | Eve-ning/aleph0 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | [
"MIT"
] | null | null | null | scripts/f247.py | Eve-ning/aleph0 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | [
"MIT"
] | null | null | null | scripts/f247.py | Eve-ning/aleph0 | 0a893f81328420ba4661cb920d3f9c39b3506d96 | [
"MIT"
] | null | null | null | from math import pi
import numpy as np
from aleph.consts import *
from reamber.algorithms.generate.sv.generators.svOsuMeasureLineMD import svOsuMeasureLineMD, SvOsuMeasureLineEvent
from reamber.osu.OsuMap import OsuMap
# notes: 01:37:742 (97742|2,125moves993|2) -
SHAKES = np.array(
[100560, 100790, 101018, ... | 38.867647 | 114 | 0.514945 | 286 | 2,643 | 4.702797 | 0.566434 | 0.031227 | 0.017844 | 0.028253 | 0.02974 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316081 | 0.385925 | 2,643 | 67 | 115 | 39.447761 | 0.512631 | 0.038593 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.090909 | 0 | 0.109091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b59acf59b488c85d61c96029164e0263163d09b | 1,032 | py | Python | wd_cw05/wd_cw05_zadanie_2.py | pawel2706111/wizualizacja-danych | 05792ebb5eab235be69b0d218dbacc9f62d7cc3e | [
"MIT"
] | null | null | null | wd_cw05/wd_cw05_zadanie_2.py | pawel2706111/wizualizacja-danych | 05792ebb5eab235be69b0d218dbacc9f62d7cc3e | [
"MIT"
] | null | null | null | wd_cw05/wd_cw05_zadanie_2.py | pawel2706111/wizualizacja-danych | 05792ebb5eab235be69b0d218dbacc9f62d7cc3e | [
"MIT"
] | null | null | null | # Przeciąż metodę __add__() dla klasy Kwadrat,
# która będzie zwracała instancje klasy Kwadrat o nowym boku,
# będącym sumą boków dodawanych do siebie kwadratów.
class Ksztalty:
def __init__(self, x, y):
self.x=x
self.y=y
self.opis = "To będzie klasa dla ogólnych kształtów"
... | 26.461538 | 62 | 0.583333 | 155 | 1,032 | 3.774194 | 0.322581 | 0.08547 | 0.041026 | 0.064957 | 0.105983 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.286822 | 1,032 | 39 | 63 | 26.461538 | 0.762228 | 0.150194 | 0 | 0.071429 | 0 | 0 | 0.12201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.107143 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
9b5bd7b74f6070b4bb6a3990c4f6998aeaad9c8f | 6,129 | py | Python | python/GV.py | lehaianh3112/ProjectLeHaiAnh | bcdc01c66e09bf88ba5dba30b9d35687f73596a4 | [
"Apache-2.0"
] | 2 | 2020-09-24T13:15:03.000Z | 2020-09-24T13:15:04.000Z | python/GV.py | lehaianh3112/ProjectLeHaiAnh | bcdc01c66e09bf88ba5dba30b9d35687f73596a4 | [
"Apache-2.0"
] | null | null | null | python/GV.py | lehaianh3112/ProjectLeHaiAnh | bcdc01c66e09bf88ba5dba30b9d35687f73596a4 | [
"Apache-2.0"
] | 1 | 2020-11-13T06:45:55.000Z | 2020-11-13T06:45:55.000Z | from __future__ import division, print_function, unicode_literals
import streamlit as st
from sklearn.metrics import mean_squared_error, r2_score
from sklearn.model_selection import train_test_split
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
st.title('Mô hình dự đoán giá nhà đất tại hồ gươm... | 32.089005 | 84 | 0.429597 | 1,078 | 6,129 | 2.378479 | 0.191095 | 0.017941 | 0.00702 | 0.012481 | 0.163027 | 0.113885 | 0.026521 | 0 | 0 | 0 | 0 | 0.292594 | 0.37657 | 6,129 | 190 | 85 | 32.257895 | 0.378435 | 0.018111 | 0 | 0.036145 | 0 | 0 | 0.078663 | 0.005156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.042169 | 0 | 0.066265 | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
9b665a2062992389f520062c7a4bc7b9d4a2209f | 553 | py | Python | dev/tools/leveleditor/direct/directbase/DirectStart.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | dev/tools/leveleditor/direct/directbase/DirectStart.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | dev/tools/leveleditor/direct/directbase/DirectStart.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | # This is a hack fix to get the graphics pipes to load with my
# hacked up Panda3D. If you want to load the level editor
# using DirectX 8 or DirectX 9, uncomment the import for the
# pipe you want to use. Make sure the pipe you want to load
# first is imported first.
# DirectX 9
#try:
# import libpandadx9
#except:... | 19.068966 | 62 | 0.716094 | 86 | 553 | 4.604651 | 0.581395 | 0.045455 | 0.068182 | 0.065657 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016241 | 0.220615 | 553 | 28 | 63 | 19.75 | 0.902552 | 0.663653 | 0 | 0 | 0 | 0 | 0.183432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.142857 | 0.285714 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9b7e29eb2f0e59715e72accf026ac5f08be432e5 | 347 | py | Python | src/apps/core/admin_actions.py | crivet/HydroLearn | f4caa868fffa08f1bf4163de94d44a234c8879b2 | [
"BSD-3-Clause"
] | null | null | null | src/apps/core/admin_actions.py | crivet/HydroLearn | f4caa868fffa08f1bf4163de94d44a234c8879b2 | [
"BSD-3-Clause"
] | 23 | 2018-08-09T18:46:20.000Z | 2021-06-10T20:21:26.000Z | src/apps/core/admin_actions.py | crivet/HydroLearn | f4caa868fffa08f1bf4163de94d44a234c8879b2 | [
"BSD-3-Clause"
] | 1 | 2019-01-28T15:42:39.000Z | 2019-01-28T15:42:39.000Z |
# potentially not, may be better to use 'ModelAdmin' methods
# 'https://docs.djangoproject.com/en/2.0/ref/contrib/admin/actions/#advanced-action-techniques'
#
# def delete_with_placeholders(modeladmin, request, queryset):
# for obj in queryset:
# obj.delete()
#
#
# delete_with_placeholders.short_descriptio... | 34.7 | 95 | 0.746398 | 44 | 347 | 5.772727 | 0.818182 | 0.07874 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.129683 | 347 | 10 | 96 | 34.7 | 0.834437 | 0.942363 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9b85ea6a66d799edca2542b2804c5fbd050ae9ad | 513 | py | Python | tests/test_contrast.py | bunkahle/PILasOPENCV | 5acfe7279a88ddfb09f431ffec369a527885072e | [
"MIT"
] | 19 | 2019-05-05T07:37:10.000Z | 2021-12-09T15:52:51.000Z | tests/test_contrast.py | bunkahle/PILasOPENCV | 5acfe7279a88ddfb09f431ffec369a527885072e | [
"MIT"
] | 5 | 2019-04-09T23:54:17.000Z | 2021-05-16T08:31:22.000Z | tests/test_contrast.py | bunkahle/PILasOPENCV | 5acfe7279a88ddfb09f431ffec369a527885072e | [
"MIT"
] | 6 | 2019-04-08T12:33:34.000Z | 2021-05-15T14:57:50.000Z | # from PIL import Image, ImageEnhance
import PILasOPENCV as Image
import PILasOPENCV as ImageEnhance
img = Image.open('lena.jpg')
#
enhancer = ImageEnhance.Contrast(img)
enhancer.enhance(0.0).save(
"ImageEnhance_Contrast_000.jpg")
enhancer.enhance(0.25).save(
"ImageEnhance_Contrast_025.jpg")
enhance... | 30.176471 | 38 | 0.744639 | 67 | 513 | 5.552239 | 0.373134 | 0.322581 | 0.322581 | 0.153226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060538 | 0.130604 | 513 | 17 | 39 | 30.176471 | 0.773543 | 0.068226 | 0 | 0 | 0 | 0 | 0.332609 | 0.315217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
9b9f1c51ddd12b4d88648a10736d11c142f2bb77 | 160 | py | Python | CodeUp/1546.py | chae-heechan/Algorithm_Study | 183a77e2cfe352cd82fb5e988b493082529a73dd | [
"MIT"
] | null | null | null | CodeUp/1546.py | chae-heechan/Algorithm_Study | 183a77e2cfe352cd82fb5e988b493082529a73dd | [
"MIT"
] | null | null | null | CodeUp/1546.py | chae-heechan/Algorithm_Study | 183a77e2cfe352cd82fb5e988b493082529a73dd | [
"MIT"
] | null | null | null | # 함수로 plus/minus/0 판별하기
def f(key):
if key>0:
print("plus")
elif key==0:
print("zero")
else:
print("minus")
f(int(input())) | 16 | 23 | 0.49375 | 24 | 160 | 3.291667 | 0.625 | 0.101266 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.31875 | 160 | 10 | 24 | 16 | 0.697248 | 0.13125 | 0 | 0 | 0 | 0 | 0.094203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9bb3d0737e74a92d26361c8bc04c7f6c864b655e | 492 | py | Python | windpyutils/args.py | windionleaf/windPyUtils | d0c86370cba95c3d51d84a8b65d00af425d0d5d0 | [
"Unlicense"
] | null | null | null | windpyutils/args.py | windionleaf/windPyUtils | d0c86370cba95c3d51d84a8b65d00af425d0d5d0 | [
"Unlicense"
] | null | null | null | windpyutils/args.py | windionleaf/windPyUtils | d0c86370cba95c3d51d84a8b65d00af425d0d5d0 | [
"Unlicense"
] | null | null | null | # -*- coding: UTF-8 -*-
""""
Created on 30.06.20
Module with wrapper that makes arguments parsers raising exceptions.
:author: Martin Dočekal
"""
from argparse import ArgumentParser
class ArgumentParserError(Exception):
"""
Exceptions for argument parsing.
"""
pass
class ExceptionsArgumentPars... | 18.222222 | 68 | 0.693089 | 50 | 492 | 6.82 | 0.8 | 0.076246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018041 | 0.211382 | 492 | 26 | 69 | 18.923077 | 0.860825 | 0.471545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
32ceb575daacd4f9161e58cf9c60e4924351278b | 3,005 | py | Python | debug-app-qt/gen_linalgd.py | blaind/ttf2mesh | e41d86a4bbd3166e79086215f3a463c64164fb10 | [
"MIT"
] | 63 | 2020-05-14T14:46:52.000Z | 2022-02-21T19:12:02.000Z | debug-app-qt/gen_linalgd.py | blaind/ttf2mesh | e41d86a4bbd3166e79086215f3a463c64164fb10 | [
"MIT"
] | 4 | 2021-04-17T06:25:17.000Z | 2021-08-08T18:33:29.000Z | debug-app-qt/gen_linalgd.py | blaind/ttf2mesh | e41d86a4bbd3166e79086215f3a463c64164fb10 | [
"MIT"
] | 17 | 2020-05-14T16:55:02.000Z | 2022-02-23T21:49:12.000Z | #!/usr/bin/env python
import sys
import os
#----------------------------------------------
file = open("linalgf.h", "r")
s = file.read()
file.close()
s = s.replace("LINALGF_H", "LINALGD_H");
s = s.replace("float", "double");
s = s.replace("mat2f", "mat2d");
s = s.replace("mat3f", "mat3d");
s = s.replace("mat4f", ... | 24.04 | 66 | 0.574043 | 436 | 3,005 | 3.805046 | 0.165138 | 0.066305 | 0.298373 | 0.061483 | 0.743219 | 0.710066 | 0.669078 | 0.614225 | 0.614225 | 0.572031 | 0 | 0.032514 | 0.1198 | 3,005 | 124 | 67 | 24.233871 | 0.594707 | 0.052579 | 0 | 0.666667 | 0 | 0 | 0.275765 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 1 | 0 | false | 0 | 0.021505 | 0 | 0.021505 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
32d0713a88139b28d54ed2332f1ac55a353714e3 | 1,148 | py | Python | test_scrapy/test_scrapy/test.py | lijie28/python_demo | bb9ca737eae28ac655a4030f5f110545cf3ed815 | [
"Apache-2.0"
] | null | null | null | test_scrapy/test_scrapy/test.py | lijie28/python_demo | bb9ca737eae28ac655a4030f5f110545cf3ed815 | [
"Apache-2.0"
] | null | null | null | test_scrapy/test_scrapy/test.py | lijie28/python_demo | bb9ca737eae28ac655a4030f5f110545cf3ed815 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
import requests
from lxml import etree
url = 'http://weibo.cn/fishli28' #此处请修改为微博地址
url_login = 'https://login.weibo.cn/login/'
html = requests.get(url_login).content
selector = etree.HTML(html)
password = selector.xpath('//input[@type="password"]/@name')[0]
vk = selector.xpath('//input[@name="vk"]/@v... | 23.428571 | 68 | 0.649826 | 158 | 1,148 | 4.670886 | 0.487342 | 0.088076 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019507 | 0.151568 | 1,148 | 49 | 69 | 23.428571 | 0.738193 | 0.040941 | 0 | 0 | 0 | 0 | 0.309872 | 0.11426 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.055556 | null | null | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
32d1f285269d5ea292b2d1499083bacda6a8221c | 1,742 | py | Python | gradeit/visualization.py | NREL/gradeit | beceac601967f0008c5ff41c6a0534bf4406e074 | [
"BSD-3-Clause"
] | null | null | null | gradeit/visualization.py | NREL/gradeit | beceac601967f0008c5ff41c6a0534bf4406e074 | [
"BSD-3-Clause"
] | 6 | 2020-06-25T17:04:44.000Z | 2021-12-07T23:44:46.000Z | gradeit/visualization.py | NREL/gradeit | beceac601967f0008c5ff41c6a0534bf4406e074 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
def plot_data(df, general_filter, plot_param):
if plot_param[0]:
# visualization of elevation data
if general_filter:
plt.plot(df['cumulative_uniform_distance_ft'], df['elevation_ft_filtered'],
df['cumulativ... | 41.47619 | 105 | 0.556831 | 191 | 1,742 | 4.874346 | 0.225131 | 0.107411 | 0.077336 | 0.081633 | 0.766917 | 0.711063 | 0.711063 | 0.592911 | 0.519871 | 0.519871 | 0 | 0.003367 | 0.318025 | 1,742 | 42 | 106 | 41.47619 | 0.780303 | 0.034443 | 0 | 0.666667 | 0 | 0 | 0.317267 | 0.124466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.051282 | 0 | 0.076923 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 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 |
32e5c255c60ae5c31a2df351124c956634661ebd | 4,023 | py | Python | SROMPy/target/UniformRandomVariable.py | datree-demo/SROMPy | 5a5c0d66e823a059568805a1718372c9e80e2943 | [
"Apache-2.0"
] | null | null | null | SROMPy/target/UniformRandomVariable.py | datree-demo/SROMPy | 5a5c0d66e823a059568805a1718372c9e80e2943 | [
"Apache-2.0"
] | null | null | null | SROMPy/target/UniformRandomVariable.py | datree-demo/SROMPy | 5a5c0d66e823a059568805a1718372c9e80e2943 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 United States Government as represented by the Administrator of
# the National Aeronautics and Space Administration. No copyright is claimed in
# the United States under Title 17, U.S. Code. All Other Rights Reserved.
# The Stochastic Reduced Order Models with Python (SROMPy) platform is licensed
# un... | 32.707317 | 80 | 0.662938 | 525 | 4,023 | 4.918095 | 0.371429 | 0.038342 | 0.03718 | 0.03873 | 0.185128 | 0.166925 | 0.144462 | 0.115027 | 0.087916 | 0.073586 | 0 | 0.006782 | 0.266965 | 4,023 | 122 | 81 | 32.97541 | 0.868769 | 0.463087 | 0 | 0 | 0 | 0 | 0.044327 | 0 | 0 | 0 | 0 | 0.008197 | 0 | 1 | 0.236842 | false | 0 | 0.078947 | 0.026316 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
32e7a21d1b7d17f0096f9f1f8b813b3eec50faf1 | 2,100 | py | Python | comparison_with_benchmark.py | KGkiotsalitis/bus-holding-model-under-capacity-limitations | 83cf434deeb98251712594da91d41cc332b10672 | [
"MIT"
] | 3 | 2020-03-03T08:34:15.000Z | 2021-03-09T05:06:31.000Z | comparison_with_benchmark.py | KGkiotsalitis/bus-holding-model-under-capacity-limitations | 83cf434deeb98251712594da91d41cc332b10672 | [
"MIT"
] | null | null | null | comparison_with_benchmark.py | KGkiotsalitis/bus-holding-model-under-capacity-limitations | 83cf434deeb98251712594da91d41cc332b10672 | [
"MIT"
] | 3 | 2019-06-05T22:02:15.000Z | 2021-04-28T01:54:06.000Z | import numpy as np
import matplotlib.pyplot as plt
import random
zeta=300
M_2=100000000000
M_1=100000000000000
a_n_plus_1s=2500
ta=1.5
tb=4
l_n_1=50
beta_n_1=10
c_n_plus_1=60
c_n=60
lambda_s=0.02
Hs=600
phi_n=62
t=1500
di_1_s=1000
k=1+tb*lambda_s
h=(1+tb*lambda_s)*tb
theta=a_n_plus_1s+beta_n_1... | 38.181818 | 256 | 0.767143 | 514 | 2,100 | 2.663424 | 0.110895 | 0.14317 | 0.248356 | 0.081812 | 0.76187 | 0.702703 | 0.638422 | 0.578524 | 0.530314 | 0.466034 | 0 | 0.080637 | 0.072857 | 2,100 | 54 | 257 | 38.888889 | 0.622496 | 0.009048 | 0 | 0 | 0 | 0 | 0.004115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.088235 | 0.147059 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
32e7fbb53e80eeafc1d08b0536e2a7fbd74d7c04 | 340 | py | Python | HarvardX/CS50W/flask/variables0/application.py | mohammedelzanaty/myRoad2BeFullStack | eea3a5edb6c6a999136b04fdaea6ce0c81137a58 | [
"MIT"
] | 2 | 2021-04-21T12:05:01.000Z | 2022-01-19T09:58:38.000Z | HarvardX/CS50W/flask/variables0/application.py | mohammedelzanaty/myRoad2BeFullStack | eea3a5edb6c6a999136b04fdaea6ce0c81137a58 | [
"MIT"
] | 34 | 2019-12-26T11:21:42.000Z | 2022-02-27T19:55:10.000Z | HarvardX/CS50W/flask/variables0/application.py | mohammedelzanaty/myRoad2BeFullStack | eea3a5edb6c6a999136b04fdaea6ce0c81137a58 | [
"MIT"
] | 2 | 2021-08-15T07:59:36.000Z | 2022-01-16T06:17:32.000Z | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
headline = "Hello World"
return render_template("index.html", headline=headline)
@app.route("/<string:name>")
def say_name(name):
return render_template("index.html", name=name)
if __name__ == "__main__":
... | 17.894737 | 59 | 0.691176 | 45 | 340 | 4.866667 | 0.488889 | 0.191781 | 0.182648 | 0.228311 | 0.26484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152941 | 340 | 18 | 60 | 18.888889 | 0.760417 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 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 |
32e9d840ac553e179d1c8a969bf4b69455525e1c | 1,028 | py | Python | temp-snn/snn/var_th.py | Tab-ct/Spiking-Neural-Network | 3019c76ed2cb23a258e02aceb6e86615de3c722a | [
"Apache-2.0"
] | 1 | 2020-07-15T06:22:48.000Z | 2020-07-15T06:22:48.000Z | temp-snn/snn/var_th.py | Tab-ct/Spiking-Neural-Network | 3019c76ed2cb23a258e02aceb6e86615de3c722a | [
"Apache-2.0"
] | null | null | null | temp-snn/snn/var_th.py | Tab-ct/Spiking-Neural-Network | 3019c76ed2cb23a258e02aceb6e86615de3c722a | [
"Apache-2.0"
] | null | null | null | ############################################## README #################################################
# This calculates threshold for an image depending upon its spiking activity.
########################################################################################################
import numpy as np
from snn.n... | 25.7 | 104 | 0.576848 | 133 | 1,028 | 4.353383 | 0.496241 | 0.084629 | 0.031088 | 0.051813 | 0.048359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012415 | 0.138132 | 1,028 | 40 | 105 | 25.7 | 0.641084 | 0.19358 | 0 | 0 | 0 | 0 | 0.0304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.5 | 0 | 0.590909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
32f019fb33a8198e38ae61c3646904e33a12a5bd | 1,083 | py | Python | japanese2phoneme/exceptions.py | iory/japanese2phoneme | 1847c9fe59fb4ba381fb290f02b5bd8f2f39cf00 | [
"MIT"
] | null | null | null | japanese2phoneme/exceptions.py | iory/japanese2phoneme | 1847c9fe59fb4ba381fb290f02b5bd8f2f39cf00 | [
"MIT"
] | null | null | null | japanese2phoneme/exceptions.py | iory/japanese2phoneme | 1847c9fe59fb4ba381fb290f02b5bd8f2f39cf00 | [
"MIT"
] | null | null | null | class UnidentifiedJapaneseText(Exception):
def __init__(self, sentence, word):
super(UnidentifiedJapaneseText, self).__init__()
self.sentence = sentence
self.word = word
def __str__(self):
return (u"No match in dictionary for word '%s' in sentence: \n'%s'" %
(se... | 25.186047 | 79 | 0.638042 | 122 | 1,083 | 5.336066 | 0.360656 | 0.073733 | 0.061444 | 0.09831 | 0.078341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255771 | 1,083 | 42 | 80 | 25.785714 | 0.807692 | 0.051708 | 0 | 0.16 | 0 | 0 | 0.167488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.04 | 0 | 0.16 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
32f2e560cba814f3c2a343592924f927f3e2880b | 62,522 | py | Python | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/_azure_machine_learning_workspaces.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/_azure_machine_learning_workspaces.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/_azure_machine_learning_workspaces.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 61.296078 | 194 | 0.72277 | 6,749 | 62,522 | 6.466143 | 0.048007 | 0.11572 | 0.089459 | 0.040513 | 0.810518 | 0.778575 | 0.684945 | 0.603116 | 0.523419 | 0.488107 | 0 | 0.06534 | 0.18168 | 62,522 | 1,019 | 195 | 61.356232 | 0.78762 | 0.325405 | 0 | 0.446009 | 0 | 0 | 0.15214 | 0.026661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092332 | false | 0.001565 | 0.201878 | 0.001565 | 0.402191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
32f72c31c1bff8e1fbe20482e23d1ebb4d8721b4 | 1,358 | py | Python | Q/questionnaire/views/views_errors.py | trubliphone/esdoc-test | 2f7a39b22cdda89e55d5936ed131873812cf3791 | [
"MIT"
] | null | null | null | Q/questionnaire/views/views_errors.py | trubliphone/esdoc-test | 2f7a39b22cdda89e55d5936ed131873812cf3791 | [
"MIT"
] | 2 | 2017-11-01T14:29:46.000Z | 2017-11-02T12:16:03.000Z | Q/questionnaire/views/views_errors.py | trubliphone/esdoc-test | 2f7a39b22cdda89e55d5936ed131873812cf3791 | [
"MIT"
] | null | null | null | ####################
# ES-DOC CIM Questionnaire
# Copyright (c) 2017 ES-DOC. All rights reserved.
#
# University of Colorado, Boulder
# http://cires.colorado.edu/
#
# This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT].
####################
from djan... | 25.148148 | 115 | 0.659057 | 168 | 1,358 | 5.184524 | 0.363095 | 0.064294 | 0.10907 | 0.183697 | 0.383467 | 0.32147 | 0.32147 | 0.213548 | 0.213548 | 0.213548 | 0 | 0.033606 | 0.189249 | 1,358 | 53 | 116 | 25.622642 | 0.757493 | 0.490427 | 0 | 0.133333 | 0 | 0 | 0.15016 | 0.118211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 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 | 1 | 0 | 0 | 2 |
fd05707ba14b3adf1dd28ac468f9c73488e6962d | 516 | py | Python | smarkets/tests/streaming_api/utils.py | smarkets/smk_python_sdk | fd18d29e12971b48b0c4b0733fcca2c9bb074da9 | [
"MIT"
] | 20 | 2015-08-14T14:38:21.000Z | 2020-10-20T15:10:45.000Z | smarkets/tests/streaming_api/utils.py | smarkets/smk_python_sdk | fd18d29e12971b48b0c4b0733fcca2c9bb074da9 | [
"MIT"
] | 8 | 2016-04-20T11:03:59.000Z | 2019-12-11T17:45:56.000Z | smarkets/tests/streaming_api/utils.py | smarkets/smk_python_sdk | fd18d29e12971b48b0c4b0733fcca2c9bb074da9 | [
"MIT"
] | 7 | 2015-10-28T14:58:11.000Z | 2022-03-26T12:10:52.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from nose.tools import eq_
from smarkets.streaming_api.seto import OrderCreate, Payload, PAYLOAD_ORDER_CREATE
from smarkets.streaming_api.utils import set_payload_message
def test_set_payload_message():
payload = Payload()
as... | 30.352941 | 82 | 0.802326 | 68 | 516 | 5.705882 | 0.441176 | 0.123711 | 0.185567 | 0.123711 | 0.149485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.131783 | 516 | 16 | 83 | 32.25 | 0.852679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fd0e4f220c36355aefca703eb2a29b88a0476fea | 3,838 | py | Python | scan_service/tests/hardware_config_tests.py | kkkkv/tgnms | a3b8fd8a69b647a614f9856933f05e50a4affadf | [
"MIT"
] | 12 | 2021-04-06T06:27:18.000Z | 2022-03-18T10:52:29.000Z | scan_service/tests/hardware_config_tests.py | kkkkv/tgnms | a3b8fd8a69b647a614f9856933f05e50a4affadf | [
"MIT"
] | 6 | 2022-01-04T13:32:16.000Z | 2022-03-28T21:13:59.000Z | scan_service/tests/hardware_config_tests.py | kkkkv/tgnms | a3b8fd8a69b647a614f9856933f05e50a4affadf | [
"MIT"
] | 7 | 2021-09-27T13:14:42.000Z | 2022-03-28T16:24:15.000Z | #!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
import json
import unittest
from typing import List
from bidict import bidict
from scan_service.utils.hardware_config import HardwareConfig
class HardwareConfigTests(unittest.TestCase):
def setUp(self) -> None:
with open("tes... | 39.56701 | 85 | 0.569307 | 463 | 3,838 | 4.509719 | 0.220302 | 0.186782 | 0.361111 | 0.306513 | 0.51341 | 0.511973 | 0.484674 | 0.484674 | 0.484674 | 0.1159 | 0 | 0.098565 | 0.310057 | 3,838 | 96 | 86 | 39.979167 | 0.689955 | 0.019541 | 0 | 0.074074 | 0 | 0 | 0.020473 | 0.006913 | 0 | 0 | 0 | 0 | 0.345679 | 1 | 0.049383 | false | 0 | 0.061728 | 0 | 0.123457 | 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 |
fd191b43d6ce6909ad6aca833572b7fe806c617c | 8,884 | py | Python | src/oci/apm_traces/models/query_result_metadata_summary.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/apm_traces/models/query_result_metadata_summary.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/apm_traces/models/query_result_metadata_summary.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 44.199005 | 245 | 0.73244 | 1,092 | 8,884 | 5.649267 | 0.163004 | 0.073918 | 0.129681 | 0.052521 | 0.787 | 0.715513 | 0.565083 | 0.509483 | 0.476414 | 0.387421 | 0 | 0.002585 | 0.216231 | 8,884 | 200 | 246 | 44.42 | 0.883384 | 0.593539 | 0 | 0.080645 | 0 | 0 | 0.151951 | 0.138946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd258412300e1cf4c6d8e5cae1d4d4bf1bcb368a | 1,541 | py | Python | 04Cuarto/Redes_MultiServicio_RMS/01_Lector_de_etiquetas_MPLS/src/controller/controllers/Main.py | elsudano/Facultad | 8ff2c5904f0a38a3a0682e040da4439f2bc872f2 | [
"MIT"
] | 2 | 2017-02-20T09:26:42.000Z | 2021-11-21T21:56:35.000Z | 04Cuarto/Redes_MultiServicio_RMS/01_Lector_de_etiquetas_MPLS/src/controller/controllers/Main.py | elsudano/Facultad | 8ff2c5904f0a38a3a0682e040da4439f2bc872f2 | [
"MIT"
] | 1 | 2016-10-06T16:59:39.000Z | 2017-09-21T08:04:51.000Z | 04Cuarto/Redes_MultiServicio_RMS/01_Lector_de_etiquetas_MPLS/src/controller/controllers/Main.py | elsudano/Facultad | 8ff2c5904f0a38a3a0682e040da4439f2bc872f2 | [
"MIT"
] | 4 | 2016-10-06T16:41:01.000Z | 2019-11-21T12:37:20.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""Lista de controladores del programa.
En este fichero podemos encontrarnos todos los controladores,
de todas las vistas de nuestro programa.
"""
from src.controller.Controller import Controller
from src.model import models
from src.controller import controllers
from src.vie... | 33.5 | 72 | 0.680078 | 192 | 1,541 | 5.375 | 0.447917 | 0.05814 | 0.032946 | 0.032946 | 0.313953 | 0.267442 | 0.267442 | 0.203488 | 0.139535 | 0.139535 | 0 | 0.000855 | 0.241402 | 1,541 | 46 | 73 | 33.5 | 0.88195 | 0.356262 | 0 | 0.26087 | 0 | 0 | 0.035484 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 1 | 0.173913 | false | 0.086957 | 0.173913 | 0 | 0.391304 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fd2dc684a974e1077d8f2e8ec32e54d422387b23 | 6,518 | py | Python | src/config/settings.py | kents00/Django | 13b7cedcdf545966dd9c0ad82324f2250e342caa | [
"MIT"
] | 1 | 2021-11-20T04:22:43.000Z | 2021-11-20T04:22:43.000Z | src/config/settings.py | kents00/Django | 13b7cedcdf545966dd9c0ad82324f2250e342caa | [
"MIT"
] | null | null | null | src/config/settings.py | kents00/Django | 13b7cedcdf545966dd9c0ad82324f2250e342caa | [
"MIT"
] | 1 | 2021-11-20T04:22:46.000Z | 2021-11-20T04:22:46.000Z | import os
import logging
import environ
from pathlib import Path
SUPPORTED_NONLOCALES = ['media', 'admin', 'static']
# Build paths inside the project like this: BASE_DIR / 'subdir'.
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__) + "../../../")
env = environ.Env()
# reading .env file
environ.Env.read_env(... | 27.854701 | 91 | 0.707426 | 708 | 6,518 | 6.391243 | 0.385593 | 0.066077 | 0.059669 | 0.018785 | 0.137238 | 0.127956 | 0.062983 | 0.056575 | 0.056575 | 0.038895 | 0 | 0.008739 | 0.1749 | 6,518 | 234 | 92 | 27.854701 | 0.832652 | 0.254679 | 0 | 0.044776 | 0 | 0 | 0.551194 | 0.465421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08209 | 0.029851 | 0 | 0.029851 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fd488b3557e3260db87c6e4b4239013540157ab9 | 1,930 | py | Python | oteltrace/contrib/mysql/__init__.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 2 | 2020-03-04T17:33:22.000Z | 2021-01-20T14:20:10.000Z | oteltrace/contrib/mysql/__init__.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 4 | 2019-11-25T00:11:16.000Z | 2021-05-13T20:43:50.000Z | oteltrace/contrib/mysql/__init__.py | ocelotl/opentelemetry-auto-instr-python-1 | f5c47bd1ee492ffde298794f283031c22891f60b | [
"BSD-3-Clause"
] | 3 | 2020-02-05T14:54:25.000Z | 2020-03-23T02:51:27.000Z | # Copyright 2019, OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 37.115385 | 110 | 0.746632 | 277 | 1,930 | 5.129964 | 0.534296 | 0.068966 | 0.018297 | 0.022519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009404 | 0.173575 | 1,930 | 51 | 111 | 37.843137 | 0.881505 | 0.812953 | 0 | 0 | 0 | 0 | 0.13783 | 0.079179 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
fd4c8e66a3c4ce18d42a34672fa2c46cd4382ce9 | 648 | py | Python | api/system/node/events.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | api/system/node/events.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | api/system/node/events.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | from api.event import Event
from que import TT_DUMMY, TG_DC_UNBOUND
from que.utils import DEFAULT_DC, task_id_from_string
class NodeSystemRestarted(Event):
"""
Called from node_sysinfo_cb after erigonesd:fast is restarted on a compute node.
"""
_name_ = 'node_system_restarted'
def __init__(self, ... | 38.117647 | 113 | 0.734568 | 97 | 648 | 4.56701 | 0.484536 | 0.06772 | 0.040632 | 0.072235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182099 | 648 | 16 | 114 | 40.5 | 0.835849 | 0.233025 | 0 | 0 | 0 | 0 | 0.070686 | 0.043659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fd4e6b7fd8056184ee22053de3f72569cd928d12 | 1,162 | py | Python | learningPygame/McKinley/00-MovingSmile/04-Drawing.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/McKinley/00-MovingSmile/04-Drawing.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/McKinley/00-MovingSmile/04-Drawing.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | # TODO: In this module we'll start drawing a simple smiley face
# Yellow circle for the head
# Two black circle eyes
# Red rectangle (rect) mouth
# Red circle nose.
import pygame
import sys
pygame.init()
screen = pygame.display.set_mode((600, 600))
while True:
for event in pygame.event.get():
if even... | 27.666667 | 71 | 0.611876 | 179 | 1,162 | 3.96648 | 0.407821 | 0.030986 | 0.135211 | 0.185915 | 0.24507 | 0.157746 | 0.157746 | 0.087324 | 0.087324 | 0 | 0 | 0.134594 | 0.226334 | 1,162 | 41 | 72 | 28.341463 | 0.655172 | 0.302065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fd571edc6895904a0c768b258b907747ad5b2262 | 368 | py | Python | bak/extract/misc.py | ashlinrichardson/bcstats_ohcs_craigslist | 38135b0e80e3a2e1ae24b722a943d1c49fbf8f1f | [
"Apache-2.0"
] | 2 | 2020-04-08T17:17:25.000Z | 2021-09-11T12:54:16.000Z | bak/extract/misc.py | ashlinrichardson/bcstats_ohcs_craigslist | 38135b0e80e3a2e1ae24b722a943d1c49fbf8f1f | [
"Apache-2.0"
] | 19 | 2020-04-17T19:27:02.000Z | 2022-02-04T20:59:28.000Z | bak/extract/misc.py | ashlinrichardson/bcstats_ohcs_craigslist | 38135b0e80e3a2e1ae24b722a943d1c49fbf8f1f | [
"Apache-2.0"
] | 2 | 2020-08-04T18:19:23.000Z | 2021-10-13T17:25:53.000Z | import os
import sys
import csv
import time
args = sys.argv
def err(msg):
print("Error:", msg)
sys.exit(1)
# parallel for loop
def parfor(my_function, my_inputs):
# evaluate function in parallel, and collect the results
import multiprocessing as mp
pool = mp.Pool(mp.cpu_count())
result = poo... | 19.368421 | 60 | 0.701087 | 56 | 368 | 4.517857 | 0.642857 | 0.079051 | 0.094862 | 0.142292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003413 | 0.203804 | 368 | 19 | 61 | 19.368421 | 0.860068 | 0.195652 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fd58d50a0a4a83c0feedd1224f2c822da0898acf | 1,375 | py | Python | djangoflutterwave/tests/test_template_tags.py | bdelate/django-flutterwave | 845b83e22baf00aa80053124432dffda19778ccc | [
"MIT"
] | 9 | 2021-01-12T23:22:01.000Z | 2022-02-07T00:12:34.000Z | djangoflutterwave/tests/test_template_tags.py | bdelate/django-rave | 845b83e22baf00aa80053124432dffda19778ccc | [
"MIT"
] | 3 | 2020-04-07T08:14:08.000Z | 2020-12-17T04:13:43.000Z | djangoflutterwave/tests/test_template_tags.py | bdelate/django-flutterwave | 845b83e22baf00aa80053124432dffda19778ccc | [
"MIT"
] | 4 | 2021-03-19T13:04:41.000Z | 2022-02-25T12:26:19.000Z | # stdlib imports
from unittest.mock import patch
# django imports
from django.test import TestCase
# 3rd party imports
# project imports
from djangoflutterwave.tests.factories import FlwPlanModelFactory, UserFactory
from djangoflutterwave.templatetags.djangoflutterwave_tags import pay_button_params
class TestTempl... | 35.25641 | 86 | 0.730909 | 149 | 1,375 | 6.469799 | 0.422819 | 0.120332 | 0.190871 | 0.207469 | 0.171162 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000892 | 0.184727 | 1,375 | 38 | 87 | 36.184211 | 0.859054 | 0.134545 | 0 | 0 | 0 | 0 | 0.237158 | 0.170377 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.25 | 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 |
b5c850c7db312f9d69ffe0ba107fe5b8b9ef0c22 | 188 | bzl | Python | rules/private/phases/phase_coda.bzl | hmemcpy/rules_scala-1 | 456a3ab87615c1a364ae5aaec2d8dbb3d45b202d | [
"Apache-2.0"
] | null | null | null | rules/private/phases/phase_coda.bzl | hmemcpy/rules_scala-1 | 456a3ab87615c1a364ae5aaec2d8dbb3d45b202d | [
"Apache-2.0"
] | null | null | null | rules/private/phases/phase_coda.bzl | hmemcpy/rules_scala-1 | 456a3ab87615c1a364ae5aaec2d8dbb3d45b202d | [
"Apache-2.0"
] | null | null | null | #
# PHASE: coda
#
# Creates the final rule return structure
#
def phase_coda(ctx, g):
return struct(
java = g.ijinfo.intellij_info,
providers = g.out.providers,
)
| 15.666667 | 41 | 0.62766 | 24 | 188 | 4.833333 | 0.75 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265957 | 188 | 11 | 42 | 17.090909 | 0.84058 | 0.271277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b5de15342111d74c40bc588c94ebb3a17b3d7e3b | 754 | py | Python | zalgolib/diacritics.py | jivanyatra/zalgolibpy | 7f0d054d370e90c031c1e5d6637503cb1ad38e6f | [
"MIT"
] | 1 | 2022-03-06T16:43:13.000Z | 2022-03-06T16:43:13.000Z | zalgolib/diacritics.py | jivanyatra/zalgolib | 7f0d054d370e90c031c1e5d6637503cb1ad38e6f | [
"MIT"
] | null | null | null | zalgolib/diacritics.py | jivanyatra/zalgolib | 7f0d054d370e90c031c1e5d6637503cb1ad38e6f | [
"MIT"
] | null | null | null | # thanks to gregoryneal for this
#downward going diacritics
DOWN_MARKS = ['̖',' ̗',' ̘',' ̙',' ̜',' ̝',' ̞',' ̟',' ̠',' ̤',' ̥',' ̦',' ̩',' ̪',' ̫',' ̬',' ̭',' ̮',' ̯',' ̰',' ̱',' ̲',' ̳',' ̹',' ̺',' ̻',' ̼',' ͅ',' ͇',' ͈',' ͉',' ͍',' ͎',' ͓',' ͔',' ͕',' ͖',' ͙',' ͚',' ',]
DOWN_LEN = len(DOWN_MARKS)
#upward diacritic... | 53.857143 | 243 | 0.218833 | 139 | 754 | 1.892086 | 0.863309 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185676 | 754 | 13 | 244 | 58 | 0.254072 | 0.118037 | 0 | 0 | 0 | 0 | 0.321212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b5e7e8baf60e16700be2d07f7431c2d06571bab1 | 155 | py | Python | generalCredentials.py | darren-ccab/Telegram-AI-chatbot-for-university-courses | 2d96ff0153c4936e0e54192fa2532f134a094889 | [
"MIT"
] | null | null | null | generalCredentials.py | darren-ccab/Telegram-AI-chatbot-for-university-courses | 2d96ff0153c4936e0e54192fa2532f134a094889 | [
"MIT"
] | null | null | null | generalCredentials.py | darren-ccab/Telegram-AI-chatbot-for-university-courses | 2d96ff0153c4936e0e54192fa2532f134a094889 | [
"MIT"
] | null | null | null | # General Chatbot Token
telegramToken = ""
# Announcement Channel ID
announcementID = ''
# Dialogflow Project ID
projectID = "newagent-XXXXXX"
| 15.5 | 30 | 0.703226 | 14 | 155 | 7.785714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212903 | 155 | 9 | 31 | 17.222222 | 0.893443 | 0.432258 | 0 | 0 | 0 | 0 | 0.202703 | 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 |
b5f13d5a5f1a69f96bddf1e4d44a73edc52f75c7 | 59 | py | Python | scripts_python/suma.py | joanayala/Frameworks_8A | 7d7dd23b5300e9f4a8177750a9da367b2d682679 | [
"Apache-2.0"
] | null | null | null | scripts_python/suma.py | joanayala/Frameworks_8A | 7d7dd23b5300e9f4a8177750a9da367b2d682679 | [
"Apache-2.0"
] | null | null | null | scripts_python/suma.py | joanayala/Frameworks_8A | 7d7dd23b5300e9f4a8177750a9da367b2d682679 | [
"Apache-2.0"
] | null | null | null | a = 5
b = 10
suma = a + b
print("The addition is: ", suma)
| 11.8 | 32 | 0.559322 | 12 | 59 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.271186 | 59 | 4 | 33 | 14.75 | 0.697674 | 0 | 0 | 0 | 0 | 0 | 0.288136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
b5f933f265d43e21e4ccf5dc0e11c9737112044f | 413 | py | Python | tests/test_factory.py | knowark/injectark | 6aa40b231dac897ff3b8d4fad8b7b85883406157 | [
"MIT"
] | null | null | null | tests/test_factory.py | knowark/injectark | 6aa40b231dac897ff3b8d4fad8b7b85883406157 | [
"MIT"
] | null | null | null | tests/test_factory.py | knowark/injectark | 6aa40b231dac897ff3b8d4fad8b7b85883406157 | [
"MIT"
] | 1 | 2019-09-16T14:47:04.000Z | 2019-09-16T14:47:04.000Z | from injectark import Factory
def test_factory_extract() -> None:
class MockFactory(Factory):
def __init__(self, config):
super().__init__(config)
pass
def _my_method(self):
pass
factory = MockFactory({'key': 'value'})
method = factory.extract('_my_met... | 22.944444 | 45 | 0.612591 | 44 | 413 | 5.386364 | 0.454545 | 0.101266 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268765 | 413 | 17 | 46 | 24.294118 | 0.784768 | 0 | 0 | 0.166667 | 0 | 0 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0.166667 | 0.083333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b5fdce1f323850c69013285963f10fa3d15bf2b1 | 3,388 | py | Python | unittests/linux/test_networkd.py | stepanandr/taf | 75cb85861f8e9703bab7dc6195f3926b8394e3d0 | [
"Apache-2.0"
] | 10 | 2016-12-16T00:05:58.000Z | 2018-10-30T17:48:25.000Z | unittests/linux/test_networkd.py | stepanandr/taf | 75cb85861f8e9703bab7dc6195f3926b8394e3d0 | [
"Apache-2.0"
] | 40 | 2017-01-04T23:07:05.000Z | 2018-04-16T19:52:02.000Z | unittests/linux/test_networkd.py | stepanandr/taf | 75cb85861f8e9703bab7dc6195f3926b8394e3d0 | [
"Apache-2.0"
] | 23 | 2016-12-30T05:03:53.000Z | 2020-04-01T08:40:24.000Z | #!/usr/bin/env python
# Copyright (c) 2015 - 2017, Intel Corporation.
#
# 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 ... | 45.783784 | 103 | 0.608028 | 433 | 3,388 | 4.646651 | 0.279446 | 0.095427 | 0.058151 | 0.057157 | 0.61829 | 0.61829 | 0.61829 | 0.61829 | 0.61829 | 0.61829 | 0 | 0.028114 | 0.244097 | 3,388 | 73 | 104 | 46.410959 | 0.757517 | 0.18595 | 0 | 0.555556 | 0 | 0.311111 | 0.449763 | 0.038363 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.044444 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bd03970dd8a0d5bbfe4a2fca3f8549f07d43833f | 676 | py | Python | codechallenges/serializers.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | null | null | null | codechallenges/serializers.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | null | null | null | codechallenges/serializers.py | alimustafashah/core | 7280c4ca2e88d700ad35af05fbe0766e9ad8e5b4 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from codechallenges.models import Question, Submission
class QuestionSerializer(serializers.ModelSerializer):
class Meta:
model = Question
fields = (
"title",
"body",
"format",
"answer",
"release_dat... | 24.142857 | 60 | 0.610947 | 53 | 676 | 7.735849 | 0.490566 | 0.190244 | 0.226829 | 0.256098 | 0.434146 | 0.336585 | 0.336585 | 0.336585 | 0.336585 | 0.336585 | 0 | 0 | 0.29142 | 676 | 27 | 61 | 25.037037 | 0.85595 | 0 | 0 | 0.238095 | 0 | 0 | 0.131657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.380952 | 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 |
bd14b37cb092b6f80ed830f1fcabd4659cc4f1a8 | 3,690 | py | Python | certbot_dns_directadmin/__init__.py | cybercinch/certbot-dns-directadmin | 4810538ae2862c70f0b1282183bbc0103afed2fe | [
"Apache-2.0"
] | 8 | 2019-07-21T23:30:45.000Z | 2021-09-03T11:52:32.000Z | certbot_dns_directadmin/__init__.py | cybercinch/certbot-dns-directadmin | 4810538ae2862c70f0b1282183bbc0103afed2fe | [
"Apache-2.0"
] | 7 | 2019-11-05T10:15:56.000Z | 2021-06-01T23:58:07.000Z | certbot_dns_directadmin/__init__.py | cybercinch/certbot-dns-directadmin | 4810538ae2862c70f0b1282183bbc0103afed2fe | [
"Apache-2.0"
] | 3 | 2019-11-05T09:59:25.000Z | 2020-10-26T09:18:24.000Z | """
The `~certbot-dns-directadmin:directadmin` plugin automates the process of
completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and
subsequently removing, TXT records using the DirectAdmin API.
Named Arguments
---------------
==================================================================... | 36.176471 | 116 | 0.673984 | 449 | 3,690 | 5.510022 | 0.398664 | 0.032336 | 0.010914 | 0.024252 | 0.194422 | 0.180679 | 0.180679 | 0.180679 | 0.180679 | 0.164511 | 0 | 0.009352 | 0.188618 | 3,690 | 101 | 117 | 36.534653 | 0.816967 | 0.994309 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
bd157ef64f6b19111d8e84466de8b14c7db6db5b | 2,749 | py | Python | fate/test/test_insertoperations.py | Mattias1/fate | 10266406336bc4c683ff5b23af32ac3447f7f054 | [
"MIT"
] | null | null | null | fate/test/test_insertoperations.py | Mattias1/fate | 10266406336bc4c683ff5b23af32ac3447f7f054 | [
"MIT"
] | null | null | null | fate/test/test_insertoperations.py | Mattias1/fate | 10266406336bc4c683ff5b23af32ac3447f7f054 | [
"MIT"
] | null | null | null | """
This module provides testcases for insertoperations.
Auto indentation is covered.
"""
from ..commands import selectnextline, selectpreviousword
from ..insertoperations import ChangeAfter, ChangeBefore, ChangeInPlace, ChangeAround
from ..undotree import undo
from .basetestcase import BaseTestCase
from .. import docu... | 33.52439 | 85 | 0.646053 | 344 | 2,749 | 5.136628 | 0.162791 | 0.2309 | 0.158461 | 0.260328 | 0.678551 | 0.647425 | 0.647425 | 0.647425 | 0.647425 | 0.599321 | 0 | 0.003733 | 0.220444 | 2,749 | 81 | 86 | 33.938272 | 0.820812 | 0.029465 | 0 | 0.57377 | 0 | 0 | 0.108687 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 1 | 0.098361 | false | 0 | 0.213115 | 0 | 0.327869 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
bd1c384508254a1ea3085af3bd55678c5df8b2d1 | 2,415 | py | Python | module3-nosql-and-document-oriented-databases/Cluster.py | John-G-Thomas/DS-Unit-3-Sprint-2-SQL-and-Databases | 63996452fa705f1f032a94e4809bf5a7a692df2a | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/Cluster.py | John-G-Thomas/DS-Unit-3-Sprint-2-SQL-and-Databases | 63996452fa705f1f032a94e4809bf5a7a692df2a | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/Cluster.py | John-G-Thomas/DS-Unit-3-Sprint-2-SQL-and-Databases | 63996452fa705f1f032a94e4809bf5a7a692df2a | [
"MIT"
] | null | null | null | # If colab not locally Find out the IP address of this Colab Instance
# !curl ipecho.net/plain
"""
"How was working with MongoDB different from working with PostgreSQL? What was easier, and what was harder?":
-MongoDB and PostgrSQL biggest difference is hpw the data/information is stored.
-In PostgreSQL there are schem... | 39.590164 | 118 | 0.705176 | 363 | 2,415 | 4.595041 | 0.490358 | 0.107914 | 0.028777 | 0.035971 | 0.190647 | 0.151079 | 0.1247 | 0.1247 | 0.1247 | 0.1247 | 0 | 0.01617 | 0.180538 | 2,415 | 60 | 119 | 40.25 | 0.82668 | 0.238509 | 0 | 0.388889 | 0 | 0 | 0.210191 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.027778 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
bd230dca5958db00826b8ea6ffce68deaf388619 | 3,283 | py | Python | general/views.py | MarcinSzyc/KRA_PYT_W_02_WARSZTATY_3 | b39f7b4798b1b04bd14bb6876dc107b31232bfe3 | [
"MIT"
] | null | null | null | general/views.py | MarcinSzyc/KRA_PYT_W_02_WARSZTATY_3 | b39f7b4798b1b04bd14bb6876dc107b31232bfe3 | [
"MIT"
] | 10 | 2019-12-04T22:41:36.000Z | 2022-02-10T07:06:12.000Z | general/views.py | MarcinSzyc/KRA_PYT_W_02_WARSZTATY_3 | b39f7b4798b1b04bd14bb6876dc107b31232bfe3 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.views import View
from .forms import UserLogin, UserRegistration
from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.views import PasswordResetView
from django.core.exceptions import Improperly... | 38.174419 | 174 | 0.663722 | 400 | 3,283 | 5.35 | 0.305 | 0.066822 | 0.042056 | 0.050467 | 0.401869 | 0.364953 | 0.33972 | 0.311682 | 0.271495 | 0.249533 | 0 | 0.000402 | 0.242461 | 3,283 | 85 | 175 | 38.623529 | 0.860072 | 0.045385 | 0 | 0.370968 | 0 | 0 | 0.137748 | 0.024079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112903 | false | 0.080645 | 0.129032 | 0.016129 | 0.548387 | 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 | 1 | 0 | 0 | 2 |
bd2a80743280152ccbc1cc6603d0ff33a3c3266f | 685 | py | Python | School146/forms/article_form.py | mihdenis85/Synergy | 8811530b7d45a07f9f1be3da9d1a714d5677c1f7 | [
"MIT"
] | null | null | null | School146/forms/article_form.py | mihdenis85/Synergy | 8811530b7d45a07f9f1be3da9d1a714d5677c1f7 | [
"MIT"
] | null | null | null | School146/forms/article_form.py | mihdenis85/Synergy | 8811530b7d45a07f9f1be3da9d1a714d5677c1f7 | [
"MIT"
] | null | null | null | import re
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed, FileRequired
from wtforms import StringField, TextAreaField, SubmitField
from wtforms.validators import DataRequired, regexp
class ArticleForm(FlaskForm):
title = StringField('Название статьи', validators=[DataRequired()... | 45.666667 | 112 | 0.652555 | 60 | 685 | 7.416667 | 0.583333 | 0.040449 | 0.053933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258394 | 685 | 15 | 113 | 45.666667 | 0.875984 | 0 | 0 | 0 | 0 | 0 | 0.144315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bd2c5d28a3c81ac65162b5d1db8e1948d6fbb8d2 | 5,476 | py | Python | gen-input.py | SirGFM/FallingBlocks | 5585823565da85e960a3e0044fb5399e1f615028 | [
"Zlib"
] | 1 | 2019-07-23T16:54:06.000Z | 2019-07-23T16:54:06.000Z | gen-input.py | SirGFM/FallingBlocks | 5585823565da85e960a3e0044fb5399e1f615028 | [
"Zlib"
] | null | null | null | gen-input.py | SirGFM/FallingBlocks | 5585823565da85e960a3e0044fb5399e1f615028 | [
"Zlib"
] | null | null | null | import pathlib
import os.path
cwd = pathlib.Path(__file__).parent.absolute()
cwd = os.path.abspath(cwd)
fp = os.path.join(cwd, 'ProjectSettings', 'InputManager.asset')
def output_unity_axis(f, joy_idx, name, button='', axis_type=0, joy_axis=0):
f.write(' - serializedVersion: 3\n')
f.write(' m_Name: joyst... | 36.506667 | 83 | 0.571037 | 767 | 5,476 | 4.003911 | 0.119948 | 0.232498 | 0.255291 | 0.054705 | 0.712146 | 0.691631 | 0.691631 | 0.667535 | 0.613481 | 0.597525 | 0 | 0.023683 | 0.244339 | 5,476 | 149 | 84 | 36.751678 | 0.718463 | 0.006209 | 0 | 0.621429 | 0 | 0 | 0.480515 | 0.03511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021429 | false | 0 | 0.014286 | 0 | 0.035714 | 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 |
1fa6733fcfe3250f49e1d45def23b66d3b87e957 | 22,205 | py | Python | local/model_vqvae.py | blackbawx/SILA-Switching_Identificationy_by_Latent_Articulation | d7cdcd9265ab87894689995c8e1f2e0f331bcb79 | [
"Apache-2.0"
] | 1 | 2020-11-27T19:45:20.000Z | 2020-11-27T19:45:20.000Z | local/model_vqvae.py | blackbawx/SILA | d7cdcd9265ab87894689995c8e1f2e0f331bcb79 | [
"Apache-2.0"
] | null | null | null | local/model_vqvae.py | blackbawx/SILA | d7cdcd9265ab87894689995c8e1f2e0f331bcb79 | [
"Apache-2.0"
] | null | null | null | import os, sys
FALCON_DIR = os.environ.get('FALCONDIR')
sys.path.append(FALCON_DIR)
from models import *
from layers import *
from util import *
from model import *
class quantizer_kotha_arff(nn.Module):
"""
Input: (B, T, n_channels, vec_len) numeric tensor n_channels == 1 usually
Output: (B, T, ... | 53.377404 | 210 | 0.654177 | 2,833 | 22,205 | 4.903989 | 0.09107 | 0.041316 | 0.018139 | 0.02073 | 0.730008 | 0.706111 | 0.689844 | 0.673649 | 0.632621 | 0.612395 | 0 | 0.041541 | 0.223778 | 22,205 | 415 | 211 | 53.506024 | 0.764505 | 0.170998 | 0 | 0.524528 | 0 | 0 | 0.013706 | 0.005679 | 0 | 0 | 0 | 0 | 0.003774 | 1 | 0.033962 | false | 0 | 0.018868 | 0 | 0.086792 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1fafb9edac3f4bacfbeb77e8e8bc499f82e455bb | 253 | py | Python | setup.py | scls19fr/pandas-helper-calc | 22df480f09c0fa96548833f9dee8f9128512641b | [
"MIT"
] | 7 | 2019-06-13T05:21:13.000Z | 2021-08-02T13:26:50.000Z | setup.py | scls19fr/pandas-helper-calc | 22df480f09c0fa96548833f9dee8f9128512641b | [
"MIT"
] | 2 | 2019-06-07T20:21:30.000Z | 2020-05-07T14:57:50.000Z | setup.py | scls19fr/pandas-helper-calc | 22df480f09c0fa96548833f9dee8f9128512641b | [
"MIT"
] | 2 | 2019-08-15T01:33:24.000Z | 2021-09-15T18:19:41.000Z | from setuptools import setup
setup(
name="pandas_helper_calc",
version="0.0.1",
packages=["pandas_helper_calc"],
license="MIT License",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
)
| 23 | 50 | 0.703557 | 32 | 253 | 5.3125 | 0.75 | 0.141176 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.150198 | 253 | 10 | 51 | 25.3 | 0.776744 | 0 | 0 | 0 | 0 | 0 | 0.29249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1fb138084cfb73c23a6f488fb132d30e183ecce3 | 1,277 | py | Python | libs/models/__init__.py | taesung89/deeplab-pytorch | 25db353d10a256f1f9e89675a21f6e59af9407e6 | [
"MIT"
] | 1 | 2018-05-22T22:20:10.000Z | 2018-05-22T22:20:10.000Z | libs/models/__init__.py | taesung89/deeplab-pytorch | 25db353d10a256f1f9e89675a21f6e59af9407e6 | [
"MIT"
] | null | null | null | libs/models/__init__.py | taesung89/deeplab-pytorch | 25db353d10a256f1f9e89675a21f6e59af9407e6 | [
"MIT"
] | null | null | null | from libs.models.resnet import *
from libs.models.deeplabv2 import *
from libs.models.deeplabv3 import *
from libs.models.deeplabv3plus import *
from libs.models.msc import *
def init_weights(model):
for m in model.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_normal(m.weight)
... | 34.513514 | 96 | 0.653876 | 197 | 1,277 | 4.101523 | 0.248731 | 0.118812 | 0.089109 | 0.09901 | 0.632426 | 0.632426 | 0.524752 | 0.524752 | 0.524752 | 0.524752 | 0 | 0.071142 | 0.218481 | 1,277 | 37 | 97 | 34.513514 | 0.738477 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.185185 | 0.148148 | 0.518519 | 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 | 1 | 0 | 0 | 2 |
1fbe368180deb479293f63729112b8804f5ad881 | 456 | py | Python | main.py | omarzanji/nlp-search | 1bc41e42efbadd6e71be0325de8a5ae5e0a20d95 | [
"MIT"
] | null | null | null | main.py | omarzanji/nlp-search | 1bc41e42efbadd6e71be0325de8a5ae5e0a20d95 | [
"MIT"
] | null | null | null | main.py | omarzanji/nlp-search | 1bc41e42efbadd6e71be0325de8a5ae5e0a20d95 | [
"MIT"
] | null | null | null | """
Given a substring, search an array of strings by cosine simularity (linear kernel) by
returning the index with highest kernel output (confidence).
"""
class NLPSearch:
def __init__(self):
pass
def process_data(self):
pass
def create_model(self):
pass
def... | 19 | 87 | 0.605263 | 53 | 456 | 4.924528 | 0.660377 | 0.122605 | 0.168582 | 0.122605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313596 | 456 | 24 | 88 | 19 | 0.833866 | 0.322368 | 0 | 0.384615 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.384615 | 0 | 0 | 0.461538 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1fd3436a78fa5ed8db3f9a22ca95b4ca2e4826dd | 239 | py | Python | code/1078.py | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | code/1078.py | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | code/1078.py | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | class Solution:
def findOcurrences(self, text: str, first: str, second: str) -> List[str]:
lis = text.split()
l = len(lis)
return [lis[i + 2] for i in range(0, l - 2) if lis[i] == first and lis[i + 1] == second] | 47.8 | 96 | 0.560669 | 39 | 239 | 3.435897 | 0.615385 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023121 | 0.276151 | 239 | 5 | 96 | 47.8 | 0.751445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1fdccf5d73f4462914b4c076669583ec8c5a2486 | 206 | py | Python | python/ABC111/ABC111A.py | yu8ikmnbgt6y/MyAtCoder | 529979a57700d22ff17b2a3465c16d87514bc1f2 | [
"Unlicense"
] | null | null | null | python/ABC111/ABC111A.py | yu8ikmnbgt6y/MyAtCoder | 529979a57700d22ff17b2a3465c16d87514bc1f2 | [
"Unlicense"
] | null | null | null | python/ABC111/ABC111A.py | yu8ikmnbgt6y/MyAtCoder | 529979a57700d22ff17b2a3465c16d87514bc1f2 | [
"Unlicense"
] | null | null | null | def chg(n):
if n==1:
return 9
elif n==9:
return 1
return n
n = int(input())
n,a1 = divmod(n,10)
n,a2 = divmod(n,10)
n,a3 = divmod(n,10)
print(100*chg(a3)+10*chg(a2)+chg(a1)) | 14.714286 | 37 | 0.524272 | 42 | 206 | 2.571429 | 0.404762 | 0.194444 | 0.25 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14094 | 0.276699 | 206 | 14 | 37 | 14.714286 | 0.583893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0.090909 | 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 |
1fdd9533f8ee94d0efb7adac8446ebf76b11fd7c | 1,128 | py | Python | day11/test_day11.py | Frost/aoc2021-py | 05e76799a0af0c3740e419591fe000a7c75622df | [
"MIT"
] | null | null | null | day11/test_day11.py | Frost/aoc2021-py | 05e76799a0af0c3740e419591fe000a7c75622df | [
"MIT"
] | null | null | null | day11/test_day11.py | Frost/aoc2021-py | 05e76799a0af0c3740e419591fe000a7c75622df | [
"MIT"
] | null | null | null |
from day11 import *
test_input = """
5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526
"""
def test_cave_constructor():
cave = Cave(["12", "34"])
assert cave.energy_levels() == [[1,2], [3,4]]
def test_simple_tick():
test_data = """
1111... | 15.666667 | 49 | 0.529255 | 161 | 1,128 | 3.608696 | 0.291925 | 0.120482 | 0.075732 | 0.113597 | 0.351119 | 0.2358 | 0.106713 | 0 | 0 | 0 | 0 | 0.248762 | 0.283688 | 1,128 | 71 | 50 | 15.887324 | 0.470297 | 0 | 0 | 0.365385 | 0 | 0 | 0.157941 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 1 | 0.096154 | false | 0 | 0.019231 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
1fe219f516cc01f5056669a8da861b82f2373b6a | 2,474 | py | Python | tests/test_layers/test_activation.py | wkcn/mobula | 4eec938d6477776f5f2d68bcf41de83fb8da5195 | [
"MIT"
] | 47 | 2017-07-15T02:13:18.000Z | 2022-01-01T09:37:59.000Z | tests/test_layers/test_activation.py | wkcn/mobula | 4eec938d6477776f5f2d68bcf41de83fb8da5195 | [
"MIT"
] | 3 | 2018-06-22T13:55:12.000Z | 2020-01-29T01:41:13.000Z | tests/test_layers/test_activation.py | wkcn/mobula | 4eec938d6477776f5f2d68bcf41de83fb8da5195 | [
"MIT"
] | 8 | 2017-09-03T12:42:54.000Z | 2020-09-27T03:38:59.000Z | import mobula.layers as L
import numpy as np
def test_sigmoid():
X = ((np.arange(10000) - 5000) / 1000.0).reshape((-1, 1, 1, 1))
data = L.Data(X, "data")
data.reshape()
l = L.Sigmoid(data)
l.reshape()
assert l.Y.shape == X.shape
l.forward()
l.dY = np.random.random(l.Y.shape) * 10
l.... | 26.602151 | 79 | 0.516977 | 450 | 2,474 | 2.831111 | 0.104444 | 0.023548 | 0.023548 | 0.061224 | 0.77394 | 0.762951 | 0.713501 | 0.657771 | 0.630298 | 0.589482 | 0 | 0.06325 | 0.25869 | 2,474 | 92 | 80 | 26.891304 | 0.631407 | 0 | 0 | 0.585366 | 0 | 0 | 0.008282 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 1 | 0.060976 | false | 0 | 0.02439 | 0 | 0.085366 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 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 |
1fee2987c2a0c5764385392bf4c0fba208572d11 | 592 | py | Python | tests/test_forms.py | saxix/django-geo | f061f50d6514507fb50e329043820dd0aca0c452 | [
"BSD-1-Clause"
] | 9 | 2015-08-22T20:38:48.000Z | 2021-07-02T23:36:12.000Z | tests/test_forms.py | saxix/django-geo | f061f50d6514507fb50e329043820dd0aca0c452 | [
"BSD-1-Clause"
] | null | null | null | tests/test_forms.py | saxix/django-geo | f061f50d6514507fb50e329043820dd0aca0c452 | [
"BSD-1-Clause"
] | 2 | 2015-06-26T16:43:18.000Z | 2018-04-23T21:34:39.000Z | # -*- coding: utf-8 -*-
import pytest
from geo.forms import administrativeareaform_factory_for_country
from geo.models import AdministrativeArea
from .fixtures import hierachy
@pytest.mark.django_db
def test_administrativeareaform_factory(hierachy):
italy, regione, provincia, comune = hierachy
Form = administ... | 31.157895 | 64 | 0.699324 | 63 | 592 | 6.396825 | 0.571429 | 0.215881 | 0.158809 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002128 | 0.206081 | 592 | 18 | 65 | 32.888889 | 0.855319 | 0.035473 | 0 | 0 | 0 | 0 | 0.035149 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.