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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25d8597dd7483062f34c80eafa4b29e1d0c216b2 | 292 | py | Python | students/k3342/practical_works/Zangieva Veronika/project/auto/auto/apps/owners/migrations/0003_delete_ownersmodel.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3342/practical_works/Zangieva Veronika/project/auto/auto/apps/owners/migrations/0003_delete_ownersmodel.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3342/practical_works/Zangieva Veronika/project/auto/auto/apps/owners/migrations/0003_delete_ownersmodel.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | # Generated by Django 3.0.4 on 2020-05-30 01:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('owners', '0002_ownersmodel'),
]
operations = [
migrations.DeleteModel(
name='OwnersModel',
),
]
| 17.176471 | 47 | 0.599315 | 30 | 292 | 5.8 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091346 | 0.287671 | 292 | 16 | 48 | 18.25 | 0.745192 | 0.15411 | 0 | 0 | 1 | 0 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
25f1655d4d1c8f3fc003b418a99beb79d6e9a535 | 950 | py | Python | athena/edu/views.py | antonyryan/athena-backend-Django- | 6119a71eca0deefa3fffa5e5caff1de87b3ea2c3 | [
"MIT"
] | 5 | 2019-09-09T23:07:07.000Z | 2020-05-28T15:57:21.000Z | athena/edu/views.py | antonyryan/athena-backend-Django- | 6119a71eca0deefa3fffa5e5caff1de87b3ea2c3 | [
"MIT"
] | null | null | null | athena/edu/views.py | antonyryan/athena-backend-Django- | 6119a71eca0deefa3fffa5e5caff1de87b3ea2c3 | [
"MIT"
] | 1 | 2020-05-28T15:57:25.000Z | 2020-05-28T15:57:25.000Z | from rest_framework import viewsets
from athena.authentication.permissions import (
IsAdmin,
IsStudentAndReadOnly,
IsTeacher,
IsTutor,
)
from .serializers import (
Speciality,
SpecialitySerializer,
StudentGroup,
StudentGroupSerializer,
Subject,
SubjectSerializer,
)
class Subj... | 26.388889 | 80 | 0.761053 | 74 | 950 | 9.675676 | 0.405405 | 0.083799 | 0.117318 | 0.104749 | 0.265363 | 0.265363 | 0.181564 | 0 | 0 | 0 | 0 | 0 | 0.167368 | 950 | 35 | 81 | 27.142857 | 0.905183 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
25f7d7d8f0dcf51a63d497468eab669c04aeb77f | 2,017 | py | Python | arcade-romhacking-framework/make/patch_apply.py | zengfr/arcade-romhacking-framework | e2ed09aa40dd9dd543728a19fe6ba365989786e7 | [
"Apache-2.0"
] | 2 | 2021-03-03T07:34:07.000Z | 2021-03-22T01:45:37.000Z | arcade-romhacking-framework/make/patch_apply.py | zengfr/arcade-romhacking-framework | e2ed09aa40dd9dd543728a19fe6ba365989786e7 | [
"Apache-2.0"
] | null | null | null | arcade-romhacking-framework/make/patch_apply.py | zengfr/arcade-romhacking-framework | e2ed09aa40dd9dd543728a19fe6ba365989786e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
# (c) 2016 XingXing(HappyASR#gmail.com)
# (c) 2020 zengfr(362505707#qq.com)(https://github.com/zengfr)
import os
import re
import sys
def patch_file(crosstools,fileelf,filemap,fileori,fileout):
print 'patch_file processing',fileelf,filemap,fileori,fileout
map_list = []
f... | 35.385965 | 85 | 0.656916 | 363 | 2,017 | 3.465565 | 0.278237 | 0.061208 | 0.028617 | 0.028617 | 0.182035 | 0.111288 | 0.036566 | 0.036566 | 0.036566 | 0.036566 | 0 | 0.026464 | 0.119484 | 2,017 | 57 | 86 | 35.385965 | 0.681869 | 0.098661 | 0 | 0.085106 | 0 | 0 | 0.187638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25fe8aee0016bfdf3cc9282d6f9f44093df8680a | 6,583 | py | Python | tests/integration-tests/test_data.py | Krocodial/classy | 01bc87d8017e9d0628e26d2b2f10e0da66d35314 | [
"Apache-2.0"
] | null | null | null | tests/integration-tests/test_data.py | Krocodial/classy | 01bc87d8017e9d0628e26d2b2f10e0da66d35314 | [
"Apache-2.0"
] | 12 | 2019-03-19T18:16:55.000Z | 2022-02-10T08:28:46.000Z | tests/integration-tests/test_data.py | Krocodial/classy | 01bc87d8017e9d0628e26d2b2f10e0da66d35314 | [
"Apache-2.0"
] | 1 | 2018-03-17T02:49:15.000Z | 2018-03-17T02:49:15.000Z | from selenium import webdriver
from django.test import TestCase
from selenium.webdriver.firefox.options import Options
from django.urls import reverse
import os, time
from selenium.webdriver.common.keys import Keys
import requests
from requests.auth import HTTPBasicAuth
from selenium.webdriver.common.action_chains impo... | 33.247475 | 123 | 0.627981 | 799 | 6,583 | 4.934919 | 0.172716 | 0.11717 | 0.138473 | 0.197819 | 0.728887 | 0.682983 | 0.620593 | 0.564038 | 0.564038 | 0.552625 | 0 | 0.008689 | 0.248215 | 6,583 | 197 | 124 | 33.416244 | 0.788038 | 0.008355 | 0 | 0.553398 | 0 | 0 | 0.148777 | 0.029424 | 0 | 0 | 0 | 0 | 0.048544 | 1 | 0.058252 | false | 0.019417 | 0.097087 | 0 | 0.165049 | 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 |
d30dce6c56afda1d3014705554a7f3be79e3b808 | 305 | py | Python | test/components/stream_test.py | sytelus/longview | 686e43cf187eaf55df18949359fd63d57dc337b2 | [
"MIT"
] | 3,453 | 2019-05-22T15:01:23.000Z | 2022-03-31T07:50:41.000Z | test/components/stream.py | wgxcow/tensorwatch | 142f83a7cb8c54e47e9bab06cb3a1ef8ae225422 | [
"MIT"
] | 69 | 2019-05-22T17:11:20.000Z | 2022-03-03T09:32:38.000Z | test/components/stream.py | wgxcow/tensorwatch | 142f83a7cb8c54e47e9bab06cb3a1ef8ae225422 | [
"MIT"
] | 375 | 2019-05-22T17:10:33.000Z | 2022-03-24T07:43:07.000Z | from tensorwatch.stream import Stream
s1 = Stream(stream_name='s1', console_debug=True)
s2 = Stream(stream_name='s2', console_debug=True)
s3 = Stream(stream_name='s3', console_debug=True)
s1.subscribe(s2)
s2.subscribe(s3)
s3.write('S3 wrote this')
s2.write('S2 wrote this')
s1.write('S1 wrote this')
| 20.333333 | 49 | 0.744262 | 50 | 305 | 4.42 | 0.3 | 0.162896 | 0.217195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058608 | 0.104918 | 305 | 14 | 50 | 21.785714 | 0.750916 | 0 | 0 | 0 | 0 | 0 | 0.148026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d30e5701b7fad68c7d8ce1c259f031537b9cbf47 | 3,966 | py | Python | test_strategy.py | Nino-SEGALA/HuaweiChallenge | a628f5550063422b095300846bde5680a5e95414 | [
"BSD-3-Clause"
] | null | null | null | test_strategy.py | Nino-SEGALA/HuaweiChallenge | a628f5550063422b095300846bde5680a5e95414 | [
"BSD-3-Clause"
] | null | null | null | test_strategy.py | Nino-SEGALA/HuaweiChallenge | a628f5550063422b095300846bde5680a5e95414 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Copyright (c) 2020 Huawei Technologies Sweden AB, All rights reserved.
Authors:
Karl Gäfvert
'''
from robot_explorers import Strategy
class Test(Strategy):
'''Demo of strategy, observation, and action APIs'''
def __init__(self):
super().__init__()
... | 45.068182 | 107 | 0.486384 | 375 | 3,966 | 5 | 0.264 | 0.1632 | 0.0352 | 0.0512 | 0.256 | 0.226133 | 0.197333 | 0.197333 | 0.146133 | 0.146133 | 0 | 0.002412 | 0.372668 | 3,966 | 87 | 108 | 45.586207 | 0.751206 | 0.12355 | 0 | 0.104167 | 0 | 0 | 0.130009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.020833 | 0 | 0.125 | 0.708333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d32058d73a02cb42faf80cf0e2ad834a0085b7d6 | 2,406 | py | Python | utils/csvwriter.py | mfg92/Hantek1008Driver | f00b912e6c6f7e54ec47a9760f4ff6c4e3413175 | [
"Apache-2.0"
] | 12 | 2018-03-16T11:54:52.000Z | 2022-03-26T23:23:57.000Z | utils/csvwriter.py | mfg92/Hantek1008Driver | f00b912e6c6f7e54ec47a9760f4ff6c4e3413175 | [
"Apache-2.0"
] | 3 | 2018-03-06T17:14:31.000Z | 2021-06-09T20:54:01.000Z | utils/csvwriter.py | mfg92/Hantek1008Driver | f00b912e6c6f7e54ec47a9760f4ff6c4e3413175 | [
"Apache-2.0"
] | 9 | 2018-01-31T16:25:06.000Z | 2022-01-18T04:51:07.000Z | from typing import List, Any, Sequence, Callable, IO
import threading
import queue
import csv
# marking a child classes method with overrides makes sure the method overrides a parent class method
# this check is only needed during development so its no problem if this package is not installed
# to avoid errors we need... | 32.513514 | 101 | 0.666251 | 312 | 2,406 | 4.86859 | 0.326923 | 0.052666 | 0.036208 | 0.050033 | 0.271889 | 0.26004 | 0.234365 | 0.234365 | 0.157999 | 0.061883 | 0 | 0 | 0.230258 | 2,406 | 73 | 102 | 32.958904 | 0.820194 | 0.166667 | 0 | 0.265306 | 0 | 0 | 0.006549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.122449 | 0.020408 | 0.469388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d327e733d4fb0b8e0af0a0a8d8805298e8344dcc | 756 | py | Python | linux/youtube_dl_script_linux.py | Frxhb/youtubedl_script | 029e22556ca3094f237e4415e34435113b9796b1 | [
"Unlicense"
] | null | null | null | linux/youtube_dl_script_linux.py | Frxhb/youtubedl_script | 029e22556ca3094f237e4415e34435113b9796b1 | [
"Unlicense"
] | null | null | null | linux/youtube_dl_script_linux.py | Frxhb/youtubedl_script | 029e22556ca3094f237e4415e34435113b9796b1 | [
"Unlicense"
] | null | null | null | from linux.functions_youtube_linux import check_installation
from linux.functions_youtube_linux import type_abfrage
from linux.functions_youtube_linux import move_audios
from linux.functions_youtube_linux import move_videos
check_installation.all_func_check()
def main_func():
move_audios.mv_aud_func()
move_v... | 24.387097 | 62 | 0.708995 | 110 | 756 | 4.490909 | 0.372727 | 0.080972 | 0.145749 | 0.202429 | 0.57085 | 0.57085 | 0.425101 | 0.263158 | 0.263158 | 0.263158 | 0 | 0 | 0.194444 | 756 | 31 | 63 | 24.387097 | 0.811166 | 0.018519 | 0 | 0.380952 | 0 | 0 | 0.097035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0.047619 | 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 |
d32f4158ce4537d62c628ffd973dd477baa00321 | 384 | py | Python | homework_1/scikitlearn_pipeline/pipeline.py | aigulkhkmv/deploy_course_hse | 25062047bd692aaf7e552d2a36b381049e21ea59 | [
"MIT"
] | null | null | null | homework_1/scikitlearn_pipeline/pipeline.py | aigulkhkmv/deploy_course_hse | 25062047bd692aaf7e552d2a36b381049e21ea59 | [
"MIT"
] | null | null | null | homework_1/scikitlearn_pipeline/pipeline.py | aigulkhkmv/deploy_course_hse | 25062047bd692aaf7e552d2a36b381049e21ea59 | [
"MIT"
] | null | null | null | from sklearn.ensemble import AdaBoostClassifier
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import Normalizer
from homework_1.scikitlearn_pipeline.preprocessors import ConnectFeatures
pipeline = Pipeline(
steps=[
("connect", ConnectFeatures(all=True)),
("norm", Normalizer()),
... | 27.428571 | 73 | 0.744792 | 36 | 384 | 7.833333 | 0.583333 | 0.117021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.161458 | 384 | 13 | 74 | 29.538462 | 0.872671 | 0 | 0 | 0 | 0 | 0 | 0.080729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 |
d330b210c43fecbdf72d73d461d5114c8af501ce | 300 | py | Python | Q21/sol.py | shivamT95/projecteuler | 3e87b64235edd8444bc27198717a38e0ae0e0c0b | [
"MIT"
] | null | null | null | Q21/sol.py | shivamT95/projecteuler | 3e87b64235edd8444bc27198717a38e0ae0e0c0b | [
"MIT"
] | null | null | null | Q21/sol.py | shivamT95/projecteuler | 3e87b64235edd8444bc27198717a38e0ae0e0c0b | [
"MIT"
] | null | null | null | divs = {}
def sm(x):
s = 0
for i in range(2,int(x**0.5)):
if x%i == 0:
s += i
s += x/i
if i*i == x:
s -= i
return s+1
for i in range(10001):
divs[i] = sm(i)
ans = 0
for i in range(10001):
for j in range(10001):
if divs[i] == j and divs[j] == i and i!=j:
ans += i
print(ans)
| 15.789474 | 44 | 0.496667 | 69 | 300 | 2.15942 | 0.304348 | 0.187919 | 0.120805 | 0.221477 | 0.302013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104265 | 0.296667 | 300 | 18 | 45 | 16.666667 | 0.601896 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0.055556 | 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 |
d33463313daecfb744d68cf0f0c1122cbe218fbb | 660 | py | Python | todolist/main/migrations/0001_initial.py | gda2048/TODOlist | cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f | [
"MIT"
] | 1 | 2019-12-19T19:04:02.000Z | 2019-12-19T19:04:02.000Z | todolist/main/migrations/0001_initial.py | gda2048/TODOlist | cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f | [
"MIT"
] | 5 | 2020-02-12T02:57:13.000Z | 2021-12-13T20:02:16.000Z | todolist/main/migrations/0001_initial.py | gda2048/TODOlist | cc6c359ab0a8d2f43ed82b19dfc0eb5d640f8b9f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-06-14 14:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Card',
fields=[
('id', models.AutoField(pri... | 27.5 | 97 | 0.590909 | 66 | 660 | 5.80303 | 0.666667 | 0.086162 | 0.093995 | 0.125326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.280303 | 660 | 23 | 98 | 28.695652 | 0.764211 | 0.068182 | 0 | 0 | 1 | 0 | 0.097879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
d3384473ef8a5c48ac8362a5c29260cbba63cf87 | 399 | py | Python | twitter_fizzbuzz/auth.py | marcusgabrields/twitter_fizzbuzz | f88d9ee2e89bf72438a3cffd0704fc40d6a60950 | [
"MIT"
] | null | null | null | twitter_fizzbuzz/auth.py | marcusgabrields/twitter_fizzbuzz | f88d9ee2e89bf72438a3cffd0704fc40d6a60950 | [
"MIT"
] | 1 | 2021-06-02T00:44:50.000Z | 2021-06-02T00:44:50.000Z | twitter_fizzbuzz/auth.py | marcusgabrields/twitter_fizzbuzz | f88d9ee2e89bf72438a3cffd0704fc40d6a60950 | [
"MIT"
] | null | null | null | from decouple import config
from requests_oauthlib import OAuth1Session
API_KEY = config('API_KEY')
API_SECRET_KEY = config('API_SECRET_KEY')
ACCESS_TOKEN = config('ACCESS_TOKEN')
ACCESS_TOKEN_SECRET = config('ACCESS_TOKEN_SECRET')
def get_auth():
twitter_auth = OAuth1Session(
API_KEY,
API_SECRET_K... | 21 | 52 | 0.746867 | 52 | 399 | 5.307692 | 0.326923 | 0.23913 | 0.130435 | 0.108696 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0.180451 | 399 | 18 | 53 | 22.166667 | 0.83792 | 0 | 0 | 0 | 0 | 0 | 0.130326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
d33c5f259d8c0dd6167851d6e7a746a903b3c50a | 4,009 | py | Python | pybayenv/create_bin_dist.py | kristohr/pybayenv_beta | 43aca5ca40d7f22f7899ce5592e7c769665c757d | [
"BSD-3-Clause"
] | null | null | null | pybayenv/create_bin_dist.py | kristohr/pybayenv_beta | 43aca5ca40d7f22f7899ce5592e7c769665c757d | [
"BSD-3-Clause"
] | null | null | null | pybayenv/create_bin_dist.py | kristohr/pybayenv_beta | 43aca5ca40d7f22f7899ce5592e7c769665c757d | [
"BSD-3-Clause"
] | null | null | null | import sys, string, re, os, commands, time
#from scipy import stats
#import scipy as sp
import numpy as np
#import matplotlib as mpl
#from matplotlib import pyplot as plt
class Locus_diff:
def __init__(self, name, num_files):
self.name = name.strip()
self.is_in_run = [[0 for x in xrang... | 28.232394 | 133 | 0.552756 | 567 | 4,009 | 3.659612 | 0.195767 | 0.056386 | 0.043373 | 0.056386 | 0.199518 | 0.149398 | 0.11759 | 0.052048 | 0 | 0 | 0 | 0.016955 | 0.308556 | 4,009 | 141 | 134 | 28.432624 | 0.731602 | 0.16463 | 0 | 0.098901 | 0 | 0 | 0.036648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021978 | null | null | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3474c5dc10c9a6e3b08a3cd1c37d249ff4b2742 | 2,501 | py | Python | tools/UpInterrJava.py | Hydrogen-OS-P/build | c2fc4d76369a8c8ca6eb996d734c5ab0b8d47462 | [
"Apache-2.0"
] | 33 | 2015-07-01T01:23:42.000Z | 2022-01-01T20:27:01.000Z | tools/UpInterrJava.py | kingloser/build | 4ded1e2c022af7906402b404ba7837a19b932888 | [
"Apache-2.0"
] | 11 | 2016-12-30T09:26:10.000Z | 2018-02-21T14:36:09.000Z | tools/UpInterrJava.py | kingloser/build | 4ded1e2c022af7906402b404ba7837a19b932888 | [
"Apache-2.0"
] | 77 | 2015-06-30T14:55:31.000Z | 2019-07-16T00:52:47.000Z | #!/usr/bin/env python
'''
Created on 2012-12-20
@author: jock
'''
import sys
import os
import re
DIRECT_METHOD_FLAG = "# direct methods"
class UpInterrJava(object):
'''
classdocs
'''
def __init__(self, addFile, inDir):
'''
Constructor
'''
self.idsList = self.getAdd... | 28.420455 | 128 | 0.516593 | 278 | 2,501 | 4.553957 | 0.410072 | 0.028436 | 0.037915 | 0.028436 | 0.037915 | 0.037915 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.345062 | 2,501 | 87 | 129 | 28.747126 | 0.7558 | 0.02559 | 0 | 0.04 | 0 | 0.02 | 0.152696 | 0.02039 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d347d5ab735b767f6d9fe72a9a924a3528e7047e | 764 | py | Python | ex5_cisco3_conf.py | ramyacr97/RamyaPython | 27ae8c88ec1459372d422fa5f97baa415898f875 | [
"Apache-2.0"
] | null | null | null | ex5_cisco3_conf.py | ramyacr97/RamyaPython | 27ae8c88ec1459372d422fa5f97baa415898f875 | [
"Apache-2.0"
] | 4 | 2021-03-31T19:20:41.000Z | 2021-12-13T20:25:28.000Z | ex5_cisco3_conf.py | ramyacr97/RamyaPython | 27ae8c88ec1459372d422fa5f97baa415898f875 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals, print_function
from netmiko import Netmiko
from getpass import getpass
from jinja2 import FileSystemLoader, StrictUndefined
from jinja2.environment import Environment
password = getpass()
env = Environment()
env.loader = FileSystemLoader('.')
cisco3 = {
"host": 'cisco3.lasth... | 27.285714 | 55 | 0.689791 | 89 | 764 | 5.707865 | 0.595506 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041204 | 0.174084 | 764 | 27 | 56 | 28.296296 | 0.763867 | 0 | 0 | 0 | 0 | 0 | 0.221494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.115385 | 0.192308 | 0 | 0.192308 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d34815342ec9930ec059633bc79d03ace333fb1c | 5,316 | py | Python | skill_data.py | wang-g/wang-g.github.io | 27c4881f84802023b23d49bcc26c42d09c36d502 | [
"MIT"
] | null | null | null | skill_data.py | wang-g/wang-g.github.io | 27c4881f84802023b23d49bcc26c42d09c36d502 | [
"MIT"
] | null | null | null | skill_data.py | wang-g/wang-g.github.io | 27c4881f84802023b23d49bcc26c42d09c36d502 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import urllib2
import re
def url_request(url):
hdr = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36',
'Accept':'*/*'}
request = urllib2.Request(url, headers=hdr)
try:
response = u... | 33.859873 | 137 | 0.633559 | 754 | 5,316 | 4.240053 | 0.214854 | 0.042227 | 0.018768 | 0.033782 | 0.270879 | 0.235221 | 0.190804 | 0.190804 | 0.131373 | 0.131373 | 0 | 0.012054 | 0.235327 | 5,316 | 156 | 138 | 34.076923 | 0.774416 | 0.209368 | 0 | 0.160714 | 0 | 0.008929 | 0.113176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026786 | null | null | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d34a80aa23feebde2586b037b449af524e4defff | 1,800 | py | Python | writeDzn.py | alejandrohn/SCI-generator | 7b575fa56ecdbbe9474f11d4760ed0099ee430e7 | [
"MIT"
] | null | null | null | writeDzn.py | alejandrohn/SCI-generator | 7b575fa56ecdbbe9474f11d4760ed0099ee430e7 | [
"MIT"
] | null | null | null | writeDzn.py | alejandrohn/SCI-generator | 7b575fa56ecdbbe9474f11d4760ed0099ee430e7 | [
"MIT"
] | null | null | null | from printElement import PrintElement
TAnswer = '%number of attributes'
KAnswer = '%maximum size of support set'
NAnswer = '%number of positive instances'
MAnswer = '%number of negative instances'
CAnswer = '%number of atMostOne Constraints'
class ManageWriteDzn:
global f
def __init__(self):
self.p... | 31.578947 | 77 | 0.646111 | 183 | 1,800 | 6.311475 | 0.377049 | 0.030303 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003621 | 0.232778 | 1,800 | 56 | 78 | 32.142857 | 0.83273 | 0 | 0 | 0.047619 | 0 | 0 | 0.107778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0 | 0.261905 | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d34b6b2d33690bc9253484249ff04652b2e7fa4a | 547 | py | Python | tests/test_backends/test_base.py | ColinDuquesnoy/QCrash | 775e1b15764e2041a8f9a08bea938e4d6ce817c7 | [
"MIT"
] | 30 | 2016-02-07T20:23:29.000Z | 2022-02-23T08:44:25.000Z | tests/test_backends/test_base.py | ColinDuquesnoy/QCrash | 775e1b15764e2041a8f9a08bea938e4d6ce817c7 | [
"MIT"
] | 9 | 2016-02-10T19:41:26.000Z | 2016-10-31T15:34:40.000Z | tests/test_backends/test_base.py | ColinDuquesnoy/QCrash | 775e1b15764e2041a8f9a08bea938e4d6ce817c7 | [
"MIT"
] | 5 | 2017-12-26T03:36:50.000Z | 2020-12-10T07:09:14.000Z | from qcrash.backends.base import BaseBackend
from qcrash.formatters.email import EmailFormatter
import pytest
def test_qsettings():
b = BaseBackend(None, '', '', None)
assert b.qsettings() is not None
def test_set_formatter():
b = BaseBackend(None, '', '', None)
assert b.formatter is None
b.set... | 23.782609 | 50 | 0.69287 | 65 | 547 | 5.723077 | 0.4 | 0.056452 | 0.129032 | 0.16129 | 0.145161 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179159 | 547 | 22 | 51 | 24.863636 | 0.828508 | 0 | 0 | 0.2 | 0 | 0 | 0.007313 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
d34c0db48434cd03edf286f4f305cc661998573d | 458 | py | Python | 2020/day_06/one.py | zigapk/adventofcode | 693b03014ae1dc6c303e717b3d7e9b7658d6211b | [
"MIT"
] | null | null | null | 2020/day_06/one.py | zigapk/adventofcode | 693b03014ae1dc6c303e717b3d7e9b7658d6211b | [
"MIT"
] | null | null | null | 2020/day_06/one.py | zigapk/adventofcode | 693b03014ae1dc6c303e717b3d7e9b7658d6211b | [
"MIT"
] | null | null | null | count = 0
current_group = set()
with open('in', 'r') as f:
for line in f.readlines():
l = line.strip()
if len(l) == 0:
# this is end of the last group
count += len(current_group)
current_group = set()
else:
# add answers to the current group
... | 21.809524 | 46 | 0.532751 | 64 | 458 | 3.734375 | 0.515625 | 0.301255 | 0.125523 | 0.142259 | 0.267782 | 0.267782 | 0.267782 | 0 | 0 | 0 | 0 | 0.006873 | 0.364629 | 458 | 20 | 47 | 22.9 | 0.814433 | 0.196507 | 0 | 0.307692 | 0 | 0 | 0.008242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3530afd4b1ee97d2fb3a9b0e9d548a215b5bb8c | 1,384 | py | Python | src/graph_visualize.py | sawyerWeld/PrefGAN | 295a165947fc300b2dd0754607076c780fbcafa1 | [
"MIT"
] | null | null | null | src/graph_visualize.py | sawyerWeld/PrefGAN | 295a165947fc300b2dd0754607076c780fbcafa1 | [
"MIT"
] | null | null | null | src/graph_visualize.py | sawyerWeld/PrefGAN | 295a165947fc300b2dd0754607076c780fbcafa1 | [
"MIT"
] | null | null | null | #graph_visualize.py
from graphviz import Digraph
import pairwise
# Given a vector of the form generated in pairwise.py for
# easy reading into NNs, produce a diagram of the represented graph
def vec_to_graph(vec, name='no_name_graph', save=False, fromTorch=True):
matrix = None
if fromTorch:
matrix = ... | 32.952381 | 81 | 0.609827 | 209 | 1,384 | 3.913876 | 0.430622 | 0.02445 | 0.02445 | 0.036675 | 0.215159 | 0.185819 | 0 | 0 | 0 | 0 | 0 | 0.01506 | 0.280347 | 1,384 | 42 | 81 | 32.952381 | 0.806225 | 0.16185 | 0 | 0.064516 | 1 | 0 | 0.10312 | 0.02253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 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 |
d35339d094dbb48f986c672af80d71b984a3b6fc | 9,369 | py | Python | alephnull/live/broker.py | flatM/AlephNull | 796edec7e106cd76a5a69cb6e67a1a96c7a22cf6 | [
"Apache-2.0"
] | 234 | 2015-01-07T23:51:30.000Z | 2022-02-27T00:31:56.000Z | alephnull/live/broker.py | whchin/AlephNull | 796edec7e106cd76a5a69cb6e67a1a96c7a22cf6 | [
"Apache-2.0"
] | null | null | null | alephnull/live/broker.py | whchin/AlephNull | 796edec7e106cd76a5a69cb6e67a1a96c7a22cf6 | [
"Apache-2.0"
] | 65 | 2015-01-19T10:27:48.000Z | 2022-03-16T00:54:59.000Z | __author__ = 'oglebrandon'
from logbook import Logger
from ib.ext.Contract import Contract
from ib.ext.ExecutionFilter import ExecutionFilter
from ib.ext.Order import Order as IBOrder
from alephnull.finance.blotter import Blotter
from alephnull.utils.protocol_utils import Enum
from alephnull.finance.slippage import T... | 34.193431 | 105 | 0.560252 | 1,046 | 9,369 | 4.801147 | 0.241874 | 0.028674 | 0.025488 | 0.022899 | 0.144564 | 0.108124 | 0.082437 | 0.042214 | 0.015532 | 0 | 0 | 0.002849 | 0.363219 | 9,369 | 273 | 106 | 34.318681 | 0.838921 | 0.108549 | 0 | 0.082353 | 0 | 0 | 0.028551 | 0 | 0 | 0 | 0 | 0.007326 | 0 | 0 | null | null | 0 | 0.070588 | null | null | 0.005882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d356864349a8616500c1dcf6c06fd9b89aa6330e | 970 | py | Python | students/k3340/laboratory_works/Pahmurin_Maksim/laboratiry_work_2/program/migrations/0007_auto_20200609_1524.py | imasyalol/ITMO_ICT_WebProgramming_2020 | 323430dc7a45ed5bb06f3e3b6f9cd1361f5092b8 | [
"MIT"
] | null | null | null | students/k3340/laboratory_works/Pahmurin_Maksim/laboratiry_work_2/program/migrations/0007_auto_20200609_1524.py | imasyalol/ITMO_ICT_WebProgramming_2020 | 323430dc7a45ed5bb06f3e3b6f9cd1361f5092b8 | [
"MIT"
] | null | null | null | students/k3340/laboratory_works/Pahmurin_Maksim/laboratiry_work_2/program/migrations/0007_auto_20200609_1524.py | imasyalol/ITMO_ICT_WebProgramming_2020 | 323430dc7a45ed5bb06f3e3b6f9cd1361f5092b8 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-09 12:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('program', '0006_auto_20200609_1522'),
]
operations = [
migrations.AlterField(
model_name='shedu... | 29.393939 | 133 | 0.608247 | 98 | 970 | 5.897959 | 0.540816 | 0.041522 | 0.129758 | 0.150519 | 0.176471 | 0.176471 | 0.176471 | 0.176471 | 0 | 0 | 0 | 0.046875 | 0.274227 | 970 | 32 | 134 | 30.3125 | 0.774148 | 0.046392 | 0 | 0.346154 | 1 | 0 | 0.145179 | 0.024919 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d356af38b9ae5da400ecf2d9632b5247bc881156 | 838 | py | Python | country_manager/countries/api/serializers.py | aleducode/country-manager | ec68bf8716f012571530e799902a98e630a859f4 | [
"MIT"
] | null | null | null | country_manager/countries/api/serializers.py | aleducode/country-manager | ec68bf8716f012571530e799902a98e630a859f4 | [
"MIT"
] | 1 | 2022-03-01T12:25:07.000Z | 2022-03-01T12:25:07.000Z | country_manager/countries/api/serializers.py | aleducode/country-manager | ec68bf8716f012571530e799902a98e630a859f4 | [
"MIT"
] | null | null | null | from django.db.models import fields
from rest_framework import serializers
from country_manager.countries.models import Country, Currency
class SerializerCurrency(serializers.ModelSerializer):
class Meta:
model = Currency
fields = ['code']
class BaseSerializerCountry(serializers.ModelSerializer... | 23.942857 | 70 | 0.724344 | 76 | 838 | 7.934211 | 0.407895 | 0.059701 | 0.069652 | 0.059701 | 0.119403 | 0.119403 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0.186158 | 838 | 34 | 71 | 24.647059 | 0.884164 | 0 | 0 | 0.25 | 0 | 0 | 0.060859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.65 | 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 |
d35df0fb54d5f12c5877565262966dbf56cf4beb | 2,597 | py | Python | tests/request_parsers/test_api_gateway_request_parser.py | gregchagnon/orm.cloud | c783480eef38c032194eec29e4bb3b406f787cd6 | [
"Apache-2.0"
] | null | null | null | tests/request_parsers/test_api_gateway_request_parser.py | gregchagnon/orm.cloud | c783480eef38c032194eec29e4bb3b406f787cd6 | [
"Apache-2.0"
] | 17 | 2019-06-04T02:15:52.000Z | 2019-06-20T01:03:10.000Z | tests/request_parsers/test_api_gateway_request_parser.py | gregchagnon/orm.cloud | c783480eef38c032194eec29e4bb3b406f787cd6 | [
"Apache-2.0"
] | null | null | null | import unittest
from orm_cloud.request_parsers.api_gateway_request_parser import ApiGatewayRequestParser
json = """
{
"body": "eyJ0ZXN0IjoiYm9keSJ9",
"resource": "/{proxy+}",
"path": "/thing",
"httpMethod": "GET",
"isBase64Encoded": true,
"queryStringParameters": {
"filter": "first_name: Greg",
"s... | 30.197674 | 91 | 0.627647 | 267 | 2,597 | 6.026217 | 0.602996 | 0.029832 | 0.039155 | 0.028589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071193 | 0.183288 | 2,597 | 85 | 92 | 30.552941 | 0.687412 | 0 | 0 | 0 | 0 | 0.025641 | 0.811321 | 0.251829 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.012821 | false | 0 | 0.025641 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d363fdb5d7bf1cc80898b2c5710674030871f62b | 2,245 | py | Python | DjangoAPI/apiApp/migrations/0001_initial.py | ChunjunHu/webservice | 4824494fff9465587cf161bcb960fd8caf4dc98c | [
"MIT"
] | null | null | null | DjangoAPI/apiApp/migrations/0001_initial.py | ChunjunHu/webservice | 4824494fff9465587cf161bcb960fd8caf4dc98c | [
"MIT"
] | 3 | 2022-02-10T05:29:08.000Z | 2022-02-16T21:11:34.000Z | DjangoAPI/apiApp/migrations/0001_initial.py | ChunjunHu/webservice | 4824494fff9465587cf161bcb960fd8caf4dc98c | [
"MIT"
] | 1 | 2022-02-06T02:39:27.000Z | 2022-02-06T02:39:27.000Z | # Generated by Django 3.2.5 on 2022-03-09 22:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappab... | 44.019608 | 122 | 0.6 | 233 | 2,245 | 5.656652 | 0.360515 | 0.061457 | 0.075873 | 0.091047 | 0.477238 | 0.374052 | 0.349014 | 0.284522 | 0.214719 | 0.182094 | 0 | 0.021938 | 0.269042 | 2,245 | 50 | 123 | 44.9 | 0.781231 | 0.020045 | 0 | 0.27907 | 1 | 0 | 0.078212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023256 | 0.116279 | 0 | 0.209302 | 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 |
d3640fc99773b9ef2ddf1be2290c6c754e9de36f | 5,616 | py | Python | convertE00toSHP/converte00toshp.py | borchert/metadata-tools | 674202dd7121adae493e3d28e22ed252abab2872 | [
"MIT"
] | null | null | null | convertE00toSHP/converte00toshp.py | borchert/metadata-tools | 674202dd7121adae493e3d28e22ed252abab2872 | [
"MIT"
] | null | null | null | convertE00toSHP/converte00toshp.py | borchert/metadata-tools | 674202dd7121adae493e3d28e22ed252abab2872 | [
"MIT"
] | 1 | 2020-01-23T06:44:20.000Z | 2020-01-23T06:44:20.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# converte00toshp.py
# Created on: 2014-01-08
# Description: Convert e00 files to shapefiles
# ---------------------------------------------------------------------------
# Convert e00 files to... | 32.275862 | 113 | 0.565705 | 553 | 5,616 | 5.725136 | 0.267631 | 0.085281 | 0.034744 | 0.060013 | 0.415982 | 0.397979 | 0.301011 | 0.266267 | 0.20657 | 0.168667 | 0 | 0.024698 | 0.293447 | 5,616 | 173 | 114 | 32.462428 | 0.773185 | 0.092236 | 0 | 0.441667 | 0 | 0.008333 | 0.138698 | 0.012001 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.15 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d369a9ef9f8093b26347a420d9898f546054f276 | 1,675 | py | Python | web-backend/routes/student.py | Nahemah1022/Seat-Reservation-System | b891cd66464371cdbd4d7a3271a0b4aaf86e8866 | [
"MIT"
] | null | null | null | web-backend/routes/student.py | Nahemah1022/Seat-Reservation-System | b891cd66464371cdbd4d7a3271a0b4aaf86e8866 | [
"MIT"
] | null | null | null | web-backend/routes/student.py | Nahemah1022/Seat-Reservation-System | b891cd66464371cdbd4d7a3271a0b4aaf86e8866 | [
"MIT"
] | null | null | null | from email import message
from fastapi import APIRouter, HTTPException,Depends
from sqlalchemy.orm import Session
from typing import List
from config.db import getDBSession
from models.model import t_Student
from schemas import studentSchema
studentRouter = APIRouter()
@studentRouter.get("/users",response_model= Li... | 45.27027 | 94 | 0.746269 | 199 | 1,675 | 6.21608 | 0.356784 | 0.045271 | 0.038804 | 0.061439 | 0.358933 | 0.338723 | 0.265966 | 0.153597 | 0.153597 | 0.066289 | 0 | 0.006228 | 0.137313 | 1,675 | 37 | 95 | 45.27027 | 0.849827 | 0.012537 | 0 | 0.2 | 0 | 0 | 0.07683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.233333 | 0.033333 | 0.433333 | 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 |
d370216197c82833a6a05d12de2c2488eae0c09e | 31,642 | py | Python | old/System/Utils.py | broadinstitute/cms | 4743ffd3feac08f02be7719c82b3371cb94a4d6b | [
"BSD-2-Clause"
] | 13 | 2015-05-18T14:39:00.000Z | 2020-07-22T12:57:07.000Z | old/System/Utils.py | broadinstitute/cms | 4743ffd3feac08f02be7719c82b3371cb94a4d6b | [
"BSD-2-Clause"
] | 33 | 2015-04-13T20:48:02.000Z | 2019-12-19T07:27:30.000Z | old/System/Utils.py | broadinstitute/cms | 4743ffd3feac08f02be7719c82b3371cb94a4d6b | [
"BSD-2-Clause"
] | 9 | 2016-03-31T06:56:01.000Z | 2020-01-30T16:35:45.000Z |
"""Miscellaneous utilities.
"""
import sys, os, inspect, time, shutil, types, pickle, numpy, re
from string import Template
from traceback import print_exc
from numpy import nan, isnan
#import Tools.pp.pp as pp
def TypeInfer(column):
"""Take a list of strings, and attempt to infer a datatype that fits them all.
If... | 27.804921 | 197 | 0.654952 | 4,953 | 31,642 | 4.156471 | 0.150616 | 0.022344 | 0.006412 | 0.003886 | 0.365571 | 0.340943 | 0.327537 | 0.305727 | 0.288143 | 0.285034 | 0 | 0.010897 | 0.19373 | 31,642 | 1,137 | 198 | 27.829376 | 0.796057 | 0.025283 | 0 | 0.262626 | 0 | 0 | 0.077912 | 0.022327 | 0 | 0 | 0 | 0 | 0.00202 | 0 | null | null | 0 | 0.008081 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d375c5061f9108f4ad2d4bc1a400261bd24b2603 | 1,284 | py | Python | epollchain/models.py | yashgupta10/blockchain | 3c85fe780562b14bd3715e829cda05763d724a3b | [
"MIT"
] | 1 | 2022-03-05T19:58:09.000Z | 2022-03-05T19:58:09.000Z | epollchain/models.py | yashgupta10/blockchain | 3c85fe780562b14bd3715e829cda05763d724a3b | [
"MIT"
] | null | null | null | epollchain/models.py | yashgupta10/blockchain | 3c85fe780562b14bd3715e829cda05763d724a3b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 2 22:40:45 2020
@author: yashm
"""
import json
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from epollchain import login_manager#db,
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_... | 27.319149 | 81 | 0.66433 | 165 | 1,284 | 5.012121 | 0.49697 | 0.029021 | 0.043531 | 0.050786 | 0.087062 | 0.087062 | 0.087062 | 0 | 0 | 0 | 0 | 0.018664 | 0.207165 | 1,284 | 46 | 82 | 27.913043 | 0.793713 | 0.165888 | 0 | 0 | 0 | 0 | 0.135849 | 0.049057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.033333 | 0.166667 | 0.033333 | 0.666667 | 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 |
d375e250029e39a18cd593d300700618a87108a6 | 300 | py | Python | mswindows/get_pytables_version.py | joshmoore/PyTables | 5065497fdc04f07c551c56b8b0280892fcffad03 | [
"BSD-3-Clause"
] | 3 | 2016-03-14T07:49:32.000Z | 2019-08-26T03:10:21.000Z | mswindows/get_pytables_version.py | joshmoore/PyTables | 5065497fdc04f07c551c56b8b0280892fcffad03 | [
"BSD-3-Clause"
] | null | null | null | mswindows/get_pytables_version.py | joshmoore/PyTables | 5065497fdc04f07c551c56b8b0280892fcffad03 | [
"BSD-3-Clause"
] | 4 | 2020-06-19T00:11:13.000Z | 2021-02-23T09:25:35.000Z | # Print the version splitted in three components
import sys
verfile = sys.argv[1]
f = open(verfile)
version = f.read()
l = [a[0] for a in version.split('.') if a[0] in '0123456789']
# If no revision, '0' is added
if len(l) == 2:
l.append('0')
for i in l:
print i,
f.close()
| 18.75 | 63 | 0.596667 | 53 | 300 | 3.377358 | 0.584906 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071111 | 0.25 | 300 | 15 | 64 | 20 | 0.724444 | 0.25 | 0 | 0 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d377f730f6753b1920f347bfe14baac18f430237 | 5,008 | py | Python | gtfs_bounds.py | Trillium-Solutions/gtfs-bounds | cdcc3e01aab2c928d360eae244dd904f2f412ddb | [
"Apache-2.0"
] | null | null | null | gtfs_bounds.py | Trillium-Solutions/gtfs-bounds | cdcc3e01aab2c928d360eae244dd904f2f412ddb | [
"Apache-2.0"
] | null | null | null | gtfs_bounds.py | Trillium-Solutions/gtfs-bounds | cdcc3e01aab2c928d360eae244dd904f2f412ddb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (C) 2020 Trillium Solutions <ed@trilliumtransit.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this program except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LI... | 36.289855 | 107 | 0.609425 | 684 | 5,008 | 4.315789 | 0.304094 | 0.008808 | 0.030827 | 0.004065 | 0.138211 | 0.074526 | 0.074526 | 0.074526 | 0.048103 | 0.048103 | 0 | 0.011558 | 0.274361 | 5,008 | 137 | 108 | 36.554745 | 0.800771 | 0.172125 | 0 | 0.11828 | 0 | 0.010753 | 0.316529 | 0.005817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0.086022 | 0.075269 | 0 | 0.107527 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d37fed484e562326890052560eec6bb9e353f623 | 1,591 | py | Python | main.py | Vexus178/Hikiri-chan | 86dc38461a39b09cee286ce5ef118b8cd5738389 | [
"MIT"
] | null | null | null | main.py | Vexus178/Hikiri-chan | 86dc38461a39b09cee286ce5ef118b8cd5738389 | [
"MIT"
] | null | null | null | main.py | Vexus178/Hikiri-chan | 86dc38461a39b09cee286ce5ef118b8cd5738389 | [
"MIT"
] | null | null | null | import inspect
import os, sys
from imgurpython import ImgurClient
import webbrowser
import praw
import random
client_id = 'imgur id'
client_secret = 'imgur secret'
access_token = 'imgur token'
refresh_token = 'imgur refresh'
imgur_dictionary = None
with open("count.txt", "r") as coun:
count = coun.read()... | 28.410714 | 122 | 0.691389 | 226 | 1,591 | 4.738938 | 0.442478 | 0.084034 | 0.026144 | 0.029879 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.170333 | 1,591 | 55 | 123 | 28.927273 | 0.80303 | 0 | 0 | 0.08 | 0 | 0.02 | 0.221354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3818283054f637b3393c0509f4a6d62570c2a1e | 2,750 | py | Python | _import_grammars.py | andsild/dragonfly-modules | f06a4382769d77d7b72232d8290fbf8a9b3ca225 | [
"BSD-4-Clause"
] | 1 | 2016-03-26T01:24:55.000Z | 2016-03-26T01:24:55.000Z | _import_grammars.py | andsild/dragonfly-modules | f06a4382769d77d7b72232d8290fbf8a9b3ca225 | [
"BSD-4-Clause"
] | null | null | null | _import_grammars.py | andsild/dragonfly-modules | f06a4382769d77d7b72232d8290fbf8a9b3ca225 | [
"BSD-4-Clause"
] | null | null | null | """
To load grammars, natlink has a file core\natlinkmain.py
That file uses reflection and many if-statements, making it hard to trace bugs from reloading.
Most importantly, it doesn't load directories.
This files lets you define grammar-rules whereever you want (also outside of this directory :) )
It also adds a rel... | 35.714286 | 275 | 0.694909 | 369 | 2,750 | 5.02981 | 0.466125 | 0.043103 | 0.01778 | 0.021552 | 0.052802 | 0.052802 | 0 | 0 | 0 | 0 | 0 | 0.005011 | 0.201818 | 2,750 | 77 | 276 | 35.714286 | 0.840547 | 0.048727 | 0 | 0.12766 | 0 | 0 | 0.212314 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | null | null | 0 | 0.191489 | null | null | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3839a39b7cf45ef04c3695e213b5d62d0e67c22 | 3,896 | py | Python | m209/tests/test_main.py | gremmie/m209 | 5090b5d66a101c0f444b03ab17fc7159f734b3ce | [
"MIT"
] | null | null | null | m209/tests/test_main.py | gremmie/m209 | 5090b5d66a101c0f444b03ab17fc7159f734b3ce | [
"MIT"
] | null | null | null | m209/tests/test_main.py | gremmie/m209 | 5090b5d66a101c0f444b03ab17fc7159f734b3ce | [
"MIT"
] | null | null | null | # Copyright (C) 2013 by Brian Neal.
# This file is part of m209, the M-209 simulation.
# m209 is released under the MIT License (see LICENSE.txt).
import os
import tempfile
import unittest
from ..main import main
class KeyGenTestCase(unittest.TestCase):
def setUp(self):
self.fp = tempfile.NamedTempora... | 28.437956 | 85 | 0.587526 | 487 | 3,896 | 4.638604 | 0.225873 | 0.050465 | 0.046481 | 0.073041 | 0.712705 | 0.64896 | 0.576804 | 0.576804 | 0.488712 | 0.437362 | 0 | 0.008565 | 0.25077 | 3,896 | 136 | 86 | 28.647059 | 0.765331 | 0.117813 | 0 | 0.5 | 0 | 0 | 0.141465 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.205128 | false | 0 | 0.051282 | 0 | 0.294872 | 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 |
d3862973d0118aeba88f49aa8805e534052f3096 | 19,696 | py | Python | python/pts-multi.py | vasaantk/bin | a8c264482ad3e5f78308f53d8af0667b02d6968d | [
"MIT"
] | null | null | null | python/pts-multi.py | vasaantk/bin | a8c264482ad3e5f78308f53d8af0667b02d6968d | [
"MIT"
] | null | null | null | python/pts-multi.py | vasaantk/bin | a8c264482ad3e5f78308f53d8af0667b02d6968d | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Written by Vasaant S/O Krishnan. Friday, 27 May 2016.
import re
from pylab import *
import sys
from mpldatacursor import datacursor
usrFile = sys.argv[1:]
if len(usrFile) == 0:
print ""
print "# pts-multi.py takes input from multiple COMP.PTS files"
print "# from Luca Moscadelli... | 43.004367 | 147 | 0.490201 | 2,390 | 19,696 | 4.038494 | 0.161088 | 0.015541 | 0.024865 | 0.029838 | 0.450787 | 0.418152 | 0.394219 | 0.38448 | 0.329362 | 0.316411 | 0 | 0.00901 | 0.256143 | 19,696 | 457 | 148 | 43.098468 | 0.649785 | 0.271273 | 0 | 0.246753 | 0 | 0.006494 | 0.089873 | 0.002182 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012987 | null | null | 0.094156 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d390587b56ba1214c65735648412b1cc51f97e64 | 7,421 | py | Python | webapp/creators/corrections.py | PASTAplus/umbra | 25f179801ab86d6506759b19849de1f7a8bf9e8d | [
"Apache-2.0"
] | null | null | null | webapp/creators/corrections.py | PASTAplus/umbra | 25f179801ab86d6506759b19849de1f7a8bf9e8d | [
"Apache-2.0"
] | null | null | null | webapp/creators/corrections.py | PASTAplus/umbra | 25f179801ab86d6506759b19849de1f7a8bf9e8d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:Mod: corrections
:Synopsis:
Read in the various corrections files in XML format:
NICKNAMES_FILE = 'corrections_nicknames.xml'
ORCID_CORRECTIONS_FILE = 'corrections_orcids.xml'
ORGANIZATIONS_FILE = 'organizations.xml'
OVERRIDES_FILE... | 31.987069 | 125 | 0.688182 | 824 | 7,421 | 5.898058 | 0.11165 | 0.041152 | 0.04321 | 0.032099 | 0.457407 | 0.37716 | 0.331276 | 0.309054 | 0.243416 | 0.202675 | 0 | 0.00258 | 0.216413 | 7,421 | 232 | 126 | 31.987069 | 0.83319 | 0.059965 | 0 | 0.35119 | 0 | 0.011905 | 0.10333 | 0.036596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172619 | false | 0 | 0.011905 | 0.125 | 0.357143 | 0.029762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
d3908beaabcdba80dff7565fda6c8731a6f721b1 | 579 | py | Python | Zane/cogs/dbots.py | crrapi/Zane | e897175220f8746c977c58e54e18a7e1557ec2c9 | [
"MIT"
] | null | null | null | Zane/cogs/dbots.py | crrapi/Zane | e897175220f8746c977c58e54e18a7e1557ec2c9 | [
"MIT"
] | null | null | null | Zane/cogs/dbots.py | crrapi/Zane | e897175220f8746c977c58e54e18a7e1557ec2c9 | [
"MIT"
] | null | null | null | import os
import dbl
import asyncio
class DiscordBotsOrgAPI:
def __init__(self, bot):
self.bot = bot
self.token = os.environ['DBL_TOKEN']
self.dbl_py = dbl.Client(self.bot, self.token)
self.bot.loop.create_task(self._update_stats())
async def _update_stats(self):
whi... | 22.269231 | 85 | 0.618307 | 74 | 579 | 4.621622 | 0.513514 | 0.102339 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.284974 | 579 | 25 | 86 | 23.16 | 0.816425 | 0 | 0 | 0 | 0 | 0 | 0.015544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d390e822ad8a0de64118555a3faf6919a5cae5d2 | 27,996 | py | Python | fragile/core/base_classes.py | Guillemdb/fragile | a8e8bb9852902d8abbc103aa122be02ca5b1112c | [
"MIT"
] | 35 | 2020-03-06T07:36:32.000Z | 2022-01-07T05:22:41.000Z | fragile/core/base_classes.py | Guillemdb/fragile | a8e8bb9852902d8abbc103aa122be02ca5b1112c | [
"MIT"
] | 9 | 2020-03-05T23:39:12.000Z | 2020-03-09T01:57:49.000Z | fragile/core/base_classes.py | Guillemdb/fragile | a8e8bb9852902d8abbc103aa122be02ca5b1112c | [
"MIT"
] | 5 | 2020-03-07T17:20:55.000Z | 2021-12-18T06:16:01.000Z | from typing import Callable, Dict, List, Tuple, Union
import judo
from judo import random_state
from fragile.core.states import OneWalker, States, StatesEnv, StatesModel, StatesWalkers
from fragile.core.typing import StateDict, Tensor
class StatesOwner:
"""
Every class that stores its data in :class:`States... | 35.082707 | 98 | 0.60798 | 3,182 | 27,996 | 5.228787 | 0.108737 | 0.015026 | 0.02921 | 0.008655 | 0.510698 | 0.466282 | 0.440918 | 0.400289 | 0.37192 | 0.347097 | 0 | 0.002302 | 0.317295 | 27,996 | 797 | 99 | 35.126725 | 0.868205 | 0.56333 | 0 | 0.479853 | 0 | 0 | 0.02156 | 0.002339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0.007326 | 0.018315 | 0.010989 | 0.362637 | 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 |
d39402cd726fb294bd467eae8efe214aa9dd3e60 | 637 | py | Python | roombapy/roomba_factory.py | Erelen-Laiquendi/roombapy | 104908ec040ebb72e16d3763741565eacc585801 | [
"MIT"
] | 17 | 2018-01-27T19:53:06.000Z | 2022-03-16T07:29:13.000Z | roombapy/roomba_factory.py | Erelen-Laiquendi/roombapy | 104908ec040ebb72e16d3763741565eacc585801 | [
"MIT"
] | 78 | 2017-09-03T17:37:03.000Z | 2022-03-30T10:41:55.000Z | roombapy/roomba_factory.py | bdraco/Roomba980-Python | d25583a7b8cd6e65148caeebc6849e73dff645da | [
"MIT"
] | 25 | 2017-09-03T13:43:21.000Z | 2022-03-19T23:41:51.000Z | from roombapy import Roomba
from roombapy.remote_client import RoombaRemoteClient
class RoombaFactory:
"""
Allows you to create Roomba class to control your robot
"""
@staticmethod
def create_roomba(
address=None, blid=None, password=None, continuous=True, delay=1
):
remote_cl... | 28.954545 | 80 | 0.708006 | 70 | 637 | 6.3 | 0.385714 | 0.136054 | 0.095238 | 0.086168 | 0.14059 | 0.14059 | 0 | 0 | 0 | 0 | 0 | 0.002008 | 0.21821 | 637 | 21 | 81 | 30.333333 | 0.883534 | 0.086342 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0.142857 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d3963d16a4756f6229710213fef2b9a3cacd7dfb | 2,576 | py | Python | app/admin/admin.py | hXtreme/HCP-Project | 658beb1103c42666803c00a314d580a74e86d0cc | [
"MIT"
] | null | null | null | app/admin/admin.py | hXtreme/HCP-Project | 658beb1103c42666803c00a314d580a74e86d0cc | [
"MIT"
] | 28 | 2019-11-15T22:34:57.000Z | 2019-12-23T20:28:30.000Z | app/admin/admin.py | hXtreme/HCP-Project | 658beb1103c42666803c00a314d580a74e86d0cc | [
"MIT"
] | 8 | 2019-10-16T19:22:16.000Z | 2019-12-22T01:29:31.000Z | import csv
from io import StringIO
import os.path as op
from flask import request, redirect, Response, flash, url_for
from werkzeug.exceptions import HTTPException
from flask_admin import Admin
from flask_admin.base import expose
from flask_admin.contrib.sqla import ModelView
from flask_admin.contrib.fileadmin import ... | 31.802469 | 80 | 0.63587 | 301 | 2,576 | 5.318937 | 0.428571 | 0.028107 | 0.034978 | 0.026234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002674 | 0.274068 | 2,576 | 80 | 81 | 32.2 | 0.853476 | 0.084239 | 0 | 0.033333 | 0 | 0 | 0.10766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.016667 | 0.316667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d399594b683ccaf094dbd33ab057cd3e42d95075 | 1,454 | py | Python | hackathon/migrations/0001_initial.py | natalijabujevic0708/ci-hackathon-app | c3d01ca3d093e49bd712376a319b517da26049ca | [
"MIT"
] | 11 | 2020-10-06T13:50:46.000Z | 2021-02-27T20:19:17.000Z | hackathon/migrations/0001_initial.py | natalijabujevic0708/ci-hackathon-app | c3d01ca3d093e49bd712376a319b517da26049ca | [
"MIT"
] | 174 | 2020-10-13T18:25:34.000Z | 2022-01-17T09:49:18.000Z | hackathon/migrations/0001_initial.py | natalijabujevic0708/ci-hackathon-app | c3d01ca3d093e49bd712376a319b517da26049ca | [
"MIT"
] | 46 | 2020-10-14T11:27:20.000Z | 2022-01-31T17:48:12.000Z | # Generated by Django 3.1.1 on 2020-10-15 19:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 44.060606 | 183 | 0.65337 | 157 | 1,454 | 5.878981 | 0.44586 | 0.03467 | 0.069339 | 0.091008 | 0.139762 | 0.065005 | 0 | 0 | 0 | 0 | 0 | 0.015831 | 0.218019 | 1,454 | 33 | 184 | 44.060606 | 0.795954 | 0.030949 | 0 | 0 | 1 | 0 | 0.102983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d39ffad85c6fbfec477f45e47cb4573c7b7691b9 | 2,478 | py | Python | handwriting-synthesis/hw_generator_config.py | blow-the-fluff/parking | b47296982f2dd464fe91c12baeb349a2041c49cb | [
"MIT"
] | null | null | null | handwriting-synthesis/hw_generator_config.py | blow-the-fluff/parking | b47296982f2dd464fe91c12baeb349a2041c49cb | [
"MIT"
] | null | null | null | handwriting-synthesis/hw_generator_config.py | blow-the-fluff/parking | b47296982f2dd464fe91c12baeb349a2041c49cb | [
"MIT"
] | null | null | null | DO_RUN_BIAS_TEST=False
DEBUG = False
INPUT_CSV=False
ROOT_FOLDER="/home/jupyter/forms-ocr"
OUTPUT_FOLDER= ROOT_FOLDER + "/sample_images"
GEN_FOLDER = OUTPUT_FOLDER + "/img"
LOCALE = "en_GB"
DUMMY_GENERATOR=0
FIELD_DICT_3FIELDS= {'Name':(0,0),'Tax':(0,0),
'Address':(0,0)
}
FIELD_DICT_7FIELDS= {'N... | 32.181818 | 70 | 0.355125 | 270 | 2,478 | 3.159259 | 0.248148 | 0.164127 | 0.07034 | 0.03517 | 0.509965 | 0.509965 | 0.509965 | 0.509965 | 0.491208 | 0.461899 | 0 | 0.127083 | 0.418886 | 2,478 | 76 | 71 | 32.605263 | 0.465278 | 0 | 0 | 0.471429 | 0 | 0 | 0.190184 | 0.027403 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3a7d49992d618368d9ce55d49a0a4a8101b42d1 | 39,287 | py | Python | language.py | ErrorNoInternet/Doge-Utilities | 29b09eb07ac6b2cb1f5a842a00b9e4b16b7d8bb2 | [
"MIT"
] | 6 | 2021-08-07T11:27:41.000Z | 2022-01-31T02:56:51.000Z | language.py | ErrorNoInternet/Doge-Utilities | 29b09eb07ac6b2cb1f5a842a00b9e4b16b7d8bb2 | [
"MIT"
] | null | null | null | language.py | ErrorNoInternet/Doge-Utilities | 29b09eb07ac6b2cb1f5a842a00b9e4b16b7d8bb2 | [
"MIT"
] | 3 | 2021-11-16T04:56:29.000Z | 2022-02-03T23:23:53.000Z | data = {
"en": {
"no_permission": "You do not have permission to use this command!",
"not_command_sender": "You are not the sender of that command!",
"vote_message": "Thank you for voting for Doge Utilities!",
"banned_message": "You are banned from using Doge Utilities!",
"er... | 48.622525 | 134 | 0.588897 | 4,046 | 39,287 | 5.499506 | 0.276817 | 0.020853 | 0.008539 | 0.003775 | 0.067592 | 0.044852 | 0.027684 | 0.014291 | 0.009707 | 0.005393 | 0 | 0.002496 | 0.245501 | 39,287 | 807 | 135 | 48.682776 | 0.748161 | 0 | 0 | 0.03354 | 0 | 0 | 0.66637 | 0.030087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001242 | false | 0 | 0 | 0 | 0.004969 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3aaa1b09086c8b055121a087b5a128d8836e803 | 896 | py | Python | grnglow/glow/models/comment.py | xiaokai111/green-glow | 19e399c32ee4d3cfc026684b06f49df9b7dd10d5 | [
"MIT"
] | 18 | 2016-03-19T10:57:43.000Z | 2021-10-10T07:52:51.000Z | grnglow/glow/models/comment.py | xiaokai111/green-glow | 19e399c32ee4d3cfc026684b06f49df9b7dd10d5 | [
"MIT"
] | 3 | 2019-06-13T03:15:11.000Z | 2020-06-05T18:16:52.000Z | grnglow/glow/models/comment.py | xiaokai111/green-glow | 19e399c32ee4d3cfc026684b06f49df9b7dd10d5 | [
"MIT"
] | 11 | 2017-05-15T14:24:17.000Z | 2021-10-10T07:52:56.000Z | # -*- encoding: utf-8 -*-
'''
Created on 2012-3-22
@author: Neil
'''
from django.db import models
# from photo import Photo
from user import User
class Comment(models.Model):
"""
评论的数据模型
"""
photo_id = models.IntegerField()
photo_owner = models.ForeignKey(User, related_name='comment_photo_owner')... | 28 | 97 | 0.700893 | 105 | 896 | 5.790476 | 0.571429 | 0.049342 | 0.052632 | 0.088816 | 0.101974 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010944 | 0.184152 | 896 | 31 | 98 | 28.903226 | 0.820793 | 0.279018 | 0 | 0 | 0 | 0 | 0.050243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 0.866667 | 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 |
6c8f5973554f43b29342f2fad463b648569e173f | 749 | py | Python | wolfpack/lib/alpha_addr.py | s1na/wolfpack | c37b7c35bb8b49cf89b5ebfa2f194b3711ea9672 | [
"MIT"
] | 1 | 2015-01-23T19:58:34.000Z | 2015-01-23T19:58:34.000Z | wolfpack/lib/alpha_addr.py | s1na/wolfpack | c37b7c35bb8b49cf89b5ebfa2f194b3711ea9672 | [
"MIT"
] | null | null | null | wolfpack/lib/alpha_addr.py | s1na/wolfpack | c37b7c35bb8b49cf89b5ebfa2f194b3711ea9672 | [
"MIT"
] | null | null | null | import socket
import nmap
from wolfpack.beta.settings import PORT as alpha_port
def get_network_ip():
'''Get local IP address'''
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('google.com', 0))
return s.getsockname()[0]
def get_alpha_addr():
'''Find & get IP address of alpha in... | 24.16129 | 87 | 0.627503 | 111 | 749 | 4.081081 | 0.522523 | 0.07947 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007005 | 0.23765 | 749 | 30 | 88 | 24.966667 | 0.78634 | 0.038718 | 0 | 0 | 0 | 0 | 0.069291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
6c95019118d078c0491416494a624027fde1bd6e | 688 | py | Python | questions/q270_array_peak/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | questions/q270_array_peak/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | 1 | 2021-05-15T07:56:51.000Z | 2021-05-15T07:56:51.000Z | questions/q270_array_peak/code.py | aadhityasw/Competitive-Programs | 901a48d35f024a3a87c32a45b7f4531e8004a203 | [
"MIT"
] | null | null | null | class Solution:
# @param A : list of integers
# @return an integer
def perfectPeak(self, A):
n = len(A)
left = [0] * n
right = [0] * n
left[0] = A[0]
right[n-1] = A[n-1]
for i in range(1, n) :
left[i] = max(left[i-1], A[i])
for i in rang... | 23.724138 | 112 | 0.462209 | 109 | 688 | 2.917431 | 0.422018 | 0.025157 | 0.056604 | 0.103774 | 0.141509 | 0.141509 | 0.09434 | 0.09434 | 0 | 0 | 0 | 0.214452 | 0.376453 | 688 | 28 | 113 | 24.571429 | 0.526807 | 0.06686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c9704469969e935784821f6637c39bddc14f1d3 | 487 | py | Python | malspider_django/dashboard/management/commands/del_alerts.py | andrewhenke/malspider | 1db785c2b31439d719a8644b386c6f0a5c255f75 | [
"BSD-3-Clause"
] | 453 | 2016-05-23T20:43:03.000Z | 2022-03-09T00:11:47.000Z | malspider_django/dashboard/management/commands/del_alerts.py | stevenchen0x01/malspider | 1db785c2b31439d719a8644b386c6f0a5c255f75 | [
"BSD-3-Clause"
] | 35 | 2016-06-13T22:14:51.000Z | 2022-02-11T03:39:02.000Z | malspider_django/dashboard/management/commands/del_alerts.py | stevenchen0x01/malspider | 1db785c2b31439d719a8644b386c6f0a5c255f75 | [
"BSD-3-Clause"
] | 93 | 2016-05-24T02:02:51.000Z | 2021-12-14T06:06:04.000Z | #
# Copyright (c) 2016-present, Cisco Systems, Inc. All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
from django.core.management.base import BaseCommand, CommandError
from dashboard.models import Alert
from... | 27.055556 | 72 | 0.728953 | 68 | 487 | 5.220588 | 0.764706 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010025 | 0.180698 | 487 | 17 | 73 | 28.647059 | 0.879699 | 0.402464 | 0 | 0 | 0 | 0 | 0.067857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 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 |
6c987ea06eb117d1b0370fa885187db00f8c5306 | 1,349 | py | Python | ros/nodes/simple_run.py | asukiaaa/kagotos | 9e01800f1b5f16bee1532d75b87010029b3342fe | [
"MIT"
] | null | null | null | ros/nodes/simple_run.py | asukiaaa/kagotos | 9e01800f1b5f16bee1532d75b87010029b3342fe | [
"MIT"
] | null | null | null | ros/nodes/simple_run.py | asukiaaa/kagotos | 9e01800f1b5f16bee1532d75b87010029b3342fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from sensor_msgs.msg import LaserScan
from geometry_msgs.msg import Twist
pub = rospy.Publisher('cmd_vel', Twist, queue_size=10)
def set_motor_speed(left, right):
twist = Twist()
if (left > 0.0 and right > 0.0):
twist.linear.x = 1.0
elif (left <= 0.0 and right > ... | 28.104167 | 68 | 0.595256 | 208 | 1,349 | 3.701923 | 0.336538 | 0.028571 | 0.038961 | 0.046753 | 0.287013 | 0.237662 | 0.193506 | 0.193506 | 0.193506 | 0.193506 | 0 | 0.065641 | 0.277242 | 1,349 | 47 | 69 | 28.702128 | 0.724103 | 0.099333 | 0 | 0.081081 | 0 | 0 | 0.052109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | 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 |
6c990b84fb2d71dfde43771892f7b1f84c09eb6a | 4,819 | py | Python | moto/cloudwatch/responses.py | EvaSDK/moto | 8095f31772fb144f2045c0991f4c8ed17f324b91 | [
"Apache-2.0"
] | null | null | null | moto/cloudwatch/responses.py | EvaSDK/moto | 8095f31772fb144f2045c0991f4c8ed17f324b91 | [
"Apache-2.0"
] | null | null | null | moto/cloudwatch/responses.py | EvaSDK/moto | 8095f31772fb144f2045c0991f4c8ed17f324b91 | [
"Apache-2.0"
] | null | null | null | from moto.core.responses import BaseResponse
from .models import cloudwatch_backend
class CloudWatchResponse(BaseResponse):
def put_metric_alarm(self):
name = self._get_param('AlarmName')
comparison_operator = self._get_param('ComparisonOperator')
evaluation_periods = self._get_param('Eva... | 45.895238 | 128 | 0.599502 | 387 | 4,819 | 7.224806 | 0.248062 | 0.032546 | 0.034335 | 0.02432 | 0.187053 | 0.10372 | 0.10372 | 0.10372 | 0.10372 | 0.088698 | 0 | 0.019236 | 0.288027 | 4,819 | 104 | 129 | 46.336538 | 0.795686 | 0 | 0 | 0.229167 | 0 | 0 | 0.609878 | 0.151484 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.020833 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c9e348effa4e8bef008bfb612d983794a68ef21 | 2,200 | py | Python | tests/models/test_worklist.py | thtroyer/simple-text-generator | 2b84d5fc5efa6311331210cabfb74e4305fcf947 | [
"MIT"
] | 1 | 2018-08-04T02:01:15.000Z | 2018-08-04T02:01:15.000Z | tests/models/test_worklist.py | thtroyer/simple-text-generator | 2b84d5fc5efa6311331210cabfb74e4305fcf947 | [
"MIT"
] | 21 | 2020-09-25T22:52:32.000Z | 2021-07-07T01:40:27.000Z | tests/models/test_worklist.py | thtroyer/simple-text-generator | 2b84d5fc5efa6311331210cabfb74e4305fcf947 | [
"MIT"
] | 1 | 2019-01-11T21:00:26.000Z | 2019-01-11T21:00:26.000Z | from simpletextgenerator.models.worklist import WorkItem, WorkList, TrainingWorkItem, GeneratingWorkItem
def test_trainingWorkItem():
training_work_item = TrainingWorkItem(50)
assert (training_work_item.get_time_estimate(training_rate=50)) == 1
assert (training_work_item.get_time_estimate(training_rate=1.... | 30.985915 | 104 | 0.737273 | 271 | 2,200 | 5.634686 | 0.169742 | 0.082515 | 0.176817 | 0.180747 | 0.655534 | 0.635232 | 0.600524 | 0.577603 | 0.417158 | 0.35167 | 0 | 0.046918 | 0.166818 | 2,200 | 70 | 105 | 31.428571 | 0.786143 | 0.022273 | 0 | 0.490196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313725 | 1 | 0.098039 | false | 0 | 0.019608 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c9ef7ff90f1546cb9f5c58900c55cc634886bf9 | 1,125 | py | Python | dolweb/urls.py | YggDrazil/DolphinWeb | 536670231fdfd1ca439e55b987017afac7f754ef | [
"MIT"
] | null | null | null | dolweb/urls.py | YggDrazil/DolphinWeb | 536670231fdfd1ca439e55b987017afac7f754ef | [
"MIT"
] | null | null | null | dolweb/urls.py | YggDrazil/DolphinWeb | 536670231fdfd1ca439e55b987017afac7f754ef | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Monkey patching ftw...
import dolweb.utils.monkey
admin.autodiscover()
urlpatterns = p... | 28.125 | 95 | 0.701333 | 140 | 1,125 | 5.578571 | 0.378571 | 0.040973 | 0.053777 | 0.046095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142222 | 1,125 | 39 | 96 | 28.846154 | 0.809326 | 0.157333 | 0 | 0 | 0 | 0 | 0.248401 | 0.08742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6ca25dc0c006b0857bf38a97779fb9e1bb56d5fd | 3,087 | py | Python | alipay/aop/api/response/AlipayMarketingRecruitPlanQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayMarketingRecruitPlanQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayMarketingRecruitPlanQueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.RecruitEnrollRule import RecruitEnrollRule
class AlipayMarketingRecruitPlanQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayMarketingRecrui... | 29.970874 | 112 | 0.645935 | 357 | 3,087 | 5.285714 | 0.140056 | 0.074192 | 0.062003 | 0.036036 | 0.102809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000444 | 0.269841 | 3,087 | 102 | 113 | 30.264706 | 0.836735 | 0.013605 | 0 | 0.093023 | 0 | 0 | 0.053237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.034884 | 0.093023 | 0.348837 | 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 |
6ca54efc2b2df4183e618a9c2b8a38859e73d7e2 | 359 | py | Python | main.py | ferizoozoo/Simple-brute-force-password-hacker | 1062317dcfed0689d34d54d745f50865f31c617f | [
"MIT"
] | null | null | null | main.py | ferizoozoo/Simple-brute-force-password-hacker | 1062317dcfed0689d34d54d745f50865f31c617f | [
"MIT"
] | null | null | null | main.py | ferizoozoo/Simple-brute-force-password-hacker | 1062317dcfed0689d34d54d745f50865f31c617f | [
"MIT"
] | null | null | null | import sys
from password_checker import PasswordChecker
from client import Client
def main():
ip_address, port = sys.argv[1:3]
client = Client(ip_address, int(port))
password_checker = PasswordChecker(client)
password = password_checker.crack_password()
print(password)
client.close_connection()... | 25.642857 | 48 | 0.732591 | 44 | 359 | 5.636364 | 0.5 | 0.181452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.172702 | 359 | 14 | 49 | 25.642857 | 0.828283 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.333333 | 0.25 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6cab9d30b830807cfd6244c82e178ab22a7a8719 | 599 | py | Python | setup.py | goyalankit/cgtop | 7ff137243cf32ff91a8da3823bd46396c38173ea | [
"MIT"
] | null | null | null | setup.py | goyalankit/cgtop | 7ff137243cf32ff91a8da3823bd46396c38173ea | [
"MIT"
] | null | null | null | setup.py | goyalankit/cgtop | 7ff137243cf32ff91a8da3823bd46396c38173ea | [
"MIT"
] | null | null | null | from setuptools import setup
#from cgtop import __version__
setup(
name='cgtop',
version=0.0,
description='A cgroup resource viewer',
long_description=open('README.md').read(),
keywords='top for cgroups',
author='Ankit Goyal',
author_email='ankit3goyal@gmail.com',
url='https://github.co... | 23.96 | 75 | 0.647746 | 71 | 599 | 5.323944 | 0.704225 | 0.042328 | 0.074074 | 0.089947 | 0.169312 | 0.169312 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.193656 | 599 | 24 | 76 | 24.958333 | 0.770186 | 0.048414 | 0 | 0 | 0 | 0 | 0.410211 | 0.036972 | 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 |
6caf69284d8257f0962fc6988be32dd7bf6bf075 | 7,434 | py | Python | mandarinizer.py | JackBDu/image-mandarinizer | 608464a3807ab0d44c2567f7dd06f9470d5cdecd | [
"MIT"
] | 2 | 2017-03-10T16:34:41.000Z | 2017-03-11T04:34:06.000Z | mandarinizer.py | JackBDu/image-mandarinizer | 608464a3807ab0d44c2567f7dd06f9470d5cdecd | [
"MIT"
] | null | null | null | mandarinizer.py | JackBDu/image-mandarinizer | 608464a3807ab0d44c2567f7dd06f9470d5cdecd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding=utf-8
# you need to install opencv before running the script import cv2
import sys # exit
import time # sleep
import argparse # argparse
try:
import cv2
except ImportError as error:
print "ImportError:", error.args[0]
sys.exit(1)
__author__ = "Jack B. Du"
__copyri... | 35.066038 | 114 | 0.583535 | 975 | 7,434 | 4.381538 | 0.259487 | 0.02809 | 0.047753 | 0.0103 | 0.322097 | 0.295178 | 0.240871 | 0.194757 | 0.194757 | 0.160581 | 0 | 0.013249 | 0.299435 | 7,434 | 211 | 115 | 35.232227 | 0.807028 | 0.212941 | 0 | 0.363636 | 0 | 0 | 0.153714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.098485 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6cb5d939abcb2638e5517db44040f270cc6b5fb3 | 526 | py | Python | cookbook/migrations/0007_auto_20191226_0852.py | mhoellmann/recipes | 525aa4e4a4f218a47e1770498fff9fa8b0d7a097 | [
"MIT"
] | null | null | null | cookbook/migrations/0007_auto_20191226_0852.py | mhoellmann/recipes | 525aa4e4a4f218a47e1770498fff9fa8b0d7a097 | [
"MIT"
] | 1 | 2020-04-11T09:47:20.000Z | 2020-04-11T09:47:20.000Z | cookbook/migrations/0007_auto_20191226_0852.py | mcejp/recipes | 913d858473a1d44b2ced02e09fddfc4d320848b7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2019-12-26 07:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cookbook', '0006_recipe_image'),
]
operations = [
migrations.RenameField(
model_name='recipe',
old_name='time',
... | 21.916667 | 49 | 0.56654 | 53 | 526 | 5.471698 | 0.698113 | 0.062069 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055866 | 0.319392 | 526 | 23 | 50 | 22.869565 | 0.75419 | 0.085551 | 0 | 0.235294 | 1 | 0 | 0.135699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6cbc67a62d17583111ae419d33099880bef9d9d3 | 1,675 | py | Python | script/bitbucket-buildstatus-notifier.py | ydemetriades/codefresh-bitbucket-buildstatus | 186e85e9e8ca3008cfbe437c7b695a3c6492d105 | [
"MIT"
] | null | null | null | script/bitbucket-buildstatus-notifier.py | ydemetriades/codefresh-bitbucket-buildstatus | 186e85e9e8ca3008cfbe437c7b695a3c6492d105 | [
"MIT"
] | null | null | null | script/bitbucket-buildstatus-notifier.py | ydemetriades/codefresh-bitbucket-buildstatus | 186e85e9e8ca3008cfbe437c7b695a3c6492d105 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import requests
repo_owner = os.getenv('CF_REPO_OWNER')
repo_slug = os.getenv('CF_REPO_NAME')
repo_auth_user = os.getenv('BB_BSN_REPO_AUTH_USER')
repo_auth_password = os.getenv('BB_BSN_REPO_AUTH_PASSWORD')
if repo_auth_user is None:
print("Authentication User Environment Variable ... | 28.389831 | 101 | 0.693731 | 246 | 1,675 | 4.439024 | 0.276423 | 0.07326 | 0.054945 | 0.047619 | 0.25 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0.004252 | 0.157612 | 1,675 | 59 | 102 | 28.389831 | 0.769667 | 0.067463 | 0 | 0.046512 | 0 | 0 | 0.373958 | 0.114817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.093023 | 0.046512 | 0 | 0.046512 | 0.232558 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6cc1e9bddbfd29e70118644e9083b1e444280216 | 177 | py | Python | Python/Listas/Q1.py | Flavio-Varejao/Exercicios | 69d62d09e5ef5da4446b6bf7dccda9eae7361d96 | [
"MIT"
] | null | null | null | Python/Listas/Q1.py | Flavio-Varejao/Exercicios | 69d62d09e5ef5da4446b6bf7dccda9eae7361d96 | [
"MIT"
] | null | null | null | Python/Listas/Q1.py | Flavio-Varejao/Exercicios | 69d62d09e5ef5da4446b6bf7dccda9eae7361d96 | [
"MIT"
] | null | null | null | '''
Faça um Programa que leia um vetor de 5 números inteiros e mostre-os.
'''
lista=[]
for numero in range(1,6):
lista.append(int(input("Digite um número: ")))
print(lista)
| 22.125 | 69 | 0.683616 | 30 | 177 | 4.033333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.163842 | 177 | 7 | 70 | 25.285714 | 0.797297 | 0.389831 | 0 | 0 | 0 | 0 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
6ccd244310f073cc4284e8a5e4c8332bc6ab7c5d | 16,348 | py | Python | src/eAsisitent_scraper/scraper.py | PingWasFun/eAsistent-scraper | dbd2630b48cc07183a93a12d00c73371cbd3f46d | [
"MIT"
] | null | null | null | src/eAsisitent_scraper/scraper.py | PingWasFun/eAsistent-scraper | dbd2630b48cc07183a93a12d00c73371cbd3f46d | [
"MIT"
] | 10 | 2022-03-20T07:11:49.000Z | 2022-03-23T20:22:36.000Z | src/eAsisitent_scraper/scraper.py | PingWasFun/eAsistent-scraper | dbd2630b48cc07183a93a12d00c73371cbd3f46d | [
"MIT"
] | null | null | null | import bs4.element
import datetime
import re
import requests
import time
from bs4 import BeautifulSoup
def request_schedule(
school_id: str,
class_id=0,
professor=0,
classroom=0,
interest_activity=0,
school_week=0,
student_id=0,
soup=False,
):
"""
... | 48.946108 | 145 | 0.370504 | 1,285 | 16,348 | 4.55642 | 0.16965 | 0.028181 | 0.02152 | 0.028693 | 0.62579 | 0.61503 | 0.61503 | 0.606149 | 0.591802 | 0.584629 | 0 | 0.012512 | 0.555114 | 16,348 | 333 | 146 | 49.093093 | 0.79252 | 0.126254 | 0 | 0.463235 | 0 | 0.007353 | 0.098512 | 0.006237 | 0 | 0 | 0 | 0.003003 | 0 | 1 | 0.007353 | false | 0.014706 | 0.022059 | 0 | 0.040441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ccef462688d16cb92cef21492dc0fd5e4283a78 | 2,602 | py | Python | frappe-bench/env/lib/python2.7/site-packages/gocardless_pro/services/base_service.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/env/lib/python2.7/site-packages/gocardless_pro/services/base_service.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/env/lib/python2.7/site-packages/gocardless_pro/services/base_service.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | # WARNING: Do not edit by hand, this file was generated by Crank:
#
# https://github.com/gocardless/crank
#
import re
import time
from requests import Timeout, ConnectionError
from uuid import uuid4
from .. import list_response
from ..api_response import ApiResponse
from ..errors import MalformedResponseError
clas... | 35.162162 | 89 | 0.646042 | 312 | 2,602 | 5.160256 | 0.330128 | 0.056522 | 0.040373 | 0.047205 | 0.186335 | 0.100621 | 0.058385 | 0.058385 | 0 | 0 | 0 | 0.005198 | 0.260569 | 2,602 | 73 | 90 | 35.643836 | 0.831601 | 0.053036 | 0 | 0.134615 | 1 | 0 | 0.028106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0 | 0.134615 | 0.038462 | 0.480769 | 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 |
6cd94369368daced42d1fd1a6ad839d005909f5c | 313 | py | Python | dpython/__init__.py | Ajoo/dpy | 80d49f47ed57ca94cb031e327cd3e89fc1dd0f1d | [
"MIT"
] | null | null | null | dpython/__init__.py | Ajoo/dpy | 80d49f47ed57ca94cb031e327cd3e89fc1dd0f1d | [
"MIT"
] | null | null | null | dpython/__init__.py | Ajoo/dpy | 80d49f47ed57ca94cb031e327cd3e89fc1dd0f1d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 4 17:31:30 2016
@author: Ajoo
"""
from .autodiff import *
from .dfloat import *
print('Initializing dpy...')
__all__ = autodiff.__all__ + dfloat.__all__
__version__ = '0.0.0'
__author__ = u'João Ferreira <ajoo@outlook.pt>'
if __name__ == "__main__":
pass | 15.65 | 47 | 0.661342 | 43 | 313 | 4.162791 | 0.767442 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.175719 | 313 | 20 | 48 | 15.65 | 0.635659 | 0.233227 | 0 | 0 | 0 | 0 | 0.270386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6ce05a520c97e1570991761165aa50751db7dd6a | 21,748 | py | Python | src/modularitydensity/metrics.py | ckmanalytix/modularity-density | 86c48ba0fc5604d3c4d6d114a3077de2447d0a99 | [
"MIT"
] | 4 | 2019-03-22T19:03:32.000Z | 2021-02-22T17:22:51.000Z | src/modularitydensity/metrics.py | ckmanalytix/modularity-density | 86c48ba0fc5604d3c4d6d114a3077de2447d0a99 | [
"MIT"
] | 4 | 2020-03-21T15:57:55.000Z | 2021-02-02T21:56:17.000Z | src/modularitydensity/metrics.py | ckmanalytix/modularity-density | 86c48ba0fc5604d3c4d6d114a3077de2447d0a99 | [
"MIT"
] | 1 | 2019-05-22T09:04:53.000Z | 2019-05-22T09:04:53.000Z | # -*- coding: utf-8 -*-
# Copyright (c) CKM Analytix Corp. All rights reserved.
# Authors: Swathi M. Mula (smula@ckmanalytix.com), Gerardo J. Veltri (gveltri@ckmanalytix.com)
"""
Metrics for determining quality of community structure
"""
import numpy as np
from scipy.sparse import identity
__all__ = ['modularity_r',... | 34.141287 | 190 | 0.629345 | 3,088 | 21,748 | 4.316386 | 0.093588 | 0.006752 | 0.018006 | 0.013654 | 0.749869 | 0.697127 | 0.676495 | 0.652937 | 0.629079 | 0.610473 | 0 | 0.025331 | 0.270278 | 21,748 | 636 | 191 | 34.194969 | 0.81443 | 0.704019 | 0 | 0.137615 | 0 | 0 | 0.010786 | 0.004681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119266 | false | 0 | 0.018349 | 0 | 0.247706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ce4d2f7215137c33ab1be6ddbb116bab9417cf6 | 65,931 | py | Python | examples/gui/ReFlowClient.py | whitews/ReFlowRESTClient | 69369bbea501382291b71facea7a511ab8f7848b | [
"BSD-3-Clause"
] | null | null | null | examples/gui/ReFlowClient.py | whitews/ReFlowRESTClient | 69369bbea501382291b71facea7a511ab8f7848b | [
"BSD-3-Clause"
] | null | null | null | examples/gui/ReFlowClient.py | whitews/ReFlowRESTClient | 69369bbea501382291b71facea7a511ab8f7848b | [
"BSD-3-Clause"
] | null | null | null | import Tkinter
import ttk
import tkMessageBox
import tkFileDialog
import tkFont
from PIL import Image, ImageTk
import json
import re
import sys
import os
import calendar
from threading import Thread
from exceptions import TypeError
import reflowrestclient.utils as rest
import flowio
VERSION = '0.13'
if hasattr(sys, ... | 34.591291 | 91 | 0.585279 | 7,442 | 65,931 | 4.944504 | 0.088551 | 0.034242 | 0.036498 | 0.029296 | 0.42566 | 0.341604 | 0.283583 | 0.238634 | 0.156073 | 0.109683 | 0 | 0.00476 | 0.32126 | 65,931 | 1,906 | 92 | 34.591291 | 0.81752 | 0.070104 | 0 | 0.340325 | 0 | 0 | 0.042027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010149 | 0.010149 | null | null | 0.008119 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ce690c94b488e14f2c8e81d4a6779d3972c525a | 306 | py | Python | test-integration/test_integration/fixtures/complex-output-project/predict.py | dashstander/cog | 0aee3c9ef50ac346d053010e39c4e7becbbcb70d | [
"Apache-2.0"
] | null | null | null | test-integration/test_integration/fixtures/complex-output-project/predict.py | dashstander/cog | 0aee3c9ef50ac346d053010e39c4e7becbbcb70d | [
"Apache-2.0"
] | null | null | null | test-integration/test_integration/fixtures/complex-output-project/predict.py | dashstander/cog | 0aee3c9ef50ac346d053010e39c4e7becbbcb70d | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel
from cog import BasePredictor
class Output(BaseModel):
hello: str
goodbye: str
class Predictor(BasePredictor):
def predict(self, name: str) -> Output:
return Output(
hello="hello " + name,
goodbye="goodbye " + name,
)
| 18 | 43 | 0.617647 | 32 | 306 | 5.90625 | 0.53125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 306 | 16 | 44 | 19.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 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 |
6ce83097b8f8eeb691230057782a392337ac2b76 | 634 | py | Python | contentcuration/contentcuration/migrations/0120_auto_20210128_1646.py | d0sadata/studio | ec3b805c0b546fe8884d446152eead90bea4174d | [
"MIT"
] | 60 | 2018-03-29T23:33:29.000Z | 2022-03-19T12:10:56.000Z | contentcuration/contentcuration/migrations/0120_auto_20210128_1646.py | d0sadata/studio | ec3b805c0b546fe8884d446152eead90bea4174d | [
"MIT"
] | 2,260 | 2018-03-02T23:14:49.000Z | 2022-03-29T20:57:21.000Z | contentcuration/contentcuration/migrations/0120_auto_20210128_1646.py | d0sadata/studio | ec3b805c0b546fe8884d446152eead90bea4174d | [
"MIT"
] | 86 | 2018-03-19T21:26:35.000Z | 2022-03-28T10:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-01-28 16:46
from __future__ import unicode_literals
import contentcuration.models
from django.db import migrations, models
import django.db.models.functions.text
class Migration(migrations.Migration):
dependencies = [
('contentcuration', '011... | 28.818182 | 189 | 0.698738 | 73 | 634 | 5.890411 | 0.684932 | 0.055814 | 0.065116 | 0.106977 | 0.125581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.179811 | 634 | 21 | 190 | 30.190476 | 0.776923 | 0.108833 | 0 | 0 | 1 | 0 | 0.144128 | 0.049822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6cea4e16762754abc48c4c11692ed138ce6a1289 | 19,474 | py | Python | responsibly/tests/test_we.py | staeiou/responsibly | f476796ef574750de30f6216c906a16eb7416106 | [
"MIT"
] | 48 | 2019-11-18T02:48:48.000Z | 2021-12-04T14:51:54.000Z | responsibly/tests/test_we.py | staeiou/responsibly | f476796ef574750de30f6216c906a16eb7416106 | [
"MIT"
] | 19 | 2018-09-01T01:03:21.000Z | 2019-07-17T08:19:29.000Z | responsibly/tests/test_we.py | staeiou/responsibly | f476796ef574750de30f6216c906a16eb7416106 | [
"MIT"
] | 6 | 2020-04-24T21:34:37.000Z | 2021-10-19T23:45:31.000Z | """Unit test module for responsibly.we"""
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison,protected-access
import copy
from math import isclose
import numpy as np
import pytest
from responsibly.consts import RANDOM_STATE
from responsibly.tests.data import TOLGA_GEN... | 42.334783 | 156 | 0.606142 | 2,305 | 19,474 | 4.765727 | 0.161822 | 0.083751 | 0.120164 | 0.160218 | 0.518252 | 0.445061 | 0.380701 | 0.331452 | 0.285571 | 0.242513 | 0 | 0.045011 | 0.299528 | 19,474 | 459 | 157 | 42.427015 | 0.760282 | 0.091199 | 0 | 0.211409 | 0 | 0 | 0.067676 | 0 | 0 | 0 | 0 | 0.008715 | 0.167785 | 1 | 0.097315 | false | 0 | 0.033557 | 0.003356 | 0.137584 | 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 |
6cec952445d2a32a9cced6888193cc4355873f68 | 413 | py | Python | alfworld/utils.py | zhaozj89/alfworld_meta_dqn | 4ad3ee6e57a6b808d4d90d48f00f14e4e8ec593d | [
"MIT"
] | 42 | 2020-10-19T12:18:58.000Z | 2022-03-11T05:48:03.000Z | alfworld/utils.py | zhaozj89/alfworld_meta_dqn | 4ad3ee6e57a6b808d4d90d48f00f14e4e8ec593d | [
"MIT"
] | 23 | 2020-10-26T01:25:36.000Z | 2022-03-20T21:29:03.000Z | alfworld/utils.py | zhaozj89/alfworld_meta_dqn | 4ad3ee6e57a6b808d4d90d48f00f14e4e8ec593d | [
"MIT"
] | 14 | 2020-10-19T12:20:27.000Z | 2022-02-09T22:58:40.000Z | import os
def mkdirs(dirpath: str) -> str:
""" Create a directory and all its parents.
If the folder already exists, its path is returned without raising any exceptions.
Arguments:
dirpath: Path where a folder need to be created.
Returns:
Path to the (created) folder.
"""
tr... | 19.666667 | 86 | 0.639225 | 52 | 413 | 5.076923 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2954 | 413 | 20 | 87 | 20.65 | 0.907216 | 0.561743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6cef68b115398e6875fe77a788feab8300411e50 | 748 | py | Python | src/correr_modelo.py | osim-microgrid-tool/osim_islanded_microgrids_sizing | 63738ddf418e4023f3b64dc1f0aba6f079710bc8 | [
"MIT"
] | 2 | 2021-07-27T13:56:18.000Z | 2021-07-27T13:56:23.000Z | src/correr_modelo.py | wropero-enersinc/osim_microrredes | 407ce32683043dbc0356fa0b2edaf537b0098b71 | [
"MIT"
] | null | null | null | src/correr_modelo.py | wropero-enersinc/osim_microrredes | 407ce32683043dbc0356fa0b2edaf537b0098b71 | [
"MIT"
] | 1 | 2021-07-25T23:03:27.000Z | 2021-07-25T23:03:27.000Z | import gurobipy
import warnings
import pyomo.environ as pyo
from pyomo.opt import *
import sys
warnings.filterwarnings("ignore")
from time import time
import os
def correr_modelo(model=None, gap=None, time_limit=None, experimento=None):
"""Correr el modelo"""
solver = solvers.SolverFactory("gurobi", solver_io... | 34 | 100 | 0.692513 | 99 | 748 | 5.131313 | 0.555556 | 0.05315 | 0.051181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183155 | 748 | 22 | 101 | 34 | 0.831424 | 0.02139 | 0 | 0 | 0 | 0 | 0.111417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0 | 0.5 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6cf11cc1426bcb037876648d9fb7b8e92ef4ca9f | 1,829 | py | Python | POP3Drop.py | andrewksimon/POP3Drop | 6ff8a4694cec3e9d03a647533f0dcdb4d0a4fcac | [
"MIT"
] | null | null | null | POP3Drop.py | andrewksimon/POP3Drop | 6ff8a4694cec3e9d03a647533f0dcdb4d0a4fcac | [
"MIT"
] | null | null | null | POP3Drop.py | andrewksimon/POP3Drop | 6ff8a4694cec3e9d03a647533f0dcdb4d0a4fcac | [
"MIT"
] | null | null | null | # This script had been written by Andrew Simon.
# This scrip was written on 09/06/2018
# The purpose of this script is to delete messages on a POP3 server (especially if they are in large quantities).
# Import statements
import poplib # POP3 Manipulation library
# Defines environment variables
user = 'user' # Inbox u... | 52.257143 | 120 | 0.717332 | 269 | 1,829 | 4.873606 | 0.449814 | 0.029748 | 0.032037 | 0.034325 | 0.108314 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018361 | 0.166211 | 1,829 | 34 | 121 | 53.794118 | 0.841311 | 0.534172 | 0 | 0 | 0 | 0 | 0.338182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.047619 | 0 | 0.047619 | 0.380952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6cf81e8062d6b3d917d89f74c2eebd4da35d380b | 1,452 | py | Python | Project/Final-Code/Graph Downloader.py | Connectomics-Classes/pseudocoelomates | 9c700454bc24e2700386d8aab138855647226a19 | [
"Apache-2.0"
] | null | null | null | Project/Final-Code/Graph Downloader.py | Connectomics-Classes/pseudocoelomates | 9c700454bc24e2700386d8aab138855647226a19 | [
"Apache-2.0"
] | null | null | null | Project/Final-Code/Graph Downloader.py | Connectomics-Classes/pseudocoelomates | 9c700454bc24e2700386d8aab138855647226a19 | [
"Apache-2.0"
] | null | null | null | import os
from urllib2 import urlopen, URLError, HTTPError
import lxml.html
from graphml2mat import graphml2mat
"""
Returns a list of all links at a given url string.
"""
def link_crawler(url):
connection = urlopen(url)
domain = lxml.html.fromstring(connection.read())
url_list = []
for link in ... | 23.803279 | 89 | 0.62741 | 199 | 1,452 | 4.472362 | 0.447236 | 0.047191 | 0.022472 | 0.035955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011101 | 0.25551 | 1,452 | 60 | 90 | 24.2 | 0.812211 | 0.070248 | 0 | 0 | 0 | 0 | 0.108362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114286 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6cfab8302aa0a5d1701db15160a6f28e7f93fde3 | 7,912 | py | Python | api/serializers.py | themontem/EverPoll-api | 8387493303b2489f2aacb4f740a9d5f9a730861d | [
"MIT"
] | null | null | null | api/serializers.py | themontem/EverPoll-api | 8387493303b2489f2aacb4f740a9d5f9a730861d | [
"MIT"
] | null | null | null | api/serializers.py | themontem/EverPoll-api | 8387493303b2489f2aacb4f740a9d5f9a730861d | [
"MIT"
] | null | null | null | import time
from datetime import datetime
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers, exceptions
from .models import *
def time_ago_in_words(... | 27.567944 | 110 | 0.71499 | 985 | 7,912 | 5.606091 | 0.195939 | 0.030605 | 0.050525 | 0.049258 | 0.358204 | 0.243571 | 0.219486 | 0.177472 | 0.121695 | 0.100326 | 0 | 0.007996 | 0.162285 | 7,912 | 286 | 111 | 27.664336 | 0.825136 | 0.029828 | 0 | 0.323009 | 0 | 0 | 0.134412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061947 | false | 0.075221 | 0.044248 | 0.00885 | 0.331858 | 0.004425 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6cfd828b73a664a69519909181372a4d12dc21cb | 1,118 | py | Python | DVDR_Client-master/client/alcohol_sensor.py | unimelb-networkedsociety/ser-pi | b94f476c6badc8306b6f609eb6169cd86aeab378 | [
"MIT"
] | null | null | null | DVDR_Client-master/client/alcohol_sensor.py | unimelb-networkedsociety/ser-pi | b94f476c6badc8306b6f609eb6169cd86aeab378 | [
"MIT"
] | null | null | null | DVDR_Client-master/client/alcohol_sensor.py | unimelb-networkedsociety/ser-pi | b94f476c6badc8306b6f609eb6169cd86aeab378 | [
"MIT"
] | null | null | null | import time
import grovepi
#grovepi.pinMode(heaterSelPin,"OUTPUT")
def read_sensor():
try:
analogInDatPin = 0
heaterSelPin = 15
sensorValue = 0
RS_air = 0
grovepi.digitalWrite(heaterSelPin, 0)
time.sleep(0.1)
#/*--- Get a average data by testing 1... | 32.882353 | 84 | 0.52415 | 122 | 1,118 | 4.704918 | 0.459016 | 0.087108 | 0.108014 | 0.069686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047739 | 0.288014 | 1,118 | 34 | 85 | 32.882353 | 0.673367 | 0.25492 | 0 | 0 | 0 | 0 | 0.047101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.296296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f06222756da61b9072070f04162e819124be92b | 2,374 | py | Python | examples/supervised/neuralnets+svm/example_fnn.py | rueckstiess/pybrain | 8fc950d700aaf9d5012911d53714afb4b18225c3 | [
"BSD-3-Clause"
] | 3 | 2015-03-21T21:42:28.000Z | 2018-07-12T04:21:32.000Z | examples/supervised/neuralnets+svm/example_fnn.py | bayerj/pybrain | cfef28152bd60cedfdae5390c599d4fe4d2ec095 | [
"BSD-3-Clause"
] | null | null | null | examples/supervised/neuralnets+svm/example_fnn.py | bayerj/pybrain | cfef28152bd60cedfdae5390c599d4fe4d2ec095 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Example script for feed-forward network usage in PyBrain.
__author__ = "Martin Felder"
__version__ = '$Id$'
from pylab import figure, ioff, clf, contourf, ion, draw, show
from pybrain.utilities import percentError
from pybrain.tools.shortcuts import buildNetwork
from pybrain.sup... | 33.43662 | 94 | 0.695451 | 303 | 2,374 | 5.415842 | 0.521452 | 0.026813 | 0.021938 | 0.031688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020878 | 0.213142 | 2,374 | 70 | 95 | 33.914286 | 0.857602 | 0.334035 | 0 | 0.054054 | 0 | 0 | 0.051348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.162162 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f094b88fc30ef4fad6c59dcd472725e504a5384 | 11,811 | py | Python | line-bot-tutorial-master/app.py | chungoppa/test | f2edd87420144a5dbafa0743475e1900b781c78d | [
"MIT"
] | null | null | null | line-bot-tutorial-master/app.py | chungoppa/test | f2edd87420144a5dbafa0743475e1900b781c78d | [
"MIT"
] | null | null | null | line-bot-tutorial-master/app.py | chungoppa/test | f2edd87420144a5dbafa0743475e1900b781c78d | [
"MIT"
] | null | null | null | from flask import Flask, request, abort
import json
import datetime
from linebot import (
LineBotApi, WebhookHandler
)
from linebot.exceptions import (
InvalidSignatureError
)
from linebot.models import *
app = Flask(__name__)
# Channel Access Token
line_bot_api = LineBotApi('Vtdy706DWhhkKC9PWUH/3ch2OfTqMSAH... | 41.442105 | 201 | 0.396325 | 812 | 11,811 | 5.624384 | 0.362069 | 0.018393 | 0.026275 | 0.032844 | 0.374863 | 0.365886 | 0.35866 | 0.35866 | 0.315524 | 0.287059 | 0 | 0.031096 | 0.501736 | 11,811 | 284 | 202 | 41.588028 | 0.744095 | 0.012869 | 0 | 0.344961 | 0 | 0.031008 | 0.570595 | 0.017509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015504 | false | 0 | 0.027132 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f0fdeb3bd51fac7381d16a6bc34f591aeb22515 | 1,801 | py | Python | pages/migrations/0001_initial.py | 501code/fletcher-street-urban-riding-club | 8a16a38280cde7dab1c8732613c52284b7ced1b3 | [
"MIT"
] | 1 | 2016-01-22T10:49:00.000Z | 2016-01-22T10:49:00.000Z | pages/migrations/0001_initial.py | 501code/fletcher-street-urban-riding-club | 8a16a38280cde7dab1c8732613c52284b7ced1b3 | [
"MIT"
] | 6 | 2016-01-30T06:52:40.000Z | 2016-01-30T16:42:08.000Z | pages/migrations/0001_initial.py | 501code/fletcher-street-urban-riding-club | 8a16a38280cde7dab1c8732613c52284b7ced1b3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-31 07:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations =... | 40.022222 | 117 | 0.611327 | 186 | 1,801 | 5.768817 | 0.387097 | 0.102516 | 0.067102 | 0.089469 | 0.449208 | 0.449208 | 0.374651 | 0.374651 | 0.374651 | 0.374651 | 0 | 0.022255 | 0.251527 | 1,801 | 44 | 118 | 40.931818 | 0.773739 | 0.036091 | 0 | 0.361111 | 1 | 0 | 0.106751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f163d956492614a41cdc53174e7f7cad513d428 | 1,102 | py | Python | test/echeck_test.py | gitter-badger/easy_echeck | 1a06bfaec492555325b866750f8af34f9d1e208f | [
"Apache-2.0"
] | 1 | 2019-04-24T05:56:28.000Z | 2019-04-24T05:56:28.000Z | test/echeck_test.py | gitter-badger/easy_echeck | 1a06bfaec492555325b866750f8af34f9d1e208f | [
"Apache-2.0"
] | 2 | 2019-04-18T00:42:47.000Z | 2019-10-22T02:43:54.000Z | test/echeck_test.py | gitter-badger/easy_echeck | 1a06bfaec492555325b866750f8af34f9d1e208f | [
"Apache-2.0"
] | 1 | 2019-04-19T05:50:27.000Z | 2019-04-19T05:50:27.000Z | # -*- coding: utf-8 -*-
class TestECurl():
def test_ecurl(self):
from echeck.Curlclient import Curlclient
url_list = ['https://www.baidu.com','http://www.pathcurve.cn']
client = Curlclient(url_list, 'indexfile')
res_list = client.docheck()
for res in res_list:
pr... | 50.090909 | 78 | 0.498185 | 123 | 1,102 | 4.341463 | 0.495935 | 0.037453 | 0.065543 | 0.037453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035156 | 0.303085 | 1,102 | 22 | 79 | 50.090909 | 0.660156 | 0.019056 | 0 | 0 | 0 | 0 | 0.327778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0.55 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f1c7be42b6720abdcee3406814d779e22371d29 | 2,050 | py | Python | ml_tutorial/rnn.py | sci2lab/ml_tutorial | 7b58edefee1e9cb978777c30212ba19a16c165f2 | [
"Apache-2.0"
] | 38 | 2020-02-11T17:45:55.000Z | 2022-02-07T05:38:41.000Z | ml_tutorial/rnn.py | sci2lab/ml_tutorial | 7b58edefee1e9cb978777c30212ba19a16c165f2 | [
"Apache-2.0"
] | 2 | 2020-02-25T02:26:01.000Z | 2020-09-21T20:32:40.000Z | ml_tutorial/rnn.py | sci2lab/ml_tutorial | 7b58edefee1e9cb978777c30212ba19a16c165f2 | [
"Apache-2.0"
] | 22 | 2020-02-25T02:26:24.000Z | 2022-03-27T07:19:54.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: 09_rnn.ipynb (unless otherwise specified).
__all__ = ['generate_data', 'encode', 'decode']
# Cell
from tqdm import tqdm
from sklearn.model_selection import train_test_split
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import LSTM, TimeDistribu... | 35.964912 | 111 | 0.629756 | 298 | 2,050 | 4.191275 | 0.322148 | 0.019215 | 0.016013 | 0.022418 | 0.264211 | 0.214572 | 0.153723 | 0.110488 | 0.110488 | 0.110488 | 0 | 0.022222 | 0.231707 | 2,050 | 57 | 112 | 35.964912 | 0.770794 | 0.052195 | 0 | 0 | 1 | 0 | 0.026832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f1e26f0660abeb03ff224e7a7512f8046dfbac7 | 1,783 | py | Python | kelkoo/parsefields.py | sachiel/kelkoo_jsontoxml | 9fbb5c46c9613e69774990dea98d7077e4e7fa0f | [
"MIT"
] | null | null | null | kelkoo/parsefields.py | sachiel/kelkoo_jsontoxml | 9fbb5c46c9613e69774990dea98d7077e4e7fa0f | [
"MIT"
] | null | null | null | kelkoo/parsefields.py | sachiel/kelkoo_jsontoxml | 9fbb5c46c9613e69774990dea98d7077e4e7fa0f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Actually, i want to design a django model-like with fields and inline validators,
of course time is against me, so i wrote this; close enough (not really) xD
If 'f' is None means that validator generate the content of the field
"""
MAIN_FIELDS = [
{
'f': None, # From JSO... | 19.172043 | 81 | 0.430735 | 175 | 1,783 | 4.331429 | 0.491429 | 0.094987 | 0.102902 | 0.08971 | 0.058047 | 0.058047 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.387549 | 1,783 | 92 | 82 | 19.380435 | 0.688645 | 0.180595 | 0 | 0.178082 | 0 | 0 | 0.307075 | 0 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f20e2b43f679727ae030ff4f712d6274de1806a | 15,883 | py | Python | index-server/index-server/indexed_chunks.py | doc22940/DarkDarkGo | 1cf0fbc48dac7a60af5aea3b4a0025807bb041dd | [
"MIT"
] | 1 | 2017-12-26T21:06:59.000Z | 2017-12-26T21:06:59.000Z | index-server/index-server/indexed_chunks.py | doc22940/DarkDarkGo | 1cf0fbc48dac7a60af5aea3b4a0025807bb041dd | [
"MIT"
] | null | null | null | index-server/index-server/indexed_chunks.py | doc22940/DarkDarkGo | 1cf0fbc48dac7a60af5aea3b4a0025807bb041dd | [
"MIT"
] | 1 | 2020-02-27T20:08:39.000Z | 2020-02-27T20:08:39.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
query_processing.py - Matches the query against the saved indexed chunks and returns a list of dictionaries with docID
author: Nayeem Aquib
email: nayeemaquib@bennington.edu
date: 12/1/2017
"""
from bs4 import BeautifulSoup
sample_indexed_chunks_dict... | 65.632231 | 551 | 0.60782 | 2,492 | 15,883 | 3.768459 | 0.147271 | 0.07241 | 0.067086 | 0.015334 | 0.434671 | 0.400383 | 0.368331 | 0.33958 | 0.321052 | 0.317645 | 0 | 0.048844 | 0.128628 | 15,883 | 241 | 552 | 65.904564 | 0.629697 | 0.01467 | 0 | 0.220721 | 0 | 0.076577 | 0.666197 | 0.090444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0.027027 | 0.004505 | 0 | 0.022523 | 0.004505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f28e3a474bfc3901e23f8e45e42a08468493117 | 544 | py | Python | play02.py | hnishi/hnishi_test_multiprocessing | 7a61594365141a9c52ae520795ff18479d6356f0 | [
"MIT"
] | null | null | null | play02.py | hnishi/hnishi_test_multiprocessing | 7a61594365141a9c52ae520795ff18479d6356f0 | [
"MIT"
] | null | null | null | play02.py | hnishi/hnishi_test_multiprocessing | 7a61594365141a9c52ae520795ff18479d6356f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from multiprocessing import Pool
import os
import time
start = time.time()
def f(x):
time.sleep(1)
value = x * x
print('{}s passed...\t{}\t(pid:{})'.format(int(time.time() - start), value, os.getpid()))
return value
timeout = time.time() + 10 # sec
while True:
with Pool(pr... | 20.923077 | 93 | 0.549632 | 82 | 544 | 3.646341 | 0.560976 | 0.107023 | 0.033445 | 0.040134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047264 | 0.261029 | 544 | 25 | 94 | 21.76 | 0.696517 | 0.1875 | 0 | 0.117647 | 0 | 0 | 0.061785 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.176471 | 0 | 0.294118 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9f2cb7d989b0d93d887946548ec94be6ea6f5c2d | 2,012 | py | Python | storm_analysis/jupyter_examples/multiplane_psfs_to_splines.py | bintulab/storm-analysis | 71ae493cbd17ddb97938d0ae2032d97a0eaa76b2 | [
"CNRI-Python"
] | null | null | null | storm_analysis/jupyter_examples/multiplane_psfs_to_splines.py | bintulab/storm-analysis | 71ae493cbd17ddb97938d0ae2032d97a0eaa76b2 | [
"CNRI-Python"
] | null | null | null | storm_analysis/jupyter_examples/multiplane_psfs_to_splines.py | bintulab/storm-analysis | 71ae493cbd17ddb97938d0ae2032d97a0eaa76b2 | [
"CNRI-Python"
] | 1 | 2021-04-19T18:17:06.000Z | 2021-04-19T18:17:06.000Z | #!/usr/bin/env python
"""
Helper functions for Multiplane PSF to spline conversion.
Hazen 10/17
"""
import storm_analysis.sa_library.parameters as parameters
pixel_size = 100.0
spline_z_range = 0.75
z_value = [-0.3, 0.0, 0.3]
def multiplaneXML():
"""
Create a Multiplane parameters object.
"""
params ... | 31.4375 | 68 | 0.658052 | 260 | 2,012 | 4.919231 | 0.373077 | 0.294762 | 0.087568 | 0.066458 | 0.1595 | 0.089132 | 0.039093 | 0.039093 | 0 | 0 | 0 | 0.035988 | 0.157555 | 2,012 | 63 | 69 | 31.936508 | 0.718584 | 0.087475 | 0 | 0 | 0 | 0 | 0.302595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.026316 | 0 | 0.052632 | 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 |
9f2ec4b14d13de7c619592e46e9220e8cbc5af0a | 5,261 | py | Python | py/plot_afefeh.py | jobovy/apogee-maps | 0316e95bdf9b85f3f4b758e8e67dc197d228288f | [
"BSD-3-Clause"
] | 1 | 2020-06-28T14:22:20.000Z | 2020-06-28T14:22:20.000Z | py/plot_afefeh.py | jobovy/apogee-maps | 0316e95bdf9b85f3f4b758e8e67dc197d228288f | [
"BSD-3-Clause"
] | null | null | null | py/plot_afefeh.py | jobovy/apogee-maps | 0316e95bdf9b85f3f4b758e8e67dc197d228288f | [
"BSD-3-Clause"
] | 3 | 2015-10-05T21:59:32.000Z | 2017-02-03T11:53:45.000Z | ###############################################################################
# plot_afefeh: the basic [a/Fe] vs. [Fe/H] plot for the data section
###############################################################################
import sys
import matplotlib
import numpy
from scipy import special
matplotlib.use('Agg')
f... | 49.632075 | 80 | 0.56073 | 555 | 5,261 | 5.025225 | 0.167568 | 0.235927 | 0.143421 | 0.043026 | 0.678379 | 0.585156 | 0.582288 | 0.582288 | 0.330226 | 0.316242 | 0 | 0.020516 | 0.277324 | 5,261 | 105 | 81 | 50.104762 | 0.713046 | 0.034024 | 0 | 0.326087 | 0 | 0 | 0.037452 | 0.004274 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.076087 | 0 | 0.097826 | 0.021739 | 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 |
9f327518ca17e1d83bca3c95b51398c249672249 | 360 | py | Python | bejmy/transactions/apps.py | bejmy/backend | 5471cf7870de18fcbe2ded01d57b370d6886aa8c | [
"MIT"
] | null | null | null | bejmy/transactions/apps.py | bejmy/backend | 5471cf7870de18fcbe2ded01d57b370d6886aa8c | [
"MIT"
] | 3 | 2017-06-06T14:18:20.000Z | 2019-01-24T15:37:33.000Z | bejmy/transactions/apps.py | bejmy/backend | 5471cf7870de18fcbe2ded01d57b370d6886aa8c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class TransactionsConfig(AppConfig):
name = 'bejmy.transactions'
category = 'transactions'
verbose_name = _("transactions")
def ready(self):
# apply signal receivers after all apps are ready
impo... | 27.692308 | 57 | 0.730556 | 40 | 360 | 6.475 | 0.675 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 360 | 12 | 58 | 30 | 0.899306 | 0.144444 | 0 | 0 | 0 | 0 | 0.137705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
9f34f07695daf083296d4a4285e97eb5cf910bcd | 1,441 | py | Python | src/homeautomate.py | THaeckel/PyHomeAutomate | b66715effa27533765a114b588ee6a93c37117aa | [
"MIT"
] | null | null | null | src/homeautomate.py | THaeckel/PyHomeAutomate | b66715effa27533765a114b588ee6a93c37117aa | [
"MIT"
] | null | null | null | src/homeautomate.py | THaeckel/PyHomeAutomate | b66715effa27533765a114b588ee6a93c37117aa | [
"MIT"
] | null | null | null | """
Copyright (c) 2021 Timo Haeckel
"""
import statedb
import traceback
import time
import datetime
from devicedetectionskill import DetectDevicePresenceSkill
from wheatherskill import WeatherSkill
from daytimeskill import DaytimeSkill
from raumfeldskill import RaumfeldTVWakeup
from hueskill import HueDaytimeAndWeath... | 25.280702 | 79 | 0.721027 | 133 | 1,441 | 7.721805 | 0.496241 | 0.081792 | 0.126582 | 0.204479 | 0.070107 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.179736 | 1,441 | 56 | 80 | 25.732143 | 0.86379 | 0.076336 | 0 | 0.121951 | 0 | 0 | 0.05295 | 0.015885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.219512 | 0 | 0.292683 | 0.097561 | 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 |
9f38dc92f56b8aa269d2e578d21894569fc26bbd | 1,920 | py | Python | handlers/web.py | wangdi1024/wangdi | 910e6b77ba012257c9328f869d1a499f88dea95a | [
"MIT"
] | 1 | 2021-11-10T03:00:33.000Z | 2021-11-10T03:00:33.000Z | handlers/web.py | wangdi1024/wangdi | 910e6b77ba012257c9328f869d1a499f88dea95a | [
"MIT"
] | null | null | null | handlers/web.py | wangdi1024/wangdi | 910e6b77ba012257c9328f869d1a499f88dea95a | [
"MIT"
] | null | null | null | import bcrypt
from tornado.escape import json_encode
from handlers.base import BaseHandler
class WebHandler(BaseHandler):
def get(self):
if not self.get_cookie("_csrf"):
self.set_cookie("_csrf", self.xsrf_token)
# user = xhtml_escape(self.current_user or '')
user = self.curren... | 31.47541 | 105 | 0.614063 | 220 | 1,920 | 5.245455 | 0.277273 | 0.054593 | 0.103986 | 0.057192 | 0.476603 | 0.353553 | 0.233969 | 0.166378 | 0.166378 | 0.084922 | 0 | 0.002068 | 0.244271 | 1,920 | 60 | 106 | 32 | 0.793246 | 0.022917 | 0 | 0.214286 | 0 | 0 | 0.174493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.166667 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9f3ffd6b64be09d85436237b3bee908e1aecef31 | 259 | py | Python | tests/factories/site.py | Stormheg/wagtail-bakery | 19fa6484571551b1f29c548e69f205baa0120789 | [
"MIT"
] | 98 | 2018-09-05T12:53:46.000Z | 2022-03-03T05:57:29.000Z | tests/factories/site.py | Stormheg/wagtail-bakery | 19fa6484571551b1f29c548e69f205baa0120789 | [
"MIT"
] | 30 | 2016-08-31T18:07:48.000Z | 2018-08-29T16:27:26.000Z | tests/factories/site.py | Stormheg/wagtail-bakery | 19fa6484571551b1f29c548e69f205baa0120789 | [
"MIT"
] | 19 | 2018-10-13T21:10:44.000Z | 2022-02-17T11:30:47.000Z | import factory
from wagtail.core.models import Site
class SiteFactory(factory.DjangoModelFactory):
hostname = 'localhost'
port = 80
is_default_site = True
class Meta:
model = Site
django_get_or_create = ('hostname', 'port')
| 19.923077 | 51 | 0.683398 | 30 | 259 | 5.733333 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.235521 | 259 | 12 | 52 | 21.583333 | 0.858586 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 |
9f50ea6c5a690690fd7a6bec29409f73342bbb3c | 646 | py | Python | exercicios/Lista4/Q28.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | exercicios/Lista4/Q28.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | exercicios/Lista4/Q28.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | #Leia 10 números inteiros e armazene em um vetor v. Crie dois
#novos vetores v1 e v2. Copie os valores ímpares de v para
#v1, e os valores pares de v para v2. Note que cada um dos
#vetores v1 e v2 têm no máximo 10 elementos, mas nem todos
#os elementos são utilizados. No final escreva os elementos
#UTILIZADOS de v1 e ... | 28.086957 | 61 | 0.611455 | 140 | 646 | 2.821429 | 0.4 | 0.091139 | 0.121519 | 0.141772 | 0.121519 | 0.121519 | 0.050633 | 0.050633 | 0.050633 | 0.050633 | 0 | 0.110442 | 0.229102 | 646 | 23 | 62 | 28.086957 | 0.682731 | 0.482972 | 0 | 0.117647 | 0 | 0 | 0.072948 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f5190132e5209dcfced809cda90994bc2c6961d | 456 | py | Python | Workshop/Workshop/main_app/validators.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | Workshop/Workshop/main_app/validators.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | Workshop/Workshop/main_app/validators.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
def only_letters_validator(value):
for ch in value:
if not ch.isalpha():
raise ValidationError("Value must contains only letters")
def file_max_size_in_mb_validator(max_size):
def validate(value):
filesize = value.file.size
... | 28.5 | 74 | 0.686404 | 60 | 456 | 5.05 | 0.516667 | 0.092409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.236842 | 456 | 15 | 75 | 30.4 | 0.847701 | 0 | 0 | 0 | 0 | 0 | 0.116228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f55095086782d5a0195b7c952db28888c70970c | 4,094 | py | Python | glamod-parser/glamod/parser/processors.py | GLAMOD-test/glamod-dm | c845991cf36e5d16f627095b9bb03672024c0688 | [
"BSD-2-Clause"
] | null | null | null | glamod-parser/glamod/parser/processors.py | GLAMOD-test/glamod-dm | c845991cf36e5d16f627095b9bb03672024c0688 | [
"BSD-2-Clause"
] | 2 | 2018-11-02T09:51:06.000Z | 2018-11-22T15:40:32.000Z | glamod-parser/glamod/parser/processors.py | GLAMOD-test/glamod-dm | c845991cf36e5d16f627095b9bb03672024c0688 | [
"BSD-2-Clause"
] | null | null | null | import os
import logging
import stringcase
from importlib import import_module
from cdmapp.models import SourceConfiguration, StationConfiguration, \
StationConfigurationOptional, HeaderTable, ObservationsTable
from .settings import CHUNK_CACHE_DIR, CHUNK_CACHE_DIR_DEPTH
from .chunk_manager import ChunkM... | 34.694915 | 80 | 0.712995 | 423 | 4,094 | 6.44208 | 0.231678 | 0.023119 | 0.028624 | 0.02055 | 0.111927 | 0.077064 | 0.077064 | 0.03633 | 0 | 0 | 0 | 0.000314 | 0.222032 | 4,094 | 117 | 81 | 34.991453 | 0.855259 | 0 | 0 | 0.04878 | 0 | 0 | 0.091778 | 0.012824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0 | 0.146341 | 0 | 0.512195 | 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 |
9f6672b4a2a0e59cc2dd1c4439e186d3eb7891e3 | 437 | py | Python | zfs/posix/__init__.py | mcclung/zfsp | 37a25b83103aa67a269b31cd4413d3baaffcde56 | [
"BSD-2-Clause"
] | 600 | 2019-05-04T16:17:26.000Z | 2022-03-31T20:04:56.000Z | zfs/posix/__init__.py | mcclung/zfsp | 37a25b83103aa67a269b31cd4413d3baaffcde56 | [
"BSD-2-Clause"
] | 5 | 2019-05-04T19:12:41.000Z | 2019-08-25T06:40:00.000Z | zfs/posix/__init__.py | mcclung/zfsp | 37a25b83103aa67a269b31cd4413d3baaffcde56 | [
"BSD-2-Clause"
] | 27 | 2019-05-04T16:34:42.000Z | 2020-09-27T14:03:20.000Z | import logging
from .. import ondisk
from .. import datasets
from zfs.posix.attributes import POSIXAttrs_for
logger = logging.getLogger(__name__)
class PosixObject(object):
def __init__(self, dnode: ondisk.DNode, dataset: datasets.Dataset) -> None:
self.attrs = POSIXAttrs_for(dataset)(dnode.bonus)
... | 23 | 79 | 0.736842 | 54 | 437 | 5.759259 | 0.481481 | 0.064309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17849 | 437 | 18 | 80 | 24.277778 | 0.866295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0 | 0.666667 | 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 |
9f6c4fa7629a4c08faba6eff7b260cde6d0d4ed0 | 1,575 | py | Python | models/RegistrationToken.py | lavalamp-/RootTheBox | d35d203d7aa0abc6907804bc873068773ab7367e | [
"Apache-2.0"
] | 3 | 2016-04-21T11:21:21.000Z | 2019-02-22T17:19:47.000Z | models/RegistrationToken.py | lavalamp-/RootTheBox | d35d203d7aa0abc6907804bc873068773ab7367e | [
"Apache-2.0"
] | null | null | null | models/RegistrationToken.py | lavalamp-/RootTheBox | d35d203d7aa0abc6907804bc873068773ab7367e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on Sep 22, 2012
@author: moloch
Copyright 2012 Root the Box
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/licen... | 30.882353 | 76 | 0.695873 | 216 | 1,575 | 5.055556 | 0.532407 | 0.054945 | 0.054945 | 0.063187 | 0.095238 | 0.056777 | 0 | 0 | 0 | 0 | 0 | 0.013732 | 0.213968 | 1,575 | 51 | 77 | 30.882353 | 0.868336 | 0.509206 | 0 | 0.157895 | 0 | 0 | 0.004043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.736842 | 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 |
9f6e1d49b2c46be12f3620b8d99254507411a708 | 507 | py | Python | rest_api/serializers.py | knaveenkumar3576/django-rest-example | e74ae9821eb1913c91fc8a8bb12249b5ef9d8a21 | [
"MIT"
] | null | null | null | rest_api/serializers.py | knaveenkumar3576/django-rest-example | e74ae9821eb1913c91fc8a8bb12249b5ef9d8a21 | [
"MIT"
] | null | null | null | rest_api/serializers.py | knaveenkumar3576/django-rest-example | e74ae9821eb1913c91fc8a8bb12249b5ef9d8a21 | [
"MIT"
] | null | null | null | from rest_framework import serializers
# from .models import Player, Point
from .models import Point
# class PlayerSerializer(serializers.ModelSerializer):
# class Meta:
# fields = (
# 'user_name',
# 'first_name',
# 'last_name',
# )
# model = Player
clas... | 24.142857 | 54 | 0.554241 | 43 | 507 | 6.395349 | 0.511628 | 0.072727 | 0.116364 | 0.254545 | 0.356364 | 0.356364 | 0.356364 | 0 | 0 | 0 | 0 | 0 | 0.353057 | 507 | 21 | 55 | 24.142857 | 0.838415 | 0.453649 | 0 | 0 | 0 | 0 | 0.097015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 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 |
9f82f8adb7fc7976b93887343523535ca35cb5ea | 1,567 | py | Python | tests/providers/cloudera/utils.py | zomborinorbert/airflow | 0ea35ff59ba96751fc6c065ebf5a14d2b9acbb60 | [
"Apache-2.0"
] | null | null | null | tests/providers/cloudera/utils.py | zomborinorbert/airflow | 0ea35ff59ba96751fc6c065ebf5a14d2b9acbb60 | [
"Apache-2.0"
] | null | null | null | tests/providers/cloudera/utils.py | zomborinorbert/airflow | 0ea35ff59ba96751fc6c065ebf5a14d2b9acbb60 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.645833 | 79 | 0.721123 | 231 | 1,567 | 4.831169 | 0.536797 | 0.053763 | 0.023297 | 0.028674 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.208679 | 1,567 | 47 | 80 | 33.340426 | 0.891935 | 0.645182 | 0 | 0 | 0 | 0 | 0.009542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9f8536d6f7730a9e8fe21b064777375ddff98acf | 1,129 | py | Python | examples/apps/reverse_image_search/server.py | keunhong/scanner | d6439d18b2a363f3cd5e34e12d416bd1e97449fa | [
"Apache-2.0"
] | 1 | 2021-06-27T08:00:04.000Z | 2021-06-27T08:00:04.000Z | examples/apps/reverse_image_search/server.py | quanhua92/scanner | e14153c18078f707fe1b487c0cffb95d6997d737 | [
"Apache-2.0"
] | 1 | 2017-10-26T03:22:56.000Z | 2017-10-26T03:22:56.000Z | examples/apps/reverse_image_search/server.py | quanhua92/scanner | e14153c18078f707fe1b487c0cffb95d6997d737 | [
"Apache-2.0"
] | 1 | 2019-05-10T19:44:44.000Z | 2019-05-10T19:44:44.000Z | import subprocess
try:
from flask import Flask, request, send_from_directory
except ImportError:
print('This example needs Flask to run. Try running:\n'
'pip install flask')
app = Flask(__name__)
STATIC_DIR = 'examples/reverse_image_search/static'
# TODO(wcrichto): figure out how to prevent image ... | 26.255814 | 84 | 0.656333 | 149 | 1,129 | 4.818792 | 0.530201 | 0.041783 | 0.097493 | 0.094708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009534 | 0.163862 | 1,129 | 42 | 85 | 26.880952 | 0.751059 | 0.048716 | 0 | 0.121212 | 0 | 0 | 0.497201 | 0.24347 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0.030303 | 0.242424 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f8bf524b5a6b0d3c4e95b4bba3613c50346fb87 | 1,229 | py | Python | ABC/187/D.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | ABC/187/D.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | ABC/187/D.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | def LI(): return list(map(int, input().split()))
def I(): return int(input())
import sys
sys.setrecursionlimit(10 ** 9)
'''
青木派でsortして上から順番に寝返り?
得失点差でsortして上から順番に寝返り?
'''
def main(*args):
N, AB = args
# aoki = []
# takahashi = []
# for a, b in AB:
# takahashi.append(a+b)
# aoki.a... | 23.634615 | 114 | 0.602929 | 155 | 1,229 | 4.703226 | 0.458065 | 0.010974 | 0.013717 | 0.019204 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021668 | 0.248983 | 1,229 | 52 | 115 | 23.634615 | 0.768147 | 0.340114 | 0 | 0 | 0 | 0 | 0.010681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.130435 | 0.26087 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9f8cd45aa6086bbb5aaf1d9e8ae2a823f783da55 | 489 | py | Python | hkm/migrations/0022_museum_only_products.py | andersinno/kuvaselaamo | aed553a0ba85e82055e0de025ba2d3e3e4f2c9e6 | [
"MIT"
] | 1 | 2017-05-07T10:46:24.000Z | 2017-05-07T10:46:24.000Z | hkm/migrations/0022_museum_only_products.py | City-of-Helsinki/kuvaselaamo | 3fa9b69e3f5496620852d8b138129d0069339fcd | [
"MIT"
] | 60 | 2016-10-18T11:18:48.000Z | 2022-02-13T20:04:18.000Z | hkm/migrations/0022_museum_only_products.py | andersinno/kuvaselaamo | aed553a0ba85e82055e0de025ba2d3e3e4f2c9e6 | [
"MIT"
] | 9 | 2017-04-18T13:26:26.000Z | 2020-02-13T20:05:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-07-19 10:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hkm', '0021_page_ref'),
]
operations = [
migrations.AddField(
m... | 23.285714 | 90 | 0.631902 | 55 | 489 | 5.418182 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057377 | 0.251534 | 489 | 20 | 91 | 24.45 | 0.756831 | 0.139059 | 0 | 0 | 1 | 0 | 0.148325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f8d0649cb43738d3e05aba16971af082aaf609c | 9,077 | py | Python | zfactor_py/calculate_zfactor.py | mkamyab/zfactor | 7a917cffb7de8d9595a905acbba4e06f990f0707 | [
"MIT"
] | 2 | 2017-07-17T10:28:37.000Z | 2022-02-17T04:46:30.000Z | zfactor_py/calculate_zfactor.py | mkamyab/zfactor | 7a917cffb7de8d9595a905acbba4e06f990f0707 | [
"MIT"
] | 2 | 2017-07-17T10:36:42.000Z | 2020-08-20T02:23:41.000Z | zfactor_py/calculate_zfactor.py | mkamyab/zfactor | 7a917cffb7de8d9595a905acbba4e06f990f0707 | [
"MIT"
] | 3 | 2017-06-21T21:12:58.000Z | 2019-02-01T02:03:05.000Z | # This code calculates compressibility factor (z-factor) for natural hydrocarbon gases
# with 3 different methods. It is the outcomes of the following paper:
# <br>
# Kamyab, M.; Sampaio Jr., J. H. B.; Qanbari, F. & Eustes III, A. W.
# Using artificial neural networks to estimate the Z-Factor for natural hydr... | 40.163717 | 120 | 0.554368 | 1,530 | 9,077 | 3.214379 | 0.301307 | 0.01952 | 0.013013 | 0.02318 | 0.491867 | 0.46645 | 0.385929 | 0.353599 | 0.337739 | 0.314355 | 0 | 0.227543 | 0.277625 | 9,077 | 225 | 121 | 40.342222 | 0.522495 | 0.354082 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0.008065 | 0.008065 | 0.016129 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f8d4493cdb2af2cfb0be24b60310e1e16504d08 | 24,544 | py | Python | ml_collections/config_dict/tests/field_reference_test.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 311 | 2020-08-25T14:44:55.000Z | 2022-03-30T17:19:45.000Z | ml_collections/config_dict/tests/field_reference_test.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 9 | 2020-11-14T04:00:23.000Z | 2022-02-18T21:03:33.000Z | ml_collections/config_dict/tests/field_reference_test.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 19 | 2020-08-25T21:52:30.000Z | 2022-03-13T22:25:20.000Z | # Copyright 2021 The ML Collections Authors.
#
# 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... | 33.438692 | 78 | 0.604628 | 2,907 | 24,544 | 4.821121 | 0.092191 | 0.154121 | 0.094185 | 0.037959 | 0.772672 | 0.708812 | 0.668569 | 0.632965 | 0.599929 | 0.572458 | 0 | 0.031195 | 0.27905 | 24,544 | 733 | 79 | 33.484311 | 0.760836 | 0.093831 | 0 | 0.551155 | 0 | 0 | 0.164365 | 0 | 0 | 0 | 0 | 0 | 0.132013 | 1 | 0.049505 | false | 0.00165 | 0.008251 | 0.00165 | 0.061056 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f8e26bc892d1c0c4bd23792337e29cd061fb88c | 1,999 | py | Python | Partylist.py | mas250/Python2 | 9cdc8c718a745cac2c78c250691e1fc7962ed19a | [
"MIT"
] | null | null | null | Partylist.py | mas250/Python2 | 9cdc8c718a745cac2c78c250691e1fc7962ed19a | [
"MIT"
] | null | null | null | Partylist.py | mas250/Python2 | 9cdc8c718a745cac2c78c250691e1fc7962ed19a | [
"MIT"
] | null | null | null | #PartyList.py
print "\t\tThis program allows you to maintain"
print "t\t\a list of names opf people to invite"
print "\t\tto a party\n"
names = [] # Creat an empty list
choice = "z" #Initalize choice with value to set while loop to true
while choice != "q":
print """
Choose what you would li... | 24.9875 | 76 | 0.563282 | 272 | 1,999 | 4.128676 | 0.378676 | 0.044524 | 0.021371 | 0.016029 | 0.078362 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001537 | 0.349175 | 1,999 | 79 | 77 | 25.303797 | 0.861645 | 0.127564 | 0 | 0.106383 | 0 | 0.021277 | 0.410375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.319149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f911e51ae6e985819d0002226bf288deffcfe9f | 479 | py | Python | ggongsul/member/migrations/0008_auto_20211126_1014.py | blc-cruise/ggongsul-api | 0cdfc09ea75688ffc297bc0c0f08897091896f3e | [
"MIT"
] | 2 | 2021-05-22T07:33:34.000Z | 2021-09-18T04:22:25.000Z | ggongsul/member/migrations/0008_auto_20211126_1014.py | blc-cruise/ggongsul-api | 0cdfc09ea75688ffc297bc0c0f08897091896f3e | [
"MIT"
] | null | null | null | ggongsul/member/migrations/0008_auto_20211126_1014.py | blc-cruise/ggongsul-api | 0cdfc09ea75688ffc297bc0c0f08897091896f3e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-11-26 10:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('member', '0007_memberdetail_recommended_place'),
]
operations = [
migrations.AlterField(
model_name='socialaccount',
... | 25.210526 | 123 | 0.611691 | 53 | 479 | 5.415094 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058333 | 0.248434 | 479 | 18 | 124 | 26.611111 | 0.738889 | 0.093946 | 0 | 0 | 1 | 0 | 0.203704 | 0.081019 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.