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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97d839c29032ab99c29279d1bff3b2372e34d821 | 3,220 | py | Python | Tony/scripts/atlasregiongraphWithLabels.py | alee156/cldev | 9f96dd71aa8b434bc0923c9bac297de5dd478b35 | [
"Apache-2.0"
] | null | null | null | Tony/scripts/atlasregiongraphWithLabels.py | alee156/cldev | 9f96dd71aa8b434bc0923c9bac297de5dd478b35 | [
"Apache-2.0"
] | 2 | 2017-04-18T02:50:14.000Z | 2017-04-18T18:04:20.000Z | Tony/scripts/atlasregiongraphWithLabels.py | alee156/cldev | 9f96dd71aa8b434bc0923c9bac297de5dd478b35 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import print_function
__author__ = 'seelviz'
from plotly.offline import download_plotlyjs
from plotly.graph_objs import *
from plotly import tools
import plotly
import os
#os.chdir('C:/Users/L/Documents/Homework/BME/Neuro Data I/Data/')
import csv,gc # ga... | 30.377358 | 156 | 0.536025 | 388 | 3,220 | 4.304124 | 0.389175 | 0.041916 | 0.026946 | 0.026347 | 0.126946 | 0.111377 | 0.111377 | 0.068263 | 0.068263 | 0.068263 | 0 | 0.022801 | 0.332609 | 3,220 | 105 | 157 | 30.666667 | 0.754304 | 0 | 0 | 0.09589 | 0 | 0 | 0.04646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.191781 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97d86a5addc9118e5b9f128b925bbd9f30254202 | 7,679 | py | Python | calm-onboard/temp.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | calm-onboard/temp.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | calm-onboard/temp.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | 1 | 2021-11-16T10:28:42.000Z | 2021-11-16T10:28:42.000Z | # api call function
# ================================================================
def http_request(api_endpoint, payload='', method='POST'):
username = '@@{pc_admin.username}@@'
username_secret = '@@{pc_admin.secret}@@'
pc_address = '@@{PC_IP}@@'
pc_port = '9440'
url = "https://{}:{}{}".format(
pc... | 30.472222 | 131 | 0.492121 | 685 | 7,679 | 5.164964 | 0.20438 | 0.024873 | 0.027699 | 0.025438 | 0.607688 | 0.544941 | 0.494912 | 0.47117 | 0.447428 | 0.447428 | 0 | 0.013193 | 0.318922 | 7,679 | 251 | 132 | 30.593626 | 0.663289 | 0.110301 | 0 | 0.238095 | 0 | 0 | 0.268282 | 0.092364 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005291 | 0 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97db20e6e3a23ac99f5b0b0a084372ecf6fadbf8 | 400 | py | Python | oop/base/Person.py | mstao/pycore | 6bb2224a477f788625619ca58cbde7f39a6911eb | [
"MIT"
] | null | null | null | oop/base/Person.py | mstao/pycore | 6bb2224a477f788625619ca58cbde7f39a6911eb | [
"MIT"
] | null | null | null | oop/base/Person.py | mstao/pycore | 6bb2224a477f788625619ca58cbde7f39a6911eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
定义一个类
1.
用 __name 表示一个私有成员变量,外部不可直接访问
2. __init__ 表示类初始化函数,当创建一个对象的时候,需要调用此方法
"""
class Person(object):
def __init__(self, name: str, age: int) -> None:
self.__name = name
self.__age = age
def print(self):
print('name=%s, age=%s' %... | 14.814815 | 60 | 0.6025 | 56 | 400 | 3.982143 | 0.589286 | 0.107623 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03537 | 0.2225 | 400 | 26 | 61 | 15.384615 | 0.681672 | 0.3075 | 0 | 0 | 0 | 0 | 0.078358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97dbb67df0c9470d4481d71f876e1b1c9dd90b88 | 1,049 | py | Python | tests/legacy/test_multiprocess.py | EEmGuzman/orphics | f8f25f9db7c9104dba5cbeaac0b4924bf4f6920e | [
"BSD-2-Clause"
] | 10 | 2018-01-12T16:12:11.000Z | 2021-02-11T18:46:47.000Z | tests/legacy/test_multiprocess.py | EEmGuzman/orphics | f8f25f9db7c9104dba5cbeaac0b4924bf4f6920e | [
"BSD-2-Clause"
] | 20 | 2016-11-17T20:20:53.000Z | 2021-02-02T10:08:38.000Z | tests/legacy/test_multiprocess.py | EEmGuzman/orphics | f8f25f9db7c9104dba5cbeaac0b4924bf4f6920e | [
"BSD-2-Clause"
] | 17 | 2017-04-28T23:28:16.000Z | 2021-08-15T20:28:25.000Z | import numpy as np
from enlib import bench, enmap
from math import ceil
import multiprocessing
# number of coordinates to transform
N = 96000013
# this should be obtained using multiprocessing.get_cpu_count()
Njobs = 12
th = np.random.uniform(0,90,N)
phi = np.random.uniform(0,90,N)
shape,wcs = enmap.rect_geometry(1... | 23.311111 | 84 | 0.695901 | 171 | 1,049 | 4.222222 | 0.45614 | 0.033241 | 0.041551 | 0.044321 | 0.116343 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.034169 | 0.163012 | 1,049 | 44 | 85 | 23.840909 | 0.788155 | 0.187798 | 0 | 0 | 0 | 0 | 0.0275 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0 | null | null | 0 | 0.153846 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97ddfce863efc7008944ccf5ce4d5ca3dba8e9be | 606 | py | Python | limix/stats/__init__.py | huangyh09/limix | bed5b8e0aaa9b11f19bdd13b76d21510e56064be | [
"Apache-2.0"
] | 93 | 2017-05-25T21:54:45.000Z | 2022-03-30T14:51:01.000Z | limix/stats/__init__.py | huangyh09/limix | bed5b8e0aaa9b11f19bdd13b76d21510e56064be | [
"Apache-2.0"
] | 90 | 2017-04-20T16:59:41.000Z | 2022-02-02T17:40:58.000Z | limix/stats/__init__.py | huangyh09/limix | bed5b8e0aaa9b11f19bdd13b76d21510e56064be | [
"Apache-2.0"
] | 28 | 2017-05-31T21:59:19.000Z | 2022-02-09T18:12:51.000Z | """
Statistics.
"""
from ._allele import allele_expectation, allele_frequency, compute_dosage
from ._chi2 import Chi2Mixture
from ._confusion import confusion_matrix
from ._kinship import linear_kinship
from ._lrt import lrt_pvalues
from ._pca import pca
from ._pvalue import empirical_pvalues, multipletests
from ._ran... | 22.444444 | 73 | 0.747525 | 64 | 606 | 6.640625 | 0.375 | 0.08 | 0.108235 | 0.150588 | 0.211765 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.163366 | 606 | 26 | 74 | 23.307692 | 0.832347 | 0.018152 | 0 | 0 | 0 | 0 | 0.258944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97deceaefbef7c911d55731fed541479f19764d4 | 2,929 | py | Python | bot.py | Bubblesphere/ay-discord-bot | 34d44f6442b4231b18fdf90f9eb13a8b79207aee | [
"MIT"
] | 1 | 2018-07-30T02:22:01.000Z | 2018-07-30T02:22:01.000Z | bot.py | Bubblesphere/ay-discord-bot | 34d44f6442b4231b18fdf90f9eb13a8b79207aee | [
"MIT"
] | 1 | 2021-06-01T21:24:13.000Z | 2021-06-01T21:24:13.000Z | bot.py | Bubblesphere/ay-discord-bot | 34d44f6442b4231b18fdf90f9eb13a8b79207aee | [
"MIT"
] | 1 | 2017-10-01T18:40:28.000Z | 2017-10-01T18:40:28.000Z | ''' Discord Bot '''
import os
import praw
from discord.ext import commands
from dotenv import load_dotenv, find_dotenv
from random import randint, choice
import helper
load_dotenv(find_dotenv())
REDDIT = praw.Reddit(
client_id=os.environ.get("REDDIT_CLIENT_ID"),
client_secret=os.environ.get("REDDIT_CLIENT_... | 26.627273 | 79 | 0.637419 | 369 | 2,929 | 4.96748 | 0.428184 | 0.03928 | 0.074195 | 0.104746 | 0.308783 | 0.282597 | 0.282597 | 0.077469 | 0 | 0 | 0 | 0.004464 | 0.235234 | 2,929 | 109 | 80 | 26.87156 | 0.813839 | 0.04097 | 0 | 0.121212 | 0 | 0 | 0.183581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.121212 | 0.090909 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
97e2c85c6c611541377a5573f9c27e9fe16c9a9f | 541 | py | Python | server/edd/rest/urls.py | zhwycsz/edd | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-04-07T03:14:52.000Z | 2020-04-07T03:14:52.000Z | server/edd/rest/urls.py | zhwycsz/edd | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | [
"BSD-3-Clause-LBNL"
] | null | null | null | server/edd/rest/urls.py | zhwycsz/edd | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | [
"BSD-3-Clause-LBNL"
] | null | null | null | # coding: utf-8
from django.urls import include, path
from . import routers, views
app_name = "edd.rest"
###################################################################################################
# Use routers & supporting frameworks to construct URL patterns
##############################################... | 30.055556 | 99 | 0.451017 | 48 | 541 | 4.958333 | 0.645833 | 0.063025 | 0.10084 | 0.159664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002058 | 0.101664 | 541 | 17 | 100 | 31.823529 | 0.487654 | 0.138632 | 0 | 0 | 0 | 0 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e3db3da22f31e1123bcbe4ee1fe4121155d5c8 | 2,532 | py | Python | test-common/integrationtest/testcase/test_setlimit.py | imotai8915/fedb | fe0c130f70206325f130f00be6c1483c9c36d113 | [
"Apache-2.0"
] | 1 | 2021-08-23T12:02:30.000Z | 2021-08-23T12:02:30.000Z | test-common/integrationtest/testcase/test_setlimit.py | imotai8915/fedb | fe0c130f70206325f130f00be6c1483c9c36d113 | [
"Apache-2.0"
] | null | null | null | test-common/integrationtest/testcase/test_setlimit.py | imotai8915/fedb | fe0c130f70206325f130f00be6c1483c9c36d113 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 4Paradigm
#
# 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 ... | 37.235294 | 88 | 0.597551 | 326 | 2,532 | 4.576687 | 0.355828 | 0.128686 | 0.107239 | 0.193029 | 0.455764 | 0.260054 | 0.077748 | 0.041555 | 0 | 0 | 0 | 0.042983 | 0.237362 | 2,532 | 67 | 89 | 37.791045 | 0.729674 | 0.265403 | 0 | 0 | 0 | 0 | 0.369154 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e821b1ca9f46108d3a9bdc11d01d1e3f120fed | 19,243 | py | Python | netman/adapters/switches/remote.py | internap/netman | 8760f168cf056ce4428d239610514969e5f9bf56 | [
"Apache-2.0"
] | 38 | 2015-11-30T10:11:42.000Z | 2022-02-10T18:31:44.000Z | netman/adapters/switches/remote.py | internap/netman | 8760f168cf056ce4428d239610514969e5f9bf56 | [
"Apache-2.0"
] | 143 | 2015-12-10T19:00:42.000Z | 2020-08-20T13:51:42.000Z | netman/adapters/switches/remote.py | internap/netman | 8760f168cf056ce4428d239610514969e5f9bf56 | [
"Apache-2.0"
] | 15 | 2015-12-14T23:03:30.000Z | 2019-01-15T19:35:45.000Z | # Copyright 2015 Internap.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 43.242697 | 125 | 0.632802 | 2,350 | 19,243 | 4.949362 | 0.10766 | 0.055025 | 0.033531 | 0.025793 | 0.596423 | 0.508899 | 0.450692 | 0.383888 | 0.326369 | 0.282865 | 0 | 0.001361 | 0.236606 | 19,243 | 444 | 126 | 43.34009 | 0.790402 | 0.028374 | 0 | 0.2 | 0 | 0 | 0.159824 | 0.06439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244776 | false | 0.002985 | 0.047761 | 0.035821 | 0.355224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97e92537bd1449bdddf944713cc44ffdeb6309ba | 514 | py | Python | tests/test_rank_data.py | rjenc29/numerical | 3cf91915f7ea3a6390fc345ae1bfcda3273031a6 | [
"MIT"
] | 1 | 2017-11-26T10:09:23.000Z | 2017-11-26T10:09:23.000Z | tests/test_rank_data.py | rjenc29/numerical | 3cf91915f7ea3a6390fc345ae1bfcda3273031a6 | [
"MIT"
] | null | null | null | tests/test_rank_data.py | rjenc29/numerical | 3cf91915f7ea3a6390fc345ae1bfcda3273031a6 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.stats import rankdata
from sklearn.datasets import load_iris
from utilities.rank_data import rank_data
def test_rank_data():
data = load_iris().data
# rank the data all at once
output = rank_data(data)
# check each column versus scipy equivalent
for i in range(data... | 21.416667 | 50 | 0.680934 | 72 | 514 | 4.652778 | 0.569444 | 0.095522 | 0.071642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002532 | 0.231518 | 514 | 23 | 51 | 22.347826 | 0.84557 | 0.13035 | 0 | 0 | 0 | 0 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97ea0d2f986a55cdcfcde3168cc8ffc849cc3e17 | 3,834 | py | Python | getinfo.py | GoogleCloudPlatform/git-rv | 918a4adae67f43fe4cafeafbc086f089f60e31a6 | [
"Apache-2.0"
] | null | null | null | getinfo.py | GoogleCloudPlatform/git-rv | 918a4adae67f43fe4cafeafbc086f089f60e31a6 | [
"Apache-2.0"
] | null | null | null | getinfo.py | GoogleCloudPlatform/git-rv | 918a4adae67f43fe4cafeafbc086f089f60e31a6 | [
"Apache-2.0"
] | 1 | 2019-04-20T23:06:45.000Z | 2019-04-20T23:06:45.000Z | """Get info command for git-rv command line tool.
Prints the information for the current review if there is one.
"""
import utils
class GetInfoAction(object):
"""A state machine that gets and prints current branch info.
Attributes:
__branch: String; containing the name of the current branch.
... | 33.051724 | 80 | 0.61085 | 460 | 3,834 | 4.967391 | 0.280435 | 0.078775 | 0.051204 | 0.03326 | 0.286214 | 0.265208 | 0.197812 | 0.141794 | 0.141794 | 0.095405 | 0 | 0.001909 | 0.316901 | 3,834 | 115 | 81 | 33.33913 | 0.870561 | 0 | 0 | 0.2 | 0 | 0 | 0.079751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97ee656230da7e1c8f204fd7d140aa780f387fe4 | 11,698 | py | Python | parsimony/algorithms/bases.py | nguigs/pylearn-parsimony | f712d2828823d6d55a2470ce060bcaeda2d0589a | [
"BSD-3-Clause"
] | 41 | 2015-02-27T13:26:01.000Z | 2021-07-13T12:48:14.000Z | parsimony/algorithms/bases.py | nguigs/pylearn-parsimony | f712d2828823d6d55a2470ce060bcaeda2d0589a | [
"BSD-3-Clause"
] | 31 | 2015-01-12T15:02:45.000Z | 2022-02-10T07:11:07.000Z | parsimony/algorithms/bases.py | nguigs/pylearn-parsimony | f712d2828823d6d55a2470ce060bcaeda2d0589a | [
"BSD-3-Clause"
] | 15 | 2015-01-12T14:48:39.000Z | 2021-07-13T12:48:32.000Z | # -*- coding: utf-8 -*-
"""
The :mod:`parsimony.algorithms.bases` module includes several base classes
for using and creating algorithms.
Algorithms may not store states. I.e., if they are classes, do not keep
references to objects with state in the algorithm objects. It should be
possible to copy and share algorithms... | 31.530997 | 79 | 0.633014 | 1,377 | 11,698 | 5.294844 | 0.243283 | 0.01975 | 0.012344 | 0.01207 | 0.21506 | 0.155397 | 0.14031 | 0.118639 | 0.071047 | 0.026334 | 0 | 0.006974 | 0.276799 | 11,698 | 370 | 80 | 31.616216 | 0.854846 | 0.518807 | 0 | 0.245614 | 0 | 0 | 0.086415 | 0 | 0 | 0 | 0 | 0.002703 | 0 | 1 | 0.201754 | false | 0 | 0.052632 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97f22bfa35408db0c6a4b26c331d672aa870f000 | 439 | py | Python | tests/core/usage/audit_usage_test.py | paulo-sampaio/detect-secrets | 73ffbc35a72cb316d9e1842cc131b6098cf3c36a | [
"Apache-2.0"
] | 2,212 | 2018-04-03T20:58:42.000Z | 2022-03-31T17:58:38.000Z | tests/core/usage/audit_usage_test.py | paulo-sampaio/detect-secrets | 73ffbc35a72cb316d9e1842cc131b6098cf3c36a | [
"Apache-2.0"
] | 354 | 2018-04-03T16:29:55.000Z | 2022-03-31T18:26:26.000Z | tests/core/usage/audit_usage_test.py | paulo-sampaio/detect-secrets | 73ffbc35a72cb316d9e1842cc131b6098cf3c36a | [
"Apache-2.0"
] | 298 | 2018-04-02T19:35:15.000Z | 2022-03-28T04:52:14.000Z | import pytest
from detect_secrets.core.usage import ParserBuilder
@pytest.fixture
def parser():
return ParserBuilder().add_console_use_arguments()
def test_normal_mode_requires_single_file(parser):
with pytest.raises(SystemExit):
parser.parse_args(['audit', 'fileA', 'fileB'])
def test_diff_mode_r... | 23.105263 | 55 | 0.740319 | 55 | 439 | 5.618182 | 0.6 | 0.045307 | 0.10356 | 0.142395 | 0.368932 | 0.368932 | 0.368932 | 0.368932 | 0.368932 | 0.368932 | 0 | 0 | 0.136674 | 439 | 18 | 56 | 24.388889 | 0.815303 | 0 | 0 | 0.181818 | 0 | 0 | 0.070615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97f276bcf523a4bfc30fe1dff9ed335c488f05a2 | 2,780 | py | Python | cfgov/ask_cfpb/migrations/0022_add_remaining_answer_fields_to_answer_page.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 1 | 2019-11-26T20:18:22.000Z | 2019-11-26T20:18:22.000Z | cfgov/ask_cfpb/migrations/0022_add_remaining_answer_fields_to_answer_page.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 8 | 2021-03-11T00:55:51.000Z | 2022-02-13T21:10:14.000Z | cfgov/ask_cfpb/migrations/0022_add_remaining_answer_fields_to_answer_page.py | higs4281/cfgov-refresh | a02b193fb2373d443265c21845adf8a196e05675 | [
"CC0-1.0"
] | 1 | 2019-12-28T14:04:07.000Z | 2019-12-28T14:04:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-14 08:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('v1', '0148_relatedresource'),
... | 39.714286 | 229 | 0.630935 | 290 | 2,780 | 5.893103 | 0.389655 | 0.047396 | 0.100059 | 0.121123 | 0.38151 | 0.334699 | 0.238736 | 0.131071 | 0.131071 | 0.131071 | 0 | 0.016489 | 0.258273 | 2,780 | 69 | 230 | 40.289855 | 0.812318 | 0.02482 | 0 | 0.483871 | 1 | 0 | 0.27031 | 0.009232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97f706bb5c91a91633b1168f264e03b94a17f205 | 3,235 | py | Python | main_app/migrations/0001_initial.py | ncbentley/capstone | bbaa441f362f9ca203435724d07616dd4a43ab94 | [
"PostgreSQL",
"MIT"
] | null | null | null | main_app/migrations/0001_initial.py | ncbentley/capstone | bbaa441f362f9ca203435724d07616dd4a43ab94 | [
"PostgreSQL",
"MIT"
] | 7 | 2021-04-08T21:25:57.000Z | 2022-03-12T00:42:19.000Z | main_app/migrations/0001_initial.py | ncbentley/capstone | bbaa441f362f9ca203435724d07616dd4a43ab94 | [
"PostgreSQL",
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-08 22:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 43.716216 | 137 | 0.584544 | 330 | 3,235 | 5.581818 | 0.248485 | 0.039088 | 0.060803 | 0.095548 | 0.587948 | 0.573833 | 0.532573 | 0.532573 | 0.532573 | 0.532573 | 0 | 0.013141 | 0.270788 | 3,235 | 73 | 138 | 44.315068 | 0.767698 | 0.01391 | 0 | 0.530303 | 1 | 0 | 0.092848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.106061 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f0bb483404a3481117a7c2bf1762f7902493a01 | 7,739 | py | Python | leetcode_python/Design/design_search_autocomplete_system.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Design/design_search_autocomplete_system.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | null | null | null | leetcode_python/Design/design_search_autocomplete_system.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | # 642 design_search_autocomplete_system.py
# Design a search autocomplete system for a search engine. Users may input a sentence (at least one word and end with a special character ‘#’). For each character they type except ‘#’, you need to return the top 3 historical hot sentences that have prefix the same as the part ... | 38.889447 | 372 | 0.618814 | 1,072 | 7,739 | 4.44403 | 0.258396 | 0.010495 | 0.016373 | 0.024139 | 0.129303 | 0.111251 | 0.089421 | 0.074307 | 0.051637 | 0.051637 | 0 | 0.012189 | 0.279106 | 7,739 | 198 | 373 | 39.085859 | 0.841728 | 0 | 0 | 0.305556 | 0 | 0 | 0.005644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f1f6ed0150f4feae5af463dc2b47201f88b3396 | 979 | py | Python | examples/shap/multiclass_classification.py | PeterSulcs/mlflow | 14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051 | [
"Apache-2.0"
] | 10,351 | 2018-07-31T02:52:49.000Z | 2022-03-31T23:33:13.000Z | examples/shap/multiclass_classification.py | PeterSulcs/mlflow | 14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051 | [
"Apache-2.0"
] | 3,733 | 2018-07-31T01:38:51.000Z | 2022-03-31T23:56:25.000Z | examples/shap/multiclass_classification.py | PeterSulcs/mlflow | 14c48e7bb1ca6cd6a3c1b249a486cd98bd5e7051 | [
"Apache-2.0"
] | 2,596 | 2018-07-31T06:38:39.000Z | 2022-03-31T23:56:32.000Z | import os
import numpy as np
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
import shap
import mlflow
from utils import to_pandas_Xy
# prepare training data
X, y = to_pandas_Xy(load_iris())
# train a model
model = RandomForestClassifier()
model.fit(X, y)
# log an expla... | 25.763158 | 84 | 0.775281 | 152 | 979 | 4.809211 | 0.421053 | 0.049248 | 0.02736 | 0.051984 | 0.169631 | 0.169631 | 0.169631 | 0.079343 | 0 | 0 | 0 | 0.004619 | 0.115424 | 979 | 37 | 85 | 26.459459 | 0.839492 | 0.122574 | 0 | 0 | 0 | 0 | 0.076291 | 0.026995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3f1f9f6712a6660c7ac6a2fcd62dba815ce119d7 | 726 | py | Python | 2021_19.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | 2021_19.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | 2021_19.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | import sys
L=[s.strip() for s in open(sys.argv[1]).read().split("---") if "," in s]
B,*N=[{tuple(map(int,l.split(','))) for l in s.split('\n')} for s in L]
I=set(range(len(N)))
T=lambda i,x,y,z:t(i//8,[x,-x][i&4>0],[y,-y][i&2>0],[z,-z][i&1])
t=lambda i,x,y,z:([x,y,z][i//2],[y,z,x,y][(i+1)//2],[z,y,x][i%3])
a=lambda A,... | 34.571429 | 99 | 0.513774 | 202 | 726 | 1.846535 | 0.262376 | 0.032172 | 0.024129 | 0.048257 | 0.058981 | 0.058981 | 0 | 0 | 0 | 0 | 0 | 0.03962 | 0.130854 | 726 | 20 | 100 | 36.3 | 0.551506 | 0 | 0 | 0 | 0 | 0 | 0.0427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.111111 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f23af699740efaa8b868960a68bf08279e74cc9 | 590 | py | Python | dj_ToDo-PlusPlus/server/api/serializers.py | ShahriarDhruvo/dj_test_todo | 130aed4931de09dc7dac8f6a75f0b7a015703759 | [
"MIT"
] | null | null | null | dj_ToDo-PlusPlus/server/api/serializers.py | ShahriarDhruvo/dj_test_todo | 130aed4931de09dc7dac8f6a75f0b7a015703759 | [
"MIT"
] | null | null | null | dj_ToDo-PlusPlus/server/api/serializers.py | ShahriarDhruvo/dj_test_todo | 130aed4931de09dc7dac8f6a75f0b7a015703759 | [
"MIT"
] | null | null | null | # Serializers are nothing but a way to convert any python model into json data
# It means to convert the python model into json format by using serializer so that
# we can pass that around to use in api
from rest_framework import serializers
from .models import Work, Task
class WorkSerializer(serializers.ModelSeria... | 31.052632 | 84 | 0.705085 | 77 | 590 | 5.220779 | 0.623377 | 0.044776 | 0.074627 | 0.094527 | 0.313433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235593 | 590 | 19 | 85 | 31.052632 | 0.891353 | 0.438983 | 0 | 0.4 | 0 | 0 | 0.042945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f2d514b5c34d6df0969474c4fe08fbd86430572 | 1,194 | py | Python | simple_object_tracking/utils/geometry.py | RubenEu/simple-object-tracking | 3affd34ba4abf91088adc4630b4a21f0dc746682 | [
"MIT"
] | 1 | 2021-10-02T10:31:22.000Z | 2021-10-02T10:31:22.000Z | simple_object_tracking/utils/geometry.py | RubenEu/simple-object-tracking | 3affd34ba4abf91088adc4630b4a21f0dc746682 | [
"MIT"
] | null | null | null | simple_object_tracking/utils/geometry.py | RubenEu/simple-object-tracking | 3affd34ba4abf91088adc4630b4a21f0dc746682 | [
"MIT"
] | 1 | 2021-10-02T10:31:24.000Z | 2021-10-02T10:31:24.000Z | from typing import List, Tuple
import numpy as np
from simple_object_detection.typing import Point2D
def point_distance_to_line(point: Point2D, line: Tuple[Point2D, Point2D]) -> float:
"""Calcula la distancia entre un punto y una recta definida por sus extremos.
Extraído de:
https://stackoverflow.com/qu... | 37.3125 | 98 | 0.706868 | 186 | 1,194 | 4.473118 | 0.467742 | 0.0625 | 0.076923 | 0.06851 | 0.221154 | 0.081731 | 0.081731 | 0 | 0 | 0 | 0 | 0.032888 | 0.185092 | 1,194 | 31 | 99 | 38.516129 | 0.822199 | 0.48995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f2d9dae6d95a5d6cfe8232962e807e2dfcb5ed5 | 3,461 | py | Python | examples/NIPS/MNIST/noisy_sequence_detection/scenario001/generate_data.py | MarcRoigVilamala/DeepProbCEP | 0d82f6c237b50122734afe758ef42bdb070ace7c | [
"MIT"
] | 6 | 2020-09-10T03:40:53.000Z | 2021-05-26T07:30:20.000Z | examples/NIPS/MNIST/noisy_sequence_detection/scenario001/generate_data.py | MarcRoigVilamala/DeepProbCEP | 0d82f6c237b50122734afe758ef42bdb070ace7c | [
"MIT"
] | null | null | null | examples/NIPS/MNIST/noisy_sequence_detection/scenario001/generate_data.py | MarcRoigVilamala/DeepProbCEP | 0d82f6c237b50122734afe758ef42bdb070ace7c | [
"MIT"
] | 1 | 2020-11-23T15:55:57.000Z | 2020-11-23T15:55:57.000Z | import os
import torchvision
from examples.NIPS.generate_data_utils import mnist_true_values, gather_examples, get_digit_for_initiated_at, \
get_correct_digit_for_initiated_at, default_noises, default_folder_name
trainset = torchvision.datasets.MNIST(root='../../../../../data/MNIST', train=True, download=True)
te... | 44.948052 | 120 | 0.718001 | 427 | 3,461 | 5.274005 | 0.149883 | 0.099911 | 0.034636 | 0.033748 | 0.474689 | 0.314831 | 0.225577 | 0.120782 | 0.120782 | 0.120782 | 0 | 0.001099 | 0.210922 | 3,461 | 76 | 121 | 45.539474 | 0.823508 | 0 | 0 | 0.181818 | 1 | 0 | 0.072233 | 0.026871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.045455 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3c93ccabc541631e182a66a0f1e8878e946902 | 7,562 | py | Python | jade/antibody/split_structure.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 5 | 2017-02-24T08:55:51.000Z | 2020-09-01T01:59:33.000Z | jade/antibody/split_structure.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 2 | 2020-10-27T21:03:50.000Z | 2021-11-15T17:46:45.000Z | jade/antibody/split_structure.py | SchiefLab/Jade | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | [
"BSD-3-Clause"
] | 2 | 2019-08-01T11:21:14.000Z | 2020-09-01T01:59:35.000Z | #Jared Adolf-Bryfogle
#Functions for splitting antibody structures.
from collections import defaultdict
import sys
import os
import glob
import copy
from jade.basic.structure.BasicPose import BasicPose
from jade.antibody import ab_db
def run_main(ab_dir, output_dir, only_dimer=True):
if not os.path.exists(ab_... | 29.654902 | 129 | 0.628537 | 1,165 | 7,562 | 3.780258 | 0.128755 | 0.114441 | 0.038147 | 0.054496 | 0.621708 | 0.544732 | 0.488647 | 0.447548 | 0.439146 | 0.38079 | 0 | 0.011238 | 0.258662 | 7,562 | 254 | 130 | 29.771654 | 0.774349 | 0.028828 | 0 | 0.482143 | 0 | 0 | 0.076957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f48f8feb6acf2c1f89c2cdbe7d5bca2390e615e | 1,312 | py | Python | src/humtemp/entities.py | defreng/humtemp | b0355009ff4060ee1a702956ba27918c4b71cd4f | [
"MIT"
] | null | null | null | src/humtemp/entities.py | defreng/humtemp | b0355009ff4060ee1a702956ba27918c4b71cd4f | [
"MIT"
] | null | null | null | src/humtemp/entities.py | defreng/humtemp | b0355009ff4060ee1a702956ba27918c4b71cd4f | [
"MIT"
] | null | null | null | from typing import *
from pydantic import BaseModel
from humtemp.dto.observation import LabId
BucketKey = NewType('BucketKey', str)
class BucketEntity(BaseModel):
KEY_PREFIX: ClassVar[str] = 'bucket'
key: BucketKey
num_observations: int = 0
sum_temp: float = 0.0
sum_humidity: float = 0.0
... | 25.72549 | 82 | 0.634146 | 166 | 1,312 | 4.855422 | 0.349398 | 0.093052 | 0.094293 | 0.032258 | 0.198511 | 0.124069 | 0.124069 | 0.124069 | 0.124069 | 0.124069 | 0 | 0.010352 | 0.26372 | 1,312 | 50 | 83 | 26.24 | 0.824017 | 0 | 0 | 0.305556 | 0 | 0 | 0.083841 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.083333 | 0.055556 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f4dffc5a16ef7cd21e49fb4c449111355a24b7e | 604 | py | Python | 10_request_response/tutorial/views.py | FedericoStra/pyramid_tutorial | d89da9a1ec7f17b7893a4dd33dcaecd2c6e3263d | [
"MIT"
] | null | null | null | 10_request_response/tutorial/views.py | FedericoStra/pyramid_tutorial | d89da9a1ec7f17b7893a4dd33dcaecd2c6e3263d | [
"MIT"
] | null | null | null | 10_request_response/tutorial/views.py | FedericoStra/pyramid_tutorial | d89da9a1ec7f17b7893a4dd33dcaecd2c6e3263d | [
"MIT"
] | null | null | null | from pyramid.httpexceptions import HTTPFound
from pyramid.response import Response
from pyramid.view import view_config
class TutorialViews:
def __init__(self, request):
self.request = request
@view_config(route_name='home')
def home(self):
return HTTPFound(location='/plain')
@view_c... | 27.454545 | 66 | 0.667219 | 75 | 604 | 5.24 | 0.413333 | 0.111959 | 0.076336 | 0.096692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211921 | 604 | 21 | 67 | 28.761905 | 0.82563 | 0 | 0 | 0 | 0 | 0 | 0.149007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f50139b5dc0e8ae967208e6ba54a90b40808701 | 2,645 | py | Python | src/secure_share/api/views.py | wooyek/secure-share | b3b1dd6a03dc278e881e866a5554254523d33a81 | [
"MIT"
] | null | null | null | src/secure_share/api/views.py | wooyek/secure-share | b3b1dd6a03dc278e881e866a5554254523d33a81 | [
"MIT"
] | 1 | 2020-05-01T10:53:25.000Z | 2020-05-01T10:53:25.000Z | src/secure_share/api/views.py | wooyek/secure-share | b3b1dd6a03dc278e881e866a5554254523d33a81 | [
"MIT"
] | null | null | null | # coding=utf-8
# Copyright (c) 2018 Janusz Skonieczny
import logging
from django.db.models import Count
from django.db.models.functions import TruncDate
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.viewsets import GenericViewSet, ModelViewSet, ViewSet
from .... | 30.056818 | 182 | 0.667297 | 303 | 2,645 | 5.735974 | 0.425743 | 0.031646 | 0.029344 | 0.020713 | 0.264672 | 0.156502 | 0.128884 | 0.095512 | 0.095512 | 0.095512 | 0 | 0.020429 | 0.24121 | 2,645 | 87 | 183 | 30.402299 | 0.845541 | 0.302079 | 0 | 0.102564 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.205128 | 0 | 0.589744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3f644a699507991d299f4b2c5106bc5d32d86ac9 | 460 | py | Python | CMPE451/practice_app/recommend/migrations/0003_auto_20200527_1229.py | oztasoi/bachelor-projects | a3e3a39efc9fed09db7290227848552f9604befa | [
"MIT"
] | null | null | null | CMPE451/practice_app/recommend/migrations/0003_auto_20200527_1229.py | oztasoi/bachelor-projects | a3e3a39efc9fed09db7290227848552f9604befa | [
"MIT"
] | null | null | null | CMPE451/practice_app/recommend/migrations/0003_auto_20200527_1229.py | oztasoi/bachelor-projects | a3e3a39efc9fed09db7290227848552f9604befa | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-27 12:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recommend', '0002_remove_product_vendor'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='orde... | 24.210526 | 107 | 0.636957 | 48 | 460 | 6 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054755 | 0.245652 | 460 | 18 | 108 | 25.555556 | 0.775216 | 0.097826 | 0 | 0 | 1 | 0 | 0.227603 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f660d6b041d705a0bc799fd304554e394586e22 | 481 | py | Python | bottomline/blweb/migrations/0008_alter_vehicleconfig_config_name.py | mcm219/BottomLine | db82eef403c79bffa3864c4db6bc336632abaca5 | [
"MIT"
] | null | null | null | bottomline/blweb/migrations/0008_alter_vehicleconfig_config_name.py | mcm219/BottomLine | db82eef403c79bffa3864c4db6bc336632abaca5 | [
"MIT"
] | 1 | 2021-06-14T02:20:40.000Z | 2021-06-14T02:20:40.000Z | bottomline/blweb/migrations/0008_alter_vehicleconfig_config_name.py | mcm219/BottomLine | db82eef403c79bffa3864c4db6bc336632abaca5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-07-04 21:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blweb', '0007_vehicleconfig'),
]
operations = [
migrations.AlterField(
model_name='vehicleconfig',
name='config_name... | 25.315789 | 140 | 0.638254 | 55 | 481 | 5.490909 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060942 | 0.24948 | 481 | 18 | 141 | 26.722222 | 0.775623 | 0.093555 | 0 | 0 | 1 | 0 | 0.195853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f66b671cf776c2d34acbd89bb80d21914f4b597 | 1,686 | py | Python | pyrobolearn/priorities/constraints/kinematic_constraints.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 2 | 2021-01-21T21:08:30.000Z | 2022-03-29T16:45:49.000Z | pyrobolearn/priorities/constraints/kinematic_constraints.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | null | null | null | pyrobolearn/priorities/constraints/kinematic_constraints.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 1 | 2020-09-29T21:25:39.000Z | 2020-09-29T21:25:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the various kinematic constraints used in QP.
References:
[1] "Quadratic Programming in Python" (https://scaron.info/blog/quadratic-programming-in-python.html), Caron, 2017
[2] "OpenSoT: A whole-body control library for the compliant humanoid robot COMAN... | 20.560976 | 118 | 0.717082 | 181 | 1,686 | 6.502762 | 0.585635 | 0.095157 | 0.112999 | 0.047579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017291 | 0.17675 | 1,686 | 81 | 119 | 20.814815 | 0.830692 | 0.419336 | 0 | 0.222222 | 0 | 0 | 0.178303 | 0.025779 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f6d80d895cca21e9f0e8e147e80112366bc39cc | 1,138 | py | Python | tests/test_conditions.py | dlesbre/mlpp | 1a61a3632dfae19beef46460e54a9d9d7b64f2c5 | [
"MIT"
] | null | null | null | tests/test_conditions.py | dlesbre/mlpp | 1a61a3632dfae19beef46460e54a9d9d7b64f2c5 | [
"MIT"
] | null | null | null | tests/test_conditions.py | dlesbre/mlpp | 1a61a3632dfae19beef46460e54a9d9d7b64f2c5 | [
"MIT"
] | null | null | null | from mlpproc.conditions import *
from mlpproc.defaults import Preprocessor
def test_lexer():
test = [
("a==b", ["a", "==", "b"]),
("not a\tand\nb!=notop", ["not", "a", "and", "b", "!=", "notop"]),
("allo=(d))not(b and c)", ["allo=", "(", "d", ")", ")", "not", "(", "b", "and", "c", ")"]),
]
for string, tokenl... | 36.709677 | 93 | 0.574692 | 146 | 1,138 | 4.390411 | 0.273973 | 0.117005 | 0.118565 | 0.162246 | 0.287051 | 0.177847 | 0.137285 | 0.137285 | 0 | 0 | 0 | 0.002146 | 0.181019 | 1,138 | 30 | 94 | 37.933333 | 0.685622 | 0 | 0 | 0.074074 | 0 | 0 | 0.212654 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f6e5d52ae7571a4e46c914c4dcfd4b7cdce5e05 | 508 | py | Python | source/appModules/lockapphost.py | SWEN-712/screen-reader-brandonp728 | e30c25ad2d10ce632fac0548696a61a872328f59 | [
"bzip2-1.0.6"
] | null | null | null | source/appModules/lockapphost.py | SWEN-712/screen-reader-brandonp728 | e30c25ad2d10ce632fac0548696a61a872328f59 | [
"bzip2-1.0.6"
] | null | null | null | source/appModules/lockapphost.py | SWEN-712/screen-reader-brandonp728 | e30c25ad2d10ce632fac0548696a61a872328f59 | [
"bzip2-1.0.6"
] | null | null | null | #A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2015 NV Access Limited
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
import appModuleHandler
class AppModule(appModuleHandler.AppModule):
def event_gainFocus(self, obj, nextHandler):
if obj.windowClassName... | 31.75 | 74 | 0.769685 | 70 | 508 | 5.571429 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.165354 | 508 | 15 | 75 | 33.866667 | 0.910377 | 0.574803 | 0 | 0 | 0 | 0 | 0.104762 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58aa9b73c8d4049b4de71d12b53da61ad0f3eaa7 | 309 | py | Python | apps/exts.py | yt1105260634/flask-blog | 1f3a98a3d4541e38159c8175cac5fa20f1a71051 | [
"Apache-2.0"
] | null | null | null | apps/exts.py | yt1105260634/flask-blog | 1f3a98a3d4541e38159c8175cac5fa20f1a71051 | [
"Apache-2.0"
] | null | null | null | apps/exts.py | yt1105260634/flask-blog | 1f3a98a3d4541e38159c8175cac5fa20f1a71051 | [
"Apache-2.0"
] | null | null | null | # 导入类库
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_sqlalchemy import SQLAlchemy
# 实例化对象
bootstrap = Bootstrap()
mail = Mail()
db = SQLAlchemy()
# 封装函数 完成初始化
def config_extensions(app):
bootstrap.init_app(app=app)
mail.init_app(app=app)
db.init_app(app=app) | 15.45 | 39 | 0.744337 | 44 | 309 | 5.068182 | 0.363636 | 0.161435 | 0.134529 | 0.174888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168285 | 309 | 20 | 40 | 15.45 | 0.867704 | 0.071197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ab77ca27c06ed2e9691bed439ecbb6d76f9440 | 2,635 | py | Python | cmake/macros/compilePython.py | chunkified/usd-qt | 5a0b3265ad4ac85152bd724ff8ab396e8635ed20 | [
"Apache-2.0"
] | 124 | 2017-07-31T02:30:36.000Z | 2022-03-23T05:08:02.000Z | cmake/macros/compilePython.py | chunkified/usd-qt | 5a0b3265ad4ac85152bd724ff8ab396e8635ed20 | [
"Apache-2.0"
] | 36 | 2017-08-15T22:18:09.000Z | 2022-01-21T01:15:09.000Z | cmake/macros/compilePython.py | chunkified/usd-qt | 5a0b3265ad4ac85152bd724ff8ab396e8635ed20 | [
"Apache-2.0"
] | 36 | 2017-07-31T12:03:13.000Z | 2021-12-10T11:42:23.000Z | #
# Copyright 2016 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
# 6. Trademarks. T... | 39.328358 | 78 | 0.700949 | 391 | 2,635 | 4.664962 | 0.41688 | 0.034539 | 0.061404 | 0.019737 | 0.053728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013474 | 0.211385 | 2,635 | 66 | 79 | 39.924242 | 0.864293 | 0.598482 | 0 | 0.2 | 0 | 0 | 0.13052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ad2086edd1606b752c386d5a3699253e6f1745 | 2,003 | py | Python | pythran/optimizations/loop_full_unrolling.py | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/optimizations/loop_full_unrolling.py | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/optimizations/loop_full_unrolling.py | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | """ LoopFullUnrolling fully unrolls loops with static bounds. """
from pythran import metadata
from pythran.analyses import HasBreak, HasContinue, NodeCount
from pythran.openmp import OMPDirective
from pythran.passmanager import Transformation
from copy import deepcopy
import gast as ast
from functools import reduce
... | 34.534483 | 74 | 0.622566 | 255 | 2,003 | 4.823529 | 0.407843 | 0.044715 | 0.05122 | 0.034146 | 0.066667 | 0.035772 | 0.035772 | 0.035772 | 0 | 0 | 0 | 0.007013 | 0.288068 | 2,003 | 57 | 75 | 35.140351 | 0.85554 | 0.296056 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0.25 | 0.035714 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
58ae94afb5a786dcf500ceeb419a9eef410eddb2 | 2,951 | py | Python | fastrunner/serializers.py | QiChangYin/FasterRunner | bb55b86200c7b92dd23579200ec3839cacd72c79 | [
"MIT"
] | 2 | 2021-05-07T06:58:16.000Z | 2021-11-06T07:49:56.000Z | fastrunner/serializers.py | QiChangYin/FasterRunner | bb55b86200c7b92dd23579200ec3839cacd72c79 | [
"MIT"
] | null | null | null | fastrunner/serializers.py | QiChangYin/FasterRunner | bb55b86200c7b92dd23579200ec3839cacd72c79 | [
"MIT"
] | 1 | 2019-07-04T12:47:28.000Z | 2019-07-04T12:47:28.000Z | import json
from rest_framework import serializers
from fastrunner import models
from fastrunner.utils.parser import Parse
class ProjectSerializer(serializers.ModelSerializer):
"""
项目信息序列化
"""
class Meta:
model = models.Project
fields = ['id', 'name', 'desc', 'responsible', 'update_t... | 21.698529 | 79 | 0.624195 | 276 | 2,951 | 6.568841 | 0.282609 | 0.143409 | 0.07722 | 0.110314 | 0.377827 | 0.354661 | 0.325979 | 0.111418 | 0.111418 | 0.111418 | 0 | 0.000905 | 0.25144 | 2,951 | 135 | 80 | 21.859259 | 0.819828 | 0.046425 | 0 | 0.455882 | 0 | 0 | 0.098761 | 0.008261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.014706 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58afcac9184b510950a794b934b728a32cd30d9a | 1,079 | py | Python | python/day10a.py | hurryabit/adventofcode-2021 | 3f9949895fc5541eb050b427f1432a6c91b6297e | [
"Unlicense"
] | null | null | null | python/day10a.py | hurryabit/adventofcode-2021 | 3f9949895fc5541eb050b427f1432a6c91b6297e | [
"Unlicense"
] | null | null | null | python/day10a.py | hurryabit/adventofcode-2021 | 3f9949895fc5541eb050b427f1432a6c91b6297e | [
"Unlicense"
] | null | null | null | import io
EXAMPLE = """[({(<(())[]>[[{[]{<()<>>
[(()[<>])]({[<{<<[]>>(
{([(<{}[<>[]}>{[]{[(<()>
(((({<>}<{<{<>}{[]{[]{}
[[<[([]))<([[{}[[()]]]
[{[{({}]{}}([{[{{{}}([]
{<[[]]>}<{[{[{[]{()[[[]
[<(<(<(<{}))><([]([]()
<{([([[(<>()){}]>(<<{{
<{([{{}}[<[[[<>{}]]]>[]]"""
PAIRS = {
"(": ")",
"[": "]",
"{": "}",
... | 17.983333 | 58 | 0.39759 | 98 | 1,079 | 4.244898 | 0.540816 | 0.072115 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028536 | 0.253012 | 1,079 | 59 | 59 | 18.288136 | 0.487593 | 0 | 0 | 0 | 0 | 0 | 0.290083 | 0.212234 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.066667 | false | 0 | 0.022222 | 0 | 0.155556 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58bb509a56b14d3f803976ae92429715e5be0b79 | 662 | py | Python | Estrutura Sequêncial/Controle de pesca.py | abraaogleiber/Python-Estruturado | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | Estrutura Sequêncial/Controle de pesca.py | abraaogleiber/Python-Estruturado | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | Estrutura Sequêncial/Controle de pesca.py | abraaogleiber/Python-Estruturado | 0900dc31da2d8939a416a0e1a80dc8ff18c859d5 | [
"MIT"
] | null | null | null | """
Programa 013
Área de estudos.
data 16.11.2020 (Indefinida) Hs
@Autor: Abraão A. Silva
"""
# Coleta do dia e peso pescado.
dia = int(input('Dia da pesca.: '))
peso = float(input('Quantidade de pescados(kg).: '))
# O "excesso" tem o valor da quantidade pescada, menos o peso maximo permitido.
excesso = (peso - 5... | 26.48 | 84 | 0.670695 | 106 | 662 | 4.188679 | 0.5 | 0.054054 | 0.040541 | 0.045045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041145 | 0.155589 | 662 | 24 | 85 | 27.583333 | 0.753131 | 0.454683 | 0 | 0 | 0 | 0 | 0.494286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
58c798793d2df4053f889af9f9808e878501b09f | 2,880 | py | Python | storm_control/sc_hardware/logitech/rawData.py | emanuega/storm-5 | f41dba34d1ea219d80954f8b32f0c25b9e7a876c | [
"MIT"
] | null | null | null | storm_control/sc_hardware/logitech/rawData.py | emanuega/storm-5 | f41dba34d1ea219d80954f8b32f0c25b9e7a876c | [
"MIT"
] | null | null | null | storm_control/sc_hardware/logitech/rawData.py | emanuega/storm-5 | f41dba34d1ea219d80954f8b32f0c25b9e7a876c | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
## @file
#
# This is used to check the raw events that come from the joystick.
#
# Hazen 9/12
# Jeff 9/12
#
import pywinusb.hid as hid
## Gamepad310
#
# Encapsulates the interface to a Logitech gamepad joystick.
#
class Gamepad310():
## __init__
#
# Find the joysti... | 27.961165 | 86 | 0.643403 | 374 | 2,880 | 4.887701 | 0.449198 | 0.035011 | 0.016411 | 0.019694 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01169 | 0.287153 | 2,880 | 102 | 87 | 28.235294 | 0.878714 | 0.572917 | 0 | 0.068966 | 0 | 0 | 0.088596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ce47341d75245af4ea32e94e5982013d5daa61 | 634 | py | Python | tests/test_1.py | peq10/FRI | 0433d363cd4149583837559e67df1df83fe8fdd5 | [
"MIT"
] | null | null | null | tests/test_1.py | peq10/FRI | 0433d363cd4149583837559e67df1df83fe8fdd5 | [
"MIT"
] | null | null | null | tests/test_1.py | peq10/FRI | 0433d363cd4149583837559e67df1df83fe8fdd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 16:01:38 2020
@author: peter
"""
import FRI_detect.functions.simulate_spike_train
import FRI_detect.detect_spikes
import numpy as np
def test():
np.random.seed(0)
tau = 0.5
tk,_,t,x = FRI_detect.functions.simulate_spike_train.m... | 24.384615 | 102 | 0.679811 | 101 | 634 | 4.09901 | 0.643564 | 0.086957 | 0.072464 | 0.125604 | 0.173913 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0.205029 | 0.184543 | 634 | 25 | 103 | 25.36 | 0.595745 | 0.149842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58cf7f867471ed373f7387db8b648da413130c5b | 1,534 | py | Python | code/tools.py | denczo/FM_Synthesis | d94b53a74460da80e21d747953b74a2ce94a0b73 | [
"MIT"
] | 1 | 2021-01-10T00:43:46.000Z | 2021-01-10T00:43:46.000Z | code/tools.py | denczo/FM_Synthesis | d94b53a74460da80e21d747953b74a2ce94a0b73 | [
"MIT"
] | null | null | null | code/tools.py | denczo/FM_Synthesis | d94b53a74460da80e21d747953b74a2ce94a0b73 | [
"MIT"
] | 1 | 2022-03-23T06:49:33.000Z | 2022-03-23T06:49:33.000Z | import numpy as np
from code.waveform import Triangle, Sawtooth, SquareWave, Sine
# discrete integration where s is your signal as array and l is your first entry
def running_sum(s, l):
y = np.zeros(len(s))
y[0] = s[0] + l
for n in range(1, len(s)):
y[n] = s[n] + y[n - 1]
return y
def normal... | 29.5 | 80 | 0.627771 | 224 | 1,534 | 4.232143 | 0.276786 | 0.028481 | 0.021097 | 0.026371 | 0.396624 | 0.254219 | 0.156118 | 0.156118 | 0 | 0 | 0 | 0.006849 | 0.238592 | 1,534 | 51 | 81 | 30.078431 | 0.804795 | 0.050847 | 0 | 0.236842 | 0 | 0 | 0.083219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.026316 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58da276643ed5364089f7e51a19b7ba6918f9ae7 | 959 | py | Python | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spynnaker/pyNN/models/common/abstract_spike_recordable.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | 2 | 2020-11-01T13:22:11.000Z | 2020-11-01T13:22:20.000Z | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spynnaker/pyNN/models/common/abstract_spike_recordable.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spynnaker/pyNN/models/common/abstract_spike_recordable.py | Roboy/LSM_SpiNNaker_MyoArm | 04fa1eaf78778edea3ba3afa4c527d20c491718e | [
"BSD-3-Clause"
] | null | null | null | from six import add_metaclass
from abc import ABCMeta
from abc import abstractmethod
@add_metaclass(ABCMeta)
class AbstractSpikeRecordable(object):
""" Indicates that spikes can be recorded from this object
"""
@abstractmethod
def is_recording_spikes(self):
""" Determines if spikes are being ... | 29.060606 | 72 | 0.67049 | 113 | 959 | 5.584071 | 0.486726 | 0.080824 | 0.041204 | 0.050713 | 0.07607 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001416 | 0.263816 | 959 | 32 | 73 | 29.96875 | 0.892351 | 0.493222 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58da43ef7a5e2f5d1de8230baf981caa62828c0e | 304 | py | Python | face.py | hopkira/k9-assistant | 8ed075ccafe0b2d9b13e9508f90d5a7c45ecacf7 | [
"Unlicense"
] | null | null | null | face.py | hopkira/k9-assistant | 8ed075ccafe0b2d9b13e9508f90d5a7c45ecacf7 | [
"Unlicense"
] | null | null | null | face.py | hopkira/k9-assistant | 8ed075ccafe0b2d9b13e9508f90d5a7c45ecacf7 | [
"Unlicense"
] | null | null | null | import time
import picamera
import numpy as np
import cv2
with picamera.PiCamera() as camera:
camera.resolution = (320, 240)
camera.framerate = 24
time.sleep(2)
image = np.empty((240 * 320 * 3,), dtype=np.uint8)
camera.capture(image, 'bgr')
image = image.reshape((240, 320, 3))
| 21.714286 | 54 | 0.661184 | 44 | 304 | 4.568182 | 0.545455 | 0.059701 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103734 | 0.207237 | 304 | 13 | 55 | 23.384615 | 0.73029 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
58dbf2ec6e6f8d80c61ce8d8f24c1ffe86c33089 | 350 | py | Python | SB3/SP500_Returns.py | kbines/MScAI-Thesis | 629d9d33210f8bc98b206bf8f7d8bfd717b2a0aa | [
"Apache-2.0"
] | 1 | 2021-06-07T15:59:10.000Z | 2021-06-07T15:59:10.000Z | SB3/SP500_Returns.py | kbines/MScAI-Thesis | 629d9d33210f8bc98b206bf8f7d8bfd717b2a0aa | [
"Apache-2.0"
] | null | null | null | SB3/SP500_Returns.py | kbines/MScAI-Thesis | 629d9d33210f8bc98b206bf8f7d8bfd717b2a0aa | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import yfinance as yf
from ta.others import DailyReturnIndicator,CumulativeReturnIndicator
# get data
gspc= yf.Ticker("^GSPC")
df = gspc.history(start= '2007-01-01', end= '2020-12-31')
daily_returns = DailyReturnIndicator(close=df["close"])
df["daily_returns"] = daily_returns.daily_return()
df.to... | 20.588235 | 68 | 0.76 | 50 | 350 | 5.2 | 0.62 | 0.138462 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060703 | 0.105714 | 350 | 16 | 69 | 21.875 | 0.769968 | 0.022857 | 0 | 0 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
58e3ef807703a9f1ec135d5975019a857c2d0b69 | 10,192 | py | Python | clustering/plot_cluster_data.py | David-Loibl/found-in-transition | c17ddc07a46d8028d34ee290897e7a1b8cdaeeb8 | [
"MIT"
] | null | null | null | clustering/plot_cluster_data.py | David-Loibl/found-in-transition | c17ddc07a46d8028d34ee290897e7a1b8cdaeeb8 | [
"MIT"
] | 6 | 2018-10-16T13:32:47.000Z | 2018-11-14T08:09:35.000Z | clustering/plot_cluster_data.py | David-Loibl/found-in-transition | c17ddc07a46d8028d34ee290897e7a1b8cdaeeb8 | [
"MIT"
] | 1 | 2018-10-16T13:54:22.000Z | 2018-10-16T13:54:22.000Z | import matplotlib
matplotlib.use('Agg')
import pandas as pd
import matplotlib.cm as cm
import matplotlib.colors as mcolors
import matplotlib.pyplot as plt
import numpy as np
import pickle
# Plotting scripts for the csv with the cluster data
def list_of_hex_colours(N, base_cmap):
"""
Return a list of colors fr... | 38.315789 | 141 | 0.591248 | 1,438 | 10,192 | 4.073018 | 0.196801 | 0.032269 | 0.020659 | 0.019122 | 0.672529 | 0.647943 | 0.641625 | 0.614991 | 0.614991 | 0.614991 | 0 | 0.015869 | 0.251864 | 10,192 | 265 | 142 | 38.460377 | 0.752262 | 0.224392 | 0 | 0.614907 | 0 | 0 | 0.156014 | 0.027924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024845 | false | 0 | 0.043478 | 0 | 0.074534 | 0.080745 | 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 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58e9449150e4e1b2fe629aa8634099bc6929072f | 630 | py | Python | service_1/application/__init__.py | Jortuk/SFIA-2 | 0742333bc45ac62b28ac098e23dc66ba8c03b604 | [
"MIT"
] | 1 | 2020-06-22T00:57:22.000Z | 2020-06-22T00:57:22.000Z | service_1/application/__init__.py | Jortuk/SFIA-2 | 0742333bc45ac62b28ac098e23dc66ba8c03b604 | [
"MIT"
] | 3 | 2020-06-07T15:24:40.000Z | 2020-06-12T09:45:15.000Z | service_1/application/__init__.py | Jortuk/SFIA-2 | 0742333bc45ac62b28ac098e23dc66ba8c03b604 | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template
import requests
from flask_sqlalchemy import SQLAlchemy
from os import getenv
import random
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']=getenv('SFIA2_DB_URI')
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SECRET_KEY'] = getenv('SECRET... | 31.5 | 90 | 0.747619 | 84 | 630 | 5.428571 | 0.511905 | 0.059211 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010733 | 0.112698 | 630 | 20 | 90 | 31.5 | 0.805009 | 0 | 0 | 0 | 0 | 0 | 0.201268 | 0.083994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
58e9b8cc9e95b5deff30e84dab8163288c5723b1 | 19,407 | py | Python | hungarian_collision.py | thehamzza/Artistic-Pattern-Formation-using-Multi-Robot-System | 6bf25b2880dd00d286205c715ed2b17d40f736fc | [
"MIT"
] | 4 | 2021-07-02T07:10:43.000Z | 2022-03-13T00:42:48.000Z | hungarian_collision.py | thehamzza/Artistic-Pattern-Formation-using-Multi-Robot-System | 6bf25b2880dd00d286205c715ed2b17d40f736fc | [
"MIT"
] | null | null | null | hungarian_collision.py | thehamzza/Artistic-Pattern-Formation-using-Multi-Robot-System | 6bf25b2880dd00d286205c715ed2b17d40f736fc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""hungarian_collision.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Mz26T4dINnX0nT2tsdkGlAoQJB_cXHVV
"""
class HungarianError(Exception):
pass
# Import numpy. Error if fails
try:
import numpy as np
import m... | 41.203822 | 136 | 0.624775 | 2,449 | 19,407 | 4.714986 | 0.138832 | 0.045033 | 0.022084 | 0.011778 | 0.304841 | 0.219711 | 0.168442 | 0.14402 | 0.128518 | 0.120378 | 0 | 0.005428 | 0.287989 | 19,407 | 471 | 137 | 41.203822 | 0.830221 | 0.23677 | 0 | 0.140845 | 1 | 0 | 0.026805 | 0.001462 | 0 | 0 | 0 | 0 | 0.003521 | 1 | 0.077465 | false | 0.007042 | 0.024648 | 0 | 0.193662 | 0.003521 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ef6fa55e882535ea018d251e3e4fb9f9a8aa4c | 2,700 | py | Python | src/simulation.py | flurinus/IntTripAssignment | 9e6ce4c7ba21bb989537b6492b8f05b7cbb5a14e | [
"BSD-3-Clause"
] | 1 | 2022-03-27T14:29:54.000Z | 2022-03-27T14:29:54.000Z | src/simulation.py | flurinus/IntTripAssignment | 9e6ce4c7ba21bb989537b6492b8f05b7cbb5a14e | [
"BSD-3-Clause"
] | null | null | null | src/simulation.py | flurinus/IntTripAssignment | 9e6ce4c7ba21bb989537b6492b8f05b7cbb5a14e | [
"BSD-3-Clause"
] | 1 | 2020-04-08T01:41:29.000Z | 2020-04-08T01:41:29.000Z | from multiprocessing import Pool
from simulationRun import SimulationRun
from parameter import Parameter
from methodLibrary import saveObject
import sys
#from simulationOutput import SimulationOutput
class Simulation(object):
def __init__(self, nodes,edges,stations,areas,interfaces,platforms,trainDictRaw,travPop... | 40.909091 | 131 | 0.596296 | 237 | 2,700 | 6.767932 | 0.396624 | 0.031172 | 0.05611 | 0.071696 | 0.314214 | 0.266833 | 0.224439 | 0.224439 | 0.147756 | 0.147756 | 0 | 0.002166 | 0.315926 | 2,700 | 66 | 132 | 40.909091 | 0.86627 | 0.088889 | 0 | 0.108108 | 0 | 0 | 0.05947 | 0.010591 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.054054 | false | 0.054054 | 0.135135 | 0 | 0.243243 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
58f47843c3a5d526fafa5178ff424248655f1ea4 | 823 | py | Python | utils/functions.py | thuiar/Self-MM | c4525c15f9c16859a371d48e0c822172eb4b2312 | [
"MIT"
] | 77 | 2021-02-04T05:08:13.000Z | 2022-03-31T02:19:38.000Z | utils/functions.py | Columbine21/Self-MM | 9453dab01a897e2d341fa6c8c473ab827e82fab3 | [
"MIT"
] | 12 | 2021-03-17T03:19:34.000Z | 2022-02-28T11:46:45.000Z | utils/functions.py | Columbine21/Self-MM | 9453dab01a897e2d341fa6c8c473ab827e82fab3 | [
"MIT"
] | 14 | 2021-02-16T02:18:42.000Z | 2022-03-11T07:02:20.000Z | def dict_to_str(src_dict):
dst_str = ""
for key in src_dict.keys():
dst_str += " %s: %.4f " %(key, src_dict[key])
return dst_str
class Storage(dict):
"""
A Storage object is like a dictionary except `obj.foo` can be used inadition to `obj['foo']`
ref: https://blog.csdn.net/a20082214608... | 27.433333 | 96 | 0.589307 | 108 | 823 | 4.157407 | 0.490741 | 0.093541 | 0.044543 | 0.075724 | 0.178174 | 0.178174 | 0.178174 | 0.178174 | 0 | 0 | 0 | 0.036082 | 0.292831 | 823 | 29 | 97 | 28.37931 | 0.735395 | 0.191981 | 0 | 0.3 | 0 | 0 | 0.018634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.05 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58f4c40dae2e89003241cc4b7c68ff08a459ac52 | 6,046 | py | Python | graphony/tests/test_README.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | 3 | 2021-09-15T19:24:53.000Z | 2021-12-15T21:32:15.000Z | graphony/tests/test_README.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | null | null | null | graphony/tests/test_README.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | 1 | 2021-09-15T19:25:26.000Z | 2021-09-15T19:25:26.000Z | """pytest file built from README.md"""
import pytest
from phmdoctest.fixture import managenamespace
@pytest.fixture(scope="module")
def _phm_setup_doctest_teardown(doctest_namespace, managenamespace):
# setup code line 47.
import os
import pprint
import postgresql
from pathlib import Path
fro... | 26.060345 | 124 | 0.606682 | 763 | 6,046 | 4.644823 | 0.258191 | 0.056433 | 0.045147 | 0.047968 | 0.428894 | 0.391084 | 0.351298 | 0.275113 | 0.198646 | 0.177201 | 0 | 0.043496 | 0.201456 | 6,046 | 231 | 125 | 26.17316 | 0.690555 | 0.60354 | 0 | 0.089552 | 0 | 0 | 0.066993 | 0.043028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.328358 | false | 0 | 0.119403 | 0 | 0.447761 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58f4e5e3496a51c57e4c0e716694000b7dccca65 | 6,048 | py | Python | letsdebughelper/tests/test_letsdebug.py | jediknight112/lets-debug-helper | 7e87063847dea1676fe9922846bc09d788ec552c | [
"MIT"
] | null | null | null | letsdebughelper/tests/test_letsdebug.py | jediknight112/lets-debug-helper | 7e87063847dea1676fe9922846bc09d788ec552c | [
"MIT"
] | null | null | null | letsdebughelper/tests/test_letsdebug.py | jediknight112/lets-debug-helper | 7e87063847dea1676fe9922846bc09d788ec552c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import mock
import json
import unittest
from letsdebughelper import letsdebug
class TestLetsdebug(unittest.TestCase):
def setUp(self):
self.url = 'https://letsdebug.net'
self.domain = 'jeffistotallyawesome.space'
self.test_id = 359646
self.p... | 49.57377 | 121 | 0.667328 | 777 | 6,048 | 4.956242 | 0.195624 | 0.03947 | 0.02363 | 0.02363 | 0.733316 | 0.701636 | 0.649701 | 0.613867 | 0.564009 | 0.534666 | 0 | 0.038551 | 0.215112 | 6,048 | 121 | 122 | 49.983471 | 0.772699 | 0.012401 | 0 | 0.262136 | 0 | 0.019417 | 0.173367 | 0.060469 | 0 | 0 | 0 | 0 | 0.097087 | 1 | 0.116505 | false | 0 | 0.048544 | 0 | 0.184466 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58f56dfa16d2ce908e85d98de6cd6c1723a16752 | 2,097 | py | Python | _docs/example_plugin/some_module.py | andy-sweet/npe2 | 0cb4f0330d57425adb159345b3404844589820cd | [
"BSD-3-Clause"
] | null | null | null | _docs/example_plugin/some_module.py | andy-sweet/npe2 | 0cb4f0330d57425adb159345b3404844589820cd | [
"BSD-3-Clause"
] | null | null | null | _docs/example_plugin/some_module.py | andy-sweet/npe2 | 0cb4f0330d57425adb159345b3404844589820cd | [
"BSD-3-Clause"
] | null | null | null | # python_name: example_plugin._data:fractal
from typing import TYPE_CHECKING, Any, Dict, List, Optional
from magicgui import magic_factory
from qtpy.QtWidgets import QWidget
from npe2.types import LayerData, PathOrPaths, ReaderFunction
if TYPE_CHECKING:
import napari.types
import napari.viewer
def write_p... | 28.337838 | 86 | 0.691941 | 270 | 2,097 | 5.27037 | 0.42963 | 0.038651 | 0.029515 | 0.035137 | 0.165847 | 0.165847 | 0.120871 | 0.120871 | 0.120871 | 0.120871 | 0 | 0.000596 | 0.199332 | 2,097 | 73 | 87 | 28.726027 | 0.846933 | 0.331903 | 0 | 0.285714 | 0 | 0 | 0.10829 | 0.067214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.171429 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58fab1d370a1360f888397962e3641170968ed89 | 3,612 | py | Python | src/portals/company/models.py | IkramKhan-DevOps/cw-jobs-portal | 85e7a91d0dc1283070589163ed88774f9435c5a0 | [
"MIT"
] | null | null | null | src/portals/company/models.py | IkramKhan-DevOps/cw-jobs-portal | 85e7a91d0dc1283070589163ed88774f9435c5a0 | [
"MIT"
] | null | null | null | src/portals/company/models.py | IkramKhan-DevOps/cw-jobs-portal | 85e7a91d0dc1283070589163ed88774f9435c5a0 | [
"MIT"
] | null | null | null | from ckeditor.fields import RichTextField
from django.db import models
from src.accounts.models import User
class Company(models.Model):
TYPE_CHOICE = (
('per', 'Personal'),
('pre', 'Premium'),
('ent', 'Enterprise'),
)
user = models.OneToOneField(User, on_delete=models.CASCADE)
... | 34.4 | 117 | 0.700443 | 447 | 3,612 | 5.485459 | 0.302013 | 0.051387 | 0.08075 | 0.107667 | 0.487357 | 0.348287 | 0.229608 | 0.141109 | 0.104405 | 0.050571 | 0 | 0.009824 | 0.182724 | 3,612 | 104 | 118 | 34.730769 | 0.820799 | 0.01052 | 0 | 0.205128 | 0 | 0 | 0.115439 | 0.007005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0.012821 | 0.038462 | 0.064103 | 0.74359 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58fe4f64a192541f4d92c0e11cf7c721bb28b949 | 790 | py | Python | Basic/05_string/string_python.py | sekilas13/Python | 8b2c91cf0c90ebaba7a22e97bd69dae7a6564714 | [
"MIT"
] | 79 | 2021-09-12T02:31:14.000Z | 2022-03-29T08:46:53.000Z | Basic/05_string/string_python.py | sekilas13/Python | 8b2c91cf0c90ebaba7a22e97bd69dae7a6564714 | [
"MIT"
] | 121 | 2021-09-10T02:38:47.000Z | 2022-03-30T03:30:35.000Z | Basic/05_string/string_python.py | sekilas13/Python | 8b2c91cf0c90ebaba7a22e97bd69dae7a6564714 | [
"MIT"
] | 76 | 2021-09-10T02:27:28.000Z | 2022-03-28T10:24:12.000Z | # string di python bisa menggunakan
# petik satu dan petik dua
# contoh
# "Hello World" sama dengan 'hello world'
# 'hello world' sama dengan "hello world"
kata_pertama = "warung"
# bisa juga menggunakan multi string
# bisa menggunakan 3 tanda petik dua atau satu
kata_saya = """indonesia adalah negara yang indah
ber... | 21.944444 | 58 | 0.76962 | 114 | 790 | 5.254386 | 0.508772 | 0.110184 | 0.106845 | 0.066778 | 0.100167 | 0.100167 | 0 | 0 | 0 | 0 | 0 | 0.002994 | 0.15443 | 790 | 35 | 59 | 22.571429 | 0.893713 | 0.586076 | 0 | 0 | 0 | 0 | 0.33871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
450484e85ab839434377aedbfc79ce8a0c9899a1 | 28,151 | py | Python | 3_manual_masking_map_approach_for_lighting/models/DAENet.py | bhushan23/illumination-nets | a7e579489e3ed67c926b27113cf65eec2aea6287 | [
"BSD-2-Clause"
] | null | null | null | 3_manual_masking_map_approach_for_lighting/models/DAENet.py | bhushan23/illumination-nets | a7e579489e3ed67c926b27113cf65eec2aea6287 | [
"BSD-2-Clause"
] | 5 | 2018-11-03T19:54:23.000Z | 2018-11-28T05:36:23.000Z | 3_manual_masking_map_approach_for_lighting/models/DAENet.py | bhushan23/illumination-nets | a7e579489e3ed67c926b27113cf65eec2aea6287 | [
"BSD-2-Clause"
] | null | null | null |
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import gradcheck
from torch.autograd import Function
from torch.autograd import Variable
from torch.autograd import gradcheck
from torch.autograd import Function
import numpy as np
############... | 41.520649 | 170 | 0.580903 | 3,654 | 28,151 | 4.36809 | 0.070881 | 0.025061 | 0.018608 | 0.024435 | 0.762985 | 0.723138 | 0.688365 | 0.651776 | 0.588873 | 0.562183 | 0 | 0.034478 | 0.273631 | 28,151 | 677 | 171 | 41.581979 | 0.746088 | 0.07609 | 0 | 0.596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004 | 1 | 0.102 | false | 0 | 0.02 | 0.006 | 0.222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
450f110986d33e8e3b5d9479074e37dbc7828f52 | 36,645 | py | Python | smtp_handler/main.py | yaokailing/squadbox | a06142dcab173a8f7f74623c7f9ba3188126d389 | [
"MIT"
] | null | null | null | smtp_handler/main.py | yaokailing/squadbox | a06142dcab173a8f7f74623c7f9ba3188126d389 | [
"MIT"
] | null | null | null | smtp_handler/main.py | yaokailing/squadbox | a06142dcab173a8f7f74623c7f9ba3188126d389 | [
"MIT"
] | null | null | null | import logging, time, base64
from lamson.routing import route, stateless
from config.settings import relay
from http_handler.settings import WEBSITE
from schema.models import *
from lamson.mail import MailResponse
from email.utils import *
from email import message_from_string
from engine.main import *
from engine.s3_s... | 39.150641 | 201 | 0.614709 | 4,658 | 36,645 | 4.678403 | 0.104122 | 0.054102 | 0.017621 | 0.017438 | 0.537215 | 0.486692 | 0.457232 | 0.42846 | 0.378396 | 0.365409 | 0 | 0.001846 | 0.261045 | 36,645 | 935 | 202 | 39.192513 | 0.80291 | 0.090954 | 0 | 0.468944 | 0 | 0.006211 | 0.187483 | 0.020982 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003106 | 0.023292 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45108a5fc7b872e04dbbfa110e7ab8807e532d13 | 4,986 | py | Python | py80211/util/funcs.py | ewa/802.11-data | 7ed5f9d4bfb6ff7ff8d5d8a1d9643846c10aa4c8 | [
"MIT"
] | 4 | 2016-06-10T12:57:02.000Z | 2020-09-27T00:39:45.000Z | py80211/util/funcs.py | ewa/802.11-data | 7ed5f9d4bfb6ff7ff8d5d8a1d9643846c10aa4c8 | [
"MIT"
] | null | null | null | py80211/util/funcs.py | ewa/802.11-data | 7ed5f9d4bfb6ff7ff8d5d8a1d9643846c10aa4c8 | [
"MIT"
] | 1 | 2020-07-31T01:00:38.000Z | 2020-07-31T01:00:38.000Z | import math
from ..constants.plcp_times import T
from ..constants.mcs_indices import tables, HT_AGGREGATE_TABLE
import mcs_table
import xxx_defaults
def __init__():
pass
def N_STS_from_N_SS(N_SS, STBC):
""" Number of space-time streams (N_{STS}) from number of spatial
streams (N_{SS}), and the space-t... | 25.701031 | 97 | 0.593061 | 763 | 4,986 | 3.609436 | 0.262123 | 0.014161 | 0.017429 | 0.014524 | 0.194989 | 0.167393 | 0.153595 | 0.119099 | 0.106028 | 0.05374 | 0 | 0.036627 | 0.293622 | 4,986 | 193 | 98 | 25.834197 | 0.745315 | 0.09988 | 0 | 0.133333 | 0 | 0 | 0.059678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 0.077778 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
451247b7921cb9c41bfcf4155a1f461ab2507f44 | 908 | py | Python | sponsorsModule/migrations/0004_auto_20180605_2145.py | GeniALE/SiteWebGeniALE | 39488a89887d6855590ab39a59dbc2b6dca21892 | [
"MIT"
] | 4 | 2018-03-17T15:38:17.000Z | 2020-10-03T12:06:19.000Z | sponsorsModule/migrations/0004_auto_20180605_2145.py | GeniALE/SiteWebGeniALE | 39488a89887d6855590ab39a59dbc2b6dca21892 | [
"MIT"
] | 80 | 2018-02-01T02:55:01.000Z | 2022-03-11T23:17:17.000Z | sponsorsModule/migrations/0004_auto_20180605_2145.py | GeniALE/SiteWebGeniALE | 39488a89887d6855590ab39a59dbc2b6dca21892 | [
"MIT"
] | 2 | 2018-01-30T09:27:31.000Z | 2019-07-25T23:50:49.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-06 01:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('sponsorsModule', '0003_auto_20180605... | 26.705882 | 85 | 0.659692 | 93 | 908 | 6.301075 | 0.537634 | 0.081911 | 0.119454 | 0.107509 | 0.095563 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044693 | 0.211454 | 908 | 33 | 86 | 27.515152 | 0.773743 | 0.072687 | 0 | 0.185185 | 1 | 0 | 0.169249 | 0.067938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45143ba9e421f9a5c3ca6b6cf74c9a5f075e9d10 | 1,745 | py | Python | farm/models/farm.py | rankrh/soli | 8f19945a175106064591d09a53d07fcbfa26b7da | [
"MIT"
] | null | null | null | farm/models/farm.py | rankrh/soli | 8f19945a175106064591d09a53d07fcbfa26b7da | [
"MIT"
] | null | null | null | farm/models/farm.py | rankrh/soli | 8f19945a175106064591d09a53d07fcbfa26b7da | [
"MIT"
] | 2 | 2019-09-07T15:10:14.000Z | 2020-09-04T01:51:19.000Z | from datetime import date, datetime
from django.contrib.auth.models import User
from django.db import models
from django.db.models import CASCADE
from django.utils.text import slugify
from climate.models.climate import Climate
from geometry.models.point import Point
YEAR_CHOICES = [(year, year) for year in range(190... | 39.659091 | 82 | 0.711175 | 239 | 1,745 | 5.112971 | 0.359833 | 0.081015 | 0.085106 | 0.111293 | 0.218494 | 0.196399 | 0.196399 | 0.144026 | 0.144026 | 0 | 0 | 0.01645 | 0.163897 | 1,745 | 43 | 83 | 40.581395 | 0.82111 | 0 | 0 | 0 | 0 | 0 | 0.041834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.205882 | 0 | 0.794118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
451ff3b83afadfed55d7ca0a236e2ae5514ac3fd | 17,190 | py | Python | py/testdir_0xdata_slow/test_benchmark_import.py | vkuznet/h2o | e08f7014f228cbaecfb21f57379970e6a3ac0756 | [
"Apache-2.0"
] | 1 | 2017-12-14T04:57:51.000Z | 2017-12-14T04:57:51.000Z | py/testdir_0xdata_slow/test_benchmark_import.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | null | null | null | py/testdir_0xdata_slow/test_benchmark_import.py | hansight/h2o | d7eee8b69dd3538b83412989eee361d2a2883857 | [
"Apache-2.0"
] | 1 | 2018-12-18T06:18:55.000Z | 2018-12-18T06:18:55.000Z | import unittest, time, sys, random, logging
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd,h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_hosts, h2o_glm, h2o_exec as h2e, h2o_jobs
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpC... | 55.631068 | 125 | 0.530134 | 1,968 | 17,190 | 4.523882 | 0.216463 | 0.057284 | 0.051556 | 0.035381 | 0.511401 | 0.484106 | 0.459396 | 0.434573 | 0.408514 | 0.369763 | 0 | 0.106722 | 0.318092 | 17,190 | 308 | 126 | 55.811688 | 0.65279 | 0.250029 | 0 | 0.340314 | 0 | 0.020942 | 0.203297 | 0.092663 | 0.005236 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005236 | 0.120419 | null | null | 0.073298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45238f7b608634cfc34dffa7256fc26697614aad | 373 | py | Python | tests/test_integration.py | openfoodbroker/ofb.ingredients.service | 4aa81aa6b1cb596cc6fbedde89cf7114900ec1da | [
"MIT"
] | null | null | null | tests/test_integration.py | openfoodbroker/ofb.ingredients.service | 4aa81aa6b1cb596cc6fbedde89cf7114900ec1da | [
"MIT"
] | null | null | null | tests/test_integration.py | openfoodbroker/ofb.ingredients.service | 4aa81aa6b1cb596cc6fbedde89cf7114900ec1da | [
"MIT"
] | null | null | null | import requests
import json
import pprint
import unittest
import time
import pytest
from modules.RESTClient import RESTClient
environments = [("http://localhost:5000"), ("http://localhost:8081")]
@pytest.mark.parametrize("base_url", environments)
def test_welcome(base_url):
r = requests.get(base_url + "/")
... | 17.761905 | 69 | 0.723861 | 48 | 373 | 5.520833 | 0.625 | 0.079245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03481 | 0.152815 | 373 | 20 | 70 | 18.65 | 0.803797 | 0 | 0 | 0 | 0 | 0 | 0.136729 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.538462 | 0 | 0.615385 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
452fae13a8f3815644db73997158cf44fef0f7ed | 403 | py | Python | setup.py | manuelbb-upb/pluto-on-jupyterlab | 9f8089742245428ff08ac96e0835e86c325fe60f | [
"Unlicense"
] | 62 | 2020-02-13T21:37:49.000Z | 2022-03-01T22:32:13.000Z | setup.py | manuelbb-upb/pluto-on-jupyterlab | 9f8089742245428ff08ac96e0835e86c325fe60f | [
"Unlicense"
] | 5 | 2020-02-28T05:53:15.000Z | 2022-03-04T18:39:28.000Z | setup.py | manuelbb-upb/pluto-on-jupyterlab | 9f8089742245428ff08ac96e0835e86c325fe60f | [
"Unlicense"
] | 10 | 2020-03-22T16:20:35.000Z | 2022-01-31T07:45:18.000Z | import setuptools
setuptools.setup(
name="plutoserver",
packages=['plutoserver'],
package_dir={'plutoserver': 'plutoserver'},
package_data={'plutoserver': ['icons/pluto-logo.svg']},
entry_points={
'jupyter_serverproxy_servers': [
# name = packagename:function_name
'pluto = plutoserv... | 25.1875 | 57 | 0.674938 | 37 | 403 | 7.135135 | 0.648649 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173697 | 403 | 15 | 58 | 26.866667 | 0.792793 | 0.079404 | 0 | 0 | 0 | 0 | 0.430894 | 0.151762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45366e9598cdb6aae20eda86f50db18f55083950 | 4,101 | py | Python | hututoo/api/migrations/0001_initial.py | Shamsherocode/docker-test | 880d61cf645c2ed203e1373c78f0fd9ecf3bdfb7 | [
"MIT"
] | null | null | null | hututoo/api/migrations/0001_initial.py | Shamsherocode/docker-test | 880d61cf645c2ed203e1373c78f0fd9ecf3bdfb7 | [
"MIT"
] | null | null | null | hututoo/api/migrations/0001_initial.py | Shamsherocode/docker-test | 880d61cf645c2ed203e1373c78f0fd9ecf3bdfb7 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-04 10:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='QuizCategory',
fields=[
... | 48.821429 | 131 | 0.570593 | 403 | 4,101 | 5.682382 | 0.26799 | 0.047162 | 0.052402 | 0.057642 | 0.579476 | 0.526201 | 0.442795 | 0.442795 | 0.408734 | 0.371179 | 0 | 0.017166 | 0.275543 | 4,101 | 83 | 132 | 49.409639 | 0.753618 | 0.010973 | 0 | 0.447368 | 1 | 0 | 0.107548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4539cf5a80b2ab5079c2c77fc5af3d274cf78880 | 664 | py | Python | bluebottle/pages/migrations/0005_auto_20170803_1729.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/pages/migrations/0005_auto_20170803_1729.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/pages/migrations/0005_auto_20170803_1729.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-03 14:14
from __future__ import unicode_literals
from django.db import migrations
from bluebottle.utils.utils import update_group_permissions
def add_group_permissions(apps, schema_editor):
group_perms = {
'Staff': {
'perms': (
... | 21.419355 | 59 | 0.637048 | 73 | 664 | 5.493151 | 0.630137 | 0.159601 | 0.109726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066802 | 0.256024 | 664 | 30 | 60 | 22.133333 | 0.744939 | 0.10241 | 0 | 0 | 1 | 0 | 0.124789 | 0.040472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
453b5e229fb44f36cf4feb5eb5551279cf451f38 | 10,499 | py | Python | examples/python/scripted_step.py | nathawes/swift-lldb | 3cbf7470e0f9191ec1fc1c69ce8048c1dc64ec77 | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | examples/python/scripted_step.py | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | examples/python/scripted_step.py | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | #############################################################################
# This script contains two trivial examples of simple "scripted step" classes.
# To fully understand how the lldb "Thread Plan" architecture works, read the
# comments at the beginning of ThreadPlan.h in the lldb sources. The python
# interf... | 42.853061 | 86 | 0.694066 | 1,538 | 10,499 | 4.653446 | 0.23407 | 0.055889 | 0.037166 | 0.019561 | 0.211541 | 0.181221 | 0.153277 | 0.118625 | 0.107866 | 0.100741 | 0 | 0.00287 | 0.236594 | 10,499 | 244 | 87 | 43.028689 | 0.890081 | 0.594342 | 0 | 0.55 | 0 | 0 | 0.018905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01 | null | null | 0.07 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
453b96abd4b9c275a8c5feb7d1e01209aaf5ff43 | 2,009 | py | Python | pyjobserver/model_processing.py | athewsey/pyjobserver | 1251a0f22182c8bc8b55a85ef45adc7c1e2b982e | [
"Apache-2.0"
] | null | null | null | pyjobserver/model_processing.py | athewsey/pyjobserver | 1251a0f22182c8bc8b55a85ef45adc7c1e2b982e | [
"Apache-2.0"
] | null | null | null | pyjobserver/model_processing.py | athewsey/pyjobserver | 1251a0f22182c8bc8b55a85ef45adc7c1e2b982e | [
"Apache-2.0"
] | null | null | null | """Web request (de-)/serialization
"""
# Built-Ins:
from http import HTTPStatus
from json import JSONDecodeError
from logging import getLogger
import typing
# External Imports:
from aiohttp import web
from marshmallow import Schema, ValidationError
from webargs.aiohttpparser import parser
# Local Imports:
from .mode... | 31.888889 | 87 | 0.643604 | 212 | 2,009 | 5.95283 | 0.367925 | 0.01981 | 0.026149 | 0.047544 | 0.215531 | 0.095087 | 0.0729 | 0.0729 | 0.0729 | 0 | 0 | 0.002031 | 0.264808 | 2,009 | 62 | 88 | 32.403226 | 0.852404 | 0.085117 | 0 | 0.357143 | 0 | 0 | 0.052252 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.309524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
453c3fe82455a5d465475de3128f8543be30024c | 301 | py | Python | by-session/class-921/week6/variable_length_arguments.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | 2 | 2015-04-29T20:59:35.000Z | 2018-09-26T13:33:43.000Z | by-session/class-921/week6/variable_length_arguments.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | null | null | null | by-session/class-921/week6/variable_length_arguments.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | null | null | null | def aa():
return 1, 2
a, b = aa()
print a
print b
def sum(param1, *argumans):
s = 0
print param1
print argumans
for i in argumans:
s = s + i
return s
print sum(1, 2, 3, 4, 5, 6, 7, 8)
def aaa(**argumans):
print argumans
aaa(a = 1, b = 2, c = 3, d = 4)
| 10.033333 | 33 | 0.508306 | 55 | 301 | 2.781818 | 0.454545 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088083 | 0.358804 | 301 | 29 | 34 | 10.37931 | 0.704663 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
453e9451c7e596480a87359b6a173795b8bbea28 | 317 | py | Python | setup.py | radekj/poke-battle | 94062e6b0cca615f44533ecfe1e524df51664e11 | [
"MIT"
] | 1 | 2015-07-26T11:33:25.000Z | 2015-07-26T11:33:25.000Z | setup.py | radekj/poke-battle | 94062e6b0cca615f44533ecfe1e524df51664e11 | [
"MIT"
] | 4 | 2015-07-25T10:44:54.000Z | 2015-07-26T08:35:29.000Z | setup.py | radekj/poke-battle | 94062e6b0cca615f44533ecfe1e524df51664e11 | [
"MIT"
] | 2 | 2015-07-25T09:19:55.000Z | 2015-07-26T10:34:43.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='pokebattle',
version='0.0.1',
url='https://github.com/skooda/poke-battle',
packages=find_packages(exclude=['test', 'test.*']),
install_requires=[
"nameko>=2.1.2",
"nameko_sqlalchemy>=0.0.1",
],
)
| 21.133333 | 55 | 0.618297 | 41 | 317 | 4.682927 | 0.707317 | 0.125 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035019 | 0.189274 | 317 | 14 | 56 | 22.642857 | 0.712062 | 0.063091 | 0 | 0 | 0 | 0 | 0.334459 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45452aff13026b2941f7bbde17f69e804d5e8f67 | 1,357 | py | Python | scout/load/cytoband.py | mhkc/scout | a7162f28c0f3490c3f3376268118fa8e6072a9db | [
"BSD-3-Clause"
] | null | null | null | scout/load/cytoband.py | mhkc/scout | a7162f28c0f3490c3f3376268118fa8e6072a9db | [
"BSD-3-Clause"
] | null | null | null | scout/load/cytoband.py | mhkc/scout | a7162f28c0f3490c3f3376268118fa8e6072a9db | [
"BSD-3-Clause"
] | null | null | null | import logging
from os import path
from scout.utils.md5 import generate_md5_key
from scout.utils.handle import get_file_handle
LOG = logging.getLogger(__name__)
def load_cytobands(resource, build, adapter):
"""Parse and load cytobands from file.
Args:
resource(str): path to cytobands file (either ... | 27.14 | 69 | 0.604274 | 175 | 1,357 | 4.588571 | 0.468571 | 0.014944 | 0.022416 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059487 | 0.281503 | 1,357 | 49 | 70 | 27.693878 | 0.764103 | 0.190862 | 0 | 0 | 1 | 0 | 0.1277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18853d80cde08e20e558edf7cbbe09f9cd485c23 | 1,079 | py | Python | app/main/views.py | tc-mwangi/news-highlight | c5ce5ea590ada3d94d06df445f661050919c0651 | [
"MIT"
] | null | null | null | app/main/views.py | tc-mwangi/news-highlight | c5ce5ea590ada3d94d06df445f661050919c0651 | [
"MIT"
] | null | null | null | app/main/views.py | tc-mwangi/news-highlight | c5ce5ea590ada3d94d06df445f661050919c0651 | [
"MIT"
] | null | null | null | from flask import render_template, request, redirect, url_for
# from app import app
from . import main
from ..requests import get_source, get_article
# views
@main.route('/')
def index():
'''
function returns homepage and its data
'''
title = 'WithIt- Get current news.'
# Getting sources
news_sources = get_so... | 18.603448 | 77 | 0.720111 | 134 | 1,079 | 5.671642 | 0.298507 | 0.110526 | 0.131579 | 0.090789 | 0.198684 | 0.157895 | 0.157895 | 0.157895 | 0.157895 | 0 | 0 | 0 | 0.150139 | 1,079 | 57 | 78 | 18.929825 | 0.82879 | 0.237257 | 0 | 0 | 0 | 0 | 0.173351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.565217 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
188a35216a5ef5535ffbc71b1e41853e9e800cdf | 1,114 | py | Python | zfit/constraint.py | nsahoo/zfit | fcad2578f31138f5383f7fa5de6c0f8c6b1dbaa4 | [
"BSD-3-Clause"
] | 129 | 2018-03-24T22:27:55.000Z | 2022-03-19T21:04:07.000Z | zfit/constraint.py | nsahoo/zfit | fcad2578f31138f5383f7fa5de6c0f8c6b1dbaa4 | [
"BSD-3-Clause"
] | 195 | 2018-03-22T11:31:47.000Z | 2022-03-29T17:01:45.000Z | zfit/constraint.py | nsahoo/zfit | fcad2578f31138f5383f7fa5de6c0f8c6b1dbaa4 | [
"BSD-3-Clause"
] | 45 | 2018-03-22T10:12:31.000Z | 2022-02-01T10:45:27.000Z | # Copyright (c) 2021 zfit
import tensorflow as tf
from .core.constraint import (GaussianConstraint, PoissonConstraint,
SimpleConstraint, LogNormalConstraint)
from .util import ztyping
__all__ = ["nll_gaussian", "SimpleConstraint", "GaussianConstraint", "PoissonConstraint", "LogNormalCo... | 39.785714 | 112 | 0.719928 | 116 | 1,114 | 6.862069 | 0.603448 | 0.08794 | 0.017588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004561 | 0.212747 | 1,114 | 27 | 113 | 41.259259 | 0.903079 | 0.444345 | 0 | 0 | 0 | 0 | 0.143357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
188ad94bf679b5f4bb54ddf38e012368b3b42b01 | 3,111 | py | Python | admin.py | joy-void-joy/discord-py-template | 93b1358f86defd701806f2a3bd1f78a95db19a93 | [
"MIT"
] | null | null | null | admin.py | joy-void-joy/discord-py-template | 93b1358f86defd701806f2a3bd1f78a95db19a93 | [
"MIT"
] | null | null | null | admin.py | joy-void-joy/discord-py-template | 93b1358f86defd701806f2a3bd1f78a95db19a93 | [
"MIT"
] | null | null | null | from discord.ext import commands
import discord
from contextlib import contextmanager
import typing
class Admin(commands.Cog, command_attrs={'hidden': True}):
"""Admin-only commands that make the bot dynamic."""
def __init__(self, bot, authorized_ids=[], authorized_guilds=[]):
self.bot = bot
s... | 32.072165 | 103 | 0.6072 | 370 | 3,111 | 4.983784 | 0.310811 | 0.034165 | 0.056941 | 0.074837 | 0.058568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296689 | 3,111 | 96 | 104 | 32.40625 | 0.842779 | 0.04693 | 0 | 0.178082 | 0 | 0 | 0.028318 | 0.013306 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.041096 | false | 0.013699 | 0.054795 | 0 | 0.136986 | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1893aa6a6b865134f28af88083e2f2130764c406 | 879 | py | Python | friction_slip.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | 1 | 2015-07-30T13:47:23.000Z | 2015-07-30T13:47:23.000Z | friction_slip.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | null | null | null | friction_slip.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os.path as op
from optparse import OptionParser
from sfepy.base.base import *
from sfepy.fem import Mesh, Domain
from sfepy.mechanics.friction import DualMesh
usage = """%prog [options] mesh_filename"""
def main():
parser = OptionParser(usage=usage, version="%prog")
options, arg... | 21.975 | 55 | 0.612059 | 108 | 879 | 4.787037 | 0.481481 | 0.077369 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003101 | 0.266212 | 879 | 39 | 56 | 22.538462 | 0.79845 | 0.022753 | 0 | 0 | 0 | 0 | 0.123543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.185185 | null | null | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18974e53e1901e2bba65147212c49d9235fa721e | 731 | py | Python | home/migrations/0028_auto_20210410_0330.py | witty-technologies-empowerment/codeupblood | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | [
"MIT"
] | null | null | null | home/migrations/0028_auto_20210410_0330.py | witty-technologies-empowerment/codeupblood | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | [
"MIT"
] | null | null | null | home/migrations/0028_auto_20210410_0330.py | witty-technologies-empowerment/codeupblood | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | [
"MIT"
] | 1 | 2022-01-19T11:09:13.000Z | 2022-01-19T11:09:13.000Z | # Generated by Django 3.1.6 on 2021-04-10 10:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0027_auto_20210409_1947'),
]
operations = [
migrations.AddField(
model_name='gallery',
name='show',
... | 25.206897 | 68 | 0.569083 | 73 | 731 | 5.561644 | 0.60274 | 0.066502 | 0.123153 | 0.142857 | 0.187192 | 0.187192 | 0.187192 | 0 | 0 | 0 | 0 | 0.073413 | 0.310534 | 731 | 28 | 69 | 26.107143 | 0.732143 | 0.06156 | 0 | 0.318182 | 1 | 0 | 0.114035 | 0.033626 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
189ac112202a5ba120505d8754a82359002b181b | 7,750 | py | Python | postgresql/src/interfaces/python/pg.py | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | 2 | 2020-01-06T07:43:30.000Z | 2020-07-11T20:53:53.000Z | postgresql/src/interfaces/python/pg.py | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | null | null | null | postgresql/src/interfaces/python/pg.py | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | null | null | null | # pgutil.py
# Written by D'Arcy J.M. Cain
# This library implements some basic database management stuff
# It includes the pg module and builds on it
from _pg import *
import string, re, sys
# utility function
# We expect int, seq, decimal, text or date (more later)
def _quote(d, t):
if d == None:
return "NULL"
... | 27.978339 | 72 | 0.604516 | 1,218 | 7,750 | 3.751232 | 0.221675 | 0.015758 | 0.036113 | 0.016415 | 0.278836 | 0.232655 | 0.197417 | 0.120158 | 0.098928 | 0.073101 | 0 | 0.002689 | 0.232129 | 7,750 | 276 | 73 | 28.07971 | 0.765082 | 0.192129 | 0 | 0.267677 | 0 | 0 | 0.235189 | 0.016996 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015152 | null | null | 0.025253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18a0f329fe5fd63ee02834697ebe01e11874ed4e | 538 | py | Python | game_assets.py | russellvt/GoWDiscordTeamBot | a30e63fd8c7efcab54877acdbdd10fc8e142c188 | [
"BSD-3-Clause"
] | 14 | 2020-07-18T21:42:43.000Z | 2022-01-11T23:11:21.000Z | game_assets.py | russellvt/GoWDiscordTeamBot | a30e63fd8c7efcab54877acdbdd10fc8e142c188 | [
"BSD-3-Clause"
] | 8 | 2020-07-21T05:19:58.000Z | 2021-06-25T05:53:01.000Z | game_assets.py | russellvt/GoWDiscordTeamBot | a30e63fd8c7efcab54877acdbdd10fc8e142c188 | [
"BSD-3-Clause"
] | 15 | 2020-07-20T19:09:57.000Z | 2021-11-24T11:45:39.000Z | import json
import os
from configurations import CONFIG
class GameAssets:
@staticmethod
def load(filename):
path = os.path.join(CONFIG.get('game_assets_folder'), filename)
with open(path, encoding='utf8') as f:
return json.load(f)
@staticmethod
def path(filename):
... | 24.454545 | 71 | 0.667286 | 68 | 538 | 5.191176 | 0.382353 | 0.067989 | 0.084986 | 0.135977 | 0.433428 | 0.433428 | 0.433428 | 0.433428 | 0.433428 | 0.311615 | 0 | 0.002392 | 0.223048 | 538 | 21 | 72 | 25.619048 | 0.842105 | 0 | 0 | 0.3125 | 0 | 0 | 0.107807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
18a992c37c3faebe657a02400de70d2730768910 | 2,553 | py | Python | geoscript/style/fill.py | dvntucker/geoscript-py | ea1b6ac584f3813b542204370399bb8f3209d214 | [
"MIT"
] | 22 | 2015-01-14T01:37:40.000Z | 2021-07-11T14:21:38.000Z | geoscript/style/fill.py | dvntucker/geoscript-py | ea1b6ac584f3813b542204370399bb8f3209d214 | [
"MIT"
] | 15 | 2017-10-13T19:21:15.000Z | 2021-08-06T08:59:31.000Z | geoscript/style/fill.py | dvntucker/geoscript-py | ea1b6ac584f3813b542204370399bb8f3209d214 | [
"MIT"
] | 15 | 2015-01-14T01:38:35.000Z | 2020-04-26T02:05:01.000Z | from geoscript.filter import Filter
from geoscript.style import util
from geoscript.style.color import Color
from geoscript.style.expression import Expression
from geoscript.style.hatch import Hatch
from geoscript.style.icon import Icon
from geoscript.style.stroke import Stroke
from geoscript.style.symbolizer import Sy... | 28.054945 | 86 | 0.677634 | 358 | 2,553 | 4.751397 | 0.28771 | 0.074074 | 0.074074 | 0.023516 | 0.032922 | 0.032922 | 0 | 0 | 0 | 0 | 0 | 0.010763 | 0.199373 | 2,553 | 90 | 87 | 28.366667 | 0.821429 | 0.352526 | 0 | 0.045455 | 0 | 0 | 0.011502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.204545 | 0.045455 | 0.522727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
18a9961a7bb1e7bd289cc6be81808f209268c1df | 1,329 | py | Python | app/forms/upload_forms.py | MarkGalloway/RIS | 6305f0b6e58e60ee6d69211cf977507b9404b8d6 | [
"Apache-2.0"
] | 12 | 2016-04-22T14:10:54.000Z | 2021-04-08T18:57:27.000Z | app/forms/upload_forms.py | MarkGalloway/RIS | 6305f0b6e58e60ee6d69211cf977507b9404b8d6 | [
"Apache-2.0"
] | 36 | 2015-02-07T20:25:09.000Z | 2015-04-05T16:35:57.000Z | app/forms/upload_forms.py | MarkGalloway/RIS | 6305f0b6e58e60ee6d69211cf977507b9404b8d6 | [
"Apache-2.0"
] | 8 | 2015-03-08T23:43:50.000Z | 2020-06-09T15:10:42.000Z | from flask_wtf import Form
from wtforms import StringField, IntegerField, SelectField, TextAreaField
from flask.ext.wtf.file import FileField, FileAllowed
from wtforms.validators import DataRequired, Length, Required
from wtforms_html5 import DateField
from wtforms_html5 import DateRange
from datetime import date
cla... | 53.16 | 97 | 0.706546 | 151 | 1,329 | 6.15894 | 0.377483 | 0.141935 | 0.077419 | 0.096774 | 0.233333 | 0.126882 | 0.126882 | 0.126882 | 0.126882 | 0.126882 | 0 | 0.031503 | 0.164033 | 1,329 | 24 | 98 | 55.375 | 0.805581 | 0.021821 | 0 | 0.105263 | 0 | 0 | 0.094237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.368421 | 0 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
18aba0ca53528eb4bfb5d5244e8da420ce3e0339 | 2,070 | py | Python | buienradar/models.py | Shiqan/buienradar-api | 5abdb0da6634bc45bd52f732640bfed1f0b21f20 | [
"MIT"
] | null | null | null | buienradar/models.py | Shiqan/buienradar-api | 5abdb0da6634bc45bd52f732640bfed1f0b21f20 | [
"MIT"
] | null | null | null | buienradar/models.py | Shiqan/buienradar-api | 5abdb0da6634bc45bd52f732640bfed1f0b21f20 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List, Optional
from dataclasses_json import LetterCase, config, dataclass_json
@dataclass_json
@dataclass
class Forecast:
weather_report: str
short_term: str
long_term: str
five_day_forecast: str
@dataclass_json
@dataclass
class ForecastMe... | 20.7 | 63 | 0.705314 | 228 | 2,070 | 6.289474 | 0.394737 | 0.063459 | 0.073222 | 0.094142 | 0.062762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005597 | 0.223188 | 2,070 | 100 | 64 | 20.7 | 0.886194 | 0.009179 | 0 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.036145 | 0 | 0.831325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
18bd0b161ba2e00619d66e6da9d51231f11162ef | 1,321 | py | Python | Python Tutorial Intermediate/18_Context_manager.py | PaulPan00/donkey_wrapper | a03cf0f42f65625fbce792b06c98acd153c5d6c8 | [
"MIT"
] | 6 | 2021-03-26T01:42:31.000Z | 2021-04-11T16:17:42.000Z | Python Tutorial Intermediate/18_Context_manager.py | packetsss/Python | a03cf0f42f65625fbce792b06c98acd153c5d6c8 | [
"MIT"
] | null | null | null | Python Tutorial Intermediate/18_Context_manager.py | packetsss/Python | a03cf0f42f65625fbce792b06c98acd153c5d6c8 | [
"MIT"
] | 7 | 2021-04-06T06:55:22.000Z | 2021-05-03T11:26:38.000Z | # Create by Packetsss
# Personal use is allowed
# Commercial use is prohibited
"""with open('notes.txt', 'w') as f:
f.write('some to do...')"""
# good way to access a file( don't need to close
"""f = open('notes.txt', 'w')
try:
f.write('some todo...')
finally:
f.close()"""
# redundant way
class Manage... | 21.655738 | 59 | 0.610901 | 181 | 1,321 | 4.348066 | 0.441989 | 0.040661 | 0.050826 | 0.045743 | 0.060991 | 0.043202 | 0.043202 | 0 | 0 | 0 | 0 | 0.003033 | 0.251325 | 1,321 | 60 | 60 | 22.016667 | 0.79272 | 0.239213 | 0 | 0 | 0 | 0 | 0.096429 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.142857 | false | 0 | 0.035714 | 0 | 0.285714 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18bd385d9160e0160f7259b7f1b3cd697546e6b8 | 374 | py | Python | scratchpad/issues_streamlit/issue_cannot_cache_class_method.py | R-fred/awesome-streamlit | 10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3 | [
"CC0-1.0"
] | 1,194 | 2019-10-09T06:15:27.000Z | 2022-03-31T14:53:00.000Z | scratchpad/issues_streamlit/issue_cannot_cache_class_method.py | R-fred/awesome-streamlit | 10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3 | [
"CC0-1.0"
] | 55 | 2019-10-09T12:08:39.000Z | 2022-02-10T00:48:53.000Z | scratchpad/issues_streamlit/issue_cannot_cache_class_method.py | R-fred/awesome-streamlit | 10f2b132bc8e61a82edfacb4b3bb36d0da6c63d3 | [
"CC0-1.0"
] | 272 | 2019-10-09T12:04:31.000Z | 2022-03-29T02:43:30.000Z | import streamlit as st
class App:
def run(self):
st.title("Cannot st.cache classmethod issue")
App.get_data1()
st.info("data1 loaded")
self.get_data2()
st.info("data2 loaded")
@classmethod
@st.cache
def get_data1(cls):
pass
@st.cache
@classmeth... | 15.583333 | 53 | 0.566845 | 48 | 374 | 4.333333 | 0.4375 | 0.100962 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.318182 | 374 | 23 | 54 | 16.26087 | 0.792157 | 0 | 0 | 0.352941 | 0 | 0 | 0.152406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
18c16eeffdfb45d3e2855394ba0e6483e6408862 | 2,524 | py | Python | test/fb_genref.py | lacker/turbo_seti | 4135c65a912f3c6c628c4434ba6b19735ee6fd80 | [
"MIT"
] | 33 | 2017-05-09T03:31:38.000Z | 2022-03-26T01:29:35.000Z | test/fb_genref.py | lacker/turbo_seti | 4135c65a912f3c6c628c4434ba6b19735ee6fd80 | [
"MIT"
] | 284 | 2018-03-13T13:57:09.000Z | 2022-03-30T21:59:34.000Z | test/fb_genref.py | lacker/turbo_seti | 4135c65a912f3c6c628c4434ba6b19735ee6fd80 | [
"MIT"
] | 116 | 2017-08-08T17:27:30.000Z | 2022-03-24T21:24:40.000Z | r'''
Package turbo_seti
test/fb_genref.py
Generate a reference file for subsequent use by test_fb_cases.py.
'''
from os import makedirs
from tempfile import gettempdir
from shutil import rmtree
import time
import numpy as np
from fb_cases_def import THE_MEANING_OF_LIFE, HERE, MIN_SNR
from fb_cases_util import generat... | 38.830769 | 104 | 0.650555 | 386 | 2,524 | 3.911917 | 0.292746 | 0.071523 | 0.039735 | 0.05298 | 0.174834 | 0.123179 | 0.087417 | 0.087417 | 0.066225 | 0.066225 | 0 | 0.017165 | 0.192155 | 2,524 | 64 | 105 | 39.4375 | 0.723394 | 0.062599 | 0 | 0 | 1 | 0 | 0.20612 | 0.021249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.142857 | 0 | 0.163265 | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18cd193c31c6cb1a12b87d64493c3873a0631975 | 463 | py | Python | src/economy/migrations/0036_auto_20211003_1601.py | bornhack/bornhack-website | 40ed0875f5129a4c8ae1887e33e7dedb4981dadc | [
"BSD-3-Clause"
] | 7 | 2017-04-14T15:28:29.000Z | 2021-09-10T09:45:38.000Z | src/economy/migrations/0036_auto_20211003_1601.py | bornhack/bornhack-website | 40ed0875f5129a4c8ae1887e33e7dedb4981dadc | [
"BSD-3-Clause"
] | 799 | 2016-04-28T09:31:50.000Z | 2022-03-29T09:05:02.000Z | src/economy/migrations/0036_auto_20211003_1601.py | bornhack/bornhack-website | 40ed0875f5129a4c8ae1887e33e7dedb4981dadc | [
"BSD-3-Clause"
] | 35 | 2016-04-28T09:23:53.000Z | 2021-05-02T12:36:01.000Z | # Generated by Django 3.2.7 on 2021-10-03 16:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("economy", "0035_fix_posreport_period"),
]
operations = [
migrations.AlterModelOptions(
name="posreport",
options={"ordering"... | 21.045455 | 52 | 0.563715 | 43 | 463 | 5.976744 | 0.767442 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059375 | 0.308855 | 463 | 21 | 53 | 22.047619 | 0.74375 | 0.097192 | 0 | 0.133333 | 1 | 0 | 0.170673 | 0.060096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18cdcc4111537e7e52e56c9952c084d4ed3edbed | 1,654 | py | Python | hard-gists/36c31a9b653779b2b7d1/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/36c31a9b653779b2b7d1/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/36c31a9b653779b2b7d1/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/python
# esc-pos-image.py - print image files given as command line arguments
# to simple ESC-POS image on stdout
# scruss - 2014-07-26 - WTFPL (srsly)
# if you want a proper CUPS driver for a 58mm thermal printer
# that uses this command set, go here:
# https://github.com/klir... | 33.755102 | 77 | 0.512092 | 237 | 1,654 | 3.56962 | 0.506329 | 0.056738 | 0.041371 | 0.047281 | 0.106383 | 0.026005 | 0 | 0 | 0 | 0 | 0 | 0.063208 | 0.359129 | 1,654 | 48 | 78 | 34.458333 | 0.734906 | 0.392382 | 0 | 0.08 | 0 | 0 | 0.074747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18d8a7953827815cc0c54bd6f39d3ff778bd96d7 | 5,944 | py | Python | scripts/gpipe/select_transcripts_per_gene.py | CGATOxford/Optic | 2df92e953b5139ff4e5c383cb4383e6367cd47f1 | [
"MIT"
] | null | null | null | scripts/gpipe/select_transcripts_per_gene.py | CGATOxford/Optic | 2df92e953b5139ff4e5c383cb4383e6367cd47f1 | [
"MIT"
] | null | null | null | scripts/gpipe/select_transcripts_per_gene.py | CGATOxford/Optic | 2df92e953b5139ff4e5c383cb4383e6367cd47f1 | [
"MIT"
] | 1 | 2020-03-31T22:55:50.000Z | 2020-03-31T22:55:50.000Z | ##########################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by ... | 29.572139 | 111 | 0.590511 | 756 | 5,944 | 4.531746 | 0.313492 | 0.023643 | 0.02627 | 0.027729 | 0.248395 | 0.179218 | 0.095738 | 0.095738 | 0.071804 | 0.042615 | 0 | 0.011106 | 0.257739 | 5,944 | 200 | 112 | 29.72 | 0.765413 | 0.140983 | 0 | 0.059406 | 0 | 0.029703 | 0.264645 | 0.034962 | 0 | 0 | 0 | 0.005 | 0 | 0 | null | null | 0 | 0.029703 | null | null | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18da4701af354890ab701e6b5effedbb865782c0 | 2,200 | py | Python | src-gen/openapi_server/test/test_calculations_controller.py | etherisc/bima-bolt-api | 14201a3055d94ff9c42afbb755109a69e77248f4 | [
"Apache-2.0"
] | null | null | null | src-gen/openapi_server/test/test_calculations_controller.py | etherisc/bima-bolt-api | 14201a3055d94ff9c42afbb755109a69e77248f4 | [
"Apache-2.0"
] | null | null | null | src-gen/openapi_server/test/test_calculations_controller.py | etherisc/bima-bolt-api | 14201a3055d94ff9c42afbb755109a69e77248f4 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
import unittest
from flask import json
from six import BytesIO
from openapi_server.models.calculation_job import CalculationJob # noqa: E501
from openapi_server.models.calculation_order import CalculationOrder # noqa: E501
from openapi_server.models.not_found_... | 30.136986 | 109 | 0.61 | 225 | 2,200 | 5.773333 | 0.315556 | 0.073903 | 0.065435 | 0.070824 | 0.561201 | 0.486528 | 0.368745 | 0.368745 | 0.368745 | 0.368745 | 0 | 0.030418 | 0.282727 | 2,200 | 72 | 110 | 30.555556 | 0.792776 | 0 | 0 | 0.4375 | 0 | 0 | 0.151594 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | null | null | 0 | 0.1875 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18dac2483939aa6c6b07772d3eb767f6e586f50c | 665 | py | Python | kids/migrations/0004_auto_20171026_1352.py | dimple1024/kidszone | dfa8b7c6be2c5dce03803655a078fdf6e9ab7370 | [
"MIT"
] | 4 | 2017-07-22T19:43:22.000Z | 2017-08-24T16:51:22.000Z | kids/migrations/0004_auto_20171026_1352.py | dimhacker/kidszone | dfa8b7c6be2c5dce03803655a078fdf6e9ab7370 | [
"MIT"
] | null | null | null | kids/migrations/0004_auto_20171026_1352.py | dimhacker/kidszone | dfa8b7c6be2c5dce03803655a078fdf6e9ab7370 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-10-26 08:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kids', '0003_user_status'),
]
operations = [
migrations.AddField(
... | 25.576923 | 101 | 0.596992 | 73 | 665 | 5.260274 | 0.671233 | 0.09375 | 0.119792 | 0.140625 | 0.213542 | 0.213542 | 0.213542 | 0 | 0 | 0 | 0 | 0.049587 | 0.27218 | 665 | 25 | 102 | 26.6 | 0.743802 | 0.102256 | 0 | 0.333333 | 1 | 0 | 0.122896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18dcb1505b724fdf989227f39775c21f59be59d2 | 1,051 | py | Python | python/Query.py | rsejaa/oracle-db-examples | 8b91baf801e9a67b357f38f187f103824f70d310 | [
"Apache-2.0"
] | 4 | 2019-10-26T06:21:32.000Z | 2021-02-15T15:28:02.000Z | python/Query.py | rsejaa/oracle-db-examples | 8b91baf801e9a67b357f38f187f103824f70d310 | [
"Apache-2.0"
] | null | null | null | python/Query.py | rsejaa/oracle-db-examples | 8b91baf801e9a67b357f38f187f103824f70d310 | [
"Apache-2.0"
] | 5 | 2019-10-26T06:21:31.000Z | 2022-03-10T12:47:13.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
... | 25.02381 | 79 | 0.500476 | 102 | 1,051 | 5.088235 | 0.578431 | 0.075145 | 0.092486 | 0.084778 | 0.096339 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010846 | 0.12274 | 1,051 | 41 | 80 | 25.634146 | 0.552061 | 0.430067 | 0 | 0.333333 | 0 | 0 | 0.238983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
18e0df78ddd2891d3814030fb5839e4df0632f1d | 649 | py | Python | algorithms/14.Longest-Common-Prefix/Python/solution_1.py | hopeness/leetcode | 496455fa967f0704d729b4014f92f52b1d69d690 | [
"MIT"
] | null | null | null | algorithms/14.Longest-Common-Prefix/Python/solution_1.py | hopeness/leetcode | 496455fa967f0704d729b4014f92f52b1d69d690 | [
"MIT"
] | null | null | null | algorithms/14.Longest-Common-Prefix/Python/solution_1.py | hopeness/leetcode | 496455fa967f0704d729b4014f92f52b1d69d690 | [
"MIT"
] | null | null | null | """
https://leetcode.com/problems/longest-common-prefix/
"""
from typing import List
class Solution:
def longestCommonPrefix(self, strs: List[str]) -> str:
i = 0
finding = True
while True:
c = False
for string in strs:
if i >= len(string):
... | 23.178571 | 58 | 0.405239 | 62 | 649 | 4.241935 | 0.548387 | 0.045627 | 0.129278 | 0.144487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.506934 | 649 | 27 | 59 | 24.037037 | 0.8125 | 0.080123 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18e444e71ae74f4b38d80b247ea930fd429ed36d | 2,536 | py | Python | examples/ftp.py | noahspurrier/pexpect | 7999ca657997e78febfb3fb89cfcc066d50bf788 | [
"Unlicense"
] | 8 | 2016-05-09T02:02:36.000Z | 2021-11-23T19:33:19.000Z | examples/ftp.py | noahspurrier/pexpect | 7999ca657997e78febfb3fb89cfcc066d50bf788 | [
"Unlicense"
] | 1 | 2020-11-12T04:05:29.000Z | 2020-11-12T04:05:29.000Z | examples/ftp.py | noahspurrier/pexpect | 7999ca657997e78febfb3fb89cfcc066d50bf788 | [
"Unlicense"
] | 7 | 2017-08-28T20:55:50.000Z | 2021-11-23T19:33:28.000Z | #!/usr/bin/env python
'''This demonstrates an FTP "bookmark". This connects to an ftp site; does a
few ftp stuff; and then gives the user interactive control over the session. In
this case the "bookmark" is to a directory on the OpenBSD ftp server. It puts
you in the i386 packages directory. You can easily modify this... | 38.424242 | 83 | 0.743297 | 391 | 2,536 | 4.820972 | 0.485934 | 0.040849 | 0.037135 | 0.040318 | 0.057294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005695 | 0.169164 | 2,536 | 65 | 84 | 39.015385 | 0.888942 | 0.206625 | 0 | 0.25 | 0 | 0 | 0.334221 | 0.070573 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18e932385ace7e108d87a349657d52f15c2a7219 | 2,095 | py | Python | article/migrations/0001_initial.py | Chancj/my_blog | 988831904d2bd800afa332a1b4113143e1aaeccd | [
"MIT"
] | null | null | null | article/migrations/0001_initial.py | Chancj/my_blog | 988831904d2bd800afa332a1b4113143e1aaeccd | [
"MIT"
] | 6 | 2020-06-06T01:39:23.000Z | 2022-03-12T00:21:11.000Z | article/migrations/0001_initial.py | Chancj/my_blog | 988831904d2bd800afa332a1b4113143e1aaeccd | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2020-03-29 20:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_de... | 43.645833 | 182 | 0.615752 | 215 | 2,095 | 5.883721 | 0.455814 | 0.025296 | 0.033202 | 0.052174 | 0.270356 | 0.270356 | 0.270356 | 0.211858 | 0.124901 | 0.124901 | 0 | 0.016425 | 0.244391 | 2,095 | 47 | 183 | 44.574468 | 0.782691 | 0.020525 | 0 | 0.3 | 1 | 0 | 0.12878 | 0.025854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
18f77f17496636b381c6d9c73b98ddd0a816ced2 | 2,839 | py | Python | pyown/split.py | FredsoNerd/py-ownpt | f13965303bfdba0aebd205397951bde0b2eb9aab | [
"MIT"
] | null | null | null | pyown/split.py | FredsoNerd/py-ownpt | f13965303bfdba0aebd205397951bde0b2eb9aab | [
"MIT"
] | 8 | 2021-05-19T13:01:15.000Z | 2021-05-23T17:58:02.000Z | pyown/split.py | own-pt/py-ownpt | f13965303bfdba0aebd205397951bde0b2eb9aab | [
"MIT"
] | 1 | 2021-05-17T21:31:44.000Z | 2021-05-17T21:31:44.000Z | # -*- coding: utf-8 -*-
from rdflib.graph import Graph
from pyown.own import OWN
class Split(OWN):
def pop_morphosemantic_links(self):
queries = [
"SELECT ?s ?p ?o WHERE{ ?s ?p ?o . FILTER( REGEX( STR(?s), '/nomlex-')) }",
"SELECT ?s ?p ?o WHERE{ ?s ?p ?o . FILTER( REGEX( STR(?o),... | 48.118644 | 591 | 0.597746 | 361 | 2,839 | 4.631579 | 0.268698 | 0.0311 | 0.046651 | 0.069976 | 0.397727 | 0.397727 | 0.371411 | 0.319378 | 0.302033 | 0.244019 | 0 | 0.000477 | 0.26136 | 2,839 | 59 | 592 | 48.118644 | 0.796853 | 0.023248 | 0 | 0.255319 | 0 | 0.276596 | 0.569314 | 0.090614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148936 | false | 0 | 0.042553 | 0 | 0.361702 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a0a32f200c9e0427f6986fe9a684027e06f5ed6 | 1,229 | py | Python | setup.py | Seanny123/backmap | c216ab1fb9c21114c3d7414e514f5283a0a45f60 | [
"MIT"
] | 3 | 2019-10-07T13:07:13.000Z | 2021-09-26T08:58:38.000Z | setup.py | Seanny123/backmap | c216ab1fb9c21114c3d7414e514f5283a0a45f60 | [
"MIT"
] | null | null | null | setup.py | Seanny123/backmap | c216ab1fb9c21114c3d7414e514f5283a0a45f60 | [
"MIT"
] | 2 | 2019-03-29T14:51:58.000Z | 2020-02-21T14:53:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# INSTALL BY >pip install backmap OR python setup.py install
"""
Setup file for project.
This file was generated with PyScaffold 2.5, a tool that easily
puts up a scaffold for your new Python project. Learn more under:
http://pyscaffold.readthedocs.org/
#... | 24.58 | 70 | 0.717657 | 178 | 1,229 | 4.825843 | 0.589888 | 0.064028 | 0.075669 | 0.041909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008911 | 0.178194 | 1,229 | 49 | 71 | 25.081633 | 0.841584 | 0.546786 | 0 | 0 | 1 | 0 | 0.247689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a0defbbd961f21c1ca308b8350225b5f5e65ea9 | 2,132 | py | Python | mkmdtl/mb2md.py | CounterPillow/mb2md | 51ba3aeae4409fc56d687c35e9cde4c210a60116 | [
"Zlib"
] | null | null | null | mkmdtl/mb2md.py | CounterPillow/mb2md | 51ba3aeae4409fc56d687c35e9cde4c210a60116 | [
"Zlib"
] | null | null | null | mkmdtl/mb2md.py | CounterPillow/mb2md | 51ba3aeae4409fc56d687c35e9cde4c210a60116 | [
"Zlib"
] | null | null | null | #!/usr/bin/env python3
"""
Generates GitHub-flavoured markdown tables from track listings on MusicBrainz
releases.
"""
import argparse
from datetime import timedelta
import requests
from mkmdtl import md
MB_ENDPOINT_URL = 'musicbrainz.org/ws/2/'
def fetch_mb_release(mbid, user_agent='mb2md/1.0', https=True):
... | 30.457143 | 79 | 0.660413 | 261 | 2,132 | 5.252874 | 0.429119 | 0.039387 | 0.018964 | 0.024799 | 0.051058 | 0.051058 | 0 | 0 | 0 | 0 | 0 | 0.003667 | 0.232645 | 2,132 | 69 | 80 | 30.898551 | 0.834352 | 0.344747 | 0 | 0 | 1 | 0 | 0.163374 | 0.044833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.133333 | 0 | 0.3 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a0f52bbf245fc13aa3604dcc6402d07cf62e1dc | 7,779 | py | Python | project-metrics/metrics_service/database/models.py | estherkim/amp-github-apps | 6966690c5611ffb914ba0fc1ed0549f3b479ace9 | [
"Apache-2.0"
] | 36 | 2019-02-07T03:43:54.000Z | 2022-03-04T12:55:02.000Z | project-metrics/metrics_service/database/models.py | estherkim/amp-github-apps | 6966690c5611ffb914ba0fc1ed0549f3b479ace9 | [
"Apache-2.0"
] | 450 | 2018-11-21T22:36:39.000Z | 2022-01-26T18:40:49.000Z | project-metrics/metrics_service/database/models.py | estherkim/amp-github-apps | 6966690c5611ffb914ba0fc1ed0549f3b479ace9 | [
"Apache-2.0"
] | 42 | 2018-11-21T22:31:11.000Z | 2022-03-08T06:46:20.000Z | """Defines ORM models for interactions with the DB."""
from typing import Optional, Text
import datetime
import enum
import sqlalchemy
from sqlalchemy.ext import declarative
Base = declarative.declarative_base()
def _is_last_n_days(
timestamp_column: sqlalchemy.orm.attributes.InstrumentedAttribute,
days: in... | 32.012346 | 99 | 0.709731 | 974 | 7,779 | 5.462012 | 0.268994 | 0.051128 | 0.078195 | 0.031015 | 0.182895 | 0.128383 | 0.094173 | 0.066917 | 0.048496 | 0.028571 | 0 | 0.008495 | 0.1828 | 7,779 | 242 | 100 | 32.144628 | 0.828378 | 0.19167 | 0 | 0.148387 | 0 | 0 | 0.115472 | 0.011515 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077419 | false | 0 | 0.032258 | 0.045161 | 0.658065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a143501eacb6c84c9e8438b30e907da30cef8e4 | 3,618 | py | Python | punchy.py | NathanZabriskie/microfiction | 65de5de8749abf26a48598edf07732d0f3468ac2 | [
"MIT"
] | 1 | 2020-11-15T03:34:14.000Z | 2020-11-15T03:34:14.000Z | punchy.py | NathanZabriskie/microfiction | 65de5de8749abf26a48598edf07732d0f3468ac2 | [
"MIT"
] | null | null | null | punchy.py | NathanZabriskie/microfiction | 65de5de8749abf26a48598edf07732d0f3468ac2 | [
"MIT"
] | 1 | 2020-11-15T03:35:02.000Z | 2020-11-15T03:35:02.000Z | import conceptnet as cn
import datamuse as dm
import helpers as h
h = reload(h)
#import stanford as stan
import random
from nltk.corpus import wordnet as wn
from operator import itemgetter
bg_cache = {}
res_key = ""
res_cache = [] #TODO change to dict
# TODO see how get_nouns affects single words
#doesnt help much, ... | 28.265625 | 145 | 0.695688 | 562 | 3,618 | 4.329181 | 0.286477 | 0.032881 | 0.018496 | 0.024661 | 0.191122 | 0.173037 | 0.073983 | 0.063296 | 0.063296 | 0 | 0 | 0.010299 | 0.168049 | 3,618 | 127 | 146 | 28.488189 | 0.798007 | 0.109453 | 0 | 0.2 | 0 | 0 | 0.060125 | 0 | 0 | 0 | 0 | 0.007874 | 0 | 0 | null | null | 0 | 0.063158 | null | null | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a18f846bf755014dc685db691745958255ca4df | 13,157 | py | Python | calaccess_campaign_browser/management/commands/loadcalaccesscampaignexpenditures.py | dwillis/django-calaccess-campaign-browser | 69f7d6f1c64e45c85656af3003b1beed2fb55362 | [
"MIT"
] | 1 | 2021-01-13T12:08:26.000Z | 2021-01-13T12:08:26.000Z | calaccess_campaign_browser/management/commands/loadcalaccesscampaignexpenditures.py | dwillis/django-calaccess-campaign-browser | 69f7d6f1c64e45c85656af3003b1beed2fb55362 | [
"MIT"
] | null | null | null | calaccess_campaign_browser/management/commands/loadcalaccesscampaignexpenditures.py | dwillis/django-calaccess-campaign-browser | 69f7d6f1c64e45c85656af3003b1beed2fb55362 | [
"MIT"
] | null | null | null | import os
import csv
import copy
import tempfile
import warnings
from optparse import make_option
import MySQLdb
from django.db import connection
from calaccess_raw.models import ExpnCd
from calaccess_raw import get_download_directory
from calaccess_campaign_browser.management.commands import CalAccessCommand
from c... | 29.834467 | 76 | 0.469484 | 1,288 | 13,157 | 4.48059 | 0.201863 | 0.020274 | 0.016981 | 0.004852 | 0.286952 | 0.234275 | 0.217293 | 0.217293 | 0.217293 | 0.217293 | 0 | 0.014468 | 0.427377 | 13,157 | 440 | 77 | 29.902273 | 0.751526 | 0.009501 | 0 | 0.312958 | 0 | 0 | 0.685552 | 0.039536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00978 | false | 0 | 0.02934 | 0 | 0.046455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1331de9b5d54f99106155749aa128c4c4cb4f5f | 1,866 | py | Python | pizza_cutter/des_pizza_cutter/tests/test_pizza_cutter_metadata.py | beckermr/pizza-cutter | 04eefd2d4b2a63975fe809c60b5c8e7e3fcf26c6 | [
"BSD-3-Clause"
] | null | null | null | pizza_cutter/des_pizza_cutter/tests/test_pizza_cutter_metadata.py | beckermr/pizza-cutter | 04eefd2d4b2a63975fe809c60b5c8e7e3fcf26c6 | [
"BSD-3-Clause"
] | 194 | 2018-10-24T23:40:47.000Z | 2021-11-17T16:02:35.000Z | pizza_cutter/des_pizza_cutter/tests/test_pizza_cutter_metadata.py | beckermr/pizza-cutter | 04eefd2d4b2a63975fe809c60b5c8e7e3fcf26c6 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy as np
import esutil as eu
import fitsio
import meds
import piff
import pixmappy
import desmeds
import ngmix
import scipy
from .._pizza_cutter import _build_metadata
from .._constants import MAGZP_REF
from meds.maker import MEDS_FMT_VERSION
from ... import __version__
def test_pizza_cutter_bui... | 32.736842 | 83 | 0.698285 | 236 | 1,866 | 5.127119 | 0.211864 | 0.112397 | 0.145455 | 0.25124 | 0.304959 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0.000651 | 0.176849 | 1,866 | 56 | 84 | 33.321429 | 0.787109 | 0 | 0 | 0.16 | 0 | 0 | 0.161844 | 0 | 0 | 0 | 0 | 0 | 0.34 | 1 | 0.02 | false | 0 | 0.28 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e142b8925f159044472362ef5dd06269bbb955e9 | 2,713 | py | Python | preguntas/models.py | darkdrei/covidudc | 3c8e96b22d1f0ed7f3c929c11cbc98de72d2dc58 | [
"MIT"
] | null | null | null | preguntas/models.py | darkdrei/covidudc | 3c8e96b22d1f0ed7f3c929c11cbc98de72d2dc58 | [
"MIT"
] | null | null | null | preguntas/models.py | darkdrei/covidudc | 3c8e96b22d1f0ed7f3c929c11cbc98de72d2dc58 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Sintoma(models.Model):
nombre = models.CharField(unique=True, max_length=20)
descripcion = models.TextField(max_length=500)
def __str__(self):
return '{nombre}'.format(nombre=self.nombre)
class Meta:
verbose_name = '... | 32.297619 | 107 | 0.712127 | 296 | 2,713 | 6.324324 | 0.222973 | 0.094017 | 0.057692 | 0.076923 | 0.451923 | 0.428419 | 0.428419 | 0.428419 | 0.428419 | 0.405983 | 0 | 0.014388 | 0.180243 | 2,713 | 83 | 108 | 32.686747 | 0.827338 | 0.008846 | 0 | 0.428571 | 0 | 0 | 0.114296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.017857 | 0.107143 | 0.767857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e1446b8a0c8d95b1467791f38a924d6d8c4641c0 | 387 | py | Python | items/urls.py | lalanza808/xmrauctions | 992f0e605e566610d03c6e388ce70dcfa58864b3 | [
"MIT"
] | 3 | 2020-01-07T13:01:59.000Z | 2020-11-25T01:27:53.000Z | items/urls.py | lalanza808/xmrauctions | 992f0e605e566610d03c6e388ce70dcfa58864b3 | [
"MIT"
] | 6 | 2020-01-02T21:33:04.000Z | 2022-03-12T00:10:40.000Z | items/urls.py | lalanza808/xmrauctions | 992f0e605e566610d03c6e388ce70dcfa58864b3 | [
"MIT"
] | 2 | 2020-02-01T18:03:07.000Z | 2020-07-22T18:47:22.000Z | from django.urls import path
from items import views
urlpatterns = [
path('', views.list_items, name='list_items'),
path('create/', views.create_item, name='create_item'),
path('<int:item_id>/', views.get_item, name='get_item'),
path('<int:item_id>/edit/', views.edit_item, name='edit_item'),
path(... | 32.25 | 73 | 0.682171 | 57 | 387 | 4.403509 | 0.298246 | 0.12749 | 0.131474 | 0.179283 | 0.203187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126615 | 387 | 11 | 74 | 35.181818 | 0.742604 | 0 | 0 | 0 | 0 | 0 | 0.284238 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e145437957e3f94acb0bf9e70264313206c6fe86 | 2,085 | py | Python | data-importer.py | Tygovanommen/relational-database-data-import | 7a4743101228dc4be8a3ec76dc2879ef6523344f | [
"MIT"
] | null | null | null | data-importer.py | Tygovanommen/relational-database-data-import | 7a4743101228dc4be8a3ec76dc2879ef6523344f | [
"MIT"
] | null | null | null | data-importer.py | Tygovanommen/relational-database-data-import | 7a4743101228dc4be8a3ec76dc2879ef6523344f | [
"MIT"
] | null | null | null | import os
import shutil
from src.OrderData import OrderData
from src.logger import Logger
from src.shop import Shop
from src.pizzaIngredientsStagingTableBuilder import PizzaIngredientsStagingTableBuilder
from src.extraIngredientsStagingTableBuilder import ExtraIngredientsStagingTableBuilder
from src.pizzaCrustsStaging... | 35.948276 | 117 | 0.728058 | 210 | 2,085 | 7.090476 | 0.361905 | 0.047011 | 0.028207 | 0.036266 | 0.045668 | 0.045668 | 0 | 0 | 0 | 0 | 0 | 0.016298 | 0.176019 | 2,085 | 57 | 118 | 36.578947 | 0.850407 | 0.101679 | 0 | 0 | 0 | 0 | 0.197531 | 0.06817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e146715f7610457e46fb23ab70a99acfb8952bbd | 2,455 | py | Python | food_ke/scripts/similarity_search.py | IBPA/FoodAtlas | 0a431f0a391adaa8984b380f3f6f7189f27b9311 | [
"Apache-2.0"
] | 1 | 2022-02-07T10:04:35.000Z | 2022-02-07T10:04:35.000Z | food_ke/scripts/similarity_search.py | IBPA/FoodAtlas | 0a431f0a391adaa8984b380f3f6f7189f27b9311 | [
"Apache-2.0"
] | null | null | null | food_ke/scripts/similarity_search.py | IBPA/FoodAtlas | 0a431f0a391adaa8984b380f3f6f7189f27b9311 | [
"Apache-2.0"
] | null | null | null | from typing import List, Tuple
import requests
from bs4 import BeautifulSoup
from dagster import composite_solid, pipeline, solid
from food_ke.scripts.custom import Article
from food_ke.scripts.modes import dev, prod
from food_ke.scripts.ner import get_articles
from food_ke.scripts.utils import chunks, flatten
@sol... | 30.6875 | 84 | 0.650916 | 344 | 2,455 | 4.531977 | 0.401163 | 0.03592 | 0.025657 | 0.043618 | 0.243746 | 0.142399 | 0.114176 | 0.114176 | 0.114176 | 0 | 0 | 0.006974 | 0.240733 | 2,455 | 79 | 85 | 31.075949 | 0.829399 | 0.173523 | 0 | 0.233333 | 0 | 0.033333 | 0.082673 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.083333 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.