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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f71edfc6963ccd9d3727e8dcde2fad2a0083f80 | 126 | py | Python | code/answer_3-2-2.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | 1 | 2022-03-29T13:50:12.000Z | 2022-03-29T13:50:12.000Z | code/answer_3-2-2.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | code/answer_3-2-2.py | KoyanagiHitoshi/AtCoder-Python-Introduction | 6d014e333a873f545b4d32d438e57cf428b10b96 | [
"MIT"
] | null | null | null | N = int(input())
total = 0
for i in range(1, N+1):
if (i % 3) != 0 and (i % 5) != 0:
total = total+i
print(total)
| 18 | 37 | 0.484127 | 25 | 126 | 2.44 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 0.309524 | 126 | 6 | 38 | 21 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f85cf1ce68c6767fadc17c327713204942875ad | 320 | py | Python | work/yun/client.py | pawankaushal/crossbar-examples | b6e0cc321bad020045c4fafec091f78abd938618 | [
"Apache-2.0"
] | 97 | 2016-12-14T16:48:49.000Z | 2021-09-12T17:48:10.000Z | work/yun/client.py | pawankaushal/crossbar-examples | b6e0cc321bad020045c4fafec091f78abd938618 | [
"Apache-2.0"
] | 38 | 2016-12-13T09:42:38.000Z | 2020-07-05T11:58:07.000Z | work/yun/client.py | pawankaushal/crossbar-examples | b6e0cc321bad020045c4fafec091f78abd938618 | [
"Apache-2.0"
] | 118 | 2016-12-12T21:36:40.000Z | 2021-11-17T11:49:33.000Z | from autobahn.asyncio.wamp import ApplicationSession
from autobahn.asyncio.wamp import ApplicationRunner
class MyComponent(ApplicationSession):
def onJoin(self, details):
print("session ready")
runner = ApplicationRunner(url="ws://192.168.1.130:8080/ws", realm="realm1")
runner.run(MyComponent)
| 29.090909 | 77 | 0.746875 | 37 | 320 | 6.459459 | 0.72973 | 0.100418 | 0.158996 | 0.192469 | 0.242678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.140625 | 320 | 10 | 78 | 32 | 0.814545 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
7f893b0a04c56b0b603aba46895388151f76984f | 565 | py | Python | src/utils/ReadEnv.py | d-onny/eunji-bot | 5b3b0105ff08ef1e869772869f42cd5ef18e1123 | [
"MIT"
] | null | null | null | src/utils/ReadEnv.py | d-onny/eunji-bot | 5b3b0105ff08ef1e869772869f42cd5ef18e1123 | [
"MIT"
] | null | null | null | src/utils/ReadEnv.py | d-onny/eunji-bot | 5b3b0105ff08ef1e869772869f42cd5ef18e1123 | [
"MIT"
] | null | null | null | import configparser
class ReadEnv:
def __init__(self, configFile:str = "bot.config"):
self.configFile = configFile
self.SECRET = ""
self.TOKEN = ""
self.grabEnv()
def grabEnv(self):
section = "bot-config"
config = configparser.ConfigParser()
config.read... | 21.730769 | 54 | 0.60177 | 56 | 565 | 6 | 0.357143 | 0.125 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290265 | 565 | 25 | 55 | 22.6 | 0.837905 | 0 | 0 | 0 | 0 | 0 | 0.054965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 2 |
f6878dd678911fb9e5dc002e562a6d6caee07b60 | 5,963 | py | Python | process_subscriber_data.py | nyphilarchive/bway-hack | 709ca471f2d7e4bfa318f3553420bf58c90faebb | [
"MIT"
] | 1 | 2021-12-16T01:12:18.000Z | 2021-12-16T01:12:18.000Z | process_subscriber_data.py | nyphilarchive/bway-hack | 709ca471f2d7e4bfa318f3553420bf58c90faebb | [
"MIT"
] | null | null | null | process_subscriber_data.py | nyphilarchive/bway-hack | 709ca471f2d7e4bfa318f3553420bf58c90faebb | [
"MIT"
] | 1 | 2022-02-21T20:03:04.000Z | 2022-02-21T20:03:04.000Z | import csv
import json
import math
import os
import re
SUBSCRIBERS_INPUT_FILE = 'data/subscribers.csv'
ZIPCODES_INPUT_FILE = 'data/new_york_zipcodes.csv'
SEATING_INPUT_FILE = 'data/seating_chart.csv'
OUTPUT_FILE = 'data/subscribers.json'
ZIPCODES_OUTPUT_FILE = 'data/zipcodes.json'
LAT1 = 40.906507
LNG1 = -74.161754
L... | 30.116162 | 1,206 | 0.696965 | 911 | 5,963 | 4.177827 | 0.204171 | 0.070941 | 0.025749 | 0.017078 | 0.192853 | 0.18103 | 0.166842 | 0.135575 | 0.125328 | 0.089858 | 0 | 0.038943 | 0.168875 | 5,963 | 197 | 1,207 | 30.269036 | 0.729015 | 0.038739 | 0 | 0.164557 | 0 | 0 | 0.076062 | 0.012065 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031646 | null | null | 0.018987 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f68cc9196f1cff88a7cca199b5ce2f1d08c0bd6f | 815 | py | Python | pastebin/paste.py | 11mariom/pastebin | 1dd4b82d8f36e62a6d4643bd0e222caddc49935a | [
"MIT"
] | 1 | 2016-04-05T14:19:55.000Z | 2016-04-05T14:19:55.000Z | pastebin/paste.py | 11mariom/pastebin | 1dd4b82d8f36e62a6d4643bd0e222caddc49935a | [
"MIT"
] | null | null | null | pastebin/paste.py | 11mariom/pastebin | 1dd4b82d8f36e62a6d4643bd0e222caddc49935a | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
#from flask_sqlalchemy import SQLAlchemy
#db = SQLAlchemy()
from sqlalchemy import Column, Integer, Text
from database import db
from database import Base
class Paste(Base):
__tablename__ = 'paste'
id = Column(Integer, primary_key = True)
#hash = db.Column(db.String(32), unique =... | 21.447368 | 56 | 0.597546 | 108 | 815 | 4.351852 | 0.37963 | 0.06383 | 0.076596 | 0.07234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005068 | 0.27362 | 815 | 37 | 57 | 22.027027 | 0.788851 | 0.211043 | 0 | 0.090909 | 0 | 0 | 0.023548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0.227273 | 0.863636 | 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 | 1 | 0 | 0 | 0 | 2 |
f6adeeac9537029ba20ae281389b2d541fd86806 | 3,054 | py | Python | roses/effect_size/test/vargha_delaney_test.py | jacksonpradolima/roses | 333dd8f4884659bc0083c94e10dadbd34244f142 | [
"MIT"
] | 7 | 2019-10-30T20:30:14.000Z | 2021-08-10T22:25:57.000Z | roses/effect_size/test/vargha_delaney_test.py | jacksonpradolima/roses | 333dd8f4884659bc0083c94e10dadbd34244f142 | [
"MIT"
] | 1 | 2021-02-20T19:00:20.000Z | 2021-02-20T19:38:41.000Z | roses/effect_size/test/vargha_delaney_test.py | jacksonpradolima/roses | 333dd8f4884659bc0083c94e10dadbd34244f142 | [
"MIT"
] | null | null | null | import unittest
import pandas as pd
from roses.effect_size.vargha_delaney import VD_A, VD_A_DF, reduce
class RunningEffectSize(unittest.TestCase):
def test_VD_A_negligible(self):
# negligible
array1 = [0.8236111111111111, 0.7966666666666666, 0.923611111111111, 0.8197222222222222, 0.7108333333333... | 48.47619 | 124 | 0.653897 | 370 | 3,054 | 5.275676 | 0.254054 | 0.018443 | 0.061988 | 0.025615 | 0.402152 | 0.220799 | 0.220799 | 0.220799 | 0.186988 | 0.165471 | 0 | 0.475874 | 0.212836 | 3,054 | 63 | 125 | 48.47619 | 0.336106 | 0.029142 | 0 | 0.142857 | 0 | 0 | 0.061149 | 0.00777 | 0 | 0 | 0 | 0 | 0.119048 | 1 | 0.119048 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f6c3f205e54fe5b2c096d6811520525ed9b20ec2 | 1,144 | py | Python | modulos/thread_sync.py | ingprovencio/pyvisionapp | 5782ebe06403d6b9f551efae0ddf2db0af92c948 | [
"Apache-2.0"
] | null | null | null | modulos/thread_sync.py | ingprovencio/pyvisionapp | 5782ebe06403d6b9f551efae0ddf2db0af92c948 | [
"Apache-2.0"
] | null | null | null | modulos/thread_sync.py | ingprovencio/pyvisionapp | 5782ebe06403d6b9f551efae0ddf2db0af92c948 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2021 Jose Carlos Provencio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 23.346939 | 74 | 0.681818 | 164 | 1,144 | 4.670732 | 0.554878 | 0.078329 | 0.097911 | 0.099217 | 0.146214 | 0.146214 | 0.078329 | 0 | 0 | 0 | 0 | 0.010393 | 0.243007 | 1,144 | 48 | 75 | 23.833333 | 0.874134 | 0.504371 | 0 | 0.285714 | 0 | 0 | 0.009107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.238095 | 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 | 1 | 0 | 0 | 2 |
f6c92b5a30735bffc06d2162ca30cf124a233ff7 | 164 | py | Python | tasks/test/__init__.py | remarkablerocket/changelog-cli | 195bbaf6d88747c6ab11091f8db8f34ea5e18f88 | [
"MIT"
] | 16 | 2017-11-28T20:28:21.000Z | 2021-06-13T11:41:07.000Z | tasks/test/__init__.py | remarkablerocket/changelog-cli | 195bbaf6d88747c6ab11091f8db8f34ea5e18f88 | [
"MIT"
] | 29 | 2017-06-10T17:38:22.000Z | 2022-03-17T04:53:53.000Z | tasks/test/__init__.py | remarkablerocket/changelog-cli | 195bbaf6d88747c6ab11091f8db8f34ea5e18f88 | [
"MIT"
] | 16 | 2017-06-10T17:36:31.000Z | 2022-01-23T15:08:18.000Z | """
Run Test Suite
"""
from invoke import task
@task
def test(context):
"""
Runs Test Suite
"""
context.run('coverage run -m unittest discover')
| 11.714286 | 52 | 0.615854 | 21 | 164 | 4.809524 | 0.666667 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 164 | 13 | 53 | 12.615385 | 0.821138 | 0.182927 | 0 | 0 | 0 | 0 | 0.297297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6cfa4a68114607448c4d70b117105ea0ed1ee4c | 4,493 | py | Python | optimizedGPS/results_provider/pre_solver_stats.py | mickael-grima/optimizedGPS | e82fd864d7e1a3ef1f7ae64db991cb33784d4df3 | [
"Apache-2.0"
] | null | null | null | optimizedGPS/results_provider/pre_solver_stats.py | mickael-grima/optimizedGPS | e82fd864d7e1a3ef1f7ae64db991cb33784d4df3 | [
"Apache-2.0"
] | null | null | null | optimizedGPS/results_provider/pre_solver_stats.py | mickael-grima/optimizedGPS | e82fd864d7e1a3ef1f7ae64db991cb33784d4df3 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
from optimizedGPS.data.data_generator import generate_grid_data, generate_random_drivers
from optimizedGPS.problems.PreSolver import GlobalPreSolver
from optimizedGPS.problems.Solver import Solver
def get_percentage(part, total, trunc=2):
return int(float(part) / total * (10 *... | 37.132231 | 112 | 0.627198 | 537 | 4,493 | 4.975791 | 0.22905 | 0.085329 | 0.038922 | 0.033683 | 0.394835 | 0.289671 | 0.248129 | 0.218189 | 0.191243 | 0.191243 | 0 | 0.01562 | 0.25907 | 4,493 | 120 | 113 | 37.441667 | 0.787023 | 0.038504 | 0 | 0.139535 | 1 | 0 | 0.06546 | 0.027275 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011628 | 0.046512 | null | null | 0.011628 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6e155c76cd874aafdd6c1673cf222d7ef8adfe6 | 3,607 | py | Python | showminder/showminder/settings.py | chassing/showminder | 136ef3f1a41fa3aa45574770dd5751b0b7b9edd3 | [
"MIT"
] | 1 | 2017-01-26T09:12:55.000Z | 2017-01-26T09:12:55.000Z | showminder/showminder/settings.py | chassing/showminder | 136ef3f1a41fa3aa45574770dd5751b0b7b9edd3 | [
"MIT"
] | null | null | null | showminder/showminder/settings.py | chassing/showminder | 136ef3f1a41fa3aa45574770dd5751b0b7b9edd3 | [
"MIT"
] | null | null | null | from pathlib import Path
import environ
env = environ.Env(DEBUG=(bool, False))
env.read_env()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.1... | 28.401575 | 89 | 0.688384 | 390 | 3,607 | 6.225641 | 0.464103 | 0.080313 | 0.049012 | 0.034596 | 0.101318 | 0.101318 | 0.037068 | 0 | 0 | 0 | 0 | 0.016312 | 0.167175 | 3,607 | 126 | 90 | 28.626984 | 0.791944 | 0.204879 | 0 | 0 | 0 | 0 | 0.537759 | 0.418686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.025641 | 0 | 0.025641 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f6eb279f296c9b6687997fb2e9f5f1782e75ffc5 | 1,287 | py | Python | artworks/admin.py | mnosinov/artworks_project | b6901ff83c1cd370ce1539f09b464ecb995e1ce3 | [
"MIT"
] | null | null | null | artworks/admin.py | mnosinov/artworks_project | b6901ff83c1cd370ce1539f09b464ecb995e1ce3 | [
"MIT"
] | null | null | null | artworks/admin.py | mnosinov/artworks_project | b6901ff83c1cd370ce1539f09b464ecb995e1ce3 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Author, Genre, Artwork, Painting, Book, Media
class AuthorAdmin(admin.ModelAdmin):
list_display = ('id', 'name', )
list_display_links = ('id', 'name', )
search_fields = ('name', )
class GenreAdmin(admin.ModelAdmin):
list_display = ('id', 'title',... | 27.978261 | 82 | 0.689977 | 145 | 1,287 | 5.944828 | 0.282759 | 0.153132 | 0.132251 | 0.180974 | 0.342227 | 0.076566 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14763 | 1,287 | 45 | 83 | 28.6 | 0.785779 | 0 | 0 | 0.233333 | 0 | 0 | 0.149184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.8 | 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 | 1 | 0 | 0 | 2 |
f6f6df9ded434de15e7851f32d24371c5dc62421 | 616 | py | Python | test_keysmith.py | dmtucker/cs112 | 2cf9d56af145fd262f5093027e859f92ea6bad0f | [
"BSD-3-Clause"
] | 3 | 2016-04-19T06:22:14.000Z | 2016-07-30T21:34:41.000Z | test_keysmith.py | dmtucker/cs112 | 2cf9d56af145fd262f5093027e859f92ea6bad0f | [
"BSD-3-Clause"
] | 25 | 2016-05-31T23:42:39.000Z | 2019-02-21T07:56:39.000Z | test_keysmith.py | dmtucker/keysmith | 2cf9d56af145fd262f5093027e859f92ea6bad0f | [
"BSD-3-Clause"
] | null | null | null | """Test Keysmith."""
import subprocess
import sys
import keysmith
def test_script():
"""Test a full run when directly invoking."""
subprocess.check_call([sys.executable, keysmith.__file__])
def test_python_m():
"""Test python -m."""
command = [sys.executable, '-m', keysmith.__name__]
assert su... | 22 | 62 | 0.670455 | 77 | 616 | 5.155844 | 0.454545 | 0.070529 | 0.04534 | 0.060453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.172078 | 616 | 27 | 63 | 22.814815 | 0.772549 | 0.238636 | 0 | 0 | 0 | 0 | 0.072235 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.333333 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
10022305e812e7535e4ad9d533d9c204f1a8b264 | 826 | py | Python | python-format-strings/exercise3.py | ATelders/learn-python | d9eaa392bebb57d7bafd98d78ffa0731ed371d11 | [
"MIT"
] | null | null | null | python-format-strings/exercise3.py | ATelders/learn-python | d9eaa392bebb57d7bafd98d78ffa0731ed371d11 | [
"MIT"
] | null | null | null | python-format-strings/exercise3.py | ATelders/learn-python | d9eaa392bebb57d7bafd98d78ffa0731ed371d11 | [
"MIT"
] | null | null | null | #medicine = 'Coughussin'
#dosage = 5
#duration = 4.5
#instructions = '{} - Take {} ML by mouth every {} hours.'.format(medicine, dosage, duration)
#print(instructions)
#instructions = '{2} - Take {1} ML by mouth every {0} hours'.format(medicine, dosage, duration)
#print(instructions)
#instructions = '{medicine} - Take... | 25.030303 | 138 | 0.652542 | 115 | 826 | 4.686957 | 0.356522 | 0.055659 | 0.081633 | 0.096475 | 0.326531 | 0.326531 | 0.326531 | 0.326531 | 0.096475 | 0.096475 | 0 | 0.041135 | 0.146489 | 826 | 32 | 139 | 25.8125 | 0.723404 | 0.811138 | 0 | 0 | 0 | 0 | 0.404412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 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 | 1 | 0 | 2 |
10068d2915055074af9f5c10e82be429c26c04c7 | 631 | py | Python | kindlerWeb/shelf/migrations/0002_auto_20200517_0052.py | ssanjaysubramaniam/OpenKindlerWeb | 973fd05ddcee1c5c3cd9bf88353c6623dd69f57a | [
"MIT"
] | 1 | 2022-02-07T05:42:02.000Z | 2022-02-07T05:42:02.000Z | kindlerWeb/shelf/migrations/0002_auto_20200517_0052.py | ssanjaysubramaniam/OpenKindlerWeb | 973fd05ddcee1c5c3cd9bf88353c6623dd69f57a | [
"MIT"
] | 5 | 2021-03-19T10:20:49.000Z | 2021-09-22T19:31:12.000Z | kindlerWeb/shelf/migrations/0002_auto_20200517_0052.py | sanjaymaniam/OpenKindlerWeb | 973fd05ddcee1c5c3cd9bf88353c6623dd69f57a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-17 00:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shelf', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='clipping',
name='kind_of_clipping',
... | 26.291667 | 153 | 0.576862 | 61 | 631 | 5.868852 | 0.688525 | 0.111732 | 0.139665 | 0.162011 | 0.22905 | 0.22905 | 0 | 0 | 0 | 0 | 0 | 0.046053 | 0.277338 | 631 | 23 | 154 | 27.434783 | 0.739035 | 0.071315 | 0 | 0.352941 | 1 | 0 | 0.183219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1008981994ab31f685d6464bb92c7cfb7039fa6b | 154 | py | Python | __init__.py | billyfranklim1/twitter-python | 9a8fea324f9ef055447e8482ca1dc2305696b23c | [
"MIT"
] | null | null | null | __init__.py | billyfranklim1/twitter-python | 9a8fea324f9ef055447e8482ca1dc2305696b23c | [
"MIT"
] | null | null | null | __init__.py | billyfranklim1/twitter-python | 9a8fea324f9ef055447e8482ca1dc2305696b23c | [
"MIT"
] | null | null | null | # TWITTER PYTHON
# Copyright 2022 Billyfranklim
# See LICENSE for details.
__version__ = '0.1.0'
__author__ = 'Billyfranklim Pereira'
__license__ = 'MIT' | 22 | 36 | 0.75974 | 18 | 154 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05303 | 0.142857 | 154 | 7 | 37 | 22 | 0.742424 | 0.441558 | 0 | 0 | 0 | 0 | 0.349398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1008fa0ccaae38a57fd4ae83bf871e69ab3a4a73 | 151 | py | Python | Female_Health_Analysis/Female_Health_Analysis/__init__.py | danielschulz/Female_Health_Analysis | 71ea0e3767546349a61b20debd7ac75d23eac94c | [
"MIT"
] | 1 | 2020-08-14T04:40:23.000Z | 2020-08-14T04:40:23.000Z | Female_Health_Analysis/Female_Health_Analysis/__init__.py | danielschulz/Female_Health_Analysis | 71ea0e3767546349a61b20debd7ac75d23eac94c | [
"MIT"
] | null | null | null | Female_Health_Analysis/Female_Health_Analysis/__init__.py | danielschulz/Female_Health_Analysis | 71ea0e3767546349a61b20debd7ac75d23eac94c | [
"MIT"
] | null | null | null | """Top-level package for Female Health Analysis."""
__author__ = """Daniel Schulz"""
__email__ = 'danielschulz2005@hotmail.com'
__version__ = '0.1.0'
| 25.166667 | 51 | 0.721854 | 18 | 151 | 5.388889 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052239 | 0.112583 | 151 | 5 | 52 | 30.2 | 0.671642 | 0.298013 | 0 | 0 | 0 | 0 | 0.46 | 0.28 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
63df123839a8c6821b2f9afc95e8ee32b6730a37 | 894 | py | Python | run.py | capralifecycle/office-games-client | a600e0ed90d14a5b4f50b4aa43ece53dd7a3ba2b | [
"MIT"
] | null | null | null | run.py | capralifecycle/office-games-client | a600e0ed90d14a5b4f50b4aa43ece53dd7a3ba2b | [
"MIT"
] | 5 | 2017-07-11T08:54:20.000Z | 2017-08-02T15:02:38.000Z | run.py | kotlarz/office-games-client | a600e0ed90d14a5b4f50b4aa43ece53dd7a3ba2b | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
from clint.arguments import Args
from commands.backup import backup
from commands.check_player_statistics import check_player_statistics
from commands.start import start
AVAILABLE_COMMANDS = [
'backup',
'check_player_statistics',
'recalculate_player_rating',
'sta... | 24.162162 | 86 | 0.674497 | 114 | 894 | 5.061404 | 0.421053 | 0.095321 | 0.181976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008463 | 0.206935 | 894 | 36 | 87 | 24.833333 | 0.80536 | 0.049217 | 0 | 0 | 0 | 0 | 0.212264 | 0.115566 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
63e12b2f311e97e4c80f602b7bc33084b5242202 | 1,546 | py | Python | import_handler.py | LucidumInc/update-manager | f9c69d23238c3f4b8287c20fb3e7e70f4bb925f1 | [
"MIT"
] | null | null | null | import_handler.py | LucidumInc/update-manager | f9c69d23238c3f4b8287c20fb3e7e70f4bb925f1 | [
"MIT"
] | 2 | 2020-12-09T17:19:26.000Z | 2021-03-23T14:31:05.000Z | import_handler.py | LucidumInc/update-manager | f9c69d23238c3f4b8287c20fb3e7e70f4bb925f1 | [
"MIT"
] | 1 | 2020-12-31T23:59:31.000Z | 2020-12-31T23:59:31.000Z | import sys
import os
from loguru import logger
from config_handler import get_mongo_config
from docker_service import create_archive, get_docker_container
from exceptions import AppError
class MongoImportRunner:
container_dest_dir = "/home"
def __call__(self, source, destination):
container = get_d... | 37.707317 | 242 | 0.693402 | 190 | 1,546 | 5.368421 | 0.405263 | 0.047059 | 0.047059 | 0.039216 | 0.043137 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0024 | 0.191462 | 1,546 | 40 | 243 | 38.65 | 0.8136 | 0 | 0 | 0 | 0 | 0.032258 | 0.243855 | 0.151358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.032258 | 0.419355 | 0 | 0.612903 | 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 | 1 | 0 | 0 | 2 |
63e1f4ed4d6aa110cc0e1780533e7e235676981a | 420 | py | Python | portals/wwits/groups/access/function_authorize_list/models.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | portals/wwits/groups/access/function_authorize_list/models.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | portals/wwits/groups/access/function_authorize_list/models.py | jalanb/portals | 7a5360b48547719d3fbe50790f08eaf5571148dd | [
"ADSL"
] | null | null | null | from dataclasses import dataclass
from typing import List
from portals.wwits.mixins import WWITSBaseMixin
@dataclass
class ParmModel:
Version: str
Env: str
UserID: str
Session: int
Source: str
RC: int
ResultMsg: str
@dataclass
class FunctionModel(WWITSBaseMixin):
FunctionName: str
... | 16.153846 | 47 | 0.740476 | 45 | 420 | 6.911111 | 0.577778 | 0.135048 | 0.109325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207143 | 420 | 25 | 48 | 16.8 | 0.933934 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.157895 | 0 | 0.842105 | 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 | 1 | 0 | 0 | 2 |
63effd1aca56b1072ffd42b291c3c03fe9fc3faf | 2,307 | py | Python | language/syntax/_syntax/tests/test_expr.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | language/syntax/_syntax/tests/test_expr.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | language/syntax/_syntax/tests/test_expr.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | from ...symbol.symbol import Symbol
from ..expr import Atom, ForwardIs, Option, Seq, ZeroOrMore, _Expr, _Expr_, _Op_
class Test_Op_:
def test_sequence(self):
...
class TestAtom:
def test_init(self):
expr = Atom(Symbol("A"))
def test_mro(self):
expr = Atom(Symbol("A"))
a... | 24.03125 | 80 | 0.618986 | 303 | 2,307 | 4.551155 | 0.118812 | 0.152284 | 0.103698 | 0.08702 | 0.576505 | 0.430022 | 0.371284 | 0.226251 | 0.079768 | 0.079768 | 0 | 0.013667 | 0.238838 | 2,307 | 95 | 81 | 24.284211 | 0.77164 | 0 | 0 | 0.42623 | 0 | 0 | 0.009103 | 0 | 0 | 0 | 0 | 0 | 0.344262 | 1 | 0.229508 | false | 0 | 0.032787 | 0 | 0.52459 | 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 | 1 | 0 | 0 | 2 |
63fdf8e08e76377f89360edb0faca9559218be4f | 239 | py | Python | test.py | linzhiming0826/ADSL | b6ada0fd24da9716f0e413ee1254165f257d674d | [
"MIT"
] | 6 | 2017-09-21T07:02:16.000Z | 2019-10-08T03:42:22.000Z | test.py | linzhiming0826/ADSL | b6ada0fd24da9716f0e413ee1254165f257d674d | [
"MIT"
] | null | null | null | test.py | linzhiming0826/ADSL | b6ada0fd24da9716f0e413ee1254165f257d674d | [
"MIT"
] | 4 | 2017-06-17T08:03:44.000Z | 2019-02-15T07:16:51.000Z | import urllib2
proxies = {"http": "61.140.104.98:6666"}
proxy_s = urllib2.ProxyHandler(proxies)
opener = urllib2.build_opener(proxy_s)
urllib2.install_opener(opener)
content = urllib2.urlopen('http://wwww.baidu.com').read()
print content
| 26.555556 | 57 | 0.76569 | 34 | 239 | 5.264706 | 0.647059 | 0.067039 | 0.145251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086364 | 0.079498 | 239 | 8 | 58 | 29.875 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.179916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
120d14805c68a62a05c0a3b41f12afb888f8640d | 7,048 | py | Python | project/number.py | rainbowhuanguw/electionguard-SDK | 789def57a8aa6a43fa59af4e9e8bfb37ea6ebe1c | [
"MIT"
] | null | null | null | project/number.py | rainbowhuanguw/electionguard-SDK | 789def57a8aa6a43fa59af4e9e8bfb37ea6ebe1c | [
"MIT"
] | null | null | null | project/number.py | rainbowhuanguw/electionguard-SDK | 789def57a8aa6a43fa59af4e9e8bfb37ea6ebe1c | [
"MIT"
] | null | null | null | import random
import hashlib
from typing import (
Sequence
)
LARGE_PRIME = (int(('''104438888141315250669175271071662438257996424904738378038423348328
3953907971553643537729993126875883902173634017777416360502926082946377942955704498
542097614841825246773580689398386320439747911160897731551074903967243883427132918... | 30.912281 | 111 | 0.665011 | 916 | 7,048 | 5.049127 | 0.275109 | 0.021622 | 0.015568 | 0.012973 | 0.150054 | 0.125189 | 0.094919 | 0.068973 | 0.068973 | 0.039351 | 0 | 0.247391 | 0.252128 | 7,048 | 228 | 112 | 30.912281 | 0.630051 | 0.416714 | 0 | 0.159574 | 0 | 0 | 0.338139 | 0.318218 | 0 | 1 | 0 | 0 | 0 | 1 | 0.117021 | false | 0 | 0.031915 | 0 | 0.329787 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
12182629091cb7c9a36e0ac85888b105b6da507b | 742 | py | Python | controller/front_controller.py | jvpersuhn/Certo | 7e8c48556c4eee787e9f7237f7bfdf3517d2bee0 | [
"MIT"
] | null | null | null | controller/front_controller.py | jvpersuhn/Certo | 7e8c48556c4eee787e9f7237f7bfdf3517d2bee0 | [
"MIT"
] | null | null | null | controller/front_controller.py | jvpersuhn/Certo | 7e8c48556c4eee787e9f7237f7bfdf3517d2bee0 | [
"MIT"
] | null | null | null | from dao.front_dao import FrontDao, FrontEnd
class FrontController:
def __init__(self):
self.dao = FrontDao()
def select_all(self):
lista = self.dao.select_all()
lista_retorno = []
for b in lista:
ba = FrontEnd(b[0], b[1], b[2], b[3])
lista_retor... | 25.586207 | 57 | 0.563342 | 97 | 742 | 4.185567 | 0.309278 | 0.103448 | 0.059113 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01581 | 0.318059 | 742 | 29 | 58 | 25.586207 | 0.786561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0.047619 | 0.52381 | 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 | 1 | 0 | 0 | 2 |
122b4d8686d4754b36464f16fd0acd2ea85f85c9 | 4,022 | py | Python | tests/test_sklearn_normalizer_converter.py | twosense/sklearn-onnx | 544570e330861afaf77143b9d63133b31a149120 | [
"Apache-2.0"
] | 323 | 2018-12-18T20:23:19.000Z | 2022-03-25T09:47:31.000Z | tests/test_sklearn_normalizer_converter.py | twosense/sklearn-onnx | 544570e330861afaf77143b9d63133b31a149120 | [
"Apache-2.0"
] | 408 | 2019-01-02T12:16:10.000Z | 2022-03-21T14:01:28.000Z | tests/test_sklearn_normalizer_converter.py | twosense/sklearn-onnx | 544570e330861afaf77143b9d63133b31a149120 | [
"Apache-2.0"
] | 70 | 2018-12-20T19:36:07.000Z | 2022-03-14T06:41:36.000Z | # SPDX-License-Identifier: Apache-2.0
"""
Tests scikit-normalizer converter.
"""
import unittest
import numpy
from sklearn.preprocessing import Normalizer
from skl2onnx import convert_sklearn
from skl2onnx.common.data_types import (
Int64TensorType, FloatTensorType, DoubleTensorType)
from test_utils import dump_da... | 38.673077 | 70 | 0.625559 | 447 | 4,022 | 5.393736 | 0.167785 | 0.089589 | 0.031937 | 0.046454 | 0.73455 | 0.73455 | 0.661136 | 0.661136 | 0.661136 | 0.661136 | 0 | 0.029686 | 0.2546 | 4,022 | 103 | 71 | 39.048544 | 0.774516 | 0.017653 | 0 | 0.681818 | 0 | 0 | 0.112097 | 0.049201 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.079545 | false | 0 | 0.068182 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
123073f757d811682f99809d0276fd5f561884a7 | 1,362 | py | Python | app.py | CalvinGreen94/Heroku_Heart_Attack | 34d8de6598c447616b6f312f55ce18e1d3b1df45 | [
"MIT"
] | null | null | null | app.py | CalvinGreen94/Heroku_Heart_Attack | 34d8de6598c447616b6f312f55ce18e1d3b1df45 | [
"MIT"
] | null | null | null | app.py | CalvinGreen94/Heroku_Heart_Attack | 34d8de6598c447616b6f312f55ce18e1d3b1df45 | [
"MIT"
] | null | null | null | import numpy as np
from flask import Flask, session,abort,request, jsonify, render_template,redirect,url_for,flash
import pickle
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from keras.models import load_model
import os
import stripe
... | 37.833333 | 226 | 0.754772 | 195 | 1,362 | 5.112821 | 0.533333 | 0.06319 | 0.045135 | 0.042126 | 0.058175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015557 | 0.150514 | 1,362 | 35 | 227 | 38.914286 | 0.846154 | 0.026432 | 0 | 0 | 0 | 0.032258 | 0.170543 | 0.022481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.548387 | 0.032258 | 0.677419 | 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 | 1 | 0 | 0 | 2 |
12338956ad8752ad403ece5c6089ad3bd8dd5473 | 471 | py | Python | tests/test_block_observation.py | knifecake/leapdna-python | 261a72a12eee82ddf489ed14a728723e2c627035 | [
"MIT"
] | null | null | null | tests/test_block_observation.py | knifecake/leapdna-python | 261a72a12eee82ddf489ed14a728723e2c627035 | [
"MIT"
] | null | null | null | tests/test_block_observation.py | knifecake/leapdna-python | 261a72a12eee82ddf489ed14a728723e2c627035 | [
"MIT"
] | null | null | null | from leapdna.errors import LeapdnaError
from leapdna.blocks.locus import Locus
from leapdna.blocks.allele import Allele
from .support import TestCase
from leapdna.blocks import Observation
class TestObservationBlock(TestCase):
def test_can_be_instantiated(self):
l1 = Locus('l1')
a1 = Allele('a1',... | 29.4375 | 54 | 0.719745 | 62 | 471 | 5.419355 | 0.548387 | 0.130952 | 0.151786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026247 | 0.191083 | 471 | 16 | 55 | 29.4375 | 0.855643 | 0 | 0 | 0 | 0 | 0 | 0.029661 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1240a99795983dd827ae6962329392a98924db62 | 492 | py | Python | supar/models/__init__.py | ExplorerFreda/parser | ca0a70b4c8a4fd0323ef7992d560e3da63de510a | [
"MIT"
] | null | null | null | supar/models/__init__.py | ExplorerFreda/parser | ca0a70b4c8a4fd0323ef7992d560e3da63de510a | [
"MIT"
] | null | null | null | supar/models/__init__.py | ExplorerFreda/parser | ca0a70b4c8a4fd0323ef7992d560e3da63de510a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .constituency import CRFConstituencyModel
from .dependency import (BiaffineDependencyModel, CRF2oDependencyModel,
CRFDependencyModel, CRFNPDependencyModel,
SimplestBiaffineDependencyModel)
__all__ = ['BiaffineDependencyModel',
'... | 35.142857 | 71 | 0.656504 | 22 | 492 | 14.5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.268293 | 492 | 13 | 72 | 37.846154 | 0.877778 | 0.042683 | 0 | 0 | 0 | 0 | 0.28145 | 0.115139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
12476847724de8fd1135f3ccc4ee854fa0ddf90e | 612 | py | Python | packages/depolitics.org/_old/src/application/forms.py | caveljan/depolitics | f2aed6ab2857175678cc433ede1d5b7e5961fa07 | [
"MIT"
] | null | null | null | packages/depolitics.org/_old/src/application/forms.py | caveljan/depolitics | f2aed6ab2857175678cc433ede1d5b7e5961fa07 | [
"MIT"
] | 4 | 2020-08-06T11:07:03.000Z | 2020-08-06T11:07:04.000Z | packages/depolitics.org/_old/src/application/forms.py | caveljan/depolitics | f2aed6ab2857175678cc433ede1d5b7e5961fa07 | [
"MIT"
] | null | null | null | from django import forms
from .models import Politician
class AddForm(forms.ModelForm):
class Meta:
model = Politician
fields = ('first_name',
'last_name',
'name_variants',
'current_function',
'previous_functions')
class Se... | 25.5 | 46 | 0.52451 | 49 | 612 | 6.326531 | 0.469388 | 0.090323 | 0.122581 | 0.148387 | 0.677419 | 0.677419 | 0.677419 | 0.677419 | 0.677419 | 0.677419 | 0 | 0 | 0.387255 | 612 | 24 | 46 | 25.5 | 0.826667 | 0.058824 | 0 | 0.777778 | 0 | 0 | 0.229565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
124914a368a1a9f624cf002cdea171e169b791ae | 279 | py | Python | custom_components/ge_home/entities/ccm/ge_ccm_pot_not_present_binary_sensor.py | 87racer/ha_gehome | 8b8741aec9b07bc13c270c1377a5e68c149d6f91 | [
"MIT"
] | null | null | null | custom_components/ge_home/entities/ccm/ge_ccm_pot_not_present_binary_sensor.py | 87racer/ha_gehome | 8b8741aec9b07bc13c270c1377a5e68c149d6f91 | [
"MIT"
] | null | null | null | custom_components/ge_home/entities/ccm/ge_ccm_pot_not_present_binary_sensor.py | 87racer/ha_gehome | 8b8741aec9b07bc13c270c1377a5e68c149d6f91 | [
"MIT"
] | null | null | null | from ..common import GeErdBinarySensor
class GeCcmPotNotPresentBinarySensor(GeErdBinarySensor):
@property
def is_on(self) -> bool:
"""Return True if entity is not pot present."""
return not self._boolify(self.appliance.get_erd_value(self.erd_code))
| 31 | 77 | 0.72043 | 33 | 279 | 5.939394 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18638 | 279 | 8 | 78 | 34.875 | 0.863436 | 0.146953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
124bee67e6751a3ce468b11029cc39f732244ae7 | 412 | py | Python | schools2/pages.py | ferleyrincon/schools | a2d8ce3a5f6f830d7e218947ac5f7990edb725dd | [
"MIT"
] | null | null | null | schools2/pages.py | ferleyrincon/schools | a2d8ce3a5f6f830d7e218947ac5f7990edb725dd | [
"MIT"
] | null | null | null | schools2/pages.py | ferleyrincon/schools | a2d8ce3a5f6f830d7e218947ac5f7990edb725dd | [
"MIT"
] | null | null | null | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants
class consent(Page):
form_model = 'player'
form_fields = ['consent','consent_account']
def is_displayed(self):
return self.round_number == 1
class ResultsWaitPage(WaitPage):
... | 18.727273 | 51 | 0.725728 | 51 | 412 | 5.705882 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002985 | 0.186893 | 412 | 21 | 52 | 19.619048 | 0.865672 | 0 | 0 | 0.153846 | 0 | 0 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.230769 | 0.076923 | 0.769231 | 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 | 1 | 0 | 0 | 2 |
1255217ef4abcc9da43822de20b222a1c3247deb | 1,224 | py | Python | app/create_app.py | KarolJaksik/IO-Project | e724f54824eb1dcf4575d9669a8e34772a26f37d | [
"MIT"
] | 3 | 2020-01-26T16:40:05.000Z | 2020-02-03T21:04:55.000Z | app/create_app.py | KarolJaksik/IO-Project | e724f54824eb1dcf4575d9669a8e34772a26f37d | [
"MIT"
] | 9 | 2019-12-28T19:03:38.000Z | 2020-01-24T23:24:55.000Z | app/create_app.py | KarolJaksik/IO-Project | e724f54824eb1dcf4575d9669a8e34772a26f37d | [
"MIT"
] | 2 | 2019-12-02T19:58:14.000Z | 2019-12-04T18:14:11.000Z | from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from passlib.apps import custom_app_context as pwd_context
from flask_jwt_extended import JWTManager
from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_optional,
... | 40.8 | 104 | 0.754902 | 173 | 1,224 | 5.023121 | 0.352601 | 0.093211 | 0.082854 | 0.055236 | 0.149597 | 0.089758 | 0.089758 | 0.089758 | 0.089758 | 0 | 0 | 0.002874 | 0.147059 | 1,224 | 29 | 105 | 42.206897 | 0.829502 | 0 | 0 | 0 | 0 | 0 | 0.163399 | 0.043301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.423077 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
125b286a799a710d38f1d76f1ae688fe058af8cc | 175 | py | Python | tests/util/util.py | havardhuns/graphsense-REST | e2b2c851fc6fd7bba06de66a7abdb82cb76ad1d0 | [
"MIT"
] | null | null | null | tests/util/util.py | havardhuns/graphsense-REST | e2b2c851fc6fd7bba06de66a7abdb82cb76ad1d0 | [
"MIT"
] | null | null | null | tests/util/util.py | havardhuns/graphsense-REST | e2b2c851fc6fd7bba06de66a7abdb82cb76ad1d0 | [
"MIT"
] | null | null | null | import yaml
def yamldump(data):
if isinstance(data, list):
data = [d.to_dict() for d in data]
else:
data = data.to_dict()
print(yaml.dump(data))
| 17.5 | 42 | 0.588571 | 26 | 175 | 3.884615 | 0.615385 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28 | 175 | 9 | 43 | 19.444444 | 0.801587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
126121bee226f5e7701676dff7c1bc176359c66c | 306 | py | Python | events/tests.py | Chiefautoparts/MillGeekV2 | f8bb7edb7c2c2a65e811c34b4572760ce4036b12 | [
"MIT"
] | null | null | null | events/tests.py | Chiefautoparts/MillGeekV2 | f8bb7edb7c2c2a65e811c34b4572760ce4036b12 | [
"MIT"
] | 10 | 2017-10-24T03:55:25.000Z | 2022-03-11T23:19:21.000Z | events/tests.py | Chiefautoparts/MillGeekV2 | f8bb7edb7c2c2a65e811c34b4572760ce4036b12 | [
"MIT"
] | 1 | 2017-11-06T21:32:44.000Z | 2017-11-06T21:32:44.000Z | # # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
# from django.test import TestCase
# # Create your tests here.
# class SimpleTest(TestCase):
# self.failUnlessEqual(1 + 1, 2)
# __test__ = {"doctest": """
# Another way to test that 1 + 1 is equal to 2.
# >>> 1 + 1 == 2
# True
# """} | 20.4 | 47 | 0.627451 | 42 | 306 | 4.357143 | 0.690476 | 0.032787 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041152 | 0.205882 | 306 | 15 | 48 | 20.4 | 0.711934 | 0.905229 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
127164924bd15f0a8d7f504d78de298fd1ad8503 | 437 | py | Python | tests/testutils.py | xxh840912/zask | e7b1ae067cba5abf0eea4142a0c1ec1f22ef1a09 | [
"BSD-3-Clause"
] | null | null | null | tests/testutils.py | xxh840912/zask | e7b1ae067cba5abf0eea4142a0c1ec1f22ef1a09 | [
"BSD-3-Clause"
] | null | null | null | tests/testutils.py | xxh840912/zask | e7b1ae067cba5abf0eea4142a0c1ec1f22ef1a09 | [
"BSD-3-Clause"
] | null | null | null | import random
import os
_tmpfiles = []
def random_ipc_endpoint():
tmpfile = '/tmp/zerorpc_test_socket_{0}.sock'.format(
str(random.random())[2:])
_tmpfiles.append(tmpfile)
return 'ipc://{0}'.format(tmpfile)
def teardown():
global _tmpfiles
for tmpfile in _tmpfiles:
print 'unlink... | 19 | 57 | 0.604119 | 48 | 437 | 5.291667 | 0.604167 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009464 | 0.2746 | 437 | 22 | 58 | 19.863636 | 0.791798 | 0 | 0 | 0.117647 | 0 | 0 | 0.10984 | 0.075515 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.058824 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
12735c141b3ad82551730dcbfa865f5b83085409 | 507 | py | Python | tools/wptrunner/wptrunner/browsers/safari_webdriver.py | Ms2ger/web-platform-tests | 645c0e8a5c028a613e7ad1732834100dbe946fc7 | [
"BSD-3-Clause"
] | 1 | 2022-03-19T09:43:35.000Z | 2022-03-19T09:43:35.000Z | tools/wptrunner/wptrunner/browsers/safari_webdriver.py | Ms2ger/web-platform-tests | 645c0e8a5c028a613e7ad1732834100dbe946fc7 | [
"BSD-3-Clause"
] | null | null | null | tools/wptrunner/wptrunner/browsers/safari_webdriver.py | Ms2ger/web-platform-tests | 645c0e8a5c028a613e7ad1732834100dbe946fc7 | [
"BSD-3-Clause"
] | null | null | null | from .base import inherit
from . import safari
from ..executors.executorwebdriver import (WebDriverTestharnessExecutor, # noqa: F401
WebDriverRefTestExecutor) # noqa: F401
inherit(safari, globals(), "safari_webdriver")
# __wptrunner__ magically appears from inherit, F821... | 39 | 87 | 0.717949 | 43 | 507 | 8.162791 | 0.534884 | 0.182336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036408 | 0.187377 | 507 | 12 | 88 | 42.25 | 0.815534 | 0.220907 | 0 | 0 | 0 | 0 | 0.262211 | 0.133676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
89c43828c60a75508d2b16dcb632085f25818313 | 7,755 | py | Python | wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_message_info_editor.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 26 | 2018-12-17T13:45:25.000Z | 2022-01-16T20:00:04.000Z | wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_message_info_editor.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 4 | 2019-01-03T12:08:52.000Z | 2021-12-02T05:21:13.000Z | wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_message_info_editor.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 8 | 2019-01-24T08:22:06.000Z | 2022-02-07T11:37:00.000Z | # Copyright (C) 2015-2021 Virgil Security, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistributions of source code must retain the above copyright
# notice, this li... | 53.482759 | 133 | 0.779755 | 1,105 | 7,755 | 5.038914 | 0.208145 | 0.18768 | 0.231681 | 0.324353 | 0.636853 | 0.565733 | 0.413973 | 0.258621 | 0.17852 | 0.171695 | 0 | 0.002158 | 0.16325 | 7,755 | 144 | 134 | 53.854167 | 0.85591 | 0.310767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183099 | false | 0.014085 | 0.070423 | 0 | 0.450704 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
89f973d2c79048ec87a05c48da98fc0414c94bc9 | 10,205 | py | Python | torchsr/models/carn.py | mgm52/torchSR | 7d9fb3f2f95b58fa3bb0e9ab00dec4c1a2265ac2 | [
"MIT"
] | null | null | null | torchsr/models/carn.py | mgm52/torchSR | 7d9fb3f2f95b58fa3bb0e9ab00dec4c1a2265ac2 | [
"MIT"
] | null | null | null | torchsr/models/carn.py | mgm52/torchSR | 7d9fb3f2f95b58fa3bb0e9ab00dec4c1a2265ac2 | [
"MIT"
] | null | null | null | # Implementation from https://github.com/nmhkahn/CARN-pytorch
# Fast, Accurate, and Lightweight Super-Resolution with Cascading Residual Network
# https://arxiv.org/abs/1803.08664
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.hub import load_state_dict_from_url
__all__ = [ ... | 29.665698 | 110 | 0.541401 | 1,374 | 10,205 | 3.88064 | 0.114265 | 0.009377 | 0.007877 | 0.011253 | 0.724119 | 0.702176 | 0.67967 | 0.666167 | 0.654539 | 0.639535 | 0 | 0.069477 | 0.332876 | 10,205 | 343 | 111 | 29.752187 | 0.713719 | 0.019696 | 0 | 0.605469 | 0 | 0.007813 | 0.031603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.019531 | 0.007813 | 0.210938 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
d6063b7749c5987d9f51c67f75e989a2122b528d | 5,654 | py | Python | dentalapp-backend/dentalapp/userauth/api.py | PavelescuVictor/DentalApplicationReact | e35e8f04c39fc52bb49d99ffd573c5ab8cc05316 | [
"MIT"
] | 1 | 2021-03-22T03:47:41.000Z | 2021-03-22T03:47:41.000Z | dentalapp-backend/dentalapp/userauth/api.py | PavelescuVictor/DentalApplicationReact | e35e8f04c39fc52bb49d99ffd573c5ab8cc05316 | [
"MIT"
] | 21 | 2020-10-17T16:15:29.000Z | 2022-02-27T10:36:38.000Z | dentalapp-backend/dentalapp/userauth/api.py | PavelescuVictor/DentalApplication | 6fbc5e34508671442d22a0894057f22e7361f90a | [
"MIT"
] | null | null | null | from django.contrib.auth.signals import user_logged_in, user_logged_out
from rest_framework import generics, permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated, AllowAny
from knox.models import AuthToken
... | 36.477419 | 142 | 0.657764 | 555 | 5,654 | 6.562162 | 0.245045 | 0.042284 | 0.028007 | 0.032949 | 0.484624 | 0.450027 | 0.383855 | 0.372323 | 0.372323 | 0.339923 | 0 | 0.004477 | 0.249381 | 5,654 | 154 | 143 | 36.714286 | 0.853676 | 0.075875 | 0 | 0.465347 | 0 | 0 | 0.049537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089109 | false | 0.089109 | 0.09901 | 0 | 0.564356 | 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 | 1 | 0 | 0 | 2 |
d60932307885a16774fe435ed2480ad2a70533c4 | 127,641 | py | Python | pysnmp-with-texts/F5-3DNS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/F5-3DNS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/F5-3DNS-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 F5-3DNS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/F5-3DNS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:11:39 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 140.264835 | 9,965 | 0.772283 | 15,807 | 127,641 | 6.235592 | 0.058708 | 0.071221 | 0.124637 | 0.01254 | 0.629375 | 0.491559 | 0.460991 | 0.441166 | 0.403263 | 0.352363 | 0 | 0.064406 | 0.095588 | 127,641 | 909 | 9,966 | 140.419142 | 0.789423 | 0.002476 | 0 | 0 | 0 | 0.063193 | 0.252977 | 0.00073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002217 | 0.006652 | 0 | 0.006652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d611f1cb4cfb20faf7f558ddb22a6f330384ead1 | 335 | py | Python | CodeWars/2016/MultiplesOf3and5-6k.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | CodeWars/2016/MultiplesOf3and5-6k.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | CodeWars/2016/MultiplesOf3and5-6k.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | #Return the sum of all the multiples of 3 or 5 below the number passed in.
def solution(number):
lit = []
for i in range(0, number):
if i % 3 == 0 or i % 5 == 0:
lit.append(i)
return sum(lit)
#Alternate Solution
def solution(number):
return sum(x for x in range(number) if x % 3 == 0... | 30.454545 | 74 | 0.591045 | 61 | 335 | 3.245902 | 0.393443 | 0.111111 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04661 | 0.295522 | 335 | 11 | 75 | 30.454545 | 0.792373 | 0.271642 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d612e9894a415b534ceb8ce1315755ff8064ecac | 648 | py | Python | Bagpipe/Coordinator/sender.py | kasramvd/Rexy | 3c53a86aac0ad6a006a3319d23017e8e19297616 | [
"MIT"
] | 51 | 2017-01-22T11:03:07.000Z | 2020-06-03T01:47:32.000Z | Bagpipe/Coordinator/sender.py | imbi7py/Rexy | 1e50dd877cf254984c34cb0f7e98fa663143d13b | [
"MIT"
] | 2 | 2018-06-26T06:46:19.000Z | 2018-09-13T07:56:11.000Z | Bagpipe/Coordinator/sender.py | imbi7py/Rexy | 1e50dd877cf254984c34cb0f7e98fa663143d13b | [
"MIT"
] | 11 | 2016-11-13T12:55:54.000Z | 2019-07-15T08:14:03.000Z | """
=====
sender.py
=====
Import data from server.
============================
"""
from flask import Flask, jsonify
from flask import make_response
from config import sender_links
app = Flask(__name__)
@app.errorhandler(404)
def not_found(error):
return make_response(jsonify({'error': 'Not found'}), 404)
... | 15.428571 | 62 | 0.578704 | 81 | 648 | 4.45679 | 0.481481 | 0.049862 | 0.083102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020794 | 0.183642 | 648 | 42 | 63 | 15.428571 | 0.661626 | 0.155864 | 0 | 0 | 0 | 0 | 0.054326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.2 | 0.066667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d643d61c28f3d72f8c7249c9975e1b7ce5f80f89 | 10,835 | py | Python | fuzzysets/sets/base.py | StiliyanDr/fuzzy-sets | 9355ac5da7d96ea32675ea96fb116ce8dfd5cf91 | [
"MIT"
] | 1 | 2021-09-22T13:40:25.000Z | 2021-09-22T13:40:25.000Z | fuzzysets/sets/base.py | StiliyanDr/fuzzy-sets | 9355ac5da7d96ea32675ea96fb116ce8dfd5cf91 | [
"MIT"
] | null | null | null | fuzzysets/sets/base.py | StiliyanDr/fuzzy-sets | 9355ac5da7d96ea32675ea96fb116ce8dfd5cf91 | [
"MIT"
] | 1 | 2021-12-04T00:11:15.000Z | 2021-12-04T00:11:15.000Z | import abc
import operator
from fuzzysets import utils
class Domain(abc.ABC):
"""
An abstract class for domain of a fuzzy set.
"""
@abc.abstractmethod
def __iter__(self):
"""
:returns: a generator which yields the elements of the domain.
The order of the elements is the sa... | 29.930939 | 72 | 0.574804 | 1,436 | 10,835 | 4.160864 | 0.135794 | 0.01841 | 0.032134 | 0.030126 | 0.508619 | 0.439498 | 0.387615 | 0.368201 | 0.34728 | 0.31046 | 0 | 0.009606 | 0.327457 | 10,835 | 361 | 73 | 30.01385 | 0.810347 | 0.427688 | 0 | 0.267176 | 0 | 0 | 0.038929 | 0.00811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282443 | false | 0.038168 | 0.022901 | 0.038168 | 0.534351 | 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 | 1 | 0 | 0 | 2 |
d647b56f38b5bca7ba35da6aa02c1b4320ef5237 | 54 | py | Python | config/production.py | javicacheiro/device-info-service | 54c593bd78c3161a5b84a1d8f4e4f20ac85d5ffe | [
"Apache-2.0"
] | null | null | null | config/production.py | javicacheiro/device-info-service | 54c593bd78c3161a5b84a1d8f4e4f20ac85d5ffe | [
"Apache-2.0"
] | null | null | null | config/production.py | javicacheiro/device-info-service | 54c593bd78c3161a5b84a1d8f4e4f20ac85d5ffe | [
"Apache-2.0"
] | null | null | null | DEBUG = False
CONSUL_URL = 'http://consul:8500/v1/kv'
| 18 | 39 | 0.703704 | 9 | 54 | 4.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104167 | 0.111111 | 54 | 2 | 40 | 27 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c390eb38f0d12860b67b62b3e4b78952d5bae852 | 1,359 | py | Python | FeatureStacker.py | menikhilpandey/Supply-Chain-Risk-Management | 9306f9dd0f5693a2ee2b5c1ab76091ad6d9f1c8c | [
"Apache-2.0"
] | 11 | 2017-09-18T11:14:15.000Z | 2021-10-05T18:52:32.000Z | FeatureStacker.py | menikhilpandey/Supply-Chain-Risk-Management | 9306f9dd0f5693a2ee2b5c1ab76091ad6d9f1c8c | [
"Apache-2.0"
] | null | null | null | FeatureStacker.py | menikhilpandey/Supply-Chain-Risk-Management | 9306f9dd0f5693a2ee2b5c1ab76091ad6d9f1c8c | [
"Apache-2.0"
] | 12 | 2017-04-09T17:47:11.000Z | 2022-03-21T00:14:40.000Z | # class FeatureStacker(BaseEstimator):
# """Stacks several transformer objects to yield concatenated features.
# Similar to pipeline, a list of tuples ``(name, estimator)`` is passed
# to the constructor.
# """
# def __init__(self, transformer_list):
# self.transformer_list = transform... | 37.75 | 77 | 0.557027 | 149 | 1,359 | 4.959732 | 0.409396 | 0.142084 | 0.154263 | 0.056834 | 0.133965 | 0.133965 | 0.133965 | 0 | 0 | 0 | 0 | 0 | 0.328182 | 1,359 | 36 | 78 | 37.75 | 0.80942 | 0.921266 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3a675f426aab0630dd6767c807ae501d5ea8b5b | 2,380 | py | Python | bin/build.py | itay-moav/rahl_commander | 79b9bb7d16f4f9511820d0e0ffcbba6ee8e0e42b | [
"MIT"
] | 1 | 2016-12-19T16:09:02.000Z | 2016-12-19T16:09:02.000Z | bin/build.py | itay-moav/rahl_commander | 79b9bb7d16f4f9511820d0e0ffcbba6ee8e0e42b | [
"MIT"
] | 19 | 2015-01-08T18:34:13.000Z | 2018-02-26T14:51:22.000Z | bin/build.py | itay-moav/rahl_commander | 79b9bb7d16f4f9511820d0e0ffcbba6ee8e0e42b | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3.4
# encoding: utf-8
'''
pyverse.bin.build -- builds DB objects into your database.
pyverse.bin.build Use this command to build the various code generate objects in your DB, like Stored Procedures, Functions, Views and Triggers
@author: Itay Moav
@copyright: 2014 open source. All rights... | 40.338983 | 143 | 0.595378 | 288 | 2,380 | 4.878472 | 0.430556 | 0.032028 | 0.060498 | 0.081851 | 0.381495 | 0.381495 | 0.381495 | 0.381495 | 0.353025 | 0.353025 | 0 | 0.005034 | 0.24874 | 2,380 | 58 | 144 | 41.034483 | 0.780761 | 0.263445 | 0 | 0 | 1 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.04 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3b7a94c2b11a1916a266bef71cf9dd626fa2198 | 2,385 | py | Python | api/app/controllers/api/__init__.py | riszkymf/RESTKnot | 2788e0cce127e6d66fdb72e81b31a983e89979d2 | [
"MIT"
] | null | null | null | api/app/controllers/api/__init__.py | riszkymf/RESTKnot | 2788e0cce127e6d66fdb72e81b31a983e89979d2 | [
"MIT"
] | null | null | null | api/app/controllers/api/__init__.py | riszkymf/RESTKnot | 2788e0cce127e6d66fdb72e81b31a983e89979d2 | [
"MIT"
] | null | null | null | from flask import Blueprint
from flask_restful import Api
from .user import *
from .auth import *
from .zone import *
from .type import *
from .ttl import *
from .record import *
from .ttldata import *
from .content import *
from .content_serial import *
from .dns.create import *
from .command_rest import *
from .admin... | 33.125 | 78 | 0.780294 | 304 | 2,385 | 5.914474 | 0.246711 | 0.110122 | 0.256952 | 0.044494 | 0.077864 | 0.077864 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073375 | 2,385 | 71 | 79 | 33.591549 | 0.813575 | 0.025157 | 0 | 0 | 0 | 0 | 0.219291 | 0.106834 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.054545 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
c3ba0230a4e4871074c50d277830d5b14f91abdd | 265 | py | Python | demo/check_cluster_data_structure_consistency.py | spyke/spyke | 20934521de9c557924911cf6190690ac1c6f8e80 | [
"CNRI-Python"
] | 22 | 2015-06-01T03:31:00.000Z | 2022-03-18T09:12:28.000Z | demo/check_cluster_data_structure_consistency.py | spyke/spyke | 20934521de9c557924911cf6190690ac1c6f8e80 | [
"CNRI-Python"
] | 3 | 2017-03-24T19:16:02.000Z | 2021-01-27T14:34:30.000Z | demo/check_cluster_data_structure_consistency.py | spyke/spyke | 20934521de9c557924911cf6190690ac1c6f8e80 | [
"CNRI-Python"
] | 6 | 2015-07-10T15:28:08.000Z | 2022-03-17T19:30:45.000Z | # code to run in IPython shell to test whether clustering info in spikes struct array and in
# the neurons dict is consistent:
for nid in sorted(self.sort.neurons):
print(nid, (self.sort.neurons[nid].sids == np.where(self.sort.spikes['nid'] == nid)[0]).all())
| 44.166667 | 98 | 0.716981 | 45 | 265 | 4.222222 | 0.666667 | 0.126316 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004425 | 0.14717 | 265 | 5 | 99 | 53 | 0.836283 | 0.460377 | 0 | 0 | 0 | 0 | 0.021429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
c3d19471dd44f13ba114f01b6f7e73c17f693a73 | 10,366 | py | Python | src/pudl/metadata/dfs.py | Wheelspawn/pudl | 40d176313e60dfa9d2481f63842ed23f08f1ad5f | [
"MIT"
] | null | null | null | src/pudl/metadata/dfs.py | Wheelspawn/pudl | 40d176313e60dfa9d2481f63842ed23f08f1ad5f | [
"MIT"
] | null | null | null | src/pudl/metadata/dfs.py | Wheelspawn/pudl | 40d176313e60dfa9d2481f63842ed23f08f1ad5f | [
"MIT"
] | null | null | null | """Static database tables."""
import pandas as pd
FERC_ACCOUNTS: pd.DataFrame = pd.DataFrame(
columns=['row_number', 'ferc_account_id', 'ferc_account_description'],
data=[
# 1. Intangible Plant
(2, '301', 'Intangible: Organization'),
(3, '302', 'Intangible: Franchises and consents'),
... | 59.234286 | 122 | 0.646344 | 1,139 | 10,366 | 5.786655 | 0.34504 | 0.043241 | 0.033379 | 0.020634 | 0.183129 | 0.04233 | 0.022758 | 0 | 0 | 0 | 0 | 0.068672 | 0.217538 | 10,366 | 174 | 123 | 59.574713 | 0.743928 | 0.047173 | 0 | 0.013793 | 0 | 0 | 0.663392 | 0.082805 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.006897 | 0 | 0.006897 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3e629bce42e91bf6c21036519826bd3e4419ee6 | 2,412 | py | Python | poptox/leslie_probit/leslie_probit_parameters.py | quanted/poptox | 5579f9571ff7e3bddf5ed79c3641337e3df7f8f2 | [
"Unlicense"
] | 1 | 2016-03-20T21:15:41.000Z | 2016-03-20T21:15:41.000Z | poptox/leslie_probit/leslie_probit_parameters.py | quanted/poptox | 5579f9571ff7e3bddf5ed79c3641337e3df7f8f2 | [
"Unlicense"
] | null | null | null | poptox/leslie_probit/leslie_probit_parameters.py | quanted/poptox | 5579f9571ff7e3bddf5ed79c3641337e3df7f8f2 | [
"Unlicense"
] | null | null | null | #*********************************************************#
# @@ScriptName: leslie_probit_parameters.py
# @@Author: Tao Hong
# @@Create Date: 2013-09-23
# @@Modify Date: 2013-09-24
#*********************************************************#
import os
os.environ['DJANGO_SETTINGS_MODULE']='settings'
from django import fo... | 61.846154 | 131 | 0.678275 | 330 | 2,412 | 4.863636 | 0.387879 | 0.08972 | 0.143302 | 0.168224 | 0.433645 | 0.31028 | 0.305296 | 0.205607 | 0.150779 | 0.150779 | 0 | 0.03525 | 0.106136 | 2,412 | 38 | 132 | 63.473684 | 0.709184 | 0.094113 | 0 | 0 | 0 | 0 | 0.245404 | 0.01011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.884615 | 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 | 1 | 0 | 0 | 2 |
c3eb38bcd2db0ed11b5ad615f41b48bc8b747a8f | 1,512 | py | Python | napari_pyclesperanto_assistant/_statistics_of_labeled_pixels.py | jo-mueller/napari_pyclesperanto_assistant | b7d30a6bfb2586384653383ecc4f2c076f7a75c5 | [
"BSD-3-Clause"
] | 16 | 2021-01-27T02:29:24.000Z | 2022-03-29T13:39:36.000Z | napari_pyclesperanto_assistant/_statistics_of_labeled_pixels.py | jo-mueller/napari_pyclesperanto_assistant | b7d30a6bfb2586384653383ecc4f2c076f7a75c5 | [
"BSD-3-Clause"
] | 41 | 2021-01-01T17:45:23.000Z | 2022-03-20T19:54:54.000Z | napari_pyclesperanto_assistant/_statistics_of_labeled_pixels.py | jo-mueller/napari_pyclesperanto_assistant | b7d30a6bfb2586384653383ecc4f2c076f7a75c5 | [
"BSD-3-Clause"
] | 6 | 2021-01-05T13:19:38.000Z | 2022-02-15T15:32:58.000Z | import warnings
import numpy as np
from magicgui.widgets import Table
from napari_plugin_engine import napari_hook_implementation
from napari.types import ImageData, LabelsData, LayerDataTuple
from napari import Viewer
from pandas import DataFrame
from qtpy.QtCore import QTimer
from qtpy.QtWidgets import QTableWidget,... | 37.8 | 137 | 0.771164 | 191 | 1,512 | 5.921466 | 0.465969 | 0.044209 | 0.033599 | 0.044209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181217 | 1,512 | 39 | 138 | 38.769231 | 0.91357 | 0.171958 | 0 | 0.08 | 0 | 0 | 0.068938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.52 | 0 | 0.56 | 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 | 1 | 0 | 0 | 2 |
c3ffe05e2aa8cabb9b15ba39806e4139d38a5c47 | 1,045 | py | Python | src/explainer/task.py | saromanov/explainer | aaa5eeb0316802779891119ed80e946b1b1b39a6 | [
"MIT"
] | null | null | null | src/explainer/task.py | saromanov/explainer | aaa5eeb0316802779891119ed80e946b1b1b39a6 | [
"MIT"
] | null | null | null | src/explainer/task.py | saromanov/explainer | aaa5eeb0316802779891119ed80e946b1b1b39a6 | [
"MIT"
] | null | null | null | from typing import List
from parse import parse_explain
from db import explain, rows_count
from parse import Analyzer
from serializer import Serializer
class Task(Serializer):
''' defines query as a task
'''
def __init__(self, parent_title, title, query, *args, **kwargs):
self.query = query
... | 29.857143 | 101 | 0.635407 | 137 | 1,045 | 4.627737 | 0.313869 | 0.070978 | 0.070978 | 0.056782 | 0.069401 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007682 | 0.252632 | 1,045 | 35 | 102 | 29.857143 | 0.804097 | 0.02201 | 0 | 0 | 0 | 0 | 0.053412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.217391 | 0.130435 | 0.652174 | 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 | 1 | 0 | 0 | 0 | 2 |
7f106d8313014b6c0726498539a362c043096662 | 682 | py | Python | qsr_lib/src/qsrlib_qsrs/qsr_rcc2_rectangle_bounding_boxes_2d.py | yianni/rtd-dbg | 3b730c9122d73c30fbe8fcc4255e6baf82210640 | [
"MIT"
] | null | null | null | qsr_lib/src/qsrlib_qsrs/qsr_rcc2_rectangle_bounding_boxes_2d.py | yianni/rtd-dbg | 3b730c9122d73c30fbe8fcc4255e6baf82210640 | [
"MIT"
] | null | null | null | qsr_lib/src/qsrlib_qsrs/qsr_rcc2_rectangle_bounding_boxes_2d.py | yianni/rtd-dbg | 3b730c9122d73c30fbe8fcc4255e6baf82210640 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function, division
from qsrlib_qsrs.qsr_rcc_abstractclass import QSR_RCC_Abstractclass
class QSR_RCC2_Rectangle_Bounding_Boxes_2D(QSR_RCC_Abstractclass):
"""RCC2 relations.
# 'dc' bb1 is disconnected from bb2
# 'c' bb1 is connected to bb2
"... | 28.416667 | 68 | 0.687683 | 92 | 682 | 4.663043 | 0.532609 | 0.041958 | 0.132867 | 0.111888 | 0.144522 | 0.144522 | 0 | 0 | 0 | 0 | 0 | 0.020295 | 0.205279 | 682 | 23 | 69 | 29.652174 | 0.771218 | 0.178886 | 0 | 0 | 0 | 0 | 0.021834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.888889 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
7f1e49956267f2a12175c41a384cb77e7f213b0b | 1,644 | py | Python | src/solidityobf/transformations/modify_data_flow_1.py | ZhouBoXiao/SolidityObfuscator | 5a1e374fed2718a5e749e99ac7740b714636aa51 | [
"Apache-2.0"
] | 2 | 2020-04-25T08:03:26.000Z | 2020-09-09T11:16:06.000Z | src/solidityobf/transformations/modify_data_flow_1.py | ZhouBoXiao/SolidityObfuscator | 5a1e374fed2718a5e749e99ac7740b714636aa51 | [
"Apache-2.0"
] | 1 | 2020-10-30T07:42:55.000Z | 2020-10-30T09:40:31.000Z | src/solidityobf/transformations/modify_data_flow_1.py | ZhouBoXiao/SolidityObfuscator | 5a1e374fed2718a5e749e99ac7740b714636aa51 | [
"Apache-2.0"
] | 1 | 2020-10-30T02:57:56.000Z | 2020-10-30T02:57:56.000Z | from solidityobf.common.classes import String,PropertyName,Ident,Expr,VarDeclaration,Assignment,Statements
from solidityobf.common.tree_walker import walker
from solidityobf.common.common import deepcopy,is_functioncall_inside
from solidityobf.common.finder import get_all_ident,get_all_upper_statements_and_pos,get_uppe... | 49.818182 | 151 | 0.71837 | 210 | 1,644 | 5.342857 | 0.328571 | 0.066845 | 0.074866 | 0.053476 | 0.207665 | 0.146168 | 0 | 0 | 0 | 0 | 0 | 0.008346 | 0.198297 | 1,644 | 32 | 152 | 51.375 | 0.842944 | 0.056569 | 0 | 0 | 0 | 0 | 0.051067 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | null | null | 0 | 0.185185 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
613d1e90232bf12e6dac2f915d1d7ed62251a802 | 4,140 | py | Python | env/lib/python3.8/site-packages/unidecode/x016.py | avdhari/enigma | b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c | [
"MIT"
] | 48 | 2021-11-20T08:17:53.000Z | 2022-03-19T13:57:15.000Z | venv/lib/python3.6/site-packages/unidecode/x016.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 392 | 2015-07-30T14:37:05.000Z | 2022-03-21T16:56:09.000Z | venv/lib/python3.6/site-packages/unidecode/x016.py | mrsaicharan1/iiita-updates | a22a0157b90d29b946d0f020e5f76744f73a6bff | [
"Apache-2.0"
] | 15 | 2015-10-01T21:31:08.000Z | 2020-05-05T00:03:27.000Z | data = (
'kka', # 0x00
'kk', # 0x01
'nu', # 0x02
'no', # 0x03
'ne', # 0x04
'nee', # 0x05
'ni', # 0x06
'na', # 0x07
'mu', # 0x08
'mo', # 0x09
'me', # 0x0a
'mee', # 0x0b
'mi', # 0x0c
'ma', # 0x0d
'yu', # 0x0e
'yo', # 0x0f
'ye', # 0x10
'yee', # 0x11
'yi', # 0x12
'ya... | 16.046512 | 18 | 0.361836 | 478 | 4,140 | 3.133891 | 0.859833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223033 | 0.370773 | 4,140 | 257 | 19 | 16.108949 | 0.352015 | 0.307729 | 0 | 0.48249 | 0 | 0 | 0.214176 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6149451419b7dd4726f2dbf7c4d90312bb51045b | 389 | py | Python | polling_stations/apps/data_collection/management/commands/import_hyndburn.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_hyndburn.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_hyndburn.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | from data_collection.management.commands import BaseHalaroseCsvImporter
class Command(BaseHalaroseCsvImporter):
council_id = "E07000120"
addresses_name = "local.2018-05-03/Version 1/polling_station_export-2018-02-16.csv"
stations_name = "local.2018-05-03/Version 1/polling_station_export-2018-02-16.csv"
... | 38.9 | 87 | 0.771208 | 52 | 389 | 5.596154 | 0.596154 | 0.092784 | 0.113402 | 0.134021 | 0.38488 | 0.38488 | 0.38488 | 0.38488 | 0.38488 | 0.38488 | 0 | 0.156977 | 0.115681 | 389 | 9 | 88 | 43.222222 | 0.688953 | 0 | 0 | 0 | 0 | 0 | 0.424165 | 0.323907 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 1.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6151dba55a7d6c5652ac6a56f0b03964f038199f | 415 | py | Python | examples/01_mask_xt.py | chris-carbonell/safecracker | 4a8e065ab2e7e04f65b182f5a6d550ccb002cd4d | [
"Unlicense"
] | null | null | null | examples/01_mask_xt.py | chris-carbonell/safecracker | 4a8e065ab2e7e04f65b182f5a6d550ccb002cd4d | [
"Unlicense"
] | null | null | null | examples/01_mask_xt.py | chris-carbonell/safecracker | 4a8e065ab2e7e04f65b182f5a6d550ccb002cd4d | [
"Unlicense"
] | null | null | null | # safecracker
from safecracker import safecracker as sc
from safecracker.safe import zip as safe
from safecracker.tools import mask as sct
from examples import testing
# get safe
safe = safe.Safe("examples/safe/easy.zip")
# get safecracker
pwg = sct.PasswordGenerator("-d", max_len=3) # just digits
safecracker = sc.S... | 27.666667 | 59 | 0.778313 | 58 | 415 | 5.551724 | 0.465517 | 0.139752 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.125301 | 415 | 15 | 60 | 27.666667 | 0.884298 | 0.13012 | 0 | 0 | 0 | 0 | 0.109551 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
6154d9140ce18eb840fcf4c3f8476e87b0cf5528 | 1,198 | py | Python | config.py | Japjappedulap/InfoarenaToGithub | 35c57fb435de393815dde070cca154084335f2da | [
"MIT"
] | 3 | 2018-12-24T13:34:14.000Z | 2022-01-20T11:18:35.000Z | config.py | Japjappedulap/InfoarenaToGithub | 35c57fb435de393815dde070cca154084335f2da | [
"MIT"
] | null | null | null | config.py | Japjappedulap/InfoarenaToGithub | 35c57fb435de393815dde070cca154084335f2da | [
"MIT"
] | null | null | null | import os
username = os.environ['USER_NAME']
sources_directory = os.environ['SOURCE_DIRECTORY']
overwrite_flag = True if os.environ['OVERWRITE_FLAG'] == 'true' else False
# print(type(username), username)
# print(type(sources_directory), sources_directory)
# print(type(overwrite_flag), overwrite_flag)
# You shouldn'... | 25.489362 | 74 | 0.679466 | 149 | 1,198 | 5.315436 | 0.42953 | 0.065657 | 0.09596 | 0.10101 | 0.132576 | 0.132576 | 0 | 0 | 0 | 0 | 0 | 0.037988 | 0.186978 | 1,198 | 46 | 75 | 26.043478 | 0.775154 | 0.131886 | 0 | 0.125 | 0 | 0 | 0.203865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.03125 | 0.125 | 0.5625 | 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 | 1 | 0 | 0 | 2 |
61553fc9d7ec21c894953d92ece789e38abf51dd | 7,412 | py | Python | archive/nexus-api-v2/API/Development/HTML/Interface.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/API/Development/HTML/Interface.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/API/Development/HTML/Interface.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | 1 | 2022-01-03T05:33:15.000Z | 2022-01-03T05:33:15.000Z | # import asyncio
# import dataclasses
# import os
# import ssl
#
# __module__ = __name__
#
# import botocore.exceptions
#
# from fastapi import HTTPException
#
# from . import *
#
# import API.ASGI.Authentication.Token as Token
#
# from starlette.responses import HTMLResponse
#
# # =====================================... | 27.350554 | 198 | 0.461009 | 682 | 7,412 | 4.945748 | 0.388563 | 0.023718 | 0.020753 | 0.034094 | 0.203973 | 0.151794 | 0.119775 | 0.119775 | 0.095168 | 0.095168 | 0 | 0.055063 | 0.345791 | 7,412 | 270 | 199 | 27.451852 | 0.640544 | 0.925661 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
615589717b5cab68d9f4eca0438e46f17131f9f8 | 774 | py | Python | tests/test_vcs_get_set_cmap_colorcell.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 11 | 2018-10-10T03:14:33.000Z | 2022-01-05T14:18:15.000Z | tests/test_vcs_get_set_cmap_colorcell.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 196 | 2018-03-21T19:44:56.000Z | 2021-12-21T21:56:24.000Z | tests/test_vcs_get_set_cmap_colorcell.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 5 | 2019-12-09T21:54:45.000Z | 2022-03-20T04:22:14.000Z | import vcs
import unittest
class TestVCSCMAP(unittest.TestCase):
def testGetSetCmapColorcell(self):
x = vcs.init()
gm = x.createboxfill()
cmap = x.createcolormap()
rgb = cmap.getcolorcell(25)
self.assertEqual(rgb, [28., 14., 45., 100.])
rgb = x.getcolorcell(25)
... | 25.8 | 63 | 0.562016 | 99 | 774 | 4.393939 | 0.30303 | 0.206897 | 0.165517 | 0.183908 | 0.682759 | 0.682759 | 0.668966 | 0.489655 | 0.342529 | 0.342529 | 0 | 0.149123 | 0.263566 | 774 | 29 | 64 | 26.689655 | 0.614035 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
6164e055bbfed10150e1cc78674263106089ceab | 818 | py | Python | tests/integration/test_groups.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 7 | 2019-03-11T16:17:33.000Z | 2020-10-22T21:57:51.000Z | tests/integration/test_groups.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 3 | 2019-11-05T20:22:16.000Z | 2019-12-11T17:09:04.000Z | tests/integration/test_groups.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 2 | 2020-11-19T16:00:36.000Z | 2021-11-19T09:36:13.000Z | import random
from fineract.objects.group import Group
number = random.randint(0, 10000)
def test_create_group(fineract):
group = Group.create(fineract.request_handler, 'Test ' + str(number), 1)
assert isinstance(group, Group)
def test_get_group_by_name(fineract):
group = Group.get_group_by_name(finer... | 29.214286 | 84 | 0.751834 | 115 | 818 | 5.078261 | 0.252174 | 0.10274 | 0.150685 | 0.178082 | 0.678082 | 0.640411 | 0.47774 | 0.47774 | 0.47774 | 0.47774 | 0 | 0.012766 | 0.138142 | 818 | 27 | 85 | 30.296296 | 0.815603 | 0 | 0 | 0.411765 | 0 | 0 | 0.02445 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
617729c1ff4c3bd2a2f42e508a063fff9aa31339 | 1,245 | py | Python | core/system.py | mackay/ble_detector | 4d7c3e9edd7bbeeea0bd0bebce43c1bb9d02ee41 | [
"MIT"
] | null | null | null | core/system.py | mackay/ble_detector | 4d7c3e9edd7bbeeea0bd0bebce43c1bb9d02ee41 | [
"MIT"
] | null | null | null | core/system.py | mackay/ble_detector | 4d7c3e9edd7bbeeea0bd0bebce43c1bb9d02ee41 | [
"MIT"
] | null | null | null | from bunch import Bunch
from core.models import SystemOption
class SystemBase(object):
MODE_KEY = "mode"
MODES = Bunch({
"OFF": "off",
"RUN": "run",
"TRAINING": "training",
"TESTING": "testing",
"DEMO": "demo"
})
FILTER_KEY = "filter-data"
TRAINING_KEY = "... | 24.411765 | 89 | 0.612048 | 144 | 1,245 | 5.118056 | 0.270833 | 0.097693 | 0.036635 | 0.081411 | 0.184532 | 0.09498 | 0.09498 | 0 | 0 | 0 | 0 | 0 | 0.281928 | 1,245 | 50 | 90 | 24.9 | 0.824385 | 0 | 0 | 0.108108 | 0 | 0 | 0.062651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.027027 | 0.054054 | 0.108108 | 0.567568 | 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 | 1 | 0 | 0 | 2 |
617ed245d40e416c5edd3d2691bb15bd88b30231 | 2,685 | py | Python | parser/team04/Interpreter/Expression/bitwise.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team04/Interpreter/Expression/bitwise.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team04/Interpreter/Expression/bitwise.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from Interpreter.Expression.expression import Expression
class BitWise(Expression):
def __init__(self, left, right=None):
self.left = left
self.right = right
def isNumeric(self, value):
return isinstance(value, int) or isinstance(value, float)
def getGraph(self, graph, idParent):... | 27.397959 | 74 | 0.64432 | 296 | 2,685 | 5.618243 | 0.141892 | 0.101022 | 0.093806 | 0.112447 | 0.714372 | 0.689116 | 0.689116 | 0.689116 | 0.689116 | 0.661455 | 0 | 0 | 0.256238 | 2,685 | 97 | 75 | 27.680412 | 0.832749 | 0 | 0 | 0.544118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0 | 0.014706 | 0.014706 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
619e8b1a9428133d78f150ec0b558dbaf507c0f8 | 590 | py | Python | reding/settings.py | BuongiornoMIP/Reding | a27aafaeb7d3a458ca34c97e63853357063d3c43 | [
"MIT"
] | 3 | 2015-01-26T22:52:51.000Z | 2017-07-06T14:21:10.000Z | reding/settings.py | BuongiornoMIP/Reding | a27aafaeb7d3a458ca34c97e63853357063d3c43 | [
"MIT"
] | null | null | null | reding/settings.py | BuongiornoMIP/Reding | a27aafaeb7d3a458ca34c97e63853357063d3c43 | [
"MIT"
] | 3 | 2015-02-25T01:09:16.000Z | 2018-03-04T20:06:53.000Z | import os
REDIS_CONFIG = {
'host': os.getenv('REDING_REDIS_HOST', 'localhost'),
'port': int(os.getenv('REDING_REDIS_PORT', 6379)),
'db': int(os.getenv('REDING_REDIS_DB', 0)),
}
DAEMON_CONFIG = {
'host': os.getenv('REDING_DAEMON_HOST', '0.0.0.0'),
'port': int(os.getenv('REDING_DAEMON_PORT', 5000)),... | 19.666667 | 56 | 0.620339 | 74 | 590 | 4.621622 | 0.432432 | 0.116959 | 0.204678 | 0.166667 | 0.342105 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033264 | 0.184746 | 590 | 29 | 57 | 20.344828 | 0.677755 | 0 | 0 | 0 | 0 | 0 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
61a78af00c4439f76c08238cdafcdf0b53b52da1 | 366 | py | Python | sssdevops/list_tools.py | doaa-altarawy/sssdevops | 57afa179739c3c108941cf1ec6b2e92505aeb3ed | [
"BSD-3-Clause"
] | 2 | 2018-07-17T20:08:25.000Z | 2020-03-12T14:30:37.000Z | sssdevops/list_tools.py | doaa-altarawy/sssdevops | 57afa179739c3c108941cf1ec6b2e92505aeb3ed | [
"BSD-3-Clause"
] | 1 | 2018-08-15T19:59:23.000Z | 2018-08-15T19:59:23.000Z | sssdevops/list_tools.py | doaa-altarawy/sssdevops | 57afa179739c3c108941cf1ec6b2e92505aeb3ed | [
"BSD-3-Clause"
] | 1 | 2018-07-10T17:03:39.000Z | 2018-07-10T17:03:39.000Z | """
Main python file for the sssdevops example
"""
def mean(num_list):
"""
Calculate the mean of a list of numbers
Parameters
----------
num_list: list of int or float
Returns
-------
float of the mean of the list
Examples
--------
>>> mean([1, 2, 3, 4, 5])
3.0
... | 14.076923 | 43 | 0.530055 | 51 | 366 | 3.72549 | 0.588235 | 0.147368 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.311475 | 366 | 25 | 44 | 14.64 | 0.72619 | 0.63388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
61ae9557828ecdb8edce4b525ddb7fddea53c6f8 | 489 | py | Python | CodeGen/symbolTableItem.py | MMDBadCoder/Compiler-project | 16ae9bc52e65ebd491505ce32c4792c70e5d3f1e | [
"MIT"
] | null | null | null | CodeGen/symbolTableItem.py | MMDBadCoder/Compiler-project | 16ae9bc52e65ebd491505ce32c4792c70e5d3f1e | [
"MIT"
] | null | null | null | CodeGen/symbolTableItem.py | MMDBadCoder/Compiler-project | 16ae9bc52e65ebd491505ce32c4792c70e5d3f1e | [
"MIT"
] | null | null | null | class SymbolTableItem:
def __init__(self, type, name, customId, value):
self.type = type
self.name = name
self.value = value
# if type == 'int' or type == 'bool':
# self.value = 0
# elif type == 'string':
# self.value = ' '
# else:
# ... | 30.5625 | 81 | 0.496933 | 54 | 489 | 4.333333 | 0.407407 | 0.192308 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003115 | 0.343558 | 489 | 15 | 82 | 32.6 | 0.725857 | 0.257669 | 0 | 0 | 0 | 0 | 0.053371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
61b281eebde25c9fb49a5a9be53ebb265da4c87c | 474 | py | Python | lido_sdk/methods/typing.py | lidofinance/lido-validator.py | 9845a048e2695bf7d26fd60f703f1410656156f6 | [
"MIT"
] | 6 | 2021-10-03T07:19:49.000Z | 2022-03-31T07:12:19.000Z | lido_sdk/methods/typing.py | lidofinance/lido-validator.py | 9845a048e2695bf7d26fd60f703f1410656156f6 | [
"MIT"
] | 8 | 2021-08-23T13:12:22.000Z | 2022-02-15T10:26:22.000Z | lido_sdk/methods/typing.py | lidofinance/lido-validator.py | 9845a048e2695bf7d26fd60f703f1410656156f6 | [
"MIT"
] | null | null | null | try:
# For python >= 3.8
from typing import TypedDict
except ImportError:
# For python 3.7
from typing_extensions import TypedDict
class Operator(TypedDict):
index: int
active: bool
name: str
rewardAddress: str
stakingLimit: int
stoppedValidators: int
totalSigningKeys: int
... | 18.230769 | 43 | 0.685654 | 53 | 474 | 6.09434 | 0.584906 | 0.074303 | 0.06192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.257384 | 474 | 25 | 44 | 18.96 | 0.90625 | 0.067511 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.157895 | 0 | 0.947368 | 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 | 1 | 0 | 0 | 2 |
61c64d1ea15939ed9e56f9f42849a6154addc149 | 12,857 | py | Python | system/t09_repo/add.py | Yelp/aptly | 59a0c0140ba0f0f12554d57d99110511eb3e6229 | [
"MIT"
] | null | null | null | system/t09_repo/add.py | Yelp/aptly | 59a0c0140ba0f0f12554d57d99110511eb3e6229 | [
"MIT"
] | null | null | null | system/t09_repo/add.py | Yelp/aptly | 59a0c0140ba0f0f12554d57d99110511eb3e6229 | [
"MIT"
] | 1 | 2022-03-18T11:33:21.000Z | 2022-03-18T11:33:21.000Z | import tempfile
import shutil
import os
import inspect
from lib import BaseTest
class AddRepo1Test(BaseTest):
"""
add package to local repo: .deb file
"""
fixtureCmds = [
"aptly repo create -comment=Repo1 -distribution=squeeze repo1",
]
runCmd = "aptly repo add repo1 ${files}/libboost-... | 37.051873 | 142 | 0.651474 | 1,672 | 12,857 | 4.901914 | 0.107656 | 0.040264 | 0.042704 | 0.029283 | 0.785383 | 0.731454 | 0.671059 | 0.651537 | 0.632016 | 0.609444 | 0 | 0.078547 | 0.207825 | 12,857 | 346 | 143 | 37.15896 | 0.726166 | 0.06829 | 0 | 0.523148 | 0 | 0.060185 | 0.363195 | 0.193744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101852 | false | 0 | 0.023148 | 0.027778 | 0.402778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
4ef01054268347f28895b5e5bee30001eed0d312 | 87 | py | Python | T07-28/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 2 | 2019-11-20T19:26:07.000Z | 2019-11-22T00:42:23.000Z | T07-28/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 2 | 2019-11-28T05:21:24.000Z | 2019-11-28T05:21:58.000Z | T07-28/program.py | maa76/SSof-Project1920 | 9b4ad9ac41a648c425fcfcd49cd52ff84e528bde | [
"MIT"
] | 25 | 2019-11-27T01:40:56.000Z | 2019-12-04T23:38:59.000Z | a = source()
if True:
b = a + 3 * sanitizer2(y)
else:
b = sanitizer(a)
sink(b) | 12.428571 | 29 | 0.54023 | 15 | 87 | 3.133333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.287356 | 87 | 7 | 30 | 12.428571 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6004ce16e50dcf98838c4938d5da6fa4a0c4762 | 4,916 | py | Python | braincards/settings.py | snirp/braincards-OLD | 1b7fa1fd891bfe3c110acbff860f34248dd277aa | [
"MIT"
] | null | null | null | braincards/settings.py | snirp/braincards-OLD | 1b7fa1fd891bfe3c110acbff860f34248dd277aa | [
"MIT"
] | 2 | 2020-02-11T23:45:14.000Z | 2020-06-05T19:43:45.000Z | braincards/settings.py | snirp/braincards-OLD | 1b7fa1fd891bfe3c110acbff860f34248dd277aa | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
# Load sensitive environment-specific settings from .env file
# These do *not* override existing System environment variables by default.
# To override, use load_dotenv(override=True)
load_dotenv()
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DI... | 28.581395 | 91 | 0.721725 | 514 | 4,916 | 6.688716 | 0.383268 | 0.064282 | 0.039558 | 0.024433 | 0.118965 | 0.070681 | 0.025305 | 0 | 0 | 0 | 0 | 0.003862 | 0.157242 | 4,916 | 172 | 92 | 28.581395 | 0.825972 | 0.198739 | 0 | 0.017094 | 0 | 0 | 0.498596 | 0.40771 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068376 | 0.017094 | 0 | 0.017094 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f6058402589a3ccb92d064fc11831e0ac144363e | 606 | py | Python | PYTHON/PasswordGen.py | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 125 | 2021-10-01T19:05:26.000Z | 2021-10-03T13:32:42.000Z | PYTHON/PasswordGen.py | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 201 | 2021-10-30T20:40:01.000Z | 2022-03-22T17:26:28.000Z | PYTHON/PasswordGen.py | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 294 | 2021-10-01T18:46:05.000Z | 2021-10-03T14:25:07.000Z | import string
import random
#Characters List to Generate Password
characters = list(string.ascii_letters + string.digits + "!@#$%^&*()")
def password_gen():
#Length of Password from the User
length = int(input("Password length: "))
#Shuffling the Characters
random.shuffle(characters)
#Picking random Characters... | 21.642857 | 70 | 0.749175 | 77 | 606 | 5.857143 | 0.480519 | 0.070953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143564 | 606 | 27 | 71 | 22.444444 | 0.868979 | 0.389439 | 0 | 0 | 1 | 0 | 0.074586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.583333 | 0.166667 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f6096b56749acdca4e1b458e850bfa398e3a1320 | 2,873 | py | Python | cldfspec/commands/component_readmes.py | cldf/cldf | dbb4e37e4cf5318671f3a62173e2e01809cdc999 | [
"Apache-2.0"
] | 23 | 2018-01-10T18:48:32.000Z | 2022-03-20T16:44:51.000Z | cldfspec/commands/component_readmes.py | cldf/cldf | dbb4e37e4cf5318671f3a62173e2e01809cdc999 | [
"Apache-2.0"
] | 71 | 2017-11-13T11:52:38.000Z | 2022-03-22T13:08:21.000Z | cldfspec/commands/component_readmes.py | cldf/cldf | dbb4e37e4cf5318671f3a62173e2e01809cdc999 | [
"Apache-2.0"
] | 9 | 2017-11-24T09:25:42.000Z | 2022-01-25T21:12:32.000Z | """
Create the component-specific README files by concatenating `description.md` and
a generated description of the metadata.
"""
import json
from pycldf.terms import Terms
from csvw.metadata import Table
from cldfspec.util import REPO_DIR
def run(args):
for p in REPO_DIR.joinpath('components').glob('*/*.json'):... | 33.406977 | 88 | 0.606683 | 359 | 2,873 | 4.81337 | 0.32312 | 0.038194 | 0.037037 | 0.027778 | 0.149306 | 0.072917 | 0.032407 | 0.032407 | 0 | 0 | 0 | 0.002735 | 0.236338 | 2,873 | 85 | 89 | 33.8 | 0.784868 | 0.089802 | 0 | 0.031746 | 1 | 0 | 0.149827 | 0 | 0 | 0 | 0 | 0.011765 | 0.047619 | 1 | 0.063492 | false | 0 | 0.063492 | 0 | 0.174603 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f60c92b4c4ce49e292b11f2fb97a1744958f2bc0 | 123,675 | py | Python | app.py | Renaud17/HSE-KPI | 14faf748d81c99d39dbe726cf25ad342abb0dce6 | [
"MIT"
] | null | null | null | app.py | Renaud17/HSE-KPI | 14faf748d81c99d39dbe726cf25ad342abb0dce6 | [
"MIT"
] | 2 | 2022-01-13T03:48:43.000Z | 2022-03-12T00:58:35.000Z | app.py | Renaud17/HSE-KPI | 14faf748d81c99d39dbe726cf25ad342abb0dce6 | [
"MIT"
] | null | null | null | from db import *
from get import *
from subprocess import call
import streamlit as st
import pandas as pd
import datetime
import re
import base64
from datetime import datetime,date
from datetime import datetime, timedelta
from pandas import DataFrame
from io import BytesIO
import xlsxwriter
import plotly.express as px
... | 56.601831 | 258 | 0.462963 | 12,152 | 123,675 | 4.541804 | 0.068631 | 0.026109 | 0.015147 | 0.022068 | 0.764658 | 0.717296 | 0.693832 | 0.654787 | 0.634548 | 0.619419 | 0 | 0.027435 | 0.427952 | 123,675 | 2,184 | 259 | 56.627747 | 0.752629 | 0.023044 | 0 | 0.52912 | 0 | 0.025403 | 0.197365 | 0.020672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02912 | false | 0.005576 | 0.012392 | 0.00062 | 0.070012 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f614af98eb89d61b8218f29c4029e276a30e5e8a | 1,180 | py | Python | Protheus_WebApp/Modules/SIGAGFE/GFEA014TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 17 | 2018-09-24T17:27:08.000Z | 2021-09-16T19:09:46.000Z | Protheus_WebApp/Modules/SIGAGFE/GFEA014TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 4 | 2018-09-24T17:30:32.000Z | 2022-01-03T11:39:30.000Z | Protheus_WebApp/Modules/SIGAGFE/GFEA014TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 18 | 2019-06-07T17:41:34.000Z | 2022-01-31T18:17:31.000Z | from tir import Webapp
import unittest
class GFEA014(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup('SIGAGFE','03/11/2020','T1','D MG 01 ','78')
inst.oHelper.Program('GFEA014')
def test_GFEA014_CT001(self):
self.oHelper.SetButton('Incluir')
self.oHelpe... | 28.095238 | 89 | 0.717797 | 139 | 1,180 | 6.021583 | 0.388489 | 0.236559 | 0.262843 | 0.124253 | 0.545998 | 0.545998 | 0.545998 | 0.545998 | 0.545998 | 0.545998 | 0 | 0.040078 | 0.133051 | 1,180 | 41 | 90 | 28.780488 | 0.778104 | 0 | 0 | 0.375 | 0 | 0 | 0.249153 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
f61b902facc421dfc3054cb0793ffde77f8b926e | 3,137 | py | Python | icevision/models/mmdet/models/retinanet/backbones/resnet_fpn.py | bluseking/-first-agnostic-computer-vision-framework-to-offer-a-curated-collection-with-hundreds-of-high-qualit | 2d91eacfab7fcaf09c93352f1e7816ccb2c252b9 | [
"Apache-2.0"
] | 580 | 2020-09-10T06:29:57.000Z | 2022-03-29T19:34:54.000Z | icevision/models/mmdet/models/retinanet/backbones/resnet_fpn.py | bluseking/-first-agnostic-computer-vision-framework-to-offer-a-curated-collection-with-hundreds-of-high-qualit | 2d91eacfab7fcaf09c93352f1e7816ccb2c252b9 | [
"Apache-2.0"
] | 691 | 2020-09-05T03:08:34.000Z | 2022-03-31T23:47:06.000Z | icevision/models/mmdet/models/retinanet/backbones/resnet_fpn.py | bluseking/-first-agnostic-computer-vision-framework-to-offer-a-curated-collection-with-hundreds-of-high-qualit | 2d91eacfab7fcaf09c93352f1e7816ccb2c252b9 | [
"Apache-2.0"
] | 105 | 2020-09-09T10:41:35.000Z | 2022-03-25T17:16:49.000Z | __all__ = [
"resnet50_caffe_fpn_1x",
"resnet50_fpn_1x",
"resnet50_fpn_2x",
"resnet101_caffe_fpn_1x",
"resnet101_fpn_1x",
"resnet101_fpn_2x",
"resnext101_32x4d_fpn_1x",
"resnext101_32x4d_fpn_2x",
"resnext101_64x4d_fpn_1x",
"resnext101_64x4d_fpn_2x",
]
from icevision.imports impor... | 41.826667 | 126 | 0.831368 | 442 | 3,137 | 5.269231 | 0.138009 | 0.064405 | 0.069558 | 0.180335 | 0.689996 | 0.635895 | 0.54444 | 0.54444 | 0.54444 | 0.484757 | 0 | 0.130526 | 0.084157 | 3,137 | 74 | 127 | 42.391892 | 0.680125 | 0 | 0 | 0 | 0 | 0 | 0.510041 | 0.466688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.033898 | 0 | 0.067797 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f61c04ae9c034ecedc532bca678b90874801f2d2 | 122 | py | Python | reverseWords_01b.py | robertbyers1111/python | e87558f2432f0a4a86f17c47c6b19e1345625b83 | [
"MIT"
] | null | null | null | reverseWords_01b.py | robertbyers1111/python | e87558f2432f0a4a86f17c47c6b19e1345625b83 | [
"MIT"
] | null | null | null | reverseWords_01b.py | robertbyers1111/python | e87558f2432f0a4a86f17c47c6b19e1345625b83 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from reverseWords_01a import Sentence
s = Sentence('abc def xyz')
s.show()
s.reverse_words()
s.show()
| 13.555556 | 37 | 0.721311 | 20 | 122 | 4.3 | 0.75 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.122951 | 122 | 8 | 38 | 15.25 | 0.785047 | 0.131148 | 0 | 0.4 | 0 | 0 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6297e93b45b0246e21312195d22856b428432e0 | 1,557 | py | Python | rebal.py | djevans071/Reba | f1ace398a93d40697ad06c6c8224e9e004bab77a | [
"MIT"
] | null | null | null | rebal.py | djevans071/Reba | f1ace398a93d40697ad06c6c8224e9e004bab77a | [
"MIT"
] | null | null | null | rebal.py | djevans071/Reba | f1ace398a93d40697ad06c6c8224e9e004bab77a | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 6 13:02:10 2017
@author: psamtik071
"""
# create rebalancing datasets from trips datasets and save to rebaltrips\
from workflow.data import *
import os
month = 3
year = 2017
#trips = trip_data(year, month)
#columns to shift by
#shift_cols = ['st... | 26.844828 | 83 | 0.65896 | 226 | 1,557 | 4.340708 | 0.429204 | 0.036697 | 0.039755 | 0.051988 | 0.095821 | 0.073395 | 0.073395 | 0.073395 | 0.073395 | 0 | 0 | 0.027778 | 0.213873 | 1,557 | 57 | 84 | 27.315789 | 0.773693 | 0.273603 | 0 | 0 | 0 | 0 | 0.152756 | 0.034646 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.111111 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f62bccfb5c08b71c781cc13ecbae7224d7c63932 | 2,039 | py | Python | maker/SQL_Query.py | PrinceS17/Crypcy | e190371b320d6da7c036e9fa7d5e3bfa8a58cf4b | [
"MIT"
] | null | null | null | maker/SQL_Query.py | PrinceS17/Crypcy | e190371b320d6da7c036e9fa7d5e3bfa8a58cf4b | [
"MIT"
] | 9 | 2020-02-12T00:00:41.000Z | 2022-03-11T23:46:39.000Z | maker/SQL_Query.py | PrinceS17/Crypcy | e190371b320d6da7c036e9fa7d5e3bfa8a58cf4b | [
"MIT"
] | null | null | null | #Begin Simple SQl Queries
#@author Ruixin Zou
import sqlite3
from django.db import connection
from .sql_operation import *
# search crypto-currencies based on prefix
# prefix: pref
def search_by_prefix(pref):
with connection.cursor() as cursor:
cursor.execute('''SELECT cr.logo, cr.id, cr.name, me.price, me... | 32.365079 | 99 | 0.682197 | 294 | 2,039 | 4.62585 | 0.183673 | 0.029412 | 0.073529 | 0.080882 | 0.736029 | 0.736029 | 0.711029 | 0.658088 | 0.577941 | 0.577941 | 0 | 0.000625 | 0.214811 | 2,039 | 62 | 100 | 32.887097 | 0.848844 | 0.106915 | 0 | 0.651163 | 0 | 0.116279 | 0.550773 | 0.061258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
f635fbbb6d06c185e4b8057d152986d318ea24f0 | 1,798 | py | Python | lambdas/mail sender/code.py | PKopel/IOT-Smartband | 906617995e6faf9472f1fb98b983519bbbc5b18a | [
"MIT"
] | null | null | null | lambdas/mail sender/code.py | PKopel/IOT-Smartband | 906617995e6faf9472f1fb98b983519bbbc5b18a | [
"MIT"
] | null | null | null | lambdas/mail sender/code.py | PKopel/IOT-Smartband | 906617995e6faf9472f1fb98b983519bbbc5b18a | [
"MIT"
] | 2 | 2020-12-07T19:31:54.000Z | 2021-02-09T15:15:16.000Z | import json
import smtplib
from socket import gaierror
import datetime as dt
port = 2525
smtp_server = "smtp.mailtrap.io"
login = "eb6f3fed7b9fd2" # paste your login generated by Mailtrap
password = "cbbafa033c9bb3" # paste your password generated by Mailtrap
sender = "from@example.com"
receiver = "mailtrap@example... | 26.057971 | 109 | 0.649611 | 227 | 1,798 | 5.057269 | 0.453744 | 0.027875 | 0.033101 | 0.034843 | 0.054007 | 0.054007 | 0.054007 | 0 | 0 | 0 | 0 | 0.019231 | 0.219132 | 1,798 | 68 | 110 | 26.441176 | 0.798433 | 0.044494 | 0 | 0 | 1 | 0 | 0.225073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.061224 | 0.081633 | 0 | 0.183673 | 0.102041 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f6502d1e7088f05e1a3e825a730064529854fff3 | 1,314 | py | Python | utils/matlab_call_hevc_tools/saveFileYuv.py | roman-vygon/pyFAST | fda27d6e027f9b8607d97209a4474fd08363e3b0 | [
"MIT"
] | null | null | null | utils/matlab_call_hevc_tools/saveFileYuv.py | roman-vygon/pyFAST | fda27d6e027f9b8607d97209a4474fd08363e3b0 | [
"MIT"
] | 1 | 2020-06-30T16:13:36.000Z | 2020-06-30T16:13:36.000Z | utils/matlab_call_hevc_tools/saveFileYuv.py | roman-vygon/pyFAST | fda27d6e027f9b8607d97209a4474fd08363e3b0 | [
"MIT"
] | null | null | null | # Generated with SMOP 0.41
from libsmop import *
# saveFileYuv.m
def saveFileYuv(mov=None, fileName=None, mode=None):
# save RGB movie [0, 255] to YUV 4:2:0 file
if 1 == mode:
fileId = fopen(fileName, 'w')
# saveFileYuv.m:11
else:
if 2 == mode:
fileId = fopen(fileName, ... | 29.2 | 101 | 0.550228 | 178 | 1,314 | 4.061798 | 0.376404 | 0.232365 | 0.055325 | 0.060858 | 0.372061 | 0.347165 | 0.258645 | 0.105118 | 0.105118 | 0.105118 | 0 | 0.067021 | 0.284627 | 1,314 | 44 | 102 | 29.863636 | 0.702128 | 0.229833 | 0 | 0.333333 | 1 | 0 | 0.01809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f6736ecbfb1bcaebd2c680e35e746a971194fbff | 1,141 | py | Python | exonum-java-binding/exonum_launcher_java_plugins/exonum_java_runtime_plugin/plugin.py | skletsun/exonum-java-binding | daa4a473393506af7b3773a630caab15a1cfda1f | [
"Apache-2.0"
] | null | null | null | exonum-java-binding/exonum_launcher_java_plugins/exonum_java_runtime_plugin/plugin.py | skletsun/exonum-java-binding | daa4a473393506af7b3773a630caab15a1cfda1f | [
"Apache-2.0"
] | null | null | null | exonum-java-binding/exonum_launcher_java_plugins/exonum_java_runtime_plugin/plugin.py | skletsun/exonum-java-binding | daa4a473393506af7b3773a630caab15a1cfda1f | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Exonum Team
#
# 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 writi... | 33.558824 | 74 | 0.758107 | 152 | 1,141 | 5.638158 | 0.651316 | 0.070012 | 0.030338 | 0.03734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01056 | 0.170026 | 1,141 | 33 | 75 | 34.575758 | 0.894403 | 0.518843 | 0 | 0 | 0 | 0 | 0.092279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
9c8f0e2723d162cf8fd1dbfaa62880cd26850c81 | 462 | py | Python | en_transformer/utils.py | dumpmemory/En-transformer | c99e6782e531efddac61e8081cfd431372bb4319 | [
"MIT"
] | 108 | 2021-02-27T06:50:43.000Z | 2022-03-18T09:03:24.000Z | en_transformer/utils.py | SuperXiang/En-transformer | 273f72f8eb66fcccadaf8b6e72d6bbc091f55862 | [
"MIT"
] | 7 | 2021-03-21T11:23:42.000Z | 2022-03-29T20:45:33.000Z | en_transformer/utils.py | SuperXiang/En-transformer | 273f72f8eb66fcccadaf8b6e72d6bbc091f55862 | [
"MIT"
] | 17 | 2021-02-27T13:17:53.000Z | 2022-03-29T14:15:38.000Z | import torch
from torch import sin, cos, atan2, acos
def rot_z(gamma):
return torch.tensor([
[cos(gamma), -sin(gamma), 0],
[sin(gamma), cos(gamma), 0],
[0, 0, 1]
], dtype = gamma.dtype)
def rot_y(beta):
return torch.tensor([
[cos(beta), 0, sin(beta)],
[0, 1, 0],
... | 23.1 | 52 | 0.549784 | 70 | 462 | 3.557143 | 0.271429 | 0.072289 | 0.072289 | 0.160643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032544 | 0.268398 | 462 | 19 | 53 | 24.315789 | 0.704142 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.1875 | 0.5 | 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 | 1 | 0 | 0 | 0 | 2 |
9c90645b2836ba5647a6126f3911f04c4b1c17fd | 168 | py | Python | Test/untitled0.py | mahdijo6731/SugarScape | 20023227206fee87b3d558f9982831aeddb9d910 | [
"MIT"
] | 6 | 2019-12-21T21:15:54.000Z | 2021-04-20T17:35:24.000Z | Test/untitled0.py | mahdijo6731/SugarScape | 20023227206fee87b3d558f9982831aeddb9d910 | [
"MIT"
] | null | null | null | Test/untitled0.py | mahdijo6731/SugarScape | 20023227206fee87b3d558f9982831aeddb9d910 | [
"MIT"
] | 2 | 2020-05-16T12:41:17.000Z | 2021-01-20T17:04:48.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 22 06:17:11 2018
@author: ymamo
"""
test =
if test == set():
print (test)
else:
print ("False") | 12.923077 | 36 | 0.5 | 23 | 168 | 3.652174 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112069 | 0.309524 | 168 | 13 | 37 | 12.923077 | 0.612069 | 0.125 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9c927a681afd245900186b15f453d2c1ec1e16e6 | 579 | py | Python | pyicic/IC_Structures.py | zivlab/py-ic-imaging-control | 6e81ea95ead3e0db99fc65f6abcbb8522e213884 | [
"MIT"
] | 28 | 2015-04-07T02:29:52.000Z | 2022-03-28T20:31:21.000Z | pyicic/IC_Structures.py | zivlab/py-ic-imaging-control | 6e81ea95ead3e0db99fc65f6abcbb8522e213884 | [
"MIT"
] | 31 | 2015-07-13T03:39:12.000Z | 2021-08-07T02:16:48.000Z | pyicic/IC_Structures.py | zivlab/py-ic-imaging-control | 6e81ea95ead3e0db99fc65f6abcbb8522e213884 | [
"MIT"
] | 20 | 2016-04-20T15:06:57.000Z | 2021-06-29T07:18:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ctypes import *
class GrabberHandle(Structure):
pass
GrabberHandle._fields_ = [('unused', c_int)]
class FilterParameter(Structure):
pass
FilterParameter._fields_ = [('Name', c_char * 30),
('Type', c_int)]
class FrameFilterHand... | 24.125 | 71 | 0.556131 | 51 | 579 | 6.058824 | 0.607843 | 0.05178 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0075 | 0.309154 | 579 | 23 | 72 | 25.173913 | 0.765 | 0.072539 | 0 | 0.214286 | 0 | 0 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.214286 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9c9851f9b728b138ed446b32a7108a7a73cb398c | 1,248 | py | Python | webdriver_setup/windows.py | xloem/webdriver-setup | 3cd091559ea6d3017995ac7f252c2c107ff1f44c | [
"Apache-2.0"
] | 1 | 2020-12-06T13:27:45.000Z | 2020-12-06T13:27:45.000Z | webdriver_setup/windows.py | xloem/webdriver-setup | 3cd091559ea6d3017995ac7f252c2c107ff1f44c | [
"Apache-2.0"
] | 1 | 2021-11-28T14:03:23.000Z | 2021-11-28T14:03:23.000Z | webdriver_setup/windows.py | xloem/webdriver-setup | 3cd091559ea6d3017995ac7f252c2c107ff1f44c | [
"Apache-2.0"
] | 2 | 2021-07-21T11:24:56.000Z | 2021-09-20T11:13:24.000Z | from selenium import webdriver
from webdriver_manager.microsoft import EdgeChromiumDriverManager, IEDriverManager
from webdriver_setup.driver import DriverBase
class EdgeDriver(DriverBase):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def create_driver(self, **kwargs):
"""Creat... | 25.469388 | 90 | 0.679487 | 130 | 1,248 | 6.246154 | 0.315385 | 0.049261 | 0.073892 | 0.051724 | 0.637931 | 0.637931 | 0.637931 | 0.637931 | 0.517241 | 0.517241 | 0 | 0.002068 | 0.22516 | 1,248 | 48 | 91 | 26 | 0.837642 | 0.233974 | 0 | 0.470588 | 0 | 0 | 0.039397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0 | 0.647059 | 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 | 1 | 0 | 0 | 2 |
9cdd3f3f33e8aca7b9929b3ebd838c99bc74c3f9 | 613 | py | Python | web/utest/test_news.py | tangjx/migrant | b4f21368130877521b3c3ab648dd3b3cd9448b65 | [
"MIT"
] | null | null | null | web/utest/test_news.py | tangjx/migrant | b4f21368130877521b3c3ab648dd3b3cd9448b65 | [
"MIT"
] | null | null | null | web/utest/test_news.py | tangjx/migrant | b4f21368130877521b3c3ab648dd3b3cd9448b65 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
author comger@gmail.com
"""
from bson import ObjectId
import json
from logic.utility import m_del,m_page,m_update,m_exists
from unittest import TestCase
from logic.news import hot
class NewsCase(TestCase):
def setUp(self):
pass
def test_hot(self):
print 'one day... | 18.575758 | 56 | 0.5677 | 85 | 613 | 4.035294 | 0.505882 | 0.116618 | 0.087464 | 0.099125 | 0.134111 | 0.134111 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.334421 | 613 | 32 | 57 | 19.15625 | 0.811275 | 0.032626 | 0 | 0.26087 | 0 | 0 | 0.052347 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0.043478 | 0.217391 | null | null | 0.434783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
9cfa40a7313d8c110e7b0fb1ace1c3536e8d9eda | 187 | py | Python | Exceptions.py | Pratyaksh7/PythonPrograms-Hackerrank | 171108851f8f90336123e383f945e8d36922d53b | [
"MIT"
] | null | null | null | Exceptions.py | Pratyaksh7/PythonPrograms-Hackerrank | 171108851f8f90336123e383f945e8d36922d53b | [
"MIT"
] | null | null | null | Exceptions.py | Pratyaksh7/PythonPrograms-Hackerrank | 171108851f8f90336123e383f945e8d36922d53b | [
"MIT"
] | null | null | null | T = int(input())
for i in range(T):
try:
a, b = map(str, input().split())
print(int(int(a)//int(b)))
except Exception as e:
print("Error Code:", e)
| 23.375 | 41 | 0.486631 | 29 | 187 | 3.137931 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320856 | 187 | 7 | 42 | 26.714286 | 0.716535 | 0 | 0 | 0 | 0 | 0 | 0.061111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1409fa04e0e0974a5b437a6a131eda74ecc1334e | 1,156 | py | Python | quex/engine/state_machine/construction/TEST/test-repeat.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/state_machine/construction/TEST/test-repeat.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/state_machine/construction/TEST/test-repeat.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import sys
import os
sys.path.insert(0, os.environ["QUEX_PATH"])
from quex.engine.state_machine.core import *
import quex.engine.state_machine.construction.repeat as repeat
from quex.engine.state_machine.TEST_help.some_dfas import *
if "--hwut-info" in sys.argv:
print "DFA Operations:... | 29.641026 | 87 | 0.475779 | 131 | 1,156 | 4.152672 | 0.343511 | 0.117647 | 0.161765 | 0.117647 | 0.514706 | 0.384191 | 0.325368 | 0.325368 | 0.266544 | 0.266544 | 0 | 0.035538 | 0.123702 | 1,156 | 38 | 88 | 30.421053 | 0.501481 | 0.018166 | 0 | 0.413793 | 0 | 0 | 0.484554 | 0.278906 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | null | null | 0.586207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
140c94ff0a63a987e10bb8ae95f5eeee831eaac2 | 553 | py | Python | handlers/qr.py | Cratosart/test_disc | 565a86c0f0da15208b4822c5157d655ffaa86451 | [
"MIT"
] | null | null | null | handlers/qr.py | Cratosart/test_disc | 565a86c0f0da15208b4822c5157d655ffaa86451 | [
"MIT"
] | null | null | null | handlers/qr.py | Cratosart/test_disc | 565a86c0f0da15208b4822c5157d655ffaa86451 | [
"MIT"
] | null | null | null | import qrcode
import secrets
import string
import os
from PIL import Image, ImageDraw
from aiogram import types
from aiogram.dispatcher.filters import Command
from utils import get_qr
from utils import delete_user_qr
from loader import dp, bot
@dp.message_handler(Command(commands='qr'))
async def sen... | 20.481481 | 47 | 0.712477 | 79 | 553 | 4.822785 | 0.417722 | 0.070866 | 0.11811 | 0.133858 | 0.099738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222423 | 553 | 26 | 48 | 21.269231 | 0.886047 | 0 | 0 | 0 | 0 | 0 | 0.003795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.526316 | 0 | 0.578947 | 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 | 1 | 0 | 0 | 2 |
1416139cb37c531bfea83f1c7d0ccbad0a5bb45f | 6,493 | py | Python | test/tests/chirc/tests/test_whois.py | Jusot/irc | af0f8c33ef518d01580a95dcaea3951b1fa7087c | [
"MIT"
] | 2 | 2019-03-26T06:22:50.000Z | 2019-03-26T11:16:25.000Z | test/tests/chirc/tests/test_whois.py | MU001999/npcp | af0f8c33ef518d01580a95dcaea3951b1fa7087c | [
"MIT"
] | null | null | null | test/tests/chirc/tests/test_whois.py | MU001999/npcp | af0f8c33ef518d01580a95dcaea3951b1fa7087c | [
"MIT"
] | null | null | null | import pytest
from chirc import replies
import chirc.tests.fixtures as fixtures
class TestWHOIS(object):
@pytest.mark.category("WHOIS")
def test_whois1(self, irc_session):
"""
Test doing a WHOIS on a user (user2) that is not in any channels.
"""
client1 = irc... | 40.836478 | 155 | 0.553827 | 681 | 6,493 | 5.063142 | 0.208517 | 0.084107 | 0.056555 | 0.078306 | 0.735499 | 0.716357 | 0.698666 | 0.664443 | 0.652842 | 0.600348 | 0 | 0.030116 | 0.350531 | 6,493 | 158 | 156 | 41.094937 | 0.787527 | 0.140767 | 0 | 0.383562 | 0 | 0 | 0.107759 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 1 | 0.082192 | false | 0 | 0.041096 | 0 | 0.136986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
14294e1448db2c683729a50a771e07c9ddbde70c | 1,193 | py | Python | stagesetting/drf.py | kezabelle/django-stagesetting | d01029c309915599e9a0413c1be0957638725f69 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2015-10-19T13:35:57.000Z | 2020-06-15T14:26:28.000Z | stagesetting/drf.py | kezabelle/django-stagesetting | d01029c309915599e9a0413c1be0957638725f69 | [
"BSD-2-Clause-FreeBSD"
] | 9 | 2015-08-19T14:05:27.000Z | 2017-05-17T09:27:41.000Z | stagesetting/drf.py | kezabelle/django-stagesetting | d01029c309915599e9a0413c1be0957638725f69 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from rest_framework.fields import Field, DictField
from rest_framework.serializers import ModelSerializer
from rest_framework.viewsets import Model... | 32.243243 | 82 | 0.749371 | 127 | 1,193 | 6.811024 | 0.417323 | 0.046243 | 0.073988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00101 | 0.170159 | 1,193 | 36 | 83 | 33.138889 | 0.872727 | 0.017603 | 0 | 0 | 0 | 0 | 0.035043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.333333 | 0 | 0.777778 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
14341a1cc84c51c609ecdd2947aed1551c488326 | 258 | py | Python | Chapter_4/12.py | sai29/Python-John-Zelle-book | b6c54120cfc4742fa651a051b39fc94bf221543d | [
"MIT"
] | 14 | 2015-01-20T15:02:13.000Z | 2020-05-20T08:05:37.000Z | Chapter_4/12.py | sai29/Python-John-Zelle-book | b6c54120cfc4742fa651a051b39fc94bf221543d | [
"MIT"
] | 1 | 2016-11-10T16:45:21.000Z | 2017-04-17T03:36:46.000Z | Chapter_4/12.py | sai29/Python-John-Zelle-book | b6c54120cfc4742fa651a051b39fc94bf221543d | [
"MIT"
] | 11 | 2015-01-06T18:46:15.000Z | 2020-04-02T03:45:53.000Z | def main():
print "This program illustrates a chaotic function"
x = input("Enter a number between 0 and 1: ")
print "Index",x
print "----------"
for i in range(10):
print i,
x = 3.9 * x * (1 - x)
print " ",x
main() | 23.454545 | 55 | 0.507752 | 38 | 258 | 3.447368 | 0.657895 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0.329457 | 258 | 11 | 56 | 23.454545 | 0.716763 | 0 | 0 | 0 | 0 | 0 | 0.359073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
1452fbf529334a4c3c3ff9698e805c880e1d9d7f | 9,777 | py | Python | tests/test_clj.py | papaver/pyfn | 1a9440547a6c4b482c6216e227b6b2c014323821 | [
"BSD-3-Clause"
] | 3 | 2018-06-05T19:20:22.000Z | 2020-05-29T00:35:54.000Z | tests/test_clj.py | papaver/pyfn | 1a9440547a6c4b482c6216e227b6b2c014323821 | [
"BSD-3-Clause"
] | 2 | 2019-06-24T22:12:30.000Z | 2020-08-17T21:48:48.000Z | tests/test_clj.py | papaver/pyfn | 1a9440547a6c4b482c6216e227b6b2c014323821 | [
"BSD-3-Clause"
] | 1 | 2019-06-24T22:03:26.000Z | 2019-06-24T22:03:26.000Z | #------------------------------------------------------------------------------
# test_clj.py
#------------------------------------------------------------------------------
# BSD 3-Clause License
#
# Copyright (c) 2018, Affirm
# Copyright (c) 2018, Moiz Merchant
# All rights reserved.
#
# Redistribution and use in sou... | 35.944853 | 80 | 0.486039 | 1,047 | 9,777 | 4.488061 | 0.203438 | 0.255373 | 0.097042 | 0.039157 | 0.400511 | 0.266227 | 0.163226 | 0.141519 | 0.071079 | 0.028942 | 0 | 0.014387 | 0.217961 | 9,777 | 271 | 81 | 36.077491 | 0.600183 | 0.405953 | 0 | 0.015504 | 0 | 0 | 0.014306 | 0 | 0 | 0 | 0 | 0 | 0.72093 | 1 | 0.116279 | false | 0 | 0.015504 | 0 | 0.139535 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
14693c289559a0512e14122e22818768afb2f641 | 893 | py | Python | src/nitpick/plugins/info.py | finswimmer/nitpick | 6cff5552c5f4acfcfd7c0344f554f6a2ce2a3103 | [
"MIT"
] | 4 | 2019-01-09T23:20:32.000Z | 2019-05-13T18:42:27.000Z | src/nitpick/plugins/info.py | finswimmer/nitpick | 6cff5552c5f4acfcfd7c0344f554f6a2ce2a3103 | [
"MIT"
] | 32 | 2019-03-14T19:16:15.000Z | 2019-06-03T19:57:58.000Z | src/nitpick/plugins/info.py | finswimmer/nitpick | 6cff5552c5f4acfcfd7c0344f554f6a2ce2a3103 | [
"MIT"
] | 1 | 2019-03-19T10:18:25.000Z | 2019-03-19T10:18:25.000Z | """Info needed by the plugins."""
from dataclasses import dataclass, field
from typing import Set
from identify import identify
from nitpick.constants import DOT
from nitpick.exceptions import Deprecation
from nitpick.project import Project
@dataclass
class FileInfo:
"""File information needed by the plugin."""... | 30.793103 | 103 | 0.711086 | 120 | 893 | 5.091667 | 0.408333 | 0.091653 | 0.13748 | 0.072013 | 0.173486 | 0.173486 | 0 | 0 | 0 | 0 | 0 | 0.001406 | 0.203807 | 893 | 28 | 104 | 31.892857 | 0.857947 | 0.116461 | 0 | 0 | 0 | 0 | 0.011643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
146c9f2df6927aa6a9b85d487af44878a70ea888 | 9,808 | py | Python | src/go/Google_gcj_tools/lib/code_jam_login.py | veltzerdoron/GCJ | 8976b95e1d3c1806ca10b3df5f0a506adef6f1b0 | [
"MIT"
] | null | null | null | src/go/Google_gcj_tools/lib/code_jam_login.py | veltzerdoron/GCJ | 8976b95e1d3c1806ca10b3df5f0a506adef6f1b0 | [
"MIT"
] | null | null | null | src/go/Google_gcj_tools/lib/code_jam_login.py | veltzerdoron/GCJ | 8976b95e1d3c1806ca10b3df5f0a506adef6f1b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 39.075697 | 80 | 0.695351 | 1,275 | 9,808 | 5.281569 | 0.257255 | 0.022869 | 0.038759 | 0.00891 | 0.104841 | 0.058955 | 0.034749 | 0.023463 | 0.008613 | 0 | 0 | 0.004591 | 0.222777 | 9,808 | 250 | 81 | 39.232 | 0.878788 | 0.154568 | 0 | 0.066667 | 0 | 0 | 0.267623 | 0.013476 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.108333 | 0.108333 | null | null | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
14783bebb3e4a394e58d96aa46e6596f09c2ae26 | 271 | py | Python | decorator_test/test.py | ehddn5252/dw_test | 3604540914744003235c6c315f03090df90527bd | [
"MIT"
] | null | null | null | decorator_test/test.py | ehddn5252/dw_test | 3604540914744003235c6c315f03090df90527bd | [
"MIT"
] | null | null | null | decorator_test/test.py | ehddn5252/dw_test | 3604540914744003235c6c315f03090df90527bd | [
"MIT"
] | null | null | null | def decorating_fun(func):
def wrapping_function():
print("this is wrapping function and get func start")
func()
print("func end")
return wrapping_function
@decorating_fun
def decorated_func():
print("i`m decoraed")
decorated_func() | 19.357143 | 61 | 0.671587 | 34 | 271 | 5.176471 | 0.529412 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228782 | 271 | 14 | 62 | 19.357143 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.4 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
14947b38fa5e07ba4ed8b74617763f7acaae7f97 | 3,827 | py | Python | cell.py | DFrye333/DynamicMaze | aefc751f67c39d86a8efd747260366f86f42b5c3 | [
"MIT"
] | null | null | null | cell.py | DFrye333/DynamicMaze | aefc751f67c39d86a8efd747260366f86f42b5c3 | [
"MIT"
] | null | null | null | cell.py | DFrye333/DynamicMaze | aefc751f67c39d86a8efd747260366f86f42b5c3 | [
"MIT"
] | null | null | null | '''
Module: cell
Author: David Frye
Description: Contains the Cell class.
'''
from utility import Direction
class Cell:
'''
Class: Cell
Description: Represents an individual cell in a maze.
'''
# The print character for a visited cell.
VISITED_STRING = " "
# The print character for an unvisited cell.
UNVISIT... | 23.623457 | 83 | 0.71492 | 531 | 3,827 | 5.041431 | 0.154426 | 0.035487 | 0.032873 | 0.039223 | 0.575271 | 0.511393 | 0.421367 | 0.360105 | 0.265222 | 0.168099 | 0 | 0.002279 | 0.197544 | 3,827 | 162 | 84 | 23.623457 | 0.869424 | 0.656911 | 0 | 0.1 | 0 | 0 | 0.003469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.025 | 0 | 0.575 | 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 | 1 | 0 | 0 | 2 |
14a764c984b4a49c8df31d94cd8fe3fbf861a705 | 468 | py | Python | savu/plugins/loaders/utils/my_safe_constructor.py | nghia-vo/Savu | 1cf7343c141224643b2e1fb2f05e74448bc4fd58 | [
"Apache-2.0"
] | null | null | null | savu/plugins/loaders/utils/my_safe_constructor.py | nghia-vo/Savu | 1cf7343c141224643b2e1fb2f05e74448bc4fd58 | [
"Apache-2.0"
] | null | null | null | savu/plugins/loaders/utils/my_safe_constructor.py | nghia-vo/Savu | 1cf7343c141224643b2e1fb2f05e74448bc4fd58 | [
"Apache-2.0"
] | null | null | null | from yaml.constructor import SafeConstructor
# Create custom safe constructor class that inherits from SafeConstructor
class MySafeConstructor(SafeConstructor):
# Create new method handle boolean logic
def add_bool(self, node):
return self.construct_scalar(node)
# Inject the above boolean logic into ... | 36 | 73 | 0.739316 | 53 | 468 | 6.45283 | 0.622642 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010782 | 0.207265 | 468 | 12 | 74 | 39 | 0.911051 | 0.358974 | 0 | 0 | 0 | 0 | 0.074324 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
14afc3588c5073a97cea276c720b63b4d3e89db3 | 271 | py | Python | onto/domain_model.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | 1 | 2020-10-04T10:01:45.000Z | 2020-10-04T10:01:45.000Z | onto/domain_model.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | null | null | null | onto/domain_model.py | billyrrr/onto | 72733d36a2583ae4758f7cf33a5229b79773702b | [
"MIT"
] | null | null | null | from onto.primary_object import PrimaryObject
class DomainModel(PrimaryObject):
"""
Domain model is intended for handling business logic.
"""
@classmethod
def _datastore(cls):
from onto.context import Context as CTX
return CTX.db
| 18.066667 | 57 | 0.686347 | 31 | 271 | 5.935484 | 0.806452 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250923 | 271 | 14 | 58 | 19.357143 | 0.906404 | 0.195572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 2 |
1ad684ef3425dc0a3b0547b74a9ee193ef98cdaa | 1,235 | py | Python | lambda_module.py | sernst/HelloLambda | 641f4219f4182bfa7156f7cf9d8d3dc9433d9d8a | [
"Apache-2.0"
] | null | null | null | lambda_module.py | sernst/HelloLambda | 641f4219f4182bfa7156f7cf9d8d3dc9433d9d8a | [
"Apache-2.0"
] | null | null | null | lambda_module.py | sernst/HelloLambda | 641f4219f4182bfa7156f7cf9d8d3dc9433d9d8a | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import division
import os
import sys
#*******************************************************************************
# Initialize the python environment by adding the necessary local... | 30.121951 | 80 | 0.633198 | 149 | 1,235 | 5.053691 | 0.543624 | 0.053121 | 0.084993 | 0.037185 | 0.162019 | 0.090305 | 0.090305 | 0.090305 | 0 | 0 | 0 | 0.006705 | 0.154656 | 1,235 | 40 | 81 | 30.875 | 0.714559 | 0.480162 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1ae4083d35edd1ac8d1b643cc488f12514330692 | 3,917 | py | Python | src/Instructions/beq.py | martydill/PyCIL | 7f9db640e921bfc61dcedd1cbd217b61d107afb8 | [
"BSD-2-Clause"
] | 3 | 2016-09-05T18:37:15.000Z | 2021-12-24T02:22:06.000Z | src/Instructions/beq.py | martydill/PyCIL | 7f9db640e921bfc61dcedd1cbd217b61d107afb8 | [
"BSD-2-Clause"
] | null | null | null | src/Instructions/beq.py | martydill/PyCIL | 7f9db640e921bfc61dcedd1cbd217b61d107afb8 | [
"BSD-2-Clause"
] | 1 | 2018-11-28T16:57:41.000Z | 2018-11-28T16:57:41.000Z | # beq.py
# The CIL beq instruction
# Copyright 2010 Marty Dill - see LICENSE for details
from Instruction import Instruction
import unittest
from Instructions.ldc import ldc
from Instructions.Instruction import register
from Variable import Variable
class beq(Instruction):
def __init__(self, args):
self.... | 28.179856 | 69 | 0.578759 | 469 | 3,917 | 4.75693 | 0.183369 | 0.093232 | 0.136262 | 0.107575 | 0.711788 | 0.69117 | 0.69117 | 0.69117 | 0.69117 | 0.69117 | 0 | 0.021174 | 0.312739 | 3,917 | 138 | 70 | 28.384058 | 0.807578 | 0.067654 | 0 | 0.740741 | 0 | 0 | 0.021417 | 0 | 0 | 0 | 0.002197 | 0.007246 | 0.074074 | 1 | 0.055556 | false | 0 | 0.12037 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.