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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b60d21e9df13abfb33f2e9998910139cf33d8cb | 1,539 | py | Python | exp_denoising/plot_exp_occlusion.py | RandallBalestriero/PMASO | 780b06f8d8496000f3ecda04a49c8eda72393b5d | [
"MIT"
] | null | null | null | exp_denoising/plot_exp_occlusion.py | RandallBalestriero/PMASO | 780b06f8d8496000f3ecda04a49c8eda72393b5d | [
"MIT"
] | null | null | null | exp_denoising/plot_exp_occlusion.py | RandallBalestriero/PMASO | 780b06f8d8496000f3ecda04a49c8eda72393b5d | [
"MIT"
] | null | null | null | import cPickle
from pylab import *
import glob
import matplotlib as mpl
import os
SAVE_DIR = os.environ['SAVE_DIR']
label_size = 13
mpl.rcParams['xtick.labelsize'] = label_size+10
mpl.rcParams['ytick.labelsize'] = label_size
fs=15
def process(f_name):
f= open(f_name,'rb')
loss,reconstruction,x,X,y,pred = ... | 23.676923 | 103 | 0.653671 | 232 | 1,539 | 4.228448 | 0.362069 | 0.183486 | 0.116208 | 0.101937 | 0.255861 | 0.255861 | 0.166157 | 0.050968 | 0.050968 | 0 | 0 | 0.044289 | 0.163743 | 1,539 | 64 | 104 | 24.046875 | 0.717949 | 0 | 0 | 0.24 | 0 | 0 | 0.078725 | 0.033182 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b680b3a67d730e63fe3f87f8bd1a4114edde59f | 3,113 | py | Python | configs/tutorial/caches.py | papaef/gem5 | 4b7a923b290589d88857fc45c9b30eecde6a7a98 | [
"BSD-3-Clause"
] | null | null | null | configs/tutorial/caches.py | papaef/gem5 | 4b7a923b290589d88857fc45c9b30eecde6a7a98 | [
"BSD-3-Clause"
] | null | null | null | configs/tutorial/caches.py | papaef/gem5 | 4b7a923b290589d88857fc45c9b30eecde6a7a98 | [
"BSD-3-Clause"
] | null | null | null | import m5
from m5.objects import Cache
from m5.objects import StridePrefetcher
from m5.objects import TaggedPrefetcher
from m5.objects import System
from m5.objects import LRURP
from m5.objects import RandomRP
m5.util.addToPath('../')
from common import ObjectList
class CustStridePref(StridePrefetcher):
def __init... | 24.511811 | 54 | 0.714745 | 415 | 3,113 | 5.077108 | 0.204819 | 0.094922 | 0.056953 | 0.066445 | 0.427622 | 0.361177 | 0.23588 | 0.210252 | 0.162791 | 0.075937 | 0 | 0.021183 | 0.196274 | 3,113 | 127 | 55 | 24.511811 | 0.820943 | 0 | 0 | 0.35 | 0 | 0 | 0.01991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0.02 | 0.08 | 0 | 0.59 | 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 |
2b787415d4bcde36cc7018992f3a4d34433e27fe | 1,333 | py | Python | easy_tools/right_leaders.py | satyaaditya/EasyTools | 16e511b3a25f5951449deb0452e65c893df885f8 | [
"MIT"
] | 2 | 2019-06-20T08:08:23.000Z | 2019-10-27T14:13:52.000Z | easy_tools/right_leaders.py | satyaaditya/EasyTools | 16e511b3a25f5951449deb0452e65c893df885f8 | [
"MIT"
] | null | null | null | easy_tools/right_leaders.py | satyaaditya/EasyTools | 16e511b3a25f5951449deb0452e65c893df885f8 | [
"MIT"
] | 1 | 2019-10-27T14:17:07.000Z | 2019-10-27T14:17:07.000Z | # Time complexity is O(n)
def leaders_to_right(iterable):
"""
Leaders-to-right in the iterable is defined as if an element in the iterable
is greater than all other elements to it's right side
:param iterable: It should be of either list or tuple types containing numbers
:return: list of... | 36.027027 | 97 | 0.635409 | 198 | 1,333 | 4.232323 | 0.39899 | 0.065632 | 0.062053 | 0.0358 | 0.126492 | 0.064439 | 0.064439 | 0 | 0 | 0 | 0 | 0.019771 | 0.27907 | 1,333 | 36 | 98 | 37.027778 | 0.852237 | 0.459115 | 0 | 0 | 0 | 0 | 0.128682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
991133c0ac8d81df9ed3adfa85755cf23d714da7 | 442 | py | Python | tuesday2.py | dewaledr/Hubei-Scripts | fae4c10978b245dcd72c456cdd26bd54e05ed857 | [
"Apache-2.0"
] | null | null | null | tuesday2.py | dewaledr/Hubei-Scripts | fae4c10978b245dcd72c456cdd26bd54e05ed857 | [
"Apache-2.0"
] | null | null | null | tuesday2.py | dewaledr/Hubei-Scripts | fae4c10978b245dcd72c456cdd26bd54e05ed857 | [
"Apache-2.0"
] | null | null | null | import datetime
today = datetime.datetime.today()
dayofweek = today.weekday()
print("Let's check if it's Tuesday today...")
## Day of week begins from Monday == 0... Sunday == 6
if dayofweek == 1:
print("It's Tuesday!")
elif dayofweek == 0:
print("It's not Tuesday.")
print("Luckily, it will be Tuesday tom... | 26 | 57 | 0.674208 | 66 | 442 | 4.515152 | 0.515152 | 0.050336 | 0.100671 | 0.087248 | 0.120805 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010959 | 0.174208 | 442 | 16 | 58 | 27.625 | 0.805479 | 0.113122 | 0 | 0 | 0 | 0 | 0.475578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
99131a345fde8d69d1cab0030a92c32ea4e98ef4 | 316 | py | Python | app/loader.py | vitaliy-ukiru/math-bot | 72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9 | [
"MIT"
] | 1 | 2021-12-11T07:41:38.000Z | 2021-12-11T07:41:38.000Z | app/loader.py | vitaliy-ukiru/math-bot | 72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9 | [
"MIT"
] | 8 | 2021-05-08T21:48:34.000Z | 2022-01-20T15:42:00.000Z | app/loader.py | vitaliy-ukiru/math-bot | 72c116b4f5a4aa6a5f8eaae67ecbbf3df821f9e9 | [
"MIT"
] | null | null | null | __all__ = (
'bot',
'dp',
)
from aiogram import Bot, Dispatcher
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from app.config import BOT_TOKEN
from app.utils.logger import config_logs
config_logs()
bot = Bot(token=BOT_TOKEN, parse_mode="HTML")
dp = Dispatcher(bot, storage=MemoryStorage())
| 19.75 | 60 | 0.756329 | 44 | 316 | 5.204545 | 0.477273 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 316 | 15 | 61 | 21.066667 | 0.841912 | 0 | 0 | 0 | 0 | 0 | 0.028481 | 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 |
99139df83554887f624e0d4770bb2f4848c0fec0 | 3,171 | py | Python | crawlutils/tabdet.py | mpkato/crawlutils | 49ada48ef35b19d6c158370cd18e0d891353c13d | [
"MIT"
] | null | null | null | crawlutils/tabdet.py | mpkato/crawlutils | 49ada48ef35b19d6c158370cd18e0d891353c13d | [
"MIT"
] | null | null | null | crawlutils/tabdet.py | mpkato/crawlutils | 49ada48ef35b19d6c158370cd18e0d891353c13d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
from bs4 import BeautifulSoup
class Tabdet(object):
TABLE = re.compile("<table.*?</table>", re.IGNORECASE|re.MULTILINE|re.DOTALL)
PREFIX_TABLE = re.compile("<table.*?", re.IGNORECASE|re.MULTILINE|re.DOTALL)
CALENDER = re.compile("<table[^>]*calendar[^>]*>", re.IGNORECASE|r... | 32.690722 | 92 | 0.583412 | 408 | 3,171 | 4.294118 | 0.220588 | 0.069064 | 0.034247 | 0.052511 | 0.305936 | 0.231735 | 0.138128 | 0.047945 | 0.047945 | 0.047945 | 0 | 0.014299 | 0.316304 | 3,171 | 96 | 93 | 33.03125 | 0.793819 | 0.028067 | 0 | 0.184211 | 0 | 0 | 0.025708 | 0.008135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.026316 | 0 | 0.513158 | 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 |
991f1af841aa19d6de922e4d7e7e2d4ad1db6cd8 | 5,599 | py | Python | modeling/_gimpact_cdhelper.py | liang324/wrs | 46eadec355c61a9c7bac1fa0f3cf419b2aac19aa | [
"MIT"
] | 1 | 2021-08-07T04:51:07.000Z | 2021-08-07T04:51:07.000Z | modeling/_gimpact_cdhelper.py | liang324/wrs | 46eadec355c61a9c7bac1fa0f3cf419b2aac19aa | [
"MIT"
] | null | null | null | modeling/_gimpact_cdhelper.py | liang324/wrs | 46eadec355c61a9c7bac1fa0f3cf419b2aac19aa | [
"MIT"
] | null | null | null | import numpy as np
import gimpact as gi
# util functions
def gen_cdmesh_vvnf(vertices, vertex_normals, faces):
"""
generate cdmesh given vertices, _, and faces
:return: gimpact.TriMesh (require gimpact to be installed)
author: weiwei
date: 20210118
"""
return gi.TriMesh(vertices, faces.flat... | 43.403101 | 123 | 0.650652 | 791 | 5,599 | 4.457649 | 0.240202 | 0.01021 | 0.047646 | 0.011344 | 0.522121 | 0.495746 | 0.446965 | 0.433352 | 0.42371 | 0.42371 | 0 | 0.12442 | 0.19182 | 5,599 | 128 | 124 | 43.742188 | 0.654807 | 0.482765 | 0 | 0.086957 | 1 | 0 | 0.026364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.152174 | 0 | 0.282609 | 0.021739 | 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 |
991f2abf15b977ab450dc4324d4f1653c3a1be22 | 15,042 | py | Python | app/routes.py | wujiahui62/XCEL | 8b1dec2d597fc1c1f66b01fb2aee9c069c0f2329 | [
"Apache-2.0"
] | null | null | null | app/routes.py | wujiahui62/XCEL | 8b1dec2d597fc1c1f66b01fb2aee9c069c0f2329 | [
"Apache-2.0"
] | null | null | null | app/routes.py | wujiahui62/XCEL | 8b1dec2d597fc1c1f66b01fb2aee9c069c0f2329 | [
"Apache-2.0"
] | null | null | null | from app import app, db
from flask import render_template, flash, redirect, url_for, request
from app.forms import LoginForm, RegistrationForm, EditProfileForm, EditUserForm, EventRegistrationForm, ResetPasswordRequestForm, ResetPasswordForm, LeagueRegistrationForm, ContactUsForm
from flask_login import current_user, l... | 41.66759 | 187 | 0.660285 | 1,864 | 15,042 | 5.177575 | 0.108906 | 0.016164 | 0.036266 | 0.049736 | 0.42866 | 0.309812 | 0.260491 | 0.225262 | 0.171278 | 0.154906 | 0 | 0.00111 | 0.221181 | 15,042 | 360 | 188 | 41.783333 | 0.822706 | 0.009706 | 0 | 0.325301 | 0 | 0 | 0.117856 | 0.012894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063253 | false | 0.054217 | 0.021084 | 0.003012 | 0.216867 | 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 |
9926dbb9ba56b1cd4c85ca87f60b9ba166b2b967 | 1,033 | py | Python | tests/test_utilities/test_shell_config_reader.py | p-sherratt/shellfoundry | d1f35a31123b9e701c801345fb633b6fda5420b7 | [
"Apache-2.0"
] | null | null | null | tests/test_utilities/test_shell_config_reader.py | p-sherratt/shellfoundry | d1f35a31123b9e701c801345fb633b6fda5420b7 | [
"Apache-2.0"
] | 1 | 2021-03-25T23:21:02.000Z | 2021-03-25T23:21:02.000Z | tests/test_utilities/test_shell_config_reader.py | p-sherratt/shellfoundry | d1f35a31123b9e701c801345fb633b6fda5420b7 | [
"Apache-2.0"
] | null | null | null | import os
from pyfakefs import fake_filesystem_unittest
from shellfoundry.utilities.shell_config_reader import ShellConfigReader
class TestShellConfigReader(fake_filesystem_unittest.TestCase):
def setUp(self):
self.setUpPyfakefs()
def test_read_config_all_settings_are_set(self):
# Arrange
... | 28.694444 | 72 | 0.688287 | 117 | 1,033 | 5.923077 | 0.444444 | 0.12987 | 0.181818 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007371 | 0.212004 | 1,033 | 35 | 73 | 29.514286 | 0.84398 | 0.017425 | 0 | 0 | 0 | 0 | 0.269041 | 0 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.24 | 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 |
992cece9ebbb51fc635609bb7034c52fc3053e32 | 1,970 | py | Python | site_auth/migrations/0003_auto_20210610_1821.py | KMITL-PreElec9/Website | 835681f7ed831cda385bd8c9d29627c19476168d | [
"CC0-1.0"
] | null | null | null | site_auth/migrations/0003_auto_20210610_1821.py | KMITL-PreElec9/Website | 835681f7ed831cda385bd8c9d29627c19476168d | [
"CC0-1.0"
] | 12 | 2021-06-14T09:03:36.000Z | 2021-07-04T14:02:54.000Z | site_auth/migrations/0003_auto_20210610_1821.py | KMITL-PreElec9/Website | 835681f7ed831cda385bd8c9d29627c19476168d | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.2.3 on 2021-06-10 11:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('site_auth', '0002_auto_2... | 38.627451 | 199 | 0.604061 | 207 | 1,970 | 5.550725 | 0.386473 | 0.041775 | 0.078329 | 0.104439 | 0.332463 | 0.285466 | 0.121845 | 0 | 0 | 0 | 0 | 0.035441 | 0.269543 | 1,970 | 50 | 200 | 39.4 | 0.76303 | 0.022843 | 0 | 0.363636 | 1 | 0 | 0.119085 | 0.01196 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.136364 | 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 |
993994d0c800a894c5fa9951698135aa4bd81d80 | 5,605 | py | Python | infix2postfix.py | BoolLi/LeapMotionDesignChallenge | be25675281bb0363dc41316ccee74c85e4f7ad40 | [
"MIT"
] | null | null | null | infix2postfix.py | BoolLi/LeapMotionDesignChallenge | be25675281bb0363dc41316ccee74c85e4f7ad40 | [
"MIT"
] | null | null | null | infix2postfix.py | BoolLi/LeapMotionDesignChallenge | be25675281bb0363dc41316ccee74c85e4f7ad40 | [
"MIT"
] | null | null | null | """ CSCI204 Stack lab """
from stack import MyStack
import sys
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np
stack = MyStack()
RESOLUTION = 30
def printShit():
print "shit"
def translate( expression ):
""" Translates the given simple infix ... | 29.81383 | 101 | 0.567886 | 635 | 5,605 | 4.976378 | 0.275591 | 0.022785 | 0.018987 | 0.031646 | 0.231329 | 0.142405 | 0.135127 | 0.111076 | 0.077532 | 0.057278 | 0 | 0.00627 | 0.317038 | 5,605 | 187 | 102 | 29.973262 | 0.819227 | 0 | 0 | 0.19697 | 0 | 0 | 0.054017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
993f19257821fcc5c4a375a139a8754b10dc4609 | 825 | py | Python | shiftuser/util/passlib.py | projectshift/shift-user | ccab014378d60cd372419bcbf63ae6b4b3559d18 | [
"MIT"
] | null | null | null | shiftuser/util/passlib.py | projectshift/shift-user | ccab014378d60cd372419bcbf63ae6b4b3559d18 | [
"MIT"
] | 16 | 2020-05-05T10:17:40.000Z | 2021-06-06T09:01:23.000Z | shiftuser/util/passlib.py | projectshift/shift-user | ccab014378d60cd372419bcbf63ae6b4b3559d18 | [
"MIT"
] | null | null | null | from passlib.context import CryptContext
from flask import current_app
"""
Note on bcrypt
Hashing passwords with bcrypt algorithm will require a python bcrypt module.
On Mac OSX this may sometime fail due to the absence of libffi. If that is
the case, you can install it with homebrew:
brew install pkg-config libf... | 30.555556 | 144 | 0.767273 | 119 | 825 | 5.268908 | 0.638655 | 0.047847 | 0.051037 | 0.060606 | 0.082935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034139 | 0.147879 | 825 | 26 | 145 | 31.730769 | 0.857752 | 0.060606 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.363636 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
99419f4b1d3292d6cdeabbcd13b258f3f78b96c6 | 3,408 | py | Python | src/dispatch/worker/models.py | alibaba/easydispatch | 2cf32a374d12c804ff396f90b789c2a838003c5d | [
"Apache-2.0"
] | 11 | 2021-05-04T03:15:20.000Z | 2022-02-16T07:44:16.000Z | src/dispatch/worker/models.py | alibaba/easydispatch | 2cf32a374d12c804ff396f90b789c2a838003c5d | [
"Apache-2.0"
] | 4 | 2021-06-21T11:12:37.000Z | 2021-06-29T11:54:18.000Z | src/dispatch/worker/models.py | alibaba/easydispatch | 2cf32a374d12c804ff396f90b789c2a838003c5d | [
"Apache-2.0"
] | 2 | 2021-05-05T00:42:44.000Z | 2021-05-10T12:51:58.000Z | from datetime import datetime
from typing import List, Optional
from sqlalchemy import (
JSON,
Boolean,
Column,
Float,
ForeignKey,
Integer,
PrimaryKeyConstraint,
String,
Table,
)
from sqlalchemy.orm import relationship
from sqlalchemy_utils import TSVectorType
from dispatch.databas... | 32.150943 | 251 | 0.680458 | 373 | 3,408 | 6.128686 | 0.396783 | 0.026247 | 0.028434 | 0.037183 | 0.093176 | 0.051619 | 0.051619 | 0 | 0 | 0 | 0 | 0.036049 | 0.186033 | 3,408 | 105 | 252 | 32.457143 | 0.788032 | 0.195129 | 0 | 0.055556 | 0 | 0 | 0.144848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.638889 | 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 |
994cf897058d7d416e95993f0159a10716ca0241 | 3,030 | py | Python | bdtsim/cli/environment_info.py | MatthiasLohr/bdtsim | f22a1207b206b35c8f0011be6991bc3163cdfca2 | [
"Apache-2.0"
] | null | null | null | bdtsim/cli/environment_info.py | MatthiasLohr/bdtsim | f22a1207b206b35c8f0011be6991bc3163cdfca2 | [
"Apache-2.0"
] | null | null | null | bdtsim/cli/environment_info.py | MatthiasLohr/bdtsim | f22a1207b206b35c8f0011be6991bc3163cdfca2 | [
"Apache-2.0"
] | null | null | null | # This file is part of the Blockchain Data Trading Simulator
# https://gitlab.com/MatthiasLohr/bdtsim
#
# Copyright 2020 Matthias Lohr <mail@mlohr.com>
#
# 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... | 43.285714 | 119 | 0.683168 | 347 | 3,030 | 5.861671 | 0.489914 | 0.048673 | 0.035398 | 0.015733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.221122 | 3,030 | 69 | 120 | 43.913043 | 0.844915 | 0.230033 | 0 | 0 | 0 | 0 | 0.159464 | 0.019447 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.047619 | false | 0.02381 | 0.119048 | 0 | 0.238095 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99652cd52c8b85e8c64e47079d1e73b684f17beb | 7,277 | py | Python | metrics_gocdb.py | mod3000a/Grid-Tools-Metric-Gathering | 32420850b21d1742e60024c11f4def85d1f6c68f | [
"Apache-2.0"
] | 1 | 2018-07-13T13:48:57.000Z | 2018-07-13T13:48:57.000Z | metrics_gocdb.py | mod3000a/Grid-Tools-Metric-Gathering | 32420850b21d1742e60024c11f4def85d1f6c68f | [
"Apache-2.0"
] | null | null | null | metrics_gocdb.py | mod3000a/Grid-Tools-Metric-Gathering | 32420850b21d1742e60024c11f4def85d1f6c68f | [
"Apache-2.0"
] | null | null | null | """This script is used to collect information about GOCDB -AT"""
import requests
import xml.dom.minidom
from datetime import datetime, timedelta
import logging
from common import ESWrite, GetData, ModLogger, es_check, gocdb_check
from optparse import OptionParser
from elasticsearch import Elasticsearch
def _parse_get_... | 31.23176 | 80 | 0.621135 | 918 | 7,277 | 4.80719 | 0.295207 | 0.023567 | 0.019941 | 0.023793 | 0.182416 | 0.140721 | 0.133469 | 0.126445 | 0.126445 | 0.126445 | 0 | 0.00116 | 0.289405 | 7,277 | 232 | 81 | 31.366379 | 0.852253 | 0.025285 | 0 | 0.118812 | 0 | 0 | 0.216542 | 0.013504 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009901 | 0.069307 | null | null | 0.029703 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
99696fc31caf8402515019503a51d6f145819932 | 412 | py | Python | intro/summary-exercises/examples/plot_optimize_lidar_complex_data.py | zmoon/scipy-lecture-notes | 75a89ddedeb48930dbdb6fe25a76e9ef0587ae21 | [
"CC-BY-4.0"
] | 2,538 | 2015-01-01T04:58:41.000Z | 2022-03-31T21:06:05.000Z | intro/summary-exercises/examples/plot_optimize_lidar_complex_data.py | zmoon/scipy-lecture-notes | 75a89ddedeb48930dbdb6fe25a76e9ef0587ae21 | [
"CC-BY-4.0"
] | 362 | 2015-01-18T14:16:23.000Z | 2021-11-18T16:24:34.000Z | intro/summary-exercises/examples/plot_optimize_lidar_complex_data.py | zmoon/scipy-lecture-notes | 75a89ddedeb48930dbdb6fe25a76e9ef0587ae21 | [
"CC-BY-4.0"
] | 1,127 | 2015-01-05T14:39:29.000Z | 2022-03-25T08:38:39.000Z | """
The lidar system, data (2 of 2 datasets)
========================================
Generate a chart of more complex data recorded by the lidar system
"""
import numpy as np
import matplotlib.pyplot as plt
waveform_2 = np.load('waveform_2.npy')
t = np.arange(len(waveform_2))
fig, ax = plt.subplots(figsize=(8, 6)... | 20.6 | 66 | 0.643204 | 64 | 412 | 4.078125 | 0.640625 | 0.137931 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.131068 | 412 | 19 | 67 | 21.684211 | 0.706704 | 0.36165 | 0 | 0 | 1 | 0 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
996e82f95e3bde69a26453473b867752233d9cab | 2,699 | py | Python | mvt.py | fraspass/sbm | 7a9fc97760b4b9eebbb0f70c38c477063b9e3bed | [
"MIT"
] | 7 | 2019-04-30T00:35:59.000Z | 2021-12-17T05:14:33.000Z | mvt.py | fraspass/sbm | 7a9fc97760b4b9eebbb0f70c38c477063b9e3bed | [
"MIT"
] | null | null | null | mvt.py | fraspass/sbm | 7a9fc97760b4b9eebbb0f70c38c477063b9e3bed | [
"MIT"
] | 1 | 2022-03-14T00:10:31.000Z | 2022-03-14T00:10:31.000Z | #!/usr/bin/env python
import sys
from scipy.stats import t
from scipy.special import gammaln
import numpy as np
from numpy import pi,log,sqrt
from numpy.linalg import slogdet,inv
################################
### Multivariate Student's t ###
################################
### Multivariate Student's t density (lo... | 40.893939 | 105 | 0.685439 | 435 | 2,699 | 4.188506 | 0.229885 | 0.039517 | 0.026345 | 0.021954 | 0.736553 | 0.708562 | 0.69539 | 0.69539 | 0.598793 | 0.559824 | 0 | 0.016151 | 0.174139 | 2,699 | 65 | 106 | 41.523077 | 0.801256 | 0.391256 | 0 | 0.378378 | 0 | 0 | 0.112565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.162162 | 0 | 0.324324 | 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 |
997614860bb9137277f143bccfc738ae54f6b255 | 1,348 | py | Python | venv/Lib/site-packages/tests/test_112_FieldNumDiffCaseColNames.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_112_FieldNumDiffCaseColNames.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_112_FieldNumDiffCaseColNames.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | #
# Licensed Materials - Property of IBM
#
# (c) Copyright IBM Corp. 2007-2008
#
import unittest, sys
import ibm_db
import config
from testfunctions import IbmDbTestFunctions
class IbmDbTestCase(unittest.TestCase):
def test_112_FieldNumDiffCaseColNames(self):
obj = IbmDbTestFunctions()
obj.assert_expect... | 21.0625 | 93 | 0.63724 | 180 | 1,348 | 4.511111 | 0.4 | 0.055419 | 0.044335 | 0.08867 | 0.284483 | 0.176108 | 0.098522 | 0 | 0 | 0 | 0 | 0.036538 | 0.228487 | 1,348 | 63 | 94 | 21.396825 | 0.744231 | 0.161721 | 0 | 0 | 0 | 0 | 0.156561 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.068966 | false | 0.068966 | 0.137931 | 0 | 0.241379 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
997d9f58a6f1271370f178c315dcf9c46ecec50b | 442 | py | Python | rango/migrations/0004_tag_likes.py | T-Boya/Image-Hosting-Site-1 | 25f88e7a653986eb8aa159e6ca8377a5a347039a | [
"CNRI-Python"
] | null | null | null | rango/migrations/0004_tag_likes.py | T-Boya/Image-Hosting-Site-1 | 25f88e7a653986eb8aa159e6ca8377a5a347039a | [
"CNRI-Python"
] | null | null | null | rango/migrations/0004_tag_likes.py | T-Boya/Image-Hosting-Site-1 | 25f88e7a653986eb8aa159e6ca8377a5a347039a | [
"CNRI-Python"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2018-05-04 09:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0003_auto_20180504_1205'),
]
operations = [
migrations.AddField(
... | 21.047619 | 49 | 0.608597 | 49 | 442 | 5.306122 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10559 | 0.271493 | 442 | 20 | 50 | 22.1 | 0.701863 | 0.153846 | 0 | 0 | 1 | 0 | 0.097035 | 0.061995 | 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 |
9980802febf15e5a87d35d2a853fb44c5839cf6b | 5,133 | py | Python | notifico/bots/bot.py | ammaraskar/notifico | 6bdc0c36948741b3d0bac897a02b7b63cabfec6c | [
"MIT"
] | 80 | 2015-01-01T07:55:35.000Z | 2019-04-23T14:47:35.000Z | notifico/bots/bot.py | ammaraskar/notifico | 6bdc0c36948741b3d0bac897a02b7b63cabfec6c | [
"MIT"
] | 88 | 2015-01-02T09:26:31.000Z | 2019-05-27T07:03:07.000Z | notifico/bots/bot.py | ammaraskar/notifico | 6bdc0c36948741b3d0bac897a02b7b63cabfec6c | [
"MIT"
] | 33 | 2015-01-12T18:16:30.000Z | 2019-02-02T01:15:41.000Z | # -*- coding: utf8 -*-
from functools import wraps, partial
import gevent
import gevent.queue
import gevent.event
from utopia import signals
from utopia.client import ProtocolClient
from utopia.plugins.protocol import ISupportPlugin
from utopia.plugins.util import LogPlugin
class BotificoBot(ProtocolClient):
d... | 29.164773 | 78 | 0.611338 | 627 | 5,133 | 4.851675 | 0.244019 | 0.03616 | 0.024655 | 0.024984 | 0.13215 | 0.116371 | 0.054569 | 0.054569 | 0.028928 | 0 | 0 | 0.00469 | 0.293785 | 5,133 | 175 | 79 | 29.331429 | 0.834483 | 0.200857 | 0 | 0.107527 | 0 | 0 | 0.002338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0.053763 | 0.086022 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
998af04c024f5e483f2c93d980d64c16e960ec11 | 358 | py | Python | extract/model/facility.py | bcgov/cas-ggircs-ciip-2018-extract | 0e38aad60ea6a726c2f010ad6046cb9ce91db0c2 | [
"Apache-2.0"
] | null | null | null | extract/model/facility.py | bcgov/cas-ggircs-ciip-2018-extract | 0e38aad60ea6a726c2f010ad6046cb9ce91db0c2 | [
"Apache-2.0"
] | 31 | 2019-08-28T16:49:08.000Z | 2022-03-01T17:29:17.000Z | extract/model/facility.py | bcgov/cas-ggircs-ciip-2018-extract | 0e38aad60ea6a726c2f010ad6046cb9ce91db0c2 | [
"Apache-2.0"
] | null | null | null | class Facility:
id = 0
operator = None
name = None
bcghg_id = None
type = None
naics = None
description = None
swrs_facility_id = None
production_calculation_explanation = None
production_additional_info = None
production_public_info = None
ciip_db_id = None
def __init__(self, operator):
... | 17.9 | 43 | 0.717877 | 45 | 358 | 5.377778 | 0.533333 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.22905 | 358 | 19 | 44 | 18.842105 | 0.873188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 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 |
999fa4e85273ef05dc539d01c39b96989c2441be | 543 | py | Python | python/static/exercise2/3.py | racterub/yzu_python | b4d7f473e70a0b1e261f7272c5182e116ba97378 | [
"MIT"
] | null | null | null | python/static/exercise2/3.py | racterub/yzu_python | b4d7f473e70a0b1e261f7272c5182e116ba97378 | [
"MIT"
] | null | null | null | python/static/exercise2/3.py | racterub/yzu_python | b4d7f473e70a0b1e261f7272c5182e116ba97378 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2019-10-13 14:21:43
# @Author : Racterub (Racter Liu) (racterub@gmail.com)
# @Link : https://racterub.io
# @License : MIT
data = int(input("Input your dateNumber:")) #測資: 6
if data == 0:
print("Sunday")
elif data == 1:
print("Monday")
elif data ... | 19.392857 | 55 | 0.59116 | 76 | 543 | 4.223684 | 0.671053 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056206 | 0.213628 | 543 | 28 | 56 | 19.392857 | 0.69555 | 0.349908 | 0 | 0 | 0 | 0 | 0.242775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
999fcf3f666fe27a04b768a2301c4113ee7e6598 | 568 | py | Python | apps/article/migrations/0012_auto_20191007_2357.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 32 | 2017-02-22T13:38:38.000Z | 2022-03-31T23:29:54.000Z | apps/article/migrations/0012_auto_20191007_2357.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 694 | 2017-02-15T23:09:52.000Z | 2022-03-31T23:16:07.000Z | apps/article/migrations/0012_auto_20191007_2357.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 35 | 2017-09-02T21:13:09.000Z | 2022-02-21T11:30:30.000Z | # Generated by Django 2.1.11 on 2019-10-07 21:57
import apps.article.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("article", "0011_auto_20190506_1719")]
operations = [
migrations.AlterField(
model_name="article",
nam... | 24.695652 | 68 | 0.579225 | 59 | 568 | 5.440678 | 0.728814 | 0.068536 | 0.105919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090439 | 0.318662 | 568 | 22 | 69 | 25.818182 | 0.739018 | 0.080986 | 0 | 0 | 1 | 0 | 0.096154 | 0.044231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
999fe7b38ed3f9629082d42006c77e19876d9a24 | 988 | py | Python | FWCore/GuiBrowsers/python/Vispa/Plugins/EdmBrowser/EdmBrowserBoxView.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | FWCore/GuiBrowsers/python/Vispa/Plugins/EdmBrowser/EdmBrowserBoxView.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | FWCore/GuiBrowsers/python/Vispa/Plugins/EdmBrowser/EdmBrowserBoxView.py | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | import logging
from Vispa.Views.BoxDecayView import BoxDecayView
from Vispa.Gui.WidgetContainer import WidgetContainer
class EdmBrowserBoxView(BoxDecayView):
"""
"""
LABEL="BoxView"
def createBox(self, widgetParent, container, title, text):
widget=BoxDecayView.createBox(self, widgetParent... | 35.285714 | 107 | 0.676113 | 97 | 988 | 6.886598 | 0.391753 | 0.095808 | 0.139222 | 0.121257 | 0.381737 | 0.332335 | 0.203593 | 0.203593 | 0.203593 | 0.203593 | 0 | 0.002577 | 0.214575 | 988 | 27 | 108 | 36.592593 | 0.858247 | 0 | 0 | 0 | 0 | 0 | 0.007165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.15 | 0.05 | 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 |
99a652131ae51bc515c59ada679b3aeba9924db8 | 316 | py | Python | opc/__init__.py | python-openxml/python-opc | e35d643ebc8c67b6c3388f38c57672a40f173010 | [
"MIT"
] | 29 | 2015-04-15T13:38:33.000Z | 2021-12-14T06:32:20.000Z | opc/__init__.py | python-openxml/python-opc | e35d643ebc8c67b6c3388f38c57672a40f173010 | [
"MIT"
] | 1 | 2017-05-22T20:46:43.000Z | 2017-05-22T20:46:43.000Z | opc/__init__.py | python-openxml/python-opc | e35d643ebc8c67b6c3388f38c57672a40f173010 | [
"MIT"
] | 17 | 2015-04-02T06:05:09.000Z | 2022-03-04T12:07:18.000Z | # -*- coding: utf-8 -*-
#
# __init__.py
#
# Copyright (C) 2012, 2013 Steve Canny scanny@cisco.com
#
# This module is part of python-opc and is released under the MIT License:
# http://www.opensource.org/licenses/mit-license.php
from opc.package import OpcPackage, Part, PartFactory # noqa
__version__ = '0.0.1d1'
| 24.307692 | 74 | 0.71519 | 48 | 316 | 4.541667 | 0.875 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048507 | 0.151899 | 316 | 12 | 75 | 26.333333 | 0.764925 | 0.683544 | 0 | 0 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
99a9c5af4cda3395cd194eaa69c2392afe7fa4b6 | 7,327 | py | Python | rpython/jit/backend/llsupport/test/test_zrpy_gc_direct.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 381 | 2018-08-18T03:37:22.000Z | 2022-02-06T23:57:36.000Z | rpython/jit/backend/llsupport/test/test_zrpy_gc_direct.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 16 | 2018-09-22T18:12:47.000Z | 2022-02-22T20:03:59.000Z | rpython/jit/backend/llsupport/test/test_zrpy_gc_direct.py | m4sterchain/mesapy | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | [
"Apache-2.0",
"OpenSSL"
] | 30 | 2018-08-20T03:16:34.000Z | 2022-01-12T17:39:22.000Z | from rpython.jit.backend.detect_cpu import getcpuclass
from rpython.jit.tool.oparser import parse
from rpython.jit.metainterp.history import JitCellToken, NoStats
from rpython.jit.metainterp.history import BasicFinalDescr, BasicFailDescr
from rpython.jit.metainterp.gc import get_description
from rpython.jit.metainterp.... | 35.396135 | 74 | 0.563123 | 767 | 7,327 | 5.239896 | 0.246415 | 0.071162 | 0.079622 | 0.104504 | 0.294849 | 0.191341 | 0.156507 | 0.136104 | 0.136104 | 0.132122 | 0 | 0.014958 | 0.315682 | 7,327 | 206 | 75 | 35.567961 | 0.786598 | 0.010373 | 0 | 0.261364 | 0 | 0 | 0.100097 | 0.013254 | 0 | 0 | 0 | 0 | 0.005682 | 0 | null | null | 0.017045 | 0.068182 | null | null | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
99acadcfa01ffe85cd678a9ad4aec48f239810d4 | 9,952 | py | Python | 3-mix-recon.py | leonteale/mix-recon | 1fbee41218a1c0b2c803ad93a4e5dca8e527e263 | [
"Unlicense"
] | 59 | 2015-07-02T15:32:33.000Z | 2022-02-11T23:47:16.000Z | 3-mix-recon.py | Re4son/mix-recon | 1fbee41218a1c0b2c803ad93a4e5dca8e527e263 | [
"Unlicense"
] | null | null | null | 3-mix-recon.py | Re4son/mix-recon | 1fbee41218a1c0b2c803ad93a4e5dca8e527e263 | [
"Unlicense"
] | 33 | 2015-07-02T15:32:33.000Z | 2022-02-02T15:18:43.000Z | #!/usr/bin/env python
################################################################
## [Name]: 3-mix-recon.py -- a recon/enumeration script
## [Original Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
## [Author]: Re4son re4son [at] whitedome.com.au
##--------------------------------------------------------------
... | 49.267327 | 266 | 0.59385 | 1,454 | 9,952 | 4.00619 | 0.211142 | 0.014421 | 0.010987 | 0.022661 | 0.479142 | 0.419742 | 0.406009 | 0.393305 | 0.381631 | 0.374592 | 0 | 0.010417 | 0.209003 | 9,952 | 201 | 267 | 49.512438 | 0.729548 | 0.097769 | 0 | 0.320988 | 0 | 0.061728 | 0.435246 | 0.12792 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0.080247 | 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 |
99acc0d244872ca159b4535d76de317526ca6c71 | 417 | py | Python | votarkUser/migrations/0011_auto_20200511_2012.py | VotarkSocial/votarkAPI | eea10a64ac0b255c97078b90786fccb30d0a451e | [
"MIT"
] | 2 | 2020-06-14T08:25:29.000Z | 2021-09-22T07:48:11.000Z | votarkUser/migrations/0011_auto_20200511_2012.py | suulcoder/votarkAPI | eea10a64ac0b255c97078b90786fccb30d0a451e | [
"MIT"
] | 10 | 2020-06-14T08:36:42.000Z | 2022-03-12T00:30:53.000Z | votarkUser/migrations/0011_auto_20200511_2012.py | suulcoder/votarkAPI | eea10a64ac0b255c97078b90786fccb30d0a451e | [
"MIT"
] | 1 | 2021-09-22T07:48:17.000Z | 2021-09-22T07:48:17.000Z | # Generated by Django 3.0.4 on 2020-05-11 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('votarkUser', '0010_auto_20200511_0750'),
]
operations = [
migrations.AlterField(
model_name='votarkuser',
name='pict... | 21.947368 | 73 | 0.609113 | 45 | 417 | 5.533333 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101974 | 0.270983 | 417 | 18 | 74 | 23.166667 | 0.717105 | 0.107914 | 0 | 0 | 1 | 0 | 0.135135 | 0.062162 | 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 |
41e229900119b673fd6288c75bed233be77fc0e0 | 658 | py | Python | web_app/models/pages.py | alexhendra/SimplyBlog-MVC-Python | 29f200697ebbf654220ea489d4f9cbe98b6416f4 | [
"Apache-2.0"
] | 1 | 2018-03-17T08:04:22.000Z | 2018-03-17T08:04:22.000Z | web_app/models/pages.py | alexhendra/SimplyBlog-MVC-Python | 29f200697ebbf654220ea489d4f9cbe98b6416f4 | [
"Apache-2.0"
] | null | null | null | web_app/models/pages.py | alexhendra/SimplyBlog-MVC-Python | 29f200697ebbf654220ea489d4f9cbe98b6416f4 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from web_app.models import db
from web_app.models.sites import Site
class Page(db.Model):
__tablename__ = 'page'
id = Column(Integer, primary_key=True, autoincrement='auto')
name = Column(String)
... | 29.909091 | 70 | 0.708207 | 80 | 658 | 5.725 | 0.5125 | 0.085153 | 0.043668 | 0.069869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180851 | 658 | 21 | 71 | 31.333333 | 0.849722 | 0 | 0 | 0 | 0 | 0 | 0.051672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.882353 | 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 |
41f3cf985ba6e599720013355afb9b20fd387c77 | 1,931 | py | Python | chidubem project for banking app.py | ogbcode/chidubem-ogbuefi-CSC102 | 3e4c94508e2591c376dbfeca74e230d5a71ad12c | [
"MIT"
] | null | null | null | chidubem project for banking app.py | ogbcode/chidubem-ogbuefi-CSC102 | 3e4c94508e2591c376dbfeca74e230d5a71ad12c | [
"MIT"
] | null | null | null | chidubem project for banking app.py | ogbcode/chidubem-ogbuefi-CSC102 | 3e4c94508e2591c376dbfeca74e230d5a71ad12c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 25 12:14:46 2021
@author: SST Computer Lab
"""
import pandas
def customerbank():
customernames=list[name]
customeraccountbalance=list[accountB]
customerpin=list[password]
tab={"name":name,"account balance":customeraccountbalance,"pin":customerpi... | 29.257576 | 89 | 0.637494 | 229 | 1,931 | 5.340611 | 0.49345 | 0.029436 | 0.02453 | 0.032706 | 0.040883 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017077 | 0.241844 | 1,931 | 65 | 90 | 29.707692 | 0.818306 | 0.044019 | 0 | 0.041667 | 0 | 0 | 0.239278 | 0.012415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.145833 | 0.020833 | 0 | 0.166667 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41f78a347fbfcaee8b8b66758604ef7a9b4f8ab1 | 3,456 | py | Python | grid_plume/plotparticles.py | dylanrighi/GnomeTools | 08ad6810194141ac89a27c95fa9b9499376000ae | [
"Unlicense"
] | 2 | 2017-02-15T20:45:42.000Z | 2020-10-09T16:00:00.000Z | grid_plume/plotparticles.py | dylanrighi/GnomeTools | 08ad6810194141ac89a27c95fa9b9499376000ae | [
"Unlicense"
] | 10 | 2015-06-25T23:42:11.000Z | 2021-06-22T16:19:19.000Z | grid_plume/plotparticles.py | dylanrighi/GnomeTools | 08ad6810194141ac89a27c95fa9b9499376000ae | [
"Unlicense"
] | 15 | 2016-01-11T20:49:10.000Z | 2020-10-15T18:02:20.000Z | #!/usr/bin/env python
"""
Module that plots nc_particle_files
Dan Helfman
"""
from __future__ import division #Change the / operator to ensure true division throughout (Zelenke).
from gridplume import nc_particles as ncp
print ncp.__file__
#from gridplume import particles #Commented-out import of unused module (Zelen... | 34.56 | 151 | 0.621238 | 426 | 3,456 | 4.953052 | 0.323944 | 0.096682 | 0.034123 | 0.037915 | 0.591469 | 0.529858 | 0.529858 | 0.465403 | 0.422749 | 0.422749 | 0 | 0.029862 | 0.224826 | 3,456 | 99 | 152 | 34.909091 | 0.757745 | 0.457176 | 0 | 0.454545 | 0 | 0 | 0.100363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41faa6d7042cecfd7a66260045ba246e455d257a | 10,118 | py | Python | giant/catalogues/meta_catalogue.py | nasa/giant | 1e939272d9a0ca533b4da400d132f854520f3adc | [
"NASA-1.3"
] | 5 | 2021-09-10T14:29:19.000Z | 2022-01-13T20:15:01.000Z | giant/catalogues/meta_catalogue.py | nasa/giant | 1e939272d9a0ca533b4da400d132f854520f3adc | [
"NASA-1.3"
] | null | null | null | giant/catalogues/meta_catalogue.py | nasa/giant | 1e939272d9a0ca533b4da400d132f854520f3adc | [
"NASA-1.3"
] | 2 | 2021-10-01T18:39:13.000Z | 2021-12-30T08:53:08.000Z | # Copyright 2021 United States Government as represented by the Administrator of the National Aeronautics and Space
# Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All Other Rights Reserved.
"""
This module defines the abstract base class (abc) for defining GIANT star catalo... | 58.825581 | 120 | 0.617316 | 1,272 | 10,118 | 4.843553 | 0.262579 | 0.050641 | 0.018503 | 0.015582 | 0.165882 | 0.130498 | 0.098685 | 0.083428 | 0.05551 | 0.017854 | 0 | 0.0066 | 0.236312 | 10,118 | 171 | 121 | 59.169591 | 0.790734 | 0.577288 | 0 | 0 | 0 | 0 | 0.094037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.26087 | 0 | 0.521739 | 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 |
41fb67997e2828b274e28a93bf0c7b72c6dcd869 | 119,369 | py | Python | raw_packet/Utils/network.py | pegasusx/raw-packet | 332cc64193543f9de7c93a6049ab66ac5e7b695a | [
"MIT"
] | null | null | null | raw_packet/Utils/network.py | pegasusx/raw-packet | 332cc64193543f9de7c93a6049ab66ac5e7b695a | [
"MIT"
] | null | null | null | raw_packet/Utils/network.py | pegasusx/raw-packet | 332cc64193543f9de7c93a6049ab66ac5e7b695a | [
"MIT"
] | 1 | 2021-05-22T18:49:00.000Z | 2021-05-22T18:49:00.000Z | # region Description
"""
network.py: Class for creating and parsing network packets for Raw-packet project
Author: Vladimir Ivanov
License: MIT
Copyright 2019, Raw-packet Project
"""
# endregion
# region Import
from base import Base
from random import choice, randint
from struct import pack, unpack, error as struct_er... | 43.093502 | 120 | 0.501278 | 13,182 | 119,369 | 4.295024 | 0.057882 | 0.01625 | 0.027942 | 0.026847 | 0.678913 | 0.625183 | 0.580956 | 0.525231 | 0.488934 | 0.463271 | 0 | 0.050611 | 0.381263 | 119,369 | 2,769 | 121 | 43.109065 | 0.715955 | 0.146487 | 0 | 0.507325 | 0 | 0 | 0.050213 | 0.001176 | 0 | 0 | 0.002956 | 0 | 0 | 0 | null | null | 0.000543 | 0.004883 | null | null | 0.005969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
51018dbca6468b2e182294297d4e1b8a3d70785e | 4,653 | py | Python | cgi-bin/wepp/idep2shape.py | akrherz/weppwebsite | f5663b0ad9c5c05c3af5a37b0432e8d6b089351f | [
"MIT"
] | 1 | 2019-03-06T23:52:01.000Z | 2019-03-06T23:52:01.000Z | cgi-bin/wepp/idep2shape.py | akrherz/weppwebsite | f5663b0ad9c5c05c3af5a37b0432e8d6b089351f | [
"MIT"
] | 2 | 2017-05-02T16:12:48.000Z | 2020-06-25T01:46:19.000Z | cgi-bin/wepp/idep2shape.py | akrherz/weppwebsite | f5663b0ad9c5c05c3af5a37b0432e8d6b089351f | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Provide IDEP output on a per township basis
"""
import sys
import pyiem.wellknowntext as wellknowntext
import shapelib
import dbflib
import os
import cgi
import mx.DateTime
import zipfile
import shutil
import psycopg2
from psycopg2.extras import DictCursor
WEPP = psycopg2.connect(database='wepp', ... | 29.636943 | 121 | 0.662368 | 736 | 4,653 | 4.09375 | 0.29212 | 0.038832 | 0.043146 | 0.039827 | 0.382675 | 0.281447 | 0.18221 | 0.122137 | 0.104879 | 0.035845 | 0 | 0.017335 | 0.169353 | 4,653 | 156 | 122 | 29.826923 | 0.762225 | 0.035031 | 0 | 0.104 | 0 | 0.008 | 0.388363 | 0.036987 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
510e7fc8fd2a33629098c7155b85211d77e0dfb1 | 6,175 | py | Python | cobain/radiative_transfer/star_diffrot.py | gecheline/cobain-code | 4f1c0e9c08d23bf7b5f57cc5af0fbf904d5109f7 | [
"MIT"
] | 2 | 2018-04-24T14:13:16.000Z | 2018-04-24T14:13:19.000Z | cobain/radiative_transfer/star_diffrot.py | gecheline/cobain01 | 4f1c0e9c08d23bf7b5f57cc5af0fbf904d5109f7 | [
"MIT"
] | 1 | 2018-10-22T17:08:40.000Z | 2018-10-22T17:08:40.000Z | cobain/radiative_transfer/star_diffrot.py | gecheline/cobain01 | 4f1c0e9c08d23bf7b5f57cc5af0fbf904d5109f7 | [
"MIT"
] | null | null | null | import numpy as np
import quadpy
from cobain.structure import potentials
from cobain.structure import polytropes
from scipy.interpolate import UnivariateSpline
from cobain.structure.constants import *
def adjust_stepsize(r,theta,phi,scale,ndir,bs,pot_range,le,chi_interp,S_interp,I_interp,arg):
exps = np.linspace(... | 37.424242 | 137 | 0.561943 | 1,050 | 6,175 | 3.148571 | 0.141905 | 0.038717 | 0.019964 | 0.032668 | 0.396854 | 0.338778 | 0.263158 | 0.251059 | 0.246521 | 0.246521 | 0 | 0.029405 | 0.26753 | 6,175 | 164 | 138 | 37.652439 | 0.701526 | 0.068826 | 0 | 0.181818 | 0 | 0 | 0.0108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049587 | 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 |
511eeb04df69c65a9199f5a6dc7149eb42a6ffd4 | 2,041 | py | Python | recipes/Python/578851_BentleyKnuth_problem/recipe-578851.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/578851_BentleyKnuth_problem/recipe-578851.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/578851_BentleyKnuth_problem/recipe-578851.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # bentley_knuth.py
# Author: Vasudev Ram - http://www.dancingbison.com
# Version: 0.1
# The problem this program tries to solve is from the page:
# http://www.leancrew.com/all-this/2011/12/more-shell-less-egg/
# Description: The program Bentley asked Knuth to write:
# Read a file of text, determine the n most freque... | 25.197531 | 81 | 0.696717 | 371 | 2,041 | 3.700809 | 0.336927 | 0.06118 | 0.071377 | 0.024035 | 0.10925 | 0.06992 | 0.06992 | 0.03933 | 0.03933 | 0 | 0 | 0.015864 | 0.166095 | 2,041 | 80 | 82 | 25.5125 | 0.790834 | 0.199412 | 0 | 0.092593 | 0 | 0 | 0.275416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.12963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5120f377f4d60da1a3d0bff49de225683e022cb5 | 1,400 | py | Python | maps/views.py | agilman/django_maps2 | b7eb0d4e74d049922898ebc23833be522a16b07d | [
"MIT"
] | null | null | null | maps/views.py | agilman/django_maps2 | b7eb0d4e74d049922898ebc23833be522a16b07d | [
"MIT"
] | null | null | null | maps/views.py | agilman/django_maps2 | b7eb0d4e74d049922898ebc23833be522a16b07d | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.conf import settings
from django.contrib.auth import login
from maps import forms
def getUserIdFromUserName(userName):
try:
user = User.object... | 27.45098 | 77 | 0.692143 | 159 | 1,400 | 6.069182 | 0.339623 | 0.087047 | 0.137824 | 0.107772 | 0.253886 | 0.160622 | 0.160622 | 0.160622 | 0.111917 | 0 | 0 | 0.000903 | 0.209286 | 1,400 | 50 | 78 | 28 | 0.870822 | 0.016429 | 0 | 0.088235 | 0 | 0 | 0.140364 | 0.039273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.176471 | 0.029412 | 0.617647 | 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 |
5123ce67e0e103f23489f004a86c4fd50c30d2c6 | 1,960 | py | Python | dev/sandbox/domains/use_regions.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | dev/sandbox/domains/use_regions.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | dev/sandbox/domains/use_regions.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | import dolfin as df
#
# The mesh contains two regions.
# region 1: A disk (cylinder).
# region 2: The cuboid around the disk.
#
mesh = df.Mesh("embedded_disk.xml.gz")
regions = df.MeshFunction("uint", mesh, "embedded_disk_mat.xml")
#
# Example 1
# Compute the volume of the regions and the total mesh.
#
dxx = df... | 29.253731 | 79 | 0.722959 | 321 | 1,960 | 4.283489 | 0.314642 | 0.025455 | 0.046545 | 0.061091 | 0.196364 | 0.146182 | 0.111273 | 0.111273 | 0.111273 | 0.085091 | 0 | 0.023091 | 0.138265 | 1,960 | 66 | 80 | 29.69697 | 0.791001 | 0.261735 | 0 | 0 | 0 | 0 | 0.183415 | 0.045678 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
51287a893ebc0335d12a5379bcd68dd5cca6049d | 1,548 | py | Python | webapp/app/forms/steps/unlock_code_activation_steps.py | ramboldio/steuerlotse | eeebb91be6c13435d621d105ffdb19e972c8f649 | [
"MIT"
] | null | null | null | webapp/app/forms/steps/unlock_code_activation_steps.py | ramboldio/steuerlotse | eeebb91be6c13435d621d105ffdb19e972c8f649 | [
"MIT"
] | null | null | null | webapp/app/forms/steps/unlock_code_activation_steps.py | ramboldio/steuerlotse | eeebb91be6c13435d621d105ffdb19e972c8f649 | [
"MIT"
] | null | null | null | from flask import render_template
from flask_babel import _
from flask_babel import lazy_gettext as _l
from wtforms.validators import InputRequired
from app.forms import SteuerlotseBaseForm
from app.forms.fields import SteuerlotseStringField
from app.forms.steps.step import FormStep, DisplayStep
from app.forms.validat... | 39.692308 | 105 | 0.719638 | 164 | 1,548 | 6.530488 | 0.292683 | 0.112045 | 0.130719 | 0.112045 | 0.308123 | 0.154995 | 0.154995 | 0.085901 | 0 | 0 | 0 | 0 | 0.174419 | 1,548 | 38 | 106 | 40.736842 | 0.838028 | 0 | 0 | 0.068966 | 0 | 0 | 0.225452 | 0.206718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.275862 | 0.034483 | 0.586207 | 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 |
512c92558b26536002283b41951cf5270f09b5ed | 566 | py | Python | dicetray/lexer.py | gtmanfred/dicetray | 6e865480b1ff029e473dde23c6175d2e7d8b7295 | [
"Apache-2.0"
] | 2 | 2020-09-22T03:48:08.000Z | 2020-12-09T19:23:58.000Z | dicetray/lexer.py | gtmanfred/dicetray | 6e865480b1ff029e473dde23c6175d2e7d8b7295 | [
"Apache-2.0"
] | null | null | null | dicetray/lexer.py | gtmanfred/dicetray | 6e865480b1ff029e473dde23c6175d2e7d8b7295 | [
"Apache-2.0"
] | null | null | null | # type: ignore
# flake8: noqa
import sly
class DiceLexer(sly.Lexer):
tokens = {
NUMBER,
TYPE,
LPAREN,
RPAREN,
PLUS,
TIMES,
MINUS,
DIVIDE,
KEEPHIGH,
KEEPLOW,
DROPHIGH,
DROPLOW,
DIE,
}
ignore = " \t"
... | 14.894737 | 27 | 0.424028 | 60 | 566 | 4 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.427562 | 566 | 37 | 28 | 15.297297 | 0.731481 | 0.04417 | 0 | 0 | 0 | 0 | 0.061338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
512cf7c62b0808ee25d76ed25cb019d97b36ceee | 768 | py | Python | accounts/migrations/0002_auto_20200309_0611.py | ankitmlive/prolab-api | 8e86e222269b63108cd33f08a90b2d921a1152f6 | [
"MIT"
] | null | null | null | accounts/migrations/0002_auto_20200309_0611.py | ankitmlive/prolab-api | 8e86e222269b63108cd33f08a90b2d921a1152f6 | [
"MIT"
] | 5 | 2021-03-30T12:47:27.000Z | 2021-09-22T18:38:27.000Z | accounts/migrations/0002_auto_20200309_0611.py | ankitmlive/prolab-api | 8e86e222269b63108cd33f08a90b2d921a1152f6 | [
"MIT"
] | 1 | 2020-03-16T14:42:31.000Z | 2020-03-16T14:42:31.000Z | # Generated by Django 3.0.3 on 2020-03-09 06:11
import accounts.managers
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterModelManagers(
name='prouser',
... | 24.774194 | 67 | 0.566406 | 68 | 768 | 6.308824 | 0.647059 | 0.076923 | 0.107226 | 0.125874 | 0.177156 | 0.177156 | 0 | 0 | 0 | 0 | 0 | 0.044061 | 0.320313 | 768 | 30 | 68 | 25.6 | 0.777778 | 0.058594 | 0 | 0.291667 | 1 | 0 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
512e9f42b06fbaed7379fe4504f82dead961b593 | 813 | py | Python | .github/includes/actions/local/update-top.py | asford/actions-includes | c3abca4958e7b880fe1f29b4539f92c4cee90854 | [
"Apache-2.0"
] | 66 | 2021-02-26T16:04:35.000Z | 2022-03-30T18:17:15.000Z | .github/includes/actions/local/update-top.py | asford/actions-includes | c3abca4958e7b880fe1f29b4539f92c4cee90854 | [
"Apache-2.0"
] | 33 | 2021-02-25T19:24:32.000Z | 2021-08-14T14:08:28.000Z | .github/includes/actions/local/update-top.py | asford/actions-includes | c3abca4958e7b880fe1f29b4539f92c4cee90854 | [
"Apache-2.0"
] | 8 | 2021-03-12T17:54:29.000Z | 2022-01-15T06:37:08.000Z | #!/usr/bin/env python3
import pathlib
import os
__dir__ = pathlib.Path(__file__).parent.resolve()
local_action_yml = __dir__ / 'action.yml'
top_action_yml = (__dir__ / '..' / '..' / '..' / '..' / 'action.yml').resolve()
print('Local action.yml file at:', local_action_yml)
print( 'Top action.yml file at:', top_acti... | 24.636364 | 79 | 0.678967 | 113 | 813 | 4.584071 | 0.415929 | 0.208494 | 0.135135 | 0.069498 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001433 | 0.141451 | 813 | 32 | 80 | 25.40625 | 0.740688 | 0.02583 | 0 | 0.111111 | 0 | 0 | 0.281005 | 0.125589 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
5139ddf21d5b19377a767a11af6054f56223bec6 | 774 | py | Python | menus/migrations/0003_auto_20200616_0242.py | theNegativeEntropy/digitalmenu | ae28932bbf00607e484a965ca90043250708f32c | [
"MIT"
] | null | null | null | menus/migrations/0003_auto_20200616_0242.py | theNegativeEntropy/digitalmenu | ae28932bbf00607e484a965ca90043250708f32c | [
"MIT"
] | 5 | 2021-03-30T13:48:07.000Z | 2021-09-22T19:14:57.000Z | menus/migrations/0003_auto_20200616_0242.py | theNegativeEntropy/digitalmenu | ae28932bbf00607e484a965ca90043250708f32c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-16 02:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menus', '0002_auto_20200616_0220'),
]
operations = [
migrations.AlterField(
model_name='menu',
name='currency',
... | 32.25 | 203 | 0.550388 | 83 | 774 | 5.048193 | 0.73494 | 0.095465 | 0.119332 | 0.138425 | 0.176611 | 0.176611 | 0 | 0 | 0 | 0 | 0 | 0.056701 | 0.248062 | 774 | 23 | 204 | 33.652174 | 0.66323 | 0.05814 | 0 | 0.352941 | 1 | 0 | 0.202201 | 0.031637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
514da573f564ce201dd32140b39d21a15fea5dbd | 501 | py | Python | services/image_services.py | anuja1011/Pick-Up-Sports | a7c1b92521ec086644e2d7dc6a62f24a43a78d94 | [
"Apache-2.0"
] | null | null | null | services/image_services.py | anuja1011/Pick-Up-Sports | a7c1b92521ec086644e2d7dc6a62f24a43a78d94 | [
"Apache-2.0"
] | null | null | null | services/image_services.py | anuja1011/Pick-Up-Sports | a7c1b92521ec086644e2d7dc6a62f24a43a78d94 | [
"Apache-2.0"
] | null | null | null | from models.models import *
# Queries
def get_an_image_for_theme(theme_key):
"""returns the first image_url associated with a theme"""
location_report_query = LocationReport.query(LocationReport.sport_theme == theme_key)
location_report_list = location_report_query.fetch()
image_url = None
if len(... | 31.3125 | 89 | 0.736527 | 67 | 501 | 5.134328 | 0.477612 | 0.284884 | 0.156977 | 0.110465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.189621 | 501 | 15 | 90 | 33.4 | 0.842365 | 0.11976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
51503cbad3137968437fd1c6a2bad51ddded497e | 1,017 | py | Python | tckdb/backend/app/tests/models/test_ess.py | TCKDB/TCKDB | 2ac60e47e178aa05bebdf41394344a7e5428eb86 | [
"MIT"
] | 2 | 2019-04-24T15:34:12.000Z | 2020-04-06T15:29:50.000Z | tckdb/backend/app/tests/models/test_ess.py | TCKDB/TCKDB | 2ac60e47e178aa05bebdf41394344a7e5428eb86 | [
"MIT"
] | 8 | 2020-05-19T19:01:22.000Z | 2021-01-12T08:15:54.000Z | tckdb/backend/app/tests/models/test_ess.py | tckdb/TCKDB | 2ac60e47e178aa05bebdf41394344a7e5428eb86 | [
"MIT"
] | 1 | 2019-11-03T20:03:08.000Z | 2019-11-03T20:03:08.000Z | """
TCKDB backend app tests models test_ess module
"""
from tckdb.backend.app.models.ess import ESS
def test_ess_model():
"""Test creating an instance of ESS"""
ess_1 = ESS(name='Psi4',
version='1.1',
url='http://www.psicode.org/')
assert ess_1.name == 'Psi4'
assert es... | 33.9 | 119 | 0.585054 | 149 | 1,017 | 3.879195 | 0.255034 | 0.096886 | 0.138408 | 0.057093 | 0.49481 | 0.441176 | 0.441176 | 0.384083 | 0.304498 | 0.304498 | 0 | 0.05102 | 0.229105 | 1,017 | 29 | 120 | 35.068966 | 0.686224 | 0.077679 | 0 | 0 | 0 | 0.095238 | 0.338378 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51542649d05765010043d50eeb0b2c8363842dd7 | 695 | py | Python | sentences/sentence43.py | kelltrill/scifibot | e9dfc55b63a6ff40e9fa268f620ff811c88862a3 | [
"MIT"
] | 5 | 2020-03-17T17:04:53.000Z | 2020-03-27T12:10:44.000Z | sentences/sentence43.py | kelltrill/scifibot | e9dfc55b63a6ff40e9fa268f620ff811c88862a3 | [
"MIT"
] | null | null | null | sentences/sentence43.py | kelltrill/scifibot | e9dfc55b63a6ff40e9fa268f620ff811c88862a3 | [
"MIT"
] | null | null | null | from sentences.base_sentence import base_sentence
import string
class sentence43(base_sentence):
def get_sentence(self, components):
sentence = 'You are the Commander of ' + components['transport_article_on_desc']
sentence += ' ' + components['transport_desc']
sentence += ' ' ... | 40.882353 | 89 | 0.631655 | 67 | 695 | 6.358209 | 0.477612 | 0.267606 | 0.084507 | 0.14554 | 0.173709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00381 | 0.244604 | 695 | 16 | 90 | 43.4375 | 0.807619 | 0 | 0 | 0 | 0 | 0 | 0.259205 | 0.076583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
5165d7b4132e61fa8699b0082a57be8f105360a9 | 826 | py | Python | geekshop/adminapp/forms.py | ignat-cmd/internet_store | 638ed290b07b360335bc64a144bb8bafeccc077f | [
"MIT"
] | null | null | null | geekshop/adminapp/forms.py | ignat-cmd/internet_store | 638ed290b07b360335bc64a144bb8bafeccc077f | [
"MIT"
] | 1 | 2022-03-29T22:06:56.000Z | 2022-03-29T22:06:56.000Z | geekshop/adminapp/forms.py | ignat-cmd/internet_store | 638ed290b07b360335bc64a144bb8bafeccc077f | [
"MIT"
] | null | null | null | from dataclasses import fields
from django import forms
from authapp.forms import ShopUserEditForm, ShopUserRegisterForm
from authapp.models import ShopUser
from mainapp.models import ProductCategory
class ShopUserEditAdminForm(ShopUserEditForm):
class Meta:
model = ShopUser
fields = '__all__'
c... | 25.030303 | 64 | 0.70339 | 84 | 826 | 6.642857 | 0.52381 | 0.048387 | 0.075269 | 0.078853 | 0.129032 | 0.129032 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0.209443 | 826 | 32 | 65 | 25.8125 | 0.854518 | 0.2954 | 0 | 0.470588 | 0 | 0 | 0.036522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.647059 | 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 |
5169152f65bdcb4dedb6a36617f970a0c413a590 | 1,896 | py | Python | jwt_auth.py | jmfrank63/box_secure_jwt_auth | 5dc3626b88e4dc807217751956f7a3b7df0b15fb | [
"Apache-2.0"
] | null | null | null | jwt_auth.py | jmfrank63/box_secure_jwt_auth | 5dc3626b88e4dc807217751956f7a3b7df0b15fb | [
"Apache-2.0"
] | 1 | 2021-06-01T22:09:48.000Z | 2021-06-01T22:09:48.000Z | jwt_auth.py | jmfrank63/box_secure_jwt_auth | 5dc3626b88e4dc807217751956f7a3b7df0b15fb | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Populates the environment variables or a keyring from a json file
and authenticates via Jason Web Token
'''
import json
import os
from boxsdk import JWTAuth, Client
SETTINGS_PATH = './.box'
SETTINGS_FILE = 'app_settings.json'
TOKEN_FILE = 'access_token.txt'
def read_settings(path):
... | 27.882353 | 74 | 0.671414 | 238 | 1,896 | 5.121849 | 0.352941 | 0.051682 | 0.02461 | 0.044299 | 0.068909 | 0.050861 | 0.050861 | 0 | 0 | 0 | 0 | 0.001325 | 0.204114 | 1,896 | 67 | 75 | 28.298507 | 0.806494 | 0.154008 | 0 | 0 | 0 | 0 | 0.169922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.054054 | 0.081081 | 0 | 0.243243 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
516a30affa08e9d06675efc4341c7119f7814d6d | 4,485 | py | Python | backend/square/database.py | Ladder-Climbers/mayne-code | d355cc56013db4ac2db50fddde3e9d203d965ab6 | [
"MIT"
] | null | null | null | backend/square/database.py | Ladder-Climbers/mayne-code | d355cc56013db4ac2db50fddde3e9d203d965ab6 | [
"MIT"
] | null | null | null | backend/square/database.py | Ladder-Climbers/mayne-code | d355cc56013db4ac2db50fddde3e9d203d965ab6 | [
"MIT"
] | null | null | null | import copy
from data.tools import *
import datetime
# from utils.logger import logger
class SquareDB(BaseDB):
def __init__(self, d, name: str):
self.action = name
super().__init__(d, 'square')
class SquareAllDB(SquareDB):
def __init__(self, d):
super(SquareAllDB, self).__init__(d... | 36.463415 | 116 | 0.619175 | 589 | 4,485 | 4.458404 | 0.122241 | 0.072353 | 0.109673 | 0.115765 | 0.564737 | 0.52818 | 0.442498 | 0.407083 | 0.337395 | 0.288652 | 0 | 0 | 0.224526 | 4,485 | 122 | 117 | 36.762295 | 0.755032 | 0.008473 | 0 | 0.216867 | 0 | 0 | 0.089784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.301205 | false | 0 | 0.036145 | 0 | 0.542169 | 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 |
516b1d6b97c3057b1784ddb006e49182691f0182 | 708 | py | Python | epages_zeep/pricelistservice.py | tswfi/epages_soap_zeep_example | 839a122aaa248e7d28a10433fa44cd7ed0b86bd4 | [
"MIT"
] | null | null | null | epages_zeep/pricelistservice.py | tswfi/epages_soap_zeep_example | 839a122aaa248e7d28a10433fa44cd7ed0b86bd4 | [
"MIT"
] | null | null | null | epages_zeep/pricelistservice.py | tswfi/epages_soap_zeep_example | 839a122aaa248e7d28a10433fa44cd7ed0b86bd4 | [
"MIT"
] | null | null | null | from .base import BaseService
class PriceListService(BaseService):
"""
PriceList service wrapper
Initializes PriceListServiceXX.wsdl file
"""
def __init__(self, endpoint="", shopalias="", username="", password="", wsdl=""):
# build url to the wsdl file, note the version number here.
... | 25.285714 | 85 | 0.590395 | 59 | 708 | 6.932203 | 0.559322 | 0.03912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.312147 | 708 | 27 | 86 | 26.222222 | 0.837782 | 0.20904 | 0 | 0.133333 | 0 | 0 | 0.03154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.133333 | 0.066667 | 0 | 0.2 | 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 |
5a8c576381d438052c261d2f87056fb6f599a5ec | 350 | py | Python | shaker/radio/migrations/0004_auto_20200715_1408.py | rozumalex/shaker | ec3f18bdd9ddbcf986a561abb67442ce84b64c2c | [
"MIT"
] | null | null | null | shaker/radio/migrations/0004_auto_20200715_1408.py | rozumalex/shaker | ec3f18bdd9ddbcf986a561abb67442ce84b64c2c | [
"MIT"
] | null | null | null | shaker/radio/migrations/0004_auto_20200715_1408.py | rozumalex/shaker | ec3f18bdd9ddbcf986a561abb67442ce84b64c2c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-15 14:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('radio', '0003_auto_20200715_1405'),
]
operations = [
migrations.RenameModel(
old_name='SiteConifguration',
new_name='SiteCon... | 19.444444 | 47 | 0.617143 | 36 | 350 | 5.861111 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12253 | 0.277143 | 350 | 17 | 48 | 20.588235 | 0.711462 | 0.128571 | 0 | 0 | 1 | 0 | 0.20462 | 0.075908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a91eba44e028fd35497acfb3b9ae46ccbe140a2 | 10,169 | py | Python | torcms/script/autocrud/gen_html_file.py | seaioheroes/TorCMS-master | 266aa6dcf8e2d36024dd278e6f56fd638c88c6ff | [
"MIT"
] | null | null | null | torcms/script/autocrud/gen_html_file.py | seaioheroes/TorCMS-master | 266aa6dcf8e2d36024dd278e6f56fd638c88c6ff | [
"MIT"
] | null | null | null | torcms/script/autocrud/gen_html_file.py | seaioheroes/TorCMS-master | 266aa6dcf8e2d36024dd278e6f56fd638c88c6ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Generate HTML for add, edit, view
The type of the control inclusing `select`, text`, `digits`, ``date`, `number`, `email`, `url`.
The last 5 types is defined as in JQuery Validation.
'''
import os
from . import func_gen_html
from .base_crud import CRUD_PATH, INPUT_ARR
from .fetch_html_dic... | 33.784053 | 107 | 0.535254 | 1,280 | 10,169 | 3.882031 | 0.121094 | 0.050714 | 0.042061 | 0.050714 | 0.699537 | 0.661703 | 0.607567 | 0.569934 | 0.569934 | 0.532904 | 0 | 0.008443 | 0.324417 | 10,169 | 300 | 108 | 33.896667 | 0.714847 | 0.124004 | 0 | 0.485849 | 1 | 0.014151 | 0.101494 | 0.023908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0.009434 | 0.023585 | 0 | 0.070755 | 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 |
5a9d58b3ac8fa24207dcb9c15f2c41e79f068845 | 339 | py | Python | examples/vlan_add_ports.py | Juniper/py-jnpr-wlc | b614c3ade0c00c50c42ec76e602151969f31faf3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2015-04-14T10:35:18.000Z | 2017-02-13T05:12:01.000Z | examples/vlan_add_ports.py | Juniper/py-jnpr-wlc | b614c3ade0c00c50c42ec76e602151969f31faf3 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | examples/vlan_add_ports.py | Juniper/py-jnpr-wlc | b614c3ade0c00c50c42ec76e602151969f31faf3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2015-07-09T12:07:05.000Z | 2020-02-05T10:26:32.000Z | import demowlcutils
from demowlcutils import ppxml, WLC_login
from pprint import pprint as pp
wlc = WLC_login()
vlan_vars = dict(
number = 100,
ports = [
dict(port=2, tag=50),
dict(port=3)
]
)
rpc = wlc.RpcMaker('set', Template='vlan_set_ports', TemplateVars=vlan_vars )
print "Settting ports on VLAN ... | 17.842105 | 77 | 0.684366 | 49 | 339 | 4.612245 | 0.591837 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025547 | 0.19174 | 339 | 18 | 78 | 18.833333 | 0.79927 | 0.032448 | 0 | 0 | 0 | 0 | 0.131902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a9dcf10664187e1090279fcff3cf9490727e3a2 | 2,304 | py | Python | translate.py | linziran20090328/youdao-translation | ca3835b27d50f42004062c8a2caa10fa5020963e | [
"Zlib"
] | null | null | null | translate.py | linziran20090328/youdao-translation | ca3835b27d50f42004062c8a2caa10fa5020963e | [
"Zlib"
] | null | null | null | translate.py | linziran20090328/youdao-translation | ca3835b27d50f42004062c8a2caa10fa5020963e | [
"Zlib"
] | null | null | null | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# @Time : 2021/8/31 9:47
# @Author : 林子然
# @File : 有道翻译纯Python解密.py
# @Software : Pycharm
from execjs import compile as cp
import requests
lang = {'中文 » 英语': ['zh-CHS', 'en'], '英语 » 中文': ['en', 'zh-CHS'], '中文 » 日语': ['zh-CHS'... | 46.08 | 841 | 0.531684 | 357 | 2,304 | 3.448179 | 0.420168 | 0.113729 | 0.073924 | 0.084484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055195 | 0.197917 | 2,304 | 49 | 842 | 47.020408 | 0.594697 | 0.079427 | 0 | 0 | 0 | 0.064516 | 0.493371 | 0.076231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | 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 |
5a9ef6b67c3a0a00d81be5688a75b0275f7a84e3 | 1,603 | py | Python | tests/issues/test_issue0449.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | 13 | 2019-10-03T19:15:14.000Z | 2019-10-16T02:01:57.000Z | tests/issues/test_issue0449.py | wombat70/behave | c54493b0531795d946ac6754bfc643248cf3056a | [
"BSD-2-Clause"
] | 6 | 2019-04-26T19:34:34.000Z | 2020-06-03T21:49:13.000Z | tests/issues/test_issue0449.py | fluendo/behave | eeffde083456dcf1a0ea9b6139b32091970118c0 | [
"BSD-2-Clause"
] | 9 | 2019-04-23T19:43:41.000Z | 2020-05-12T09:17:27.000Z | # -*- coding: UTF-8 -*-
"""
SIMILAR: #453
NOTE: traceback2 (backport for Python2) solves the problem.
Either Exception text (as summary) or traceback python line shows
special characters correctly.
.. code-block:: python
# -*- coding=utf-8 -*-
from behave import *
from hamcrest.core import assert_that, e... | 28.625 | 154 | 0.718029 | 233 | 1,603 | 4.849785 | 0.515021 | 0.044248 | 0.046018 | 0.037168 | 0.153982 | 0.153982 | 0.153982 | 0.153982 | 0.084956 | 0.084956 | 0 | 0.020393 | 0.174049 | 1,603 | 55 | 155 | 29.145455 | 0.833082 | 0.529632 | 0 | 0 | 0 | 0 | 0.152086 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.086957 | false | 0 | 0.347826 | 0 | 0.434783 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a9fa8bd238c005c39be61afa4b86ae09ce475eb | 649 | py | Python | getting_started/bytes.py | AoEiuV020/LearningPython | aac0f3f99cfd3d03a96a3c0e41da8f82ea0b8c70 | [
"MIT"
] | null | null | null | getting_started/bytes.py | AoEiuV020/LearningPython | aac0f3f99cfd3d03a96a3c0e41da8f82ea0b8c70 | [
"MIT"
] | null | null | null | getting_started/bytes.py | AoEiuV020/LearningPython | aac0f3f99cfd3d03a96a3c0e41da8f82ea0b8c70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
assert type(b'asdf') == bytes
assert len(b'asdf') == 4
assert str(b'asdf') == "b'asdf'"
assert type(b'asdf'[0]) == int
assert b'asdf'[0] == 97
assert len('中文') == 2
assert len(bytes('中文', encoding = 'utf-8')) == 6
try:
bytes('', 'fe')
except LookupError as e:
ass... | 20.28125 | 73 | 0.596302 | 109 | 649 | 3.550459 | 0.394495 | 0.077519 | 0.05168 | 0.077519 | 0.20155 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0.038095 | 0.191063 | 649 | 31 | 74 | 20.935484 | 0.699048 | 0.066256 | 0 | 0.25 | 0 | 0 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5aa30302483ac78e5cc1ca2706c9896116b44dad | 3,204 | py | Python | dependencies/scons-config/sconsconfig/packages/std_simd.py | maierbn/opendihu | 577650e2f6b36a7306766b0f4176f8124458cbf0 | [
"MIT"
] | 17 | 2018-11-25T19:29:34.000Z | 2021-09-20T04:46:22.000Z | dependencies/scons-config/sconsconfig/packages/std_simd.py | maierbn/opendihu | 577650e2f6b36a7306766b0f4176f8124458cbf0 | [
"MIT"
] | 1 | 2020-11-12T15:15:58.000Z | 2020-12-29T15:29:24.000Z | dependencies/scons-config/sconsconfig/packages/std_simd.py | maierbn/opendihu | 577650e2f6b36a7306766b0f4176f8124458cbf0 | [
"MIT"
] | 4 | 2018-10-17T12:18:10.000Z | 2021-05-28T13:24:20.000Z | import sys, os, multiprocessing
from .Package import Package
import subprocess
##
## Handles std_simd library
##
class std_simd(Package):
def __init__(self, **kwargs):
defaults = {
'download_url': 'https://github.com/VcDevel/std-simd/archive/master.zip',
}
defaults.update(kwargs)
super(std_... | 29.943925 | 169 | 0.558677 | 486 | 3,204 | 3.569959 | 0.302469 | 0.056484 | 0.057061 | 0.059942 | 0.224784 | 0.189049 | 0.157925 | 0.157925 | 0.157925 | 0.133718 | 0 | 0.01451 | 0.20412 | 3,204 | 106 | 170 | 30.226415 | 0.665882 | 0.067416 | 0 | 0 | 0 | 0.123457 | 0.76144 | 0.15074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.037037 | 0 | 0.111111 | 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 |
5aa37f5ce4515db01ac9973665528a8876f23a92 | 3,075 | py | Python | oriole/security/authenticator.py | shiroyuki/oriole | cd216bad6fcd991c9971422b234b9f10ee13600e | [
"BSD-3-Clause"
] | null | null | null | oriole/security/authenticator.py | shiroyuki/oriole | cd216bad6fcd991c9971422b234b9f10ee13600e | [
"BSD-3-Clause"
] | null | null | null | oriole/security/authenticator.py | shiroyuki/oriole | cd216bad6fcd991c9971422b234b9f10ee13600e | [
"BSD-3-Clause"
] | null | null | null | import os
import time
from typing import Any, Dict, Optional
from uuid import uuid4
from imagination import service
from imagination.decorator.config import Parameter
import jwt
from oriole.helper.logger_factory import LoggerFactory
logger = LoggerFactory.get(__name__)
@service.registered(params=[
Parameter(na... | 31.701031 | 148 | 0.642927 | 347 | 3,075 | 5.567723 | 0.285303 | 0.045549 | 0.028468 | 0.033126 | 0.136646 | 0.096273 | 0.096273 | 0.096273 | 0.096273 | 0 | 0 | 0.003967 | 0.262114 | 3,075 | 96 | 149 | 32.03125 | 0.84751 | 0.013984 | 0 | 0.128571 | 0 | 0 | 0.107261 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0.071429 | 0.114286 | 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 |
5aaaf9d33412374cec79f10fabb6122ae8f8fc67 | 329 | py | Python | PortengaAndBierman/bin/calculateDRSteepness_0_6.py | gehilley/GlobalSteepness | 62a1a5b66adb230d5bbbc004aa5d2c5b618a2fdd | [
"MIT"
] | 3 | 2019-09-19T00:04:27.000Z | 2020-02-17T16:17:55.000Z | PortengaAndBierman/bin/calculateDRSteepness_0_6.py | gehilley/GlobalSteepness | 62a1a5b66adb230d5bbbc004aa5d2c5b618a2fdd | [
"MIT"
] | null | null | null | PortengaAndBierman/bin/calculateDRSteepness_0_6.py | gehilley/GlobalSteepness | 62a1a5b66adb230d5bbbc004aa5d2c5b618a2fdd | [
"MIT"
] | 1 | 2020-12-17T07:35:23.000Z | 2020-12-17T07:35:23.000Z | #! /usr/bin/env python2.6
import matplotlib
matplotlib.use('Agg')
import denudationRateAnalysis as dra
import numpy as np
data = dra.read_csv('portengadata.csv')
del(data[0])
ksn_vec, area_vec = dra.calculate_ksn_for_data(data,1000000,0.6)
np.savez_compressed('ksn_area_data_0_6.npz', ksn_vec = ksn_vec, area_vec = a... | 23.5 | 84 | 0.778116 | 57 | 329 | 4.22807 | 0.508772 | 0.074689 | 0.124481 | 0.107884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047297 | 0.100304 | 329 | 13 | 85 | 25.307692 | 0.766892 | 0.072948 | 0 | 0 | 0 | 0 | 0.131579 | 0.069079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5aac11b7f58513e3bd886cd5f850d815c6573bd5 | 3,300 | py | Python | examples/gaus_balls.py | Tjstretchalot/pca3dvis | c979977624f26016118872e3ff66c7d9ff07be8d | [
"CC0-1.0"
] | 7 | 2019-07-30T18:03:18.000Z | 2019-08-15T07:43:37.000Z | examples/gaus_balls.py | Tjstretchalot/pca3dvis | c979977624f26016118872e3ff66c7d9ff07be8d | [
"CC0-1.0"
] | 1 | 2020-08-24T12:01:19.000Z | 2020-08-24T12:01:19.000Z | examples/gaus_balls.py | Tjstretchalot/pca3dvis | c979977624f26016118872e3ff66c7d9ff07be8d | [
"CC0-1.0"
] | null | null | null | """Generates some data from random gaussian blobs and renders it"""
import matplotlib.pyplot as plt
import matplotlib.colors as mcolors
import pca3dvis.pcs as pcs
import pca3dvis.worker as worker
import numpy as np
FEATURES = 10
"""The embedded space of the generated data. Every later snapshot
has one more fe... | 36.263736 | 108 | 0.613939 | 437 | 3,300 | 4.576659 | 0.459954 | 0.0275 | 0.0225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013943 | 0.304545 | 3,300 | 90 | 109 | 36.666667 | 0.857516 | 0.354545 | 0 | 0.068966 | 1 | 0 | 0.056511 | 0.014128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.086207 | 0 | 0.137931 | 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 |
5aaef31257bbf91bfb22924e701ecc71229d4fac | 407 | py | Python | data/external/repositories_2to3/127605/kaggle_complete-master/FindingELO/extras.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/127605/kaggle_complete-master/FindingELO/extras.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/127605/kaggle_complete-master/FindingELO/extras.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import json
class Params:
pass
def load_params():
json_data = open("settings.json")
data = json.load(json_data)
params = Params()
params.data_dir = data["data_dir"]
params.cache_dir = data["cache_dir"]
params.partitions = data["num_partitions"]
return params
def toin... | 18.5 | 47 | 0.584767 | 49 | 407 | 4.693878 | 0.428571 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.307125 | 407 | 21 | 48 | 19.380952 | 0.812057 | 0 | 0 | 0 | 0 | 0 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.0625 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ab3f59057b79f376f66b1dc9c98db684ad91752 | 348 | py | Python | gen/tests/conftest.py | makkes/dcos | a6df70f3f58ead134c8c49af8fa1387b4f81c19c | [
"Apache-2.0"
] | 2,577 | 2016-04-19T09:57:39.000Z | 2022-03-17T10:34:25.000Z | gen/tests/conftest.py | makkes/dcos | a6df70f3f58ead134c8c49af8fa1387b4f81c19c | [
"Apache-2.0"
] | 7,410 | 2016-04-19T21:19:31.000Z | 2022-01-21T20:14:21.000Z | gen/tests/conftest.py | makkes/dcos | a6df70f3f58ead134c8c49af8fa1387b4f81c19c | [
"Apache-2.0"
] | 625 | 2016-04-19T10:09:35.000Z | 2022-03-16T10:53:45.000Z | import os
import pytest
import dcos_installer.config_util
@pytest.fixture(autouse=True)
def mock_installer_latest_complete_artifact(monkeypatch):
monkeypatch.setattr(
dcos_installer.config_util,
'installer_latest_complete_artifact',
lambda _: {'bootstrap': os.getenv('BOOTSTRAP_ID', '1234... | 23.2 | 84 | 0.729885 | 38 | 348 | 6.342105 | 0.605263 | 0.107884 | 0.157676 | 0.190871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0.16092 | 348 | 14 | 85 | 24.857143 | 0.808219 | 0 | 0 | 0 | 0 | 0 | 0.195402 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ab61e4fb374a2b039ef298efc92309022f3bfb2 | 440 | py | Python | {{cookiecutter.project_name}}/app/__init__.py | schenkd/FlaskCookie | dd65548a5c7ee8ded6007af5b97f74cf2586c899 | [
"MIT"
] | 20 | 2020-10-03T13:29:47.000Z | 2021-07-22T13:24:44.000Z | {{cookiecutter.project_name}}/app/__init__.py | schenkd/FlaskCookie | dd65548a5c7ee8ded6007af5b97f74cf2586c899 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/app/__init__.py | schenkd/FlaskCookie | dd65548a5c7ee8ded6007af5b97f74cf2586c899 | [
"MIT"
] | 1 | 2020-10-04T13:34:48.000Z | 2020-10-04T13:34:48.000Z | from flask import Flask
from app.config import config
def create_app(config_name: str):
"""
Factory to create Flask application context based on choosen config.
Args:
config_name: Configname
Returns:
Flask application context
"""
app = Flask(__name__)
app.config.from_obje... | 20 | 72 | 0.688636 | 57 | 440 | 5.122807 | 0.45614 | 0.092466 | 0.157534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 440 | 21 | 73 | 20.952381 | 0.869048 | 0.325 | 0 | 0 | 0 | 0 | 0.015094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ab6d8b8584ae909b234a5ddbbcc5ef127040261 | 1,606 | py | Python | siice/settings/production.py | altest-com/siice-api | 322098b91a8dc22de1dddb5102a4c8beddd9a009 | [
"MIT"
] | null | null | null | siice/settings/production.py | altest-com/siice-api | 322098b91a8dc22de1dddb5102a4c8beddd9a009 | [
"MIT"
] | null | null | null | siice/settings/production.py | altest-com/siice-api | 322098b91a8dc22de1dddb5102a4c8beddd9a009 | [
"MIT"
] | null | null | null | from .base import *
DEBUG = False
_hosts = os.environ.get('SIICE_ALLOWED_HOSTS')
ALLOWED_HOSTS.extend(_hosts.split(','))
SECRET_KEY = os.environ['SIICE_SECRET_KEY']
SPA_DIR = os.environ.get('SIICE_SPA_DIR', '')
if SPA_DIR:
SPA_DIR = os.path.realpath(SPA_DIR)
TEMPLATES[0]['DIRS'] = [SPA_DIR]
STATICFIL... | 25.09375 | 91 | 0.672478 | 171 | 1,606 | 6.093567 | 0.409357 | 0.060461 | 0.067179 | 0.06142 | 0.226488 | 0.226488 | 0.076775 | 0.076775 | 0.076775 | 0 | 0 | 0.004539 | 0.176837 | 1,606 | 63 | 92 | 25.492063 | 0.783661 | 0.116438 | 0 | 0 | 0 | 0 | 0.449645 | 0.330496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.022222 | 0 | 0.022222 | 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 |
5abaa63961e6e19904c3fa877b11d8e7d2e0ed18 | 465 | py | Python | ojp/migrations/0003_auto_20161116_0430.py | harshkothari410/ocportal | d2fc46e290532e51351958bf850e774094f5535c | [
"MIT"
] | null | null | null | ojp/migrations/0003_auto_20161116_0430.py | harshkothari410/ocportal | d2fc46e290532e51351958bf850e774094f5535c | [
"MIT"
] | null | null | null | ojp/migrations/0003_auto_20161116_0430.py | harshkothari410/ocportal | d2fc46e290532e51351958bf850e774094f5535c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-16 04:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ojp', '0002_auto_20161116_0430'),
]
operations = [
migrations.AlterField(
... | 22.142857 | 62 | 0.621505 | 52 | 465 | 5.365385 | 0.826923 | 0.078853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098837 | 0.260215 | 465 | 20 | 63 | 23.25 | 0.712209 | 0.146237 | 0 | 0 | 1 | 0 | 0.111675 | 0.058376 | 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 |
5abbb5a2279f5de57ffd2cdab253939cb5879b77 | 2,788 | py | Python | client_test.py | XinchaoCheng/BERT-NER-MSRA | c662e7078eaa1dea8979a000681132bdba29928c | [
"MIT"
] | 5 | 2021-03-10T04:01:32.000Z | 2022-03-28T09:08:50.000Z | client_test.py | XinchaoCheng/BERT-NER-MSRA | c662e7078eaa1dea8979a000681132bdba29928c | [
"MIT"
] | 6 | 2020-09-26T01:25:07.000Z | 2022-02-10T02:38:23.000Z | client_test.py | XinchaoCheng/BERT-NER-MSRA | c662e7078eaa1dea8979a000681132bdba29928c | [
"MIT"
] | 1 | 2022-02-05T08:52:44.000Z | 2022-02-05T08:52:44.000Z | # -*- coding: utf-8 -*-
"""
@Time : 2019/1/29 14:32
@Author : MaCan (ma_cancan@163.com)
@File : client_test.py
"""
import time
from bert_base.client import BertClient
def ner_test():
with BertClient(show_server_config=False, check_version=False, check_length=False, mode='NER') as bc:
start_t =... | 52.603774 | 726 | 0.73924 | 327 | 2,788 | 6.16208 | 0.574924 | 0.029777 | 0.044665 | 0.035732 | 0.327047 | 0.316625 | 0.316625 | 0.304218 | 0.304218 | 0.304218 | 0 | 0.057202 | 0.128407 | 2,788 | 53 | 727 | 52.603774 | 0.772016 | 0.074247 | 0 | 0.466667 | 0 | 0.1 | 0.558085 | 0.537677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.166667 | 0.266667 | 0 | 0 | 0 | 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 |
5abfad1f7ab74e92e89101eb9ba8d754299c3d09 | 11,639 | py | Python | src/estimation.py | casutton/bayes-qnet | 0fff4b38394e47b02c0b4f0a4e433049b78fa09c | [
"BSD-3-Clause"
] | 12 | 2017-07-12T13:12:58.000Z | 2021-12-06T23:15:59.000Z | src/estimation.py | casutton/bayes-qnet | 0fff4b38394e47b02c0b4f0a4e433049b78fa09c | [
"BSD-3-Clause"
] | null | null | null | src/estimation.py | casutton/bayes-qnet | 0fff4b38394e47b02c0b4f0a4e433049b78fa09c | [
"BSD-3-Clause"
] | null | null | null | # Python file fo estimation procedures. These tend to spend most of their time in functions
# from qnet, so it's not as important that they be fast.
import qnet
import mytime
import numpy
import sampling
import qstats
import pwfun
from numpy import array
from numpy import random
import sys
# customization
MH = 0
S... | 31.456757 | 131 | 0.585445 | 1,581 | 11,639 | 4.155598 | 0.160658 | 0.024353 | 0.025114 | 0.014612 | 0.513546 | 0.480822 | 0.456925 | 0.417808 | 0.394216 | 0.37793 | 0 | 0.012191 | 0.288169 | 11,639 | 369 | 132 | 31.542005 | 0.780809 | 0.072343 | 0 | 0.417969 | 0 | 0.003906 | 0.098653 | 0 | 0 | 0 | 0 | 0.00271 | 0.011719 | 0 | null | null | 0 | 0.035156 | null | null | 0.199219 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ac0faecea40740c12a100e883edfef2dac23ede | 6,833 | py | Python | output_params_table.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | 3 | 2020-12-05T11:28:47.000Z | 2021-07-09T02:42:21.000Z | output_params_table.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | null | null | null | output_params_table.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | 2 | 2021-07-09T02:42:23.000Z | 2021-11-30T06:37:47.000Z | #!/usr/bin/python
"""
Output a table of 1D marginals for a set of parameters.
"""
import numpy as np
import pylab as P
import radiofisher as rf
import matplotlib.patches
import matplotlib.cm
import matplotlib.ticker
from radiofisher.units import *
from radiofisher import experiments, euclid
import os
USE_DETF_PLANCK_P... | 38.60452 | 126 | 0.579101 | 860 | 6,833 | 4.509302 | 0.32907 | 0.045384 | 0.046416 | 0.057762 | 0.286488 | 0.25116 | 0.228468 | 0.191594 | 0.181537 | 0.181537 | 0 | 0.066088 | 0.224938 | 6,833 | 176 | 127 | 38.823864 | 0.666163 | 0.117957 | 0 | 0.145161 | 0 | 0 | 0.292778 | 0.003712 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072581 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ac193408b5b478d59051e58eacdae32cbfe186b | 226 | py | Python | iniciante/python/1174-selecao-em-vetor-i.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/1174-selecao-em-vetor-i.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/1174-selecao-em-vetor-i.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | def selecao_em_vetor():
vetor = list()
for i in range(100):
vetor.append(float(input()))
for j in range(100):
if vetor[j] <= 10.0:
print(f'A[{j}] = {vetor[j]:.1f}')
selecao_em_vetor()
| 20.545455 | 45 | 0.530973 | 35 | 226 | 3.314286 | 0.6 | 0.155172 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0.283186 | 226 | 10 | 46 | 22.6 | 0.654321 | 0 | 0 | 0 | 0 | 0 | 0.10177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 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 |
5ac322b591c2d5560ef3bcb2fb438273490667b2 | 306 | py | Python | gans/core/exit_status.py | benpetty/gans | 67b698e584f00ef8bba4e5c4e560cee816baf7ae | [
"MIT"
] | null | null | null | gans/core/exit_status.py | benpetty/gans | 67b698e584f00ef8bba4e5c4e560cee816baf7ae | [
"MIT"
] | null | null | null | gans/core/exit_status.py | benpetty/gans | 67b698e584f00ef8bba4e5c4e560cee816baf7ae | [
"MIT"
] | 1 | 2020-12-08T16:20:22.000Z | 2020-12-08T16:20:22.000Z | from enum import IntEnum, unique
@unique
class ExitStatus(IntEnum):
"""Program exit status code constants."""
SUCCESS = 0
ERROR = 1
ERROR_TIMEOUT = 2
# Control-C is fatal error signal 2, (130 = 128 + 2)
# <http://www.tldp.org/LDP/abs/html/exitcodes.html>
ERROR_CTRL_C = 130
| 20.4 | 56 | 0.650327 | 44 | 306 | 4.454545 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059574 | 0.232026 | 306 | 14 | 57 | 21.857143 | 0.774468 | 0.447712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.857143 | 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 |
5ac49e442ecbcd818d98f3600283a7440f9cb993 | 14,741 | py | Python | kinectpath/old_scripts/kinectpath_spatialscaling.py | serre-lab/smart-playroom-kalpit | 10ab8af8dd7b68f815a47f8f75cf9095e6b77dfa | [
"MIT"
] | null | null | null | kinectpath/old_scripts/kinectpath_spatialscaling.py | serre-lab/smart-playroom-kalpit | 10ab8af8dd7b68f815a47f8f75cf9095e6b77dfa | [
"MIT"
] | null | null | null | kinectpath/old_scripts/kinectpath_spatialscaling.py | serre-lab/smart-playroom-kalpit | 10ab8af8dd7b68f815a47f8f75cf9095e6b77dfa | [
"MIT"
] | null | null | null | import pandas
import os, glob
import time
import platform
import datetime
import matplotlib.pyplot as plt
#from mpl_toolkits.mplot3d import Axes3D
from RDPpath import getTurningPoints
import numpy as np
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib as mpl
from scipy import stats
import seaborn ... | 41.061281 | 150 | 0.620853 | 1,963 | 14,741 | 4.570046 | 0.285787 | 0.009475 | 0.008918 | 0.012262 | 0.177907 | 0.15539 | 0.119608 | 0.089065 | 0.06978 | 0.06064 | 0 | 0.036135 | 0.234041 | 14,741 | 359 | 151 | 41.061281 | 0.758392 | 0.206567 | 0 | 0.059091 | 0 | 0 | 0.134193 | 0.020073 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059091 | null | null | 0.027273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ac604b225473fc1af25631ad7199f4dff75390d | 8,513 | py | Python | sdk/python/bin/build/lib/pulumi_ecl/network/subnet.py | keiichi-hikita/pulumi-ecl | 8863968ba70884258c6c7d5f4caf35898673f938 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/bin/build/lib/pulumi_ecl/network/subnet.py | keiichi-hikita/pulumi-ecl | 8863968ba70884258c6c7d5f4caf35898673f938 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/bin/build/lib/pulumi_ecl/network/subnet.py | keiichi-hikita/pulumi-ecl | 8863968ba70884258c6c7d5f4caf35898673f938 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-09T17:15:26.000Z | 2021-09-09T17:15:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables
class Subnet(pulumi.CustomResource):
... | 40.15566 | 330 | 0.665453 | 1,114 | 8,513 | 4.893178 | 0.182226 | 0.017428 | 0.044029 | 0.029352 | 0.569804 | 0.541552 | 0.515135 | 0.496423 | 0.483948 | 0.475142 | 0 | 0.002225 | 0.260895 | 8,513 | 211 | 331 | 40.345972 | 0.864113 | 0.320803 | 0 | 0 | 1 | 0 | 0.154589 | 0.007548 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.072464 | 0.028986 | 0.42029 | 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 |
5ac68b46b5c434cb2401414659cc38e52f2a9410 | 988 | py | Python | APAC Semifinal/millionaire.py | kamyu104/GoogleCodeJam-2008 | 0a0147375baa8d5bff21e499a8af322bb640c50b | [
"MIT"
] | 3 | 2018-06-30T15:05:13.000Z | 2020-02-10T05:11:45.000Z | APAC Semifinal/millionaire.py | kamyu104/GoogleCodeJam-2008 | 0a0147375baa8d5bff21e499a8af322bb640c50b | [
"MIT"
] | null | null | null | APAC Semifinal/millionaire.py | kamyu104/GoogleCodeJam-2008 | 0a0147375baa8d5bff21e499a8af322bb640c50b | [
"MIT"
] | 3 | 2018-08-06T14:29:42.000Z | 2021-07-22T22:37:40.000Z | # Copyright (c) 2018 kamyu. All rights reserved.
#
# Google Code Jam 2008 APAC Semifinal - Problem C. Millionaire
# https://codejam.withgoogle.com/codejam/contest/32005/dashboard#s=p2
#
# Time: O(4^M)
# Space: O(2^M)
#
TARGET = 1000000
MAX_M = 15
dp = [[0.0 for _ in xrange(2**MAX_M+1)] for _ in xrange(2)]
def millio... | 29.058824 | 69 | 0.524291 | 157 | 988 | 3.254777 | 0.375796 | 0.093933 | 0.031311 | 0.046967 | 0.062622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073066 | 0.293522 | 988 | 33 | 70 | 29.939394 | 0.659026 | 0.204453 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5aca07419485a15b9d518eaf8be92ccf7f44a98d | 3,899 | py | Python | Tutorials/tutorial_02_core_ops.py | mseinstein/openCV | 94bfd55e0d77fd78f2669244bbab5d9ea8f32666 | [
"MIT"
] | null | null | null | Tutorials/tutorial_02_core_ops.py | mseinstein/openCV | 94bfd55e0d77fd78f2669244bbab5d9ea8f32666 | [
"MIT"
] | null | null | null | Tutorials/tutorial_02_core_ops.py | mseinstein/openCV | 94bfd55e0d77fd78f2669244bbab5d9ea8f32666 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 02 15:00:02 2017
@author: BJ
"""
import cv2
import os
import numpy as np
from matplotlib import pyplot as plt
import timeit
os.chdir('E:\\GitHub\\openCV\\Tutorials')
# %% Accessing and Modifying pixel values
# Load color image
img = cv2.imread('LegoAd.jpg',1)
# The fir... | 36.439252 | 98 | 0.748397 | 686 | 3,899 | 4.1793 | 0.316327 | 0.03767 | 0.016742 | 0.019533 | 0.252878 | 0.17684 | 0.140914 | 0.119986 | 0.119986 | 0.083014 | 0 | 0.090053 | 0.128494 | 3,899 | 106 | 99 | 36.783019 | 0.753679 | 0.448577 | 0 | 0.117647 | 0 | 0 | 0.183763 | 0.026738 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.215686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ad8887eacc6d71a6bd5445d4e41a7b3f1f514f9 | 1,332 | py | Python | apps/accountancy/api/views/purchase.py | LeSZ0/juma | c271a6b0009f2cfc186d637e5f201efedeac5988 | [
"MIT"
] | null | null | null | apps/accountancy/api/views/purchase.py | LeSZ0/juma | c271a6b0009f2cfc186d637e5f201efedeac5988 | [
"MIT"
] | null | null | null | apps/accountancy/api/views/purchase.py | LeSZ0/juma | c271a6b0009f2cfc186d637e5f201efedeac5988 | [
"MIT"
] | null | null | null | from rest_framework import generics, permissions, status
from rest_framework.response import Response
from apps.accountancy.models import Movement, MovementDetail
from apps.accountancy.utils import create_movement
import apps.accountancy.api.serializers as serializers
class PurchasesListCreateAPIView(generics.ListCre... | 34.153846 | 86 | 0.691441 | 136 | 1,332 | 6.691176 | 0.455882 | 0.049451 | 0.056044 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002876 | 0.216967 | 1,332 | 38 | 87 | 35.052632 | 0.869607 | 0.078829 | 0 | 0 | 0 | 0 | 0.038917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.217391 | 0.043478 | 0.608696 | 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 |
5ad9a7358491d11d71944048672e366286782298 | 198 | py | Python | day07/test04.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | day07/test04.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | day07/test04.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | st = ['id', 'pwd', 'name', 'age']
data = ['id01', 'pwd01', 'james', 30]
cust = zip(st,data)
print(cust)
for s,d in cust:
print('%s : %s' % (s,d))
dic_cust = dict(zip(st,data))
print(dic_cust) | 18 | 37 | 0.555556 | 35 | 198 | 3.085714 | 0.542857 | 0.092593 | 0.166667 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03681 | 0.176768 | 198 | 11 | 38 | 18 | 0.625767 | 0 | 0 | 0 | 0 | 0 | 0.165829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
5adcf429fbeb4913543e941b40450763f42b36af | 4,067 | py | Python | grep-scan.py | proclnas/grep-scan | 77cde673fc829ead5ca3c93a3627e52ba8e1dcfc | [
"MIT"
] | 5 | 2017-01-30T13:30:18.000Z | 2020-03-17T06:50:11.000Z | grep-scan.py | proclnas/grep-scan | 77cde673fc829ead5ca3c93a3627e52ba8e1dcfc | [
"MIT"
] | null | null | null | grep-scan.py | proclnas/grep-scan | 77cde673fc829ead5ca3c93a3627e52ba8e1dcfc | [
"MIT"
] | 3 | 2019-03-08T18:57:32.000Z | 2020-03-17T06:02:30.000Z | # /usr/bin/env python
# -*- coding: utf-8 -*-
#
# By @proclnas
import requests
import os
import argparse
import sys
import re
from threading import Thread, Event, Lock
from Queue import Queue
requests.packages.urllib3.disable_warnings()
class GrepScan:
def __init__(self, uri_file, output, pattern, threads):
... | 24.95092 | 78 | 0.448488 | 407 | 4,067 | 4.36855 | 0.341523 | 0.03937 | 0.035433 | 0.016873 | 0.119235 | 0.093363 | 0.040495 | 0.040495 | 0.040495 | 0.040495 | 0 | 0.004916 | 0.399803 | 4,067 | 162 | 79 | 25.104938 | 0.723474 | 0.013278 | 0 | 0.214876 | 0 | 0 | 0.189615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008264 | 0.057851 | null | null | 0.049587 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ae13fc6d2a2b80117a5c054bf0c8a85b85d2b09 | 415 | py | Python | app/migrations/0006_pagamento_limite.py | ViniciussAlencarr/Projeto_Integrador | 3ce876ddc2be7d2617efe63e392ccc139c5bc0e6 | [
"MIT"
] | null | null | null | app/migrations/0006_pagamento_limite.py | ViniciussAlencarr/Projeto_Integrador | 3ce876ddc2be7d2617efe63e392ccc139c5bc0e6 | [
"MIT"
] | null | null | null | app/migrations/0006_pagamento_limite.py | ViniciussAlencarr/Projeto_Integrador | 3ce876ddc2be7d2617efe63e392ccc139c5bc0e6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-06-02 17:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0005_auto_20210601_0709'),
]
operations = [
migrations.AddField(
model_name='pagamento',
name='limite',
... | 21.842105 | 84 | 0.612048 | 47 | 415 | 5.276596 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115894 | 0.272289 | 415 | 18 | 85 | 23.055556 | 0.705298 | 0.103614 | 0 | 0 | 1 | 0 | 0.110811 | 0.062162 | 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 |
5ae27dcc3cd1607f8ab6b3e1263404efd568533c | 78,124 | py | Python | libs/canvas.py | PaKyong/labelImg | 8a5f08d624b4bb797aa4fad445e4fd7bb23c58cf | [
"MIT"
] | null | null | null | libs/canvas.py | PaKyong/labelImg | 8a5f08d624b4bb797aa4fad445e4fd7bb23c58cf | [
"MIT"
] | null | null | null | libs/canvas.py | PaKyong/labelImg | 8a5f08d624b4bb797aa4fad445e4fd7bb23c58cf | [
"MIT"
] | null | null | null |
try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
#from PyQt4.QtOpenGL import *
from libs.shape import Shape
from libs.utils import distance
CURSOR_DEFAULT = Qt.ArrowCursor
CURSOR_POIN... | 44.013521 | 205 | 0.549345 | 8,042 | 78,124 | 5.323676 | 0.082442 | 0.10999 | 0.109056 | 0.022984 | 0.614556 | 0.568402 | 0.505898 | 0.470581 | 0.418705 | 0.404877 | 0 | 0.017581 | 0.338193 | 78,124 | 1,774 | 206 | 44.038331 | 0.810456 | 0.036928 | 0 | 0.483871 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0 | 0.003432 | 0 | null | null | 0 | 0.005491 | null | null | 0.000686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ae5e75639d6795cd87e49b2f934e1759bfc8d12 | 3,741 | py | Python | iterative_gen.py | simon555/autoencoders-for-gans | 5162d09e1b03d1e37192778c238ef888afc28885 | [
"MIT"
] | null | null | null | iterative_gen.py | simon555/autoencoders-for-gans | 5162d09e1b03d1e37192778c238ef888afc28885 | [
"MIT"
] | null | null | null | iterative_gen.py | simon555/autoencoders-for-gans | 5162d09e1b03d1e37192778c238ef888afc28885 | [
"MIT"
] | null | null | null | '''
Code for generating starting from a looser bottleneck to final images.
'''
import sys
import os
use_different_pytorch = True
if use_different_pytorch:
sys.path.insert(0, '/u/lambalex/.local/lib/python2.7/site-packages/torch-0.2.0+4af66c4-py2.7-linux-x86_64.egg')
currentDirectory = os.getcwd()
if not cur... | 29.690476 | 218 | 0.705961 | 589 | 3,741 | 4.297114 | 0.278438 | 0.03951 | 0.016594 | 0.022126 | 0.267088 | 0.259581 | 0.186883 | 0.157645 | 0.13552 | 0.114184 | 0 | 0.048212 | 0.162791 | 3,741 | 125 | 219 | 29.928 | 0.759898 | 0.088479 | 0 | 0.053333 | 0 | 0.013333 | 0.063971 | 0.026856 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.213333 | null | null | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ae636ea67d5522c5dc379ee4df9effac87a7fff | 3,733 | py | Python | lib/gii/FileWatcher/FileWatcher.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 7 | 2016-02-13T18:47:23.000Z | 2020-07-03T13:47:49.000Z | lib/gii/FileWatcher/FileWatcher.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 1 | 2018-06-13T04:55:27.000Z | 2021-11-05T05:52:51.000Z | lib/gii/FileWatcher/FileWatcher.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 4 | 2016-02-15T13:32:46.000Z | 2019-12-12T17:22:31.000Z | import os
import sys
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler,PatternMatchingEventHandler
from gii.core import EditorModule, app, signals
##----------------------------------------------------------------##
class ModuleFileWatcher( EditorMo... | 29.626984 | 83 | 0.681757 | 424 | 3,733 | 5.924528 | 0.233491 | 0.025478 | 0.038217 | 0.065287 | 0.300955 | 0.246019 | 0.113854 | 0.113854 | 0.095541 | 0.095541 | 0 | 0.000627 | 0.145995 | 3,733 | 126 | 84 | 29.626984 | 0.787327 | 0.215376 | 0 | 0.15 | 0 | 0 | 0.079835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2125 | false | 0.05 | 0.075 | 0.025 | 0.3625 | 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 |
5aefe1b3b1f675f20a72437aab52173092de43b8 | 385 | py | Python | migrations/0003_cell_archived.py | summunity-django/table | fab54a15dc02c86ae7131e9d6b8c0b175f1c1676 | [
"MIT"
] | 1 | 2020-11-23T14:06:36.000Z | 2020-11-23T14:06:36.000Z | migrations/0003_cell_archived.py | summunity-django/table | fab54a15dc02c86ae7131e9d6b8c0b175f1c1676 | [
"MIT"
] | null | null | null | migrations/0003_cell_archived.py | summunity-django/table | fab54a15dc02c86ae7131e9d6b8c0b175f1c1676 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-08-07 21:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('table', '0002_auto_20200807_1706'),
]
operations = [
migrations.AddField(
model_name='cell',
name='archived',
... | 20.263158 | 53 | 0.597403 | 41 | 385 | 5.512195 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113139 | 0.288312 | 385 | 18 | 54 | 21.388889 | 0.711679 | 0.116883 | 0 | 0 | 1 | 0 | 0.118343 | 0.068047 | 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 |
5af22a5d7a895072e2d37196511dbae0a8bbef59 | 6,836 | py | Python | Asap-3.8.4/Python/asap3/Filters/RestrictedCNA.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Python/asap3/Filters/RestrictedCNA.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Python/asap3/Filters/RestrictedCNA.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | """CNA (common neighbor analysis) Filter looking for FCC and HCP structure."""
__docformat__ = "restructuredtext en"
import ASE.ChemicalElements
import ASE.Utilities.Subject
import Numeric
import Asap
class RestrictedCNA(ASE.Utilities.Subject.Subject):
"""CNA (common neighbor analysis) Filter looking for FCC and... | 40.690476 | 107 | 0.64292 | 872 | 6,836 | 5.017202 | 0.28211 | 0.016457 | 0.008229 | 0.010971 | 0.343543 | 0.299886 | 0.284343 | 0.284343 | 0.284343 | 0.284343 | 0 | 0.007209 | 0.289789 | 6,836 | 167 | 108 | 40.934132 | 0.893924 | 0.061001 | 0 | 0.121212 | 0 | 0 | 0.161639 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0 | null | null | 0.015152 | 0.060606 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85042ef88e46ecfd52e80763c5874d12dc103908 | 1,034 | py | Python | correctiv_eurosfueraerzte/migrations/0018_auto_20170317_2340.py | correctiv/correctiv-eurosfueraerzte | 291c358d65eccf06034e409d888de56a4545c7b7 | [
"MIT"
] | 4 | 2016-09-24T07:27:49.000Z | 2021-11-08T12:14:30.000Z | correctiv_eurosfueraerzte/migrations/0018_auto_20170317_2340.py | correctiv/correctiv-eurosfueraerzte | 291c358d65eccf06034e409d888de56a4545c7b7 | [
"MIT"
] | 5 | 2020-06-05T17:33:30.000Z | 2022-03-11T23:16:18.000Z | correctiv_eurosfueraerzte/migrations/0018_auto_20170317_2340.py | correctiv/correctiv-eurosfueraerzte | 291c358d65eccf06034e409d888de56a4545c7b7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-17 22:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('correctiv_eurosfueraerzte', '0017_auto_20170317_1734'),
]
operations = [
mi... | 29.542857 | 125 | 0.602515 | 96 | 1,034 | 6.291667 | 0.604167 | 0.139073 | 0.129139 | 0.089404 | 0.301325 | 0.301325 | 0.142384 | 0.142384 | 0 | 0 | 0 | 0.044236 | 0.27853 | 1,034 | 34 | 126 | 30.411765 | 0.765416 | 0.065764 | 0 | 0.407407 | 1 | 0 | 0.233645 | 0.049844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 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 |
850a5d6059d7db4c81050d30a87194c8ef3d0199 | 878 | py | Python | additional_analysis/user_data.py | hiyuricu/masters-thesis | a8b6f17bd3c1d2182223616aacc8fdc77456505e | [
"MIT"
] | 1 | 2016-01-14T12:55:24.000Z | 2016-01-14T12:55:24.000Z | additional_analysis/user_data.py | hiyuricu/masters-thesis | a8b6f17bd3c1d2182223616aacc8fdc77456505e | [
"MIT"
] | 1 | 2016-01-20T06:48:12.000Z | 2016-01-20T06:48:50.000Z | additional_analysis/user_data.py | hiyuricu/masters-thesis | a8b6f17bd3c1d2182223616aacc8fdc77456505e | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 各ユーザのタイピング速度と入力文字数を出力します(この順番で出力します)
# sys.argv[1]はlogdata.txtとします
import sys
from collections import defaultdict
def user_data():
typespeed_dic = defaultdict(float)
total_speed_dic = defaultdict(float)
total_type_strings_dic = defaultdict(float)
for line in open(sys... | 27.4375 | 100 | 0.747153 | 131 | 878 | 4.70229 | 0.389313 | 0.107143 | 0.103896 | 0.123377 | 0.103896 | 0.103896 | 0.103896 | 0.103896 | 0.103896 | 0 | 0 | 0.011658 | 0.120729 | 878 | 32 | 101 | 27.4375 | 0.786269 | 0.117312 | 0 | 0 | 0 | 0 | 0.011658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8515ddbb73701cc37a41db7ecb53628bafdbbe7f | 511 | py | Python | src/myapp/migrations/0007_auto_20210417_0434.py | WafflesClass/srs_backend | fc21ee48f9e444a472cf67aad346ae8d683c22d8 | [
"MIT"
] | null | null | null | src/myapp/migrations/0007_auto_20210417_0434.py | WafflesClass/srs_backend | fc21ee48f9e444a472cf67aad346ae8d683c22d8 | [
"MIT"
] | null | null | null | src/myapp/migrations/0007_auto_20210417_0434.py | WafflesClass/srs_backend | fc21ee48f9e444a472cf67aad346ae8d683c22d8 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-04-17 04:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0006_auto_20210417_0402'),
]
operations = [
migrations.RemoveField(
model_name='answer',
name='ans_type',
... | 22.217391 | 65 | 0.581213 | 53 | 511 | 5.45283 | 0.754717 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095775 | 0.305284 | 511 | 22 | 66 | 23.227273 | 0.71831 | 0.088063 | 0 | 0.125 | 1 | 0 | 0.135776 | 0.049569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
851f2c3fe11f619dfb1dd4533e3a2d274eb50035 | 810 | py | Python | astboom/visualizers/st.py | lensvol/astboom | df16b2476f7a5ae107bf28842d08ccd0f20eecb6 | [
"MIT"
] | 4 | 2020-01-07T17:33:02.000Z | 2021-11-14T13:38:07.000Z | astboom/visualizers/st.py | lensvol/astboom | df16b2476f7a5ae107bf28842d08ccd0f20eecb6 | [
"MIT"
] | 3 | 2020-01-07T17:32:24.000Z | 2021-12-09T10:44:41.000Z | astboom/visualizers/st.py | lensvol/astboom | df16b2476f7a5ae107bf28842d08ccd0f20eecb6 | [
"MIT"
] | null | null | null | import parser
import symbol
import token
from astboom.visualizers.base import BaseVisualizer
from astboom.visualizers.utils import DictLikeList
def decode(code):
if code < 256:
return token.tok_name[code]
else:
return symbol.sym_name[code]
class VisualizeST(BaseVisualizer):
def display(... | 25.3125 | 70 | 0.614815 | 95 | 810 | 5.189474 | 0.431579 | 0.060852 | 0.089249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018739 | 0.275309 | 810 | 31 | 71 | 26.129032 | 0.821124 | 0 | 0 | 0.166667 | 0 | 0 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.208333 | 0 | 0.541667 | 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 |
85212b978dc162fb5f465a0b88fc47f188d779b0 | 316 | py | Python | src/libs/django/utils/url.py | antiline/jun2 | 00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c | [
"MIT"
] | null | null | null | src/libs/django/utils/url.py | antiline/jun2 | 00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c | [
"MIT"
] | 17 | 2019-06-24T14:11:49.000Z | 2021-06-04T22:19:59.000Z | src/libs/django/utils/url.py | tabetaku/roots | 8a9f91b8b0e0b64a85db2898a537b12be65de753 | [
"MIT"
] | null | null | null | import urllib.parse
from typing import Dict
from django.urls import reverse
def reverse_with_query(view_name: str, kwargs: Dict = None, query_kwargs: Dict = None):
url = reverse(view_name, kwargs=kwargs)
if not query_kwargs:
return url
return f'{url}?{urllib.parse.urlencode(query_kwargs)}'
| 22.571429 | 87 | 0.727848 | 46 | 316 | 4.847826 | 0.5 | 0.147982 | 0.125561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18038 | 316 | 13 | 88 | 24.307692 | 0.861004 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
852182ce19c0f2522a37979dc9407e128a35d9a4 | 708 | py | Python | graphene_django_optimizer/types.py | sjdemartini/graphene-django-optimizer | d988dec263f6422ddc13fab0316b3ea24da1463b | [
"MIT"
] | null | null | null | graphene_django_optimizer/types.py | sjdemartini/graphene-django-optimizer | d988dec263f6422ddc13fab0316b3ea24da1463b | [
"MIT"
] | null | null | null | graphene_django_optimizer/types.py | sjdemartini/graphene-django-optimizer | d988dec263f6422ddc13fab0316b3ea24da1463b | [
"MIT"
] | null | null | null | from graphene.types.definitions import GrapheneObjectType
from graphene_django.types import DjangoObjectType
from .query import query
class OptimizedDjangoObjectType(DjangoObjectType):
class Meta:
abstract = True
@classmethod
def can_optimize_resolver(cls, resolver_info):
return (
... | 30.782609 | 85 | 0.725989 | 74 | 708 | 6.77027 | 0.405405 | 0.095808 | 0.107784 | 0.087824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211864 | 708 | 22 | 86 | 32.181818 | 0.897849 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 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 |
852485b3e91968882487eadb279984ae30115669 | 405 | py | Python | neigh1/migrations/0033_auto_20191029_1745.py | SteveMitto/neighborhood | 1f79c0cb807ffd91b80e2d663ab142572f7f1931 | [
"MIT"
] | null | null | null | neigh1/migrations/0033_auto_20191029_1745.py | SteveMitto/neighborhood | 1f79c0cb807ffd91b80e2d663ab142572f7f1931 | [
"MIT"
] | 8 | 2020-06-06T00:20:09.000Z | 2022-02-10T10:40:46.000Z | neigh1/migrations/0033_auto_20191029_1745.py | SteveMitto/neighborhood | 1f79c0cb807ffd91b80e2d663ab142572f7f1931 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-29 14:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('neigh1', '0032_chatkeys_realchats'),
]
operations = [
migrations.AlterField(
model_name='chatkeys',
name='chat_token... | 21.315789 | 64 | 0.609877 | 44 | 405 | 5.5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078498 | 0.276543 | 405 | 18 | 65 | 22.5 | 0.74744 | 0.111111 | 0 | 0 | 1 | 0 | 0.131285 | 0.064246 | 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 |
852ba22bc96de6a0d66f78e80bf9629be4dea26c | 181 | py | Python | Python32/lista 1/l1e6.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/lista 1/l1e6.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | null | null | null | Python32/lista 1/l1e6.py | andersonsilvade/python_C | ffc00184883089f1c2d9b8a6c32503b2c8b8d035 | [
"MIT"
] | 1 | 2020-11-04T08:36:28.000Z | 2020-11-04T08:36:28.000Z | D=float(input("Qual a distância a ser percorrida: "))
Vm=int(input("Qual a velocidade média de viagem: "))
T_v= D/Vm
minutos= T_v*60
print("tempo de viagem: %d minutos " % minutos)
| 30.166667 | 53 | 0.707182 | 33 | 181 | 3.818182 | 0.606061 | 0.142857 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.143646 | 181 | 5 | 54 | 36.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.541436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
516bfd3311c4a4f2de21c22f3ae99304c718b2ec | 1,130 | py | Python | var/spack/repos/builtin/packages/libefence/package.py | QianJianhua1/spack | 363536fd929d2aee280e07780ff6c98498d7be46 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/libefence/package.py | QianJianhua1/spack | 363536fd929d2aee280e07780ff6c98498d7be46 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/libefence/package.py | QianJianhua1/spack | 363536fd929d2aee280e07780ff6c98498d7be46 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libefence(MakefilePackage):
"""Electric Fence (or eFence) is a memory debugger written by ... | 38.965517 | 101 | 0.723009 | 152 | 1,130 | 5.342105 | 0.690789 | 0.064039 | 0.007389 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063715 | 0.180531 | 1,130 | 28 | 102 | 40.357143 | 0.813175 | 0.464602 | 0 | 0 | 0 | 0.090909 | 0.432759 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
516d75ae4fe9086a445890e90cdab7f43e6653d8 | 1,355 | py | Python | setup.py | yanofsky/django-calaccess-raw-data | ed12b725cc89c6dbeccbf23ce25798bc0484fa5a | [
"MIT"
] | 1 | 2020-09-06T20:32:57.000Z | 2020-09-06T20:32:57.000Z | setup.py | anthonyjpesce/django-calaccess-raw-data | e73bc37cee9895a1b186f9e1dd6218bbf061f794 | [
"MIT"
] | null | null | null | setup.py | anthonyjpesce/django-calaccess-raw-data | e73bc37cee9895a1b186f9e1dd6218bbf061f794 | [
"MIT"
] | 1 | 2020-09-06T20:32:58.000Z | 2020-09-06T20:32:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='django-calaccess-raw-data',
version='0.2.2',
packages=(
'calaccess_raw',
'calaccess_raw.admin',
'calaccess_raw.management',
'calaccess_raw.management.commands',
'calaccess_raw.mo... | 29.456522 | 70 | 0.594834 | 141 | 1,355 | 5.652482 | 0.609929 | 0.105395 | 0.156838 | 0.055207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016966 | 0.260517 | 1,355 | 45 | 71 | 30.111111 | 0.778443 | 0.030996 | 0 | 0.073171 | 0 | 0 | 0.498093 | 0.078566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.02439 | 0 | 0.02439 | 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 |
516db1aae21f51aeef7ebe5c8a1ef68b96d2ac7f | 3,904 | py | Python | tests/test_generate_code.py | py-az-cli/py-az-cli-generator | 84bbd466be744ffe4f53fbcced998108786c193e | [
"MIT"
] | null | null | null | tests/test_generate_code.py | py-az-cli/py-az-cli-generator | 84bbd466be744ffe4f53fbcced998108786c193e | [
"MIT"
] | 23 | 2021-12-24T00:16:13.000Z | 2022-02-04T17:43:52.000Z | tests/test_generate_code.py | py-az-cli/py-az-cli-generator | 84bbd466be744ffe4f53fbcced998108786c193e | [
"MIT"
] | 1 | 2021-12-05T15:02:39.000Z | 2021-12-05T15:02:39.000Z | """Tests for module generate_code."""
import unittest
import requests
import yaml
import generate_code
# pylint: disable=protected-access
class TestUnit(unittest.TestCase):
"""Unit tests for generate_code."""
def test_pythonize_name(self):
"""Test function that converts cli name to pythonic name."""... | 36.485981 | 156 | 0.675717 | 478 | 3,904 | 5.351464 | 0.282427 | 0.060985 | 0.025801 | 0.039093 | 0.216185 | 0.15559 | 0.133698 | 0.100078 | 0.100078 | 0.100078 | 0 | 0.004271 | 0.220287 | 3,904 | 106 | 157 | 36.830189 | 0.836071 | 0.275102 | 0 | 0.135593 | 1 | 0.016949 | 0.154766 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 1 | 0.152542 | false | 0 | 0.067797 | 0 | 0.271186 | 0.033898 | 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 |
5171a9db5a122dbe76a440068e3aee98aa05a0ec | 8,968 | py | Python | CMEMS_SeaLevel/sealevel-download.py | coecms/CollectionsScripts | 7c60edf0f91ddd3b045afa121bc5e3a7877297e6 | [
"Apache-2.0"
] | 5 | 2019-01-02T19:19:37.000Z | 2022-02-17T01:57:32.000Z | CMEMS_SeaLevel/sealevel-download.py | coecms/CollectionsScripts | 7c60edf0f91ddd3b045afa121bc5e3a7877297e6 | [
"Apache-2.0"
] | null | null | null | CMEMS_SeaLevel/sealevel-download.py | coecms/CollectionsScripts | 7c60edf0f91ddd3b045afa121bc5e3a7877297e6 | [
"Apache-2.0"
] | 2 | 2017-05-20T09:48:06.000Z | 2018-12-04T13:57:57.000Z | #!/usr/bin/env python
"""
Copyright 2017 ARC Centre of Excellence for Climate Systems Science
author: Paola Petrelli <paola.petrelli@utas.edu.au>
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
... | 34.360153 | 121 | 0.655888 | 1,247 | 8,968 | 4.627907 | 0.284683 | 0.023393 | 0.008664 | 0.009704 | 0.086467 | 0.083174 | 0.046786 | 0.038122 | 0.029458 | 0 | 0 | 0.007955 | 0.243087 | 8,968 | 260 | 122 | 34.492308 | 0.842222 | 0.061106 | 0 | 0.159236 | 0 | 0.006369 | 0.155828 | 0.028883 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031847 | 0.038217 | null | null | 0.089172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
519008d0fa6f93388eb8957037a3bcbd40aa9f97 | 376 | py | Python | drend/users/urls.py | meysam81/drend | 11faeb1f4f8ac0da52cc559425af95d21e1662bb | [
"MIT"
] | null | null | null | drend/users/urls.py | meysam81/drend | 11faeb1f4f8ac0da52cc559425af95d21e1662bb | [
"MIT"
] | 3 | 2019-06-01T18:45:09.000Z | 2019-06-05T17:41:22.000Z | drend/users/urls.py | meysam81/drend | 11faeb1f4f8ac0da52cc559425af95d21e1662bb | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from rest_framework import routers
from .views import UserViewset
router = routers.DefaultRouter()
router.register('', UserViewset)
app_name = 'users'
urlpatterns = [
... | 20.888889 | 54 | 0.768617 | 49 | 376 | 5.857143 | 0.489796 | 0.139373 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130319 | 376 | 17 | 55 | 22.117647 | 0.877676 | 0 | 0 | 0 | 0 | 0 | 0.039894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5192e79583c034c95bd7ef073a19b2c0661fdbe7 | 1,560 | py | Python | Solutions/244.py | ruppysuppy/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 70 | 2021-03-18T05:22:40.000Z | 2022-03-30T05:36:50.000Z | Solutions/244.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | null | null | null | Solutions/244.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 30 | 2021-03-18T05:22:43.000Z | 2022-03-17T10:25:18.000Z | """
Problem:
The Sieve of Eratosthenes is an algorithm used to generate all prime numbers smaller
than N. The method is to take increasingly larger prime numbers, and mark their
multiples as composite.
For example, to find all primes less than 100, we would first mark [4, 6, 8, ...]
(multiples of two), then [6, 9, 12... | 25.57377 | 86 | 0.634615 | 224 | 1,560 | 4.334821 | 0.455357 | 0.043254 | 0.07827 | 0.035015 | 0.041195 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019147 | 0.263462 | 1,560 | 60 | 87 | 26 | 0.825936 | 0.385256 | 0 | 0 | 1 | 0 | 0.008979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
5198e9094ac99dc54d10a902044ebb265f52b088 | 21,860 | py | Python | orio/main/parsers/flexer.py | parsabee/Orio | 64de0f7ee422483b60a9f02793472e20e864aa08 | [
"MIT"
] | 24 | 2015-01-26T03:14:19.000Z | 2021-09-27T23:10:12.000Z | orio/main/parsers/flexer.py | parsabee/Orio | 64de0f7ee422483b60a9f02793472e20e864aa08 | [
"MIT"
] | 30 | 2015-04-17T18:14:27.000Z | 2021-05-30T15:01:47.000Z | orio/main/parsers/flexer.py | parsabee/Orio | 64de0f7ee422483b60a9f02793472e20e864aa08 | [
"MIT"
] | 20 | 2015-02-11T08:20:19.000Z | 2022-01-15T17:55:00.000Z | #!/usr/bin/env python
#
# File: $id$
# @Package: orio
# @version: $Revision$
# @lastrevision: $Date$
# @modifiedby: $LastChangedBy$
# @lastmodified: $LastChangedDate$
#
# Description: Fortran 2003 lexer (supports Fortran 77 and later)
#
# Produced at Argonne National Laboratory
# Author: Boyana Norris (norris@mcs.anl.... | 37.050847 | 117 | 0.481747 | 2,290 | 21,860 | 4.460262 | 0.237555 | 0.017623 | 0.007049 | 0.004406 | 0.152927 | 0.130605 | 0.103583 | 0.089681 | 0.062267 | 0.062267 | 0 | 0.007179 | 0.375526 | 21,860 | 589 | 118 | 37.113752 | 0.741045 | 0.227722 | 0 | 0.14604 | 0 | 0.007426 | 0.177414 | 0.0145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054455 | false | 0.019802 | 0.014851 | 0 | 0.556931 | 0.002475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
519bd837f9df388334c2ca3865952cfc17d7a846 | 462 | py | Python | djangofiles/BlogProject/blog/migrations/0004_auto_20190523_1842.py | manvith263/tricalidee | 69cf66a416be7917eb8cbb3562cff7d5a66df088 | [
"BSD-3-Clause"
] | 1 | 2021-05-11T01:52:35.000Z | 2021-05-11T01:52:35.000Z | djangofiles/BlogProject/blog/migrations/0004_auto_20190523_1842.py | manvith263/tricalidee | 69cf66a416be7917eb8cbb3562cff7d5a66df088 | [
"BSD-3-Clause"
] | null | null | null | djangofiles/BlogProject/blog/migrations/0004_auto_20190523_1842.py | manvith263/tricalidee | 69cf66a416be7917eb8cbb3562cff7d5a66df088 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2 on 2019-05-23 13:12
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_post_likes'),
]
operations = [
migrations.AlterField(
model_name='post',
... | 23.1 | 109 | 0.636364 | 53 | 462 | 5.415094 | 0.679245 | 0.069686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052174 | 0.253247 | 462 | 19 | 110 | 24.315789 | 0.77971 | 0.093074 | 0 | 0 | 1 | 0 | 0.091127 | 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 |
519cb841463c9996eac59998ffb57b8c52a45f7f | 883 | py | Python | pyautogui__keyboard__examples/hotkey_change_state.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | pyautogui__keyboard__examples/hotkey_change_state.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | pyautogui__keyboard__examples/hotkey_change_state.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
RUN_COMBINATION = 'Ctrl+Shift+R'
QUIT_COMBINATION = 'Ctrl+Shift+T'
AUTO_ATTACK_COMBINATION = 'Ctrl+Shift+Space'
BOT_DATA = {
'AUTO_ATTACK': False,
}
def change_auto_attack():
BOT_DATA['AUTO_ATTACK'] = not BOT_DATA['AUTO_ATTACK']
pr... | 21.02381 | 85 | 0.720272 | 125 | 883 | 4.8 | 0.384 | 0.216667 | 0.091667 | 0.141667 | 0.18 | 0.135 | 0 | 0 | 0 | 0 | 0 | 0.007782 | 0.12684 | 883 | 41 | 86 | 21.536585 | 0.770428 | 0.048698 | 0 | 0 | 0 | 0 | 0.249403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.16 | 0.28 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.