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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2cd14c45ec5a42983a8b2bc4c5232c0af79c1653 | 1,841 | py | Python | main.py | imdany/pyconway | 97e321355179ff22e00adc55d2939c4168700c59 | [
"MIT"
] | null | null | null | main.py | imdany/pyconway | 97e321355179ff22e00adc55d2939c4168700c59 | [
"MIT"
] | null | null | null | main.py | imdany/pyconway | 97e321355179ff22e00adc55d2939c4168700c59 | [
"MIT"
] | null | null | null | # Conway's Game of Life - Python Implementation
# Author: Daniel: dan@imdany.com
import pygame
from pygame.locals import *
from cell import Cell
from config import *
import time
from random import choice
# Initialising PyGame
pygame.init()
pygame.display.set_caption("PyConway")
gameDisplay = pygame.displ... | 25.219178 | 86 | 0.600217 | 220 | 1,841 | 4.954545 | 0.472727 | 0.03578 | 0.029358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003915 | 0.306355 | 1,841 | 72 | 87 | 25.569444 | 0.849648 | 0.19446 | 0 | 0.088889 | 0 | 0 | 0.028592 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.244444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cd2b7c1d76b8ea680a44a1528afcac142cecb8c | 630 | py | Python | example_configs/custom_export_formats/custom_exporters.py | stuartcampbell/tiled | 01c054fa4638f2595a228173ea2f2c59a6a52500 | [
"BSD-3-Clause"
] | 1 | 2022-01-18T13:50:47.000Z | 2022-01-18T13:50:47.000Z | example_configs/custom_export_formats/custom_exporters.py | stuartcampbell/tiled | 01c054fa4638f2595a228173ea2f2c59a6a52500 | [
"BSD-3-Clause"
] | null | null | null | example_configs/custom_export_formats/custom_exporters.py | stuartcampbell/tiled | 01c054fa4638f2595a228173ea2f2c59a6a52500 | [
"BSD-3-Clause"
] | null | null | null | # This file will be (temporarily) included in the Python sys.path
# when config.yml is loaded by the Tiled server.
import io
from PIL import Image
from tiled.structures.image_serializer_helpers import img_as_ubyte
def smiley_separated_variables(array, metadata):
return "\n".join("🙂".join(str(number) for number... | 30 | 78 | 0.744444 | 96 | 630 | 4.78125 | 0.625 | 0.021786 | 0.043573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168254 | 630 | 20 | 79 | 31.5 | 0.874046 | 0.290476 | 0 | 0 | 0 | 0 | 0.015801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2cd714c89bbd87371b2b1d2b9a595e9a742b60b3 | 3,078 | py | Python | apps/home.py | eri3l/skinks | c28754dd4b8b35daaa075c6f5a22825a585b1c10 | [
"MIT"
] | null | null | null | apps/home.py | eri3l/skinks | c28754dd4b8b35daaa075c6f5a22825a585b1c10 | [
"MIT"
] | null | null | null | apps/home.py | eri3l/skinks | c28754dd4b8b35daaa075c6f5a22825a585b1c10 | [
"MIT"
] | null | null | null | import streamlit as st
def app():
st.write("## Welcome to the Skink Search Tool app")
st.write("""
The app filters existing skink data by multiple criteria in order to help with the identification of skinks.
Latest data update: 10 Apr 2020. \n
Use the navigat... | 45.264706 | 152 | 0.51462 | 366 | 3,078 | 4.289617 | 0.530055 | 0.057325 | 0.019108 | 0.034395 | 0.092994 | 0.092994 | 0.092994 | 0.092994 | 0 | 0 | 0 | 0.056567 | 0.339506 | 3,078 | 67 | 153 | 45.940299 | 0.714707 | 0 | 0 | 0.267857 | 0 | 0.160714 | 0.808255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.017857 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cdc75b71b0bba32f60d17b50e52e97bdfd6a8d1 | 605 | py | Python | Assignment/wordCalculator.py | TungTNg/itc110_python | 589ca1398f26d39b05a0b798100df0b05e556e3c | [
"Apache-2.0"
] | null | null | null | Assignment/wordCalculator.py | TungTNg/itc110_python | 589ca1398f26d39b05a0b798100df0b05e556e3c | [
"Apache-2.0"
] | null | null | null | Assignment/wordCalculator.py | TungTNg/itc110_python | 589ca1398f26d39b05a0b798100df0b05e556e3c | [
"Apache-2.0"
] | null | null | null | # wordCalculator.py
# A program to calculate the number of words in a sentence
# by Tung Nguyen
def main():
# declare program function:
print("This program calculates the number of words in a sentence.")
print()
# prompt user to input the sentence:
sentence = input("Enter a phrase: ")
... | 25.208333 | 71 | 0.664463 | 83 | 605 | 4.843373 | 0.481928 | 0.099502 | 0.161692 | 0.159204 | 0.134328 | 0.134328 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0.26281 | 605 | 24 | 72 | 25.208333 | 0.901345 | 0.47438 | 0 | 0.222222 | 0 | 0 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2cdc89a1b0a6704312d3b78c6c176e80e5518f5d | 410 | py | Python | foundation/users/tests/factories.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-01-04T06:30:24.000Z | 2016-01-04T06:30:24.000Z | foundation/users/tests/factories.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 36 | 2015-11-27T14:17:34.000Z | 2016-07-14T10:23:52.000Z | foundation/users/tests/factories.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-05-14T01:11:28.000Z | 2016-05-14T01:11:28.000Z | from __future__ import absolute_import
from .. import models
import factory
class UserFactory(factory.django.DjangoModelFactory):
username = factory.Sequence('user-{0}'.format)
email = factory.Sequence('user-{0}@example.com'.format)
password = factory.PostGenerationMethodCall('set_password', 'password')
... | 29.285714 | 75 | 0.72439 | 45 | 410 | 6.4 | 0.577778 | 0.104167 | 0.131944 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.160976 | 410 | 13 | 76 | 31.538462 | 0.831395 | 0 | 0 | 0 | 0 | 0 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.3 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2cdf025f71a5a2ce09dc481c5af2c3f5ec388d69 | 2,459 | py | Python | neutron/db/models/ndp_proxy.py | dangervon/neutron | 06ce0c2c94d2256a8f6804a1eacb0733747dcf46 | [
"Apache-2.0"
] | null | null | null | neutron/db/models/ndp_proxy.py | dangervon/neutron | 06ce0c2c94d2256a8f6804a1eacb0733747dcf46 | [
"Apache-2.0"
] | null | null | null | neutron/db/models/ndp_proxy.py | dangervon/neutron | 06ce0c2c94d2256a8f6804a1eacb0733747dcf46 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Troila
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 39.031746 | 78 | 0.633184 | 295 | 2,459 | 5.077966 | 0.447458 | 0.040053 | 0.040053 | 0.053405 | 0.252336 | 0.188251 | 0.157543 | 0.157543 | 0.157543 | 0.157543 | 0 | 0.007433 | 0.288735 | 2,459 | 62 | 79 | 39.66129 | 0.849057 | 0.240748 | 0 | 0.263158 | 0 | 0 | 0.059935 | 0.011879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.184211 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2ce16f5548131738730f2e20d1ac6edb82ae9908 | 267 | py | Python | src/game_create.py | Boromir-the-Brave/Adventure_Game | 514ffedb2c5c2de10142d518536d871c5549fe70 | [
"MIT"
] | null | null | null | src/game_create.py | Boromir-the-Brave/Adventure_Game | 514ffedb2c5c2de10142d518536d871c5549fe70 | [
"MIT"
] | null | null | null | src/game_create.py | Boromir-the-Brave/Adventure_Game | 514ffedb2c5c2de10142d518536d871c5549fe70 | [
"MIT"
] | null | null | null | from things import Room, Item
def build_rooms():
print("Building world...", end="")
house_front_yard = Room("house_front_yard")
print(" done.")
return
def generate_items():
print("Generating items...", end="")
print(" done.")
return | 15.705882 | 47 | 0.617978 | 32 | 267 | 4.96875 | 0.625 | 0.125786 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217228 | 267 | 17 | 48 | 15.705882 | 0.760766 | 0 | 0 | 0.4 | 1 | 0 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0.4 | 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 |
2ce7ff88165b0be9e3de7939466cfd586323888d | 1,381 | py | Python | tests/data/program_analysis/crop_yield.py | mikiec84/delphi | 2e517f21e76e334c7dfb14325d25879ddf26d10d | [
"Apache-2.0"
] | 25 | 2018-03-03T11:57:57.000Z | 2022-01-16T21:19:54.000Z | tests/data/program_analysis/crop_yield.py | mikiec84/delphi | 2e517f21e76e334c7dfb14325d25879ddf26d10d | [
"Apache-2.0"
] | 385 | 2018-02-21T16:52:06.000Z | 2022-02-17T07:44:56.000Z | tests/data/program_analysis/crop_yield.py | mikiec84/delphi | 2e517f21e76e334c7dfb14325d25879ddf26d10d | [
"Apache-2.0"
] | 19 | 2018-03-20T01:08:11.000Z | 2021-09-29T01:04:49.000Z | import sys
from typing import List
import math
from delphi.translators.for2py.format import *
from delphi.translators.for2py.arrays import *
from delphi.translators.for2py.static_save import *
from delphi.translators.for2py.strings import *
from dataclasses import dataclass
from delphi.translators.for2py.types_ext impo... | 32.880952 | 94 | 0.653874 | 202 | 1,381 | 4.336634 | 0.272277 | 0.057078 | 0.157534 | 0.15411 | 0.202055 | 0.043379 | 0 | 0 | 0 | 0 | 0 | 0.050269 | 0.193338 | 1,381 | 41 | 95 | 33.682927 | 0.736086 | 0 | 0 | 0 | 0 | 0 | 0.021723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.324324 | 0 | 0.378378 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2ceb0ead09b5923fbf6956eee4f51dc54de659d4 | 9,109 | py | Python | reporting/sortshootout.py | pinobatch/numism | 092bd9c742cd17c933622a6a745346263e6069dc | [
"Apache-2.0"
] | 11 | 2020-11-25T14:31:42.000Z | 2022-01-02T09:09:14.000Z | reporting/sortshootout.py | pinobatch/numism | 092bd9c742cd17c933622a6a745346263e6069dc | [
"Apache-2.0"
] | 2 | 2021-09-20T18:10:19.000Z | 2021-09-24T22:13:24.000Z | reporting/sortshootout.py | pinobatch/numism | 092bd9c742cd17c933622a6a745346263e6069dc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import html5lib
from xml.etree import ElementTree as ET
import subprocess
from html import escape as H
"""
If you've found this, then you should help me report a bug in IDLE,
the official Python code editor. In IDLE 3.8.5 on Python 3.8.5 in
Xubuntu 20.04 LTS, if you open a ... | 36.582329 | 89 | 0.620046 | 1,294 | 9,109 | 4.321484 | 0.306801 | 0.027539 | 0.012876 | 0.009299 | 0.101216 | 0.081545 | 0.06098 | 0.022532 | 0.013233 | 0 | 0 | 0.028806 | 0.237787 | 9,109 | 248 | 90 | 36.729839 | 0.77661 | 0.172137 | 0 | 0.04908 | 0 | 0.030675 | 0.21894 | 0.03578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055215 | false | 0.110429 | 0.03681 | 0 | 0.116564 | 0.042945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2cf2dcfd9a05883c6fb715917ad3d8ce662ec92f | 12,659 | py | Python | citcall/citcall.py | saggafarsyad/citcall-python | 8fde5d312f8974103902fbb3395a380d6602ea72 | [
"MIT"
] | null | null | null | citcall/citcall.py | saggafarsyad/citcall-python | 8fde5d312f8974103902fbb3395a380d6602ea72 | [
"MIT"
] | null | null | null | citcall/citcall.py | saggafarsyad/citcall-python | 8fde5d312f8974103902fbb3395a380d6602ea72 | [
"MIT"
] | null | null | null | import base64
import json
import re
import requests
class Citcall:
"""
This is the Python Class client library for use Citcall's API.
To use this, you'll need a Citcall account and Your IP has been filtered in citcall system.
See citcall documentation for more information. This is currently a beta ... | 31.726817 | 96 | 0.388103 | 1,053 | 12,659 | 4.548908 | 0.155745 | 0.03382 | 0.03215 | 0.020668 | 0.554697 | 0.544676 | 0.530689 | 0.526305 | 0.516493 | 0.516493 | 0 | 0.025049 | 0.520657 | 12,659 | 398 | 97 | 31.806533 | 0.764338 | 0.072439 | 0 | 0.619718 | 0 | 0 | 0.094993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0.003521 | 0.014085 | 0 | 0.158451 | 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 |
2cf39142739a6b9ab825f8b9f531b60876c6a8d3 | 1,531 | py | Python | demo/smallbatch.py | dw/acid | 3aabb3940f23c052ed7a009cff5d84cc50b099fb | [
"Apache-2.0"
] | 15 | 2015-09-24T03:57:49.000Z | 2020-08-25T22:44:20.000Z | demo/smallbatch.py | dw/acid | 3aabb3940f23c052ed7a009cff5d84cc50b099fb | [
"Apache-2.0"
] | 2 | 2015-06-21T02:06:20.000Z | 2019-11-14T14:02:39.000Z | demo/smallbatch.py | dw/acid | 3aabb3940f23c052ed7a009cff5d84cc50b099fb | [
"Apache-2.0"
] | 1 | 2019-09-11T03:13:52.000Z | 2019-09-11T03:13:52.000Z |
#
# Compare behaviour when batches are large and record size is tiny.
#
import gzip
import random
import time
import acid
import acid.core
import acid.keylib
from demo_util import store_len
from demo_util import store_size
words = sorted(line.decode().strip()
for line in gzip.open('words.gz'))
word... | 23.19697 | 72 | 0.664272 | 222 | 1,531 | 4.486486 | 0.405405 | 0.048193 | 0.052209 | 0.072289 | 0.319277 | 0.172691 | 0.172691 | 0.172691 | 0.172691 | 0.172691 | 0 | 0.01319 | 0.207707 | 1,531 | 65 | 73 | 23.553846 | 0.807914 | 0.042456 | 0 | 0.177778 | 0 | 0 | 0.069815 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | null | null | 0 | 0.177778 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2cf646d288f5f95bb47cb4a7b8704e76b0aebdc4 | 482 | py | Python | beatup/migrations/0012_alter_post_author.py | divmoe/beatup | 03476480a07e398ea60823e224dafafa42c36bdb | [
"MIT"
] | null | null | null | beatup/migrations/0012_alter_post_author.py | divmoe/beatup | 03476480a07e398ea60823e224dafafa42c36bdb | [
"MIT"
] | null | null | null | beatup/migrations/0012_alter_post_author.py | divmoe/beatup | 03476480a07e398ea60823e224dafafa42c36bdb | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-25 04:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('beatup', '0011_alter_customer_photo'),
]
operations = [
migrations.AlterField(
model_name='post... | 24.1 | 114 | 0.641079 | 56 | 482 | 5.428571 | 0.696429 | 0.078947 | 0.092105 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051771 | 0.238589 | 482 | 19 | 115 | 25.368421 | 0.776567 | 0.093361 | 0 | 0 | 1 | 0 | 0.128736 | 0.057471 | 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 |
2cf663390607e4f3e8c48ee32a6526740fcba9db | 321 | py | Python | authenticate.py | kaamilmirza/UltimateTwitterScrapper | e19a8b1d2af41d0d78291bbecf192125b38c83fe | [
"MIT"
] | 1 | 2021-05-03T15:12:05.000Z | 2021-05-03T15:12:05.000Z | authenticate.py | kaamilmirza/UltimateTwitterScrapper | e19a8b1d2af41d0d78291bbecf192125b38c83fe | [
"MIT"
] | null | null | null | authenticate.py | kaamilmirza/UltimateTwitterScrapper | e19a8b1d2af41d0d78291bbecf192125b38c83fe | [
"MIT"
] | null | null | null | import tweepy
import pandas as pd
config = pd.read_csv("./config.csv")
twitterAPIkey = config['twitterApiKey'][0]
twitterAPIS = config['twitterApiSecret'][0]
twitterAPIAT = config['twitterApiAccessToken'][0]
twitterAPIATS = config['twitterApiAccessTokenSecret'][0]
auth = tweepy.OAuthHandler(twitterAPIkey, twitterAPIS)... | 32.1 | 56 | 0.788162 | 33 | 321 | 7.636364 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013559 | 0.080997 | 321 | 9 | 57 | 35.666667 | 0.840678 | 0 | 0 | 0 | 0 | 0 | 0.277259 | 0.149533 | 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 |
2cf7fe5637e98885257b87fa5aa43783f228d558 | 1,479 | py | Python | events/migrations/0019_eventspage.py | meagles/site | c54a61a0e9e98788086d0d9300baebbcac7fb625 | [
"MIT"
] | 4 | 2021-08-16T23:42:50.000Z | 2022-01-09T23:59:23.000Z | events/migrations/0019_eventspage.py | meagles/site | c54a61a0e9e98788086d0d9300baebbcac7fb625 | [
"MIT"
] | 29 | 2020-12-30T20:43:48.000Z | 2022-03-23T01:57:32.000Z | events/migrations/0019_eventspage.py | meagles/site | c54a61a0e9e98788086d0d9300baebbcac7fb625 | [
"MIT"
] | 2 | 2021-08-20T01:18:07.000Z | 2021-12-02T21:38:55.000Z | # Generated by Django 3.2.6 on 2021-08-27 19:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0062_comment_models_and_pagesubscription'),
('events', '0018_alter_apicalls_datetime'),
]
op... | 49.3 | 213 | 0.65382 | 182 | 1,479 | 5.159341 | 0.510989 | 0.034079 | 0.044728 | 0.070288 | 0.140575 | 0.140575 | 0.072417 | 0 | 0 | 0 | 0 | 0.027778 | 0.221095 | 1,479 | 29 | 214 | 51 | 0.787326 | 0.030426 | 0 | 0 | 1 | 0 | 0.295391 | 0.047486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
fa025a96443f52fdefb70892f031be27a49481f1 | 2,868 | py | Python | doggunk.py | David-OC/dancingdog | 6c46d6ce03e20d22ef2ba6f818d9b99a91efa2d3 | [
"MIT"
] | null | null | null | doggunk.py | David-OC/dancingdog | 6c46d6ce03e20d22ef2ba6f818d9b99a91efa2d3 | [
"MIT"
] | null | null | null | doggunk.py | David-OC/dancingdog | 6c46d6ce03e20d22ef2ba6f818d9b99a91efa2d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import curses
dogdance1=[[
' ▄','▄','▄', #3
'▄▄▄▄','▄','▄', #6
'▄'],[' ',' ', #9
' ', '▄','▄'],#12
[' ',' ' , '▄',#15
' ','▄',' ',#18
'▄▄', '▄▄ '],[ ' ',#21
' ','▄',' ',#24
' ','▄',' ',#27
'▄', ' ','▄▄▄▄▄▄',#30
'▄'],[' ',' ',#33
'▄▄▄▄',' ',' ',#36
'▀'],[' '... | 21.89313 | 61 | 0.293933 | 431 | 2,868 | 2.178654 | 0.155452 | 0.029819 | 0.019169 | 0.038339 | 0.530351 | 0.500532 | 0.462194 | 0.462194 | 0.462194 | 0.462194 | 0 | 0.174272 | 0.36576 | 2,868 | 130 | 62 | 22.061538 | 0.282573 | 0.164923 | 0 | 0.481818 | 0 | 0 | 0.162953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.009091 | 0 | 0.027273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa043afd692d22df5463606df7d02227f91d49ad | 2,633 | py | Python | lib/python2.7/site-packages/pyscope/config.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/pyscope/config.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | lib/python2.7/site-packages/pyscope/config.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | 1 | 2019-09-05T20:58:37.000Z | 2019-09-05T20:58:37.000Z | #!/usr/bin/env python
import sys
import ConfigParser
import imp
import os
import inspect
import pyscope
import pyscope.tem
import pyscope.ccdcamera
import pyami.fileutil
configured = {}
temclasses = None
cameraclasses = None
configfiles = None
def parse():
global configured, temclasses, cameraclasses, configfiles
... | 22.504274 | 79 | 0.699582 | 334 | 2,633 | 5.422156 | 0.311377 | 0.046383 | 0.052457 | 0.036444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001401 | 0.186479 | 2,633 | 116 | 80 | 22.698276 | 0.844071 | 0.028485 | 0 | 0.161616 | 0 | 0 | 0.051292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010101 | 0.090909 | null | null | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fa07c14f5f3538bab3600567ff4abc3c288f1fcd | 31,022 | py | Python | Reading/DistractionTask_serial_d7.py | djangraw/PsychoPyParadigms | f63072221f9abb7fb1c64457b65dcb3555e3919b | [
"MIT"
] | 50 | 2016-02-27T23:06:57.000Z | 2021-12-23T01:22:18.000Z | Reading/DistractionTask_serial_d7.py | caofeizhen/PsychoPyParadigms | dd0921d94d21cc04be8f74de684e24f09dbc9e4d | [
"MIT"
] | null | null | null | Reading/DistractionTask_serial_d7.py | caofeizhen/PsychoPyParadigms | dd0921d94d21cc04be8f74de684e24f09dbc9e4d | [
"MIT"
] | 44 | 2016-10-03T10:47:06.000Z | 2021-12-23T01:22:20.000Z | #!/usr/bin/env python2
"""Display multi-page text with simultaneous auditory distractions, recording eye position data using the SMI eye tracker."""
# DistractionTask_serial_d6.py
# Created 3/16/15 by DJ based on VidLecTask.py
# Updated 3/31/15 by DJ - renamed from ReadingTask_dict_d2.py.
# Updated 4/1-16/15 by DJ - in... | 45.755162 | 266 | 0.679292 | 3,727 | 31,022 | 5.603971 | 0.222968 | 0.015513 | 0.013646 | 0.01896 | 0.238437 | 0.194436 | 0.156851 | 0.118836 | 0.097146 | 0.087666 | 0 | 0.021005 | 0.168203 | 31,022 | 677 | 267 | 45.822747 | 0.788405 | 0.296983 | 0 | 0.198391 | 0 | 0.002681 | 0.237272 | 0.037091 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008043 | 0.024129 | null | null | 0.050938 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fa0a3b676d0b9f6a308205238ee2a2b9258e88e8 | 1,945 | py | Python | config/presets/Modes/Python/T - Bits V/main.py | The-XOR/EYESY_OS | 6a5e3d0bc5574ba2311e0c7e81c600c3af7a3e34 | [
"BSD-3-Clause"
] | 18 | 2021-03-06T05:39:30.000Z | 2022-03-25T17:59:23.000Z | presets/Modes/Python/T - Bits V/main.py | jqrsound/EYESY_OS_for_RasPiSound | ac117b91cd84ad4c0566bd1a7d4c7b1ccc01cf62 | [
"BSD-3-Clause"
] | null | null | null | presets/Modes/Python/T - Bits V/main.py | jqrsound/EYESY_OS_for_RasPiSound | ac117b91cd84ad4c0566bd1a7d4c7b1ccc01cf62 | [
"BSD-3-Clause"
] | 4 | 2021-03-14T18:38:42.000Z | 2021-07-11T14:31:18.000Z | import os
import pygame
import random
trigger = False
x = 0
y = 0
height = 720
width = 1340
linelength = 50
lineAmt = 20
displace = 10
ypos = [random.randrange(-200,720) for i in range(0, lineAmt + 2)]
ypos1 = [(ypos[i]+displace) for i in range(0, lineAmt + 2)]
xr = 360
yr = 240
def setup(screen, etc):
global trigge... | 29.923077 | 97 | 0.604113 | 306 | 1,945 | 3.810458 | 0.22549 | 0.048027 | 0.054889 | 0.102916 | 0.486278 | 0.486278 | 0.426244 | 0.403087 | 0.403087 | 0.329331 | 0 | 0.076819 | 0.237018 | 1,945 | 64 | 98 | 30.390625 | 0.708895 | 0.02108 | 0 | 0.351852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa0b340227b88e185ca27b83f81e1a91a035a54f | 1,595 | py | Python | python2.7/site-packages/twisted/names/hosts.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 19 | 2015-05-01T19:59:03.000Z | 2021-12-09T08:03:16.000Z | python2.7/site-packages/twisted/names/hosts.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 1 | 2020-08-02T15:40:49.000Z | 2020-08-02T15:40:49.000Z | python2.7/site-packages/twisted/names/hosts.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 30 | 2015-03-25T19:40:07.000Z | 2021-05-28T22:59:26.000Z | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.names import dns
from twisted.persisted import styles
from twisted.python import failure
from twisted.internet import defer
from twisted.names import common
def searchFileFor(file, name):
try:
fp = open(file)
... | 25.725806 | 99 | 0.607524 | 197 | 1,595 | 4.873096 | 0.467005 | 0.057292 | 0.033333 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018341 | 0.282132 | 1,595 | 61 | 100 | 26.147541 | 0.820087 | 0.131034 | 0 | 0.051282 | 0 | 0 | 0.007994 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.102564 | false | 0 | 0.128205 | 0 | 0.435897 | 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 |
fa2206befd93abc7e6dc169a22c48a95a2492803 | 7,606 | py | Python | scripts/create_testcase.py | Mohit1295/anycore-riscv-tests | 0e2394965c465b25a1bb7c558e8bad4826ba8a9f | [
"BSD-3-Clause"
] | null | null | null | scripts/create_testcase.py | Mohit1295/anycore-riscv-tests | 0e2394965c465b25a1bb7c558e8bad4826ba8a9f | [
"BSD-3-Clause"
] | null | null | null | scripts/create_testcase.py | Mohit1295/anycore-riscv-tests | 0e2394965c465b25a1bb7c558e8bad4826ba8a9f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
from optparse import OptionParser
import csv
import os
import sys
import re
def test_list_to_testcases(test_list, bmark_bin_prefix):
testcases = ''
for test in test_list:
#Prefix the path name to the first element of the testcase
testcases = testcases+bmark_bin_prefix+'+'.joi... | 39.409326 | 119 | 0.644097 | 1,054 | 7,606 | 4.432638 | 0.212524 | 0.037671 | 0.025043 | 0.025471 | 0.462971 | 0.408176 | 0.372003 | 0.349315 | 0.329837 | 0.303938 | 0 | 0.008297 | 0.255193 | 7,606 | 192 | 120 | 39.614583 | 0.816417 | 0.229819 | 0 | 0.148438 | 0 | 0 | 0.137777 | 0.014602 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007813 | 0.039063 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fa2a57bb614ead280ba9608748238bb3d5844f3d | 368 | py | Python | rbtools/tests.py | brettdh/rbtools | ddaa655aeac4a087580696f8e1155f90637d80be | [
"MIT"
] | null | null | null | rbtools/tests.py | brettdh/rbtools | ddaa655aeac4a087580696f8e1155f90637d80be | [
"MIT"
] | null | null | null | rbtools/tests.py | brettdh/rbtools | ddaa655aeac4a087580696f8e1155f90637d80be | [
"MIT"
] | null | null | null | class OptionsStub(object):
def __init__(self):
self.debug = True
self.guess_summary = False
self.guess_description = False
self.tracking = None
self.username = None
self.password = None
self.repository_url = None
self.disable_proxy = False
self... | 28.307692 | 38 | 0.608696 | 40 | 368 | 5.4 | 0.5 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320652 | 368 | 12 | 39 | 30.666667 | 0.864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fa2c30b60157d2713804aac39d1fde9fe4884aa4 | 726 | py | Python | PosteMeO/posts/models.py | sjkdm0/LearningDjangoReact | cba66b034008336dda49767e2280145a7dd0c744 | [
"MIT"
] | null | null | null | PosteMeO/posts/models.py | sjkdm0/LearningDjangoReact | cba66b034008336dda49767e2280145a7dd0c744 | [
"MIT"
] | null | null | null | PosteMeO/posts/models.py | sjkdm0/LearningDjangoReact | cba66b034008336dda49767e2280145a7dd0c744 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class PostLike(models.Model):
post = models.ForeignKey("Post", on_delete=models.CASCADE)
user = models.ForeignKey(User, on_delete=models.CASCADE)
timestamp = models.DateTimeField(auto_now_add=True)
class Post(models.Model):
tit... | 34.571429 | 99 | 0.750689 | 96 | 726 | 5.510417 | 0.5 | 0.090737 | 0.079395 | 0.119093 | 0.279773 | 0.279773 | 0.155009 | 0 | 0 | 0 | 0 | 0.011236 | 0.141873 | 726 | 20 | 100 | 36.3 | 0.837881 | 0 | 0 | 0 | 0 | 0 | 0.017906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 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 |
fa4da4ce28a8070181749bfaf143fa1dc9e3774d | 621 | py | Python | Chapter06/Generate Keys.py | delgadoa1/Python-For-Offensive-Pentest | c768d61f15fccc77768eb400b5c0e36bebde9511 | [
"MIT"
] | 62 | 2018-05-22T20:46:01.000Z | 2022-03-30T11:25:58.000Z | Chapter06/Generate Keys.py | delgadoa1/Python-For-Offensive-Pentest | c768d61f15fccc77768eb400b5c0e36bebde9511 | [
"MIT"
] | null | null | null | Chapter06/Generate Keys.py | delgadoa1/Python-For-Offensive-Pentest | c768d61f15fccc77768eb400b5c0e36bebde9511 | [
"MIT"
] | 61 | 2018-04-27T16:49:33.000Z | 2022-03-27T17:59:32.000Z | # Python For Offensive PenTest
# Download Pycrypto for Windows - pycrypto 2.6 for win32 py 2.7
# http://www.voidspace.org.uk/python/modules.shtml#pycrypto
# Download Pycrypto source
# https://pypi.python.org/pypi/pycrypto
# For Kali, after extract the tar file, invoke "python setup.py install"
# Generate Keys
from ... | 28.227273 | 72 | 0.768116 | 96 | 621 | 4.895833 | 0.583333 | 0.038298 | 0.038298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.143317 | 621 | 21 | 73 | 29.571429 | 0.857143 | 0.650564 | 0 | 0 | 0 | 0 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fa504a4f85fe40f1c5edc57084a52bf150dd87ac | 5,804 | py | Python | lindenmayer.py | josephnavarro/l-system-drawing | 95d93aa9fa4df2eb92ac5c5fd1570423837eeec0 | [
"MIT"
] | 1 | 2015-11-28T12:09:56.000Z | 2015-11-28T12:09:56.000Z | lindenmayer.py | navarro0/l-system-drawing | 700a445308338d788eb4c41b74c427de74f20a6b | [
"MIT"
] | null | null | null | lindenmayer.py | navarro0/l-system-drawing | 700a445308338d788eb4c41b74c427de74f20a6b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Joey Navarro
#
# This is a test of a Lindenmayer grammar that generates
# rather realistic-looking plant shrubbery. You can go to
# http://en.wikipedia.org/wiki/L-system for more information.
# This script requires the python-pygame dependency.
#
# Licensed under the MIT License.
import pygam... | 48.773109 | 113 | 0.545658 | 760 | 5,804 | 4.089474 | 0.351316 | 0.031853 | 0.036036 | 0.010618 | 0.151866 | 0.112613 | 0.093308 | 0.093308 | 0.075933 | 0.052124 | 0 | 0.028065 | 0.349242 | 5,804 | 118 | 114 | 49.186441 | 0.794811 | 0.317023 | 0 | 0.177778 | 1 | 0 | 0.017544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.022222 | 0 | 0.088889 | 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 |
fa56c7775bbce6cdb7280a6dd1d3c756b32d2cf6 | 1,957 | py | Python | src/explanation/surrogate_manual.py | MauroLuzzatto/algorithmic-explanations | 4a362ae9576cc68ecf4b61dd6bad2105ff62bf57 | [
"Apache-2.0"
] | null | null | null | src/explanation/surrogate_manual.py | MauroLuzzatto/algorithmic-explanations | 4a362ae9576cc68ecf4b61dd6bad2105ff62bf57 | [
"Apache-2.0"
] | null | null | null | src/explanation/surrogate_manual.py | MauroLuzzatto/algorithmic-explanations | 4a362ae9576cc68ecf4b61dd6bad2105ff62bf57 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 16 23:08:55 2021
@author: maurol
"""
import os
from typing import Dict
import graphviz
import pandas as pd
from sklearn.tree import DecisionTreeRegressor
# TRUE False
f = """
digraph Tree {
node [shape=box, style="rounded", color="black", fontname=helvetica] ;
edge ... | 24.4625 | 110 | 0.610118 | 272 | 1,957 | 4.349265 | 0.444853 | 0.08115 | 0.121724 | 0.048183 | 0.091293 | 0.060862 | 0 | 0 | 0 | 0 | 0 | 0.072529 | 0.203884 | 1,957 | 80 | 111 | 24.4625 | 0.686778 | 0.043945 | 0 | 0 | 0 | 0.016393 | 0.729469 | 0.069243 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.081967 | 0 | 0.098361 | 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 |
fa59991c2027543018847536443a0e1937c884d2 | 8,561 | py | Python | Unet/utils.py | mcchran/segmentations | 508cd5f80ccdad1bccf528d14a37e90668a323f7 | [
"MIT"
] | 3 | 2019-01-23T09:03:30.000Z | 2020-11-20T09:56:24.000Z | Unet/utils.py | mcchran/image_segmentation | 508cd5f80ccdad1bccf528d14a37e90668a323f7 | [
"MIT"
] | null | null | null | Unet/utils.py | mcchran/image_segmentation | 508cd5f80ccdad1bccf528d14a37e90668a323f7 | [
"MIT"
] | null | null | null | #
# Utilities file
#
from keras.callbacks import EarlyStopping
from glob import glob
import os, numpy as np
from keras.preprocessing import image
from PIL import Image
from config import DEBUG_LEVEL
class meetExpectations(EarlyStopping):
'''
Applies an early stopping when a metric threshold ... | 34.244 | 112 | 0.579722 | 1,145 | 8,561 | 4.180786 | 0.262882 | 0.010445 | 0.025068 | 0.01901 | 0.091289 | 0.064132 | 0.039273 | 0.02841 | 0.006267 | 0 | 0 | 0.015701 | 0.300666 | 8,561 | 249 | 113 | 34.381526 | 0.783865 | 0.275435 | 0 | 0.066176 | 0 | 0 | 0.044928 | 0 | 0 | 0 | 0 | 0.012048 | 0.022059 | 1 | 0.073529 | false | 0.007353 | 0.044118 | 0 | 0.191176 | 0.022059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fa6387eb78193ea70c6e08655611c3be82b222b7 | 3,792 | py | Python | generate_set.py | WilliamCSA04/sigver_wiwd | 2420857850092ea10dae23e9e720abebb6972b3e | [
"BSD-2-Clause"
] | null | null | null | generate_set.py | WilliamCSA04/sigver_wiwd | 2420857850092ea10dae23e9e720abebb6972b3e | [
"BSD-2-Clause"
] | null | null | null | generate_set.py | WilliamCSA04/sigver_wiwd | 2420857850092ea10dae23e9e720abebb6972b3e | [
"BSD-2-Clause"
] | null | null | null | import random
import os
from process_helper import filter_genuine, filter_forgery, filter_by_text, remove_invalid_files
def split_into_train_test(array, genuine_user, dataset_path, genuine_train_quantity, forgery_train_quantity, random_train_quantity):
print("user: " + genuine_user)
signature_images = os.listd... | 55.764706 | 132 | 0.810918 | 503 | 3,792 | 5.61829 | 0.127237 | 0.270701 | 0.121019 | 0.089526 | 0.66879 | 0.521231 | 0.394904 | 0.208068 | 0.128096 | 0.097665 | 0 | 0.003053 | 0.13634 | 3,792 | 68 | 133 | 55.764706 | 0.859847 | 0.088871 | 0 | 0.076923 | 0 | 0 | 0.00174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.057692 | 0 | 0.211538 | 0.019231 | 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 |
fa67379838682e3de84e272633cbece209ddd3df | 1,605 | py | Python | app/belinsky/routes/observability.py | riZZZhik/word_finder | 88814712270e79d13e002e2dc015a8bf956ecab5 | [
"Apache-2.0"
] | null | null | null | app/belinsky/routes/observability.py | riZZZhik/word_finder | 88814712270e79d13e002e2dc015a8bf956ecab5 | [
"Apache-2.0"
] | 1 | 2022-03-30T17:00:31.000Z | 2022-03-30T17:00:31.000Z | app/belinsky/routes/observability.py | riZZZhik/word_finder | 88814712270e79d13e002e2dc015a8bf956ecab5 | [
"Apache-2.0"
] | null | null | null | """Belinsky observability blueprint."""
import os
from flask import Blueprint
from healthcheck import HealthCheck
from healthcheck.security import safe_dict
from prometheus_client import CollectorRegistry, generate_latest, multiprocess
from ..database import get_all
from ..models import User
# Create healthcheck fu... | 29.722222 | 87 | 0.745171 | 172 | 1,605 | 6.767442 | 0.348837 | 0.064433 | 0.046392 | 0.054124 | 0.073024 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0.004431 | 0.156386 | 1,605 | 53 | 88 | 30.283019 | 0.855244 | 0.223676 | 0 | 0 | 0 | 0 | 0.110379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.037037 | 0.259259 | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
fa6a163bed5453790c4ce5e1d4848ba6f998f886 | 532 | py | Python | month01/all_code/day17/exercise02.py | chaofan-zheng/tedu-python-demo | abe983ddc52690f4726cf42cc6390cba815026d8 | [
"Apache-2.0"
] | 4 | 2021-01-07T14:25:15.000Z | 2021-02-01T10:36:10.000Z | month01/all_code/day17/exercise02.py | chaofan-zheng/tedu-python-demo | abe983ddc52690f4726cf42cc6390cba815026d8 | [
"Apache-2.0"
] | null | null | null | month01/all_code/day17/exercise02.py | chaofan-zheng/tedu-python-demo | abe983ddc52690f4726cf42cc6390cba815026d8 | [
"Apache-2.0"
] | null | null | null | # 练习:使用学生列表封装以下三个列表中数据
class Student:
def __init__(self, name="", age=0, sex=""):
self.name = name
self.age = age
self.sex = sex
list_student_name = ["悟空", "八戒", "白骨精"]
list_student_age = [28, 25, 36]
list_student_sex = ["男", "男", "女"]
list_students = []
for item in zip(list_student_name,... | 24.181818 | 71 | 0.62594 | 77 | 532 | 4.077922 | 0.415584 | 0.210191 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.203008 | 532 | 21 | 72 | 25.333333 | 0.712264 | 0.193609 | 0 | 0 | 0 | 0 | 0.023585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0.076923 | 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 |
fa70cf25d13f5ec7f2b27d3ede817753179ded40 | 350 | py | Python | host/load.py | flowswitch/phison | d9415a8d5c62354d09cd6410754c9d8bb65e164f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | host/load.py | flowswitch/phison | d9415a8d5c62354d09cd6410754c9d8bb65e164f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | host/load.py | flowswitch/phison | d9415a8d5c62354d09cd6410754c9d8bb65e164f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | """load code"""
import sys
import PyScsi as drv
import Phison as ph
if len(sys.argv)!=2:
sys.exit("Load and start PRAM code file\nUsage: %s <file>" % (sys.argv[0]))
disk = ph.FindDrive()
if not disk:
sys.exit("No Phison devices found !")
drv.err_mode = drv.err_mode_raise
drv.open(disk)
print "Loading..."
ph.LoadBu... | 19.444444 | 76 | 0.694286 | 62 | 350 | 3.870968 | 0.580645 | 0.0875 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0.137143 | 350 | 17 | 77 | 20.588235 | 0.784768 | 0 | 0 | 0 | 0 | 0 | 0.244776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3af8c2ceb85ad3864247008f48e0db043a674bca | 351 | py | Python | manage.py | afh/yabab | 5abbe08cf4a4bf104365770b16e43e5c0a3ecee2 | [
"MIT"
] | 1 | 2019-10-26T16:43:53.000Z | 2019-10-26T16:43:53.000Z | manage.py | afh/yabab | 5abbe08cf4a4bf104365770b16e43e5c0a3ecee2 | [
"MIT"
] | null | null | null | manage.py | afh/yabab | 5abbe08cf4a4bf104365770b16e43e5c0a3ecee2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
from yabab import app, db
app.config.from_object('app_conf')
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ ==... | 18.473684 | 53 | 0.729345 | 50 | 351 | 4.9 | 0.56 | 0.073469 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0033 | 0.136752 | 351 | 18 | 54 | 19.5 | 0.805281 | 0.119658 | 0 | 0 | 0 | 0 | 0.058632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
3af9032350c3acb402c76f61d10bfa42809d99d3 | 1,957 | py | Python | pychron/pipeline/plot/panels/spectrum_panel.py | ael-noblegas/pychron | 6ebbbb1f66a614972b62b7a9be4c784ae61b5d62 | [
"Apache-2.0"
] | null | null | null | pychron/pipeline/plot/panels/spectrum_panel.py | ael-noblegas/pychron | 6ebbbb1f66a614972b62b7a9be4c784ae61b5d62 | [
"Apache-2.0"
] | 80 | 2018-07-17T20:10:20.000Z | 2021-08-17T15:38:24.000Z | pychron/pipeline/plot/panels/spectrum_panel.py | UManPychron/pychron | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | [
"Apache-2.0"
] | null | null | null | # ===============================================================================
# Copyright 2013 Jake Ross
#
# 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... | 40.770833 | 88 | 0.58559 | 225 | 1,957 | 4.946667 | 0.515556 | 0.053908 | 0.048518 | 0.028751 | 0.030548 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.184466 | 1,957 | 47 | 89 | 41.638298 | 0.688596 | 0.50792 | 0 | 0 | 0 | 0 | 0.036093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d70772dfb7d83107d50073ae0478c40badbf7400 | 261 | py | Python | linktitle/routes.py | zeinabmohammed/linktitle | 7bfcfca805e0b6a2deb04e9e424d1d0e6af538dd | [
"MIT"
] | 2 | 2020-06-15T11:42:01.000Z | 2021-09-29T21:47:20.000Z | linktitle/routes.py | zeinabmohammed/linktitle | 7bfcfca805e0b6a2deb04e9e424d1d0e6af538dd | [
"MIT"
] | 1 | 2020-01-13T06:34:33.000Z | 2020-01-13T08:44:47.000Z | linktitle/routes.py | zeinabmohammed/linktitle | 7bfcfca805e0b6a2deb04e9e424d1d0e6af538dd | [
"MIT"
] | 4 | 2017-01-17T11:52:50.000Z | 2021-09-29T09:48:05.000Z | import frappe
from frappe.utils import cstr, unique
@frappe.whitelist()
def title_field(doctype, name):
meta = frappe.get_meta(doctype)
if meta.title_field:
return frappe.db.get_value(doctype, name, meta.title_field or 'name')
else:
return name | 26.1 | 72 | 0.743295 | 39 | 261 | 4.846154 | 0.512821 | 0.15873 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157088 | 261 | 10 | 73 | 26.1 | 0.859091 | 0 | 0 | 0 | 0 | 0 | 0.01581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d708c46731a71525d6b0e99570f170147ad25350 | 2,619 | py | Python | code/main.py | Samthebest999/AI-Friend | 035ba124a654aaa53ed302e2eff97eedf557fb41 | [
"MIT"
] | null | null | null | code/main.py | Samthebest999/AI-Friend | 035ba124a654aaa53ed302e2eff97eedf557fb41 | [
"MIT"
] | null | null | null | code/main.py | Samthebest999/AI-Friend | 035ba124a654aaa53ed302e2eff97eedf557fb41 | [
"MIT"
] | null | null | null | from functions import *
from imports import *
if os.path.exists("setup.py"):
os.remove("setup.py")
if os.path.exists("updater.py"):
os.remove("updater.py")
wget.download("https://raw.githubusercontent.com/Samthebest999/AI-Friend/main/code/updater.py")
def update():
current_toml = open("version.toml",... | 34.460526 | 116 | 0.586483 | 318 | 2,619 | 4.713836 | 0.402516 | 0.036691 | 0.029353 | 0.028019 | 0.312208 | 0.278853 | 0.248165 | 0.213476 | 0.144096 | 0.068045 | 0 | 0.004315 | 0.292096 | 2,619 | 75 | 117 | 34.92 | 0.804207 | 0.014891 | 0 | 0.096774 | 0 | 0.032258 | 0.315749 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.032258 | false | 0.032258 | 0.032258 | 0 | 0.145161 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d709fcd935f1fb85568fd4a109253f0e08c9ef98 | 21,869 | py | Python | gen-py/airr/ttypes.py | lasersonlab/airr-formats | 5f4e24eaa4538d0a562a524ffeffb54f2d37cf77 | [
"Apache-2.0"
] | 1 | 2016-06-22T21:22:43.000Z | 2016-06-22T21:22:43.000Z | gen-py/airr/ttypes.py | lasersonlab/airr-formats | 5f4e24eaa4538d0a562a524ffeffb54f2d37cf77 | [
"Apache-2.0"
] | null | null | null | gen-py/airr/ttypes.py | lasersonlab/airr-formats | 5f4e24eaa4538d0a562a524ffeffb54f2d37cf77 | [
"Apache-2.0"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.9.3)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:new_style
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TP... | 29.11984 | 188 | 0.618181 | 2,623 | 21,869 | 4.988944 | 0.068624 | 0.048754 | 0.034388 | 0.044017 | 0.760966 | 0.67981 | 0.621504 | 0.619441 | 0.58597 | 0.58597 | 0 | 0.019074 | 0.254424 | 21,869 | 750 | 189 | 29.158667 | 0.783502 | 0.023687 | 0 | 0.609677 | 1 | 0 | 0.028263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077419 | false | 0 | 0.006452 | 0.025806 | 0.204839 | 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 |
d70aed724ae03ed7f9023cce5753c0c5811ae60c | 469 | py | Python | papersite/spamdetector.py | josephabirached/papers | 6dfc1fddad38563d758096393f17fa7d9ae3c823 | [
"CC0-1.0"
] | 22 | 2015-01-18T21:22:53.000Z | 2018-01-07T06:15:06.000Z | papersite/spamdetector.py | josephabirached/papers | 6dfc1fddad38563d758096393f17fa7d9ae3c823 | [
"CC0-1.0"
] | 12 | 2015-01-21T11:38:09.000Z | 2022-01-17T13:29:22.000Z | papersite/spamdetector.py | josephabirached/papers | 6dfc1fddad38563d758096393f17fa7d9ae3c823 | [
"CC0-1.0"
] | 4 | 2015-04-15T11:36:45.000Z | 2021-01-28T20:59:32.000Z | ### Stupid, but extensible spam detector
STOP_SPAM_WORDS = ["Loan", "Lender", ".trade", ".bid", ".men", ".win"]
def is_spam(request):
if 'email' in request.form:
if any(
[ word.upper() in request.form['email'].upper()
for word in STOP_SPAM_WORDS]):
return True
if 'username' in request.f... | 27.588235 | 70 | 0.609808 | 64 | 469 | 4.359375 | 0.4375 | 0.129032 | 0.18638 | 0.107527 | 0.551971 | 0.551971 | 0.551971 | 0.551971 | 0.551971 | 0.286738 | 0 | 0 | 0.238806 | 469 | 16 | 71 | 29.3125 | 0.781513 | 0.076759 | 0 | 0.461538 | 0 | 0 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 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 |
d70b4c4881d847c997bf3eed607d4dfad1f2a266 | 839 | py | Python | manage/config.py | augustand/kervice | ccbda8196805a542a9324b404e02d83cc130926e | [
"MIT"
] | 1 | 2017-12-24T07:59:25.000Z | 2017-12-24T07:59:25.000Z | manage/config.py | augustand/kervice | ccbda8196805a542a9324b404e02d83cc130926e | [
"MIT"
] | null | null | null | manage/config.py | augustand/kervice | ccbda8196805a542a9324b404e02d83cc130926e | [
"MIT"
] | null | null | null | import logging
class Config(object):
def __init__(self):
self.__cfg = {
"log": {
"format": "PID %(process)d %(asctime)s %(levelname)-5s %(threadName)-10s [%(lineno)d]%(name)-15s %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S",
"filename": "",
... | 22.078947 | 126 | 0.436234 | 80 | 839 | 4.35 | 0.4875 | 0.140805 | 0.224138 | 0.137931 | 0.362069 | 0.362069 | 0.281609 | 0.281609 | 0.281609 | 0.281609 | 0 | 0.009823 | 0.393325 | 839 | 37 | 127 | 22.675676 | 0.67387 | 0.056019 | 0 | 0.25 | 0 | 0.05 | 0.239255 | 0.032951 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.45 | 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 |
d70fd01b55b8dc5af874d0fae15a94c2573fa841 | 933 | py | Python | examples/srx/srx_nat_proxyarp.py | cro/py-junos-eznc | 4c111476cc8eb7599462379ddf55743ae30bbf5c | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | examples/srx/srx_nat_proxyarp.py | cro/py-junos-eznc | 4c111476cc8eb7599462379ddf55743ae30bbf5c | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | examples/srx/srx_nat_proxyarp.py | cro/py-junos-eznc | 4c111476cc8eb7599462379ddf55743ae30bbf5c | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # for debugging ...
import pdb
from pprint import pprint as pp
from lxml import etree
# for the example ...
from jnpr.eznc import Netconf
from jnpr.eznc.resources.srx.nat import NatProxyArp
from jnpr.eznc.utils import Config
# create a junos device and open a connection
jdev = Netconf(user='jeremy', password='jerem... | 22.214286 | 67 | 0.604502 | 126 | 933 | 4.468254 | 0.579365 | 0.042629 | 0.063943 | 0.017762 | 0.028419 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044993 | 0.261522 | 933 | 42 | 68 | 22.214286 | 0.772134 | 0.385852 | 0 | 0 | 0 | 0 | 0.148746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.3 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d71344ebfdbf33f996715061bc4baa26e1912c75 | 1,389 | py | Python | ppmessage/db/sqlpgsql.py | gamert/ppmessage | dd4aaf29154679a093b2431d5e34af889ab16932 | [
"Apache-2.0"
] | 6 | 2017-11-03T17:31:52.000Z | 2020-06-14T09:14:36.000Z | ppmessage/db/sqlpgsql.py | gamert/ppmessage | dd4aaf29154679a093b2431d5e34af889ab16932 | [
"Apache-2.0"
] | 1 | 2017-02-21T01:07:22.000Z | 2017-04-07T04:48:02.000Z | ppmessage/db/sqlpgsql.py | gamert/ppmessage | dd4aaf29154679a093b2431d5e34af889ab16932 | [
"Apache-2.0"
] | 16 | 2017-08-08T01:25:47.000Z | 2019-09-17T16:32:06.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2016 PPMessage.
# Guijin Ding, dingguijin@gmail.com.
# All rights reserved
#
# db/sqlpsql.py
#
from .sqlnone import SqlNone
from ppmessage.core.constant import SQL
from ppmessage.core.singleton import singleton
from sqlalchemy.orm import sessionmaker
from sqlalchemy.orm ... | 25.722222 | 76 | 0.638589 | 179 | 1,389 | 4.73743 | 0.396648 | 0.084906 | 0.106132 | 0.106132 | 0.158019 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 0.009785 | 0.264219 | 1,389 | 53 | 77 | 26.207547 | 0.819961 | 0.138229 | 0 | 0 | 0 | 0 | 0.059865 | 0.030354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.258065 | 0.032258 | 0.483871 | 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 |
d71690a21b5a0ed6dfdf953187ed872ef4a7b8f8 | 1,530 | py | Python | eden/integration/hg/sparse_test.py | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/integration/hg/sparse_test.py | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/integration/hg/sparse_test.py | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | 31.875 | 81 | 0.580392 | 176 | 1,530 | 4.982955 | 0.698864 | 0.022805 | 0.022805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007597 | 0.311765 | 1,530 | 47 | 82 | 32.553191 | 0.825261 | 0.311111 | 0 | 0 | 0 | 0 | 0.182171 | 0 | 0 | 0 | 0 | 0.021277 | 0.066667 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d717eb39afeeda7aec39ecf3e5ea33865b7530a5 | 10,223 | py | Python | formulas/confluent_hypergeometric.py | pascalmolin/fungrim | f498ad76a385fe7a3b932a314747b7aa2ff475da | [
"MIT"
] | null | null | null | formulas/confluent_hypergeometric.py | pascalmolin/fungrim | f498ad76a385fe7a3b932a314747b7aa2ff475da | [
"MIT"
] | null | null | null | formulas/confluent_hypergeometric.py | pascalmolin/fungrim | f498ad76a385fe7a3b932a314747b7aa2ff475da | [
"MIT"
] | null | null | null | from .expr import *
def_Topic(
Title("Confluent hypergeometric functions"),
Entries(
"316533",
"f565f5",
"512bea",
"cee331",
"d6add6",
"1b9cc5",
"b9cc75",
),
Section("Hypergeometric series"),
Entries(
"4c41ad",
"0a0aec",
... | 45.035242 | 175 | 0.629365 | 1,467 | 10,223 | 4.364008 | 0.104294 | 0.018432 | 0.019681 | 0.075601 | 0.660887 | 0.617307 | 0.549516 | 0.469385 | 0.441893 | 0.420181 | 0 | 0.052932 | 0.159151 | 10,223 | 226 | 176 | 45.234513 | 0.691833 | 0.02377 | 0 | 0.285714 | 0 | 0 | 0.10634 | 0 | 0 | 0 | 0 | 0.004425 | 0 | 1 | 0 | true | 0 | 0.005291 | 0 | 0.005291 | 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 |
d71d04d38fab7aa45aaa600f680fa91be52afc7b | 20,616 | py | Python | Vargi_Bots/ros_packages/pkg_task5/scripts/node_t5_ur5_1_package_pick.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | 1 | 2021-07-13T07:05:29.000Z | 2021-07-13T07:05:29.000Z | Vargi_Bots/ros_packages/pkg_task5/scripts/node_t5_ur5_1_package_pick.py | TejasPhutane/Eyantra-2021-Vargi-Bots | ab84a1304101850be8c0f69cfe6de70d53c33189 | [
"MIT"
] | 1 | 2021-06-05T07:58:03.000Z | 2021-06-05T07:58:03.000Z | Vargi_Bots/ros_packages/pkg_task5/scripts/node_t5_ur5_1_package_pick.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
''' This node is used for controlling the ur5_1 arm and conveyor belt. '''
import sys
import math
import datetime
from datetime import datetime
import yaml
import rospy
import rospkg
import moveit_commander
import moveit_msgs.msg
import actionlib
from std_srvs.srv import Empty
from std_msgs.m... | 46.537246 | 136 | 0.61622 | 2,571 | 20,616 | 4.669 | 0.179697 | 0.076974 | 0.018411 | 0.015578 | 0.358297 | 0.298151 | 0.248334 | 0.23109 | 0.19885 | 0.18144 | 0 | 0.04134 | 0.269014 | 20,616 | 442 | 137 | 46.642534 | 0.755209 | 0.06689 | 0 | 0.219048 | 0 | 0 | 0.143985 | 0.045273 | 0.003175 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003175 | 0.060317 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d728605b8bae2715d210237bf9ed6e7886842125 | 18,065 | py | Python | vmrunner/vmrunner.py | Mattlk13/include-OS | d1668b94a007615db458fc394c94127631a55309 | [
"Apache-2.0"
] | null | null | null | vmrunner/vmrunner.py | Mattlk13/include-OS | d1668b94a007615db458fc394c94127631a55309 | [
"Apache-2.0"
] | null | null | null | vmrunner/vmrunner.py | Mattlk13/include-OS | d1668b94a007615db458fc394c94127631a55309 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import subprocess
import thread
import threading
import time
import re
import linecache
import traceback
import validate_vm
import signal
import psutil
from prettify import color
INCLUDEOS_HOME = None
nametag = "<VMRunner>"
if "INCLUDEOS_PREFIX" not in os.environ:
def_home = "/usr/local"
... | 32.258929 | 125 | 0.591365 | 2,232 | 18,065 | 4.632168 | 0.201613 | 0.028049 | 0.020311 | 0.022343 | 0.143534 | 0.082793 | 0.055905 | 0.042557 | 0.021279 | 0.01122 | 0 | 0.004043 | 0.301799 | 18,065 | 559 | 126 | 32.316637 | 0.815666 | 0.14553 | 0 | 0.211957 | 0 | 0 | 0.135533 | 0.003644 | 0 | 0 | 0 | 0.001789 | 0.002717 | 0 | null | null | 0.005435 | 0.035326 | null | null | 0.119565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d72cb0f3aaaa00df93b20291190aa4f0fd76ffe8 | 1,185 | py | Python | mbed_flasher/flashers/__init__.py | bridadan/mbed-flasher | 39d27a41926b7a3c8e8c29690cae9bf48583eb1d | [
"Apache-2.0"
] | null | null | null | mbed_flasher/flashers/__init__.py | bridadan/mbed-flasher | 39d27a41926b7a3c8e8c29690cae9bf48583eb1d | [
"Apache-2.0"
] | null | null | null | mbed_flasher/flashers/__init__.py | bridadan/mbed-flasher | 39d27a41926b7a3c8e8c29690cae9bf48583eb1d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Copyright 2016 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 35.909091 | 76 | 0.811814 | 170 | 1,185 | 5.570588 | 0.576471 | 0.063358 | 0.047518 | 0.072862 | 0.171067 | 0.107709 | 0 | 0 | 0 | 0 | 0 | 0.011662 | 0.131646 | 1,185 | 32 | 77 | 37.03125 | 0.908649 | 0.599156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d72e1981dd5feb7952c92420655eef88e3a5d3af | 1,152 | py | Python | djangoq_demo/order_reminder/models.py | forance/django-q | 2b42fb173ab374760260692eda5b5445c7121e90 | [
"MIT"
] | null | null | null | djangoq_demo/order_reminder/models.py | forance/django-q | 2b42fb173ab374760260692eda5b5445c7121e90 | [
"MIT"
] | null | null | null | djangoq_demo/order_reminder/models.py | forance/django-q | 2b42fb173ab374760260692eda5b5445c7121e90 | [
"MIT"
] | null | null | null | from decimal import Decimal
from django.db import models
# Create your models here.
class Orders(models.Model):
order_id = models.CharField( max_length=200, blank=False, null=True, unique=True)
ship_date = models.DateField(auto_now_add=False, auto_now=False, null=True)
customer = models.CharField("Company Name",m... | 48 | 110 | 0.769097 | 175 | 1,152 | 4.885714 | 0.32 | 0.084211 | 0.121637 | 0.119298 | 0.591813 | 0.521637 | 0.521637 | 0.451462 | 0.451462 | 0.126316 | 0 | 0.025912 | 0.095486 | 1,152 | 23 | 111 | 50.086957 | 0.794626 | 0.125 | 0 | 0 | 0 | 0 | 0.045862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 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 |
d72f89889bfb5d804a1902262e2cdd025dad18a1 | 1,542 | py | Python | news/admin.py | SIBSIND/PHPMYADMINWEBSITE | e2112f0fb43f042be551ecaadb05b1cc79ba5360 | [
"MIT"
] | 31 | 2015-05-26T23:13:06.000Z | 2022-03-10T12:03:33.000Z | news/admin.py | SIBSIND/PHPMYADMINWEBSITE | e2112f0fb43f042be551ecaadb05b1cc79ba5360 | [
"MIT"
] | 136 | 2015-01-15T23:30:23.000Z | 2022-03-31T00:59:01.000Z | news/admin.py | SIBSIND/PHPMYADMINWEBSITE | e2112f0fb43f042be551ecaadb05b1cc79ba5360 | [
"MIT"
] | 158 | 2015-01-15T23:25:26.000Z | 2022-02-09T01:47:20.000Z | # -*- coding: UTF-8 -*-
# vim: set expandtab sw=4 ts=4 sts=4:
#
# phpMyAdmin web site
#
# Copyright (C) 2008 - 2016 Michal Cihar <michal@cihar.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 Foundati... | 32.808511 | 73 | 0.704929 | 220 | 1,542 | 4.9 | 0.595455 | 0.030612 | 0.036178 | 0.052876 | 0.141002 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0.019185 | 0.188716 | 1,542 | 46 | 74 | 33.521739 | 0.842526 | 0.527237 | 0 | 0.111111 | 0 | 0 | 0.103253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.722222 | 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 |
d73046bc045dd816e5103e2ce6500694cdb693c3 | 321 | py | Python | example/__init__.py | aeroworks-io/python-ddd | 4d9c5de05f33aa63f8b6ca1c6a0cb33238208bee | [
"Apache-2.0"
] | 1 | 2021-10-17T09:23:59.000Z | 2021-10-17T09:23:59.000Z | example/__init__.py | aeroworks-io/python-ddd | 4d9c5de05f33aa63f8b6ca1c6a0cb33238208bee | [
"Apache-2.0"
] | null | null | null | example/__init__.py | aeroworks-io/python-ddd | 4d9c5de05f33aa63f8b6ca1c6a0cb33238208bee | [
"Apache-2.0"
] | null | null | null | from faker import Faker
from dddpy import Entity, ID, Primitive
fake = Faker()
fake.seed_instance(0)
class UserID(ID):
...
class UserName(Primitive, str):
"""User's name"""
@classmethod
def __generate__(cls):
return cls(fake.name())
class User(Entity):
id: UserID
name: UserName... | 12.84 | 39 | 0.64486 | 41 | 321 | 4.926829 | 0.560976 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.233645 | 321 | 24 | 40 | 13.375 | 0.817073 | 0.034268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.692308 | 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 |
d73c2f01cb77f4afe0317a9b8320ddc8028981b9 | 3,191 | py | Python | sourceCode/PreProcessing/filterings.py | suryagupta/ProteinAssociationPair | 85aee777935477a55e7d2089c671433220e04d84 | [
"Apache-2.0"
] | null | null | null | sourceCode/PreProcessing/filterings.py | suryagupta/ProteinAssociationPair | 85aee777935477a55e7d2089c671433220e04d84 | [
"Apache-2.0"
] | null | null | null | sourceCode/PreProcessing/filterings.py | suryagupta/ProteinAssociationPair | 85aee777935477a55e7d2089c671433220e04d84 | [
"Apache-2.0"
] | null | null | null | __author__ = 'surya'
from Analysis import GetAssayCount
def preFiltrationWithHighlyOCcuringProteins(MSFile,uniprotProteinList,out):
assCountList=[]
with open(MSFile) as OpenedMSFile:
next(OpenedMSFile)
for line in OpenedMSFile:
colList=line.split("\t")
assCount = int(c... | 41.441558 | 122 | 0.564086 | 282 | 3,191 | 6.368794 | 0.347518 | 0.026726 | 0.04343 | 0.017817 | 0.138085 | 0.120267 | 0.091314 | 0.091314 | 0.091314 | 0.091314 | 0 | 0.015595 | 0.336885 | 3,191 | 76 | 123 | 41.986842 | 0.833176 | 0.087747 | 0 | 0.266667 | 0 | 0 | 0.073179 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016667 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d73e85945c41e4e8cb6763853703423951f28b32 | 1,053 | py | Python | ex14-list_remove_duplicates.py | lew18/practicepython.org-mysolutions | 99f70c2663f8a23355e04cc2502736f233661bc9 | [
"MIT"
] | null | null | null | ex14-list_remove_duplicates.py | lew18/practicepython.org-mysolutions | 99f70c2663f8a23355e04cc2502736f233661bc9 | [
"MIT"
] | null | null | null | ex14-list_remove_duplicates.py | lew18/practicepython.org-mysolutions | 99f70c2663f8a23355e04cc2502736f233661bc9 | [
"MIT"
] | null | null | null | """
https://www.practicepython.org
Exercise 14: List Remove Duplicates
2 chilis
Write a program (function!) that takes a list and returns a new list that
contains all the elements of the first list minus all the duplicates.
Extras:
- Write two different functions to do this - one using a loop and constructing
a li... | 23.931818 | 96 | 0.670465 | 184 | 1,053 | 3.782609 | 0.423913 | 0.086207 | 0.012931 | 0.056034 | 0.116379 | 0.077586 | 0.077586 | 0 | 0 | 0 | 0 | 0.062802 | 0.213675 | 1,053 | 43 | 97 | 24.488372 | 0.777778 | 0.417854 | 0 | 0.166667 | 0 | 0 | 0.026534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.111111 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d743fe48bbcc146ab244bae121772aac07fc22fd | 1,198 | py | Python | modelling/model/__init__.py | nulberry/ADaPT-ML | d16d7f92aebcfdd76d2f92a3b64d2fb744959e3a | [
"MIT"
] | 5 | 2021-12-21T17:39:59.000Z | 2022-03-14T21:41:04.000Z | modelling/model/__init__.py | nulberry/ADaPT-ML | d16d7f92aebcfdd76d2f92a3b64d2fb744959e3a | [
"MIT"
] | 11 | 2022-01-19T22:04:04.000Z | 2022-03-14T22:49:50.000Z | modelling/model/__init__.py | nulberry/ADaPT-ML | d16d7f92aebcfdd76d2f92a3b64d2fb744959e3a | [
"MIT"
] | 1 | 2022-02-25T00:56:33.000Z | 2022-02-25T00:56:33.000Z | import os
import logging
import argparse
TMP_ARTIFACTS = '/tmp_artifacts'
X_TRAIN_FILENAME = os.path.join(TMP_ARTIFACTS, 'x_train.npy')
TRAIN_DF_FILENAME = os.path.join(TMP_ARTIFACTS, 'train.pkl')
TRAIN_DF_HTML_FILENAME = os.path.join(TMP_ARTIFACTS, 'train.html')
TEST_PRED_DF_FILENAME = os.path.join(TMP_ARTIFACTS,... | 44.37037 | 116 | 0.776294 | 185 | 1,198 | 4.816216 | 0.351351 | 0.13468 | 0.125701 | 0.161616 | 0.381594 | 0.381594 | 0.246914 | 0.154882 | 0.074074 | 0.074074 | 0 | 0.00273 | 0.082638 | 1,198 | 26 | 117 | 46.076923 | 0.808007 | 0 | 0 | 0 | 0 | 0 | 0.282972 | 0.020868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
d7446fc29864dbea8fd02a992375bdc28907d0b1 | 4,766 | py | Python | ScriptBox/haddSE.py | kschweiger/ToolBox | 7531ec484f3185bcde56076eebd0a3ce6aaec22b | [
"MIT"
] | null | null | null | ScriptBox/haddSE.py | kschweiger/ToolBox | 7531ec484f3185bcde56076eebd0a3ce6aaec22b | [
"MIT"
] | null | null | null | ScriptBox/haddSE.py | kschweiger/ToolBox | 7531ec484f3185bcde56076eebd0a3ce6aaec22b | [
"MIT"
] | null | null | null | from glob import glob
import sys
import os
import subprocess
#############################################################
############### Configure Logging
import logging
log_format = (
'[%(asctime)s] %(levelname)-8s %(message)s')
logging.basicConfig(
format=log_format,
level=logging.INFO,
)
#############... | 45.826923 | 143 | 0.61603 | 522 | 4,766 | 5.578544 | 0.275862 | 0.04533 | 0.040865 | 0.034341 | 0.32967 | 0.256868 | 0.234203 | 0.234203 | 0.174451 | 0.174451 | 0 | 0.007384 | 0.204364 | 4,766 | 103 | 144 | 46.271845 | 0.760549 | 0.03525 | 0 | 0.235294 | 0 | 0 | 0.210335 | 0.015252 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011765 | 0.070588 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d74e61e231da2f596b986e18f0e2f3f18a114e82 | 12,006 | py | Python | fhcrc_pathology/OneFieldPerSpecimen.py | LabKey/argos_nlp | 1ad88d91809bcda04769c4ef10684bbbad4d9135 | [
"Apache-2.0"
] | null | null | null | fhcrc_pathology/OneFieldPerSpecimen.py | LabKey/argos_nlp | 1ad88d91809bcda04769c4ef10684bbbad4d9135 | [
"Apache-2.0"
] | null | null | null | fhcrc_pathology/OneFieldPerSpecimen.py | LabKey/argos_nlp | 1ad88d91809bcda04769c4ef10684bbbad4d9135 | [
"Apache-2.0"
] | 1 | 2019-12-04T16:36:55.000Z | 2019-12-04T16:36:55.000Z | ''' author@esilgard'''
#
# Copyright (c) 2013-2016 Fred Hutchinson Cancer Research Center
#
# Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
#
import re, os
import global_strings as gb
PATH = os.path.dirname(os.path.realpath(__file__)) + os.path.sep
class OneFieldPerSpecime... | 56.366197 | 112 | 0.588123 | 1,370 | 12,006 | 4.920438 | 0.213139 | 0.047471 | 0.058745 | 0.037383 | 0.38748 | 0.336894 | 0.291203 | 0.275182 | 0.25471 | 0.239282 | 0 | 0.00835 | 0.321673 | 12,006 | 212 | 113 | 56.632075 | 0.819376 | 0.137848 | 0 | 0.161074 | 0 | 0.006711 | 0.030924 | 0.004701 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006711 | 0.020134 | null | null | 0.006711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d7622ae8c09ffd8ab70c0afae372ce53326e0c2e | 1,202 | py | Python | release/cs_submitter/mainform/migrations/0002_auto_20170801_1155.py | kvswim/kv_jhucs_coursesubmit | a00f2d1ca52204857bdf34271e13d97b424fcfca | [
"MIT"
] | null | null | null | release/cs_submitter/mainform/migrations/0002_auto_20170801_1155.py | kvswim/kv_jhucs_coursesubmit | a00f2d1ca52204857bdf34271e13d97b424fcfca | [
"MIT"
] | null | null | null | release/cs_submitter/mainform/migrations/0002_auto_20170801_1155.py | kvswim/kv_jhucs_coursesubmit | a00f2d1ca52204857bdf34271e13d97b424fcfca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-01 15:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('mainform', '0001_initial'),
]
operations = [
m... | 29.317073 | 114 | 0.582363 | 117 | 1,202 | 5.820513 | 0.555556 | 0.048458 | 0.0837 | 0.118943 | 0.408223 | 0.408223 | 0.343612 | 0.343612 | 0.343612 | 0.343612 | 0 | 0.026066 | 0.297837 | 1,202 | 40 | 115 | 30.05 | 0.780806 | 0.056572 | 0 | 0.424242 | 1 | 0 | 0.099912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d76cfce8cbd772f8880ee4cbb7492493a2e0be5a | 4,790 | py | Python | SublimeText3_3176/Data/Packages/SublimeTextXdebug-master/xdebug/config.py | xiexie1993/Tool_Sublime_Text3_for_Windows | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | [
"RSA-MD"
] | 1 | 2015-02-14T20:30:08.000Z | 2015-02-14T20:30:08.000Z | xdebug/config.py | 66Volts/SublimeTextXdebug | f06fcbc90100bc8fe2195e86d00dc3ade3ae5532 | [
"MIT"
] | null | null | null | xdebug/config.py | 66Volts/SublimeTextXdebug | f06fcbc90100bc8fe2195e86d00dc3ade3ae5532 | [
"MIT"
] | null | null | null | import sublime
# Settings variables
try:
from . import settings as S
except:
import settings as S
def load_project_values():
try:
settings = sublime.active_window().active_view().settings()
# Use 'xdebug' as key which contains dictionary with project values for package
S.CONFIG_PR... | 29.207317 | 121 | 0.648434 | 619 | 4,790 | 4.875606 | 0.145396 | 0.027833 | 0.039761 | 0.050364 | 0.49503 | 0.417164 | 0.392313 | 0.27833 | 0.184228 | 0.152419 | 0 | 0.00114 | 0.267641 | 4,790 | 164 | 122 | 29.207317 | 0.859179 | 0.236117 | 0 | 0.381443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092784 | false | 0.051546 | 0.030928 | 0 | 0.247423 | 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 |
d7704a55e67f676a7b51b2e79750dd6ce6a6f314 | 8,497 | py | Python | rubra/utils.py | bjpop/rubra | 82905bbbd7077d201363b96ffbbc78c099095764 | [
"MIT"
] | 14 | 2015-04-13T04:10:43.000Z | 2022-03-28T08:42:43.000Z | rubra/utils.py | afcarl/rubra | 82905bbbd7077d201363b96ffbbc78c099095764 | [
"MIT"
] | 3 | 2016-12-27T17:24:04.000Z | 2018-12-21T17:43:36.000Z | rubra/utils.py | afcarl/rubra | 82905bbbd7077d201363b96ffbbc78c099095764 | [
"MIT"
] | 9 | 2015-04-29T03:00:16.000Z | 2020-01-30T00:56:52.000Z | # Various useful utilities for the pipeline.
import sys
import errno
import subprocess
from ruffus.proxy_logger import *
import logging
import imp
import os
import os.path
from shell_command import shellCommand
from cluster_job import PBS_Script
import re
# A simple container object
class Bag:
pass
# XXX I don'... | 30.455197 | 87 | 0.655879 | 1,007 | 8,497 | 5.482622 | 0.313803 | 0.046187 | 0.029343 | 0.01449 | 0.076979 | 0.0643 | 0.03695 | 0.03695 | 0 | 0 | 0 | 0.004016 | 0.238084 | 8,497 | 278 | 88 | 30.564748 | 0.84878 | 0.17771 | 0 | 0.132653 | 0 | 0 | 0.106019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010204 | 0.076531 | null | null | 0.005102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d774e51c5c66393299f4db96bee7162aab5688b7 | 7,113 | py | Python | libraries/stats/widgets/spline.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | 1 | 2019-04-15T13:50:30.000Z | 2019-04-15T13:50:30.000Z | libraries/stats/widgets/spline.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | null | null | null | libraries/stats/widgets/spline.py | PiRSquared17/r-orange | 6bc383f1db3c10c59e16b39daffc44df904ce031 | [
"Apache-2.0"
] | 1 | 2016-01-21T23:00:21.000Z | 2016-01-21T23:00:21.000Z | """Spline Fit widget
.. helpdoc::
Generates a spline fit to X, Y data. This can be used for plotting or for interogating the splines.
"""
"""<widgetXML>
<name>Spline Fit</name>
<icon>stats.png</icon>
<screenshots></screenshots>
<summary>Produces a spline fit of X/Y data.</summary>
... | 42.339286 | 219 | 0.584001 | 693 | 7,113 | 5.940837 | 0.27417 | 0.048093 | 0.03692 | 0.032791 | 0.324265 | 0.191159 | 0.156667 | 0.082584 | 0.037892 | 0.037892 | 0 | 0.001938 | 0.274427 | 7,113 | 167 | 220 | 42.592814 | 0.795776 | 0.072121 | 0 | 0.209877 | 1 | 0 | 0.071704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d776ef87b68110c941625583b750870bed47b31b | 8,175 | py | Python | dzTraficoBackend/dzTrafico/BusinessLayer/SimulationManager.py | DZAymen/dz-Trafico | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | [
"MIT"
] | null | null | null | dzTraficoBackend/dzTrafico/BusinessLayer/SimulationManager.py | DZAymen/dz-Trafico | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | [
"MIT"
] | null | null | null | dzTraficoBackend/dzTrafico/BusinessLayer/SimulationManager.py | DZAymen/dz-Trafico | 74ff9caf9e3845d8af977c46b04a2d3421a0661b | [
"MIT"
] | null | null | null | from dzTrafico.BusinessLayer.SimulationCreation.SimulationCreator import SimulationCreator
from dzTrafico.BusinessEntities.Simulation import Simulation
from dzTrafico.BusinessEntities.Sink import Sink
from dzTrafico.BusinessEntities.Sensor import Sensor
from dzTrafico.BusinessEntities.Node import Node
from dzTrafico.Bu... | 46.186441 | 105 | 0.610765 | 618 | 8,175 | 7.724919 | 0.216828 | 0.073523 | 0.050901 | 0.036866 | 0.139925 | 0.063259 | 0.020947 | 0.020947 | 0.020947 | 0.020947 | 0 | 0.001743 | 0.158043 | 8,175 | 177 | 106 | 46.186441 | 0.691849 | 0.232171 | 0 | 0.016949 | 0 | 0 | 0.039488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076271 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d77bae60d88b6f46874d8b4427c02a88cc3cc1b7 | 322 | py | Python | AIO/pairs/pairs.py | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | 3 | 2021-05-15T08:18:09.000Z | 2021-05-17T04:41:57.000Z | AIO/pairs/pairs.py | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | null | null | null | AIO/pairs/pairs.py | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | null | null | null | infile=open('pairin.txt','r')
n=int(infile.readline().strip())
dic={}
for i in range(2*n):
sn=int(infile.readline().strip())
if sn not in dic:
dic[sn]=i
else:
dic[sn]-=i
maxkey=min(dic,key=dic.get)
outfile=open('pairout.txt','w')
outfile.write(str(abs(dic[maxkey])))
outfile.close... | 24.769231 | 38 | 0.599379 | 53 | 322 | 3.641509 | 0.566038 | 0.093264 | 0.176166 | 0.227979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.18323 | 322 | 13 | 39 | 24.769231 | 0.730038 | 0 | 0 | 0 | 0 | 0 | 0.073955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
d783a3399e59a2c8ef4b48fbcf9a6d3262e9d3c7 | 942 | py | Python | channels/management/commands/backpopulate_channel_fields.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 12 | 2017-09-27T21:23:27.000Z | 2020-12-25T04:31:30.000Z | channels/management/commands/backpopulate_channel_fields.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 3,293 | 2017-06-30T18:16:01.000Z | 2022-03-31T18:01:34.000Z | channels/management/commands/backpopulate_channel_fields.py | mitodl/open-discussions | ab6e9fac70b8a1222a84e78ba778a7a065c20541 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T12:19:57.000Z | 2020-04-13T12:19:57.000Z | """Management command to backpopulate channel fields"""
from django.core.management.base import BaseCommand
from channels.tasks import populate_channel_fields
from open_discussions.utils import now_in_utc
class Command(BaseCommand):
"""Backpopulate channel fields from reddit"""
help = "Backpopulate channel ... | 33.642857 | 86 | 0.660297 | 108 | 942 | 5.62963 | 0.444444 | 0.149671 | 0.139803 | 0.190789 | 0.226974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245223 | 942 | 27 | 87 | 34.888889 | 0.855134 | 0.157113 | 0 | 0.105263 | 0 | 0 | 0.212082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.315789 | 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 |
d78615acd61f23d8a5ce7ce9ff9c1ec7ce4ea71f | 714 | py | Python | app/models/old/teams.py | WilliamBesseau/Groot | 9dfdc05dc6da914a65a94a57b2b56dc63ddbdb8e | [
"MIT"
] | null | null | null | app/models/old/teams.py | WilliamBesseau/Groot | 9dfdc05dc6da914a65a94a57b2b56dc63ddbdb8e | [
"MIT"
] | null | null | null | app/models/old/teams.py | WilliamBesseau/Groot | 9dfdc05dc6da914a65a94a57b2b56dc63ddbdb8e | [
"MIT"
] | null | null | null | from app.models import db
from app.models.projects import Project
class Team(db.Model):
__tablename__ = 'teams'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String)
logo = db.Column(db.String)
tokens = db.Column(db.Integer)
description = db.Column(db.String)
id_assign... | 35.7 | 119 | 0.673669 | 95 | 714 | 4.873684 | 0.357895 | 0.103672 | 0.12959 | 0.110151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161064 | 714 | 19 | 120 | 37.578947 | 0.772955 | 0 | 0 | 0 | 0 | 0 | 0.187675 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 0.928571 | 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 |
d7899e290f46aa16b47d89e93791097548706703 | 836 | py | Python | labs-python/tests/test3/exe2.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | 3 | 2018-12-11T03:03:15.000Z | 2020-02-11T19:38:07.000Z | labs-python/tests/test3/exe2.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | 6 | 2017-05-31T20:58:32.000Z | 2021-02-16T23:13:15.000Z | labs-python/tests/test3/exe2.py | xR86/ml-stuff | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | [
"MIT"
] | null | null | null | import urllib
import re
import json
f = urllib.urlopen("http://localhost:8000/participanti/orar_I3B5.html")
response = f.read()
# print response
"""
<tr>
<td> 12:00</td>
<td> 14:00</td>
<td> Animatie 3D: algoritmi si tehnici fundamentale</td>
<td> Seminar</td>
<td> <a href="../par... | 22.594595 | 91 | 0.541866 | 115 | 836 | 3.913043 | 0.443478 | 0.088889 | 0.055556 | 0.053333 | 0.108889 | 0.053333 | 0.053333 | 0.053333 | 0 | 0 | 0 | 0.033486 | 0.214115 | 836 | 36 | 92 | 23.222222 | 0.651446 | 0.093301 | 0 | 0 | 0 | 0.090909 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.272727 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d78d008c75127dd361fd3694cdadfd3fd7426c5d | 721 | py | Python | visualizer/go.py | AndreasMadsen/bachelor-code | 115fd2b955de07f34cdec998ba2a7f103ae253e3 | [
"MIT"
] | 1 | 2015-06-16T06:53:52.000Z | 2015-06-16T06:53:52.000Z | visualizer/go.py | AndreasMadsen/bachelor-code | 115fd2b955de07f34cdec998ba2a7f103ae253e3 | [
"MIT"
] | null | null | null | visualizer/go.py | AndreasMadsen/bachelor-code | 115fd2b955de07f34cdec998ba2a7f103ae253e3 | [
"MIT"
] | null | null | null |
import os.path as path
import sys
import numpy as np
thisdir = path.dirname(path.realpath(__file__))
sys.path.append(path.join(thisdir, '..'))
import dataset
import model
from graph_server import GraphServer
name = sys.argv[1]
build_dir = path.join(thisdir, '..', 'outputs', 'builds')
clusters = model.load(path.jo... | 25.75 | 75 | 0.747573 | 102 | 721 | 5.137255 | 0.480392 | 0.076336 | 0.074427 | 0.097328 | 0.146947 | 0.146947 | 0.099237 | 0 | 0 | 0 | 0 | 0.018519 | 0.101248 | 721 | 27 | 76 | 26.703704 | 0.790123 | 0.120666 | 0 | 0 | 0 | 0 | 0.098569 | 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 |
d79051a373865fd5327eb96fe27bcdb411ba0a75 | 3,070 | py | Python | adventOfCode/Day3_2.py | oana-cit/Aoc2017 | 4881bbf1ead442ec2e615487db55421e7d97ae6e | [
"Unlicense"
] | null | null | null | adventOfCode/Day3_2.py | oana-cit/Aoc2017 | 4881bbf1ead442ec2e615487db55421e7d97ae6e | [
"Unlicense"
] | null | null | null | adventOfCode/Day3_2.py | oana-cit/Aoc2017 | 4881bbf1ead442ec2e615487db55421e7d97ae6e | [
"Unlicense"
] | null | null | null | '''
Created on Dec 4, 2017
@author: atip
'''
def getAdjSquareSum():
global posX, posY, valMatrix
adjSquareSum = 0
adjSquareSum += valMatrix[maxRange + posX + 1][maxRange + posY]
adjSquareSum += valMatrix[maxRange + posX + 1][maxRange + posY + 1]
adjSquareSum += valMatrix[maxRange + posX][maxRange ... | 29.519231 | 97 | 0.599023 | 336 | 3,070 | 5.473214 | 0.151786 | 0.129418 | 0.159869 | 0.143556 | 0.736813 | 0.736813 | 0.582926 | 0.487221 | 0.487221 | 0.430669 | 0 | 0.032962 | 0.26873 | 3,070 | 103 | 98 | 29.805825 | 0.786192 | 0.056678 | 0 | 0.223684 | 0 | 0 | 0.06352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.118421 | 0.105263 | 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 |
d792335ee761c9211a29587329d5dca9a2b6ca70 | 4,191 | py | Python | tests/test_NDList.py | Tyler314/led_matrix | 76a78d5117c56126e9f2a898674ac9be90f060e4 | [
"MIT"
] | 3 | 2017-09-18T21:30:51.000Z | 2019-03-11T12:31:26.000Z | tests/test_NDList.py | elektrobil/led_matrix | 76a78d5117c56126e9f2a898674ac9be90f060e4 | [
"MIT"
] | 24 | 2017-09-18T17:22:52.000Z | 2018-03-17T19:34:16.000Z | tests/test_NDList.py | elektrobil/led_matrix | 76a78d5117c56126e9f2a898674ac9be90f060e4 | [
"MIT"
] | 1 | 2018-10-20T15:01:18.000Z | 2018-10-20T15:01:18.000Z | import unittest
from random import random
import led_matrix
class test_NDList(unittest.TestCase):
def test_init_0(self):
ndl = led_matrix.NDList(shape=(0,))
self.assertEqual(ndl, [])
def test_init_1(self):
ndl = led_matrix.NDList(shape=(1,))
self.assertEqual(ndl, [0.0])
... | 33 | 76 | 0.496302 | 578 | 4,191 | 3.5 | 0.112457 | 0.096886 | 0.112704 | 0.169056 | 0.655957 | 0.579338 | 0.432032 | 0.403856 | 0.341078 | 0.214533 | 0 | 0.075886 | 0.380577 | 4,191 | 126 | 77 | 33.261905 | 0.70339 | 0.054641 | 0 | 0.373737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191919 | 1 | 0.151515 | false | 0 | 0.030303 | 0 | 0.191919 | 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 |
d797320b988e52f4f0452e1ef55e7438b3d6e39b | 1,632 | py | Python | contents_rank_crawling.py | dldldlfma/py_tutorial | efb3ddb4d2fcd26e7086198fe42144d896623ed7 | [
"MIT"
] | null | null | null | contents_rank_crawling.py | dldldlfma/py_tutorial | efb3ddb4d2fcd26e7086198fe42144d896623ed7 | [
"MIT"
] | null | null | null | contents_rank_crawling.py | dldldlfma/py_tutorial | efb3ddb4d2fcd26e7086198fe42144d896623ed7 | [
"MIT"
] | 1 | 2019-10-08T09:07:38.000Z | 2019-10-08T09:07:38.000Z | from selenium import webdriver
from bs4 import BeautifulSoup
from pprint import pprint
def keyword_preprocessing(word):
"""
검색 keyword를 google 검색 URL과 붙이기 위해 적합한 형태로 전환합니다.
띄어쓰기를 +로 바꾸는 정도 입니다.
"""
change_word = list(word)
for i in range(len(change_word)):
if(change_word[i]==' '):
... | 28.631579 | 77 | 0.634191 | 221 | 1,632 | 4.547511 | 0.542986 | 0.069652 | 0.021891 | 0.033831 | 0.031841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007311 | 0.245711 | 1,632 | 56 | 78 | 29.142857 | 0.809098 | 0 | 0 | 0 | 0 | 0 | 0.08612 | 0.034281 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ad010a5845c1463efae76d20551864f7c773afe6 | 812 | py | Python | tests/__init__.py | dbauducco/DistributedReplays | 07e6f4c2bf104e98102b092d8a1a3ce2ac7ab291 | [
"Apache-2.0"
] | 69 | 2018-07-17T19:40:21.000Z | 2022-02-25T14:23:53.000Z | tests/__init__.py | dbauducco/DistributedReplays | 07e6f4c2bf104e98102b092d8a1a3ce2ac7ab291 | [
"Apache-2.0"
] | 335 | 2018-07-25T19:34:55.000Z | 2022-02-26T06:04:32.000Z | tests/__init__.py | dbauducco/DistributedReplays | 07e6f4c2bf104e98102b092d8a1a3ce2ac7ab291 | [
"Apache-2.0"
] | 42 | 2018-07-21T00:04:23.000Z | 2022-02-25T14:23:42.000Z | from sqlalchemy.engine import create_engine
from sqlalchemy.orm.session import Session
def setup_module():
global transaction, connection, engine
# Connect to the database and create the schema within a transaction
engine = create_engine('postgresql:///yourdb')
connection = engine.connect()
tran... | 26.193548 | 74 | 0.713054 | 96 | 812 | 5.9375 | 0.479167 | 0.110526 | 0.080702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 812 | 31 | 75 | 26.193548 | 0.885093 | 0.231527 | 0 | 0 | 0 | 0 | 0.032206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.388889 | 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 |
ad0927530ad2031d8bb0bcabd319e3b25498c28f | 528 | py | Python | mayan/apps/appearance/settings.py | Syunkolee9891/Mayan-EDMS | 3759a9503a264a180b74cc8518388f15ca66ac1a | [
"Apache-2.0"
] | 1 | 2021-06-17T18:24:25.000Z | 2021-06-17T18:24:25.000Z | mayan/apps/appearance/settings.py | Syunkolee9891/Mayan-EDMS | 3759a9503a264a180b74cc8518388f15ca66ac1a | [
"Apache-2.0"
] | 7 | 2020-06-06T00:01:04.000Z | 2022-01-13T01:47:17.000Z | mayan/apps/appearance/settings.py | Syunkolee9891/Mayan-EDMS | 3759a9503a264a180b74cc8518388f15ca66ac1a | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.smart_settings.classes import Namespace
from .literals import DEFAULT_MAXIMUM_TITLE_LENGTH
namespace = Namespace(label=_('Appearance'), name='appearance')
setting_max_title_length = namespace.add_setting... | 29.333333 | 74 | 0.787879 | 66 | 528 | 5.924242 | 0.590909 | 0.112532 | 0.138107 | 0.127877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143939 | 528 | 17 | 75 | 31.058824 | 0.865044 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 0.058712 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ad0cedb41c63a6f7882f0f28f96a8194a657d2c6 | 483 | py | Python | nxapi_plumbing/__init__.py | princesethi16/nxapi-plumbing | cea4ad7f500a49a64188e2b920ac6317c8a573f1 | [
"Apache-2.0"
] | 8 | 2018-11-08T09:20:28.000Z | 2021-10-03T21:09:06.000Z | nxapi_plumbing/__init__.py | princesethi16/nxapi-plumbing | cea4ad7f500a49a64188e2b920ac6317c8a573f1 | [
"Apache-2.0"
] | 1 | 2019-09-30T18:44:32.000Z | 2019-09-30T18:44:32.000Z | nxapi_plumbing/__init__.py | princesethi16/nxapi-plumbing | cea4ad7f500a49a64188e2b920ac6317c8a573f1 | [
"Apache-2.0"
] | 6 | 2019-04-25T15:11:26.000Z | 2022-01-11T09:46:27.000Z | from nxapi_plumbing.device import Device
from nxapi_plumbing.api_client import RPCClient, XMLClient
from nxapi_plumbing.errors import (
NXAPIError,
NXAPICommandError,
NXAPIConnectionError,
NXAPIAuthError,
NXAPIPostError,
NXAPIXMLError,
)
__version__ = "0.5.2"
__all__ = (
"Device",
"RPCC... | 20.125 | 58 | 0.701863 | 39 | 483 | 8.384615 | 0.538462 | 0.082569 | 0.155963 | 0.373089 | 0.538226 | 0.538226 | 0 | 0 | 0 | 0 | 0 | 0.007772 | 0.200828 | 483 | 23 | 59 | 21 | 0.839378 | 0 | 0 | 0 | 0 | 0 | 0.242236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 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 |
ad0cf75b578dfb6119685677748cf65e21aa04ae | 15,067 | py | Python | colosseum/mdps/taxi/taxi.py | MichelangeloConserva/Colosseum | b0711fd9ce75520deb74cda75c148984a8e4152f | [
"MIT"
] | null | null | null | colosseum/mdps/taxi/taxi.py | MichelangeloConserva/Colosseum | b0711fd9ce75520deb74cda75c148984a8e4152f | [
"MIT"
] | null | null | null | colosseum/mdps/taxi/taxi.py | MichelangeloConserva/Colosseum | b0711fd9ce75520deb74cda75c148984a8e4152f | [
"MIT"
] | null | null | null | from abc import ABC
from copy import deepcopy
from dataclasses import asdict, dataclass
from enum import IntEnum
from colosseum.utils.random_vars import deterministic, get_dist
try:
from functools import cached_property
except:
from backports.cached_property import cached_property
from itertools import produ... | 36.928922 | 127 | 0.570187 | 1,814 | 15,067 | 4.529217 | 0.151047 | 0.036149 | 0.035175 | 0.021908 | 0.3139 | 0.239411 | 0.201801 | 0.166261 | 0.13425 | 0.11149 | 0 | 0.01152 | 0.3432 | 15,067 | 407 | 128 | 37.019656 | 0.818715 | 0.154576 | 0 | 0.126582 | 0 | 0.003165 | 0.01506 | 0.009584 | 0 | 0 | 0 | 0 | 0.031646 | 1 | 0.050633 | false | 0.088608 | 0.044304 | 0.018987 | 0.199367 | 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 |
ad0dc98c10c8f4b4e93d9ca3b9cbb1f5741bac28 | 833 | py | Python | tests/test_bearer_auth.py | neuro-inc/neuro-auth-client | 892f509d39d7c5e11100d90fc505b8cc4f6575cf | [
"Apache-2.0"
] | null | null | null | tests/test_bearer_auth.py | neuro-inc/neuro-auth-client | 892f509d39d7c5e11100d90fc505b8cc4f6575cf | [
"Apache-2.0"
] | 53 | 2021-09-11T00:09:49.000Z | 2022-03-25T03:29:07.000Z | tests/test_bearer_auth.py | neuro-inc/neuro-auth-client | 892f509d39d7c5e11100d90fc505b8cc4f6575cf | [
"Apache-2.0"
] | null | null | null | import pytest
from neuro_auth_client.bearer_auth import BearerAuth
class TestBearerAuth:
def test_decode_unexpected_scheme(self) -> None:
with pytest.raises(ValueError, match="Unexpected authorization scheme"):
BearerAuth.decode("Basic credentials")
@pytest.mark.parametrize("header_value... | 36.217391 | 80 | 0.686675 | 95 | 833 | 5.873684 | 0.368421 | 0.050179 | 0.069892 | 0.071685 | 0.125448 | 0.125448 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188475 | 833 | 22 | 81 | 37.863636 | 0.825444 | 0 | 0 | 0 | 0 | 0 | 0.152461 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad13bf3e4f60c2925650ab21fabb53f8e024e715 | 1,757 | py | Python | henon_arnold/decrypt.py | Xus72/Encriptacion-caotica | 9a1fca8f3ee4f00dca303fa093b82bc86568c022 | [
"MIT"
] | null | null | null | henon_arnold/decrypt.py | Xus72/Encriptacion-caotica | 9a1fca8f3ee4f00dca303fa093b82bc86568c022 | [
"MIT"
] | null | null | null | henon_arnold/decrypt.py | Xus72/Encriptacion-caotica | 9a1fca8f3ee4f00dca303fa093b82bc86568c022 | [
"MIT"
] | 1 | 2021-01-13T13:08:56.000Z | 2021-01-13T13:08:56.000Z | import os
import henon_arnold.diffusion as dif
from PIL import ImageTk, Image
import henon_arnold.confusion as con
import henon_arnold.reshape as res
import cv2
import henon_arnold.Image as i
import time
def decrypt(filepath, destination_path, key):
im_encrypted = i.Image(filepath, i.Type.ENCRYPTED, cv2.imread(fil... | 45.051282 | 158 | 0.73136 | 241 | 1,757 | 5.165975 | 0.282158 | 0.061847 | 0.076305 | 0.077108 | 0.431325 | 0.392771 | 0.392771 | 0.392771 | 0.283534 | 0.283534 | 0 | 0.009223 | 0.136027 | 1,757 | 38 | 159 | 46.236842 | 0.810935 | 0.157655 | 0 | 0.24 | 0 | 0 | 0.098439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.36 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ad184bdbcc353c34f2c8061e8f88776b07b40ed9 | 1,060 | py | Python | projectile_motion/__init__.py | trungleduc/projectile-motion | 84ad78ae2880311e77fd20fe993555ae4b236916 | [
"BSD-3-Clause"
] | null | null | null | projectile_motion/__init__.py | trungleduc/projectile-motion | 84ad78ae2880311e77fd20fe993555ae4b236916 | [
"BSD-3-Clause"
] | null | null | null | projectile_motion/__init__.py | trungleduc/projectile-motion | 84ad78ae2880311e77fd20fe993555ae4b236916 | [
"BSD-3-Clause"
] | null | null | null | """CoSApp project Projectile Motion
Projectile Motion Simulation
"""
from ._version import __version__
def find_resources(filename: str = "") -> str:
"""Returns the fullpath of a file in resources folder.
Parameters
----------
filename: str, optional
File or directory looked for; default... | 25.853659 | 117 | 0.675472 | 123 | 1,060 | 5.609756 | 0.520325 | 0.115942 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004751 | 0.20566 | 1,060 | 40 | 118 | 26.5 | 0.814727 | 0.25283 | 0 | 0 | 0 | 0 | 0.167347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ad23e36ee752ed89aeb04307c574e41cb5820e29 | 2,058 | py | Python | teste.py | richardoliveira96/Gerenciador-de-senhas | 581f002a7647c7ae250eafde1158e29c05146d81 | [
"MIT"
] | null | null | null | teste.py | richardoliveira96/Gerenciador-de-senhas | 581f002a7647c7ae250eafde1158e29c05146d81 | [
"MIT"
] | null | null | null | teste.py | richardoliveira96/Gerenciador-de-senhas | 581f002a7647c7ae250eafde1158e29c05146d81 | [
"MIT"
] | null | null | null | import sqlite3
MASTER_PASSWORD = "123456"
senha = input("Insira sua senha master: ")
if senha != MASTER_PASSWORD:
print("Senha inválida! Encerrando ...")
exit()
conn = sqlite3.connect('password.db')
cursor = conn.cursor()
cursor.execute('''
CREATE TABLE IF NOT EXISTS users(
service TEXT ... | 25.407407 | 77 | 0.52138 | 220 | 2,058 | 4.840909 | 0.377273 | 0.075117 | 0.086385 | 0.039437 | 0.099531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.313411 | 2,058 | 81 | 78 | 25.407407 | 0.747346 | 0 | 0 | 0.15873 | 0 | 0 | 0.442648 | 0.039414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0.222222 | 0.015873 | 0 | 0.079365 | 0.174603 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ad282c26cc000d799b0f13f571688d8cb5c9a98c | 758 | py | Python | dfirtrack_config/migrations/0014_main_overview.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 273 | 2018-04-18T22:09:15.000Z | 2021-06-04T09:15:48.000Z | dfirtrack_config/migrations/0014_main_overview.py | stuhli/dfirtrack | 9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e | [
"Apache-2.0"
] | 75 | 2018-08-31T11:05:37.000Z | 2021-06-08T14:15:07.000Z | dfirtrack_config/migrations/0014_main_overview.py | thomas-kropeit/dfirtrack | b1e0e659af7bc8085cfe2d269ddc651f9f4ba585 | [
"Apache-2.0"
] | 61 | 2018-11-12T22:55:48.000Z | 2021-06-06T15:16:16.000Z | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dfirtrack_config', '0013_csvimporterconfigmodel'),
]
operations = [
migrations.AddField(
model_name='mainconfigmodel',
name='main_overview',
field=models... | 28.074074 | 60 | 0.498681 | 55 | 758 | 6.563636 | 0.581818 | 0.232687 | 0.099723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.386544 | 758 | 26 | 61 | 29.153846 | 0.763441 | 0 | 0 | 0.090909 | 0 | 0 | 0.278364 | 0.064644 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 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 |
ad289b0a4da6764f4dad69b02441ef075c47fa8b | 640 | py | Python | infer.py | bennyguo/sketch2model | c1431c22e33889595bfac9e693b889fc000af6ec | [
"MIT"
] | 21 | 2021-12-13T08:06:14.000Z | 2022-03-31T12:32:04.000Z | infer.py | bennyguo/sketch2model | c1431c22e33889595bfac9e693b889fc000af6ec | [
"MIT"
] | null | null | null | infer.py | bennyguo/sketch2model | c1431c22e33889595bfac9e693b889fc000af6ec | [
"MIT"
] | 1 | 2022-02-18T06:40:40.000Z | 2022-02-18T06:40:40.000Z | import os
from options.infer_options import InferOptions
from data import create_dataset
from models import create_model
import torch
if __name__ == '__main__':
opt = InferOptions().parse()
dataset_infer = create_dataset(opt, mode='infer', shuffle=False)
model = create_model(opt)
current_epoch = mod... | 26.666667 | 102 | 0.73125 | 90 | 640 | 4.888889 | 0.466667 | 0.054545 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160938 | 640 | 23 | 103 | 27.826087 | 0.819367 | 0 | 0 | 0 | 0 | 0 | 0.067293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ad2b50208777c46057bbb2045fc7bc52dfbdd601 | 1,132 | py | Python | django_grapesjs/forms/fields.py | TheLazzziest/django_grapesjs | 037234e082a5b2272996ef08008a5d4a2ee9845b | [
"MIT"
] | 6 | 2020-01-19T01:37:11.000Z | 2021-04-10T02:08:43.000Z | django_grapesjs/forms/fields.py | stajilov/django_grapesjs | 766cedf437429cfb00c909fa423da3854a8d1ea1 | [
"MIT"
] | null | null | null | django_grapesjs/forms/fields.py | stajilov/django_grapesjs | 766cedf437429cfb00c909fa423da3854a8d1ea1 | [
"MIT"
] | 4 | 2020-01-19T01:38:13.000Z | 2020-11-09T10:03:53.000Z | from django import forms
from django_grapesjs.settings import BASE, GRAPESJS_DEFAULT_HTML, REDACTOR_CONFIG
from django_grapesjs.utils import apply_string_handling
from .widgets import GrapesJsWidget
__all__ = (
'GrapesJsField',
)
class GrapesJsField(forms.CharField):
'''
Form field with support grapesjs... | 29.025641 | 102 | 0.712898 | 137 | 1,132 | 5.518248 | 0.357664 | 0.072751 | 0.047619 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20318 | 1,132 | 38 | 103 | 29.789474 | 0.838137 | 0.069788 | 0 | 0 | 0 | 0 | 0.026087 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0 | 0.454545 | 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 |
ad2bab49aa4e07f34bb4f90aefccd60bdd67eb86 | 460 | py | Python | cli/iotexetl/utils/string_utils.py | blockchain-etl/iotex-etl | bd350c3190acac35d17532eff383e05d08011e24 | [
"MIT"
] | 3 | 2020-07-04T13:53:38.000Z | 2020-07-30T15:07:35.000Z | cli/iotexetl/utils/string_utils.py | blockchain-etl/iotex-etl | bd350c3190acac35d17532eff383e05d08011e24 | [
"MIT"
] | 13 | 2020-07-16T06:07:33.000Z | 2020-08-20T10:35:10.000Z | cli/iotexetl/utils/string_utils.py | blockchain-etl/iotex-etl | bd350c3190acac35d17532eff383e05d08011e24 | [
"MIT"
] | 1 | 2021-01-20T10:06:20.000Z | 2021-01-20T10:06:20.000Z | import base64
def base64_string(val):
if val is None or val == b'':
return None
return base64.b64encode(val).decode('utf-8')
def to_int(val):
if val is None:
return val
if val == b'':
return 0
if isinstance(val, bytes):
return int.from_bytes(val, 'big')
if isi... | 17.692308 | 48 | 0.580435 | 68 | 460 | 3.838235 | 0.352941 | 0.076628 | 0.122605 | 0.076628 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031546 | 0.31087 | 460 | 26 | 49 | 17.692308 | 0.791798 | 0 | 0 | 0.263158 | 0 | 0 | 0.017354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.684211 | 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 |
ad2c6f0f6f7a9bf36d826f1fbfab954a60e0ea98 | 31,153 | py | Python | d4s2_api/tests_models.py | Duke-GCB/D4S2 | 47bef4b632967440608f2cc7a3fc31c32b2060fa | [
"MIT"
] | null | null | null | d4s2_api/tests_models.py | Duke-GCB/D4S2 | 47bef4b632967440608f2cc7a3fc31c32b2060fa | [
"MIT"
] | 138 | 2016-09-23T18:09:18.000Z | 2022-03-03T15:50:19.000Z | d4s2_api/tests_models.py | Duke-GCB/D4S2 | 47bef4b632967440608f2cc7a3fc31c32b2060fa | [
"MIT"
] | null | null | null | from django.db import IntegrityError
from django.core import serializers
from django.test import TestCase
from d4s2_api.models import *
from django.contrib.auth.models import User
import datetime
class TransferBaseTestCase(TestCase):
def setUp(self):
self.transfer_id = 'abcd-1234-efgh-6789'
class Deliv... | 52.008347 | 118 | 0.6366 | 3,264 | 31,153 | 5.848039 | 0.089461 | 0.07083 | 0.036882 | 0.026194 | 0.748847 | 0.706517 | 0.654652 | 0.60153 | 0.552075 | 0.510897 | 0 | 0.02178 | 0.266042 | 31,153 | 598 | 119 | 52.095318 | 0.813033 | 0.010593 | 0 | 0.517034 | 0 | 0.002004 | 0.072203 | 0.001397 | 0 | 0 | 0 | 0 | 0.248497 | 1 | 0.124249 | false | 0 | 0.012024 | 0 | 0.178357 | 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 |
ad2de864f8e10447d0bde7fae039f777a099f427 | 3,080 | py | Python | src/server/scraper/scripts/login_google.py | wotsyula/flask-scrapper | c106040ee7a869a3e9cebdd9a989ab9c6f988f90 | [
"MIT"
] | null | null | null | src/server/scraper/scripts/login_google.py | wotsyula/flask-scrapper | c106040ee7a869a3e9cebdd9a989ab9c6f988f90 | [
"MIT"
] | null | null | null | src/server/scraper/scripts/login_google.py | wotsyula/flask-scrapper | c106040ee7a869a3e9cebdd9a989ab9c6f988f90 | [
"MIT"
] | 1 | 2021-09-15T17:05:03.000Z | 2021-09-15T17:05:03.000Z | #!/usr/bin/env python3
"""
Script that logs into `google.com`
"""
from logging import debug
from typing import Generator
from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.webdriver.common.keys import Keys
from ..script import Script as BaseClass
URL = 'https://www.google.co... | 31.111111 | 96 | 0.576948 | 357 | 3,080 | 4.913165 | 0.408964 | 0.027366 | 0.014823 | 0.023945 | 0.109464 | 0.031927 | 0 | 0 | 0 | 0 | 0 | 0.013139 | 0.308117 | 3,080 | 98 | 97 | 31.428571 | 0.809948 | 0.302922 | 0 | 0.044444 | 0 | 0 | 0.16633 | 0.074317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.088889 | 0.111111 | 0 | 0.244444 | 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 |
ad2eaa1ef91f44647521caa38a5ca935ae523583 | 387 | py | Python | app/services/authentication/authenticator/request_analyzer.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/authentication/authenticator/request_analyzer.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/authentication/authenticator/request_analyzer.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import cast
from fastapi import Request
__all__ = ['RequestAnalyzer']
@dataclass
class RequestAnalyzer:
request: Request
@property
def client_ip_address(self) -> str:
return cast(str, self.request.client.host)
@property
def client_user_age... | 18.428571 | 50 | 0.713178 | 46 | 387 | 5.826087 | 0.5 | 0.08209 | 0.126866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20155 | 387 | 20 | 51 | 19.35 | 0.867314 | 0 | 0 | 0.153846 | 0 | 0 | 0.064599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.153846 | 0.692308 | 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 |
ad3bb5a795041be27140b5fdeeaa89534dff5361 | 699 | py | Python | tests/test_models/test_dna_sequence.py | klavinslab/benchling-api | b92cdf8e12f02d344c2a3b5817bea2904fdd6261 | [
"MIT"
] | 36 | 2016-01-18T20:26:19.000Z | 2021-01-14T12:39:56.000Z | tests/test_models/test_dna_sequence.py | klavinslab/benchling-api | b92cdf8e12f02d344c2a3b5817bea2904fdd6261 | [
"MIT"
] | 18 | 2017-01-26T10:00:45.000Z | 2021-02-16T03:22:40.000Z | tests/test_models/test_dna_sequence.py | klavinslab/benchling-api | b92cdf8e12f02d344c2a3b5817bea2904fdd6261 | [
"MIT"
] | 12 | 2017-06-20T21:44:02.000Z | 2020-12-28T05:15:08.000Z | import pytest
def test_web_link(session):
dnas = session.DNASequence.last(10)
for dna in dnas:
loaded = session.DNASequence.from_share_link(dna.web_url)
assert loaded.id == dna.id
# def test_share_link(session):
#
# # dna = session.DNASequence.from_share_link('https://benchling.com/s/se... | 26.884615 | 101 | 0.680973 | 89 | 699 | 5.202247 | 0.404494 | 0.233261 | 0.110151 | 0.116631 | 0.133909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.175966 | 699 | 25 | 102 | 27.96 | 0.793403 | 0.655222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
ad4083288b3f5388df3f2312a04f26b2a539e43d | 2,933 | py | Python | ctf/TokyoWesterns18/swap/exploit.py | lordidiot/lordidiot.github.io | 6dbc61fdd59fa95cbbf7843f9784f4627add3024 | [
"MIT"
] | 1 | 2021-12-03T17:39:30.000Z | 2021-12-03T17:39:30.000Z | ctf/TokyoWesterns18/swap/exploit.py | lordidiot/lordidiot.github.io | 6dbc61fdd59fa95cbbf7843f9784f4627add3024 | [
"MIT"
] | null | null | null | ctf/TokyoWesterns18/swap/exploit.py | lordidiot/lordidiot.github.io | 6dbc61fdd59fa95cbbf7843f9784f4627add3024 | [
"MIT"
] | 1 | 2021-05-18T15:21:38.000Z | 2021-05-18T15:21:38.000Z | #!/usr/bin/python
from pwn import *
import sys
#sys.path.append('/home/lord_idiot/CTF-Tools/python-libs')
HOST = "swap.chal.ctf.westerns.tokyo"
PORT = 37567
prev = None
stack_leak = None
stopRecv = False
def sett(a, b):
global stopRecv
if stopRecv:
r.sendline("1")
r.sendline(str(a))
r.sendline(str(b))
retu... | 19.553333 | 61 | 0.680191 | 443 | 2,933 | 4.379233 | 0.370203 | 0.064948 | 0.028351 | 0.037113 | 0.124227 | 0.063918 | 0 | 0 | 0 | 0 | 0 | 0.093033 | 0.168087 | 2,933 | 150 | 62 | 19.553333 | 0.702049 | 0.086942 | 0 | 0.285714 | 0 | 0 | 0.101964 | 0.010574 | 0 | 0 | 0.087613 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ad426fe2cd0ed35877343a073ff161baea48e249 | 6,450 | py | Python | src/sentinel/azext_sentinel/vendored_sdks/security_insights/models/scheduled_alert_rule.py | hpsan/azure-cli-extensions | be1589bb6dd23837796e088d28e65e873050171e | [
"MIT"
] | null | null | null | src/sentinel/azext_sentinel/vendored_sdks/security_insights/models/scheduled_alert_rule.py | hpsan/azure-cli-extensions | be1589bb6dd23837796e088d28e65e873050171e | [
"MIT"
] | null | null | null | src/sentinel/azext_sentinel/vendored_sdks/security_insights/models/scheduled_alert_rule.py | hpsan/azure-cli-extensions | be1589bb6dd23837796e088d28e65e873050171e | [
"MIT"
] | 1 | 2020-07-16T23:49:49.000Z | 2020-07-16T23:49:49.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 48.863636 | 112 | 0.66124 | 716 | 6,450 | 5.831006 | 0.223464 | 0.043114 | 0.028024 | 0.02515 | 0.069461 | 0.032096 | 0.032096 | 0.017246 | 0 | 0 | 0 | 0.003274 | 0.194884 | 6,450 | 131 | 113 | 49.236641 | 0.800693 | 0.456589 | 0 | 0 | 1 | 0 | 0.411005 | 0.155241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.018182 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad43255c829a4bfd2f807e95ca6cd3a62f209092 | 227 | py | Python | submissions/joi2014yo/a.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/joi2014yo/a.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/joi2014yo/a.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
cnt = 0
for i in range(5):
cnt += max(40, int(readline()))
print(cnt // 5)
| 20.636364 | 38 | 0.704846 | 36 | 227 | 4.444444 | 0.583333 | 0.15 | 0.2625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0.145374 | 227 | 10 | 39 | 22.7 | 0.783505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
ad456b895e37c873791aeba7f80203794e0ca4f0 | 1,661 | py | Python | jocasta/connectors/influx.py | chrishannam/zeep | c77de9dfeb093c53686d9aba7b072764f93921cb | [
"MIT"
] | null | null | null | jocasta/connectors/influx.py | chrishannam/zeep | c77de9dfeb093c53686d9aba7b072764f93921cb | [
"MIT"
] | 1 | 2020-09-13T23:24:41.000Z | 2020-09-13T23:24:41.000Z | jocasta/connectors/influx.py | chrishannam/zeep | c77de9dfeb093c53686d9aba7b072764f93921cb | [
"MIT"
] | 1 | 2020-11-11T06:03:32.000Z | 2020-11-11T06:03:32.000Z | import json
from influxdb import InfluxDBClient
import logging
import platform
from typing import Dict, List
logging.basicConfig(
level=logging.ERROR,
format='%(asctime)s.%(msecs)03d %(levelname)s: %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
)
logger = logging.getLogger(__name__)
class InfluxDBConnector... | 27.229508 | 85 | 0.634557 | 195 | 1,661 | 5.297436 | 0.487179 | 0.038722 | 0.030978 | 0.036786 | 0.04453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005609 | 0.248645 | 1,661 | 60 | 86 | 27.683333 | 0.822115 | 0.093919 | 0 | 0 | 0 | 0 | 0.143929 | 0.015689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.052632 | 0.131579 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ad485b9889e8038c67dba946d973256ee8290f59 | 12,536 | py | Python | plots/for_paper/nice_plots.py | jacqueschen1/adam_sgd_heavy_tails | d4ecab6d460fb44ac3fd2b865641b8e47f3848ee | [
"Apache-2.0"
] | 1 | 2021-12-02T21:47:46.000Z | 2021-12-02T21:47:46.000Z | plots/for_paper/nice_plots.py | jacqueschen1/adam_sgd_heavy_tails | d4ecab6d460fb44ac3fd2b865641b8e47f3848ee | [
"Apache-2.0"
] | null | null | null | plots/for_paper/nice_plots.py | jacqueschen1/adam_sgd_heavy_tails | d4ecab6d460fb44ac3fd2b865641b8e47f3848ee | [
"Apache-2.0"
] | null | null | null | """
Used to generate the plots for the increasing batch size experiments
"""
import pandas
import numpy as np
import matplotlib.pyplot as plt
import math
import data_helpers as h
import fplt
import data_selection
import plotting_common as plth
from plotting_common import (
BEST_PLOT,
METRIC_VS_SS,
dataset_... | 28.107623 | 87 | 0.574426 | 1,651 | 12,536 | 4.014537 | 0.147184 | 0.059143 | 0.023537 | 0.038021 | 0.447495 | 0.406307 | 0.344146 | 0.328757 | 0.31548 | 0.299185 | 0 | 0.011485 | 0.32626 | 12,536 | 445 | 88 | 28.170787 | 0.773265 | 0.014837 | 0 | 0.412399 | 1 | 0 | 0.017505 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 1 | 0.016173 | false | 0 | 0.024259 | 0 | 0.043127 | 0.002695 | 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 |
ad496f4b3ebfa280fbf66d5fd4577acb9955850d | 4,799 | py | Python | model_building_tools/gen_classes/psql_to_csv.py | jdailey/EnergyPATHWAYS | 0fb0ead475b6395f6b07fc43fe6c85826ee47d0f | [
"MIT"
] | 26 | 2017-02-06T22:57:29.000Z | 2022-03-25T20:02:32.000Z | model_building_tools/gen_classes/psql_to_csv.py | jdailey/EnergyPATHWAYS | 0fb0ead475b6395f6b07fc43fe6c85826ee47d0f | [
"MIT"
] | 65 | 2016-01-22T01:33:05.000Z | 2016-09-03T14:46:08.000Z | model_building_tools/gen_classes/psql_to_csv.py | jdailey/EnergyPATHWAYS | 0fb0ead475b6395f6b07fc43fe6c85826ee47d0f | [
"MIT"
] | 11 | 2017-02-24T23:27:36.000Z | 2021-10-18T17:33:37.000Z | #!/usr/bin/env python
from __future__ import print_function
import click
import os
import pandas as pd
from postgres import Tables_to_ignore, mkdirs, PostgresDatabase
@click.command()
@click.option('--dbname', '-d', default='pathways',
help='PostgreSQL database name (default="pathways")')
@click.option(... | 41.017094 | 156 | 0.637841 | 623 | 4,799 | 4.775281 | 0.319422 | 0.021849 | 0.020168 | 0.024202 | 0.107899 | 0.086387 | 0.055798 | 0.055798 | 0.028908 | 0.028908 | 0 | 0.001332 | 0.217754 | 4,799 | 116 | 157 | 41.37069 | 0.791156 | 0.157533 | 0 | 0.078947 | 0 | 0.013158 | 0.358987 | 0.042453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.052632 | 0.065789 | 0 | 0.092105 | 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 |
ad4bd70fd6fed4ef858371acd850666627521552 | 1,771 | py | Python | tests/test_backwards.py | arvindanugula/flywheel | f7243476828ab906fb7b2b65c6ee484a148055c9 | [
"MIT"
] | 72 | 2016-09-05T08:54:13.000Z | 2021-11-14T05:53:46.000Z | tests/test_backwards.py | arvindanugula/flywheel | f7243476828ab906fb7b2b65c6ee484a148055c9 | [
"MIT"
] | 29 | 2015-01-25T08:20:31.000Z | 2016-08-29T19:01:06.000Z | tests/test_backwards.py | arvindanugula/flywheel | f7243476828ab906fb7b2b65c6ee484a148055c9 | [
"MIT"
] | 19 | 2016-09-09T07:21:05.000Z | 2021-12-25T05:10:49.000Z | """ Test backwards-compatible behavior """
import json
from flywheel import Field, Model
from flywheel.fields.types import TypeDefinition, DictType, STRING
from flywheel.tests import DynamoSystemTest
class JsonType(TypeDefinition):
""" Simple type that serializes to JSON """
data_type = json
ddb_data_t... | 26.833333 | 67 | 0.634105 | 227 | 1,771 | 4.837004 | 0.356828 | 0.043716 | 0.046448 | 0.057377 | 0.295993 | 0.254098 | 0.227687 | 0.178506 | 0.178506 | 0.178506 | 0 | 0.003695 | 0.236025 | 1,771 | 65 | 68 | 27.246154 | 0.807834 | 0.158103 | 0 | 0.205128 | 0 | 0 | 0.022712 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.153846 | false | 0 | 0.102564 | 0.076923 | 0.564103 | 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 |
ad56867e3cd412e8cf62e913dbdae2df9e8612fe | 684 | py | Python | app/utils/assets.py | coolpalani/Flask-Salt | 6e1855ac689eabf5d622605226b1c9565c090808 | [
"MIT"
] | 12 | 2016-11-03T03:11:53.000Z | 2021-01-27T03:18:33.000Z | app/utils/assets.py | coolpalani/Flask-Salt | 6e1855ac689eabf5d622605226b1c9565c090808 | [
"MIT"
] | null | null | null | app/utils/assets.py | coolpalani/Flask-Salt | 6e1855ac689eabf5d622605226b1c9565c090808 | [
"MIT"
] | 5 | 2016-11-24T03:03:17.000Z | 2020-11-05T13:24:33.000Z | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# __author__: Yxn
# date: 2016/10/14
from flask_assets import Bundle
bundles = {
'common_css': Bundle(
'css/body.css',
'css/lib/adminlte/adminlte.min.css',
'css/lib/bootstrap/bootstrap.min.css',
'css/lib/skins/skin-blue.min.css',
... | 24.428571 | 51 | 0.581871 | 90 | 684 | 4.344444 | 0.444444 | 0.061381 | 0.092072 | 0.092072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019157 | 0.236842 | 684 | 27 | 52 | 25.333333 | 0.729885 | 0.109649 | 0 | 0.1 | 0 | 0 | 0.532231 | 0.419835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad5a5b6933855be19b6b2177d4de140c34361cd9 | 1,117 | py | Python | alice.py | finnsjames/ssn | d0bd95f5c05a5544a73c90ac67a46b4202236ebc | [
"MIT"
] | null | null | null | alice.py | finnsjames/ssn | d0bd95f5c05a5544a73c90ac67a46b4202236ebc | [
"MIT"
] | null | null | null | alice.py | finnsjames/ssn | d0bd95f5c05a5544a73c90ac67a46b4202236ebc | [
"MIT"
] | null | null | null | import govt
import service
from cryptography.hazmat.primitives.asymmetric import dh
import tools
def print_as_hex(data: bytes):
print(data.hex())
def main():
NAME = "Alice"
# TODO: This is just to get a large prime number
params = dh.generate_parameters(generator=2, key_size=512)
p = params.pa... | 19.596491 | 62 | 0.588183 | 172 | 1,117 | 3.674419 | 0.447674 | 0.056962 | 0.044304 | 0.053797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018473 | 0.273053 | 1,117 | 56 | 63 | 19.946429 | 0.759852 | 0.078782 | 0 | 0 | 0 | 0 | 0.093659 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ad5d1b3d69b1903f71c251c054daabaaca192374 | 3,024 | py | Python | app.py | cynepton/fyyur | 857d0a17718801a3d00b348ba83bd64b543ba1c7 | [
"MIT"
] | null | null | null | app.py | cynepton/fyyur | 857d0a17718801a3d00b348ba83bd64b543ba1c7 | [
"MIT"
] | null | null | null | app.py | cynepton/fyyur | 857d0a17718801a3d00b348ba83bd64b543ba1c7 | [
"MIT"
] | null | null | null | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
import json
import dateutil.parser
import babel
from flask import Flask, render_template, request, Response, flash, redirect, url_for
from flask_moment... | 28.8 | 88 | 0.456019 | 267 | 3,024 | 5 | 0.445693 | 0.033708 | 0.044944 | 0.032959 | 0.053933 | 0.053933 | 0 | 0 | 0 | 0 | 0 | 0.010048 | 0.111442 | 3,024 | 104 | 89 | 29.076923 | 0.486788 | 0.416997 | 0 | 0 | 0 | 0.019231 | 0.128265 | 0.013929 | 0 | 0 | 0 | 0.009615 | 0 | 1 | 0.096154 | false | 0 | 0.269231 | 0.057692 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad5eca5f2c151bba705340d98426b53c7e89bce8 | 10,245 | py | Python | src/NN_4_layer.py | FrankZhang427/ModifiedMNIST | 0de9c928eb8ddbb715f52f43d72902f393ce4bca | [
"MIT"
] | null | null | null | src/NN_4_layer.py | FrankZhang427/ModifiedMNIST | 0de9c928eb8ddbb715f52f43d72902f393ce4bca | [
"MIT"
] | null | null | null | src/NN_4_layer.py | FrankZhang427/ModifiedMNIST | 0de9c928eb8ddbb715f52f43d72902f393ce4bca | [
"MIT"
] | null | null | null | # This file implements the 4-layer fully-connected feedforward neuron network. The activation function is tanh and softmax is implemented at the output layer. A weighting function is incorporated in the gradient descent process to deal with imbalanced training classes. Different hyper-parameters can be specified at the... | 41.144578 | 418 | 0.630551 | 1,566 | 10,245 | 4.038953 | 0.230524 | 0.016601 | 0.010435 | 0.010435 | 0.233992 | 0.200949 | 0.170593 | 0.170593 | 0.140553 | 0.117154 | 0 | 0.050119 | 0.259932 | 10,245 | 248 | 419 | 41.310484 | 0.783962 | 0.362421 | 0 | 0.139665 | 0 | 0 | 0.084767 | 0.003409 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027933 | 0.011173 | null | null | 0.122905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ad5fcbb3e08e72c0da7073eb407c653cf5e6715b | 2,644 | py | Python | where/parsers/eop_bulletin_a.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 16 | 2018-08-31T10:31:11.000Z | 2022-03-15T16:07:24.000Z | where/parsers/eop_bulletin_a.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 5 | 2018-07-13T14:04:24.000Z | 2021-06-17T02:14:44.000Z | where/parsers/eop_bulletin_a.py | ingridfausk/where | b65398911075b7ddef3a3a1146efa428eae498fe | [
"MIT"
] | 15 | 2018-06-07T05:45:24.000Z | 2022-03-15T16:07:27.000Z | """A parser for reading data from EOP files
Description:
------------
Reads data from EOP files.
"""
# Midgard imports
from midgard.dev import plugins
from midgard.math.unit import Unit
from midgard.parsers._parser_line import LineParser
@plugins.register
class EopBulletinAParser(LineParser):
"""A parser for ... | 23.192982 | 137 | 0.310514 | 227 | 2,644 | 3.488987 | 0.303965 | 0.055556 | 0.045455 | 0.040404 | 0.169192 | 0.169192 | 0.156566 | 0.121212 | 0 | 0 | 0 | 0.073214 | 0.576399 | 2,644 | 113 | 138 | 23.39823 | 0.633929 | 0.059758 | 0 | 0.416667 | 0 | 0.010417 | 0.131015 | 0.015366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.03125 | 0.010417 | 0.072917 | 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 |
ad606afada83872892d679427ee1948193884be5 | 3,210 | py | Python | share/gan_face/train_gan.py | tomsnail/opencv_tf_py | cf9aa7fa250546564cff56aa33b5a39991b0d8f1 | [
"Apache-2.0"
] | null | null | null | share/gan_face/train_gan.py | tomsnail/opencv_tf_py | cf9aa7fa250546564cff56aa33b5a39991b0d8f1 | [
"Apache-2.0"
] | null | null | null | share/gan_face/train_gan.py | tomsnail/opencv_tf_py | cf9aa7fa250546564cff56aa33b5a39991b0d8f1 | [
"Apache-2.0"
] | 1 | 2020-05-22T09:19:56.000Z | 2020-05-22T09:19:56.000Z | #-*- coding:utf-8 -*-
from generate_face import *
from gan_model import ganModel
import tensorflow as tf
if __name__ == '__main__':
hparams = tf.contrib.training.HParams(
data_root = './../../datas/gan_face/img_align_celeba',
crop_h = 108, #对原始图片裁剪后高
crop_w = 108, #对原始图片裁剪后宽
r... | 51.774194 | 148 | 0.621495 | 430 | 3,210 | 4.353488 | 0.288372 | 0.042735 | 0.02938 | 0.019231 | 0.237179 | 0.174145 | 0.110577 | 0.110577 | 0.061966 | 0.061966 | 0 | 0.015886 | 0.254829 | 3,210 | 62 | 149 | 51.774194 | 0.766722 | 0.066355 | 0 | 0.036364 | 1 | 0 | 0.11465 | 0.076098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054545 | 0 | 0.054545 | 0.072727 | 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 |
ad69ec200eb790ed502ee6e1bf08f803131d401a | 4,687 | py | Python | compile.py | rolandoam/ChesterGL | b13c0436be46a31c7f83c2db2c2451c0972efa16 | [
"MIT"
] | 1 | 2019-03-01T18:29:05.000Z | 2019-03-01T18:29:05.000Z | compile.py | rolandoam/ChesterGL | b13c0436be46a31c7f83c2db2c2451c0972efa16 | [
"MIT"
] | null | null | null | compile.py | rolandoam/ChesterGL | b13c0436be46a31c7f83c2db2c2451c0972efa16 | [
"MIT"
] | 1 | 2021-11-26T02:41:58.000Z | 2021-11-26T02:41:58.000Z | # compile.py
# - Version: 1.0
# - Replacement for the Makefile. This is cross-platform.
# - Requires Python 2.7+
import sys, argparse, subprocess, urllib2
externs = ['jquery-1.7.js', 'webkit_console.js', 'google_analytics_api.js', 'json.js']
src = ['chesterGL/core.js', 'chesterGL/block.js', 'chesterGL/blockFrames.js',... | 43 | 279 | 0.664818 | 567 | 4,687 | 5.419753 | 0.31746 | 0.042955 | 0.041002 | 0.024732 | 0.146762 | 0.122681 | 0.122681 | 0.122681 | 0.122681 | 0.096974 | 0 | 0.007491 | 0.145509 | 4,687 | 109 | 280 | 43 | 0.7598 | 0.055046 | 0 | 0.25 | 0 | 0 | 0.435038 | 0.16478 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011905 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad6e6508b77c725f0c510227a8ff5b1111091981 | 2,366 | py | Python | commands/general.py | murilo-toddy/telegram-ss | bcc92090367a72b46ecbacff44ec9f9f8e9ce820 | [
"MIT"
] | 1 | 2022-03-22T01:03:03.000Z | 2022-03-22T01:03:03.000Z | commands/general.py | murilo-toddy/telegram-ss | bcc92090367a72b46ecbacff44ec9f9f8e9ce820 | [
"MIT"
] | 19 | 2022-01-27T19:05:59.000Z | 2022-03-29T23:16:13.000Z | commands/general.py | murilo-toddy/telegram-ss | bcc92090367a72b46ecbacff44ec9f9f8e9ce820 | [
"MIT"
] | 1 | 2022-01-27T18:56:13.000Z | 2022-01-27T18:56:13.000Z | from telegram import Update, ParseMode, ReplyKeyboardRemove, ReplyKeyboardMarkup
from telegram.ext import CallbackContext, CommandHandler
import bot
from config import COMMANDS_SHEET_ID, commands
# Registers execution of certain command
def log_command(cmd: str) -> None:
print(f"\n [!!] Command {cmd} called")
... | 38.16129 | 115 | 0.757396 | 321 | 2,366 | 5.429907 | 0.308411 | 0.050488 | 0.039013 | 0.068847 | 0.289157 | 0.230637 | 0.158348 | 0.074584 | 0.039013 | 0 | 0 | 0.005376 | 0.135249 | 2,366 | 61 | 116 | 38.786885 | 0.84653 | 0.175824 | 0 | 0 | 0 | 0.030303 | 0.112887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.121212 | 0 | 0.393939 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ad6f1a2d485cd9892e084b925cb8217e63979325 | 6,373 | py | Python | arcane/extras/benchs/bench_microhydro.py | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arcane/extras/benchs/bench_microhydro.py | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arcane/extras/benchs/bench_microhydro.py | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | #!/usr/bin/env python3
# Note: il faut au moins python 3.5 (pour subprocess.run())
import argparse
import subprocess
from string import Template
from argparse import RawDescriptionHelpFormatter
xstr = """<?xml version="1.0"?>
<case codename="ArcaneTest" xml:lang="en" codeversion="1.0">
<arcane>
<title>Tube a ch... | 36.83815 | 169 | 0.691197 | 1,013 | 6,373 | 4.176703 | 0.264561 | 0.063815 | 0.024817 | 0.027653 | 0.287875 | 0.24155 | 0.230442 | 0.212007 | 0.200898 | 0.159064 | 0 | 0.023709 | 0.146242 | 6,373 | 172 | 170 | 37.052326 | 0.753906 | 0.035933 | 0 | 0.099291 | 0 | 0.042553 | 0.673888 | 0.304936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028369 | 0 | 0.028369 | 0.021277 | 0 | 0 | 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 |
ad736d8a2842a8cc7d53c1c11349dcb5959d1cf3 | 4,566 | py | Python | Recipes/g2g_blastp.py | allista/BioUtils | 8ec645dfc63b8900e3cda483916e2e082a9ed83a | [
"MIT"
] | 1 | 2018-01-24T10:25:53.000Z | 2018-01-24T10:25:53.000Z | Recipes/g2g_blastp.py | allista/BioUtils | 8ec645dfc63b8900e3cda483916e2e082a9ed83a | [
"MIT"
] | null | null | null | Recipes/g2g_blastp.py | allista/BioUtils | 8ec645dfc63b8900e3cda483916e2e082a9ed83a | [
"MIT"
] | 1 | 2020-01-31T16:14:19.000Z | 2020-01-31T16:14:19.000Z | #!/usr/bin/python
# coding=utf-8
'''
Created on Dec 19, 2015
@author: Allis Tauri <allista@gmail.com>
'''
import os
import signal
from time import sleep
from BioUtils.NCBI import BlastCLI
from reportlab.lib import colors
from BioUtils.Tools.tmpStorage import roDict, clean_tmp_files, shelf_result
_pid = -1
abort_e... | 39.362069 | 125 | 0.604906 | 576 | 4,566 | 4.645833 | 0.467014 | 0.026906 | 0.037369 | 0.028027 | 0.115097 | 0.026158 | 0.026158 | 0 | 0 | 0 | 0 | 0.037583 | 0.242444 | 4,566 | 116 | 126 | 39.362069 | 0.736051 | 0.065703 | 0 | 0 | 0 | 0.011111 | 0.216197 | 0.07979 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.144444 | null | null | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ad75d3adfb5a1d3bb7c3d8491c4b7d6ca4ad1fb6 | 3,507 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/vultr/vultr_ssh_key_info.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/vultr/vultr_ssh_key_info.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/vultr/vultr_ssh_key_info.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2018, Yanis Guenane <yanis+ansible@guenane.org>
# (c) 2019, René Moser <mail@renemoser.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = ... | 24.354167 | 99 | 0.660108 | 441 | 3,507 | 5.052154 | 0.387755 | 0.029623 | 0.093806 | 0.059246 | 0.229354 | 0.12298 | 0.095153 | 0.095153 | 0.075404 | 0 | 0 | 0.018127 | 0.244939 | 3,507 | 143 | 100 | 24.524476 | 0.823263 | 0.063587 | 0 | 0.269565 | 0 | 0 | 0.633618 | 0.030506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034783 | false | 0 | 0.026087 | 0.008696 | 0.095652 | 0.008696 | 0 | 0 | 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 |
ad78358ab9c494ec86d37e954b1db3c552ae6923 | 3,577 | py | Python | roles/slurm/files/update_config.py | brandenm-nag/ansible | a7a993234db749ec6bade6cecf4e70add4a2a642 | [
"MIT"
] | null | null | null | roles/slurm/files/update_config.py | brandenm-nag/ansible | a7a993234db749ec6bade6cecf4e70add4a2a642 | [
"MIT"
] | null | null | null | roles/slurm/files/update_config.py | brandenm-nag/ansible | a7a993234db749ec6bade6cecf4e70add4a2a642 | [
"MIT"
] | null | null | null | #! /opt/cloud_sdk/bin/python
import re
from typing import Dict, Optional
import yaml
import citc.utils
def load_yaml(filename) -> dict:
with open(filename, "r") as f:
return yaml.safe_load(f)
def get_limits() -> Dict[str, Dict[str, str]]:
"""
Until OCI has an API to fetch service limits, we ha... | 35.77 | 225 | 0.655298 | 500 | 3,577 | 4.496 | 0.328 | 0.044039 | 0.02669 | 0.018683 | 0.16637 | 0.072954 | 0.072954 | 0.051601 | 0.051601 | 0.051601 | 0 | 0.008036 | 0.199888 | 3,577 | 99 | 226 | 36.131313 | 0.777428 | 0.060386 | 0 | 0.075758 | 0 | 0.030303 | 0.202395 | 0.1 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.121212 | false | 0 | 0.060606 | 0.015152 | 0.333333 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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.