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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc30280c0a0d064ca9e9c758baa1e3d1fe2c3543 | 5,463 | py | Python | uint/test_uint.py | puhitaku/uint | c426d277ada61abda399e380cc720531bb7dccb7 | [
"MIT"
] | 2 | 2021-01-22T14:58:59.000Z | 2021-04-14T12:31:24.000Z | uint/test_uint.py | puhitaku/uint | c426d277ada61abda399e380cc720531bb7dccb7 | [
"MIT"
] | 2 | 2019-08-13T01:43:08.000Z | 2019-08-27T23:24:36.000Z | uint/test_uint.py | puhitaku/uint | c426d277ada61abda399e380cc720531bb7dccb7 | [
"MIT"
] | null | null | null | import pytest
from uint import Uint
def test_positive_overflow():
u = Uint(0b11111111, 8)
u += 1
assert u.raw == 0b00000000
def test_negative_overflow():
u = Uint(0b00000000, 8)
u -= 1
assert u.raw == 0b11111111
def test_logical_shift():
u = Uint(0b10100101, 8)
u <<= 1
assert u... | 21.011538 | 70 | 0.55043 | 878 | 5,463 | 3.378132 | 0.167426 | 0.080243 | 0.028321 | 0.02967 | 0.369184 | 0.344572 | 0.269386 | 0.242414 | 0.212744 | 0.212744 | 0 | 0.126211 | 0.282079 | 5,463 | 259 | 71 | 21.092664 | 0.630036 | 0.105986 | 0 | 0.162921 | 0 | 0 | 0.045982 | 0.008699 | 0 | 0 | 0.084714 | 0 | 0.47191 | 1 | 0.191011 | false | 0 | 0.011236 | 0 | 0.202247 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc34766afeb6fff0659d89e2565b6011367f51bd | 3,789 | py | Python | nodeconductor/cost_tracking/views.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | nodeconductor/cost_tracking/views.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | nodeconductor/cost_tracking/views.py | p-p-m/nodeconductor | bc702302ef65c89793452f0fd6ca9a6bec79782f | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from rest_framework import viewsets, permissions, exceptions
from nodeconductor.core.filters import DjangoMappingFilterBackend
from nodeconductor.cost_tracking import models, serializers, filters
from nodeconductor.structure import models as structure_models
class PriceEditPe... | 44.05814 | 114 | 0.744788 | 389 | 3,789 | 7.061697 | 0.29563 | 0.024026 | 0.023662 | 0.032763 | 0.47288 | 0.364033 | 0.337823 | 0.310885 | 0.310885 | 0.283218 | 0 | 0 | 0.173925 | 3,789 | 85 | 115 | 44.576471 | 0.877636 | 0 | 0 | 0.28125 | 0 | 0 | 0.092373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.078125 | 0.03125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fc351ce9d64eb945cd9122ea6600c031f21cae58 | 669 | py | Python | hw1/signal/calculator.py | jibanCat/phys214_obsastro | 049c35b089b35108b65ec106e05e599fa529dfb0 | [
"MIT"
] | null | null | null | hw1/signal/calculator.py | jibanCat/phys214_obsastro | 049c35b089b35108b65ec106e05e599fa529dfb0 | [
"MIT"
] | null | null | null | hw1/signal/calculator.py | jibanCat/phys214_obsastro | 049c35b089b35108b65ec106e05e599fa529dfb0 | [
"MIT"
] | null | null | null | import math as m
import sympy as sp
t = sp.symbols("t")
# S/N ratio equation
sn = lambda R_s, R_sky, RN, DN, npix, t : R_s * t / ( R_s * t + R_sky * t * npix + RN**2 * npix + DN * t * npix )**(1/2)
def solve_SN_20(R_s, R_sky, RN, DN, npix, t):
'''
Parameters
----
R_s : float, e/s from source
... | 26.76 | 120 | 0.556054 | 129 | 669 | 2.775194 | 0.379845 | 0.03352 | 0.02514 | 0.050279 | 0.125698 | 0.083799 | 0.083799 | 0.083799 | 0 | 0 | 0 | 0.029661 | 0.294469 | 669 | 25 | 121 | 26.76 | 0.728814 | 0.434978 | 0 | 0 | 0 | 0 | 0.003058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
fc3a3c9e4f9a08ff2b4df3b06b0918c808c94d68 | 1,460 | py | Python | Database/splParser/databaseconnection.py | snapmeds/snapmeds | e49b86ecf832eaebbe03181c40e81e3874bb3b78 | [
"Apache-2.0"
] | 1 | 2017-01-29T05:51:53.000Z | 2017-01-29T05:51:53.000Z | Database/splParser/databaseconnection.py | snapmeds/snapmeds | e49b86ecf832eaebbe03181c40e81e3874bb3b78 | [
"Apache-2.0"
] | null | null | null | Database/splParser/databaseconnection.py | snapmeds/snapmeds | e49b86ecf832eaebbe03181c40e81e3874bb3b78 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import urllib2, urllib
import drug
def write_to_database(drug):
mydata = get_array_of_tuples_from_drug(drug)
mydata = mydata + [("username","YOURUSERNAMEHERE"),("password","YOURPASSWORDHERE")]
mydata=urllib.urlencode(mydata)
print mydata
path='YOURDATABASEURL'
... | 35.609756 | 88 | 0.660959 | 165 | 1,460 | 5.769697 | 0.418182 | 0.103992 | 0.021008 | 0.033613 | 0.058824 | 0.058824 | 0.058824 | 0 | 0 | 0 | 0 | 0.004252 | 0.194521 | 1,460 | 41 | 89 | 35.609756 | 0.805272 | 0.014384 | 0 | 0 | 0 | 0 | 0.159514 | 0.038627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc3a50cbecd3aec803267cd673ff5888290e8568 | 1,977 | py | Python | examples/lis2mdl_compass.py | jposada202020/Adafruit_CircuitPython_LIS2MDL | 5c3512dca3218c8779e922427e54a42310fbba74 | [
"MIT",
"MIT-0",
"Unlicense"
] | 1 | 2020-03-11T21:54:50.000Z | 2020-03-11T21:54:50.000Z | examples/lis2mdl_compass.py | jposada202020/Adafruit_CircuitPython_LIS2MDL | 5c3512dca3218c8779e922427e54a42310fbba74 | [
"MIT",
"MIT-0",
"Unlicense"
] | 6 | 2020-01-02T05:34:01.000Z | 2021-09-27T16:45:59.000Z | examples/lis2mdl_compass.py | adafruit/Adafruit_CircuitPython_LSM303AGR_Mag | 29b88232c9c548114806fcd6fd80cb4ff335ef67 | [
"MIT"
] | 5 | 2020-01-09T02:39:40.000Z | 2022-02-09T05:29:23.000Z | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
""" Display compass heading data from a calibrated magnetometer """
import time
import math
import board
import adafruit_lis2mdl
i2c = board.I2C() # uses board.SCL and board.SDA
sensor = adafruit_lis2mdl.LIS2MDL(i2c)
# Yo... | 35.945455 | 88 | 0.697016 | 299 | 1,977 | 4.565217 | 0.501672 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084383 | 0.196763 | 1,977 | 54 | 89 | 36.611111 | 0.775189 | 0.579666 | 0 | 0 | 0 | 0 | 0.037406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.136364 | 0.181818 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fc3b7c12a928b12c66eefb560659cf9c14fdc805 | 1,047 | py | Python | scraper/storage_spiders/kingshopvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/kingshopvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/kingshopvn.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='info-detail-prod']/h1[@class='name']",
'price' : "//div[@class='price-old-sale']/span[@class='price']|//div[@class='pric... | 38.777778 | 124 | 0.637058 | 130 | 1,047 | 5.030769 | 0.569231 | 0.085627 | 0.059633 | 0.055046 | 0.178899 | 0.111621 | 0.111621 | 0.111621 | 0.111621 | 0 | 0 | 0.003257 | 0.120344 | 1,047 | 26 | 125 | 40.269231 | 0.70684 | 0.114613 | 0 | 0 | 1 | 0.086957 | 0.532468 | 0.358225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
fc424eaf322ec9aa0848fee3627d46d3e5c0071d | 1,421 | py | Python | tests/test_day2.py | austind/pyplus-ons | f0fcd6b2a980f75968ab54cd2ae39b42c1f68302 | [
"Apache-2.0"
] | null | null | null | tests/test_day2.py | austind/pyplus-ons | f0fcd6b2a980f75968ab54cd2ae39b42c1f68302 | [
"Apache-2.0"
] | null | null | null | tests/test_day2.py | austind/pyplus-ons | f0fcd6b2a980f75968ab54cd2ae39b42c1f68302 | [
"Apache-2.0"
] | 5 | 2019-11-19T18:41:41.000Z | 2020-06-18T14:58:09.000Z | from pathlib import Path
import pytest
import subprocess
TEST_CASES = [
"../day2/regex/solutions/exercise1.py",
"../day2/regex/solutions/exercise2.py",
"../day2/regex/solutions/exercise1_named_patterns.py",
"../day2/functions/solutions/exercise3.py",
"../day2/functions/solutions/exercise4.py",
... | 34.658537 | 82 | 0.703026 | 177 | 1,421 | 5.463277 | 0.310734 | 0.086867 | 0.124095 | 0.148914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026187 | 0.140042 | 1,421 | 40 | 83 | 35.525 | 0.765139 | 0 | 0 | 0 | 0 | 0 | 0.425053 | 0.414497 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.057143 | false | 0 | 0.085714 | 0 | 0.171429 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc4513579c17a3e7211739fbfd55a255bb08476c | 442 | py | Python | drp/migrations/0004_auto_20210207_0120.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 1 | 2021-02-05T19:50:13.000Z | 2021-02-05T19:50:13.000Z | drp/migrations/0004_auto_20210207_0120.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 59 | 2020-06-17T22:21:51.000Z | 2022-02-10T05:00:01.000Z | drp/migrations/0004_auto_20210207_0120.py | dennereed/paleocore | d6da6c39cde96050ee4b9e7213ec1200530cbeee | [
"MIT"
] | 2 | 2020-07-01T14:11:09.000Z | 2020-08-10T17:27:26.000Z | # Generated by Django 2.2.13 on 2021-02-07 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('drp', '0003_auto_20200412_2215'),
]
operations = [
migrations.AlterField(
model_name='occurrence',
name='image',
... | 23.263158 | 106 | 0.61991 | 51 | 442 | 5.254902 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106707 | 0.257919 | 442 | 18 | 107 | 24.555556 | 0.710366 | 0.104072 | 0 | 0 | 1 | 0 | 0.149746 | 0.058376 | 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 |
fc469361aab6655ef68d1c5936a53a8745d2c2de | 1,723 | py | Python | docker/rootfs/var/www/movies/migrations/0001_initial.py | ali2night/Django-video-ms | f9ced709a83df603bcb865631a9893b599276ad3 | [
"MIT"
] | null | null | null | docker/rootfs/var/www/movies/migrations/0001_initial.py | ali2night/Django-video-ms | f9ced709a83df603bcb865631a9893b599276ad3 | [
"MIT"
] | null | null | null | docker/rootfs/var/www/movies/migrations/0001_initial.py | ali2night/Django-video-ms | f9ced709a83df603bcb865631a9893b599276ad3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 09:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='commen... | 41.02381 | 114 | 0.582124 | 182 | 1,723 | 5.318681 | 0.417582 | 0.07438 | 0.103306 | 0.123967 | 0.385331 | 0.381198 | 0.313017 | 0.313017 | 0.268595 | 0.268595 | 0 | 0.030977 | 0.269298 | 1,723 | 41 | 115 | 42.02439 | 0.737887 | 0.039466 | 0 | 0.30303 | 1 | 0 | 0.1023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.181818 | 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 |
fc4bd006201436ee1544d2c42a376159dc78fcfd | 20,147 | py | Python | compile.py | Eleyvie/wreck | 19d6149dc91465865918a706a17e14f5cf3c343d | [
"MIT"
] | 1 | 2019-06-18T02:08:20.000Z | 2019-06-18T02:08:20.000Z | compile.py | Eleyvie/wreck | 19d6149dc91465865918a706a17e14f5cf3c343d | [
"MIT"
] | null | null | null | compile.py | Eleyvie/wreck | 19d6149dc91465865918a706a17e14f5cf3c343d | [
"MIT"
] | null | null | null | WRECK_VERSION = '1.0.1'
# DONE:
# new command line parameter: `test`. WRECK will compile the module but won't save anything on disk. Essentially a syntax check.
# PLANNED:
# local variable lifetime check (paranoia mode)
# trace local declaration in all conditional branches
# dialogs: dead ends, inaccessible d... | 38.969052 | 287 | 0.669231 | 2,509 | 20,147 | 5.211638 | 0.174572 | 0.03212 | 0.04818 | 0.047721 | 0.19922 | 0.168171 | 0.147216 | 0.137427 | 0.126874 | 0.126874 | 0 | 0.010188 | 0.166923 | 20,147 | 516 | 288 | 39.044574 | 0.768887 | 0.125875 | 0 | 0.209184 | 0 | 0.028061 | 0.218924 | 0.008404 | 0 | 0 | 0.000588 | 0 | 0 | 0 | null | null | 0 | 0.104592 | null | null | 0.145408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fc4d3652edd5e8c8fddb9f56b543084cae5c7470 | 8,284 | py | Python | tests/apitests/python/test_push_cnab_bundle.py | PushkarJ/harbor | 3947c5faff9d23ca56ff7a6994439a0ed08a9fdc | [
"Apache-2.0"
] | 12,706 | 2018-08-08T10:45:05.000Z | 2022-03-31T20:34:23.000Z | tests/apitests/python/test_push_cnab_bundle.py | PushkarJ/harbor | 3947c5faff9d23ca56ff7a6994439a0ed08a9fdc | [
"Apache-2.0"
] | 10,942 | 2018-08-08T08:56:04.000Z | 2022-03-31T23:46:08.000Z | tests/apitests/python/test_push_cnab_bundle.py | PushkarJ/harbor | 3947c5faff9d23ca56ff7a6994439a0ed08a9fdc | [
"Apache-2.0"
] | 3,313 | 2018-08-08T08:37:19.000Z | 2022-03-31T12:20:17.000Z | from __future__ import absolute_import
import sys
import unittest
from testutils import ADMIN_CLIENT, suppress_urllib3_warning
from testutils import harbor_server
from testutils import TEARDOWN
import library.repository
import library.cnab
from library.project import Project
from library.user import User
from library... | 55.597315 | 209 | 0.721994 | 1,073 | 8,284 | 5.328984 | 0.160298 | 0.083945 | 0.066457 | 0.089717 | 0.582546 | 0.543197 | 0.482162 | 0.434767 | 0.386499 | 0.376705 | 0 | 0.013955 | 0.186866 | 8,284 | 148 | 210 | 55.972973 | 0.834917 | 0.218131 | 0 | 0.051948 | 0 | 0 | 0.050361 | 0.007698 | 0 | 0 | 0 | 0 | 0.064935 | 1 | 0.051948 | false | 0.051948 | 0.168831 | 0 | 0.233766 | 0.051948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc51f01aff7d6b203385f8c9d51eef835b17726b | 5,175 | py | Python | python/ql/test/experimental/dataflow/typetracking/attribute_tests.py | RoryPreddyGithubEnterprise/codeql | af27da1b39f5529faf4c5c6bcf01834f10d89aa9 | [
"MIT"
] | null | null | null | python/ql/test/experimental/dataflow/typetracking/attribute_tests.py | RoryPreddyGithubEnterprise/codeql | af27da1b39f5529faf4c5c6bcf01834f10d89aa9 | [
"MIT"
] | 4 | 2022-03-10T10:47:29.000Z | 2022-03-10T10:53:59.000Z | python/ql/test/experimental/dataflow/typetracking/attribute_tests.py | RoryPreddyGithubEnterprise/codeql | af27da1b39f5529faf4c5c6bcf01834f10d89aa9 | [
"MIT"
] | null | null | null | class SomeClass:
pass
def simple_read_write():
x = SomeClass() # $tracked=foo
x.foo = tracked # $tracked tracked=foo
y = x.foo # $tracked=foo tracked
do_stuff(y) # $tracked
def foo():
x = SomeClass() # $tracked=attr
bar(x) # $tracked=attr
x.attr = tracked # $tracked=attr tracked
ba... | 31.944444 | 80 | 0.60599 | 637 | 5,175 | 4.78022 | 0.127159 | 0.180624 | 0.09491 | 0.059113 | 0.613465 | 0.531691 | 0.449918 | 0.418391 | 0.370443 | 0.319869 | 0 | 0.00237 | 0.184734 | 5,175 | 161 | 81 | 32.142857 | 0.719365 | 0.497005 | 0 | 0.453704 | 0 | 0 | 0.011595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.009259 | 0 | 0 | 0.277778 | 0.12963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc53fb934380ba7daf2f08cb3cc4afa5381c42d7 | 519 | py | Python | Python Script Sample/nslookup_check.py | areriff/pythonlearncanvas | b797887311cafe38030e82cdac2068618ce4d33a | [
"MIT"
] | null | null | null | Python Script Sample/nslookup_check.py | areriff/pythonlearncanvas | b797887311cafe38030e82cdac2068618ce4d33a | [
"MIT"
] | null | null | null | Python Script Sample/nslookup_check.py | areriff/pythonlearncanvas | b797887311cafe38030e82cdac2068618ce4d33a | [
"MIT"
] | null | null | null | # Script Name : nslookup_check.py
# Author : Craig Richards
# Created : 5th January 2012
# Last Modified :
# Version : 1.0
# Modifications :
# Description : This very simple script opens the file server_list.txt and the does an nslookup for each one to check the DNS entry
import subprocess # Import ... | 34.6 | 133 | 0.71869 | 76 | 519 | 4.868421 | 0.618421 | 0.037838 | 0.07027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017199 | 0.2158 | 519 | 14 | 134 | 37.071429 | 0.891892 | 0.749518 | 0 | 0 | 0 | 0 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fc545097188399569910bd93a3bd153ccd8f5633 | 2,464 | py | Python | tests/aircraft/deploys/ubuntu/models/v1beta3/pxe_data_test.py | relaxdiego/aircraft | ce9a6724fe33be38777991fbb1cd731e197fa468 | [
"Apache-2.0"
] | 9 | 2021-01-15T18:26:44.000Z | 2021-07-29T07:40:15.000Z | tests/aircraft/deploys/ubuntu/models/v1beta3/pxe_data_test.py | relaxdiego/aircraft | ce9a6724fe33be38777991fbb1cd731e197fa468 | [
"Apache-2.0"
] | null | null | null | tests/aircraft/deploys/ubuntu/models/v1beta3/pxe_data_test.py | relaxdiego/aircraft | ce9a6724fe33be38777991fbb1cd731e197fa468 | [
"Apache-2.0"
] | 1 | 2021-04-26T01:39:26.000Z | 2021-04-26T01:39:26.000Z | import pytest
from aircraft.deploys.ubuntu.models.v1beta3 import PxeData
from aircraft.deploys.ubuntu.models.v1beta3.pxe_data import (
AutoinstallV1InstallerConfigData,
LegacyNetbootInstallerConfigData,
)
@pytest.fixture
def valid_bootfiles_config_data():
return [
{
'client_arch': 7,
... | 26.494624 | 85 | 0.672484 | 273 | 2,464 | 5.688645 | 0.25641 | 0.096587 | 0.038635 | 0.067611 | 0.657437 | 0.560206 | 0.511269 | 0.464907 | 0.464907 | 0.464907 | 0 | 0.043614 | 0.218344 | 2,464 | 92 | 86 | 26.782609 | 0.762721 | 0.008117 | 0 | 0.485714 | 0 | 0 | 0.233006 | 0.018018 | 0 | 0 | 0 | 0.01087 | 0.028571 | 1 | 0.114286 | false | 0 | 0.042857 | 0.071429 | 0.228571 | 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 |
fc5917567f7cb88770eab8e08ad0cfba239b9eb2 | 675 | py | Python | pycrunch_trace/demo/interactive_demo_04.py | yswtrue/pycrunch-trace | 67395a8ee578387c878cd85365cec186ab811984 | [
"MIT"
] | 90 | 2020-06-02T09:43:34.000Z | 2022-03-18T12:04:11.000Z | pycrunch_trace/demo/interactive_demo_04.py | yswtrue/pycrunch-trace | 67395a8ee578387c878cd85365cec186ab811984 | [
"MIT"
] | 8 | 2020-06-05T19:20:07.000Z | 2022-03-17T10:14:30.000Z | pycrunch_trace/demo/interactive_demo_04.py | yswtrue/pycrunch-trace | 67395a8ee578387c878cd85365cec186ab811984 | [
"MIT"
] | 8 | 2020-06-06T08:08:53.000Z | 2022-03-19T16:38:18.000Z | from time import sleep
from pycrunch_trace.client.api import trace
def alternative_ways_to_trace():
sleep(0.25)
print('You can use Trace object to manually start and stop tracing')
print(' Or by applying @trace decorator to the method')
print(' See examples bellow')
def example_without_decorators():... | 21.09375 | 72 | 0.728889 | 97 | 675 | 4.85567 | 0.536082 | 0.063694 | 0.072187 | 0.097665 | 0.157113 | 0.157113 | 0.157113 | 0 | 0 | 0 | 0 | 0.005495 | 0.191111 | 675 | 32 | 73 | 21.09375 | 0.857143 | 0.075556 | 0 | 0.1 | 0 | 0 | 0.253612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.15 | 0 | 0.35 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc59e2d3727a3a6d954d14225a7ca7c683b82478 | 6,239 | py | Python | View/login.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | View/login.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | View/login.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'login.ui'
#
# Created by: PyQt5 View code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGu... | 39.99359 | 101 | 0.66469 | 784 | 6,239 | 5.137755 | 0.218112 | 0.03575 | 0.045184 | 0.031281 | 0.496524 | 0.470457 | 0.40144 | 0.338133 | 0.289474 | 0.289474 | 0 | 0.033413 | 0.194102 | 6,239 | 155 | 102 | 40.251613 | 0.767701 | 0.043597 | 0 | 0.421429 | 1 | 0 | 0.198724 | 0.007217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0.007143 | 0.007143 | 0 | 0.028571 | 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 |
fc63e7fc98b08b12862f7eda16a121d1e5f2c18a | 6,671 | py | Python | Module_system 1.171/ID_quests.py | Sea-Monster/WarbandModuleSystem | 66c67147692707b85c457db10a112627118733a5 | [
"MIT"
] | null | null | null | Module_system 1.171/ID_quests.py | Sea-Monster/WarbandModuleSystem | 66c67147692707b85c457db10a112627118733a5 | [
"MIT"
] | null | null | null | Module_system 1.171/ID_quests.py | Sea-Monster/WarbandModuleSystem | 66c67147692707b85c457db10a112627118733a5 | [
"MIT"
] | null | null | null | qst_deliver_message = 0
qst_deliver_message_to_enemy_lord = 1
qst_raise_troops = 2
qst_escort_lady = 3
qst_deal_with_bandits_at_lords_village = 4
qst_collect_taxes = 5
qst_hunt_down_fugitive = 6
qst_kill_local_merchant = 7
qst_bring_back_runaway_serfs = 8
qst_follow_spy = 9
qst_capture_enemy_hero = 10
qst_lend_companio... | 36.059459 | 63 | 0.890571 | 904 | 6,671 | 5.974558 | 0.344027 | 0.096278 | 0.062581 | 0.007036 | 0.063692 | 0.010739 | 0 | 0 | 0 | 0 | 0 | 0.309979 | 0.082147 | 6,671 | 184 | 64 | 36.255435 | 0.572105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc6b4d9cdf000c9a7486ce7878149b54a193aca6 | 2,584 | py | Python | MyPackage/base.py | AndreasPhilippi/howtopackage | 3930817787a05ce88c9691bd18eaa9bc35f3f1b7 | [
"MIT"
] | null | null | null | MyPackage/base.py | AndreasPhilippi/howtopackage | 3930817787a05ce88c9691bd18eaa9bc35f3f1b7 | [
"MIT"
] | null | null | null | MyPackage/base.py | AndreasPhilippi/howtopackage | 3930817787a05ce88c9691bd18eaa9bc35f3f1b7 | [
"MIT"
] | null | null | null |
class Chair:
"""Create a chair
Parameters
----------
chair_name : str
The name of the chair
professor: str
The name of the professor
employees : {array-like of shape (n,), []}, default=[]
List of all employees of the chair
See A... | 22.867257 | 62 | 0.485681 | 228 | 2,584 | 5.438596 | 0.27193 | 0.020161 | 0.024194 | 0.029032 | 0.270161 | 0.258065 | 0.227419 | 0.151613 | 0.151613 | 0.151613 | 0 | 0.013316 | 0.389706 | 2,584 | 112 | 63 | 23.071429 | 0.772987 | 0.458204 | 0 | 0 | 0 | 0 | 0.053241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.333333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc6be16357ae863df9ecf111ce0092f7ccae6eec | 1,273 | py | Python | cheviz/_nbdev.py | mikhas/cheviz | 436b0783e32501b16abe11daad560f430dca5880 | [
"Apache-2.0"
] | null | null | null | cheviz/_nbdev.py | mikhas/cheviz | 436b0783e32501b16abe11daad560f430dca5880 | [
"Apache-2.0"
] | 6 | 2020-12-26T23:17:36.000Z | 2022-03-12T00:29:44.000Z | cheviz/_nbdev.py | mikhas/cheviz | 436b0783e32501b16abe11daad560f430dca5880 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"dimension": "00_core.ipynb",
"reshaped": "00_core.ipynb",
"show": "00_core.ipynb",
"makeThreatenedSquares": "00_core.ipynb",
"defence": "00_core.ipynb",
"attack":... | 32.641026 | 61 | 0.579733 | 137 | 1,273 | 5.145985 | 0.430657 | 0.085106 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045929 | 0.247447 | 1,273 | 38 | 62 | 33.5 | 0.689979 | 0.02828 | 0 | 0 | 1 | 0 | 0.555466 | 0.034818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0.032258 | 0.032258 | 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 |
fc718ef5cf7f22f49cdbaf02494ae8fc7138f2dc | 846 | py | Python | Pipeline/Methods/combine_mocks_method.py | federatedcloud/FRB_pipeline | b6f7d6f5e9efb95955e1d9c2c372d01a70ac2e98 | [
"BSD-3-Clause"
] | 2 | 2019-06-06T18:50:25.000Z | 2020-02-07T08:51:23.000Z | Pipeline/Methods/combine_mocks_method.py | federatedcloud/FRB_pipeline | b6f7d6f5e9efb95955e1d9c2c372d01a70ac2e98 | [
"BSD-3-Clause"
] | 7 | 2018-10-18T15:12:06.000Z | 2019-12-13T17:24:58.000Z | Pipeline/Methods/combine_mocks_method.py | federatedcloud/FRB_pipeline | b6f7d6f5e9efb95955e1d9c2c372d01a70ac2e98 | [
"BSD-3-Clause"
] | null | null | null | # Method to run combine_mocks within the FRB_pipeline
from method import *
# Required parameters to put in the configuration file are:
# directory, file1, file2, basename
def main(hotpotato):
print("Combining 2 fits files")
params_list= ['directory', 'file1', 'file2', 'basename']
print_params(params_l... | 31.333333 | 73 | 0.658392 | 102 | 846 | 5.333333 | 0.460784 | 0.088235 | 0.125 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02259 | 0.21513 | 846 | 26 | 74 | 32.538462 | 0.796687 | 0.22104 | 0 | 0.142857 | 0 | 0 | 0.209801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0.142857 | 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 |
fc7984dbd3a565d9006202fd2d2c160f0dbb807e | 314 | py | Python | Reverse String.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | Reverse String.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | Reverse String.py | ngdeva99/Fulcrum | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | [
"MIT"
] | null | null | null | class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
l = 0
r = len(s)-1
while l<r:
s[l],s[r]=s[r],s[l]
l+=1
r-=1
| 19.625 | 58 | 0.356688 | 39 | 314 | 2.871795 | 0.589744 | 0.053571 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.512739 | 314 | 15 | 59 | 20.933333 | 0.705882 | 0.159236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc7ac4e908cc38b6fc3b5492a4352181d6db6d90 | 863 | py | Python | modules/users/internals.py | vladpi/zenmoney-bot | 280723a49979632811f585fb8dced3c396fe563a | [
"Apache-2.0"
] | null | null | null | modules/users/internals.py | vladpi/zenmoney-bot | 280723a49979632811f585fb8dced3c396fe563a | [
"Apache-2.0"
] | 1 | 2022-02-16T22:29:36.000Z | 2022-02-16T22:29:54.000Z | modules/users/internals.py | vladpi/zenmoney-bot | 280723a49979632811f585fb8dced3c396fe563a | [
"Apache-2.0"
] | null | null | null | from typing import TYPE_CHECKING, Optional
from .schemas import EncryptedStr
from .service import user_service
if TYPE_CHECKING:
from .schemas import UserModel
async def init_zenmoney_data(
user: 'UserModel',
token: str,
last_sync: int,
user_id: int,
) -> 'UserModel':
user.zenmoney_user_id =... | 26.151515 | 86 | 0.752028 | 114 | 863 | 5.394737 | 0.27193 | 0.091057 | 0.136585 | 0.107317 | 0.278049 | 0.278049 | 0.230894 | 0.230894 | 0.230894 | 0.230894 | 0 | 0 | 0.165701 | 863 | 32 | 87 | 26.96875 | 0.854167 | 0 | 0 | 0.375 | 0 | 0 | 0.062572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc7cf8c720162f5619eb078437ebb86042080b66 | 1,792 | py | Python | tests/lang/test_slovak.py | gerulata/pySBD | d084abe82aff10cd4297a8621aa784ab368d096a | [
"MIT"
] | null | null | null | tests/lang/test_slovak.py | gerulata/pySBD | d084abe82aff10cd4297a8621aa784ab368d096a | [
"MIT"
] | null | null | null | tests/lang/test_slovak.py | gerulata/pySBD | d084abe82aff10cd4297a8621aa784ab368d096a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
GOLDEN_SK_RULES_TEST_CASES = [
("Ide o majiteľov firmy ABTrade s. r. o., ktorí stoja aj za ďalšími spoločnosťami, napr. XYZCorp a.s.",
["Ide o majiteľov firmy ABTrade s. r. o., ktorí stoja aj za ďalšími spoločnosťami, napr. XYZCorp a.s."]),
("„Prieskumy beriem na ľahk... | 49.777778 | 117 | 0.662388 | 271 | 1,792 | 4.339483 | 0.424354 | 0.047619 | 0.040816 | 0.030612 | 0.744898 | 0.666667 | 0.666667 | 0.595238 | 0.55102 | 0.520408 | 0 | 0.031712 | 0.208147 | 1,792 | 35 | 118 | 51.2 | 0.792812 | 0.081473 | 0 | 0 | 0 | 0.071429 | 0.673993 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc7dc2bd6a34e2f0e868b8150bbf24685c02ef2c | 1,366 | py | Python | app.py | nickk/awesome-panel | df184c4ddfea74acb74b2af2e7a767a83522cc83 | [
"Apache-2.0"
] | 179 | 2019-12-04T14:54:53.000Z | 2022-03-30T09:08:38.000Z | app.py | nickk/awesome-panel | df184c4ddfea74acb74b2af2e7a767a83522cc83 | [
"Apache-2.0"
] | 62 | 2019-12-14T16:51:28.000Z | 2022-03-19T18:47:12.000Z | app.py | nickk/awesome-panel | df184c4ddfea74acb74b2af2e7a767a83522cc83 | [
"Apache-2.0"
] | 35 | 2019-12-08T13:19:53.000Z | 2022-03-25T10:33:02.000Z | # pylint: disable=redefined-outer-name,protected-access,missing-function-docstring
"""In this module we configure our awesome-panel.org app and serve it using the
awesome_panel.application framework.
The awesome_panel.application framework provides
- Templates: One or more Templates to layout your app(s). A tem... | 42.6875 | 101 | 0.743045 | 198 | 1,366 | 5.045455 | 0.540404 | 0.036036 | 0.03003 | 0.052052 | 0.158158 | 0.088088 | 0.088088 | 0.088088 | 0.088088 | 0.088088 | 0 | 0.007986 | 0.174963 | 1,366 | 31 | 102 | 44.064516 | 0.878438 | 0.63104 | 0 | 0 | 0 | 0 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fc7df0cabac26ba69b95bf79f2001775166da6a5 | 24,879 | py | Python | appengine/lib/gevent/_sslgte279.py | mrkevinlin/eighty | f852069860472dbf05050058e71ca74934b8ceb8 | [
"Unlicense"
] | null | null | null | appengine/lib/gevent/_sslgte279.py | mrkevinlin/eighty | f852069860472dbf05050058e71ca74934b8ceb8 | [
"Unlicense"
] | null | null | null | appengine/lib/gevent/_sslgte279.py | mrkevinlin/eighty | f852069860472dbf05050058e71ca74934b8ceb8 | [
"Unlicense"
] | null | null | null | # Wrapper module for _ssl. Written by Bill Janssen.
# Ported to gevent by Denis Bilenko.
"""SSL wrapper for socket objects.
For the documentation, refer to :mod:`ssl` module manual.
This module implements cooperative SSL socket wrappers.
"""
from __future__ import absolute_import
import ssl as __ssl__
_ssl = __ssl_... | 37.86758 | 116 | 0.59303 | 2,841 | 24,879 | 4.976417 | 0.164731 | 0.026171 | 0.012873 | 0.019805 | 0.389518 | 0.359315 | 0.317018 | 0.290989 | 0.266374 | 0.244023 | 0 | 0.00583 | 0.338157 | 24,879 | 656 | 117 | 37.925305 | 0.852788 | 0.104425 | 0 | 0.391863 | 0 | 0 | 0.0675 | 0.008588 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004283 | 0.019272 | 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 |
fc85617f08746066c85d6329150c8005c8b87b5a | 485 | py | Python | content/migrations/0004_auto_20170122_1738.py | josemlp91/django-landingcms | 9d9270204369e9663ff15eb0bd4c4093b3727c6c | [
"Apache-2.0"
] | null | null | null | content/migrations/0004_auto_20170122_1738.py | josemlp91/django-landingcms | 9d9270204369e9663ff15eb0bd4c4093b3727c6c | [
"Apache-2.0"
] | null | null | null | content/migrations/0004_auto_20170122_1738.py | josemlp91/django-landingcms | 9d9270204369e9663ff15eb0bd4c4093b3727c6c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-22 17:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0003_remove_imagecontent_form'),
]
operations = [
migrations.Alt... | 23.095238 | 73 | 0.626804 | 54 | 485 | 5.444444 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057851 | 0.251546 | 485 | 20 | 74 | 24.25 | 0.752066 | 0.140206 | 0 | 0 | 1 | 0 | 0.128019 | 0.070048 | 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 |
fc88399909b29d0426476cdbe03314f6be794fcd | 2,048 | py | Python | SBaaS_LIMS/lims_experimentor_query.py | dmccloskey/SBaaS_LIMS | 5dfd73689674953345d523178a67b8dda10e6d47 | [
"MIT"
] | null | null | null | SBaaS_LIMS/lims_experimentor_query.py | dmccloskey/SBaaS_LIMS | 5dfd73689674953345d523178a67b8dda10e6d47 | [
"MIT"
] | null | null | null | SBaaS_LIMS/lims_experimentor_query.py | dmccloskey/SBaaS_LIMS | 5dfd73689674953345d523178a67b8dda10e6d47 | [
"MIT"
] | null | null | null | from .lims_experimentor_postgresql_models import *
from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update
from SBaaS_base.sbaas_base_query_drop import sbaas_base_query_drop
from SBaaS_base.sbaas_base_query_initialize import sbaas_base_query_initialize
from SBaaS_base.sbaas_base_query_insert import sba... | 44.521739 | 95 | 0.715332 | 233 | 2,048 | 5.858369 | 0.193133 | 0.125275 | 0.123077 | 0.092308 | 0.512088 | 0.480586 | 0.250549 | 0.155311 | 0.155311 | 0 | 0 | 0.003106 | 0.213867 | 2,048 | 46 | 96 | 44.521739 | 0.844099 | 0.010742 | 0 | 0.243243 | 0 | 0 | 0.024798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.216216 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc8abf77b313136699ff2c828704839188a34861 | 380 | py | Python | app/grandchallenge/products/migrations/0008_projectairfiles_archive.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 7 | 2016-11-05T07:16:30.000Z | 2017-11-23T03:38:03.000Z | app/grandchallenge/products/migrations/0008_projectairfiles_archive.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 113 | 2015-05-26T09:27:59.000Z | 2018-03-21T10:45:56.000Z | app/grandchallenge/products/migrations/0008_projectairfiles_archive.py | kaczmarj/grand-challenge.org | 8dc8a2170e51072354f7e94f2a22578805a67b94 | [
"Apache-2.0"
] | 7 | 2015-07-16T20:11:22.000Z | 2017-06-06T02:41:24.000Z | # Generated by Django 3.1.13 on 2021-08-30 09:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("products", "0007_projectairfiles")]
operations = [
migrations.AddField(
model_name="projectairfiles",
name="archive",
... | 22.352941 | 57 | 0.634211 | 39 | 380 | 6.128205 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070671 | 0.255263 | 380 | 16 | 58 | 23.75 | 0.773852 | 0.121053 | 0 | 0 | 1 | 0 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc8c1f663961e549df94a2a5f3f0c6070c253fa6 | 446 | py | Python | design/migrations/0033_customerorderinfo_show_memo.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 1 | 2019-07-20T09:51:53.000Z | 2019-07-20T09:51:53.000Z | design/migrations/0033_customerorderinfo_show_memo.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 11 | 2019-07-26T02:23:52.000Z | 2022-03-11T23:41:09.000Z | design/migrations/0033_customerorderinfo_show_memo.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 1 | 2019-07-26T02:16:49.000Z | 2019-07-26T02:16:49.000Z | # Generated by Django 2.1.7 on 2019-10-13 16:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('design', '0032_auto_20191013_2116'),
]
operations = [
migrations.AddField(
model_name='customerorderinfo',
name='sho... | 23.473684 | 99 | 0.623318 | 52 | 446 | 5.211538 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10303 | 0.26009 | 446 | 18 | 100 | 24.777778 | 0.718182 | 0.100897 | 0 | 0 | 1 | 0 | 0.157895 | 0.057644 | 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 |
fc8cb2ea9688164333cb038511c507bc77407de5 | 288 | py | Python | axl/exercise0.py | Tes3awy/Collab-DevNet | 564cd6a68694590a2e80caa71689865086f27023 | [
"MIT"
] | 1 | 2021-07-01T09:32:23.000Z | 2021-07-01T09:32:23.000Z | axl/exercise0.py | Tes3awy/Collab-DevNet | 564cd6a68694590a2e80caa71689865086f27023 | [
"MIT"
] | null | null | null | axl/exercise0.py | Tes3awy/Collab-DevNet | 564cd6a68694590a2e80caa71689865086f27023 | [
"MIT"
] | null | null | null | # Get all users from the CUCM
from ciscoaxl import axl
cucm = "10.10.20.1"
username = "administrator"
password = "ciscopsdt"
version = "12.5"
ucm = axl(cucm=cucm, username=username, password=password, cucm_version=version)
ucm_users = ucm.get_users()
print(ucm_users)
print("Done")
| 16.941176 | 80 | 0.732639 | 43 | 288 | 4.813953 | 0.511628 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.138889 | 288 | 16 | 81 | 18 | 0.794355 | 0.09375 | 0 | 0 | 0 | 0 | 0.15444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fc901ad4369611d62d7c9daf9c29753f300bb0d1 | 375 | py | Python | vips_hash/backends/__init__.py | VIPSTARCOIN-electrum/vips-hash | 8084acbd80a15773950cfb89c2403a652583cc32 | [
"MIT"
] | null | null | null | vips_hash/backends/__init__.py | VIPSTARCOIN-electrum/vips-hash | 8084acbd80a15773950cfb89c2403a652583cc32 | [
"MIT"
] | null | null | null | vips_hash/backends/__init__.py | VIPSTARCOIN-electrum/vips-hash | 8084acbd80a15773950cfb89c2403a652583cc32 | [
"MIT"
] | null | null | null | '''
A collection of optional backends. You must manually select and
install the backend you want. If the backend is not installed,
then trying to import the module for that backend will cause
an :class:`ImportError`.
See :ref:`Choose a hashing backend` for more.
'''
SUPPORTED_BACKENDS = [
'pycryptodomex', # pref... | 26.785714 | 66 | 0.738667 | 54 | 375 | 5.111111 | 0.796296 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009772 | 0.181333 | 375 | 13 | 67 | 28.846154 | 0.889251 | 0.808 | 0 | 0 | 0 | 0 | 0.296875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fc93427e0634bbc72c0d75146f1a094945bbce1d | 1,040 | py | Python | tests/adaptors/ringinteractionadaptortestcase.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | tests/adaptors/ringinteractionadaptortestcase.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | tests/adaptors/ringinteractionadaptortestcase.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | from credoscript import adaptors, models
from tests import CredoAdaptorTestCase
class RingInteractionAdaptorTestCase(CredoAdaptorTestCase):
def setUp(self):
self.adaptor = adaptors.RingInteractionAdaptor()
self.expected_entity = models.RingInteraction
def test_fetch_by_ring_interaction... | 45.217391 | 79 | 0.715385 | 120 | 1,040 | 5.866667 | 0.333333 | 0.085227 | 0.056818 | 0.080966 | 0.433239 | 0.247159 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.203846 | 1,040 | 22 | 80 | 47.272727 | 0.847826 | 0.132692 | 0 | 0 | 0 | 0 | 0.094907 | 0.091435 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fca09b592c91a2df33fde20362ea177697cc1d48 | 630 | py | Python | part0/ros/hello_world.py | LuisBustillo/IIB_Project | c928ed781c6613c6e7f3b80ab59dd00328dd14c5 | [
"MIT"
] | null | null | null | part0/ros/hello_world.py | LuisBustillo/IIB_Project | c928ed781c6613c6e7f3b80ab59dd00328dd14c5 | [
"MIT"
] | null | null | null | part0/ros/hello_world.py | LuisBustillo/IIB_Project | c928ed781c6613c6e7f3b80ab59dd00328dd14c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import rospy
# Robot motion commands:
# http://docs.ros.org/api/geometry_msgs/html/msg/Twist.html
from geometry_msgs.msg import Twist
def run():
rospy.init_node('hello_world')
publ... | 21 | 62 | 0.728571 | 92 | 630 | 4.630435 | 0.630435 | 0.056338 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.161905 | 630 | 29 | 63 | 21.724138 | 0.795455 | 0.160317 | 0 | 0 | 0 | 0 | 0.051331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.263158 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fca82d998d8da2b27ee087cbdf22e7ee85ee56ef | 487 | py | Python | tools/telemetry/telemetry/page/actions/reload.py | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-01-25T10:18:18.000Z | 2021-01-23T15:29:56.000Z | tools/telemetry/telemetry/page/actions/reload.py | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/page/actions/reload.py | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:24:13.000Z | 2020-11-04T07:24:13.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page.actions import page_action
class ReloadAction(page_action.PageAction):
def __init__(self, attributes=None):
super(ReloadAction, se... | 34.785714 | 72 | 0.784394 | 61 | 487 | 6.098361 | 0.786885 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.13347 | 487 | 13 | 73 | 37.461538 | 0.872038 | 0.318275 | 0 | 0 | 0 | 0 | 0.073171 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
5d7fb4de781c051f91c7b8c7c6733b67146346e2 | 602 | py | Python | flask_ember/util/cache.py | fr3akout/flask_ember | f3b3e28011571b8b58888be4fda4f42af0d4015c | [
"BSD-3-Clause"
] | null | null | null | flask_ember/util/cache.py | fr3akout/flask_ember | f3b3e28011571b8b58888be4fda4f42af0d4015c | [
"BSD-3-Clause"
] | null | null | null | flask_ember/util/cache.py | fr3akout/flask_ember | f3b3e28011571b8b58888be4fda4f42af0d4015c | [
"BSD-3-Clause"
] | null | null | null | class Cache:
def __init__(self, function, limit=1000):
self.function = function
self.limit = limit
self.purge()
def get(self, key):
value = self.store.get(key)
if value is None:
value = self.function(key)
self.set(key, value)
return value
... | 23.153846 | 45 | 0.5299 | 75 | 602 | 4.146667 | 0.306667 | 0.102894 | 0.07717 | 0.122187 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015666 | 0.363787 | 602 | 25 | 46 | 24.08 | 0.796345 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0 | 0.047619 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d8049f07750d4ac77c43b0e3477f0855cdb330f | 1,267 | py | Python | visualizations/data_loading/data_entities/file_data.py | ga67vib/Algorithms-For-Stochastic-Games | c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45 | [
"MIT"
] | 1 | 2021-09-08T08:42:42.000Z | 2021-09-08T08:42:42.000Z | visualizations/data_loading/data_entities/file_data.py | ga67vib/Algorithms-For-Stochastic-Games | c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45 | [
"MIT"
] | null | null | null | visualizations/data_loading/data_entities/file_data.py | ga67vib/Algorithms-For-Stochastic-Games | c27f0ab7d57f4500d47d87ee0b5d19551cb2ba45 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Dict, List
@dataclass
class FileData:
"""
Data storage object for data derived from one type of file.
Consists of:
data : A Dict that stores to every key a list. An entry in the list should represent the data of for example the value of the key... | 36.2 | 176 | 0.682715 | 189 | 1,267 | 4.365079 | 0.396825 | 0.048485 | 0.060606 | 0.115152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241515 | 1,267 | 35 | 177 | 36.2 | 0.858481 | 0.366219 | 0 | 0 | 0 | 0 | 0.130435 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.588235 | 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 |
5d8410ffa8de1c42a993d781a6905f4628b4e960 | 4,195 | py | Python | gui/submit/fileinfo/common.py | plinecom/JobManager | ce2c85fa740d5dce2d582e694bb3adc9176101d7 | [
"MIT"
] | null | null | null | gui/submit/fileinfo/common.py | plinecom/JobManager | ce2c85fa740d5dce2d582e694bb3adc9176101d7 | [
"MIT"
] | null | null | null | gui/submit/fileinfo/common.py | plinecom/JobManager | ce2c85fa740d5dce2d582e694bb3adc9176101d7 | [
"MIT"
] | null | null | null | from PyQt4 import QtGui, QtCore
class CommonPanel(QtGui.QWidget):
def __init__(self, job_list, parent=None):
QtGui.QWidget.__init__(self, parent)
self._jobList= job_list
self.init_ui()
def init_ui(self):
height = 0
layout = QtGui.QGridLayout()
self.jobname_lab... | 38.136364 | 136 | 0.670322 | 526 | 4,195 | 5.055133 | 0.152091 | 0.06619 | 0.114329 | 0.110568 | 0.619406 | 0.585558 | 0.439639 | 0.239564 | 0.19481 | 0.151185 | 0 | 0.009595 | 0.205006 | 4,195 | 109 | 137 | 38.486239 | 0.787706 | 0.276996 | 0 | 0.137931 | 0 | 0 | 0.051512 | 0.026587 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017241 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5d851827ac373c26314317d72e6587e153cc0bd1 | 7,948 | py | Python | Splash/rhImages/bmp.py | hansenhahn/playton-2 | 27bbb3f70c19bc61f33d224da73d1000aa1503cf | [
"CC0-1.0"
] | 5 | 2016-02-09T00:07:20.000Z | 2021-08-30T14:42:58.000Z | Programas/rhImages/bmp.py | hansenhahn/death-note-ptbr | 84f6bfe17e5eb07c10b72c1f5b3a21b17de953bb | [
"CC0-1.0"
] | 12 | 2018-04-14T20:07:42.000Z | 2020-12-29T14:59:51.000Z | Splash/rhImages/bmp.py | hansenhahn/playton-2 | 27bbb3f70c19bc61f33d224da73d1000aa1503cf | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# images/bmp.py
# Copyright 2009-2010 Diego Hansen Hahn (aka DiegoHH) <diegohh90 [at] hotmail [dot] com>
# lazynds is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundati... | 31.919679 | 125 | 0.678535 | 1,189 | 7,948 | 4.449958 | 0.207738 | 0.063504 | 0.047628 | 0.06237 | 0.407106 | 0.363825 | 0.302022 | 0.259686 | 0.184086 | 0.178227 | 0 | 0.02251 | 0.172748 | 7,948 | 249 | 126 | 31.919679 | 0.782053 | 0.123301 | 0 | 0.248619 | 0 | 0.01105 | 0.092983 | 0 | 0 | 0 | 0.003487 | 0 | 0 | 0 | null | null | 0 | 0.022099 | 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 |
5d88373bc20ce7d659d6e8a4641ef7a94d308bfa | 9,666 | py | Python | PySARibbon/SAWidgets/SARibbonGalleryGroup.py | Bllose/SARibbon-pyqt5 | 98052f0a8862515eecbece2c681387c4655b0db5 | [
"MIT"
] | 3 | 2021-11-26T07:05:38.000Z | 2022-03-20T15:16:04.000Z | PySARibbon/SAWidgets/SARibbonGalleryGroup.py | Bllose/SARibbon-pyqt5 | 98052f0a8862515eecbece2c681387c4655b0db5 | [
"MIT"
] | null | null | null | PySARibbon/SAWidgets/SARibbonGalleryGroup.py | Bllose/SARibbon-pyqt5 | 98052f0a8862515eecbece2c681387c4655b0db5 | [
"MIT"
] | 2 | 2021-09-21T13:25:45.000Z | 2022-03-03T08:14:01.000Z | # -*- coding: utf-8 -*-
"""
@Module SARibbonGalleryGroup
@Author ROOT
@brief Gallery的组
组负责显示管理Gallery Item
"""
from typing import List, Union
from PyQt5.QtCore import Qt, QModelIndex, QSize, pyqtSignal, QAbstractListModel, QItemSelectionModel
from PyQt5.QtGui import QIcon, QPainter
from PyQt5.QtWidgets import ... | 32.22 | 101 | 0.624457 | 1,041 | 9,666 | 5.689721 | 0.189241 | 0.045585 | 0.033429 | 0.018234 | 0.276887 | 0.219652 | 0.14756 | 0.088806 | 0.057741 | 0.057741 | 0 | 0.006627 | 0.266294 | 9,666 | 299 | 102 | 32.327759 | 0.828539 | 0.038382 | 0 | 0.227273 | 0 | 0 | 0.002177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209091 | false | 0 | 0.018182 | 0.036364 | 0.422727 | 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 |
5d899d05385ac4e5d61ae0992e80df756172db75 | 420 | py | Python | proxies/luminatio.py | Itamai/twitch-viewer-bot | 4d6a01a3ae878d2f94e3cefcbcbb0f6a95087aa9 | [
"MIT"
] | 16 | 2020-06-20T16:48:38.000Z | 2021-10-11T23:46:25.000Z | proxies/luminatio.py | Itamai/twitch-viewer-bot | 4d6a01a3ae878d2f94e3cefcbcbb0f6a95087aa9 | [
"MIT"
] | 6 | 2020-06-25T01:16:18.000Z | 2021-01-16T19:38:07.000Z | proxies/luminatio.py | Itamai/twitch-viewer-bot | 4d6a01a3ae878d2f94e3cefcbcbb0f6a95087aa9 | [
"MIT"
] | 7 | 2020-06-20T17:34:33.000Z | 2021-01-22T10:07:35.000Z | from socket import gethostbyname
from random import randint
# proxy: https://luminati.io/
def get_luminati_session(username, password):
"""Returns a new sticky Luminati Proxy Session."""
port = 22225
ip = gethostbyname("zproxy.lum-superproxy.io")
session_id = randint(1000, 9999)
return (
... | 22.105263 | 78 | 0.67381 | 51 | 420 | 5.431373 | 0.627451 | 0.097473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.195238 | 420 | 18 | 79 | 23.333333 | 0.781065 | 0.17381 | 0 | 0 | 0 | 0 | 0.26393 | 0.070381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5d8ae0ec69355261d98330b47c7d0c17608268eb | 4,964 | py | Python | georiviere/main/migrations/0001_initial.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 7 | 2021-11-05T14:52:25.000Z | 2022-03-24T21:18:02.000Z | georiviere/main/migrations/0001_initial.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 57 | 2021-11-02T10:27:34.000Z | 2022-03-31T14:08:32.000Z | georiviere/main/migrations/0001_initial.py | georiviere/Georiviere-admin | 4ac532f84a7a8fef3e01384fad63e8e288d397c0 | [
"BSD-2-Clause"
] | 1 | 2021-12-05T14:55:42.000Z | 2021-12-05T14:55:42.000Z | # Generated by Django 3.1.4 on 2020-12-09 14:25
from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import paperclip.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('cont... | 53.956522 | 282 | 0.605359 | 507 | 4,964 | 5.749507 | 0.268245 | 0.083019 | 0.042882 | 0.039451 | 0.440137 | 0.399314 | 0.325214 | 0.287136 | 0.287136 | 0.255575 | 0 | 0.013204 | 0.252417 | 4,964 | 91 | 283 | 54.549451 | 0.772299 | 0.009065 | 0 | 0.416667 | 1 | 0 | 0.1928 | 0.01566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.059524 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d8c89f937c3eddcc5fd2d1a9997a018d37786e0 | 1,548 | py | Python | python/template/dayN.py | secworks/advent_of_code_2020 | b90e4e1d27c1e4b597a08cac8ff13e63686769f2 | [
"BSD-2-Clause"
] | null | null | null | python/template/dayN.py | secworks/advent_of_code_2020 | b90e4e1d27c1e4b597a08cac8ff13e63686769f2 | [
"BSD-2-Clause"
] | null | null | null | python/template/dayN.py | secworks/advent_of_code_2020 | b90e4e1d27c1e4b597a08cac8ff13e63686769f2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#=======================================================================
#
# dayN.py
# -------
# Solutions to Advent of Code 2020, day N.
#
#=======================================================================
import sys
#---------------------------------------------... | 25.8 | 72 | 0.244186 | 88 | 1,548 | 4.125 | 0.545455 | 0.143251 | 0.132231 | 0.088154 | 0.292011 | 0.292011 | 0.181818 | 0 | 0 | 0 | 0 | 0.012454 | 0.118217 | 1,548 | 59 | 73 | 26.237288 | 0.25348 | 0.594315 | 0 | 0.26087 | 0 | 0 | 0.205255 | 0.042693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.217391 | 0.347826 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d8f9a892463d7f2a6734297f2e7f4910ea3d619 | 1,328 | py | Python | preprocess_pydisco_occ_meshes.py | shamitlal/stanford-shapenet-renderer | 4a677d874347b4608d10b44536343d0e1f4c6493 | [
"MIT"
] | null | null | null | preprocess_pydisco_occ_meshes.py | shamitlal/stanford-shapenet-renderer | 4a677d874347b4608d10b44536343d0e1f4c6493 | [
"MIT"
] | null | null | null | preprocess_pydisco_occ_meshes.py | shamitlal/stanford-shapenet-renderer | 4a677d874347b4608d10b44536343d0e1f4c6493 | [
"MIT"
] | null | null | null | from __future__ import print_function
import math, sys, random, argparse, json, os, tempfile, pickle
import mathutils
import shutil
import subprocess
import os
import numpy as np
import time
# import pathos.pools as pp
import bpy
import ipdb
st = ipdb.set_trace
# blender --background --python preprocess_pydisco_occ_m... | 34.947368 | 232 | 0.761295 | 201 | 1,328 | 4.835821 | 0.512438 | 0.049383 | 0.040123 | 0.039095 | 0.113169 | 0.074074 | 0.074074 | 0 | 0 | 0 | 0 | 0.012898 | 0.124247 | 1,328 | 37 | 233 | 35.891892 | 0.822872 | 0.192771 | 0 | 0 | 0 | 0 | 0.156221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.392857 | 0 | 0.392857 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5d8fa7a0d44316f9c859eee389b8ec3e4001f263 | 717 | py | Python | py/py_0526_largest_prime_factors_of_consecutive_numbers.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0526_largest_prime_factors_of_consecutive_numbers.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0526_largest_prime_factors_of_consecutive_numbers.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 526: Largest prime factors of consecutive numbers
# https://projecteuler.net/problem=526
#
# Let f(n) be the largest prime factor of n. Let g(n) = f(n) + f(n+1) + f(n+2)
# + f(n+3) + f(n+4) + f(n+5) + f(n+6) + f(n+7) + f(n+8), the sum of the
# largest prime factor of each of ni... | 29.875 | 79 | 0.633194 | 135 | 717 | 3.303704 | 0.525926 | 0.044843 | 0.026906 | 0.09417 | 0.103139 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123894 | 0.211994 | 717 | 23 | 80 | 31.173913 | 0.661947 | 0.757322 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5d9267276eda709a61af979fd5d46a297d96dc35 | 5,880 | py | Python | ui/Ui_infowindow.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | ui/Ui_infowindow.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | 2 | 2015-06-12T09:28:29.000Z | 2015-06-12T09:34:16.000Z | ui/Ui_infowindow.py | eufarn7sp/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'infowindow.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_infoWindow(object):
def setupUi(self, infoWindow):
infoWind... | 46.666667 | 115 | 0.690816 | 662 | 5,880 | 6.018127 | 0.246224 | 0.045181 | 0.060743 | 0.042169 | 0.338353 | 0.331827 | 0.289659 | 0.273845 | 0.223143 | 0.223143 | 0 | 0.043158 | 0.192177 | 5,880 | 125 | 116 | 47.04 | 0.795579 | 0.030782 | 0 | 0.283186 | 1 | 0.026549 | 0.17185 | 0.031805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017699 | false | 0 | 0.00885 | 0 | 0.035398 | 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 |
5d93662d56141354cf952182013f3e60a27706f0 | 675 | py | Python | apps/question/migrations/0001_initial.py | mrtaalebi/sitigo | cce8b4f5299b58d7365789ead416d4568b443743 | [
"Apache-2.0"
] | null | null | null | apps/question/migrations/0001_initial.py | mrtaalebi/sitigo | cce8b4f5299b58d7365789ead416d4568b443743 | [
"Apache-2.0"
] | 8 | 2020-02-12T01:02:15.000Z | 2022-03-11T23:53:39.000Z | apps/question/migrations/0001_initial.py | mrtaalebi/sitigo | cce8b4f5299b58d7365789ead416d4568b443743 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-17 16:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FAQ',
fields=[
('id', models.AutoField(auto... | 28.125 | 125 | 0.568889 | 70 | 675 | 5.4 | 0.7 | 0.119048 | 0.095238 | 0.126984 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049383 | 0.28 | 675 | 23 | 126 | 29.347826 | 0.728395 | 0.066667 | 0 | 0 | 1 | 0 | 0.078025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d9f0d93f010bde4f6b2819f8f9eb8d54d8aebd5 | 2,421 | py | Python | class2/class2_ex3.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class2/class2_ex3.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | class2/class2_ex3.py | daveg999/Automation_class | d23652ecae56b790684971dda6e85a1d2367e22b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import telnetlib
import time
import socket
import sys
import getpass
TELNET_PORT = 23
TELNET_TIMEOUT = 6
class myTelnet(object):
def __init__(self, ipaddr, uname, pw):
self.ipaddr = ipaddr
self.uname = uname
self.pw = pw
try:
self.remote_conn =... | 25.21875 | 89 | 0.608426 | 305 | 2,421 | 4.64918 | 0.314754 | 0.06347 | 0.088858 | 0.040197 | 0.273625 | 0.249647 | 0.208745 | 0.157969 | 0.157969 | 0.157969 | 0 | 0.004032 | 0.282941 | 2,421 | 95 | 90 | 25.484211 | 0.812788 | 0.008261 | 0 | 0.169492 | 0 | 0 | 0.129832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033898 | 0.084746 | null | null | 0.152542 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5da66b2aac18ce9ce96f556a00282433f619fd9d | 1,759 | py | Python | app/books/migrations/0001_initial.py | ToJestKrzysio/BookManager | e12412f73b5799b8312e981a6baa8e618604a2fa | [
"MIT"
] | null | null | null | app/books/migrations/0001_initial.py | ToJestKrzysio/BookManager | e12412f73b5799b8312e981a6baa8e618604a2fa | [
"MIT"
] | null | null | null | app/books/migrations/0001_initial.py | ToJestKrzysio/BookManager | e12412f73b5799b8312e981a6baa8e618604a2fa | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-07 23:15
import books.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
... | 39.977273 | 128 | 0.600341 | 177 | 1,759 | 5.853107 | 0.372881 | 0.043436 | 0.069498 | 0.092664 | 0.388031 | 0.291506 | 0.291506 | 0.291506 | 0.291506 | 0.291506 | 0 | 0.021588 | 0.262649 | 1,759 | 43 | 129 | 40.906977 | 0.777178 | 0.025583 | 0 | 0.416667 | 1 | 0 | 0.070678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.194444 | 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 |
5dacf104ef2e3842244825586cdf6aba3175301b | 406 | py | Python | numba/tests/issues/test_issue_50.py | glycerine/numba | 4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635 | [
"BSD-2-Clause"
] | 1 | 2019-04-17T10:03:53.000Z | 2019-04-17T10:03:53.000Z | numba/tests/issues/test_issue_50.py | glycerine/numba | 4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635 | [
"BSD-2-Clause"
] | null | null | null | numba/tests/issues/test_issue_50.py | glycerine/numba | 4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635 | [
"BSD-2-Clause"
] | null | null | null | from numba import jit
from numpy import zeros
import unittest
@jit()
def test():
foo = zeros((1,))
foo[0] = 0
@jit()
def test2():
foo = [0]
foo[0] = 0
class TestIssue50(unittest.TestCase):
def test_1d_arr_setitem(self):
self.assertEquals(test(), None)
def test_list_setitem(self):
... | 16.24 | 39 | 0.630542 | 55 | 406 | 4.418182 | 0.490909 | 0.08642 | 0.041152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035144 | 0.229064 | 406 | 24 | 40 | 16.916667 | 0.741214 | 0 | 0 | 0.222222 | 0 | 0 | 0.019704 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.444444 | 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 |
5dad22a43c8dc15dd30564fafd5a66806c8e548d | 1,537 | py | Python | rad/rest/client/api/zfsmgr_1/zpool.py | guillermomolina/rad-rest-client | c22528764bdf9dddc5ff7d269d7465d34878a7e3 | [
"Apache-2.0"
] | 1 | 2021-09-17T13:40:13.000Z | 2021-09-17T13:40:13.000Z | rad/rest/client/api/zfsmgr_1/zpool.py | guillermomolina/rad-rest-client | c22528764bdf9dddc5ff7d269d7465d34878a7e3 | [
"Apache-2.0"
] | null | null | null | rad/rest/client/api/zfsmgr_1/zpool.py | guillermomolina/rad-rest-client | c22528764bdf9dddc5ff7d269d7465d34878a7e3 | [
"Apache-2.0"
] | 1 | 2021-09-17T16:26:32.000Z | 2021-09-17T16:26:32.000Z | # Copyright 2021, Guillermo Adrián Molina
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 38.425 | 93 | 0.735198 | 208 | 1,537 | 5.269231 | 0.485577 | 0.083029 | 0.030109 | 0.046533 | 0.067518 | 0.04927 | 0.04927 | 0 | 0 | 0 | 0 | 0.007987 | 0.185426 | 1,537 | 39 | 94 | 39.410256 | 0.867412 | 0.362394 | 0 | 0 | 0 | 0 | 0.019669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.526316 | 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 |
5dbd89b7673dab22417b3d0620bbd73432666c21 | 1,714 | py | Python | integration_tests/test_platform.py | storgashov/contrib-python-qubell-client | 9409c051ee4f4a7bef696dccc01edf3137affdf4 | [
"Apache-2.0"
] | null | null | null | integration_tests/test_platform.py | storgashov/contrib-python-qubell-client | 9409c051ee4f4a7bef696dccc01edf3137affdf4 | [
"Apache-2.0"
] | null | null | null | integration_tests/test_platform.py | storgashov/contrib-python-qubell-client | 9409c051ee4f4a7bef696dccc01edf3137affdf4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Qubell Inc., http://qubell.com
#
# 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 agr... | 38.954545 | 101 | 0.714702 | 223 | 1,714 | 5.376682 | 0.538117 | 0.050042 | 0.021685 | 0.026689 | 0.025021 | 0.025021 | 0.025021 | 0 | 0 | 0 | 0 | 0.005827 | 0.19895 | 1,714 | 43 | 102 | 39.860465 | 0.867444 | 0.330805 | 0 | 0 | 0 | 0 | 0.05212 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.083333 | false | 0.25 | 0.208333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5dbdc6470a911be94bd9e2d418b36f7b03af186e | 3,415 | py | Python | nodejs/bindings/subprocess.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T02:36:29.000Z | 2015-11-06T02:36:29.000Z | nodejs/bindings/subprocess.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | null | null | null | nodejs/bindings/subprocess.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | null | null | null | __cp__ = require('child_process')
class Popen:
def __init__(self, executeable=None, args=[], stdin='ignore', stdout='ignore', stderr='ignore', cwd=None, env=None, detached=False, callback=None, error_callback=None, returns_binary=False):
if stdin is None: stdin = 'pipe'
elif stdin == -1: stdin = 'pipe'
self._ec... | 28.697479 | 191 | 0.704539 | 474 | 3,415 | 4.833333 | 0.185654 | 0.078568 | 0.047141 | 0.034046 | 0.187691 | 0.13182 | 0.079441 | 0.079441 | 0.079441 | 0.079441 | 0 | 0.002839 | 0.174817 | 3,415 | 119 | 192 | 28.697479 | 0.810149 | 0.041581 | 0 | 0.25 | 0 | 0 | 0.071363 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 0 | null | null | 0 | 0 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5dc1b79af607831f7d2ec0160ba6ac97edbe88cb | 7,558 | py | Python | harmoni_dialogues/harmoni_bot/test/unittest_mock_lex.py | interaction-lab/HARMONI | 9c88019601a983a1739744919a95247a997d3bb1 | [
"MIT"
] | 7 | 2020-09-02T06:31:21.000Z | 2022-02-18T21:16:44.000Z | harmoni_dialogues/harmoni_bot/test/unittest_mock_lex.py | micolspitale93/HARMONI | cf6a13fb85e3efb4e421dbfd4555359c0a04acaa | [
"MIT"
] | 61 | 2020-05-15T16:46:32.000Z | 2021-07-28T17:44:49.000Z | harmoni_dialogues/harmoni_bot/test/unittest_mock_lex.py | micolspitale93/HARMONI | cf6a13fb85e3efb4e421dbfd4555359c0a04acaa | [
"MIT"
] | 3 | 2020-10-05T23:01:29.000Z | 2022-03-02T11:53:34.000Z | #!/usr/bin/env python3
PKG = 'test_harmoni_bot'
# Common Imports
import unittest, rospy, roslib, sys
#from unittest.mock import Mock, patch
# Specific Imports
from actionlib_msgs.msg import GoalStatus
from harmoni_common_msgs.msg import harmoniAction, harmoniFeedback, harmoniResult
from std_msgs.msg import String
imp... | 74.831683 | 1,340 | 0.679545 | 932 | 7,558 | 5.44206 | 0.241416 | 0.023659 | 0.041404 | 0.029574 | 0.654574 | 0.644913 | 0.644913 | 0.629535 | 0.596017 | 0.596017 | 0 | 0.059372 | 0.16208 | 7,558 | 100 | 1,341 | 75.58 | 0.741513 | 0.286319 | 0 | 0.126984 | 0 | 0 | 0.433278 | 0.162293 | 0 | 0 | 0 | 0.01 | 0.031746 | 1 | 0.095238 | false | 0 | 0.174603 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dc6184c1737ba80ea8688a7e011defdab9601dd | 436 | py | Python | HyperAPI/hdp_api/routes/authentication.py | WassimAbida/HyperAPI | 654a72922148d23158e3e4ea4b105f07626c5c36 | [
"BSD-3-Clause"
] | null | null | null | HyperAPI/hdp_api/routes/authentication.py | WassimAbida/HyperAPI | 654a72922148d23158e3e4ea4b105f07626c5c36 | [
"BSD-3-Clause"
] | null | null | null | HyperAPI/hdp_api/routes/authentication.py | WassimAbida/HyperAPI | 654a72922148d23158e3e4ea4b105f07626c5c36 | [
"BSD-3-Clause"
] | null | null | null | from HyperAPI.hdp_api.base.resource import Resource
from HyperAPI.hdp_api.base.route import Route
class Authentication(Resource):
name = "Authentication"
available_since = "1.0"
removed_since = None
class _login(Route):
name = "login"
httpMethod = Route.POST
path = "/auth/logi... | 22.947368 | 51 | 0.642202 | 50 | 436 | 5.48 | 0.46 | 0.087591 | 0.109489 | 0.131387 | 0.357664 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006192 | 0.259174 | 436 | 18 | 52 | 24.222222 | 0.842105 | 0 | 0 | 0.142857 | 0 | 0 | 0.116972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
5dc70b4ca64ca801fa356ff3fe6b69c3787c7d02 | 9,033 | py | Python | Scripts/predict.py | Alchemication/cvdl-for-home | d747a0bef4b4805d6c00e6dbd26fc294d1bde716 | [
"MIT"
] | 1 | 2020-05-27T07:35:35.000Z | 2020-05-27T07:35:35.000Z | Scripts/predict.py | Alchemication/cvdl-for-home | d747a0bef4b4805d6c00e6dbd26fc294d1bde716 | [
"MIT"
] | null | null | null | Scripts/predict.py | Alchemication/cvdl-for-home | d747a0bef4b4805d6c00e6dbd26fc294d1bde716 | [
"MIT"
] | null | null | null | # predict probabilities for counts, given a set of future features
# execute: python predict.py
# This file can be scheduled to run at any time.
# It will generate hourly predictions for the remaining hours in today and N-additional days:
# - current hour - if the job is running at 8:45, the first prediction will be fo... | 42.013953 | 117 | 0.653714 | 1,211 | 9,033 | 4.698596 | 0.294798 | 0.02109 | 0.023199 | 0.008436 | 0.095958 | 0.045694 | 0.031634 | 0.024956 | 0.024956 | 0 | 0 | 0.017089 | 0.235581 | 9,033 | 214 | 118 | 42.21028 | 0.806951 | 0.250194 | 0 | 0.024 | 1 | 0.008 | 0.250261 | 0.086554 | 0 | 0 | 0 | 0 | 0.008 | 1 | 0.024 | false | 0 | 0.072 | 0.016 | 0.112 | 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 |
5dc9eeddef857423d099336f93ed527fd858ae3e | 4,331 | py | Python | dask_cuda/local_cuda_cluster.py | rjzamora/dask-cuda | 06ea368bcca4c6a2cd54262c36b2c1bdbb8b7dc2 | [
"Apache-2.0"
] | null | null | null | dask_cuda/local_cuda_cluster.py | rjzamora/dask-cuda | 06ea368bcca4c6a2cd54262c36b2c1bdbb8b7dc2 | [
"Apache-2.0"
] | null | null | null | dask_cuda/local_cuda_cluster.py | rjzamora/dask-cuda | 06ea368bcca4c6a2cd54262c36b2c1bdbb8b7dc2 | [
"Apache-2.0"
] | null | null | null | import copy
import os
import dask
from dask.distributed import LocalCluster
from distributed.system import MEMORY_LIMIT
from distributed.utils import parse_bytes
from .device_host_file import DeviceHostFile
from .utils import (
CPUAffinity,
get_cpu_affinity,
get_device_total_memory,
get_n_gpus,
)
de... | 29.868966 | 81 | 0.588317 | 486 | 4,331 | 4.95679 | 0.279835 | 0.1511 | 0.1868 | 0.061021 | 0.191781 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0.009453 | 0.316093 | 4,331 | 144 | 82 | 30.076389 | 0.803849 | 0.116601 | 0 | 0.07767 | 0 | 0 | 0.088526 | 0.005616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029126 | false | 0 | 0.07767 | 0 | 0.135922 | 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 |
5dcb4ac6bd7ed8db9d7f920976fadfda7c10b5c4 | 2,453 | py | Python | setup.py | Piojo/qontract-reconcile | ce96e8e8c45b3f11dbb928e92b21266575abc27f | [
"Apache-2.0"
] | null | null | null | setup.py | Piojo/qontract-reconcile | ce96e8e8c45b3f11dbb928e92b21266575abc27f | [
"Apache-2.0"
] | null | null | null | setup.py | Piojo/qontract-reconcile | ce96e8e8c45b3f11dbb928e92b21266575abc27f | [
"Apache-2.0"
] | null | null | null | from setuptools import find_packages
from setuptools import setup
setup(
name="qontract-reconcile",
version="0.3.0",
license="Apache License 2.0",
author="Red Hat App-SRE Team",
author_email="sd-app-sre@redhat.com",
python_requires=">=3.9",
description="Collection of tools to reconcile se... | 30.283951 | 79 | 0.520995 | 361 | 2,453 | 3.501385 | 0.401662 | 0.014241 | 0.00712 | 0.007911 | 0.022152 | 0.022152 | 0 | 0 | 0 | 0 | 0 | 0.129192 | 0.258459 | 2,453 | 80 | 80 | 30.6625 | 0.565695 | 0 | 0 | 0.041667 | 0 | 0 | 0.580921 | 0.258459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027778 | 0 | 0.027778 | 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 |
5dcb7483821530798def67669703483173db3a2b | 2,436 | py | Python | com/binghe/hacker/tools/script/spy/mechainze_twitter_hobby.py | ffffff0x/python-hacker | a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79 | [
"Apache-2.0"
] | 52 | 2019-02-11T13:02:20.000Z | 2022-02-06T07:43:55.000Z | com/binghe/hacker/tools/script/spy/mechainze_twitter_hobby.py | sunshinelyz/python-hacker | a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79 | [
"Apache-2.0"
] | null | null | null | com/binghe/hacker/tools/script/spy/mechainze_twitter_hobby.py | sunshinelyz/python-hacker | a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79 | [
"Apache-2.0"
] | 15 | 2019-02-25T03:04:50.000Z | 2021-10-19T02:13:52.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: gbk -*-
# Date: 2019/2/21
# Created by 冰河
# Description 用正则表达式解析Twitter用户的兴趣爱好
# 用法: python mechainze_twitter_hobby.py -u <twitter handle>
# 博客 https://blog.csdn.net/l1028386804
from mechainze_browser import *
import json
import re
import urllib
i... | 28.325581 | 88 | 0.584154 | 275 | 2,436 | 5.065455 | 0.418182 | 0.032304 | 0.020101 | 0.024408 | 0.043073 | 0.043073 | 0 | 0 | 0 | 0 | 0 | 0.018384 | 0.263136 | 2,436 | 85 | 89 | 28.658824 | 0.75766 | 0.096059 | 0 | 0 | 0 | 0 | 0.155779 | 0.009593 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015385 | 0.092308 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dcf88d2f71a203e44e1dc9922632885dc6c819a | 11,454 | py | Python | alpha.py | troymyname/damagedetectionanalysis | e47dc740686922e8a5114596d49853a940d1a947 | [
"MIT"
] | 4 | 2017-12-28T15:28:54.000Z | 2020-12-07T18:22:27.000Z | alpha.py | troymyname/damagedetectionanalysis | e47dc740686922e8a5114596d49853a940d1a947 | [
"MIT"
] | null | null | null | alpha.py | troymyname/damagedetectionanalysis | e47dc740686922e8a5114596d49853a940d1a947 | [
"MIT"
] | 2 | 2019-05-02T18:59:16.000Z | 2021-07-21T06:30:31.000Z | # ----// Alpha // -----------------------------------------------------------------------
# ---------------------------------------------------------------------------------------
import cv2, glob, math, matplotlib.pyplot as plt, numpy as np, pandas as pd
import sys, seaborn as sns, time
# -----------------------------... | 37.677632 | 157 | 0.583115 | 1,372 | 11,454 | 4.728134 | 0.173469 | 0.042392 | 0.022198 | 0.033297 | 0.379837 | 0.331124 | 0.272545 | 0.272545 | 0.244489 | 0.244489 | 0 | 0.007243 | 0.120045 | 11,454 | 303 | 158 | 37.80198 | 0.636373 | 0.713986 | 0 | 0 | 0 | 0 | 0.075611 | 0.050837 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101449 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5dd42871e54b2344e4f5e640c4519a094b628151 | 4,527 | py | Python | lexical-analyzer/lexical.py | alvesfelipe/compiler-assignments | cebd3945d187186c8a14901e929f36ee6dec14c3 | [
"MIT"
] | null | null | null | lexical-analyzer/lexical.py | alvesfelipe/compiler-assignments | cebd3945d187186c8a14901e929f36ee6dec14c3 | [
"MIT"
] | null | null | null | lexical-analyzer/lexical.py | alvesfelipe/compiler-assignments | cebd3945d187186c8a14901e929f36ee6dec14c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#Lexical Analyzer implementation
__author__ = "Felipe Alves"
__email__ = "felipealves@lavid.ufpb.br"
import sys
import re
import os
#token lists
key_words = ['program', 'var', 'integer', 'real',
'boolean', 'procedure', 'begin', 'end',
'if', 'then', 'else', 'while', 'do', 'not']
delimiter... | 27.271084 | 95 | 0.667771 | 606 | 4,527 | 4.874587 | 0.30363 | 0.024374 | 0.015234 | 0.039607 | 0.200745 | 0.200745 | 0.200745 | 0.142857 | 0.126608 | 0.126608 | 0 | 0.008456 | 0.190192 | 4,527 | 166 | 96 | 27.271084 | 0.797327 | 0.290479 | 0 | 0.245283 | 0 | 0 | 0.086326 | 0.015123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028302 | 0.028302 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5dd5eee767b7f281b4c8baef54d34fb4137d9d6f | 641 | py | Python | pycircuit/circuit/constants_sympy.py | michaelnt/pycircuit | ef3110c1c3789c1e5f30c35e3f5dd15ed4bd349e | [
"BSD-3-Clause"
] | 25 | 2015-05-13T22:49:26.000Z | 2020-03-10T04:13:20.000Z | pycircuit/circuit/constants_sympy.py | michaelnt/pycircuit | ef3110c1c3789c1e5f30c35e3f5dd15ed4bd349e | [
"BSD-3-Clause"
] | 1 | 2016-11-09T13:09:31.000Z | 2016-11-09T13:09:31.000Z | pycircuit/circuit/constants_sympy.py | michaelnt/pycircuit | ef3110c1c3789c1e5f30c35e3f5dd15ed4bd349e | [
"BSD-3-Clause"
] | 9 | 2016-03-05T11:46:27.000Z | 2022-01-19T18:30:55.000Z | # -*- coding: latin-1 -*-
# Copyright (c) 2008 Pycircuit Development Team
# See LICENSE for details.
import sympy
from sympy import Symbol
"""
Physical constants
"""
## Symbolics for constants
kboltzmann=sympy.Symbol('k', real=True, positive=True) # Boltzmann's constant
eps0 = sympy.Symbol('eps0', real=True,... | 32.05 | 95 | 0.720749 | 79 | 641 | 5.848101 | 0.506329 | 0.119048 | 0.138528 | 0.17316 | 0.181818 | 0.181818 | 0.181818 | 0 | 0 | 0 | 0 | 0.018519 | 0.157566 | 641 | 19 | 96 | 33.736842 | 0.837037 | 0.368175 | 0 | 0 | 0 | 0 | 0.076503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dd68fbff20a61f5caeedd5b5d96cdd534e2ff09 | 2,627 | py | Python | captioning/models/__init__.py | HongkuanZhang/self-critical.pytorch | deccb8bf624ad6771193dfdfbe71bec958c7f715 | [
"MIT"
] | null | null | null | captioning/models/__init__.py | HongkuanZhang/self-critical.pytorch | deccb8bf624ad6771193dfdfbe71bec958c7f715 | [
"MIT"
] | null | null | null | captioning/models/__init__.py | HongkuanZhang/self-critical.pytorch | deccb8bf624ad6771193dfdfbe71bec958c7f715 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import copy
import numpy as np
import torch
from .ShowTellModel import ShowTellModel
from .FCModel import FCModel
from .AttModel import *
from .TransformerModel import TransformerModel
from .cachedT... | 34.565789 | 112 | 0.682147 | 304 | 2,627 | 5.769737 | 0.358553 | 0.143672 | 0.171038 | 0.162486 | 0.096921 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008408 | 0.230301 | 2,627 | 75 | 113 | 35.026667 | 0.85905 | 0.098592 | 0 | 0.067797 | 0 | 0 | 0.159101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.254237 | 0 | 0.288136 | 0.067797 | 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 |
5dd7165a6eace0017960f4e2af890de51fcfcea7 | 510 | py | Python | BAE/index.py | Xilzzerts/Huaxia_Graduation | cef1e45db9549a8a7d107a280f0ff31c7689703b | [
"Apache-2.0"
] | null | null | null | BAE/index.py | Xilzzerts/Huaxia_Graduation | cef1e45db9549a8a7d107a280f0ff31c7689703b | [
"Apache-2.0"
] | null | null | null | BAE/index.py | Xilzzerts/Huaxia_Graduation | cef1e45db9549a8a7d107a280f0ff31c7689703b | [
"Apache-2.0"
] | null | null | null | import tornado.wsgi
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Zirconi's TEST SERVER<br /><br />")
self.write("Usage: /MAGIC?num=[your id]&pwd=[your password]&server=[0 or 1]<br /><br /><br /><br /><br /><br />")
self.write("Wuhan University of technology Hua... | 36.428571 | 121 | 0.672549 | 66 | 510 | 5.19697 | 0.636364 | 0.069971 | 0.069971 | 0.069971 | 0.034985 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014019 | 0.160784 | 510 | 14 | 122 | 36.428571 | 0.787383 | 0 | 0 | 0 | 0 | 0.090909 | 0.409002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5dd76aabe545df10912942a20646a06e66eb3f9a | 926 | py | Python | begood_sites/management/commands/add_site.py | AGoodId/begood-sites | b5ca12856018c21d801a4da27320badd5ae52205 | [
"MIT"
] | null | null | null | begood_sites/management/commands/add_site.py | AGoodId/begood-sites | b5ca12856018c21d801a4da27320badd5ae52205 | [
"MIT"
] | null | null | null | begood_sites/management/commands/add_site.py | AGoodId/begood-sites | b5ca12856018c21d801a4da27320badd5ae52205 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.db import connection
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.contrib.sites.models import Site
class Command(BaseCommand):
args = '<name domain>'
help = 'Add a new site with the specified name and domain. Returns the... | 27.235294 | 93 | 0.678186 | 129 | 926 | 4.868217 | 0.457364 | 0.063694 | 0.052548 | 0.066879 | 0.130573 | 0.130573 | 0.130573 | 0.130573 | 0.130573 | 0 | 0 | 0.004127 | 0.214903 | 926 | 33 | 94 | 28.060606 | 0.859697 | 0.012959 | 0 | 0.083333 | 0 | 0 | 0.222832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5dddd2e65b5df292e475eb4581891007adfad776 | 329 | py | Python | tests/test_watcher.py | hiyongz/uiautomator2 | a6feafcf5c8d057ec70f2ec96f03221d970e44ac | [
"MIT"
] | 4,493 | 2017-09-18T17:20:59.000Z | 2022-03-31T08:16:01.000Z | tests/test_watcher.py | hiyongz/uiautomator2 | a6feafcf5c8d057ec70f2ec96f03221d970e44ac | [
"MIT"
] | 745 | 2017-10-19T15:05:01.000Z | 2022-03-25T06:19:20.000Z | tests/test_watcher.py | hiyongz/uiautomator2 | a6feafcf5c8d057ec70f2ec96f03221d970e44ac | [
"MIT"
] | 1,202 | 2017-09-28T02:01:59.000Z | 2022-03-31T02:14:54.000Z | # coding: utf-8
#
import uiautomator2 as u2
def test_watch_context(sess: u2.Device):
with sess.watch_context(builtin=True) as ctx:
ctx.when("App").click()
sess(text='Menu').click()
assert sess(text='Inflate from XML').wait()
def teardown_function(d: u2.Device):
print("Teard... | 19.352941 | 51 | 0.635258 | 46 | 329 | 4.456522 | 0.673913 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.218845 | 329 | 16 | 52 | 20.5625 | 0.77821 | 0.039514 | 0 | 0 | 0 | 0 | 0.099042 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5de4b8bff1f0e4e17287b2f7373f8832857ef2f8 | 7,784 | py | Python | pysnmp/Wellfleet-CCT-NAME-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Wellfleet-CCT-NAME-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Wellfleet-CCT-NAME-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 Wellfleet-CCT-NAME-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-CCT-NAME-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:32:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 131.932203 | 834 | 0.745375 | 898 | 7,784 | 6.461025 | 0.201559 | 0.008273 | 0.011375 | 0.015167 | 0.448121 | 0.359531 | 0.294898 | 0.283523 | 0.265943 | 0.242503 | 0 | 0.075477 | 0.084275 | 7,784 | 58 | 835 | 134.206897 | 0.738496 | 0.043422 | 0 | 0 | 0 | 0 | 0.159876 | 0.017749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137255 | 0 | 0.137255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5deb70afcae5cd35c04f281dda758dfe628c938a | 5,809 | py | Python | app.py | uhembenelson/kwatcoinapi | f3a7b3fdfccdc88f4a79a0f1f67d886c26027e39 | [
"MIT"
] | null | null | null | app.py | uhembenelson/kwatcoinapi | f3a7b3fdfccdc88f4a79a0f1f67d886c26027e39 | [
"MIT"
] | null | null | null | app.py | uhembenelson/kwatcoinapi | f3a7b3fdfccdc88f4a79a0f1f67d886c26027e39 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#import flask dependencies for web GUI
from flask import Flask, render_template, flash, redirect, url_for, session, request, logging
from passlib.hash import sha256_crypt
from flask_mysqldb import MySQL
from functools import wraps
#import other functions and classes
from sqlh... | 30.255208 | 126 | 0.644689 | 710 | 5,809 | 5.174648 | 0.242254 | 0.02994 | 0.038106 | 0.048993 | 0.291236 | 0.271094 | 0.196516 | 0.150789 | 0.121938 | 0.071312 | 0 | 0.003541 | 0.222241 | 5,809 | 191 | 127 | 30.413613 | 0.80965 | 0.187984 | 0 | 0.293103 | 0 | 0 | 0.186484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094828 | false | 0.103448 | 0.060345 | 0.017241 | 0.310345 | 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 |
5df61a4d53674129b9686d2706bd55019bb1d76a | 419 | py | Python | codes/web_ex2/sql.py | halitalptekin/sdu-workshop | 5baa1b7f7725c1979e7f19fee6fa0c11afc32ce5 | [
"MIT"
] | 4 | 2015-01-21T13:57:41.000Z | 2017-10-21T17:35:46.000Z | codes/web_ex2/sql.py | halit/sdu-workshop | 5baa1b7f7725c1979e7f19fee6fa0c11afc32ce5 | [
"MIT"
] | null | null | null | codes/web_ex2/sql.py | halit/sdu-workshop | 5baa1b7f7725c1979e7f19fee6fa0c11afc32ce5 | [
"MIT"
] | 2 | 2015-08-24T10:48:59.000Z | 2016-09-13T22:43:49.000Z | from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import create_engine
Base = declarative_base()
class Person(Base):
__tablename__ = 'person'
id = Column(Integer, primary_key=True)
name = Column(String(250), nullable=False)
engine = cr... | 26.1875 | 55 | 0.756563 | 52 | 419 | 5.75 | 0.538462 | 0.140468 | 0.133779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00831 | 0.138425 | 419 | 16 | 56 | 26.1875 | 0.819945 | 0 | 0 | 0 | 0 | 0 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.636364 | 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 |
5df63e4ce120ba2ff134eb380ffa95e399b042b3 | 4,697 | py | Python | Deep_CNN_Project/make_dataset.py | yjun1806/find_receipe | 8489fe8211de0fae96b9298fa4a435883cbd3da7 | [
"MIT"
] | null | null | null | Deep_CNN_Project/make_dataset.py | yjun1806/find_receipe | 8489fe8211de0fae96b9298fa4a435883cbd3da7 | [
"MIT"
] | null | null | null | Deep_CNN_Project/make_dataset.py | yjun1806/find_receipe | 8489fe8211de0fae96b9298fa4a435883cbd3da7 | [
"MIT"
] | null | null | null | import os
import shutil
import sys
K = 5
file_dir = os.path.dirname(__file__)
dataset_dir = file_dir + '/ingredient_data_TR9_TE1/'
train_set_dir = dataset_dir + 'train/'
test_set_dir = dataset_dir + 'test'
k_fold_dir_name = str(K) + '_fold_cross_validation_dataset'
categories = []
# k_fold_cross_validation_datase... | 39.470588 | 187 | 0.570364 | 758 | 4,697 | 3.408971 | 0.130607 | 0.05805 | 0.080495 | 0.065015 | 0.747678 | 0.681115 | 0.672601 | 0.64822 | 0.620356 | 0.620356 | 0 | 0.010104 | 0.262508 | 4,697 | 119 | 188 | 39.470588 | 0.700924 | 0.316585 | 0 | 0.272727 | 0 | 0.018182 | 0.112023 | 0.039129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054545 | 0 | 0.054545 | 0.072727 | 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 |
5df712cdec1b99d491ed4850ce5a973037a7f6e6 | 462 | py | Python | 0167_TwoSumII-InputArrayIsSorted.py | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0167_TwoSumII-InputArrayIsSorted.py | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0167_TwoSumII-InputArrayIsSorted.py | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | 1 | 2020-03-18T05:23:40.000Z | 2020-03-18T05:23:40.000Z | class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
if len(numbers) <= 1:
return [None, None]
idx2 = len(numbers)-1
idx1 = 0
while idx1 < idx2:
if numbers[idx1] + numbers[idx2] == target:
return [id... | 28.875 | 67 | 0.450216 | 50 | 462 | 4.16 | 0.4 | 0.067308 | 0.105769 | 0.211538 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072243 | 0.430736 | 462 | 15 | 68 | 30.8 | 0.718631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 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 |
5dfb120148ad0a2b7f55d905965699b63d4fc9ab | 857 | py | Python | apps/api/filters/api_key.py | Praetorian-Defence/praetorian-api | 181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4 | [
"MIT"
] | 2 | 2020-06-29T15:12:04.000Z | 2020-10-13T14:18:21.000Z | apps/api/filters/api_key.py | Praetorian-Defence/praetorian-api | 181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4 | [
"MIT"
] | 10 | 2021-01-04T11:33:38.000Z | 2021-05-07T10:23:48.000Z | apps/api/filters/api_key.py | zurek11/praetorian-api | 181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4 | [
"MIT"
] | null | null | null | import django_filters
from django.db.models import Q
from django_enum_choices.filters import EnumChoiceFilter
from apps.core.models import ApiKey
class ApiKeyFilter(django_filters.FilterSet):
name = django_filters.CharFilter(lookup_expr='icontains')
type = EnumChoiceFilter(ApiKey.ApiKeyType)
key = django... | 30.607143 | 63 | 0.70245 | 96 | 857 | 6.03125 | 0.416667 | 0.157168 | 0.158895 | 0.150259 | 0.217617 | 0.217617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207701 | 857 | 27 | 64 | 31.740741 | 0.852725 | 0 | 0 | 0 | 0 | 0 | 0.045508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0.045455 | 0.636364 | 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 |
5dfd68d430d9dc099f6ba5e483533b447be84133 | 243,258 | py | Python | pydantic_quantlib/__init__.py | gecBurton/pydantic-quantlib | 8a45c606eb64fc63f7587659d1401390ea0ac4e3 | [
"MIT"
] | 5 | 2021-01-04T11:04:05.000Z | 2021-09-28T13:23:45.000Z | pydantic_quantlib/__init__.py | gecBurton/pydantic-quantlib | 8a45c606eb64fc63f7587659d1401390ea0ac4e3 | [
"MIT"
] | null | null | null | pydantic_quantlib/__init__.py | gecBurton/pydantic-quantlib | 8a45c606eb64fc63f7587659d1401390ea0ac4e3 | [
"MIT"
] | 1 | 2022-01-15T18:20:19.000Z | 2022-01-15T18:20:19.000Z | from __future__ import annotations
__version__ = "0.3.0"
from enum import Enum
from typing import List, Literal, Optional, Union
import QuantLib as ql
from pydantic import Field, conint
from .core import BaseModel
class Frequency(Enum):
Annual = ql.Annual
class Months(Enum):
January = 1
February = ... | 28.811797 | 233 | 0.757287 | 19,442 | 243,258 | 9.382471 | 0.103127 | 0.085087 | 0.105107 | 0.145148 | 0.465809 | 0.268472 | 0.254306 | 0.203022 | 0.185978 | 0.145707 | 0 | 0.007687 | 0.156616 | 243,258 | 8,442 | 234 | 28.81521 | 0.881444 | 0.001311 | 0 | 0.412878 | 0 | 0 | 0.125859 | 0.059919 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000931 | 0 | 0.752521 | 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 |
b901031bd027183f096435e1372ae9185be90a1d | 7,469 | py | Python | portfolio/2013_OrSys/detector.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/2013_OrSys/detector.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/2013_OrSys/detector.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | 5 | 2016-03-22T07:40:46.000Z | 2021-05-30T16:12:21.000Z | import MySQLdb
import logging
import datetime
from settings import db_password, db_name, MdbUser, MdbPassword, Mdb, MdbIP
from functions import getPhoneID, getFaxID, getAddressID
logging.basicConfig(filename='logs/detector.log', level=logging.DEBUG)
# logger = logging.getLogger(__name__)
def check_new_orders(lastOi... | 35.736842 | 79 | 0.639845 | 923 | 7,469 | 5.024919 | 0.206934 | 0.040103 | 0.033635 | 0.024148 | 0.416128 | 0.388745 | 0.34627 | 0.336783 | 0.313497 | 0.224235 | 0 | 0.001917 | 0.231624 | 7,469 | 208 | 80 | 35.908654 | 0.806238 | 0.067881 | 0 | 0.361963 | 0 | 0 | 0.079452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04908 | false | 0.055215 | 0.030675 | 0 | 0.128834 | 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 |
f8d9b4c43da51ae5e364fd9aced94b487d062d80 | 1,550 | py | Python | und_microservice/helper/url.py | und-tech/und-python-microservice | cc3b3aafed84f79b2193b89dd0d47ebaacf110f0 | [
"MIT"
] | null | null | null | und_microservice/helper/url.py | und-tech/und-python-microservice | cc3b3aafed84f79b2193b89dd0d47ebaacf110f0 | [
"MIT"
] | null | null | null | und_microservice/helper/url.py | und-tech/und-python-microservice | cc3b3aafed84f79b2193b89dd0d47ebaacf110f0 | [
"MIT"
] | 1 | 2018-09-19T15:13:48.000Z | 2018-09-19T15:13:48.000Z | # -*- coding: utf-8 -*-
"""Modulo helpers.url"""
def split_query_string(items):
"""dividir un query string"""
params = {'filter': {}, 'fields': [], 'pagination': {}, 'sort': {}, 'filter_in': {}}
for key, value in items:
sub_keys = key.split('.')
if 'fields' in sub_keys:
params['... | 34.444444 | 94 | 0.562581 | 177 | 1,550 | 4.80791 | 0.316384 | 0.206816 | 0.098707 | 0.051704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008688 | 0.257419 | 1,550 | 44 | 95 | 35.227273 | 0.730669 | 0.082581 | 0 | 0 | 0 | 0 | 0.169165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.03125 | 0 | 0 | 0.15625 | 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 |
f8e0767a968979d354cb660720e3c71a880d4351 | 3,585 | py | Python | tilapia/lib/hardware/manager.py | huazhouwang/python_multichain_wallet | 52e0acdc2984c08990cb36433ef17a414fbe8312 | [
"MIT"
] | 2 | 2021-09-23T13:47:08.000Z | 2021-09-24T02:39:14.000Z | tilapia/lib/hardware/manager.py | huazhouwang/tilapia | 52e0acdc2984c08990cb36433ef17a414fbe8312 | [
"MIT"
] | null | null | null | tilapia/lib/hardware/manager.py | huazhouwang/tilapia | 52e0acdc2984c08990cb36433ef17a414fbe8312 | [
"MIT"
] | null | null | null | import logging
import os
import time
from typing import Any, Dict, Tuple
from trezorlib import transport as trezor_transport
from trezorlib.transport import bridge as trezor_bridge
from tilapia.lib.conf import settings
from tilapia.lib.hardware import exceptions, proxy
from tilapia.lib.hardware.callbacks import helpe... | 33.820755 | 108 | 0.739191 | 473 | 3,585 | 5.334038 | 0.245243 | 0.099881 | 0.128419 | 0.072929 | 0.244154 | 0.167261 | 0.110186 | 0.095521 | 0.045977 | 0.045977 | 0 | 0.002018 | 0.170711 | 3,585 | 105 | 109 | 34.142857 | 0.84662 | 0 | 0 | 0.140845 | 0 | 0 | 0.046862 | 0.006137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169014 | false | 0 | 0.15493 | 0.112676 | 0.492958 | 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 |
f8e2acc3018a2aa3abae2037d109eccd0a03ff63 | 557 | py | Python | 04_introduccion-al-computo-con-python/modulo_II/clase01-aproximacion.py | Aibique-Forks/articicial-inteligence-and-data-science | fbdc866e4e46060cbde5b887806bdfeac645838e | [
"MIT"
] | 30 | 2020-06-19T16:21:04.000Z | 2022-02-19T01:48:39.000Z | 04_introduccion-al-computo-con-python/modulo_II/clase01-aproximacion.py | Aibique-Forks/articicial-inteligence-and-data-science | fbdc866e4e46060cbde5b887806bdfeac645838e | [
"MIT"
] | 87 | 2021-02-12T04:42:13.000Z | 2021-09-20T04:25:29.000Z | 04_introduccion-al-computo-con-python/modulo_II/clase01-aproximacion.py | Aibique-Forks/articicial-inteligence-and-data-science | fbdc866e4e46060cbde5b887806bdfeac645838e | [
"MIT"
] | 11 | 2020-08-13T04:04:01.000Z | 2022-01-20T20:10:43.000Z | """
Tema: Algoritmo de aproximacion.
Curso: Pensamiento computacional.
Plataforma: Platzi.
Profesor: David Aroesti.
Alumno: @edinsonrequena.
"""
objetivo = int(input('Escoge un numero: '))
epsilon = 0.0001
paso = epsilon**2
respuesta = 0.0
while abs(respuesta**2 - objetivo) >= epsilon and respuesta <= objetivo:
... | 23.208333 | 72 | 0.70377 | 71 | 557 | 5.521127 | 0.577465 | 0.091837 | 0.09949 | 0.160714 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023555 | 0.16158 | 557 | 23 | 73 | 24.217391 | 0.815846 | 0.244165 | 0 | 0 | 0 | 0 | 0.253041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.272727 | 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 |
f8ed159cd2932f483765c0fb59faa46438cc6305 | 623 | py | Python | WebFrameDocs/src/demo/flask-demo/apps/__init__.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | 1 | 2022-02-23T13:42:01.000Z | 2022-02-23T13:42:01.000Z | WebFrameDocs/src/demo/flask-demo/apps/__init__.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | null | null | null | WebFrameDocs/src/demo/flask-demo/apps/__init__.py | Bean-jun/LearnGuide | 30a8567b222d18b15d3e9027a435b5bfe640a046 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from conf.settings import ConfigMap
# 创建数据库db
db = SQLAlchemy()
def create_app(config):
'''
工厂模式创建app
@config: 'develop': 开发环境, 'product': 生产环境, 'test': 测试环境
'''
app = Flask(__name__)
# 加载配置文件
app.config.from_object(Confi... | 17.8 | 63 | 0.693419 | 78 | 623 | 5.320513 | 0.525641 | 0.086747 | 0.086747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002033 | 0.210273 | 623 | 34 | 64 | 18.323529 | 0.841463 | 0.173355 | 0 | 0 | 0 | 0 | 0.014257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f8eedb7bdc1cfebbbb79c47c8985b3a16e6f0194 | 2,543 | py | Python | auth0/v3/authentication/passwordless.py | mdornseif/auth0-python | e87afb3754a1a10fef2c9197df1e3a7681c9eb61 | [
"MIT"
] | null | null | null | auth0/v3/authentication/passwordless.py | mdornseif/auth0-python | e87afb3754a1a10fef2c9197df1e3a7681c9eb61 | [
"MIT"
] | null | null | null | auth0/v3/authentication/passwordless.py | mdornseif/auth0-python | e87afb3754a1a10fef2c9197df1e3a7681c9eb61 | [
"MIT"
] | null | null | null | from .base import AuthenticationBase
class Passwordless(AuthenticationBase):
"""Passwordless connections endpoints.
Args:
domain (str): Your auth0 domain (e.g: username.auth0.com)
"""
def __init__(self, domain):
self.domain = domain
def email(self, client_id, email, send='link'... | 31.395062 | 79 | 0.53952 | 266 | 2,543 | 5.056391 | 0.357143 | 0.05948 | 0.026766 | 0.042379 | 0.330855 | 0.257249 | 0.257249 | 0.148699 | 0.148699 | 0.114498 | 0 | 0.00121 | 0.34998 | 2,543 | 80 | 80 | 31.7875 | 0.812462 | 0.370035 | 0 | 0.410256 | 0 | 0 | 0.213693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.128205 | 0.025641 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f8fbb8922d682acbf3d6e4fda60e9a8b377d4208 | 1,340 | py | Python | TASSELpy/test/net/maizegenetics/taxa/TaxonTest.py | er432/TASSELpy | 2273d2252786679e023d1279f0c717a29ddd6d35 | [
"BSD-3-Clause"
] | 1 | 2015-11-30T21:54:19.000Z | 2015-11-30T21:54:19.000Z | TASSELpy/test/net/maizegenetics/taxa/TaxonTest.py | er432/TASSELpy | 2273d2252786679e023d1279f0c717a29ddd6d35 | [
"BSD-3-Clause"
] | null | null | null | TASSELpy/test/net/maizegenetics/taxa/TaxonTest.py | er432/TASSELpy | 2273d2252786679e023d1279f0c717a29ddd6d35 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import javabridge
from TASSELpy.TASSELbridge import TASSELbridge
try:
try:
javabridge.get_env()
except AttributeError:
print("AttributeError: start bridge")
TASSELbridge.start()
except AssertionError:
print("AssertionError: start bridge")
TASSELbridge... | 26.8 | 67 | 0.679104 | 139 | 1,340 | 6.381295 | 0.431655 | 0.040586 | 0.05186 | 0.063134 | 0.076663 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000958 | 0.220896 | 1,340 | 49 | 68 | 27.346939 | 0.848659 | 0.006716 | 0 | 0.162162 | 0 | 0 | 0.164479 | 0.040927 | 0 | 0 | 0 | 0 | 0.135135 | 0 | null | null | 0 | 0.189189 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5d00ab707712afe0336eb653c6447a8013dbd4fd | 3,343 | py | Python | mrtarget/common/safercast.py | hammer/data_pipeline | c8b8d98b3f25da5dfa5dc3b39296c3d9adf2a0d1 | [
"Apache-2.0"
] | null | null | null | mrtarget/common/safercast.py | hammer/data_pipeline | c8b8d98b3f25da5dfa5dc3b39296c3d9adf2a0d1 | [
"Apache-2.0"
] | null | null | null | mrtarget/common/safercast.py | hammer/data_pipeline | c8b8d98b3f25da5dfa5dc3b39296c3d9adf2a0d1 | [
"Apache-2.0"
] | null | null | null | import logging
from distutils.util import strtobool
class SaferCast(object):
"""
SaferCast represents a customised cast function with an optional way to bypass an exception
by using a fallback value.
This base class wraps the generalisation and common functions.
"""
def _catch_with_fallback(s... | 37.988636 | 116 | 0.64822 | 446 | 3,343 | 4.699552 | 0.311659 | 0.108779 | 0.030057 | 0.032443 | 0.12166 | 0.048664 | 0.035305 | 0 | 0 | 0 | 0 | 0.000829 | 0.278193 | 3,343 | 87 | 117 | 38.425287 | 0.867799 | 0.426862 | 0 | 0.128205 | 0 | 0 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.051282 | 0.051282 | 0.025641 | 0.435897 | 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 |
5d047dac8114fa9c498bf5034e132aead5884f65 | 37,845 | py | Python | IPython/parallel/client/view.py | dlsun/ipython | 38df12df8589c6da3b9398c7c0a03cea25fdce66 | [
"BSD-3-Clause-Clear"
] | 1 | 2018-09-24T13:45:40.000Z | 2018-09-24T13:45:40.000Z | IPython/parallel/client/view.py | dlsun/ipython | 38df12df8589c6da3b9398c7c0a03cea25fdce66 | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/parallel/client/view.py | dlsun/ipython | 38df12df8589c6da3b9398c7c0a03cea25fdce66 | [
"BSD-3-Clause-Clear"
] | null | null | null | """Views of remote engines.
Authors:
* Min RK
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2010-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this softwa... | 34.279891 | 111 | 0.569719 | 4,431 | 37,845 | 4.779734 | 0.138118 | 0.011332 | 0.008499 | 0.011663 | 0.371547 | 0.334529 | 0.302989 | 0.277917 | 0.265074 | 0.246423 | 0 | 0.001761 | 0.309816 | 37,845 | 1,103 | 112 | 34.31097 | 0.809074 | 0.063892 | 0 | 0.372093 | 0 | 0 | 0.053968 | 0.001081 | 0 | 0 | 0 | 0.000907 | 0.006342 | 0 | null | null | 0.012685 | 0.07611 | null | null | 0.006342 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5d05b3bc42d52778cadff20707e4bac7fc828327 | 6,017 | py | Python | eulxml/xmlmap/teimap.py | dannyroberts/eulxml | 0e8129cf78499c32b2e3dedeff72ae72a6a5713e | [
"Apache-2.0"
] | null | null | null | eulxml/xmlmap/teimap.py | dannyroberts/eulxml | 0e8129cf78499c32b2e3dedeff72ae72a6a5713e | [
"Apache-2.0"
] | null | null | null | eulxml/xmlmap/teimap.py | dannyroberts/eulxml | 0e8129cf78499c32b2e3dedeff72ae72a6a5713e | [
"Apache-2.0"
] | null | null | null | # file eulxml/xmlmap/teimap.py
#
# Copyright 2010,2011 Emory University Libraries
#
# 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... | 43.601449 | 114 | 0.691541 | 744 | 6,017 | 5.555108 | 0.305108 | 0.131624 | 0.101621 | 0.040648 | 0.353012 | 0.220663 | 0.146625 | 0.099444 | 0.06315 | 0 | 0 | 0.003662 | 0.182982 | 6,017 | 137 | 115 | 43.919708 | 0.837063 | 0.234502 | 0 | 0.090909 | 0 | 0.034091 | 0.259011 | 0.14484 | 0 | 0 | 0 | 0.007299 | 0 | 1 | 0.011364 | false | 0 | 0.011364 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
5d0768883e066272c815c702232aedde1b88d7b4 | 9,265 | py | Python | pyfiscal/generate.py | ThomGonzalez/generar-CURP-RFC | 551bbdb1109132b71e679ec9b0050fa8cc164295 | [
"MIT"
] | 2 | 2015-12-30T14:54:42.000Z | 2016-03-22T20:16:36.000Z | pyfiscal/generate.py | ThomGonzalez/generar-CURP-RFC | 551bbdb1109132b71e679ec9b0050fa8cc164295 | [
"MIT"
] | 1 | 2016-03-22T20:51:08.000Z | 2016-03-22T20:51:08.000Z | pyfiscal/generate.py | ThomGonzalez/generar-CURP-RFC | 551bbdb1109132b71e679ec9b0050fa8cc164295 | [
"MIT"
] | 4 | 2016-10-30T19:44:32.000Z | 2017-06-02T03:41:07.000Z | # -*- coding: utf-8 -*-
import unicodedata
from .base import BaseGenerator
class GenerateRFC(BaseGenerator):
key_value = 'rfc'
DATA_REQUIRED = ('complete_name', 'last_name', 'mother_last_name', 'birth_date')
partial_data = None
def __init__(self, **kwargs):
self.complete_name = kwargs.get('complete_name')
s... | 28.684211 | 114 | 0.589207 | 1,465 | 9,265 | 3.617065 | 0.223208 | 0.045292 | 0.03963 | 0.023778 | 0.26873 | 0.241744 | 0.228156 | 0.204944 | 0.165692 | 0.165692 | 0 | 0.071546 | 0.209498 | 9,265 | 322 | 115 | 28.773292 | 0.651966 | 0.20626 | 0 | 0.171806 | 1 | 0 | 0.088138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07489 | false | 0 | 0.008811 | 0.013216 | 0.207048 | 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 |
5d0bca4ce237c6d8bb77156db3216130f8235c5d | 873 | py | Python | django_dicom/migrations/0010_alter_series_sequence_type.py | TheLabbingProject/django_dicom | ef064427b9eefe3f6787082be2a709a6efacc6e4 | [
"Apache-2.0"
] | 4 | 2020-06-16T22:18:39.000Z | 2021-07-19T17:53:12.000Z | django_dicom/migrations/0010_alter_series_sequence_type.py | TheLabbingProject/django_dicom | ef064427b9eefe3f6787082be2a709a6efacc6e4 | [
"Apache-2.0"
] | 49 | 2019-09-04T11:36:00.000Z | 2022-03-20T12:33:04.000Z | django_dicom/migrations/0010_alter_series_sequence_type.py | TheLabbingProject/django_dicom | ef064427b9eefe3f6787082be2a709a6efacc6e4 | [
"Apache-2.0"
] | 2 | 2019-12-16T12:59:43.000Z | 2020-05-22T12:41:17.000Z | # Generated by Django 3.2.6 on 2021-11-23 17:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_dicom', '0009_alter_series_sequence_type'),
]
operations = [
migrations.AlterField(
model_name='series',
name... | 45.947368 | 517 | 0.60252 | 96 | 873 | 5.322917 | 0.635417 | 0.046967 | 0.050881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031856 | 0.172967 | 873 | 18 | 518 | 48.5 | 0.6759 | 0.051546 | 0 | 0 | 1 | 0 | 0.391041 | 0.03753 | 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 |
5d116d8454aa1c13d523fdd21c17e1bf1a1eaa69 | 1,997 | py | Python | era/apps/user/models.py | doctorzeb8/django-era | 6fd433ef6081c5be295df22bcea70dc2642baaa4 | [
"MIT"
] | 1 | 2015-10-22T04:03:28.000Z | 2015-10-22T04:03:28.000Z | era/apps/user/models.py | doctorzeb8/django-era | 6fd433ef6081c5be295df22bcea70dc2642baaa4 | [
"MIT"
] | 3 | 2020-02-11T21:30:20.000Z | 2021-06-10T17:24:30.000Z | era/apps/user/models.py | doctorzeb8/django-era | 6fd433ef6081c5be295df22bcea70dc2642baaa4 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.auth.hashers import get_hasher
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.core.validators import RegexValidator
from django.db import models
from era import random_str
from era.utils.translation import _, verbose_choices
from... | 33.847458 | 87 | 0.702053 | 238 | 1,997 | 5.680672 | 0.390756 | 0.065089 | 0.039941 | 0.053254 | 0.056213 | 0.056213 | 0.056213 | 0 | 0 | 0 | 0 | 0.008679 | 0.192288 | 1,997 | 58 | 88 | 34.431034 | 0.82951 | 0 | 0 | 0.042553 | 0 | 0 | 0.036555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.170213 | 0.085106 | 0.680851 | 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 |
5d1286cd7042db1433fda7671c0184f2c34635fc | 7,238 | py | Python | SSIM_PIL/_gpu_strategy.py | mmertama/SSIM-PIL | 93c9c25648f585f7eb50dac77071739a7a1e4754 | [
"MIT"
] | 24 | 2018-12-10T02:42:14.000Z | 2022-01-13T00:57:44.000Z | SSIM_PIL/_gpu_strategy.py | mmertama/SSIM-PIL | 93c9c25648f585f7eb50dac77071739a7a1e4754 | [
"MIT"
] | 2 | 2021-02-23T20:14:19.000Z | 2021-04-30T15:07:35.000Z | SSIM_PIL/_gpu_strategy.py | mmertama/SSIM-PIL | 93c9c25648f585f7eb50dac77071739a7a1e4754 | [
"MIT"
] | 4 | 2020-10-26T02:01:21.000Z | 2021-04-20T04:51:11.000Z | from __future__ import absolute_import, print_function
import numpy as np
import pyopencl as cl
from pyopencl import mem_flags
"""
https://stackoverflow.com/a/26395800/7062162
https://github.com/smistad/OpenCL-Gaussian-Blur/blob/master/gaussian_blur.cl
https://gist.github.com/likr/3735779
http://jonisalonen.com/2013... | 37.697917 | 127 | 0.588975 | 922 | 7,238 | 4.408894 | 0.27115 | 0.023616 | 0.021648 | 0.01722 | 0.114883 | 0.080689 | 0.080689 | 0.076753 | 0.04182 | 0.04182 | 0 | 0.031873 | 0.306438 | 7,238 | 191 | 128 | 37.895288 | 0.777888 | 0.161923 | 0 | 0.07767 | 0 | 0.029126 | 0.613804 | 0.018806 | 0 | 0 | 0 | 0.005236 | 0 | 1 | 0.038835 | false | 0 | 0.038835 | 0 | 0.116505 | 0.009709 | 0 | 0 | 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 |
5d13e6b3b3b85b2bc2af9a9343effdf513959501 | 4,182 | py | Python | fupan.py | huobingli/fpyd | b64f3369a3603b61310e57f5fc3d7c5de994dec1 | [
"MIT"
] | null | null | null | fupan.py | huobingli/fpyd | b64f3369a3603b61310e57f5fc3d7c5de994dec1 | [
"MIT"
] | null | null | null | fupan.py | huobingli/fpyd | b64f3369a3603b61310e57f5fc3d7c5de994dec1 | [
"MIT"
] | null | null | null | import requests
import json
from fpdata import *
from Middleware import *
# 热门研报
# type 1 最新
# type 2 近一周
# type 3 新财富分析师
page_num = 50
# 第一个tab页面 热门研报
# 近24小时
hot_new_url = "https://www.fupanyoudao.com/v1/api/report?page_num=1&page_size=%d&type=1"
# 近一周
hot_later_url = "https://www.fupanyoudao.com/v1/api/report?pa... | 31.443609 | 211 | 0.674797 | 609 | 4,182 | 4.423645 | 0.216749 | 0.059391 | 0.088344 | 0.097996 | 0.677431 | 0.65516 | 0.648849 | 0.635486 | 0.60876 | 0.60876 | 0 | 0.041029 | 0.172406 | 4,182 | 132 | 212 | 31.681818 | 0.737359 | 0.265423 | 0 | 0.333333 | 0 | 0.151515 | 0.34376 | 0.015147 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.166667 | 0.106061 | 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 |
5d1bc31bf9c891970dd4104a3a741015130fe3da | 2,870 | py | Python | stream.py | kineticadb/producer-nyc-citibike-station-stream | 750d8f29e44229baddc2c680d72fe59f1af91d03 | [
"Apache-2.0"
] | null | null | null | stream.py | kineticadb/producer-nyc-citibike-station-stream | 750d8f29e44229baddc2c680d72fe59f1af91d03 | [
"Apache-2.0"
] | null | null | null | stream.py | kineticadb/producer-nyc-citibike-station-stream | 750d8f29e44229baddc2c680d72fe59f1af91d03 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import random
import math
import time
import datetime
import json
import copy
import logging
from datetime import timezone
from time import strftime
import requests
from kafka import KafkaProducer
#######################################################################################
# ENVIRONME... | 32.613636 | 99 | 0.717073 | 394 | 2,870 | 4.989848 | 0.340102 | 0.028484 | 0.039674 | 0.035097 | 0.330621 | 0.252289 | 0.191251 | 0.154629 | 0.154629 | 0.114954 | 0 | 0.001184 | 0.117073 | 2,870 | 87 | 100 | 32.988506 | 0.774665 | 0.105575 | 0 | 0.034483 | 0 | 0 | 0.303272 | 0.050755 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.017241 | false | 0.034483 | 0.224138 | 0 | 0.241379 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d1f9bfea66ab298e386ab773e67e72d5b5d333b | 2,515 | py | Python | applications/TrilinosApplication/tests/test_TrilinosApplication_mpi.py | ma6yu/Kratos | 02380412f8a833a2cdda6791e1c7f9c32e088530 | [
"BSD-4-Clause"
] | null | null | null | applications/TrilinosApplication/tests/test_TrilinosApplication_mpi.py | ma6yu/Kratos | 02380412f8a833a2cdda6791e1c7f9c32e088530 | [
"BSD-4-Clause"
] | null | null | null | applications/TrilinosApplication/tests/test_TrilinosApplication_mpi.py | ma6yu/Kratos | 02380412f8a833a2cdda6791e1c7f9c32e088530 | [
"BSD-4-Clause"
] | null | null | null | # import Kratos
from KratosMultiphysics import *
if not IsDistributedRun():
raise Exception("This test script can only be executed in MPI!")
# Import Kratos "wrapper" for unittests
import KratosMultiphysics.KratosUnittest as KratosUnittest
# Import the tests o test_classes to create the suites
import test_trili... | 43.362069 | 151 | 0.803181 | 252 | 2,515 | 7.825397 | 0.34127 | 0.079108 | 0.146045 | 0.191684 | 0.461968 | 0.461968 | 0.434584 | 0.357505 | 0.320994 | 0 | 0 | 0.000452 | 0.12008 | 2,515 | 57 | 152 | 44.122807 | 0.890646 | 0.224652 | 0 | 0 | 0 | 0 | 0.041951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.222222 | 0 | 0.296296 | 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 |
5d295a814babd7cf3ba74843581ad77ce210c48f | 1,174 | py | Python | erp/management/commands/generate_schema.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 8 | 2020-07-23T08:17:28.000Z | 2022-03-09T22:31:36.000Z | erp/management/commands/generate_schema.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 37 | 2020-07-01T08:47:33.000Z | 2022-02-03T19:50:58.000Z | erp/management/commands/generate_schema.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 4 | 2021-04-08T10:57:18.000Z | 2022-01-31T13:16:31.000Z | from django.core.management import BaseCommand, CommandError
from erp.export.generate_schema import generate_schema
class Command(BaseCommand):
help = "Génère un TableSchema à partir du schema de données"
default_dir = "erp/export/static"
def add_arguments(self, parser):
parser.add_argument(
... | 37.870968 | 115 | 0.640545 | 138 | 1,174 | 5.369565 | 0.507246 | 0.067476 | 0.075574 | 0.040486 | 0.183536 | 0.075574 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.241056 | 1,174 | 30 | 116 | 39.133333 | 0.828283 | 0 | 0 | 0.16 | 1 | 0.04 | 0.337308 | 0.055366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.28 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d2ce1fcebbb646a9251bca313341ce783501202 | 1,020 | py | Python | arctia/resources.py | unternehmen/arctia | 5c0a9b1933199c09dc7312730ed32c3894bc33ac | [
"Unlicense"
] | 1 | 2018-01-12T15:11:03.000Z | 2018-01-12T15:11:03.000Z | arctia/resources.py | unternehmen/arctia | 5c0a9b1933199c09dc7312730ed32c3894bc33ac | [
"Unlicense"
] | 4 | 2018-02-17T00:20:09.000Z | 2018-06-01T19:49:08.000Z | arctia/resources.py | unternehmen/arctia | 5c0a9b1933199c09dc7312730ed32c3894bc33ac | [
"Unlicense"
] | null | null | null | import os
import pygame
from pkg_resources import resource_stream, resource_filename
def get_resource_filename(path):
"""
Return the filename of a resource.
:param path: the path to the resource
:returns: the real filename of the resource
"""
return resource_filename('arctia', path)
def get_r... | 25.5 | 63 | 0.681373 | 147 | 1,020 | 4.62585 | 0.272109 | 0.044118 | 0.070588 | 0.094118 | 0.191176 | 0.191176 | 0.129412 | 0.129412 | 0.129412 | 0 | 0 | 0 | 0.239216 | 1,020 | 39 | 64 | 26.153846 | 0.876289 | 0.457843 | 0 | 0 | 0 | 0 | 0.026087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 0 | 0.916667 | 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 |
5d2ebe810c4163676144ef6460270da37536191e | 2,659 | py | Python | MatchApp/migrations/0070_auto_20210516_2202.py | elizza19/django_local_library | f2dc053e44684b7a966d8bc0ff364f5251449f5b | [
"Apache-2.0"
] | null | null | null | MatchApp/migrations/0070_auto_20210516_2202.py | elizza19/django_local_library | f2dc053e44684b7a966d8bc0ff364f5251449f5b | [
"Apache-2.0"
] | null | null | null | MatchApp/migrations/0070_auto_20210516_2202.py | elizza19/django_local_library | f2dc053e44684b7a966d8bc0ff364f5251449f5b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-16 20:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mantenimientoApp', '0001_initial'),
('MatchApp', '0069_auto_20210512_2229'),
]
operations = [
migra... | 38.536232 | 176 | 0.61903 | 266 | 2,659 | 6.048872 | 0.218045 | 0.044748 | 0.069608 | 0.109385 | 0.610938 | 0.610938 | 0.610938 | 0.49161 | 0.49161 | 0.49161 | 0 | 0.017713 | 0.256863 | 2,659 | 68 | 177 | 39.102941 | 0.796559 | 0.016924 | 0 | 0.580645 | 1 | 0 | 0.18683 | 0.078101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.080645 | 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 |
5d31d730c550587522fa68a857e42f7b305c6bd6 | 2,817 | py | Python | serializers/classic_serializers.py | shamilison/django-classic | a3f7e9e12787329a5b191b3b2f80cdd03bf3b77c | [
"Apache-2.0"
] | null | null | null | serializers/classic_serializers.py | shamilison/django-classic | a3f7e9e12787329a5b191b3b2f80cdd03bf3b77c | [
"Apache-2.0"
] | null | null | null | serializers/classic_serializers.py | shamilison/django-classic | a3f7e9e12787329a5b191b3b2f80cdd03bf3b77c | [
"Apache-2.0"
] | null | null | null | __author__ = 'shamilsakib'
from django.contrib.auth import authenticate
from django.db import transaction
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from rest_framework.authtoken.serializers import AuthTokenSerializer
from rest_framework.exceptions import APIExceptio... | 36.584416 | 93 | 0.700035 | 302 | 2,817 | 6.347682 | 0.307947 | 0.054251 | 0.080856 | 0.077204 | 0.338028 | 0.247783 | 0.146062 | 0.113719 | 0.074074 | 0 | 0 | 0 | 0.201988 | 2,817 | 76 | 94 | 37.065789 | 0.852758 | 0 | 0 | 0.111111 | 0 | 0 | 0.110401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.074074 | 0.12963 | 0.055556 | 0.481481 | 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 |
5d392597d04361fd0c28cd5c5d73d26d5550020a | 16,480 | py | Python | demisto_sdk/commands/common/content/objects/pack_objects/pack.py | unparalleled-js/demisto-sdk | d418a24cd60b093cf3a0412ec57b51309da9a724 | [
"MIT"
] | null | null | null | demisto_sdk/commands/common/content/objects/pack_objects/pack.py | unparalleled-js/demisto-sdk | d418a24cd60b093cf3a0412ec57b51309da9a724 | [
"MIT"
] | null | null | null | demisto_sdk/commands/common/content/objects/pack_objects/pack.py | unparalleled-js/demisto-sdk | d418a24cd60b093cf3a0412ec57b51309da9a724 | [
"MIT"
] | null | null | null | import logging
import subprocess
from distutils.version import LooseVersion
from typing import Any, Dict, Iterator, Optional, Union
import demisto_client
from wcmatch.pathlib import Path
from demisto_sdk.commands.common.constants import (CLASSIFIERS_DIR,
CONNECTIONS_... | 43.946667 | 135 | 0.577124 | 1,696 | 16,480 | 5.298939 | 0.151533 | 0.044064 | 0.060087 | 0.069545 | 0.433738 | 0.339602 | 0.254479 | 0.217759 | 0.192389 | 0.132413 | 0 | 0.000749 | 0.351456 | 16,480 | 374 | 136 | 44.064171 | 0.840101 | 0.083131 | 0 | 0.32491 | 0 | 0 | 0.04958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162455 | false | 0 | 0.039711 | 0.108303 | 0.350181 | 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 |
5d3a61a7aaf0830bc3b720e3b45d28737f9fcfbf | 2,787 | py | Python | rl/utils/return_utils.py | jrobine/smaller-world-models | 2b1a9a0f83668207d8516a95f14131c358a18302 | [
"MIT"
] | null | null | null | rl/utils/return_utils.py | jrobine/smaller-world-models | 2b1a9a0f83668207d8516a95f14131c358a18302 | [
"MIT"
] | null | null | null | rl/utils/return_utils.py | jrobine/smaller-world-models | 2b1a9a0f83668207d8516a95f14131c358a18302 | [
"MIT"
] | null | null | null | import torch
from torch import Tensor
__all__ = ['compute_return', 'compute_gae_return']
def compute_return(
rewards: Tensor,
terminals: Tensor,
bootstrap_value: Tensor,
discount_rate: float,
batch_first: bool = False) -> Tensor:
"""Computes the return based on sequences o... | 37.662162 | 120 | 0.666308 | 362 | 2,787 | 4.906077 | 0.256906 | 0.037162 | 0.033784 | 0.036036 | 0.459459 | 0.345158 | 0.245496 | 0.197072 | 0.155405 | 0.155405 | 0 | 0.004261 | 0.242196 | 2,787 | 73 | 121 | 38.178082 | 0.836648 | 0.365985 | 0 | 0.511628 | 0 | 0 | 0.018935 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.046512 | false | 0 | 0.046512 | 0 | 0.139535 | 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 |
5d3aa42cd7c5f9ceff2776432454866593852b35 | 11,486 | py | Python | geckomat/brenda_parser/findMaxKvalues_AllOrgs.py | edkerk/GECKO | 3604e018d3d88aa4f77ecb67e76d4426795f2beb | [
"MIT"
] | 33 | 2017-08-23T15:20:41.000Z | 2022-03-28T19:37:35.000Z | geckomat/brenda_parser/findMaxKvalues_AllOrgs.py | edkerk/GECKO | 3604e018d3d88aa4f77ecb67e76d4426795f2beb | [
"MIT"
] | 99 | 2017-09-25T09:32:58.000Z | 2022-02-03T22:15:10.000Z | geckomat/brenda_parser/findMaxKvalues_AllOrgs.py | edkerk/GECKO | 3604e018d3d88aa4f77ecb67e76d4426795f2beb | [
"MIT"
] | 38 | 2017-09-11T10:26:01.000Z | 2022-01-31T17:39:23.000Z | #!/usr/bin/python
################################################################################
# findMaxKcats
# Reads all EC files and finds the max value for each substrate for the chosen
# microorganism on the different enzymatic parameters [Kcat, KM, SA, MW].
# For each parameter Writes a table with the followi... | 36.119497 | 109 | 0.524987 | 1,345 | 11,486 | 4.309294 | 0.194796 | 0.029331 | 0.021739 | 0.020704 | 0.207384 | 0.168219 | 0.14441 | 0.137854 | 0.10628 | 0.089372 | 0 | 0.012159 | 0.291137 | 11,486 | 317 | 110 | 36.233438 | 0.699705 | 0.265105 | 0 | 0.164706 | 0 | 0 | 0.037272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005882 | 0.023529 | null | null | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5d3d4b71f87ff76399dd53aea1ac1f79869ed184 | 308 | py | Python | tests/test_default.py | waynelewis/ics-ans-role-conserver-server | 8d9d4e0462f60e7801ecf9688c2934665105ab85 | [
"BSD-2-Clause"
] | null | null | null | tests/test_default.py | waynelewis/ics-ans-role-conserver-server | 8d9d4e0462f60e7801ecf9688c2934665105ab85 | [
"BSD-2-Clause"
] | null | null | null | tests/test_default.py | waynelewis/ics-ans-role-conserver-server | 8d9d4e0462f60e7801ecf9688c2934665105ab85 | [
"BSD-2-Clause"
] | null | null | null | import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'.molecule/ansible_inventory').get_hosts('all')
def test_conserver_server_enabled_and_running(Service):
service = Service('conserver')
assert service.is_running
assert service.is_enabled
| 28 | 63 | 0.801948 | 37 | 308 | 6.351351 | 0.567568 | 0.119149 | 0.178723 | 0.229787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11039 | 308 | 10 | 64 | 30.8 | 0.857664 | 0 | 0 | 0 | 0 | 0 | 0.126623 | 0.087662 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5d3fd835799a2b87e26d84e3e882c697fa0374fc | 3,256 | py | Python | isucon/portal/contest/migrations/0003_auto_20190621_1742.py | masaki-yamakawa/isucon9-portal | a3062d613d559aa9df5ac8d9aac2c774cf8a9419 | [
"MIT"
] | 2 | 2020-02-17T06:09:22.000Z | 2020-10-27T12:33:46.000Z | isucon/portal/contest/migrations/0003_auto_20190621_1742.py | masaki-yamakawa/isucon9-portal | a3062d613d559aa9df5ac8d9aac2c774cf8a9419 | [
"MIT"
] | null | null | null | isucon/portal/contest/migrations/0003_auto_20190621_1742.py | masaki-yamakawa/isucon9-portal | a3062d613d559aa9df5ac8d9aac2c774cf8a9419 | [
"MIT"
] | 1 | 2022-02-27T00:59:29.000Z | 2022-02-27T00:59:29.000Z | # Generated by Django 2.2.2 on 2019-06-21 08:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('authentication', '0006_auto_20190603_1824'),
('contest', '0002_auto_20190610_1608'),
]
operations = [
... | 41.74359 | 225 | 0.571867 | 303 | 3,256 | 5.950495 | 0.382838 | 0.122019 | 0.04437 | 0.036606 | 0.369384 | 0.312812 | 0.217415 | 0.147532 | 0.147532 | 0.147532 | 0 | 0.024014 | 0.283784 | 3,256 | 77 | 226 | 42.285714 | 0.749142 | 0.013821 | 0 | 0.408451 | 1 | 0 | 0.189779 | 0.014335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.028169 | 0.028169 | 0 | 0.070423 | 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 |
5d463dd10b2a0c5222c257f394f49831366771f3 | 1,549 | py | Python | ooobuild/lo/xml/input/sax_document_handler.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/xml/input/sax_document_handler.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/xml/input/sax_document_handler.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 36.023256 | 145 | 0.76501 | 218 | 1,549 | 5.256881 | 0.591743 | 0.052356 | 0.026178 | 0.034031 | 0.055846 | 0.04014 | 0.04014 | 0 | 0 | 0 | 0 | 0.02844 | 0.160103 | 1,549 | 42 | 146 | 36.880952 | 0.852421 | 0.666882 | 0 | 0 | 0 | 0 | 0.191304 | 0.136957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5d48050bdb96431962c6948893cbb1ddfddb9a95 | 4,392 | py | Python | VimRC.py | averyhiebert/vim-roguelike-challenge | 3decdc13ffcbdc893493c6d454e5ecaffb07094e | [
"Vim",
"MIT"
] | null | null | null | VimRC.py | averyhiebert/vim-roguelike-challenge | 3decdc13ffcbdc893493c6d454e5ecaffb07094e | [
"Vim",
"MIT"
] | null | null | null | VimRC.py | averyhiebert/vim-roguelike-challenge | 3decdc13ffcbdc893493c6d454e5ecaffb07094e | [
"Vim",
"MIT"
] | null | null | null | ''' A roguelike based on vim. '''
import copy
import traceback
import sys
import os
import tcod
import colors
from engine import Engine
import entity_factories
from procgen import TestDungeon, BasicDungeon, TutorialDungeon
from game_world import GameWorld
import level_factories as lf
import exceptions
# Some constan... | 34.3125 | 114 | 0.652778 | 562 | 4,392 | 4.896797 | 0.403915 | 0.039971 | 0.037064 | 0.03343 | 0.231831 | 0.193677 | 0.193677 | 0.159157 | 0.09593 | 0.09593 | 0 | 0.020143 | 0.265255 | 4,392 | 127 | 115 | 34.582677 | 0.832662 | 0.243169 | 0 | 0.218391 | 0 | 0 | 0.045496 | 0.010076 | 0 | 0 | 0 | 0.015748 | 0.011494 | 1 | 0.034483 | false | 0.011494 | 0.137931 | 0 | 0.195402 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.