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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a173ea079a9d2f6c7eac09bf3c7b4605b2285425 | 539 | py | Python | angr/procedures/libc/ungetc.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 2 | 2018-05-02T17:41:36.000Z | 2020-05-18T02:49:16.000Z | angr/procedures/libc/ungetc.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | null | null | null | angr/procedures/libc/ungetc.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 1 | 2022-02-10T02:29:38.000Z | 2022-02-10T02:29:38.000Z | import angr
from . import io_file_data_for_arch
######################################
# fputc
######################################
class ungetc(angr.SimProcedure):
#pylint:disable=arguments-differ
def run(self, c, file_ptr):
# TODO handle errors
# TODO THIS DOESN'T WORK IN ANYTHING BUT TH... | 26.95 | 67 | 0.575139 | 69 | 539 | 4.304348 | 0.666667 | 0.090909 | 0.06734 | 0.087542 | 0.114478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00464 | 0.200371 | 539 | 19 | 68 | 28.368421 | 0.684455 | 0.205937 | 0 | 0 | 0 | 0 | 0.005764 | 0 | 0 | 0 | 0.011527 | 0.052632 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a179ca0e02cab6794eb7a6d972846ae12f74cac1 | 1,074 | py | Python | ExercStrings06.py | marcelocmedeiros/ExerciciosComStrings | 1555b3a730394db5a4f7e4183cb617b15d529a09 | [
"MIT"
] | 1 | 2020-05-25T12:52:32.000Z | 2020-05-25T12:52:32.000Z | ExercStrings06.py | marcelocmedeiros/ExerciciosComStrings | 1555b3a730394db5a4f7e4183cb617b15d529a09 | [
"MIT"
] | null | null | null | ExercStrings06.py | marcelocmedeiros/ExerciciosComStrings | 1555b3a730394db5a4f7e4183cb617b15d529a09 | [
"MIT"
] | null | null | null | # Marcelo Campos de Medeiros
# ADS UNIFIP
# Exercicios Com Strings
# https://wiki.python.org.br/ExerciciosComStrings
'''
6- Data por extenso. Faça um programa que solicite a data de nascimento (dd/mm/aaaa) do
usuário e imprima a data com o nome do mês por extenso.
Data de Nascimento: 29/10/1973
Você nasceu e... | 33.5625 | 133 | 0.667598 | 180 | 1,074 | 3.983333 | 0.488889 | 0.055788 | 0.066946 | 0.050209 | 0.117155 | 0.066946 | 0 | 0 | 0 | 0 | 0 | 0.031567 | 0.174115 | 1,074 | 31 | 134 | 34.645161 | 0.776776 | 0.495345 | 0 | 0.307692 | 0 | 0 | 0.444023 | 0.045541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.615385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a17b321ae5033b2cf4b530d038e45a739a059f4e | 9,803 | py | Python | specialpurpose/scrum/data/hookscripts/commit.py | Mark110/e-commerce | bc0b461379a864bc5c11301e8c027fe7fb57565f | [
"Apache-2.0"
] | null | null | null | specialpurpose/scrum/data/hookscripts/commit.py | Mark110/e-commerce | bc0b461379a864bc5c11301e8c027fe7fb57565f | [
"Apache-2.0"
] | 1 | 2016-03-20T18:11:42.000Z | 2016-03-20T18:11:42.000Z | specialpurpose/scrum/data/hookscripts/commit.py | Mark110/e-commerce | bc0b461379a864bc5c11301e8c027fe7fb57565f | [
"Apache-2.0"
] | 1 | 2015-08-04T14:31:42.000Z | 2015-08-04T14:31:42.000Z | #!/usr/bin/python
from xml.dom.minidom import Document
import httplib,sys,os,subprocess
import ConfigParser
#####################################
##### Subversion configurations #####
REPOS = sys.argv[1]
REV = sys.argv[2]
# if the repository and the version number of the repository not empty.
if REPOS and REV:
#... | 40.676349 | 210 | 0.586147 | 964 | 9,803 | 5.91805 | 0.200207 | 0.09816 | 0.103243 | 0.069413 | 0.463979 | 0.460298 | 0.44908 | 0.43716 | 0.428396 | 0.402805 | 0 | 0.008873 | 0.275732 | 9,803 | 240 | 211 | 40.845833 | 0.794648 | 0.035295 | 0 | 0.399015 | 0 | 0 | 0.147081 | 0.009031 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019704 | 0.014778 | null | null | 0.064039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a17cc072e7dc41ed2d6ee413ee9cc95aadcb60da | 506 | py | Python | Easy/1572 Matrix Diagonal Sum.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | Easy/1572 Matrix Diagonal Sum.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | Easy/1572 Matrix Diagonal Sum.py | raj713335/LeetCode | e60e145d90f45d37e148e8307a3d97f5f0741de0 | [
"Apache-2.0"
] | null | null | null | # https://leetcode.com/problems/matrix-diagonal-sum/
class Solution:
def diagonalSum(self, mat: List[List[int]]) -> int:
res = 0
i, j = 0, 0
while (j < len(mat)):
#print(i,j)
res += mat[i][j]
i += 1
j += 1
i, j = 0, len(m... | 16.866667 | 55 | 0.349802 | 63 | 506 | 2.809524 | 0.396825 | 0.079096 | 0.033898 | 0.090395 | 0.158192 | 0.158192 | 0.158192 | 0.158192 | 0.158192 | 0.158192 | 0 | 0.039841 | 0.503953 | 506 | 29 | 56 | 17.448276 | 0.665339 | 0.140316 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 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 |
a180c82d0308ecc506cf2f8c517f53c4a2dda64f | 338 | py | Python | snippets/numpytest.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | snippets/numpytest.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | snippets/numpytest.py | rhishi/python-snippets | 60020d3a187d7687b38b6b58f74ceb03a37983b9 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import numpy.fft as fft
def printTypeAndValue(x):
print type(x), "\n", x
a = np.arange(10)
printTypeAndValue(a)
def vecadd_python(a, b):
c = [0] * len(a)
for i in range(N):
c[i] = a[i] + b[i]
def vecadd_numpy(a, b, N):
return a + b
N = 5000000
a = range(N)... | 15.363636 | 27 | 0.550296 | 60 | 338 | 3.066667 | 0.433333 | 0.032609 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042194 | 0.298817 | 338 | 21 | 28 | 16.095238 | 0.734177 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a183549a279588000e32cf03f1650600dc48d2ce | 50,338 | py | Python | blackjack.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | blackjack.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | blackjack.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 10 04:27:26 2020
blackjack - milestone project 2 - blackjack
@author: jblock
"""
"""
to-do list
---------------
v -class for deck actions
v -class for card actions
v -class for hand actions
v -bank
v -create gameplay
v ... | 77.562404 | 11,947 | 0.56502 | 7,044 | 50,338 | 4.015048 | 0.127768 | 0.027049 | 0.017467 | 0.011421 | 0.30058 | 0.259883 | 0.235698 | 0.219786 | 0.213563 | 0.209073 | 0 | 0.015355 | 0.356987 | 50,338 | 649 | 11,948 | 77.562404 | 0.858101 | 0.008125 | 0 | 0.649813 | 0 | 0.050562 | 0.567624 | 0.022937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026217 | false | 0 | 0.003745 | 0.005618 | 0.048689 | 0.140449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a18661551fd6fec0370f99f56d5f2e73b17d6523 | 566 | py | Python | ucam100/utils.py | blinding-answers/CAM-VGA100 | 4ca1731752907f7feaeabed2723156364161ca81 | [
"MIT"
] | null | null | null | ucam100/utils.py | blinding-answers/CAM-VGA100 | 4ca1731752907f7feaeabed2723156364161ca81 | [
"MIT"
] | null | null | null | ucam100/utils.py | blinding-answers/CAM-VGA100 | 4ca1731752907f7feaeabed2723156364161ca81 | [
"MIT"
] | null | null | null | from ucam100.command import *
def command_from_hex(hex_command: str):
# 6 Bytes = 12 hex chars
if len(hex_command) < 12:
raise Exception("6Byte hex expected")
hex_command = hex_command.upper()
hex_byte_array = [hex_command[i : i + 2] for i in range(0, len(hex_command), 2)]
command = Comma... | 31.444444 | 84 | 0.69258 | 91 | 566 | 4.010989 | 0.373626 | 0.134247 | 0.230137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.20318 | 566 | 17 | 85 | 33.294118 | 0.760532 | 0.038869 | 0 | 0 | 0 | 0 | 0.03321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 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 |
a18cbd35ad8f53661bdba9db37b0a1ac0d4ea1df | 2,254 | py | Python | src/day3.py | pgilad/advent-of-code-2017 | 4f5cf2541ba932417b10d18076d6d23043a83149 | [
"MIT"
] | 1 | 2017-12-02T12:33:12.000Z | 2017-12-02T12:33:12.000Z | src/day3.py | pgilad/advent-of-code-2017 | 4f5cf2541ba932417b10d18076d6d23043a83149 | [
"MIT"
] | null | null | null | src/day3.py | pgilad/advent-of-code-2017 | 4f5cf2541ba932417b10d18076d6d23043a83149 | [
"MIT"
] | null | null | null | from collections import namedtuple
from itertools import count
from math import ceil, sqrt
INPUT_NUMBER = 265149
Step = namedtuple("Step", ["dx", "dy", "direction"])
RIGHT = Step(1, 0, "Right")
DOWN = Step(0, 1, "Down")
LEFT = Step(-1, 0, "Left")
UP = Step(0, -1, "Up")
def steps_from_center():
for center_step i... | 23.726316 | 70 | 0.553239 | 312 | 2,254 | 3.839744 | 0.211538 | 0.052588 | 0.050083 | 0.045075 | 0.525876 | 0.487479 | 0.380634 | 0.380634 | 0.365609 | 0.365609 | 0 | 0.026473 | 0.329636 | 2,254 | 94 | 71 | 23.978723 | 0.76638 | 0.043035 | 0 | 0.402985 | 0 | 0 | 0.014877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044776 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1913714c88ec18448970b61451c0c8a7b763e37 | 3,786 | py | Python | venv/Lib/site-packages/coincurve/utils.py | CompeteLeak/crankycoin | 9376fbd3095429f2d46a3e4436023f814bb2e36a | [
"MIT"
] | null | null | null | venv/Lib/site-packages/coincurve/utils.py | CompeteLeak/crankycoin | 9376fbd3095429f2d46a3e4436023f814bb2e36a | [
"MIT"
] | null | null | null | venv/Lib/site-packages/coincurve/utils.py | CompeteLeak/crankycoin | 9376fbd3095429f2d46a3e4436023f814bb2e36a | [
"MIT"
] | null | null | null | from base64 import b64decode, b64encode
from binascii import hexlify, unhexlify
from hashlib import sha256 as _sha256
from os import urandom
from coincurve.context import GLOBAL_CONTEXT
from ._libsecp256k1 import ffi, lib
GROUP_ORDER = (b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
b'... | 26.291667 | 92 | 0.660592 | 544 | 3,786 | 4.404412 | 0.266544 | 0.035058 | 0.048831 | 0.0601 | 0.207429 | 0.182805 | 0.123957 | 0.09975 | 0.074708 | 0.043823 | 0 | 0.034168 | 0.219229 | 3,786 | 143 | 93 | 26.475524 | 0.776387 | 0.020338 | 0 | 0.141414 | 0 | 0.020202 | 0.125472 | 0.036427 | 0 | 0 | 0.017809 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a19421a18fdc90534ccda122ea2d1288402d76a2 | 6,162 | py | Python | okta/AppInstanceClient.py | rkhleics/oktasdk-python | da8183444704c6d16831d1edd619390e9120dd70 | [
"Apache-2.0"
] | 1 | 2020-09-09T12:59:19.000Z | 2020-09-09T12:59:19.000Z | okta/AppInstanceClient.py | torchbox/oktasdk-python | da8183444704c6d16831d1edd619390e9120dd70 | [
"Apache-2.0"
] | null | null | null | okta/AppInstanceClient.py | torchbox/oktasdk-python | da8183444704c6d16831d1edd619390e9120dd70 | [
"Apache-2.0"
] | 2 | 2017-11-02T22:12:57.000Z | 2019-09-16T08:02:23.000Z | import json
from okta.models.app.AppUser import AppUser
from okta.framework.ApiClient import ApiClient
from okta.framework.Utils import Utils
from okta.framework.PagedResults import PagedResults
from okta.models.app.AppInstance import AppInstance
class AppInstanceClient(ApiClient):
def __init__(self, base_url, ap... | 31.279188 | 92 | 0.606134 | 778 | 6,162 | 4.658098 | 0.120823 | 0.066777 | 0.024834 | 0.034768 | 0.646247 | 0.55436 | 0.478477 | 0.426876 | 0.323951 | 0.291391 | 0 | 0.002308 | 0.296982 | 6,162 | 196 | 93 | 31.438776 | 0.834257 | 0.329763 | 0 | 0.26087 | 0 | 0 | 0.051869 | 0.019994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.231884 | false | 0 | 0.086957 | 0 | 0.507246 | 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 |
a19deac571cbe89f6647f7d6ac3419b0eabb35c6 | 1,768 | py | Python | src/ratbag_emu/device_handler.py | whot/ratbag-emu | fb0209d48872600a593cedf104a98122b928de7f | [
"MIT"
] | null | null | null | src/ratbag_emu/device_handler.py | whot/ratbag-emu | fb0209d48872600a593cedf104a98122b928de7f | [
"MIT"
] | null | null | null | src/ratbag_emu/device_handler.py | whot/ratbag-emu | fb0209d48872600a593cedf104a98122b928de7f | [
"MIT"
] | null | null | null | from time import time, sleep
from threading import RLock
class DeviceHandler(object):
devices = {}
cur_id = -1
lock = RLock()
pool_lock = RLock()
@staticmethod
def append_device(device):
DeviceHandler.lock.acquire()
DeviceHandler.cur_id += 1
DeviceHandler.devices[Devi... | 30.482759 | 79 | 0.605204 | 176 | 1,768 | 5.931818 | 0.289773 | 0.076628 | 0.149425 | 0.16092 | 0.14751 | 0.072797 | 0 | 0 | 0 | 0 | 0 | 0.004874 | 0.303733 | 1,768 | 57 | 80 | 31.017544 | 0.843217 | 0 | 0 | 0.265306 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.040816 | 0 | 0.285714 | 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 |
a19ebeaab70a128238a5dc0cd4ccf4c5268e3a23 | 759 | py | Python | Exercicios/Exercicio045.py | RicardoMart922/estudo_Python | cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72 | [
"MIT"
] | null | null | null | Exercicios/Exercicio045.py | RicardoMart922/estudo_Python | cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72 | [
"MIT"
] | null | null | null | Exercicios/Exercicio045.py | RicardoMart922/estudo_Python | cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72 | [
"MIT"
] | null | null | null | # Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule o IMC e mostre, de acordo com a tabela abaixo:
# Abaixo de 18.5: Abaixo do peso;
# Entre 18.5 e 25: Peso ideal;
# 25 até 30: Sobrepeso;
# 30 até 40: Obesidade;
# Acima de 40: Obesidade mórbida.
peso = float(input('Informe seu peso: (kg) '))
altur... | 37.95 | 120 | 0.654809 | 138 | 759 | 3.601449 | 0.362319 | 0.090543 | 0.130785 | 0.112676 | 0.193159 | 0.124748 | 0.124748 | 0.124748 | 0 | 0 | 0 | 0.07438 | 0.202899 | 759 | 20 | 121 | 37.95 | 0.747107 | 0.335968 | 0 | 0 | 0 | 0 | 0.407631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a1a0332f58dd2410759d2186d4818bc3ee67f728 | 4,369 | py | Python | yauber_algo/_algo/tests/test_tstoolbox_llv.py | LongNguyen1012/yauber-algo | 40f7d805408a788e7f363ec02d3315ff379cc069 | [
"MIT"
] | 1 | 2019-02-09T15:34:34.000Z | 2019-02-09T15:34:34.000Z | yauber_algo/_algo/tests/test_tstoolbox_llv.py | LongNguyen1012/yauber-algo | 40f7d805408a788e7f363ec02d3315ff379cc069 | [
"MIT"
] | null | null | null | yauber_algo/_algo/tests/test_tstoolbox_llv.py | LongNguyen1012/yauber-algo | 40f7d805408a788e7f363ec02d3315ff379cc069 | [
"MIT"
] | 2 | 2018-10-10T16:01:59.000Z | 2018-11-27T16:50:56.000Z | import unittest
from yauber_algo.errors import *
class LLVTestCase(unittest.TestCase):
def test_llv(self):
import yauber_algo.sanitychecks as sc
from numpy import array, nan, inf
import os
import sys
import pandas as pd
import numpy as np
from yauber_algo.a... | 26.969136 | 88 | 0.323415 | 399 | 4,369 | 3.443609 | 0.190476 | 0.104803 | 0.104076 | 0.026201 | 0.533479 | 0.450509 | 0.406114 | 0.357351 | 0.332606 | 0.284571 | 0 | 0.067236 | 0.571069 | 4,369 | 161 | 89 | 27.136646 | 0.665955 | 0.029984 | 0 | 0.348148 | 0 | 0 | 0.01847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007407 | false | 0 | 0.066667 | 0 | 0.081481 | 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 |
a1a248cddc34ba0e930cca4f54e20500940f749e | 257 | py | Python | idunn/utils/es_wrapper.py | bbecquet/idunn | 16a6225809180b5a92eca9cb63705f156542d4d9 | [
"Apache-2.0"
] | null | null | null | idunn/utils/es_wrapper.py | bbecquet/idunn | 16a6225809180b5a92eca9cb63705f156542d4d9 | [
"Apache-2.0"
] | null | null | null | idunn/utils/es_wrapper.py | bbecquet/idunn | 16a6225809180b5a92eca9cb63705f156542d4d9 | [
"Apache-2.0"
] | null | null | null | from elasticsearch import Elasticsearch
from idunn import settings
ES_CONNECTION = None
def get_elasticsearch():
global ES_CONNECTION
if ES_CONNECTION is None:
ES_CONNECTION = Elasticsearch(settings["MIMIR_ES"])
return ES_CONNECTION
| 19.769231 | 59 | 0.766537 | 31 | 257 | 6.129032 | 0.483871 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18677 | 257 | 12 | 60 | 21.416667 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1a65110360ea0a3281ac79cf463e0a588e27404 | 1,235 | py | Python | snipar/tests/test_example.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | 1 | 2019-10-18T13:49:37.000Z | 2019-10-18T13:49:37.000Z | snipar/tests/test_example.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | null | null | null | snipar/tests/test_example.py | AlexTISYoung/snipar | dfb5beb96ce82aebac156f0b230109609393172d | [
"MIT"
] | null | null | null | import subprocess
from snipar.tests.utils import *
import os
class TestExample(SniparTest):
def test_example(self):
commands1 = [
f"rm -rf {output_root}/example_data",
f"snipar_example_data.py --dest {output_root}/example_data",
]
commands2 = [
... | 45.740741 | 151 | 0.60081 | 157 | 1,235 | 4.55414 | 0.452229 | 0.055944 | 0.071329 | 0.088112 | 0.268531 | 0.218182 | 0.131469 | 0.131469 | 0.131469 | 0.131469 | 0 | 0.012263 | 0.273684 | 1,235 | 27 | 152 | 45.740741 | 0.784838 | 0.038057 | 0 | 0.076923 | 0 | 0.076923 | 0.478114 | 0.121212 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 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 |
a1aa9da3feb0d21d086fd27c0b2355392f6e2ba6 | 552 | py | Python | apps/Util_apps/examples/generate_request_get/generate_request_get.py | wisrovi/Server-Hospital-Smart-Bracelet | 03b71f03da7450a14cb1c45e51c3ae9401058dc8 | [
"MIT"
] | null | null | null | apps/Util_apps/examples/generate_request_get/generate_request_get.py | wisrovi/Server-Hospital-Smart-Bracelet | 03b71f03da7450a14cb1c45e51c3ae9401058dc8 | [
"MIT"
] | 4 | 2021-03-19T10:58:51.000Z | 2021-06-10T20:07:14.000Z | apps/Util_apps/examples/generate_request_get/generate_request_get.py | wisrovi/Server-Hospital-Smart-Bracelet | 03b71f03da7450a14cb1c45e51c3ae9401058dc8 | [
"MIT"
] | null | null | null | from apps.Util_apps.LogProject import logging
import apps.Util_apps.Util as Util
def funcion_si_respuesta_es_correcta(response_json):
logging.info(response_json)
def funcion_si_respuesta_no_es_correcta(url):
logging.error("No se ha podido realizar la peticion a la url {}".format(url))
if __name__ == "__ma... | 34.5 | 81 | 0.726449 | 75 | 552 | 4.893333 | 0.52 | 0.098093 | 0.196185 | 0.114441 | 0.316076 | 0.163488 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 552 | 16 | 82 | 34.5 | 0.826577 | 0 | 0 | 0 | 0 | 0 | 0.146474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
a1c14fd149eddcd3db0ce7a28eb7e843c38b5402 | 495 | py | Python | radolan_to_netcdf/tests/tools.py | plvoit/radolan_to_netcdf | 9c01ee030042fb064bd883c08fd3ea13c5b52c66 | [
"BSD-3-Clause"
] | 6 | 2019-06-07T09:42:37.000Z | 2022-03-23T13:12:11.000Z | radolan_to_netcdf/tests/tools.py | plvoit/radolan_to_netcdf | 9c01ee030042fb064bd883c08fd3ea13c5b52c66 | [
"BSD-3-Clause"
] | 9 | 2019-05-06T15:22:14.000Z | 2021-11-15T17:48:26.000Z | radolan_to_netcdf/tests/tools.py | plvoit/radolan_to_netcdf | 9c01ee030042fb064bd883c08fd3ea13c5b52c66 | [
"BSD-3-Clause"
] | 1 | 2020-11-30T16:18:45.000Z | 2020-11-30T16:18:45.000Z | import pkg_resources
import glob
import os
def get_test_data_path():
return pkg_resources.resource_filename("radolan_to_netcdf", "tests/test_data")
def get_test_data_for_product(product_name):
fn_patterns = {
"RW": "radolan_rw/raa01-rw_10000-181122*---bin.gz",
"YW": "radolan_yw/raa01-yw2017.... | 27.5 | 83 | 0.715152 | 75 | 495 | 4.373333 | 0.466667 | 0.097561 | 0.10061 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096698 | 0.143434 | 495 | 17 | 84 | 29.117647 | 0.676887 | 0 | 0 | 0 | 0 | 0 | 0.337374 | 0.260606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a1c608ab56475e06bc946a7957122962511867f0 | 1,228 | py | Python | setup.py | SUNET/eduid-signup-amp | 923bc40aae00123add0b46187bd86271dbc5d136 | [
"BSD-3-Clause"
] | null | null | null | setup.py | SUNET/eduid-signup-amp | 923bc40aae00123add0b46187bd86271dbc5d136 | [
"BSD-3-Clause"
] | null | null | null | setup.py | SUNET/eduid-signup-amp | 923bc40aae00123add0b46187bd86271dbc5d136 | [
"BSD-3-Clause"
] | null | null | null | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
version = '0.3.1b2'
requires = [
'eduid-am >= 0.7.2b0',
'eduid-userdb >= 0.4.0b12',
]
test... | 22.740741 | 81 | 0.659609 | 160 | 1,228 | 4.85625 | 0.54375 | 0.099099 | 0.09009 | 0.036036 | 0.110682 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024048 | 0.187296 | 1,228 | 53 | 82 | 23.169811 | 0.754509 | 0.075733 | 0 | 0 | 0 | 0 | 0.372792 | 0.09894 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 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 |
a1cc3a231ba7284bb54763c6b7fa7ee07ea02bed | 759 | py | Python | 09-revisao/practice_python/string_lists.py | lcnodc/codes | 068e04323362737c3f840b4e21a73cf0718aa401 | [
"MIT"
] | 1 | 2019-09-16T18:00:47.000Z | 2019-09-16T18:00:47.000Z | 09-revisao/practice_python/string_lists.py | lcnodc/codes | 068e04323362737c3f840b4e21a73cf0718aa401 | [
"MIT"
] | null | null | null | 09-revisao/practice_python/string_lists.py | lcnodc/codes | 068e04323362737c3f840b4e21a73cf0718aa401 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Exercise 6: String Lists.
Ask the user for a string and print out whether this string is a
palindrome or not. (A palindrome is a string that reads the same
forwards and backwards.)
Credits:
http://www.practicepython.org/exercise/2014/03/12/06-string-lists.html
"""
... | 24.483871 | 72 | 0.677207 | 116 | 759 | 4.396552 | 0.534483 | 0.035294 | 0.076471 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022508 | 0.180501 | 759 | 30 | 73 | 25.3 | 0.797428 | 0.492754 | 0 | 0 | 0 | 0 | 0.424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a1cc4c28f7834d86f453497b93eacf7ecb5e3f4a | 24,987 | py | Python | unit_test_dbux.py | abitmore/Graphene-Metanode | 211e751293f2916e3f7307d5b66962a95fe0844e | [
"MIT"
] | 3 | 2022-02-01T21:22:49.000Z | 2022-02-02T12:26:56.000Z | unit_test_dbux.py | abitmore/Graphene-Metanode | 211e751293f2916e3f7307d5b66962a95fe0844e | [
"MIT"
] | null | null | null | unit_test_dbux.py | abitmore/Graphene-Metanode | 211e751293f2916e3f7307d5b66962a95fe0844e | [
"MIT"
] | 6 | 2022-02-01T21:22:54.000Z | 2022-02-07T23:45:04.000Z | # pylint: disable=bad-continuation, too-many-branches, too-many-statements
# pylint: disable=too-many-locals
r"""
╔════════════════════════════════════════════════════╗
║ ╔═╗╦═╗╔═╗╔═╗╦ ╦╔═╗╔╗╔╔═╗ ╔╦╗╔═╗╔╦╗╔═╗╔╗╔╔═╗╔╦╗╔═╗ ║
║ ║ ╦╠╦╝╠═╣╠═╝╠═╣║╣ ║║║║╣ ║║║║╣ ║ ╠═╣║║║║ ║ ║║║╣ ║
║ ╚═╝╩╚═╩ ╩╩ ╩ ╩╚═╝╝╚╝╚═╝ ╩ ╩╚═╝ ╩ ... | 32.075738 | 104 | 0.292592 | 2,057 | 24,987 | 3.789013 | 0.181332 | 0.054786 | 0.013857 | 0.020785 | 0.365281 | 0.30562 | 0.298435 | 0.275853 | 0.212856 | 0.201309 | 0 | 0.042588 | 0.46248 | 24,987 | 778 | 105 | 32.116967 | 0.495496 | 0.132869 | 0 | 0.436012 | 0 | 0 | 0.132798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0.011905 | 0 | 0.028274 | 0.105655 | 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 |
a1d43c9895e2cbcf1e55074ded1c033edfcdcaf3 | 709 | py | Python | platform_registry_api/cache.py | neuro-inc/platform-registry-api | a69ebf9912d86da589e2bc0fca983c760ec7fe72 | [
"Apache-2.0"
] | null | null | null | platform_registry_api/cache.py | neuro-inc/platform-registry-api | a69ebf9912d86da589e2bc0fca983c760ec7fe72 | [
"Apache-2.0"
] | 7 | 2021-11-19T00:06:38.000Z | 2022-03-25T00:10:09.000Z | platform_registry_api/cache.py | neuro-inc/platform-registry-api | a69ebf9912d86da589e2bc0fca983c760ec7fe72 | [
"Apache-2.0"
] | null | null | null | import time
from typing import Generic, Optional, TypeVar
from .typedefs import TimeFactory
T = TypeVar("T")
class ExpiringCache(Generic[T]):
def __init__(self, *, time_factory: TimeFactory = time.time) -> None:
self._time_factory = time_factory
self._cache: dict[Optional[str], tuple[T, float]] ... | 29.541667 | 75 | 0.630465 | 91 | 709 | 4.725275 | 0.362637 | 0.102326 | 0.104651 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255289 | 709 | 23 | 76 | 30.826087 | 0.814394 | 0 | 0 | 0 | 0 | 0 | 0.00141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a1d564978e5fd0e83b901ea1e880403e0098dc4a | 1,026 | py | Python | raw_pos/preprocessPOS.py | joshuakosasih/TA | 97abe70c0b10f13dbad0afd4a2b7ee5665fc81f3 | [
"MIT"
] | null | null | null | raw_pos/preprocessPOS.py | joshuakosasih/TA | 97abe70c0b10f13dbad0afd4a2b7ee5665fc81f3 | [
"MIT"
] | null | null | null | raw_pos/preprocessPOS.py | joshuakosasih/TA | 97abe70c0b10f13dbad0afd4a2b7ee5665fc81f3 | [
"MIT"
] | null | null | null | """
Preparing file
"""
name = raw_input('Enter file name: ')
myfile = open(name+'.conllu', 'r')
mydict = []
print "Processing..."
for line in myfile:
mydict.append(line)
corpus = []
lines = []
for line in mydict:
if line[:1] != '#':
if line == '\n':
corpus.append(lines)
li... | 18 | 68 | 0.526316 | 140 | 1,026 | 3.807143 | 0.328571 | 0.093809 | 0.033771 | 0.056285 | 0.123827 | 0.123827 | 0.123827 | 0.123827 | 0.123827 | 0 | 0 | 0.018868 | 0.276803 | 1,026 | 56 | 69 | 18.321429 | 0.699461 | 0 | 0 | 0.064516 | 0 | 0 | 0.11793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1dbac0fd5879629851e9c1cb7df33aac2830905 | 800 | py | Python | Examples/AdvancedUsage/LoadingOptions/ViewProtectedDocument.py | groupdocs-viewer-cloud/groupdocs-viewer-cloud-python-samples | b1032ad413c99cb5447ed5edcbfc0dfd24a82d93 | [
"MIT"
] | null | null | null | Examples/AdvancedUsage/LoadingOptions/ViewProtectedDocument.py | groupdocs-viewer-cloud/groupdocs-viewer-cloud-python-samples | b1032ad413c99cb5447ed5edcbfc0dfd24a82d93 | [
"MIT"
] | null | null | null | Examples/AdvancedUsage/LoadingOptions/ViewProtectedDocument.py | groupdocs-viewer-cloud/groupdocs-viewer-cloud-python-samples | b1032ad413c99cb5447ed5edcbfc0dfd24a82d93 | [
"MIT"
] | 1 | 2019-04-22T09:38:15.000Z | 2019-04-22T09:38:15.000Z | # Import modules
import groupdocs_viewer_cloud
from Common import Common
# This example demonstrates how to render password-protected documents
class ViewProtectedDocument:
@classmethod
def Run(cls):
apiInstance = groupdocs_viewer_cloud.ViewApi.from_config(Common.GetConfig())
view_options = g... | 42.105263 | 84 | 0.755 | 88 | 800 | 6.590909 | 0.534091 | 0.113793 | 0.172414 | 0.098276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00753 | 0.17 | 800 | 18 | 85 | 44.444444 | 0.865964 | 0.10375 | 0 | 0 | 0 | 0 | 0.107843 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a1df9d815cdc132c84e96dd22136cb243393ee2e | 2,345 | py | Python | melissa/actions/imgur_handler.py | blacksparrow6/Melissa-Core | ea08ae5e3088360d3bddc40db72160697522b8f7 | [
"MIT"
] | 554 | 2015-12-10T12:08:50.000Z | 2022-02-24T02:56:11.000Z | melissa/actions/imgur_handler.py | blacksparrow6/Melissa-Core | ea08ae5e3088360d3bddc40db72160697522b8f7 | [
"MIT"
] | 178 | 2016-01-07T06:26:17.000Z | 2020-04-23T20:41:07.000Z | melissa/actions/imgur_handler.py | blacksparrow6/Melissa-Core | ea08ae5e3088360d3bddc40db72160697522b8f7 | [
"MIT"
] | 300 | 2015-12-16T13:23:29.000Z | 2022-03-20T04:21:07.000Z | import os
import sqlite3
from datetime import datetime
from imgurpython import ImgurClient
# Melissa
from melissa import profile
from melissa.tts import tts
WORDS = {'image_uploader': {'groups': ['upload']},
'show_all_uploads': {'groups': [['all', 'uploads'],
['all', ... | 32.123288 | 75 | 0.579957 | 275 | 2,345 | 4.778182 | 0.378182 | 0.0586 | 0.048706 | 0.066971 | 0.135464 | 0.056317 | 0.056317 | 0 | 0 | 0 | 0 | 0.005364 | 0.284435 | 2,345 | 72 | 76 | 32.569444 | 0.777712 | 0.002985 | 0 | 0.113208 | 0 | 0 | 0.199058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113208 | null | null | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1ee8c70c3e9cd0c6443e8324e58dc77f7f086b6 | 2,144 | py | Python | django/stock/migrations/0001_initial.py | nah990/StockF | 58f719728f4072186459d0ca5651624eab820c5e | [
"MIT"
] | null | null | null | django/stock/migrations/0001_initial.py | nah990/StockF | 58f719728f4072186459d0ca5651624eab820c5e | [
"MIT"
] | 3 | 2021-12-27T02:05:58.000Z | 2022-03-23T00:06:14.000Z | django/stock/migrations/0001_initial.py | nah990/StockF | 58f719728f4072186459d0ca5651624eab820c5e | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2021-12-02 21:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SourceInfo',
fields=[
... | 39.703704 | 160 | 0.562034 | 208 | 2,144 | 5.634615 | 0.350962 | 0.068259 | 0.093857 | 0.110922 | 0.453925 | 0.374573 | 0.374573 | 0.374573 | 0.374573 | 0.374573 | 0 | 0.011258 | 0.295709 | 2,144 | 53 | 161 | 40.45283 | 0.764901 | 0.021455 | 0 | 0.413043 | 1 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.130435 | 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 |
a1f0467b89d6371b0b9234639fbe5bb6b09aa6e6 | 5,262 | py | Python | cookiesapi/models/strain_media.py | CookiesCo/sdk-python | 811bdc418831f96e0f71d612e647baa95f421e10 | [
"MIT"
] | 1 | 2021-09-07T17:24:41.000Z | 2021-09-07T17:24:41.000Z | cookiesapi/models/strain_media.py | CookiesCo/sdk-python | 811bdc418831f96e0f71d612e647baa95f421e10 | [
"MIT"
] | 2 | 2021-09-04T06:46:08.000Z | 2021-09-04T10:20:39.000Z | cookiesapi/models/strain_media.py | CookiesCo/sdk-python | 811bdc418831f96e0f71d612e647baa95f421e10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
cookiesapi
This file was automatically generated by APIMATIC v3.0 (
https://www.apimatic.io ).
"""
from cookiesapi.models.dual_format_graphic import DualFormatGraphic
from cookiesapi.models.media_item import MediaItem
from cookiesapi.models.responsive_graphic import ResponsiveGr... | 38.691176 | 121 | 0.58932 | 530 | 5,262 | 5.809434 | 0.203774 | 0.101332 | 0.058461 | 0.070153 | 0.142904 | 0.055862 | 0.055862 | 0.055862 | 0.055862 | 0 | 0 | 0.000845 | 0.325542 | 5,262 | 135 | 122 | 38.977778 | 0.866723 | 0.296085 | 0 | 0 | 1 | 0 | 0.092669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.0375 | 0 | 0.1125 | 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 |
a1f058937720be022ffe4548d65e5de67a12916c | 1,486 | py | Python | search_nucleotide_by_name.py | huddlej/fasta_tools | 346e8d23d1aa9221d33c74ccf48d83d6018ed62e | [
"MIT"
] | null | null | null | search_nucleotide_by_name.py | huddlej/fasta_tools | 346e8d23d1aa9221d33c74ccf48d83d6018ed62e | [
"MIT"
] | null | null | null | search_nucleotide_by_name.py | huddlej/fasta_tools | 346e8d23d1aa9221d33c74ccf48d83d6018ed62e | [
"MIT"
] | null | null | null | #!/bin/env python
"""
Given a clone name, report any matching accessions in NCBI's nucleotide
database.
"""
import argparse
from Bio import Entrez
import urllib2
Entrez.email = ""
def search_clone_by_name(clone_name):
"""
Search NCBI's clone database for the given clone name and return a list of
zero or m... | 29.137255 | 87 | 0.67362 | 190 | 1,486 | 5.073684 | 0.415789 | 0.065353 | 0.053942 | 0.070539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029463 | 0.223419 | 1,486 | 50 | 88 | 29.72 | 0.805893 | 0.133244 | 0 | 0 | 0 | 0 | 0.117196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1f3c444e0e60412fa2e67dc8af14b73219ef5bb | 5,046 | py | Python | Kaptis.py | pablotoledo/Kaptis | b6ef2b8aef03d63999628e15f6b8485ad952b409 | [
"MIT"
] | null | null | null | Kaptis.py | pablotoledo/Kaptis | b6ef2b8aef03d63999628e15f6b8485ad952b409 | [
"MIT"
] | null | null | null | Kaptis.py | pablotoledo/Kaptis | b6ef2b8aef03d63999628e15f6b8485ad952b409 | [
"MIT"
] | null | null | null | import cv2.cv as cv
from datetime import datetime
import time
class KaptisCodigo():
def cambioUsuarioValores(self, val):
self.threshold = val
#Constructor de clase
def __init__(self,threshold=5, camara=0, mostrarVentana=True):
self.writer = None
self.font = None
... | 39.116279 | 152 | 0.593143 | 571 | 5,046 | 5.140105 | 0.357268 | 0.02385 | 0.039864 | 0.024532 | 0.092675 | 0.077002 | 0.068143 | 0.0477 | 0.031346 | 0.031346 | 0 | 0.021258 | 0.319461 | 5,046 | 128 | 153 | 39.421875 | 0.83343 | 0.151407 | 0 | 0.095238 | 0 | 0 | 0.035211 | 0.005164 | 0 | 0 | 0.001174 | 0.007813 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1f5eae6b92d65c03252b84275faac647562d2da | 1,373 | py | Python | gala/potential/frame/setup_package.py | segasai/gala | 8d6f3557894231d975c287a2b8560d09a4789513 | [
"MIT"
] | null | null | null | gala/potential/frame/setup_package.py | segasai/gala | 8d6f3557894231d975c287a2b8560d09a4789513 | [
"MIT"
] | null | null | null | gala/potential/frame/setup_package.py | segasai/gala | 8d6f3557894231d975c287a2b8560d09a4789513 | [
"MIT"
] | 1 | 2018-10-23T23:20:20.000Z | 2018-10-23T23:20:20.000Z | from distutils.core import Extension
from astropy_helpers import setup_helpers
def get_extensions():
exts = []
# malloc
mac_incl_path = "/usr/include/malloc"
cfg = setup_helpers.DistutilsExtensionArgs()
cfg['include_dirs'].append('numpy')
cfg['include_dirs'].append(mac_incl_path)
cfg['inc... | 37.108108 | 74 | 0.661326 | 169 | 1,373 | 5.224852 | 0.266272 | 0.147225 | 0.16308 | 0.1359 | 0.703284 | 0.681767 | 0.681767 | 0.620612 | 0.620612 | 0.620612 | 0 | 0.003416 | 0.147123 | 1,373 | 36 | 75 | 38.138889 | 0.75064 | 0.00437 | 0 | 0.413793 | 0 | 0 | 0.419048 | 0.195604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0.034483 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1fc8be2c203470d74997099452d587a73c7adb6 | 455 | py | Python | SimpleHTTPPostServer.py | yuvalif/test-ceph-pubsub | 7df9aee42ec89f02ebdd02341e0307e4ee1d7743 | [
"Apache-2.0"
] | null | null | null | SimpleHTTPPostServer.py | yuvalif/test-ceph-pubsub | 7df9aee42ec89f02ebdd02341e0307e4ee1d7743 | [
"Apache-2.0"
] | null | null | null | SimpleHTTPPostServer.py | yuvalif/test-ceph-pubsub | 7df9aee42ec89f02ebdd02341e0307e4ee1d7743 | [
"Apache-2.0"
] | null | null | null | #!/bin/python
import SimpleHTTPServer
import BaseHTTPServer
class SpostHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_POST(self):
print self.command + " " + self.path
print self.headers
print self.rfile.read(int(self.headers['Content-Length']))
self.end_head... | 26.764706 | 73 | 0.716484 | 45 | 455 | 7 | 0.666667 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008021 | 0.178022 | 455 | 16 | 74 | 28.4375 | 0.834225 | 0.026374 | 0 | 0 | 0 | 0 | 0.052154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1fd7a10cac3ae8ca75e4962e2bd00feef6c18eb | 5,357 | py | Python | spirl/components/base_model.py | kouroshHakha/fist | 328c098789239fd892e17edefd799fc1957ab637 | [
"BSD-3-Clause"
] | 8 | 2021-10-14T03:14:23.000Z | 2022-03-15T21:31:17.000Z | spirl/components/base_model.py | kouroshHakha/fist | 328c098789239fd892e17edefd799fc1957ab637 | [
"BSD-3-Clause"
] | null | null | null | spirl/components/base_model.py | kouroshHakha/fist | 328c098789239fd892e17edefd799fc1957ab637 | [
"BSD-3-Clause"
] | 1 | 2021-09-13T20:42:28.000Z | 2021-09-13T20:42:28.000Z | import os
from contextlib import contextmanager
import torch
import torch.nn as nn
from spirl.utils.general_utils import ParamDict
from spirl.utils.pytorch_utils import Updater
from spirl.utils.general_utils import AttrDict
class BaseModel(nn.Module):
def __init__(self, logger):
super().__init__()
... | 37.992908 | 124 | 0.617883 | 631 | 5,357 | 5.025357 | 0.290016 | 0.025229 | 0.020498 | 0.028382 | 0.287922 | 0.222958 | 0.151056 | 0.151056 | 0.125197 | 0.099968 | 0 | 0.003629 | 0.279821 | 5,357 | 140 | 125 | 38.264286 | 0.8183 | 0.094083 | 0 | 0.183673 | 0 | 0 | 0.10602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0.020408 | 0.071429 | 0.010204 | 0.336735 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b80381fa513fd4e3aed93e6cb24a7bf8af0a4bae | 2,653 | py | Python | nephoria/testcase_utils/argparse_to_dict.py | Corymbia/nephoria | fe8ad7beba479e7a8de70f09cf1fdb4d640b4987 | [
"BSD-2-Clause"
] | 5 | 2016-08-31T06:51:18.000Z | 2018-04-25T20:50:25.000Z | nephoria/testcase_utils/argparse_to_dict.py | Corymbia/nephoria | fe8ad7beba479e7a8de70f09cf1fdb4d640b4987 | [
"BSD-2-Clause"
] | 49 | 2016-04-19T07:01:46.000Z | 2017-11-17T23:57:18.000Z | nephoria/testcase_utils/argparse_to_dict.py | Corymbia/nephoria | fe8ad7beba479e7a8de70f09cf1fdb4d640b4987 | [
"BSD-2-Clause"
] | 14 | 2016-04-14T17:01:35.000Z | 2021-07-13T13:35:38.000Z | import re
f = open('convert.txt')
with f:
text = f.readlines()
start = False
end = False
block = ""
args = []
kwargs = {}
if text:
print "_DEFAULT_CLI_ARGS = copy.copy(CliTestRunner._DEFAULT_CLI_ARGS)"
for line in text:
text = str(line.strip())
text = text.replace('self.parser.add_argument(', '')
i... | 36.342466 | 110 | 0.44968 | 302 | 2,653 | 3.89404 | 0.248344 | 0.034014 | 0.035714 | 0.032313 | 0.039116 | 0.039116 | 0.039116 | 0 | 0 | 0 | 0 | 0.009496 | 0.36487 | 2,653 | 72 | 111 | 36.847222 | 0.688427 | 0.148134 | 0 | 0.22807 | 0 | 0 | 0.129004 | 0.051601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017544 | null | null | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b804340ea741b11074a1b1874913204cb48fca57 | 1,850 | py | Python | test/programytest/clients/events/test_client.py | cdoebler1/AIML2 | ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a | [
"MIT"
] | 345 | 2016-11-23T22:37:04.000Z | 2022-03-30T20:44:44.000Z | test/programytest/clients/events/test_client.py | MikeyBeez/program-y | 00d7a0c7d50062f18f0ab6f4a041068e119ef7f0 | [
"MIT"
] | 275 | 2016-12-07T10:30:28.000Z | 2022-02-08T21:28:33.000Z | test/programytest/clients/events/test_client.py | VProgramMist/modified-program-y | f32efcafafd773683b3fe30054d5485fe9002b7d | [
"MIT"
] | 159 | 2016-11-28T18:59:30.000Z | 2022-03-20T18:02:44.000Z | import unittest.mock
from programy.clients.config import ClientConfigurationData
from programy.clients.events.client import EventBotClient
from programytest.clients.arguments import MockArgumentParser
class MockEventBotClient(EventBotClient):
def __init__(self, id, argument_parser=None):
EventBotClient.... | 26.811594 | 67 | 0.701081 | 185 | 1,850 | 6.778378 | 0.291892 | 0.025518 | 0.031898 | 0.057416 | 0.417863 | 0.275917 | 0.275917 | 0.275917 | 0.275917 | 0.275917 | 0 | 0 | 0.218378 | 1,850 | 68 | 68 | 27.205882 | 0.86722 | 0 | 0 | 0.413043 | 0 | 0 | 0.022703 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.26087 | false | 0.043478 | 0.086957 | 0.043478 | 0.456522 | 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 |
b80b0cbfce01befd91c832fa4ca79ee29eb67eb2 | 1,236 | py | Python | server/trans.py | baolinw/cloud | 5ba0433644fd271115d164afbd4a27470f488c62 | [
"Apache-2.0"
] | 1 | 2018-12-30T11:34:53.000Z | 2018-12-30T11:34:53.000Z | server/trans.py | baolinw/cloud | 5ba0433644fd271115d164afbd4a27470f488c62 | [
"Apache-2.0"
] | null | null | null | server/trans.py | baolinw/cloud | 5ba0433644fd271115d164afbd4a27470f488c62 | [
"Apache-2.0"
] | null | null | null | # Transaction Manager
import thread
import threading
import time
import file_handler
# map transaction id => []
Transactions = {}
current_min_transaction_id = 1000
mutex = threading.Lock()
# multitreading, handle trasaction fails
def timer_tick_function():
global Transactions,mutex
while True:
cur... | 21.310345 | 57 | 0.708738 | 153 | 1,236 | 5.529412 | 0.385621 | 0.076832 | 0.099291 | 0.108747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.194984 | 1,236 | 58 | 58 | 21.310345 | 0.840201 | 0.067152 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0.045455 | 0.386364 | 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 |
b80df5d31b2d6375c4cc88cf0171785ae4acdf71 | 337 | py | Python | tests/packagedcode/data/pypi/setup.py/arpy_setup.py | s4-2/scancode-toolkit | 8931b42e2630b94d0cabc834dfb3c16f01f82321 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,511 | 2015-07-01T15:29:03.000Z | 2022-03-30T13:40:05.000Z | tests/packagedcode/data/pypi/setup.py/arpy_setup.py | s4-2/scancode-toolkit | 8931b42e2630b94d0cabc834dfb3c16f01f82321 | [
"Apache-2.0",
"CC-BY-4.0"
] | 2,695 | 2015-07-01T16:01:35.000Z | 2022-03-31T19:17:44.000Z | tests/packagedcode/data/pypi/setup.py/arpy_setup.py | s4-2/scancode-toolkit | 8931b42e2630b94d0cabc834dfb3c16f01f82321 | [
"Apache-2.0",
"CC-BY-4.0"
] | 540 | 2015-07-01T15:08:19.000Z | 2022-03-31T12:13:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(name='arpy',
version='0.1.1',
description='Library for accessing "ar" files',
author=u'Stanisław Pitucha',
author_email='viraptor@gmail.com',
url='http://bitbucket.org/viraptor/arpy',
py_modules=['arpy'],
license="Simpl... | 21.0625 | 49 | 0.679525 | 46 | 337 | 4.934783 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.133531 | 337 | 15 | 50 | 22.466667 | 0.763699 | 0.124629 | 0 | 0 | 0 | 0 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8169056e4ad513f1c9a24cacb2e691f035fa6af | 4,523 | py | Python | dev/08_01_2018/UPS_SCIP.py | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | dev/08_01_2018/UPS_SCIP.py | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | dev/08_01_2018/UPS_SCIP.py | npwebste/UPS_Controller | a90ce2229108197fd48f956310ae2929e0fa5d9a | [
"AFL-1.1"
] | null | null | null | # ©2018 The Arizona Board of Regents for and on behalf of Arizona State University and the Laboratory for Energy And Power Solutions, All Rights Reserved.
#
# Universal Power System Controller
# USAID Middle East Water Security Initiative
#
# Developed by: Nathan Webster
# Primary Investigator: Nathan Johnson
#
# Versi... | 39.330435 | 190 | 0.555826 | 724 | 4,523 | 3.375691 | 0.218232 | 0.022095 | 0.08838 | 0.125205 | 0.319149 | 0.24018 | 0.085106 | 0.025368 | 0.025368 | 0 | 0 | 0.036859 | 0.220208 | 4,523 | 115 | 191 | 39.330435 | 0.655798 | 0.10126 | 0 | 0.057971 | 0 | 0 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014493 | null | null | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b81bca69898852c284ced1a393026933021ebf36 | 17,087 | py | Python | uluplot/uluplot.py | ulu5/uluplot | 21b49ca18a51ff5df87d1d9b482c7dfc1445af2e | [
"MIT"
] | null | null | null | uluplot/uluplot.py | ulu5/uluplot | 21b49ca18a51ff5df87d1d9b482c7dfc1445af2e | [
"MIT"
] | null | null | null | uluplot/uluplot.py | ulu5/uluplot | 21b49ca18a51ff5df87d1d9b482c7dfc1445af2e | [
"MIT"
] | null | null | null | import math
import requests
import json
import os
import urllib
from .color_dicts import mpl_color_map, html_color_codes
def safe_iter(var):
try:
return iter(var)
except TypeError:
return [var]
class GoogleMapPlotter(object):
def __init__(self, center_lat, center_lng, zoom, apikey=''):
... | 42.294554 | 228 | 0.55036 | 2,169 | 17,087 | 4.263255 | 0.171508 | 0.049962 | 0.034065 | 0.010382 | 0.300097 | 0.25219 | 0.221153 | 0.204066 | 0.185682 | 0.161566 | 0 | 0.071951 | 0.280155 | 17,087 | 403 | 229 | 42.399504 | 0.679837 | 0.023644 | 0 | 0.228487 | 0 | 0.020772 | 0.180236 | 0.042509 | 0.005935 | 0 | 0 | 0.002481 | 0 | 0 | null | null | 0 | 0.017804 | null | null | 0.002967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b81cec6a03359bc1a1f0d9513c0231777e13b48a | 1,518 | py | Python | whoalias/google.py | griimnak/WhoAlias | 8c7c744d18890a1d8777868445e3e313cf7125c1 | [
"Unlicense"
] | 3 | 2019-06-11T08:03:03.000Z | 2021-07-01T18:13:19.000Z | whoalias/google.py | griimnak/WhoAlias | 8c7c744d18890a1d8777868445e3e313cf7125c1 | [
"Unlicense"
] | null | null | null | whoalias/google.py | griimnak/WhoAlias | 8c7c744d18890a1d8777868445e3e313cf7125c1 | [
"Unlicense"
] | null | null | null | from urllib.parse import urlencode, urlparse, parse_qs
import requests
from bs4 import BeautifulSoup, SoupStrainer
from ._writer import Output
async def scrape(all_aliases):
aliases_tested = 0
aliases_found = 0
for alias in all_aliases:
""" Might add a config file to manage all URLS ..
... | 33 | 107 | 0.562582 | 174 | 1,518 | 4.816092 | 0.465517 | 0.062053 | 0.064439 | 0.052506 | 0.062053 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017425 | 0.319499 | 1,518 | 45 | 108 | 33.733333 | 0.793804 | 0.126482 | 0 | 0.076923 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
629412e977d38f7377363140b5f329922fb5d895 | 603 | py | Python | neopixel/neo_strip/np_rainbow.py | randmor/microbit-lib | 68bf5a10b52fc56e87f5e4390285a4547eb58120 | [
"MIT"
] | 44 | 2018-01-29T16:27:34.000Z | 2022-03-18T18:11:33.000Z | neopixel/neo_strip/np_rainbow.py | bsliao0211/microbit-lib | fd767fb44173f317e4640a7af08afdb065770d91 | [
"MIT"
] | 8 | 2018-09-03T15:12:54.000Z | 2022-03-08T13:30:16.000Z | neopixel/neo_strip/np_rainbow.py | bsliao0211/microbit-lib | fd767fb44173f317e4640a7af08afdb065770d91 | [
"MIT"
] | 36 | 2018-02-07T03:35:24.000Z | 2022-03-15T15:21:19.000Z | from microbit import *
import neopixel
np = neopixel.NeoPixel(pin1 ,32)
def np_rainbow(np, num, bright=32, offset = 0):
rb = ((255,0,0), (255,127,0), (255,255,0), (0,255,0), (0,255,255),(0,0,255),(136,0,255), (255,0,0))
for i in range(num):
t = 7*i/num
t0 = int(t)
r = round((rb[t0][0] ... | 33.5 | 103 | 0.515755 | 121 | 603 | 2.553719 | 0.280992 | 0.116505 | 0.080906 | 0.10356 | 0.184466 | 0.07767 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.197347 | 603 | 17 | 104 | 35.470588 | 0.456612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 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 |
6297e14d0e4143f93c589581abb29d92eaaaeb70 | 2,375 | py | Python | src/arti/io/__init__.py | artigraph/artigraph | 8904dbd708dcf961ab64a5b5e523828accb1a5fa | [
"Apache-2.0"
] | 13 | 2021-12-29T05:25:01.000Z | 2022-02-28T04:50:47.000Z | src/arti/io/__init__.py | artigraph/artigraph | 8904dbd708dcf961ab64a5b5e523828accb1a5fa | [
"Apache-2.0"
] | 41 | 2021-12-29T05:27:16.000Z | 2022-03-28T00:38:45.000Z | src/arti/io/__init__.py | artigraph/artigraph | 8904dbd708dcf961ab64a5b5e523828accb1a5fa | [
"Apache-2.0"
] | null | null | null | __path__ = __import__("pkgutil").extend_path(__path__, __name__)
from collections.abc import Sequence
from types import ModuleType
from typing import Any, Optional
from arti.formats import Format
from arti.internal.utils import dispatch, import_submodules
from arti.storage import StoragePartition, _StoragePartition
f... | 33.450704 | 125 | 0.731368 | 289 | 2,375 | 5.775087 | 0.349481 | 0.047933 | 0.057519 | 0.047933 | 0.184542 | 0.184542 | 0.184542 | 0.184542 | 0.184542 | 0.184542 | 0 | 0.001035 | 0.186526 | 2,375 | 70 | 126 | 33.928571 | 0.862836 | 0.131368 | 0 | 0.25 | 0 | 0.041667 | 0.152237 | 0.026265 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.104167 | false | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
629c97d93ab7284008fab79ecfd312fda2597836 | 1,623 | py | Python | mysite/Profile/migrations/0001_initial.py | dmatiasr/django-demo | e763561844d25b75c8d900ed04ca3891c92f52b9 | [
"MIT"
] | null | null | null | mysite/Profile/migrations/0001_initial.py | dmatiasr/django-demo | e763561844d25b75c8d900ed04ca3891c92f52b9 | [
"MIT"
] | 5 | 2020-06-05T18:53:24.000Z | 2021-12-13T19:49:15.000Z | mysite/Profile/migrations/0001_initial.py | dmatiasr/django-demo | e763561844d25b75c8d900ed04ca3891c92f52b9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-08-18 22:32
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 37.744186 | 132 | 0.60382 | 175 | 1,623 | 5.451429 | 0.445714 | 0.050314 | 0.02935 | 0.046122 | 0.234801 | 0.234801 | 0.165618 | 0.165618 | 0.165618 | 0.165618 | 0 | 0.022314 | 0.254467 | 1,623 | 42 | 133 | 38.642857 | 0.766116 | 0.041898 | 0 | 0.323529 | 1 | 0 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
629e137b2e6019d70bb5cd041be61e5b69e9f561 | 367 | py | Python | tests/support/views.py | armstrong/armstrong.core.arm_sections | 39c999c93771da909359e53b35afefe4846f77cb | [
"Apache-2.0"
] | null | null | null | tests/support/views.py | armstrong/armstrong.core.arm_sections | 39c999c93771da909359e53b35afefe4846f77cb | [
"Apache-2.0"
] | null | null | null | tests/support/views.py | armstrong/armstrong.core.arm_sections | 39c999c93771da909359e53b35afefe4846f77cb | [
"Apache-2.0"
] | 1 | 2018-03-05T18:26:33.000Z | 2018-03-05T18:26:33.000Z | from armstrong.core.arm_sections.views import SimpleSectionView
from .models import CustomSection
class CustomSectionView(SimpleSectionView):
def get(self, request, **kwargs):
self.object = self.get_object(queryset=CustomSection.objects.all())
context = self.get_context_data(object=self.object)
... | 33.363636 | 75 | 0.765668 | 43 | 367 | 6.395349 | 0.627907 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144414 | 367 | 10 | 76 | 36.7 | 0.875796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
629f10161124961ecdbc4efe43a97523723fbe16 | 1,648 | py | Python | src/vmware/azext_vmware/vendored_sdks/models/private_cloud_update.py | YingXue/azure-cli-extensions | 30086b7fe22ed591daaae9019920db6c16aef9de | [
"MIT"
] | 2 | 2021-06-05T17:51:26.000Z | 2021-11-17T11:17:56.000Z | src/vmware/azext_vmware/vendored_sdks/models/private_cloud_update.py | YingXue/azure-cli-extensions | 30086b7fe22ed591daaae9019920db6c16aef9de | [
"MIT"
] | 1 | 2020-06-12T01:39:40.000Z | 2020-06-12T01:39:40.000Z | src/vmware/azext_vmware/vendored_sdks/models/private_cloud_update.py | YingXue/azure-cli-extensions | 30086b7fe22ed591daaae9019920db6c16aef9de | [
"MIT"
] | 1 | 2019-05-02T00:55:30.000Z | 2019-05-02T00:55:30.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 ... | 43.368421 | 99 | 0.631675 | 168 | 1,648 | 6.059524 | 0.47619 | 0.088409 | 0.053045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000728 | 0.166262 | 1,648 | 37 | 100 | 44.540541 | 0.740175 | 0.506068 | 0 | 0 | 1 | 0 | 0.312336 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.285714 | 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 |
62a1170527a4da8620fcc78f5206b4083d7e021d | 53,283 | py | Python | third_party/sqlalchemy_0_7_1/sqlalchemy/ext/declarative.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | null | null | null | third_party/sqlalchemy_0_7_1/sqlalchemy/ext/declarative.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | null | null | null | third_party/sqlalchemy_0_7_1/sqlalchemy/ext/declarative.py | bopopescu/build | 4e95fd33456e552bfaf7d94f7d04b19273d1c534 | [
"BSD-3-Clause"
] | 1 | 2020-07-23T11:05:06.000Z | 2020-07-23T11:05:06.000Z | # ext/declarative.py
# Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
Synopsis
========
SQLAlchemy object-relational configuration involves the
comb... | 37.365358 | 106 | 0.639754 | 6,330 | 53,283 | 5.190995 | 0.134597 | 0.013695 | 0.01406 | 0.019173 | 0.219057 | 0.187255 | 0.162634 | 0.150005 | 0.134666 | 0.118141 | 0 | 0.002391 | 0.26988 | 53,283 | 1,425 | 107 | 37.391579 | 0.842249 | 0.027476 | 0 | 0.17033 | 0 | 0 | 0.11598 | 0.002835 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021978 | 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 |
62a4b230edfbd1faa9fd3d273757a45052a089d1 | 204 | py | Python | epikjjh/baekjoon/15927.py | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 3 | 2019-05-19T13:44:39.000Z | 2019-07-03T11:15:20.000Z | epikjjh/baekjoon/15927.py | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 7 | 2019-05-06T02:37:26.000Z | 2019-06-29T07:28:02.000Z | epikjjh/baekjoon/15927.py | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 1 | 2019-07-28T06:24:54.000Z | 2019-07-28T06:24:54.000Z | import sys
input = lambda: sys.stdin.readline().rstrip()
stream = input()
reverse = stream[::-1]
ans = len(stream) if stream != reverse else (len(stream)-1 if stream[1:]!=reverse[:-1] else -1)
print(ans) | 29.142857 | 95 | 0.676471 | 32 | 204 | 4.3125 | 0.46875 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.127451 | 204 | 7 | 96 | 29.142857 | 0.747191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
62a697d806dc3a20e0829dc0b864a96e854cfd72 | 354 | py | Python | Chapter 02/Chap02_Example2.30.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 02/Chap02_Example2.30.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 02/Chap02_Example2.30.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | #isdecimal
n1 = "947"
print(n1.isdecimal()) # -- D1
n2 = "947 2"
print(n2.isdecimal()) # -- D2
n3 = "abx123"
print(n3.isdecimal()) # -- D3
n4 = "\u0034"
print(n4.isdecimal()) # -- D4
n5 = "\u0038"
print(n5.isdecimal()) # -- D5
n6 = "\u0041"
print(n6.isdecimal()) # -- D6
n7 = "3.4"
print(n7.isdecimal()) # -- D7
n8 = "#$... | 19.666667 | 29 | 0.562147 | 50 | 354 | 3.98 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.163842 | 354 | 17 | 30 | 20.823529 | 0.510135 | 0.161017 | 0 | 0 | 0 | 0 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
62a711bc1a85931a314292487c761f427ea02801 | 15,289 | py | Python | hordak/tests/views/test_transactions.py | pavel64-sutyrin/django-hordak | 1ffeda5058037595051672911b18bbe4558304a2 | [
"MIT"
] | null | null | null | hordak/tests/views/test_transactions.py | pavel64-sutyrin/django-hordak | 1ffeda5058037595051672911b18bbe4558304a2 | [
"MIT"
] | null | null | null | hordak/tests/views/test_transactions.py | pavel64-sutyrin/django-hordak | 1ffeda5058037595051672911b18bbe4558304a2 | [
"MIT"
] | null | null | null | from decimal import Decimal
from django.test import TestCase
from django.test.utils import override_settings
from django.urls import reverse
from hordak.models import Account, StatementImport, StatementLine, Transaction
from hordak.tests.utils import DataProvider
from moneyed import Money
from hordak.utilities.curren... | 38.903308 | 123 | 0.644908 | 1,766 | 15,289 | 5.420725 | 0.092299 | 0.079912 | 0.025279 | 0.035099 | 0.769247 | 0.720777 | 0.633135 | 0.610154 | 0.587381 | 0.587381 | 0 | 0.026252 | 0.222644 | 15,289 | 392 | 124 | 39.002551 | 0.779218 | 0.010334 | 0 | 0.617747 | 0 | 0 | 0.138918 | 0.008794 | 0 | 0 | 0 | 0 | 0.238908 | 1 | 0.078498 | false | 0 | 0.081911 | 0 | 0.177474 | 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 |
62b1f9aef55469d4afdac9d2fab305a25a4acaa5 | 384 | py | Python | travels/migrations/0026_flight_date2.py | minikdo/travelarchive2 | 56def21103e2f064bdb9817ca0ba8c8efe51ab48 | [
"Apache-2.0"
] | null | null | null | travels/migrations/0026_flight_date2.py | minikdo/travelarchive2 | 56def21103e2f064bdb9817ca0ba8c8efe51ab48 | [
"Apache-2.0"
] | 1 | 2021-04-17T15:18:54.000Z | 2021-04-17T15:18:54.000Z | travels/migrations/0026_flight_date2.py | minikdo/travelarchive2 | 56def21103e2f064bdb9817ca0ba8c8efe51ab48 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.5 on 2019-01-16 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travels', '0025_flight_time'),
]
operations = [
migrations.AddField(
model_name='flight',
name='date2',
... | 20.210526 | 58 | 0.588542 | 42 | 384 | 5.309524 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0.291667 | 384 | 18 | 59 | 21.333333 | 0.746324 | 0.117188 | 0 | 0 | 1 | 0 | 0.10089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62baab10e30c59aef297fdee80e4074aaae75db4 | 1,860 | py | Python | hack/deploy-hub-local/helpers/redfish.py | borball/ztp-pipeline-relocatable | 2be4582ca13fbfd2c4f26147b156965fe9080b99 | [
"Apache-2.0"
] | null | null | null | hack/deploy-hub-local/helpers/redfish.py | borball/ztp-pipeline-relocatable | 2be4582ca13fbfd2c4f26147b156965fe9080b99 | [
"Apache-2.0"
] | null | null | null | hack/deploy-hub-local/helpers/redfish.py | borball/ztp-pipeline-relocatable | 2be4582ca13fbfd2c4f26147b156965fe9080b99 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
import requests
import sys
import yaml
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
action = sys.argv[1] if len(sys.argv) > 1 else "status"
installfile = "install-config.yaml"
with open(installfile) as f:
data = yaml.... | 37.959184 | 116 | 0.548387 | 190 | 1,860 | 5.357895 | 0.468421 | 0.020629 | 0.015717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006182 | 0.304301 | 1,860 | 48 | 117 | 38.75 | 0.780526 | 0.033871 | 0 | 0.04878 | 0 | 0 | 0.20903 | 0.048495 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.097561 | 0.121951 | 0 | 0.121951 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
62bb7f9e07f7ce3aa767679da7066ae7a7f5258c | 5,101 | py | Python | tests/test_self_signed_jwt.py | Yoni-Mantzur/azure-activedirectory-library-for-python | 01f6fad2928c02134def85a2ff1fdaf083e91701 | [
"MIT"
] | 258 | 2015-10-28T21:57:45.000Z | 2022-02-15T07:20:49.000Z | tests/test_self_signed_jwt.py | Yoni-Mantzur/azure-activedirectory-library-for-python | 01f6fad2928c02134def85a2ff1fdaf083e91701 | [
"MIT"
] | 161 | 2016-01-15T20:11:29.000Z | 2022-01-27T00:11:12.000Z | tests/test_self_signed_jwt.py | Yoni-Mantzur/azure-activedirectory-library-for-python | 01f6fad2928c02134def85a2ff1fdaf083e91701 | [
"MIT"
] | 114 | 2015-11-03T10:24:00.000Z | 2022-02-08T18:49:06.000Z | #------------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation.
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated document... | 42.865546 | 118 | 0.728289 | 648 | 5,101 | 5.515432 | 0.341049 | 0.050364 | 0.036374 | 0.042809 | 0.296586 | 0.259653 | 0.23671 | 0.226637 | 0.207051 | 0.142697 | 0 | 0.015388 | 0.159184 | 5,101 | 118 | 119 | 43.228814 | 0.817673 | 0.252107 | 0 | 0.140845 | 0 | 0.028169 | 0.122756 | 0.054646 | 0 | 0 | 0 | 0 | 0.056338 | 0 | null | null | 0 | 0.253521 | null | null | 0.28169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62bbdb34416ee7da326cf4c968346a632a7c6f3e | 5,790 | py | Python | tests/test_linear_solvers.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | 1 | 2015-07-30T13:47:23.000Z | 2015-07-30T13:47:23.000Z | tests/test_linear_solvers.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | null | null | null | tests/test_linear_solvers.py | olivierverdier/sfepy | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | [
"BSD-3-Clause"
] | null | null | null | from sfepy import data_dir
filename_mesh = data_dir + '/meshes/3d/special/cube_cylinder.mesh'
material_2 = {
'name' : 'coef',
'values' : {'val' : 1.0},
}
field_1 = {
'name' : 'temperature',
'dtype' : 'real',
'shape' : (1,),
'region' : 'Omega',
'approx_order' : 1,
}
variables = {
't' ... | 29.242424 | 80 | 0.451295 | 634 | 5,790 | 3.968454 | 0.347003 | 0.035771 | 0.016693 | 0.019078 | 0.09062 | 0.067568 | 0.067568 | 0.016693 | 0.016693 | 0 | 0 | 0.055289 | 0.387737 | 5,790 | 197 | 81 | 29.390863 | 0.654443 | 0.069775 | 0 | 0.12987 | 0 | 0 | 0.178284 | 0.016819 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032468 | 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 |
62bd14bfc8edaba7e9ec302b8b2dbfbb529596a3 | 4,179 | py | Python | src/roles/traitor.py | MishaCatskill/lykos | d2ed4859958a24677fd4dab25391e9e6016a81f8 | [
"BSD-2-Clause"
] | null | null | null | src/roles/traitor.py | MishaCatskill/lykos | d2ed4859958a24677fd4dab25391e9e6016a81f8 | [
"BSD-2-Clause"
] | null | null | null | src/roles/traitor.py | MishaCatskill/lykos | d2ed4859958a24677fd4dab25391e9e6016a81f8 | [
"BSD-2-Clause"
] | null | null | null | import re
import random
import itertools
import math
from collections import defaultdict
from src.utilities import *
from src import debuglog, errlog, plog, users, channels
from src.decorators import cmd, event_listener
from src.containers import UserList, UserSet, UserDict, DefaultUserDict
from src.messages import me... | 47.488636 | 112 | 0.681024 | 604 | 4,179 | 4.635762 | 0.374172 | 0.0175 | 0.015714 | 0.008571 | 0.096429 | 0.096429 | 0.068571 | 0.02 | 0 | 0 | 0 | 0.004049 | 0.231634 | 4,179 | 87 | 113 | 48.034483 | 0.867954 | 0.374252 | 0 | 0.067797 | 0 | 0 | 0.110725 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.084746 | false | 0 | 0.186441 | 0 | 0.305085 | 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 |
62bd78bc5989ca9280c288fa081a0a44d0cd886d | 1,895 | py | Python | setup.py | BvB93/api-namespace-plugin | 92ce78af9c8beeab00109fbb4879541e49420805 | [
"Apache-2.0"
] | null | null | null | setup.py | BvB93/api-namespace-plugin | 92ce78af9c8beeab00109fbb4879541e49420805 | [
"Apache-2.0"
] | 1 | 2021-11-26T16:54:19.000Z | 2021-11-26T16:54:19.000Z | setup.py | BvB93/api-namespace-plugin | 92ce78af9c8beeab00109fbb4879541e49420805 | [
"Apache-2.0"
] | null | null | null | import os
from setuptools import setup
version = {}
version_path = os.path.join('array_namespace', '__version__.py')
with open(version_path, 'r', encoding='utf-8') as f:
exec(f.read(), version)
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
setup(
name='array_namespace',
versi... | 31.065574 | 64 | 0.591557 | 196 | 1,895 | 5.561224 | 0.530612 | 0.122018 | 0.16055 | 0.166972 | 0.029358 | 0.029358 | 0 | 0 | 0 | 0 | 0 | 0.014065 | 0.249604 | 1,895 | 60 | 65 | 31.583333 | 0.752461 | 0 | 0 | 0.035088 | 0 | 0 | 0.481266 | 0.023219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.035088 | 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 |
62c41fa89be19ab03119adaa5544f9fcba2e4da9 | 1,039 | py | Python | 0_PythonFundamental/2_03_listmanipulation1.py | hnwarid/DQLabAcademy | e03d82f97536ae103b6abc65db0ae16520fb68c7 | [
"MIT"
] | null | null | null | 0_PythonFundamental/2_03_listmanipulation1.py | hnwarid/DQLabAcademy | e03d82f97536ae103b6abc65db0ae16520fb68c7 | [
"MIT"
] | null | null | null | 0_PythonFundamental/2_03_listmanipulation1.py | hnwarid/DQLabAcademy | e03d82f97536ae103b6abc65db0ae16520fb68c7 | [
"MIT"
] | null | null | null | # Fitur .append()
print(">>> Fitur .append()")
list_makanan = ['Gado-gado', 'Ayam Goreng', 'Rendang']
list_makanan.append('Ketoprak')
print(list_makanan)
# Fitur .clear()
print(">>> Fitur .clear()")
list_makanan = ['Gado-gado', 'Ayam Goreng', 'Rendang']
list_makanan.clear()
print(list_makanan)
# Fitur .copy()
print(">>... | 32.46875 | 66 | 0.701636 | 140 | 1,039 | 5.014286 | 0.228571 | 0.094017 | 0.068376 | 0.102564 | 0.216524 | 0.216524 | 0.133903 | 0.133903 | 0.133903 | 0 | 0 | 0.011765 | 0.100096 | 1,039 | 32 | 67 | 32.46875 | 0.739037 | 0.122233 | 0 | 0.148148 | 0 | 0 | 0.302762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
62cbf3d5a8c644c907fcdd68db6589f17e521852 | 1,161 | py | Python | src/statemachines/climb.py | FRCTeam2984/infiniterecharge2020 | 8f3e8515c69cd9c378f19a0d0e24a5de2b5011e2 | [
"MIT"
] | null | null | null | src/statemachines/climb.py | FRCTeam2984/infiniterecharge2020 | 8f3e8515c69cd9c378f19a0d0e24a5de2b5011e2 | [
"MIT"
] | 2 | 2020-01-04T21:00:21.000Z | 2020-01-05T03:07:54.000Z | src/statemachines/climb.py | FRCTeam2984/infiniterecharge2020 | 8f3e8515c69cd9c378f19a0d0e24a5de2b5011e2 | [
"MIT"
] | 1 | 2019-12-07T19:48:46.000Z | 2019-12-07T19:48:46.000Z | from magicbot.state_machine import StateMachine, state, timed_state
from networktables import NetworkTables
from components import slider, winch
class Climb(StateMachine):
slider: slider.Slider
winch: winch.Winch
def __init__(self):
pass
def on_disable(self):
self.done()
def s... | 22.326923 | 67 | 0.619294 | 131 | 1,161 | 5.381679 | 0.374046 | 0.056738 | 0.034043 | 0.051064 | 0.150355 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0.002318 | 0.256675 | 1,161 | 51 | 68 | 22.764706 | 0.8146 | 0.063738 | 0 | 0.060606 | 0 | 0 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0.030303 | 0.090909 | 0 | 0.484848 | 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 |
62ceddcdd0fa4b4a1eb736714fa356c9e0a64056 | 4,485 | py | Python | sourceCode/nssrf.py | zhangjiaobxy/nssrfPackage | 7d2da96e094e259612e102dcd1faec0fe597ecf0 | [
"MIT"
] | 1 | 2017-03-07T01:00:58.000Z | 2017-03-07T01:00:58.000Z | sourceCode/nssrf.py | zhangjiaobxy/nssrfPackage | 7d2da96e094e259612e102dcd1faec0fe597ecf0 | [
"MIT"
] | null | null | null | sourceCode/nssrf.py | zhangjiaobxy/nssrfPackage | 7d2da96e094e259612e102dcd1faec0fe597ecf0 | [
"MIT"
] | null | null | null | # nssrf library
import os,sys,subprocess
########################################################################
# step 1: run mfinder to get subgraph feature OUT files
# input: ./data/rawData/
# output: ./data/mfinderFeature/*_subgraphSize_OUT.txt (mfinder output file)
# parameter: subgraphSize (subgraphSize = 2, 3... | 52.151163 | 127 | 0.59019 | 473 | 4,485 | 5.541226 | 0.251586 | 0.054941 | 0.050362 | 0.051889 | 0.35826 | 0.339184 | 0.252194 | 0.218237 | 0.133537 | 0.099962 | 0 | 0.026745 | 0.166332 | 4,485 | 85 | 128 | 52.764706 | 0.674244 | 0.608919 | 0 | 0.25 | 0 | 0 | 0.253521 | 0.114241 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62cfcbd04d110a3440c3af9662ca2a0e70c82d62 | 877 | py | Python | generators/fibonacci.py | ivanna-ostrovets/math-modeling | 7373c9cb7a93fc8eb87fdac167b62fce27b78c64 | [
"MIT"
] | 1 | 2020-11-27T18:10:07.000Z | 2020-11-27T18:10:07.000Z | generators/fibonacci.py | ivanna-ostrovets/math-modeling | 7373c9cb7a93fc8eb87fdac167b62fce27b78c64 | [
"MIT"
] | null | null | null | generators/fibonacci.py | ivanna-ostrovets/math-modeling | 7373c9cb7a93fc8eb87fdac167b62fce27b78c64 | [
"MIT"
] | 1 | 2020-11-27T18:10:33.000Z | 2020-11-27T18:10:33.000Z | from .utils import *
def fibonacci(min, max):
print('\n--- Fibonacci numbers generator ---')
quantity = int(input('Enter the quantity of pseudo-randomized numbers: '))
m = generate_prime_number(min, max)
generated_numbers = generate_numbers(min, max, quantity, m)
print('Generated pseudo-randomiz... | 21.925 | 105 | 0.633979 | 115 | 877 | 4.686957 | 0.4 | 0.055659 | 0.128015 | 0.074212 | 0.207792 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0.034691 | 0.244014 | 877 | 39 | 106 | 22.487179 | 0.778281 | 0 | 0 | 0.083333 | 1 | 0 | 0.192702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0 | 0.208333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62d0fceb5b7c8678252bd52550785b4ea101b1c8 | 1,845 | py | Python | App/welcome.py | Tung912k7/GoogleForms | 9f32d37b1c468540245a9395341508fee14629aa | [
"MIT"
] | 53 | 2020-12-06T20:09:33.000Z | 2022-03-27T16:40:58.000Z | App/welcome.py | Tung912k7/GoogleForms | 9f32d37b1c468540245a9395341508fee14629aa | [
"MIT"
] | 29 | 2021-01-21T19:33:42.000Z | 2022-03-29T17:40:56.000Z | App/welcome.py | Tung912k7/GoogleForms | 9f32d37b1c468540245a9395341508fee14629aa | [
"MIT"
] | 29 | 2021-05-29T17:06:02.000Z | 2022-03-31T11:11:08.000Z | import time
import random
import curses
from stringcolor import *
from selectmenu import SelectMenu
from sty import fg, bg, ef
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as... | 35.480769 | 81 | 0.331165 | 133 | 1,845 | 4.586466 | 0.541353 | 0.032787 | 0.034426 | 0.032787 | 0.059016 | 0.013115 | 0.013115 | 0 | 0 | 0 | 0 | 0.084025 | 0.477507 | 1,845 | 51 | 82 | 36.176471 | 0.548755 | 0.01084 | 0 | 0.046512 | 0 | 0 | 0.513454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.232558 | 0 | 0.55814 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
62d39d61a60d2a0c51b80941f5ae7582cc4ec176 | 250 | py | Python | 28. reverse tuple.py | gyan-krishna/python_assignment | 2992d2e9c2da413ef9e1238ecb37047fdfadb735 | [
"MIT"
] | 2 | 2021-01-27T12:13:52.000Z | 2021-02-13T14:50:58.000Z | 28. reverse tuple.py | gyan-krishna/python_assignment | 2992d2e9c2da413ef9e1238ecb37047fdfadb735 | [
"MIT"
] | null | null | null | 28. reverse tuple.py | gyan-krishna/python_assignment | 2992d2e9c2da413ef9e1238ecb37047fdfadb735 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
----------Phenix Labs----------
Created on Fri Jan 29 15:42:01 2021
@author: Gyan Krishna
Topic: reverse tuple
"""
tup =(10,20,30,40,50,60,)
rev = tup[::-1]
print("original tuple ::", tup)
print("reversed tuple ::", rev) | 19.230769 | 35 | 0.58 | 38 | 250 | 3.815789 | 0.842105 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121495 | 0.144 | 250 | 13 | 36 | 19.230769 | 0.556075 | 0.536 | 0 | 0 | 0 | 0 | 0.311927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
62de55300e0c34691a17ae9f8e0eef4a8d8cace7 | 1,513 | py | Python | simpleply/vector.py | dave3d/simpleply | 19720ced8bb7b7948ed773299c3d9c11616be6ce | [
"Apache-2.0"
] | null | null | null | simpleply/vector.py | dave3d/simpleply | 19720ced8bb7b7948ed773299c3d9c11616be6ce | [
"Apache-2.0"
] | null | null | null | simpleply/vector.py | dave3d/simpleply | 19720ced8bb7b7948ed773299c3d9c11616be6ce | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
"""Some vector math functions. All except cross work on N vectors."""
import math
def add(a,b):
"""Returns the sum of two vectors"""
c = []
for ax, by in zip(a,b):
c.append(ax+by)
return c
def subtract(a,b):
"""Returns the difference of two vectors"""
c = []
... | 19.907895 | 70 | 0.528751 | 265 | 1,513 | 2.988679 | 0.230189 | 0.022727 | 0.056818 | 0.075758 | 0.248737 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0.181818 | 0 | 0.053853 | 0.288169 | 1,513 | 75 | 71 | 20.173333 | 0.681523 | 0.01388 | 0 | 0.3 | 0 | 0 | 0.070285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02 | null | null | 0.18 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62e08abcf747245efa85a25b70d06fd1613bb59b | 442 | py | Python | calculator/view/ui.py | haehn/CS410firststeps | 63b6c7384ea96994f5bdf03e6b6d172fa0f25916 | [
"MIT"
] | null | null | null | calculator/view/ui.py | haehn/CS410firststeps | 63b6c7384ea96994f5bdf03e6b6d172fa0f25916 | [
"MIT"
] | null | null | null | calculator/view/ui.py | haehn/CS410firststeps | 63b6c7384ea96994f5bdf03e6b6d172fa0f25916 | [
"MIT"
] | null | null | null | class UI:
def __init__(self):
'''
'''
print('Welcome to calculator v1')
def start(self, controller):
'''
We ask the user for 2 numbers and add them.
'''
print('Please enter number1')
number1 = input()
print('Please enter number2')
number2 = input()
result = control... | 15.241379 | 57 | 0.595023 | 53 | 442 | 4.886792 | 0.603774 | 0.084942 | 0.123552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.271493 | 442 | 28 | 58 | 15.785714 | 0.779503 | 0.097285 | 0 | 0 | 0 | 0 | 0.287263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.272727 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
62e2f669c86aa33d79132d3da92033f60b86ee73 | 684 | py | Python | getting_lbrinfo/filtering.py | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 3 | 2019-08-31T19:58:24.000Z | 2020-10-02T06:50:22.000Z | getting_lbrinfo/filtering.py | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 1 | 2020-10-16T19:13:49.000Z | 2020-10-16T19:13:49.000Z | getting_lbrinfo/filtering.py | StanPlatinum/ROP-detection-inside-VMs | 7b39298dd0791711cbd78fd0730b819b755cc995 | [
"MIT"
] | 1 | 2021-06-06T21:10:21.000Z | 2021-06-06T21:10:21.000Z | #!/usr/bin/python
import sys
filename_input = sys.argv[1] + '.txt'
filename_output = sys.argv[1] + '-filtering.txt'
file_to_write = open(filename_output, 'w+')
fields = []
filtering_fields = ''
num_of_lines = 0
with open(filename_input, 'r') as file_to_read:
while True:
lines = file_to_read.readline()
... | 27.36 | 55 | 0.615497 | 94 | 684 | 4.234043 | 0.457447 | 0.075377 | 0.082915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019569 | 0.252924 | 684 | 24 | 56 | 28.5 | 0.759296 | 0.166667 | 0 | 0 | 0 | 0 | 0.067138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62e5b2dfbcb1efb7a8585042e2f3b9eceb15dd5a | 1,784 | py | Python | backend/db/test/user_photo_test.py | sleepingAnt/viewfinder | 9caf4e75faa8070d85f605c91d4cfb52c4674588 | [
"Apache-2.0"
] | 645 | 2015-01-03T02:03:59.000Z | 2021-12-03T08:43:16.000Z | backend/db/test/user_photo_test.py | hoowang/viewfinder | 9caf4e75faa8070d85f605c91d4cfb52c4674588 | [
"Apache-2.0"
] | null | null | null | backend/db/test/user_photo_test.py | hoowang/viewfinder | 9caf4e75faa8070d85f605c91d4cfb52c4674588 | [
"Apache-2.0"
] | 222 | 2015-01-07T05:00:52.000Z | 2021-12-06T09:54:26.000Z | # Copyright 2013 Viewfinder Inc. All Rights Reserved
"""Tests for UserPhoto data object."""
__author__ = 'ben@emailscrubbed.com (Ben Darnell)'
from base_test import DBBaseTestCase
from viewfinder.backend.db.user_photo import UserPhoto
from viewfinder.backend.db import versions
class UserPhotoTestCase(DBBaseTestCase... | 39.644444 | 135 | 0.689462 | 230 | 1,784 | 5.213043 | 0.317391 | 0.067556 | 0.045038 | 0.025021 | 0.355296 | 0.355296 | 0.355296 | 0.355296 | 0.344454 | 0.271059 | 0 | 0.100658 | 0.147982 | 1,784 | 44 | 136 | 40.545455 | 0.688158 | 0.028027 | 0 | 0.166667 | 0 | 0.055556 | 0.274498 | 0.209563 | 0 | 0 | 0 | 0 | 0.083333 | 0 | null | null | 0 | 0.083333 | 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 |
62e78143482c3ad79b3e2cfb805636e4dce27051 | 826 | py | Python | core/migrations/0058_auto_20210309_0816.py | Nephrolog-lt/nephrolog-api | ccd2162aff02b2abfab0f285779e5d8457be1788 | [
"Apache-2.0"
] | 2 | 2020-12-17T13:50:42.000Z | 2021-01-09T07:01:07.000Z | core/migrations/0058_auto_20210309_0816.py | Nephrolog-lt/nephrolog-api | ccd2162aff02b2abfab0f285779e5d8457be1788 | [
"Apache-2.0"
] | 2 | 2021-08-25T05:02:56.000Z | 2022-01-16T18:29:49.000Z | core/migrations/0058_auto_20210309_0816.py | Nephrolog-lt/nephrolog-api | ccd2162aff02b2abfab0f285779e5d8457be1788 | [
"Apache-2.0"
] | 1 | 2020-11-16T01:40:15.000Z | 2020-11-16T01:40:15.000Z | # Generated by Django 3.1.7 on 2021-03-09 08:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0057_auto_20210309_0811'),
]
operations = [
migrations.AlterField(
model_name='generalr... | 33.04 | 157 | 0.679177 | 80 | 826 | 6.9 | 0.55 | 0.057971 | 0.076087 | 0.119565 | 0.184783 | 0.184783 | 0.184783 | 0.184783 | 0.184783 | 0 | 0 | 0.047546 | 0.210654 | 826 | 24 | 158 | 34.416667 | 0.79908 | 0.054479 | 0 | 0.222222 | 1 | 0 | 0.254172 | 0.188703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62f29ff0858ddd31bb5349eb05a767b004e4a7d6 | 359 | py | Python | 01_nltk_init.py | bjonnh/TextMining_PlayGround | 77310002fa108b611bb18df284f9bb20c221ad0d | [
"Unlicense"
] | null | null | null | 01_nltk_init.py | bjonnh/TextMining_PlayGround | 77310002fa108b611bb18df284f9bb20c221ad0d | [
"Unlicense"
] | null | null | null | 01_nltk_init.py | bjonnh/TextMining_PlayGround | 77310002fa108b611bb18df284f9bb20c221ad0d | [
"Unlicense"
] | null | null | null | import nltk
from nltk.draw.tree import TreeView
import os
#sentence = "When did amazon start delivering coffee to Carl?"
#sentence = "I drank that milk from an old bottle"
sentence = "shit there shit covered in dust."
tokens = nltk.word_tokenize(sentence)
tagged = nltk.pos_tag(tokens)
entities = nltk.chunk.ne_chunk(ta... | 25.642857 | 62 | 0.771588 | 55 | 359 | 4.981818 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13649 | 359 | 13 | 63 | 27.615385 | 0.883871 | 0.306407 | 0 | 0 | 0 | 0 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62f382a5e2f92c28c3d87e6ed4264c2d499e1448 | 756 | py | Python | server/main.py | jawahar273/Tx | d595ebd347194402984505a051f842854ce0fc9f | [
"MIT"
] | null | null | null | server/main.py | jawahar273/Tx | d595ebd347194402984505a051f842854ce0fc9f | [
"MIT"
] | null | null | null | server/main.py | jawahar273/Tx | d595ebd347194402984505a051f842854ce0fc9f | [
"MIT"
] | null | null | null | from flask import Flask
from flask_socketio import SocketIO, emit
from raven.engine.default_engine import DefaultEngine as Engine
from raven.input.rest_input import RESTInput
from raven.output.rest_output import RESTOutput
from raven.layer.cmd.wiki import WikiLayer
from config.stage import settings
app = Flask(__nam... | 29.076923 | 68 | 0.752646 | 100 | 756 | 5.5 | 0.43 | 0.065455 | 0.069091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103175 | 756 | 25 | 69 | 30.24 | 0.811209 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62f8e572474393fef0ebeb71efa49a03fec89c4e | 1,521 | py | Python | main.py | Kiranendra/flask-demo | 185faabfc63ce7191082085a3b21d41156e22d2f | [
"MIT"
] | null | null | null | main.py | Kiranendra/flask-demo | 185faabfc63ce7191082085a3b21d41156e22d2f | [
"MIT"
] | null | null | null | main.py | Kiranendra/flask-demo | 185faabfc63ce7191082085a3b21d41156e22d2f | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template, redirect, url_for
app = Flask(__name__)
@app.route('/')
def homePage():
return render_template('index.html')
@app.route('/login', methods=['GET', 'POST'])
def loginPage():
username = ""
email = ""
password = ""
if request.method == 'POST' and 'us... | 33.8 | 126 | 0.575279 | 176 | 1,521 | 4.914773 | 0.3125 | 0.127168 | 0.075145 | 0.055491 | 0.419653 | 0.368786 | 0.368786 | 0.291329 | 0.291329 | 0.291329 | 0 | 0.002708 | 0.271532 | 1,521 | 44 | 127 | 34.568182 | 0.777978 | 0 | 0 | 0.307692 | 0 | 0 | 0.130835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.205128 | 0.025641 | 0.025641 | 0.205128 | 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 |
62f90b292492382118f316032940f0c2f9db72d6 | 2,260 | py | Python | fixture/project.py | mynameisalexander/python_training_mantis | d995fdfee0c78947c56fee6285886f6585b0f1c0 | [
"Apache-2.0"
] | null | null | null | fixture/project.py | mynameisalexander/python_training_mantis | d995fdfee0c78947c56fee6285886f6585b0f1c0 | [
"Apache-2.0"
] | null | null | null | fixture/project.py | mynameisalexander/python_training_mantis | d995fdfee0c78947c56fee6285886f6585b0f1c0 | [
"Apache-2.0"
] | null | null | null | from model.project import Project
from fixture.soap import *
import mysql.connector
class ProjectHelper:
def __init__(self, app):
self.app = app
def create(self, project):
wd = self.app.wd
self.open_project_page()
wd.find_element_by_xpath("//table[3]/tbody/tr[1]/td/form/input... | 37.04918 | 139 | 0.652655 | 298 | 2,260 | 4.701342 | 0.328859 | 0.054961 | 0.064954 | 0.074946 | 0.318344 | 0.282655 | 0.264097 | 0.185582 | 0.185582 | 0.185582 | 0 | 0.003411 | 0.221681 | 2,260 | 61 | 140 | 37.04918 | 0.793064 | 0.020796 | 0 | 0.25 | 0 | 0 | 0.133032 | 0.079186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.0625 | 0.0625 | 0 | 0.291667 | 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 |
62fdca9b9b13e0741c15bd459bf46a2c3ca2aaf3 | 1,427 | py | Python | midca/modules/interpret/TFFire.py | COLAB2/midca | 18d6b13e3d6b0d980cd3453196e82fad7302e79b | [
"MIT"
] | 12 | 2018-01-23T01:31:33.000Z | 2022-02-03T04:47:10.000Z | midca/modules/interpret/TFFire.py | COLAB2/midca | 18d6b13e3d6b0d980cd3453196e82fad7302e79b | [
"MIT"
] | 32 | 2017-11-02T20:58:03.000Z | 2021-04-15T18:59:27.000Z | midca/modules/interpret/TFFire.py | COLAB2/midca | 18d6b13e3d6b0d980cd3453196e82fad7302e79b | [
"MIT"
] | 5 | 2017-12-01T17:28:01.000Z | 2020-03-18T14:43:32.000Z | from midca import goals, base
from midca import midcatime
from ._goalgen import tf_fire
from ._goalgen import tf_3_scen
from midca.domains.logistics import deliverstate
from midca.domains.blocksworld import blockstate
from midca.worldsim import stateread
import copy,csv
import random
from midca.modules.monitors import ... | 35.675 | 264 | 0.647512 | 191 | 1,427 | 4.764398 | 0.492147 | 0.059341 | 0.032967 | 0.046154 | 0.075824 | 0.057143 | 0.057143 | 0 | 0 | 0 | 0 | 0.003835 | 0.269096 | 1,427 | 39 | 265 | 36.589744 | 0.868648 | 0.1822 | 0 | 0 | 0 | 0 | 0.06603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.322581 | 0 | 0.516129 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1a03e02ef1f3aae17451ad104f7c0ddf6d3bd9b7 | 907 | py | Python | ch10-unsupervised/clustering/spectral_clustering/embedding_example.py | skforest/intro_ds | 478a6b236c2e33c4baffec8aafa8e0a8ed68dca8 | [
"Apache-2.0"
] | null | null | null | ch10-unsupervised/clustering/spectral_clustering/embedding_example.py | skforest/intro_ds | 478a6b236c2e33c4baffec8aafa8e0a8ed68dca8 | [
"Apache-2.0"
] | null | null | null | ch10-unsupervised/clustering/spectral_clustering/embedding_example.py | skforest/intro_ds | 478a6b236c2e33c4baffec8aafa8e0a8ed68dca8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
此脚本用于展示spectral embedding的效果
"""
import numpy as np
import matplotlib.pyplot as plt
from spectral_embedding_ import spectral_embedding
def generate_data():
"""
生成邻接矩阵
"""
data = np.array([
[0, 1, 1, 1, 0, 0, 0],
[1, 0, 1, 1, 1, 0, 0],
[1, 1, 0, 1, ... | 18.510204 | 67 | 0.517089 | 133 | 907 | 3.398496 | 0.406015 | 0.075221 | 0.066372 | 0.053097 | 0.108407 | 0.106195 | 0.05531 | 0 | 0 | 0 | 0 | 0.100471 | 0.297685 | 907 | 48 | 68 | 18.895833 | 0.609105 | 0.114664 | 0 | 0 | 1 | 0 | 0.012016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.291667 | 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 |
1a04e889e9f4fc6862095c0747c4ab64128a01d1 | 784 | py | Python | ex32.py | lwinthida/python-exercises | 47a75422bf97c7694db99517ea93cb236662db79 | [
"MIT"
] | null | null | null | ex32.py | lwinthida/python-exercises | 47a75422bf97c7694db99517ea93cb236662db79 | [
"MIT"
] | null | null | null | ex32.py | lwinthida/python-exercises | 47a75422bf97c7694db99517ea93cb236662db79 | [
"MIT"
] | null | null | null | the_count=[1,2,3,4,5]
fruits=['apples','oranges','pears','apricots']
change=[1,'pennies',2,'dimes',3,'quarters']
#this first kind of for-loop goes through a list
for number in the_count:
print "This is count %d "%number
#same as above
for fruit in fruits:
print "A fruit of type: %s" %fruit
#also we ca... | 32.666667 | 64 | 0.674745 | 147 | 784 | 3.585034 | 0.537415 | 0.028463 | 0.034156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019544 | 0.216837 | 784 | 23 | 65 | 34.086957 | 0.838762 | 0.414541 | 0 | 0 | 0 | 0 | 0.279379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
1a08ad6a2689269321fca75b7835b4156fb81466 | 19,573 | py | Python | tests/clients/experiment/test_client.py | facultyai/faculty | a5eb7bc55343ed47b94125100077123695443035 | [
"Apache-2.0"
] | 11 | 2019-02-08T11:11:24.000Z | 2022-02-05T13:30:01.000Z | tests/clients/experiment/test_client.py | imrehg/faculty | 147c45d7d07dfeaee661b190a3f54937d3eeda87 | [
"Apache-2.0"
] | 70 | 2019-02-05T16:15:24.000Z | 2022-02-23T07:27:28.000Z | tests/clients/experiment/test_client.py | imrehg/faculty | 147c45d7d07dfeaee661b190a3f54937d3eeda87 | [
"Apache-2.0"
] | 6 | 2019-08-04T10:30:07.000Z | 2021-12-26T14:57:23.000Z | # Copyright 2018-2021 Faculty Science 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... | 32.405629 | 79 | 0.705513 | 2,181 | 19,573 | 6.000459 | 0.093535 | 0.068771 | 0.047681 | 0.056545 | 0.74937 | 0.702453 | 0.642622 | 0.58455 | 0.520899 | 0.460686 | 0 | 0.004536 | 0.188985 | 19,573 | 603 | 80 | 32.45937 | 0.819894 | 0.028815 | 0 | 0.398287 | 0 | 0 | 0.110503 | 0.074599 | 0 | 0 | 0 | 0 | 0.122056 | 1 | 0.057816 | false | 0 | 0.008565 | 0 | 0.066381 | 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 |
1a09fc71d5106c009f4d5d93b0e56d5b0d174f70 | 4,045 | py | Python | api/api/tests/test_users.py | rikonor/vanguard-api | 5462b2327cacad68bedb945dc323d534ebbdfeee | [
"MIT"
] | 61 | 2016-04-19T00:14:37.000Z | 2022-03-14T03:49:05.000Z | api/api/tests/test_users.py | swordfish6975/vanguard-api | 46452e1ffbe175fa82c41f87d9a299be95a2008b | [
"MIT"
] | 4 | 2017-07-10T01:30:33.000Z | 2018-08-07T05:07:54.000Z | api/api/tests/test_users.py | swordfish6975/vanguard-api | 46452e1ffbe175fa82c41f87d9a299be95a2008b | [
"MIT"
] | 17 | 2017-07-10T23:26:27.000Z | 2022-02-25T01:46:21.000Z | from unittest import TestCase
from api.users import Users
def get_mock_user():
username = "fake_user"
email = "fake@email.com"
password = "fake_password"
Users.register_user(username, email, password)
return Users.find_user(username)
def remove_mock_user():
username = "fake_user"
Users.de... | 32.36 | 77 | 0.654388 | 487 | 4,045 | 5.162218 | 0.213552 | 0.076372 | 0.063644 | 0.049722 | 0.563246 | 0.475338 | 0.399761 | 0.399761 | 0.354813 | 0.354813 | 0 | 0.001307 | 0.243263 | 4,045 | 124 | 78 | 32.620968 | 0.819993 | 0.073918 | 0 | 0.529412 | 0 | 0 | 0.165725 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.141176 | false | 0.2 | 0.023529 | 0 | 0.188235 | 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 |
1a0a32dd1a6cdc6fc3c9ce75ea2218ecdb758b0e | 1,666 | py | Python | skgof/vect.py | wrwrwr/scikit-gof | b950572758b9ebe38b9ea954ccc360d55cdf9c39 | [
"MIT"
] | 9 | 2016-01-17T16:23:04.000Z | 2020-06-09T04:16:22.000Z | skgof/vect.py | wrwrwr/scikit-gof | b950572758b9ebe38b9ea954ccc360d55cdf9c39 | [
"MIT"
] | 3 | 2018-02-03T11:26:31.000Z | 2021-07-09T03:13:29.000Z | skgof/vect.py | wrwrwr/scikit-gof | b950572758b9ebe38b9ea954ccc360d55cdf9c39 | [
"MIT"
] | 6 | 2018-02-02T13:31:44.000Z | 2021-02-09T16:49:09.000Z | """
Vectorize() with support for decorating methods; for example::
from scipy.stats import rv_continuous
from scipy_ext import vectorize
class dist(rv_continuous):
@vectorize(excluded=('n',), otypes=(float,))
def _cdf(self, x, n):
if n < 5:
return f(x) # One ex... | 27.311475 | 78 | 0.595438 | 206 | 1,666 | 4.694175 | 0.461165 | 0.043433 | 0.009307 | 0.016546 | 0.022751 | 0.022751 | 0.022751 | 0 | 0 | 0 | 0 | 0.019344 | 0.286315 | 1,666 | 60 | 79 | 27.766667 | 0.793944 | 0.567827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.6875 | 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 |
1a0d4684ce19345e291aa76b5afc32dfd463bd18 | 982 | py | Python | py/02_home/days_diff.py | myConsciousness/CheckIO | fb5336a5d0e1d7c5c6ecc4bba25805547425afe7 | [
"Apache-2.0"
] | 2 | 2020-09-14T16:02:54.000Z | 2022-01-24T19:55:05.000Z | py/02_home/days_diff.py | myConsciousness/checkio-history | fb5336a5d0e1d7c5c6ecc4bba25805547425afe7 | [
"Apache-2.0"
] | null | null | null | py/02_home/days_diff.py | myConsciousness/checkio-history | fb5336a5d0e1d7c5c6ecc4bba25805547425afe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
You are given a string where you have to find its first word.
When solving a task pay attention to the following points:
There can be dots and commas in a string.
A string can start with a letter or, for example, a dot or space.
A word can contain an apostrophe and it's a part of a word.
... | 28.057143 | 76 | 0.650713 | 177 | 982 | 3.536723 | 0.536723 | 0.055911 | 0.067093 | 0.041534 | 0.070288 | 0.070288 | 0.070288 | 0.070288 | 0 | 0 | 0 | 0.087855 | 0.211813 | 982 | 34 | 77 | 28.882353 | 0.72093 | 0.507128 | 0 | 0 | 0 | 0 | 0.14346 | 0 | 0 | 0 | 0 | 0.029412 | 0.3 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.3 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1a1322c552ebc6ce2a9e7a3239cfacbd3c68a855 | 4,153 | py | Python | bubble/backend/conftest.py | UniBucAlert/bubble | a191ced468f479a358caca3f8f466ed0e43f6ff1 | [
"Apache-2.0"
] | 2 | 2021-06-03T09:36:54.000Z | 2021-06-10T23:03:29.000Z | bubble/backend/conftest.py | UniBucAlert/bubble | a191ced468f479a358caca3f8f466ed0e43f6ff1 | [
"Apache-2.0"
] | 34 | 2021-03-10T18:16:47.000Z | 2021-06-13T17:28:49.000Z | bubble/backend/conftest.py | UniBucAlert/bubble | a191ced468f479a358caca3f8f466ed0e43f6ff1 | [
"Apache-2.0"
] | 2 | 2021-09-24T17:29:55.000Z | 2021-10-03T21:42:46.000Z | import pytest
from sqlalchemy import create_engine, event
from sqlalchemy.orm import sessionmaker
from sqlalchemy_utils import database_exists, create_database, drop_database
from fastapi.testclient import TestClient
import typing as t
from app.core import config, security
from app.db.session import Base, get_db
from ... | 24.145349 | 76 | 0.684806 | 539 | 4,153 | 5.06308 | 0.274583 | 0.043972 | 0.026383 | 0.029315 | 0.25797 | 0.234518 | 0.211799 | 0.211799 | 0.211799 | 0.211799 | 0 | 0 | 0.2196 | 4,153 | 171 | 77 | 24.28655 | 0.842024 | 0.141344 | 0 | 0.327103 | 0 | 0 | 0.100115 | 0.016734 | 0 | 0 | 0 | 0 | 0.009346 | 1 | 0.121495 | false | 0.11215 | 0.093458 | 0.028037 | 0.28972 | 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 |
1a1630cdcc9e16162414e8c0ff1e8f756a3915a6 | 680 | py | Python | appengine/server/models/RESOURCE_NAME.py | psydrake/darkcoinBalance | 95821cc6eeef5c68c35d52616445ead1ad698173 | [
"Apache-2.0"
] | 1 | 2015-09-20T15:52:34.000Z | 2015-09-20T15:52:34.000Z | appengine/server/models/RESOURCE_NAME.py | psydrake/darkcoinBalance | 95821cc6eeef5c68c35d52616445ead1ad698173 | [
"Apache-2.0"
] | null | null | null | appengine/server/models/RESOURCE_NAME.py | psydrake/darkcoinBalance | 95821cc6eeef5c68c35d52616445ead1ad698173 | [
"Apache-2.0"
] | null | null | null | """ TODO: Add model code for your resource here.
You'll want to change the file name to whatever your resource is called.
To add persistence to your models, use App Engine's Datastore if you anticipate
scaling to a high amount of data or traffic. The Python NDB module adds caching
and some other features to Datastore. ... | 30.909091 | 79 | 0.732353 | 108 | 680 | 4.592593 | 0.638889 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.211765 | 680 | 21 | 80 | 32.380952 | 0.921642 | 0.760294 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a16552d66c4949b59360ed86218f4f197c1bc5c | 1,310 | py | Python | openc2/version.py | twodayslate/openc2-lycan-python | 57d68bf1bffb79af34be677645049d3c45d690a4 | [
"MIT"
] | 6 | 2018-04-27T14:55:36.000Z | 2022-02-06T16:42:53.000Z | openc2/version.py | twodayslate/openc2-lycan-python | 57d68bf1bffb79af34be677645049d3c45d690a4 | [
"MIT"
] | 25 | 2018-06-21T17:50:56.000Z | 2020-04-08T15:38:14.000Z | openc2/version.py | twodayslate/openc2-lycan-python | 57d68bf1bffb79af34be677645049d3c45d690a4 | [
"MIT"
] | 10 | 2018-04-25T15:17:35.000Z | 2021-08-14T09:36:23.000Z | #
# The MIT License (MIT)
#
# Copyright 2019 AT&T Intellectual Property. All other rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to deal in the Software without
# restriction, including without l... | 39.69697 | 95 | 0.759542 | 194 | 1,310 | 5.108247 | 0.57732 | 0.088799 | 0.026236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00736 | 0.170229 | 1,310 | 32 | 96 | 40.9375 | 0.904324 | 0.942748 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a1a63861106b66a8bf5eb2e3052f1e76a7cc22b | 1,144 | py | Python | src/challenges/ChainDecorators.py | DakotaOberon/coding-practice | fb61fd64636c9c7977191883d4212228ac72ebf3 | [
"MIT"
] | null | null | null | src/challenges/ChainDecorators.py | DakotaOberon/coding-practice | fb61fd64636c9c7977191883d4212228ac72ebf3 | [
"MIT"
] | null | null | null | src/challenges/ChainDecorators.py | DakotaOberon/coding-practice | fb61fd64636c9c7977191883d4212228ac72ebf3 | [
"MIT"
] | null | null | null | import inspect
from src.Challenge import Challenge
class ChainDecorators(Challenge):
def __init__(self):
super(ChainDecorators, self).__init__()
self.challenge = 'Chain multiple decorators together'
def code(self):
starting_string = 'Middle'
print('starting_string =', startin... | 27.238095 | 120 | 0.686189 | 135 | 1,144 | 5.540741 | 0.274074 | 0.096257 | 0.064171 | 0.07754 | 0.104278 | 0.104278 | 0.104278 | 0.104278 | 0.104278 | 0 | 0 | 0 | 0.218531 | 1,144 | 41 | 121 | 27.902439 | 0.836689 | 0 | 0 | 0.2 | 0 | 0 | 0.213287 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.066667 | 0.033333 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a1ee364ac31385e630a0a5a11fe51bf18ac7a04 | 2,584 | py | Python | nicos_mlz/panda/setups/detector.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_mlz/panda/setups/detector.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_mlz/panda/setups/detector.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
description = 'detectors'
group = 'lowlevel' # is included by panda.py
display_order = 70
excludes = ['qmesydaq']
tango_base = 'tango://phys.panda.frm2:10000/panda/'
devices = dict(
timer = device('nicos.devices.entangle.TimerChannel',
tangodevice = tango_base + 'frmctr2/timer... | 28.086957 | 70 | 0.502322 | 276 | 2,584 | 4.666667 | 0.376812 | 0.059783 | 0.097826 | 0.100932 | 0.295031 | 0.208075 | 0.208075 | 0.208075 | 0.208075 | 0 | 0 | 0.215302 | 0.347523 | 2,584 | 91 | 71 | 28.395604 | 0.548636 | 0.025542 | 0 | 0.240964 | 0 | 0 | 0.221647 | 0.114604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a1ef32ed67f2cdc9687668a5e3ccd5b041479b8 | 7,778 | py | Python | muddery/typeclasses/skill.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | muddery/typeclasses/skill.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | muddery/typeclasses/skill.py | noahzaozao/muddery | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | [
"BSD-3-Clause"
] | null | null | null | """
Skills
Each skill is a skill object stored in the character. The skill object stores all data and
actions of a skill.
"""
import time, re
from django.conf import settings
from evennia.utils import logger
from muddery.utils.localized_strings_handler import _
from muddery.utils.game_settings import GAME_SETTINGS
f... | 27.195804 | 90 | 0.531628 | 878 | 7,778 | 4.56492 | 0.169704 | 0.022455 | 0.020958 | 0.020958 | 0.170659 | 0.088822 | 0.065369 | 0.020958 | 0 | 0 | 0 | 0.001634 | 0.370532 | 7,778 | 285 | 91 | 27.291228 | 0.816993 | 0.212523 | 0 | 0.173228 | 0 | 0 | 0.047093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11811 | false | 0.110236 | 0.055118 | 0 | 0.338583 | 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 |
1a220560e1f8aee332145dec1ecbdf0d5348282f | 3,377 | py | Python | src/message_loop_gtk.py | bokand/quickopen | 527cda56b867a0b2f47baa9ec4f39459fec746ca | [
"Apache-2.0"
] | 21 | 2015-03-23T16:47:44.000Z | 2021-11-08T22:01:09.000Z | src/message_loop_gtk.py | bokand/quickopen | 527cda56b867a0b2f47baa9ec4f39459fec746ca | [
"Apache-2.0"
] | 7 | 2015-02-24T00:14:06.000Z | 2020-07-30T13:51:10.000Z | src/message_loop_gtk.py | bokand/quickopen | 527cda56b867a0b2f47baa9ec4f39459fec746ca | [
"Apache-2.0"
] | 8 | 2015-03-03T17:56:27.000Z | 2021-08-07T23:06:08.000Z | # Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 27.233871 | 83 | 0.741487 | 485 | 3,377 | 4.781443 | 0.301031 | 0.103493 | 0.096593 | 0.099181 | 0.256576 | 0.193187 | 0.193187 | 0.193187 | 0.193187 | 0.154377 | 0 | 0.006593 | 0.19159 | 3,377 | 123 | 84 | 27.455285 | 0.842857 | 0.20995 | 0 | 0.325843 | 0 | 0 | 0.047152 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0 | null | null | 0 | 0.044944 | null | null | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a2a540578f9d3879444727ab150064d86236508 | 513 | py | Python | Challenges-5/delStartEven.py | chandrakant100/Python-Project | 592bc4689b684887ca531b9d7287a8dc2362e5f1 | [
"CC0-1.0"
] | null | null | null | Challenges-5/delStartEven.py | chandrakant100/Python-Project | 592bc4689b684887ca531b9d7287a8dc2362e5f1 | [
"CC0-1.0"
] | null | null | null | Challenges-5/delStartEven.py | chandrakant100/Python-Project | 592bc4689b684887ca531b9d7287a8dc2362e5f1 | [
"CC0-1.0"
] | 1 | 2020-10-02T05:14:07.000Z | 2020-10-02T05:14:07.000Z | # Challenge 3 : Write a function called delete_starting_evens() that has a parameter named lst.
# The function should remove elements from the front of lst until the front of the list is not even.
# The function should then return lst.
# Date : Sun 07 Jun 2020 07:21:17 AM IST
def de... | 36.642857 | 115 | 0.666667 | 86 | 513 | 3.883721 | 0.593023 | 0.167665 | 0.227545 | 0.143713 | 0.167665 | 0.167665 | 0.167665 | 0 | 0 | 0 | 0 | 0.082262 | 0.241715 | 513 | 13 | 116 | 39.461538 | 0.77635 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 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 |
1a2b7e393c2df71dd190b7b155b8e38824d62e87 | 102 | py | Python | tests/while_loops.py | jpages/twopy | d0ae42b02ee60cf432e716884f43ec6670bcae2b | [
"BSD-3-Clause"
] | 7 | 2018-12-18T20:32:04.000Z | 2021-05-30T04:20:22.000Z | tests/while_loops.py | jpages/twopy | d0ae42b02ee60cf432e716884f43ec6670bcae2b | [
"BSD-3-Clause"
] | null | null | null | tests/while_loops.py | jpages/twopy | d0ae42b02ee60cf432e716884f43ec6670bcae2b | [
"BSD-3-Clause"
] | 1 | 2021-11-14T17:47:11.000Z | 2021-11-14T17:47:11.000Z | def test(n):
i = 0
res = 0
while i < n:
i = i + 1
print(res)
test(100)
| 9.272727 | 18 | 0.382353 | 17 | 102 | 2.294118 | 0.588235 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0.490196 | 102 | 10 | 19 | 10.2 | 0.634615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a2e100fb7fb9ec9619ddec34b44fa382d7a9d2c | 1,880 | py | Python | fastapi_project/app/auth.py | ChristopherGS/python-api-examples | d3bb62931750d3baab0ebf6a97add44d2e105c3d | [
"MIT"
] | 5 | 2021-08-30T12:14:19.000Z | 2022-03-10T09:40:24.000Z | fastapi_project/app/auth.py | ChristopherGS/python-api-examples | d3bb62931750d3baab0ebf6a97add44d2e105c3d | [
"MIT"
] | null | null | null | fastapi_project/app/auth.py | ChristopherGS/python-api-examples | d3bb62931750d3baab0ebf6a97add44d2e105c3d | [
"MIT"
] | 3 | 2021-11-09T15:55:31.000Z | 2022-01-10T06:38:46.000Z | from typing import Optional, MutableMapping, List, Union
from datetime import datetime, timedelta
from fastapi.security import OAuth2PasswordBearer
from passlib.context import CryptContext
from sqlalchemy.orm.session import Session
from jose import jwt
from app.models import User
from app.config import settings
JWTP... | 28.923077 | 81 | 0.721809 | 224 | 1,880 | 5.924107 | 0.321429 | 0.033158 | 0.024115 | 0.030143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001929 | 0.172872 | 1,880 | 64 | 82 | 29.375 | 0.851447 | 0 | 0 | 0.041667 | 0 | 0 | 0.022872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.1875 | 0.166667 | 0.0625 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a7e6b8ab5c437c80265d1ae0b2f11bee84163604 | 355 | py | Python | setup.py | rhedgeco/sanic_springboard | 09d116671782b025dcb1e3202a6c7fcbdebdd6e9 | [
"MIT"
] | null | null | null | setup.py | rhedgeco/sanic_springboard | 09d116671782b025dcb1e3202a6c7fcbdebdd6e9 | [
"MIT"
] | null | null | null | setup.py | rhedgeco/sanic_springboard | 09d116671782b025dcb1e3202a6c7fcbdebdd6e9 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='hedgecock_dev',
version='1.0.0',
install_requires=[
"google-api-python-client",
"google-auth-httplib2",
"google-auth-oauthlib",
"cachecontrol",
'google',
'requests',
'sanic',
'websockets',
'dat... | 19.722222 | 35 | 0.529577 | 31 | 355 | 6 | 0.806452 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.326761 | 355 | 18 | 36 | 19.722222 | 0.757322 | 0 | 0 | 0 | 0 | 0 | 0.393258 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
a7e854b6af7c52c640acded47ff4bd5a6d03e3bc | 1,061 | py | Python | solutions/1663.py | pacokwon/leetcode | 37c943d371c106d1e6f24e065700e5edd1c3f9f9 | [
"MIT"
] | 2 | 2022-01-18T08:57:13.000Z | 2022-01-18T15:49:06.000Z | solutions/1663.py | pacokwon/leetcode | 37c943d371c106d1e6f24e065700e5edd1c3f9f9 | [
"MIT"
] | null | null | null | solutions/1663.py | pacokwon/leetcode | 37c943d371c106d1e6f24e065700e5edd1c3f9f9 | [
"MIT"
] | null | null | null | class Solution:
def getSmallestString(self, n: int, k: int) -> str:
def toChar(n):
return chr(97 + n - 1)
ans = [''] * n
i = 0
while i < n:
# how many spaces left to fill?
left = n - i
if k < left:
# you got `left` spac... | 29.472222 | 55 | 0.366635 | 125 | 1,061 | 3.112 | 0.448 | 0.046272 | 0.03599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034908 | 0.540999 | 1,061 | 35 | 56 | 30.314286 | 0.76386 | 0.271442 | 0 | 0.238095 | 0 | 0 | 0.002628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0 | 0.047619 | 0.238095 | 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 |
a7e9a6eb461a8b845b8cf32cc925cd0844ade9a2 | 7,972 | py | Python | icbd/util/explore.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 7 | 2015-04-06T15:17:13.000Z | 2020-10-21T04:57:00.000Z | icbd/util/explore.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | null | null | null | icbd/util/explore.py | kmod/icbd | 9636564eb3993afa07c6220d589bbd1991923d74 | [
"MIT"
] | 4 | 2016-05-16T17:53:08.000Z | 2020-11-28T17:18:50.000Z | from ast_utils import parse
test_1 = "def f():\n return 1"
test_2 = "def f(x):\n if x:\n r=1\n else:\n r=0\n return r"
test_2 = "def f(x):\n global r\n if x:\n r=1\n else:\n r=0\n return r"
test_2 = "def f(x):\n ''.lower()"
def show(ast):
if isinstance(ast, list):
print ast
return
print st... | 85.72043 | 211 | 0.603613 | 1,127 | 7,972 | 4.125998 | 0.161491 | 0.177204 | 0.123011 | 0.151398 | 0.545161 | 0.523441 | 0.492258 | 0.45957 | 0.449892 | 0.376129 | 0 | 0.002289 | 0.123056 | 7,972 | 92 | 212 | 86.652174 | 0.662852 | 0 | 0 | 0 | 0 | 0.133333 | 0.319927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a7ee9b96ef5cbb41c7faadf70d7ddba17e8032cf | 528 | py | Python | SkiaViki/Research/hello-skia-wasm/serve.py | MilanDierick/SkiaViki | d29ecd8c638e00b7804115322162c40bd6fb0820 | [
"MIT"
] | null | null | null | SkiaViki/Research/hello-skia-wasm/serve.py | MilanDierick/SkiaViki | d29ecd8c638e00b7804115322162c40bd6fb0820 | [
"MIT"
] | 2 | 2020-07-27T13:38:28.000Z | 2020-07-27T13:39:26.000Z | SkiaViki/Research/hello-skia-wasm/serve.py | MilanDierick/SkiaViki | d29ecd8c638e00b7804115322162c40bd6fb0820 | [
"MIT"
] | null | null | null | # Copyright 2018 Google LLC
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import SimpleHTTPServer
import SocketServer
PORT = 8000
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
pass
Handler.extensions_map['.js'] = 'application/java... | 25.142857 | 73 | 0.744318 | 65 | 528 | 6 | 0.784615 | 0.087179 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018223 | 0.168561 | 528 | 20 | 74 | 26.4 | 0.870159 | 0.350379 | 0 | 0 | 0 | 0 | 0.144654 | 0.069182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a7f628f83b41bd921664ca799cf75bc521c9a6b0 | 42,414 | py | Python | Bayesian_Inference (1).py | htrivedidallas/spam-classifier | a1001306499ddb8b57161b7b05ca064100b95a48 | [
"MIT"
] | null | null | null | Bayesian_Inference (1).py | htrivedidallas/spam-classifier | a1001306499ddb8b57161b7b05ca064100b95a48 | [
"MIT"
] | null | null | null | Bayesian_Inference (1).py | htrivedidallas/spam-classifier | a1001306499ddb8b57161b7b05ca064100b95a48 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# ## Our Mission ##
#
# Spam detection is one of the major applications of Machine Learning in the interwebs today. Pretty much all of the major email service providers have spam detection systems built in and automatically classify such mail as 'Junk Mail'.
#
# In this mission... | 48.639908 | 863 | 0.741335 | 7,047 | 42,414 | 4.425855 | 0.148432 | 0.006893 | 0.011799 | 0.010837 | 0.247267 | 0.192536 | 0.150309 | 0.1211 | 0.102761 | 0.091763 | 0 | 0.008087 | 0.180719 | 42,414 | 871 | 864 | 48.695752 | 0.889464 | 0.79172 | 0 | 0.084211 | 0 | 0 | 0.216358 | 0.007359 | 0 | 0 | 0 | 0.022962 | 0 | 1 | 0 | false | 0 | 0.084211 | 0 | 0.084211 | 0.252632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a7fa619006dd2926e2599a7546f50cbd17cd8201 | 4,682 | py | Python | pyportal_multissid.py | gmparis/CircuitPython_pyportal_multissid | eb57da7cf8372c23ad6897b36fcd3b1163536c09 | [
"MIT"
] | null | null | null | pyportal_multissid.py | gmparis/CircuitPython_pyportal_multissid | eb57da7cf8372c23ad6897b36fcd3b1163536c09 | [
"MIT"
] | 1 | 2019-12-17T20:45:19.000Z | 2019-12-17T20:45:19.000Z | pyportal_multissid.py | gmparis/CircuitPython_pyportal_multissid | eb57da7cf8372c23ad6897b36fcd3b1163536c09 | [
"MIT"
] | 1 | 2020-12-07T14:15:40.000Z | 2020-12-07T14:15:40.000Z | # The MIT License (MIT)
#
# Copyright (c) 2019 Gregory M Paris
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | 40.017094 | 80 | 0.634985 | 572 | 4,682 | 5.117133 | 0.41958 | 0.030065 | 0.016399 | 0.019474 | 0.072087 | 0.045439 | 0.045439 | 0.034848 | 0.034848 | 0.034848 | 0 | 0.012 | 0.252456 | 4,682 | 116 | 81 | 40.362069 | 0.824286 | 0.551474 | 0 | 0.291667 | 0 | 0 | 0.185421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.083333 | 0.083333 | 0 | 0.1875 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a7fce4b749100e174bc9d1cf8ed9a9b767812e5d | 2,484 | py | Python | tests/test_mdp_vacuum_cleaner_world.py | pudumagico/RLASP | bce5b87404fdca60e983e4a187e734c49ac923fa | [
"MIT"
] | null | null | null | tests/test_mdp_vacuum_cleaner_world.py | pudumagico/RLASP | bce5b87404fdca60e983e4a187e734c49ac923fa | [
"MIT"
] | 1 | 2021-06-02T16:55:33.000Z | 2021-06-04T14:30:54.000Z | tests/test_mdp_vacuum_cleaner_world.py | pudumagico/RLASP | bce5b87404fdca60e983e4a187e734c49ac923fa | [
"MIT"
] | 2 | 2021-03-22T14:46:49.000Z | 2021-03-31T16:12:12.000Z | import os
import sys
import unittest
# Make sure the path of the framework is included in the import path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src/')))
# Framework imports
from mdp import VacuumCleanerWorld
class TestVacuumCleanerWorld(unittest.TestCase):
def test_avai... | 36.529412 | 99 | 0.648551 | 305 | 2,484 | 5.167213 | 0.216393 | 0.133249 | 0.049492 | 0.057107 | 0.488579 | 0.379442 | 0.225888 | 0.152284 | 0.045685 | 0 | 0 | 0.027473 | 0.194042 | 2,484 | 67 | 100 | 37.074627 | 0.75974 | 0.072061 | 0 | 0.266667 | 0 | 0 | 0.14267 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.088889 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c507d9906b9f9064e3ef73ce30f4474bd129ff32 | 5,204 | py | Python | rsw_pipeline/readhdr.py | federatedcloud/astro-dev | b989d5027ff298f634dbfb91791c8d4c78ca21d2 | [
"BSD-3-Clause"
] | null | null | null | rsw_pipeline/readhdr.py | federatedcloud/astro-dev | b989d5027ff298f634dbfb91791c8d4c78ca21d2 | [
"BSD-3-Clause"
] | null | null | null | rsw_pipeline/readhdr.py | federatedcloud/astro-dev | b989d5027ff298f634dbfb91791c8d4c78ca21d2 | [
"BSD-3-Clause"
] | null | null | null | # Get the number of samples from a list of data files
#
# The psrfits header-reading code draws heavily from P. Lazarus'
# psrfits.py code for the PALFA pipeline
from astropy.io import fits
import sigproc
import glob
import numpy as np
import sys
import psr_utils
def psrfits_samp(flist):
"""
This function re... | 32.525 | 78 | 0.593005 | 712 | 5,204 | 4.189607 | 0.30618 | 0.02179 | 0.020114 | 0.036205 | 0.071405 | 0.034864 | 0 | 0 | 0 | 0 | 0 | 0.007959 | 0.323982 | 5,204 | 159 | 79 | 32.72956 | 0.839966 | 0.150269 | 0 | 0.116279 | 0 | 0 | 0.128512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.081395 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c50f00f53929a75e28128e8caf441faaf9b7b0e9 | 411 | py | Python | listings/migrations/0004_joblist_icon.py | UMERSHUJA/MyEraApi | 9d3eda399dcab94cb14005ec7439e473bbaa416a | [
"MIT"
] | null | null | null | listings/migrations/0004_joblist_icon.py | UMERSHUJA/MyEraApi | 9d3eda399dcab94cb14005ec7439e473bbaa416a | [
"MIT"
] | null | null | null | listings/migrations/0004_joblist_icon.py | UMERSHUJA/MyEraApi | 9d3eda399dcab94cb14005ec7439e473bbaa416a | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-12 18:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('listings', '0003_auto_20201012_2208'),
]
operations = [
migrations.AddField(
model_name='joblist',
name='icon',
... | 21.631579 | 77 | 0.596107 | 47 | 411 | 5.106383 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103679 | 0.272506 | 411 | 18 | 78 | 22.833333 | 0.698997 | 0.109489 | 0 | 0 | 1 | 0 | 0.156593 | 0.063187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c51b280b183a94f53f65a21a60ab19f68ef36660 | 3,873 | py | Python | lean/models/brokerages/cloud/interactive_brokers.py | InvestWeMust/lean-cli | a7241a0af6202dc7d56c0f35d09e51798cc5d426 | [
"Apache-2.0"
] | 76 | 2021-02-03T02:32:32.000Z | 2022-03-28T17:04:03.000Z | lean/models/brokerages/cloud/interactive_brokers.py | InvestWeMust/lean-cli | a7241a0af6202dc7d56c0f35d09e51798cc5d426 | [
"Apache-2.0"
] | 64 | 2021-02-28T23:14:17.000Z | 2022-03-30T23:22:24.000Z | lean/models/brokerages/cloud/interactive_brokers.py | InvestWeMust/lean-cli | a7241a0af6202dc7d56c0f35d09e51798cc5d426 | [
"Apache-2.0"
] | 50 | 2021-02-11T01:25:24.000Z | 2022-03-17T03:56:29.000Z | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean CLI v1.0. Copyright 2021 QuantConnect Corporation.
#
# 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... | 39.927835 | 133 | 0.671056 | 471 | 3,873 | 5.358811 | 0.390658 | 0.039223 | 0.021395 | 0.012678 | 0.080032 | 0.061014 | 0 | 0 | 0 | 0 | 0 | 0.004788 | 0.24503 | 3,873 | 96 | 134 | 40.34375 | 0.858413 | 0.179964 | 0 | 0.169231 | 0 | 0.030769 | 0.292814 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0.076923 | 0.076923 | 0.061538 | 0.261538 | 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 |
c51d7311e3feebd4faa8d6ab951d7b613600e00a | 852 | py | Python | lcore/forms.py | GitDietz/sweb | 1c21f837d34c52878d44864ea794e7952914f492 | [
"MIT"
] | null | null | null | lcore/forms.py | GitDietz/sweb | 1c21f837d34c52878d44864ea794e7952914f492 | [
"MIT"
] | 2 | 2021-02-28T03:05:50.000Z | 2021-02-28T06:20:51.000Z | lcore/forms.py | GitDietz/sweb | 1c21f837d34c52878d44864ea794e7952914f492 | [
"MIT"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
class ContactForm(forms.Form):
full_name = forms.CharField(label= "Your name and surname", required=True, widget=forms.TextInput
(attrs={'placeholder': 'Your full name'}))
email = forms.EmailField(required=Tr... | 53.25 | 120 | 0.603286 | 85 | 852 | 6.023529 | 0.458824 | 0.09375 | 0.105469 | 0.134766 | 0.1875 | 0.1875 | 0.1875 | 0 | 0 | 0 | 0 | 0.006421 | 0.268779 | 852 | 15 | 121 | 56.8 | 0.815409 | 0 | 0 | 0 | 0 | 0 | 0.200704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c52595cf3c15aefbe674dd6f8e9447ccc97acbc7 | 596 | py | Python | firefox_db.py | codered-by-ec-council/Black-Hat-Python-for-Pentesters- | df0cc8b22bcd8f96152ad0b7086a14dd850d5024 | [
"MIT"
] | 10 | 2020-03-15T18:08:50.000Z | 2021-12-10T05:46:50.000Z | firefox_db.py | codered-by-ec-council/Black-Hat-Python-for-Pentesters- | df0cc8b22bcd8f96152ad0b7086a14dd850d5024 | [
"MIT"
] | null | null | null | firefox_db.py | codered-by-ec-council/Black-Hat-Python-for-Pentesters- | df0cc8b22bcd8f96152ad0b7086a14dd850d5024 | [
"MIT"
] | 6 | 2020-05-27T06:56:00.000Z | 2022-03-14T13:48:38.000Z | from sqlalchemy import create_engine, MetaData, Table
from sqlalchemy.orm import sessionmaker, mapper
class Places:
"""Empty class to populate with pre-existing data"""
pass
engine = create_engine("sqlite:///places.sqlite") # Access existing database
metadata = MetaData(engine) # Link existing metadata
m... | 27.090909 | 80 | 0.75 | 79 | 596 | 5.594937 | 0.493671 | 0.063348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152685 | 596 | 21 | 81 | 28.380952 | 0.875248 | 0.261745 | 0 | 0 | 0 | 0 | 0.076566 | 0.053364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.230769 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c5297135e8db5f2fa7d2c73a41b16964aa507b49 | 1,579 | py | Python | src/jolle/shortcuts.py | runekaagaard/brygge | 73c7c24f3a97b3418686fc747191f08dbf9971b7 | [
"MIT"
] | null | null | null | src/jolle/shortcuts.py | runekaagaard/brygge | 73c7c24f3a97b3418686fc747191f08dbf9971b7 | [
"MIT"
] | null | null | null | src/jolle/shortcuts.py | runekaagaard/brygge | 73c7c24f3a97b3418686fc747191f08dbf9971b7 | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals
from transit.transit_types import Keyword, Symbol, true, false
from transit.pyversion import string_types
class KeywordUnicorn(Keyword):
def __init__(self):
self.parent = None
def __getattr__(self, value):
assert isinstance(value, string_... | 23.567164 | 71 | 0.59468 | 183 | 1,579 | 4.836066 | 0.338798 | 0.061017 | 0.084746 | 0.094915 | 0.213559 | 0.188701 | 0.188701 | 0.094915 | 0 | 0 | 0 | 0.00085 | 0.255225 | 1,579 | 66 | 72 | 23.924242 | 0.751701 | 0.0076 | 0 | 0.204082 | 0 | 0 | 0.028754 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.163265 | false | 0 | 0.061224 | 0.102041 | 0.44898 | 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 |
c52b548a389d0431855b77f33842f2c9d8c8601d | 5,431 | py | Python | examples/gensim/lda_training.py | Sylhare/simple-lda | a41eb8e331a44ea97bf4c342f2466ee232d3b151 | [
"Apache-2.0"
] | null | null | null | examples/gensim/lda_training.py | Sylhare/simple-lda | a41eb8e331a44ea97bf4c342f2466ee232d3b151 | [
"Apache-2.0"
] | 1 | 2018-08-10T12:55:09.000Z | 2018-08-10T12:55:09.000Z | examples/gensim/lda_training.py | Sylhare/simple-lda | a41eb8e331a44ea97bf4c342f2466ee232d3b151 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
LDA training
Latent Dirichlet Allocation with Python
"""
# Source
"""
In the readme file
"""
# Import
from nltk.tokenize import RegexpTokenizer
from nltk.stem.porter import PorterStemmer
from stop_words import get_stop_words
from gensim import corpora, models
# -- Sample Document -- ... | 29.516304 | 77 | 0.723624 | 815 | 5,431 | 4.755828 | 0.355828 | 0.020898 | 0.00774 | 0.007224 | 0.248194 | 0.217234 | 0.198142 | 0.198142 | 0.176987 | 0.148607 | 0 | 0.001817 | 0.189284 | 5,431 | 183 | 78 | 29.677596 | 0.878265 | 0.242497 | 0 | 0.5 | 0 | 0 | 0.24555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.045455 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c531c849a482fdb70fe34127b1d98668c0ac5ff0 | 5,435 | py | Python | cirqprojectq/circ_engine.py | HQSquantumsimulations/CirqProjectQ | 3329dcbd9382a57be00359d95291d694653cdd81 | [
"Apache-2.0"
] | 6 | 2019-03-28T09:34:57.000Z | 2021-12-16T04:31:29.000Z | cirqprojectq/circ_engine.py | HQSquantumsimulations/CirqProjectQ | 3329dcbd9382a57be00359d95291d694653cdd81 | [
"Apache-2.0"
] | 1 | 2018-11-19T13:45:00.000Z | 2018-11-19T13:45:00.000Z | cirqprojectq/circ_engine.py | HeisenbergQS/CirqProjectQ | 3329dcbd9382a57be00359d95291d694653cdd81 | [
"Apache-2.0"
] | 2 | 2019-01-18T02:44:50.000Z | 2021-12-16T04:33:25.000Z | # Copyright 2018 Heisenberg Quantum Simulations
# -*- coding: utf-8 -*-
#
# 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... | 33.549383 | 97 | 0.602208 | 662 | 5,435 | 4.787009 | 0.308157 | 0.02272 | 0.02272 | 0.010098 | 0.082676 | 0.043547 | 0.025245 | 0 | 0 | 0 | 0 | 0.005828 | 0.305428 | 5,435 | 161 | 98 | 33.757764 | 0.833642 | 0.38988 | 0 | 0.247191 | 0 | 0 | 0.018373 | 0 | 0 | 0 | 0 | 0.018634 | 0.011236 | 1 | 0.11236 | false | 0 | 0.089888 | 0 | 0.303371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.