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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8780283a69bbc0fda41c22f0b8c49574a231163 | 318 | py | Python | project_euler_20.py | andrazm123/Project-Euler | 260a46810bce73e1079c13518ae94732c8cb1acb | [
"MIT"
] | null | null | null | project_euler_20.py | andrazm123/Project-Euler | 260a46810bce73e1079c13518ae94732c8cb1acb | [
"MIT"
] | null | null | null | project_euler_20.py | andrazm123/Project-Euler | 260a46810bce73e1079c13518ae94732c8cb1acb | [
"MIT"
] | null | null | null | def fakulteta(n):
if n == 0:
return 1
else:
return n * fakulteta(n - 1)
def vsota_stevk_fakultete(n):
seznam = [int(d) for d in str(fakulteta(n))]
vsota = 0
for i in range(0, len(seznam)):
vsota = vsota + seznam[i]
return(vsota)
print(vsota_stevk_fakultete(100)) | 22.714286 | 50 | 0.578616 | 48 | 318 | 3.75 | 0.458333 | 0.166667 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.295597 | 318 | 14 | 51 | 22.714286 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.083333 | 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 |
f87a22732dacd3221d189ad42ee5ed0bc65d2dbd | 521 | py | Python | strategy_mgr/migrations/0002_auto_20201217_0955.py | chinawq/QuantIntelligence | 32a37d56d8a7d7bb8c1776d5f0e7663f353dab6b | [
"MIT"
] | null | null | null | strategy_mgr/migrations/0002_auto_20201217_0955.py | chinawq/QuantIntelligence | 32a37d56d8a7d7bb8c1776d5f0e7663f353dab6b | [
"MIT"
] | null | null | null | strategy_mgr/migrations/0002_auto_20201217_0955.py | chinawq/QuantIntelligence | 32a37d56d8a7d7bb8c1776d5f0e7663f353dab6b | [
"MIT"
] | 1 | 2021-01-09T13:37:21.000Z | 2021-01-09T13:37:21.000Z | # Generated by Django 3.1.2 on 2020-12-17 01:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('strategy_mgr', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='strategy',
name='stg_name',
... | 22.652174 | 56 | 0.579655 | 52 | 521 | 5.653846 | 0.730769 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057534 | 0.299424 | 521 | 22 | 57 | 23.681818 | 0.747945 | 0.086372 | 0 | 0.125 | 1 | 0 | 0.137131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f87ec41ca9cdbd9818953a560a5710ad0978dd5d | 1,899 | py | Python | accounts/forms.py | bshukla3041/CongoCart | 10e6cbb12393fb6c6e2b95fe5504fbeb69e01be4 | [
"MIT"
] | 1 | 2021-11-28T06:51:41.000Z | 2021-11-28T06:51:41.000Z | accounts/forms.py | Vchourey/CongoCart | 10e6cbb12393fb6c6e2b95fe5504fbeb69e01be4 | [
"MIT"
] | 5 | 2020-11-05T04:40:26.000Z | 2022-03-12T00:50:49.000Z | accounts/forms.py | Vchourey/CongoCart | 10e6cbb12393fb6c6e2b95fe5504fbeb69e01be4 | [
"MIT"
] | 1 | 2021-03-22T05:28:00.000Z | 2021-03-22T05:28:00.000Z | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate
from phonenumber_field.formfields import PhoneNumberField
from .models import CongoUser, CongoUserProfile
class RegistrationForm(forms.ModelForm):
class Meta:
model = CongoUser
... | 32.741379 | 77 | 0.620853 | 184 | 1,899 | 6.277174 | 0.347826 | 0.085714 | 0.036364 | 0.036364 | 0.196537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001481 | 0.2891 | 1,899 | 57 | 78 | 33.315789 | 0.854074 | 0 | 0 | 0.108696 | 0 | 0 | 0.191153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0.173913 | 0.108696 | 0 | 0.347826 | 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 |
f882e6730d0b0bdcadee74309b5e95dd1249a3c2 | 68,305 | py | Python | code/nbs/reco-tut-elf-notebook.py | sparsh-ai/reco-tut-elf | 9981551c86ba5df6d4b739f3ac716f6054713bb2 | [
"MIT"
] | null | null | null | code/nbs/reco-tut-elf-notebook.py | sparsh-ai/reco-tut-elf | 9981551c86ba5df6d4b739f3ac716f6054713bb2 | [
"MIT"
] | null | null | null | code/nbs/reco-tut-elf-notebook.py | sparsh-ai/reco-tut-elf | 9981551c86ba5df6d4b739f3ac716f6054713bb2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[42]:
import os
project_name = "reco-tut-elf"; branch = "main"; account = "sparsh-ai"
project_path = os.path.join('/content', project_name)
# In[2]:
if not os.path.exists(project_path):
get_ipython().system(u'cp /content/drive/MyDrive/mykeys.py /content')
import ... | 54.081552 | 1,427 | 0.620189 | 8,398 | 68,305 | 4.799833 | 0.075256 | 0.027289 | 0.01687 | 0.009725 | 0.712149 | 0.650301 | 0.617381 | 0.591208 | 0.573792 | 0.554119 | 0 | 0.010316 | 0.249279 | 68,305 | 1,262 | 1,428 | 54.124406 | 0.775771 | 0.096538 | 0 | 0.444698 | 0 | 0.007982 | 0.146465 | 0.015512 | 0 | 0 | 0 | 0 | 0.015964 | 1 | 0.064994 | false | 0.00114 | 0.028506 | 0.011403 | 0.157355 | 0.023945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8855d097b893bcdc3990f2029716c3b59495f91 | 615 | py | Python | cdr_rates/migrations/0013_auto_20180601_2045.py | bradleymccandless/cdr_accounting | e4dd0c03ed29b641bf7b425608546db592c6f6b6 | [
"Apache-2.0"
] | null | null | null | cdr_rates/migrations/0013_auto_20180601_2045.py | bradleymccandless/cdr_accounting | e4dd0c03ed29b641bf7b425608546db592c6f6b6 | [
"Apache-2.0"
] | null | null | null | cdr_rates/migrations/0013_auto_20180601_2045.py | bradleymccandless/cdr_accounting | e4dd0c03ed29b641bf7b425608546db592c6f6b6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.3 on 2018-06-01 20:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cdr_rates', '0012_cachedrate'),
]
operations = [
migrations.RemoveField(
model_name='cachedrate... | 25.625 | 140 | 0.622764 | 66 | 615 | 5.69697 | 0.651515 | 0.06383 | 0.074468 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041758 | 0.260163 | 615 | 23 | 141 | 26.73913 | 0.784615 | 0.073171 | 0 | 0.235294 | 1 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
f88592fad2c237091f4cba36035b781390785ee7 | 1,759 | py | Python | lib/data/dataloader.py | dennisbappert/sod-using-vit | 24ed0692d8eb09adf2f74e69a132f267a4137b68 | [
"Apache-2.0"
] | 89 | 2021-03-17T01:32:38.000Z | 2022-03-25T08:38:54.000Z | lib/data/dataloader.py | dennisbappert/sod-using-vit | 24ed0692d8eb09adf2f74e69a132f267a4137b68 | [
"Apache-2.0"
] | 12 | 2021-03-19T10:47:03.000Z | 2022-03-24T04:45:50.000Z | lib/data/dataloader.py | dennisbappert/sod-using-vit | 24ed0692d8eb09adf2f74e69a132f267a4137b68 | [
"Apache-2.0"
] | 13 | 2021-03-18T18:40:32.000Z | 2022-03-11T16:43:52.000Z | import torch
from torch.utils.data import DataLoader
class PrefetchLoader:
def __init__(self, loader, to_device_handler):
self.loader = loader
self.to_device_handler = to_device_handler
def __iter__(self):
stream = torch.cuda.Stream()
first = True
for batch in self.lo... | 24.09589 | 86 | 0.615122 | 194 | 1,759 | 5.242268 | 0.314433 | 0.058997 | 0.058997 | 0.037365 | 0.094395 | 0.045231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29676 | 1,759 | 72 | 87 | 24.430556 | 0.82215 | 0.071632 | 0 | 0.2 | 0 | 0 | 0.008135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.044444 | 0.088889 | 0.422222 | 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 |
f886546ca3bd5502fbb30ea9e6c1ac7123e130fb | 685 | py | Python | oo/carro.py | wanderaze/pythonbirds | d6aa01e460353f27381a92b0fa54ab4f682d498d | [
"MIT"
] | null | null | null | oo/carro.py | wanderaze/pythonbirds | d6aa01e460353f27381a92b0fa54ab4f682d498d | [
"MIT"
] | null | null | null | oo/carro.py | wanderaze/pythonbirds | d6aa01e460353f27381a92b0fa54ab4f682d498d | [
"MIT"
] | null | null | null | class Motor:
def __init__(self):
self.velocidade = 0
def acelerar(self):
self.velocidade += 1
def frear(self):
self.velocidade -= 2
self.velocidade = max(0, self.velocidade)
NORTE = 'Norte'
SUL = 'Sul'
LESTE = 'Leste'
OESTE = 'Oeste'
class Direcao:
rotacao_a_direita_dc... | 23.62069 | 75 | 0.659854 | 94 | 685 | 4.553191 | 0.265957 | 0.11215 | 0.126168 | 0.070093 | 0.116822 | 0.116822 | 0 | 0 | 0 | 0 | 0 | 0.007519 | 0.223358 | 685 | 28 | 76 | 24.464286 | 0.796992 | 0 | 0 | 0.095238 | 0 | 0 | 0.026393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.47619 | 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 |
f886797ff1a6f3f447d408a77ad470cceb4f0abb | 37,810 | py | Python | com/vmware/vcenter/topology_client.py | vishal-12/vsphere-automation-sdk-python | 9cf363971db77ea5a12928eecd5cf5170a7fcd8a | [
"MIT"
] | null | null | null | com/vmware/vcenter/topology_client.py | vishal-12/vsphere-automation-sdk-python | 9cf363971db77ea5a12928eecd5cf5170a7fcd8a | [
"MIT"
] | null | null | null | com/vmware/vcenter/topology_client.py | vishal-12/vsphere-automation-sdk-python | 9cf363971db77ea5a12928eecd5cf5170a7fcd8a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2019 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.vcenter.topology.
#-----------------------------------------------------------------... | 43.559908 | 107 | 0.603782 | 4,084 | 37,810 | 5.453477 | 0.085455 | 0.032732 | 0.024515 | 0.030172 | 0.716415 | 0.685075 | 0.664377 | 0.637572 | 0.60246 | 0.58055 | 0 | 0.004487 | 0.310341 | 37,810 | 867 | 108 | 43.61015 | 0.849632 | 0.459111 | 0 | 0.45641 | 1 | 0 | 0.205884 | 0.132332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04359 | false | 0.007692 | 0.035897 | 0 | 0.135897 | 0.007692 | 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 |
f88a56808e818d352b28aa2d6fc732918303dcf2 | 1,235 | py | Python | Core/c_logger.py | Geulmaster/Kingfish | c54048edecfedc758f0160d04fdf41a0f3505edc | [
"MIT"
] | null | null | null | Core/c_logger.py | Geulmaster/Kingfish | c54048edecfedc758f0160d04fdf41a0f3505edc | [
"MIT"
] | null | null | null | Core/c_logger.py | Geulmaster/Kingfish | c54048edecfedc758f0160d04fdf41a0f3505edc | [
"MIT"
] | null | null | null | import logging
import coloredlogs
coloredlogs.DEFAULT_LOG_FORMAT = '%(asctime)s - %(message)s'
coloredlogs.DEFAULT_FIELD_STYLES = {'asctime': {'color': 'white'}}
level_styles = coloredlogs.DEFAULT_LEVEL_STYLES
level_styles['title'] = {'color':'blue', 'bold':True}
coloredlogs.install()
logging.getLogger("paramiko").se... | 20.583333 | 91 | 0.703644 | 153 | 1,235 | 5.542484 | 0.261438 | 0.042453 | 0.080189 | 0.095519 | 0.209906 | 0.101415 | 0.101415 | 0.101415 | 0 | 0 | 0 | 0.00377 | 0.140891 | 1,235 | 60 | 92 | 20.583333 | 0.795476 | 0.019433 | 0 | 0.189189 | 0 | 0 | 0.097521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.054054 | 0 | 0.27027 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f88dde8030042f5fb5cb91f4286dd07bc28d1294 | 4,879 | py | Python | homework2.py | TiAmolj/Python-By-Joker | df37ddfb58c40d68298b4e862ba23671943de8cf | [
"Apache-2.0"
] | null | null | null | homework2.py | TiAmolj/Python-By-Joker | df37ddfb58c40d68298b4e862ba23671943de8cf | [
"Apache-2.0"
] | null | null | null | homework2.py | TiAmolj/Python-By-Joker | df37ddfb58c40d68298b4e862ba23671943de8cf | [
"Apache-2.0"
] | null | null | null | # 1.
# import math
# # a,b,c = map(float,input('Enter a,b,c:').split(','))
# a,b,c = eval(input('Enter a,b,c:'))
# sum=b*b-4*a*c
# if sum >0:
# r1=(-b+math.sqrt(sum))/2*a
# r2=(-b-math.sqrt(sum))/2*a
# print('The roots are %.2f and %.2f'%(r1,r2))
# elif sum == 0:
# r1=r2=(-b+math.sqrt(sum))/2... | 23.8 | 107 | 0.51527 | 762 | 4,879 | 3.301837 | 0.224409 | 0.044515 | 0.057234 | 0.064388 | 0.294118 | 0.241653 | 0.209062 | 0.209062 | 0.166932 | 0.147854 | 0 | 0.074793 | 0.282025 | 4,879 | 204 | 108 | 23.916667 | 0.642878 | 0.846895 | 0 | 0 | 0 | 0 | 0.084399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8904e096d1517f10bc59d1843f864eb3f4945d8 | 1,159 | py | Python | Scraps/Python/py_scraps/functional/infinite_list.py | rajdeepslather/python-scraps | 75e3ee8bfd6e3f77918037fda91205ac2edb3111 | [
"MIT"
] | null | null | null | Scraps/Python/py_scraps/functional/infinite_list.py | rajdeepslather/python-scraps | 75e3ee8bfd6e3f77918037fda91205ac2edb3111 | [
"MIT"
] | null | null | null | Scraps/Python/py_scraps/functional/infinite_list.py | rajdeepslather/python-scraps | 75e3ee8bfd6e3f77918037fda91205ac2edb3111 | [
"MIT"
] | null | null | null | import itertools
import datetime
def factors(x):
factor_list = []
for i in range(1, x+1):
if x % i == 0:
factor_list.append(i)
return factor_list
def is_prime(x):
if factors(x) == [1, x]:
return True
else:
return False
def xfilter(predicate, generator):
... | 23.18 | 74 | 0.658326 | 160 | 1,159 | 4.69375 | 0.31875 | 0.055925 | 0.11984 | 0.095872 | 0.334221 | 0.315579 | 0.315579 | 0.26498 | 0.147803 | 0.147803 | 0 | 0.033769 | 0.207938 | 1,159 | 49 | 75 | 23.653061 | 0.784314 | 0.335634 | 0 | 0 | 0 | 0 | 0.014436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f896f3e8df8b1fea77d6c22d17469ce8ff55525e | 1,037 | py | Python | liqian/umich/research/research/spiders/umichSpider.py | doge-search/webdoge | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | [
"Unlicense"
] | null | null | null | liqian/umich/research/research/spiders/umichSpider.py | doge-search/webdoge | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | [
"Unlicense"
] | null | null | null | liqian/umich/research/research/spiders/umichSpider.py | doge-search/webdoge | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | [
"Unlicense"
] | null | null | null | import scrapy
import re
from research.items import ResearchItem
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
class CaltechSpider(scrapy.Spider):
name = "umich"
allowed_domains = ["eecs.umich.edu"]
start_urls = ["http://www.eecs.umich.edu/eecs/research/cseareas.html"]
def parse(self, response):
rooturl... | 30.5 | 91 | 0.68081 | 143 | 1,037 | 4.909091 | 0.517483 | 0.038462 | 0.051282 | 0.045584 | 0.088319 | 0.088319 | 0.088319 | 0 | 0 | 0 | 0 | 0.016538 | 0.125362 | 1,037 | 33 | 92 | 31.424242 | 0.757442 | 0 | 0 | 0 | 0 | 0 | 0.297011 | 0.123433 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f8a3d670ec098813c8487f9c74a086da1f8cf71c | 1,507 | py | Python | spiketools/utils/spikes.py | CamHolman/spiketools | 56c37a50413a015cfa9c75725cbe7d4ef54968a5 | [
"Apache-2.0"
] | null | null | null | spiketools/utils/spikes.py | CamHolman/spiketools | 56c37a50413a015cfa9c75725cbe7d4ef54968a5 | [
"Apache-2.0"
] | null | null | null | spiketools/utils/spikes.py | CamHolman/spiketools | 56c37a50413a015cfa9c75725cbe7d4ef54968a5 | [
"Apache-2.0"
] | null | null | null | """Spike related utility functions."""
import numpy as np
###################################################################################################
###################################################################################################
def restrict_range(spikes, min_time=None, max_time=None):
... | 31.395833 | 99 | 0.551427 | 192 | 1,507 | 4.213542 | 0.276042 | 0.077874 | 0.066749 | 0.074166 | 0.509271 | 0.433869 | 0.410383 | 0.410383 | 0.276885 | 0.276885 | 0 | 0.086048 | 0.205707 | 1,507 | 47 | 100 | 32.06383 | 0.589808 | 0.617784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f8b0d78e8b90d38c804c84968cb87ae6d3745f2e | 565 | py | Python | backend/api/migrations/0004_auto_20210517_1038.py | luxu/django-vue-luxu | a4da215697df578074e354d43dd1d9995490d0db | [
"MIT"
] | null | null | null | backend/api/migrations/0004_auto_20210517_1038.py | luxu/django-vue-luxu | a4da215697df578074e354d43dd1d9995490d0db | [
"MIT"
] | null | null | null | backend/api/migrations/0004_auto_20210517_1038.py | luxu/django-vue-luxu | a4da215697df578074e354d43dd1d9995490d0db | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-17 13:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20210517_1034'),
]
operations = [
migrations.AlterModelOptions(
name='pavilhao',
options={'ordering':... | 24.565217 | 105 | 0.585841 | 54 | 565 | 6 | 0.777778 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076543 | 0.283186 | 565 | 22 | 106 | 25.681818 | 0.723457 | 0.076106 | 0 | 0.125 | 1 | 0 | 0.207692 | 0.044231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8b2ecad75b0d7238916f77a8d62d3339e28853e | 19,494 | py | Python | leginon/manualacquisition.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | leginon/manualacquisition.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | null | null | null | leginon/manualacquisition.py | leschzinerlab/myami-3.2-freeHand | 974b8a48245222de0d9cfb0f433533487ecce60d | [
"MIT"
] | 1 | 2019-09-05T20:58:37.000Z | 2019-09-05T20:58:37.000Z | #
# COPYRIGHT:
# The Leginon software is Copyright 2003
# The Scripps Research Institute, La Jolla, CA
# For terms of the license agreement
# see http://ami.scripps.edu/software/leginon-license
#
from leginon import leginondata
import event
import node
import project
import threading
import time
import gui... | 30.364486 | 128 | 0.704473 | 2,268 | 19,494 | 6.039683 | 0.214727 | 0.025551 | 0.026573 | 0.013579 | 0.169952 | 0.127975 | 0.078333 | 0.05833 | 0.032633 | 0.024456 | 0 | 0.009187 | 0.168052 | 19,494 | 641 | 129 | 30.411856 | 0.83543 | 0.052272 | 0 | 0.272388 | 0 | 0 | 0.122146 | 0.001356 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005597 | 0.033582 | 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 |
f8b4c7df4362f72f01962a4276c61679f8771fdc | 523 | py | Python | blog/migrations/0008_blogpage_to_blogcategory_relation.py | tbrlpld/wagtail-gatsby-blog-backend | f68f1d9e2577d5271960f142bf37dcbcdac6767a | [
"MIT"
] | null | null | null | blog/migrations/0008_blogpage_to_blogcategory_relation.py | tbrlpld/wagtail-gatsby-blog-backend | f68f1d9e2577d5271960f142bf37dcbcdac6767a | [
"MIT"
] | null | null | null | blog/migrations/0008_blogpage_to_blogcategory_relation.py | tbrlpld/wagtail-gatsby-blog-backend | f68f1d9e2577d5271960f142bf37dcbcdac6767a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-06-24 23:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_blogcategory_page'),
]
operations = [
migrations.AddField(
model_name='blogpage',... | 26.15 | 155 | 0.65392 | 61 | 523 | 5.508197 | 0.655738 | 0.071429 | 0.083333 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049261 | 0.223709 | 523 | 19 | 156 | 27.526316 | 0.778325 | 0.087954 | 0 | 0 | 1 | 0 | 0.143158 | 0.046316 | 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 |
f8ba77f3c2809d3be33b1e81b3f79d14c564f210 | 13,731 | py | Python | recognise.py | jcanosan/Interactive-robot-with-neural-networks | 0d265388628f76f65096f4a3954710e2cd8b2d51 | [
"CC-BY-4.0"
] | null | null | null | recognise.py | jcanosan/Interactive-robot-with-neural-networks | 0d265388628f76f65096f4a3954710e2cd8b2d51 | [
"CC-BY-4.0"
] | null | null | null | recognise.py | jcanosan/Interactive-robot-with-neural-networks | 0d265388628f76f65096f4a3954710e2cd8b2d51 | [
"CC-BY-4.0"
] | null | null | null | # !/usr/bin/env python
# recognise.py
# This module handles the image inputs from the robot camera, runs the model in
# matchingnets.py when it is necessary, receives the user inputs from
# dialogue.py and sends the system inputs to continue with the interaction.
import os
from glob import glob
import pickle
import... | 39.008523 | 82 | 0.61525 | 1,799 | 13,731 | 4.488049 | 0.181212 | 0.035546 | 0.035422 | 0.054496 | 0.34704 | 0.281149 | 0.258856 | 0.243498 | 0.230493 | 0.216002 | 0 | 0.012902 | 0.300051 | 13,731 | 351 | 83 | 39.119658 | 0.827177 | 0.218557 | 0 | 0.272189 | 0 | 0 | 0.051862 | 0.010109 | 0 | 0 | 0.00044 | 0 | 0 | 0 | null | null | 0.005917 | 0.065089 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8bdf84fa8519100fe3d470c86bfd0282314cf69 | 9,719 | py | Python | appengine/predator/app/common/model/test/crash_analysis_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/predator/app/common/model/test/crash_analysis_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | appengine/predator/app/common/model/test/crash_analysis_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 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 copy
from datetime import datetime
import mock
from analysis.constants import CHROMIUM_REPO_URL
from analysis.constants import CHROMIUM_ROOT_PATH
fro... | 38.876 | 80 | 0.71211 | 991 | 9,719 | 6.810293 | 0.220989 | 0.043562 | 0.047711 | 0.031116 | 0.376056 | 0.344347 | 0.283005 | 0.224922 | 0.192325 | 0.163432 | 0 | 0.011582 | 0.191584 | 9,719 | 249 | 81 | 39.032129 | 0.847397 | 0.022533 | 0 | 0.321951 | 0 | 0 | 0.062957 | 0.009274 | 0 | 0 | 0 | 0 | 0.170732 | 0 | null | null | 0 | 0.082927 | 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 |
6ef2a9c2a821793dd380839b54e294e28c1be07a | 1,106 | py | Python | app/controllers/products/products_helpers.py | Brunoro811/api_dangels | 21c064eaa4f5009412dddc9676044d6cc08a5b65 | [
"MIT"
] | null | null | null | app/controllers/products/products_helpers.py | Brunoro811/api_dangels | 21c064eaa4f5009412dddc9676044d6cc08a5b65 | [
"MIT"
] | null | null | null | app/controllers/products/products_helpers.py | Brunoro811/api_dangels | 21c064eaa4f5009412dddc9676044d6cc08a5b65 | [
"MIT"
] | null | null | null | def help_normalize_variations(variations: list[dict]) -> list[dict]:
list_normalized = []
obj_normalized = {}
list_obj_normalized = []
last_color = ""
count = 0
for element in variations:
if last_color == element.color or last_color == "":
list_normalized.append(
... | 32.529412 | 68 | 0.512658 | 96 | 1,106 | 5.614583 | 0.28125 | 0.241187 | 0.12616 | 0.081633 | 0.348794 | 0.348794 | 0.215213 | 0.215213 | 0.215213 | 0 | 0 | 0.004484 | 0.395118 | 1,106 | 33 | 69 | 33.515152 | 0.801196 | 0 | 0 | 0.4375 | 0 | 0 | 0.042495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ef8791a7e1c3e61b988a1ff5eab7197a3fa6b99 | 6,532 | py | Python | en16931/tests/test_invoice.py | invinet/python-en16931 | f6671f86e8d578c3c82a48134426f89ec13b160c | [
"Apache-2.0"
] | 9 | 2018-07-09T10:34:27.000Z | 2021-10-13T20:11:04.000Z | en16931/tests/test_invoice.py | invinet/python-en16931 | f6671f86e8d578c3c82a48134426f89ec13b160c | [
"Apache-2.0"
] | null | null | null | en16931/tests/test_invoice.py | invinet/python-en16931 | f6671f86e8d578c3c82a48134426f89ec13b160c | [
"Apache-2.0"
] | 1 | 2022-02-07T15:30:53.000Z | 2022-02-07T15:30:53.000Z | import os
import pytest
from datetime import datetime
from decimal import Decimal
from en16931.entity import Entity
from en16931.invoice import Invoice
from en16931.invoice_line import InvoiceLine
from en16931.tax import Tax
class TestInvoiceAttributes:
def test_default_id_number(self):
i = Invoice()
... | 31.863415 | 79 | 0.607318 | 843 | 6,532 | 4.506524 | 0.142349 | 0.062648 | 0.111872 | 0.04975 | 0.624638 | 0.520663 | 0.426165 | 0.284285 | 0.24796 | 0.127928 | 0 | 0.073002 | 0.270208 | 6,532 | 204 | 80 | 32.019608 | 0.723935 | 0 | 0 | 0.290123 | 0 | 0 | 0.058022 | 0 | 0 | 0 | 0 | 0 | 0.271605 | 1 | 0.209877 | false | 0 | 0.049383 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ef8ef00b13437313d259336d8b91f4b155e53b6 | 711 | py | Python | BlenderMalt/MaltPath/Malt/Render/Sampling.py | iRi-E/BEER | 8a78720e286e057da9a0b759764cc03923786808 | [
"MIT"
] | 1 | 2022-01-31T02:51:04.000Z | 2022-01-31T02:51:04.000Z | BlenderMalt/MaltPath/Malt/Render/Sampling.py | iRi-E/BEER | 8a78720e286e057da9a0b759764cc03923786808 | [
"MIT"
] | null | null | null | BlenderMalt/MaltPath/Malt/Render/Sampling.py | iRi-E/BEER | 8a78720e286e057da9a0b759764cc03923786808 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 BlenderNPR and contributors. MIT license.
import math
#Rotated Grid Super Sampling pattern
def get_RGSS_samples(grid_size):
samples = []
for x in range(0, grid_size):
for y in range(0, grid_size):
_x = (x / grid_size) * 2.0 - 1.0 #(-1 ... +1 range)
_y = (y ... | 27.346154 | 63 | 0.492264 | 101 | 711 | 3.287129 | 0.39604 | 0.120482 | 0.048193 | 0.072289 | 0.210843 | 0.114458 | 0.114458 | 0.114458 | 0.114458 | 0 | 0 | 0.050228 | 0.383966 | 711 | 25 | 64 | 28.44 | 0.707763 | 0.199719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e049471d3b6d29f77e598058c0f38de92472374 | 1,925 | py | Python | cogs/information.py | alterthefuture/Bowser-Bot | 792da8f997e0d813f36bbaab67fa6e30d01414e8 | [
"MIT"
] | null | null | null | cogs/information.py | alterthefuture/Bowser-Bot | 792da8f997e0d813f36bbaab67fa6e30d01414e8 | [
"MIT"
] | null | null | null | cogs/information.py | alterthefuture/Bowser-Bot | 792da8f997e0d813f36bbaab67fa6e30d01414e8 | [
"MIT"
] | null | null | null | from discord import embeds
from discord.ext import commands
import discord
import datetime
import platform
class information(commands.Cog):
def __init__(self,client):
self.client = client
@commands.command(
name="botinfo",
description="Displays information about the bot.",
... | 64.166667 | 1,104 | 0.703377 | 249 | 1,925 | 5.381526 | 0.546185 | 0.044776 | 0.019403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03034 | 0.143896 | 1,925 | 29 | 1,105 | 66.37931 | 0.781553 | 0 | 0 | 0 | 0 | 0.041667 | 0.566456 | 0.137658 | 0 | 0 | 0.004219 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e08f9147851f6e25df84e73dddcc84a327a1b7f | 440 | py | Python | backends/models/user.py | hoangpd578/graduation-project | 0554dfcc4cb622ab189d7948a2732f46fdae8cb9 | [
"MIT"
] | null | null | null | backends/models/user.py | hoangpd578/graduation-project | 0554dfcc4cb622ab189d7948a2732f46fdae8cb9 | [
"MIT"
] | null | null | null | backends/models/user.py | hoangpd578/graduation-project | 0554dfcc4cb622ab189d7948a2732f46fdae8cb9 | [
"MIT"
] | null | null | null | from utils import configs
class User(object):
def __init__(self, name, id, email, menuroles="user"):
self.id = id
self.name = name
self.email = email
self.email_verified_at = "2020-12-16 16:08:24"
self.password = configs.PASSWORD
self.menuroles = menuroles
... | 25.882353 | 58 | 0.613636 | 57 | 440 | 4.561404 | 0.491228 | 0.092308 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045161 | 0.295455 | 440 | 16 | 59 | 27.5 | 0.793548 | 0 | 0 | 0 | 0 | 0 | 0.052273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3e10b9e7d3057dc4df9f0026d5a858d6af713edc | 992 | py | Python | examples/synchronous/getting_started.py | hiddb/hiddb-sdk-py | 37e5a928d050f575d90e0e87b2cf1f5f84792cd4 | [
"MIT"
] | null | null | null | examples/synchronous/getting_started.py | hiddb/hiddb-sdk-py | 37e5a928d050f575d90e0e87b2cf1f5f84792cd4 | [
"MIT"
] | null | null | null | examples/synchronous/getting_started.py | hiddb/hiddb-sdk-py | 37e5a928d050f575d90e0e87b2cf1f5f84792cd4 | [
"MIT"
] | null | null | null | from hiddb.synchronous import HIDDB
hiddb = HIDDB("<key>", "<secret>")
# Create a database via dashboard and insert the database_id here
database_id = "<database_id>"
# Create a collection named "wordvectors"
hiddb.create_collection(database_id=database_id, collection_name="wordvectors")
# Create an index in that ... | 25.435897 | 79 | 0.740927 | 124 | 992 | 5.717742 | 0.362903 | 0.183357 | 0.152327 | 0.169252 | 0.345557 | 0.345557 | 0.345557 | 0.155148 | 0 | 0 | 0 | 0.017815 | 0.15121 | 992 | 39 | 80 | 25.435897 | 0.824228 | 0.247984 | 0 | 0.24 | 0 | 0 | 0.174324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
3e111e3cd51017f755a31c132e965e8c21aa7a90 | 1,571 | py | Python | css/index.py | melisariver/marvel | 4053b03b0d13061c9c8bfbbd6bda78c9a7e3c76d | [
"Apache-2.0"
] | null | null | null | css/index.py | melisariver/marvel | 4053b03b0d13061c9c8bfbbd6bda78c9a7e3c76d | [
"Apache-2.0"
] | null | null | null | css/index.py | melisariver/marvel | 4053b03b0d13061c9c8bfbbd6bda78c9a7e3c76d | [
"Apache-2.0"
] | null | null | null | #declaro una lista
#lista = ["cadena", 1, False, "nombre", 20, [1, 3, 2 , 4]]
#listaMultiple = ["cadena", ["cadena dentro", "de otra cadena"]]
#listaEnteros = [2, 3, 1]
#Insertar en listas
#lista.append(["agregado", "otro mas"])
#print (lista)
# #tuplas
#tupla = (1, "hola", True)
# #diccionarios
#dic = {
# 'No... | 25.754098 | 70 | 0.581158 | 158 | 1,571 | 5.778481 | 0.417722 | 0.056955 | 0.105148 | 0.135816 | 0.531216 | 0.371303 | 0.371303 | 0.299014 | 0.299014 | 0.299014 | 0 | 0.023988 | 0.150859 | 1,571 | 61 | 71 | 25.754098 | 0.66042 | 0.32909 | 0 | 0.405405 | 0 | 0 | 0.424419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e258d01301ae1792dde471fffdbe0ce88853088 | 295 | py | Python | lambda_function.py | jorjao81/lambda-wortschatz | 7ba312bab5c6ccc32185f17f7fa458053d505ac0 | [
"MIT"
] | 1 | 2019-05-07T02:21:51.000Z | 2019-05-07T02:21:51.000Z | lambda_function.py | jorjao81/lambda-wortschatz | 7ba312bab5c6ccc32185f17f7fa458053d505ac0 | [
"MIT"
] | null | null | null | lambda_function.py | jorjao81/lambda-wortschatz | 7ba312bab5c6ccc32185f17f7fa458053d505ac0 | [
"MIT"
] | null | null | null | import boto3
import json
def lambda_handler(event, context):
print "PRINT hello world"
return {
"statusCode": 200,
"headers": {},
"body": "Hello World"}
if __name__ == "__main__":
print "Invoked outside of lambda"
print lambda_handler(None, None)
| 14.75 | 37 | 0.616949 | 33 | 295 | 5.212121 | 0.69697 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.271186 | 295 | 19 | 38 | 15.526316 | 0.781395 | 0 | 0 | 0 | 0 | 0 | 0.278912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e335532cf52f9a2ec8e7d25569b67decabfdef6 | 1,426 | py | Python | ipyannotator/services/bbox_trajectory.py | itepifanio/ipyannotator | eac99f71d8d39e02a10c21807508b0c064077806 | [
"Apache-2.0"
] | null | null | null | ipyannotator/services/bbox_trajectory.py | itepifanio/ipyannotator | eac99f71d8d39e02a10c21807508b0c064077806 | [
"Apache-2.0"
] | null | null | null | ipyannotator/services/bbox_trajectory.py | itepifanio/ipyannotator | eac99f71d8d39e02a10c21807508b0c064077806 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/18_bbox_trajectory.ipynb (unless otherwise specified).
__all__ = []
# Internal Cell
from ipycanvas import Canvas
from typing import List
from ..ipytyping.annotations import AnnotationStore
from ..mltypes import BboxCoordinate
# Internal Cell
class TrajectoryStore(Annot... | 31 | 102 | 0.599579 | 171 | 1,426 | 4.853801 | 0.467836 | 0.043373 | 0.036145 | 0.079518 | 0.077108 | 0.077108 | 0.077108 | 0 | 0 | 0 | 0 | 0.011066 | 0.302945 | 1,426 | 46 | 103 | 31 | 0.823944 | 0.120617 | 0 | 0.088235 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.323529 | 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 |
3e356c0234e82590d5c82927c4cf54ec1c88c08c | 866 | py | Python | setup.py | d-krupke/slurminade | 302bc5c3fae185e836b4c4c7063b02a9768b19df | [
"MIT"
] | 1 | 2022-03-31T08:30:39.000Z | 2022-03-31T08:30:39.000Z | setup.py | d-krupke/slurminade | 302bc5c3fae185e836b4c4c7063b02a9768b19df | [
"MIT"
] | null | null | null | setup.py | d-krupke/slurminade | 302bc5c3fae185e836b4c4c7063b02a9768b19df | [
"MIT"
] | null | null | null | from setuptools import setup
def readme():
with open("README.md") as f:
return f.read()
setup(
name="slurminade",
version="0.3.1",
description="A decorator-based slurm runner",
long_description=readme(),
long_description_content_type="text/markdown",
classifiers=[
"Develo... | 25.470588 | 74 | 0.632794 | 99 | 866 | 5.40404 | 0.757576 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010264 | 0.212471 | 866 | 33 | 75 | 26.242424 | 0.774194 | 0.072748 | 0 | 0 | 0 | 0 | 0.35 | 0.0275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.035714 | 0 | 0.107143 | 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 |
3e3c148dfa7bd73fc82b7769632c0f9db635ce8a | 13,762 | py | Python | scripts/elasticsearchloader/csv_loader.py | redpanda-cat/montage | a3a635da534ab78c481f984e305108c7dbeef89d | [
"MIT"
] | 3 | 2018-04-03T18:30:21.000Z | 2019-11-14T17:42:47.000Z | scripts/elasticsearchloader/csv_loader.py | redpanda-cat/montage | a3a635da534ab78c481f984e305108c7dbeef89d | [
"MIT"
] | 2 | 2021-07-02T18:35:29.000Z | 2021-08-09T20:43:16.000Z | scripts/elasticsearchloader/csv_loader.py | redpanda-cat/montage | a3a635da534ab78c481f984e305108c7dbeef89d | [
"MIT"
] | 3 | 2018-04-03T18:45:28.000Z | 2021-04-27T18:08:33.000Z | '''
Generic parser/indexer for analysis results in csv file format
Created on October 28, 2015
@author: dmachev
'''
import csv
import ast
import re
import copy
import logging
import os
import math
import __builtin__
from elasticsearchloader.analysis_loader import AnalysisLoader
from sets import Set
class CsvLoader(... | 33.730392 | 93 | 0.57448 | 1,558 | 13,762 | 4.675867 | 0.193196 | 0.054358 | 0.021139 | 0.0151 | 0.224297 | 0.162388 | 0.117502 | 0.08744 | 0.08744 | 0.077282 | 0 | 0.004214 | 0.327496 | 13,762 | 407 | 94 | 33.813268 | 0.782928 | 0.035387 | 0 | 0.274131 | 0 | 0 | 0.066111 | 0.01324 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.050193 | null | null | 0.011583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e3e256b79115dbf4e12c3caeeacb3ed0e0199ac | 1,521 | py | Python | Ago-Dic-2019/Luis Llanes/Practica1/ejercicio3-10.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2019/Luis Llanes/Practica1/ejercicio3-10.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2019/Luis Llanes/Practica1/ejercicio3-10.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | comida = ["tacos", "pozole", "pan de muerto", "pastel", "spaghetti", "gorditas"]
print("Acceder a los elementos de la lista individualmente")
print(comida[0])
print(comida[2])
print(comida[5])
print("Mostrar todos los elementos")
print(comida)
print()
print("Eliminar algun elemento")
del comida[3]
comida.pop()
print... | 23.045455 | 82 | 0.741617 | 222 | 1,521 | 5.081081 | 0.346847 | 0.126773 | 0.074468 | 0.090426 | 0.388298 | 0.338652 | 0.300532 | 0.235816 | 0.079787 | 0.079787 | 0 | 0.004458 | 0.115056 | 1,521 | 66 | 83 | 23.045455 | 0.833581 | 0 | 0 | 0.375 | 0 | 0 | 0.527595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.791667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3e49d8d377697bd6d872078d755b879879925077 | 9,995 | py | Python | server/splunkdj/management/commands/runwsgiserver.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 31 | 2015-01-20T12:49:17.000Z | 2022-02-21T05:21:44.000Z | server/splunkdj/management/commands/runwsgiserver.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 2 | 2015-07-08T19:40:41.000Z | 2018-04-26T21:34:35.000Z | server/splunkdj/management/commands/runwsgiserver.py | splunk/splunk-webframework | a4179558616f5f4fcbfa2b54e9179f30e6395264 | [
"Apache-2.0"
] | 8 | 2015-02-26T13:19:45.000Z | 2022-03-27T08:34:20.000Z | #!/usr/bin/env python
"""
Idea and code snippets borrowed from http://www.xhtml.net/scripts/Django-CherryPy-server-DjangoCerise
Adapted to run as a management command
switched to standalone
"""
import logging, sys, os, signal, time, errno
import json
from socket import gethostname
import django.contrib.admin
from dja... | 33.881356 | 130 | 0.636318 | 1,261 | 9,995 | 4.967486 | 0.314036 | 0.008621 | 0.016603 | 0.008621 | 0.101533 | 0.079502 | 0.048212 | 0.048212 | 0.048212 | 0.048212 | 0 | 0.009678 | 0.276338 | 9,995 | 294 | 131 | 33.996599 | 0.856353 | 0.070035 | 0 | 0.151832 | 0 | 0 | 0.346974 | 0.019595 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005236 | 0.078534 | null | null | 0.010471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e4a81b5dcd99e2ec1505f3fa14faf3e0391275f | 1,039 | py | Python | tests/spec_test.py | hiromu/pyramid_swagger | 2c8d37f1727b61d2be4218cbe52e13198bbc5d59 | [
"BSD-3-Clause"
] | 61 | 2015-01-24T22:17:30.000Z | 2020-10-11T06:38:36.000Z | tests/spec_test.py | hiromu/pyramid_swagger | 2c8d37f1727b61d2be4218cbe52e13198bbc5d59 | [
"BSD-3-Clause"
] | 181 | 2015-01-28T00:59:20.000Z | 2020-06-18T07:43:59.000Z | tests/spec_test.py | hiromu/pyramid_swagger | 2c8d37f1727b61d2be4218cbe52e13198bbc5d59 | [
"BSD-3-Clause"
] | 49 | 2015-02-17T18:53:58.000Z | 2020-06-14T04:40:36.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
import pytest
import simplejson
from jsonschema.exceptions import ValidationError
from pyramid_swagger.spec import API_DOCS_FILENAME
from pyramid_swagger.spec import validate_swagger_schema
def test_success_for_good_app():
dir_path = 'tes... | 34.633333 | 92 | 0.755534 | 146 | 1,039 | 5.068493 | 0.376712 | 0.066216 | 0.060811 | 0.059459 | 0.5 | 0.356757 | 0.356757 | 0.356757 | 0.356757 | 0.356757 | 0 | 0.001131 | 0.149182 | 1,039 | 29 | 93 | 35.827586 | 0.835973 | 0.020212 | 0 | 0.3 | 0 | 0 | 0.087598 | 0.073819 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.45 | 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 |
3e4ab494227172f11769c505293787318325f5f8 | 4,198 | py | Python | datasync.py | lianwutech/datasync | cd07ac854d83b859d6bffcff85a58c44cfb7f8fb | [
"Apache-2.0"
] | null | null | null | datasync.py | lianwutech/datasync | cd07ac854d83b859d6bffcff85a58c44cfb7f8fb | [
"Apache-2.0"
] | null | null | null | datasync.py | lianwutech/datasync | cd07ac854d83b859d6bffcff85a58c44cfb7f8fb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
lianwuyun与业务平台间的数据同步
系统实时监控mqtt平台,按照指定格式,将数据写到sql server中。
当数据来时才打开sqlserver
"""
from __future__ import print_function
import time
import json
import threading
import logging
import paho.mqtt.client as mqtt
import setting
from libs.datasync import *
from libs.msodb... | 27.083871 | 104 | 0.601715 | 504 | 4,198 | 4.811508 | 0.376984 | 0.037113 | 0.03134 | 0.027216 | 0.125773 | 0.035464 | 0.014845 | 0.014845 | 0 | 0 | 0 | 0.005013 | 0.28728 | 4,198 | 154 | 105 | 27.25974 | 0.805481 | 0.097904 | 0 | 0.223404 | 0 | 0 | 0.156293 | 0.012887 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095745 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e53a6db8e1c599f38bdccd2d5eed14fd3d12109 | 1,234 | py | Python | src/conv_json.py | fullkawa/gm_clustering | b6605d804c5794be7fd9e953af12d11586727ea4 | [
"MIT"
] | null | null | null | src/conv_json.py | fullkawa/gm_clustering | b6605d804c5794be7fd9e953af12d11586727ea4 | [
"MIT"
] | null | null | null | src/conv_json.py | fullkawa/gm_clustering | b6605d804c5794be7fd9e953af12d11586727ea4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import codecs
import json
import pandas as pd
csvlist = ['../data/game_450clustered.csv',
'../data/game_150clustered.csv',
'../data/game_50clustered.csv']
for csv in csvlist:
gamelist = pd.read_csv(csv, encoding='utf-8', header=None)
data = []
prevclnumber = -1
... | 29.380952 | 60 | 0.535656 | 130 | 1,234 | 5.046154 | 0.530769 | 0.018293 | 0.033537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039489 | 0.302269 | 1,234 | 41 | 61 | 30.097561 | 0.722416 | 0.017018 | 0 | 0 | 0 | 0 | 0.214699 | 0.071016 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e54d5936ca3436c2ad5603263ee578801519e61 | 976 | py | Python | src/models/verified_external_account.py | magnublo/msc-darkweb-scraping | 7cfb20d9013534d2ad71c388ee59f70b8450773c | [
"MIT"
] | null | null | null | src/models/verified_external_account.py | magnublo/msc-darkweb-scraping | 7cfb20d9013534d2ad71c388ee59f70b8450773c | [
"MIT"
] | null | null | null | src/models/verified_external_account.py | magnublo/msc-darkweb-scraping | 7cfb20d9013534d2ad71c388ee59f70b8450773c | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, ForeignKey, String
from sqlalchemy import Float, CHAR
from definitions import Base, MARKET_NAME_COLUMN_LENGTH, MYSQL_CASCADE, MYSQL_VARCHAR_DEFAULT_LENGTH
from src.models import seller_observation
TABLE_NAME = 'verified_external_account'
PRIMARY_KEY = 'id'
TABLE_NAME_AND_PRIMAR... | 33.655172 | 117 | 0.767418 | 122 | 976 | 5.721311 | 0.385246 | 0.130372 | 0.08596 | 0.063037 | 0.131805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164959 | 976 | 28 | 118 | 34.857143 | 0.856442 | 0 | 0 | 0 | 0 | 0 | 0.028689 | 0.025615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
3e58a401cf15b35bd180ec3ce87c419c0b3647d3 | 6,386 | py | Python | qm_project_sss_2019/MP2.py | Abdul-Zamani/qm_2019_sss_1 | fd665cccd90d8cf68cb97c8738cd32fb7981fe54 | [
"BSD-3-Clause"
] | null | null | null | qm_project_sss_2019/MP2.py | Abdul-Zamani/qm_2019_sss_1 | fd665cccd90d8cf68cb97c8738cd32fb7981fe54 | [
"BSD-3-Clause"
] | 1 | 2019-07-24T01:45:23.000Z | 2019-07-24T01:45:23.000Z | qm_project_sss_2019/MP2.py | MolSSI-Education/qm_2019_sss_1 | c1b3c1d66dd32e47edc5214bc32c5e996a03db26 | [
"BSD-3-Clause"
] | 8 | 2019-07-23T20:16:22.000Z | 2019-07-31T17:47:46.000Z | class MP2(Hartree_Fock):
def __init__(self, ionic_charge, fock_matrix, chi_tensor, interaction_matrix, atomic_coordinate, energy_scf, energy_ion):
super().__init__(ionic_charge, fock_matrix, chi_tensor, interaction_matrix, atomic_coordinates, energy_scf, energy_ion)
self.occupied_energy, self.virtual_energy, self.... | 53.663866 | 125 | 0.691669 | 852 | 6,386 | 5.036385 | 0.188967 | 0.018178 | 0.039385 | 0.035423 | 0.571895 | 0.532044 | 0.492193 | 0.461897 | 0.455838 | 0.431135 | 0 | 0.006491 | 0.227999 | 6,386 | 118 | 126 | 54.118644 | 0.863895 | 0 | 0 | 0 | 0 | 0 | 0.011547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
3e5e76cf760700e836739e85acab9ad35e85162a | 1,157 | py | Python | DataUtils/eval.py | bamtercelboo/pytorch_Joint-Word-Segmentation-and-POS-Tagging | 32698061fc500ed7f462d9b72be6cdb9468f1d10 | [
"Apache-2.0"
] | 46 | 2018-09-04T05:41:31.000Z | 2022-01-07T11:33:55.000Z | DataUtils/eval.py | zhangmeishan/pytorch_Joint-Word-Segmentation-and-POS-Tagging | 10c8395334b244cc98acc6e0816632ee5a54faa0 | [
"Apache-2.0"
] | 7 | 2018-11-28T06:11:20.000Z | 2019-11-12T06:20:56.000Z | DataUtils/eval.py | zhangmeishan/pytorch_Joint-Word-Segmentation-and-POS-Tagging | 10c8395334b244cc98acc6e0816632ee5a54faa0 | [
"Apache-2.0"
] | 13 | 2018-09-09T11:41:39.000Z | 2022-01-27T08:22:37.000Z | class Eval:
"""
Eval
"""
def __init__(self):
self.predict_num = 0
self.correct_num = 0
self.gold_num = 0
self.precision = 0
self.recall = 0
self.fscore = 0
def clear(self):
"""
:return:
"""
self.predict_num = 0
... | 22.25 | 93 | 0.490925 | 131 | 1,157 | 4.198473 | 0.160305 | 0.118182 | 0.116364 | 0.167273 | 0.605455 | 0.425455 | 0.294545 | 0.294545 | 0.294545 | 0.294545 | 0 | 0.03592 | 0.398444 | 1,157 | 51 | 94 | 22.686275 | 0.75431 | 0.026793 | 0 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0 | 0 | 0.225806 | 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 |
3e61986dc39f64709efda69fdf5f64c0fd56374e | 12,576 | py | Python | ankidict/addon/dict_window.py | wojtex/millandict | 6601873a1541ef7aaf938ac1a6b7aecb5f82cbf8 | [
"MIT"
] | 1 | 2015-10-15T19:04:05.000Z | 2015-10-15T19:04:05.000Z | ankidict/addon/dict_window.py | wojtex/ankidict | 6601873a1541ef7aaf938ac1a6b7aecb5f82cbf8 | [
"MIT"
] | 9 | 2015-03-24T08:06:51.000Z | 2015-05-21T13:44:10.000Z | ankidict/addon/dict_window.py | wojtex/ankidict | 6601873a1541ef7aaf938ac1a6b7aecb5f82cbf8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PyQt library
from aqt.qt import *
import aqt.qt as QtGui
from PyQt4 import QtCore
from PyQt4 import QtWebKit
from addon import collection
from libdict import macmillan
import re
import datetime
from addon.collection import get_plugin
from addon import basegui
# TODO LIST:
# - (edit mode) in... | 37.207101 | 153 | 0.632554 | 1,575 | 12,576 | 4.883175 | 0.243175 | 0.024314 | 0.033156 | 0.014823 | 0.29684 | 0.23586 | 0.182681 | 0.152646 | 0.134963 | 0.134963 | 0 | 0.001587 | 0.248648 | 12,576 | 337 | 154 | 37.317507 | 0.812361 | 0.197599 | 0 | 0.340426 | 0 | 0.008511 | 0.062214 | 0.015329 | 0.004255 | 0 | 0 | 0.002967 | 0 | 0 | null | null | 0.004255 | 0.042553 | null | null | 0.008511 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e7762043cf4f4ddf05dcc162bfa02b4e182c055 | 918 | py | Python | hw/hw1/HW1_1.py | jon-bassi/crypto-tools | c0623dd3edda9dd5a24032986990e056f98f7f90 | [
"MIT"
] | null | null | null | hw/hw1/HW1_1.py | jon-bassi/crypto-tools | c0623dd3edda9dd5a24032986990e056f98f7f90 | [
"MIT"
] | null | null | null | hw/hw1/HW1_1.py | jon-bassi/crypto-tools | c0623dd3edda9dd5a24032986990e056f98f7f90 | [
"MIT"
] | null | null | null | __author__ = 'jon-bassi'
import sys
import IndexOfCoincidence
import Vignere
import ChiSquaredStatistic
if len(sys.argv) != 2:
print 'error executing HW1_1.py\nusage: python HW1_1.py [text]'
sys.exit(0)
# find ic of different periods, target is > 0.06
# cipher text is hogvkiougtbtwlittwkopovsvebsvkiougtbtwl... | 31.655172 | 208 | 0.788671 | 96 | 918 | 7.427083 | 0.552083 | 0.019635 | 0.01683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0123 | 0.114379 | 918 | 28 | 209 | 32.785714 | 0.864699 | 0.344227 | 0 | 0 | 0 | 0 | 0.172241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e7853dea722644a5533212779afac9ff5647cfe | 5,248 | py | Python | src/main.py | asukiaaa/raspi_solar_power_plant_manager | 9625b7e87a5e76a53a52df453ed8f7635656ec83 | [
"MIT"
] | null | null | null | src/main.py | asukiaaa/raspi_solar_power_plant_manager | 9625b7e87a5e76a53a52df453ed8f7635656ec83 | [
"MIT"
] | null | null | null | src/main.py | asukiaaa/raspi_solar_power_plant_manager | 9625b7e87a5e76a53a52df453ed8f7635656ec83 | [
"MIT"
] | null | null | null | import serial
import time
import requests
import os
import logging
import RPi.GPIO as GPIO
import ConfigParser
import tracer_charge_controller
import ina226_controller
this_dir_path = os.path.dirname(os.path.realpath(__file__))
relay_pin = 18
# get average of 6 time in 1 min
loop_num_to_get_average = 6
loop_interval... | 31.053254 | 132 | 0.703887 | 737 | 5,248 | 4.594301 | 0.208955 | 0.058476 | 0.038393 | 0.040165 | 0.448317 | 0.304489 | 0.253101 | 0.213231 | 0.172475 | 0.151211 | 0 | 0.015 | 0.199695 | 5,248 | 168 | 133 | 31.238095 | 0.79119 | 0.09375 | 0 | 0.351563 | 0 | 0 | 0.136584 | 0.042221 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046875 | 0.070313 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e795d3c6881f8fbd0e2d3fb12f8c347a76f8a35 | 181 | py | Python | programmers-lecture/3.recursion/1.get_sum.py | khh180cm/algorithm | f40990479b6a4ba466073defcd6e8ca771c0b886 | [
"MIT"
] | null | null | null | programmers-lecture/3.recursion/1.get_sum.py | khh180cm/algorithm | f40990479b6a4ba466073defcd6e8ca771c0b886 | [
"MIT"
] | null | null | null | programmers-lecture/3.recursion/1.get_sum.py | khh180cm/algorithm | f40990479b6a4ba466073defcd6e8ca771c0b886 | [
"MIT"
] | null | null | null | """
1부터 N까지 모든 자연수의 합을 구하시오
S(N) = N + S(N-1)
"""
def get_sum(num):
if num == 1:
return 1
else:
return num + get_sum(num-1)
res = get_sum(10)
print(res)
| 11.3125 | 35 | 0.519337 | 34 | 181 | 2.676471 | 0.558824 | 0.197802 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 0.320442 | 181 | 15 | 36 | 12.066667 | 0.682927 | 0.226519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 |
3e7a2706bc2452375cc26f17434edf2f6363c171 | 2,378 | py | Python | modules/lib/homekit/accessory.py | yansinan/pycameresp | e239b4db110bffeb6bbdae6930d2b78562d21e35 | [
"MIT"
] | 28 | 2021-01-19T10:53:20.000Z | 2022-03-24T13:57:09.000Z | modules/lib/homekit/accessory.py | yansinan/pycameresp | e239b4db110bffeb6bbdae6930d2b78562d21e35 | [
"MIT"
] | 5 | 2021-02-28T23:00:23.000Z | 2022-03-30T07:36:21.000Z | modules/lib/homekit/accessory.py | yansinan/pycameresp | e239b4db110bffeb6bbdae6930d2b78562d21e35 | [
"MIT"
] | 9 | 2021-02-28T23:01:37.000Z | 2022-03-24T13:57:18.000Z | # Distributed under MIT License
# Copyright (c) 2021 Remi BERTHOLET
""" Homekit accessory class """
from homekit.server import *
class Accessory:
""" Homekit accessory class """
CID_NONE = 0
CID_OTHER = 1
CID_BRIDGE = 2
CID_FAN = 3
CID_GARAGE_DOOR_OPENER ... | 38.983607 | 210 | 0.632464 | 274 | 2,378 | 5.255474 | 0.459854 | 0.05 | 0.038889 | 0.031944 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040138 | 0.266611 | 2,378 | 60 | 211 | 39.633333 | 0.78555 | 0.248528 | 0 | 0 | 0 | 0 | 0.083381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.043478 | 0 | 0.695652 | 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 |
3e7d11bfefa1c47c6632a631d59f3ffab8910830 | 370 | py | Python | All_Source_Code/KNearestNeighbors/KNearestNeighbors_3.py | APMonitor/pds | fa9a7ec920802de346dcdf7f5dd92d752142c16f | [
"MIT"
] | 11 | 2021-01-21T09:46:29.000Z | 2022-03-16T19:33:10.000Z | All_Source_Code/KNearestNeighbors/KNearestNeighbors_3.py | the-mahapurush/pds | 7cb4087dd8e75cb1e9b2a4283966c798175f61f7 | [
"MIT"
] | 1 | 2022-03-16T19:47:09.000Z | 2022-03-16T20:11:50.000Z | All_Source_Code/KNearestNeighbors/KNearestNeighbors_3.py | the-mahapurush/pds | 7cb4087dd8e75cb1e9b2a4283966c798175f61f7 | [
"MIT"
] | 12 | 2021-02-08T21:11:11.000Z | 2022-03-20T12:42:49.000Z | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.datasets import make_blobs
n_samples = 100
features, label = make_blobs(n_samples=n_samples, centers=2,\
n_features=2,random_state=17)
data = pd.DataFrame({'x':features[:,0],'y':features[:,1],\
... | 33.636364 | 61 | 0.654054 | 54 | 370 | 4.351852 | 0.611111 | 0.102128 | 0.085106 | 0.144681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031034 | 0.216216 | 370 | 11 | 62 | 33.636364 | 0.77931 | 0 | 0 | 0 | 0 | 0 | 0.010782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3e8235e29bc5c07d02829594c032b5e103fe24a7 | 530 | py | Python | scripts/sunny-edge-plants-scraper.py | jvillemare/aloe-ha | 7b421ecaa7935d05f215dd8987f82294dbe52d4c | [
"MIT"
] | 1 | 2020-09-01T03:14:41.000Z | 2020-09-01T03:14:41.000Z | scripts/sunny-edge-plants-scraper.py | wagnerb3/Aloe-Ha | 842d1745b25e4bcbd0cd39d0ea5da378a65045cd | [
"MIT"
] | null | null | null | scripts/sunny-edge-plants-scraper.py | wagnerb3/Aloe-Ha | 842d1745b25e4bcbd0cd39d0ea5da378a65045cd | [
"MIT"
] | null | null | null | # TODO: for excel spreadsheet
import pandas as pd
import json
df=pd.read_excel("sunny-edge-plants-data.xlsx")
print(df)
keys=df.keys()
plants={}
for i in range(len(df)):
name=df.loc[i][0].strip().split("/")[0]
plants[name]={}
plants[name]["latin"]=df.loc[i][0].strip().split("/")[1]
for j in range(1,len... | 27.894737 | 68 | 0.620755 | 96 | 530 | 3.416667 | 0.416667 | 0.091463 | 0.109756 | 0.064024 | 0.103659 | 0.103659 | 0 | 0 | 0 | 0 | 0 | 0.011013 | 0.143396 | 530 | 19 | 69 | 27.894737 | 0.711454 | 0.050943 | 0 | 0 | 0 | 0 | 0.131474 | 0.10757 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e86c39e2655df6aae955982267d3a05b39a6201 | 2,591 | py | Python | cogs/core.py | jgayfer/Spirit | 024bc60727f92fb742daf0d28a3465a56820a7c0 | [
"MIT"
] | 34 | 2017-08-28T18:57:55.000Z | 2021-06-12T18:04:20.000Z | cogs/core.py | jgayfer/Spirit | 024bc60727f92fb742daf0d28a3465a56820a7c0 | [
"MIT"
] | 75 | 2017-07-27T22:26:58.000Z | 2019-06-30T06:20:43.000Z | cogs/core.py | jgayfer/Spirit | 024bc60727f92fb742daf0d28a3465a56820a7c0 | [
"MIT"
] | 24 | 2017-08-28T00:27:02.000Z | 2022-03-02T22:31:00.000Z | from discord.ext import commands
import discord
import asyncio
from cogs.utils import constants
from cogs.utils.message_manager import MessageManager
class Core:
"""Core functionality required for the bot to function"""
def __init__(self, bot):
self.bot = bot
async def on_ready(self):
... | 29.781609 | 111 | 0.63296 | 313 | 2,591 | 5.099042 | 0.364217 | 0.084586 | 0.100877 | 0.101504 | 0.090852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279815 | 2,591 | 86 | 112 | 30.127907 | 0.855305 | 0.057507 | 0 | 0.145455 | 0 | 0 | 0.080954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.072727 | 0.090909 | 0 | 0.163636 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3e8751cdac9be0d1736b7fbc39e3f26c922b786e | 2,434 | py | Python | houston/valueRange.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 3 | 2018-11-12T08:04:27.000Z | 2021-12-01T11:25:33.000Z | houston/valueRange.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 220 | 2017-10-02T19:49:10.000Z | 2019-08-01T22:08:01.000Z | houston/valueRange.py | afsafzal/Houston | fb18848cf5841074ab421e1624c586e1d6c7c669 | [
"MIT"
] | 2 | 2018-10-04T21:03:58.000Z | 2018-10-08T13:33:56.000Z | import random
class ValueRange(object):
"""
Used to represent a range of possible values for a variable, parameter,
or setting.
"""
def sample(self):
"""
Uses uniform selection to sample a single value from this range.
"""
raise NotImplementedError
@property
... | 27.977011 | 78 | 0.595316 | 276 | 2,434 | 5.039855 | 0.315217 | 0.069015 | 0.028037 | 0.040978 | 0.273185 | 0.067577 | 0.067577 | 0.067577 | 0.067577 | 0 | 0 | 0.001793 | 0.312654 | 2,434 | 86 | 79 | 28.302326 | 0.829647 | 0.224322 | 0 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.212766 | false | 0 | 0.021277 | 0.06383 | 0.425532 | 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 |
e41ca8b216d804c38ef9af887500db7cd875b9a6 | 425 | py | Python | txt/count_sentences.py | idin/txt | 3e42f2b6e275498b2e17baf9b41843088d8a39d3 | [
"MIT"
] | null | null | null | txt/count_sentences.py | idin/txt | 3e42f2b6e275498b2e17baf9b41843088d8a39d3 | [
"MIT"
] | null | null | null | txt/count_sentences.py | idin/txt | 3e42f2b6e275498b2e17baf9b41843088d8a39d3 | [
"MIT"
] | null | null | null | ENDINGS = ['.', '!', '?', ';']
def count_sentences(text):
text = text.strip()
if len(text) == 0:
return 0
split_result = None
for ending in ENDINGS:
separator = f'{ending} '
if split_result is None:
split_result = text.split(separator)
else:
split_result = [y for x in split_result for y in x.spli... | 19.318182 | 71 | 0.665882 | 64 | 425 | 4.25 | 0.390625 | 0.242647 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.2 | 425 | 21 | 72 | 20.238095 | 0.788235 | 0 | 0 | 0 | 0 | 0 | 0.030588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e41dd3d91cb2f2bfaee7666d46b264919876a825 | 228 | py | Python | Crawlers/Python/ClaudiaHui/text.py | sailinglove/personal-general | b2e932dcd7989bdf856d4852e38f96cbbfc9c907 | [
"MIT"
] | 1 | 2020-06-19T11:47:23.000Z | 2020-06-19T11:47:23.000Z | Crawlers/Python/ClaudiaHui/text.py | sailinglove/personal-general | b2e932dcd7989bdf856d4852e38f96cbbfc9c907 | [
"MIT"
] | null | null | null | Crawlers/Python/ClaudiaHui/text.py | sailinglove/personal-general | b2e932dcd7989bdf856d4852e38f96cbbfc9c907 | [
"MIT"
] | null | null | null | from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.haodf.com/doctor/1013224538.html")
print(driver.find_element_by_xpath("//span[@class='per-sta-data js-total-new-pv']").text.replace(",","")[:-1]) | 57 | 110 | 0.736842 | 34 | 228 | 4.852941 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050228 | 0.039474 | 228 | 4 | 110 | 57 | 0.703196 | 0 | 0 | 0 | 0 | 0 | 0.393013 | 0.117904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 |
e41e868138acfeaa3ee244de4cc2d6f85cb6b840 | 3,217 | py | Python | src/tumblr.py | j777y/reddit-tumblr-bot | cca5a803c6ce9088f75dccce1b9be11513ed1669 | [
"MIT"
] | 8 | 2015-02-09T22:05:55.000Z | 2021-01-20T16:18:24.000Z | src/tumblr.py | j777y/reddit-tumblr-bot | cca5a803c6ce9088f75dccce1b9be11513ed1669 | [
"MIT"
] | null | null | null | src/tumblr.py | j777y/reddit-tumblr-bot | cca5a803c6ce9088f75dccce1b9be11513ed1669 | [
"MIT"
] | 2 | 2017-12-16T17:01:18.000Z | 2018-09-24T01:58:28.000Z | import pytumblr, ConfigParser, re, sys
config = ConfigParser.RawConfigParser()
config.read('settings.cfg')
class API(object):
# initialize Tumblr client
def __init__(self):
self.t = pytumblr.TumblrRestClient(
config.get('tumblr', 'consumerKey'),
config.get('tumblr', 'consumerSe... | 36.556818 | 186 | 0.595275 | 362 | 3,217 | 5.256906 | 0.298343 | 0.031529 | 0.039411 | 0.033631 | 0.482922 | 0.451393 | 0.436153 | 0.402522 | 0.361534 | 0.344719 | 0 | 0.008493 | 0.267952 | 3,217 | 88 | 187 | 36.556818 | 0.799575 | 0.104445 | 0 | 0.360656 | 0 | 0.016393 | 0.213863 | 0.026472 | 0.016393 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016393 | null | null | 0.131148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e421ec661a72b6947b425326d9a661c7bf227b19 | 437 | py | Python | codes_/1013_Partition_Array_Into_Three_Parts_With_Equal_Sum.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1013_Partition_Array_Into_Three_Parts_With_Equal_Sum.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1013_Partition_Array_Into_Three_Parts_With_Equal_Sum.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [1013. Partition Array Into Three Parts With Equal Sum](https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/)
# 問題:3つのグループの和が等しくなるように2箇所で区切れるかを返せ
# 解法:和の1/3に等しい回数を数える
class Solution:
def canThreePartsEqualSum(self, A: List[int]) -> bool:
s = sum(A)
c, cs, s3 = 0, 0, s ... | 36.416667 | 140 | 0.578947 | 62 | 437 | 4.080645 | 0.612903 | 0.110672 | 0.142292 | 0.181818 | 0.316206 | 0.316206 | 0.316206 | 0.316206 | 0 | 0 | 0 | 0.050794 | 0.279176 | 437 | 11 | 141 | 39.727273 | 0.752381 | 0.437071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
e4247921cc3ebe4866ddea14207d8489ad701a3f | 6,658 | py | Python | quex/engine/analyzer/mega_state/path_walker/TEST/find-2.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/analyzer/mega_state/path_walker/TEST/find-2.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/analyzer/mega_state/path_walker/TEST/find-2.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import sys
import os
sys.path.insert(0, os.environ["QUEX_PATH"])
from quex.engine.misc.interval_handling import *
import quex.engine.state_machine.core as core
import quex.engine.analyzer.mega_state.path_walker.core as paths
import quex.engine.analyzer.engine_supply_factory as en... | 36.988889 | 103 | 0.571944 | 904 | 6,658 | 4.044248 | 0.232301 | 0.090263 | 0.094365 | 0.049234 | 0.366521 | 0.254923 | 0.194475 | 0.142779 | 0.099836 | 0.088895 | 0 | 0.076377 | 0.280264 | 6,658 | 179 | 104 | 37.195531 | 0.686561 | 0.137128 | 0 | 0.148936 | 0 | 0 | 0.07561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095745 | null | null | 0.117021 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e426364087cfe34184e204979e55de8a186ad1c9 | 267 | py | Python | setup.py | 2dadsgn/smart-vase-sensor-raspberry | 54051dec478dd94d3a4e04772a1a50c842b687ff | [
"Apache-2.0"
] | null | null | null | setup.py | 2dadsgn/smart-vase-sensor-raspberry | 54051dec478dd94d3a4e04772a1a50c842b687ff | [
"Apache-2.0"
] | null | null | null | setup.py | 2dadsgn/smart-vase-sensor-raspberry | 54051dec478dd94d3a4e04772a1a50c842b687ff | [
"Apache-2.0"
] | null | null | null |
from setuptools import setup,find_packages
setup(
name = "Freenove_DHT",
version = "V1.0.0",
description = "Read DHT Sensor",
author = "Freenove",
url = "http://www.freenove.com",
license = " ",
packages = find_packages(),
scripts = ["Freenove_DHT.py"],
)
| 19.071429 | 42 | 0.666667 | 33 | 267 | 5.272727 | 0.69697 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.164794 | 267 | 13 | 43 | 20.538462 | 0.766816 | 0 | 0 | 0 | 0 | 0 | 0.300752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e42c1a3a1023d43877fdb53633b44a475adc4255 | 960 | py | Python | python_api/queries.py | sven9/python-api | 3396c3f829ced3a0a98591cb0ebf12c37fba710b | [
"MIT"
] | 1 | 2021-04-16T20:39:04.000Z | 2021-04-16T20:39:04.000Z | python_api/queries.py | sven9/python-api | 3396c3f829ced3a0a98591cb0ebf12c37fba710b | [
"MIT"
] | null | null | null | python_api/queries.py | sven9/python-api | 3396c3f829ced3a0a98591cb0ebf12c37fba710b | [
"MIT"
] | null | null | null | from sqlalchemy.exc import SQLAlchemyError
from python_api import logger
from python_api.database import session
from python_api.models import HealthCheck, User
from python_api.repositories import user_repository
from python_api.schemas import HealthCheckSchema
class HealthCheckQuery:
@classmethod
def check_... | 25.945946 | 76 | 0.70625 | 110 | 960 | 5.972727 | 0.436364 | 0.076104 | 0.098935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00135 | 0.228125 | 960 | 36 | 77 | 26.666667 | 0.88529 | 0 | 0 | 0.115385 | 0 | 0 | 0.019792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.230769 | 0.038462 | 0.576923 | 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 |
e43163295e9fec4688094db69bcf0e88b6ee3de3 | 1,586 | py | Python | tests/test_queryable_select_many.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 5 | 2016-04-04T16:49:11.000Z | 2020-10-12T13:00:06.000Z | tests/test_queryable_select_many.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 3 | 2016-04-08T16:13:54.000Z | 2022-02-03T15:23:48.000Z | tests/test_queryable_select_many.py | dlshriver/pinq | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | null | null | null | import unittest
import pinq
class queryable_select_many_tests(unittest.TestCase):
def setUp(self):
self.queryable1 = pinq.as_queryable([[1, 2, 3], [2, 8, 10], [4, 5, 3]])
self.queryable2 = pinq.as_queryable([{"a": [1, 3, 4], "list": [0, 9, 9]}, {
"list": [5, 2, 4]}, {"Fun": "apple", "... | 41.736842 | 96 | 0.559269 | 252 | 1,586 | 3.369048 | 0.202381 | 0.153121 | 0.024735 | 0.120141 | 0.550059 | 0.394582 | 0.355713 | 0.299176 | 0.299176 | 0.275618 | 0 | 0.109152 | 0.249054 | 1,586 | 37 | 97 | 42.864865 | 0.603694 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.25 | false | 0 | 0.071429 | 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 |
e439ffcb3ec82a2b64948693be6da31f6316586b | 4,293 | py | Python | mycroft/mycroft/batch/add_cluster.py | Yelp/mycroft | 9c6185891aa367bb85a179bff35fbf4501ddf848 | [
"MIT"
] | 50 | 2015-05-01T20:24:49.000Z | 2022-01-03T17:23:06.000Z | mycroft/mycroft/batch/add_cluster.py | Yelp/mycroft | 9c6185891aa367bb85a179bff35fbf4501ddf848 | [
"MIT"
] | 5 | 2015-05-07T23:29:09.000Z | 2021-11-15T17:46:46.000Z | mycroft/mycroft/batch/add_cluster.py | Yelp/mycroft | 9c6185891aa367bb85a179bff35fbf4501ddf848 | [
"MIT"
] | 13 | 2015-04-30T19:08:11.000Z | 2020-06-19T08:04:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This batch can be used to add clusers to Mycroft. If the --idempotent
option is used, the cluster will be upserted.
Recommended Usage:
docker run -i -t mycroft python -m mycroft.batch.add_cluster --help
"""
from mycroft.models.aws_connections import TableConnectio... | 30.446809 | 88 | 0.54321 | 438 | 4,293 | 5.082192 | 0.308219 | 0.039533 | 0.053459 | 0.039533 | 0.167116 | 0.105121 | 0.045822 | 0.045822 | 0.045822 | 0.045822 | 0 | 0.001098 | 0.363615 | 4,293 | 140 | 89 | 30.664286 | 0.81369 | 0.020964 | 0 | 0.234783 | 0 | 0 | 0.173946 | 0.015311 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008696 | 0.034783 | null | null | 0.017391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e43c119d4db52aa64705756ce99b8c481c466fc1 | 4,782 | py | Python | Desktop/vssh.py | jessemillar/pythonista | 05d8a8a4c7c86d32010eff292f80973f2e4c2589 | [
"MIT"
] | 1 | 2016-10-20T01:10:03.000Z | 2016-10-20T01:10:03.000Z | Desktop/vssh.py | jessemillar/pythonista | 05d8a8a4c7c86d32010eff292f80973f2e4c2589 | [
"MIT"
] | null | null | null | Desktop/vssh.py | jessemillar/pythonista | 05d8a8a4c7c86d32010eff292f80973f2e4c2589 | [
"MIT"
] | null | null | null | """Find the IP address of a VirtualBox virtual machine and ssh into it.\
Add or update /etc/hosts entries upon user interaction."""
import os
import subprocess
import sys
def check_exists(name):
"""Check if the virtual machine exists."""
virtualbox_exists = subprocess.Popen(["VBoxManage", "list", "vms"], ... | 36.503817 | 179 | 0.631117 | 673 | 4,782 | 4.405646 | 0.245171 | 0.045868 | 0.024283 | 0.022934 | 0.385497 | 0.36796 | 0.331535 | 0.279595 | 0.206071 | 0.165936 | 0 | 0.006208 | 0.258887 | 4,782 | 130 | 180 | 36.784615 | 0.830418 | 0.092848 | 0 | 0.447059 | 0 | 0.047059 | 0.267646 | 0.008659 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035294 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e43ca74bcfa4a29158f378530218772af9e06e3c | 867 | py | Python | src/lib/loadConf.py | eehello/Dshield | 4265e8c45d5be142bbe8e25e8e2da5a3b3bf269c | [
"Artistic-1.0-Perl"
] | 49 | 2016-12-10T13:26:51.000Z | 2022-03-02T05:46:20.000Z | src/lib/loadConf.py | knickersgod/Dshield | ef5b58d99bc479b92a97404b49d057d503e1a368 | [
"Artistic-1.0-Perl"
] | 4 | 2016-12-14T07:40:28.000Z | 2019-02-20T06:09:02.000Z | src/lib/loadConf.py | knickersgod/Dshield | ef5b58d99bc479b92a97404b49d057d503e1a368 | [
"Artistic-1.0-Perl"
] | 36 | 2016-12-11T01:44:36.000Z | 2021-06-29T03:51:13.000Z | #!/usr/bin/env python
# encoding=utf-8
import ConfigParser
import sys, os
sys.path.append("..")
PROC_DIR = os.path.abspath('..')
class LoadConfig:
cf = ''
filepath = PROC_DIR + "/conf/default.ini"
def __init__(self):
try:
f = open(self.filepath, 'r')
except IOError, e:
... | 24.083333 | 67 | 0.599769 | 103 | 867 | 4.990291 | 0.543689 | 0.058366 | 0.066148 | 0.081712 | 0.089494 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003072 | 0.249135 | 867 | 36 | 68 | 24.083333 | 0.786482 | 0.040369 | 0 | 0 | 0 | 0 | 0.058965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e449a010974002deb5b2134c9a6ed9a2139677c8 | 914 | py | Python | setup.py | dev-muhammad/imagee | 4cab6d6fa516904a9a0751bf40695cf8e6648d78 | [
"MIT"
] | 1 | 2021-08-28T13:05:25.000Z | 2021-08-28T13:05:25.000Z | setup.py | dev-muhammad/imagee | 4cab6d6fa516904a9a0751bf40695cf8e6648d78 | [
"MIT"
] | null | null | null | setup.py | dev-muhammad/imagee | 4cab6d6fa516904a9a0751bf40695cf8e6648d78 | [
"MIT"
] | null | null | null | import setuptools
def readme():
with open('README.md') as f:
return f.read()
setuptools.setup(name='imagee',
version='1.1',
description='Tool for image optimization',
long_description=readme(),
long_description_content_type='text/markdown',
classifiers=[
'Developmen... | 27.69697 | 62 | 0.605033 | 95 | 914 | 5.705263 | 0.757895 | 0.055351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.250547 | 914 | 32 | 63 | 28.5625 | 0.783942 | 0 | 0 | 0.071429 | 0 | 0 | 0.357768 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | true | 0 | 0.035714 | 0 | 0.107143 | 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 |
e44a0b89b29428140e6e6b152cfb814329725da3 | 54,169 | py | Python | c4/backends/sharedSQLite.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | null | null | null | c4/backends/sharedSQLite.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | 1 | 2017-10-17T21:51:40.000Z | 2017-10-17T21:51:40.000Z | c4/backends/sharedSQLite.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | null | null | null | """
Copyright (c) IBM 2015-2017. All Rights Reserved.
Project name: c4-system-manager
This project is licensed under the MIT License, see LICENSE
"""
import datetime
import glob
import json
import logging
import os
import sqlite3
from c4.system.backend import Backend, BackendImplementation, BackendKeyValueStore
from c... | 35.38145 | 144 | 0.557478 | 5,676 | 54,169 | 5.290521 | 0.091614 | 0.035166 | 0.02038 | 0.014553 | 0.557661 | 0.510174 | 0.471811 | 0.420727 | 0.384528 | 0.349162 | 0 | 0.002526 | 0.34948 | 54,169 | 1,530 | 145 | 35.404575 | 0.849651 | 0.033488 | 0 | 0.487179 | 0 | 0.001282 | 0.217223 | 0.006705 | 0 | 0 | 0 | 0.001307 | 0 | 0 | null | null | 0.001282 | 0.020513 | 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 |
e44b93158eedc88dbd386c2e02f8287a5b0666f2 | 2,192 | py | Python | src/filters/filter_reshape_table.py | aashish24/ParaViewGeophysics | d9a71ffd21a57fa0eb704c5f6893ec9b1ddf6da6 | [
"BSD-3-Clause"
] | null | null | null | src/filters/filter_reshape_table.py | aashish24/ParaViewGeophysics | d9a71ffd21a57fa0eb704c5f6893ec9b1ddf6da6 | [
"BSD-3-Clause"
] | null | null | null | src/filters/filter_reshape_table.py | aashish24/ParaViewGeophysics | d9a71ffd21a57fa0eb704c5f6893ec9b1ddf6da6 | [
"BSD-3-Clause"
] | null | null | null | Name = 'ReshapeTable'
Label = 'Reshape Table'
FilterCategory = 'CSM Geophysics Filters'
Help = 'This filter will take a vtkTable object and reshape it. This filter essentially treats vtkTables as 2D matrices and reshapes them using numpy.reshape in a C contiguous manner. Unfortunately, data fields will be renamed arbit... | 34.793651 | 279 | 0.677464 | 304 | 2,192 | 4.848684 | 0.5 | 0.030529 | 0.014925 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005938 | 0.231752 | 2,192 | 62 | 280 | 35.354839 | 0.869359 | 0.29562 | 0 | 0 | 0 | 0.030303 | 0.288857 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e44c8bdce286f405457c88b8d702f7e2344b762f | 7,562 | py | Python | Tests/tests.py | galbrads/Gear_Manager | 3b8ba0f455130556be21a9dbd43f4e9ae6243be9 | [
"MIT"
] | null | null | null | Tests/tests.py | galbrads/Gear_Manager | 3b8ba0f455130556be21a9dbd43f4e9ae6243be9 | [
"MIT"
] | null | null | null | Tests/tests.py | galbrads/Gear_Manager | 3b8ba0f455130556be21a9dbd43f4e9ae6243be9 | [
"MIT"
] | null | null | null | from __future__ import division
from PySide import QtCore
from PySide.QtTest import QTest
import Util
import sys
import os
dBName = '__TEST__.sqlite'
def mkMember(c='A', n=1, **kwargs):
date = '2{0:03}-{0:02}-{0:02}'.format(n)
bday = '2000-{0:02}-{0:02}'.format(n)
today = Util.convert_date('Qt2DB', QtCo... | 42.011111 | 108 | 0.619545 | 782 | 7,562 | 5.933504 | 0.268542 | 0.081466 | 0.104741 | 0.104095 | 0.125216 | 0.099784 | 0.047414 | 0.028017 | 0.028017 | 0.028017 | 0 | 0.01821 | 0.23023 | 7,562 | 179 | 109 | 42.24581 | 0.778904 | 0.061095 | 0 | 0.123077 | 0 | 0 | 0.153238 | 0.009031 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.007692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e4577eb8097268425222081b8eb321ce30e8e534 | 496 | py | Python | 2021Variables/V-Dem/extract-variables.py | glosophy/CatoHFI | cd9c285a919a1d6d11eef0c9eae115ad90116bc9 | [
"MIT"
] | null | null | null | 2021Variables/V-Dem/extract-variables.py | glosophy/CatoHFI | cd9c285a919a1d6d11eef0c9eae115ad90116bc9 | [
"MIT"
] | null | null | null | 2021Variables/V-Dem/extract-variables.py | glosophy/CatoHFI | cd9c285a919a1d6d11eef0c9eae115ad90116bc9 | [
"MIT"
] | null | null | null | import pandas as pd
vdem = pd.read_csv('V-Dem-CY-Full+Others-v10.csv')
print(vdem.head(5))
# Check dtypes
print(vdem.dtypes)
df = vdem[['year', 'country_name', 'v2clacfree', 'v2cltort', 'v2clkill', 'v2clfmove', 'v2cldmovem', 'v2cldmovew',
'v2cldiscm', 'v2cldiscw', 'v2meharjrn', 'v2meslfcen', 'v2mecenefm'... | 24.8 | 113 | 0.681452 | 63 | 496 | 5.285714 | 0.650794 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070938 | 0.118952 | 496 | 20 | 114 | 24.8 | 0.691076 | 0.139113 | 0 | 0 | 0 | 0 | 0.45283 | 0.120283 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e45c04acdd7493215f192bbda2993b34c49de549 | 13,803 | py | Python | scripts/ec2.py | ingomueller-net/Musketeer | 3ed41d93b0a61f00aa8a0b8ec084973b20956b3d | [
"Apache-2.0"
] | 42 | 2015-04-22T07:37:16.000Z | 2021-07-21T02:38:32.000Z | scripts/ec2.py | ingomueller-net/Musketeer | 3ed41d93b0a61f00aa8a0b8ec084973b20956b3d | [
"Apache-2.0"
] | 7 | 2016-05-26T11:41:31.000Z | 2016-07-27T15:46:15.000Z | scripts/ec2.py | ingomueller-net/Musketeer | 3ed41d93b0a61f00aa8a0b8ec084973b20956b3d | [
"Apache-2.0"
] | 13 | 2015-06-05T02:46:15.000Z | 2022-01-21T07:05:51.000Z | #!/usr/bin/python
import boto
import boto.ec2
import boto.iam
import sys, os
import time
from boto.ec2.blockdevicemapping import BlockDeviceType
from boto.ec2.blockdevicemapping import BlockDeviceMapping
from datetime import datetime
from optparse import OptionParser
from sets import Set
from subprocess import call
fro... | 43.40566 | 93 | 0.607332 | 1,561 | 13,803 | 5.181935 | 0.143498 | 0.025219 | 0.024107 | 0.01125 | 0.466189 | 0.393868 | 0.370874 | 0.349487 | 0.303746 | 0.257139 | 0 | 0.008124 | 0.286604 | 13,803 | 317 | 94 | 43.542587 | 0.813344 | 0.017967 | 0 | 0.362676 | 0 | 0 | 0.172264 | 0.02288 | 0 | 0 | 0 | 0.003155 | 0 | 0 | null | null | 0 | 0.052817 | null | null | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e460ed7bd3f49d18ec763a6f3dec448b41ea50a7 | 2,995 | py | Python | czsc/enum.py | xyztimi/czsc | 5f52b3eb622413ecdf3637ca6f2fd2563f8682bb | [
"MIT"
] | null | null | null | czsc/enum.py | xyztimi/czsc | 5f52b3eb622413ecdf3637ca6f2fd2563f8682bb | [
"MIT"
] | null | null | null | czsc/enum.py | xyztimi/czsc | 5f52b3eb622413ecdf3637ca6f2fd2563f8682bb | [
"MIT"
] | null | null | null | # coding: utf-8
from enum import Enum
class Mark(Enum):
D = "底分型"
G = "顶分型"
class Direction(Enum):
Up = "向上"
Down = "向下"
class Freq(Enum):
F1 = "1分钟"
F5 = "5分钟"
F15 = "15分钟"
F30 = "30分钟"
F60 = "60分钟"
D = "日线"
W = "周线"
M = "月线"
class FdThree(Enum):
"""三段形态分类"""
... | 18.374233 | 88 | 0.559933 | 270 | 2,995 | 6.211111 | 0.766667 | 0.020871 | 0.028623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112004 | 0.293489 | 2,995 | 162 | 89 | 18.487654 | 0.680529 | 0.208681 | 0 | 0.045455 | 0 | 0 | 0.273079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009091 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e46e4493c017ee6681459ed7ea5bab47b624d34b | 357 | py | Python | venv/Scripts/ex039.py | SamuelNunesDev/starting_point_in_python | 9a9e39cabb5f3526ee0037012e3943898c1d9dfa | [
"MIT"
] | null | null | null | venv/Scripts/ex039.py | SamuelNunesDev/starting_point_in_python | 9a9e39cabb5f3526ee0037012e3943898c1d9dfa | [
"MIT"
] | null | null | null | venv/Scripts/ex039.py | SamuelNunesDev/starting_point_in_python | 9a9e39cabb5f3526ee0037012e3943898c1d9dfa | [
"MIT"
] | null | null | null | from datetime import date
hoje = date.today().year
ano = input('Digite a data do seu nascimento: ').strip()
ano = ano[6:]
ano = hoje - int(ano)
if ano == 18:
print('Está na hora de se alistar!')
elif ano > 18:
print(f'Já passou {ano - 18} ano(s) que você deveria ter se alistado!')
else:
print(f'Falta {18 -... | 27.461538 | 75 | 0.647059 | 63 | 357 | 3.666667 | 0.634921 | 0.064935 | 0.08658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03169 | 0.204482 | 357 | 12 | 76 | 29.75 | 0.78169 | 0 | 0 | 0 | 0 | 0 | 0.464986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e47d4761b7e73d1952de80b667664c73d676dfce | 2,673 | py | Python | src/dal/context/dbconnection.py | pgecsenyi/piepy | 37bf6cb5bc8c4f9da3f695216beda7353d79fb29 | [
"MIT"
] | 1 | 2018-03-26T22:39:36.000Z | 2018-03-26T22:39:36.000Z | src/dal/context/dbconnection.py | pgecsenyi/piepy | 37bf6cb5bc8c4f9da3f695216beda7353d79fb29 | [
"MIT"
] | null | null | null | src/dal/context/dbconnection.py | pgecsenyi/piepy | 37bf6cb5bc8c4f9da3f695216beda7353d79fb29 | [
"MIT"
] | null | null | null | import os
import sqlite3
class DbConnection:
####################################################################################################################
# Constructor.
####################################################################################################################
def __i... | 35.64 | 120 | 0.396932 | 189 | 2,673 | 5.280423 | 0.280423 | 0.154309 | 0.096192 | 0.072144 | 0.228457 | 0.184369 | 0.184369 | 0.122244 | 0.122244 | 0.122244 | 0 | 0.002826 | 0.205761 | 2,673 | 74 | 121 | 36.121622 | 0.467263 | 0.046016 | 0 | 0.210526 | 0 | 0 | 0.03296 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e48155cdff216a75a5ddb0df85861f3fb55d8e3d | 756 | py | Python | Chapter_3/Tuples/tuple.py | random-forest-ai/python_course | cd6b7f30e1932312c05178e6bb66cc95c72fe6c1 | [
"MIT"
] | null | null | null | Chapter_3/Tuples/tuple.py | random-forest-ai/python_course | cd6b7f30e1932312c05178e6bb66cc95c72fe6c1 | [
"MIT"
] | null | null | null | Chapter_3/Tuples/tuple.py | random-forest-ai/python_course | cd6b7f30e1932312c05178e6bb66cc95c72fe6c1 | [
"MIT"
] | null | null | null | if __name__ == '__main__':
# Creating a tuple
x = ()
x = (1, )
print(type(x))
x = (1)
print(type(x))
x = (1, 2, 3, "Apple", True, 4.0)
x = ((1, 2, 3), (4, 5, 6))
#Accessing Tuple
x = (1, 2, 3, "Apple", True, (7, 7, 7), 4.0)
print(x[3])
print(x[-2])
print(x[1:2])... | 16.8 | 48 | 0.425926 | 129 | 756 | 2.387597 | 0.271318 | 0.058442 | 0.077922 | 0.064935 | 0.198052 | 0.165584 | 0.087662 | 0.087662 | 0 | 0 | 0 | 0.116466 | 0.34127 | 756 | 45 | 49 | 16.8 | 0.502008 | 0.079365 | 0 | 0.068966 | 0 | 0 | 0.056358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.586207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e481e916a2bd330d88ffdafe7da19ee1793686a3 | 718 | py | Python | countdown_employee_class_in_Python.py | agancsos/python | 00f7ca4372ae18f35474a9b899457057511ab71b | [
"MIT"
] | null | null | null | countdown_employee_class_in_Python.py | agancsos/python | 00f7ca4372ae18f35474a9b899457057511ab71b | [
"MIT"
] | null | null | null | countdown_employee_class_in_Python.py | agancsos/python | 00f7ca4372ae18f35474a9b899457057511ab71b | [
"MIT"
] | null | null | null | #!/bin/python
import datetime
class employee:
first=\"\";
last=\"\";
department=\"\";
start_date=\"\";
end_date=\"\";
def set_all(self,first,last,depart,start,end):
self.first=first;
self.last=last;
self.department=depart;
self.start_date=start;
self.end_date=end;
def date_diff(self... | 25.642857 | 87 | 0.683844 | 102 | 718 | 4.666667 | 0.411765 | 0.10084 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042453 | 0.114206 | 718 | 27 | 88 | 26.592593 | 0.705975 | 0.016713 | 0 | 0 | 0 | 0 | 0.070692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e486fd22e6d5bd35d9610c6dee4a84de1c69dab4 | 10,746 | py | Python | p2p.py | mrtj/pynaive | a2c8c4a464dc24e03af8a30e28abf30fd2ee9945 | [
"MIT"
] | 1 | 2022-02-26T04:30:37.000Z | 2022-02-26T04:30:37.000Z | p2p.py | AmidBidee/pyncoin | a2c8c4a464dc24e03af8a30e28abf30fd2ee9945 | [
"MIT"
] | null | null | null | p2p.py | AmidBidee/pyncoin | a2c8c4a464dc24e03af8a30e28abf30fd2ee9945 | [
"MIT"
] | 2 | 2019-09-01T00:01:24.000Z | 2022-02-26T04:30:25.000Z | # pyncoin/p2p.py
''' Implements the p2p node of the blockchain. '''
from blockchain import Block, Blockchain
from utils import RawSerializable, format_exception
from transaction import Transaction
from autobahn.twisted.websocket import WebSocketAdapterProtocol
from autobahn.websocket.protocol import WebSocketProtoco... | 38.516129 | 105 | 0.686488 | 1,165 | 10,746 | 6.143348 | 0.181116 | 0.033254 | 0.022495 | 0.022635 | 0.324997 | 0.200643 | 0.129663 | 0.081319 | 0.036328 | 0.0204 | 0 | 0.001916 | 0.222781 | 10,746 | 278 | 106 | 38.654676 | 0.855005 | 0.126373 | 0 | 0.181818 | 0 | 0 | 0.091421 | 0.014515 | 0 | 0 | 0 | 0 | 0.02139 | 1 | 0.213904 | false | 0.016043 | 0.037433 | 0.010695 | 0.417112 | 0.101604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e4896fb976e7f10d5d3bcab60ea1e4501974e3f5 | 1,751 | py | Python | acs/acs/ErrorHandling/AcsToolException.py | intel/test-framework-and-suites-for-android | 3aae8452ae931437b3b5ac30f068dc22a8dc5b85 | [
"Apache-2.0"
] | 8 | 2018-09-14T01:34:01.000Z | 2021-07-01T02:00:23.000Z | acs/acs/ErrorHandling/AcsToolException.py | intel/test-framework-and-suites-for-android | 3aae8452ae931437b3b5ac30f068dc22a8dc5b85 | [
"Apache-2.0"
] | 3 | 2019-09-10T11:39:50.000Z | 2019-10-10T08:26:22.000Z | acs/acs/ErrorHandling/AcsToolException.py | intel/test-framework-and-suites-for-android | 3aae8452ae931437b3b5ac30f068dc22a8dc5b85 | [
"Apache-2.0"
] | 9 | 2018-10-11T15:14:03.000Z | 2021-02-17T11:37:20.000Z | """
Copyright (C) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softw... | 28.704918 | 74 | 0.713307 | 221 | 1,751 | 5.515837 | 0.520362 | 0.049221 | 0.049221 | 0.026251 | 0.055783 | 0.055783 | 0.055783 | 0 | 0 | 0 | 0 | 0.007267 | 0.214163 | 1,751 | 60 | 75 | 29.183333 | 0.878634 | 0.501999 | 0 | 0 | 0 | 0 | 0.184358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.777778 | 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 |
e489a0ee66040d1ff66aafbe4a1da8d7d251f7ef | 2,556 | py | Python | StreamPy/TestExamplesListToStreams/test_example_list_single_in_single_out_stateless.py | AnomalyInc/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | 2 | 2017-04-27T11:04:27.000Z | 2019-02-07T21:03:32.000Z | StreamPy/TestExamplesListToStreams/test_example_list_single_in_single_out_stateless.py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | StreamPy/TestExamplesListToStreams/test_example_list_single_in_single_out_stateless.py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | """This module contains examples of stream_func where f_type
is 'element' and stream_func has a single input stream, a
single output stream, and the operation is stateless.
The functions on static Python data structures are of the form:
element -> element
"""
if __package__ is None:
import sys
from os imp... | 26.905263 | 77 | 0.66471 | 428 | 2,556 | 3.831776 | 0.261682 | 0.067073 | 0.026829 | 0.026829 | 0.319512 | 0.313415 | 0.281098 | 0.191463 | 0.157317 | 0.119512 | 0 | 0.01882 | 0.230829 | 2,556 | 94 | 78 | 27.191489 | 0.815361 | 0.276604 | 0 | 0.24 | 0 | 0 | 0.117497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.28 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e48a478e4bdbc70a8ee3d4c958e9ffa5f72410c9 | 838 | py | Python | leetcode/108.convert-sorted-array-to-binary-search-tree.py | zhongqi1112/Hulk | 9e7e65368b8091068755ebf70c1e28ee883a480d | [
"MIT"
] | null | null | null | leetcode/108.convert-sorted-array-to-binary-search-tree.py | zhongqi1112/Hulk | 9e7e65368b8091068755ebf70c1e28ee883a480d | [
"MIT"
] | null | null | null | leetcode/108.convert-sorted-array-to-binary-search-tree.py | zhongqi1112/Hulk | 9e7e65368b8091068755ebf70c1e28ee883a480d | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=108 lang=python3
#
# [108] Convert Sorted Array to Binary Search Tree
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution... | 26.1875 | 60 | 0.547733 | 106 | 838 | 4.292453 | 0.471698 | 0.079121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023593 | 0.342482 | 838 | 31 | 61 | 27.032258 | 0.802178 | 0.448687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.545455 | 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 |
e4943e7f90780cbaa9e7d7c82ab5efaf3b990cc8 | 349 | py | Python | python/realtime_check.py | synappio/dv3-api-examples | 7f57fcb6918125e4a80cdf73c19693a362aeff2a | [
"MIT"
] | 1 | 2017-08-16T11:03:01.000Z | 2017-08-16T11:03:01.000Z | python/realtime_check.py | synappio/dv3-api-examples | 7f57fcb6918125e4a80cdf73c19693a362aeff2a | [
"MIT"
] | null | null | null | python/realtime_check.py | synappio/dv3-api-examples | 7f57fcb6918125e4a80cdf73c19693a362aeff2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
from __future__ import absolute_import, division, print_function
import logging
import sys
import dv3_api
logging.basicConfig(level=logging.INFO)
dv3_api.KEY, email = sys.argv[1:] # pylint: disable=unbalanced-tuple-unpacking
grade = dv3_api.realtime_check(email)
logging.info('... | 24.928571 | 79 | 0.773639 | 53 | 349 | 4.90566 | 0.679245 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019293 | 0.108883 | 349 | 13 | 80 | 26.846154 | 0.81672 | 0.223496 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e497ac3399c2ccf48df83b022c4e35ce967372bb | 3,204 | py | Python | tests/autoUploadFile.py | brainelectronics/This-project-can-be-used-to-upload-files-of-a-specific-directory-to-a-server-or-OTA-capable-device-v | ee969f6fb4a5d68d13dc026a93b739968abc1819 | [
"BSD-2-Clause"
] | 1 | 2019-11-01T16:44:26.000Z | 2019-11-01T16:44:26.000Z | tests/autoUploadFile.py | brainelectronics/AutoFileUploader | ee969f6fb4a5d68d13dc026a93b739968abc1819 | [
"BSD-2-Clause"
] | null | null | null | tests/autoUploadFile.py | brainelectronics/AutoFileUploader | ee969f6fb4a5d68d13dc026a93b739968abc1819 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/local/bin/python2
# -*- coding: UTF-8 -*-
#
"""
This script will search at the given path, defined in the
config.json file, for files with a specific patter.
This is also defined in the config.json file.
By using the SSH credits defined in the loginData.json file
the specified files will be uploaded to a remote... | 32.04 | 94 | 0.72784 | 395 | 3,204 | 5.820253 | 0.412658 | 0.008699 | 0.020879 | 0.015659 | 0.090474 | 0.022619 | 0 | 0 | 0 | 0 | 0 | 0.005614 | 0.166042 | 3,204 | 99 | 95 | 32.363636 | 0.85479 | 0.133271 | 0 | 0 | 0 | 0 | 0.172807 | 0.029825 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037736 | 0.075472 | null | null | 0.188679 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e49dff778195be5f2c33a601527f3c0ae2d87d10 | 504 | py | Python | setup.py | ffiiccuuss/torouterui | 7f79fd8b7cf50ab7e296c7fec8cdf970f73ed626 | [
"BSD-3-Clause"
] | 1 | 2016-01-25T08:47:12.000Z | 2016-01-25T08:47:12.000Z | setup.py | ffiiccuuss/torouterui | 7f79fd8b7cf50ab7e296c7fec8cdf970f73ed626 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ffiiccuuss/torouterui | 7f79fd8b7cf50ab7e296c7fec8cdf970f73ed626 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='torouterui',
version='0.0.1',
long_description=__doc__,
packages=['torouterui'],
include_package_data=True,
zip_safe=False,
install_requires=[
'Flask',
'python-augeas',
'setuptools'
],
dependanc... | 21 | 74 | 0.60119 | 49 | 504 | 5.938776 | 0.816327 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.255952 | 504 | 23 | 75 | 21.913043 | 0.768 | 0.039683 | 0 | 0.1 | 0 | 0 | 0.312629 | 0.045549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4b1b1d05319b3ec570032b8b469dcba526ed707 | 7,172 | py | Python | src/model_mockups/linear_classifier.py | kaylani2/machineLearning | 692623abf6fe02bde6c7da6c2f8c0ec526a3e8f8 | [
"MIT"
] | 7 | 2019-11-06T14:35:37.000Z | 2022-03-06T03:55:06.000Z | src/model_mockups/linear_classifier.py | kaylani2/machineLearning | 692623abf6fe02bde6c7da6c2f8c0ec526a3e8f8 | [
"MIT"
] | 10 | 2020-05-16T02:38:35.000Z | 2021-04-11T23:55:35.000Z | src/model_mockups/linear_classifier.py | kaylani2/machineLearning | 692623abf6fe02bde6c7da6c2f8c0ec526a3e8f8 | [
"MIT"
] | 2 | 2020-06-26T21:39:41.000Z | 2020-09-15T03:38:32.000Z | # Author: Kaylani Bochie
# github.com/kaylani2
# kaylani AT gta DOT ufrj DOT br
## Load dataset, describe, hadle categorical attributes
## CICIDS used as an example
import pandas as pd
import numpy as np
import sys
# Random state for eproducibility
STATE = 0
## Hard to not go over 80 columns
CICIDS_DIRECTORY = '../.... | 46.571429 | 79 | 0.55145 | 806 | 7,172 | 4.807692 | 0.372208 | 0.028903 | 0.013935 | 0.021677 | 0.209032 | 0.160774 | 0.132903 | 0.113548 | 0.10271 | 0.058323 | 0 | 0.005626 | 0.132599 | 7,172 | 153 | 80 | 46.875817 | 0.617264 | 0.320692 | 0 | 0.125 | 0 | 0 | 0.233219 | 0.034343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109375 | 0 | 0.109375 | 0.40625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e4c19c249c6e8c722963b6b2539ea8e35c5e4ce4 | 2,078 | py | Python | onap_data_provider/resources/project_resource.py | onap/integration-data-provider | 0565394ecbd96730bf982909693514ab88703708 | [
"Apache-2.0"
] | null | null | null | onap_data_provider/resources/project_resource.py | onap/integration-data-provider | 0565394ecbd96730bf982909693514ab88703708 | [
"Apache-2.0"
] | null | null | null | onap_data_provider/resources/project_resource.py | onap/integration-data-provider | 0565394ecbd96730bf982909693514ab88703708 | [
"Apache-2.0"
] | null | null | null | """Project resource module."""
"""
Copyright 2021 Deutsche Telekom AG
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 requir... | 28.081081 | 75 | 0.642445 | 252 | 2,078 | 5.238095 | 0.460317 | 0.058333 | 0.027273 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005281 | 0.270934 | 2,078 | 73 | 76 | 28.465753 | 0.866007 | 0.211742 | 0 | 0.083333 | 0 | 0 | 0.045952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.208333 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4c3c64a6df942cab099cd84c9b69c70147fe0ff | 2,157 | py | Python | setup.py | CSCfi/beacon-python | b96061a77226e316bd363657057ef52e86f4c66b | [
"Apache-2.0"
] | 11 | 2018-11-21T13:44:21.000Z | 2021-12-13T17:23:53.000Z | setup.py | CSCfi/beacon-python | b96061a77226e316bd363657057ef52e86f4c66b | [
"Apache-2.0"
] | 74 | 2018-09-10T04:41:52.000Z | 2022-02-11T06:53:29.000Z | setup.py | CSCfi/beacon-python | b96061a77226e316bd363657057ef52e86f4c66b | [
"Apache-2.0"
] | 6 | 2018-08-31T07:13:24.000Z | 2021-07-01T14:56:32.000Z | from setuptools import find_packages, setup
from beacon_api import __license__, __version__, __author__, __description__
setup(
name="beacon_api",
version=__version__,
url="https://beacon-python.rtfd.io/",
project_urls={
"Source": "https://github.com/CSCfi/beacon-python",
},
license=__... | 30.380282 | 76 | 0.53593 | 237 | 2,157 | 4.658228 | 0.561181 | 0.032609 | 0.04529 | 0.047101 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061238 | 0.288363 | 2,157 | 70 | 77 | 30.814286 | 0.65798 | 0.030134 | 0 | 0.089552 | 0 | 0 | 0.454067 | 0.065072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.029851 | 0 | 0.029851 | 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 |
e4cd60623b6036812907e7821d70fbe9945a0f11 | 4,565 | py | Python | run.py | abbyw24/Corrfunc | d9c821bcebd7225cf43ec9e09dfe817387c73f62 | [
"MIT"
] | null | null | null | run.py | abbyw24/Corrfunc | d9c821bcebd7225cf43ec9e09dfe817387c73f62 | [
"MIT"
] | null | null | null | run.py | abbyw24/Corrfunc | d9c821bcebd7225cf43ec9e09dfe817387c73f62 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from scipy import interpolate
from astropy.cosmology import LambdaCDM
import Corrfunc
from Corrfunc.utils import convert_rp_pi_counts_to_wp
from Corrfunc.mocks.DDrppi_mocks import DDrppi_mocks
from astropy.cosmology import LambdaCDM
import time
import plotter
def main():
#... | 34.323308 | 112 | 0.666375 | 722 | 4,565 | 3.961219 | 0.220222 | 0.01958 | 0.05035 | 0.031469 | 0.35035 | 0.272378 | 0.155245 | 0.155245 | 0.12028 | 0.12028 | 0 | 0.033828 | 0.203505 | 4,565 | 133 | 113 | 34.323308 | 0.75275 | 0.070537 | 0 | 0.045455 | 0 | 0 | 0.050071 | 0.031885 | 0 | 0 | 0 | 0 | 0.022727 | 0 | null | null | 0 | 0.113636 | null | null | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4cf0092dbad1d67ccf93a2a338641ad0b7a1e42 | 938 | py | Python | Sistema/sisprel/backend/app/app/models/results.py | JosueHernandezR/TTR | 204a501da14a04310e85b43230c5e32c2009e471 | [
"MIT"
] | null | null | null | Sistema/sisprel/backend/app/app/models/results.py | JosueHernandezR/TTR | 204a501da14a04310e85b43230c5e32c2009e471 | [
"MIT"
] | null | null | null | Sistema/sisprel/backend/app/app/models/results.py | JosueHernandezR/TTR | 204a501da14a04310e85b43230c5e32c2009e471 | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
from sqlalchemy import Float, Integer, Text
from sqlalchemy.orm import relationship
from sqlalchemy.sql.schema import Column, ForeignKey
from app.db.base_class import Base
if TYPE_CHECKING:
from .survey import Survey
class Survey_Results(Base):
id = Column(Integer, primary_ke... | 40.782609 | 112 | 0.78145 | 115 | 938 | 6.226087 | 0.417391 | 0.163408 | 0.128492 | 0.134078 | 0.094972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132196 | 938 | 22 | 113 | 42.636364 | 0.879607 | 0 | 0 | 0 | 0 | 0 | 0.024546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.944444 | 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 |
e4d145e3c6738caefa7e3fe83c3ea9fa91bf8cc8 | 2,213 | py | Python | run.py | wsustcid/Sonar-Navigation | bd73c881b71fa78d2b00111c0772f95f30905a82 | [
"Apache-2.0"
] | null | null | null | run.py | wsustcid/Sonar-Navigation | bd73c881b71fa78d2b00111c0772f95f30905a82 | [
"Apache-2.0"
] | 1 | 2020-10-31T08:37:24.000Z | 2021-04-25T13:19:44.000Z | run.py | wsustcid/Sonar-Navigation | bd73c881b71fa78d2b00111c0772f95f30905a82 | [
"Apache-2.0"
] | null | null | null | '''
@Description:
@Author: Shuai Wang
@Github: https://github.com/wsustcid
@Date: 2020-01-10 10:10:55
@LastEditTime: 2020-01-17 10:32:14
'''
import os
import tensorflow as tf
FLAGS = tf.app.flags.FLAGS
#
tf.app.flags.DEFINE_string('mode', 'train', "optional: train, eval, drive, save ")
tf.app.flags.DEFINE_st... | 27.320988 | 120 | 0.680072 | 325 | 2,213 | 4.436923 | 0.350769 | 0.083218 | 0.159501 | 0.244105 | 0.391123 | 0.066574 | 0.04577 | 0 | 0 | 0 | 0 | 0.037935 | 0.142341 | 2,213 | 80 | 121 | 27.6625 | 0.721812 | 0.133303 | 0 | 0 | 0 | 0.025641 | 0.256977 | 0.062665 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.153846 | 0 | 0.179487 | 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 |
e4d2cfbf71aa4d1f1ea1d092c9f81f07530cfbad | 1,432 | py | Python | src/bad_ids_merger.py | edvisees/EDL2015 | e9d0764277717ccf21538ba30481ea9d1b2d914b | [
"Apache-2.0"
] | null | null | null | src/bad_ids_merger.py | edvisees/EDL2015 | e9d0764277717ccf21538ba30481ea9d1b2d914b | [
"Apache-2.0"
] | null | null | null | src/bad_ids_merger.py | edvisees/EDL2015 | e9d0764277717ccf21538ba30481ea9d1b2d914b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
from time import time, strftime
def merge_bad_ids(bad_ids_ok_filename, bad_ids_with_nodes_filename, output_filename):
with open(bad_ids_ok_filename, 'r') as bad_ids_ok_file, open(bad_ids_with_nodes_filename, 'r') as bad_ids_with_nodes_file, open(output_file... | 51.142857 | 169 | 0.683659 | 218 | 1,432 | 4.114679 | 0.330275 | 0.12709 | 0.111483 | 0.133779 | 0.261984 | 0.167224 | 0.109253 | 0.109253 | 0.109253 | 0.109253 | 0 | 0.003407 | 0.180168 | 1,432 | 27 | 170 | 53.037037 | 0.760647 | 0.070531 | 0 | 0.105263 | 0 | 0 | 0.155991 | 0 | 0 | 0 | 0 | 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 |
e4d6f53172ecabbe25a53d28d3045c9a6146082c | 607 | py | Python | eval/migrations/0009_auto_20191026_1326.py | Mezoreth/sis325_eval | ea03579008e4f328fd46c85f54e14b9ae9034f51 | [
"MIT"
] | null | null | null | eval/migrations/0009_auto_20191026_1326.py | Mezoreth/sis325_eval | ea03579008e4f328fd46c85f54e14b9ae9034f51 | [
"MIT"
] | null | null | null | eval/migrations/0009_auto_20191026_1326.py | Mezoreth/sis325_eval | ea03579008e4f328fd46c85f54e14b9ae9034f51 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-26 17:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('eval', '0008_auto_20191024_1935'),
]
operations = [
migrations.RenameModel(
old_name='Pregunta_de_Cuestionario',
new... | 26.391304 | 132 | 0.598023 | 59 | 607 | 6 | 0.728814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073991 | 0.265239 | 607 | 22 | 133 | 27.590909 | 0.719731 | 0.074135 | 0 | 0.125 | 1 | 0 | 0.232143 | 0.083929 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4d9dc30a15148fb613c13409ae1a667e679ea86 | 4,311 | py | Python | src/redshiftsql/__main__.py | QuiNovas/redshiftsql | ca05dd78da3d2fd146d5ca11ab069cd71f17241f | [
"Apache-2.0"
] | null | null | null | src/redshiftsql/__main__.py | QuiNovas/redshiftsql | ca05dd78da3d2fd146d5ca11ab069cd71f17241f | [
"Apache-2.0"
] | null | null | null | src/redshiftsql/__main__.py | QuiNovas/redshiftsql | ca05dd78da3d2fd146d5ca11ab069cd71f17241f | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import argparse
import atexit
import boto3
import psycopg2
import re
import sys
import logging
from botocore.client import Config
if sys.argv[0].endswith("__main__.py"):
sys.argv[0] = "python -m redshiftsql"
nl_tabs_regex = re.compile(r"[\n\t]")
spaces_regex = re.compile(r"... | 28.549669 | 103 | 0.632568 | 509 | 4,311 | 5.174853 | 0.282908 | 0.045938 | 0.039484 | 0.063781 | 0.095292 | 0.0653 | 0.024298 | 0 | 0 | 0 | 0 | 0.005017 | 0.260264 | 4,311 | 150 | 104 | 28.74 | 0.820947 | 0.004871 | 0 | 0.096 | 0 | 0 | 0.216935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.072 | 0.072 | 0 | 0.136 | 0.088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e4df02034d1e7f9e5efbad395bde453758c375e0 | 1,240 | py | Python | hansard_scrape/check_chars.py | ArgonDesign/maybot | d276f6e63d8a016b4f75610039f083103d7880c4 | [
"BSD-3-Clause"
] | 3 | 2019-03-25T16:58:58.000Z | 2020-03-06T15:31:34.000Z | hansard_scrape/check_chars.py | ArgonDesign/maybot | d276f6e63d8a016b4f75610039f083103d7880c4 | [
"BSD-3-Clause"
] | null | null | null | hansard_scrape/check_chars.py | ArgonDesign/maybot | d276f6e63d8a016b4f75610039f083103d7880c4 | [
"BSD-3-Clause"
] | 1 | 2021-04-10T07:58:05.000Z | 2021-04-10T07:58:05.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ******************************************************************************
# Argon Design Ltd. Project P9000 Argon
# (c) Copyright 2017 Argon Design Ltd. All rights reserved.
#
# Module : hansard_scrape
# Author : Steve Barlow
# $Id: check_chars.py 18332 2017-06-18 16... | 27.555556 | 91 | 0.566935 | 158 | 1,240 | 4.398734 | 0.556962 | 0.043165 | 0.051799 | 0.048921 | 0.083453 | 0.083453 | 0 | 0 | 0 | 0 | 0 | 0.044273 | 0.162097 | 1,240 | 44 | 92 | 28.181818 | 0.622714 | 0.33871 | 0 | 0.095238 | 0 | 0 | 0.22545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e4dfb3e85f89dfcf675d153761d80e4f2fc25535 | 560 | py | Python | contest/forms.py | TolimanStaR/Course-Work | 79dbfcbaef0ae79209295fe8d36b6fd9610e99b8 | [
"MIT"
] | 1 | 2020-03-31T22:09:34.000Z | 2020-03-31T22:09:34.000Z | contest/forms.py | TolimanStaR/Course-Work | 79dbfcbaef0ae79209295fe8d36b6fd9610e99b8 | [
"MIT"
] | 8 | 2021-03-30T14:20:10.000Z | 2022-03-12T00:52:03.000Z | contest/forms.py | TolimanStaR/Course-Work | 79dbfcbaef0ae79209295fe8d36b6fd9610e99b8 | [
"MIT"
] | null | null | null | from django import forms
class ContestRegistrationForm(forms.Form):
agreed = forms.BooleanField(required=True, label="Согласен с правилами")
class SolutionSendForm(forms.Form):
LANG_CHOICES = (
('GNU GCC C99', 'GNU GCC C99'),
('GNU G++ 17', 'GNU G++ 17'),
# ('Kotlin', 'Kotlin'),
... | 28 | 77 | 0.610714 | 65 | 560 | 5.215385 | 0.6 | 0.053097 | 0.053097 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.225 | 560 | 19 | 78 | 29.473684 | 0.748848 | 0.083929 | 0 | 0 | 0 | 0 | 0.221569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4ea437a0f8938cc48fbc801af82bc6e0d99e7ba | 2,779 | py | Python | errors.py | rascoro1/SeleniumINI | 5c4694194b3fd640124d80bcff128be7ac4ccf6e | [
"Apache-2.0"
] | 2 | 2017-08-23T19:06:10.000Z | 2021-10-11T01:53:53.000Z | errors.py | rascoro1/SeleniumINI | 5c4694194b3fd640124d80bcff128be7ac4ccf6e | [
"Apache-2.0"
] | null | null | null | errors.py | rascoro1/SeleniumINI | 5c4694194b3fd640124d80bcff128be7ac4ccf6e | [
"Apache-2.0"
] | null | null | null |
class NotValidAttributeException(Exception):
def __init__(self, message, errors):
super(NotValidAttributeException, self).__init__(message)
self.errors = errors
class NoReportFoundException(Exception):
def __init__(self, message, errors):
super(NoReportFoundException, self... | 33.083333 | 81 | 0.730479 | 224 | 2,779 | 8.5625 | 0.098214 | 0.087591 | 0.116788 | 0.145985 | 0.537539 | 0.537539 | 0.521376 | 0 | 0 | 0 | 0 | 0 | 0.188917 | 2,779 | 83 | 82 | 33.481928 | 0.850932 | 0 | 0 | 0.5 | 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 |
e4efc9190c002bae405cf9b24230b4c16c55e7af | 3,070 | py | Python | tcfbot/reservation.py | L7AJ-life/TCF-exam-appointment-reservation-bot | a3c3880b486f9d7631e2ade6a131f797cbe85b6b | [
"MIT"
] | null | null | null | tcfbot/reservation.py | L7AJ-life/TCF-exam-appointment-reservation-bot | a3c3880b486f9d7631e2ade6a131f797cbe85b6b | [
"MIT"
] | null | null | null | tcfbot/reservation.py | L7AJ-life/TCF-exam-appointment-reservation-bot | a3c3880b486f9d7631e2ade6a131f797cbe85b6b | [
"MIT"
] | null | null | null | from typing import Dict, List, Any
from tcfbot.account import Account
from tcfbot.event import Event
from tcfbot.payment_day import PaymentDay
import logging
logger = logging.getLogger(__name__)
class Reservation:
def __init__(self, **kwargs):
self.account: Account = kwargs.get('account', Ac... | 28.691589 | 88 | 0.583713 | 302 | 3,070 | 5.692053 | 0.245033 | 0.102385 | 0.044212 | 0.017452 | 0.037231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000925 | 0.29544 | 3,070 | 106 | 89 | 28.962264 | 0.793805 | 0.060912 | 0 | 0.028986 | 0 | 0 | 0.114157 | 0.044311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.072464 | 0.072464 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4f7541f04621c1b57ac6483a8c8721210517382 | 3,736 | py | Python | request.py | codeofdusk/Amanda | 142fdb855c19f9d80c9852843a8040949d1d5e49 | [
"MIT"
] | null | null | null | request.py | codeofdusk/Amanda | 142fdb855c19f9d80c9852843a8040949d1d5e49 | [
"MIT"
] | null | null | null | request.py | codeofdusk/Amanda | 142fdb855c19f9d80c9852843a8040949d1d5e49 | [
"MIT"
] | null | null | null | """Contains the Request class.
Copyright 2018 - Bill Dengler <codeofdusk@gmail.com>. Licensed under MIT."""
import random
import components
import config
import utils
class request(object):
"Contains attributes for handling user requests and returning responses. Instantiate this class to make a request."
def... | 40.608696 | 220 | 0.541488 | 368 | 3,736 | 5.440217 | 0.38587 | 0.053946 | 0.047952 | 0.046454 | 0.195804 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0.003011 | 0.377677 | 3,736 | 91 | 221 | 41.054945 | 0.858065 | 0.187902 | 0 | 0.386667 | 0 | 0 | 0.104296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.053333 | 0.066667 | 0 | 0.146667 | 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 |
e4f8f6a53c063c2e4eaf18244fe64024db17817f | 804 | py | Python | PYTHON/Desafios Python - Mundo 2/051B.py | FR7/Meus-Projetos | 1c8e1a91eaf143cccdc10f0e7edd013d910de474 | [
"MIT"
] | null | null | null | PYTHON/Desafios Python - Mundo 2/051B.py | FR7/Meus-Projetos | 1c8e1a91eaf143cccdc10f0e7edd013d910de474 | [
"MIT"
] | null | null | null | PYTHON/Desafios Python - Mundo 2/051B.py | FR7/Meus-Projetos | 1c8e1a91eaf143cccdc10f0e7edd013d910de474 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia o primeiro termos e a razão de uma PA.
# No final, mostre os 10 primeiros termos dessa progressão.
# an = a1 + (n - 1) . r
# Onde,
# an : termo que queremos calcular
# a1: primeiro termo da P.A.
# n: posição do termo que queremos descobrir
# r: razão*/
print("=======================... | 26.8 | 72 | 0.573383 | 124 | 804 | 3.717742 | 0.419355 | 0.069414 | 0.121475 | 0.097614 | 0.10846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.20398 | 804 | 29 | 73 | 27.724138 | 0.701563 | 0.335821 | 0 | 0.166667 | 0 | 0 | 0.478846 | 0.119231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e4f977a78830212cca55edb198aafe76fcf5c5d0 | 1,903 | py | Python | autopandas_v2/utils/ioutils.py | chyanju/autopandas | 16080ad12f0e8e7b0a614671aea1ed57b3fed7fe | [
"BSD-3-Clause"
] | 16 | 2019-08-13T02:49:44.000Z | 2022-02-08T03:14:34.000Z | autopandas_v2/utils/ioutils.py | chyanju/autopandas | 16080ad12f0e8e7b0a614671aea1ed57b3fed7fe | [
"BSD-3-Clause"
] | 2 | 2020-09-25T22:40:40.000Z | 2022-02-09T23:42:53.000Z | autopandas_v2/utils/ioutils.py | chyanju/autopandas | 16080ad12f0e8e7b0a614671aea1ed57b3fed7fe | [
"BSD-3-Clause"
] | 3 | 2021-07-06T10:30:36.000Z | 2022-01-11T23:21:31.000Z | import struct
import pickle
import random
import multiprocessing
class IndexedFileWriter:
def __init__(self, path, mode='w'):
self.f = open(path, mode + 'b')
self.index_f = open(path + '.index', mode + 'b')
def append(self, record):
offset = self.f.tell()
self.f.write(record)
... | 26.068493 | 89 | 0.570678 | 246 | 1,903 | 4.223577 | 0.292683 | 0.038499 | 0.067372 | 0.040423 | 0.115496 | 0.115496 | 0.071222 | 0.071222 | 0.071222 | 0.071222 | 0 | 0.004563 | 0.308986 | 1,903 | 72 | 90 | 26.430556 | 0.785551 | 0 | 0 | 0.109091 | 0 | 0 | 0.013144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218182 | false | 0 | 0.072727 | 0.018182 | 0.381818 | 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 |
e4fad9972fb8bb0fe0c6eb6cc7b96e11963ffc5b | 712 | py | Python | customers/cbv_base/DeleteView.py | jjolivares/improllow-up | 67d7028426090bdbc6c8fd77c02e687ee11f07aa | [
"MIT"
] | 1 | 2022-02-11T12:23:05.000Z | 2022-02-11T12:23:05.000Z | customers/cbv_base/DeleteView.py | jjolivares/improllow-up | 67d7028426090bdbc6c8fd77c02e687ee11f07aa | [
"MIT"
] | null | null | null | customers/cbv_base/DeleteView.py | jjolivares/improllow-up | 67d7028426090bdbc6c8fd77c02e687ee11f07aa | [
"MIT"
] | 1 | 2022-01-21T08:21:36.000Z | 2022-01-21T08:21:36.000Z | # coding: UTF-8
from django.core.urlresolvers import reverse
from django.views.generic import DeleteView
from django.contrib import messages
class DeleteViewBase(DeleteView):
url_name = ""
template_name = 'base/templates/cbv/base/DeleteViewCustom.html'
class DeleteViewCustom(DeleteViewBase):
def get... | 33.904762 | 77 | 0.766854 | 90 | 712 | 5.877778 | 0.477778 | 0.056711 | 0.05293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001616 | 0.130618 | 712 | 21 | 78 | 33.904762 | 0.852989 | 0.018258 | 0 | 0 | 0 | 0 | 0.123894 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4ff7daa1ffd516dd433be4c6efb70f1732118bf | 2,907 | py | Python | addons/seo_url_redirect/__manifest__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/seo_url_redirect/__manifest__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | null | null | null | addons/seo_url_redirect/__manifest__.py | marionumza/vocal_v12 | 480990e919c9410903e06e7813ee92800bd6a569 | [
"Unlicense"
] | 1 | 2021-05-05T07:59:08.000Z | 2021-05-05T07:59:08.000Z | # -*- coding: utf-8 -*-
#################################################################################
# Author : Webkul Software Pvt. Ltd. (<https://webkul.com/>)
# Copyright(c): 2015-Present Webkul Software Pvt. Ltd.
# All Rights Reserved.
#
#
#
# This program is copyright property of the author mentioned abo... | 44.723077 | 144 | 0.420021 | 238 | 2,907 | 4.987395 | 0.487395 | 0.083404 | 0.082561 | 0.10615 | 0.085931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006053 | 0.431717 | 2,907 | 64 | 145 | 45.421875 | 0.71247 | 0.135535 | 0 | 0.040816 | 0 | 0.020408 | 0.576808 | 0.114677 | 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 |
900e634033292e0aec78e403c9bb435cd79931d7 | 2,586 | py | Python | company/sales/migrations/0001_initial.py | joelschutz/mock-software-company | 72c20df5f833a536b282e5f73030446fc96ac1e7 | [
"MIT"
] | null | null | null | company/sales/migrations/0001_initial.py | joelschutz/mock-software-company | 72c20df5f833a536b282e5f73030446fc96ac1e7 | [
"MIT"
] | null | null | null | company/sales/migrations/0001_initial.py | joelschutz/mock-software-company | 72c20df5f833a536b282e5f73030446fc96ac1e7 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-05 19:49
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations... | 40.40625 | 184 | 0.572312 | 256 | 2,586 | 5.636719 | 0.308594 | 0.038808 | 0.058212 | 0.091476 | 0.656965 | 0.619543 | 0.619543 | 0.595981 | 0.595981 | 0.595981 | 0 | 0.015168 | 0.286156 | 2,586 | 63 | 185 | 41.047619 | 0.766522 | 0.017401 | 0 | 0.571429 | 1 | 0 | 0.126822 | 0.014573 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.053571 | 0 | 0.125 | 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 |
9016c61ebb4047570e10dd81ff81d4a5638aa0cd | 1,708 | py | Python | udlchan/posts/migrations/0001_initial.py | zurfyx/udlchan | fd8ee67b22a91eefb323256173f446765890435b | [
"MIT"
] | 1 | 2016-03-18T08:08:39.000Z | 2016-03-18T08:08:39.000Z | udlchan/posts/migrations/0001_initial.py | zurfyx/udlchan | fd8ee67b22a91eefb323256173f446765890435b | [
"MIT"
] | null | null | null | udlchan/posts/migrations/0001_initial.py | zurfyx/udlchan | fd8ee67b22a91eefb323256173f446765890435b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-06 17:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | 36.340426 | 131 | 0.559133 | 163 | 1,708 | 5.699387 | 0.423313 | 0.080732 | 0.099031 | 0.111948 | 0.488698 | 0.421959 | 0.421959 | 0.421959 | 0.421959 | 0.421959 | 0 | 0.026734 | 0.29918 | 1,708 | 46 | 132 | 37.130435 | 0.749373 | 0.039227 | 0 | 0.526316 | 1 | 0 | 0.090965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.184211 | 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 |
9028165e0b7f149a87a00696aa0a858109c483b5 | 21,796 | py | Python | src/MetricManager.py | MatthewBeaudouinLafon/cardistry_rhythm | e228db9aa502412360d7e18dfeb2352d3e4f493c | [
"MIT"
] | null | null | null | src/MetricManager.py | MatthewBeaudouinLafon/cardistry_rhythm | e228db9aa502412360d7e18dfeb2352d3e4f493c | [
"MIT"
] | null | null | null | src/MetricManager.py | MatthewBeaudouinLafon/cardistry_rhythm | e228db9aa502412360d7e18dfeb2352d3e4f493c | [
"MIT"
] | null | null | null | import math
from enum import IntEnum
import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
from matplotlib.transforms import Bbox
class Metric(IntEnum):
"""
Metrics used by MetricManager.
Note:
- DFLOW stands for flow difference, or the numeric derivative of the flow.
- The... | 40.740187 | 153 | 0.584236 | 2,581 | 21,796 | 4.726075 | 0.182875 | 0.025414 | 0.022955 | 0.021315 | 0.313084 | 0.265371 | 0.211264 | 0.155599 | 0.133628 | 0.119036 | 0 | 0.014404 | 0.321527 | 21,796 | 535 | 154 | 40.740187 | 0.810454 | 0.246513 | 0 | 0.235294 | 0 | 0 | 0.070492 | 0.00866 | 0.00346 | 0 | 0 | 0.02243 | 0.024221 | 1 | 0.051903 | false | 0.00692 | 0.020761 | 0 | 0.155709 | 0.017301 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
90290255abbf72a14e5ea4666691f2ac13f2e711 | 590 | py | Python | oop/iterclass.py | caoyp2/PyProject01 | 1a7d022894908b400fa24da1bb74b47a87ec04e4 | [
"Apache-2.0"
] | null | null | null | oop/iterclass.py | caoyp2/PyProject01 | 1a7d022894908b400fa24da1bb74b47a87ec04e4 | [
"Apache-2.0"
] | null | null | null | oop/iterclass.py | caoyp2/PyProject01 | 1a7d022894908b400fa24da1bb74b47a87ec04e4 | [
"Apache-2.0"
] | null | null | null | '''
__iter__
如果一个类想被用于for ... in循环,类似list或tuple那样,就必须实现一个__iter__()方法
__getitem__
使实例可以像list一样通过下标获取元素
'''
class demo02:
def __init__(self):
self.a, self.b = 0, 1 # 初始化两个计数器a,b
def __iter__(self):
return self # 实例本身就是迭代对象,故返回自己
def __next__(self):
if self.a != 0:... | 17.352941 | 60 | 0.557627 | 71 | 590 | 4.239437 | 0.507042 | 0.099668 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.323729 | 590 | 33 | 61 | 17.878788 | 0.701754 | 0.218644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0 | 0.058824 | 0.470588 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
903f396436eb28349e6a81476bcf306465c2dfee | 1,767 | py | Python | aidu_elevator/src/manual_training.py | MartienLagerweij/aidu | a9b6e5a61f20bd60a7773495ba254e1bded1d7a1 | [
"MIT"
] | null | null | null | aidu_elevator/src/manual_training.py | MartienLagerweij/aidu | a9b6e5a61f20bd60a7773495ba254e1bded1d7a1 | [
"MIT"
] | null | null | null | aidu_elevator/src/manual_training.py | MartienLagerweij/aidu | a9b6e5a61f20bd60a7773495ba254e1bded1d7a1 | [
"MIT"
] | null | null | null | __author__ = 'rolf'
from pymongo import MongoClient
import cv2
import numpy as np
import sys
db = MongoClient()
buttons = db['aidu']['elevator_buttons']
untested = db['aidu']['elevator_buttons_untested']
def get_label(key):
if key == ord('b'):
return 'B'
elif key == ord('k'):
return 'K'
e... | 26.772727 | 93 | 0.540464 | 243 | 1,767 | 3.880658 | 0.366255 | 0.063627 | 0.09544 | 0.044539 | 0.09544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026379 | 0.29202 | 1,767 | 65 | 94 | 27.184615 | 0.727418 | 0.024335 | 0 | 0.034483 | 0 | 0 | 0.144599 | 0.014518 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90403f986b47dd1de5ac42524f304a3739db6100 | 364 | py | Python | monosloth/facade/config.py | monosloth/framework | 7121f91aefc14c9b7ee088152282d07ee300ad8f | [
"MIT"
] | null | null | null | monosloth/facade/config.py | monosloth/framework | 7121f91aefc14c9b7ee088152282d07ee300ad8f | [
"MIT"
] | null | null | null | monosloth/facade/config.py | monosloth/framework | 7121f91aefc14c9b7ee088152282d07ee300ad8f | [
"MIT"
] | null | null | null | from monosloth.singleton import Config
from . import AbstractFacade
class ConfigFacade(AbstractFacade):
def __init__(self):
super().__init__('config')
def invoke(self, attr=False, value=False):
if attr:
if value:
return Config().put(attr, value)
return... | 22.75 | 48 | 0.612637 | 39 | 364 | 5.512821 | 0.512821 | 0.167442 | 0.15814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 364 | 15 | 49 | 24.266667 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.727273 | 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 |
90410dc6fd95334a15fd43cead692e29ba6c9394 | 635 | py | Python | src/node/ext/ldap/testing/ldifs/genusers.py | enfold/node.ext.ldap | 28127057be6ba3092389f3c920575292d43d9f94 | [
"BSD-2-Clause"
] | 3 | 2016-04-22T00:37:17.000Z | 2020-04-03T07:14:54.000Z | src/node/ext/ldap/testing/ldifs/genusers.py | enfold/node.ext.ldap | 28127057be6ba3092389f3c920575292d43d9f94 | [
"BSD-2-Clause"
] | 51 | 2015-02-10T11:14:01.000Z | 2021-05-05T11:06:59.000Z | src/node/ext/ldap/testing/ldifs/genusers.py | enfold/node.ext.ldap | 28127057be6ba3092389f3c920575292d43d9f94 | [
"BSD-2-Clause"
] | 12 | 2016-08-09T09:39:35.000Z | 2020-04-18T14:53:56.000Z | #!/usr/bin/env python
import sys
container_template = """\
dn: ou=%(ou)s,dc=my-domain,dc=com
objectClass: top
objectClass: organizationalUnit
ou: %(ou)s
"""
user_template = """\
dn: uid=%(uid)s,ou=%(ou)s,dc=my-domain,dc=com
objectClass: inetOrgPerson
uid: %(uid)s
cn: %(cn)s
mail: %(mail)s
sn: %(sn)s
userPassword: %(p... | 18.142857 | 45 | 0.582677 | 105 | 635 | 3.485714 | 0.371429 | 0.065574 | 0.040984 | 0.038251 | 0.169399 | 0.169399 | 0.169399 | 0.169399 | 0.169399 | 0 | 0 | 0.003953 | 0.20315 | 635 | 34 | 46 | 18.676471 | 0.719368 | 0.031496 | 0 | 0.071429 | 0 | 0.035714 | 0.452769 | 0.114007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.035714 | 0 | 0.035714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.