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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a31c4a4e0fe5dc12cc9ca8b45190499c5c2d8d7c | 764 | py | Python | Dataset/Leetcode/train/5/414.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/5/414.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/5/414.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, s: str) -> str:
# 1025 third coding two pointers
n = len(s)
if n<=1: return s
def isValid(left,right,maxlen,res):#中心扩展法的复杂度更低,减少一层循环!
while left>=0 and right<n and s[left]==s[right]:
#如果把s[left]==s[right]放在下边判断,需要讨论left和right... | 31.833333 | 66 | 0.5 | 97 | 764 | 3.938144 | 0.391753 | 0.141361 | 0.052356 | 0.089005 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029787 | 0.384817 | 764 | 23 | 67 | 33.217391 | 0.782979 | 0.171466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3250ae256c079f8ab4462143988bb1f83ef4d63 | 1,352 | py | Python | api/user.py | yishuangxi/car-tornado | bff2a77569ca9b2eee9298b64078d6b533ac280f | [
"MIT"
] | null | null | null | api/user.py | yishuangxi/car-tornado | bff2a77569ca9b2eee9298b64078d6b533ac280f | [
"MIT"
] | null | null | null | api/user.py | yishuangxi/car-tornado | bff2a77569ca9b2eee9298b64078d6b533ac280f | [
"MIT"
] | null | null | null | # coding=utf8
from base import ApiBase
from tornado.gen import coroutine, Return
from service.user import ServiceUser
class ApiUserBase(ApiBase):
def __init__(self, *args, **kwargs):
super(ApiUserBase, self).__init__(*args, **kwargs)
self.srv_user = ServiceUser()
class ApiUserLogin(ApiUserBase):... | 26.509804 | 87 | 0.650888 | 162 | 1,352 | 5.222222 | 0.308642 | 0.049645 | 0.106383 | 0.056738 | 0.345154 | 0.29078 | 0.243499 | 0.243499 | 0.243499 | 0.243499 | 0 | 0.000978 | 0.244083 | 1,352 | 50 | 88 | 27.04 | 0.82681 | 0.008136 | 0 | 0.371429 | 0 | 0 | 0.02994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.2 | 0.085714 | 0 | 0.314286 | 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 |
a32551bf11b157b158593f1dc1d29f74c491413f | 3,632 | py | Python | rbe_benchmarks/tools/generate_yml.py | jiyangchen/benchmarks | cfc870bd2871072accf8cef14b03edcb963bf62b | [
"Apache-2.0"
] | null | null | null | rbe_benchmarks/tools/generate_yml.py | jiyangchen/benchmarks | cfc870bd2871072accf8cef14b03edcb963bf62b | [
"Apache-2.0"
] | null | null | null | rbe_benchmarks/tools/generate_yml.py | jiyangchen/benchmarks | cfc870bd2871072accf8cef14b03edcb963bf62b | [
"Apache-2.0"
] | null | null | null | """Generates Kubernetes config yml file from benchmark_configs.yml file.
This script should only be run from opensource repository.
"""
import argparse
import logging
import os
from string import maketrans
import k8s_tensorflow_lib
import yaml
_TEST_NAME_ENV_VAR = 'TF_DIST_BENCHMARK_NAME'
_PORT = 5000
def _Conver... | 30.266667 | 80 | 0.688877 | 484 | 3,632 | 4.911157 | 0.330579 | 0.032394 | 0.035759 | 0.037863 | 0.164914 | 0.146403 | 0.124527 | 0.081615 | 0.081615 | 0.046277 | 0 | 0.005128 | 0.194659 | 3,632 | 119 | 81 | 30.521008 | 0.807521 | 0.138491 | 0 | 0.064103 | 1 | 0.012821 | 0.201295 | 0.040777 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.141026 | 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 |
a327e559ec1007ff0c6e601f9102a6d72e363ee4 | 676 | py | Python | models/wrf_hydro/hydro_dart_py/setup.py | hkershaw-brown/feature-preprocess | fe2bd77b38c63fa0566c83ebc4d2fac1623aef66 | [
"Apache-2.0"
] | 2 | 2021-07-05T03:43:35.000Z | 2021-07-05T11:39:49.000Z | models/wrf_hydro/hydro_dart_py/setup.py | hkershaw-brown/feature-preprocess | fe2bd77b38c63fa0566c83ebc4d2fac1623aef66 | [
"Apache-2.0"
] | 1 | 2021-03-31T04:16:45.000Z | 2021-03-31T04:16:45.000Z | models/wrf_hydro/hydro_dart_py/setup.py | hkershaw-brown/feature-preprocess | fe2bd77b38c63fa0566c83ebc4d2fac1623aef66 | [
"Apache-2.0"
] | 1 | 2020-11-20T23:36:16.000Z | 2020-11-20T23:36:16.000Z | from setuptools import find_packages, setup
setup(
name='hydrodartpy',
version='0.0.1',
packages=find_packages(),
package_data={'hydrodartpy': ['core/data/*']},
url='https://github.com/NCAR/wrf_hydro_dart',
license='MIT',
install_requires=[
'boltons',
'datetime',
'de... | 22.533333 | 50 | 0.554734 | 65 | 676 | 5.630769 | 0.8 | 0.065574 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.285503 | 676 | 29 | 51 | 23.310345 | 0.745342 | 0 | 0 | 0 | 0 | 0 | 0.37426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 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 |
a32e4db7bc30f0df393066446313d79fe0f329a5 | 3,296 | py | Python | core/views.py | dishad/ADD | 51455c493a4eb433eb1d8dde44771e917efcb500 | [
"MIT"
] | null | null | null | core/views.py | dishad/ADD | 51455c493a4eb433eb1d8dde44771e917efcb500 | [
"MIT"
] | 4 | 2016-11-26T19:10:01.000Z | 2016-12-24T10:42:16.000Z | core/views.py | dishad/deanslist | 51455c493a4eb433eb1d8dde44771e917efcb500 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.template import Context, loader
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth import authenticate
from django.contrib.auth im... | 24.969697 | 133 | 0.739078 | 421 | 3,296 | 5.679335 | 0.228029 | 0.046006 | 0.062735 | 0.075282 | 0.176077 | 0.098703 | 0.078628 | 0.036805 | 0 | 0 | 0 | 0 | 0.140777 | 3,296 | 131 | 134 | 25.160305 | 0.84428 | 0.047027 | 0 | 0.123457 | 0 | 0 | 0.125479 | 0.015326 | 0 | 0 | 0 | 0.007634 | 0 | 1 | 0.098765 | false | 0.111111 | 0.135802 | 0.037037 | 0.37037 | 0.061728 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a32f8483b338b36563493c6ba6c4c80894f08bdb | 3,706 | py | Python | pachong.py | echo6120/pythonhomework | e4b89f2aa3632f39dafcf95860dc1616727b7647 | [
"MIT"
] | 2 | 2018-03-24T10:55:31.000Z | 2018-03-24T10:56:13.000Z | pachong.py | echo6120/pythonhomework | e4b89f2aa3632f39dafcf95860dc1616727b7647 | [
"MIT"
] | null | null | null | pachong.py | echo6120/pythonhomework | e4b89f2aa3632f39dafcf95860dc1616727b7647 | [
"MIT"
] | 1 | 2019-10-10T12:58:51.000Z | 2019-10-10T12:58:51.000Z | #coding=utf-8
#抓取精品课网站中的课程,把有优惠券的课程筛选出来
#第一步:访问ke.youdao.com 获取精品课网页的所有的标签内容,例如:四六级,考研,实用英语...:
#第二步:访问标签页,获取课程详情页的url
#第三步:获取课程详情页需要的信息
#第四步:保存到Excel表中
import requests
import urllib3
import re
import sys
from bs4 import BeautifulSoup
from openpyxl import Workbook
from openpyxl import load_workbook
#抓取标签,"http://ke.... | 31.948276 | 100 | 0.578251 | 445 | 3,706 | 4.698876 | 0.361798 | 0.043042 | 0.024868 | 0.032999 | 0.095648 | 0.03252 | 0.03252 | 0.021999 | 0 | 0 | 0 | 0.011792 | 0.29061 | 3,706 | 115 | 101 | 32.226087 | 0.783568 | 0.100378 | 0 | 0.026316 | 0 | 0 | 0.077223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092105 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3333b4a0600b9d0895d786748402493b643bfc1 | 1,895 | py | Python | tests/test_accis_ex/test_accis.py | dsanchez-garcia/accim | 0f64df81a9ecd8424317f9213d90d802e8282c9f | [
"MIT"
] | null | null | null | tests/test_accis_ex/test_accis.py | dsanchez-garcia/accim | 0f64df81a9ecd8424317f9213d90d802e8282c9f | [
"MIT"
] | null | null | null | tests/test_accis_ex/test_accis.py | dsanchez-garcia/accim | 0f64df81a9ecd8424317f9213d90d802e8282c9f | [
"MIT"
] | null | null | null | from accim.sim import accis
def test_addAccis():
from accim.sim import accis
from os import listdir
scriptTypeList = ['ex_mm', 'ex_ac']
outputsList = ['simplified', 'standard', 'timestep']
EPlist = ['ep95']
for i in scriptTypeList:
for j in outputsList:
for k in EPlist:
... | 42.111111 | 120 | 0.584169 | 273 | 1,895 | 3.710623 | 0.274725 | 0.017769 | 0.148075 | 0.17769 | 0.504442 | 0.459033 | 0.459033 | 0.459033 | 0.459033 | 0.459033 | 0 | 0.073004 | 0.306069 | 1,895 | 44 | 121 | 43.068182 | 0.697338 | 0 | 0 | 0.05 | 0 | 0.15 | 0.364644 | 0.337731 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.025 | false | 0 | 0.075 | 0 | 0.1 | 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 |
a333816616f27fa0708f60bb8239202a5cc3a6e2 | 3,553 | py | Python | menu.py | chatea/948 | bde99bbaef78650b3ebafef3f24f87f72f4a0a8d | [
"MIT"
] | null | null | null | menu.py | chatea/948 | bde99bbaef78650b3ebafef3f24f87f72f4a0a8d | [
"MIT"
] | null | null | null | menu.py | chatea/948 | bde99bbaef78650b3ebafef3f24f87f72f4a0a8d | [
"MIT"
] | 2 | 2016-08-19T06:05:59.000Z | 2016-08-20T00:26:52.000Z | # -*- coding: utf-8 -*-
import json
import csv
import logging
_TEST_MENU_ID = u'-1'
_KEY_MENU_ID = u'menu_id'
_KEY_MENU_NAME = u'name'
_KEY_MENU_TITLE = u'title'
_KEY_MENU_IMAGE_URL = u'image_url'
_KEY_MENU_PATH = u'path_to_file'
KEY_ITEM_ID = u'id'
KEY_ITEM_NAME = u'name'
KEY_ITEM_ITEMS = u'items'
KEY_ITEM_IMAGE_UR... | 33.838095 | 96 | 0.636927 | 603 | 3,553 | 3.527363 | 0.155887 | 0.072402 | 0.105313 | 0.105783 | 0.4189 | 0.403385 | 0.362953 | 0.32111 | 0.32111 | 0.311707 | 0 | 0.019586 | 0.23839 | 3,553 | 104 | 97 | 34.163462 | 0.766445 | 0.005911 | 0 | 0.027027 | 0 | 0 | 0.247959 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 0 | null | null | 0.013514 | 0.067568 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a33919cebae58f61cf9d253999806d3447decc00 | 1,168 | py | Python | supervised_learning/__init__.py | liewmanchoi/NaiveMLA | fea7d6ce9650fb5ff7e31140fd584792dd0d7a2a | [
"MIT"
] | 1 | 2018-10-11T12:44:09.000Z | 2018-10-11T12:44:09.000Z | supervised_learning/__init__.py | liewmanchoi/NaiveMLA | fea7d6ce9650fb5ff7e31140fd584792dd0d7a2a | [
"MIT"
] | null | null | null | supervised_learning/__init__.py | liewmanchoi/NaiveMLA | fea7d6ce9650fb5ff7e31140fd584792dd0d7a2a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# __author__ = wangsheng
# __copyright__ = "Copyright 2018, Trump Organization"
# __email__ = "liewmanchoi@gmail.com"
# __status__ = "experiment"
# __time__ = 2018/11/8 11:15
# __file__ = __init__.py.py
from .knearestneighbor import KNN
from .linear_model import Ridge, Lasso, ElasticNet, Logist... | 33.371429 | 70 | 0.714041 | 89 | 1,168 | 9 | 0.516854 | 0.024969 | 0.049938 | 0.094881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01726 | 0.206336 | 1,168 | 34 | 71 | 34.352941 | 0.846818 | 0.181507 | 0 | 0 | 0 | 0 | 0.224684 | 0.144515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.44 | 0 | 0.44 | 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 |
a340058a1e3554d3cddefc9a7ed2130183eca2f5 | 2,362 | py | Python | alembic/dev_seeds.py | ryanmahan/police-data-trust | e001e699adbc416f26a4f8fa64d56a1ef17e76fb | [
"MIT"
] | null | null | null | alembic/dev_seeds.py | ryanmahan/police-data-trust | e001e699adbc416f26a4f8fa64d56a1ef17e76fb | [
"MIT"
] | 2 | 2021-09-27T20:50:09.000Z | 2021-10-11T17:23:42.000Z | alembic/dev_seeds.py | ryanmahan/police-data-trust | e001e699adbc416f26a4f8fa64d56a1ef17e76fb | [
"MIT"
] | null | null | null | from backend.database.core import db
from backend.database import User, UserRole
from backend.auth import user_manager
from backend.database.models.incident import Incident
from backend.database.models.officer import Officer
from backend.database.models.use_of_force import UseOfForce
def create_user(user):
user_e... | 25.956044 | 78 | 0.641829 | 302 | 2,362 | 4.870861 | 0.264901 | 0.085656 | 0.104011 | 0.051666 | 0.375935 | 0.301835 | 0.276003 | 0.206662 | 0.165874 | 0.165874 | 0 | 0.051941 | 0.225656 | 2,362 | 90 | 79 | 26.244444 | 0.752324 | 0 | 0 | 0.207792 | 0 | 0 | 0.165961 | 0.009738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025974 | false | 0.090909 | 0.077922 | 0 | 0.103896 | 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 |
a340830aa520f9d002052b88e1e07edea29544ea | 698 | py | Python | allencv/tests/models/basic_classifier_test.py | sethah/allencv | 1bdc27359f81290e96b290ccda11f7a9905ebf14 | [
"Apache-2.0"
] | 8 | 2019-05-09T02:48:54.000Z | 2022-02-14T03:58:54.000Z | allencv/tests/models/basic_classifier_test.py | sethah/allencv | 1bdc27359f81290e96b290ccda11f7a9905ebf14 | [
"Apache-2.0"
] | null | null | null | allencv/tests/models/basic_classifier_test.py | sethah/allencv | 1bdc27359f81290e96b290ccda11f7a9905ebf14 | [
"Apache-2.0"
] | null | null | null | from allencv.common.testing import AllenCvTestCase, ModelTestCase
from allencv.data.dataset_readers import ImageClassificationDirectory
from allencv.models import BasicImageClassifier
from allencv.modules.im2im_encoders import FeedforwardEncoder
from allencv.modules.im2vec_encoders import FlattenEncoder
class TestBas... | 43.625 | 106 | 0.803725 | 74 | 698 | 7.297297 | 0.594595 | 0.101852 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003328 | 0.138968 | 698 | 15 | 107 | 46.533333 | 0.895175 | 0 | 0 | 0 | 0 | 0 | 0.091822 | 0.031564 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a345e0e78b5623bed10fd1877afa16414a66afdb | 756 | py | Python | dashboard/plant_care/wikipedia_scraper.py | LSaldyt/plantsitter | 6d983b1596c7b2ddaea55f25067516579f542c14 | [
"MIT"
] | 1 | 2021-11-04T19:16:51.000Z | 2021-11-04T19:16:51.000Z | dashboard/plant_care/wikipedia_scraper.py | LSaldyt/plantsitter | 6d983b1596c7b2ddaea55f25067516579f542c14 | [
"MIT"
] | null | null | null | dashboard/plant_care/wikipedia_scraper.py | LSaldyt/plantsitter | 6d983b1596c7b2ddaea55f25067516579f542c14 | [
"MIT"
] | null | null | null | import wikipedia
from pprint import pprint
import json, os
class WikipediaScraper:
def __init__(self):
pass
def get(self, term):
try:
results = wikipedia.search(term)
if len(results) == 0:
raise RuntimeError(f'No wikipedia page for: {term}')
... | 37.8 | 249 | 0.666667 | 99 | 756 | 5.010101 | 0.626263 | 0.048387 | 0.060484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.251323 | 756 | 19 | 250 | 39.789474 | 0.872792 | 0 | 0 | 0 | 0 | 0.066667 | 0.30596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.2 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a34963807f9efa829d675f7d41262cfc10b905a5 | 1,138 | py | Python | setup.py | aroden-crowdstrike/eamcsv2json | 17f096b60e7cf2a2406ae61b877f7bec6fe9a7ff | [
"BSD-3-Clause"
] | null | null | null | setup.py | aroden-crowdstrike/eamcsv2json | 17f096b60e7cf2a2406ae61b877f7bec6fe9a7ff | [
"BSD-3-Clause"
] | null | null | null | setup.py | aroden-crowdstrike/eamcsv2json | 17f096b60e7cf2a2406ae61b877f7bec6fe9a7ff | [
"BSD-3-Clause"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='eamcsv2json',
description='Converts EAM CSV export to JSON',
long_description=open('README.md').read(),
author='Andrew Roden',
author_email='andrew.roden@crowdstrike.com',
url='https://github.com/crowdstrike/eamcsv2json',
# excludes r... | 30.756757 | 57 | 0.614236 | 116 | 1,138 | 5.887931 | 0.672414 | 0.111274 | 0.146413 | 0.114202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015205 | 0.248682 | 1,138 | 36 | 58 | 31.611111 | 0.783626 | 0.067663 | 0 | 0.060606 | 0 | 0 | 0.47259 | 0.050095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 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 |
a350ea2475c9dc5ad3730d2b63c362bf970ae493 | 19,168 | py | Python | meshed/base.py | sylvainbonnot/meshed | 6cd266810924480995d3a798e696ef7911dcf9b4 | [
"MIT"
] | null | null | null | meshed/base.py | sylvainbonnot/meshed | 6cd266810924480995d3a798e696ef7911dcf9b4 | [
"MIT"
] | null | null | null | meshed/base.py | sylvainbonnot/meshed | 6cd266810924480995d3a798e696ef7911dcf9b4 | [
"MIT"
] | null | null | null | """
Base functionality of meshed
"""
from collections import Counter
from dataclasses import dataclass, field
from functools import partial
from typing import Callable, MutableMapping, Iterable, Union, Sized, Sequence
from i2 import Sig, call_somewhat_forgivingly
from meshed.util import ValidationError, NameValidation... | 36.441065 | 94 | 0.653537 | 2,828 | 19,168 | 4.263791 | 0.165488 | 0.027202 | 0.007464 | 0.015674 | 0.22682 | 0.145961 | 0.085503 | 0.064356 | 0.034002 | 0.029524 | 0 | 0.002203 | 0.242227 | 19,168 | 525 | 95 | 36.510476 | 0.827952 | 0.506782 | 0 | 0.05291 | 0 | 0 | 0.115099 | 0.018948 | 0 | 0 | 0 | 0.011429 | 0.015873 | 1 | 0.132275 | false | 0 | 0.037037 | 0.015873 | 0.322751 | 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 |
a351abdfff69d885b5a22be4fa59283c80a7b781 | 1,363 | py | Python | python/code/mail/smtpplugin.py | hgfgood/note | f89febca3ce925cba4cd4c8068a4fa124f23c810 | [
"Apache-2.0"
] | null | null | null | python/code/mail/smtpplugin.py | hgfgood/note | f89febca3ce925cba4cd4c8068a4fa124f23c810 | [
"Apache-2.0"
] | null | null | null | python/code/mail/smtpplugin.py | hgfgood/note | f89febca3ce925cba4cd4c8068a4fa124f23c810 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
# coding:utf-8
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from email.mime.text import MIMEText
__author__ = 'hgf'
HOST = "smtp.qq.com"
SUBJECT = u"业务性能数据表"
FROM = "980673553@qq.com"
TO = "hgfgoodcreate@163.com"
def addimg(src, imgid):
... | 24.781818 | 104 | 0.685987 | 180 | 1,363 | 5.161111 | 0.572222 | 0.017223 | 0.041981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028644 | 0.129127 | 1,363 | 55 | 105 | 24.781818 | 0.754002 | 0.09391 | 0 | 0 | 0 | 0.026316 | 0.285134 | 0.124289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a36e802cfc7def6cead77254887144e38e9206da | 457 | py | Python | 0844_BackspaceStringCompare.py | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0844_BackspaceStringCompare.py | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0844_BackspaceStringCompare.py | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | 1 | 2020-03-18T05:23:40.000Z | 2020-03-18T05:23:40.000Z | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
s = []; t = []
for i in range(len(S)):
if S[i] == "#":
if len(s) > 0:
s.pop(-1)
else:
s.append(S[i])
for i in range(len(T)):
if T[i] == ... | 26.882353 | 55 | 0.319475 | 57 | 457 | 2.561404 | 0.368421 | 0.027397 | 0.082192 | 0.150685 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018265 | 0.520788 | 457 | 16 | 56 | 28.5625 | 0.648402 | 0 | 0 | 0.125 | 0 | 0 | 0.004376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 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 |
a36f7eea6ef24d0f6b6fdf9e851a832919ac22fc | 1,371 | py | Python | jygsaw/group.py | talwai/jygsaw | 70847c797ff1fb3034bf9d6f95fa6dce1b9056f7 | [
"WTFPL"
] | 2 | 2017-11-21T03:04:47.000Z | 2020-03-10T11:05:15.000Z | jygsaw/group.py | talwai/jygsaw | 70847c797ff1fb3034bf9d6f95fa6dce1b9056f7 | [
"WTFPL"
] | null | null | null | jygsaw/group.py | talwai/jygsaw | 70847c797ff1fb3034bf9d6f95fa6dce1b9056f7 | [
"WTFPL"
] | null | null | null | """
A Group is a convenient way to manage a group of GraphicsObjects.
"""
from graphicsobject import *
from shape import Shape
class Group():
"""
A Group object will hold a list of shapes, text, images and other objects, that are grouped together for convenience.
"""
def __init__(self, *objects):
... | 32.642857 | 141 | 0.603209 | 180 | 1,371 | 4.55 | 0.377778 | 0.065934 | 0.029304 | 0.040293 | 0.344322 | 0.344322 | 0.312576 | 0.312576 | 0.312576 | 0.312576 | 0 | 0 | 0.282276 | 1,371 | 41 | 142 | 33.439024 | 0.832317 | 0.378556 | 0 | 0.409091 | 0 | 0 | 0.038319 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.227273 | false | 0 | 0.090909 | 0.045455 | 0.409091 | 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 |
a370857b060f7f1d08fab12ce57d3d4ecfea38e5 | 18,873 | py | Python | wallet_manager/command_processor.py | DEX-Company/wallet-manager | bafb434a8f7b2277234e26b9ffde3237a6016ce6 | [
"Apache-2.0"
] | null | null | null | wallet_manager/command_processor.py | DEX-Company/wallet-manager | bafb434a8f7b2277234e26b9ffde3237a6016ce6 | [
"Apache-2.0"
] | null | null | null | wallet_manager/command_processor.py | DEX-Company/wallet-manager | bafb434a8f7b2277234e26b9ffde3237a6016ce6 | [
"Apache-2.0"
] | null | null | null | import inspect
import re
import os.path
import json
import secrets
import time
import logging
import sys
from web3 import (
Web3,
HTTPProvider
)
from eth_account import Account as EthAccount
from starfish import Ocean
from starfish.account import Account as OceanAccount
from wallet_manager.wallet_manager impo... | 38.993802 | 126 | 0.595189 | 2,085 | 18,873 | 5.127578 | 0.105036 | 0.079226 | 0.042653 | 0.04733 | 0.524928 | 0.461229 | 0.384716 | 0.33879 | 0.269011 | 0.23908 | 0 | 0.00705 | 0.308536 | 18,873 | 483 | 127 | 39.074534 | 0.812184 | 0.004875 | 0 | 0.35461 | 0 | 0 | 0.231867 | 0.016668 | 0 | 0 | 0.002237 | 0 | 0 | 1 | 0.085106 | false | 0.122931 | 0.049645 | 0.028369 | 0.200946 | 0.002364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a370fc8bae2f0332499a9e7de9b11bf1e10df407 | 2,790 | py | Python | backend/bigeye/schemas/schemas.py | Astropilot/BigEye | 4e1c246391c5f6e1c8ea4e4c35ee5fec209960a6 | [
"MIT"
] | null | null | null | backend/bigeye/schemas/schemas.py | Astropilot/BigEye | 4e1c246391c5f6e1c8ea4e4c35ee5fec209960a6 | [
"MIT"
] | null | null | null | backend/bigeye/schemas/schemas.py | Astropilot/BigEye | 4e1c246391c5f6e1c8ea4e4c35ee5fec209960a6 | [
"MIT"
] | null | null | null | from marshmallow import fields, validate
from marshmallow_enum import EnumField
from bigeye.models.base import ma
from bigeye.models.user import UserRoles
from bigeye.models.challenge import ChallengeDifficulty
class ChallengeCategorySchema(ma.Schema):
id = fields.Integer(dump_only=True)
name = fields.String... | 45 | 134 | 0.749462 | 341 | 2,790 | 5.97654 | 0.231672 | 0.090285 | 0.117763 | 0.092738 | 0.402355 | 0.32581 | 0.157017 | 0.157017 | 0.052012 | 0.052012 | 0 | 0.005244 | 0.11147 | 2,790 | 61 | 135 | 45.737705 | 0.816862 | 0 | 0 | 0.125 | 0 | 0 | 0.076344 | 0.021505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020833 | 0.104167 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a38ba073f85b00fee5759b368e3de80e9bf37f45 | 2,928 | py | Python | scripts/poc/structs2/s2-45.py | BenDerPan/POCs | 4ce7137ccc6d797f18193b4783929d6422437696 | [
"MIT"
] | 7 | 2017-10-07T09:46:05.000Z | 2021-08-18T07:11:19.000Z | scripts/poc/structs2/s2-45.py | BenDerPan/POCs | 4ce7137ccc6d797f18193b4783929d6422437696 | [
"MIT"
] | null | null | null | scripts/poc/structs2/s2-45.py | BenDerPan/POCs | 4ce7137ccc6d797f18193b4783929d6422437696 | [
"MIT"
] | 3 | 2017-10-08T03:26:53.000Z | 2019-03-10T15:10:11.000Z | import http.client
import urllib
import requests
from scripts.poc.poc_interface import PocInterface
class Structs2_45(PocInterface):
'''
Structs2 漏洞验证及利用实现
'''
def validate(self,url):
'''
验证指定URL是否存在Structs2 45漏洞
:param url: 需要验证的URL地址
:return: True-存在漏洞 False-不存在漏洞
... | 43.701493 | 539 | 0.618169 | 291 | 2,928 | 6.151203 | 0.453608 | 0.03352 | 0.046927 | 0.026816 | 0.252514 | 0.252514 | 0.212291 | 0.073743 | 0.073743 | 0 | 0 | 0.017395 | 0.195014 | 2,928 | 67 | 540 | 43.701493 | 0.742045 | 0.072404 | 0 | 0 | 0 | 0.068182 | 0.54761 | 0.487189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.227273 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a38e46758a08d8aa58e2cec40e436999a9751e25 | 3,133 | py | Python | chapter_3/exercise_43.py | Tobi-mmt/nltk-book | 42ee9fec4784f468ee3ae4aa361fd2e5b5c46b10 | [
"MIT"
] | null | null | null | chapter_3/exercise_43.py | Tobi-mmt/nltk-book | 42ee9fec4784f468ee3ae4aa361fd2e5b5c46b10 | [
"MIT"
] | null | null | null | chapter_3/exercise_43.py | Tobi-mmt/nltk-book | 42ee9fec4784f468ee3ae4aa361fd2e5b5c46b10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Aufgaben 6, 7, 20, 21, 24, 30, 34, 39, 38, 41, 43 Bis Dienstag
# -----------------
# 43 detect language
# -----------------
import nltk, re
from nltk import word_tokenize
languages = ['Chickasaw', 'English', 'German_Deutsch', 'Greenlandic_Inuktikut', 'Hungarian_Magyar', 'Ibibio_Efik']
def ... | 68.108696 | 960 | 0.735078 | 490 | 3,133 | 4.630612 | 0.508163 | 0.026443 | 0.009696 | 0.010577 | 0.278537 | 0.266197 | 0.266197 | 0.250331 | 0.250331 | 0.250331 | 0 | 0.010878 | 0.178423 | 3,133 | 45 | 961 | 69.622222 | 0.870629 | 0.044686 | 0 | 0 | 0 | 0.068966 | 0.644556 | 0.007035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.275862 | 0.034483 | 0 | 0 | 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 |
a39c278901ee2bd5c1dabec535b621519f966348 | 543 | py | Python | demo_hierarchy_tutorial/models/models.py | digitalsatori/odoo-demo-addons-tutorial | 8eb56156ac55f317f90bca089886c392556759c2 | [
"MIT"
] | 57 | 2020-06-22T05:28:11.000Z | 2022-03-25T08:15:08.000Z | demo_hierarchy_tutorial/models/models.py | digitalsatori/odoo-demo-addons-tutorial | 8eb56156ac55f317f90bca089886c392556759c2 | [
"MIT"
] | 2 | 2020-11-20T07:11:27.000Z | 2022-03-30T00:20:29.000Z | demo_hierarchy_tutorial/models/models.py | digitalsatori/odoo-demo-addons-tutorial | 8eb56156ac55f317f90bca089886c392556759c2 | [
"MIT"
] | 29 | 2020-07-04T15:24:01.000Z | 2022-03-28T01:29:03.000Z | from odoo import models, fields, api
class DemoHierarchyTutorial(models.Model):
_name = 'demo.hierarchy'
_description = 'Demo Hierarchy Tutorial'
name = fields.Char(string='name', index=True)
parent_id = fields.Many2one('demo.hierarchy', string='Related Partner', index=True)
parent_name = fields.C... | 45.25 | 113 | 0.71639 | 66 | 543 | 5.787879 | 0.484848 | 0.136126 | 0.073298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.134438 | 543 | 11 | 114 | 49.363636 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.244936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a3a1db0c83fb48e078eb89e46de0dc28dfa86155 | 3,850 | py | Python | growth/microscopy/images.py | sebastianbernasek/growth | 6d1cace75b19ad8b6130d0940584c24dd26bbe91 | [
"MIT"
] | 1 | 2022-03-01T14:48:14.000Z | 2022-03-01T14:48:14.000Z | growth/microscopy/images.py | sbernasek/growth | 6d1cace75b19ad8b6130d0940584c24dd26bbe91 | [
"MIT"
] | null | null | null | growth/microscopy/images.py | sbernasek/growth | 6d1cace75b19ad8b6130d0940584c24dd26bbe91 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from copy import deepcopy
from ..measure import ConditionedLognormalSampler
class ScalarImage:
"""
Class containing a scalar image.
"""
def __init__(self, height=1000, width=1000):
""" Instantiate scalar image with shape (<height>, <width>).... | 29.166667 | 116 | 0.58 | 476 | 3,850 | 4.619748 | 0.323529 | 0.024557 | 0.021828 | 0.016371 | 0.048204 | 0.028195 | 0 | 0 | 0 | 0 | 0 | 0.013091 | 0.285714 | 3,850 | 131 | 117 | 29.389313 | 0.786545 | 0.279221 | 0 | 0.064516 | 0 | 0 | 0.01176 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 1 | 0.225806 | false | 0 | 0.064516 | 0 | 0.419355 | 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 |
a3a31d2b7e951a611f47c66f8f0512d348d90e5a | 2,674 | py | Python | PI/Platform/OpenGL/OpenGLBuffer.py | HotShot0901/PI | 7e6fd0f68b4222e09ea825f27709ec5b1e51e928 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null | PI/Platform/OpenGL/OpenGLBuffer.py | HotShot0901/PI | 7e6fd0f68b4222e09ea825f27709ec5b1e51e928 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null | PI/Platform/OpenGL/OpenGLBuffer.py | HotShot0901/PI | 7e6fd0f68b4222e09ea825f27709ec5b1e51e928 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"bzip2-1.0.6",
"BSD-3-Clause"
] | null | null | null | from ...Renderer.Buffer import VertexBuffer, IndexBuffer, BufferLayout
from OpenGL.GL import glGenBuffers, glBufferData, glDeleteBuffers, glBindBuffer, glBufferSubData
from OpenGL.GL import GL_ARRAY_BUFFER, GL_STATIC_DRAW, GL_ELEMENT_ARRAY_BUFFER, GL_DYNAMIC_DRAW
import ctypes
import numpy as np
from multipledispatch... | 30.386364 | 96 | 0.686612 | 300 | 2,674 | 5.74 | 0.21 | 0.083043 | 0.067944 | 0.07259 | 0.384437 | 0.384437 | 0.367596 | 0.304878 | 0.255517 | 0.255517 | 0 | 0.005728 | 0.21653 | 2,674 | 87 | 97 | 30.735632 | 0.816229 | 0 | 0 | 0.375 | 0 | 0 | 0.011219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.09375 | 0.078125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3a3535a3760b4a669fc2666b8b59489756d4ecc | 2,292 | py | Python | src/shinymud/lib/shinymail.py | shinymud/ShinyMUD | 3f659d8be4468c9a8745b8797f5f96c2bc86533c | [
"MIT"
] | 35 | 2015-01-06T12:01:38.000Z | 2022-01-22T13:57:26.000Z | src/shinymud/lib/shinymail.py | shinymud/ShinyMUD | 3f659d8be4468c9a8745b8797f5f96c2bc86533c | [
"MIT"
] | 1 | 2021-06-24T13:21:16.000Z | 2021-07-06T18:46:06.000Z | src/shinymud/lib/shinymail.py | shinymud/ShinyMUD | 3f659d8be4468c9a8745b8797f5f96c2bc86533c | [
"MIT"
] | 8 | 2015-02-04T16:30:52.000Z | 2021-02-03T15:02:38.000Z | from shinymud.data.config import EMAIL_HOST, EMAIL_PORT, EMAIL_HOST_USER,\
EMAIL_HOST_PASSWORD, EMAIL_USE_TLS
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
class ShinyMail(object):
"""ShinyMail constructs and sends emails."""
... | 37.57377 | 82 | 0.622164 | 291 | 2,292 | 4.75945 | 0.38488 | 0.064982 | 0.046931 | 0.043321 | 0.043321 | 0.043321 | 0 | 0 | 0 | 0 | 0 | 0.000612 | 0.286649 | 2,292 | 60 | 83 | 38.2 | 0.846483 | 0.280541 | 0 | 0 | 0 | 0 | 0.061039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.088235 | 0.117647 | 0 | 0.264706 | 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 |
a3a46a9a0fdd89369c89e52d5dff21ccc01d5867 | 222 | py | Python | other/backpack.py | DanilaDanila/lessons | c9c2273e9cd6a8013c21eb889fc6a61f9cc3dfb7 | [
"MIT"
] | 4 | 2017-09-13T07:10:09.000Z | 2019-01-26T17:15:29.000Z | other/backpack.py | DanilaDanila/lessons | c9c2273e9cd6a8013c21eb889fc6a61f9cc3dfb7 | [
"MIT"
] | null | null | null | other/backpack.py | DanilaDanila/lessons | c9c2273e9cd6a8013c21eb889fc6a61f9cc3dfb7 | [
"MIT"
] | 4 | 2018-09-16T08:30:01.000Z | 2018-10-02T19:06:26.000Z | r = int(input())
w = [int(x) for x in input().split()]
c = [int(x) for x in input().split()]
m = [0]
for i in range(1, r + 1):
m.append(max([x[0] + m[i - x[1]] for x in zip(c, w) if x[1] <= i], default = 0))
print(m)
| 24.666667 | 84 | 0.509009 | 51 | 222 | 2.215686 | 0.392157 | 0.106195 | 0.159292 | 0.141593 | 0.353982 | 0.353982 | 0.353982 | 0 | 0 | 0 | 0 | 0.040698 | 0.225225 | 222 | 8 | 85 | 27.75 | 0.616279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e55f659b3f5ad4fbe440e44abd370dbc1a901cb | 2,867 | py | Python | web/app/lib/earthengine/__init__.py | geary/claslite | 83c49cf98eceae633034b82d35ed7991d943b857 | [
"Unlicense"
] | null | null | null | web/app/lib/earthengine/__init__.py | geary/claslite | 83c49cf98eceae633034b82d35ed7991d943b857 | [
"Unlicense"
] | null | null | null | web/app/lib/earthengine/__init__.py | geary/claslite | 83c49cf98eceae633034b82d35ed7991d943b857 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Earth Engine interface
~~~~~~~~~~~~~~~~~~~~
:By Michael Geary - http://mg.to/
:See UNLICENSE or http://unlicense.org/ for public domain notice.
"""
import cgi, logging, sys, os
import ee
from oauth2client import appengine
from google.appengine.api import urlfetch, users
from google.app... | 27.04717 | 74 | 0.662714 | 360 | 2,867 | 5.141667 | 0.369444 | 0.016207 | 0.02161 | 0.034036 | 0.071853 | 0.031334 | 0 | 0 | 0 | 0 | 0 | 0.005628 | 0.19428 | 2,867 | 105 | 75 | 27.304762 | 0.795671 | 0.014998 | 0 | 0.088608 | 0 | 0 | 0.157539 | 0.015754 | 0 | 0 | 0 | 0 | 0.012658 | 0 | null | null | 0.025316 | 0.088608 | 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 |
6e575f91b4f65ce3d3bbf1ec3b977c4df6df2202 | 4,014 | py | Python | tests/coworks/blueprint/test_mail.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | tests/coworks/blueprint/test_mail.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | tests/coworks/blueprint/test_mail.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | import os
import smtplib
from email import message
from io import BytesIO
from unittest import mock
import pytest
from coworks import TechMicroService
from coworks.blueprint.mail_blueprint import Mail
from coworks.config import LocalConfig
smtp_mock = mock.MagicMock()
smtp_mock.return_value.__enter__.return_value.lo... | 34.904348 | 96 | 0.598655 | 488 | 4,014 | 4.665984 | 0.196721 | 0.030742 | 0.034256 | 0.03733 | 0.600351 | 0.600351 | 0.591568 | 0.547211 | 0.547211 | 0.508564 | 0 | 0.008219 | 0.272546 | 4,014 | 114 | 97 | 35.210526 | 0.771575 | 0 | 0 | 0.53 | 0 | 0 | 0.183607 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.07 | false | 0.07 | 0.09 | 0.01 | 0.19 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e674bba7e974aef69c88702fb52e95d608c0be3 | 2,101 | py | Python | whattowatch/core/models.py | svhenrique/What-To-Watch-backend | 3bab4ad825e13eead9dae23d68b5f91cd6133720 | [
"MIT"
] | null | null | null | whattowatch/core/models.py | svhenrique/What-To-Watch-backend | 3bab4ad825e13eead9dae23d68b5f91cd6133720 | [
"MIT"
] | 5 | 2022-02-15T04:29:33.000Z | 2022-03-25T03:09:23.000Z | whattowatch/core/models.py | svhenrique/What-To-Watch-backend | 3bab4ad825e13eead9dae23d68b5f91cd6133720 | [
"MIT"
] | null | null | null | from tabnanny import verbose
from embed_video.fields import EmbedVideoField
from core.utils import get_file_path
from django.db import models
from pydoc import describe
CHOICES_RATTING = [
(0, "L"),
(10, "10"),
(12, "12"),
(14, "14"),
(16, "16"),
(18, "18"),
]
class Base(models.Model):
cr... | 38.2 | 128 | 0.741552 | 244 | 2,101 | 6.196721 | 0.413934 | 0.123677 | 0.101852 | 0.12037 | 0.397487 | 0.32209 | 0.084656 | 0.084656 | 0 | 0 | 0 | 0.014992 | 0.142789 | 2,101 | 54 | 129 | 38.907407 | 0.824542 | 0 | 0 | 0.133333 | 0 | 0 | 0.107568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.111111 | 0.044444 | 0.8 | 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 |
6e693366aa73c3e5190dfeb165652aeea6e62694 | 515 | py | Python | test/test_markdown_converter.py | wgroeneveld/dokuwiki-to-hugo | cfe7193d8b040e2352b7a9bc83fffa7c1c5a859e | [
"MIT"
] | 8 | 2017-04-14T19:17:24.000Z | 2022-02-02T00:03:25.000Z | test/test_markdown_converter.py | wgroeneveld/dokuwiki-to-hugo | cfe7193d8b040e2352b7a9bc83fffa7c1c5a859e | [
"MIT"
] | 4 | 2017-05-26T18:11:10.000Z | 2020-07-25T09:09:26.000Z | test/test_markdown_converter.py | wgroeneveld/dokuwiki-to-hugo | cfe7193d8b040e2352b7a9bc83fffa7c1c5a859e | [
"MIT"
] | 5 | 2017-08-12T09:59:43.000Z | 2021-02-26T14:28:23.000Z | from unittest import TestCase
from pathlib import Path
from src.markdown_converter import MarkdownConverter
class TestMarkdownHeader(TestCase):
def setUp(self):
self.converter = MarkdownConverter("test/dokuwiki_example.txt")
def test_acceptance_test_case(self):
# python 3.5 and up
e... | 27.105263 | 72 | 0.718447 | 60 | 515 | 6.033333 | 0.616667 | 0.071823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.194175 | 515 | 18 | 73 | 28.611111 | 0.86747 | 0.03301 | 0 | 0 | 0 | 0 | 0.155242 | 0.116935 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e69531f478f33e6136dd7686cb0bcc4caa4db53 | 1,559 | py | Python | environ/blog/views.py | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | de81b971026991c6689a133e68582b04431ae265 | [
"MIT"
] | null | null | null | environ/blog/views.py | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | de81b971026991c6689a133e68582b04431ae265 | [
"MIT"
] | null | null | null | environ/blog/views.py | CassandraTalbot32/Python-Django-CSS-HTML-JavaScript-webiste | de81b971026991c6689a133e68582b04431ae265 | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from django.urls import reverse
# Create your views here.
from django.views.generic import (
CreateView,
DetailView,
ListView,
UpdateView,
ListView,
DeleteView
)
from .forms import ArticleModelForm
from .models import Article
class ArticleCreateView(CreateV... | 23.621212 | 54 | 0.766517 | 205 | 1,559 | 5.614634 | 0.263415 | 0.054735 | 0.086881 | 0.117289 | 0.549957 | 0.524761 | 0.482189 | 0.482189 | 0.482189 | 0.482189 | 0 | 0.008785 | 0.123797 | 1,559 | 65 | 55 | 23.984615 | 0.833821 | 0.048749 | 0 | 0.565217 | 0 | 0 | 0.111637 | 0.107578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.108696 | 0.021739 | 0.73913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6e6c3307591bcf16eccdf142b301e1d682d3f6ad | 1,237 | py | Python | import.py | Findus23/citybike | 4c8527934df94df6d1db8fa8630590ce4946f5a8 | [
"MIT"
] | null | null | null | import.py | Findus23/citybike | 4c8527934df94df6d1db8fa8630590ce4946f5a8 | [
"MIT"
] | 5 | 2016-10-27T16:51:20.000Z | 2017-01-08T21:49:29.000Z | import.py | Findus23/citybike | 4c8527934df94df6d1db8fa8630590ce4946f5a8 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import json
import sys
from pprint import pprint
import requests
from config import database
import MySQLdb
try:
db = MySQLdb.connect(database["host"],
database["user"],
database["passwd"],
database["db"])
cur = ... | 25.244898 | 92 | 0.527082 | 141 | 1,237 | 4.617021 | 0.560284 | 0.009217 | 0.009217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02093 | 0.30477 | 1,237 | 48 | 93 | 25.770833 | 0.736047 | 0.013743 | 0 | 0 | 0 | 0.027027 | 0.305168 | 0.105824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081081 | 0.189189 | 0 | 0.189189 | 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 |
6e71fc8679bdfe831d2f3bf5cb5827fa16257f9c | 929 | py | Python | bke/bke_client/forms.py | Ntermast/BKE | 5a9b71c7c81102a2a3759bfa720d15e27ec96726 | [
"MIT"
] | null | null | null | bke/bke_client/forms.py | Ntermast/BKE | 5a9b71c7c81102a2a3759bfa720d15e27ec96726 | [
"MIT"
] | null | null | null | bke/bke_client/forms.py | Ntermast/BKE | 5a9b71c7c81102a2a3759bfa720d15e27ec96726 | [
"MIT"
] | null | null | null | from django import forms
from django.core.validators import FileExtensionValidator
from .models import Channel, Podcast
class ChannelForm(forms.ModelForm):
image = forms.ImageField(required=True)
class Meta:
model = Channel
fields = ('image',)
class PodcastForm(forms.ModelForm):
image =... | 23.820513 | 78 | 0.672766 | 91 | 929 | 6.846154 | 0.307692 | 0.096308 | 0.089888 | 0.11557 | 0.653291 | 0.653291 | 0.616372 | 0.542536 | 0.542536 | 0.542536 | 0 | 0.002755 | 0.218515 | 929 | 38 | 79 | 24.447368 | 0.855372 | 0 | 0 | 0.615385 | 0 | 0 | 0.031216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.615385 | 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 |
6e7c323d646d86a4544c08eedbbd2426649d62c6 | 3,217 | py | Python | code/aip/misc/misc.py | andymiller/ReducedVarianceReparamGradients | 220b2ee4e9ef25e0d4d07632dc98582178c48160 | [
"MIT"
] | 36 | 2017-05-22T20:02:47.000Z | 2021-06-17T02:26:46.000Z | code/vbproj/misc/misc.py | andymiller/vboost | 4173756f4b506853442635116042c6907a318d86 | [
"MIT"
] | null | null | null | code/vbproj/misc/misc.py | andymiller/vboost | 4173756f4b506853442635116042c6907a318d86 | [
"MIT"
] | 5 | 2017-07-30T10:16:55.000Z | 2020-12-23T10:37:08.000Z | import autograd.numpy as np
from autograd.scipy.special import gammaln
def sigmoid(a):
return 1. / (1. + np.exp(-a))
def logit(a):
return np.log(a) - np.log(1-a)
def mvn_diag_logpdf(x, mean, log_std):
D = len(mean)
qterm = -.5 * np.sum((x - mean)**2 / np.exp(2.*log_std), axis=1)
coef = -.5*D *... | 27.732759 | 75 | 0.596208 | 531 | 3,217 | 3.517891 | 0.278719 | 0.03212 | 0.026767 | 0.011242 | 0.071199 | 0.025696 | 0.025696 | 0.025696 | 0 | 0 | 0 | 0.038875 | 0.248368 | 3,217 | 115 | 76 | 27.973913 | 0.733664 | 0.250544 | 0 | 0.031746 | 0 | 0 | 0.008172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.015873 | 0.031746 | 0.031746 | 0.47619 | 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 |
6e846b2e612b3a93fb38f65ca3d72ef859516fa8 | 4,913 | py | Python | lists/Greenwald_1998_Perez_2010_lists.py | realliyifei/ConceptorDebias | f622de88661790da64697d6440bcc92ebc6f3413 | [
"Apache-2.0"
] | 10 | 2019-02-04T19:31:02.000Z | 2021-12-22T16:06:50.000Z | lists/Greenwald_1998_Perez_2010_lists.py | realliyifei/ConceptorDebias | f622de88661790da64697d6440bcc92ebc6f3413 | [
"Apache-2.0"
] | null | null | null | lists/Greenwald_1998_Perez_2010_lists.py | realliyifei/ConceptorDebias | f622de88661790da64697d6440bcc92ebc6f3413 | [
"Apache-2.0"
] | 8 | 2020-04-11T14:12:26.000Z | 2022-03-28T02:56:09.000Z | # Greewald et al. 1998
Japanese_names = ["Hitaka", "Yokomichi", "Fukamachi", "Yamamoto", "Itsumatsu", "Yagimoto", "Kawabashi", "Tsukimoto", "Kushibashi", "Tanaka", "Kuzumaki", "Takasawa", "Fujimoto", "Sugimoto", "Fukuyama", "Samukawa", "Harashima", "Sakata", "Kamakura", "Namikawa", "Kitayama", "Nakamoto", "Minakami", "... | 163.766667 | 320 | 0.620191 | 529 | 4,913 | 5.693762 | 0.775047 | 0.012948 | 0.01494 | 0.020916 | 0.15073 | 0.14243 | 0.131142 | 0.131142 | 0.131142 | 0.131142 | 0 | 0.004097 | 0.105842 | 4,913 | 29 | 321 | 169.413793 | 0.681539 | 0.033177 | 0 | 0 | 0 | 0 | 0.530763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e8a3821b3bae7c8d06c259c866a77fc11f08d4f | 2,006 | py | Python | app/test/send_data.py | gpp0725/EchoProxy | 0273f47397b76fa0292db267d99eeb9dccc4e869 | [
"Apache-2.0"
] | null | null | null | app/test/send_data.py | gpp0725/EchoProxy | 0273f47397b76fa0292db267d99eeb9dccc4e869 | [
"Apache-2.0"
] | null | null | null | app/test/send_data.py | gpp0725/EchoProxy | 0273f47397b76fa0292db267d99eeb9dccc4e869 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/3/3 0003 1:02
# @Author : Gpp
# @File : send_data.py
import requests
data = {"local": "beijing"}
proxy_data = {'proxy_data': [
{"v": "2",
"ps": "BWG-LA",
"add": "65.49.212.111",
"port": "62860",
"proxy_id": "523f96fd-a480-4... | 27.108108 | 116 | 0.491525 | 261 | 2,006 | 3.685824 | 0.440613 | 0.056133 | 0.04158 | 0.046778 | 0.366944 | 0.366944 | 0.285863 | 0.285863 | 0.285863 | 0.191268 | 0 | 0.148711 | 0.245763 | 2,006 | 73 | 117 | 27.479452 | 0.487112 | 0.222333 | 0 | 0.45283 | 0 | 0 | 0.417853 | 0.046572 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037736 | 0.018868 | 0 | 0.018868 | 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 |
6e9b8ea7e2bd07dc4d06872cc020b7b5cecd74b2 | 811 | py | Python | scripts/protocol/ibp/exceptions.py | periscope-ps/unis | b43b66f84fe91218d23c79dbf9e20fcec870ce74 | [
"BSD-3-Clause"
] | 2 | 2015-06-27T14:41:39.000Z | 2017-05-18T18:33:02.000Z | scripts/protocol/ibp/exceptions.py | periscope-ps/unis | b43b66f84fe91218d23c79dbf9e20fcec870ce74 | [
"BSD-3-Clause"
] | 18 | 2015-12-16T21:42:09.000Z | 2021-09-29T15:55:39.000Z | scripts/protocol/ibp/exceptions.py | periscope-ps/unis | b43b66f84fe91218d23c79dbf9e20fcec870ce74 | [
"BSD-3-Clause"
] | 2 | 2017-09-01T15:35:21.000Z | 2019-07-19T02:57:05.000Z | # =============================================================================
# periscope-ps (unis)
#
# Copyright (c) 2012-2016, Trustees of Indiana University,
# All rights reserved.
#
# This software may be modified and distributed under the terms of the BSD
# license. See the COPYING file for details.
#
# T... | 38.619048 | 79 | 0.583231 | 80 | 811 | 5.8125 | 0.775 | 0.073118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011594 | 0.149199 | 811 | 20 | 80 | 40.55 | 0.662319 | 0.654747 | 0 | 0 | 0 | 0 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | 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 |
6e9c3754b5c7a769bcc1a2383a850d736f933e82 | 6,016 | py | Python | BLE_Notifications.py | JyriLehtinen/Bluetooth | 84a80bbad0a1b2c11185e45e04a8f75a59b86644 | [
"MIT"
] | null | null | null | BLE_Notifications.py | JyriLehtinen/Bluetooth | 84a80bbad0a1b2c11185e45e04a8f75a59b86644 | [
"MIT"
] | null | null | null | BLE_Notifications.py | JyriLehtinen/Bluetooth | 84a80bbad0a1b2c11185e45e04a8f75a59b86644 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#This code scans for BLE advertising and decodes sensor data from a certain type of sensor module prototype
import sys
from bluepy.btle import Scanner, DefaultDelegate, Peripheral, BTLEException, Service, Characteristic
import os
import time
class SensorDelegate(DefaultDelegate):
message = 0
... | 35.809524 | 132 | 0.654255 | 692 | 6,016 | 5.618497 | 0.351156 | 0.026749 | 0.01749 | 0.023663 | 0.100823 | 0.062243 | 0.062243 | 0.046296 | 0 | 0 | 0 | 0.03523 | 0.240359 | 6,016 | 167 | 133 | 36.023952 | 0.815536 | 0.205785 | 0 | 0.033898 | 0 | 0 | 0.061122 | 0.004831 | 0 | 0 | 0.023104 | 0 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.076271 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ea31eea2339507561fd448651449932198e0fd2 | 6,153 | py | Python | dev/Gems/CloudGemPlayerAccount/AWS/resource-manager-code/command.py | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CloudGemPlayerAccount/AWS/resource-manager-code/command.py | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CloudGemPlayerAccount/AWS/resource-manager-code/command.py | ArchitectureStudios/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or t... | 69.920455 | 151 | 0.759142 | 855 | 6,153 | 5.281871 | 0.187135 | 0.071745 | 0.115146 | 0.075288 | 0.680027 | 0.674934 | 0.648804 | 0.54473 | 0.513065 | 0.513065 | 0 | 0.00056 | 0.12888 | 6,153 | 87 | 152 | 70.724138 | 0.841791 | 0.084187 | 0 | 0.349206 | 0 | 0 | 0.293008 | 0.007472 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031746 | 0.031746 | 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 |
6ea65fbf958336b9e959399af4a9e0239eaa9b41 | 610 | py | Python | tests/migrations/0014_auto_20200327_1152.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 2 | 2020-03-17T00:53:23.000Z | 2020-07-16T07:00:33.000Z | tests/migrations/0014_auto_20200327_1152.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 76 | 2019-12-05T01:15:57.000Z | 2021-09-07T16:47:27.000Z | tests/migrations/0014_auto_20200327_1152.py | intellineers/django-bridger | ed097984a99df7da40a4d01bd00c56e3c6083056 | [
"BSD-3-Clause"
] | 1 | 2020-02-05T15:09:47.000Z | 2020-02-05T15:09:47.000Z | # Generated by Django 2.2.11 on 2020-03-27 10:52
import django_fsm
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("tests", "0013_auto_20200219_1324"),
]
operations = [
migrations.AlterField(
model_name="modeltest",
name="... | 25.416667 | 98 | 0.545902 | 58 | 610 | 5.586207 | 0.706897 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099274 | 0.322951 | 610 | 23 | 99 | 26.521739 | 0.68523 | 0.07541 | 0 | 0.111111 | 1 | 0 | 0.185053 | 0.040925 | 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 |
6ecd3bb7ab30b57db2889871b443e252e1a7b759 | 979 | py | Python | PyScraper/server/models/project.py | nikan1996/PyScraper | ed6ba5aa490fce96b5ff59e1461b408886744c04 | [
"Apache-2.0"
] | null | null | null | PyScraper/server/models/project.py | nikan1996/PyScraper | ed6ba5aa490fce96b5ff59e1461b408886744c04 | [
"Apache-2.0"
] | 1 | 2018-05-31T19:08:40.000Z | 2018-05-31T19:08:40.000Z | PyScraper/server/models/project.py | nikan1996/PyScraper | ed6ba5aa490fce96b5ff59e1461b408886744c04 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
@author:nikan
@file: project.py
@time: 2018/5/14 下午4:20
"""
import datetime
from sqlalchemy import text
from sqlalchemy.dialects import mysql
from PyScraper.server.extensions import db
class Project(db.Model):
__tablename__ = "project"
project_id = db.Column(d... | 29.666667 | 128 | 0.716037 | 139 | 979 | 4.942446 | 0.517986 | 0.104803 | 0.101892 | 0.069869 | 0.260553 | 0.093159 | 0.093159 | 0 | 0 | 0 | 0 | 0.024823 | 0.135853 | 979 | 32 | 129 | 30.59375 | 0.787234 | 0.096016 | 0 | 0 | 0 | 0 | 0.113272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6ecf4658030d2902120f78e893a4f7cec04a779d | 1,935 | py | Python | refresh_dynspec_files.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | 2 | 2019-05-01T00:34:28.000Z | 2021-02-10T09:18:10.000Z | refresh_dynspec_files.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | null | null | null | refresh_dynspec_files.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | null | null | null | '''
refresh_dynspec_files.py
Purpose: Re-run the step of going from tbavg.ms to tbavg.ms.dynspec for all observations. This is
useful because I found a bug in dyn_spec (which reads the dynspec out of tbavg.ms) and so
want to redo just this step.
'''
import dynspec.ms2dynspec
reload(dynspec.ms2dynspec... | 43.977273 | 149 | 0.737468 | 336 | 1,935 | 4.119048 | 0.348214 | 0.106214 | 0.112717 | 0.070809 | 0.33237 | 0.307803 | 0.307803 | 0.282514 | 0.282514 | 0.056358 | 0 | 0.043103 | 0.160724 | 1,935 | 43 | 150 | 45 | 0.809113 | 0.236693 | 0 | 0 | 0 | 0 | 0.021649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ee361e0cf18f478933ff52e050ff7fb2712439d | 823 | py | Python | model/test_game.py | AndreasHae/tictactoe-py | 7c6d67474793a9f19f5797eaa8386e4b2c2eebf3 | [
"MIT"
] | 1 | 2018-03-18T22:51:29.000Z | 2018-03-18T22:51:29.000Z | model/test_game.py | AndreasHae/tictactoe-py | 7c6d67474793a9f19f5797eaa8386e4b2c2eebf3 | [
"MIT"
] | 2 | 2018-03-18T22:58:03.000Z | 2018-03-19T10:39:33.000Z | model/test_game.py | AndreasHae/tictactoe-py | 7c6d67474793a9f19f5797eaa8386e4b2c2eebf3 | [
"MIT"
] | null | null | null | import unittest
from model.game import Game
class GameTest(unittest.TestCase):
def setUp(self):
self.game = Game()
def test_next_player(self):
first_player = self.game.next_player
self.game.turn(0, 0)
second_player = self.game.next_player
self.game.turn(1, 0)
... | 25.71875 | 62 | 0.64277 | 109 | 823 | 4.706422 | 0.256881 | 0.187135 | 0.191033 | 0.140351 | 0.606238 | 0.573099 | 0.502924 | 0.233918 | 0.163743 | 0.163743 | 0 | 0.02269 | 0.250304 | 823 | 31 | 63 | 26.548387 | 0.808752 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42bf541386207b87a028f4682fdc2f2b583c0fb0 | 8,805 | py | Python | Util.py | a523/obscmdbench | 109f83d42f7e266d6205bac3f13c210502ed86f4 | [
"Apache-2.0"
] | 27 | 2018-01-23T09:23:03.000Z | 2021-08-09T19:01:42.000Z | Util.py | a523/obscmdbench | 109f83d42f7e266d6205bac3f13c210502ed86f4 | [
"Apache-2.0"
] | 3 | 2019-06-23T07:30:21.000Z | 2020-08-04T08:58:19.000Z | Util.py | a523/obscmdbench | 109f83d42f7e266d6205bac3f13c210502ed86f4 | [
"Apache-2.0"
] | 8 | 2018-09-20T10:08:39.000Z | 2021-09-14T07:33:37.000Z | # -*- coding:utf-8 -*-
import random
import string
import base64
import hmac
import hashlib
import logging
import sys
import time
import os
TIME_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
ISO8601 = '%Y%m%dT%H%M%SZ'
ISO8601_MS = '%Y-%m-%dT%H:%M:%S.%fZ'
RFC1123 = '%a, %d %b %Y %H:%M:%S %Z'
class InitSSHRemoteHost:
def _... | 31.33452 | 126 | 0.588756 | 1,139 | 8,805 | 4.395961 | 0.197542 | 0.023367 | 0.024166 | 0.016777 | 0.199521 | 0.118634 | 0.079489 | 0.076693 | 0.066307 | 0.051927 | 0 | 0.028004 | 0.261897 | 8,805 | 280 | 127 | 31.446429 | 0.742422 | 0.009654 | 0 | 0.107527 | 0 | 0.026882 | 0.124968 | 0.005361 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.048387 | 0.053763 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42c17cddde41c241e9967ce5584459dfad76abef | 712 | py | Python | children/migrations/0002_remove_child_ssn.py | City-of-Helsinki/kukkuu | 61f26bc622928fd04f6a397f832aaffff789e806 | [
"MIT"
] | null | null | null | children/migrations/0002_remove_child_ssn.py | City-of-Helsinki/kukkuu | 61f26bc622928fd04f6a397f832aaffff789e806 | [
"MIT"
] | 157 | 2019-10-08T07:58:59.000Z | 2022-03-20T23:00:17.000Z | children/migrations/0002_remove_child_ssn.py | City-of-Helsinki/kukkuu | 61f26bc622928fd04f6a397f832aaffff789e806 | [
"MIT"
] | 3 | 2019-10-07T12:06:26.000Z | 2022-01-25T14:03:14.000Z | # Generated by Django 2.2.6 on 2019-10-15 19:17
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("children", "0001_initial")]
operations = [
migrations.RenameField(model_name="child", old_name="uuid", new_name="id"),
migrations.Rem... | 27.384615 | 87 | 0.580056 | 73 | 712 | 5.506849 | 0.657534 | 0.067164 | 0.104478 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040486 | 0.30618 | 712 | 25 | 88 | 28.48 | 0.773279 | 0.063202 | 0 | 0.105263 | 1 | 0 | 0.111278 | 0.040602 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
42cbb8fbdb320bf4ee51a234482e61d5920e2af6 | 532 | py | Python | Task/Variadic-function/Python/variadic-function-4.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | Task/Variadic-function/Python/variadic-function-4.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Variadic-function/Python/variadic-function-4.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | >>> def printargs(*positionalargs, **keywordargs):
print "POSITIONAL ARGS:\n " + "\n ".join(repr(x) for x in positionalargs)
print "KEYWORD ARGS:\n " + '\n '.join(
"%r = %r" % (k,v) for k,v in keywordargs.iteritems())
>>> printargs(1,'a',1+0j, fee='fi', fo='fum')
POSITIONAL ARGS:
1
'a'
(1+0j)
KEYWORD A... | 20.461538 | 76 | 0.541353 | 78 | 532 | 3.692308 | 0.346154 | 0.027778 | 0.041667 | 0.069444 | 0.277778 | 0.277778 | 0.277778 | 0.277778 | 0.277778 | 0.277778 | 0 | 0.028103 | 0.197368 | 532 | 25 | 77 | 21.28 | 0.64637 | 0 | 0 | 0.521739 | 0 | 0 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
42ccf0a230dd6b60c0c66348fe16e98ae9ddaecc | 694 | py | Python | l10n_ar_ux/models/account_tax.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | 1 | 2021-01-25T15:57:58.000Z | 2021-01-25T15:57:58.000Z | l10n_ar_ux/models/account_tax.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | null | null | null | l10n_ar_ux/models/account_tax.py | odoo-mastercore/odoo-argentina | 58cdfe8610bae42f69ddb9d652a28eb3245f6a04 | [
"MIT"
] | 2 | 2020-10-17T16:36:02.000Z | 2021-01-24T10:20:05.000Z | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import fields, models, api
class AccountTax(models.Model):
... | 36.526316 | 78 | 0.54755 | 67 | 694 | 5.38806 | 0.641791 | 0.265928 | 0.127424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00173 | 0.167147 | 694 | 18 | 79 | 38.555556 | 0.622837 | 0.121037 | 0 | 0 | 0 | 0 | 0.119734 | 0.05765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42d46cca79d20f9f9b601039b1b942c9aa61ea97 | 1,074 | py | Python | migrations/versions/d09db0106be9_.py | CSCfi/pebbles | 24b32e8fc538cc8095fda62c892a8221346c2bce | [
"MIT"
] | 4 | 2017-05-11T14:50:32.000Z | 2020-01-10T09:02:27.000Z | migrations/versions/d09db0106be9_.py | CSCfi/pebbles | 24b32e8fc538cc8095fda62c892a8221346c2bce | [
"MIT"
] | 145 | 2017-04-07T11:01:58.000Z | 2019-12-11T15:30:23.000Z | migrations/versions/d09db0106be9_.py | CSCfi/pebbles | 24b32e8fc538cc8095fda62c892a8221346c2bce | [
"MIT"
] | 3 | 2017-10-25T12:36:16.000Z | 2018-04-26T08:49:34.000Z | """remove cost multipliers.
Revision ID: d09db0106be9
Revises: 7d8f697053e9
Create Date: 2016-11-14 15:12:37.972365
"""
# revision identifiers, used by Alembic.
revision = 'd09db0106be9'
down_revision = '7d8f697053e9'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upg... | 34.645161 | 140 | 0.739292 | 127 | 1,074 | 6.141732 | 0.448819 | 0.123077 | 0.046154 | 0.084615 | 0.298718 | 0.298718 | 0.264103 | 0.264103 | 0.151282 | 0.151282 | 0 | 0.057754 | 0.129423 | 1,074 | 30 | 141 | 35.8 | 0.776471 | 0.281192 | 0 | 0 | 0 | 0 | 0.251691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.384615 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
42dc064cc7cda2989742a61dea5eea2492ed422d | 5,020 | py | Python | gosubl/utils.py | charlievieth/GoSubl | 07dec6a5fef09e4e1d686cfe5d586edcda003381 | [
"MIT"
] | null | null | null | gosubl/utils.py | charlievieth/GoSubl | 07dec6a5fef09e4e1d686cfe5d586edcda003381 | [
"MIT"
] | 1 | 2020-11-06T22:01:04.000Z | 2020-11-06T22:01:04.000Z | gosubl/utils.py | charlievieth/GoSubl | 07dec6a5fef09e4e1d686cfe5d586edcda003381 | [
"MIT"
] | null | null | null | try:
from collections.abc import MutableMapping
except ImportError:
from collections import MutableMapping
from threading import Lock
class Counter:
"""Counter provides a thread-safe counter."""
__slots__ = "_lock", "_value"
def __init__(self, value: int = 0) -> None:
self._lock = Lock()... | 27.431694 | 71 | 0.551195 | 549 | 5,020 | 4.786885 | 0.205829 | 0.091324 | 0.098935 | 0.065068 | 0.392694 | 0.297945 | 0.236682 | 0.236682 | 0.179604 | 0.179604 | 0 | 0.000618 | 0.355378 | 5,020 | 182 | 72 | 27.582418 | 0.811496 | 0.063944 | 0 | 0.330935 | 0 | 0 | 0.021994 | 0.006193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201439 | false | 0 | 0.035971 | 0.014388 | 0.467626 | 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 |
42de2c67ea39fb1c4011156619ee111bdbf7f161 | 4,596 | py | Python | wntr/tests/test_times.py | yejustme/WNTR | 4228853c84217392b57e99c486e878ddf7959bbd | [
"BSD-3-Clause"
] | null | null | null | wntr/tests/test_times.py | yejustme/WNTR | 4228853c84217392b57e99c486e878ddf7959bbd | [
"BSD-3-Clause"
] | null | null | null | wntr/tests/test_times.py | yejustme/WNTR | 4228853c84217392b57e99c486e878ddf7959bbd | [
"BSD-3-Clause"
] | null | null | null | import unittest
from os.path import abspath, dirname, join
testdir = dirname(abspath(str(__file__)))
test_datadir = join(testdir,'networks_for_testing')
ex_datadir = join(testdir,'..','..','examples','networks')
#class TestNetworkTimeWarnings(unittest.TestCase):
#
# @classmethod
# def setUpClass(self):
# ... | 39.62069 | 153 | 0.613795 | 567 | 4,596 | 4.839506 | 0.204586 | 0.035714 | 0.049198 | 0.049563 | 0.787172 | 0.748542 | 0.668732 | 0.608601 | 0.552478 | 0.517857 | 0 | 0.034523 | 0.25 | 4,596 | 115 | 154 | 39.965217 | 0.761532 | 0.546997 | 0 | 0.179487 | 0 | 0 | 0.076885 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.128205 | false | 0.025641 | 0.076923 | 0 | 0.230769 | 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 |
42e345f904e2768c1e66e371528c325498939f5e | 1,069 | py | Python | snownlp/seg/seg.py | wuxqing/snownlp | 4595942d042c3fb36d187787cdb021ad1fd935e8 | [
"MIT"
] | 1 | 2020-08-04T07:56:12.000Z | 2020-08-04T07:56:12.000Z | snownlp/seg/seg.py | wuxqing/snownlp | 4595942d042c3fb36d187787cdb021ad1fd935e8 | [
"MIT"
] | null | null | null | snownlp/seg/seg.py | wuxqing/snownlp | 4595942d042c3fb36d187787cdb021ad1fd935e8 | [
"MIT"
] | 1 | 2020-07-01T08:28:39.000Z | 2020-07-01T08:28:39.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from ..utils.tnt import TnT
class Seg(object):
def __init__(self):
self.segger = TnT()
def save(self, fname):
self.segger.save(fname)
def load(self, fname):
self.segger.load(fname)
def train(se... | 21.38 | 59 | 0.4855 | 130 | 1,069 | 3.846154 | 0.446154 | 0.1 | 0.052 | 0.076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010463 | 0.374181 | 1,069 | 49 | 60 | 21.816327 | 0.736921 | 0.019645 | 0 | 0.055556 | 0 | 0 | 0.049713 | 0.024857 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
42e7de5abf0cb7b8ecb2c1b6a7920c0669cee2e7 | 7,130 | py | Python | src/main/resources/pip-inspector.py | antontroshin/synopsys-detect | 3ae9aaee5f98a7ebf8bda615603ba5ba25f13424 | [
"Apache-2.0"
] | 91 | 2019-02-28T19:10:32.000Z | 2022-03-17T18:56:53.000Z | src/main/resources/pip-inspector.py | antontroshin/synopsys-detect | 3ae9aaee5f98a7ebf8bda615603ba5ba25f13424 | [
"Apache-2.0"
] | 360 | 2019-02-25T20:08:58.000Z | 2022-02-02T17:50:12.000Z | src/main/resources/pip-inspector.py | antontroshin/synopsys-detect | 3ae9aaee5f98a7ebf8bda615603ba5ba25f13424 | [
"Apache-2.0"
] | 53 | 2019-02-15T19:38:56.000Z | 2022-03-31T06:37:49.000Z | # pylint: disable=fixme, line-too-long, import-error, no-name-in-module
#
# Copyright (c) 2020 Synopsys, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownersh... | 38.333333 | 120 | 0.692146 | 901 | 7,130 | 5.310766 | 0.322974 | 0.03908 | 0.03511 | 0.016301 | 0.126228 | 0.068339 | 0.050157 | 0.050157 | 0.050157 | 0.023406 | 0 | 0.007721 | 0.218934 | 7,130 | 185 | 121 | 38.540541 | 0.851499 | 0.364095 | 0 | 0.153061 | 0 | 0 | 0.055069 | 0.025174 | 0 | 0 | 0 | 0.010811 | 0.020408 | 1 | 0.071429 | false | 0.010204 | 0.122449 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42e9d5a929b67332ce2eb90fefc0bfcc96dc7a14 | 3,427 | py | Python | tests/test_imports.py | JunCEEE/hummingbird | 0b1bdf5023b92090f31d9bc857e0854a805cf2cd | [
"BSD-2-Clause"
] | 14 | 2016-02-18T23:10:12.000Z | 2021-07-30T09:19:56.000Z | tests/test_imports.py | JunCEEE/hummingbird | 0b1bdf5023b92090f31d9bc857e0854a805cf2cd | [
"BSD-2-Clause"
] | 66 | 2015-11-18T15:39:45.000Z | 2015-12-06T16:06:20.000Z | tests/test_imports.py | JunCEEE/hummingbird | 0b1bdf5023b92090f31d9bc857e0854a805cf2cd | [
"BSD-2-Clause"
] | 13 | 2016-07-07T13:15:52.000Z | 2021-11-10T11:56:13.000Z | import os, sys
import warnings
__thisdir__ = os.path.dirname(os.path.realpath(__file__))
# Testing the import of the numpy package
def test_import_numpy():
try:
import numpy as np
except ImportError as e:
assert(1 == 0), "Numpy could not be imported:\n %s" %e
sys.path.pop(0)
# Testing the ... | 30.061404 | 89 | 0.646046 | 501 | 3,427 | 4.273453 | 0.133733 | 0.06539 | 0.072863 | 0.100887 | 0.558617 | 0.537599 | 0.516114 | 0.467539 | 0.350771 | 0.22653 | 0 | 0.017864 | 0.248614 | 3,427 | 113 | 90 | 30.327434 | 0.813592 | 0.147067 | 0 | 0.528736 | 0 | 0 | 0.199381 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.137931 | false | 0 | 0.574713 | 0 | 0.735632 | 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 |
42ec24b596da19ef3e315c639b3ed58207a9f443 | 572 | py | Python | hostmanager/migrations/0002_auto_20170929_2313.py | kingsdigitallab/devops-django | faaa58a413d3e763c82ccd7a27a1bd27586fe9dd | [
"MIT"
] | 1 | 2020-08-20T07:00:14.000Z | 2020-08-20T07:00:14.000Z | hostmanager/migrations/0002_auto_20170929_2313.py | kingsdigitallab/devops-django | faaa58a413d3e763c82ccd7a27a1bd27586fe9dd | [
"MIT"
] | 1 | 2017-09-29T22:26:35.000Z | 2019-09-18T03:28:20.000Z | hostmanager/migrations/0002_auto_20170929_2313.py | kingsdigitallab/devops-django | faaa58a413d3e763c82ccd7a27a1bd27586fe9dd | [
"MIT"
] | 2 | 2018-01-04T16:45:53.000Z | 2019-10-02T15:35:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-29 22:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hostmanager', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 27.238095 | 182 | 0.63986 | 67 | 572 | 5.313433 | 0.835821 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.244755 | 572 | 20 | 183 | 28.6 | 0.768519 | 0.118881 | 0 | 0 | 1 | 0 | 0.215569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
42ef2e1738628cd3478c798c40aeb644a4edd094 | 1,506 | py | Python | wagtail/search/migrations/0005_create_indexentry.py | stevedya/wagtail | 52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c | [
"BSD-3-Clause"
] | 1 | 2022-02-09T05:25:30.000Z | 2022-02-09T05:25:30.000Z | wagtail/search/migrations/0005_create_indexentry.py | stevedya/wagtail | 52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c | [
"BSD-3-Clause"
] | null | null | null | wagtail/search/migrations/0005_create_indexentry.py | stevedya/wagtail | 52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-28 14:12
import django.db.models.deletion # noqa
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("contenttypes", "0002_remove_content_type_name"),
("wagtailsearch", "0004_querydailyhits_verbose_name_plural... | 30.12 | 69 | 0.458831 | 113 | 1,506 | 5.911504 | 0.628319 | 0.065868 | 0.041916 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031877 | 0.437583 | 1,506 | 49 | 70 | 30.734694 | 0.756789 | 0.033201 | 0 | 0.142857 | 1 | 0 | 0.176875 | 0.063317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.119048 | 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 |
42f46e7b9f4ed5fd9e45b9b941cd383196bd9585 | 2,945 | py | Python | ui/ui_designer/ui_file/uic_initDialog.py | Tanyiqu/AnimeArtifactPro | 771eded4c117c7dbd5e5066036dd4ef76783c90a | [
"Apache-2.0"
] | 50 | 2020-04-16T15:21:32.000Z | 2020-10-05T11:56:57.000Z | ui/ui_designer/ui_file/uic_initDialog.py | tanyiqu/AnimeArtifactPro | 771eded4c117c7dbd5e5066036dd4ef76783c90a | [
"Apache-2.0"
] | 2 | 2020-10-23T19:47:59.000Z | 2021-01-25T02:55:00.000Z | ui/ui_designer/ui_file/uic_initDialog.py | Tanyiqu/AnimeArtifactPro | 771eded4c117c7dbd5e5066036dd4ef76783c90a | [
"Apache-2.0"
] | 4 | 2020-04-22T14:25:35.000Z | 2020-06-20T15:26:53.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'initDialog.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_initDialog(object):
def setupUi(self, initDialog):
ini... | 48.278689 | 78 | 0.702207 | 295 | 2,945 | 6.972881 | 0.311864 | 0.074866 | 0.096257 | 0.070491 | 0.030141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046407 | 0.173175 | 2,945 | 60 | 79 | 49.083333 | 0.798357 | 0.062479 | 0 | 0 | 1 | 0 | 0.09114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.021277 | 0 | 0.085106 | 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 |
6e0198a52c860e5e44813f8e29c44e0fcf1479c4 | 1,199 | py | Python | outbreak_z.py | jonesmat/outbreak_z | aec920e38a18866e83f54975e89c2de67d83f4f8 | [
"MIT"
] | 1 | 2020-08-19T13:23:26.000Z | 2020-08-19T13:23:26.000Z | outbreak_z.py | jonesmat/outbreak_z | aec920e38a18866e83f54975e89c2de67d83f4f8 | [
"MIT"
] | null | null | null | outbreak_z.py | jonesmat/outbreak_z | aec920e38a18866e83f54975e89c2de67d83f4f8 | [
"MIT"
] | null | null | null | import pygame
from pygame.locals import QUIT, KEYDOWN, K_q, K_ESCAPE, K_BACKQUOTE, MOUSEBUTTONDOWN
from resources.resourcemgr import ResourceMgr
from scenes.game_scene import GameScene
def main():
pygame.init()
SCREEN_SIZE = (1280, 800)
surface = pygame.display.set_mode(SCREEN_SIZE, 0, 32)
clock = py... | 29.243902 | 84 | 0.608007 | 144 | 1,199 | 4.847222 | 0.416667 | 0.110315 | 0.047278 | 0.031519 | 0.060172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016726 | 0.301918 | 1,199 | 41 | 85 | 29.243902 | 0.817204 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.133333 | 0 | 0.233333 | 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 |
6e066ab1df692bc8b908f58486fc5b072fb3df64 | 1,500 | py | Python | events/migrations/0014_tournament.py | RyanRMurray/warwick_gg | 3d9904c3afc706620ac2a98736dafa7e655765d2 | [
"MIT"
] | 5 | 2018-03-08T13:02:07.000Z | 2020-04-09T13:36:20.000Z | events/migrations/0014_tournament.py | RyanRMurray/warwick_gg | 3d9904c3afc706620ac2a98736dafa7e655765d2 | [
"MIT"
] | 15 | 2018-05-29T13:22:40.000Z | 2022-03-11T23:20:32.000Z | events/migrations/0014_tournament.py | RyanRMurray/warwick_gg | 3d9904c3afc706620ac2a98736dafa7e655765d2 | [
"MIT"
] | 7 | 2018-05-26T15:15:43.000Z | 2020-01-04T20:24:33.000Z | # Generated by Django 2.0.2 on 2018-06-07 13:25
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('events', '0013_eventsignup_unsigned_up_at'),
]
operations = [
migrations.Creat... | 46.875 | 262 | 0.632 | 163 | 1,500 | 5.723926 | 0.576687 | 0.05895 | 0.101822 | 0.137192 | 0.235799 | 0.235799 | 0.235799 | 0.235799 | 0 | 0 | 0 | 0.021496 | 0.224667 | 1,500 | 31 | 263 | 48.387097 | 0.780739 | 0.03 | 0 | 0 | 1 | 0.04 | 0.231246 | 0.037853 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 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 |
6e29068ed65ac299fd2f3be4dbe36b67f90ed76a | 777 | py | Python | Python/Exercícios_Python/036_analisando_triângulo.py | vdonoladev/aprendendo-programacao | 83abbcd6701b2105903b28fd549738863418cfb8 | [
"MIT"
] | null | null | null | Python/Exercícios_Python/036_analisando_triângulo.py | vdonoladev/aprendendo-programacao | 83abbcd6701b2105903b28fd549738863418cfb8 | [
"MIT"
] | null | null | null | Python/Exercícios_Python/036_analisando_triângulo.py | vdonoladev/aprendendo-programacao | 83abbcd6701b2105903b28fd549738863418cfb8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""036 - Analisando Triângulo
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1oQmCX-HLeaqxWxaz9zsjj-5Na35XtNXM
"""
print('*' * 54)
print('------- Condição de existência de um triângulo -------'.upper())
print('*' * 54)
r1 = fl... | 31.08 | 77 | 0.65251 | 115 | 777 | 4.356522 | 0.513043 | 0.065868 | 0.101796 | 0.107784 | 0.341317 | 0.341317 | 0.155689 | 0.155689 | 0 | 0 | 0 | 0.0625 | 0.176319 | 777 | 25 | 78 | 31.08 | 0.720313 | 0.254826 | 0 | 0.153846 | 1 | 0 | 0.481675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 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 |
6e30ca22ea1f8382b671a9a4f2cdc4c1c05f4025 | 2,032 | py | Python | scripts/display.py | priyablue/ros-face-recognition | 210ef17b922224007746336c31139be5945712a3 | [
"MIT"
] | 19 | 2018-11-21T07:32:00.000Z | 2022-01-31T13:01:14.000Z | scripts/display.py | bryandario8/ros_face_recognition | 6c7e0bb51d0fa303d88c4512a36264b639396a23 | [
"MIT"
] | 3 | 2019-08-09T15:57:22.000Z | 2019-08-18T05:13:39.000Z | scripts/display.py | bryandario8/ros_face_recognition | 6c7e0bb51d0fa303d88c4512a36264b639396a23 | [
"MIT"
] | 10 | 2019-01-22T05:04:36.000Z | 2022-03-28T01:39:18.000Z | #!/usr/bin/env python
import cv2
import dlib
import rospy
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
from ros_face_recognition.srv import Face
import config
import face_api
_service = "/{}/faces".format(config.topic_name)
class ImageReader:
def __init__(self):
self.... | 27.835616 | 87 | 0.527559 | 228 | 2,032 | 4.535088 | 0.447368 | 0.015474 | 0.029014 | 0.019342 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009274 | 0.363189 | 2,032 | 72 | 88 | 28.222222 | 0.789799 | 0.009843 | 0 | 0.054545 | 0 | 0 | 0.07459 | 0.010443 | 0 | 0 | 0.001989 | 0 | 0 | 0 | null | null | 0 | 0.145455 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e37681d4257d4b4eb5267582f4c47d37524d490 | 1,485 | py | Python | waymo_kitti_converter/tools/list_generator.py | anhvth/Pseudo_Lidar_V2 | d7a29ffc811e315df25bba2a43acf288d4ceb30e | [
"MIT"
] | null | null | null | waymo_kitti_converter/tools/list_generator.py | anhvth/Pseudo_Lidar_V2 | d7a29ffc811e315df25bba2a43acf288d4ceb30e | [
"MIT"
] | null | null | null | waymo_kitti_converter/tools/list_generator.py | anhvth/Pseudo_Lidar_V2 | d7a29ffc811e315df25bba2a43acf288d4ceb30e | [
"MIT"
] | null | null | null | """
This script generates number list text files
Number list contains stem of filenames
Number list specifies the files used for a certain data split
Prefix:
- training: 0 (training/)
- validation: 1 (training/)
- testing: 2 (testing/)
- domain adaptation training labell... | 28.018868 | 83 | 0.606061 | 179 | 1,485 | 4.905028 | 0.49162 | 0.091116 | 0.05467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012369 | 0.292256 | 1,485 | 52 | 84 | 28.557692 | 0.823026 | 0.378451 | 0 | 0 | 1 | 0 | 0.125 | 0.085648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e38cda93aff0cc16c31c54aff63a14fcefb016a | 361 | py | Python | examples/default/app.py | lucuma/authcode | 91529b6d0caec07d1452758d937e1e0745826139 | [
"MIT"
] | 11 | 2015-01-14T17:12:46.000Z | 2015-11-04T12:41:19.000Z | examples/default/app.py | lucuma/authcode | 91529b6d0caec07d1452758d937e1e0745826139 | [
"MIT"
] | null | null | null | examples/default/app.py | lucuma/authcode | 91529b6d0caec07d1452758d937e1e0745826139 | [
"MIT"
] | 1 | 2016-01-12T14:55:15.000Z | 2016-01-12T14:55:15.000Z | # coding=utf-8
from flask import Flask
from mailshake import ToConsoleMailer, SMTPMailer
from sqlalchemy_wrapper import SQLAlchemy
import settings
app = Flask(__name__)
app.config.from_object(settings)
db = SQLAlchemy(settings.SQLALCHEMY_URI, app)
if settings.DEBUG:
mailer = ToConsoleMailer()
else:
mailer ... | 20.055556 | 51 | 0.792244 | 44 | 361 | 6.318182 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003185 | 0.130194 | 361 | 17 | 52 | 21.235294 | 0.882166 | 0.033241 | 0 | 0 | 0 | 0 | 0 | 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 |
6e39a3d3b1cd22ab2fba0bba8142913db2f974de | 3,872 | py | Python | VTiger_KPI_Dashboard/docs/models.py | roovyshapiro/VTiger_Sales_Dashboard | c20687ed8cd5aea8df6a6868b94389eb3b069d3a | [
"MIT"
] | null | null | null | VTiger_KPI_Dashboard/docs/models.py | roovyshapiro/VTiger_Sales_Dashboard | c20687ed8cd5aea8df6a6868b94389eb3b069d3a | [
"MIT"
] | null | null | null | VTiger_KPI_Dashboard/docs/models.py | roovyshapiro/VTiger_Sales_Dashboard | c20687ed8cd5aea8df6a6868b94389eb3b069d3a | [
"MIT"
] | null | null | null | from django.db import close_old_connections, models
from django.utils import timezone
class Docs(models.Model):
'''
DOC Example
{
"archivedAt": null,
"collaboratorIds": [
"12345-1234-1234-1234-123456789",
"12345asdf-1234-1234f-1234a-12345a",
],
... | 43.505618 | 167 | 0.634298 | 469 | 3,872 | 5.110874 | 0.347548 | 0.063413 | 0.103045 | 0.134752 | 0.570713 | 0.526909 | 0.497288 | 0.465582 | 0.443888 | 0.443888 | 0 | 0.153796 | 0.214101 | 3,872 | 89 | 168 | 43.505618 | 0.633914 | 0.506715 | 0 | 0 | 0 | 0.038462 | 0.064019 | 0.033788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0.038462 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6e3c6c2795d6c10cf76f6c2c5c5d805bbbee3c7f | 690 | py | Python | athanor_channels/commands/character.py | volundmush/athanor_channels | 78d9fb7e2432976e4ec7ef54f18f350bf9b96afd | [
"BSD-3-Clause"
] | null | null | null | athanor_channels/commands/character.py | volundmush/athanor_channels | 78d9fb7e2432976e4ec7ef54f18f350bf9b96afd | [
"BSD-3-Clause"
] | null | null | null | athanor_channels/commands/character.py | volundmush/athanor_channels | 78d9fb7e2432976e4ec7ef54f18f350bf9b96afd | [
"BSD-3-Clause"
] | null | null | null | from athanor_channels.commands.base import AbstractChannelAdminCommand, AbstractChannelCommand, AbstractChannelUseCommand
class CharacterChannelCommand(AbstractChannelCommand):
system_key = 'character'
help_category = "Character Channel Aliases"
user_controller = 'character'
class CmdCharacterChannelAdm... | 28.75 | 121 | 0.762319 | 60 | 690 | 8.6 | 0.566667 | 0.052326 | 0.069767 | 0.093023 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162319 | 690 | 23 | 122 | 30 | 0.892734 | 0 | 0 | 0.25 | 0 | 0 | 0.12029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.9375 | 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 |
6e3d67388b1fb9c8f386cf40046f0a6da9ecb35e | 1,101 | py | Python | keras/datasets/sin.py | Dlyma/keras-plus | 47793d9af6102a518fb3ce7d68774cfff055e1d5 | [
"MIT"
] | 1 | 2015-08-27T10:24:25.000Z | 2015-08-27T10:24:25.000Z | keras/datasets/sin.py | Dlyma/keras-plus | 47793d9af6102a518fb3ce7d68774cfff055e1d5 | [
"MIT"
] | null | null | null | keras/datasets/sin.py | Dlyma/keras-plus | 47793d9af6102a518fb3ce7d68774cfff055e1d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import cPickle
import sys, os
import numpy as np
# written by zhaowuxia @ 2015/5/30
# used for generate linear datasets
def generate_data(sz, T, diff_start, diff_T):
data = []
for i in range(sz):
start = 0
if diff_start:
start = np.random.random()
Tim... | 29.756757 | 118 | 0.572207 | 171 | 1,101 | 3.584795 | 0.380117 | 0.019576 | 0.034258 | 0.04894 | 0.159869 | 0.094617 | 0.094617 | 0.094617 | 0 | 0 | 0 | 0.027329 | 0.268847 | 1,101 | 36 | 119 | 30.583333 | 0.734161 | 0.085377 | 0 | 0.066667 | 1 | 0 | 0.026946 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.233333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e4194bd543d0d5f156af5693d121c8c22edb424 | 909 | py | Python | 4_review_to_tag.py | carpedm20/movietag | cad4f4685e42fbb279371bc7a41b02f1641278df | [
"MIT"
] | 7 | 2015-05-14T15:21:14.000Z | 2021-02-09T00:49:27.000Z | 4_review_to_tag.py | carpedm20/movietag | cad4f4685e42fbb279371bc7a41b02f1641278df | [
"MIT"
] | null | null | null | 4_review_to_tag.py | carpedm20/movietag | cad4f4685e42fbb279371bc7a41b02f1641278df | [
"MIT"
] | 4 | 2015-02-19T17:42:31.000Z | 2019-02-21T15:29:31.000Z | #!/usr/bin/python
import requests
import json
import sys
from os import listdir
from config import *
from random import shuffle
from func import *
debug = True
f = open('movie_review.json', 'r')
j = json.loads(f.read())
f.close()
movie_dict = {}
movie_dict['data'] = []
count = 0
for i in j['data']:
print coun... | 16.833333 | 70 | 0.606161 | 142 | 909 | 3.711268 | 0.394366 | 0.091082 | 0.037951 | 0.037951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005831 | 0.245325 | 909 | 53 | 71 | 17.150943 | 0.762391 | 0.017602 | 0 | 0.055556 | 0 | 0 | 0.085202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.194444 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6e43805a86b056d39a9529d600d31eb9725d1b98 | 9,122 | py | Python | tulipnb/__init__.py | anlambert/tulip_python_jupyter | 75aad4828b6da72ca4ef971b075bb47eb63bd62e | [
"MIT"
] | null | null | null | tulipnb/__init__.py | anlambert/tulip_python_jupyter | 75aad4828b6da72ca4ef971b075bb47eb63bd62e | [
"MIT"
] | null | null | null | tulipnb/__init__.py | anlambert/tulip_python_jupyter | 75aad4828b6da72ca4ef971b075bb47eb63bd62e | [
"MIT"
] | null | null | null | # Python module to use when working with the tulip module in a Jupyter / IPython notebook
# It enables to inline Tulip WebGL graph visualizations in the notebook
# That code is freely inspired from the great mpld3 project
# (see https://github.com/mpld3/mpld3/tree/master/mpld3)
import sys
import base64
import jinja2
... | 33.413919 | 171 | 0.623986 | 965 | 9,122 | 5.835233 | 0.297409 | 0.00959 | 0.023619 | 0.012431 | 0.223229 | 0.127508 | 0.113124 | 0.064642 | 0.064642 | 0.064642 | 0 | 0.015782 | 0.215084 | 9,122 | 272 | 172 | 33.536765 | 0.77067 | 0.041986 | 0 | 0.17757 | 0 | 0.060748 | 0.679918 | 0.204376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0.093458 | 0 | 0.121495 | 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 |
6e47902a10071cf7f3d6d93e2ed2545f7b79c7b3 | 9,396 | py | Python | houdini_engine_for_maya/asset_store.py | sonictk/HoudiniEngineForMaya | 0dd3609ae781a20b26219f87388f030c933273c6 | [
"MIT"
] | 86 | 2015-01-11T00:26:02.000Z | 2021-11-08T09:36:01.000Z | houdini_engine_for_maya/asset_store.py | sonictk/HoudiniEngineForMaya | 0dd3609ae781a20b26219f87388f030c933273c6 | [
"MIT"
] | 7 | 2015-04-16T14:44:35.000Z | 2017-09-01T18:55:01.000Z | houdini_engine_for_maya/asset_store.py | sonictk/HoudiniEngineForMaya | 0dd3609ae781a20b26219f87388f030c933273c6 | [
"MIT"
] | 46 | 2015-02-05T00:04:48.000Z | 2021-11-11T20:43:35.000Z | import json
import os
import re
import sys
import maya.cmds as cmds
import maya.mel as mel
current_user = None
asset_size = 100
child_entries_margin = 5
child_assets_column = 3
asset_store_window = "houdiniEngineAssetStoreWindow"
change_user_menu_item = "houdiniEngineAssetStoreChangeUserMenuItem"
asset_entries_scro... | 29.54717 | 103 | 0.60845 | 1,096 | 9,396 | 4.943431 | 0.17062 | 0.032484 | 0.032484 | 0.023994 | 0.3732 | 0.280362 | 0.188446 | 0.149317 | 0.149317 | 0.112034 | 0 | 0.005213 | 0.285441 | 9,396 | 317 | 104 | 29.640379 | 0.801758 | 0.005747 | 0 | 0.274262 | 0 | 0 | 0.114252 | 0.029232 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025316 | null | null | 0.004219 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6e4a036e76c60a887c51d8589ef8cb77edd3715f | 14,051 | py | Python | malib/utils/typing.py | zbzhu99/malib | 5be07ac00761a34fb095adb2b3018a798ceea256 | [
"MIT"
] | null | null | null | malib/utils/typing.py | zbzhu99/malib | 5be07ac00761a34fb095adb2b3018a798ceea256 | [
"MIT"
] | null | null | null | malib/utils/typing.py | zbzhu99/malib | 5be07ac00761a34fb095adb2b3018a798ceea256 | [
"MIT"
] | null | null | null | import enum
import time
from collections import namedtuple
from dataclasses import dataclass, field
from typing import List, Dict, Any, Union, Tuple, Sequence, Callable, Optional
import gym
import numpy as np
from malib.utils.notations import deprecated
""" Rename and definition of basic data types which are corresp... | 27.443359 | 99 | 0.645007 | 1,518 | 14,051 | 5.760211 | 0.224638 | 0.027447 | 0.031107 | 0.029277 | 0.224268 | 0.15279 | 0.108417 | 0.0828 | 0.067704 | 0.067704 | 0 | 0.00592 | 0.254644 | 14,051 | 511 | 100 | 27.497065 | 0.828989 | 0.059925 | 0 | 0.245283 | 0 | 0 | 0.105846 | 0.014878 | 0 | 0 | 0 | 0.003914 | 0.002695 | 1 | 0.045822 | false | 0.002695 | 0.021563 | 0.013477 | 0.539084 | 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 |
6e4ca410b06d109c39b6e34b77d24f4733a52823 | 1,804 | py | Python | migrations/0017_auto_20210419_1810.py | andywar65/buildings | b772c052bd779ff9a33a31f345e9860203d55bf0 | [
"BSD-2-Clause"
] | 2 | 2021-02-04T14:13:44.000Z | 2021-12-08T18:30:05.000Z | migrations/0017_auto_20210419_1810.py | andywar65/buildings | b772c052bd779ff9a33a31f345e9860203d55bf0 | [
"BSD-2-Clause"
] | null | null | null | migrations/0017_auto_20210419_1810.py | andywar65/buildings | b772c052bd779ff9a33a31f345e9860203d55bf0 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.1.2 on 2021-04-19 16:10
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('buildings', '0016_auto_20210414_2325'),
]
operations = [
migrati... | 36.816327 | 176 | 0.628049 | 181 | 1,804 | 6.132597 | 0.486188 | 0.100901 | 0.113514 | 0.135135 | 0.281081 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0.029873 | 0.257761 | 1,804 | 48 | 177 | 37.583333 | 0.799104 | 0.024945 | 0 | 0.404762 | 1 | 0 | 0.244166 | 0.013091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
280f2cf885c0c90c1653eb09b88754da5d575fd7 | 222 | py | Python | Exercicios/ex_058.py | antoniosereno95/Python_Curso_em_Video | d706cba9ca7e5670881e5e06bceb5538971e99c0 | [
"MIT"
] | null | null | null | Exercicios/ex_058.py | antoniosereno95/Python_Curso_em_Video | d706cba9ca7e5670881e5e06bceb5538971e99c0 | [
"MIT"
] | null | null | null | Exercicios/ex_058.py | antoniosereno95/Python_Curso_em_Video | d706cba9ca7e5670881e5e06bceb5538971e99c0 | [
"MIT"
] | null | null | null | import random
r = random.randint(0,10)
count = 1
n = input('numero de 0 a 10: ')
while int(n) != int(r):
print('tente novamente: ')
count += 1
n = input()
print('parabens voce acretou em ',count,' chances.')
| 18.5 | 52 | 0.608108 | 35 | 222 | 3.857143 | 0.657143 | 0.088889 | 0.103704 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046243 | 0.220721 | 222 | 11 | 53 | 20.181818 | 0.734104 | 0 | 0 | 0 | 0 | 0 | 0.310811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 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 |
28171d7b865af35b34388d5c90bafda52ae1cab9 | 65,393 | py | Python | tests/data.py | dydyamotya/python-xkbcommon | 6712ef354b59cc95d3ad057c333dd8e9b3d1a1a6 | [
"MIT"
] | 12 | 2016-08-28T12:58:47.000Z | 2021-11-14T18:18:06.000Z | tests/data.py | dydyamotya/python-xkbcommon | 6712ef354b59cc95d3ad057c333dd8e9b3d1a1a6 | [
"MIT"
] | 11 | 2020-02-01T16:15:44.000Z | 2022-02-22T16:04:01.000Z | tests/data.py | dydyamotya/python-xkbcommon | 6712ef354b59cc95d3ad057c333dd8e9b3d1a1a6 | [
"MIT"
] | 3 | 2019-05-01T11:19:12.000Z | 2021-11-06T21:20:33.000Z | # Defines sample_keymap_string and sample_keymap_bytes
# Python 2 type Python 3 type
# sample_keymap_string unicode str
# sample_keymap_bytes str bytes
# This sample keymap is the output of xkbcomp :0 [filename] on my
# system - it wasn't chosen for any other... | 33.127153 | 126 | 0.469163 | 6,053 | 65,393 | 4.98381 | 0.178094 | 0.047801 | 0.035138 | 0.042165 | 0.520304 | 0.486757 | 0.407333 | 0.34846 | 0.313952 | 0.290881 | 0 | 0.080727 | 0.385301 | 65,393 | 1,973 | 127 | 33.143943 | 0.669751 | 0.005475 | 0 | 0.423057 | 0 | 0.004117 | 0.998524 | 0.156704 | 0 | 0 | 0.00203 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
281e2a6c2c9796dd0389a1453cf54aee5ed53076 | 671 | py | Python | BinarySearchProbs/MedianofSortedMatrix.py | Saicharan67/Interview-Coding-Questions | b28cccd41e380f15b833039d687931570908adfb | [
"MIT"
] | 12 | 2021-06-18T16:24:27.000Z | 2021-11-04T03:30:00.000Z | BinarySearchProbs/MedianofSortedMatrix.py | Saicharan67/Interview-Coding-Questions | b28cccd41e380f15b833039d687931570908adfb | [
"MIT"
] | 32 | 2021-10-01T07:15:00.000Z | 2021-11-05T15:35:53.000Z | BinarySearchProbs/MedianofSortedMatrix.py | Saicharan67/Interview-Coding-Questions | b28cccd41e380f15b833039d687931570908adfb | [
"MIT"
] | 21 | 2021-09-29T09:16:31.000Z | 2021-10-30T10:06:21.000Z | class Solution:
# @param A : list of list of integers
# @return an integer
def cnt(self, A, mid):
l = 0
r = len(A)-1
while l <= r:
m = (l+r)//2
if A[m] <= mid:
l = m+1
else:
r = m-1
return l
def findMed... | 21.645161 | 41 | 0.33234 | 92 | 671 | 2.423913 | 0.347826 | 0.035874 | 0.06278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071895 | 0.543964 | 671 | 30 | 42 | 22.366667 | 0.656863 | 0.080477 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.192308 | 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 |
28228759e8f9c568f55cbfdd7c6f7062096eb04c | 182 | py | Python | dearpypixl/appitems/__init__.py | Atlamillias/pixl-engine | c4217a3a65e01e49d05bf7f07946d65484f6e1da | [
"MIT"
] | 6 | 2021-08-28T03:22:19.000Z | 2021-10-14T22:04:04.000Z | dearpypixl/appitems/__init__.py | Atlamillias/pixl-engine | c4217a3a65e01e49d05bf7f07946d65484f6e1da | [
"MIT"
] | 1 | 2021-07-29T16:51:28.000Z | 2021-08-03T00:24:11.000Z | dearpypixl/appitems/__init__.py | Atlamillias/pixl-engine | c4217a3a65e01e49d05bf7f07946d65484f6e1da | [
"MIT"
] | null | null | null | __all__ = [
'plotting',
'misc',
'colors',
'tables',
'nodes',
'containers',
'values',
'basic',
'textures',
'drawing',
]
__version__ = '1.1.1'
| 12.133333 | 21 | 0.472527 | 15 | 182 | 5.2 | 0.866667 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.318681 | 182 | 14 | 22 | 13 | 0.604839 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2824b9b4c3119f16a82e3625c2b09e34cda89cca | 2,013 | py | Python | components/google-cloud/google_cloud_pipeline_components/container/v1/gcp_launcher/delete_model_remote_runner.py | richardsliu/pipelines | ff99a9877195a028425c5bdf3d3ce4ecbe5d8f9f | [
"Apache-2.0"
] | 1 | 2021-12-20T15:47:41.000Z | 2021-12-20T15:47:41.000Z | components/google-cloud/google_cloud_pipeline_components/container/v1/gcp_launcher/delete_model_remote_runner.py | richardsliu/pipelines | ff99a9877195a028425c5bdf3d3ce4ecbe5d8f9f | [
"Apache-2.0"
] | null | null | null | components/google-cloud/google_cloud_pipeline_components/container/v1/gcp_launcher/delete_model_remote_runner.py | richardsliu/pipelines | ff99a9877195a028425c5bdf3d3ce4ecbe5d8f9f | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 36.6 | 102 | 0.719324 | 269 | 2,013 | 5.197026 | 0.524164 | 0.070815 | 0.042918 | 0.02289 | 0.037196 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005471 | 0.182812 | 2,013 | 54 | 103 | 37.277778 | 0.844377 | 0.375559 | 0 | 0 | 0 | 0 | 0.221771 | 0.156783 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
282a6772fc5117dcd7fca3cb5e228755129685aa | 3,800 | py | Python | tgt_grease/enterprise/Detectors/regex.py | jairamd22/grease | 7ebf3df71d5c80a8ed9df44d9b64b735a9d0f899 | [
"MIT"
] | 44 | 2017-09-29T00:53:44.000Z | 2020-12-20T13:43:49.000Z | tgt_grease/enterprise/Detectors/regex.py | jairamd22/grease | 7ebf3df71d5c80a8ed9df44d9b64b735a9d0f899 | [
"MIT"
] | 39 | 2017-09-29T10:26:10.000Z | 2019-05-02T21:07:59.000Z | tgt_grease/enterprise/Detectors/regex.py | jairamd22/grease | 7ebf3df71d5c80a8ed9df44d9b64b735a9d0f899 | [
"MIT"
] | 26 | 2017-09-28T18:00:39.000Z | 2021-10-17T15:14:39.000Z | from tgt_grease.enterprise.Model import Detector
import re
class Regex(Detector):
"""Regular Expression Detector for GREASE Detection
A Typical Regex configuration looks like this::
{
...
'logic': {
'Regex': [
{
'fie... | 39.175258 | 109 | 0.409474 | 306 | 3,800 | 5.071895 | 0.369281 | 0.051546 | 0.050258 | 0.032861 | 0.165593 | 0.097938 | 0.059278 | 0.059278 | 0.059278 | 0 | 0 | 0.002142 | 0.508684 | 3,800 | 96 | 110 | 39.583333 | 0.829138 | 0.305789 | 0 | 0.384615 | 0 | 0 | 0.084381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.019231 | 0.038462 | 0 | 0.211538 | 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 |
282becac560cf6bd87e19b0f2d06b4f86cfdff73 | 479 | py | Python | Classifier/preprocess/contrast_enhansement.py | withanageyasiru/diabetic-retinopathy-detection | 40b0dfe3d8010b475ff243d8f575a003ba01b004 | [
"MIT"
] | null | null | null | Classifier/preprocess/contrast_enhansement.py | withanageyasiru/diabetic-retinopathy-detection | 40b0dfe3d8010b475ff243d8f575a003ba01b004 | [
"MIT"
] | null | null | null | Classifier/preprocess/contrast_enhansement.py | withanageyasiru/diabetic-retinopathy-detection | 40b0dfe3d8010b475ff243d8f575a003ba01b004 | [
"MIT"
] | null | null | null | import cv2
def contrast_enhancement(images):
'''
:param images:
:return:
creating a Histograms Equalization
of a image using cv2.equalizeHist()
'''
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))
for i in range(images.shape[0]):
images[i, :, :, 0] = clahe.apply(im... | 23.95 | 63 | 0.565762 | 61 | 479 | 4.42623 | 0.491803 | 0.155556 | 0.177778 | 0.188889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039106 | 0.25261 | 479 | 19 | 64 | 25.210526 | 0.715084 | 0.196242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
282f31b83b088bf22def0023e6d5c332f78340c1 | 1,019 | py | Python | lecture05_scientific_netcdf.py | cgalli/ATMOS_6910_2018 | baff60990bb4cda4c7f469bc3efa4adba185cbb5 | [
"MIT"
] | 2 | 2019-08-19T14:34:51.000Z | 2019-09-11T05:23:36.000Z | lecture05_scientific_netcdf.py | cgalli/ATMOS_6910_2018 | baff60990bb4cda4c7f469bc3efa4adba185cbb5 | [
"MIT"
] | null | null | null | lecture05_scientific_netcdf.py | cgalli/ATMOS_6910_2018 | baff60990bb4cda4c7f469bc3efa4adba185cbb5 | [
"MIT"
] | null | null | null | import numpy as np
from netCDF4 import Dataset
import matplotlib.pyplot as plt
import h5py
#from pyhdf.SD import SD,SDC
nc_f='/uufs/chpc.utah.edu/common/home/mace-group3/arm/grw/grwvceil25kM1.b1/2010/grwvceil25kM1.b1.20100828.000008.cdf'
nc_fid=Dataset(nc_f,'r')
print nc_fid.file_format
print nc_fid.dimensions.keys()
... | 25.475 | 147 | 0.774289 | 186 | 1,019 | 4.107527 | 0.456989 | 0.052356 | 0.065445 | 0.051047 | 0.198953 | 0.141361 | 0.141361 | 0.141361 | 0.102094 | 0.102094 | 0 | 0.136743 | 0.059863 | 1,019 | 39 | 148 | 26.128205 | 0.660752 | 0.183513 | 0 | 0 | 0 | 0.08 | 0.354369 | 0.302184 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16 | null | null | 0.36 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
283171f5d0ff85faf12bc71df8c82dee608db1c8 | 1,629 | py | Python | tests/unit/dev_support.py | CCI-MOC/hil | 8c6de2214ddf908c01549b117d5684ac52a93934 | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2016-09-27T18:41:46.000Z | 2021-12-20T15:06:32.000Z | tests/unit/dev_support.py | CCI-MOC/hil | 8c6de2214ddf908c01549b117d5684ac52a93934 | [
"ECL-2.0",
"Apache-2.0"
] | 522 | 2016-06-22T21:19:26.000Z | 2020-11-12T20:54:40.000Z | tests/unit/dev_support.py | CCI-MOC/hil | 8c6de2214ddf908c01549b117d5684ac52a93934 | [
"ECL-2.0",
"Apache-2.0"
] | 30 | 2016-06-24T08:27:59.000Z | 2018-08-20T17:34:45.000Z | """Test the hil.dev_support module."""
from hil.dev_support import no_dry_run
import pytest
from hil.test_common import fail_on_log_warnings, config_merge
fail_on_log_warnings = pytest.fixture(autouse=True)(fail_on_log_warnings)
# We test two ways of using the decorator: applying it to a freestanding
# function, an... | 23.271429 | 74 | 0.655003 | 237 | 1,629 | 4.278481 | 0.295359 | 0.076923 | 0.039448 | 0.050296 | 0.274162 | 0.230769 | 0.106509 | 0.106509 | 0 | 0 | 0 | 0 | 0.224064 | 1,629 | 69 | 75 | 23.608696 | 0.802215 | 0.427256 | 0 | 0.225806 | 0 | 0 | 0.032221 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.322581 | false | 0 | 0.096774 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2834596b9d349b96e4b8df7103de99840f6327ce | 3,034 | py | Python | perrot/plot/labels.py | labqui/perrot | 3b49574861aeb8ce57a9a030f737bc49bc8ab9d5 | [
"MIT"
] | null | null | null | perrot/plot/labels.py | labqui/perrot | 3b49574861aeb8ce57a9a030f737bc49bc8ab9d5 | [
"MIT"
] | null | null | null | perrot/plot/labels.py | labqui/perrot | 3b49574861aeb8ce57a9a030f737bc49bc8ab9d5 | [
"MIT"
] | null | null | null | # Created byMartin.cz
# Copyright (c) Martin Strohalm. All rights reserved.
from pero.properties import *
from pero import Label, LabelBox
from . graphics import InGraphics
class Labels(InGraphics):
"""
Labels container provides a simple tool to draw all given labels at once in
the order defined by th... | 32.978261 | 81 | 0.62294 | 360 | 3,034 | 5.197222 | 0.447222 | 0.025655 | 0.017103 | 0.017103 | 0.024586 | 0.024586 | 0 | 0 | 0 | 0 | 0 | 0.00096 | 0.313448 | 3,034 | 91 | 82 | 33.340659 | 0.897264 | 0.536585 | 0 | 0.08 | 0 | 0 | 0.004078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.52 | 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 |
28359c255234b4110fde32516cbfcf088b1a150b | 764 | py | Python | users/models.py | arianmotti/story-contest | 2c5050b609f707e5aadfa2a0c46fb8dcd70af944 | [
"MIT"
] | 3 | 2021-10-14T05:26:22.000Z | 2022-02-24T20:42:10.000Z | users/models.py | arianmotti/story-contest | 2c5050b609f707e5aadfa2a0c46fb8dcd70af944 | [
"MIT"
] | null | null | null | users/models.py | arianmotti/story-contest | 2c5050b609f707e5aadfa2a0c46fb8dcd70af944 | [
"MIT"
] | 1 | 2022-03-09T17:28:49.000Z | 2022-03-09T17:28:49.000Z | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
from django.core.files.storage import default_storage
class Profile(models.Model):
user = models.OneToOneField(User , on_delete = models.CASCADE)
image = models.ImageField(default = 'default.jpg' , upload_to = 'profil... | 34.727273 | 83 | 0.64267 | 100 | 764 | 4.8 | 0.49 | 0.0625 | 0.054167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.242147 | 764 | 21 | 84 | 36.380952 | 0.80829 | 0 | 0 | 0 | 0 | 0 | 0.070681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0.058824 | 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 |
28368bf8fb725a2c95f66d1426103ed339df3f07 | 1,638 | py | Python | Compilation star patterns.py | Ranjul-Arumadi/Coding-Problems | c43f33743d469128a0987767b9ee06f236be7562 | [
"MIT"
] | null | null | null | Compilation star patterns.py | Ranjul-Arumadi/Coding-Problems | c43f33743d469128a0987767b9ee06f236be7562 | [
"MIT"
] | 1 | 2021-07-16T11:32:19.000Z | 2021-07-16T11:32:19.000Z | Compilation star patterns.py | Ranjul-Arumadi/Coding-Problems | c43f33743d469128a0987767b9ee06f236be7562 | [
"MIT"
] | 2 | 2021-07-16T11:24:40.000Z | 2021-07-16T11:47:36.000Z | '''
Q: Popular star patterns
Pattern 1:
*
**
***
****
*****
******
Pattern 2:
* * * * * *
* * * * *
* * * *
* * *
* *
*
Pattern 3:
*
***
*****
*******
*********
Pattern 4:
*
... | 16.545455 | 112 | 0.405983 | 173 | 1,638 | 3.843931 | 0.317919 | 0.115789 | 0.03609 | 0.066165 | 0.503759 | 0.485714 | 0.425564 | 0.353383 | 0.353383 | 0.294737 | 0 | 0.024606 | 0.379731 | 1,638 | 98 | 113 | 16.714286 | 0.629921 | 0.373626 | 0 | 0.736842 | 0 | 0 | 0.05235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.394737 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2842010b790379cb45ad0d302a5c0a5ff7f3616c | 431 | py | Python | api/migrations/0003_data_type.py | ajmaln/kerala-university-api | cdd685c627213d376444cdbfd7d57cbb41999b66 | [
"MIT"
] | null | null | null | api/migrations/0003_data_type.py | ajmaln/kerala-university-api | cdd685c627213d376444cdbfd7d57cbb41999b66 | [
"MIT"
] | 9 | 2020-02-11T23:16:35.000Z | 2021-09-08T00:12:21.000Z | api/migrations/0003_data_type.py | ajmaln/kerala-university-api | cdd685c627213d376444cdbfd7d57cbb41999b66 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-07 04:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20180906_1708'),
]
operations = [
migrations.AddField(
model_name='data',
name='type',
... | 21.55 | 69 | 0.593968 | 47 | 431 | 5.319149 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 0.290023 | 431 | 19 | 70 | 22.684211 | 0.70915 | 0.104408 | 0 | 0 | 1 | 0 | 0.106771 | 0.059896 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
284a7d4016babf6192b135533c9d0b672b2937ca | 10,364 | py | Python | psm/lake/lake_driver.py | amoodie/PRYSM | 99cf02145e3df0aad8b4d9103ab6c081d97bff1f | [
"MIT"
] | 21 | 2015-07-20T21:37:14.000Z | 2022-02-14T04:10:11.000Z | psm/lake/lake_driver.py | amoodie/PRYSM | 99cf02145e3df0aad8b4d9103ab6c081d97bff1f | [
"MIT"
] | 8 | 2015-10-08T16:37:04.000Z | 2019-01-04T21:02:09.000Z | psm/lake/lake_driver.py | amoodie/PRYSM | 99cf02145e3df0aad8b4d9103ab6c081d97bff1f | [
"MIT"
] | 13 | 2015-01-30T10:05:14.000Z | 2022-02-05T21:56:21.000Z | #======================================================================
# Sylvia Dee
# Modified 03/08/16 <sylvia_dee@brown.edu>
# Modified 04/02/18 <sylvia@ig.utexas.edu>
# Script to run lake sediment proxy system model
#======================================================================
# PRYSM v2.0 Lake Sediments... | 30.662722 | 99 | 0.623311 | 1,407 | 10,364 | 4.503198 | 0.357498 | 0.008523 | 0.012311 | 0.011995 | 0.122633 | 0.111585 | 0.098327 | 0.089173 | 0.089173 | 0.072601 | 0 | 0.030868 | 0.146662 | 10,364 | 337 | 100 | 30.753709 | 0.68555 | 0.573041 | 0 | 0.069565 | 0 | 0 | 0.111171 | 0.043069 | 0 | 0 | 0 | 0.002967 | 0 | 0 | null | null | 0 | 0.147826 | null | null | 0.052174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
284c3be764ab685f75f4fd753408ac9d359e9431 | 1,578 | py | Python | spin_tensor.py | gicheonkang/pyTorch-101 | c22c97295127aed18575b2a2586f3d3b74195b22 | [
"MIT"
] | 2 | 2018-03-27T13:39:51.000Z | 2018-04-01T01:28:25.000Z | spin_tensor.py | gicheonkang/pyTorch-101 | c22c97295127aed18575b2a2586f3d3b74195b22 | [
"MIT"
] | null | null | null | spin_tensor.py | gicheonkang/pyTorch-101 | c22c97295127aed18575b2a2586f3d3b74195b22 | [
"MIT"
] | null | null | null | import torch
from torch.autograd import Variable
batch_size = 100
row_lenth = 10
col_length = 10
if __name__ == '__main__':
a = Variable(torch.randn((batch_size, row_lenth, col_length)))
b = Variable(torch.randn((batch_size, row_lenth, col_length)))
c = Variable(torch.randn((batch_size, row_lenth, col_length)))
s... | 20.230769 | 77 | 0.614702 | 258 | 1,578 | 3.608527 | 0.236434 | 0.125671 | 0.116004 | 0.164339 | 0.44898 | 0.44898 | 0.262084 | 0.262084 | 0.262084 | 0.120301 | 0 | 0.036585 | 0.168568 | 1,578 | 77 | 78 | 20.493506 | 0.673018 | 0.673638 | 0 | 0 | 0 | 0 | 0.016598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
285230a0d94b2eacdd02d29202ba9a8da6a7a8f6 | 1,374 | py | Python | app/core/tests/test_models.py | dumrich/profiles-rest-api | 9e9690f05c6ac2c9d3e1a43ae38715f841e1332d | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | dumrich/profiles-rest-api | 9e9690f05c6ac2c9d3e1a43ae38715f841e1332d | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | dumrich/profiles-rest-api | 9e9690f05c6ac2c9d3e1a43ae38715f841e1332d | [
"MIT"
] | 1 | 2020-02-09T13:35:01.000Z | 2020-02-09T13:35:01.000Z | from django.test import TestCase
from django.contrib.auth import get_user_model
from unittest.mock import patch
from core import models
class ModelTests(TestCase):
"""Test the core models"""
def test_create_user_with_email(self):
"""Create User with email"""
email = "abhinavchavali12@gmail.c... | 31.953488 | 88 | 0.665939 | 162 | 1,374 | 5.462963 | 0.283951 | 0.079096 | 0.067797 | 0.085876 | 0.39322 | 0.284746 | 0.251977 | 0.251977 | 0.251977 | 0.251977 | 0 | 0.01131 | 0.227802 | 1,374 | 42 | 89 | 32.714286 | 0.822809 | 0.080058 | 0 | 0.178571 | 0 | 0 | 0.092084 | 0.063005 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.142857 | false | 0.285714 | 0.142857 | 0 | 0.321429 | 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 |
285b8306e6f7f7a7eee878f8da6045d61f504466 | 2,001 | py | Python | src/data_split.py | futu-munich-racing/neural-network-trainer | 9ab73a691fe09e853955abf72a6b7559e2711a10 | [
"MIT"
] | null | null | null | src/data_split.py | futu-munich-racing/neural-network-trainer | 9ab73a691fe09e853955abf72a6b7559e2711a10 | [
"MIT"
] | 4 | 2020-11-13T18:37:11.000Z | 2022-02-10T01:24:26.000Z | src/data_split.py | futu-munich-racing/neural-network-trainer | 9ab73a691fe09e853955abf72a6b7559e2711a10 | [
"MIT"
] | null | null | null | import sys
import argparse
import logging
from utils import fileio
from utils import model_selection
def parse_input_arguments(argv):
parser = argparse.ArgumentParser()
parser.add_argument("-inputdir", type=str)
parser.add_argument("-outputdir", type=str)
parser.add_argument("-tub-dir-prefix", type=s... | 31.265625 | 91 | 0.705147 | 282 | 2,001 | 4.808511 | 0.386525 | 0.039823 | 0.075221 | 0.04646 | 0.193215 | 0.141593 | 0.057522 | 0.057522 | 0.057522 | 0 | 0 | 0.009346 | 0.197901 | 2,001 | 63 | 92 | 31.761905 | 0.835514 | 0.184408 | 0 | 0 | 0 | 0 | 0.127542 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.190476 | 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 |
2860a01a6d4593f37b00c7b81f2e7066467831fd | 3,258 | py | Python | tests/integration/test_database/test_model/test_file_type.py | refitt/ref | 3ccc398e7b95f77549ab77884b87f40abdd3effb | [
"Apache-2.0"
] | 4 | 2020-09-11T01:15:11.000Z | 2021-05-12T16:46:48.000Z | tests/integration/test_database/test_model/test_file_type.py | refitt/ref | 3ccc398e7b95f77549ab77884b87f40abdd3effb | [
"Apache-2.0"
] | 12 | 2021-03-20T03:24:53.000Z | 2022-02-19T03:20:43.000Z | tests/integration/test_database/test_model/test_file_type.py | refitt/ref | 3ccc398e7b95f77549ab77884b87f40abdd3effb | [
"Apache-2.0"
] | 2 | 2021-02-01T23:49:39.000Z | 2021-12-11T19:01:23.000Z | # SPDX-FileCopyrightText: 2019-2021 REFITT Team
# SPDX-License-Identifier: Apache-2.0
"""Database file_type model integration tests."""
# external libs
import pytest
from sqlalchemy.exc import IntegrityError
# internal libs
from refitt.database.model import FileType, NotFound
from tests.integration.test_database.te... | 38.785714 | 80 | 0.630141 | 397 | 3,258 | 5.025189 | 0.259446 | 0.080201 | 0.06015 | 0.07218 | 0.528321 | 0.475188 | 0.354386 | 0.313283 | 0.21604 | 0.059148 | 0 | 0.005689 | 0.244629 | 3,258 | 83 | 81 | 39.253012 | 0.804957 | 0.218232 | 0 | 0.208333 | 0 | 0 | 0.092854 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.229167 | false | 0 | 0.104167 | 0 | 0.354167 | 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 |
28632dbedf679eac46f903ab0ddbd2badd934f93 | 338 | py | Python | NLP programmes in Python/5. Information Extraction/NP chunking (NER)/NP chunking (NER).py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | NLP programmes in Python/5. Information Extraction/NP chunking (NER)/NP chunking (NER).py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | NLP programmes in Python/5. Information Extraction/NP chunking (NER)/NP chunking (NER).py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | # NP chunking (NER)
import nltk
f=open("sample.txt")
text=f.read()
sentences = nltk.sent_tokenize(text)
tokenized_sentences = [nltk.word_tokenize(sentence) for sentence in sentences]
tagged_sentences = [nltk.pos_tag(sentence) for sentence in tokenized_sentences]
for sent in tagged_sentences:
print (nltk... | 28.166667 | 80 | 0.754438 | 48 | 338 | 5.145833 | 0.520833 | 0.157895 | 0.153846 | 0.17004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 338 | 11 | 81 | 30.727273 | 0.851724 | 0.050296 | 0 | 0 | 0 | 0 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 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 |
2863a9572564b39e20759ab0a630c2aff85e9e7e | 1,811 | py | Python | gesund_projekt/pomodoros/views.py | asis2016/gesund-projekt | cb3828b69cd6a86deeab16943e38b6ebffd86abb | [
"MIT"
] | null | null | null | gesund_projekt/pomodoros/views.py | asis2016/gesund-projekt | cb3828b69cd6a86deeab16943e38b6ebffd86abb | [
"MIT"
] | null | null | null | gesund_projekt/pomodoros/views.py | asis2016/gesund-projekt | cb3828b69cd6a86deeab16943e38b6ebffd86abb | [
"MIT"
] | null | null | null | #
#
# This django app is not completed.
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic import ListView
from .models import Pomodoro
class PomodoroListView(LoginRequired... | 31.224138 | 106 | 0.710105 | 205 | 1,811 | 6.107317 | 0.35122 | 0.031949 | 0.067093 | 0.067093 | 0.451278 | 0.42492 | 0.42492 | 0.42492 | 0.42492 | 0.42492 | 0 | 0.00134 | 0.175594 | 1,811 | 57 | 107 | 31.77193 | 0.83724 | 0.059083 | 0 | 0.378378 | 0 | 0 | 0.154762 | 0.025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.135135 | 0.027027 | 0.864865 | 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 |
2865869a867cb57df929e1794ae8598dfae8a9b2 | 1,618 | py | Python | test/linear/ex1.py | taowu750/wtml | 906cb1c1832a8a1a389186d526ad12102c23a2e2 | [
"Apache-2.0"
] | null | null | null | test/linear/ex1.py | taowu750/wtml | 906cb1c1832a8a1a389186d526ad12102c23a2e2 | [
"Apache-2.0"
] | null | null | null | test/linear/ex1.py | taowu750/wtml | 906cb1c1832a8a1a389186d526ad12102c23a2e2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
在整个练习中,您将使用脚本ex1.py和ex1 multi.py。
这些脚本为问题设置数据集并调用要编写的函数。你不需要修改它们中的任何一个。您只需要按照此分配中
的说明修改其他文件中的函数。对于这个编程练习,您只需要完成练习的第一部分,就可以用一个变量
实现线性回归。练习的第二部分是可选的,包括多变量线性回归。
假设你是一家连锁餐厅的首席执行官,正在考虑在不同的城市开设一家新的分店。这家连锁店在各个城市
都有卡车,你有数据显示城市的利润和人口。您希望使用此数据帮助您选择下一个要展开的城市。
文件ex1data1.txt包含线性... | 27.896552 | 84 | 0.657602 | 220 | 1,618 | 4.777273 | 0.577273 | 0.019981 | 0.022835 | 0.020932 | 0.074215 | 0.041865 | 0.041865 | 0 | 0 | 0 | 0 | 0.059002 | 0.182942 | 1,618 | 57 | 85 | 28.385965 | 0.736006 | 0.243511 | 0 | 0.064516 | 0 | 0 | 0.327288 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 0.258065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
28748a0e99ca7df8968c84c26b4277b422294c17 | 459 | py | Python | scripts/cleanup.py | felis/kicad-schlib | 986c64aa0adae75446a3717976a6742d1b57f3ee | [
"CC0-1.0"
] | 38 | 2015-05-26T02:17:32.000Z | 2018-06-24T10:47:28.000Z | scripts/cleanup.py | felis/kicad-schlib | 986c64aa0adae75446a3717976a6742d1b57f3ee | [
"CC0-1.0"
] | 19 | 2016-03-26T17:20:20.000Z | 2018-03-31T19:22:21.000Z | scripts/cleanup.py | felis/kicad-schlib | 986c64aa0adae75446a3717976a6742d1b57f3ee | [
"CC0-1.0"
] | 22 | 2015-05-25T20:01:59.000Z | 2018-06-24T13:39:35.000Z | #!/usr/bin/python3
import os
import subprocess
import sys
md5sums = {}
dirname = sys.argv[1]
for fn in os.listdir(dirname):
md5sum = subprocess.check_output(['md5sum', os.path.join(dirname, fn)]).decode('ascii').partition(" ")[0]
if md5sum in md5sums:
# This blob already exists. Symlink it
o... | 22.95 | 109 | 0.651416 | 64 | 459 | 4.65625 | 0.515625 | 0.060403 | 0.100671 | 0.171141 | 0.231544 | 0.167785 | 0 | 0 | 0 | 0 | 0 | 0.032698 | 0.200436 | 459 | 19 | 110 | 24.157895 | 0.779292 | 0.117647 | 0 | 0 | 0 | 0 | 0.029777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
287bd37592c6d354809a9ac7ecfe94395a48d62b | 743 | py | Python | example/urls.py | bennylope/django-shop | 7e7cd743773405f193abefdb8aa30f28b17d71cd | [
"BSD-3-Clause"
] | 1 | 2015-03-23T20:40:39.000Z | 2015-03-23T20:40:39.000Z | example/urls.py | bennylope/django-shop | 7e7cd743773405f193abefdb8aa30f28b17d71cd | [
"BSD-3-Clause"
] | null | null | null | example/urls.py | bennylope/django-shop | 7e7cd743773405f193abefdb8aa30f28b17d71cd | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
from shop.views import ShopTemplateView
from shop import urls as shop_urls
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^shop_example/', include('shop_example.foo.ur... | 28.576923 | 75 | 0.695828 | 100 | 743 | 5.1 | 0.43 | 0.076471 | 0.094118 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166891 | 743 | 25 | 76 | 29.72 | 0.82391 | 0.345895 | 0 | 0 | 0 | 0 | 0.165272 | 0.060669 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2881054007cf9eb1d5b97fa959953a1f71dabe7a | 1,212 | py | Python | drf_tools/validation/base.py | seebass/drf-toolbox | a24b1db9c42c6af4b939f9dd0181fc9eaf5076f1 | [
"MIT"
] | 5 | 2015-10-14T13:11:06.000Z | 2019-11-08T12:18:36.000Z | drf_tools/validation/base.py | seebass/drf-toolbox | a24b1db9c42c6af4b939f9dd0181fc9eaf5076f1 | [
"MIT"
] | null | null | null | drf_tools/validation/base.py | seebass/drf-toolbox | a24b1db9c42c6af4b939f9dd0181fc9eaf5076f1 | [
"MIT"
] | 1 | 2020-07-04T07:11:33.000Z | 2020-07-04T07:11:33.000Z | from abc import ABCMeta, abstractmethod
from django_tooling.exceptions import ValidationError
class FailedValidation():
def __init__(self, code, details, msg):
self.code = code
self.details = details
self.msg = msg
if msg and details:
self.msg = msg.format(**details)
... | 30.3 | 124 | 0.69967 | 133 | 1,212 | 6.150376 | 0.443609 | 0.128362 | 0.026895 | 0.041565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226073 | 1,212 | 39 | 125 | 31.076923 | 0.872068 | 0.155941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.041667 | 0.083333 | 0.041667 | 0.458333 | 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 |
288139eeaade5a3d49aa1c45ca64936eb8a55d9b | 455 | py | Python | osr/apps/registry/migrations/0006_auto_20191029_2325.py | offurface/osr | 83ebcc11f0d9d8050ac2139bc6e9e560e93e8b9e | [
"MIT"
] | null | null | null | osr/apps/registry/migrations/0006_auto_20191029_2325.py | offurface/osr | 83ebcc11f0d9d8050ac2139bc6e9e560e93e8b9e | [
"MIT"
] | 10 | 2021-03-19T09:01:32.000Z | 2022-02-10T21:34:43.000Z | osr/apps/registry/migrations/0006_auto_20191029_2325.py | offurface/osr | 83ebcc11f0d9d8050ac2139bc6e9e560e93e8b9e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-29 20:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registry', '0005_auto_20191029_2312'),
]
operations = [
migrations.AlterField(
model_name='primary',
name='recommend... | 23.947368 | 108 | 0.635165 | 48 | 455 | 5.895833 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090643 | 0.248352 | 455 | 18 | 109 | 25.277778 | 0.736842 | 0.098901 | 0 | 0 | 1 | 0 | 0.205882 | 0.056373 | 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 |
288158558cb5b27285bd59e2a01c288a73ce1d28 | 661 | py | Python | src/values/locators.py | Jorge644/python-fravega-test | bbfa170fd38bb1ea8c18baccf456ec0f7ca17bc4 | [
"bzip2-1.0.6"
] | null | null | null | src/values/locators.py | Jorge644/python-fravega-test | bbfa170fd38bb1ea8c18baccf456ec0f7ca17bc4 | [
"bzip2-1.0.6"
] | null | null | null | src/values/locators.py | Jorge644/python-fravega-test | bbfa170fd38bb1ea8c18baccf456ec0f7ca17bc4 | [
"bzip2-1.0.6"
] | null | null | null | from selenium.webdriver.common.by import By
search_locator = (By.XPATH , "//input[@placeholder='Buscar productos']")
search_button_locator = (By.CSS_SELECTOR , "button[class*='InputBar']")
all_brands_locator = (By.XPATH, "//li[@name='brandsFilter'] //a[text()='Ver todas']")
find_specify_brand_locator = (By.XPATH, "//d... | 60.090909 | 98 | 0.704992 | 89 | 661 | 5.022472 | 0.52809 | 0.161074 | 0.187919 | 0.089485 | 0.174497 | 0.174497 | 0.174497 | 0.174497 | 0.174497 | 0 | 0 | 0.001623 | 0.068079 | 661 | 10 | 99 | 66.1 | 0.724026 | 0 | 0 | 0 | 0 | 0 | 0.423601 | 0.329803 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2894f5a5d9df5fd28b16ee4d28f62ac750794ff8 | 437 | py | Python | src/main.py | Morteza-Haghshenas/SEAL-CI | 8bb65d00befb58e63044d7727149a0245f52bf9c | [
"MIT"
] | 1 | 2019-12-23T10:03:08.000Z | 2019-12-23T10:03:08.000Z | src/main.py | Morteza-Haghshenas/SEAL-CI | 8bb65d00befb58e63044d7727149a0245f52bf9c | [
"MIT"
] | null | null | null | src/main.py | Morteza-Haghshenas/SEAL-CI | 8bb65d00befb58e63044d7727149a0245f52bf9c | [
"MIT"
] | null | null | null | """Training a SEAL-CI model."""
import torch
from utils import tab_printer
from seal import SEALCITrainer
from param_parser import parameter_parser
def main():
"""
Parsing command line parameters, reading data.
Fitting and scoring a SEAL-CI model.
"""
args = parameter_parser()
tab_printer(args... | 20.809524 | 50 | 0.686499 | 54 | 437 | 5.314815 | 0.592593 | 0.034843 | 0.04878 | 0.083624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 437 | 20 | 51 | 21.85 | 0.839181 | 0.249428 | 0 | 0 | 0 | 0 | 0.026403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
289823656a6b99b341cc27d6743090e32fea1269 | 1,828 | py | Python | cogs/helpers/gamedeals.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | cogs/helpers/gamedeals.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | cogs/helpers/gamedeals.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | import re
from common import database, common
# acceptable store list
# TODO - shift to database
stores = ['steampowered.com', 'humblebundle.com', 'epicgames.com', 'reddit.com']
steamlinks = ('steampowered.com/app', 'steampowered.com/bundle', 'steampowered.com/sub')
# removes uri
def removeURI(url):
position = u... | 26.114286 | 101 | 0.615427 | 206 | 1,828 | 5.456311 | 0.398058 | 0.080071 | 0.016014 | 0.033808 | 0.051601 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002224 | 0.262035 | 1,828 | 69 | 102 | 26.492754 | 0.830986 | 0.068928 | 0 | 0.111111 | 0 | 0 | 0.173451 | 0.044838 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.088889 | false | 0 | 0.044444 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
289d577d88e7020b4e41872d4ab5a93d68339724 | 4,020 | py | Python | src/new/main.py | AIM-Harvard/DeepConstrast | 0f99f965cd58c63878fac4631572af8f0f3b0269 | [
"MIT"
] | 3 | 2022-02-23T09:05:45.000Z | 2022-02-23T20:18:18.000Z | src/new/main.py | AIM-Harvard/DeepConstrast | 0f99f965cd58c63878fac4631572af8f0f3b0269 | [
"MIT"
] | null | null | null | src/new/main.py | AIM-Harvard/DeepConstrast | 0f99f965cd58c63878fac4631572af8f0f3b0269 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as pltimport glob
from time import gmtime, strftime
from datetime import datetime
import timeit
import yaml
from tensorflow.keras.optimizers import Adam
import argparse
from get_data.get_img_dataset import get_img_dataset
from g... | 34.358974 | 71 | 0.597761 | 572 | 4,020 | 3.891608 | 0.171329 | 0.078167 | 0.068733 | 0.064241 | 0.318059 | 0.263702 | 0.180144 | 0.169811 | 0.08805 | 0.047619 | 0 | 0.004359 | 0.315174 | 4,020 | 116 | 72 | 34.655172 | 0.804214 | 0.014925 | 0 | 0.104762 | 0 | 0 | 0.006577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
953d9b0ce081e64501bfbda9942c686e4d32a2ea | 3,035 | py | Python | api/utils/input/__init__.py | mmangione/alcali | 6af8c4056c8e9ceed717440551519769ddbbfd3f | [
"MIT"
] | 306 | 2019-05-12T20:16:55.000Z | 2022-03-27T15:00:15.000Z | api/utils/input/__init__.py | mmangione/alcali | 6af8c4056c8e9ceed717440551519769ddbbfd3f | [
"MIT"
] | 340 | 2019-05-27T20:20:44.000Z | 2022-03-17T05:23:57.000Z | api/utils/input/__init__.py | mmangione/alcali | 6af8c4056c8e9ceed717440551519769ddbbfd3f | [
"MIT"
] | 53 | 2019-05-18T00:06:08.000Z | 2022-03-03T17:38:58.000Z | from shlex import split
import json
class RawCommand:
def __init__(self, command, client="local", posix=True, inline=False):
# TODO: check shlex.quote, raw string, etc..
if inline:
self.command = split(command, posix=posix)
else:
self.command = split(command, posix=... | 34.488636 | 81 | 0.444481 | 304 | 3,035 | 4.361842 | 0.315789 | 0.047511 | 0.030166 | 0.033183 | 0.205128 | 0.184012 | 0.063348 | 0.063348 | 0.063348 | 0.063348 | 0 | 0.008441 | 0.414498 | 3,035 | 87 | 82 | 34.885057 | 0.73776 | 0.039209 | 0 | 0.185714 | 0 | 0 | 0.125773 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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.