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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
890a303490f0d4c10fdac1554b0797ec1d40e603 | 1,828 | py | Python | signuplogin/views.py | xflows/textflows | 7fd99cebe29bcb25ea21b8bfb7dca2d0b663ea2b | [
"MIT"
] | 18 | 2015-07-29T07:14:41.000Z | 2021-05-31T16:10:49.000Z | signuplogin/views.py | xflows/textflows | 7fd99cebe29bcb25ea21b8bfb7dca2d0b663ea2b | [
"MIT"
] | null | null | null | signuplogin/views.py | xflows/textflows | 7fd99cebe29bcb25ea21b8bfb7dca2d0b663ea2b | [
"MIT"
] | 8 | 2016-02-05T10:13:40.000Z | 2020-11-10T14:36:31.000Z | from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
def signuplogin(request):
if request.method == 'POST':
if request.POST.get('login'):
uname ... | 35.843137 | 101 | 0.584245 | 187 | 1,828 | 5.657754 | 0.358289 | 0.093573 | 0.118147 | 0.039698 | 0.149338 | 0.149338 | 0 | 0 | 0 | 0 | 0 | 0.003987 | 0.314004 | 1,828 | 51 | 102 | 35.843137 | 0.839713 | 0 | 0 | 0.230769 | 0 | 0 | 0.090213 | 0.031165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.153846 | 0.102564 | 0.025641 | 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 |
890a660bfe2a29351888f55b1a581b8fa290f798 | 1,573 | py | Python | calculate_gc.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | calculate_gc.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | calculate_gc.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | #Calculates length and GC content of DHSs sites from fasta files
#DHS_#_intergenic.fa generated from bedtools getfasta using original DHS files filtered for only intergenic regions
#Exports DHS_#_gc.csv
#Exports DHS_#_lengths.csv
from Bio import SeqIO
import csv
#DhS files
files = ['1','2','4','8']
for entry in fi... | 33.468085 | 115 | 0.624285 | 228 | 1,573 | 4.171053 | 0.355263 | 0.066246 | 0.037855 | 0.033649 | 0.353312 | 0.353312 | 0.353312 | 0.294427 | 0.294427 | 0.294427 | 0 | 0.008432 | 0.246027 | 1,573 | 47 | 116 | 33.468085 | 0.793423 | 0.24857 | 0 | 0.142857 | 1 | 0 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
8913d86d344ae2c464ce977cf9852b8da922a5bd | 487 | py | Python | imdb/migrations/0004_auto_20200318_1539.py | raviteja1766/modern-resume-theme | 59b2cf57f0a1308f8d6650ca47318e8bd32e6bea | [
"MIT"
] | 1 | 2020-01-09T10:37:07.000Z | 2020-01-09T10:37:07.000Z | imdb/migrations/0004_auto_20200318_1539.py | raviteja1766/modern-resume-theme | 59b2cf57f0a1308f8d6650ca47318e8bd32e6bea | [
"MIT"
] | null | null | null | imdb/migrations/0004_auto_20200318_1539.py | raviteja1766/modern-resume-theme | 59b2cf57f0a1308f8d6650ca47318e8bd32e6bea | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-18 15:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('imdb', '0003_remove_cast_is_debut_movie'),
]
operations = [
migrations.AlterField(
model_name='... | 24.35 | 112 | 0.644764 | 58 | 487 | 5.293103 | 0.689655 | 0.078176 | 0.091205 | 0.143322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051075 | 0.23614 | 487 | 19 | 113 | 25.631579 | 0.774194 | 0.092402 | 0 | 0 | 1 | 0 | 0.138636 | 0.070455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64dfd06c0a6fd052ad9d98834a2ee70b80ecc1c1 | 728 | py | Python | fundamentals/15-advance-objects-and-data-structures/5-advance-lists.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | fundamentals/15-advance-objects-and-data-structures/5-advance-lists.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | fundamentals/15-advance-objects-and-data-structures/5-advance-lists.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | # Advance Lists
my_list = [1, 2, 3]
# Add element
print('\n# Add element\n')
my_list.append(4)
my_list.append(4)
print(my_list)
# Count element's occurrences
print('\n# Count element\'s occurrences\n')
print(f'2 = {my_list.count(2)}')
print(f'4 = {my_list.count(4)}')
print(f'5 = {my_list.count(5)}')
# Extend
print... | 18.666667 | 43 | 0.627747 | 140 | 728 | 3.171429 | 0.2 | 0.175676 | 0.099099 | 0.058559 | 0.148649 | 0.076577 | 0 | 0 | 0 | 0 | 0 | 0.043062 | 0.138736 | 728 | 38 | 44 | 19.157895 | 0.665072 | 0.100275 | 0 | 0.25 | 0 | 0 | 0.467593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
64ed44e453363a672a9e69494e503817cb7b74a6 | 431 | py | Python | examples/parse_by_sol.py | sluzhynskyi/nasa | 4f961d3614e3539447348ff512c318fbf43ce29b | [
"MIT"
] | 4 | 2019-08-22T06:48:55.000Z | 2021-07-26T12:20:26.000Z | examples/parse_by_sol.py | sluzhynskyi/nasa | 4f961d3614e3539447348ff512c318fbf43ce29b | [
"MIT"
] | 3 | 2019-03-06T20:22:56.000Z | 2021-06-01T23:46:15.000Z | examples/parse_by_sol.py | sluzhynskyi/nasa | 4f961d3614e3539447348ff512c318fbf43ce29b | [
"MIT"
] | 1 | 2019-08-17T06:20:10.000Z | 2019-08-17T06:20:10.000Z | import json
import urllib.request
import pprint
import webbrowser
URL = "https://mars.jpl.nasa.gov/msl-raw-images/image/images_sol2320.json"
jsonFILE = json.loads(urllib.request.urlopen(URL).read())
#pprint.pprint(jsonFILE)
camera = jsonFILE['images'][0]['cameraModelType']
sol = jsonFILE['images'][0]['sol']
link = j... | 25.352941 | 74 | 0.728538 | 60 | 431 | 5.216667 | 0.533333 | 0.134185 | 0.14377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.081207 | 431 | 16 | 75 | 26.9375 | 0.767677 | 0.053364 | 0 | 0 | 0 | 0.090909 | 0.331695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
64f4984c197937ee5b93ae798a55664cc01163da | 3,311 | py | Python | tcpreq/tcp/options.py | TheJokr/tcpreq | 270c133a94a9d1210978fb884ac7c9516e68f6a1 | [
"MIT"
] | 18 | 2020-04-03T15:00:46.000Z | 2021-12-10T10:19:32.000Z | tcpreq/tcp/options.py | TheJokr/tcpreq | 270c133a94a9d1210978fb884ac7c9516e68f6a1 | [
"MIT"
] | null | null | null | tcpreq/tcp/options.py | TheJokr/tcpreq | 270c133a94a9d1210978fb884ac7c9516e68f6a1 | [
"MIT"
] | 1 | 2020-07-04T12:53:22.000Z | 2020-07-04T12:53:22.000Z | from typing import TypeVar, Type, Dict, Union, Generator
# Options are immutable
class BaseOption(object):
"""Common base class for all options."""
__slots__ = ("_raw",)
def __init__(self, data: bytes) -> None:
self._raw = data
def __len__(self) -> int:
return len(self._raw)
def... | 27.591667 | 80 | 0.625189 | 419 | 3,311 | 4.656325 | 0.291169 | 0.032291 | 0.03998 | 0.024603 | 0.211174 | 0.082009 | 0.082009 | 0.082009 | 0.082009 | 0.04613 | 0 | 0.010543 | 0.25521 | 3,311 | 119 | 81 | 27.823529 | 0.780616 | 0.169435 | 0 | 0.210526 | 0 | 0 | 0.040103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.013158 | 0.092105 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64f736f4cce6304d20edac3cc86504e315653ab0 | 1,416 | py | Python | inter_graph_2.py | fernandorazon/blmsat | 37b2c81d7d7760fb4a76e819fb386ac9184d54f6 | [
"MIT"
] | null | null | null | inter_graph_2.py | fernandorazon/blmsat | 37b2c81d7d7760fb4a76e819fb386ac9184d54f6 | [
"MIT"
] | null | null | null | inter_graph_2.py | fernandorazon/blmsat | 37b2c81d7d7760fb4a76e819fb386ac9184d54f6 | [
"MIT"
] | null | null | null |
#Adicionalmente, para poder tratar a nuestra ventana como un objeto con sus atributos como los deseamos
#Se puede declarar una clase heredera de la clase tk con los atributos deseados
from tkinter import *
from tkinter import ttk
from cansat import testLogLineString
from getBalamsatData import aceleracion ... | 25.285714 | 121 | 0.673729 | 201 | 1,416 | 4.661692 | 0.552239 | 0.017076 | 0.036286 | 0.042689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010368 | 0.250706 | 1,416 | 55 | 122 | 25.745455 | 0.872762 | 0.56709 | 0 | 0 | 0 | 0 | 0.036832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | 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 |
64fd1abdb8ce8f4b4a97b798eb8645f38ce491f0 | 1,216 | py | Python | example/cbs_example.py | bulletRush/QCloud_yunapi_wrapper | e8510c1891628de1ef48d9cba6ed070e200ba66c | [
"Apache-2.0"
] | null | null | null | example/cbs_example.py | bulletRush/QCloud_yunapi_wrapper | e8510c1891628de1ef48d9cba6ed070e200ba66c | [
"Apache-2.0"
] | null | null | null | example/cbs_example.py | bulletRush/QCloud_yunapi_wrapper | e8510c1891628de1ef48d9cba6ed070e200ba66c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
from qcloudsdk import ZoneId, CbsStorageType, Region, get_region_list, RegionConfig
from config import engine
class CbsTestCase(unittest.TestCase):
def setUp(self):
print("\n{0} BEGIN TEST: {1} {2}".format('*' * 20, self._testMethodName, '*' * 20))
self.engine... | 34.742857 | 92 | 0.634046 | 150 | 1,216 | 4.96 | 0.44 | 0.080645 | 0.060484 | 0.072581 | 0.134409 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029221 | 0.240132 | 1,216 | 34 | 93 | 35.764706 | 0.775974 | 0.032072 | 0 | 0 | 0 | 0 | 0.078298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.24 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f0518c3a0750da363aefe2c50b411be06aac802 | 538 | py | Python | desafio032.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | desafio032.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | desafio032.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | # Marcelo Campos de Medeiros
# ADS UNIFIP
# REVISÃO DE PYTHON
# AULA 10 CONDIÇÕES GUSTAVO GUANABARA
'''
Faça um Programa que leia um ano qualquer e mostre se ele é BISSEXTO.
'''
print('='*30)
print('{:#^30}'.format(' ANO BISSEXTO '))
print('='*30)
print()
ano = int(input('Informe o ano: '))
print()
# condição para ... | 24.454545 | 78 | 0.626394 | 89 | 538 | 3.786517 | 0.516854 | 0.080119 | 0.089021 | 0.118694 | 0.142433 | 0.142433 | 0.142433 | 0.142433 | 0.142433 | 0.142433 | 0 | 0.065728 | 0.208178 | 538 | 22 | 79 | 24.454545 | 0.725352 | 0.444238 | 0 | 0.454545 | 0 | 0 | 0.284722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.727273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f05fc10f80a9807e002e6198f7f3aacb5fea65c | 1,635 | py | Python | exams/migrations/0008_populate_exam_run.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | exams/migrations/0008_populate_exam_run.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | exams/migrations/0008_populate_exam_run.py | umarmughal824/micromasters | ea92d3bcea9be4601150fc497302ddacc1161622 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-24 19:10
from __future__ import unicode_literals
from datetime import datetime
from django.db import migrations
import pytz
PILOT_SERIES_CODE = 'PILOT'
PILOT_SCHEDULE_START_DATE = datetime(2017, 3, 6, tzinfo=pytz.UTC)
PILOT_SCHEDULE_END_DATE = datetime(... | 36.333333 | 88 | 0.715596 | 215 | 1,635 | 5.065116 | 0.376744 | 0.051423 | 0.05877 | 0.062443 | 0.185491 | 0.055096 | 0.055096 | 0.055096 | 0 | 0 | 0 | 0.036309 | 0.191437 | 1,635 | 44 | 89 | 37.159091 | 0.787443 | 0.056881 | 0 | 0 | 1 | 0 | 0.044951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f0aa7ef68a763a962ad53d37519a4ebd1c168f7 | 6,437 | py | Python | test_meeus.py | mcoatanhay/meeuscalc | 707f7332944220330d4fc7608e7cba928a0b60db | [
"MIT"
] | null | null | null | test_meeus.py | mcoatanhay/meeuscalc | 707f7332944220330d4fc7608e7cba928a0b60db | [
"MIT"
] | null | null | null | test_meeus.py | mcoatanhay/meeuscalc | 707f7332944220330d4fc7608e7cba928a0b60db | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Fichier: test_meeus.py
# Auteur: Marc COATANHAY
"""
Tests pour le module meeus.
"""
# Import des modules
try:
import mes_modules_path
except:
pass
from meeus import *
import incertitudes.incert as incert
import unittest
# Définitions constan... | 43.493243 | 76 | 0.495262 | 689 | 6,437 | 4.531205 | 0.185776 | 0.056054 | 0.067265 | 0.049327 | 0.623639 | 0.60378 | 0.554452 | 0.532671 | 0.508328 | 0.508328 | 0 | 0.065217 | 0.285381 | 6,437 | 148 | 77 | 43.493243 | 0.608478 | 0.038838 | 0 | 0.52 | 0 | 0 | 0.208445 | 0.10247 | 0 | 0 | 0 | 0 | 0.056 | 0 | null | null | 0.008 | 0.032 | null | null | 0.336 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f103ba566459ea07e70a5039f59dd82746a1559 | 684 | py | Python | Medium/264. Ugly Number II/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 3 | 2020-05-09T12:55:09.000Z | 2022-03-11T18:56:05.000Z | Medium/264. Ugly Number II/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | null | null | null | Medium/264. Ugly Number II/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 1 | 2022-03-11T18:56:16.000Z | 2022-03-11T18:56:16.000Z | # 264. Ugly Number II
# Runtime: 173 ms, faster than 54.94% of Python3 online submissions for Ugly Number II.
# Memory Usage: 14.2 MB, less than 73.79% of Python3 online submissions for Ugly Number II.
class Solution:
# Three Pointers
def nthUglyNumber(self, n: int) -> int:
nums = [1]
p2, p3... | 28.5 | 91 | 0.473684 | 98 | 684 | 3.295918 | 0.510204 | 0.077399 | 0.111455 | 0.160991 | 0.25387 | 0.25387 | 0.25387 | 0.25387 | 0 | 0 | 0 | 0.128079 | 0.406433 | 684 | 24 | 92 | 28.5 | 0.667488 | 0.307018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 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 |
8f12a3e97e343d879a1bf557daf38e1570274bd0 | 22,069 | py | Python | bench/dash.py | mlcgp/bench | c2f2fb31db4c76f98037e3e3e5be952547c00141 | [
"MIT"
] | null | null | null | bench/dash.py | mlcgp/bench | c2f2fb31db4c76f98037e3e3e5be952547c00141 | [
"MIT"
] | null | null | null | bench/dash.py | mlcgp/bench | c2f2fb31db4c76f98037e3e3e5be952547c00141 | [
"MIT"
] | null | null | null | import pandas as pd
import dash
import os
import base64
from inflection import humanize
from pathlib import Path
from sqlalchemy import create_engine, select, Table, MetaData
from sqlalchemy.orm import Session
from dash import dcc, html, Input, Output
from dash.exceptions import PreventUpdate
import dash_bootstrap_comp... | 41.561205 | 103 | 0.259006 | 1,128 | 22,069 | 4.964539 | 0.233156 | 0.008036 | 0.019286 | 0.019286 | 0.404286 | 0.377857 | 0.361786 | 0.361786 | 0.346964 | 0.346964 | 0 | 0.017803 | 0.656396 | 22,069 | 530 | 104 | 41.639623 | 0.720691 | 0 | 0 | 0.491054 | 0 | 0.001988 | 0.095156 | 0.010467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015905 | false | 0.003976 | 0.025845 | 0 | 0.065606 | 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 |
8f176f2b9ecbfc54e76e27799f6b813572d7f17c | 555 | py | Python | schema/views.py | leVirve-arxiv/OuO | 9a6a1ef50e6aeef8d0b84d1a1a377e5f19050ac2 | [
"MIT"
] | null | null | null | schema/views.py | leVirve-arxiv/OuO | 9a6a1ef50e6aeef8d0b84d1a1a377e5f19050ac2 | [
"MIT"
] | null | null | null | schema/views.py | leVirve-arxiv/OuO | 9a6a1ef50e6aeef8d0b84d1a1a377e5f19050ac2 | [
"MIT"
] | null | null | null | from schema.models import Member
from django.shortcuts import render
def save_userdata(backend, user, response, *args, **kwargs):
if backend.name == 'facebook':
try:
profile = Member.objects.get(user_id=user.id)
except Member.DoesNotExist:
profile = Member(user_id=user.id)
... | 25.227273 | 60 | 0.65045 | 68 | 555 | 5.264706 | 0.470588 | 0.067039 | 0.055866 | 0.067039 | 0.195531 | 0.195531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227027 | 555 | 21 | 61 | 26.428571 | 0.834499 | 0 | 0 | 0.133333 | 0 | 0 | 0.061261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.133333 | 0.466667 | 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 |
8f1cde6246d9ccea2e294e7fd4abb9c033eccaa5 | 352 | py | Python | pymajorme/helpers/constraints.py | danielkupco/PyMaJORME | 0cc0f5d98b32524474cf05919d3fccb3926393b2 | [
"MIT"
] | 1 | 2016-03-01T16:32:19.000Z | 2016-03-01T16:32:19.000Z | pymajorme/helpers/constraints.py | danielkupco/PyMaJORME | 0cc0f5d98b32524474cf05919d3fccb3926393b2 | [
"MIT"
] | 11 | 2016-02-01T14:22:08.000Z | 2016-02-23T22:58:17.000Z | pymajorme/helpers/constraints.py | danielkupco/PyMaJORME | 0cc0f5d98b32524474cf05919d3fccb3926393b2 | [
"MIT"
] | null | null | null |
class Constraints(object):
''' Contains all of the primary and foreign key constraint
names for the given entity as tuples of entities and
relations which are part of constraints '''
def __init__(self, pk_constraints, fk_constraints):
self.pk_constraints = pk_constraints
self.f... | 32 | 62 | 0.715909 | 45 | 352 | 5.377778 | 0.622222 | 0.161157 | 0.140496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232955 | 352 | 10 | 63 | 35.2 | 0.896296 | 0.417614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f3522751074b59b6cbb9d1db44c15311f2cfb48 | 3,863 | py | Python | .install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/windows_password_test.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | null | null | null | .install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/windows_password_test.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | null | null | null | .install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/windows_password_test.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | 1 | 2020-07-24T20:04:47.000Z | 2020-07-24T20:04:47.000Z | # Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.118182 | 80 | 0.738027 | 443 | 3,863 | 6.221219 | 0.361174 | 0.039913 | 0.059869 | 0.063861 | 0.384978 | 0.372279 | 0.301887 | 0.278665 | 0.25254 | 0.216255 | 0 | 0.019023 | 0.183536 | 3,863 | 109 | 81 | 35.440367 | 0.854788 | 0.188455 | 0 | 0.422535 | 0 | 0 | 0.117855 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 1 | 0.098592 | false | 0.56338 | 0.084507 | 0 | 0.253521 | 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 |
8f38235907b9eb58f5cbcd6b95c8ecc50d95b91f | 309 | py | Python | chat/urls.py | Rutujakadam0204/video_conferencing | 7c0ea87d16195bc565fc7fd7f389a431a3e47df2 | [
"MIT"
] | null | null | null | chat/urls.py | Rutujakadam0204/video_conferencing | 7c0ea87d16195bc565fc7fd7f389a431a3e47df2 | [
"MIT"
] | null | null | null | chat/urls.py | Rutujakadam0204/video_conferencing | 7c0ea87d16195bc565fc7fd7f389a431a3e47df2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
# from django.contrib.auth.decorators import login_required
# from rest_framework.urlpatterns import format_suffix_patterns
from . views import *
urlpatterns = [
# path('admin/', admin.site.urls),
path('', main_view, name='main_view'),
]
| 28.090909 | 63 | 0.757282 | 41 | 309 | 5.560976 | 0.536585 | 0.131579 | 0.149123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 309 | 10 | 64 | 30.9 | 0.853933 | 0.491909 | 0 | 0 | 0 | 0 | 0.059211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8f38956818d7d26413d81247226d22c1605a0678 | 6,153 | py | Python | chrome/common/extensions/docs/server2/app_yaml_helper_test.py | iplo/Chain | 8bc8943d66285d5258fffc41bed7c840516c4422 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | chrome/common/extensions/docs/server2/app_yaml_helper_test.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-02-14T21:55:58.000Z | 2017-02-14T21:55:58.000Z | chrome/common/extensions/docs/server2/app_yaml_helper_test.py | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | #!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from app_yaml_helper import AppYamlHelper
from extensions_paths import SERVER2
from host_file_system_provider import H... | 34.183333 | 79 | 0.674955 | 879 | 6,153 | 4.507395 | 0.156997 | 0.068652 | 0.090863 | 0.056537 | 0.507067 | 0.471479 | 0.38213 | 0.286724 | 0.233468 | 0.216557 | 0 | 0.062956 | 0.176499 | 6,153 | 179 | 80 | 34.374302 | 0.718966 | 0.074273 | 0 | 0.230769 | 0 | 0 | 0.117057 | 0 | 0 | 0 | 0 | 0 | 0.412587 | 1 | 0.055944 | false | 0 | 0.055944 | 0 | 0.125874 | 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 |
8f4c733b84d84a0351bf8d9d1333251f23372afb | 2,507 | py | Python | test_extra_credit.py | robertavram/tournament | ec77d898006f15aa2c1bd1836cfc7655c6587b01 | [
"MIT"
] | null | null | null | test_extra_credit.py | robertavram/tournament | ec77d898006f15aa2c1bd1836cfc7655c6587b01 | [
"MIT"
] | null | null | null | test_extra_credit.py | robertavram/tournament | ec77d898006f15aa2c1bd1836cfc7655c6587b01 | [
"MIT"
] | null | null | null | from tournament import *
from random import randint
from math import log, ceil
def setupTournament(tname):
createTournament(tname)
return
def registerPlayers(tournament="Default Tournament", tplayers=10):
"""Registers a list of randomly generated names. """
# Potential first names:
pFN = ["Eden... | 29.494118 | 88 | 0.618269 | 302 | 2,507 | 5.07947 | 0.460265 | 0.020861 | 0.035202 | 0.014342 | 0.040417 | 0.040417 | 0 | 0 | 0 | 0 | 0 | 0.015184 | 0.26446 | 2,507 | 85 | 89 | 29.494118 | 0.816703 | 0.064619 | 0 | 0.041667 | 0 | 0 | 0.176589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020833 | 0.0625 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f4d8e9c469beff91ba244881b1a589e7e632122 | 12,932 | py | Python | python/prizes.py | camfindlay/govhackaustralia.github.io | 3e4c1eb7d04a922ba7e6853ee5411af1c5d0b193 | [
"CC-BY-4.0"
] | 1 | 2020-06-20T21:50:06.000Z | 2020-06-20T21:50:06.000Z | python/prizes.py | camfindlay/govhackaustralia.github.io | 3e4c1eb7d04a922ba7e6853ee5411af1c5d0b193 | [
"CC-BY-4.0"
] | null | null | null | python/prizes.py | camfindlay/govhackaustralia.github.io | 3e4c1eb7d04a922ba7e6853ee5411af1c5d0b193 | [
"CC-BY-4.0"
] | 1 | 2020-06-20T21:50:09.000Z | 2020-06-20T21:50:09.000Z | import fnmatch
import codecs
import tablib
import os
import requests
import urlparse
import shutil
import frontmatter
import yaml
import io
class PrizeSpreadsheets(object):
"""
"""
def __init__(self, dir_path):
self.dir_path = dir_path
def get_spreadsheets(self):
sheets = []
f... | 37.484058 | 335 | 0.565496 | 1,432 | 12,932 | 5.00838 | 0.266061 | 0.017847 | 0.01464 | 0.005577 | 0.133714 | 0.110429 | 0.097323 | 0.059398 | 0.050474 | 0.035973 | 0 | 0.004354 | 0.3073 | 12,932 | 345 | 336 | 37.484058 | 0.796271 | 0.197108 | 0 | 0.172727 | 0 | 0 | 0.164788 | 0.022347 | 0 | 0 | 0 | 0.002899 | 0 | 0 | null | null | 0.004545 | 0.05 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f55227cf0237dd09fda9cb47b6ed01106b23c08 | 734 | py | Python | shop/migrations/0004_auto_20191223_1511.py | majestylink/majestyAccencis | 41bdde6f9982980609f93a8b44bcaf06cc5f6ea6 | [
"MIT"
] | null | null | null | shop/migrations/0004_auto_20191223_1511.py | majestylink/majestyAccencis | 41bdde6f9982980609f93a8b44bcaf06cc5f6ea6 | [
"MIT"
] | null | null | null | shop/migrations/0004_auto_20191223_1511.py | majestylink/majestyAccencis | 41bdde6f9982980609f93a8b44bcaf06cc5f6ea6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-12-23 14:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_auto_20191223_1507'),
]
operations = [
migrations.AddField(
model_name='item',
name='label_type',
... | 29.36 | 162 | 0.588556 | 81 | 734 | 5.197531 | 0.654321 | 0.042755 | 0.061758 | 0.08076 | 0.104513 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06308 | 0.265668 | 734 | 24 | 163 | 30.583333 | 0.717996 | 0.061308 | 0 | 0.222222 | 1 | 0 | 0.15575 | 0.033479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f55a41e038080f5e759107ce256226edf627325 | 356 | py | Python | train/demo.py | Ethan16/python_misc | 29cf2fdbd7529a05bcf35768e0244e634fe2ae7a | [
"Apache-2.0"
] | 1 | 2019-05-04T09:26:29.000Z | 2019-05-04T09:26:29.000Z | train/demo.py | Ethan16/python_misc | 29cf2fdbd7529a05bcf35768e0244e634fe2ae7a | [
"Apache-2.0"
] | null | null | null | train/demo.py | Ethan16/python_misc | 29cf2fdbd7529a05bcf35768e0244e634fe2ae7a | [
"Apache-2.0"
] | null | null | null | class Demo(object):
def __init__(self,a=None,*args,**kwargs):
self.a=a
#import pdb;pdb.set_trace()
def get_a(self):
return self.a
@property
def b(self):
b="b2b"
return b
if __name__== '__main__':
demo=Demo('int a','int b','int_c',d='init_d')
... | 23.733333 | 50 | 0.539326 | 54 | 356 | 3.240741 | 0.481481 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.30618 | 356 | 15 | 51 | 23.733333 | 0.704453 | 0.073034 | 0 | 0 | 0 | 0 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f62c6cee92460f2bc1d289c73585eb313eeb447 | 5,190 | py | Python | knowledge/SSHExec.py | procter-gamble-tech/pentest-report | f9e9d8f5dc76316fd5a1fe43956d60d1efd1aacc | [
"MIT"
] | 2 | 2021-02-18T13:46:06.000Z | 2021-04-30T05:11:19.000Z | knowledge/SSHExec.py | procter-gamble-tech/pentest-report | f9e9d8f5dc76316fd5a1fe43956d60d1efd1aacc | [
"MIT"
] | null | null | null | knowledge/SSHExec.py | procter-gamble-tech/pentest-report | f9e9d8f5dc76316fd5a1fe43956d60d1efd1aacc | [
"MIT"
] | 1 | 2021-02-18T13:45:37.000Z | 2021-02-18T13:45:37.000Z | #!/usr/bin/python3
from StateAction import StateAction
import paramiko
import socket
import argparse
class SSHExec(StateAction):
""" Runs an ssh command on all user/hosts """
def __init__(self, cmd_list, cmd_name, mode='foreach_host', users=None):
""" cmd list - these commands will be run over SSH """... | 55.806452 | 342 | 0.634489 | 648 | 5,190 | 4.935185 | 0.337963 | 0.021889 | 0.031895 | 0.013133 | 0.106942 | 0.095685 | 0.095685 | 0.031895 | 0.031895 | 0.031895 | 0 | 0.002503 | 0.230058 | 5,190 | 92 | 343 | 56.413043 | 0.797798 | 0.091329 | 0 | 0.067797 | 0 | 0.033898 | 0.274545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.118644 | 0.067797 | 0 | 0.20339 | 0.118644 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f63a5304c263db8cd4106423faef2227b9b49fb | 1,803 | py | Python | tf_quant_finance/rates/swap_curve_common.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 3,138 | 2019-07-24T21:43:17.000Z | 2022-03-30T12:11:09.000Z | tf_quant_finance/rates/swap_curve_common.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 63 | 2019-09-07T19:16:03.000Z | 2022-03-29T19:29:40.000Z | tf_quant_finance/rates/swap_curve_common.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 423 | 2019-07-26T21:28:05.000Z | 2022-03-26T13:07:44.000Z | # Lint as: python3
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 34.673077 | 80 | 0.749861 | 244 | 1,803 | 5.483607 | 0.487705 | 0.044843 | 0.024664 | 0.029148 | 0.190583 | 0.154709 | 0.097907 | 0.097907 | 0.097907 | 0.097907 | 0 | 0.010163 | 0.181364 | 1,803 | 51 | 81 | 35.352941 | 0.896341 | 0.732668 | 0 | 0 | 0 | 0 | 0.051282 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.733333 | 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 |
8f6b79727ab29b5b63cc9dd751d6412c518b2feb | 557 | py | Python | Module2/myprg1.py | vishalnalwa/DAT210x-master---Old | 0cbe91636285fd55059b5059cb131811ea207850 | [
"MIT"
] | null | null | null | Module2/myprg1.py | vishalnalwa/DAT210x-master---Old | 0cbe91636285fd55059b5059cb131811ea207850 | [
"MIT"
] | null | null | null | Module2/myprg1.py | vishalnalwa/DAT210x-master---Old | 0cbe91636285fd55059b5059cb131811ea207850 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 19 17:14:36 2017
@author: m037382
"""
import pandas as pd
df = pd.read_html('http://www.espn.com/nhl/statistics/player/_/stat/points/sort/points/year/2015/seasontype/2')
df1 = pd.concat(df)
df1.columns = ['RK', 'PLAYER', 'TEAM', 'GP','G','A','PTS','+/-',' PIM','PTS/G','... | 29.315789 | 125 | 0.61939 | 101 | 557 | 3.386139 | 0.633663 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087475 | 0.096948 | 557 | 19 | 126 | 29.315789 | 0.592445 | 0.037702 | 0 | 0 | 0 | 0.090909 | 0.324895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
8f751c06b143e725cfe778cbe9ed3c2d667f4adc | 907 | py | Python | Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithPresentation/Zoom.py | tienph91/Aspose.Slides-for-Java | 874a8245c6e1ae227393644d9bd35d5e65e07d52 | [
"MIT"
] | 27 | 2016-10-25T13:19:25.000Z | 2022-03-03T04:13:53.000Z | Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithPresentation/Zoom.py | tienph91/Aspose.Slides-for-Java | 874a8245c6e1ae227393644d9bd35d5e65e07d52 | [
"MIT"
] | 9 | 2017-03-14T13:02:17.000Z | 2021-11-25T13:22:20.000Z | Plugins/Aspose-Slides-Java-for-Jython/asposeslides/WorkingWithPresentation/Zoom.py | tienph91/Aspose.Slides-for-Java | 874a8245c6e1ae227393644d9bd35d5e65e07d52 | [
"MIT"
] | 38 | 2016-04-07T16:37:29.000Z | 2022-01-17T06:35:14.000Z | from asposeslides import Settings
from com.aspose.slides import Presentation
from com.aspose.slides import SaveFormat
from com.aspose.slides import XpsOptions
class Zoom:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithPresentation/Zoom/'
# Create an instance of Pres... | 34.884615 | 127 | 0.693495 | 102 | 907 | 6.029412 | 0.509804 | 0.034146 | 0.063415 | 0.092683 | 0.209756 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0.008608 | 0.231533 | 907 | 26 | 128 | 34.884615 | 0.873745 | 0.23484 | 0 | 0 | 0 | 0 | 0.132075 | 0.04209 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f76e085c8945f356c1b5166c9e3418d881f3e6b | 3,649 | py | Python | python/common/fileIO/pcsPath.py | CountZer0/PipelineConstructionSet | 0aa73a8a63c72989b2d1c677efd78dad4388d335 | [
"BSD-3-Clause"
] | 21 | 2015-04-27T05:01:36.000Z | 2021-11-22T13:45:14.000Z | python/common/fileIO/pcsPath.py | 0xb1dd1e/PipelineConstructionSet | 621349da1b6d1437e95d0c9e48ee9f36d59f19fd | [
"BSD-3-Clause"
] | null | null | null | python/common/fileIO/pcsPath.py | 0xb1dd1e/PipelineConstructionSet | 621349da1b6d1437e95d0c9e48ee9f36d59f19fd | [
"BSD-3-Clause"
] | 7 | 2015-04-11T11:37:19.000Z | 2020-05-22T09:49:04.000Z | '''
Author: Jason.Parks
Created: April 17, 2012
Module: common.fileIO.Path
Purpose: custom Path class wrapper
'''
from common.fileIO.path import *
import os, stat
import sys
class Path(path):
'''
PipelineConstructionSet sub-class of pymel's path class (which came from Jason Orendorff's implementation in Python 2.2)... | 20.272222 | 121 | 0.624007 | 496 | 3,649 | 4.558468 | 0.262097 | 0.026537 | 0.03096 | 0.037594 | 0.435648 | 0.41088 | 0.392304 | 0.392304 | 0.326404 | 0.326404 | 0 | 0.010271 | 0.252946 | 3,649 | 179 | 122 | 20.385475 | 0.819149 | 0.072075 | 0 | 0.476636 | 0 | 0 | 0.054286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037383 | null | null | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f7c29f9a92e05ecd92699cd4528d8f8ee852948 | 1,324 | py | Python | pytorch_forecasting/metrics/__init__.py | smetam/pytorch-forecasting | 0a5e13fc9eefab00f43b002d08808b235582ed3d | [
"MIT"
] | null | null | null | pytorch_forecasting/metrics/__init__.py | smetam/pytorch-forecasting | 0a5e13fc9eefab00f43b002d08808b235582ed3d | [
"MIT"
] | 2 | 2020-07-26T11:38:16.000Z | 2020-08-16T21:08:53.000Z | pytorch_forecasting/metrics/__init__.py | smetam/pytorch-forecasting | 0a5e13fc9eefab00f43b002d08808b235582ed3d | [
"MIT"
] | null | null | null | """
Metrics for (mulit-horizon) timeseries forecasting.
"""
from pytorch_forecasting.metrics.base_metrics import (
DistributionLoss,
Metric,
MultiHorizonMetric,
MultiLoss,
MultivariateDistributionLoss,
convert_torchmetric_to_pytorch_forecasting_metric,
)
from pytorch_forecasting.metrics.distrib... | 27.020408 | 114 | 0.755287 | 86 | 1,324 | 11.406977 | 0.44186 | 0.110092 | 0.089704 | 0.118247 | 0.089704 | 0.089704 | 0 | 0 | 0 | 0 | 0 | 0.0018 | 0.160876 | 1,324 | 48 | 115 | 27.583333 | 0.881188 | 0.03852 | 0 | 0 | 0 | 0 | 0.303557 | 0.181028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.093023 | 0 | 0.093023 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f7fd280f59517d4cbc989bc26eb77bef14be853 | 1,885 | py | Python | tests/events/test_consumer.py | promulo/pinga | 185e8fc533882106f4f263a141d6ce829f6d3c39 | [
"MIT"
] | null | null | null | tests/events/test_consumer.py | promulo/pinga | 185e8fc533882106f4f263a141d6ce829f6d3c39 | [
"MIT"
] | 21 | 2020-12-20T02:00:45.000Z | 2020-12-24T14:32:54.000Z | tests/events/test_consumer.py | promulo/pinga | 185e8fc533882106f4f263a141d6ce829f6d3c39 | [
"MIT"
] | null | null | null | import json
from unittest.mock import ANY, MagicMock, call, patch
from pinga.events.consumer import Consumer
@patch("pinga.events.consumer.get_db_conn")
@patch("pinga.events.consumer.save_event")
@patch("pinga.events.consumer.get_logger")
@patch(
"pinga.events.consumer.KafkaConsumer",
return_value=[
... | 29.920635 | 91 | 0.690716 | 237 | 1,885 | 5.232068 | 0.274262 | 0.097581 | 0.168548 | 0.193548 | 0.473387 | 0.255645 | 0.255645 | 0.255645 | 0.191129 | 0.191129 | 0 | 0.013359 | 0.166048 | 1,885 | 62 | 92 | 30.403226 | 0.775445 | 0 | 0 | 0.215686 | 0 | 0 | 0.311936 | 0.180902 | 0 | 0 | 0 | 0 | 0.078431 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 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 |
56ae8dd61b1ca2359d4320007e8cf692e7b80936 | 3,437 | py | Python | q1pulse/lang/loops.py | sldesnoo-Delft/q1pulse | f5123b5c1e0dfbb59512d282ec7e3fb833e58b95 | [
"MIT"
] | 1 | 2021-11-12T09:40:14.000Z | 2021-11-12T09:40:14.000Z | q1pulse/lang/loops.py | sldesnoo-Delft/q1pulse | f5123b5c1e0dfbb59512d282ec7e3fb833e58b95 | [
"MIT"
] | null | null | null | q1pulse/lang/loops.py | sldesnoo-Delft/q1pulse | f5123b5c1e0dfbb59512d282ec7e3fb833e58b95 | [
"MIT"
] | null | null | null | from numbers import Number
from .math_expressions import get_dtype
from .register import Register
from .exceptions import Q1ValueError, Q1TypeError
class LoopVar(Register):
def __init__(self, name, loop, **kwargs):
super().__init__(name, **kwargs)
self._loop = loop
class Loop:
def __init__(s... | 30.6875 | 95 | 0.600233 | 453 | 3,437 | 4.242826 | 0.169978 | 0.078044 | 0.065557 | 0.031217 | 0.30437 | 0.278356 | 0.244537 | 0.185224 | 0.185224 | 0.185224 | 0 | 0.012648 | 0.286878 | 3,437 | 111 | 96 | 30.963964 | 0.771522 | 0.00611 | 0 | 0.329545 | 0 | 0.011364 | 0.130053 | 0.072935 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0.113636 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
56b14293ce8e3f37b76431fb8d2ed7001e30c62e | 563 | py | Python | apis/betterself/v1/signout/views.py | jeffshek/betterself | 51468253fc31373eb96e0e82189b9413f3d76ff5 | [
"MIT"
] | 98 | 2017-07-29T14:26:36.000Z | 2022-02-28T04:10:15.000Z | apis/betterself/v1/signout/views.py | jeffshek/betterself | 51468253fc31373eb96e0e82189b9413f3d76ff5 | [
"MIT"
] | 1,483 | 2017-05-30T00:05:56.000Z | 2022-03-31T12:37:06.000Z | apis/betterself/v1/signout/views.py | lawrendran/betterself | 51468253fc31373eb96e0e82189b9413f3d76ff5 | [
"MIT"
] | 13 | 2017-11-08T00:02:35.000Z | 2022-02-28T04:10:32.000Z | from django.contrib.auth import logout
from django.views.generic import RedirectView
class SessionLogoutView(RedirectView):
"""
A view that will logout a user out and redirect to homepage.
"""
permanent = False
query_string = True
pattern_name = 'home'
def get_redirect_url(self, *args, **... | 28.15 | 79 | 0.664298 | 67 | 563 | 5.477612 | 0.626866 | 0.054496 | 0.070845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241563 | 563 | 19 | 80 | 29.631579 | 0.859485 | 0.17762 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
56b4a1d9e88e438a1a646637bff86e026e3985e3 | 564 | py | Python | service_catalog/tables/global_hook_tables.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | service_catalog/tables/global_hook_tables.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | service_catalog/tables/global_hook_tables.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | from django_tables2 import TemplateColumn
from service_catalog.models import GlobalHook
from Squest.utils.squest_table import SquestTable
class GlobalHookTable(SquestTable):
state = TemplateColumn(template_name='custom_columns/global_hook_state.html')
actions = TemplateColumn(template_name='custom_columns/gl... | 37.6 | 102 | 0.753546 | 64 | 564 | 6.421875 | 0.53125 | 0.072993 | 0.126521 | 0.155718 | 0.238443 | 0.238443 | 0.238443 | 0 | 0 | 0 | 0 | 0.002066 | 0.141844 | 564 | 14 | 103 | 40.285714 | 0.847107 | 0 | 0 | 0 | 0 | 0 | 0.289007 | 0.177305 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.7 | 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 |
56b6f5d648b635feba668eb6da3c0a9f3f8d3fbc | 388 | py | Python | django/axf/app/migrations/0004_remove_usermodel_ticket.py | zhang15780/web_project | 820708ae68f4d1bc06cdde4a86e40a5457c11df8 | [
"Apache-2.0"
] | null | null | null | django/axf/app/migrations/0004_remove_usermodel_ticket.py | zhang15780/web_project | 820708ae68f4d1bc06cdde4a86e40a5457c11df8 | [
"Apache-2.0"
] | null | null | null | django/axf/app/migrations/0004_remove_usermodel_ticket.py | zhang15780/web_project | 820708ae68f4d1bc06cdde4a86e40a5457c11df8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-08 01:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0003_usermodel_ticket'),
]
operations = [
migrations.RemoveField(
... | 19.4 | 46 | 0.610825 | 41 | 388 | 5.585366 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070922 | 0.273196 | 388 | 19 | 47 | 20.421053 | 0.741135 | 0.170103 | 0 | 0 | 1 | 0 | 0.122257 | 0.065831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
56b95aef4c51bc2cb8ee77c4f2107d9a962b6662 | 288 | py | Python | app/User/index.py | OpenHill/OpenHi | 92279362b6513e066dd10f6ccbff8ab8a30b066e | [
"Apache-2.0"
] | null | null | null | app/User/index.py | OpenHill/OpenHi | 92279362b6513e066dd10f6ccbff8ab8a30b066e | [
"Apache-2.0"
] | null | null | null | app/User/index.py | OpenHill/OpenHi | 92279362b6513e066dd10f6ccbff8ab8a30b066e | [
"Apache-2.0"
] | null | null | null | from app.models.DB.mainDB import Post, User
from . import user
from flask import render_template
@user.route("/")
def n():
postlist = Post.query.filter().first()
print(postlist.user.nikename)
userlist = User.query.filter().first()
print(userlist.post)
return "app"
| 20.571429 | 43 | 0.690972 | 39 | 288 | 5.076923 | 0.564103 | 0.080808 | 0.161616 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170139 | 288 | 13 | 44 | 22.153846 | 0.828452 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0.2 | 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 |
56bb6e027a6dbdead08ed1b439c286d109ad9a29 | 3,347 | py | Python | main.py | NilaiVemula/empty-my-fridge | 0a9e7c214126e8d6e658f0a1e5d3bf50d5e2618c | [
"MIT"
] | null | null | null | main.py | NilaiVemula/empty-my-fridge | 0a9e7c214126e8d6e658f0a1e5d3bf50d5e2618c | [
"MIT"
] | null | null | null | main.py | NilaiVemula/empty-my-fridge | 0a9e7c214126e8d6e658f0a1e5d3bf50d5e2618c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Main script for Empty My Fridge project. Provides a CLI for the Spoonacular API.
"""
import requests
from rich.console import Console
import config
def get_missing_ingredients(available_ingredients, amount_recipes):
"""
:param available_ingredients: comma ... | 34.505155 | 119 | 0.679414 | 411 | 3,347 | 5.437956 | 0.411192 | 0.072483 | 0.021477 | 0.017897 | 0.088591 | 0.035794 | 0.035794 | 0 | 0 | 0 | 0 | 0.004975 | 0.219301 | 3,347 | 96 | 120 | 34.864583 | 0.850364 | 0.360323 | 0 | 0.041667 | 0 | 0 | 0.206814 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.145833 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
56ca1e265ad52858ba29fd79aa5275c28f935321 | 1,452 | py | Python | UmrConf.py | pzia/useful-meeting-reminder | 41b1bf6b0d57f8930700999503c1f0a66d78f0a6 | [
"MIT"
] | 2 | 2018-03-26T05:25:03.000Z | 2019-12-15T18:18:54.000Z | UmrConf.py | pzia/useful-meeting-reminder | 41b1bf6b0d57f8930700999503c1f0a66d78f0a6 | [
"MIT"
] | null | null | null | UmrConf.py | pzia/useful-meeting-reminder | 41b1bf6b0d57f8930700999503c1f0a66d78f0a6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#config
import configparser
#sys & os
import sys
import os.path
#set logging
import logging
logging.basicConfig(filename=os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), 'umr.log'),level=logging.DEBUG)
#Set locale
#FIXME : force French, should be in conf ?
import locale
locale.set... | 28.470588 | 120 | 0.685262 | 203 | 1,452 | 4.817734 | 0.384236 | 0.06135 | 0.0409 | 0.030675 | 0.106339 | 0.06953 | 0.06953 | 0.06953 | 0.06953 | 0 | 0 | 0.002523 | 0.181129 | 1,452 | 50 | 121 | 29.04 | 0.820017 | 0.249311 | 0 | 0 | 0 | 0 | 0.046992 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.111111 | false | 0 | 0.185185 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56ca763bb9fa3b6b3fb0286e4da0963af3f62d4c | 1,469 | py | Python | booking/models.py | thanderoy/HotelBookingSys | 5e2f769f75158ba271dfd10ed3850c4ca1364df3 | [
"BSD-2-Clause"
] | null | null | null | booking/models.py | thanderoy/HotelBookingSys | 5e2f769f75158ba271dfd10ed3850c4ca1364df3 | [
"BSD-2-Clause"
] | 1 | 2021-11-23T08:44:21.000Z | 2021-11-23T08:44:21.000Z | booking/models.py | thanderoy/HotelBookingSys | 5e2f769f75158ba271dfd10ed3850c4ca1364df3 | [
"BSD-2-Clause"
] | null | null | null | from django.db import models
from django.conf import settings
from django.urls import reverse
# Create your models here.
class Room(models.Model):
ROOM_CATEGORIES = (
('BZS', 'BUSINESS SUITE'),
('TNS', 'TWIN SUITE'),
('EXS', 'EXECUTIVE SUITE'),
('SGB', 'SINGLE BED'),
)
room_... | 36.725 | 127 | 0.6855 | 188 | 1,469 | 5.218085 | 0.393617 | 0.040775 | 0.066259 | 0.086646 | 0.149847 | 0.149847 | 0 | 0 | 0 | 0 | 0 | 0.004188 | 0.187202 | 1,469 | 40 | 128 | 36.725 | 0.81742 | 0.016338 | 0 | 0.064516 | 0 | 0.064516 | 0.186288 | 0.040859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.096774 | 0.096774 | 0.774194 | 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 |
56d9ce9e3fcbd7a37b87e6ee3644f57b43b23284 | 3,110 | py | Python | mopidy_frontend_for_adafruit_charlcdplate/Frontend.py | 9and3r/mopidy-frontend-for-adafruit-charlcdplate | 696e5f1c9174371907ef38ab3e00347ec7fb28e7 | [
"Apache-2.0"
] | null | null | null | mopidy_frontend_for_adafruit_charlcdplate/Frontend.py | 9and3r/mopidy-frontend-for-adafruit-charlcdplate | 696e5f1c9174371907ef38ab3e00347ec7fb28e7 | [
"Apache-2.0"
] | null | null | null | mopidy_frontend_for_adafruit_charlcdplate/Frontend.py | 9and3r/mopidy-frontend-for-adafruit-charlcdplate | 696e5f1c9174371907ef38ab3e00347ec7fb28e7 | [
"Apache-2.0"
] | null | null | null | import threading
from time import sleep
from mopidy import core
from MainScreen import MainScreen
from InputManager import InputManager
from DisplayObject import DisplayObject
import pykka
class FrontendAdafruitCharLCDPlate(pykka.ThreadingActor, core.CoreListener):
def __init__(self, config, core):
s... | 29.339623 | 104 | 0.668167 | 396 | 3,110 | 5 | 0.255051 | 0.094444 | 0.084848 | 0.057576 | 0.237374 | 0.169192 | 0.111111 | 0.075758 | 0.075758 | 0.075758 | 0 | 0.035548 | 0.240193 | 3,110 | 105 | 105 | 29.619048 | 0.80237 | 0.009968 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.128571 | null | null | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56dd60f209869d7af1b845822dbd7aa5a4dd5e06 | 1,038 | gyp | Python | mine.gyp | indutny/mine.uv | 2187dc6b4f13c5c71d852bfb4234b3168225013b | [
"Unlicense",
"MIT"
] | 6 | 2015-01-07T06:34:57.000Z | 2021-09-02T15:18:14.000Z | mine.gyp | indutny/mine.uv | 2187dc6b4f13c5c71d852bfb4234b3168225013b | [
"Unlicense",
"MIT"
] | null | null | null | mine.gyp | indutny/mine.uv | 2187dc6b4f13c5c71d852bfb4234b3168225013b | [
"Unlicense",
"MIT"
] | null | null | null | {
"targets": [{
"target_name": "mine.uv",
"type": "executable",
"dependencies": [
"mine.uv-lib",
],
"sources": [
"src/main.c",
],
}, {
"target_name": "mine.uv-lib",
"type": "<(library)",
"include_dirs": [ "src" ],
"dependencies": [
"deps/uv/uv.gyp:libuv",
... | 21.183673 | 41 | 0.513487 | 123 | 1,038 | 4.284553 | 0.341463 | 0.129032 | 0.132827 | 0.12334 | 0.068311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264933 | 1,038 | 48 | 42 | 21.625 | 0.690695 | 0 | 0 | 0.227273 | 0 | 0 | 0.589595 | 0.314066 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56e908fc2dbcd320e835739f93b05700c0192f60 | 1,059 | py | Python | module/duplicates.py | aiskov/storekeeper | 4413b523377974b69b57f514177f232a19269497 | [
"Apache-2.0"
] | null | null | null | module/duplicates.py | aiskov/storekeeper | 4413b523377974b69b57f514177f232a19269497 | [
"Apache-2.0"
] | null | null | null | module/duplicates.py | aiskov/storekeeper | 4413b523377974b69b57f514177f232a19269497 | [
"Apache-2.0"
] | null | null | null | import os
from hashlib import sha224
def search_duplicates(target, options=None):
digests = dict()
for root, dirs, files in os.walk(target):
for item in files:
path = '%s/%s' % (root, item)
hash_digest = _create_digest(path)
if hash_digest not in digests:
... | 26.475 | 90 | 0.576959 | 135 | 1,059 | 4.385185 | 0.422222 | 0.118243 | 0.114865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022253 | 0.321058 | 1,059 | 39 | 91 | 27.153846 | 0.801113 | 0 | 0 | 0 | 0 | 0 | 0.05104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
56ee3be0b0c7e78b9f55c418420f0b8ca2d9d317 | 1,430 | py | Python | Game/migrations/0005_auto_20181108_1248.py | rusito-23/InvestSimulator | 59c501813fc42e2a6a44d93ecffefbe070108144 | [
"MIT"
] | null | null | null | Game/migrations/0005_auto_20181108_1248.py | rusito-23/InvestSimulator | 59c501813fc42e2a6a44d93ecffefbe070108144 | [
"MIT"
] | 6 | 2020-06-05T20:06:51.000Z | 2022-03-11T23:42:56.000Z | Game/migrations/0005_auto_20181108_1248.py | rusito-23/InvestSimulator | 59c501813fc42e2a6a44d93ecffefbe070108144 | [
"MIT"
] | 1 | 2019-06-24T19:54:12.000Z | 2019-06-24T19:54:12.000Z | # Generated by Django 2.1.2 on 2018-11-08 12:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Game', '0004_auto_20181106_1255'),
]
operations = [
migrations.CreateModel(
name='Loan',
... | 36.666667 | 114 | 0.576923 | 146 | 1,430 | 5.527397 | 0.424658 | 0.049566 | 0.069393 | 0.109046 | 0.536555 | 0.536555 | 0.536555 | 0.536555 | 0.536555 | 0.536555 | 0 | 0.033915 | 0.278322 | 1,430 | 38 | 115 | 37.631579 | 0.748062 | 0.031469 | 0 | 0.40625 | 1 | 0 | 0.104121 | 0.016631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
56f371e5353c0afeca86a59339a84ebab13cdb12 | 3,119 | py | Python | tests_manual/db_connection_3_FROM_CONFIG.py | BrainAnnex/brain-annex | 07701ba0309c448e9030a19a10dca4d73c155afe | [
"MIT"
] | null | null | null | tests_manual/db_connection_3_FROM_CONFIG.py | BrainAnnex/brain-annex | 07701ba0309c448e9030a19a10dca4d73c155afe | [
"MIT"
] | 3 | 2021-12-19T03:58:42.000Z | 2022-02-11T07:40:46.000Z | tests_manual/db_connection_3_FROM_CONFIG.py | BrainAnnex/brain-annex | 07701ba0309c448e9030a19a10dca4d73c155afe | [
"MIT"
] | null | null | null | # Test of ability to connect to the Neo4j database from the credentials
# in config file(s) variables NEO4J_HOST, NEO4J_USER, NEO4J_PASSWORD
from configparser import ConfigParser
from BrainAnnex.modules.neo_access.neo_access import NeoAccess
print("About to test the database connection, using the credentials STORED i... | 38.506173 | 162 | 0.712408 | 445 | 3,119 | 4.896629 | 0.310112 | 0.032125 | 0.031207 | 0.030289 | 0.099128 | 0.056907 | 0.028453 | 0 | 0 | 0 | 0 | 0.009893 | 0.189804 | 3,119 | 81 | 163 | 38.506173 | 0.852394 | 0.216416 | 0 | 0.065217 | 0 | 0.108696 | 0.474248 | 0.027606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.108696 | 0.043478 | 0 | 0.086957 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56ff2ba473246165aa39a267af57e3ffba8e8382 | 766 | py | Python | tests/docs/test_swportal.py | Saanidhyavats/dffml | 5664a75aa7fcd5921b1a3e2da9203d94ed960286 | [
"MIT"
] | 3 | 2021-03-08T18:41:21.000Z | 2021-06-05T20:15:14.000Z | tests/docs/test_swportal.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 1 | 2021-03-20T07:05:55.000Z | 2021-03-20T07:05:55.000Z | tests/docs/test_swportal.py | NikhilBartwal/dffml | 16180144f388924d9e5840c4aa80d08970af5e60 | [
"MIT"
] | 1 | 2021-04-19T23:58:26.000Z | 2021-04-19T23:58:26.000Z | import pathlib
import unittest
import platform
from dffml import AsyncTestCase
from dffml.util.testing.consoletest.cli import main as consoletest
@unittest.skipIf(
platform.system() in ["Windows", "Darwin"],
f"Does not work on {platform.system()}",
)
class TestSWPortal(AsyncTestCase):
async def test_read... | 25.533333 | 66 | 0.505222 | 65 | 766 | 5.769231 | 0.646154 | 0.048 | 0.074667 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002179 | 0.400783 | 766 | 29 | 67 | 26.413793 | 0.814815 | 0 | 0 | 0.153846 | 0 | 0 | 0.151436 | 0.044386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.192308 | 0 | 0.230769 | 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 |
7100d1bf6005dd52b07fe32271eb797c1309b6c4 | 1,038 | py | Python | alipay/create_direct_pay_by_user/dpn/models.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | alipay/create_direct_pay_by_user/dpn/models.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | alipay/create_direct_pay_by_user/dpn/models.py | freeyoung/django-alipay3 | 34b8ea95229ab03eddc299be7da6219bb56ef25f | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.db import models
from alipay import conf
from alipay.models import AliPayBaseModel
from alipay.create_direct_pay_by_user.dpn.signals import alipay_dpn_flagged, alipay_dpn_successful
class AliPayDPN(AliPayBaseModel):
"""
AliPay DPN
"""
gmt_close = models.DateTimeFiel... | 32.4375 | 98 | 0.693642 | 136 | 1,038 | 5.051471 | 0.426471 | 0.091703 | 0.094614 | 0.123726 | 0.299854 | 0.299854 | 0.299854 | 0.299854 | 0.299854 | 0.235808 | 0 | 0.015892 | 0.211946 | 1,038 | 31 | 99 | 33.483871 | 0.823961 | 0.030829 | 0 | 0 | 0 | 0 | 0.037412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.619048 | 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 |
71014c38dd434377dbc86a1671b95f35defbc373 | 2,555 | py | Python | app/api/v2/views/user_views.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | app/api/v2/views/user_views.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | 1 | 2019-01-19T13:10:02.000Z | 2019-01-19T13:10:02.000Z | app/api/v2/views/user_views.py | MbuguaCaleb/Questioner-V2-API | 9e3a5593250a12b74ad5dcbe220827040fa3d676 | [
"MIT"
] | null | null | null | from flask import jsonify, request
from ...v2 import version_2 as v2
from ..schemas.user_schema import UserSchema
from ..models.user_model import User
db = User()
@v2.route('/', methods=['GET'])
@v2.route('/welcome', methods=['GET'])
def index():
return jsonify({'status': 200, 'message': 'Welcome !! A meetup Appl... | 30.058824 | 127 | 0.626223 | 312 | 2,555 | 5.086538 | 0.294872 | 0.090107 | 0.131695 | 0.069313 | 0.332703 | 0.195337 | 0.132325 | 0.132325 | 0.132325 | 0.132325 | 0 | 0.03715 | 0.23092 | 2,555 | 84 | 128 | 30.416667 | 0.770483 | 0.119765 | 0 | 0.163265 | 0 | 0 | 0.274396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.061224 | 0.081633 | 0.020408 | 0.367347 | 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 |
7108effd9b9b381b5c4d66c7863ecea3a015fab6 | 305 | py | Python | settings/__init__.py | xuehuiping/DCA | 4d71593c78e59f035305e1983d92146c5156789d | [
"MIT"
] | 5 | 2019-10-07T09:25:25.000Z | 2019-11-05T08:40:44.000Z | settings/__init__.py | xuehuiping/DCA | 4d71593c78e59f035305e1983d92146c5156789d | [
"MIT"
] | 5 | 2019-10-31T02:51:55.000Z | 2019-12-31T07:09:49.000Z | settings/__init__.py | QtNN/DCA | b48be18dab45006abc80b94445622893d0c142ba | [
"MIT"
] | 2 | 2020-03-23T18:11:27.000Z | 2020-12-14T10:48:00.000Z | """Helpers to build the blocks of the training
pipeline for users defined parameters.
"""
from .setup_xp import load_params, set_device, get_embedders
from .model import build_multi_agt_summarizer
__all__ = [
"build_multi_agt_summarizer",
"load_params",
"set_device",
"get_embedders"
]
| 20.333333 | 60 | 0.75082 | 41 | 305 | 5.170732 | 0.658537 | 0.09434 | 0.122642 | 0.179245 | 0.292453 | 0.292453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167213 | 305 | 14 | 61 | 21.785714 | 0.834646 | 0.268852 | 0 | 0 | 0 | 0 | 0.277778 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7108f5884575eb480313b1e686e0da4928d0f2be | 350 | py | Python | relogic/logickit/serving/__init__.py | Impavidity/relogic | f647106e143cd603b95b63e06ea530cdd516aefe | [
"MIT"
] | 24 | 2019-07-20T02:10:21.000Z | 2022-03-15T07:13:07.000Z | relogic/logickit/serving/__init__.py | One-paper-luck/relogic | f647106e143cd603b95b63e06ea530cdd516aefe | [
"MIT"
] | 3 | 2019-11-28T04:19:25.000Z | 2019-11-30T23:29:19.000Z | relogic/logickit/serving/__init__.py | One-paper-luck/relogic | f647106e143cd603b95b63e06ea530cdd516aefe | [
"MIT"
] | 5 | 2019-11-27T03:12:07.000Z | 2021-12-08T11:45:43.000Z | from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/')
def index():
return jsonify("Hello World")
class Server(object):
def __init__(self, trainer=None):
self.trainer = trainer
def start(self):
app.run(host="0.0.0.0", port=5000, debug=True)
if __name__ == "__main__":
serv... | 17.5 | 50 | 0.668571 | 49 | 350 | 4.44898 | 0.612245 | 0.027523 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0.171429 | 350 | 20 | 51 | 17.5 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.461538 | 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 |
7114c66935c88efa75790e08dde08f63c3013e83 | 28,361 | py | Python | data_processor.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | 2 | 2021-03-01T06:37:27.000Z | 2021-04-07T09:40:55.000Z | data_processor.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | 5 | 2020-09-26T01:16:58.000Z | 2022-02-10T01:49:30.000Z | data_processor.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding:utf8
# Copyright (c) 2018, Tencent. All rights reserved
# This file contain DataProcessor class which can
# 1. Generate dict from train text data:
# Text format: label\t[(token )+]\t[(char )+]\t[(custom_feature )+].
# Label could be flattened or hierarchical which is separat... | 44.946117 | 95 | 0.58242 | 3,452 | 28,361 | 4.455968 | 0.092121 | 0.019893 | 0.02646 | 0.017293 | 0.453387 | 0.355675 | 0.279808 | 0.233845 | 0.179691 | 0.146925 | 0 | 0.006776 | 0.328691 | 28,361 | 630 | 96 | 45.01746 | 0.801145 | 0.141145 | 0 | 0.11804 | 1 | 0 | 0.060404 | 0.015006 | 0 | 0 | 0 | 0.001587 | 0 | 1 | 0.040089 | false | 0 | 0.017817 | 0 | 0.111359 | 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 |
71156411fe36becbc71f0c141f19cc2f60370ca9 | 538 | py | Python | openerp/addons/web_diagram/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 3 | 2016-01-29T14:39:49.000Z | 2018-12-29T22:42:00.000Z | openerp/addons/web_diagram/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 2 | 2016-03-23T14:29:41.000Z | 2017-02-20T17:11:30.000Z | openerp/addons/web_diagram/__openerp__.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | null | null | null | {
'name': 'OpenERP Web Diagram',
'category': 'Hidden',
'description': """
Openerp Web Diagram view.
=========================
""",
'version': '2.0',
'depends': ['web'],
'js': [
'static/lib/js/raphael.js',
'static/lib/js/jquery.mousewheel.js',
'static/src/js/vec2.js',
... | 20.692308 | 45 | 0.477695 | 58 | 538 | 4.396552 | 0.482759 | 0.156863 | 0.129412 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007595 | 0.265799 | 538 | 25 | 46 | 21.52 | 0.637975 | 0 | 0 | 0.125 | 0 | 0 | 0.592937 | 0.336431 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71194ec745a663de0dbcd5a9d549628cdd546302 | 2,578 | py | Python | Xiuzhen_MongoDB.py | cby3149/Novel_sender | f59e4b70e80193b2d47a24b2bdc969365f2bf251 | [
"MIT"
] | null | null | null | Xiuzhen_MongoDB.py | cby3149/Novel_sender | f59e4b70e80193b2d47a24b2bdc969365f2bf251 | [
"MIT"
] | null | null | null | Xiuzhen_MongoDB.py | cby3149/Novel_sender | f59e4b70e80193b2d47a24b2bdc969365f2bf251 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import smtplib
from email.mime.text import MIMEText
import time
import pymongo
#-------------------------------------------------
client = pymongo.MongoClient()
db = client.noval
collection = db.xiuzhen
#----------------------------------------------... | 36.309859 | 83 | 0.481769 | 272 | 2,578 | 4.485294 | 0.485294 | 0.009836 | 0.034426 | 0.02623 | 0.034426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031401 | 0.357642 | 2,578 | 70 | 84 | 36.828571 | 0.705314 | 0.04616 | 0 | 0.068966 | 0 | 0.017241 | 0.178484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051724 | 0.103448 | 0 | 0.103448 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
711a5cd8239c681a5dc0a53833847add9bd9b2ce | 8,578 | py | Python | storops/vnx/xmlapi_parser.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 60 | 2016-04-18T23:42:10.000Z | 2022-03-23T02:26:03.000Z | storops/vnx/xmlapi_parser.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 317 | 2016-05-25T06:45:37.000Z | 2022-03-25T13:22:38.000Z | storops/vnx/xmlapi_parser.py | tunaruraul/storops | 7092c516c55b4c2f00c7c22383e1ad46ecfec091 | [
"Apache-2.0"
] | 34 | 2016-03-18T02:39:12.000Z | 2022-01-07T12:54:14.000Z | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 31.07971 | 79 | 0.600023 | 1,050 | 8,578 | 4.671429 | 0.214286 | 0.086239 | 0.068909 | 0.069317 | 0.394495 | 0.326606 | 0.291132 | 0.291132 | 0.2842 | 0.234455 | 0 | 0.003591 | 0.285731 | 8,578 | 275 | 80 | 31.192727 | 0.796964 | 0.09571 | 0 | 0.289474 | 0 | 0 | 0.059097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252632 | false | 0 | 0.026316 | 0.005263 | 0.315789 | 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 |
711bc5a70ab83ad507c97768d9fc033d0adfbe89 | 1,033 | py | Python | hello.py | pangtouyu/flasky4a | 39926626e15820b5939d5e13fb08efd3c95daaf4 | [
"MIT"
] | null | null | null | hello.py | pangtouyu/flasky4a | 39926626e15820b5939d5e13fb08efd3c95daaf4 | [
"MIT"
] | null | null | null | hello.py | pangtouyu/flasky4a | 39926626e15820b5939d5e13fb08efd3c95daaf4 | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from flask.ext.script import Manager
from flask.ext.bootstrap import Bootstrap
from flask.ext.moment import Moment
from flask.ext.wtf import Form
from wtforms import StringField, SubmitField
from wtforms.validators import Required
app = Flask(__name__)
app.config['SECRET_KEY'] ... | 23.477273 | 69 | 0.71636 | 139 | 1,033 | 5.158273 | 0.410072 | 0.062762 | 0.066946 | 0.058577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020713 | 0.158761 | 1,033 | 43 | 70 | 24.023256 | 0.804373 | 0 | 0 | 0 | 0 | 0 | 0.092933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.225806 | 0.064516 | 0.516129 | 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 |
711cb4c4101a4cf75337a29ed311280d0f1883ce | 14,198 | py | Python | crawler.py | langzeyu/book-crawler | e2d96648384658c7775bd02d94eab086c9ece677 | [
"MIT"
] | 5 | 2019-04-02T05:00:03.000Z | 2021-04-21T11:03:50.000Z | crawler.py | langzeyu/book-crawler | e2d96648384658c7775bd02d94eab086c9ece677 | [
"MIT"
] | null | null | null | crawler.py | langzeyu/book-crawler | e2d96648384658c7775bd02d94eab086c9ece677 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import hashlib
import urllib2
import urlparse
import zipfile
import logging
import re
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), 'lib'))
from tornado import template
from BeautifulSoup import BeautifulSoup
from scrapy.selector import Html... | 33.095571 | 161 | 0.548951 | 1,655 | 14,198 | 4.565559 | 0.156495 | 0.041292 | 0.047644 | 0.050026 | 0.315246 | 0.252118 | 0.212017 | 0.189386 | 0.103229 | 0.086686 | 0 | 0.009067 | 0.324201 | 14,198 | 429 | 162 | 33.095571 | 0.778426 | 0.019017 | 0 | 0.207746 | 0 | 0.003521 | 0.103348 | 0.006665 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010563 | 0.049296 | 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 |
711cc2a2023d2b89e80fa1cd960c54c2be2e7173 | 340 | py | Python | library/test/test_compiler/sbs_code_tests/95_annotation_global.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 278 | 2021-08-31T00:46:51.000Z | 2022-02-13T19:43:28.000Z | library/test/test_compiler/sbs_code_tests/95_annotation_global.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 9 | 2021-11-05T22:28:43.000Z | 2021-11-23T08:39:04.000Z | library/test/test_compiler/sbs_code_tests/95_annotation_global.py | tekknolagi/skybison | bea8fc2af0a70e7203b4c19f36c14a745512a335 | [
"CNRI-Python-GPL-Compatible"
] | 12 | 2021-08-31T07:49:54.000Z | 2021-10-08T01:09:01.000Z | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
def f():
(some_global): int
print(some_global)
# EXPECTED:
[
...,
LOAD_CONST(Code((1, 0))),
LOAD_CONST('f'),
MAKE_FUNCTION(0),
STORE_NAME('f'),
LOAD_CONST(None),
RETURN_VALUE(0),
CODE_START('f'),
~L... | 18.888889 | 76 | 0.588235 | 46 | 340 | 4.130435 | 0.652174 | 0.189474 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014981 | 0.214706 | 340 | 17 | 77 | 20 | 0.696629 | 0.247059 | 0 | 0 | 0 | 0 | 0.023715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0 | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7124602becc2e6ec9b01d8eb8d0b8a172881c1d3 | 835 | py | Python | src/chapter2/exercise8.py | group9BCS1/BCS-2021 | 4210c2c9942f59ea250be71434d8d96c55950020 | [
"MIT"
] | 1 | 2021-05-20T17:15:10.000Z | 2021-05-20T17:15:10.000Z | src/chapter2/exercise8.py | group9BCS1/BCS-2021 | 4210c2c9942f59ea250be71434d8d96c55950020 | [
"MIT"
] | null | null | null | src/chapter2/exercise8.py | group9BCS1/BCS-2021 | 4210c2c9942f59ea250be71434d8d96c55950020 | [
"MIT"
] | 2 | 2021-05-15T04:38:10.000Z | 2021-05-20T17:06:21.000Z | #This program computes compound interest
#Prompt the user to input the inital investment
C = int(input('Enter the initial amount of an investment(C): '))
#Prompt the user to input the yearly rate of interest
r = float(input('Enter the yearly rate of interest(r): '))
#Prompt the user to input the number of years unti... | 43.947368 | 89 | 0.735329 | 144 | 835 | 4.263889 | 0.340278 | 0.058632 | 0.084691 | 0.09772 | 0.513029 | 0.513029 | 0.322476 | 0.236156 | 0.153094 | 0.153094 | 0 | 0.002899 | 0.173653 | 835 | 19 | 90 | 43.947368 | 0.886957 | 0.504192 | 0 | 0 | 0 | 0 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
713167a830164ccca62c062da7d4668a476d9d1e | 1,004 | py | Python | misc/kwcheck.py | zzahti/skytools | 71c0852dfa3fc9021b1821e50b2ba58dde7c27fe | [
"0BSD"
] | 116 | 2015-01-06T17:56:12.000Z | 2021-08-16T06:33:01.000Z | misc/kwcheck.py | zzahti/skytools | 71c0852dfa3fc9021b1821e50b2ba58dde7c27fe | [
"0BSD"
] | 17 | 2015-02-17T17:50:53.000Z | 2020-01-15T08:05:46.000Z | misc/kwcheck.py | zzahti/skytools | 71c0852dfa3fc9021b1821e50b2ba58dde7c27fe | [
"0BSD"
] | 51 | 2015-02-18T16:12:13.000Z | 2021-03-07T19:22:58.000Z | #! /usr/bin/env python
import sys
import re
import pkgloader
pkgloader.require('skytools', '3.0')
import skytools.quoting
kwmap = skytools.quoting._ident_kwmap
fn = "/opt/src/pgsql/postgresql/src/include/parser/kwlist.h"
if len(sys.argv) == 2:
fn = sys.argv[1]
rc = re.compile(r'PG_KEYWORD[(]"(.*)" , \s* \w+ , ... | 19.686275 | 71 | 0.570717 | 160 | 1,004 | 3.49375 | 0.40625 | 0.044723 | 0.042934 | 0.028623 | 0.116279 | 0.060823 | 0 | 0 | 0 | 0 | 0 | 0.013316 | 0.251992 | 1,004 | 50 | 72 | 20.08 | 0.731025 | 0.020916 | 0 | 0.2 | 0 | 0 | 0.227319 | 0.054027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
7134b11fbf615621dd4092408e906a7218019a12 | 5,223 | py | Python | tests/main.py | tdegeus/enstat | c26f079dbbfd9fbe76cb8dc5a3da4290f1996645 | [
"MIT"
] | null | null | null | tests/main.py | tdegeus/enstat | c26f079dbbfd9fbe76cb8dc5a3da4290f1996645 | [
"MIT"
] | 5 | 2021-02-02T10:38:59.000Z | 2021-04-05T15:22:22.000Z | tests/main.py | tdegeus/EnsembleAverage | 2e1eeb58ec6a031b0539d5c65f5db71a4bd904d0 | [
"MIT"
] | 1 | 2021-03-05T10:28:40.000Z | 2021-03-05T10:28:40.000Z | import unittest
from collections import defaultdict
import numpy as np
import enstat.mean
class Test_mean(unittest.TestCase):
"""
tests
"""
def test_scalar(self):
"""
Basic test of "mean" and "std" using a random sample.
"""
average = enstat.scalar()
averag... | 28.232432 | 92 | 0.559066 | 708 | 5,223 | 4.062147 | 0.120057 | 0.111961 | 0.105702 | 0.083449 | 0.754172 | 0.732962 | 0.649166 | 0.584492 | 0.535814 | 0.507302 | 0 | 0.040509 | 0.262684 | 5,223 | 184 | 93 | 28.38587 | 0.70631 | 0.04461 | 0 | 0.436893 | 0 | 0 | 0.003716 | 0 | 0 | 0 | 0 | 0 | 0.300971 | 1 | 0.087379 | false | 0 | 0.038835 | 0 | 0.145631 | 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 |
71351ec8e090e943f24c2a7631465b81d875953c | 1,570 | py | Python | build/lib/longform/models.py | mattlinares/longform | 3539948a10a0c1e52debaf796b6f9f6e050f94d3 | [
"MIT"
] | null | null | null | build/lib/longform/models.py | mattlinares/longform | 3539948a10a0c1e52debaf796b6f9f6e050f94d3 | [
"MIT"
] | null | null | null | build/lib/longform/models.py | mattlinares/longform | 3539948a10a0c1e52debaf796b6f9f6e050f94d3 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from modelcluster.fields import ParentalKey
from wagtail.core.models import Page, Orderable
from wagtail.core.fields import StreamField
from wagtail.wagtailadmin.edit_handlers import (
FieldPanel, StreamFieldPanel, InlinePanel, PageChooserPanel
)
from ... | 27.54386 | 65 | 0.695541 | 166 | 1,570 | 6.427711 | 0.475904 | 0.051546 | 0.028116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002449 | 0.219745 | 1,570 | 56 | 66 | 28.035714 | 0.868571 | 0 | 0 | 0 | 0 | 0 | 0.064331 | 0.017197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.209302 | 0 | 0.511628 | 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 |
713f8728f170e98a510f966331e3baefa1955731 | 1,930 | py | Python | plugin.program.super.favourites/viewer.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:37:15.000Z | 2019-03-05T09:37:15.000Z | plugin.program.super.favourites/viewer.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.program.super.favourites/viewer.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | #
# Copyright (C) 2014-2015
# Sean Poyser (seanpoyser@gmail.com)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# ... | 25.064935 | 72 | 0.640933 | 251 | 1,930 | 4.900398 | 0.565737 | 0.029268 | 0.031707 | 0.046341 | 0.066667 | 0.045528 | 0 | 0 | 0 | 0 | 0 | 0.040283 | 0.266839 | 1,930 | 77 | 73 | 25.064935 | 0.828975 | 0.395855 | 0 | 0.2 | 0 | 0 | 0.021911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0.114286 | 0.057143 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
852f1cbba9e7736017df5f793b0b98d952024c1d | 677 | py | Python | src/namegen.py | Advik-B/Data-Generator | d7e21b3140b51ad5a8fc980777b10905bb6a9f2a | [
"MIT"
] | 1 | 2022-01-08T15:35:11.000Z | 2022-01-08T15:35:11.000Z | src/namegen.py | Advik-B/Data-Generator | d7e21b3140b51ad5a8fc980777b10905bb6a9f2a | [
"MIT"
] | null | null | null | src/namegen.py | Advik-B/Data-Generator | d7e21b3140b51ad5a8fc980777b10905bb6a9f2a | [
"MIT"
] | null | null | null | import random
class Human_:
"""Base class for humans"""
def setrandomgender(self, allow_other=False, **kwargs):
if type(kwargs.get('custom_gender')) != dict:
self.base_genders = [{'Male': ['He', 'Him']}, {'Female': ['She', 'Her']}]
elif type(kwargs.get('custom_gender')) == dict:
... | 35.631579 | 85 | 0.55096 | 82 | 677 | 4.378049 | 0.52439 | 0.111421 | 0.125348 | 0.175487 | 0.16156 | 0.16156 | 0 | 0 | 0 | 0 | 0 | 0.012448 | 0.288035 | 677 | 19 | 86 | 35.631579 | 0.732365 | 0.031019 | 0 | 0 | 0 | 0 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
8532bab920d1825b8422ff7fb44acb95b58ad085 | 622 | gyp | Python | binding.gyp | dimshik100/Epoc.js | 240950392974d398776f76f08a91cfd71b095487 | [
"MIT"
] | 799 | 2016-07-31T19:54:59.000Z | 2022-03-21T05:55:15.000Z | binding.gyp | dimshik100/Epoc.js | 240950392974d398776f76f08a91cfd71b095487 | [
"MIT"
] | 8 | 2016-11-03T09:09:28.000Z | 2019-09-01T17:07:27.000Z | binding.gyp | dimshik100/Epoc.js | 240950392974d398776f76f08a91cfd71b095487 | [
"MIT"
] | 54 | 2017-05-23T19:36:33.000Z | 2021-12-29T15:11:12.000Z | {
"targets": [
{
"target_name": "index",
"sources": [ "epoc.cc"],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"conditions": [
['OS=="mac"', {
"cflags": [ "-m64" ],
"ldflags": [ "-m64" ],
"xcode_settings": {
"OTHER_C... | 22.214286 | 59 | 0.350482 | 41 | 622 | 5.146341 | 0.829268 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.427653 | 622 | 27 | 60 | 23.037037 | 0.570225 | 0 | 0 | 0.074074 | 0 | 0 | 0.38746 | 0.059486 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8532c99e8a8433241294b42f1d47108571d2bbf0 | 983 | py | Python | tokens.py | manuel-io/minicloud | bdf6a08709f5c9d0d92caddc1c719c438b6970ce | [
"MIT"
] | 1 | 2021-01-15T02:10:32.000Z | 2021-01-15T02:10:32.000Z | tokens.py | manuel-io/minicloud | bdf6a08709f5c9d0d92caddc1c719c438b6970ce | [
"MIT"
] | 3 | 2020-06-13T00:02:13.000Z | 2021-09-12T13:20:16.000Z | tokens.py | manuel-io/minicloud | bdf6a08709f5c9d0d92caddc1c719c438b6970ce | [
"MIT"
] | null | null | null | import sys, psycopg2, psycopg2.extras
def generate(user_id, db):
try:
with db.cursor(cursor_factory = psycopg2.extras.DictCursor) as cursor:
cursor.execute("""
INSERT INTO minicloud_auths (user_id) VALUES (%s) RETURNING token
""", [int(user_id)])
data = curs... | 27.305556 | 78 | 0.571719 | 119 | 983 | 4.638655 | 0.420168 | 0.065217 | 0.043478 | 0.039855 | 0.427536 | 0.427536 | 0.427536 | 0.427536 | 0.293478 | 0.293478 | 0 | 0.0059 | 0.310275 | 983 | 35 | 79 | 28.085714 | 0.80826 | 0 | 0 | 0.444444 | 1 | 0 | 0.249237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.259259 | 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 |
85340618b43f73553925b20a11d7ffb839d7dd94 | 903 | py | Python | gorden_crawler/spiders/item_lacoste.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 2 | 2019-02-22T13:51:08.000Z | 2020-08-03T14:01:30.000Z | gorden_crawler/spiders/item_lacoste.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | null | null | null | gorden_crawler/spiders/item_lacoste.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 1 | 2020-08-03T14:01:32.000Z | 2020-08-03T14:01:32.000Z | # -*- coding: utf-8 -*-
from scrapy.spiders import Spider
from scrapy.selector import Selector
from gorden_crawler.items import BaseItem, ImageItem, SkuItem, Color
from scrapy import Request
from scrapy_redis.spiders import RedisSpider
import re
import execjs
import json
from gorden_crawler.spiders.shiji_base import... | 25.8 | 74 | 0.705426 | 103 | 903 | 6.058252 | 0.524272 | 0.064103 | 0.081731 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001377 | 0.196013 | 903 | 34 | 75 | 26.558824 | 0.858127 | 0.083056 | 0 | 0 | 0 | 0 | 0.088779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.47619 | 0 | 0.809524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8536fa3da81b7b0e167c676d3c1b9ae1a7592c0b | 662 | py | Python | Server/app/schema/mutations/user/register.py | Team-SeeTo/SeeTo-Backend | 19990cd6f4895e773eaa504f7b7a07ddbb5856e5 | [
"Apache-2.0"
] | 4 | 2018-06-18T06:50:12.000Z | 2018-11-15T00:08:24.000Z | Server/app/schema/mutations/user/register.py | Team-SeeTo/SeeTo-Backend | 19990cd6f4895e773eaa504f7b7a07ddbb5856e5 | [
"Apache-2.0"
] | null | null | null | Server/app/schema/mutations/user/register.py | Team-SeeTo/SeeTo-Backend | 19990cd6f4895e773eaa504f7b7a07ddbb5856e5 | [
"Apache-2.0"
] | null | null | null |
import graphene
from app.models import User
class RegisterMutation(graphene.Mutation):
class Arguments(object):
email = graphene.String()
username = graphene.String()
password = graphene.String()
is_success = graphene.Boolean()
message = graphene.String()
@staticmethod
... | 24.518519 | 85 | 0.643505 | 67 | 662 | 6.283582 | 0.61194 | 0.133017 | 0.114014 | 0.147268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259819 | 662 | 27 | 86 | 24.518519 | 0.859184 | 0 | 0 | 0 | 0 | 0 | 0.064955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.5 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
853a017f65875a9f0f760904e9bc237db20aee8e | 1,498 | py | Python | usaspending_api/references/migrations/0055_auto_20170319_1841.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | 1 | 2021-06-17T05:09:00.000Z | 2021-06-17T05:09:00.000Z | usaspending_api/references/migrations/0055_auto_20170319_1841.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | usaspending_api/references/migrations/0055_auto_20170319_1841.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-03-19 18:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('references', '0054_auto_20170308_2100'),
]
operations = [
migrations.Create... | 39.421053 | 114 | 0.600134 | 157 | 1,498 | 5.464968 | 0.458599 | 0.076923 | 0.060606 | 0.048951 | 0.291375 | 0.198135 | 0.198135 | 0.107226 | 0.107226 | 0 | 0 | 0.039198 | 0.26769 | 1,498 | 37 | 115 | 40.486486 | 0.742935 | 0.045394 | 0 | 0.066667 | 1 | 0 | 0.176594 | 0.049054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
853c2817f044574374a2b109c19369e6b2a57e22 | 557 | py | Python | bioinformatics_stronghold/subs.py | Wytamma/Rosalind | d3ffecc324f806df79c43bc9f89128b5d2a57dfb | [
"MIT"
] | null | null | null | bioinformatics_stronghold/subs.py | Wytamma/Rosalind | d3ffecc324f806df79c43bc9f89128b5d2a57dfb | [
"MIT"
] | null | null | null | bioinformatics_stronghold/subs.py | Wytamma/Rosalind | d3ffecc324f806df79c43bc9f89128b5d2a57dfb | [
"MIT"
] | null | null | null | SAMPLE_DATASET = """GATATATGCATATACTT
ATAT
"""
SAMPLE_OUTPUT = """2 4 10"""
def kmer_generator(string, n):
"""returns a generator for kmers of length n"""
return (string[i : i + n] for i in range(0, len(string)))
def solution(dataset: list) -> str:
s, t = map(lambda x: x.strip(), dataset) # clean
l... | 25.318182 | 82 | 0.633752 | 81 | 557 | 4.271605 | 0.567901 | 0.075145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01373 | 0.21544 | 557 | 21 | 83 | 26.52381 | 0.778032 | 0.113106 | 0 | 0 | 0 | 0 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.357143 | 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 |
8547dd8fc01f4fe84f90c45c7ee6972d940d2598 | 656 | py | Python | py/testdir_single_jvm/test_failswith512chunk.py | gigliovale/h2o | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 882 | 2015-05-22T02:59:21.000Z | 2022-02-17T05:02:48.000Z | py/testdir_single_jvm/test_failswith512chunk.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 1 | 2015-01-14T23:54:56.000Z | 2015-01-15T20:04:17.000Z | py/testdir_single_jvm/test_failswith512chunk.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 392 | 2015-05-22T17:04:11.000Z | 2022-02-22T09:04:39.000Z | import unittest, time, sys
# not needed, but in case you move it down to subdir
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_import as h2i
import h2o_browse as h2b
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cl... | 26.24 | 103 | 0.666159 | 87 | 656 | 4.781609 | 0.712644 | 0.043269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062857 | 0.199695 | 656 | 24 | 104 | 27.333333 | 0.729524 | 0.07622 | 0 | 0.111111 | 0 | 0 | 0.086093 | 0.036424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
855f7cb89772ea3d4d64fcd054158faff330adb1 | 438 | py | Python | dash_oyku/models.py | efebuyuk/jd_intern_project | a8db7ddc8f434d6148b743f6c8c6b071f29e1a41 | [
"MIT"
] | 1 | 2021-06-28T07:20:03.000Z | 2021-06-28T07:20:03.000Z | dash_oyku/models.py | efebuyuk/jd_intern_project | a8db7ddc8f434d6148b743f6c8c6b071f29e1a41 | [
"MIT"
] | null | null | null | dash_oyku/models.py | efebuyuk/jd_intern_project | a8db7ddc8f434d6148b743f6c8c6b071f29e1a41 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import IntegerField, Model, JSONField
class notebook(models.Model):
name = models.CharField(max_length=500)
cell_count = models.IntegerField(default=0)
code_cell_count = models.IntegerField(default=0)
language = models.CharFiel... | 31.285714 | 59 | 0.6621 | 48 | 438 | 5.9375 | 0.520833 | 0.070175 | 0.084211 | 0.168421 | 0.245614 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0.018293 | 0.251142 | 438 | 13 | 60 | 33.692308 | 0.85061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85731618bb69d50a2638e91ab9c3f9baea8598f6 | 950 | py | Python | demo/classification/fast_neural_network/mnist.py | DanielMorales9/LinearRegression | 7c905e5317a2eb4cc3b2cab275bbcec8e9db57f9 | [
"MIT"
] | null | null | null | demo/classification/fast_neural_network/mnist.py | DanielMorales9/LinearRegression | 7c905e5317a2eb4cc3b2cab275bbcec8e9db57f9 | [
"MIT"
] | null | null | null | demo/classification/fast_neural_network/mnist.py | DanielMorales9/LinearRegression | 7c905e5317a2eb4cc3b2cab275bbcec8e9db57f9 | [
"MIT"
] | null | null | null | from classification import FastNeuralNetwork
import os
import scipy.io as scio
from random import random
from numpy import mean, zeros, reshape, ceil
from numpy.random import shuffle, rand
from chart import NNChart
nnc = NNChart()
path = os.path.dirname(os.path.abspath(__file__))
data = scio.loadmat(path+"/data/data1... | 22.619048 | 79 | 0.652632 | 159 | 950 | 3.861635 | 0.396226 | 0.019544 | 0.034202 | 0.026059 | 0.035831 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029448 | 0.142105 | 950 | 41 | 80 | 23.170732 | 0.723926 | 0 | 0 | 0 | 0 | 0 | 0.032632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.212121 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85783967cfc0d695bb89fab6270b7c499143c02d | 643 | py | Python | python base/mail.py | umaremdy/reishy | 060b26812cac88c0333c914fab409c3ca6647278 | [
"CC-BY-3.0"
] | null | null | null | python base/mail.py | umaremdy/reishy | 060b26812cac88c0333c914fab409c3ca6647278 | [
"CC-BY-3.0"
] | null | null | null | python base/mail.py | umaremdy/reishy | 060b26812cac88c0333c914fab409c3ca6647278 | [
"CC-BY-3.0"
] | null | null | null | from flask_mail import Mail, Message
from flask import Flask
app =Flask(__name__)
app.config['MAIL_SERVER']='smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USERNAME'] = 'antoprince001@gmail.com'
app.config['MAIL_PASSWORD'] = 'gboyilovemylife100%'
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_US... | 25.72 | 131 | 0.713841 | 87 | 643 | 5.034483 | 0.494253 | 0.123288 | 0.178082 | 0.077626 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028319 | 0.121306 | 643 | 25 | 132 | 25.72 | 0.746903 | 0 | 0 | 0 | 0 | 0 | 0.369565 | 0.145963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
858477fb81ec87aea406b9c3e37a4cb272d6dd6a | 441 | py | Python | scripts/hw-diags.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | null | null | null | scripts/hw-diags.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | 178 | 2017-11-17T19:14:31.000Z | 2021-12-15T07:43:29.000Z | scripts/hw-diags.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | 1 | 2017-11-17T19:32:36.000Z | 2017-11-17T19:32:36.000Z | #!/usr/bin/env python3
"""WizardKit: Hardware Diagnostics"""
# pylint: disable=invalid-name
# vim: sts=2 sw=2 ts=2
from docopt import docopt
import wk
if __name__ == '__main__':
try:
docopt(wk.hw.diags.DOCSTRING)
except SystemExit:
print('')
wk.std.pause('Press Enter to exit...')
raise
try:
... | 17.64 | 42 | 0.666667 | 61 | 441 | 4.672131 | 0.639344 | 0.091228 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.192744 | 441 | 24 | 43 | 18.375 | 0.789326 | 0.294785 | 0 | 0.4 | 0 | 0 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8584ae1c5aab7faa348a572830afee0432e91071 | 1,055 | py | Python | slot/w/wand.py | mattkw/dl | 45bfc28ad9ff827045a3734730deb893a2436c09 | [
"Apache-2.0"
] | null | null | null | slot/w/wand.py | mattkw/dl | 45bfc28ad9ff827045a3734730deb893a2436c09 | [
"Apache-2.0"
] | null | null | null | slot/w/wand.py | mattkw/dl | 45bfc28ad9ff827045a3734730deb893a2436c09 | [
"Apache-2.0"
] | null | null | null | import slot
from slot import *
class wand5b2p2(WeaponBase):
ele = ['all']
wt = 'wand'
att = 470
s3 = {
"dmg" : 4*2.44 ,
"sp" : 8757 ,
"startup" : 0.1 ,
"recovery" : 1.9 ,
}
class wand4b1(WeaponBase):
ele = ['flame','wind','shadow'... | 18.189655 | 35 | 0.412322 | 107 | 1,055 | 4.065421 | 0.373832 | 0.149425 | 0.103448 | 0.117241 | 0.436782 | 0.436782 | 0.436782 | 0.370115 | 0 | 0 | 0 | 0.129195 | 0.435071 | 1,055 | 57 | 36 | 18.508772 | 0.600671 | 0 | 0 | 0.428571 | 0 | 0 | 0.13093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.55102 | 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 |
8588525112b3883bbd9b701dec095f2efcbfd29f | 519 | py | Python | tests/server_generator/test_bottle_server_generator.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | null | null | null | tests/server_generator/test_bottle_server_generator.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | 5 | 2017-08-24T13:39:01.000Z | 2017-08-25T07:16:58.000Z | tests/server_generator/test_bottle_server_generator.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | null | null | null | import requests
from server_generator.server_generator import MagicRouter
from tests.utils import start_test_bottle_app
class HelloNameURLHandler(MagicRouter):
route_name = 'hello_name'
def handler(self):
return 'hello {}'.format(self.name)
def test_setup():
route = HelloNameURLHandler()
s... | 23.590909 | 57 | 0.712909 | 67 | 519 | 5.328358 | 0.537313 | 0.084034 | 0.084034 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016471 | 0.181118 | 519 | 21 | 58 | 24.714286 | 0.823529 | 0.063584 | 0 | 0 | 0 | 0 | 0.128364 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 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 |
85909d74fe38a6ffcecf31ffda0296f5cfcf1a2e | 208 | py | Python | uniqueOccurrences.py | hazardinho/LeetcodeSolutions | 3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6 | [
"MIT"
] | 1 | 2020-05-21T09:29:48.000Z | 2020-05-21T09:29:48.000Z | uniqueOccurrences.py | Ich1goSan/LeetcodeSolutions | 3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6 | [
"MIT"
] | null | null | null | uniqueOccurrences.py | Ich1goSan/LeetcodeSolutions | 3f7fee882c1cdc83ecf7c9fd05d2a7f1afb130e6 | [
"MIT"
] | null | null | null | def uniqueOccurrences(self, arr: List[int]) -> bool:
m = {}
for i in arr:
if i in m:
m[i] += 1
else:
m[i] = 1
return len(m.values()) == len(set(m.values())) | 26 | 52 | 0.447115 | 31 | 208 | 3 | 0.580645 | 0.064516 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.379808 | 208 | 8 | 53 | 26 | 0.705426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
859208b5a93d0e79afb42da91a5ef97b75f19467 | 1,559 | py | Python | bonfire_led_pwm_tb.py | bonfireprocessor/bonfire-pwm | 2e28cb5c19454343122fc26589da86f17613f204 | [
"MIT"
] | null | null | null | bonfire_led_pwm_tb.py | bonfireprocessor/bonfire-pwm | 2e28cb5c19454343122fc26589da86f17613f204 | [
"MIT"
] | null | null | null | bonfire_led_pwm_tb.py | bonfireprocessor/bonfire-pwm | 2e28cb5c19454343122fc26589da86f17613f204 | [
"MIT"
] | null | null | null | from myhdl import *
from bonfire_led_pwm import bonfire_led_pwm
#from bonfire_led_pwm4 import bonfire_led_pwm4
from wishbone_bundle import *
from ClkDriver import *
numChannels=4
values=(2,0x00205070,0x00ffffff,0x00000000,0x00deadbe)
@block
def led_pwm_tb():
wb_bus = Wishbone_bundle(True,8,0,32,False,False)
... | 21.957746 | 76 | 0.652341 | 227 | 1,559 | 4.286344 | 0.370044 | 0.035971 | 0.053443 | 0.040082 | 0.098664 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045264 | 0.234766 | 1,559 | 70 | 77 | 22.271429 | 0.770327 | 0.151379 | 0 | 0.052632 | 0 | 0 | 0.012186 | 0 | 0 | 0 | 0.030465 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
859249876ca19a024249e015e76aec296b5a74be | 699 | py | Python | setup.py | andypbarrett/Sunlight_under_seaice | 2c42c4f562ce27089a1d24cd4ff1740c5b7fa6b6 | [
"MIT"
] | 3 | 2020-10-29T20:21:53.000Z | 2021-08-17T18:52:23.000Z | setup.py | andypbarrett/Sunlight_under_seaice | 2c42c4f562ce27089a1d24cd4ff1740c5b7fa6b6 | [
"MIT"
] | null | null | null | setup.py | andypbarrett/Sunlight_under_seaice | 2c42c4f562ce27089a1d24cd4ff1740c5b7fa6b6 | [
"MIT"
] | 1 | 2021-02-26T17:33:23.000Z | 2021-02-26T17:33:23.000Z | from setuptools import setup
setup(
# Needed to silence warnings (and to be a worthwhile package)
name='sunderseaice',
url='',
author='Andy Barrett',
author_email='andypbarrett@gmail.com',
# Needed to actually package something
packages=setuptools.find_packages(),
# Needed for dependenc... | 33.285714 | 72 | 0.692418 | 87 | 699 | 5.517241 | 0.781609 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003552 | 0.194564 | 699 | 20 | 73 | 34.95 | 0.849023 | 0.426323 | 0 | 0 | 0 | 0 | 0.320611 | 0.05598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
8594791d879179d2b9776fd3591fb68f07fc02f7 | 1,611 | py | Python | src/dx/share/scraper/crawl.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | null | null | null | src/dx/share/scraper/crawl.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | 2 | 2021-01-03T16:22:11.000Z | 2021-02-07T08:41:57.000Z | src/dx/share/scraper/crawl.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | null | null | null | from .parse_topics import topics
from .url_utils import base_url
from .time_utils import StopWatch
from .soup_processor import soup_from_response
from .soup_structure import AMSBookInfoPage
from sys import stderr
from time import sleep
__all__ = ["crawl"]
def crawl(book_GET_func, initialise_at=1, volumes=None, sort=T... | 35.021739 | 87 | 0.577281 | 199 | 1,611 | 4.40201 | 0.427136 | 0.027397 | 0.03653 | 0.047945 | 0.052511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002791 | 0.332713 | 1,611 | 45 | 88 | 35.8 | 0.809302 | 0.073867 | 0 | 0.052632 | 0 | 0 | 0.097446 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.052632 | false | 0 | 0.184211 | 0 | 0.263158 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8597bb717cd9dbb832a4f653849811a40ea39f93 | 1,224 | py | Python | app/schemas/Recipe.py | koyokakijakarta/foodrecipe | cb8e3ce17140c2b2c524af6838f53359ec7f6dbd | [
"MIT"
] | 2 | 2021-08-02T13:40:56.000Z | 2021-08-04T22:18:02.000Z | app/schemas/Recipe.py | koyokakijakarta/foodrecipes | cb8e3ce17140c2b2c524af6838f53359ec7f6dbd | [
"MIT"
] | null | null | null | app/schemas/Recipe.py | koyokakijakarta/foodrecipes | cb8e3ce17140c2b2c524af6838f53359ec7f6dbd | [
"MIT"
] | null | null | null | from app import ma
from app.models import Recipe as RecipeModels
from app.schemas.Response import ResponseSchema
from marshmallow import validate, ValidationError, EXCLUDE, post_load
def validate_image(image):
allowed_extensions = ['png', 'jpg', 'jpeg', 'gif']
if "." not in image or ("." in image and image.rs... | 29.142857 | 104 | 0.706699 | 160 | 1,224 | 5.35 | 0.4 | 0.035047 | 0.075935 | 0.099299 | 0.189252 | 0.189252 | 0.150701 | 0.150701 | 0.150701 | 0 | 0 | 0.007882 | 0.170752 | 1,224 | 41 | 105 | 29.853659 | 0.835468 | 0 | 0 | 0 | 0 | 0 | 0.048203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.035714 | 0.821429 | 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 |
859aafab5afb402fc156c1e0795b29e20656f384 | 237 | py | Python | python3/hamming_distance.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | 1 | 2020-10-08T09:17:40.000Z | 2020-10-08T09:17:40.000Z | python3/hamming_distance.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | python3/hamming_distance.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | # leetcode
class Solution:
def hammingDistance(self, x: int, y: int) -> int:
ans = 0
xor = bin(x^y)[2:]
for l in xor:
if l == '1':
ans += 1
return ans | 19.75 | 53 | 0.392405 | 29 | 237 | 3.206897 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.493671 | 237 | 12 | 54 | 19.75 | 0.741667 | 0.033755 | 0 | 0 | 0 | 0 | 0.004386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85a3072aae9e3b8d27f8bf5d2ee3424715f3b0cd | 1,161 | py | Python | hrsalespipes/api_integrations/migrations/0001_initial.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 3 | 2020-03-26T12:43:43.000Z | 2021-05-10T14:35:51.000Z | hrsalespipes/api_integrations/migrations/0001_initial.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 5 | 2021-04-08T21:15:15.000Z | 2022-02-10T11:03:12.000Z | hrsalespipes/api_integrations/migrations/0001_initial.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 1 | 2022-01-30T19:24:48.000Z | 2022-01-30T19:24:48.000Z | # Generated by Django 2.2.10 on 2020-04-30 07:25
from django.db import migrations, models
import django_extensions.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='LinkedinApi',
fields=[
... | 35.181818 | 124 | 0.587425 | 112 | 1,161 | 5.946429 | 0.535714 | 0.054054 | 0.081081 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.279931 | 1,161 | 32 | 125 | 36.28125 | 0.773923 | 0.039621 | 0 | 0 | 1 | 0 | 0.116801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85a35bbea18ed77b4c16abc34395e75e650abec6 | 2,352 | py | Python | aitools/proofs/builtin_provers.py | OneManEquipe/thinkerino | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | 1 | 2020-05-02T19:44:18.000Z | 2020-05-02T19:44:18.000Z | aitools/proofs/builtin_provers.py | OneManEquipe/aitools | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | 29 | 2019-08-07T17:49:03.000Z | 2021-08-31T10:25:00.000Z | aitools/proofs/builtin_provers.py | OneManEquipe/thinkerino | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | null | null | null | import logging
from aitools.logic.core import Expression, Variable, LogicObject
from aitools.logic.language import Language
from aitools.logic.unification import Substitution
from aitools.logic.utils import VariableSource
from aitools.proofs.components import HandlerArgumentMode, HandlerSafety
from aitools.proofs.know... | 47.04 | 121 | 0.770408 | 262 | 2,352 | 6.721374 | 0.354962 | 0.049972 | 0.036343 | 0.0477 | 0.28393 | 0.241908 | 0.177172 | 0.118115 | 0.118115 | 0.118115 | 0 | 0.000501 | 0.15051 | 2,352 | 49 | 122 | 48 | 0.880881 | 0 | 0 | 0.162162 | 0 | 0 | 0.001778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.243243 | 0 | 0.27027 | 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 |
85a8eea592075db3dcccddbe695f43785edf8bf5 | 5,334 | py | Python | cryptongo.py | manu9812/MongoDB | d8cdb217e00f598747d0eee3780c7edff63f25c8 | [
"Apache-2.0"
] | null | null | null | cryptongo.py | manu9812/MongoDB | d8cdb217e00f598747d0eee3780c7edff63f25c8 | [
"Apache-2.0"
] | null | null | null | cryptongo.py | manu9812/MongoDB | d8cdb217e00f598747d0eee3780c7edff63f25c8 | [
"Apache-2.0"
] | null | null | null | import pymongo
import requests
from collections import OrderedDict
from hashlib import sha512
API_URL = 'https://api.coinmarketcap.com/v2/ticker/'
API_URL_START = 'https://api.coinmarketcap.com/v2/ticker/?start={}'
API_URL_LISTINGS = 'https://api.coinmarketcap.com/v2/listings/'
def get_db_connection(uri):
"""
... | 31.011628 | 114 | 0.701162 | 721 | 5,334 | 5.054092 | 0.327323 | 0.035675 | 0.017563 | 0.019759 | 0.137761 | 0.088913 | 0.057629 | 0.021405 | 0.021405 | 0.021405 | 0 | 0.009111 | 0.218035 | 5,334 | 171 | 115 | 31.192982 | 0.864541 | 0.425572 | 0 | 0.171875 | 0 | 0 | 0.141874 | 0.013384 | 0 | 0 | 0 | 0.023392 | 0 | 1 | 0.140625 | false | 0 | 0.0625 | 0 | 0.390625 | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85b0e1fc58fb93fa89127aff65fd7e5a22d465df | 2,994 | py | Python | subs/data.py | Alimo1029/Alimo1029-s-Blog | 41d28f83f2a475669535108f2c7f78713193d86c | [
"MIT"
] | null | null | null | subs/data.py | Alimo1029/Alimo1029-s-Blog | 41d28f83f2a475669535108f2c7f78713193d86c | [
"MIT"
] | null | null | null | subs/data.py | Alimo1029/Alimo1029-s-Blog | 41d28f83f2a475669535108f2c7f78713193d86c | [
"MIT"
] | null | null | null | # 数据库操作
# 导入模块
import pymysql
# 初始化函数
def _init():
# 连接数据库
db = pymysql.connect(
host='localhost',
port=3306,
user='Blog',
passwd='20041123',
db='alimo1029-blog',
charset='utf8'
)
# 创建游标
cursor = db.cursor()
return db, cur... | 27.981308 | 90 | 0.454242 | 279 | 2,994 | 4.820789 | 0.322581 | 0.05948 | 0.074349 | 0.065428 | 0.350186 | 0.191822 | 0.089219 | 0.089219 | 0 | 0 | 0 | 0.038717 | 0.447896 | 2,994 | 107 | 91 | 27.981308 | 0.774955 | 0.151971 | 0 | 0.430769 | 0 | 0 | 0.123629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.123077 | 0.015385 | 0 | 0.276923 | 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 |
85b1527e81795a67da561b6fc694b9544c6fff5c | 1,832 | py | Python | wt/pygardena/rest_api.py | geeak/wt.pygardena | d2c6e838b837d87e3e622bc78551c9023444256d | [
"Apache-2.0"
] | null | null | null | wt/pygardena/rest_api.py | geeak/wt.pygardena | d2c6e838b837d87e3e622bc78551c9023444256d | [
"Apache-2.0"
] | null | null | null | wt/pygardena/rest_api.py | geeak/wt.pygardena | d2c6e838b837d87e3e622bc78551c9023444256d | [
"Apache-2.0"
] | null | null | null | import requests
from urllib.parse import urljoin
class RestAPI(requests.Session):
"""
Encapsulates all REST calls to the Gardena API.
"""
# The base URL for all Gardena requests. Change this if you want to fire the requests against other services
base_url = "https://sg-api.dss.husqvarnagroup.n... | 32.140351 | 112 | 0.576419 | 205 | 1,832 | 5.039024 | 0.404878 | 0.023233 | 0.052275 | 0.060987 | 0.070668 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000783 | 0.302948 | 1,832 | 57 | 113 | 32.140351 | 0.808144 | 0.162664 | 0 | 0.171429 | 0 | 0 | 0.142069 | 0.037931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0.057143 | 0.057143 | 0.028571 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85c689c0c223234396fe26601b1d33f6c48083a4 | 1,699 | py | Python | classes.py | ploggingdev/python_learn | 0b056c0a57e21d9a0c86eb8bbd6e14b236e4d215 | [
"MIT"
] | 10 | 2017-06-23T07:30:52.000Z | 2019-09-11T20:14:08.000Z | classes.py | ploggingdev/python_learn | 0b056c0a57e21d9a0c86eb8bbd6e14b236e4d215 | [
"MIT"
] | null | null | null | classes.py | ploggingdev/python_learn | 0b056c0a57e21d9a0c86eb8bbd6e14b236e4d215 | [
"MIT"
] | 11 | 2017-01-12T15:34:17.000Z | 2019-07-12T11:16:16.000Z | import copy
class Point:
"""A class to represent a point"""
details = "Represent points"
def __init__(self,x=0,y=0):
self.x=x
self.y=y
def __str__(self):
return "x={} y={}".format(self.x,self.y)
def get_sum(self):
"""Return sum of x and y components"""
... | 20.719512 | 88 | 0.616833 | 248 | 1,699 | 3.971774 | 0.197581 | 0.073096 | 0.030457 | 0.048731 | 0.150254 | 0.123858 | 0.123858 | 0 | 0 | 0 | 0 | 0.010903 | 0.244261 | 1,699 | 82 | 89 | 20.719512 | 0.756231 | 0.105356 | 0 | 0.192308 | 0 | 0 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.019231 | 0.057692 | 0.423077 | 0.326923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85c7248c5f7b74ca201de147525cc98df11221a7 | 5,814 | py | Python | dusty/systems/docker/testing_image.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 421 | 2015-06-02T16:29:59.000Z | 2021-06-03T18:44:42.000Z | dusty/systems/docker/testing_image.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 404 | 2015-06-02T20:23:42.000Z | 2019-08-21T16:59:41.000Z | dusty/systems/docker/testing_image.py | gamechanger/dusty | dd9778e3a4f0c623209e53e98aa9dc1fe76fc309 | [
"MIT"
] | 16 | 2015-06-16T17:21:02.000Z | 2020-03-27T02:27:09.000Z | from __future__ import absolute_import
import docker
from ...compiler.compose import container_code_path, get_volume_mounts
from ...compiler.spec_assembler import get_expanded_libs_specs
from ...log import log_to_client
from ...command_file import dusty_command_file_name, lib_install_commands_for_app_or_lib
from .comm... | 41.827338 | 121 | 0.722222 | 820 | 5,814 | 4.703659 | 0.184146 | 0.031112 | 0.04978 | 0.068447 | 0.315789 | 0.281566 | 0.158413 | 0.10993 | 0.095152 | 0.048224 | 0 | 0.001066 | 0.192982 | 5,814 | 138 | 122 | 42.130435 | 0.820972 | 0.009976 | 0 | 0.073395 | 0 | 0 | 0.090474 | 0.004422 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082569 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85c79914bdd90b98f0604e1d7179a76a1a86f2d2 | 589 | py | Python | ios_code_generator/models/__init__.py | banxi1988/iOSCodeGenerator | bb07930660f87378040b8783d203a6a2637b289e | [
"MIT"
] | 34 | 2016-12-22T13:18:01.000Z | 2018-04-23T05:53:32.000Z | ios_code_generator/models/__init__.py | codetalks-new/iOSCodeGenerator | bb07930660f87378040b8783d203a6a2637b289e | [
"MIT"
] | 3 | 2017-05-13T08:07:22.000Z | 2018-01-03T00:28:16.000Z | ios_code_generator/models/__init__.py | codetalks-new/iOSCodeGenerator | bb07930660f87378040b8783d203a6a2637b289e | [
"MIT"
] | 6 | 2016-12-23T00:37:37.000Z | 2019-05-29T02:15:33.000Z | # -*- coding: utf-8 -*-
__author__ = 'banxi'
from .core import *
def _auto_import_models():
import os
import importlib
searchpath = os.path.dirname(__file__)
exclude_modules = ['__init__', 'core']
for filename in os.listdir(searchpath):
if not filename.endswith('.py'):
continu... | 25.608696 | 77 | 0.66893 | 66 | 589 | 5.575758 | 0.606061 | 0.081522 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.222411 | 589 | 22 | 78 | 26.772727 | 0.799127 | 0.142615 | 0 | 0.133333 | 0 | 0 | 0.091816 | 0.0499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a41c8e50b0c70eef5aa82e699a4fb84a00b348ab | 2,629 | py | Python | Projeto_Capitulo/randomQuizGenerator.py | alexcarlos06/Automatize_Tarefas_Ma-antes | da4c02de415fb6dec703b3009b40925ccb77a4d8 | [
"MIT"
] | null | null | null | Projeto_Capitulo/randomQuizGenerator.py | alexcarlos06/Automatize_Tarefas_Ma-antes | da4c02de415fb6dec703b3009b40925ccb77a4d8 | [
"MIT"
] | null | null | null | Projeto_Capitulo/randomQuizGenerator.py | alexcarlos06/Automatize_Tarefas_Ma-antes | da4c02de415fb6dec703b3009b40925ccb77a4d8 | [
"MIT"
] | null | null | null | #! python3
# randomQUizGenerator.py - Cria provas com perguntas e respostas em ordem aleatória
# juntamente com os gabaritos contendo as respostas.
import random
captals = {'Acre (AC)': 'Rio Branco', 'Alagoas (AL)': 'Maceió', 'Amapá (AP)': 'Macapá', 'Amazonas (AM)': 'Manaus',
'Bahia (BA)': 'Salvador', 'Cea... | 51.54902 | 118 | 0.63218 | 326 | 2,629 | 5.092025 | 0.588957 | 0.046988 | 0.033735 | 0.014458 | 0.028916 | 0.028916 | 0.028916 | 0 | 0 | 0 | 0 | 0.006256 | 0.209585 | 2,629 | 50 | 119 | 52.58 | 0.792589 | 0.189806 | 0 | 0 | 0 | 0 | 0.447642 | 0.042925 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 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 |
a42561eef40ebc9c8026f949326c153bc04718cb | 2,701 | py | Python | pycmbs/utils/download.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 9 | 2015-04-01T04:22:25.000Z | 2018-08-31T03:51:34.000Z | pycmbs/utils/download.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 14 | 2015-01-27T20:33:10.000Z | 2016-06-02T07:23:25.000Z | pycmbs/utils/download.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 8 | 2015-02-07T20:46:42.000Z | 2019-10-25T00:36:32.000Z | # -*- coding: utf-8 -*-
"""
This file is part of pyCMBS.
(c) 2012- Alexander Loew
For COPYING and LICENSE details, please refer to the LICENSE file
"""
import os
from pycmbs.data import Data
import tempfile
def get_example_directory():
""" returns directory where this file is located """
testfile = 'xxxxdow... | 28.431579 | 176 | 0.626064 | 368 | 2,701 | 4.519022 | 0.394022 | 0.01804 | 0.021648 | 0.019844 | 0.134696 | 0.134696 | 0.076969 | 0.076969 | 0.076969 | 0.076969 | 0 | 0.002946 | 0.245835 | 2,701 | 94 | 177 | 28.734043 | 0.813451 | 0.070344 | 0 | 0.042553 | 0 | 0.042553 | 0.253151 | 0.115068 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021277 | 0.06383 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4313a8cb9b42c4803f94ed9278e0e452cf914fe | 1,044 | py | Python | requestForProposals.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | requestForProposals.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | requestForProposals.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | # Import external modules.
from google.appengine.ext import ndb
import logging
# Import local modules.
from configuration import const as conf
from constants import Constants
const = Constants()
const.MAX_RETRY = 3
# Parent key: none
class RequestForProposals(ndb.Model):
title = ndb.StringProperty()
detail ... | 29.828571 | 103 | 0.750958 | 121 | 1,044 | 6.446281 | 0.595041 | 0.065385 | 0.033333 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001142 | 0.16092 | 1,044 | 34 | 104 | 30.705882 | 0.889269 | 0.259579 | 0 | 0 | 0 | 0 | 0.03268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.631579 | 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 |
a432127ca424bf2078e641f02350e6a86d7a56dc | 3,943 | py | Python | RelevantRecommendation.py | ma-zhiyuan/DynameDB-data-transfer | 481d321f4ba21ac190f9ac65995f7373447aad46 | [
"Apache-2.0"
] | null | null | null | RelevantRecommendation.py | ma-zhiyuan/DynameDB-data-transfer | 481d321f4ba21ac190f9ac65995f7373447aad46 | [
"Apache-2.0"
] | null | null | null | RelevantRecommendation.py | ma-zhiyuan/DynameDB-data-transfer | 481d321f4ba21ac190f9ac65995f7373447aad46 | [
"Apache-2.0"
] | null | null | null | #-*-coding:utf8-*-
from __future__ import print_function # Python 2/3 compatibility
import boto3
import time
import json
import decimal
import datetime
import json
from boto3.dynamodb.conditions import Key, Attr
from botocore.exceptions import ClientError
class DecimalEncoder(json.JSONEncoder):
def default(self, ... | 33.700855 | 127 | 0.492772 | 356 | 3,943 | 5.317416 | 0.27809 | 0.075541 | 0.062863 | 0.066561 | 0.500264 | 0.500264 | 0.470153 | 0.470153 | 0.425251 | 0.425251 | 0 | 0.008197 | 0.412123 | 3,943 | 117 | 128 | 33.700855 | 0.808456 | 0.01192 | 0 | 0.537736 | 0 | 0 | 0.076014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084906 | null | null | 0.103774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4322add8a068e7ab80e2464fbfab257f4b3067a | 5,465 | py | Python | library/docker/docker.py | Kafkamorph/shutit | e281be48d6f102518506ad07754116452781a369 | [
"MIT"
] | null | null | null | library/docker/docker.py | Kafkamorph/shutit | e281be48d6f102518506ad07754116452781a369 | [
"MIT"
] | null | null | null | library/docker/docker.py | Kafkamorph/shutit | e281be48d6f102518506ad07754116452781a369 | [
"MIT"
] | null | null | null | #Copyright (C) 2014 OpenBet Limited
#
#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, modify, merge, publish, distribu... | 34.588608 | 115 | 0.699726 | 821 | 5,465 | 4.6419 | 0.429963 | 0.02624 | 0.017843 | 0.012595 | 0.037785 | 0.015219 | 0 | 0 | 0 | 0 | 0 | 0.006812 | 0.194145 | 5,465 | 157 | 116 | 34.808917 | 0.858538 | 0.190485 | 0 | 0.135593 | 0 | 0.025424 | 0.851759 | 0.050397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025424 | false | 0 | 0.008475 | 0.008475 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a436e3db21c5de4499c7dacad151e9a9365a2dd6 | 18,815 | py | Python | Tac Tac Toe/ttt.py | promitbasak/TicTacToe-Pygame | 6114cee9498d70942f48a0b6eb360f02bcf72df0 | [
"MIT"
] | 3 | 2020-06-15T13:50:51.000Z | 2021-08-18T05:10:17.000Z | Tac Tac Toe/ttt.py | promitbasak/TicTacToe-Pygame | 6114cee9498d70942f48a0b6eb360f02bcf72df0 | [
"MIT"
] | null | null | null | Tac Tac Toe/ttt.py | promitbasak/TicTacToe-Pygame | 6114cee9498d70942f48a0b6eb360f02bcf72df0 | [
"MIT"
] | 1 | 2020-06-15T13:52:49.000Z | 2020-06-15T13:52:49.000Z | import random
import time
CELLS = 9
PLAYERS = 2
CORNERS = [1, 3, 7, 9]
NON_CORNERS = [2, 4, 6, 8]
board = {}
for i in range(9):
board[i + 1] = 0
signs = {0: " ", 1: "X", 2: "O"}
winner = None
def rpermutation(a):
array = a[:]
for _ in range(len(array)):
yield array.pop(random.ran... | 33.359929 | 113 | 0.427212 | 2,051 | 18,815 | 3.912726 | 0.090687 | 0.048598 | 0.023925 | 0.016449 | 0.669907 | 0.651589 | 0.618193 | 0.591651 | 0.573084 | 0.541308 | 0 | 0.03599 | 0.441775 | 18,815 | 563 | 114 | 33.419183 | 0.727887 | 0.035982 | 0 | 0.681319 | 0 | 0.008791 | 0.066072 | 0.00345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0.079121 | 0.004396 | 0.006593 | 0.2 | 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 |
a43b7b785ea2069cf30bf58f80e9cd62796231df | 387 | py | Python | setup.py | exord/cobmcmc | 162ba8d4fab35aa44bc8a4828eb51e25df13c4e2 | [
"MIT"
] | null | null | null | setup.py | exord/cobmcmc | 162ba8d4fab35aa44bc8a4828eb51e25df13c4e2 | [
"MIT"
] | null | null | null | setup.py | exord/cobmcmc | 162ba8d4fab35aa44bc8a4828eb51e25df13c4e2 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='cobmcmc',
description='Change-of-Basis, '
'a flexible Metropolis-Hastings MCMC algorithm.',
version='0.1.0',
author='Rodrigo F. Diaz',
author_email='rodrigo.diaz@unige.ch',
url='',
long_description='**COMING SOON**',
... | 27.642857 | 67 | 0.589147 | 42 | 387 | 5.380952 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010345 | 0.250646 | 387 | 13 | 68 | 29.769231 | 0.768966 | 0 | 0 | 0 | 0 | 0 | 0.369509 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
a43edff2bca252c202547a4220b20784da0fb45a | 2,757 | py | Python | Assignment_3.py | Lee-Lilly/Embedded-python | 57a3da93be9ce27c5f196b76a3ad83340e44451c | [
"MIT"
] | null | null | null | Assignment_3.py | Lee-Lilly/Embedded-python | 57a3da93be9ce27c5f196b76a3ad83340e44451c | [
"MIT"
] | null | null | null | Assignment_3.py | Lee-Lilly/Embedded-python | 57a3da93be9ce27c5f196b76a3ad83340e44451c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# ---
# # Python Basics - Assingment 3 ToDo
#
# ---
# **Exercise 1**
#
# **Task 1** Define a function called **repeat_stuff** that takes in two inputs, **stuff**, and **num_repeats**.
#
# We will want to make this function print a string with stuff repeated num_repeats amount o... | 24.184211 | 164 | 0.665579 | 427 | 2,757 | 4.238876 | 0.344262 | 0.072928 | 0.049724 | 0.031492 | 0.241989 | 0.154144 | 0.118232 | 0.118232 | 0.118232 | 0.118232 | 0 | 0.020464 | 0.202394 | 2,757 | 113 | 165 | 24.39823 | 0.802638 | 0.628219 | 0 | 0.269231 | 0 | 0 | 0.192746 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 1 | 0.192308 | false | 0 | 0 | 0.115385 | 0.307692 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a4412e6d819800bfa4c95e8966db3d3ce6218c2c | 875 | py | Python | cogs/moderation.py | robonone/RoboNone | 8795367ee38fac2110b4b5fc6d1f733a07f7caa4 | [
"MIT"
] | 6 | 2019-03-16T05:55:14.000Z | 2019-04-05T10:10:37.000Z | cogs/moderation.py | robonone/RoboNone | 8795367ee38fac2110b4b5fc6d1f733a07f7caa4 | [
"MIT"
] | 6 | 2019-03-09T07:29:27.000Z | 2019-04-07T17:57:14.000Z | cogs/moderation.py | peteranytime/RoboNone | 8795367ee38fac2110b4b5fc6d1f733a07f7caa4 | [
"MIT"
] | 3 | 2019-06-07T11:08:33.000Z | 2021-02-13T07:33:10.000Z | import argparse
import copy
import datetime
import re
import shlex
from typing import Union
import time
import discord
from discord.ext import commands
class Arguments(argparse.ArgumentParser):
def error(self, message):
raise RuntimeError(message)
def setup(bot):
bot.add_cog(Moderation(bot))
def ... | 22.435897 | 89 | 0.684571 | 121 | 875 | 4.859504 | 0.487603 | 0.047619 | 0.040816 | 0.05102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210286 | 875 | 38 | 90 | 23.026316 | 0.850941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.333333 | 0.037037 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a4426592f5f9a887ec3c6cdd36ebe20492020363 | 484 | py | Python | magichour/validate/splitter.py | Lab41/magichour | 69c03e87fe5d067068f298a5cf9e005a97b337db | [
"Apache-2.0"
] | 34 | 2016-01-10T22:03:10.000Z | 2020-06-29T08:06:58.000Z | magichour/validate/splitter.py | Lab41/magichour | 69c03e87fe5d067068f298a5cf9e005a97b337db | [
"Apache-2.0"
] | 2 | 2017-07-24T16:45:42.000Z | 2017-10-20T20:18:49.000Z | magichour/validate/splitter.py | Lab41/magichour | 69c03e87fe5d067068f298a5cf9e005a97b337db | [
"Apache-2.0"
] | 20 | 2015-12-14T19:45:02.000Z | 2019-07-10T14:51:48.000Z | from random import shuffle
def splitRDD(rdd, weights=[0.8, 0.1, 0.1]):
train, validation, test = rdd.randomSplit(weights=weights)
return train, validation, test
def split(data, weights=[0.8, 0.1, 0.1]):
d = [x for x in data]
shuffle(d)
idx_train = len(d) * weights[0]
idx_validation = len(d) ... | 26.888889 | 62 | 0.650826 | 75 | 484 | 4.12 | 0.32 | 0.10356 | 0.184466 | 0.064725 | 0.084142 | 0.084142 | 0.084142 | 0 | 0 | 0 | 0 | 0.039063 | 0.206612 | 484 | 17 | 63 | 28.470588 | 0.765625 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
a442c144831d337a7da0927dc8fc3b093e18af2f | 1,085 | py | Python | newton.py | Robokkie/NA | bce44ecd6f64ecea79d256cad4115d57e80e9576 | [
"MIT"
] | null | null | null | newton.py | Robokkie/NA | bce44ecd6f64ecea79d256cad4115d57e80e9576 | [
"MIT"
] | null | null | null | newton.py | Robokkie/NA | bce44ecd6f64ecea79d256cad4115d57e80e9576 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
from function import Function
import function
if __name__ == '__main__':
print "please input the number that a,b,c,d for function"
a,b,c,d = map(int, raw_input('input a,b,c,d=').split(","))
func=Function(a,b,c,d)
func.showinfo()
while True:
print "in... | 20.865385 | 63 | 0.62212 | 196 | 1,085 | 3.377551 | 0.357143 | 0.015106 | 0.018127 | 0.024169 | 0.138973 | 0.087613 | 0.039275 | 0 | 0 | 0 | 0 | 0.028478 | 0.158525 | 1,085 | 52 | 64 | 20.865385 | 0.696605 | 0.037788 | 0 | 0.176471 | 0 | 0 | 0.315436 | 0.023011 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088235 | null | null | 0.264706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4441378c3135c8d9a9f00c4a3a64345ab77f794 | 6,482 | py | Python | fourq-master/impl/compare.py | rikard-sics/group-oscore-key | 463163334e42da86ecf26374ed89e2cb750f6e18 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T13:46:08.000Z | 2022-01-07T13:46:08.000Z | fourq-master/impl/compare.py | rikard-sics/group-oscore-key | 463163334e42da86ecf26374ed89e2cb750f6e18 | [
"BSD-3-Clause"
] | null | null | null | fourq-master/impl/compare.py | rikard-sics/group-oscore-key | 463163334e42da86ecf26374ed89e2cb750f6e18 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from random import getrandbits
from time import time
from fields import GFp2, GFp25519, p1271, p25519
import curve4q
import curve25519
# Adjust these if you want more/fewer samples
FIELD_TEST_LOOPS = 1000
DH_TEST_LOOPS = 100
def compare_fields():
base_corpus = [getrandbits(256) for i in ra... | 28.808889 | 107 | 0.597346 | 869 | 6,482 | 4.294591 | 0.155351 | 0.060021 | 0.051447 | 0.024384 | 0.426581 | 0.304126 | 0.229368 | 0.164523 | 0.164523 | 0.128081 | 0 | 0.119101 | 0.244832 | 6,482 | 224 | 108 | 28.9375 | 0.64331 | 0.03934 | 0 | 0.271605 | 0 | 0.006173 | 0.145504 | 0.020625 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030864 | null | null | 0.104938 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4463b95c1d4eeb9a2a5beb88b29bf8801a14e7e | 1,005 | py | Python | var/spack/repos/builtin/packages/py-flit-core/package.py | zygyz/spack | e0f044561e9b3cb384bfb0f364555e5875b1a492 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 348 | 2015-12-30T04:05:54.000Z | 2022-02-21T10:57:53.000Z | var/spack/repos/builtin/packages/py-flit-core/package.py | LLNL/spack | 0b2507053e58ef4058631c10e5d9bf7ea2222c20 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 3,994 | 2015-12-09T09:43:00.000Z | 2017-11-04T02:46:39.000Z | var/spack/repos/builtin/packages/py-flit-core/package.py | hfp/spack | 0b2507053e58ef4058631c10e5d9bf7ea2222c20 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 359 | 2015-12-16T18:25:55.000Z | 2017-11-02T14:51:13.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import glob
import os
import zipfile
from spack import *
class PyFlitCore(PythonPackage):
"""Distribution-building ... | 30.454545 | 95 | 0.681592 | 129 | 1,005 | 5.255814 | 0.658915 | 0.032448 | 0.041298 | 0.067847 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067389 | 0.173134 | 1,005 | 32 | 96 | 31.40625 | 0.748496 | 0.224876 | 0 | 0 | 0 | 0.055556 | 0.324675 | 0.083117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.