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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c12eef0f5db4650f791eabb5acc02ee67e3b917 | 1,115 | py | Python | wtt/time_tracker/migrations/0001_initial.py | thoreg/wtt | 963fae81f1c8a16bc5b248d52ffc5ef21ed1636f | [
"Unlicense"
] | 1 | 2020-10-25T20:28:37.000Z | 2020-10-25T20:28:37.000Z | wtt/time_tracker/migrations/0001_initial.py | thoreg/wtt | 963fae81f1c8a16bc5b248d52ffc5ef21ed1636f | [
"Unlicense"
] | null | null | null | wtt/time_tracker/migrations/0001_initial.py | thoreg/wtt | 963fae81f1c8a16bc5b248d52ffc5ef21ed1636f | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-25 19:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
... | 33.787879 | 120 | 0.593722 | 116 | 1,115 | 5.594828 | 0.517241 | 0.03698 | 0.060092 | 0.078582 | 0.20339 | 0.117103 | 0.117103 | 0 | 0 | 0 | 0 | 0.024722 | 0.274439 | 1,115 | 32 | 121 | 34.84375 | 0.777503 | 0.040359 | 0 | 0.32 | 1 | 0 | 0.102996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c132afb0b2bbdf7dc09e2c9b2a4f06b470bb966 | 553 | py | Python | backend/dashboard/urls.py | waterunder/dashboard | 3790537ce29f83d631e0c14c12fff77515759e5b | [
"MIT"
] | null | null | null | backend/dashboard/urls.py | waterunder/dashboard | 3790537ce29f83d631e0c14c12fff77515759e5b | [
"MIT"
] | 75 | 2020-08-17T15:22:42.000Z | 2021-12-09T09:11:37.000Z | backend/dashboard/urls.py | waterunder/dashboard | 3790537ce29f83d631e0c14c12fff77515759e5b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.DashboardPageView.as_view(), name='dashboard'),
path('icons/', views.IconsPageView.as_view(), name='icons'),
path('forms/', views.FormsPageView.as_view(), name='forms'),
path('tables/', views.TablesPageView.as_view(), name... | 39.5 | 73 | 0.688969 | 64 | 553 | 5.84375 | 0.375 | 0.112299 | 0.187166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113924 | 553 | 13 | 74 | 42.538462 | 0.763265 | 0 | 0 | 0 | 0 | 0 | 0.168174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
9c1b9f4a63b36fca5f41df576664b33f3e22bf62 | 3,087 | py | Python | evaluation.py | RobotvisionLab/HFENet | 6edf57293da051a5d9d2164482f88b68ef45c11f | [
"MIT"
] | 2 | 2021-09-23T17:06:48.000Z | 2021-10-18T11:35:28.000Z | evaluation.py | RobotvisionLab/HFENet | 6edf57293da051a5d9d2164482f88b68ef45c11f | [
"MIT"
] | 1 | 2022-02-08T02:45:52.000Z | 2022-02-08T02:45:52.000Z | evaluation.py | RobotvisionLab/HFENet | 6edf57293da051a5d9d2164482f88b68ef45c11f | [
"MIT"
] | null | null | null | #########Caculate the average FN,FP###########
import numpy as np
#prediction
#label
# P\L P N
# P TP FN
# N FP TN
# PA = (TP + TN) / (TP + FP + FN + TN)
# MPA = (TP/(TP + FP) + TN/(TN + FN)) / 2
# IoU:
# defect:IoU1 = TP / (TP + FN + FP)
# background:IoU2 = TN / (TN + FP + FN)
# MIo... | 28.850467 | 93 | 0.508584 | 413 | 3,087 | 3.636804 | 0.154964 | 0.169774 | 0.199734 | 0.021305 | 0.354194 | 0.098535 | 0.061252 | 0 | 0 | 0 | 0 | 0.03173 | 0.367023 | 3,087 | 106 | 94 | 29.122642 | 0.73695 | 0.089731 | 0 | 0 | 0 | 0 | 0.002881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.014286 | 0 | 0.242857 | 0.014286 | 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 |
9c1be3e51ea96abeec68bbf92d1618b6d7713681 | 2,661 | py | Python | Examples/Tests/pass_mpi_communicator/analysis.py | Yin-YinjianZhao/WarpX | a194b909f73c44703b013b39dbcead0f278a8ba6 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Examples/Tests/pass_mpi_communicator/analysis.py | Yin-YinjianZhao/WarpX | a194b909f73c44703b013b39dbcead0f278a8ba6 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Examples/Tests/pass_mpi_communicator/analysis.py | Yin-YinjianZhao/WarpX | a194b909f73c44703b013b39dbcead0f278a8ba6 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python3
# This is a script that analyses the simulation results from
# the script `PICMI_inputs_2d`.
import sys
import matplotlib
matplotlib.use('Agg')
import yt
yt.funcs.mylog.setLevel(50)
import numpy as np
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksum
# this will be ... | 34.115385 | 74 | 0.618564 | 351 | 2,661 | 4.612536 | 0.344729 | 0.072267 | 0.052502 | 0.035207 | 0.270537 | 0.259419 | 0.137122 | 0.097591 | 0.097591 | 0.070414 | 0 | 0.048412 | 0.254791 | 2,661 | 77 | 75 | 34.558442 | 0.768028 | 0.184141 | 0 | 0.173077 | 0 | 0 | 0.235757 | 0.046318 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.096154 | 0 | 0.096154 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c1d78cd3678fcf80535d65cd78971cab93f233c | 5,581 | py | Python | biolib/SeqFeatureIO/__init__.py | nijibabulu/biolib | 81b0f35c5f78b70b1054abecb56481029cb3660a | [
"MIT"
] | null | null | null | biolib/SeqFeatureIO/__init__.py | nijibabulu/biolib | 81b0f35c5f78b70b1054abecb56481029cb3660a | [
"MIT"
] | null | null | null | biolib/SeqFeatureIO/__init__.py | nijibabulu/biolib | 81b0f35c5f78b70b1054abecb56481029cb3660a | [
"MIT"
] | null | null | null | """Supplement the missing support for SeqFeatureIO from biopython.
Taken from SeqIO"""
import os
import GFF3IO
import GTFIO
from StringIO import StringIO
from Bio.SeqRecord import SeqRecord
#Convention for format names is "mainname-subtype" in lower case.
#Please use the same names as BioPerl where possible.
#
#Note t... | 35.547771 | 86 | 0.664755 | 715 | 5,581 | 5.127273 | 0.317483 | 0.030005 | 0.024823 | 0.030551 | 0.295963 | 0.270049 | 0.259684 | 0.238407 | 0.194217 | 0.172941 | 0 | 0.030043 | 0.248522 | 5,581 | 156 | 87 | 35.775641 | 0.844063 | 0.091023 | 0 | 0.180328 | 0 | 0 | 0.214964 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0 | null | null | 0 | 0.081967 | null | null | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c21e81284bf5b49207c11805b5a802277ad557e | 556 | py | Python | scienv/widgets/calculator/keywords.py | pyKrzysztof/sci-env | 7fbcde89e57f90a87ca0d34604e6451ead06c8c6 | [
"MIT"
] | null | null | null | scienv/widgets/calculator/keywords.py | pyKrzysztof/sci-env | 7fbcde89e57f90a87ca0d34604e6451ead06c8c6 | [
"MIT"
] | null | null | null | scienv/widgets/calculator/keywords.py | pyKrzysztof/sci-env | 7fbcde89e57f90a87ca0d34604e6451ead06c8c6 | [
"MIT"
] | null | null | null | import math
# functions too hard for me to implement at this point.
log10 = math.log10
log2 = math.log2
sin = math.sin
cos = math.cos
tan = math.tan
# constants
pi = math.pi
e = math.e
# factorial function:
def factorial(n):
if n <= 1:
return n
previous = 0
current = 1
for _ in range(n - 1):
... | 16.352941 | 55 | 0.643885 | 89 | 556 | 4.011236 | 0.460674 | 0.061625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042959 | 0.246403 | 556 | 34 | 56 | 16.352941 | 0.809069 | 0.219424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0.136364 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9c3c8bc25f80c9eeadb9c811c319a491653c4089 | 3,780 | py | Python | note-editor/parser.py | python-gui-application/gadgets | 7c97a5fa8c29a566dbebba9d69e292ba57a08ff3 | [
"MIT"
] | 2 | 2017-11-29T17:02:32.000Z | 2020-04-21T09:12:00.000Z | note-editor/parser.py | python-gui-application/gadgets | 7c97a5fa8c29a566dbebba9d69e292ba57a08ff3 | [
"MIT"
] | null | null | null | note-editor/parser.py | python-gui-application/gadgets | 7c97a5fa8c29a566dbebba9d69e292ba57a08ff3 | [
"MIT"
] | 6 | 2019-05-04T09:05:53.000Z | 2021-04-30T07:55:17.000Z | import platform
'''
This file defines Token class and Lexer class
'''
class Token():
def __init__(self):
self.type = None
self.content = ''
self.s_line = 1
self.s_col = 0
self.e_line = 1
self.e_col = 0
operation_list = ['+', '-', '*', '/']
def isoperator(char):
... | 28 | 87 | 0.556614 | 503 | 3,780 | 3.988072 | 0.166998 | 0.111665 | 0.067298 | 0.038883 | 0.328514 | 0.268694 | 0.21336 | 0.21336 | 0.21336 | 0.142074 | 0 | 0.007419 | 0.322487 | 3,780 | 134 | 88 | 28.208955 | 0.775869 | 0.089153 | 0 | 0.323232 | 0 | 0 | 0.013781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020202 | null | null | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c40e2224a42e4fac9fde555a47a524a3214666f | 1,405 | py | Python | app/core/tests/test_admin.py | vishu222/recipe-app-api | 3ab979557320d5217557076735d2ec4e4b18da16 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | vishu222/recipe-app-api | 3ab979557320d5217557076735d2ec4e4b18da16 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | vishu222/recipe-app-api | 3ab979557320d5217557076735d2ec4e4b18da16 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminTest(TestCase):
"""test for the user is listed in admin user list"""
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_sup... | 33.452381 | 68 | 0.636299 | 186 | 1,405 | 4.66129 | 0.349462 | 0.05767 | 0.059977 | 0.065744 | 0.288351 | 0.146482 | 0 | 0 | 0 | 0 | 0 | 0.012369 | 0.251957 | 1,405 | 41 | 69 | 34.268293 | 0.812559 | 0.130249 | 0 | 0.103448 | 0 | 0 | 0.117402 | 0.039967 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.137931 | false | 0.068966 | 0.103448 | 0 | 0.275862 | 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 |
9c4e99df0bbbaf7c7615123595a4352b301282dc | 1,437 | py | Python | vortexasdk/utils.py | V0RT3X4/python-sdk | 4cffae83b90a58a56f1a534057fa1ca1c8671e05 | [
"Apache-2.0"
] | 9 | 2019-11-13T17:14:55.000Z | 2019-11-18T16:06:13.000Z | vortexasdk/utils.py | VorTECHsa/python-sdk | d85aabd8d9843e4d04d857360492bea002c2b24b | [
"Apache-2.0"
] | 114 | 2020-01-08T11:08:24.000Z | 2022-03-30T16:42:23.000Z | vortexasdk/utils.py | V0RT3X4/python-sdk | 4cffae83b90a58a56f1a534057fa1ca1c8671e05 | [
"Apache-2.0"
] | 6 | 2020-05-28T00:09:02.000Z | 2022-03-14T03:52:44.000Z | from typing import Dict, List, Union
def convert_to_list(a) -> List:
"""Convert wraps element in list if element isn't a list already."""
if a is None:
return []
elif isinstance(a, list):
return a
else:
return [a]
def convert_values_to_list(data: Dict) -> Dict:
"""Convert... | 27.113208 | 91 | 0.631176 | 212 | 1,437 | 4.146226 | 0.320755 | 0.028441 | 0.044369 | 0.013652 | 0.095563 | 0.03868 | 0.03868 | 0 | 0 | 0 | 0 | 0 | 0.257481 | 1,437 | 52 | 92 | 27.634615 | 0.823805 | 0.300626 | 0 | 0.076923 | 0 | 0 | 0.052183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.038462 | 0.038462 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c4f5f2f9243b12e2e351be2d4794e50d7f3045f | 15,536 | py | Python | pypy/module/bz2/test/test_bz2_file.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-06-02T23:02:09.000Z | 2021-06-02T23:02:09.000Z | pypy/module/bz2/test/test_bz2_file.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2021-03-30T18:08:41.000Z | 2021-03-30T18:08:41.000Z | pypy/module/bz2/test/test_bz2_file.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | from __future__ import with_statement
import os
if os.name == "nt":
from pytest import skip
skip("bz2 module is not available on Windows")
from pypy.module.bz2.test.support import CheckAllocation
import random
import py
from pypy.interpreter import gateway
from pypy.module.bz2.test.support import CheckAlloc... | 36.469484 | 1,180 | 0.617469 | 2,234 | 15,536 | 4.207252 | 0.260072 | 0.058517 | 0.076817 | 0.059581 | 0.418236 | 0.363656 | 0.305884 | 0.292372 | 0.227471 | 0.197893 | 0 | 0.087142 | 0.243628 | 15,536 | 425 | 1,181 | 36.555294 | 0.712705 | 0.075051 | 0 | 0.469649 | 0 | 0.019169 | 0.196776 | 0.179611 | 0 | 0 | 0 | 0 | 0.089457 | 1 | 0.115016 | false | 0.003195 | 0.140575 | 0.003195 | 0.268371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c50e3dcf824d2ed5bb7cf3cba07f11e15663099 | 618 | py | Python | zip_file_example/extract_file_in_memory/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | zip_file_example/extract_file_in_memory/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | zip_file_example/extract_file_in_memory/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import zipfile
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).resolve().parent.parent.parent))
from human_byte_size import sizeof_fmt
FILE_NAME = Path('Doc_df7c89c378c04e8daf69257ea95d9a2e.zip')
print('Zip size:', siz... | 23.769231 | 70 | 0.742718 | 84 | 618 | 5.190476 | 0.464286 | 0.073395 | 0.174312 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113139 | 0.113269 | 618 | 25 | 71 | 24.72 | 0.682482 | 0.069579 | 0 | 0 | 0 | 0 | 0.329843 | 0.211169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c535b2be1649d6af13c2e473bd7a322df7bc382 | 1,385 | py | Python | var/spack/repos/builtin/packages/spades/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2021-03-05T10:54:32.000Z | 2021-03-05T14:14:52.000Z | var/spack/repos/builtin/packages/spades/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 32 | 2020-12-15T17:29:20.000Z | 2022-03-21T15:08:31.000Z | var/spack/repos/builtin/packages/spades/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2021-04-07T18:27:09.000Z | 2022-03-31T22:52:38.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Spades(CMakePackage):
"""SPAdes - St. Petersburg genome assembler - is intended for both
... | 41.969697 | 96 | 0.74657 | 152 | 1,385 | 6.769737 | 0.671053 | 0.046647 | 0.007775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265289 | 0.126354 | 1,385 | 32 | 97 | 43.28125 | 0.585124 | 0.262816 | 0 | 0 | 0 | 0.0625 | 0.586653 | 0.38247 | 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 | 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 |
9c5390a2ceb6bfbfbabfffdf1c4a2b97070d539b | 1,261 | py | Python | python/phonenumbers/data/region_GA.py | vishnuku/python-phonenumbers | 6ac2cdd06b7ccf709a8efb21629cf2c5f030e627 | [
"Apache-2.0"
] | 3 | 2018-12-02T23:09:00.000Z | 2018-12-02T23:16:59.000Z | python/phonenumbers/data/region_GA.py | carljm/python-phonenumbers | 494044aaf75443dbfd62b8d1352b441af6a458ae | [
"Apache-2.0"
] | null | null | null | python/phonenumbers/data/region_GA.py | carljm/python-phonenumbers | 494044aaf75443dbfd62b8d1352b441af6a458ae | [
"Apache-2.0"
] | null | null | null | """Auto-generated file, do not edit by hand. GA metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_GA = PhoneMetadata(id='GA', country_code=241, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='0?\\d{7}', possible_number_pattern='\\d{... | 63.05 | 173 | 0.708961 | 158 | 1,261 | 5.424051 | 0.417722 | 0.016336 | 0.017503 | 0.023337 | 0.172695 | 0.086348 | 0.084014 | 0.084014 | 0.084014 | 0.084014 | 0 | 0.050833 | 0.095163 | 1,261 | 19 | 174 | 66.368421 | 0.700263 | 0.04203 | 0 | 0 | 1 | 0 | 0.136439 | 0.050749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c5cfb719e950fd141086f2d15ea919f0783b3f8 | 351 | py | Python | C02_deffunc.py | lleej/python | f4eff76819cec2c479ec19a4940141406079cb9a | [
"MIT"
] | null | null | null | C02_deffunc.py | lleej/python | f4eff76819cec2c479ec19a4940141406079cb9a | [
"MIT"
] | 2 | 2018-02-01T02:54:17.000Z | 2018-06-14T03:18:51.000Z | C02_deffunc.py | lleej/python | f4eff76819cec2c479ec19a4940141406079cb9a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 定义函数
def my_abs(x):
if x >= 0:
return x
else:
return -x
print('end.') #永远也不会执行
print(my_abs(-10))
def nop():
pass
def my_opt_abs(x):
if not isinstance(x, (int, float)):
raise TypeError('bad operand type for my_opt_abs(): %s' % type(x))
if x >= 0:
return x
else:
return -x
... | 13 | 68 | 0.595442 | 64 | 351 | 3.140625 | 0.515625 | 0.139303 | 0.119403 | 0.049751 | 0.278607 | 0.278607 | 0.278607 | 0.278607 | 0.278607 | 0.278607 | 0 | 0.029091 | 0.216524 | 351 | 26 | 69 | 13.5 | 0.701818 | 0.094017 | 0 | 0.470588 | 0 | 0 | 0.13141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0 | 0 | 0.411765 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c5ff8e4b55371e13a62461472f536d70d33ed87 | 1,224 | py | Python | app/models/projects.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | app/models/projects.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | app/models/projects.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | """
SQLAlchemy data model for the web service
"""
from slugify import slugify
from .. import db
class Project(db.Model):
"""
Project
=======
Root element of the data model to organize the data within the Web service.
"""
id = db.Column(db.Integer, primary_key=True)
name = db.Column(
... | 22.666667 | 79 | 0.59232 | 147 | 1,224 | 4.755102 | 0.408163 | 0.1402 | 0.180258 | 0.098712 | 0.120172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003606 | 0.320261 | 1,224 | 53 | 80 | 23.09434 | 0.836538 | 0.222222 | 0 | 0.103448 | 0 | 0 | 0.013483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.068966 | 0.068966 | 0.413793 | 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 |
9c67f1f71261e58391d8d2b5400e7069e6806d24 | 467 | py | Python | project/pastebin/management/commands/countries_statistics.py | aliharby12/Pastebin | f9c67765ec26aef7fedd8899a93852296111dacd | [
"MIT"
] | 1 | 2022-03-12T21:35:40.000Z | 2022-03-12T21:35:40.000Z | project/pastebin/management/commands/countries_statistics.py | aliharby12/Pastebin | f9c67765ec26aef7fedd8899a93852296111dacd | [
"MIT"
] | null | null | null | project/pastebin/management/commands/countries_statistics.py | aliharby12/Pastebin | f9c67765ec26aef7fedd8899a93852296111dacd | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from django.db.models import Count
from project.pastebin.models import Country
class Command(BaseCommand):
help = 'countries statistics'
def handle(self, *args, **kwargs):
countries = Country.objects.annotate(
pastes_count=Count('users__... | 35.923077 | 77 | 0.687366 | 55 | 467 | 5.727273 | 0.654545 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002639 | 0.188437 | 467 | 13 | 78 | 35.923077 | 0.828496 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c67f7421ece7ddebefa89793fc596a9241e70cd | 1,029 | py | Python | manager/projects/migrations/0006_auto_20200722_0510.py | jlbrewe/hub | c737669e6493ad17536eaa240bed3394b20c6b7d | [
"Apache-2.0"
] | 30 | 2016-03-26T12:08:04.000Z | 2021-12-24T14:48:32.000Z | manager/projects/migrations/0006_auto_20200722_0510.py | jlbrewe/hub | c737669e6493ad17536eaa240bed3394b20c6b7d | [
"Apache-2.0"
] | 1,250 | 2016-03-23T04:56:50.000Z | 2022-03-28T02:27:58.000Z | manager/projects/migrations/0006_auto_20200722_0510.py | jlbrewe/hub | c737669e6493ad17536eaa240bed3394b20c6b7d | [
"Apache-2.0"
] | 11 | 2016-07-14T17:04:20.000Z | 2021-07-01T16:19:09.000Z | # Generated by Django 3.0.8 on 2020-07-22 05:10
from django.db import migrations, models
import projects.models.snapshots
class Migration(migrations.Migration):
dependencies = [
('projects', '0005_auto_20200720_0116'),
]
operations = [
migrations.AddField(
model_name='snapsh... | 34.3 | 201 | 0.648202 | 112 | 1,029 | 5.803571 | 0.553571 | 0.073846 | 0.078462 | 0.064615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043534 | 0.241011 | 1,029 | 29 | 202 | 35.482759 | 0.788732 | 0.043732 | 0 | 0.26087 | 1 | 0 | 0.185336 | 0.053971 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c68f52fedaebf0154713ace290cda13f8ae4064 | 2,726 | py | Python | pontoon/tags/utils/tags.py | udacity/pontoon | e15a03a0c987615385b2a8c537bb18c99567f77e | [
"BSD-3-Clause"
] | 1 | 2019-05-26T04:16:47.000Z | 2019-05-26T04:16:47.000Z | pontoon/tags/utils/tags.py | udacity/pontoon | e15a03a0c987615385b2a8c537bb18c99567f77e | [
"BSD-3-Clause"
] | 9 | 2020-09-06T05:18:03.000Z | 2022-02-26T14:28:38.000Z | pontoon/tags/utils/tags.py | udacity/pontoon | e15a03a0c987615385b2a8c537bb18c99567f77e | [
"BSD-3-Clause"
] | 1 | 2019-05-25T23:24:42.000Z | 2019-05-25T23:24:42.000Z |
from django.utils.functional import cached_property
from pontoon.base.utils import glob_to_regex
from pontoon.tags.models import Tag
from .base import Clonable
from .resources import TagsResourcesTool
from .stats import TagsStatsTool
from .tag import TagTool
from .translations import TagsLatestTranslationsTool
cla... | 28.694737 | 78 | 0.623258 | 313 | 2,726 | 5.265176 | 0.290735 | 0.036408 | 0.033981 | 0.032767 | 0.101942 | 0.101942 | 0.066748 | 0.066748 | 0.066748 | 0.066748 | 0 | 0.00103 | 0.287968 | 2,726 | 94 | 79 | 29 | 0.848016 | 0.148569 | 0 | 0.19403 | 0 | 0 | 0.03041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149254 | false | 0 | 0.119403 | 0.104478 | 0.522388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9c6d8f11047ce5b85f7d9707eee57b914fe76abe | 597 | py | Python | src/countLet.py | j23414/monolithic_python | aa30c008db28f44847684a0dbf27a58c8b863945 | [
"MIT"
] | null | null | null | src/countLet.py | j23414/monolithic_python | aa30c008db28f44847684a0dbf27a58c8b863945 | [
"MIT"
] | null | null | null | src/countLet.py | j23414/monolithic_python | aa30c008db28f44847684a0dbf27a58c8b863945 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# Auth: Jennifer Chang
# Date: 2019/05/23
from typing import List
def count_let(seq_str: str) -> List[str]:
count_result = {}
for c in seq_str:
if c in count_result:
count_result[c] = count_result[c] + 1
else:
count_result[c] = 1
# Sort dict... | 21.321429 | 82 | 0.648241 | 77 | 597 | 4.766234 | 0.519481 | 0.239782 | 0.098093 | 0.070845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.242881 | 597 | 27 | 83 | 22.111111 | 0.785398 | 0.127303 | 0 | 0 | 0 | 0 | 0.15087 | 0.135397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.25 | 0.125 | 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 |
9c7019c221e68fc39b802442d24d039de34eb84d | 553 | py | Python | remove_yaml.py | sckott/sco | 3dc9e1994f69d76ad5f86165cfb641d394db3886 | [
"MIT"
] | 2 | 2015-02-20T19:26:01.000Z | 2019-01-08T23:07:36.000Z | remove_yaml.py | sckott/scott | 3dc9e1994f69d76ad5f86165cfb641d394db3886 | [
"MIT"
] | null | null | null | remove_yaml.py | sckott/scott | 3dc9e1994f69d76ad5f86165cfb641d394db3886 | [
"MIT"
] | null | null | null | #!/usr/bin/python
with open("vita.md") as fp:
lines = fp.readlines()
lines2 = lines[6:]
lines3 = lines[8:]
# print lines2
with open("vita_noyaml.md", "w") as fp:
fp.writelines(lines2)
# print lines3
with open("vita_noyaml_nocvaspdf.md", "w") as fp:
fp.writelines(lines3)
# onepage
with open("vita_onepa... | 19.068966 | 50 | 0.669078 | 86 | 553 | 4.209302 | 0.267442 | 0.132597 | 0.198895 | 0.077348 | 0.541436 | 0.541436 | 0.541436 | 0.541436 | 0 | 0 | 0 | 0.030303 | 0.164557 | 553 | 29 | 51 | 19.068966 | 0.753247 | 0.090416 | 0 | 0.375 | 0 | 0 | 0.222 | 0.142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
9c78bbb798a58d3fb50359737ceeae4c840ad294 | 1,097 | py | Python | searchEngines/example.py | mthbernardes/fses | c54e9df1bf17dd41b2c362e314753ec7ed81e15b | [
"MIT"
] | 56 | 2017-08-26T04:57:10.000Z | 2021-06-11T19:18:32.000Z | searchEngines/example.py | mthbernardes/fses | c54e9df1bf17dd41b2c362e314753ec7ed81e15b | [
"MIT"
] | null | null | null | searchEngines/example.py | mthbernardes/fses | c54e9df1bf17dd41b2c362e314753ec7ed81e15b | [
"MIT"
] | 20 | 2017-09-06T13:28:49.000Z | 2021-09-14T11:30:04.000Z | import sys
import requests
from lxml import html
from utils import util
class className():
headers = util.getHeaders()
results = list()
finalResults = list()
counter = 1
def search(self,query,verbose=False):
self.verbose = verbose
url = "http://url.goes.here/search?p=%s" % query
r = requests.get(url,header... | 28.128205 | 83 | 0.727438 | 159 | 1,097 | 5.018868 | 0.45283 | 0.041353 | 0.030075 | 0.037594 | 0.132832 | 0.132832 | 0.132832 | 0.132832 | 0.132832 | 0.132832 | 0 | 0.002203 | 0.172288 | 1,097 | 38 | 84 | 28.868421 | 0.876652 | 0.189608 | 0 | 0 | 0 | 0 | 0.079455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c79b2d99c78e6e83c6cab36b7ca799e94729f20 | 3,061 | py | Python | tests/test_feature_extractors.py | StiphyJay/FCOS_annotation_in_detail | 5c619f08c1d3e77a9ef92c9537751245218818cd | [
"BSD-2-Clause"
] | 17 | 2020-09-06T03:26:34.000Z | 2022-02-05T07:13:27.000Z | tests/test_feature_extractors.py | StiphyJay/FCOS_annotation_in_detail | 5c619f08c1d3e77a9ef92c9537751245218818cd | [
"BSD-2-Clause"
] | null | null | null | tests/test_feature_extractors.py | StiphyJay/FCOS_annotation_in_detail | 5c619f08c1d3e77a9ef92c9537751245218818cd | [
"BSD-2-Clause"
] | 7 | 2020-09-14T10:34:37.000Z | 2022-03-11T15:02:56.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import unittest
import copy
import torch
# import modules to to register feature extractors
from fcos_core.modeling.backbone import build_backbone # NoQA
from fcos_core.modeling.roi_heads.roi_heads import build_roi_heads # NoQA
from fcos_core.mode... | 32.913978 | 80 | 0.667429 | 372 | 3,061 | 5.22043 | 0.317204 | 0.201339 | 0.075695 | 0.061792 | 0.375386 | 0.34449 | 0.300721 | 0.276004 | 0.276004 | 0.15448 | 0 | 0.016587 | 0.251552 | 3,061 | 92 | 81 | 33.271739 | 0.831078 | 0.183273 | 0 | 0.184615 | 0 | 0 | 0.049453 | 0.012971 | 0 | 0 | 0 | 0 | 0.046154 | 1 | 0.061538 | false | 0 | 0.138462 | 0 | 0.215385 | 0.015385 | 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 |
92bbcb54ed35a4ac305ee261c77ce54e87ed0e69 | 410 | py | Python | core/migrations/0040_auto_20181107_2109.py | Cell5/nfckey | 15a052e4877ad8eb4d71de3c92b2285e3e7d9d57 | [
"BSD-3-Clause"
] | null | null | null | core/migrations/0040_auto_20181107_2109.py | Cell5/nfckey | 15a052e4877ad8eb4d71de3c92b2285e3e7d9d57 | [
"BSD-3-Clause"
] | null | null | null | core/migrations/0040_auto_20181107_2109.py | Cell5/nfckey | 15a052e4877ad8eb4d71de3c92b2285e3e7d9d57 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-07 08:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0039_auto_20181107_2107'),
]
operations = [
migrations.AlterField(
model_name='location',
name='comment',
... | 21.578947 | 74 | 0.607317 | 46 | 410 | 5.304348 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114478 | 0.27561 | 410 | 18 | 75 | 22.777778 | 0.707071 | 0.109756 | 0 | 0 | 1 | 0 | 0.115702 | 0.063361 | 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 |
92c1eb605c338734d058d070340f1b2e0037bd70 | 6,784 | py | Python | wikiconfig.py | mrh1997/moinmoin-wiki | e12a475b3603d3fae04974c6f5333eac1f842df6 | [
"MIT"
] | null | null | null | wikiconfig.py | mrh1997/moinmoin-wiki | e12a475b3603d3fae04974c6f5333eac1f842df6 | [
"MIT"
] | null | null | null | wikiconfig.py | mrh1997/moinmoin-wiki | e12a475b3603d3fae04974c6f5333eac1f842df6 | [
"MIT"
] | null | null | null | # -*- coding: iso-8859-1 -*-
# IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a
# western country and you don't know that you use utf-8, you probably want to
# use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode
# encoding) you MUST use: coding: utf-8
# That setting must ... | 39.213873 | 89 | 0.650206 | 955 | 6,784 | 4.557068 | 0.360209 | 0.009191 | 0.017923 | 0.01011 | 0.045956 | 0.045956 | 0.022059 | 0 | 0 | 0 | 0.000147 | 0.004155 | 0.219487 | 6,784 | 172 | 90 | 39.44186 | 0.817564 | 0.68293 | 0 | 0 | 0 | 0 | 0.190442 | 0.103424 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | 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 |
92c2c336d826f75e26680660317e7f91b92515f7 | 6,701 | py | Python | tools/telemetry/telemetry/unittest/run_tests.py | 7kbird/chrome | f56688375530f1003e34c34f441321977c5af3c3 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/unittest/run_tests.py | 7kbird/chrome | f56688375530f1003e34c34f441321977c5af3c3 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/unittest/run_tests.py | 7kbird/chrome | f56688375530f1003e34c34f441321977c5af3c3 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:23:37.000Z | 2020-11-04T07:23:37.000Z | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import unittest
from telemetry import decorators
from telemetry.core import browser_finder
from telemetry.core import browser_options
from te... | 32.062201 | 80 | 0.693628 | 793 | 6,701 | 5.660782 | 0.288777 | 0.017821 | 0.024504 | 0.020495 | 0.113611 | 0.080196 | 0.047227 | 0.026286 | 0.026286 | 0 | 0 | 0.002492 | 0.221609 | 6,701 | 208 | 81 | 32.216346 | 0.858129 | 0.069542 | 0 | 0.12987 | 0 | 0 | 0.081238 | 0.00403 | 0 | 0 | 0 | 0 | 0.006494 | 0 | null | null | 0 | 0.058442 | 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 |
92c814da7b0862dc18de5feadd201a2a66d048de | 9,890 | py | Python | recipes/Python/577654_DDE_Client/recipe-577654.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577654_DDE_Client/recipe-577654.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577654_DDE_Client/recipe-577654.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/env python
# Send DDE Execute command to running program
from ctypes import POINTER, WINFUNCTYPE, c_char_p, c_void_p, c_int, c_ulong, c_char_p
from ctypes.wintypes import BOOL, DWORD, BYTE, INT, LPCWSTR, UINT, ULONG
# DECLARE_HANDLE(name) typedef void *name;
HCONV = c_void_p # = DECLARE_HANDLE(HCONV)
... | 39.090909 | 151 | 0.649444 | 1,133 | 9,890 | 5.471315 | 0.288614 | 0.03065 | 0.038716 | 0.029037 | 0.168414 | 0.10421 | 0.083562 | 0.06614 | 0.06614 | 0.06614 | 0 | 0.038145 | 0.249848 | 9,890 | 252 | 152 | 39.246032 | 0.797412 | 0.060162 | 0 | 0.095745 | 0 | 0 | 0.065615 | 0.002533 | 0 | 0 | 0.025095 | 0.003968 | 0 | 0 | null | null | 0 | 0.047872 | null | null | 0.005319 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92cbe7dc8e418153f71587d8d86681ea841b7074 | 3,167 | py | Python | reliefparser/models/encoder.py | XuezheMax/ReLiefParser | 4ffb2495002809de70809689b84d80d2a59cd2ac | [
"MIT"
] | 6 | 2016-11-02T20:28:01.000Z | 2018-06-25T03:37:25.000Z | reliefparser/models/encoder.py | XuezheMax/ReLiefParser | 4ffb2495002809de70809689b84d80d2a59cd2ac | [
"MIT"
] | null | null | null | reliefparser/models/encoder.py | XuezheMax/ReLiefParser | 4ffb2495002809de70809689b84d80d2a59cd2ac | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
class Encoder(object):
def __init__(self, vsize, esize, hsize, rnn_class, **kwargs):
super(Encoder, self).__init__()
self.name = kwargs.get('name', self.__class__.__name__)
self.scope = kwargs.get('scope', self.name)
self.vsize =... | 37.702381 | 139 | 0.62204 | 423 | 3,167 | 4.321513 | 0.231678 | 0.087527 | 0.052516 | 0.046499 | 0.237965 | 0.187637 | 0.124179 | 0.073304 | 0.044858 | 0.044858 | 0 | 0.016365 | 0.266814 | 3,167 | 83 | 140 | 38.156627 | 0.770887 | 0.137354 | 0 | 0 | 0 | 0 | 0.01989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | 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 |
92cccdd180d83294cace7c6563ee818f1904deaa | 4,206 | py | Python | cmd/agent/dist/checks/libs/vmware/basic_metrics.py | s-maj/datadog-agent | 3d949ad1678650a231ead81eb486bd4433dd1614 | [
"Apache-2.0"
] | 1 | 2021-02-18T21:23:52.000Z | 2021-02-18T21:23:52.000Z | cmd/agent/dist/checks/libs/vmware/basic_metrics.py | s-maj/datadog-agent | 3d949ad1678650a231ead81eb486bd4433dd1614 | [
"Apache-2.0"
] | null | null | null | cmd/agent/dist/checks/libs/vmware/basic_metrics.py | s-maj/datadog-agent | 3d949ad1678650a231ead81eb486bd4433dd1614 | [
"Apache-2.0"
] | null | null | null | # Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2018 Datadog, Inc.
# (C) Datadog, Inc. 2010-2016
# All rights reserved
# Licensed under Simplified BSD L... | 33.380952 | 83 | 0.450071 | 279 | 4,206 | 6.713262 | 0.301075 | 0.050721 | 0.162306 | 0.193807 | 0.705286 | 0.652963 | 0.623599 | 0.623599 | 0.598505 | 0.534437 | 0 | 0.005403 | 0.383975 | 4,206 | 125 | 84 | 33.648 | 0.717484 | 0.077271 | 0 | 0.603448 | 0 | 0 | 0.422412 | 0.011619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92ccefdbb93ae0e8103ed86833f4469c00f0ecbe | 2,387 | py | Python | bgmi/downloader/deluge.py | moeoverflow/BGmi | d3128e78976f81fd75a4d2587a8e69f5cc28dbf6 | [
"MIT"
] | 1 | 2021-05-10T17:10:36.000Z | 2021-05-10T17:10:36.000Z | bgmi/downloader/deluge.py | moeoverflow/BGmi | d3128e78976f81fd75a4d2587a8e69f5cc28dbf6 | [
"MIT"
] | null | null | null | bgmi/downloader/deluge.py | moeoverflow/BGmi | d3128e78976f81fd75a4d2587a8e69f5cc28dbf6 | [
"MIT"
] | null | null | null | import requests
from bgmi.config import DELUGE_RPC_PASSWORD, DELUGE_RPC_URL
from bgmi.downloader.base import BaseDownloadService
from bgmi.utils import print_error, print_info
class DelugeRPC(BaseDownloadService):
old_version = False
def __init__(self, *args, **kwargs):
self._id = 0
self._ses... | 28.416667 | 105 | 0.557185 | 253 | 2,387 | 5.007905 | 0.43083 | 0.04341 | 0.026046 | 0.018942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030098 | 0.317972 | 2,387 | 83 | 106 | 28.759036 | 0.748157 | 0.023879 | 0 | 0.121212 | 0 | 0 | 0.209712 | 0.028363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.060606 | 0 | 0.227273 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92d015ba98b950b0c61e01d50c701a15efe3e3cd | 13,127 | py | Python | _states/mac_wifi.py | mosen/salt-osx | 818d4ae89bb2853b28999a8ddb883c0fe1b1a657 | [
"MIT"
] | 68 | 2015-02-11T00:53:54.000Z | 2021-11-06T16:07:17.000Z | _states/mac_wifi.py | sheagcraig/salt-osx | 990b6e7e2fd1965f943f396a350b409d38239d12 | [
"MIT"
] | 13 | 2016-01-05T00:01:34.000Z | 2022-03-18T23:44:21.000Z | _states/mac_wifi.py | sheagcraig/salt-osx | 990b6e7e2fd1965f943f396a350b409d38239d12 | [
"MIT"
] | 19 | 2015-04-09T20:58:55.000Z | 2020-11-04T06:39:06.000Z | # -*- coding: utf-8 -*-
'''
Configure the WiFi Preferred Networks settings on macOS
=======================================================
Support for configuring a WiFi Preferred Networks settings on macOS.
Requires the PyObjC Library, bundled with the macOS installer as of 2029.2.0.
.. note::
This state is pr... | 30.386574 | 81 | 0.588634 | 1,656 | 13,127 | 4.540459 | 0.105676 | 0.041229 | 0.029392 | 0.035377 | 0.738662 | 0.722569 | 0.694507 | 0.662854 | 0.631467 | 0.592632 | 0 | 0.001523 | 0.299688 | 13,127 | 432 | 82 | 30.386574 | 0.816382 | 0.337625 | 0 | 0.601036 | 0 | 0 | 0.29508 | 0.007643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031088 | false | 0 | 0.046632 | 0 | 0.243523 | 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 |
92d02b05ce80d18fef6d16d984f54a50ba9804e8 | 34,511 | py | Python | _GTW/__test__/Page_uv.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | _GTW/__test__/Page_uv.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | null | null | null | _GTW/__test__/Page_uv.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2012-2016 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the package GTW.__test__.
#
# This module is licensed under th... | 71.303719 | 785 | 0.458057 | 3,399 | 34,511 | 4.401295 | 0.084437 | 0.0625 | 0.046056 | 0.049131 | 0.700668 | 0.569719 | 0.435094 | 0.381016 | 0.319786 | 0.28262 | 0 | 0.009738 | 0.4376 | 34,511 | 483 | 786 | 71.451346 | 0.760678 | 0.038567 | 0 | 0.093976 | 0 | 0.06506 | 0.986235 | 0.168709 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.040964 | 0.004819 | 0 | 0.014458 | 0.016867 | 0 | 0 | 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 |
92d1140e0a708c6e1972f0eee3c9144686cbe76a | 2,664 | py | Python | web_app/routes/stats_routes.py | jasimrashid/twitoff | fbc818eb90d763ffd6ca5a1a5e0c40a325bf8323 | [
"MIT"
] | null | null | null | web_app/routes/stats_routes.py | jasimrashid/twitoff | fbc818eb90d763ffd6ca5a1a5e0c40a325bf8323 | [
"MIT"
] | 4 | 2021-06-08T21:54:40.000Z | 2022-03-12T00:41:45.000Z | web_app/routes/stats_routes.py | jasimrashid/twitoff | fbc818eb90d763ffd6ca5a1a5e0c40a325bf8323 | [
"MIT"
] | null | null | null | # web_app/routes/stats_routes.py
from flask import Blueprint, request, jsonify, render_template
from sklearn.linear_model import LogisticRegression # for example
from web_app.models import User, Tweet
from web_app.services.basilica_service import connection as basilica_api_client
stats_routes = Blueprint("stats_route... | 37 | 143 | 0.696321 | 354 | 2,664 | 4.943503 | 0.242938 | 0.108571 | 0.044 | 0.032 | 0.284571 | 0.190857 | 0.112 | 0.084571 | 0 | 0 | 0 | 0.002709 | 0.168544 | 2,664 | 72 | 144 | 37 | 0.787359 | 0.262387 | 0 | 0.116279 | 0 | 0 | 0.139416 | 0.011789 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.139535 | 0.302326 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
92d2d591b20ad36677594cd742f99e444192f8cf | 2,557 | py | Python | dash_docs/chapters/dash_core_components/Markdown/index.py | joelostblom/dash-docs | 7be5aed7795f61ac32375ce33a18046b8f2f5254 | [
"MIT"
] | 379 | 2017-06-21T14:35:52.000Z | 2022-03-20T01:47:14.000Z | dash_docs/chapters/dash_core_components/Markdown/index.py | joelostblom/dash-docs | 7be5aed7795f61ac32375ce33a18046b8f2f5254 | [
"MIT"
] | 746 | 2017-06-21T19:58:17.000Z | 2022-03-23T14:51:24.000Z | dash_docs/chapters/dash_core_components/Markdown/index.py | joelostblom/dash-docs | 7be5aed7795f61ac32375ce33a18046b8f2f5254 | [
"MIT"
] | 201 | 2017-06-21T21:53:19.000Z | 2022-03-17T13:23:55.000Z | # -*- coding: utf-8 -*-
import dash_core_components as dcc
import dash_html_components as html
from dash_docs import styles
from dash_docs import tools
from dash_docs import reusable_components as rc
examples = tools.load_examples(__file__)
layout = html.Div(children=[
html.H1("Markdown Examples and Reference")... | 21.854701 | 81 | 0.658975 | 332 | 2,557 | 4.933735 | 0.364458 | 0.06105 | 0.059829 | 0.102564 | 0.412088 | 0.412088 | 0.394383 | 0.394383 | 0.374847 | 0.374847 | 0 | 0.007767 | 0.194368 | 2,557 | 116 | 82 | 22.043103 | 0.787379 | 0.049668 | 0 | 0.433735 | 0 | 0 | 0.685903 | 0.034625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.156627 | 0 | 0.156627 | 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 |
92d3154fab8bf42ff76434f3a1caa9a4fb33dbc5 | 7,407 | py | Python | CalibTracker/SiStripDCS/python/popcon_last_value_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CalibTracker/SiStripDCS/python/popcon_last_value_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CalibTracker/SiStripDCS/python/popcon_last_value_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # Import configurations
import FWCore.ParameterSet.Config as cms
process = cms.Process("test")
process.load("CalibTracker.SiStripDCS.MessLogger_cfi")
process.SiStripConfigDb = cms.Service("SiStripConfigDb",
ConfDb = cms.untracked.string('username/password@cms_omds_nolb'),
TNS_ADMIN = cms.untracked.string('.'... | 43.570588 | 112 | 0.620224 | 787 | 7,407 | 5.770013 | 0.249047 | 0.274829 | 0.118917 | 0.092491 | 0.580929 | 0.580929 | 0.539529 | 0.502092 | 0.426558 | 0.351685 | 0 | 0.060987 | 0.258404 | 7,407 | 169 | 113 | 43.828402 | 0.765702 | 0.056298 | 0 | 0.289474 | 0 | 0 | 0.108026 | 0.050345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.006579 | 0.006579 | 0 | 0.006579 | 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 |
92d32b2d44b10c83ab9ebf1d595ecff10cbaea48 | 3,419 | py | Python | mitmproxy/optmanager.py | jvillacorta/mitmproxy | 3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5 | [
"MIT"
] | 1 | 2018-03-31T17:16:07.000Z | 2018-03-31T17:16:07.000Z | mitmproxy/optmanager.py | jvillacorta/mitmproxy | 3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5 | [
"MIT"
] | null | null | null | mitmproxy/optmanager.py | jvillacorta/mitmproxy | 3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5 | [
"MIT"
] | 4 | 2018-04-18T13:17:01.000Z | 2021-02-21T17:08:33.000Z | from __future__ import absolute_import, print_function, division
import contextlib
import blinker
import pprint
from mitmproxy import exceptions
"""
The base implementation for Options.
"""
class OptManager(object):
"""
.changed is a blinker Signal that triggers whenever options are
updated... | 29.730435 | 79 | 0.582626 | 393 | 3,419 | 4.816794 | 0.35369 | 0.054939 | 0.02113 | 0.02747 | 0.154781 | 0.124142 | 0.113576 | 0.075541 | 0.075541 | 0.075541 | 0 | 0.000426 | 0.313542 | 3,419 | 114 | 80 | 29.991228 | 0.806135 | 0.180755 | 0 | 0.083333 | 0 | 0 | 0.055957 | 0.009897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.069444 | 0.055556 | 0.458333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92d868f64a12d67fa6d76a53ea8fda62ba0f4c72 | 3,721 | py | Python | ledger_sync/marketplace_ledger_sync/protobuf/offer_history_pb2.py | ocean03/DAAP_marketplace | 261501bc65d7d3f99f6e1671e0db3daa1954a778 | [
"Apache-2.0"
] | null | null | null | ledger_sync/marketplace_ledger_sync/protobuf/offer_history_pb2.py | ocean03/DAAP_marketplace | 261501bc65d7d3f99f6e1671e0db3daa1954a778 | [
"Apache-2.0"
] | null | null | null | ledger_sync/marketplace_ledger_sync/protobuf/offer_history_pb2.py | ocean03/DAAP_marketplace | 261501bc65d7d3f99f6e1671e0db3daa1954a778 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: marketplace_ledger_sync/protobuf/offer_history.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goog... | 31.803419 | 276 | 0.762698 | 438 | 3,721 | 6.164384 | 0.289954 | 0.032593 | 0.033333 | 0.042593 | 0.467037 | 0.430741 | 0.376296 | 0.342222 | 0.342222 | 0.342222 | 0 | 0.02626 | 0.11986 | 3,721 | 116 | 277 | 32.077586 | 0.798168 | 0.080892 | 0 | 0.548387 | 1 | 0.010753 | 0.198359 | 0.164079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
92db4fe724935755b2b18682ecc02cc610ecc3e1 | 359 | py | Python | PyMOTW/source/socket/socket_getservbyport.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2019-01-04T05:47:50.000Z | 2019-01-04T05:47:50.000Z | PyMOTW/source/socket/socket_getservbyport.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 1 | 2020-07-18T03:52:03.000Z | 2020-07-18T04:18:01.000Z | PyMOTW/source/socket/socket_getservbyport.py | axetang/AxePython | 3b517fa3123ce2e939680ad1ae14f7e602d446a6 | [
"Apache-2.0"
] | 2 | 2021-03-06T04:28:32.000Z | 2021-03-06T04:59:17.000Z | #!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Look up a service name by its port number.
"""
#end_pymotw_header
import socket
from urllib.parse import urlunparse
for port in [80, 443, 21, 70, 25, 143, 993, 110, 995]:
url = '{}://example.com/'.format(sock... | 22.4375 | 64 | 0.685237 | 55 | 359 | 4.436364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09699 | 0.167131 | 359 | 15 | 65 | 23.933333 | 0.719064 | 0.426184 | 0 | 0 | 0 | 0 | 0.087629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
92db8a9bad43a6701f82f70c39ea58c0d5672380 | 9,664 | py | Python | pyodin/fastagi/incallfastagi.py | vassilux/odin | 6986cea218af66c481f005011a712497d1bc7d63 | [
"MIT"
] | 1 | 2019-02-24T10:28:07.000Z | 2019-02-24T10:28:07.000Z | pyodin/fastagi/incallfastagi.py | vassilux/odin | 6986cea218af66c481f005011a712497d1bc7d63 | [
"MIT"
] | null | null | null | pyodin/fastagi/incallfastagi.py | vassilux/odin | 6986cea218af66c481f005011a712497d1bc7d63 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
'''
exten = _4XXX,1,NoOp(from-trixbox-be-by-sda)
same => n,Set(TIMEOUT(absolute)=300)
same => n,UserEvent(incommingcall,Context:from-trixbox-be,extention:${EXTEN},calleridnum:${CALLERID(num)},calleridname:${CALLERID(name)},uniqueid: ${CDR(uniqueid)})
;same => n,SIPAddHeader(Call-Info: 192.168.3.1... | 32.648649 | 164 | 0.692984 | 1,172 | 9,664 | 5.629693 | 0.267918 | 0.022279 | 0.027281 | 0.040012 | 0.173841 | 0.145347 | 0.105335 | 0.078357 | 0.072446 | 0.072446 | 0 | 0.010526 | 0.174255 | 9,664 | 296 | 165 | 32.648649 | 0.816291 | 0.042322 | 0 | 0.19797 | 0 | 0 | 0.178704 | 0.014947 | 0 | 0 | 0 | 0.003378 | 0 | 0 | null | null | 0.010152 | 0.035533 | null | null | 0.005076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92dd1c7e44425dc670c1d5e671a93a36cb7bfeb7 | 905 | py | Python | slim/utils/async_run.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | 1 | 2017-09-18T07:56:25.000Z | 2017-09-18T07:56:25.000Z | slim/utils/async_run.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | null | null | null | slim/utils/async_run.py | 0xNone/slim | 7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6 | [
"Zlib"
] | null | null | null | import sys
import asyncio
def get_ioloop() -> asyncio.BaseEventLoop:
loop = asyncio.get_event_loop()
if sys.platform == 'win32' and not isinstance(loop, asyncio.ProactorEventLoop):
loop = asyncio.ProactorEventLoop()
asyncio.set_event_loop(loop)
return loop
def async_corun(coroutine):
... | 25.138889 | 83 | 0.680663 | 111 | 905 | 5.387387 | 0.297297 | 0.080268 | 0.140468 | 0.095318 | 0.543478 | 0.543478 | 0.543478 | 0.543478 | 0.317726 | 0.317726 | 0 | 0.002766 | 0.201105 | 905 | 35 | 84 | 25.857143 | 0.824343 | 0 | 0 | 0.36 | 0 | 0 | 0.005525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.52 | 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 |
92df2a3d9fa7ee4fd773a982bc60a5d8370fbd4c | 2,172 | py | Python | src/__init__.py | gantir/jinja-email-templates | 45e96f63bf2c08233f16a270c2e3d0030424d053 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/__init__.py | gantir/jinja-email-templates | 45e96f63bf2c08233f16a270c2e3d0030424d053 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/__init__.py | gantir/jinja-email-templates | 45e96f63bf2c08233f16a270c2e3d0030424d053 | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Template-based email system for Python.
"""
import logging
import os
from typing import Dict
from typing import List
import jinja2
from premailer import Premailer
class DeliveryEngineNotInstalled(Exception):
"""
This exception is raised when you attempt to use TemplateMail without a delivery engine insta... | 27.15 | 102 | 0.654696 | 229 | 2,172 | 5.991266 | 0.41048 | 0.052478 | 0.023324 | 0.037901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002478 | 0.256906 | 2,172 | 79 | 103 | 27.493671 | 0.847584 | 0.121547 | 0 | 0 | 0 | 0 | 0.063887 | 0.014077 | 0 | 0 | 0 | 0.012658 | 0.042553 | 1 | 0.085106 | false | 0 | 0.12766 | 0 | 0.319149 | 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 |
92eb9734eaf98f074d0e1df2a436cf5957091261 | 884 | py | Python | python_system/make_dir/make_dir.py | SeanSyue/PythonReferences | 103b2d6934a33e56a5d8fbb14d95282f572b3af7 | [
"MIT"
] | null | null | null | python_system/make_dir/make_dir.py | SeanSyue/PythonReferences | 103b2d6934a33e56a5d8fbb14d95282f572b3af7 | [
"MIT"
] | null | null | null | python_system/make_dir/make_dir.py | SeanSyue/PythonReferences | 103b2d6934a33e56a5d8fbb14d95282f572b3af7 | [
"MIT"
] | null | null | null | # https://stackoverflow.com/questions/273192/how-can-i-create-a-directory-if-it-does-not-exist
import os
import errno
# Not recommend this one:
# if not os.path.exists(directory):
# os.makedirs(directory)
try:
os.makedirs("D:/tim")
except OSError as e:
if e.errno != errno.EEXIST:
raise... | 24.555556 | 95 | 0.611991 | 121 | 884 | 4.46281 | 0.53719 | 0.081481 | 0.02963 | 0.040741 | 0.059259 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014196 | 0.282805 | 884 | 35 | 96 | 25.257143 | 0.837539 | 0.478507 | 0 | 0.25 | 0 | 0 | 0.105128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92edf601f14d44145957ce39bbd21d335fc9ce41 | 2,126 | py | Python | database.py | Steeven-C/energy_transition | 3f6777b605191e1c25056888bb141bf202e6039b | [
"MIT"
] | null | null | null | database.py | Steeven-C/energy_transition | 3f6777b605191e1c25056888bb141bf202e6039b | [
"MIT"
] | null | null | null | database.py | Steeven-C/energy_transition | 3f6777b605191e1c25056888bb141bf202e6039b | [
"MIT"
] | null | null | null | import psycopg2
from config import user, password, host, port, name
from psycopg2 import OperationalError
""" creating connection between AWS database and our script"""
def create_conection(db_user, db_password, db_host, db_port, db_name):
try:
connection = psycopg2.connect(
user=db_user,
... | 26.911392 | 70 | 0.601599 | 230 | 2,126 | 5.46087 | 0.321739 | 0.089172 | 0.057325 | 0.089172 | 0.359873 | 0.321656 | 0.300955 | 0.300955 | 0.245223 | 0.245223 | 0 | 0.002055 | 0.313264 | 2,126 | 78 | 71 | 27.25641 | 0.858219 | 0.015992 | 0 | 0.258621 | 0 | 0 | 0.380247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.068966 | 0.051724 | 0 | 0.155172 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92f36035c18e9622079aaf9c107307297f70c6fd | 11,652 | py | Python | tickets/handlers.py | CarlesLopezMagem/tickets-django-api | 3b1c7668ab467cd42781f83f7656b59c24753b74 | [
"MIT"
] | null | null | null | tickets/handlers.py | CarlesLopezMagem/tickets-django-api | 3b1c7668ab467cd42781f83f7656b59c24753b74 | [
"MIT"
] | null | null | null | tickets/handlers.py | CarlesLopezMagem/tickets-django-api | 3b1c7668ab467cd42781f83f7656b59c24753b74 | [
"MIT"
] | null | null | null | import asyncio
import json
import logging
import websockets
from django.contrib.auth import get_user_model
from . import models, router
from .utils import get_user_from_session, get_dialogs_with_user
logger = logging.getLogger('django-private-dialog')
ws_connections = {}
@asyncio.coroutine
def target_message(conn, p... | 39.100671 | 111 | 0.569945 | 1,262 | 11,652 | 5.095087 | 0.164025 | 0.055988 | 0.050233 | 0.022395 | 0.480093 | 0.448678 | 0.424417 | 0.39689 | 0.389736 | 0.372006 | 0 | 0.001204 | 0.358393 | 11,652 | 297 | 112 | 39.232323 | 0.858882 | 0.18632 | 0 | 0.521127 | 0 | 0 | 0.057485 | 0.00453 | 0 | 0 | 0 | 0.003367 | 0 | 1 | 0.046948 | false | 0.075117 | 0.032864 | 0 | 0.079812 | 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 |
92f701ea7d52d237cb5d7a7bec09ec4e1909945f | 469 | py | Python | utilityFunctions.py | turnert23/reference-governor | a4ff26efa56e2311c814bf237a3bc7be51365636 | [
"MIT"
] | null | null | null | utilityFunctions.py | turnert23/reference-governor | a4ff26efa56e2311c814bf237a3bc7be51365636 | [
"MIT"
] | null | null | null | utilityFunctions.py | turnert23/reference-governor | a4ff26efa56e2311c814bf237a3bc7be51365636 | [
"MIT"
] | null | null | null | import numpy as np
def closestCircPoint(center, radius, point):
# x,y = (point-center)
# theta = np.arctan2(y,x)
# if(np.linalg.norm(np.array([radius*np.cos(theta), radius * np.sin(theta)])) > np.linalg.norm(np.array([radius * np.cos(theta + 3.1415), radius * np.sin(theta + 3.1415)]))):
# theta = t... | 46.9 | 178 | 0.63113 | 73 | 469 | 4.054795 | 0.328767 | 0.189189 | 0.121622 | 0.152027 | 0.422297 | 0.422297 | 0.422297 | 0.422297 | 0.422297 | 0.263514 | 0 | 0.041558 | 0.179104 | 469 | 10 | 179 | 46.9 | 0.727273 | 0.663113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 |
92f71955586822378ff518d4163821397e5ebf40 | 611 | py | Python | public/public/TypDe/training/experiments/random_forest_classifier_v1.py | jsperezsalazar2001/TypDe_GUI | 4b6e2d3de14d79888d0baf91c57bb5a874e3e28e | [
"MIT"
] | null | null | null | public/public/TypDe/training/experiments/random_forest_classifier_v1.py | jsperezsalazar2001/TypDe_GUI | 4b6e2d3de14d79888d0baf91c57bb5a874e3e28e | [
"MIT"
] | null | null | null | public/public/TypDe/training/experiments/random_forest_classifier_v1.py | jsperezsalazar2001/TypDe_GUI | 4b6e2d3de14d79888d0baf91c57bb5a874e3e28e | [
"MIT"
] | null | null | null | from sklearn.model_selection import train_test_split
import pandas as pd
from training.models.random_forest_classifier import *
if __name__ == '__main__':
df = pd.read_excel('../../data_base/excel/datasetV2.xlsx', sheet_name='Casos Dengue')
# Separación de los datos
x, y = df.iloc[:, :-1].values, df.iloc[... | 38.1875 | 104 | 0.715221 | 92 | 611 | 4.445652 | 0.554348 | 0.04401 | 0.06846 | 0.06357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021236 | 0.152209 | 611 | 15 | 105 | 40.733333 | 0.76834 | 0.037643 | 0 | 0 | 0 | 0 | 0.095563 | 0.061433 | 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 |
92f81baec464235249315011c676d8c39f9afc8d | 7,649 | py | Python | nailgun/nailgun/test/unit/fuel_statistics_tests/test_client_provider.py | dnikishov/fuel-web | 152c2072cf585fc61d7e157ccf9a7ea1d0377daa | [
"Apache-2.0"
] | null | null | null | nailgun/nailgun/test/unit/fuel_statistics_tests/test_client_provider.py | dnikishov/fuel-web | 152c2072cf585fc61d7e157ccf9a7ea1d0377daa | [
"Apache-2.0"
] | null | null | null | nailgun/nailgun/test/unit/fuel_statistics_tests/test_client_provider.py | dnikishov/fuel-web | 152c2072cf585fc61d7e157ccf9a7ea1d0377daa | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 36.251185 | 79 | 0.634854 | 839 | 7,649 | 5.432658 | 0.205006 | 0.041027 | 0.026327 | 0.036858 | 0.283458 | 0.218517 | 0.120448 | 0.061869 | 0.04344 | 0.025011 | 0 | 0.009444 | 0.280167 | 7,649 | 210 | 80 | 36.42381 | 0.81838 | 0.075696 | 0 | 0.081081 | 0 | 0 | 0.118531 | 0.055296 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.040541 | false | 0.054054 | 0.060811 | 0 | 0.108108 | 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 |
92f8fbe2bd0ffdd4d667507f61f2453121f3964b | 370 | py | Python | python_crash_course/section_6_1.py | eugenewyj/eugene-python-samples | 5f248a333353fed065c21b8135b67eb7354a2b61 | [
"Apache-2.0"
] | null | null | null | python_crash_course/section_6_1.py | eugenewyj/eugene-python-samples | 5f248a333353fed065c21b8135b67eb7354a2b61 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:51:34.000Z | 2021-06-01T22:51:34.000Z | python_crash_course/section_6_1.py | eugenewyj/eugene-python-samples | 5f248a333353fed065c21b8135b67eb7354a2b61 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# 声明字典
dict1 = {'key1': 'value1', 'key2': 1}
print("字典示例:" + str(dict1))
# 添加键值对
dict1['key3'] = 'value3'
print("添加键值对后:" + str(dict1))
# 修改键对应的值
dict1['key1'] = 'new_value1'
print("修改键对应值后:" + str(dict1))
# 删除键值对
del dict1['key1']
print("删除键值对后:" + str(dict1))
# 遍历字典
for key, value in dict... | 16.818182 | 38 | 0.586486 | 51 | 370 | 4.235294 | 0.568627 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061093 | 0.159459 | 370 | 21 | 39 | 17.619048 | 0.633441 | 0.137838 | 0 | 0 | 0 | 0 | 0.237179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
92f9fa618fcd16d593f4d8c9d8b5288df5077672 | 1,680 | py | Python | roundup/server.py | Parsely/api-examples | f5f78bd538eb66602082d09480bb33c60901bd72 | [
"MIT"
] | 2 | 2015-10-29T04:08:10.000Z | 2016-03-12T09:23:24.000Z | roundup/server.py | Parsely/api-examples | f5f78bd538eb66602082d09480bb33c60901bd72 | [
"MIT"
] | null | null | null | roundup/server.py | Parsely/api-examples | f5f78bd538eb66602082d09480bb33c60901bd72 | [
"MIT"
] | null | null | null | try:
import simplejson as json
except ImportError:
import json
from flask import Flask, Response, render_template, request
from werkzeug.contrib.cache import SimpleCache
import requests
app = Flask('roundup')
app.config.from_object('settings')
# TODO: In a production environment, you would never use an in-me... | 28 | 80 | 0.654762 | 219 | 1,680 | 4.872146 | 0.442922 | 0.050609 | 0.030928 | 0.031865 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002237 | 0.201786 | 1,680 | 59 | 81 | 28.474576 | 0.793438 | 0.085119 | 0 | 0 | 0 | 0 | 0.159713 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.075 | false | 0 | 0.15 | 0.025 | 0.3 | 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 |
92fd948b0e24687c82ec6908432ead56b943353f | 2,363 | py | Python | pattoo/db/table/user.py | palisadoes/pattoo | 57bd3e82e49d51e3426b13ad53ed8326a735ce29 | [
"Apache-2.0"
] | null | null | null | pattoo/db/table/user.py | palisadoes/pattoo | 57bd3e82e49d51e3426b13ad53ed8326a735ce29 | [
"Apache-2.0"
] | null | null | null | pattoo/db/table/user.py | palisadoes/pattoo | 57bd3e82e49d51e3426b13ad53ed8326a735ce29 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""Pattoo classes querying the User table."""
# Import project libraries
from pattoo_shared.constants import MAX_KEYPAIR_LENGTH
from pattoo_shared import log
from pattoo.db import db
from pattoo.db.models import User
from pattoo.constants import DbRowUser
def idx_exists(idx):
"""Determine ... | 22.941748 | 65 | 0.641557 | 297 | 2,363 | 4.962963 | 0.299663 | 0.028494 | 0.054274 | 0.042741 | 0.14654 | 0.112619 | 0.062415 | 0.062415 | 0.062415 | 0.062415 | 0 | 0.012687 | 0.266187 | 2,363 | 102 | 66 | 23.166667 | 0.83737 | 0.231909 | 0 | 0.166667 | 0 | 0 | 0.018637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.083333 | 0.104167 | 0 | 0.208333 | 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 |
92fe42665c991851cbd94c38937340203a8369d9 | 556 | py | Python | net_interp.py | Rujaan/Upscale.io | be79e902f008f75de71969f7e01b1577efda20aa | [
"Apache-2.0"
] | null | null | null | net_interp.py | Rujaan/Upscale.io | be79e902f008f75de71969f7e01b1577efda20aa | [
"Apache-2.0"
] | null | null | null | net_interp.py | Rujaan/Upscale.io | be79e902f008f75de71969f7e01b1577efda20aa | [
"Apache-2.0"
] | null | null | null | import sys
import torch
from collections import OrderedDict
alpha = float(sys.argv[1])
net_PSNR_path = '.modelsRRDB_PSNR_x4.pth'
net_ESRGAN_path = '.modelsRRDB_ESRGAN_x4.pth'
net_interp_path = '.modelsinterp_{02d}.pth'.format(int(alpha10))
net_PSNR = torch.load(net_PSNR_path)
net_ESRGAN = torch.load(net_ESRGAN_path)... | 26.47619 | 64 | 0.760791 | 88 | 556 | 4.488636 | 0.375 | 0.113924 | 0.055696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016427 | 0.124101 | 556 | 21 | 65 | 26.47619 | 0.794661 | 0 | 0 | 0 | 0 | 0 | 0.175943 | 0.127469 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1303a5375218127dcb40c9ce3d027df47d1d084a | 439 | py | Python | pollapp/migrations/0006_auto_20180214_1428.py | kepha-okari/instapoll | 80ad44a1f354cd0f131da7157146c5f67b06305d | [
"MIT"
] | null | null | null | pollapp/migrations/0006_auto_20180214_1428.py | kepha-okari/instapoll | 80ad44a1f354cd0f131da7157146c5f67b06305d | [
"MIT"
] | 8 | 2020-02-11T23:40:57.000Z | 2022-03-11T23:16:38.000Z | pollapp/migrations/0006_auto_20180214_1428.py | kepha-okari/instapoll | 80ad44a1f354cd0f131da7157146c5f67b06305d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-14 11:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pollapp', '0005_auto_20180214_1423'),
]
operations = [
migrations.RenameField(
... | 20.904762 | 47 | 0.617312 | 46 | 439 | 5.652174 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.271071 | 439 | 20 | 48 | 21.95 | 0.7125 | 0.150342 | 0 | 0 | 1 | 0 | 0.164865 | 0.062162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1303ad649a018b01ea9aa091c3c1e3b5be3d49e3 | 4,749 | py | Python | codigo/Live112/locust_demo/demo_server/flask-server.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 572 | 2018-04-03T03:17:08.000Z | 2022-03-31T19:05:32.000Z | codigo/Live112/locust_demo/demo_server/flask-server.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 176 | 2018-05-18T15:56:16.000Z | 2022-03-28T20:39:07.000Z | codigo/Live112/locust_demo/demo_server/flask-server.py | cassiasamp/live-de-python | 00b5e51793097544ba9b75c97a0d30e63970bf45 | [
"MIT"
] | 140 | 2018-04-18T13:59:11.000Z | 2022-03-29T00:43:49.000Z | from random import randint
from flask import Flask, request, jsonify, redirect, make_response
app = Flask(__name__)
auth = randint(100, 50000)
@app.route('/get-auth', methods=['POST'])
def get_auth_cookie():
req = request.get_json()
if req['pass'] == '1234':
res = make_response(jsonify({'auth': str... | 37.992 | 83 | 0.330596 | 334 | 4,749 | 4.61976 | 0.305389 | 0.050551 | 0.033701 | 0.031108 | 0.440052 | 0.370058 | 0.370058 | 0.370058 | 0.34932 | 0.280622 | 0 | 0.065767 | 0.51653 | 4,749 | 124 | 84 | 38.298387 | 0.606272 | 0.00737 | 0 | 0.324074 | 0 | 0 | 0.183149 | 0.009126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046296 | false | 0.009259 | 0.018519 | 0.009259 | 0.138889 | 0.009259 | 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 |
13059a79f1ae01f043a5e5dc9035362b01845dc9 | 309 | py | Python | heavy_celery/migrations/0005_delete_workerheartbeat.py | s1s5/heavy_celery | 00e3643251158eab5beac3ec443ef6bd50bcf06b | [
"MIT"
] | 1 | 2021-12-16T07:03:14.000Z | 2021-12-16T07:03:14.000Z | heavy_celery/migrations/0005_delete_workerheartbeat.py | s1s5/heavy_celery | 00e3643251158eab5beac3ec443ef6bd50bcf06b | [
"MIT"
] | 3 | 2020-02-11T23:25:56.000Z | 2021-06-10T18:49:40.000Z | heavy_celery/migrations/0005_delete_workerheartbeat.py | s1s5/heavy_celery | 00e3643251158eab5beac3ec443ef6bd50bcf06b | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-17 02:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('heavy_celery', '0004_auto_20190303_0128'),
]
operations = [
migrations.DeleteModel(
name='WorkerHeartBeat',
),
]
| 18.176471 | 52 | 0.621359 | 33 | 309 | 5.69697 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137778 | 0.271845 | 309 | 16 | 53 | 19.3125 | 0.697778 | 0.145631 | 0 | 0 | 1 | 0 | 0.19084 | 0.087786 | 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 |
1308d02508bd3cfb7d7b51bf3db7f6a990ce0131 | 1,282 | py | Python | venter.py | XZETGEXI/V3N75C4P3 | 0422bcdd69729beaadf695b42afc0a0b2b95a96f | [
"CC0-1.0"
] | null | null | null | venter.py | XZETGEXI/V3N75C4P3 | 0422bcdd69729beaadf695b42afc0a0b2b95a96f | [
"CC0-1.0"
] | null | null | null | venter.py | XZETGEXI/V3N75C4P3 | 0422bcdd69729beaadf695b42afc0a0b2b95a96f | [
"CC0-1.0"
] | null | null | null | import os, time, asyncio, aiohttp, re, random
W, H = os.get_terminal_size()
FILTER = True
PATTERN = r"^(\d+)$"
API_COOLDOWN = 1
async def retrieve(to_print, printed):
async with aiohttp.ClientSession() as session:
async with session.get('https://api.ventspace.life/api/v1/ventpost/recent') as response:
... | 27.276596 | 96 | 0.595944 | 171 | 1,282 | 4.315789 | 0.426901 | 0.094851 | 0.132791 | 0.060976 | 0.059621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010881 | 0.283151 | 1,282 | 46 | 97 | 27.869565 | 0.792165 | 0 | 0 | 0.054054 | 0 | 0 | 0.100624 | 0.024181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.027027 | 0.027027 | 0 | 0.054054 | 0.405405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
130d5e107ea90aa42fb6cc25c22ccf7c3f615d5f | 4,075 | py | Python | security/models.py | jlachowski/django-security | 47160381b6cb3cbae66a6f38fe47de346f98a209 | [
"BSD-4-Clause"
] | null | null | null | security/models.py | jlachowski/django-security | 47160381b6cb3cbae66a6f38fe47de346f98a209 | [
"BSD-4-Clause"
] | null | null | null | security/models.py | jlachowski/django-security | 47160381b6cb3cbae66a6f38fe47de346f98a209 | [
"BSD-4-Clause"
] | null | null | null | # Copyright (c) 2011, SD Elements. See LICENSE.txt for details.
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
from django.conf import settings
# Finding proper User model that we can set Foreign key to.
# In newer versions of Django default user model can b... | 35.12931 | 79 | 0.688834 | 541 | 4,075 | 5.081331 | 0.439926 | 0.026191 | 0.028374 | 0.037104 | 0.140415 | 0.102583 | 0.068752 | 0.042561 | 0 | 0 | 0 | 0.010437 | 0.247607 | 4,075 | 115 | 80 | 35.434783 | 0.886171 | 0.382331 | 0 | 0.173913 | 0 | 0 | 0.246683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.130435 | 0.057971 | 0.028986 | 0.362319 | 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 |
1311780248ce9f812df64209a31659a10206984e | 69,732 | py | Python | lib/flow.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | lib/flow.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | lib/flow.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""This file defines the base classes for Flows.
A Flow is a state machine which executes actions on the
client. Messages are transmitted between the flow object and the
client with their responses introduced into a state handler within the
flow.
The flow can send messages to a client, or launch... | 36.585519 | 80 | 0.676619 | 8,870 | 69,732 | 5.193687 | 0.129312 | 0.011917 | 0.00699 | 0.00521 | 0.200247 | 0.144786 | 0.112182 | 0.096792 | 0.080077 | 0.068138 | 0 | 0.002438 | 0.247031 | 69,732 | 1,905 | 81 | 36.604724 | 0.874948 | 0.113778 | 0 | 0.213472 | 0 | 0 | 0.093505 | 0.027366 | 0 | 0 | 0 | 0.00105 | 0 | 0 | null | null | 0.00829 | 0.023834 | null | null | 0.001036 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13122abd973398b921d5af49df5f0b30151a5b1c | 22,113 | py | Python | isi_sdk_8_2_1/isi_sdk_8_2_1/models/namespace_object.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 24 | 2018-06-22T14:13:23.000Z | 2022-03-23T01:21:26.000Z | isi_sdk_8_2_1/isi_sdk_8_2_1/models/namespace_object.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 46 | 2018-04-30T13:28:22.000Z | 2022-03-21T21:11:07.000Z | isi_sdk_8_2_1/isi_sdk_8_2_1/models/namespace_object.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 29 | 2018-06-19T00:14:04.000Z | 2022-02-08T17:51:19.000Z | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 8
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class NamespaceObject(object):
... | 29.134387 | 378 | 0.592186 | 2,743 | 22,113 | 4.650018 | 0.065257 | 0.077146 | 0.158056 | 0.141121 | 0.650098 | 0.568561 | 0.547707 | 0.508193 | 0.394277 | 0.28875 | 0 | 0.025148 | 0.322073 | 22,113 | 758 | 379 | 29.172823 | 0.825695 | 0.470764 | 0 | 0.085526 | 1 | 0 | 0.064367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177632 | false | 0 | 0.009868 | 0 | 0.296053 | 0.006579 | 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 |
1313693a10ab59d34c8c37bb9f04c0aba89db781 | 2,762 | py | Python | gtaskpool/example_proxy.py | WalnutATiie/google_search | f6babe04d330ac305cb8dd587e8fb360b1f09312 | [
"MIT"
] | null | null | null | gtaskpool/example_proxy.py | WalnutATiie/google_search | f6babe04d330ac305cb8dd587e8fb360b1f09312 | [
"MIT"
] | null | null | null | gtaskpool/example_proxy.py | WalnutATiie/google_search | f6babe04d330ac305cb8dd587e8fb360b1f09312 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import gtaskpool
from proxymanager.downloadproxylist import get_http_proxies
from proxymanager.downloadualist import get_useragents
from proxymanager.proxymanager import ProxyManager
import gevent
import requests
import random
import logging
def task_retry(url):
(try_cnt... | 31.033708 | 80 | 0.633237 | 374 | 2,762 | 4.548128 | 0.377005 | 0.020576 | 0.023516 | 0.017637 | 0.124633 | 0.084656 | 0.084656 | 0.061141 | 0 | 0 | 0 | 0.045956 | 0.212165 | 2,762 | 88 | 81 | 31.386364 | 0.735754 | 0.115496 | 0 | 0 | 0 | 0 | 0.196216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | 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 |
131380e35c971468e578ef59c05cecc5e0484cd2 | 1,079 | py | Python | src/aerochat/test/test_json.py | mpillar/aerofs-chat | d4bc18b9275a3148f631ae349a0eae9cff853993 | [
"MIT"
] | null | null | null | src/aerochat/test/test_json.py | mpillar/aerofs-chat | d4bc18b9275a3148f631ae349a0eae9cff853993 | [
"MIT"
] | null | null | null | src/aerochat/test/test_json.py | mpillar/aerofs-chat | d4bc18b9275a3148f631ae349a0eae9cff853993 | [
"MIT"
] | null | null | null | import unittest
import aerochat.database
class TestJson(unittest.TestCase):
@staticmethod
def get_json_string():
return '{"timestamp":"1399589150","sender":"mpillar","text":"This is a test"}'
@staticmethod
def get_json_message():
return aerochat.database.Message.from_json(TestJson.get_... | 32.69697 | 108 | 0.674699 | 131 | 1,079 | 5.320611 | 0.358779 | 0.110473 | 0.060258 | 0.063128 | 0.175036 | 0.131994 | 0.131994 | 0.131994 | 0 | 0 | 0 | 0.023641 | 0.215941 | 1,079 | 33 | 109 | 32.69697 | 0.800236 | 0.13531 | 0 | 0.1 | 0 | 0 | 0.11149 | 0.064846 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.25 | false | 0 | 0.1 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13155720d6ca12b8c7e4a9ef2ed030b53f2eed59 | 353 | py | Python | setup.py | fratim/gym-minigrid | c2d8f40129a35583742334c4440ec70362d11c1f | [
"Apache-2.0"
] | null | null | null | setup.py | fratim/gym-minigrid | c2d8f40129a35583742334c4440ec70362d11c1f | [
"Apache-2.0"
] | null | null | null | setup.py | fratim/gym-minigrid | c2d8f40129a35583742334c4440ec70362d11c1f | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='gym_minigrid',
version='1.0.2',
keywords='memory, environment, agent, rl, openaigym, openai-gym, gym',
url='https://github.com/maximecb/gym-minigrid',
description='Minimalistic gridworld package for OpenAI Gym',
packages=['gym_minigrid', 'gym_minigrid.e... | 29.416667 | 74 | 0.70255 | 43 | 353 | 5.674419 | 0.744186 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010033 | 0.152975 | 353 | 11 | 75 | 32.090909 | 0.80602 | 0 | 0 | 0 | 0 | 0 | 0.535411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1315deec8a6e4bf04374c38a2d9ca609e800f292 | 2,892 | py | Python | meshreg/datasets/ho3dfullutils.py | pgrady3/handobjectconsist | 9651c569c328707cc1ad1e4797b9e4b32083c446 | [
"MIT"
] | null | null | null | meshreg/datasets/ho3dfullutils.py | pgrady3/handobjectconsist | 9651c569c328707cc1ad1e4797b9e4b32083c446 | [
"MIT"
] | null | null | null | meshreg/datasets/ho3dfullutils.py | pgrady3/handobjectconsist | 9651c569c328707cc1ad1e4797b9e4b32083c446 | [
"MIT"
] | null | null | null | import os
import numpy as np
from libyana.meshutils import meshio
def load_objects(obj_root):
object_names = [obj_name for obj_name in os.listdir(obj_root) if ".tgz" not in obj_name]
objects = {}
for obj_name in object_names:
# obj_path = os.path.join(obj_root, obj_name, "textured_simple_2000.obj... | 31.78022 | 100 | 0.622407 | 406 | 2,892 | 4.357143 | 0.32266 | 0.012436 | 0.015263 | 0.015828 | 0.125495 | 0.100057 | 0.08762 | 0.059921 | 0.050876 | 0.050876 | 0 | 0.050569 | 0.24101 | 2,892 | 90 | 101 | 32.133333 | 0.755353 | 0.200207 | 0 | 0.038462 | 0 | 0 | 0.069632 | 0 | 0 | 0 | 0 | 0.011111 | 0.076923 | 1 | 0.096154 | false | 0 | 0.057692 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
132632618c74caca3881504eb76805ff7fcdaa0c | 583 | py | Python | apps/users/migrations/0013_alter_committee_photo.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 1 | 2021-02-01T19:27:07.000Z | 2021-02-01T19:27:07.000Z | apps/users/migrations/0013_alter_committee_photo.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 79 | 2020-08-05T09:01:00.000Z | 2022-03-24T11:27:21.000Z | apps/users/migrations/0013_alter_committee_photo.py | CosmosTUe/Cosmos | cec2541d3f8ea1944edfaab2090916ba66f9d2f3 | [
"MIT"
] | 3 | 2021-02-22T18:36:52.000Z | 2021-10-13T17:05:44.000Z | # Generated by Django 3.2.6 on 2021-08-19 13:12
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0012_unique_slugs"),
]
operations = [
migrations.AlterField(
model_name="committee",
... | 24.291667 | 82 | 0.58319 | 55 | 583 | 6.109091 | 0.745455 | 0.059524 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046798 | 0.303602 | 583 | 23 | 83 | 25.347826 | 0.780788 | 0.077187 | 0 | 0.117647 | 1 | 0 | 0.132463 | 0.041045 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13278b02393e784ba908d66568726513c3473d10 | 1,415 | py | Python | GLOBALS.py | jeffgebhardt/dude_wheres_my_lift_ticket | c36d20deb4aa44530f64672577751481f6e43811 | [
"MIT"
] | 6 | 2020-12-20T17:32:19.000Z | 2022-02-06T01:24:30.000Z | GLOBALS.py | jeffgebhardt/dude_wheres_my_lift_ticket | c36d20deb4aa44530f64672577751481f6e43811 | [
"MIT"
] | 1 | 2021-02-04T03:02:41.000Z | 2021-02-04T03:02:41.000Z | GLOBALS.py | jeffgebhardt/dude_wheres_my_lift_ticket | c36d20deb4aa44530f64672577751481f6e43811 | [
"MIT"
] | 3 | 2021-02-03T18:44:09.000Z | 2022-01-29T19:34:09.000Z | import os
# This shouldn't change... But if it does, we will probably figure it out after a few hours of debugging.
IKON_LOGIN_URL = 'https://account.ikonpass.com/en/login'
# Set your username and password as an environment variables in Powershell:
# $env:IKON_LOGIN_USERNAME = 'YOUR_USERNAME_HERE'
# $env:IKON_LOGIN_P... | 42.878788 | 118 | 0.794346 | 216 | 1,415 | 4.972222 | 0.462963 | 0.058659 | 0.041899 | 0.044693 | 0.072626 | 0.072626 | 0.072626 | 0 | 0 | 0 | 0 | 0.019433 | 0.127208 | 1,415 | 32 | 119 | 44.21875 | 0.850202 | 0.620495 | 0 | 0 | 0 | 0 | 0.326296 | 0.06142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1327b57a08f61ef20f9a46756d2a79f9a1b919fe | 12,987 | py | Python | ietf/secr/sreq/tests.py | omunroe-com/ietfdb2 | aeaae292fbd55aca1b6043227ec105e67d73367f | [
"BSD-3-Clause"
] | 2 | 2021-11-20T03:40:56.000Z | 2021-11-20T03:40:59.000Z | ietf/secr/sreq/tests.py | omunroe-com/ietfdb2 | aeaae292fbd55aca1b6043227ec105e67d73367f | [
"BSD-3-Clause"
] | null | null | null | ietf/secr/sreq/tests.py | omunroe-com/ietfdb2 | aeaae292fbd55aca1b6043227ec105e67d73367f | [
"BSD-3-Clause"
] | null | null | null | from django.urls import reverse
import datetime
import debug # pyflakes:ignore
from ietf.utils.test_utils import TestCase, unicontent
from ietf.group.factories import GroupFactory, RoleFactory
from ietf.meeting.models import Session, ResourceAssociation
from ietf.meeting.factories import Me... | 48.27881 | 119 | 0.650728 | 1,560 | 12,987 | 5.305769 | 0.151923 | 0.043494 | 0.029238 | 0.04591 | 0.621481 | 0.602755 | 0.563489 | 0.537755 | 0.494503 | 0.435423 | 0 | 0.010398 | 0.215061 | 12,987 | 268 | 120 | 48.458955 | 0.80155 | 0.059059 | 0 | 0.513889 | 0 | 0 | 0.164153 | 0.056712 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.064815 | false | 0.069444 | 0.046296 | 0 | 0.138889 | 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 |
1329363137b1c06fd8a67bf4b275289a6c1e40b7 | 7,840 | py | Python | crackheat_surrogate2/pt_steps/eval_crackheat_surrogate2.py | VibroSim/crackheat_surrogate2 | 756c1617fc3ed7a3a5ae87da9aa5cb1c1cfe53cc | [
"MIT"
] | null | null | null | crackheat_surrogate2/pt_steps/eval_crackheat_surrogate2.py | VibroSim/crackheat_surrogate2 | 756c1617fc3ed7a3a5ae87da9aa5cb1c1cfe53cc | [
"MIT"
] | null | null | null | crackheat_surrogate2/pt_steps/eval_crackheat_surrogate2.py | VibroSim/crackheat_surrogate2 | 756c1617fc3ed7a3a5ae87da9aa5cb1c1cfe53cc | [
"MIT"
] | null | null | null | import sys
import os
import os.path
import csv
import ast
import copy
import posixpath
import subprocess
import threading
import multiprocessing
import multiprocessing.dummy # Gives thread pools not process pools
import itertools
import numpy as np
import pandas as pd
from matplotlib import pyplot as pl
from limatix.d... | 33.939394 | 162 | 0.65676 | 913 | 7,840 | 5.348302 | 0.330778 | 0.038911 | 0.024575 | 0.031128 | 0.153799 | 0.062666 | 0.049969 | 0.038501 | 0.023346 | 0.023346 | 0 | 0.009982 | 0.271684 | 7,840 | 230 | 163 | 34.086957 | 0.845184 | 0.204847 | 0 | 0.232258 | 0 | 0 | 0.046527 | 0.013247 | 0 | 0 | 0 | 0.004348 | 0 | 1 | 0.019355 | false | 0.090323 | 0.135484 | 0 | 0.167742 | 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 |
1334c0614dcc9e52457010203aa3a1a44ed89283 | 1,125 | py | Python | eiswarnung/exceptions.py | klaasnicolaas/python-eiswarnung | b6b6ef4e2fb85817366f33a974d769b6edf73b90 | [
"MIT"
] | 1 | 2022-02-20T17:26:09.000Z | 2022-02-20T17:26:09.000Z | eiswarnung/exceptions.py | klaasnicolaas/python-eiswarnung | b6b6ef4e2fb85817366f33a974d769b6edf73b90 | [
"MIT"
] | 71 | 2021-12-27T23:13:22.000Z | 2022-03-29T12:07:30.000Z | eiswarnung/exceptions.py | klaasnicolaas/python-eiswarnung | b6b6ef4e2fb85817366f33a974d769b6edf73b90 | [
"MIT"
] | null | null | null | """Exceptions for Eiswarnung API."""
from typing import Any
class EiswarnungError(Exception):
"""General Eiswarnung exception."""
class EiswarnungConnectionError(EiswarnungError):
"""Eiswarnung connection exception."""
class EiswarnungRequestError(EiswarnungError):
"""Eiswarnung wrong request input va... | 26.162791 | 69 | 0.64 | 113 | 1,125 | 6.230089 | 0.415929 | 0.142045 | 0.099432 | 0.042614 | 0.346591 | 0.346591 | 0.346591 | 0.346591 | 0.346591 | 0.238636 | 0 | 0 | 0.218667 | 1,125 | 42 | 70 | 26.785714 | 0.80091 | 0.352 | 0 | 0.5 | 0 | 0 | 0.139683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
1339decd711fb0072a95404ea27715ca021f6ed8 | 811 | py | Python | spark_auto_mapper_fhir/value_sets/v2_0387.py | imranq2/SparkAutoMapper.FHIR | dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2 | [
"Apache-2.0"
] | 1 | 2020-10-31T23:25:07.000Z | 2020-10-31T23:25:07.000Z | spark_auto_mapper_fhir/value_sets/v2_0387.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | spark_auto_mapper_fhir/value_sets/v2_0387.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from spark_auto_mapper_fhir.fhir_types.uri import FhirUri
from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode
from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType
# This file is auto-generated by generate_classes so do not edi... | 31.192308 | 84 | 0.75709 | 106 | 811 | 5.537736 | 0.537736 | 0.051107 | 0.06644 | 0.097104 | 0.25724 | 0.178876 | 0.178876 | 0 | 0 | 0 | 0 | 0.052632 | 0.156597 | 811 | 25 | 85 | 32.44 | 0.805556 | 0.316893 | 0 | 0 | 0 | 0 | 0.092275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.875 | 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 |
133ef5552c774c3bb29ec7ccbe98a56a5b30a8ac | 915 | py | Python | Grid/main.py | tatonkoduje/pythonforbegginers | 1fec11ecd6788c91833d06dfabbb0b1319ff8e68 | [
"Apache-2.0"
] | null | null | null | Grid/main.py | tatonkoduje/pythonforbegginers | 1fec11ecd6788c91833d06dfabbb0b1319ff8e68 | [
"Apache-2.0"
] | null | null | null | Grid/main.py | tatonkoduje/pythonforbegginers | 1fec11ecd6788c91833d06dfabbb0b1319ff8e68 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
def login():
print("Username: ", username_entry.get())
print("Hasło: ", password_entry.get())
window = Tk()
window.geometry("240x100")
window.title('Login')
window.resizable(0, 0)
# configure the grid
window.columnconfigure(0, weight=1)
window.columnconfigure(1, weight=3)
# usernam... | 22.875 | 62 | 0.721311 | 140 | 915 | 4.628571 | 0.278571 | 0.07716 | 0.069444 | 0.07716 | 0.273148 | 0.131173 | 0 | 0 | 0 | 0 | 0 | 0.039409 | 0.112568 | 915 | 39 | 63 | 23.461538 | 0.758621 | 0.053552 | 0 | 0 | 0 | 0 | 0.061556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.238095 | 0.047619 | 0 | 0.095238 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1344dcb797e99c40ea756b0b89ad4bf601a0078c | 2,287 | py | Python | envisage/resource/resource_manager.py | enthought/envisage | ca57225c4e9022d1ed5299a60e13dc2290d7d94e | [
"BSD-3-Clause"
] | 51 | 2015-05-12T01:34:15.000Z | 2022-03-20T19:11:22.000Z | envisage/resource/resource_manager.py | enthought/envisage | ca57225c4e9022d1ed5299a60e13dc2290d7d94e | [
"BSD-3-Clause"
] | 347 | 2015-02-27T19:51:09.000Z | 2022-03-21T16:03:01.000Z | envisage/resource/resource_manager.py | enthought/envisage | ca57225c4e9022d1ed5299a60e13dc2290d7d94e | [
"BSD-3-Clause"
] | 11 | 2015-02-11T04:32:54.000Z | 2021-09-13T10:50:05.000Z | # (C) Copyright 2007-2021 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | 35.184615 | 79 | 0.605597 | 220 | 2,287 | 6.209091 | 0.513636 | 0.062225 | 0.064422 | 0.036603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004324 | 0.19108 | 2,287 | 64 | 80 | 35.734375 | 0.734054 | 0.362484 | 0 | 0 | 0 | 0 | 0.039927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1345184fe175fb3e92b0958a55ed0d942fbeaf81 | 5,606 | py | Python | LWR.py | bsautrey/locally-weighted-linear-regression | 5a24e1f3c3f4003d00de0e9804f444191a8ec9f7 | [
"MIT"
] | null | null | null | LWR.py | bsautrey/locally-weighted-linear-regression | 5a24e1f3c3f4003d00de0e9804f444191a8ec9f7 | [
"MIT"
] | null | null | null | LWR.py | bsautrey/locally-weighted-linear-regression | 5a24e1f3c3f4003d00de0e9804f444191a8ec9f7 | [
"MIT"
] | 1 | 2019-05-06T14:13:36.000Z | 2019-05-06T14:13:36.000Z | # Implement locally weighted linear regression from Andrew Ng's CS229 course: http://cs229.stanford.edu/notes/cs229-notes1.pdf. Batch gradient descent is used to learn the parameters, i.e. minimize the cost function.
import random
from copy import copy
from math import exp
import numpy as np
import matplotlib.pyplot a... | 32.976471 | 216 | 0.540136 | 772 | 5,606 | 3.766839 | 0.207254 | 0.02751 | 0.024759 | 0.022008 | 0.120702 | 0.079436 | 0.079436 | 0.017194 | 0 | 0 | 0 | 0.029728 | 0.351944 | 5,606 | 170 | 217 | 32.976471 | 0.770713 | 0.127185 | 0 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038168 | null | null | 0.007634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1345cef9d6ef5213a6c55876a43ef4a76862c813 | 6,499 | py | Python | chief/dockerfile.py | WinsonSou/vm2docker | 689fa38986d67a5b7d094bc8b3e3b19d4e79c96b | [
"MIT"
] | null | null | null | chief/dockerfile.py | WinsonSou/vm2docker | 689fa38986d67a5b7d094bc8b3e3b19d4e79c96b | [
"MIT"
] | null | null | null | chief/dockerfile.py | WinsonSou/vm2docker | 689fa38986d67a5b7d094bc8b3e3b19d4e79c96b | [
"MIT"
] | null | null | null | __author__ = 'elubin'
import tempfile
import os
import logging
import json
import re
import tarfile
import subprocess
import shutil
from include import RESULTS_LOGGER
from utils.utils import rm_rf
class DockerFile(object):
def __init__(self, repo, tag=None):
self.repo = repo
self.tag = tag
... | 32.823232 | 140 | 0.61471 | 933 | 6,499 | 4.092176 | 0.252947 | 0.023049 | 0.015715 | 0.015715 | 0.093243 | 0.063908 | 0.035359 | 0.014144 | 0 | 0 | 0 | 0.00342 | 0.280197 | 6,499 | 197 | 141 | 32.989848 | 0.81274 | 0.136483 | 0 | 0.036232 | 0 | 0 | 0.063188 | 0 | 0 | 0 | 0 | 0.010152 | 0.014493 | 1 | 0.152174 | false | 0 | 0.072464 | 0.021739 | 0.333333 | 0.007246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
134612064a0f98aa42d048e893c85ce9a0e9fd02 | 637 | py | Python | BlueprintsApp/main/gui/buttons/back_button.py | PiCodingClub/BlueprintsEdu | f65ad2c3bf6f01acb26660505f6ceded0bee888f | [
"Apache-2.0"
] | null | null | null | BlueprintsApp/main/gui/buttons/back_button.py | PiCodingClub/BlueprintsEdu | f65ad2c3bf6f01acb26660505f6ceded0bee888f | [
"Apache-2.0"
] | null | null | null | BlueprintsApp/main/gui/buttons/back_button.py | PiCodingClub/BlueprintsEdu | f65ad2c3bf6f01acb26660505f6ceded0bee888f | [
"Apache-2.0"
] | null | null | null | from gui.buttons.button import Button
from utils.string_utils import StringUtils
from utils import scene_utils
from utils.gui_utils import Themes
class BackButton(Button):
def __init__(self, pos=0):
Button.__init__(self, StringUtils.get_string("ID_BACK"), pos)
def on_click(self, board, scene=None, f... | 30.333333 | 71 | 0.703297 | 88 | 637 | 4.818182 | 0.397727 | 0.063679 | 0.09434 | 0.103774 | 0.122642 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001946 | 0.193093 | 637 | 20 | 72 | 31.85 | 0.822957 | 0 | 0 | 0 | 0 | 0 | 0.031397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.533333 | 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 |
134893e3347d81976be0a79495da99a225f38484 | 4,500 | py | Python | genetic_approx.py | julinas/generative-tarot | c424cc63a427205fbc8248b9ad1507926be1da60 | [
"BSD-3-Clause"
] | 4 | 2019-10-08T21:17:56.000Z | 2021-08-30T01:37:10.000Z | genetic_approx.py | julinas/generative-tarot | c424cc63a427205fbc8248b9ad1507926be1da60 | [
"BSD-3-Clause"
] | null | null | null | genetic_approx.py | julinas/generative-tarot | c424cc63a427205fbc8248b9ad1507926be1da60 | [
"BSD-3-Clause"
] | null | null | null | from copy import deepcopy as copy
import math
import numpy as np
from PIL import Image, ImageDraw, ImageChops
import random
from scipy.stats import truncnorm
import sys
import cv2
from maketrumpcards import drawSvg
DNA_TEST = None
DNA_BEST = None
NumShapes = 100
NumVertices = 6
width = 225
height = 300
BACKGROUND_C... | 29.605263 | 128 | 0.659556 | 573 | 4,500 | 4.947644 | 0.240838 | 0.046561 | 0.059965 | 0.019753 | 0.287478 | 0.188713 | 0.130864 | 0.108995 | 0.108995 | 0.077954 | 0 | 0.020432 | 0.249556 | 4,500 | 151 | 129 | 29.801325 | 0.81907 | 0.054667 | 0 | 0.232143 | 0 | 0 | 0.021201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080357 | false | 0.089286 | 0.080357 | 0 | 0.214286 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1348c87e53d6b08a06221942f5a441b58af3afc7 | 8,569 | py | Python | cowrie/commands/netstat.py | matricali/cowrie | 720cbd5065d890d261aa54b54c61b840f24e7ec0 | [
"BSD-3-Clause"
] | null | null | null | cowrie/commands/netstat.py | matricali/cowrie | 720cbd5065d890d261aa54b54c61b840f24e7ec0 | [
"BSD-3-Clause"
] | null | null | null | cowrie/commands/netstat.py | matricali/cowrie | 720cbd5065d890d261aa54b54c61b840f24e7ec0 | [
"BSD-3-Clause"
] | 1 | 2019-12-20T20:07:39.000Z | 2019-12-20T20:07:39.000Z | # Based on work by Peter Reuteras (https://bitbucket.org/reuteras/kippo/)
from __future__ import division, absolute_import
import socket
from cowrie.shell.command import HoneyPotCommand
commands = {}
class command_netstat(HoneyPotCommand):
def show_version(self):
self.write('net-tools 1.60\n')
... | 49.531792 | 133 | 0.503443 | 982 | 8,569 | 4.324847 | 0.303462 | 0.032964 | 0.062162 | 0.113021 | 0.408524 | 0.388274 | 0.352955 | 0.317871 | 0.317871 | 0.317871 | 0 | 0.061205 | 0.386043 | 8,569 | 172 | 134 | 49.819767 | 0.746056 | 0.009686 | 0 | 0.292208 | 0 | 0.032468 | 0.66368 | 0.034893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032468 | false | 0 | 0.019481 | 0 | 0.058442 | 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 |
134a1c17d67cd8ea1db6b430cb94360ab155b693 | 17,425 | py | Python | couchapp/restkit/http.py | dustin/couchapp | 06ce956e560f93d3a3a944713a496a25a63b4c8d | [
"Apache-2.0"
] | 1 | 2015-11-04T10:31:25.000Z | 2015-11-04T10:31:25.000Z | couchapp/restkit/http.py | dustin/couchapp | 06ce956e560f93d3a3a944713a496a25a63b4c8d | [
"Apache-2.0"
] | null | null | null | couchapp/restkit/http.py | dustin/couchapp | 06ce956e560f93d3a3a944713a496a25a63b4c8d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license.
# See the NOTICE for more information.
import os
import re
import sys
import urlparse
import zlib
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from .datastructures import MultiDict... | 29.735495 | 74 | 0.515294 | 1,991 | 17,425 | 4.440984 | 0.137117 | 0.047501 | 0.023072 | 0.018095 | 0.367338 | 0.332391 | 0.302307 | 0.252545 | 0.235693 | 0.223479 | 0 | 0.010604 | 0.372224 | 17,425 | 585 | 75 | 29.786325 | 0.797696 | 0.05165 | 0 | 0.474946 | 0 | 0.002179 | 0.030367 | 0.001758 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004357 | 0.021786 | 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 |
13526d80555515e7ee141dd0d1ab40df679164fa | 285 | py | Python | contrib/generate_env.py | gabrielloliveira/library-ql | 65776af5037b03dfe899c978dbb13e6c473e6c92 | [
"MIT"
] | 2 | 2021-05-02T16:26:56.000Z | 2021-05-05T19:05:18.000Z | contrib/generate_env.py | gabrielloliveira/library-ql | 65776af5037b03dfe899c978dbb13e6c473e6c92 | [
"MIT"
] | null | null | null | contrib/generate_env.py | gabrielloliveira/library-ql | 65776af5037b03dfe899c978dbb13e6c473e6c92 | [
"MIT"
] | null | null | null | from pathlib import Path
from django.core.management.utils import get_random_secret_key
BASE_DIR = Path(__file__).resolve().parent.parent
ENV_VARIABLES = f"""SECRET_KEY={get_random_secret_key()}
DEBUG=True
"""
file = open(f"{BASE_DIR}/library/.env", "w")
file.write(ENV_VARIABLES)
| 21.923077 | 62 | 0.77193 | 44 | 285 | 4.659091 | 0.590909 | 0.131707 | 0.146341 | 0.17561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 285 | 12 | 63 | 23.75 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.252632 | 0.207018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
135777e365d57e225addf7d0635756f7f6190d04 | 2,479 | py | Python | aleph/logic/leads.py | gazeti/aleph | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | [
"MIT"
] | 1 | 2017-07-28T12:54:09.000Z | 2017-07-28T12:54:09.000Z | aleph/logic/leads.py | gazeti/aleph | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | [
"MIT"
] | 7 | 2017-08-16T12:49:23.000Z | 2018-02-16T10:22:11.000Z | aleph/logic/leads.py | gazeti/aleph | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | [
"MIT"
] | 6 | 2017-07-26T12:29:53.000Z | 2017-08-18T09:35:50.000Z | # Lead generator
import logging
from aleph.authz import Authz
from aleph.core import db
from aleph.index import delete_entity_leads, index_lead
from aleph.search import QueryState
from aleph.search.entities import load_entity, similar_entities
from aleph.model import EntityIdentity
from aleph.logic.distance import ent... | 36.455882 | 93 | 0.632513 | 301 | 2,479 | 5.066445 | 0.295681 | 0.07082 | 0.04918 | 0.041311 | 0.146885 | 0.112787 | 0.112787 | 0.112787 | 0.112787 | 0.112787 | 0 | 0.002615 | 0.228721 | 2,479 | 67 | 94 | 37 | 0.794979 | 0.126664 | 0 | 0.226415 | 0 | 0 | 0.17363 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.037736 | false | 0 | 0.150943 | 0 | 0.226415 | 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 |
13585f8136a100cdc6af20a205ee2dd2c99d4b2f | 1,025 | py | Python | examples/python/dump-env.py | kfl/websocketd | d4f23c92877ffa1f29fcea4f301b8069512c8901 | [
"BSD-2-Clause"
] | null | null | null | examples/python/dump-env.py | kfl/websocketd | d4f23c92877ffa1f29fcea4f301b8069512c8901 | [
"BSD-2-Clause"
] | null | null | null | examples/python/dump-env.py | kfl/websocketd | d4f23c92877ffa1f29fcea4f301b8069512c8901 | [
"BSD-2-Clause"
] | 1 | 2020-12-28T16:06:49.000Z | 2020-12-28T16:06:49.000Z | #!/usr/bin/python
# Copyright 2013 Joe Walnes and the websocketd team.
# All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import os
from sys import stdout
# Standard CGI(ish) environment variables, as defined in
# http://tools.ietf.org/html/rf... | 22.777778 | 65 | 0.698537 | 147 | 1,025 | 4.666667 | 0.632653 | 0.071429 | 0.029155 | 0.034985 | 0.142857 | 0.067055 | 0.067055 | 0 | 0 | 0 | 0 | 0.009368 | 0.166829 | 1,025 | 44 | 66 | 23.295455 | 0.793911 | 0.327805 | 0 | 0.0625 | 0 | 0 | 0.394698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
135df579e3d1fd4987107f30abde535bb36f8210 | 5,814 | py | Python | ligandGraphall.py | ajing/clusterVis | f0adfb7a794c4c4a2192bd74a7406217d7a7b6b3 | [
"Apache-2.0"
] | null | null | null | ligandGraphall.py | ajing/clusterVis | f0adfb7a794c4c4a2192bd74a7406217d7a7b6b3 | [
"Apache-2.0"
] | 1 | 2015-04-17T05:37:56.000Z | 2015-04-17T05:37:56.000Z | ligandGraphall.py | ajing/clusterVis | f0adfb7a794c4c4a2192bd74a7406217d7a7b6b3 | [
"Apache-2.0"
] | null | null | null | #####################
## Author : ajing
## Date : 5/14/2013
## Purpose: create a graph from a list of SMILES strings
## Design : Using RDKit to get ECFP6 Taminoto similarity score
## Function: parseLigandFile: read ligand file
## getSimilarity: calc similarity between two smiles
## pairwiseSimil... | 34 | 105 | 0.658067 | 703 | 5,814 | 5.318634 | 0.268848 | 0.058839 | 0.029955 | 0.008826 | 0.236962 | 0.226799 | 0.208077 | 0.161808 | 0.124097 | 0.124097 | 0 | 0.016708 | 0.238218 | 5,814 | 170 | 106 | 34.2 | 0.827501 | 0.21259 | 0 | 0.233333 | 0 | 0 | 0.042956 | 0.006232 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | 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 |
1373d4e2015c529735732d02b6429df365b60666 | 4,941 | py | Python | client/views/report.py | DavidGoodwin/virtual-planning-board | 85e1193823ddd3d8cf74bca8b4acdf1e3ce7808a | [
"BSD-Source-Code"
] | 1 | 2015-11-09T15:22:43.000Z | 2015-11-09T15:22:43.000Z | client/views/report.py | palepurple/virtual-planning-board | 85e1193823ddd3d8cf74bca8b4acdf1e3ce7808a | [
"BSD-Source-Code"
] | 1 | 2016-09-27T14:19:39.000Z | 2016-12-05T21:27:27.000Z | client/views/report.py | DavidGoodwin/virtual-planning-board | 85e1193823ddd3d8cf74bca8b4acdf1e3ce7808a | [
"BSD-Source-Code"
] | null | null | null | from django.views.generic.simple import direct_to_template
from django.core.urlresolvers import reverse
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponseRedirect
from django.conf import settings
from board.models import *
from board.managers import PersonManager
from client.form... | 40.5 | 118 | 0.659988 | 593 | 4,941 | 5.350759 | 0.268128 | 0.052001 | 0.028364 | 0.037819 | 0.403404 | 0.346045 | 0.346045 | 0.308226 | 0.259061 | 0.259061 | 0 | 0.0016 | 0.240842 | 4,941 | 121 | 119 | 40.834711 | 0.844308 | 0.145112 | 0 | 0.264368 | 0 | 0 | 0.135238 | 0.063953 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.091954 | null | null | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13784c6cae980b91c397675716a7ecd7a12e153d | 1,983 | py | Python | app/views/main_view_ui.py | sequoiap/pyqt-template | 9719d76fadca9fd2c5228c5fb7cc26184718cfbe | [
"MIT"
] | 1 | 2020-10-07T17:16:18.000Z | 2020-10-07T17:16:18.000Z | app/views/main_view_ui.py | sequoiap/pyqt-template | 9719d76fadca9fd2c5228c5fb7cc26184718cfbe | [
"MIT"
] | null | null | null | app/views/main_view_ui.py | sequoiap/pyqt-template | 9719d76fadca9fd2c5228c5fb7cc26184718cfbe | [
"MIT"
] | 2 | 2020-11-24T22:49:32.000Z | 2020-12-01T13:17:35.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'simphony/app/resources/main_view.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, Main... | 45.068182 | 90 | 0.72466 | 212 | 1,983 | 6.660377 | 0.410377 | 0.072238 | 0.042493 | 0.045326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030965 | 0.16944 | 1,983 | 43 | 91 | 46.116279 | 0.826351 | 0.103883 | 0 | 0 | 1 | 0 | 0.080271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.032258 | 0 | 0.129032 | 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 |
137d3840e3a1d0a58f2fd9b404ac0c4cfc2fcdf2 | 22,491 | py | Python | Interfaz/UIPyfiles/VistaGeneralDatos.py | Dumaru/ExcelReports | 989d8864d77e2b84dc73f16205894a6afa8e11ab | [
"MIT"
] | 1 | 2020-10-16T19:54:17.000Z | 2020-10-16T19:54:17.000Z | Interfaz/UIPyfiles/VistaGeneralDatos.py | Dumaru/ExcelReports | 989d8864d77e2b84dc73f16205894a6afa8e11ab | [
"MIT"
] | null | null | null | Interfaz/UIPyfiles/VistaGeneralDatos.py | Dumaru/ExcelReports | 989d8864d77e2b84dc73f16205894a6afa8e11ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\VistaGeneralDatos.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from UI.Recursos import images_rc
class Ui_vistaGeneralDatos(object... | 65.763158 | 246 | 0.718243 | 2,231 | 22,491 | 7.198117 | 0.127745 | 0.022791 | 0.021296 | 0.012952 | 0.39878 | 0.345663 | 0.271872 | 0.212342 | 0.170621 | 0.165764 | 0 | 0.052816 | 0.164066 | 22,491 | 341 | 247 | 65.956012 | 0.80134 | 0.009693 | 0 | 0.150769 | 1 | 0.046154 | 0.205794 | 0.043701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006154 | false | 0 | 0.009231 | 0 | 0.018462 | 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 |
1388bb6e42bdac0877e1cc9c924ad728ffe0e9e0 | 6,553 | py | Python | ckan/logic/converters.py | FuhuXia/ckan | 45b495785109c8c65e7586c519928fc8b826a897 | [
"Apache-2.0"
] | 1 | 2016-03-12T03:09:35.000Z | 2016-03-12T03:09:35.000Z | ckan/logic/converters.py | sirca/ckan | f847c329a0b288cbef6995c848bf2ee7ccdcf281 | [
"Apache-2.0"
] | null | null | null | ckan/logic/converters.py | sirca/ckan | f847c329a0b288cbef6995c848bf2ee7ccdcf281 | [
"Apache-2.0"
] | 1 | 2021-01-05T17:38:34.000Z | 2021-01-05T17:38:34.000Z | import json
import ckan.model as model
import ckan.lib.navl.dictization_functions as df
import ckan.lib.field_types as field_types
import ckan.logic.validators as validators
from ckan.common import _
def convert_to_extras(key, data, errors, context):
# Get the current extras index
current_indexes = [k[1] f... | 32.440594 | 78 | 0.626888 | 965 | 6,553 | 4.11399 | 0.139896 | 0.039295 | 0.050378 | 0.028212 | 0.623678 | 0.570025 | 0.522166 | 0.46272 | 0.426448 | 0.409824 | 0 | 0.004402 | 0.271937 | 6,553 | 201 | 79 | 32.60199 | 0.827709 | 0.008393 | 0 | 0.414063 | 0 | 0 | 0.065894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | 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 |
138bd6dde94cb0f7a8d790b25238805621d89a77 | 644 | py | Python | myapp/admin.py | ecumike/django-starter | 156b370d0641e0799901c8b4b796bfc46bd05795 | [
"Apache-2.0"
] | null | null | null | myapp/admin.py | ecumike/django-starter | 156b370d0641e0799901c8b4b796bfc46bd05795 | [
"Apache-2.0"
] | null | null | null | myapp/admin.py | ecumike/django-starter | 156b370d0641e0799901c8b4b796bfc46bd05795 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
# Automatically create the code for this file by running this in the console:
# ./manage.py admin_generator myapp
# Then just copy/paste the output of all the registered classes below.
@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
list_... | 28 | 77 | 0.712733 | 79 | 644 | 5.696203 | 0.670886 | 0.057778 | 0.084444 | 0.115556 | 0.124444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159938 | 644 | 22 | 78 | 29.272727 | 0.831793 | 0.281056 | 0 | 0 | 0 | 0 | 0.183007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.818182 | 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 |
138d78b615ee75b0cac33615e45e8053f4abd4d1 | 344 | py | Python | Projects/SVD/Applying to All Colors/task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | Projects/SVD/Applying to All Colors/task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | 4 | 2022-01-14T10:40:47.000Z | 2022-02-14T13:01:13.000Z | Projects/SVD/Applying to All Colors/task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | from numpy import linalg
import numpy as np
import matplotlib.pyplot as plt
img = plt.imread('horse.jpg')
img_rescaled = img / 255
img_array_transposed = np.transpose(img_rescaled, (2, 0, 1))
U, s, Vt = linalg.svd(img_array_transposed)
if __name__ == '__main__':
print(img_array_transposed.shape)
print(U.sha... | 21.5 | 60 | 0.732558 | 55 | 344 | 4.290909 | 0.545455 | 0.101695 | 0.228814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.151163 | 344 | 15 | 61 | 22.933333 | 0.787671 | 0 | 0 | 0 | 0 | 0 | 0.049563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.2 | 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 |
1390153a3a0ad1f1416a92d945131cacb963bec8 | 13,081 | py | Python | pysnmp-with-texts/Dell-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/Dell-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/Dell-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Dell-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Dell-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:55:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | 79.278788 | 3,237 | 0.707973 | 1,840 | 13,081 | 5.032065 | 0.211957 | 0.028081 | 0.042121 | 0.056162 | 0.365266 | 0.343882 | 0.330705 | 0.328977 | 0.038665 | 0.038665 | 0 | 0.133158 | 0.12736 | 13,081 | 164 | 3,238 | 79.762195 | 0.677968 | 0.023698 | 0 | 0 | 0 | 0.006536 | 0.056809 | 0.003448 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.084967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13918d985550b37294ccaab3594239218d1e483a | 8,151 | py | Python | src/Damage/ShadowIvanoviSALEDamageModel.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Damage/ShadowIvanoviSALEDamageModel.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Damage/ShadowIvanoviSALEDamageModel.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | import sys
import mpi
from math import *
from io import BytesIO as StringIO
from SpheralCompiledPackages import *
from MaterialPropertiesLib import SpheralMaterialPropertiesLib
from spheralDimensions import spheralDimensions
dims = spheralDimensions()
#-----------------------------------------------------------------... | 48.517857 | 147 | 0.525948 | 658 | 8,151 | 6.462006 | 0.354103 | 0.045155 | 0.018815 | 0.011289 | 0.0508 | 0.027752 | 0.011759 | 0.011759 | 0.011759 | 0 | 0 | 0.005626 | 0.345847 | 8,151 | 167 | 148 | 48.808383 | 0.791823 | 0.071525 | 0 | 0.065693 | 0 | 0.014599 | 0.908441 | 0.199259 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058394 | 0 | 0.065693 | 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 |
139241efc12c302e35a7e3b9d7afe69320383751 | 336 | py | Python | python/msg.py | Surya-06/My-Solutions | 58f7c7f1a0a3a28f25eff22d03a09cb2fbcf7806 | [
"MIT"
] | null | null | null | python/msg.py | Surya-06/My-Solutions | 58f7c7f1a0a3a28f25eff22d03a09cb2fbcf7806 | [
"MIT"
] | null | null | null | python/msg.py | Surya-06/My-Solutions | 58f7c7f1a0a3a28f25eff22d03a09cb2fbcf7806 | [
"MIT"
] | null | null | null | import plivo
auth_id = "MAOTA1NTHMNGU4YZHIMW"
auth_token = "YmVjNzY2Yjk4ODFlZWM2ZGM2NWZiNzdkOTM4ZjMx"
p = plivo.RestAPI(auth_id,auth_token)
params = {
'dst' : '8885558748',
'text' : u"Sent with love from python"
}
response = p.send_message(params)
print s... | 16 | 56 | 0.616071 | 33 | 336 | 6.121212 | 0.727273 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.291667 | 336 | 20 | 57 | 16.8 | 0.777311 | 0 | 0 | 0 | 0 | 0 | 0.326984 | 0.126984 | 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 |
13929d6e1b5122741470946d43415d1aeb909662 | 1,712 | py | Python | digsby/src/gui/protocols/oscargui.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/gui/protocols/oscargui.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/gui/protocols/oscargui.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | from gui.toolbox import GetTextFromUser
import wx
from logging import getLogger; log = getLogger('oscargui')
def format_screenname(oscar, set):
oldval = str(oscar.self_buddy.nice_name)
while True:
line1 = _('Enter a formatted screenname for {username}').format(username=oscar.username)
line2 =... | 32.301887 | 122 | 0.577687 | 198 | 1,712 | 4.919192 | 0.439394 | 0.061602 | 0.028747 | 0.055441 | 0.059548 | 0.059548 | 0 | 0 | 0 | 0 | 0 | 0.006785 | 0.311332 | 1,712 | 52 | 123 | 32.923077 | 0.819338 | 0 | 0 | 0.105263 | 0 | 0 | 0.212033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078947 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1393d603d490dc09a5fe114a0e12b9924163664c | 482 | py | Python | nicos_sinq/dmc/setups/special/cache.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_sinq/dmc/setups/special/cache.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_sinq/dmc/setups/special/cache.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | description = 'setup for the cache server'
group = 'special'
devices = dict(
DB=device('nicos.services.cache.server.FlatfileCacheDatabase',
description='On disk storage for Cache Server',
storepath=configdata('config.DATA_PATH') + 'cache',
loglevel='info', ),
Server=de... | 32.133333 | 66 | 0.553942 | 44 | 482 | 6.045455 | 0.590909 | 0.165414 | 0.142857 | 0.180451 | 0.225564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319502 | 482 | 14 | 67 | 34.428571 | 0.810976 | 0 | 0 | 0 | 0 | 0 | 0.381743 | 0.182573 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
139f5701d9a1f27696cfebca7b40bad7a1c85ef9 | 5,356 | py | Python | silverpeak_ec_assign_orch.py | zachcamara/silverpeak-eve-ec-bootstrap | 567421bd6f3abee80e313384ef93d4031660ed5d | [
"MIT"
] | null | null | null | silverpeak_ec_assign_orch.py | zachcamara/silverpeak-eve-ec-bootstrap | 567421bd6f3abee80e313384ef93d4031660ed5d | [
"MIT"
] | null | null | null | silverpeak_ec_assign_orch.py | zachcamara/silverpeak-eve-ec-bootstrap | 567421bd6f3abee80e313384ef93d4031660ed5d | [
"MIT"
] | 1 | 2022-01-28T23:25:59.000Z | 2022-01-28T23:25:59.000Z | import getpass
import os
import time
import colored
import requests
from colored import stylize
from dotenv import load_dotenv
# Helper for API interaction with Silver Peak Edge Connect
from silverpeak_python_sdk import EdgeConnect
# Console text highlight color parameters
red_text = colored.fg("red") + colored.attr... | 31.880952 | 110 | 0.580284 | 598 | 5,356 | 5.041806 | 0.26087 | 0.04743 | 0.031841 | 0.037811 | 0.317413 | 0.284245 | 0.228524 | 0.228524 | 0.202322 | 0.183085 | 0 | 0.009498 | 0.311987 | 5,356 | 167 | 111 | 32.071856 | 0.808684 | 0.113331 | 0 | 0.290076 | 0 | 0.007634 | 0.243877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007634 | false | 0.061069 | 0.061069 | 0 | 0.068702 | 0.160305 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13a1fd5a3d664f61ada5a857b414801fe32cee3c | 7,051 | py | Python | checklist/tests/test_models.py | cagandhi/Checklist-Django | c8edf1d8f821900a71f36abd34a76663d8d8f7da | [
"Apache-2.0"
] | 3 | 2021-07-02T07:35:19.000Z | 2022-01-14T11:14:14.000Z | checklist/tests/test_models.py | cagandhi/Checklist-Django | c8edf1d8f821900a71f36abd34a76663d8d8f7da | [
"Apache-2.0"
] | 57 | 2021-01-31T23:39:57.000Z | 2022-03-12T00:47:23.000Z | checklist/tests/test_models.py | cagandhi/Checklist-Django | c8edf1d8f821900a71f36abd34a76663d8d8f7da | [
"Apache-2.0"
] | 3 | 2021-08-29T21:46:54.000Z | 2022-03-24T13:10:00.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from checklist.models import (
Bookmark,
Category,
Checklist,
Comment,
Follow,
FollowChecklist,
Item,
Notification,
Upvote,
)
from .helper_methods import (
create_bookmark_upvote,
create_category_i... | 31.337778 | 88 | 0.655652 | 710 | 7,051 | 6.301408 | 0.108451 | 0.016764 | 0.03688 | 0.03688 | 0.651542 | 0.607287 | 0.598122 | 0.547161 | 0.469379 | 0.469379 | 0 | 0.015223 | 0.245355 | 7,051 | 224 | 89 | 31.477679 | 0.825597 | 0.001702 | 0 | 0.505556 | 0 | 0 | 0.073327 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.133333 | false | 0.061111 | 0.022222 | 0 | 0.205556 | 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 |
13aaf9af85b7869a1128d13697e47c006444ea06 | 1,808 | py | Python | tsnewsvendor/prophetnewsvendor.py | Dennis1107/tsnewsvendor | deca83460b402c857920a6e84b5bf3fcb352e566 | [
"MIT"
] | null | null | null | tsnewsvendor/prophetnewsvendor.py | Dennis1107/tsnewsvendor | deca83460b402c857920a6e84b5bf3fcb352e566 | [
"MIT"
] | null | null | null | tsnewsvendor/prophetnewsvendor.py | Dennis1107/tsnewsvendor | deca83460b402c857920a6e84b5bf3fcb352e566 | [
"MIT"
] | 1 | 2022-01-14T11:25:52.000Z | 2022-01-14T11:25:52.000Z | import pandas as pd
import numpy as np
from prophet import Prophet
from prophet.diagnostics import cross_validation
import plotly.express as px
from statistics import NormalDist
class ProphetNewsvendor:
def __init__(self):
pass
def fit(**kwargs):
"""Calculate mean & standard deviation from cro... | 37.666667 | 106 | 0.666482 | 206 | 1,808 | 5.718447 | 0.34466 | 0.023769 | 0.044143 | 0.05348 | 0.17657 | 0.135823 | 0.078098 | 0 | 0 | 0 | 0 | 0 | 0.263827 | 1,808 | 47 | 107 | 38.468085 | 0.885049 | 0.440819 | 0 | 0 | 0 | 0 | 0.010714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.05 | 0.3 | 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 |
13ab30d85a9f19e91d64d1ef835698865ad2d7f1 | 1,508 | py | Python | setup.py | penguineer/todoman | ec68bd32b9ddadc5e3187e06434111305fea724b | [
"ISC"
] | 1 | 2016-02-27T05:05:27.000Z | 2016-02-27T05:05:27.000Z | setup.py | vdirsyncer/todoman | 2d33402aba02148635b7cda269dd6ce93ea79cba | [
"0BSD"
] | null | null | null | setup.py | vdirsyncer/todoman | 2d33402aba02148635b7cda269dd6ce93ea79cba | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
setup(
name="todoman",
description="A simple CalDav-based todo manager.",
author="Hugo Osvaldo Barrera",
author_email="hugo@barrera.io",
url="https://github.com/pimutils/todoman",
license="ISC",
packages=["todoman"],
include_package_da... | 32.085106 | 67 | 0.583554 | 153 | 1,508 | 5.679739 | 0.653595 | 0.109321 | 0.143844 | 0.119678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020229 | 0.246021 | 1,508 | 46 | 68 | 32.782609 | 0.744063 | 0.013926 | 0 | 0.045455 | 0 | 0 | 0.524899 | 0.014132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.022727 | 0 | 0.022727 | 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 |
13ac15f095fa0824d3ae40e28d0eeb3e098dc05d | 7,979 | py | Python | runtime.py | cometa/cometa-dronek | 63b4da12200a9cbcadd08523062df85ca423ff41 | [
"Apache-2.0"
] | 4 | 2016-11-16T18:06:21.000Z | 2022-03-22T00:05:04.000Z | runtime.py | cometa/cometa-dronekit | 63b4da12200a9cbcadd08523062df85ca423ff41 | [
"Apache-2.0"
] | null | null | null | runtime.py | cometa/cometa-dronekit | 63b4da12200a9cbcadd08523062df85ca423ff41 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Low-level Board run-time support for Cometa IoT devices.
Author: Marco Graziano (marco@visiblenergy.com)
"""
__license__ = """
Copyright 2016 Visible Energy Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | 30.338403 | 103 | 0.597067 | 981 | 7,979 | 4.691132 | 0.30683 | 0.04259 | 0.022164 | 0.028683 | 0.236636 | 0.229031 | 0.196002 | 0.170795 | 0.156888 | 0.156888 | 0 | 0.015739 | 0.275348 | 7,979 | 262 | 104 | 30.454198 | 0.78018 | 0.197393 | 0 | 0.268456 | 0 | 0 | 0.163526 | 0 | 0 | 0 | 0 | 0.007634 | 0 | 0 | null | null | 0.006711 | 0.060403 | null | null | 0.020134 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13b1e449a18566b794fb748232d3d9ff4f5a41db | 791 | py | Python | hospital/migrations/0024_covidvaccination.py | Shreyashm16/Hospital-Appointment-and-Information-System | 929b7eb22cc6a0399e6fff3c7012d1c65d7c47cb | [
"MIT"
] | 7 | 2021-07-15T08:59:58.000Z | 2021-12-29T20:21:36.000Z | hospital/migrations/0024_covidvaccination.py | siddharth25pandey/Hospital-Information-Appointment-System | 1df5edd1f0dc2f0f385e7195db221027b4f64efb | [
"MIT"
] | null | null | null | hospital/migrations/0024_covidvaccination.py | siddharth25pandey/Hospital-Information-Appointment-System | 1df5edd1f0dc2f0f385e7195db221027b4f64efb | [
"MIT"
] | 4 | 2021-05-11T08:36:02.000Z | 2021-08-08T11:45:11.000Z | # Generated by Django 3.1.5 on 2021-05-08 12:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('hospital', '0023_auto_20210507_1439'),
]
operations = [
migrations.CreateModel(
name='CovidVacc... | 34.391304 | 150 | 0.647282 | 85 | 791 | 5.905882 | 0.564706 | 0.063745 | 0.083665 | 0.131474 | 0.25498 | 0.25498 | 0.25498 | 0.25498 | 0.25498 | 0.25498 | 0 | 0.050243 | 0.219975 | 791 | 22 | 151 | 35.954545 | 0.763371 | 0.05689 | 0 | 0 | 1 | 0 | 0.166667 | 0.030914 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
13b4c2eceb7edc38b26fa2e79e92df36d85a2abf | 1,783 | py | Python | reddit/posts/views.py | Arnman16/reddirt | f96f757b0d8e3a247e39d73030c589b351bd3fcd | [
"MIT"
] | null | null | null | reddit/posts/views.py | Arnman16/reddirt | f96f757b0d8e3a247e39d73030c589b351bd3fcd | [
"MIT"
] | null | null | null | reddit/posts/views.py | Arnman16/reddirt | f96f757b0d8e3a247e39d73030c589b351bd3fcd | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView, DetailView, TemplateView, CreateView
from .models import Subreddit, Post
class PostView(DetailView):
model = Post
slug_field = 'slug'
slug_url_kwarg = 'slug'
template_name = 'posts/post_view.html'
def get_context_data(s... | 34.960784 | 79 | 0.67134 | 208 | 1,783 | 5.620192 | 0.274038 | 0.068435 | 0.095808 | 0.047904 | 0.687767 | 0.687767 | 0.687767 | 0.687767 | 0.595381 | 0.595381 | 0 | 0 | 0.220415 | 1,783 | 51 | 80 | 34.960784 | 0.841007 | 0.095906 | 0 | 0.615385 | 0 | 0 | 0.110697 | 0.046642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.076923 | 0 | 0.641026 | 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 |
13b52adaefba96755e66f7b9d2eeebab70cbe5b3 | 17,429 | py | Python | semantiX/multi-stream-vgg16.py | gpspelle/Fall_detection | cb8dcf077fbb194a02072d48792491abfb1d28b9 | [
"MIT"
] | 2 | 2018-01-29T01:43:28.000Z | 2018-09-10T16:46:53.000Z | semantiX/multi-stream-vgg16.py | gpspelle/Multi-stream-CNN-Event-Detection | cb8dcf077fbb194a02072d48792491abfb1d28b9 | [
"MIT"
] | 13 | 2020-01-28T21:44:36.000Z | 2022-03-11T23:20:19.000Z | semantiX/multi-stream-vgg16.py | gpspelle/Fall_detection | cb8dcf077fbb194a02072d48792491abfb1d28b9 | [
"MIT"
] | 2 | 2018-05-25T14:02:13.000Z | 2018-09-10T16:46:54.000Z | import sys
import argparse
import h5py
import numpy as np
import keras
from keras.models import Model, Sequential
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Input
from keras import backend as K
from keras.applications.vgg16 import VGG16
''' This code is based on Núñez-Marcos, A., Azkune, G., & Arga... | 43.901763 | 230 | 0.613977 | 2,458 | 17,429 | 4.24288 | 0.133035 | 0.030204 | 0.025314 | 0.032218 | 0.665548 | 0.661137 | 0.661137 | 0.661137 | 0.655192 | 0.655192 | 0 | 0.052245 | 0.251018 | 17,429 | 396 | 231 | 44.012626 | 0.746668 | 0.117907 | 0 | 0.623256 | 0 | 0 | 0.184385 | 0.011615 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04186 | 0 | 0.04186 | 0.051163 | 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 |
13b809f9f6d0ebd4aec8a16a762b87fda845233f | 587 | py | Python | faceweb/faceapp/migrations/0020_auto_20200525_0653.py | Dheeraj2407/Face-web | e73696e0ff12fc19a8d88ccaf2a830db4fcbb102 | [
"MIT"
] | null | null | null | faceweb/faceapp/migrations/0020_auto_20200525_0653.py | Dheeraj2407/Face-web | e73696e0ff12fc19a8d88ccaf2a830db4fcbb102 | [
"MIT"
] | null | null | null | faceweb/faceapp/migrations/0020_auto_20200525_0653.py | Dheeraj2407/Face-web | e73696e0ff12fc19a8d88ccaf2a830db4fcbb102 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2020-05-25 06:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('faceapp', '0019_timetable'),
]
operations = [
migrations.RemoveField(
model_name='timetable',
... | 24.458333 | 118 | 0.606474 | 61 | 587 | 5.754098 | 0.606557 | 0.068376 | 0.079772 | 0.125356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044393 | 0.270869 | 587 | 23 | 119 | 25.521739 | 0.775701 | 0.076661 | 0 | 0.235294 | 1 | 0 | 0.125926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13bc01f95fca49bbed2fa54748ea6497909e5b6f | 4,773 | py | Python | virt/ansible-latest/lib/python2.7/site-packages/ansible/plugins/doc_fragments/acme.py | lakhlaifi/RedHat-Ansible | 27c5077cced9d416081fcd5d69ea44bca0317fa4 | [
"Apache-2.0"
] | 1 | 2020-03-29T18:41:01.000Z | 2020-03-29T18:41:01.000Z | ansible/ansible/plugins/doc_fragments/acme.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 7 | 2020-09-07T17:27:56.000Z | 2022-03-02T06:25:46.000Z | ansible/ansible/plugins/doc_fragments/acme.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 1 | 2020-10-30T12:48:24.000Z | 2020-10-30T12:48:24.000Z | # -*- coding: utf-8 -*-
# Copyright: (c) 2016 Michael Gruener <michael.gruener@chaosmoon.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# Standard files documentation fragment
DOCUMENTATION = r'''
notes:
- "If a new enough... | 44.607477 | 105 | 0.679656 | 701 | 4,773 | 4.590585 | 0.352354 | 0.031075 | 0.02051 | 0.015848 | 0.149161 | 0.078931 | 0.039155 | 0.021753 | 0 | 0 | 0 | 0.009948 | 0.241777 | 4,773 | 106 | 106 | 45.028302 | 0.878696 | 0.045674 | 0 | 0.163265 | 0 | 0.030612 | 0.983956 | 0.025714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010204 | 0 | 0.030612 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.