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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c232b3257fa969c4deba44d282906664d6091820 | 253 | py | Python | examples/http_server.py | srossross/uvio | f4d55ad5ea5900a2a8b9c1249484ed621dc30055 | [
"MIT"
] | 3 | 2016-03-23T08:12:03.000Z | 2018-10-06T02:46:54.000Z | examples/http_server.py | srossross/uvio | f4d55ad5ea5900a2a8b9c1249484ed621dc30055 | [
"MIT"
] | null | null | null | examples/http_server.py | srossross/uvio | f4d55ad5ea5900a2a8b9c1249484ed621dc30055 | [
"MIT"
] | null | null | null | import uvio
async def route(req):
pass
async def handler(req, res):
await route(req, res)()
res.end("Yes")
@uvio.run
async def main():
server = await uvio.http.listen(handler, host='127.0.0.1', port=80)
print("server", server)
| 14.882353 | 71 | 0.632411 | 40 | 253 | 4 | 0.6 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039801 | 0.205534 | 253 | 16 | 72 | 15.8125 | 0.756219 | 0 | 0 | 0 | 0 | 0 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c235c83aedce86f0591eb9d244db1ef5424b59b5 | 1,401 | py | Python | Led.py | Zico56/raspberry-gt500 | 85e29ec8bb604fab9c0eb37b63e85b8058baf2b2 | [
"Xnet",
"X11"
] | null | null | null | Led.py | Zico56/raspberry-gt500 | 85e29ec8bb604fab9c0eb37b63e85b8058baf2b2 | [
"Xnet",
"X11"
] | null | null | null | Led.py | Zico56/raspberry-gt500 | 85e29ec8bb604fab9c0eb37b63e85b8058baf2b2 | [
"Xnet",
"X11"
] | null | null | null | import time
from tkinter import *
from PIL import Image, ImageTk
from Configuration import config
class Led:
imageOn = Image.open(config.get('APPLICATION', 'LED_ON_IMG'))
imageOff = Image.open(config.get('APPLICATION', 'LED_OFF_IMG'))
STATE_ON = "ON"
STATE_OFF = "OFF"
def __init__(self, pare... | 31.840909 | 67 | 0.615989 | 173 | 1,401 | 4.890173 | 0.248555 | 0.091017 | 0.099291 | 0.140662 | 0.604019 | 0.58156 | 0.496454 | 0.496454 | 0.476359 | 0.476359 | 0 | 0 | 0.26838 | 1,401 | 44 | 68 | 31.840909 | 0.825366 | 0.034261 | 0 | 0.26087 | 0 | 0 | 0.060296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 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 |
c236d3b1e5bb73ed1d08dc25325aad2b8f8b0b9e | 358 | py | Python | setup.py | jjakimoto/rl_traders.py | d5411c96d49ba6a54751d12cdd11974e5cc1a8aa | [
"MIT"
] | 2 | 2018-10-07T14:16:32.000Z | 2019-01-28T00:14:29.000Z | setup.py | jjakimoto/rl_traders.py | d5411c96d49ba6a54751d12cdd11974e5cc1a8aa | [
"MIT"
] | null | null | null | setup.py | jjakimoto/rl_traders.py | d5411c96d49ba6a54751d12cdd11974e5cc1a8aa | [
"MIT"
] | 1 | 2019-11-05T00:51:20.000Z | 2019-11-05T00:51:20.000Z | from setuptools import setup
from setuptools import find_packages
setup(name='rl_traders',
version='0.1.0',
description='Reinforcement Learning for Trading',
url='https://github.com/jjakimoto/rl_traders.git',
author='jjakimoto',
author_email='f.j.akimoto@gmail.com',
license='MIT',
... | 27.538462 | 56 | 0.678771 | 44 | 358 | 5.409091 | 0.704545 | 0.117647 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010381 | 0.192737 | 358 | 12 | 57 | 29.833333 | 0.813149 | 0 | 0 | 0 | 0 | 0 | 0.349162 | 0.058659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c23fbfd17a95b6fdf7b229efd815b011116431cc | 1,855 | py | Python | conanfile.py | ltjax/nativefiledialog-extended | 2dc958b98f41e081189e84b56f9f250e1b30f92e | [
"Zlib"
] | null | null | null | conanfile.py | ltjax/nativefiledialog-extended | 2dc958b98f41e081189e84b56f9f250e1b30f92e | [
"Zlib"
] | null | null | null | conanfile.py | ltjax/nativefiledialog-extended | 2dc958b98f41e081189e84b56f9f250e1b30f92e | [
"Zlib"
] | null | null | null | from conans import ConanFile, CMake, tools
class NativeFileDialogExtendedConan(ConanFile):
name = "nativefiledialog-extended"
version = "1.0"
license = "zlib"
author = "Marius Elvert marius.elvert@googlemail.com"
url = "https://github.com/ltjax/nativefiledialog-extended"
description = "Small C... | 40.326087 | 116 | 0.654447 | 226 | 1,855 | 5.190265 | 0.460177 | 0.041773 | 0.065644 | 0.057971 | 0.168798 | 0.115942 | 0.068201 | 0.068201 | 0.068201 | 0.068201 | 0 | 0.005513 | 0.21779 | 1,855 | 46 | 117 | 40.326087 | 0.802895 | 0.014555 | 0 | 0 | 0 | 0 | 0.193319 | 0.029025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.025641 | 0 | 0.512821 | 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 |
c24130645b33d6b4c145bae50da7d266149801e6 | 960 | py | Python | hackerearth/Algorithms/New World/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/New World/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/New World/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
import bisect
def check(arr, x, ln, val):... | 24 | 94 | 0.527083 | 136 | 960 | 3.713235 | 0.536765 | 0.047525 | 0.043564 | 0.063366 | 0.083168 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.346875 | 960 | 39 | 95 | 24.615385 | 0.787879 | 0.332292 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.16 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2456834188f5aaff78f04e88343303b398c8b26 | 432 | py | Python | 18th May Assignments/case study 1/question_5.py | JangirSumit/data_science | a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4 | [
"MIT"
] | 15 | 2019-05-05T04:48:42.000Z | 2022-02-15T12:08:33.000Z | 18th May Assignments/case study 1/question_5.py | JangirSumit/data_science | a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4 | [
"MIT"
] | null | null | null | 18th May Assignments/case study 1/question_5.py | JangirSumit/data_science | a1957122f8a4c66e3b4c7b7c93a74c53a2db1fe4 | [
"MIT"
] | 53 | 2019-11-10T05:09:25.000Z | 2022-03-28T01:26:32.000Z | # 5. How do you Count The Number Of Times Each Value Appears In An Array Of Integers?
# [0, 5, 4, 0, 4, 4, 3, 0, 0, 5, 2, 1, 1, 9]
# Answer should be array([4, 2, 1, 1, 3, 2, 0, 0, 0, 1]) which means 0 comes 4 times, 1 comes 2 times, 2 comes 1 time, 3 comes 1 time and so on.
array = [0, 5, 4, 0, 4, 4, 3,... | 43.2 | 144 | 0.601852 | 96 | 432 | 2.666667 | 0.385417 | 0.03125 | 0.035156 | 0.03125 | 0.109375 | 0.109375 | 0.109375 | 0.109375 | 0.109375 | 0.109375 | 0 | 0.145511 | 0.252315 | 432 | 9 | 145 | 48 | 0.647059 | 0.655093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
c246213af42c94a04ec5e4409ced7cd800cf77ef | 4,957 | py | Python | pvp-tic-tac-toe.py | lsfidelis/pvp-tic-tac-toe | 6ed73e5a053cc22a092c7b56d774503f57a859ab | [
"MIT"
] | null | null | null | pvp-tic-tac-toe.py | lsfidelis/pvp-tic-tac-toe | 6ed73e5a053cc22a092c7b56d774503f57a859ab | [
"MIT"
] | null | null | null | pvp-tic-tac-toe.py | lsfidelis/pvp-tic-tac-toe | 6ed73e5a053cc22a092c7b56d774503f57a859ab | [
"MIT"
] | null | null | null | from time import sleep
print("Welcome to Tic Tac Toe! \nWe'll be playing in a sec, but, first..")
general_board = {'7': ' ', '8': ' ', '9': ' ',
'4': ' ', '5': ' ', '6': ' ',
'1': ' ', '2': ' ', '3': ' '}
# prints board structure
def show_board(board):
print('\t\t', board['7'],... | 35.92029 | 89 | 0.435747 | 521 | 4,957 | 4.013436 | 0.234165 | 0.229555 | 0.068867 | 0.090387 | 0.489718 | 0.364419 | 0.327594 | 0.244381 | 0.244381 | 0.244381 | 0 | 0.026043 | 0.395804 | 4,957 | 137 | 90 | 36.182482 | 0.67212 | 0.069195 | 0 | 0.5 | 0 | 0 | 0.187867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.009804 | 0 | 0.039216 | 0.284314 | 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 |
dfa1fd750ebe41f9f5e5dbc785b717257dc70d9d | 1,908 | py | Python | slack_bolt/adapter/socket_mode/base_handler.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 504 | 2020-08-07T05:02:57.000Z | 2022-03-31T14:32:46.000Z | slack_bolt/adapter/socket_mode/base_handler.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 560 | 2020-08-07T01:16:06.000Z | 2022-03-30T00:40:56.000Z | slack_bolt/adapter/socket_mode/base_handler.py | hirosassa/bolt-python | befc3a1463f3ac8dbb780d66decc304e2bdf3e7a | [
"MIT"
] | 150 | 2020-08-07T09:41:14.000Z | 2022-03-30T04:54:51.000Z | """The base class of Socket Mode client implementation.
If you want to build asyncio-based ones, use `AsyncBaseSocketModeHandler` instead.
"""
import logging
import signal
import sys
from threading import Event
from slack_sdk.socket_mode.client import BaseSocketModeClient
from slack_sdk.socket_mode.request import Sock... | 32.896552 | 101 | 0.678197 | 233 | 1,908 | 5.497854 | 0.480687 | 0.062451 | 0.037471 | 0.044496 | 0.138954 | 0.067135 | 0.067135 | 0.067135 | 0 | 0 | 0 | 0.004854 | 0.244235 | 1,908 | 57 | 102 | 33.473684 | 0.883495 | 0.415618 | 0 | 0 | 0 | 0 | 0.004888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.285714 | 0 | 0.571429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dfa771b70b06ebdb06698f8a6ef450643663f3e9 | 5,721 | py | Python | azure_sftp_plugin/hooks/adls_gen2_hook.py | christo-olivier/airflow_azure_sftp_plugin | 1d483be6419744909af2fa940cd50880ed8d5890 | [
"Apache-2.0"
] | null | null | null | azure_sftp_plugin/hooks/adls_gen2_hook.py | christo-olivier/airflow_azure_sftp_plugin | 1d483be6419744909af2fa940cd50880ed8d5890 | [
"Apache-2.0"
] | null | null | null | azure_sftp_plugin/hooks/adls_gen2_hook.py | christo-olivier/airflow_azure_sftp_plugin | 1d483be6419744909af2fa940cd50880ed8d5890 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from typing import Generator
from airflow.hooks.base_hook import BaseHook
from azure.storage.filedatalake import FileSystemClient
from azure.storage.filedatalake._generated.models._models_py3 import (
StorageErrorException,
)
class ADLSGen2Hook(BaseHook):
"""
Hook to interact with... | 39.729167 | 86 | 0.632582 | 749 | 5,721 | 4.699599 | 0.230975 | 0.051136 | 0.044318 | 0.022727 | 0.290625 | 0.240341 | 0.227557 | 0.225284 | 0.225284 | 0.193182 | 0 | 0.00125 | 0.300647 | 5,721 | 143 | 87 | 40.006993 | 0.87853 | 0.427897 | 0 | 0.126984 | 1 | 0 | 0.067508 | 0.007842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.015873 | 0.079365 | 0.015873 | 0.301587 | 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 |
dfa9f05edc79136d5654d284a464ccb459169f40 | 536 | py | Python | phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | phr/ciudadano/migrations/0044_ciudadano_codigo_asegurado.py | richardqa/django-ex | e5b8585f28a97477150ac5daf5e55c74b70d87da | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-14 17:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ciudadano', '0043_ciudadanorn_numero_dni_ciudadano'),
]
operations = [
migra... | 26.8 | 109 | 0.654851 | 61 | 536 | 5.540984 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055825 | 0.231343 | 536 | 19 | 110 | 28.210526 | 0.764563 | 0.126866 | 0 | 0 | 1 | 0 | 0.193548 | 0.07957 | 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 |
dfad2ce40cf4b3e7c6bdab613bdf207aa9161bc1 | 2,576 | py | Python | backend/app/app/api/deps.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | 3 | 2020-10-01T11:28:02.000Z | 2020-10-31T15:35:51.000Z | backend/app/app/api/deps.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | 1 | 2022-02-09T04:19:20.000Z | 2022-02-09T13:56:40.000Z | backend/app/app/api/deps.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | null | null | null | from typing import Generator, Dict, Any
from fastapi import Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
from jose import jwt
from pydantic import ValidationError
from sqlalchemy.orm import Session
from tlbx import json, pp
from zillion.configs import load_warehouse_config, zillion_... | 27.115789 | 77 | 0.69604 | 319 | 2,576 | 5.489028 | 0.360502 | 0.056539 | 0.054826 | 0.063963 | 0.198744 | 0.131354 | 0.131354 | 0.131354 | 0.076528 | 0.076528 | 0 | 0.008437 | 0.21778 | 2,576 | 94 | 78 | 27.404255 | 0.860546 | 0.029891 | 0 | 0.297297 | 0 | 0 | 0.066185 | 0.016045 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.067568 | false | 0.027027 | 0.202703 | 0 | 0.337838 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dfb696c1a314cee61ccd51a38771b72300f8407a | 648 | py | Python | Round 2/data_packing.py | kamyu104/GoogleCodeJam-2014 | ff29a677f502168eb0b92d6928ad6983d2622017 | [
"MIT"
] | 10 | 2016-04-10T22:50:54.000Z | 2021-04-17T18:17:02.000Z | Round 2/data_packing.py | kamyu104/GoogleCodeJam-2014 | ff29a677f502168eb0b92d6928ad6983d2622017 | [
"MIT"
] | null | null | null | Round 2/data_packing.py | kamyu104/GoogleCodeJam-2014 | ff29a677f502168eb0b92d6928ad6983d2622017 | [
"MIT"
] | 10 | 2016-07-19T08:43:38.000Z | 2021-07-22T22:38:44.000Z | # Copyright (c) 2021 kamyu. All rights reserved.
#
# Google Code Jam 2014 Round 2 - Problem A. Data Packing
# https://codingcompetitions.withgoogle.com/codejam/round/0000000000432fed/0000000000432b8d
#
# Time: O(NlogN)
# Space: O(1)
#
def data_packing():
N, X = map(int, raw_input().strip().split())
S = map(in... | 24.923077 | 91 | 0.598765 | 92 | 648 | 4.173913 | 0.597826 | 0.085938 | 0.046875 | 0.072917 | 0.130208 | 0.130208 | 0.130208 | 0 | 0 | 0 | 0 | 0.089613 | 0.242284 | 648 | 25 | 92 | 25.92 | 0.692464 | 0.337963 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfb822e8f7cafa7cb423cc71ade94b740d42328b | 7,462 | py | Python | simple_task_repeater/str_app.py | lavrpetrov/simple-task-repeater | cd56ed52143ac31171fc757c6e1f7740bebe1ed4 | [
"MIT"
] | null | null | null | simple_task_repeater/str_app.py | lavrpetrov/simple-task-repeater | cd56ed52143ac31171fc757c6e1f7740bebe1ed4 | [
"MIT"
] | null | null | null | simple_task_repeater/str_app.py | lavrpetrov/simple-task-repeater | cd56ed52143ac31171fc757c6e1f7740bebe1ed4 | [
"MIT"
] | 1 | 2021-04-20T15:38:44.000Z | 2021-04-20T15:38:44.000Z | import datetime
from collections import Counter
from functools import wraps
from dateparser import parse as parse_date
from calmlib import get_current_date, get_current_datetime, to_date, trim
from .base import Task
from .str_database import STRDatabase
from .telegram_bot import TelegramBot, command, catch_errors
DE... | 32.163793 | 107 | 0.590592 | 896 | 7,462 | 4.761161 | 0.21317 | 0.025316 | 0.038678 | 0.029536 | 0.241444 | 0.214018 | 0.129395 | 0.108064 | 0.108064 | 0.093061 | 0 | 0.002125 | 0.306352 | 7,462 | 231 | 108 | 32.30303 | 0.822063 | 0.148486 | 0 | 0.261147 | 0 | 0 | 0.071686 | 0 | 0 | 0 | 0 | 0.021645 | 0 | 1 | 0.121019 | false | 0 | 0.050955 | 0.012739 | 0.286624 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfb8674c6f7746d9692d1c11fcd1c8fdb24ebb98 | 258 | py | Python | Strings/conversion-operation.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 3 | 2022-03-28T09:10:08.000Z | 2022-03-29T10:47:56.000Z | Strings/conversion-operation.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 1 | 2022-03-27T11:52:58.000Z | 2022-03-27T11:52:58.000Z | Strings/conversion-operation.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | null | null | null | # lower , title , upper operations on string
x = "spider"
y = "MAN"
v=x.upper() # all letters will become uppercase
w=y.lower() # all letters will become lowercase
z=y.title() # only first letter will become upper and rest of all lowercase
print(v,w,z)
| 19.846154 | 75 | 0.705426 | 44 | 258 | 4.136364 | 0.590909 | 0.164835 | 0.153846 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 258 | 12 | 76 | 21.5 | 0.866667 | 0.666667 | 0 | 0 | 0 | 0 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
dfbfef0fe41686291ae36ae72197b63006cb0f9c | 83,387 | py | Python | src/main/python/lib/default/__init__.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/__init__.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/__init__.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null |
""" The default configuration, from which all others should be derived """
import os, plugins, sandbox, console, rundependent, comparetest, batch, performance, subprocess, operator, logging
from copy import copy
from string import Template
from fnmatch import fnmatch
from threading import Thread
# For back-compatibi... | 52.876982 | 316 | 0.651193 | 8,507 | 83,387 | 6.322205 | 0.169743 | 0.035327 | 0.011156 | 0.013778 | 0.161836 | 0.11578 | 0.070654 | 0.045256 | 0.031925 | 0.026291 | 0 | 0.002372 | 0.25167 | 83,387 | 1,576 | 317 | 52.910533 | 0.859521 | 0.044204 | 0 | 0.133231 | 0 | 0.009188 | 0.231366 | 0.033724 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003828 | 0.011485 | null | null | 0.01072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfd9ba7258d16727355e98f49f13d4ad3a7818cc | 606 | py | Python | pylons/decorators/util.py | KinSai1975/Menira.py | ca275ce244ee4804444e1827ba60010a55acc07c | [
"BSD-3-Clause"
] | 118 | 2015-01-04T06:55:14.000Z | 2022-01-14T08:32:41.000Z | pylons/decorators/util.py | KinSai1975/Menira.py | ca275ce244ee4804444e1827ba60010a55acc07c | [
"BSD-3-Clause"
] | 21 | 2015-01-03T02:16:28.000Z | 2021-03-24T06:10:57.000Z | pylons/decorators/util.py | KinSai1975/Menira.py | ca275ce244ee4804444e1827ba60010a55acc07c | [
"BSD-3-Clause"
] | 53 | 2015-01-04T03:21:08.000Z | 2021-08-04T20:52:01.000Z | """Decorator internal utilities"""
import pylons
from pylons.controllers import WSGIController
def get_pylons(decorator_args):
"""Return the `pylons` object: either the :mod`~pylons` module or
the :attr:`~WSGIController._py_object` equivalent, searching a
decorator's *args for the latter
:attr:`~WSGI... | 31.894737 | 71 | 0.722772 | 73 | 606 | 5.863014 | 0.561644 | 0.091122 | 0.093458 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002058 | 0.19802 | 606 | 18 | 72 | 33.666667 | 0.878601 | 0.49835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dfdddf5fadff57862aa0a7599f33c1b1aa1825cf | 1,188 | py | Python | src/pylendingclub/wrapper/order.py | bbarney213/PyLendingClub-Wrapper | 7f2ef823a56bc87b7f88abf86498805c2c9ce3d3 | [
"BSD-3-Clause"
] | 2 | 2018-06-06T20:04:04.000Z | 2018-06-13T12:17:37.000Z | src/pylendingclub/wrapper/order.py | bbarney213/PyLendingClub | 7f2ef823a56bc87b7f88abf86498805c2c9ce3d3 | [
"BSD-3-Clause"
] | 4 | 2018-10-18T13:59:14.000Z | 2018-10-23T16:08:51.000Z | src/pylendingclub/wrapper/order.py | bbarney213/PyLendingClub | 7f2ef823a56bc87b7f88abf86498805c2c9ce3d3 | [
"BSD-3-Clause"
] | null | null | null | class Order(object):
def order(self):
return {
'loanId': self._loan_id,
'requestedAmount': self._amount,
'portfolioId': self._portfolio
}
def __init__(self, loan_id, amount, portfolio):
self._loan_id = int(loan_id)
self._amount = amount
... | 29.7 | 69 | 0.619529 | 126 | 1,188 | 5.539683 | 0.333333 | 0.04298 | 0.057307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1,188 | 39 | 70 | 30.461538 | 0.81352 | 0.045455 | 0 | 0 | 0 | 0 | 0.121908 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.193548 | false | 0 | 0 | 0.096774 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfe2bc23e1d5c4fe435748a54d9f2a2f9b030af5 | 1,005 | py | Python | twemoji/mkqrc.py | ericosur/myqt | e96f77f99442c44e51a1dbe1ee93edfa09b3db0f | [
"MIT"
] | null | null | null | twemoji/mkqrc.py | ericosur/myqt | e96f77f99442c44e51a1dbe1ee93edfa09b3db0f | [
"MIT"
] | null | null | null | twemoji/mkqrc.py | ericosur/myqt | e96f77f99442c44e51a1dbe1ee93edfa09b3db0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
''' helper to generate emoji.qrc '''
from glob import glob
import sys
import re
def output_qrc(arr, fn='emoji.qrc') -> None:
''' emoji.qrc '''
header = '''<RCC>
<qresource prefix="/">'''
footer = ''' </qresource>
</RCC>'''
with open(fn, 'wt', encoding='ut... | 22.333333 | 57 | 0.528358 | 139 | 1,005 | 3.726619 | 0.388489 | 0.069498 | 0.07529 | 0.046332 | 0.258687 | 0.216216 | 0.216216 | 0.11583 | 0 | 0 | 0 | 0.0191 | 0.270647 | 1,005 | 44 | 58 | 22.840909 | 0.687585 | 0.116418 | 0 | 0.206897 | 1 | 0 | 0.205575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.206897 | 0.206897 | 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 |
dfe2c5242a263720a913b48fff9c5a2c72756ddd | 1,246 | py | Python | Python3-StandardLibrary/Chapter16_Web03_cgi.py | anliven/Reading-Code-Learning-Python | a814cab207bbaad6b5c69b9feeb8bf2f459baf2b | [
"Apache-2.0"
] | null | null | null | Python3-StandardLibrary/Chapter16_Web03_cgi.py | anliven/Reading-Code-Learning-Python | a814cab207bbaad6b5c69b9feeb8bf2f459baf2b | [
"Apache-2.0"
] | null | null | null | Python3-StandardLibrary/Chapter16_Web03_cgi.py | anliven/Reading-Code-Learning-Python | a814cab207bbaad6b5c69b9feeb8bf2f459baf2b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import cgi
form = cgi.FieldStorage() # 创建FieldStorage实例(应只创建一个)
name = form.getvalue('name', 'world') # CGI脚本通过getvalue方法获取值,这里默认值为world
print("""Content-type: text/html
<html>
<head>
<title>Greeting Page</title>
</head>
<body>
<h1>Hello, {}!</h1>
<form action='Chapter16_We... | 28.318182 | 73 | 0.699839 | 148 | 1,246 | 5.864865 | 0.709459 | 0.018433 | 0.039171 | 0.043779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023744 | 0.121188 | 1,246 | 43 | 74 | 28.976744 | 0.76895 | 0.637239 | 0 | 0 | 0 | 0 | 0.705314 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.058824 | 0 | 0 | 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 |
dfe2c9adf24a8776a39019cdfbf8a0a54e0be58c | 1,809 | py | Python | predefined_values.py | kovvik/bert_reader | 1b3b6a2bc29a026c64d2d7ba53ec5fabebf1f9e5 | [
"MIT"
] | null | null | null | predefined_values.py | kovvik/bert_reader | 1b3b6a2bc29a026c64d2d7ba53ec5fabebf1f9e5 | [
"MIT"
] | null | null | null | predefined_values.py | kovvik/bert_reader | 1b3b6a2bc29a026c64d2d7ba53ec5fabebf1f9e5 | [
"MIT"
] | null | null | null | # https://uefi.org/sites/default/files/resources/UEFI%20Spec%202_6.pdf
# N.2.2 Section Descriptor
section_types = {
"9876ccad47b44bdbb65e16f193c4f3db": {
"name": "Processor Generic",
"error_record_reference": {}
},
"dc3ea0b0a1444797b95b53fa242b6e1d": {
"name": "Processor Specific - ... | 29.177419 | 70 | 0.599779 | 140 | 1,809 | 7.55 | 0.514286 | 0.135289 | 0.227058 | 0.051088 | 0.073794 | 0.073794 | 0 | 0 | 0 | 0 | 0 | 0.174107 | 0.257048 | 1,809 | 61 | 71 | 29.655738 | 0.611607 | 0.05141 | 0 | 0.178571 | 0 | 0 | 0.594042 | 0.36215 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
dfea1cd7528525e57a90decbb00e4b3b1963212b | 4,114 | py | Python | tests/web/test_show_image.py | AndrewLorente/catsnap | 57427b8f61ef5185a41e49d55ffd7dd328777834 | [
"MIT"
] | 5 | 2015-11-23T18:40:00.000Z | 2019-03-22T06:54:04.000Z | tests/web/test_show_image.py | AndrewLorente/catsnap | 57427b8f61ef5185a41e49d55ffd7dd328777834 | [
"MIT"
] | 5 | 2016-04-07T15:35:53.000Z | 2019-02-10T23:00:32.000Z | tests/web/test_show_image.py | AndrewLorente/catsnap | 57427b8f61ef5185a41e49d55ffd7dd328777834 | [
"MIT"
] | 2 | 2015-12-02T16:44:05.000Z | 2017-09-29T23:17:33.000Z | from __future__ import unicode_literals
import json
from tests import TestCase, with_settings
from nose.tools import eq_
from catsnap import Client
from catsnap.table.image import Image, ImageResize
from catsnap.table.album import Album
class TestShowImage(TestCase):
@with_settings(aws={'bucket': 'snapcats'})
... | 39.557692 | 101 | 0.59018 | 489 | 4,114 | 4.822086 | 0.224949 | 0.067854 | 0.040712 | 0.06531 | 0.726887 | 0.715861 | 0.684902 | 0.633588 | 0.597116 | 0.597116 | 0 | 0.007834 | 0.286339 | 4,114 | 103 | 102 | 39.941748 | 0.7953 | 0.03087 | 0 | 0.545455 | 0 | 0 | 0.174197 | 0 | 0 | 0 | 0 | 0 | 0.079545 | 1 | 0.045455 | false | 0 | 0.079545 | 0 | 0.136364 | 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 |
dff2b9a17cc9997e289067d562ccf28b75fc10b3 | 425 | py | Python | bookinfo/models.py | dustfine/myPlaygroundSite | 02db3321e9959437c588575f9df1079d2d8d1ed9 | [
"MIT"
] | null | null | null | bookinfo/models.py | dustfine/myPlaygroundSite | 02db3321e9959437c588575f9df1079d2d8d1ed9 | [
"MIT"
] | null | null | null | bookinfo/models.py | dustfine/myPlaygroundSite | 02db3321e9959437c588575f9df1079d2d8d1ed9 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Publisher(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=64, null=False, unique=True)
class Book(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=64, null=... | 35.416667 | 85 | 0.757647 | 60 | 425 | 5.283333 | 0.533333 | 0.094637 | 0.082019 | 0.119874 | 0.574132 | 0.574132 | 0.574132 | 0.574132 | 0.574132 | 0.574132 | 0 | 0.010782 | 0.127059 | 425 | 12 | 85 | 35.416667 | 0.843666 | 0.056471 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dffe92bdb0898e53b6acb0b1fcb7c940caeeb1d9 | 49,731 | py | Python | scripts/tests_with_setup.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | scripts/tests_with_setup.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | scripts/tests_with_setup.py | rombie/contrail-test | a68c71d6f282142501a7e2e889bbb232fdd82dc3 | [
"Apache-2.0"
] | null | null | null | # Need to import path to test/fixtures and test/scripts/
# Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/'
#
# To run tests, you can do 'python -m testtools.run tests'. To run specific tests,
# You can do 'python -m testtools.run -l tests'
# Set the env variable PARAMS_FILE to point to your ini ... | 43.623684 | 247 | 0.632603 | 6,602 | 49,731 | 4.471524 | 0.084823 | 0.021104 | 0.027303 | 0.035907 | 0.658548 | 0.605095 | 0.559365 | 0.506656 | 0.460994 | 0.443549 | 0 | 0.027483 | 0.287366 | 49,731 | 1,139 | 248 | 43.661984 | 0.805502 | 0.119342 | 0 | 0.567568 | 0 | 0 | 0.095404 | 0.002983 | 0 | 0 | 0 | 0.002634 | 0.111794 | 0 | null | null | 0.019656 | 0.001229 | null | null | 0.003686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5f049724d72ac2de8c5b11138f1e4b59bdb512ad | 1,744 | py | Python | src/harness/cu_pass/dpa_calculator/helpers/list_distributor/list_distributor.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/cu_pass/dpa_calculator/helpers/list_distributor/list_distributor.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/cu_pass/dpa_calculator/helpers/list_distributor/list_distributor.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Any, List, TypeVar
from cu_pass.dpa_calculator.helpers.list_distributor.fractional_distribution.fractional_distribution import \
FractionalDistribution
RETURN_TYPE = TypeVar('RETURN_TYPE')
class ListDistributor(ABC):
def __init__(self, items_to_distribu... | 38.755556 | 110 | 0.725344 | 198 | 1,744 | 6.065657 | 0.287879 | 0.029142 | 0.02831 | 0.033306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000709 | 0.191514 | 1,744 | 44 | 111 | 39.636364 | 0.851064 | 0 | 0 | 0.147059 | 0 | 0 | 0.006307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.029412 | 0.088235 | 0.088235 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f073a6e60f359858de246c60af2ab6ba1d0660b | 293 | py | Python | dias/dia.py | GU1LH3RME-LIMA/pythonWebjs | 4786ef3b900f3b45522a0d3f0c4b83e1e68ae25b | [
"MIT"
] | null | null | null | dias/dia.py | GU1LH3RME-LIMA/pythonWebjs | 4786ef3b900f3b45522a0d3f0c4b83e1e68ae25b | [
"MIT"
] | null | null | null | dias/dia.py | GU1LH3RME-LIMA/pythonWebjs | 4786ef3b900f3b45522a0d3f0c4b83e1e68ae25b | [
"MIT"
] | null | null | null | import datetime
from flask import Flask, render_template
'''
algoritmo simples para definir se o dia é par ou impar
'''
app = Flask(__name__)
@app.route("/")
def index():
hoje=datetime.datetime.now()#objeto recebera a data atual
return render_template("index.html",dia=hoje.day)
| 22.538462 | 61 | 0.723549 | 43 | 293 | 4.790698 | 0.744186 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16041 | 293 | 12 | 62 | 24.416667 | 0.837398 | 0.095563 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
5f0b9146ca28c5866c71c4fff522e7ed582731d7 | 3,900 | py | Python | cir/user_views.py | wafield/cir | 123d4bfe3e5bb4b0d605de486a91a0cb7eb34e4c | [
"MIT"
] | null | null | null | cir/user_views.py | wafield/cir | 123d4bfe3e5bb4b0d605de486a91a0cb7eb34e4c | [
"MIT"
] | null | null | null | cir/user_views.py | wafield/cir | 123d4bfe3e5bb4b0d605de486a91a0cb7eb34e4c | [
"MIT"
] | 1 | 2018-06-23T21:11:53.000Z | 2018-06-23T21:11:53.000Z | import json
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse
from django.utils import timezone
from django.contrib.auth.signals import user_logged_in
from cir.models import *
VISITOR_ROLE = 'visitor'
def login_view(request):
response = {}
email = request.REQUE... | 39 | 87 | 0.661282 | 468 | 3,900 | 5.40812 | 0.181624 | 0.085342 | 0.06045 | 0.064006 | 0.407349 | 0.365468 | 0.33465 | 0.282892 | 0.199921 | 0.199921 | 0 | 0.007434 | 0.206667 | 3,900 | 99 | 88 | 39.393939 | 0.810601 | 0.026923 | 0 | 0.325581 | 0 | 0 | 0.144025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.151163 | 0.069767 | 0 | 0.255814 | 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 |
5f0f752c5211938014f35ccb9166c1413d779264 | 3,313 | py | Python | test/test_prob_models.py | sylar233/de-identification | 44731e9c22de647063bd82a19936b4c5a144ea6e | [
"Apache-2.0"
] | 5 | 2016-11-07T12:54:51.000Z | 2018-12-15T00:20:26.000Z | test/test_prob_models.py | sylar233/de-identification | 44731e9c22de647063bd82a19936b4c5a144ea6e | [
"Apache-2.0"
] | 5 | 2016-07-05T06:06:31.000Z | 2016-07-27T05:21:36.000Z | test/test_prob_models.py | sylar233/de-identification | 44731e9c22de647063bd82a19936b4c5a144ea6e | [
"Apache-2.0"
] | 3 | 2018-07-18T07:32:43.000Z | 2021-11-05T05:25:55.000Z | from django.test import TestCase
from common.data_utilities import DataUtils
from prob_models.dep_graph import DependencyGraph
from prob_models.jtree import JunctionTree
import common.constant as c
TESTING_FILE = c.TEST_DATA_PATH
"""
The test file has for fields, and the dependency graph would be a complete graph.
... | 35.244681 | 209 | 0.677634 | 479 | 3,313 | 4.475992 | 0.212944 | 0.08209 | 0.085821 | 0.045709 | 0.494869 | 0.444963 | 0.404851 | 0.383862 | 0.383862 | 0.286847 | 0 | 0.003159 | 0.140054 | 3,313 | 94 | 210 | 35.244681 | 0.749386 | 0.080893 | 0 | 0.295082 | 0 | 0 | 0.065744 | 0 | 0 | 0 | 0 | 0.010638 | 0.114754 | 1 | 0.196721 | false | 0 | 0.114754 | 0 | 0.344262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f10f60ec6549819aee0320bd7db378dfb94aabf | 3,232 | py | Python | src/bel_commons/explorer_toolbox.py | cthoyt/pybel-web | a27f30617b9209d5531a6b65760597f8d45e9957 | [
"MIT"
] | 2 | 2019-07-17T16:17:44.000Z | 2019-07-18T17:05:36.000Z | src/bel_commons/explorer_toolbox.py | cthoyt/pybel-web | a27f30617b9209d5531a6b65760597f8d45e9957 | [
"MIT"
] | 3 | 2020-04-25T17:30:58.000Z | 2020-04-25T17:32:11.000Z | src/bel_commons/explorer_toolbox.py | cthoyt/pybel-web | a27f30617b9209d5531a6b65760597f8d45e9957 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Constants for building the biological network explorer's transformations toolbox."""
from typing import List, Tuple
from pybel.struct.pipeline.decorators import mapped
# Default NetworkX explorer toolbox functions (name, button text, description)
_explorer_toolbox = (
('collapse_to_ge... | 40.911392 | 115 | 0.697401 | 363 | 3,232 | 6.035813 | 0.338843 | 0.05477 | 0.020539 | 0.020995 | 0.048836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001173 | 0.20854 | 3,232 | 78 | 116 | 41.435897 | 0.855356 | 0.065594 | 0 | 0.107692 | 0 | 0 | 0.619348 | 0.104721 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.030769 | 0.015385 | 0.092308 | 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 |
5f19f6344a219107ca416c8c6abd1b139dea3270 | 6,490 | py | Python | src/lib/parsers/parseskipfish.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | null | null | null | src/lib/parsers/parseskipfish.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | null | null | null | src/lib/parsers/parseskipfish.py | Project-Prismatica/Prism-Shell | 006d04fdabbe51c4a3fd642e05ba276251f1bba4 | [
"MIT"
] | 1 | 2018-02-22T02:18:48.000Z | 2018-02-22T02:18:48.000Z | #!/usr/bin/python
# parseskipfish.py
#
# By Adrien de Beaupre adriendb@gmail.com | adrien@intru-shun.ca
# Copyright 2011 Intru-Shun.ca Inc.
# v0.09
# 16 October 2011
#
# The current version of these scripts are at: http://dshield.handers.org/adebeaupre/ossams-parser.tgz
#
# Parses skipfish HTML and JSON outp... | 38.402367 | 130 | 0.686441 | 702 | 6,490 | 6.324786 | 0.366097 | 0.005856 | 0.007432 | 0.008108 | 0.071396 | 0.057883 | 0.043919 | 0.036261 | 0.016667 | 0 | 0 | 0.004474 | 0.207858 | 6,490 | 168 | 131 | 38.630952 | 0.859171 | 0.171032 | 0 | 0.133333 | 0 | 0.016667 | 0.21963 | 0.009668 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f20ed53742e88f3bc18e3804150cf7252de73ee | 7,638 | py | Python | src/python/codebay/common/runcommand.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | src/python/codebay/common/runcommand.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | src/python/codebay/common/runcommand.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | """
Codebay process running utils.
@group Running commands: run, call
@group Preexec functions: chroot, cwd
@var PASS:
Specifies that the given file descriptor should be passed directly
to the parent. Given as an argument to run.
@var FAIL:
Specifies that if output is received for the given file descriptor,
a... | 32.092437 | 129 | 0.615213 | 1,003 | 7,638 | 4.62014 | 0.192423 | 0.013811 | 0.024601 | 0.033664 | 0.287225 | 0.239102 | 0.200691 | 0.138325 | 0.071429 | 0.071429 | 0 | 0.002086 | 0.309505 | 7,638 | 237 | 130 | 32.227848 | 0.876564 | 0.45038 | 0 | 0.310345 | 0 | 0 | 0.079692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.086207 | 0.017241 | 0.025862 | 0.172414 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5f268730f61e34ddeec03c49cb3a27cf05cffa58 | 545 | py | Python | SourceCode/Module2/escape_sequences.py | hackettccp/CIS106SampleCode | 0717fa0f6dc0c48bc51f16ab44e7425b186a35c3 | [
"MIT"
] | 1 | 2019-10-23T03:25:43.000Z | 2019-10-23T03:25:43.000Z | SourceCode/Module2/escape_sequences.py | hackettccp/CIS106 | 0717fa0f6dc0c48bc51f16ab44e7425b186a35c3 | [
"MIT"
] | null | null | null | SourceCode/Module2/escape_sequences.py | hackettccp/CIS106 | 0717fa0f6dc0c48bc51f16ab44e7425b186a35c3 | [
"MIT"
] | null | null | null | """
Demonstrates escape sequences in strings
"""
#Line Feed escape sequence.
output1 = "First part \n Second part"
print(output1)
#********************************#
print()
#Double quotes escape sequence.
output2 = "The book \"War and Peace\" is very long"
print(output2)
#********************************#
p... | 18.793103 | 51 | 0.577982 | 59 | 545 | 5.338983 | 0.644068 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017167 | 0.144954 | 545 | 28 | 52 | 19.464286 | 0.658798 | 0.455046 | 0 | 0.272727 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5f2bba8707cde7a8ee1262b60500da6ac69cd76b | 5,618 | py | Python | study/python/pyqt/app/signup.py | cheenwe/blog | a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790 | [
"MIT"
] | 10 | 2016-09-28T03:22:41.000Z | 2020-06-16T08:42:25.000Z | study/python/pyqt/app/signup.py | cheenwe/blog | a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790 | [
"MIT"
] | 12 | 2017-04-18T08:41:04.000Z | 2020-06-10T02:54:58.000Z | study/python/pyqt/app/signup.py | cheenwe/blog | a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790 | [
"MIT"
] | 8 | 2016-09-28T03:03:32.000Z | 2019-09-16T04:22:01.000Z | from PyQt5 import QtCore, QtGui, QtWidgets
from db import Db
class Ui_Signup(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.setFixedSize(638, 441)
# self.label = QtWidgets.QLabel(Dialog)
# self.label.setGeometry(QtCore.QRect(110, 190, 151, 31))
#... | 41.925373 | 73 | 0.619794 | 556 | 5,618 | 6.172662 | 0.244604 | 0.068182 | 0.083333 | 0.050991 | 0.14627 | 0.024476 | 0.024476 | 0.024476 | 0.024476 | 0 | 0 | 0.03892 | 0.208793 | 5,618 | 133 | 74 | 42.240602 | 0.733183 | 0.083482 | 0 | 0.020619 | 0 | 0 | 0.060935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082474 | false | 0.28866 | 0.030928 | 0.010309 | 0.14433 | 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 |
5f2c8d2aea105ec6207836197f28f050f9bd7157 | 318 | py | Python | bot/__init__.py | sudomice/crypto-bot | 51dcf66d79612f2ba8bdf5645005b143fbeda343 | [
"MIT"
] | null | null | null | bot/__init__.py | sudomice/crypto-bot | 51dcf66d79612f2ba8bdf5645005b143fbeda343 | [
"MIT"
] | null | null | null | bot/__init__.py | sudomice/crypto-bot | 51dcf66d79612f2ba8bdf5645005b143fbeda343 | [
"MIT"
] | null | null | null | import requests
from bot.constants import BASE_ENDPOINT
import cli.app
@cli.app.CommandLineApp
def bot(app):
ping_response = requests.get(BASE_ENDPOINT+'api/v3/ping')
print(f'{ping_response}:{ping_response.json()}')
# bot.add_param("-h", "--help", help="HELP me")
if __name__ == '__main__':
bot.run()
| 19.875 | 61 | 0.701258 | 46 | 318 | 4.543478 | 0.608696 | 0.172249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.132075 | 318 | 15 | 62 | 21.2 | 0.753623 | 0.141509 | 0 | 0 | 0 | 0 | 0.210332 | 0.140221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f30dced4b52419281f10b8f50593c7065a03df1 | 3,273 | py | Python | sdk/python/pulumi_aws/get_ip_ranges.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/get_ip_ranges.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/get_ip_ranges.py | Charliekenney23/pulumi-aws | 55bd0390160d27350b297834026fee52114a2d41 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # 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 GetIpRangesResult:
"""
A... | 42.506494 | 245 | 0.65689 | 426 | 3,273 | 4.734742 | 0.298122 | 0.079326 | 0.055528 | 0.118989 | 0.271195 | 0.131879 | 0.131879 | 0 | 0 | 0 | 0 | 0.014205 | 0.247174 | 3,273 | 76 | 246 | 43.065789 | 0.804383 | 0.06905 | 0 | 0 | 1 | 0 | 0.189825 | 0.014109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.108696 | 0 | 0.173913 | 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 |
a024addbdbfe31b4c073485e18f6d69dfd1ced29 | 17,878 | py | Python | app/FileViewer/FileServer/misc/mmpython/video/riffinfo.py | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | app/FileViewer/FileServer/misc/mmpython/video/riffinfo.py | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | app/FileViewer/FileServer/misc/mmpython/video/riffinfo.py | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | 1 | 2021-07-02T10:31:03.000Z | 2021-07-02T10:31:03.000Z | #if 0
# $Id: riffinfo.py,v 1.33 2005/03/15 17:50:45 dischi Exp $
# $Log: riffinfo.py,v $
# Revision 1.33 2005/03/15 17:50:45 dischi
# check for corrupt avi
#
# Revision 1.32 2005/03/04 17:41:29 dischi
# handle broken avi files
#
# Revision 1.31 2004/12/13 10:19:07 dischi
# more debug, support LIST > 20000 (new ma... | 33.107407 | 85 | 0.507663 | 2,133 | 17,878 | 4.217534 | 0.256446 | 0.027012 | 0.011561 | 0.003557 | 0.150956 | 0.126056 | 0.111161 | 0.100489 | 0.094709 | 0.089595 | 0 | 0.057694 | 0.359157 | 17,878 | 539 | 86 | 33.168831 | 0.727503 | 0.245274 | 0 | 0.342618 | 0 | 0 | 0.14505 | 0.004718 | 0 | 0 | 0.000449 | 0.001855 | 0 | 0 | null | null | 0.011142 | 0.019499 | null | null | 0.077994 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0282750f46f0e414d25e4e4d34acff48c249677 | 843 | py | Python | h1st_contrib/cli/__init__.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | 1 | 2022-02-19T18:55:43.000Z | 2022-02-19T18:55:43.000Z | h1st_contrib/cli/__init__.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | null | null | null | h1st_contrib/cli/__init__.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | null | null | null | """H1st CLI."""
import click
from .pred_maint import h1st_pmfp_cli
@click.group(name='h1st',
cls=click.Group,
commands={
'pmfp': h1st_pmfp_cli,
},
# Command kwargs
context_settings=None,
# callback=None,
# ... | 24.085714 | 51 | 0.498221 | 80 | 843 | 5 | 0.5125 | 0.105 | 0.055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019646 | 0.396204 | 843 | 34 | 52 | 24.794118 | 0.766208 | 0.105575 | 0 | 0 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | true | 0 | 0.095238 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a030c83c63bfd7833e9eefaa8a970b32e999331c | 5,111 | py | Python | tests/cli/test_database.py | julienc91/dbtrigger | d06916a019641377bf3d45b2e8e38399643450db | [
"MIT"
] | null | null | null | tests/cli/test_database.py | julienc91/dbtrigger | d06916a019641377bf3d45b2e8e38399643450db | [
"MIT"
] | null | null | null | tests/cli/test_database.py | julienc91/dbtrigger | d06916a019641377bf3d45b2e8e38399643450db | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import uuid
import pytest
from dbtrigger.cli import DatabaseCli, QueryCli, ServerCli
from dbtrigger.config import settings
from dbtrigger.models import Database
@pytest.fixture(autouse=True)
def add_server(server):
ServerCli.add(server.identifier, server.hostname, server.dialect)
def ... | 38.428571 | 116 | 0.772256 | 593 | 5,111 | 6.53457 | 0.10118 | 0.130065 | 0.067097 | 0.093935 | 0.761032 | 0.677419 | 0.66271 | 0.66271 | 0.507871 | 0.477935 | 0 | 0.007154 | 0.124829 | 5,111 | 132 | 117 | 38.719697 | 0.859155 | 0.004109 | 0 | 0.511364 | 0 | 0 | 0.012579 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 1 | 0.181818 | false | 0.193182 | 0.056818 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a0316cb627ebde16bd1be493b5901c78bcdf8ad7 | 1,557 | py | Python | reqtest.py | jbreams/nagmq | 3fee4209898c717a02c5a07ba4c335428b9403eb | [
"Apache-2.0"
] | 21 | 2015-02-17T07:45:40.000Z | 2021-03-19T13:12:48.000Z | reqtest.py | jbreams/nagmq | 3fee4209898c717a02c5a07ba4c335428b9403eb | [
"Apache-2.0"
] | 7 | 2015-04-29T22:12:44.000Z | 2018-05-09T15:46:35.000Z | reqtest.py | jbreams/nagmq | 3fee4209898c717a02c5a07ba4c335428b9403eb | [
"Apache-2.0"
] | 9 | 2015-08-01T01:22:28.000Z | 2021-02-24T11:12:41.000Z | import zmq, time, json
context = zmq.Context()
pub = context.socket(zmq.REQ)
# These are random useless keys for testing Curve auth
pubkey = u"7d0:tz+tGVT&*ViD/SzU)dz(3=yIE]aT2TRNrG2$"
privkey = u"FCFo%:3pZTbiQq?MARHYk(<Kp*B-<RpRG7QMUlXr"
serverkey = u"mN>y$-+17hxa6F>r@}sxmL-uX}IM=:wIq}G4y*f["
pub.setsockopt_string(... | 31.14 | 109 | 0.666667 | 222 | 1,557 | 4.531532 | 0.468468 | 0.031809 | 0.05666 | 0.065606 | 0.21173 | 0.131213 | 0.079523 | 0.079523 | 0.079523 | 0 | 0 | 0.021545 | 0.135517 | 1,557 | 49 | 110 | 31.77551 | 0.725854 | 0.033398 | 0 | 0.046512 | 0 | 0 | 0.351963 | 0.099135 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a04797fdee39fb437fee089feeeacafda35a132b | 2,064 | py | Python | experiments/cntJson.py | MadhuNimmo/jalangi2 | bbe8350b8ede5d978c1b3923780f277aacb1d074 | [
"Apache-2.0"
] | null | null | null | experiments/cntJson.py | MadhuNimmo/jalangi2 | bbe8350b8ede5d978c1b3923780f277aacb1d074 | [
"Apache-2.0"
] | null | null | null | experiments/cntJson.py | MadhuNimmo/jalangi2 | bbe8350b8ede5d978c1b3923780f277aacb1d074 | [
"Apache-2.0"
] | null | null | null | import json
import sys
#filename='/home/anon/js-acg-examples-master/Knockout_test_results/StatWala.json'
cnt=0
cnt2=0
#item_dict = json.loads(filename)
#import json
filename1 = sys.argv[1]
#filename2 = sys.argv[2]
#out_key = filename2.read().split('\n')
'''out_key = [line.rstrip('\n') for line in open(filename2)]'''
... | 34.983051 | 157 | 0.562984 | 290 | 2,064 | 3.968966 | 0.331034 | 0.020851 | 0.038228 | 0.045178 | 0.297133 | 0.297133 | 0.262381 | 0.220678 | 0.220678 | 0.220678 | 0 | 0.052666 | 0.26405 | 2,064 | 59 | 158 | 34.983051 | 0.705069 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a04c74859e147b481962d7389a2144e8a4b8236e | 1,151 | py | Python | tests/integration/test_issue_1447.py | alexey-tereshenkov-oxb/pex | 2e2d1e50e604fdee48b0d51aea482ca255521ff0 | [
"Apache-2.0"
] | 2,160 | 2015-01-06T17:57:39.000Z | 2022-03-30T19:59:01.000Z | tests/integration/test_issue_1447.py | alexey-tereshenkov-oxb/pex | 2e2d1e50e604fdee48b0d51aea482ca255521ff0 | [
"Apache-2.0"
] | 1,242 | 2015-01-22T14:56:46.000Z | 2022-03-31T18:02:38.000Z | tests/integration/test_issue_1447.py | Satertek/pex | 64de1c4cf031118ef446ac98a8c164c91c23bb9b | [
"Apache-2.0"
] | 248 | 2015-01-15T13:34:50.000Z | 2022-03-26T01:24:18.000Z | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
import shutil
import subprocess
import sys
from pex.pex_info import PexInfo
from pex.testing import run_pex_command
from pex.typing import TYPE_CHECKING
from pex.variables import... | 29.512821 | 85 | 0.730669 | 174 | 1,151 | 4.603448 | 0.373563 | 0.069913 | 0.099875 | 0.032459 | 0.149813 | 0.102372 | 0.102372 | 0.102372 | 0.102372 | 0.102372 | 0 | 0.010309 | 0.157255 | 1,151 | 38 | 86 | 30.289474 | 0.815464 | 0.126846 | 0 | 0.076923 | 0 | 0 | 0.046953 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.038462 | false | 0 | 0.346154 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a060c7c4400126644e1d48eb927d2de5fe556729 | 4,915 | py | Python | models/deeplab_v2.py | iamsofancyyoualreadyknow/IHC-based-labels-generation-and-semantic-segmentation-for-lung-cancer | 57904544c6d6b43dcd5937afeb474c0a47456d98 | [
"MIT"
] | null | null | null | models/deeplab_v2.py | iamsofancyyoualreadyknow/IHC-based-labels-generation-and-semantic-segmentation-for-lung-cancer | 57904544c6d6b43dcd5937afeb474c0a47456d98 | [
"MIT"
] | null | null | null | models/deeplab_v2.py | iamsofancyyoualreadyknow/IHC-based-labels-generation-and-semantic-segmentation-for-lung-cancer | 57904544c6d6b43dcd5937afeb474c0a47456d98 | [
"MIT"
] | null | null | null | import tensorflow as tf
# import slim
# conv layers
layers = tf.contrib.layers
arg_scope = tf.contrib.framework.arg_scope
def vgg_conv_dilation(inputs, weight_decay=0.0005):
with arg_scope([layers.convolution2d, layers.max_pool2d], padding='SAME'):
with arg_scope([layers.convolution2d], rate=1,
... | 56.494253 | 99 | 0.585554 | 648 | 4,915 | 4.266975 | 0.154321 | 0.107414 | 0.167089 | 0.144665 | 0.760579 | 0.74575 | 0.644123 | 0.644123 | 0.57179 | 0.499819 | 0 | 0.110706 | 0.274059 | 4,915 | 87 | 100 | 56.494253 | 0.664238 | 0.038454 | 0 | 0.131148 | 0 | 0 | 0.094228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.016393 | 0 | 0.114754 | 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 |
a068b901b478d011dc44a977f7e4cc0f17632eaf | 11,386 | py | Python | visualize_high_LOO/visualize_high_LOO_cifar_norb.py | mkuchnik/Efficient_Augmentation | a82190c02509682c34f2df782fb58f8ffd3b11da | [
"MIT"
] | 11 | 2019-05-09T22:43:29.000Z | 2021-01-13T22:26:48.000Z | visualize_high_LOO/visualize_high_LOO_cifar_norb.py | mkuchnik/Efficient_Augmentation | a82190c02509682c34f2df782fb58f8ffd3b11da | [
"MIT"
] | 1 | 2020-10-07T14:03:47.000Z | 2020-10-07T14:03:47.000Z | visualize_high_LOO/visualize_high_LOO_cifar_norb.py | mkuchnik/Efficient_Augmentation | a82190c02509682c34f2df782fb58f8ffd3b11da | [
"MIT"
] | 6 | 2019-03-05T02:26:01.000Z | 2021-05-11T14:35:41.000Z | import pprint
import time
import keras
import numpy as np
import joblib
import dataset_loaders
import selection_policy
import augmentations
import experiments
import experiments_util
import featurized_classifiers
import visualization_util
import matplotlib.pyplot as plt
mem = joblib.Memory(cachedir="./cache", verbo... | 36.031646 | 84 | 0.584138 | 1,211 | 11,386 | 5.045417 | 0.143683 | 0.029787 | 0.051064 | 0.036007 | 0.741244 | 0.715548 | 0.674468 | 0.626514 | 0.619476 | 0.565466 | 0 | 0.011546 | 0.323028 | 11,386 | 315 | 85 | 36.146032 | 0.781136 | 0.120938 | 0 | 0.494163 | 0 | 0 | 0.101593 | 0.049294 | 0 | 0 | 0 | 0 | 0.011673 | 1 | 0.011673 | false | 0 | 0.050584 | 0.003891 | 0.066148 | 0.054475 | 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 |
a06ffffb39b0434296021e5eee8841761190d6b0 | 370 | py | Python | backend/main_app/serializers.py | RTUITLab/Avia-Hack-2021-RealityX | ca700492d314a28e23fa837cd2dfa04dd67c167c | [
"Apache-2.0"
] | null | null | null | backend/main_app/serializers.py | RTUITLab/Avia-Hack-2021-RealityX | ca700492d314a28e23fa837cd2dfa04dd67c167c | [
"Apache-2.0"
] | null | null | null | backend/main_app/serializers.py | RTUITLab/Avia-Hack-2021-RealityX | ca700492d314a28e23fa837cd2dfa04dd67c167c | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import *
class MessageSerializer(serializers.ModelSerializer):
created_at = serializers.DateTimeField(format="%d.%m.%Y %H:%M")
class Meta:
depth = 2
model = Message
fields = ('id', 'description', 'created_at', 'answer', 'correct', 'i... | 30.833333 | 125 | 0.672973 | 41 | 370 | 5.95122 | 0.731707 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003311 | 0.183784 | 370 | 11 | 126 | 33.636364 | 0.804636 | 0 | 0 | 0 | 0 | 0 | 0.232432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a0779d0acb5d0ce28e46508caa76d16adb915bd8 | 474 | py | Python | intern/conv_java_import.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | intern/conv_java_import.py | zaqwes8811/smart-vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | 11 | 2015-01-25T14:22:52.000Z | 2015-09-08T09:59:38.000Z | intern/conv_java_import.py | zaqwes8811/vocabulary-cards | abeab5c86b1c6f68d8796475cba80c4f2c6055ff | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
'''
Created on 18.04.2013
@author: кей
'''
import dals.os_io.io_wrapper as dal
def convert_one_line(msg):
copy_line = msg.split(';')[0]
if copy_line:
name = copy_line.split('.')[-1]
print copy_line+' as '+name
if __name__=='__main__':
sets = dal.get_utf8_t... | 19.75 | 43 | 0.594937 | 67 | 474 | 3.865672 | 0.626866 | 0.123552 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037143 | 0.261603 | 474 | 23 | 44 | 20.608696 | 0.702857 | 0.027426 | 0 | 0 | 0 | 0 | 0.109415 | 0.053435 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a08113f70d1b07cff7761da1bc92b7750832a572 | 1,508 | py | Python | q2_fondue/get_all.py | misialq/q2-fondue | a7a541ee017381b34d38ef766de39d5d62588465 | [
"BSD-3-Clause"
] | 10 | 2022-03-21T16:07:22.000Z | 2022-03-31T09:33:48.000Z | q2_fondue/get_all.py | misialq/q2-fondue | a7a541ee017381b34d38ef766de39d5d62588465 | [
"BSD-3-Clause"
] | null | null | null | q2_fondue/get_all.py | misialq/q2-fondue | a7a541ee017381b34d38ef766de39d5d62588465 | [
"BSD-3-Clause"
] | 4 | 2022-03-21T06:51:44.000Z | 2022-03-29T15:56:14.000Z | # ----------------------------------------------------------------------------
# Copyright (c) 2022, Bokulich Laboratories.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# --------------------------------------------------------... | 32.085106 | 78 | 0.657825 | 190 | 1,508 | 4.978947 | 0.431579 | 0.104651 | 0.05814 | 0.038055 | 0.2537 | 0.12685 | 0.069767 | 0.069767 | 0.069767 | 0 | 0 | 0.010326 | 0.165119 | 1,508 | 46 | 79 | 32.782609 | 0.741064 | 0.301724 | 0 | 0 | 0 | 0 | 0.066282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a083ee0517e616b51836bbd85b01482cd453d3cf | 9,480 | py | Python | utils/job_placement/nonuniformRandom/routers.py | scalability-llnl/damselfly | 394e39b3165388e262a90da415dc3338d0f44734 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 5 | 2016-02-25T04:50:00.000Z | 2020-06-11T03:00:45.000Z | utils/job_placement/nonuniformRandom/routers.py | scalability-llnl/damselfly | 394e39b3165388e262a90da415dc3338d0f44734 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | utils/job_placement/nonuniformRandom/routers.py | scalability-llnl/damselfly | 394e39b3165388e262a90da415dc3338d0f44734 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2017-02-07T05:43:53.000Z | 2017-02-07T05:43:53.000Z | #!/usr/bin/env python
##############################################################################
# Copyright (c) 2014, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# Written by:
# Nikhil Jain <nikhil.jain@acm.org>
# Abhinav Bhatele <bhatele@llnl.gov... | 28.902439 | 175 | 0.59673 | 1,344 | 9,480 | 4.093006 | 0.234375 | 0.029449 | 0.03054 | 0.01727 | 0.232321 | 0.189784 | 0.164697 | 0.157426 | 0.124705 | 0.113797 | 0 | 0.016258 | 0.273312 | 9,480 | 327 | 176 | 28.990826 | 0.782262 | 0.252215 | 0 | 0.165644 | 0 | 0.006135 | 0.059741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042945 | null | null | 0.02454 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0a2f155643acffd9a5b5d44e3b912311ab75ced | 2,084 | py | Python | runai/mp/keras/layers/core.py | bamps53/runai | 0c868160f64e1e063c6eb6f660d42917322d40c5 | [
"MIT"
] | 86 | 2020-01-23T18:56:41.000Z | 2022-02-14T22:32:08.000Z | runai/mp/keras/layers/core.py | bamps53/runai | 0c868160f64e1e063c6eb6f660d42917322d40c5 | [
"MIT"
] | 18 | 2020-01-24T17:55:18.000Z | 2021-12-01T01:01:32.000Z | runai/mp/keras/layers/core.py | bamps53/runai | 0c868160f64e1e063c6eb6f660d42917322d40c5 | [
"MIT"
] | 12 | 2020-02-03T14:30:44.000Z | 2022-01-08T16:06:59.000Z | import keras.backend as K
import keras.layers
import runai.mp
from .keep import Keep
from .parallelised import Parallelised
Activation = Keep.create('Activation')
class Dense(Parallelised, keras.layers.Dense):
def build(self, input_shape):
assert len(input_shape) == 2 # TODO(levosos): support more than ... | 31.575758 | 151 | 0.600768 | 238 | 2,084 | 5.151261 | 0.352941 | 0.044861 | 0.029364 | 0.068516 | 0.102773 | 0.047308 | 0 | 0 | 0 | 0 | 0 | 0.004798 | 0.299904 | 2,084 | 65 | 152 | 32.061538 | 0.835504 | 0.082534 | 0 | 0.104167 | 0 | 0 | 0.024646 | 0 | 0 | 0 | 0 | 0.015385 | 0.020833 | 1 | 0.041667 | false | 0 | 0.104167 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0ade23395d3069649385af2893a0f1454cfd97f | 349 | py | Python | forms/views/field.py | alphagov/submit-forms | 6339b40debbab668263246162ab33c68391ef744 | [
"MIT"
] | 3 | 2017-11-20T18:17:47.000Z | 2019-08-09T14:59:36.000Z | forms/views/field.py | alphagov/submit-forms | 6339b40debbab668263246162ab33c68391ef744 | [
"MIT"
] | null | null | null | forms/views/field.py | alphagov/submit-forms | 6339b40debbab668263246162ab33c68391ef744 | [
"MIT"
] | 3 | 2019-08-29T11:55:16.000Z | 2021-04-10T19:52:14.000Z | from django.shortcuts import render
from ..models import Field
def fields(request):
fields = Field.objects.all()
return render(request, 'fields.html', {'fields': fields})
def field(request, key=None, template='field.html'):
field = Field.objects.get(field=key)
return render(request, template, {
... | 20.529412 | 61 | 0.670487 | 43 | 349 | 5.44186 | 0.418605 | 0.111111 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189112 | 349 | 16 | 62 | 21.8125 | 0.826855 | 0 | 0 | 0 | 0 | 0 | 0.091691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
39f8dcdaeba92c1fff96ab2beb0ef7065bdd2f6c | 1,770 | py | Python | stakingsvc/walletgui/views/paymentmethodview.py | biz2013/xwjy | 8f4b5e3e3fc964796134052ff34d58d31ed41904 | [
"Apache-2.0"
] | 1 | 2019-12-15T16:56:44.000Z | 2019-12-15T16:56:44.000Z | stakingsvc/walletgui/views/paymentmethodview.py | biz2013/xwjy | 8f4b5e3e3fc964796134052ff34d58d31ed41904 | [
"Apache-2.0"
] | 87 | 2018-01-06T10:18:31.000Z | 2022-03-11T23:32:30.000Z | stakingsvc/walletgui/views/paymentmethodview.py | biz2013/xwjy | 8f4b5e3e3fc964796134052ff34d58d31ed41904 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging, sys
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from walletgui.controller.global_constants import *
from walletgui.controller.crypto_utils import CryptoUtility
from walletgui.controller.walletmanager import Wal... | 37.659574 | 76 | 0.70565 | 200 | 1,770 | 6.12 | 0.32 | 0.058824 | 0.075163 | 0.053922 | 0.60049 | 0.60049 | 0.60049 | 0.60049 | 0.60049 | 0.60049 | 0 | 0.006873 | 0.177966 | 1,770 | 46 | 77 | 38.478261 | 0.834364 | 0.021469 | 0 | 0.631579 | 0 | 0 | 0.145087 | 0.03815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.236842 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
39ff330d14f36471f4ac2d1038f80fb721a10e6c | 14,331 | py | Python | resources/src/mythbox/mythtv/enums.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | null | null | null | resources/src/mythbox/mythtv/enums.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 1 | 2015-04-21T22:05:02.000Z | 2015-04-22T22:27:15.000Z | resources/src/mythbox/mythtv/enums.py | GetSomeBlocks/Score_Soccer | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 2 | 2018-04-17T17:34:39.000Z | 2020-07-26T03:43:33.000Z | #
# MythBox for XBMC - http://mythbox.googlecode.com
# Copyright (C) 2010 analogue@yahoo.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at yo... | 29.670807 | 114 | 0.526551 | 1,525 | 14,331 | 4.874098 | 0.300328 | 0.015472 | 0.024216 | 0.032019 | 0.361092 | 0.346294 | 0.33876 | 0.33876 | 0.334993 | 0.334993 | 0 | 0.074057 | 0.396972 | 14,331 | 482 | 115 | 29.732365 | 0.786045 | 0.440932 | 0 | 0.108597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027905 | 0.004149 | 0 | 1 | 0 | false | 0 | 0.004525 | 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 |
260b023afea60f62495ec2404352213dae65708e | 1,160 | py | Python | PageMonitor/project/lib/config.py | DanylZhang/IdeaWorkspace | 726be80db4ca7dac4104ebaa22b795f37aca73e0 | [
"MIT"
] | null | null | null | PageMonitor/project/lib/config.py | DanylZhang/IdeaWorkspace | 726be80db4ca7dac4104ebaa22b795f37aca73e0 | [
"MIT"
] | null | null | null | PageMonitor/project/lib/config.py | DanylZhang/IdeaWorkspace | 726be80db4ca7dac4104ebaa22b795f37aca73e0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding:utf-8
import pymysql
default_config = {
'host': '139.196.96.149',
'port': 13306,
'user': 'dataway-rw',
'password': 'QqHVMhmN*8',
'db': 'jumei',
'charset': 'utf8mb4'
}
apollo_config = {
'host': '127.0.0.1',
'port': 11306,
'user': 'apollo-rw',
'passw... | 20.714286 | 45 | 0.546552 | 128 | 1,160 | 4.875 | 0.421875 | 0.096154 | 0.0625 | 0.067308 | 0.451923 | 0.451923 | 0.355769 | 0.259615 | 0.259615 | 0.259615 | 0 | 0.112849 | 0.228448 | 1,160 | 55 | 46 | 21.090909 | 0.584358 | 0.028448 | 0 | 0.5 | 0 | 0 | 0.420444 | 0.018667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.115385 | 0.019231 | 0 | 0.019231 | 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 |
260f70e32d8dcbedd3be143cdb372b3adae4699c | 1,356 | py | Python | python/code_challenges/hashtable/test_hashtable.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | python/code_challenges/hashtable/test_hashtable.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | python/code_challenges/hashtable/test_hashtable.py | u-will/data-structures-and-algorithms | 7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3 | [
"MIT"
] | null | null | null | from hashtable import Hashtable
def test_create():
hashtable = Hashtable()
assert hashtable
def test_predictable_hash():
hashtable = Hashtable()
initial = hashtable._hash('spam')
secondary = hashtable._hash('spam')
assert initial == secondary
def test_in_range_hash():
hashtable = Hashtab... | 22.983051 | 50 | 0.672566 | 151 | 1,356 | 5.874172 | 0.251656 | 0.223224 | 0.099211 | 0.098083 | 0.303269 | 0.270575 | 0.128523 | 0.128523 | 0.128523 | 0 | 0 | 0.000924 | 0.202065 | 1,356 | 58 | 51 | 23.37931 | 0.818854 | 0 | 0 | 0.292683 | 0 | 0 | 0.109882 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 1 | 0.195122 | false | 0 | 0.02439 | 0 | 0.219512 | 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 |
261019984f7fcb844ce180e8d6381fbe39be01a7 | 65,879 | py | Python | Code/CustomObjects.py | dluke/lex-talionis | 1e02bcd4afdd22737aa3450bbcb269e69551bc39 | [
"MIT"
] | 1 | 2019-07-02T12:50:46.000Z | 2019-07-02T12:50:46.000Z | Code/CustomObjects.py | dluke/lex-talionis | 1e02bcd4afdd22737aa3450bbcb269e69551bc39 | [
"MIT"
] | null | null | null | Code/CustomObjects.py | dluke/lex-talionis | 1e02bcd4afdd22737aa3450bbcb269e69551bc39 | [
"MIT"
] | null | null | null | import os, pickle, re
import GlobalConstants as GC
import configuration as cf
# Custom Imports
import MenuFunctions
import Utility, Image_Modification, Engine, InputManager
import logging
logger = logging.getLogger(__name__)
# === Simple Finite State Machine Object ===============================
class... | 45.781098 | 154 | 0.579441 | 7,780 | 65,879 | 4.757455 | 0.093188 | 0.011347 | 0.008105 | 0.007349 | 0.451355 | 0.369924 | 0.30338 | 0.274444 | 0.247427 | 0.230892 | 0 | 0.015792 | 0.312725 | 65,879 | 1,438 | 155 | 45.812935 | 0.801687 | 0.101398 | 0 | 0.287511 | 0 | 0 | 0.02539 | 0.002003 | 0 | 0 | 0 | 0 | 0.000898 | 0 | null | null | 0.018868 | 0.007188 | null | null | 0.008086 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
26155a333ec0b9d8dbde784e29edc2aabd3bd42b | 1,707 | py | Python | tests/test_characters.py | uliang/BloodSword | fc7e173ce56989c48009ec86d834072f9f2e70ac | [
"BSD-2-Clause"
] | null | null | null | tests/test_characters.py | uliang/BloodSword | fc7e173ce56989c48009ec86d834072f9f2e70ac | [
"BSD-2-Clause"
] | null | null | null | tests/test_characters.py | uliang/BloodSword | fc7e173ce56989c48009ec86d834072f9f2e70ac | [
"BSD-2-Clause"
] | null | null | null | import pytest
from bloodsword.characters.sage import Sage
from bloodsword.characters.warrior import Warrior
from bloodsword.descriptors.armour import Armour
@pytest.fixture
def warrior():
return Warrior("Warrior", rank=2)
@pytest.fixture
def sage():
return Sage("Sage", rank=2)
def test_character_initializ... | 25.863636 | 98 | 0.741652 | 220 | 1,707 | 5.554545 | 0.295455 | 0.157119 | 0.090016 | 0.042553 | 0.171849 | 0.171849 | 0.067103 | 0 | 0 | 0 | 0 | 0.028934 | 0.169889 | 1,707 | 65 | 99 | 26.261538 | 0.833451 | 0 | 0 | 0.227273 | 0 | 0 | 0.098418 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.204545 | false | 0 | 0.090909 | 0.045455 | 0.340909 | 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 |
2616d68573a5381dc443c6d189b9ad8fa29013e9 | 201 | py | Python | examples/nod.py | Antoniii/In_Rust_We_Trust | 43513b4a34b2d7e20950db9a0ac811721db06a1a | [
"MIT"
] | null | null | null | examples/nod.py | Antoniii/In_Rust_We_Trust | 43513b4a34b2d7e20950db9a0ac811721db06a1a | [
"MIT"
] | null | null | null | examples/nod.py | Antoniii/In_Rust_We_Trust | 43513b4a34b2d7e20950db9a0ac811721db06a1a | [
"MIT"
] | null | null | null | def nod(x,y):
if y != 0:
return nod(y, x % y)
else:
return x
n1 = int(input("Введите n1: "))
n2 = int(input("Введите n2: "))
print("НОД = ", nod(n1,n2))
print("НОK = ", int((n1*n2)/nod(n1,n2))) | 18.272727 | 40 | 0.547264 | 38 | 201 | 2.894737 | 0.421053 | 0.145455 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 0.19403 | 201 | 11 | 40 | 18.272727 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.222222 | 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 |
2616fa0e716ad26e2e73aae0033703cf5ccaa90b | 2,417 | py | Python | UML2ER/contracts/HContract03_IsolatedLHS.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | UML2ER/contracts/HContract03_IsolatedLHS.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | UML2ER/contracts/HContract03_IsolatedLHS.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z | from core.himesis import Himesis, HimesisPreConditionPatternLHS
import uuid
class HContract03_IsolatedLHS(HimesisPreConditionPatternLHS):
def __init__(self):
"""
Creates the himesis graph representing the AToM3 model HContract03_IsolatedLHS
"""
# Flag this instance as compiled now
self.is_compiled = True
... | 29.839506 | 102 | 0.679355 | 339 | 2,417 | 4.513274 | 0.224189 | 0.078431 | 0.027451 | 0.066667 | 0.375817 | 0.375817 | 0.193464 | 0.088889 | 0 | 0 | 0 | 0.027858 | 0.138602 | 2,417 | 80 | 103 | 30.2125 | 0.707012 | 0.162598 | 0 | 0.22449 | 0 | 0 | 0.231768 | 0.036464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.040816 | 0.122449 | 0.326531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
26200a7b0fdb3b7f678a0edc56db44b7bab13d20 | 2,029 | py | Python | tests/test_bulk_stats.py | sixy6e/eo-tools | 9e2772a5f15e04f6f7e3941541381544247ae1f2 | [
"Apache-2.0"
] | 3 | 2018-04-24T05:57:35.000Z | 2019-07-23T13:06:11.000Z | tests/test_bulk_stats.py | sixy6e/eo-tools | 9e2772a5f15e04f6f7e3941541381544247ae1f2 | [
"Apache-2.0"
] | 1 | 2015-06-17T04:39:23.000Z | 2015-06-17T04:39:23.000Z | tests/test_bulk_stats.py | sixy6e/eo-tools | 9e2772a5f15e04f6f7e3941541381544247ae1f2 | [
"Apache-2.0"
] | 2 | 2016-04-04T10:23:27.000Z | 2020-02-28T08:43:49.000Z | #!/usr/bin/env python
# ===============================================================================
# Copyright 2015 Geoscience Australia
#
# 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
... | 27.794521 | 81 | 0.609167 | 259 | 2,029 | 4.679537 | 0.459459 | 0.049505 | 0.039604 | 0.049505 | 0.24835 | 0.165017 | 0.165017 | 0.165017 | 0.165017 | 0.165017 | 0 | 0.016456 | 0.221291 | 2,029 | 72 | 82 | 28.180556 | 0.750633 | 0.462297 | 0 | 0 | 0 | 0 | 0.008264 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.217391 | false | 0 | 0.217391 | 0 | 0.478261 | 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 |
2636fef4d07451a8ef4cb29191498d6952487c63 | 3,945 | py | Python | backup/guitemplates/endofsessiondialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | backup/guitemplates/endofsessiondialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | backup/guitemplates/endofsessiondialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'endofsessiondialog.ui'
#
# Created by: PyQt4 UI code generator 4.11.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fro... | 60.692308 | 156 | 0.78834 | 309 | 3,945 | 9.996764 | 0.359223 | 0.054387 | 0.061509 | 0.036258 | 0.116866 | 0.053092 | 0.053092 | 0.053092 | 0.053092 | 0.053092 | 0 | 0.018615 | 0.128517 | 3,945 | 64 | 157 | 61.640625 | 0.879872 | 0.048669 | 0 | 0.12 | 1 | 0 | 0.132977 | 0.096128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.02 | 0.06 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26406e146753c756d9c6b32ec6a428c03630d569 | 650 | py | Python | app/__init__.py | Moobusy/learnpython | a9a35dec18fcdc4238e83f881c6e308667ec7029 | [
"MIT"
] | null | null | null | app/__init__.py | Moobusy/learnpython | a9a35dec18fcdc4238e83f881c6e308667ec7029 | [
"MIT"
] | null | null | null | app/__init__.py | Moobusy/learnpython | a9a35dec18fcdc4238e83f881c6e308667ec7029 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Docer
~~~~~~
A document viewing platform.
:copyright: (c) 2015 by Docer.Org.
:license: MIT, see LICENSE for more details.
'''
from flask import Flask
from flask.ext.mongoengine import MongoEngine
from app.frontend import frontend as frontend_blueprint
from app.backend import backend a... | 24.074074 | 81 | 0.747692 | 87 | 650 | 5.436782 | 0.494253 | 0.038055 | 0.084567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008913 | 0.136923 | 650 | 27 | 82 | 24.074074 | 0.834225 | 0.287692 | 0 | 0 | 0 | 0 | 0.078652 | 0.053933 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2641b42023211ee1b539a62e50d934444683d94e | 953 | py | Python | main.py | ghosh-r/text_scraper_for_bengali_poems | da148a0e8680fe365d4177fe269be875b0150c5c | [
"Apache-2.0"
] | null | null | null | main.py | ghosh-r/text_scraper_for_bengali_poems | da148a0e8680fe365d4177fe269be875b0150c5c | [
"Apache-2.0"
] | null | null | null | main.py | ghosh-r/text_scraper_for_bengali_poems | da148a0e8680fe365d4177fe269be875b0150c5c | [
"Apache-2.0"
] | null | null | null | from typing import List
from sys import argv
from tqdm import tqdm
from time import sleep
from random import uniform
from bs4 import BeautifulSoup
import requests
from get_pages_urls import get_list_pages
from get_urls import get_urls_per_page
from write_poem import write_poem
def main(root_url: str,
poet_... | 24.435897 | 75 | 0.713536 | 152 | 953 | 4.092105 | 0.296053 | 0.072347 | 0.062701 | 0.045016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.222455 | 953 | 39 | 76 | 24.435897 | 0.831309 | 0 | 0 | 0 | 0 | 0 | 0.008386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.37037 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2648b74d5b48d2d6ff54adeaeb4a4c006edab254 | 3,106 | py | Python | utils/emails.py | rajattomar1301/HomeWorks-Initial | be7e6b6db2f7cf414a1f488e2efc473a95d9338a | [
"MIT"
] | null | null | null | utils/emails.py | rajattomar1301/HomeWorks-Initial | be7e6b6db2f7cf414a1f488e2efc473a95d9338a | [
"MIT"
] | 6 | 2021-03-18T22:07:14.000Z | 2022-03-11T23:39:30.000Z | utils/emails.py | rajattomar1301/HomeWorks-Initial | be7e6b6db2f7cf414a1f488e2efc473a95d9338a | [
"MIT"
] | null | null | null | import re
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
domain = "127.0.0.1"
def send_email(to, subject, text):
fromaddr = "homeworksmailbot@gmail.com"
toaddr = to
msg = MIMEMultipart()
msg['From'] = fromaddr
msg['To'] = toaddr
msg['Subject']... | 31.06 | 120 | 0.716355 | 479 | 3,106 | 4.561587 | 0.388309 | 0.037071 | 0.038444 | 0.024714 | 0.237529 | 0.163387 | 0.163387 | 0.143707 | 0.143707 | 0.104348 | 0 | 0.014655 | 0.165164 | 3,106 | 99 | 121 | 31.373737 | 0.827998 | 0 | 0 | 0 | 0 | 0.020833 | 0.331511 | 0.072068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0.083333 | 0.083333 | 0 | 0.270833 | 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 |
264d60d6576e248900b90821956e258de5d4ec82 | 866 | py | Python | core/admin.py | isGroba/petLost | 582851481a80c2e4645425d6b27830e2b7d44376 | [
"MIT"
] | 4 | 2017-06-16T11:19:56.000Z | 2018-12-20T10:06:51.000Z | core/admin.py | isGroba/petLost | 582851481a80c2e4645425d6b27830e2b7d44376 | [
"MIT"
] | 4 | 2017-06-06T10:36:32.000Z | 2017-06-11T20:26:47.000Z | core/admin.py | isGroba/petLost | 582851481a80c2e4645425d6b27830e2b7d44376 | [
"MIT"
] | 3 | 2017-06-06T06:54:48.000Z | 2018-10-11T22:32:27.000Z | from django.contrib import admin
from .models import Color, Pet, Publication
class PublicationAdmin(admin.ModelAdmin):
fields = ['title', 'description', 'pet', 'member']
search_fields = ['title', 'breed']
list_display = ('title', 'description', 'pet', 'date')
list_filter = ['date']
class PetAdmin(... | 27.0625 | 92 | 0.67552 | 94 | 866 | 6.085106 | 0.340426 | 0.06993 | 0.11014 | 0.087413 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152425 | 866 | 31 | 93 | 27.935484 | 0.779292 | 0 | 0 | 0 | 0 | 0 | 0.241339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26501096fb0d6e0fc4401d923fa758cce0b9b091 | 853 | py | Python | entity/cards/LETL_017H/LETL_306.py | x014/lushi_script | edab2b88e3f0de8139de2541ab2daa331f777c0e | [
"MIT"
] | 102 | 2021-10-20T09:06:39.000Z | 2022-03-28T13:35:11.000Z | entity/cards/LETL_017H/LETL_306.py | x014/lushi_script | edab2b88e3f0de8139de2541ab2daa331f777c0e | [
"MIT"
] | 98 | 2021-10-19T16:13:27.000Z | 2022-03-27T13:27:49.000Z | entity/cards/LETL_017H/LETL_306.py | x014/lushi_script | edab2b88e3f0de8139de2541ab2daa331f777c0e | [
"MIT"
] | 55 | 2021-10-19T03:56:50.000Z | 2022-03-25T08:25:26.000Z | # -*- coding: utf-8 -*-
from hearthstone.entities import Entity
from entity.spell_entity import SpellEntity
class LETL_306(SpellEntity):
"""
冰风暴5
随机对3个敌方佣兵造成$6点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成$7点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成$8点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成$9点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成... | 32.807692 | 183 | 0.644783 | 110 | 853 | 4.809091 | 0.481818 | 0.122873 | 0.132325 | 0.196597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042945 | 0.235639 | 853 | 25 | 184 | 34.12 | 0.768405 | 0.237984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 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 |
2657fe93d76911db915b716f3764d580739be1b3 | 297 | py | Python | api/config.py | libamen/libamen | bcf5c07ec6af25c0e5bd5703075638b46965412d | [
"Apache-2.0"
] | null | null | null | api/config.py | libamen/libamen | bcf5c07ec6af25c0e5bd5703075638b46965412d | [
"Apache-2.0"
] | null | null | null | api/config.py | libamen/libamen | bcf5c07ec6af25c0e5bd5703075638b46965412d | [
"Apache-2.0"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
DEBUG = False
TESTING = False
UPLOAD_FOLDER = f'{basedir}/uploads'
class DevConfig(Config):
DEBUG = True
class TestConfig(Config):
TESTING = True
| 13.5 | 52 | 0.703704 | 38 | 297 | 5.315789 | 0.578947 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20202 | 297 | 21 | 53 | 14.142857 | 0.852321 | 0 | 0 | 0 | 0 | 0 | 0.057239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
26599d13bfb32c3212e18f860f5d6d06e7a58aef | 3,576 | py | Python | generate/julia/ffi.py | Luthaf/Chemharp-bindgen | 7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8 | [
"MIT"
] | null | null | null | generate/julia/ffi.py | Luthaf/Chemharp-bindgen | 7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8 | [
"MIT"
] | 2 | 2018-02-25T21:46:45.000Z | 2018-11-19T22:39:54.000Z | generate/julia/ffi.py | chemfiles/bindgen | 7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8 | [
"MIT"
] | null | null | null | # -* coding: utf-8 -*
"""
This module generate the Julia interface declaration for the functions it
finds in a C header. It only handle edge cases for the chemfiles.h header.
"""
from generate.julia.constants import BEGINING
from generate.julia.convert import type_to_julia
from generate import CHFL_TYPES
TYPE_TEMPLA... | 26.10219 | 148 | 0.631991 | 438 | 3,576 | 5.041096 | 0.294521 | 0.025362 | 0.036232 | 0.047101 | 0.121377 | 0.044384 | 0.044384 | 0.044384 | 0.044384 | 0.044384 | 0 | 0.011722 | 0.236577 | 3,576 | 136 | 149 | 26.294118 | 0.79707 | 0.072427 | 0 | 0.165049 | 1 | 0.019417 | 0.398847 | 0.062178 | 0.009709 | 0 | 0 | 0 | 0 | 1 | 0.038835 | false | 0 | 0.029126 | 0 | 0.087379 | 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 |
2661899145bc08ac1035d9320ae8710c8aceeb71 | 14,728 | py | Python | electricpy/conversions.py | engineerjoe440/electricpy | 03155a34ea024b61a9a6c41241cd664d0df0fb6b | [
"MIT"
] | null | null | null | electricpy/conversions.py | engineerjoe440/electricpy | 03155a34ea024b61a9a6c41241cd664d0df0fb6b | [
"MIT"
] | null | null | null | electricpy/conversions.py | engineerjoe440/electricpy | 03155a34ea024b61a9a6c41241cd664d0df0fb6b | [
"MIT"
] | null | null | null | ################################################################################
"""
`electricpy` Package - `conversions` Module.
>>> from electricpy import conversions
Filled with simple conversion functions to help manage unit conversions and the
like, this module is very helpful to electrical engineers.
Built to ... | 23.266983 | 81 | 0.577404 | 1,789 | 14,728 | 4.670207 | 0.129681 | 0.024297 | 0.025853 | 0.032555 | 0.499461 | 0.448235 | 0.387911 | 0.358827 | 0.279952 | 0.243447 | 0 | 0.019619 | 0.311312 | 14,728 | 632 | 82 | 23.303797 | 0.804101 | 0.693441 | 0 | 0.141414 | 0 | 0 | 0.029153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.010101 | 0.020202 | 0 | 0.464646 | 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 |
26649d1e4db6d0705a327b9183a318d36350f178 | 446 | py | Python | ssig_site/auth/migrations/0003_user_interest_events.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | null | null | null | ssig_site/auth/migrations/0003_user_interest_events.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | 61 | 2018-02-22T11:10:48.000Z | 2022-03-11T23:20:25.000Z | ssig_site/auth/migrations/0003_user_interest_events.py | LeoMcA/103P_2018_team51 | cca9e022456b1e2653f0b69420ea914661c39b27 | [
"MIT"
] | 2 | 2018-02-10T11:26:52.000Z | 2018-02-21T12:14:36.000Z | # Generated by Django 2.0.2 on 2018-03-08 12:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0004_event_group'),
('ssig_site_auth', '0002_user_interest_groups'),
]
operations = [
migrations.AddField(
model... | 22.3 | 58 | 0.605381 | 49 | 446 | 5.326531 | 0.77551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070769 | 0.2713 | 446 | 19 | 59 | 23.473684 | 0.732308 | 0.100897 | 0 | 0 | 1 | 0 | 0.220551 | 0.062657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26665c848e7389ad3807abd7e96f3f0161f6a4ff | 704 | py | Python | tests/test_query.py | tikazyq/google-analytics-api-wrapper | 91ffc1d6b4cb810aea20541153d64730873903b9 | [
"MIT"
] | 6 | 2015-03-11T01:38:54.000Z | 2021-07-09T21:40:12.000Z | tests/test_query.py | QPC-database/google-analytics-api-wrapper | 91ffc1d6b4cb810aea20541153d64730873903b9 | [
"MIT"
] | null | null | null | tests/test_query.py | QPC-database/google-analytics-api-wrapper | 91ffc1d6b4cb810aea20541153d64730873903b9 | [
"MIT"
] | 1 | 2021-07-09T21:40:13.000Z | 2021-07-09T21:40:13.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
from datetime import datetime, timedelta
from analytics_query import analytics_query as aq
START_DATE = (datetime.now() - timedelta(7)).strftime('%Y-%m-%d')
END_DATE = (datetime.now() - timedelta(1)).strftime('%Y-%m-%d')
start_date = '2015-03-03'
end_date = '... | 24.275862 | 92 | 0.674716 | 98 | 704 | 4.632653 | 0.530612 | 0.079295 | 0.066079 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032368 | 0.166193 | 704 | 28 | 93 | 25.142857 | 0.741056 | 0.053977 | 0 | 0 | 0 | 0.055556 | 0.274096 | 0.207831 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
266b7396a2ed1939667431e7fe0b116000780021 | 1,358 | py | Python | script/python3/util/env.py | setminami/IrControl | bcdd44b7f6aeca75226cdcfc611dc63032c38949 | [
"MIT"
] | null | null | null | script/python3/util/env.py | setminami/IrControl | bcdd44b7f6aeca75226cdcfc611dc63032c38949 | [
"MIT"
] | 2 | 2018-09-21T11:53:28.000Z | 2018-12-30T03:37:23.000Z | script/python3/util/env.py | setminami/IrControl | bcdd44b7f6aeca75226cdcfc611dc63032c38949 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# this made for python3
from os import environ
def expand_env(params, verbose=False):
""" dotenv like function, but not dotenv """
for key, val in params.items():
_print('try %s, %s'%(key, val), verbose)
if isinstance(val, dict):
_print('ORDEREDDICT', verbos... | 39.941176 | 122 | 0.54271 | 168 | 1,358 | 4.279762 | 0.404762 | 0.041725 | 0.044506 | 0.061196 | 0.069541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.307806 | 1,358 | 33 | 123 | 41.151515 | 0.759574 | 0.060383 | 0 | 0.074074 | 0 | 0 | 0.184543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.148148 | 0.407407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2670f782ce4049f02c248c80f13a94aafff1be8d | 1,440 | py | Python | game/content/ghplots/__init__.py | AmkG/gearhead-caramel | 0238378295a09b4b33adb2ec0854fa06b0ad7b1b | [
"Apache-2.0"
] | null | null | null | game/content/ghplots/__init__.py | AmkG/gearhead-caramel | 0238378295a09b4b33adb2ec0854fa06b0ad7b1b | [
"Apache-2.0"
] | null | null | null | game/content/ghplots/__init__.py | AmkG/gearhead-caramel | 0238378295a09b4b33adb2ec0854fa06b0ad7b1b | [
"Apache-2.0"
] | null | null | null | import inspect
from . import actionscenes
from . import dd_combatmission
from . import dd_customobjectives
from . import dd_distanttown
from . import dd_homebase
from . import dd_intro
from . import dd_lancedev
from . import dd_main
from . import dd_roadedge
from . import dd_roadedge_propp
from . import dd_roadstops
f... | 26.181818 | 110 | 0.758333 | 197 | 1,440 | 5.319797 | 0.263959 | 0.181298 | 0.137405 | 0.038168 | 0.024809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172222 | 1,440 | 54 | 111 | 26.666667 | 0.879195 | 0.011111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.44898 | 0 | 0.469388 | 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 |
2681adb86e53921fccea1f698b21e0752d4e5ac6 | 1,764 | py | Python | edge_server/script_server.py | Dspatharakis/alphabot-ppl | 1f234548bf3fc7d447663f94cfa49591724563b0 | [
"MIT"
] | null | null | null | edge_server/script_server.py | Dspatharakis/alphabot-ppl | 1f234548bf3fc7d447663f94cfa49591724563b0 | [
"MIT"
] | null | null | null | edge_server/script_server.py | Dspatharakis/alphabot-ppl | 1f234548bf3fc7d447663f94cfa49591724563b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import requests
import json
import time
import sys
import subprocess
import csv
import json
import numpy as np
def main():
start_time = time.time()
post_url = "http://0.0.0.0:8000/cpu"
mean_cpu = 0
counter = 0
s = 0.75
container_name = subprocess.check_output(["d... | 34.588235 | 196 | 0.549887 | 224 | 1,764 | 4.15625 | 0.388393 | 0.06015 | 0.038668 | 0.03652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029925 | 0.318027 | 1,764 | 50 | 197 | 35.28 | 0.743973 | 0.098639 | 0 | 0.190476 | 0 | 0 | 0.136795 | 0.018366 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2683c81a292c3d694af782d7d6d9714cc7c5d078 | 5,264 | py | Python | madic/tests/test_io.py | dcroote/madic | fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563 | [
"BSD-3-Clause"
] | 2 | 2017-12-08T03:24:22.000Z | 2017-12-13T10:22:09.000Z | madic/tests/test_io.py | dcroote/madic | fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563 | [
"BSD-3-Clause"
] | null | null | null | madic/tests/test_io.py | dcroote/madic | fb00f312f5abc9f5a0bfc4a00a5a2e6e1c4ee563 | [
"BSD-3-Clause"
] | null | null | null | import os
import pandas as pd
import numpy as np
from pandas.testing import assert_series_equal
from madic import io
class TestChromatogramExpansion(object):
def setup_method(self):
# two rows of comma separated intensity chromatograms
self.df = pd.DataFrame([['1,2,3,4,5,6,5,4,3,2,1'],
... | 37.6 | 79 | 0.510448 | 588 | 5,264 | 4.360544 | 0.22449 | 0.096724 | 0.084243 | 0.056162 | 0.520281 | 0.450858 | 0.418097 | 0.297972 | 0.263651 | 0.24961 | 0 | 0.044237 | 0.347264 | 5,264 | 139 | 80 | 37.870504 | 0.701979 | 0.020327 | 0 | 0.23 | 0 | 0.01 | 0.148486 | 0.052407 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0.08 | false | 0.08 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2688264518d4b814e3d6dda29397dc244b099dd8 | 226 | py | Python | plot.py | arthtyagi/makefile | d64c38ddad63c7f90dd23c26e3f398229aa7dfa4 | [
"MIT"
] | null | null | null | plot.py | arthtyagi/makefile | d64c38ddad63c7f90dd23c26e3f398229aa7dfa4 | [
"MIT"
] | null | null | null | plot.py | arthtyagi/makefile | d64c38ddad63c7f90dd23c26e3f398229aa7dfa4 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
x = []
y = []
with open('points') as f:
for point in map(lambda x: x.split(), f.readlines()):
x.append(int(point[0]))
y.append(int(point[1]))
plt.scatter(x, y)
plt.show()
| 17.384615 | 57 | 0.588496 | 38 | 226 | 3.5 | 0.631579 | 0.030075 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.216814 | 226 | 12 | 58 | 18.833333 | 0.740113 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
268a1a32773db807fdd5256fd06cf225b0146c23 | 335 | py | Python | drafts/vanish_explode_gradients/freeze_lower_layers.py | quanhua92/deeplearning_tutorials | 32fec492ca21c248dd1fb234db0a95a532df3469 | [
"MIT"
] | 1 | 2017-07-06T13:00:36.000Z | 2017-07-06T13:00:36.000Z | drafts/vanish_explode_gradients/freeze_lower_layers.py | quanhua92/deeplearning_tutorials | 32fec492ca21c248dd1fb234db0a95a532df3469 | [
"MIT"
] | null | null | null | drafts/vanish_explode_gradients/freeze_lower_layers.py | quanhua92/deeplearning_tutorials | 32fec492ca21c248dd1fb234db0a95a532df3469 | [
"MIT"
] | null | null | null | import tensorflow as tf
# We will train all layers except hidden[12]. Therefore, Layers 1 and 2 are frozen
train_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope="hidden[34]|outputs")
loss = None # Your loss is here
train_op = tf.train.GradientDescentOptimizer(learning_rate=0.01).minimize(loss, var_l... | 47.857143 | 100 | 0.79403 | 53 | 335 | 4.886792 | 0.773585 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030201 | 0.110448 | 335 | 7 | 100 | 47.857143 | 0.838926 | 0.292537 | 0 | 0 | 0 | 0 | 0.076596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
268d50e291169e0e5fc4a8c8469d8e4d8109bcce | 585 | py | Python | code/app/configuration/configuration.py | WesleyAdriann/discord_bot_dota | 8a2921ee548f2fc6066bf15e7aed6688037dd434 | [
"MIT"
] | null | null | null | code/app/configuration/configuration.py | WesleyAdriann/discord_bot_dota | 8a2921ee548f2fc6066bf15e7aed6688037dd434 | [
"MIT"
] | null | null | null | code/app/configuration/configuration.py | WesleyAdriann/discord_bot_dota | 8a2921ee548f2fc6066bf15e7aed6688037dd434 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
class Configuration:
def __init__(self):
self.DOTA_BUFF_BASE_URL = 'https://pt.dotabuff.com'
self.HEROES = f'{self.DOTA_BUFF_BASE_URL}/heroes'
self.HERO_COUNTERS = '/counters'
self.HERO_COUNTERS_FULL = f'{self.DOTA_BUFF_BASE_URL}/hero-name/{self.H... | 34.411765 | 93 | 0.676923 | 82 | 585 | 4.47561 | 0.402439 | 0.13079 | 0.217984 | 0.13079 | 0.414169 | 0.231608 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.176068 | 585 | 16 | 94 | 36.5625 | 0.759336 | 0.035897 | 0 | 0 | 0 | 0 | 0.322638 | 0.237077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 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 |
268f327d0be7b5ea3314ce2aea07749bbbce81aa | 908 | py | Python | grpc_examples/sending_image/client.py | iwmq/coding_notes | 8e406124bcd2dbf3228e945701e952c3a12025c6 | [
"MIT"
] | null | null | null | grpc_examples/sending_image/client.py | iwmq/coding_notes | 8e406124bcd2dbf3228e945701e952c3a12025c6 | [
"MIT"
] | null | null | null | grpc_examples/sending_image/client.py | iwmq/coding_notes | 8e406124bcd2dbf3228e945701e952c3a12025c6 | [
"MIT"
] | null | null | null | """
The Python implementation of the GRPC image client.
Modified from grpc/examples/python/helloworld/greeting_client.py.
"""
from __future__ import print_function
import logging
from io import BytesIO
from PIL import Image
import grpc
import image_pb2
import image_pb2_grpc
def run():
# NOTE(gRPC Python Team)... | 25.222222 | 78 | 0.718062 | 124 | 908 | 5.08871 | 0.572581 | 0.050713 | 0.044374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01355 | 0.187225 | 908 | 35 | 79 | 25.942857 | 0.841463 | 0.305066 | 0 | 0 | 0 | 0 | 0.10306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.35 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd037892f04f2a0ec86c850579b001591ee90f88 | 1,381 | py | Python | libkol/request/clan_rumpus.py | danheath/pykol-lib | bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc | [
"BSD-3-Clause"
] | 6 | 2019-06-11T19:25:32.000Z | 2022-01-21T17:05:01.000Z | libkol/request/clan_rumpus.py | danheath/pykol-lib | bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc | [
"BSD-3-Clause"
] | 8 | 2019-06-17T11:41:14.000Z | 2019-08-07T17:28:50.000Z | libkol/request/clan_rumpus.py | python-kol/pykollib | bdc9aa8dbae64ead07e7dbc36f9d6ba802f65ddc | [
"BSD-3-Clause"
] | 9 | 2019-06-09T22:23:06.000Z | 2021-07-10T00:49:00.000Z | import re
from enum import Enum
from typing import List
import libkol
from .request import Request
class Furniture(Enum):
Nail = (1, 0)
GirlsCalendar = (1, 1)
BoyCalendar = (1, 2)
Painting = (1, 3)
MeatOrchid = (1, 4)
Bookshelf = (2, 0)
ArcaneTomes = (2, 1)
SportsMemorabilia = (2, 2)... | 23.40678 | 85 | 0.569153 | 175 | 1,381 | 4.405714 | 0.428571 | 0.005188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057201 | 0.291093 | 1,381 | 58 | 86 | 23.810345 | 0.730337 | 0 | 0 | 0 | 0 | 0 | 0.038378 | 0.017379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.104167 | 0.020833 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
cd0d1977c612b5942005c2d4eceddb8039516a10 | 7,249 | py | Python | test/unit/mysql_db_admin/process_request.py | mjpernot/mysql-mysql-db-admin | 4821d6923155a48362869a6f2bf8c69fe3e533d4 | [
"MIT"
] | null | null | null | test/unit/mysql_db_admin/process_request.py | mjpernot/mysql-mysql-db-admin | 4821d6923155a48362869a6f2bf8c69fe3e533d4 | [
"MIT"
] | null | null | null | test/unit/mysql_db_admin/process_request.py | mjpernot/mysql-mysql-db-admin | 4821d6923155a48362869a6f2bf8c69fe3e533d4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: process_request.py
Description: Unit testing of process_request in mysql_db_admin.py.
Usage:
test/unit/mysql_db_admin/process_request.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < ... | 26.36 | 76 | 0.646986 | 943 | 7,249 | 4.586426 | 0.120891 | 0.058266 | 0.099884 | 0.099884 | 0.719306 | 0.69896 | 0.69896 | 0.69896 | 0.69896 | 0.69896 | 0 | 0.010353 | 0.253828 | 7,249 | 274 | 77 | 26.456204 | 0.78924 | 0.193682 | 0 | 0.638655 | 0 | 0 | 0.201939 | 0.182733 | 0 | 0 | 0 | 0 | 0.05042 | 1 | 0.07563 | false | 0.008403 | 0.067227 | 0 | 0.168067 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd18f52d3cd9d807fe305ade001766cc89245405 | 1,929 | py | Python | cride/circles/views/circles.py | LhernerRemon/Rider | 30783cf58513698d23730f5fa477dfeddda8ee6b | [
"MIT"
] | null | null | null | cride/circles/views/circles.py | LhernerRemon/Rider | 30783cf58513698d23730f5fa477dfeddda8ee6b | [
"MIT"
] | null | null | null | cride/circles/views/circles.py | LhernerRemon/Rider | 30783cf58513698d23730f5fa477dfeddda8ee6b | [
"MIT"
] | null | null | null | #REST
from rest_framework import viewsets,mixins
from rest_framework.permissions import IsAuthenticated
#Filters
from rest_framework.filters import SearchFilter,OrderingFilter
from django_filters.rest_framework import DjangoFilterBackend
#Models, serializers
from cride.circles.models import Circle,Membership
from cri... | 32.694915 | 83 | 0.690513 | 188 | 1,929 | 6.930851 | 0.452128 | 0.039908 | 0.03914 | 0.033768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00133 | 0.220321 | 1,929 | 59 | 84 | 32.694915 | 0.865027 | 0.086573 | 0 | 0 | 0 | 0 | 0.086455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.175 | 0 | 0.525 | 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 |
cd190e09b3c36d0f4700cf8693b8dfde027f164e | 6,680 | py | Python | 초보를 위한 셀레니움/#1 Google Screenshots Scrapping/main.py | donddog/Nomad_Academy_Online_Course_Codes | 391fde26052a67f7b533219ab0de6096830697b6 | [
"MIT"
] | 1 | 2021-02-11T16:45:22.000Z | 2021-02-11T16:45:22.000Z | 초보를 위한 셀레니움/#1 Google Screenshots Scrapping/main.py | donddog/Nomad_Academy_Online_Course_Codes | 391fde26052a67f7b533219ab0de6096830697b6 | [
"MIT"
] | null | null | null | 초보를 위한 셀레니움/#1 Google Screenshots Scrapping/main.py | donddog/Nomad_Academy_Online_Course_Codes | 391fde26052a67f7b533219ab0de6096830697b6 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import shutil
import os
class GoogleKeywordScreenshooter:
def __init__(... | 38.171429 | 107 | 0.572156 | 714 | 6,680 | 5.093838 | 0.166667 | 0.075612 | 0.082486 | 0.036294 | 0.675282 | 0.668683 | 0.668683 | 0.668683 | 0.668683 | 0.668683 | 0 | 0.006169 | 0.223503 | 6,680 | 175 | 108 | 38.171429 | 0.695007 | 0.117814 | 0 | 0.458333 | 0 | 0 | 0.182071 | 0.143155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.016667 | 0.058333 | 0 | 0.108333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd1bfaec0e66cc493fec447100454ceabadeff14 | 838 | py | Python | pepy/domain/read_model.py | daghan/pepy | 11e15e0a7af922cf72647dde95b6cc26760ee8ab | [
"MIT"
] | null | null | null | pepy/domain/read_model.py | daghan/pepy | 11e15e0a7af922cf72647dde95b6cc26760ee8ab | [
"MIT"
] | null | null | null | pepy/domain/read_model.py | daghan/pepy | 11e15e0a7af922cf72647dde95b6cc26760ee8ab | [
"MIT"
] | null | null | null | from datetime import date
from typing import List
from attr import attrs, attrib
@attrs()
class ProjectListProjection:
name: str = attrib()
total_downloads: int = attrib()
@attrs()
class DownloadProjection:
date: date = attrib()
downloads: int = attrib()
@attrs()
class ProjectProjection:
name... | 22.052632 | 85 | 0.657518 | 97 | 838 | 5.546392 | 0.319588 | 0.104089 | 0.089219 | 0.066915 | 0.618959 | 0.438662 | 0.297398 | 0.163569 | 0.163569 | 0.163569 | 0 | 0.012862 | 0.257757 | 838 | 37 | 86 | 22.648649 | 0.85209 | 0.031026 | 0 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cd314573d937025d1a50953b27cb47b89f485e85 | 2,972 | py | Python | yggdrasil/serialize/FunctionalSerialize.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | 22 | 2019-02-05T15:20:07.000Z | 2022-02-25T09:00:40.000Z | yggdrasil/serialize/FunctionalSerialize.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | 48 | 2019-02-15T20:41:24.000Z | 2022-03-16T20:52:02.000Z | yggdrasil/serialize/FunctionalSerialize.py | astro-friedel/yggdrasil | 5ecbfd083240965c20c502b4795b6dc93d94b020 | [
"BSD-3-Clause"
] | 16 | 2019-04-27T03:36:40.000Z | 2021-12-02T09:47:06.000Z | from yggdrasil.serialize.SerializeBase import SerializeBase
class FunctionalSerialize(SerializeBase):
r"""Class for serializing/deserializing a Python object into/from a bytes
message using defined functions.
Args:
encoded_datatype (schema, optional): JSON schema describing the type
t... | 43.072464 | 84 | 0.654778 | 320 | 2,972 | 5.9125 | 0.365625 | 0.063425 | 0.020613 | 0.027484 | 0.15222 | 0.095137 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265814 | 2,972 | 68 | 85 | 43.705882 | 0.867094 | 0.532974 | 0 | 0.071429 | 0 | 0 | 0.236985 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd3156dd0e4a0a15e50945d8d1d506c7eefae69c | 2,046 | py | Python | wordy_chat.py | thecodingchannel/wordy-discord-bot-tutorial | be70d237abcb302b6516f985ae900c61b598296a | [
"Apache-2.0"
] | null | null | null | wordy_chat.py | thecodingchannel/wordy-discord-bot-tutorial | be70d237abcb302b6516f985ae900c61b598296a | [
"Apache-2.0"
] | null | null | null | wordy_chat.py | thecodingchannel/wordy-discord-bot-tutorial | be70d237abcb302b6516f985ae900c61b598296a | [
"Apache-2.0"
] | 1 | 2022-03-09T04:55:56.000Z | 2022-03-09T04:55:56.000Z | '''
This file is the glue between the Discord bot and the game logic.
'''
from wordle_logic import evaluate_guess, generate_new_word
from wordy_types import ActiveGame, EndResult, LetterState
def begin_game() -> ActiveGame:
"""
Begin a game for a user.
"""
# Select a word
answer = ge... | 26.230769 | 86 | 0.608504 | 244 | 2,046 | 5.098361 | 0.319672 | 0.057878 | 0.064309 | 0.057878 | 0.220257 | 0.220257 | 0.115756 | 0.115756 | 0.115756 | 0 | 0 | 0.00263 | 0.256598 | 2,046 | 77 | 87 | 26.571429 | 0.800789 | 0.401271 | 0 | 0.083333 | 1 | 0 | 0.002956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cd358b914861d3a881968cfd805aae9c0f7bed42 | 1,345 | py | Python | modules/lexer/token.py | DavidMacDonald11/sea-to-c-transpiler-python-based | 20c41931346b13d4bf2a12e96037f44b1add8145 | [
"MIT"
] | null | null | null | modules/lexer/token.py | DavidMacDonald11/sea-to-c-transpiler-python-based | 20c41931346b13d4bf2a12e96037f44b1add8145 | [
"MIT"
] | 11 | 2021-04-22T13:09:34.000Z | 2022-01-29T22:53:58.000Z | modules/lexer/token.py | DavidMacDonald11/sea-to-c-transpiler-python-based | 20c41931346b13d4bf2a12e96037f44b1add8145 | [
"MIT"
] | null | null | null | from .token_types import TT
from .token_types import BadTT
from .position import Position
from .keywords import is_keyword
from .keywords import keyword_declared_type
from ..lexer import errors
class Token:
def __init__(self, token_type, value = None, position = None):
self.type = token_type
self.v... | 33.625 | 80 | 0.665428 | 187 | 1,345 | 4.593583 | 0.219251 | 0.094296 | 0.048894 | 0.055879 | 0.17695 | 0.125728 | 0 | 0 | 0 | 0 | 0 | 0.002008 | 0.25948 | 1,345 | 39 | 81 | 34.487179 | 0.860442 | 0 | 0 | 0 | 0 | 0 | 0.017844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.2 | 0.066667 | 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 |
cd448e3854b74fee56a6672cdae1ce1e148e593d | 1,195 | py | Python | spring_cloud/commons/client/loadbalancer/round_robin.py | haribo0915/Spring-Cloud-in-Python | 0bcd7093869c797df14428bf2d1b0a779f96e573 | [
"Apache-2.0"
] | 5 | 2020-10-06T09:48:23.000Z | 2020-10-07T13:19:46.000Z | spring_cloud/commons/client/loadbalancer/round_robin.py | haribo0915/Spring-Cloud-in-Python | 0bcd7093869c797df14428bf2d1b0a779f96e573 | [
"Apache-2.0"
] | 5 | 2020-10-05T09:57:01.000Z | 2020-10-12T19:52:48.000Z | spring_cloud/commons/client/loadbalancer/round_robin.py | haribo0915/Spring-Cloud-in-Python | 0bcd7093869c797df14428bf2d1b0a779f96e573 | [
"Apache-2.0"
] | 8 | 2020-10-05T06:34:49.000Z | 2020-10-07T13:19:46.000Z | # -*- coding: utf-8 -*-
"""
The built-in Round-Robin algorithm.
"""
# standard library
from typing import Union
# scip plugin
from spring_cloud.commons.client.service_instance import ServiceInstance
from spring_cloud.utils.atomic import AtomicInteger
from .loadbalancer import LoadBalancer
from .supplier import Servi... | 30.641026 | 88 | 0.738075 | 134 | 1,195 | 6.276119 | 0.529851 | 0.074911 | 0.074911 | 0.042806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010081 | 0.169874 | 1,195 | 38 | 89 | 31.447368 | 0.837702 | 0.136402 | 0 | 0 | 0 | 0 | 0.069513 | 0.023833 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.15 | false | 0 | 0.25 | 0.05 | 0.55 | 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 |
cd59d9b93bd906d8d50478926274bfcb5696cb98 | 4,388 | py | Python | old/policy_grads2.py | DarkElement75/cartpole-policy-gradients | ca6b7fb826fa023e2d845408d3d16d8032b07508 | [
"MIT"
] | null | null | null | old/policy_grads2.py | DarkElement75/cartpole-policy-gradients | ca6b7fb826fa023e2d845408d3d16d8032b07508 | [
"MIT"
] | null | null | null | old/policy_grads2.py | DarkElement75/cartpole-policy-gradients | ca6b7fb826fa023e2d845408d3d16d8032b07508 | [
"MIT"
] | null | null | null | import gym
import numpy as np
import sys
import theano
import theano.tensor as T
import layers
from layers import FullyConnectedLayer, SoftmaxLayer
env = gym.make('CartPole-v0')
#Number of actions
action_n = env.action_space.n
#Number of features observed
feature_n = env.observation_space.shape[0]
epochs = 100
min... | 26.756098 | 120 | 0.635369 | 626 | 4,388 | 4.268371 | 0.255591 | 0.053892 | 0.022455 | 0.016841 | 0.191617 | 0.116766 | 0.087201 | 0.066243 | 0.066243 | 0.066243 | 0 | 0.015417 | 0.246126 | 4,388 | 163 | 121 | 26.920245 | 0.792322 | 0.262762 | 0 | 0.086022 | 0 | 0 | 0.017324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075269 | null | null | 0.010753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cd67c54b1e46edcb715070c6ab83abb9ea55fa6d | 1,178 | py | Python | sloth/simple.py | codacy-badger/sloth | a4f2118b2f19e55271613d43c785aaf4ab030b5e | [
"MIT"
] | 1 | 2021-02-11T12:14:23.000Z | 2021-02-11T12:14:23.000Z | src/sloth/simple.py | Legorooj/sloth | 47f6358349f8545fc475efab19edd6efda3ffbcd | [
"MIT"
] | null | null | null | src/sloth/simple.py | Legorooj/sloth | 47f6358349f8545fc475efab19edd6efda3ffbcd | [
"MIT"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright (c) 2020 Legorooj <legorooj@protonmail.com>
# Copyright (c) 2020 FluffyKoalas <github.com/fluffykoalas>
# This file and all others in this project are licensed under the MIT license.
# Please see the LICENSE file in the root of t... | 32.722222 | 78 | 0.616299 | 145 | 1,178 | 4.924138 | 0.427586 | 0.033613 | 0.10084 | 0.117647 | 0.341737 | 0.341737 | 0.341737 | 0.341737 | 0.341737 | 0.246499 | 0 | 0.010956 | 0.147708 | 1,178 | 35 | 79 | 33.657143 | 0.700199 | 0.355688 | 0 | 0.315789 | 0 | 0 | 0.054521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.473684 | 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 |
cd6d9b2b982fd93ff60ad7ad2c61547c26a40708 | 3,022 | py | Python | movo_common/si_utils/src/si_utils/my_tf_listener.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T06:33:28.000Z | 2021-03-26T06:33:28.000Z | movo_common/si_utils/src/si_utils/my_tf_listener.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | null | null | null | movo_common/si_utils/src/si_utils/my_tf_listener.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import rospy
import math
import tf
import geometry_msgs.msg
from geometry_msgs.msg import PoseStamped
from si_utils.lx_transformerROS import my_transformer
if __name__ == '__main__':
rospy.init_node('my_tf_listener')
listener = tf.TransformListener()
# my_trans = my_transformer()
... | 35.139535 | 122 | 0.634348 | 336 | 3,022 | 5.41369 | 0.235119 | 0.085761 | 0.049478 | 0.084662 | 0.524464 | 0.503573 | 0.485981 | 0.386476 | 0.313909 | 0.277075 | 0 | 0.017977 | 0.208471 | 3,022 | 85 | 123 | 35.552941 | 0.742475 | 0.410655 | 0 | 0 | 0 | 0 | 0.044824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cd78d6e1151155e18754cebc1cc2d5b9e9efa63f | 3,267 | py | Python | ocellaris/utils/alarm.py | TormodLandet/Ocellaris | 6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58 | [
"Apache-2.0"
] | 1 | 2017-11-07T12:19:44.000Z | 2017-11-07T12:19:44.000Z | ocellaris/utils/alarm.py | TormodLandet/Ocellaris | 6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58 | [
"Apache-2.0"
] | null | null | null | ocellaris/utils/alarm.py | TormodLandet/Ocellaris | 6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58 | [
"Apache-2.0"
] | 2 | 2018-05-02T17:17:01.000Z | 2019-03-11T13:09:40.000Z | # Copyright (C) 2018-2019 Tormod Landet
# SPDX-License-Identifier: Apache-2.0
"""
A timeout context manager based on SIGALRM, Permits multiple
SIGALRM events to be queued.
Uses a `heapq` to store the objects to be called when an alarm signal is
raised, so that the next alarm is always at the top of the heap.
Note: SI... | 25.724409 | 94 | 0.653811 | 434 | 3,267 | 4.741935 | 0.380184 | 0.017007 | 0.023324 | 0.016521 | 0.044704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012643 | 0.249464 | 3,267 | 126 | 95 | 25.928571 | 0.826672 | 0.377717 | 0 | 0.305085 | 0 | 0 | 0.003652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0.016949 | 0.050847 | 0.050847 | 0.355932 | 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 |
cd9a0d84b5dfdc848833f7aaab7d4b2009ed8946 | 421 | py | Python | awards/migrations/0003_project_project_photo.py | kimutaiamos/Gold-Awwards | 1bf12cf0cdbf250251664f067c5397160fa5ed41 | [
"MIT"
] | null | null | null | awards/migrations/0003_project_project_photo.py | kimutaiamos/Gold-Awwards | 1bf12cf0cdbf250251664f067c5397160fa5ed41 | [
"MIT"
] | null | null | null | awards/migrations/0003_project_project_photo.py | kimutaiamos/Gold-Awwards | 1bf12cf0cdbf250251664f067c5397160fa5ed41 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-12-12 18:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awards', '0002_profile_profile_photo'),
]
operations = [
migrations.AddField(
model_name='project',
name='project_phot... | 22.157895 | 79 | 0.615202 | 44 | 421 | 5.75 | 0.772727 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.266033 | 421 | 18 | 80 | 23.388889 | 0.760518 | 0.102138 | 0 | 0 | 1 | 0 | 0.183511 | 0.069149 | 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 |
269573fa22001d4ea70efb720d1a7ce5724057f7 | 3,520 | py | Python | tools/noise_reduction.py | 8igfive/MyASR | 565267d9df4b56cfad5107632146aab8150a962d | [
"MIT"
] | null | null | null | tools/noise_reduction.py | 8igfive/MyASR | 565267d9df4b56cfad5107632146aab8150a962d | [
"MIT"
] | null | null | null | tools/noise_reduction.py | 8igfive/MyASR | 565267d9df4b56cfad5107632146aab8150a962d | [
"MIT"
] | null | null | null | import argparse
from genericpath import exists
import os
import time
import re
from tqdm import tqdm
import numpy as np
from scipy.io import wavfile
from wiener_scalart import wienerScalart
TIME = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime())
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
WORKPLACE_DI... | 40.930233 | 132 | 0.65142 | 476 | 3,520 | 4.722689 | 0.292017 | 0.037367 | 0.031139 | 0.031139 | 0.201068 | 0.156139 | 0.066726 | 0.066726 | 0.031139 | 0 | 0 | 0.023272 | 0.194318 | 3,520 | 86 | 133 | 40.930233 | 0.769394 | 0.008239 | 0 | 0.083333 | 0 | 0 | 0.118625 | 0.006017 | 0 | 0 | 0.02149 | 0.011628 | 0 | 1 | 0.027778 | false | 0 | 0.125 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
26982c5744b84289c1df298a112687956cf70fd9 | 515 | py | Python | Dataset/Leetcode/train/46/372.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/372.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/372.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXX(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
def dfs(res, state, n):
if n == 0:
res.append(list(state))
return
for a in nums:
if a not in... | 23.409091 | 40 | 0.365049 | 54 | 515 | 3.481481 | 0.481481 | 0.095745 | 0.117021 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.518447 | 515 | 21 | 41 | 24.52381 | 0.75 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2698d48d436f6968997ba06d73587a502b5f3874 | 535 | py | Python | main.py | Cynicism-lab/hhu-daily-health-common | 1959beee61f2895166ac0be92b5817cbe278ef51 | [
"MIT"
] | 14 | 2021-02-03T14:38:15.000Z | 2022-02-05T08:48:41.000Z | main.py | zhang-zimin/nanwenguidaka | e426ecee8758d70b20cf2a77dc87a6f949196927 | [
"MIT"
] | 4 | 2021-04-15T15:14:29.000Z | 2022-03-15T02:29:04.000Z | main.py | zhang-zimin/nanwenguidaka | e426ecee8758d70b20cf2a77dc87a6f949196927 | [
"MIT"
] | 52 | 2021-02-03T14:38:17.000Z | 2022-03-29T09:19:12.000Z | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import requests
from datetime import timezone
from datetime import timedelta
from datetime import datetime
import hhu
import os
# In[2]:
utc_time = datetime.utcnow().replace(tzinfo=timezone.utc)
sh_tz = timezone(timedelta(hours=8),name='Asia/Shanghai')
beijing_now = ... | 17.258065 | 57 | 0.736449 | 83 | 535 | 4.662651 | 0.566265 | 0.144703 | 0.139535 | 0.134367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023404 | 0.121495 | 535 | 30 | 58 | 17.833333 | 0.8 | 0.08972 | 0 | 0 | 0 | 0 | 0.047718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
269c9b7326d9d1d9ee7b7fac3ea362f209cd1e0f | 1,599 | py | Python | tests/test_formats.py | antmicro/raviewer | 7529664d37e994d4c2f4c450a5577b79d73c4bb0 | [
"Apache-2.0"
] | 12 | 2021-11-18T09:38:34.000Z | 2022-03-24T19:33:44.000Z | tests/test_formats.py | antmicro/raviewer | 7529664d37e994d4c2f4c450a5577b79d73c4bb0 | [
"Apache-2.0"
] | 1 | 2022-02-14T12:07:02.000Z | 2022-03-21T19:29:11.000Z | tests/test_formats.py | antmicro/raviewer | 7529664d37e994d4c2f4c450a5577b79d73c4bb0 | [
"Apache-2.0"
] | null | null | null | """Module for testing formats on resources entities"""
from raviewer.src.core import (get_displayable, load_image, parse_image)
from terminaltables import AsciiTable
from raviewer.image.color_format import AVAILABLE_FORMATS
import os
import pkg_resources
import time
import pytest
@pytest.fixture
def formats():
r... | 31.352941 | 79 | 0.590994 | 176 | 1,599 | 5.153409 | 0.414773 | 0.060639 | 0.046307 | 0.041896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016544 | 0.319575 | 1,599 | 50 | 80 | 31.98 | 0.817096 | 0.044403 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.097561 | 0.170732 | 0.02439 | 0.243902 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
26a6c6bf63ea22f6476519c7dcbec3b7eb479136 | 550 | py | Python | generators/activerecord/templates/models/abstract_model.py | afeiship/gx | 9a3b566f64147eb1b6ffc753e2ebdf676f8ddef6 | [
"MIT"
] | null | null | null | generators/activerecord/templates/models/abstract_model.py | afeiship/gx | 9a3b566f64147eb1b6ffc753e2ebdf676f8ddef6 | [
"MIT"
] | null | null | null | generators/activerecord/templates/models/abstract_model.py | afeiship/gx | 9a3b566f64147eb1b6ffc753e2ebdf676f8ddef6 | [
"MIT"
] | null | null | null | from orator import Model
import pendulum
class AbstractModel(Model):
__guarded__ = []
@classmethod
def find_or_new_by(cls, options):
entity = cls.find_by(options)
if not entity:
entity = cls()
for k in options:
v = options[k]
setattr... | 22 | 44 | 0.589091 | 63 | 550 | 4.984127 | 0.555556 | 0.089172 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323636 | 550 | 24 | 45 | 22.916667 | 0.844086 | 0.032727 | 0 | 0.111111 | 0 | 0 | 0.024528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
26ab7ad4f1a2c561a6b79626d7ff5c41db51de8f | 365 | py | Python | python/concepts/compile-runtime.py | shanavas786/coding-fu | 2f29781ab793b5932a951259afffbbe0078e8a8a | [
"CC0-1.0"
] | 1 | 2021-02-12T03:49:13.000Z | 2021-02-12T03:49:13.000Z | python/concepts/compile-runtime.py | shanavas786/coding-fu | 2f29781ab793b5932a951259afffbbe0078e8a8a | [
"CC0-1.0"
] | null | null | null | python/concepts/compile-runtime.py | shanavas786/coding-fu | 2f29781ab793b5932a951259afffbbe0078e8a8a | [
"CC0-1.0"
] | null | null | null | def func(arg1, arg2=dict()):
print('entering func')
# arg3 is evaluated at compile time of inner
# so it capture arg3 as {}
def inner(arg3=arg2):
# arg1 is evaluted when inner is called
# so it uses the value of arg1 at that time
# whic is None
print("arg1", arg1, "arg3", arg3)
arg1 = arg2 ... | 20.277778 | 47 | 0.635616 | 59 | 365 | 3.932203 | 0.525424 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.260274 | 365 | 17 | 48 | 21.470588 | 0.803704 | 0.438356 | 0 | 0 | 0 | 0 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26aec7ce88a039f97165462d31ff1b237e27b183 | 4,468 | py | Python | django-todo-list/tasks/models.py | HimadriP/Orderly | e9464756c585e385f23436fc79acd2064b443432 | [
"MIT"
] | 1 | 2019-07-29T19:52:29.000Z | 2019-07-29T19:52:29.000Z | django-todo-list/tasks/models.py | HimadriP/Orderly | e9464756c585e385f23436fc79acd2064b443432 | [
"MIT"
] | null | null | null | django-todo-list/tasks/models.py | HimadriP/Orderly | e9464756c585e385f23436fc79acd2064b443432 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse_lazy
from django.utils import timezone
from django.forms.util import to_current_timezone
from model_utils import Choices
class TimeStampedModel(models.Model):
"""
An abstract model for the common fields ... | 36.622951 | 78 | 0.530215 | 445 | 4,468 | 5.164045 | 0.285393 | 0.033943 | 0.030461 | 0.043516 | 0.31201 | 0.31201 | 0.274151 | 0.21497 | 0.21497 | 0.1349 | 0 | 0.005829 | 0.385631 | 4,468 | 121 | 79 | 36.92562 | 0.83133 | 0.113697 | 0 | 0.357143 | 0 | 0 | 0.055352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.071429 | 0.02381 | 0.535714 | 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 |
26b279e2de1f9a9dd6eeef9e0736a69c9c2cc2f9 | 1,027 | py | Python | chmap/examples/development/example109_store-creds.py | predsci/CHD | 35f29d1b62861f4ffed57b38d18689b282664bcf | [
"Apache-2.0"
] | 3 | 2021-06-29T00:23:47.000Z | 2021-09-17T18:29:05.000Z | chmap/examples/development/example109_store-creds.py | predsci/CHD | 35f29d1b62861f4ffed57b38d18689b282664bcf | [
"Apache-2.0"
] | null | null | null | chmap/examples/development/example109_store-creds.py | predsci/CHD | 35f29d1b62861f4ffed57b38d18689b282664bcf | [
"Apache-2.0"
] | 1 | 2021-12-08T06:26:18.000Z | 2021-12-08T06:26:18.000Z | # This is a little bit clunky, but is a better solution than writing passwords into
import os
from cryptography.fernet import Fernet
# cred_dir = os.path.join(os.path.dirname(os.getcwd()), "settings")
cred_dir = '/Users/cdowns/work/imac_local/CoronalHoles/mysql_credentials'
key_file = os.path.join(cred_dir, "e_key.bi... | 31.121212 | 83 | 0.728335 | 162 | 1,027 | 4.462963 | 0.5 | 0.082988 | 0.041494 | 0.038728 | 0.152144 | 0.152144 | 0.152144 | 0.091286 | 0 | 0 | 0 | 0 | 0.166504 | 1,027 | 32 | 84 | 32.09375 | 0.844626 | 0.273612 | 0 | 0 | 0 | 0 | 0.197564 | 0.081191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.105263 | 0 | 0.105263 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
26b56046672f411c1c88bcbb0a2ebddb8ba65691 | 176 | py | Python | competitive-programming/kattis/heimavinna.py | sanchopanca/coding-for-pleasure | fed1910e8a5a4241bd55aed333afd79b4405a71d | [
"MIT"
] | null | null | null | competitive-programming/kattis/heimavinna.py | sanchopanca/coding-for-pleasure | fed1910e8a5a4241bd55aed333afd79b4405a71d | [
"MIT"
] | null | null | null | competitive-programming/kattis/heimavinna.py | sanchopanca/coding-for-pleasure | fed1910e8a5a4241bd55aed333afd79b4405a71d | [
"MIT"
] | null | null | null | s = 0
problems = input().strip().split(';')
for p in problems:
if '-' in p:
a, b = map(int, p.split('-'))
s += b - a + 1
else:
s += 1
print(s)
| 16 | 37 | 0.420455 | 28 | 176 | 2.642857 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.363636 | 176 | 10 | 38 | 17.6 | 0.633929 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
26bc7d495f1e995a46390a4be5f8a0a4a460b0ab | 2,823 | py | Python | src/shark/poker/player.py | twoodruff01/shark | 6c183de1993492b614eff332548f5c0f57facda2 | [
"Apache-2.0"
] | null | null | null | src/shark/poker/player.py | twoodruff01/shark | 6c183de1993492b614eff332548f5c0f57facda2 | [
"Apache-2.0"
] | null | null | null | src/shark/poker/player.py | twoodruff01/shark | 6c183de1993492b614eff332548f5c0f57facda2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Thomas Woodruff
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agr... | 37.144737 | 106 | 0.616366 | 381 | 2,823 | 4.475066 | 0.391076 | 0.052786 | 0.037537 | 0.052786 | 0.323754 | 0.323754 | 0.323167 | 0.323167 | 0.300293 | 0.300293 | 0 | 0.00916 | 0.303932 | 2,823 | 75 | 107 | 37.64 | 0.858524 | 0.377258 | 0 | 0.1 | 0 | 0 | 0.132442 | 0 | 0 | 0 | 0 | 0.106667 | 0 | 1 | 0.2 | false | 0 | 0.025 | 0.05 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.