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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
efcd00768e41ddb36d75bf0f6e777750d27a4e07 | 381 | py | Python | cen/models/__init__.py | slabbaki/discriminative-subtyping | fc9ce91da79aa35360ad916db19cd73449344335 | [
"Apache-2.0"
] | 1 | 2021-11-05T16:20:16.000Z | 2021-11-05T16:20:16.000Z | cen/models/__init__.py | slabbaki/discriminative-subtyping | fc9ce91da79aa35360ad916db19cd73449344335 | [
"Apache-2.0"
] | null | null | null | cen/models/__init__.py | slabbaki/discriminative-subtyping | fc9ce91da79aa35360ad916db19cd73449344335 | [
"Apache-2.0"
] | null | null | null | from . import baseline
from . import cen
from . import moe
def get(name, **kwargs):
if name == "baseline":
build_model = baseline.build_model
elif name == "cen":
build_model = cen.build_model
elif name == "moe":
build_model = moe.build_model
else:
raise ValueError(f"Unk... | 22.411765 | 56 | 0.627297 | 49 | 381 | 4.734694 | 0.387755 | 0.301724 | 0.155172 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259843 | 381 | 16 | 57 | 23.8125 | 0.822695 | 0 | 0 | 0 | 0 | 0 | 0.107612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efe888e17d8b16bdfca2a27b6df8417ac768c62f | 318 | py | Python | pytorch_toolkit/formula_recognition/tools/make_vocab.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | 3 | 2020-12-29T02:47:32.000Z | 2021-11-12T08:12:51.000Z | pytorch_toolkit/formula_recognition/tools/make_vocab.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | 9 | 2021-09-08T03:12:59.000Z | 2022-03-12T00:57:19.000Z | pytorch_toolkit/formula_recognition/tools/make_vocab.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | null | null | null | import argparse
from im2latex.data.vocab import write_vocab
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Read file with formulas and create vocab file")
parser.add_argument('--data_path', help='path to the formulas')
args = parser.parse_args()
write_vocab(args.data_path)
| 31.8 | 97 | 0.751572 | 43 | 318 | 5.232558 | 0.627907 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.147799 | 318 | 9 | 98 | 35.333333 | 0.826568 | 0 | 0 | 0 | 0 | 0 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 1 |
efea093b682123ed191b6811a5f8b35ee20fa5c5 | 2,489 | py | Python | examples/crawler/crawl.py | denismo/hopper | af9d141f665199b58d5b6fc2a9dd46e8a930d38d | [
"Apache-2.0"
] | null | null | null | examples/crawler/crawl.py | denismo/hopper | af9d141f665199b58d5b6fc2a9dd46e8a930d38d | [
"Apache-2.0"
] | 8 | 2016-09-29T10:35:03.000Z | 2016-10-05T09:27:16.000Z | examples/crawler/crawl.py | denismo/hopper | af9d141f665199b58d5b6fc2a9dd46e8a930d38d | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from examples.crawler.db import isUrlProcessed, markUrlProcessed
from hop import Context, ContextConfig
from hop.local import LocalContext
from hop.kinesis import LambdaContext
from examples.crawler.html import extractUrls
from examples.crawler.webio import download
__author__ = '... | 36.072464 | 141 | 0.694255 | 316 | 2,489 | 5.376582 | 0.357595 | 0.021189 | 0.021189 | 0.019423 | 0.201883 | 0.094173 | 0.094173 | 0.036492 | 0.036492 | 0.036492 | 0 | 0.006869 | 0.181197 | 2,489 | 68 | 142 | 36.602941 | 0.826791 | 0.098835 | 0 | 0.185185 | 0 | 0 | 0.164506 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.111111 | false | 0 | 0.148148 | 0.018519 | 0.314815 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efeab33039e18693cf0f76d4108fc8ff0348cf72 | 342 | py | Python | meshless/espim/tests/test_read_mesh.py | compmech/particles | d23ae69ad4c79024b997a232247b4ae0e1e7031c | [
"BSD-2-Clause"
] | 8 | 2017-06-16T15:50:43.000Z | 2021-12-01T10:20:36.000Z | meshless/espim/tests/test_read_mesh.py | compmech/particles | d23ae69ad4c79024b997a232247b4ae0e1e7031c | [
"BSD-2-Clause"
] | 2 | 2017-12-27T11:07:04.000Z | 2019-01-22T19:34:33.000Z | meshless/espim/tests/test_read_mesh.py | compmech/particles | d23ae69ad4c79024b997a232247b4ae0e1e7031c | [
"BSD-2-Clause"
] | 4 | 2017-05-17T17:53:20.000Z | 2019-04-03T01:57:58.000Z | import os
import inspect
from meshless.espim.read_mesh import read_mesh
THISDIR = os.path.dirname(inspect.getfile(inspect.currentframe()))
def test_read_mesh():
mesh = read_mesh(os.path.join(THISDIR, 'nastran_plate_16_nodes.dat'))
assert len(mesh.nodes) == 16
assert len(mesh.elements) == 18
assert le... | 22.8 | 73 | 0.730994 | 51 | 342 | 4.745098 | 0.529412 | 0.132231 | 0.161157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.146199 | 342 | 14 | 74 | 24.428571 | 0.80137 | 0 | 0 | 0 | 0 | 0 | 0.076471 | 0.076471 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
eff96ee047014c1f7f89ff832c49d38968fc0ce7 | 671 | py | Python | spinta/accesslog/python.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | spinta/accesslog/python.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | spinta/accesslog/python.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | from typing import List, Dict, Any
import json
from spinta import commands
from spinta.accesslog import AccessLog
from spinta.components import Context, Store
class PythonAccessLog(AccessLog):
stream: list
def log(self, **kwargs):
message = self.create_message(**kwargs)
# `message` must be ... | 25.807692 | 69 | 0.707899 | 77 | 671 | 6.155844 | 0.428571 | 0.158228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19225 | 671 | 25 | 70 | 26.84 | 0.874539 | 0.053651 | 0 | 0 | 0 | 0 | 0.050553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
effc619489e3536c16e7f98308934b21d24d8c7d | 1,431 | py | Python | PrivateMonitorServer/src/auth/Auth.py | ajax-2/PrivateMonitor | 9ab79ad08ba820bdb4c292676299bdeb2af7f725 | [
"Apache-2.0"
] | null | null | null | PrivateMonitorServer/src/auth/Auth.py | ajax-2/PrivateMonitor | 9ab79ad08ba820bdb4c292676299bdeb2af7f725 | [
"Apache-2.0"
] | null | null | null | PrivateMonitorServer/src/auth/Auth.py | ajax-2/PrivateMonitor | 9ab79ad08ba820bdb4c292676299bdeb2af7f725 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import time
from Config import Config
import threading
conf = Config()
class Auth(object):
verify_users = {}
def __new__(cls, *args, **kwargs):
if not hasattr(cls, "_init"):
cls._init = object.__new__(cls)
return cls._init
def add(self, user):
self.... | 25.553571 | 93 | 0.580014 | 190 | 1,431 | 4.221053 | 0.3 | 0.123441 | 0.149626 | 0.094763 | 0.159601 | 0.102244 | 0.102244 | 0.102244 | 0.102244 | 0.102244 | 0 | 0.003902 | 0.283718 | 1,431 | 55 | 94 | 26.018182 | 0.778537 | 0.020266 | 0 | 0.052632 | 0 | 0.026316 | 0.086552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0 | 0.105263 | 0.026316 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
effecf4ad65bc51ea3d455876a22d78e0f1ea07a | 1,471 | py | Python | groklog/args.py | apockill/groklog | 3d7de51086851fc68dba6ae77aafd3e5274549c7 | [
"MIT"
] | 2 | 2021-07-15T02:18:56.000Z | 2022-02-01T19:33:34.000Z | groklog/args.py | apockill/groklog | 3d7de51086851fc68dba6ae77aafd3e5274549c7 | [
"MIT"
] | 1 | 2022-03-08T23:24:00.000Z | 2022-03-08T23:24:00.000Z | groklog/args.py | apockill/groklog | 3d7de51086851fc68dba6ae77aafd3e5274549c7 | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from pathlib import Path
import appdirs
long_description = """
Welcome to GrokLog!
GrokLog is a tool for creating "process trees", that is, a root process (an ordinary shell)
has its output piped into the stdin of other processes. Those other processes can in
turn have _their_ st... | 31.297872 | 91 | 0.71516 | 214 | 1,471 | 4.841122 | 0.579439 | 0.031853 | 0.043436 | 0.046332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220258 | 1,471 | 46 | 92 | 31.978261 | 0.903226 | 0 | 0 | 0.057143 | 0 | 0.028571 | 0.636982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
560323e25617c3820a1c61573c4f5d6af087df18 | 1,046 | py | Python | PyScraper/module1.py | aaaa-trsh/Eye-DCGAN | 0cecf2b3de6d97a91fc9c27d55c6b47320b538c5 | [
"MIT"
] | null | null | null | PyScraper/module1.py | aaaa-trsh/Eye-DCGAN | 0cecf2b3de6d97a91fc9c27d55c6b47320b538c5 | [
"MIT"
] | null | null | null | PyScraper/module1.py | aaaa-trsh/Eye-DCGAN | 0cecf2b3de6d97a91fc9c27d55c6b47320b538c5 | [
"MIT"
] | 1 | 2021-10-06T14:25:05.000Z | 2021-10-06T14:25:05.000Z | import glob
import imageio
import matplotlib.pyplot as plt
from matplotlib.image import imread
import numpy as np
import os
import PIL
from tensorflow.keras import layers
import time
from IPython import display
from PIL import Image, ImageOps
import glob
import numpy as np
IMG_DIR = './data/eyes/'
image_list = []
ima... | 22.73913 | 56 | 0.712237 | 169 | 1,046 | 4.260355 | 0.426036 | 0.0625 | 0.054167 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.162524 | 1,046 | 46 | 57 | 22.73913 | 0.794521 | 0.048757 | 0 | 0.105263 | 0 | 0 | 0.066465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342105 | 0 | 0.342105 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4bd05daa42f0a0343361a595617a9130296606d5 | 364 | py | Python | py_examples/threads.py | archik408/py-test-app | ad4e4b34db2b3934551e73f53859b5e28b6fea34 | [
"MIT"
] | null | null | null | py_examples/threads.py | archik408/py-test-app | ad4e4b34db2b3934551e73f53859b5e28b6fea34 | [
"MIT"
] | null | null | null | py_examples/threads.py | archik408/py-test-app | ad4e4b34db2b3934551e73f53859b5e28b6fea34 | [
"MIT"
] | null | null | null | from threading import Thread
from time import sleep
def tf(arg):
for i in range(arg):
print "running"
sleep(1)
if __name__ == "__main__":
thread = Thread(target = tf, args = (5, ))
thread.start()
# parallel
for i in range(6):
print "continuing"
sleep(1)
thread.... | 20.222222 | 46 | 0.590659 | 47 | 364 | 4.404255 | 0.617021 | 0.038647 | 0.057971 | 0.10628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0.291209 | 364 | 18 | 47 | 20.222222 | 0.786822 | 0.021978 | 0 | 0.142857 | 0 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bdf5f04c6014781305171c8af87bcfad58b830f | 1,783 | py | Python | tests/test_helper.py | xlsdnx/myambra | 607dae0afcaefc70653b86a5e3211881cf5eb44c | [
"MIT"
] | null | null | null | tests/test_helper.py | xlsdnx/myambra | 607dae0afcaefc70653b86a5e3211881cf5eb44c | [
"MIT"
] | null | null | null | tests/test_helper.py | xlsdnx/myambra | 607dae0afcaefc70653b86a5e3211881cf5eb44c | [
"MIT"
] | null | null | null | import requests
import logging
import sys
import os
import pytest
import shlex
from singledispatch import singledispatch
from subprocess import call
import subprocess
from retry import retry
# TODO: perhaps this file should be moved to envoy?
logging.basicConfig(stream=sys.stderr )
logging.getLogger("log").setLevel( ... | 27.015152 | 82 | 0.74369 | 246 | 1,783 | 5.223577 | 0.365854 | 0.111284 | 0.0607 | 0.121401 | 0.194553 | 0.163424 | 0.163424 | 0.163424 | 0.163424 | 0.163424 | 0 | 0.011658 | 0.134044 | 1,783 | 65 | 83 | 27.430769 | 0.820596 | 0.042625 | 0 | 0.22 | 0 | 0 | 0.122066 | 0.016432 | 0 | 0 | 0 | 0.015385 | 0.12 | 1 | 0.12 | false | 0 | 0.2 | 0 | 0.38 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4be176116c146d1a2f230b77ae13639fa2567adb | 1,260 | py | Python | 1c_GT_Computer_Networks/Project-2/test-client.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | 4 | 2016-08-28T03:21:36.000Z | 2021-01-19T01:59:17.000Z | 1c_GT_Computer_Networks/Project-2/test-client.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | null | null | null | 1c_GT_Computer_Networks/Project-2/test-client.py | yevheniyc/Python | 262842477793d65c2b382ca810867fd24a415576 | [
"MIT"
] | 1 | 2018-05-20T12:33:23.000Z | 2018-05-20T12:33:23.000Z | #!/usr/bin/python
"Test client - This opens a connection to the IP and port specified by \
the user in the command line. Sends over what is typed into the client."
# Based on http://pymotw.com/2/socket/tcp.html
import socket
import sys
if not (len(sys.argv) == 3):
print "Syntax:"
print " python test-... | 27.391304 | 76 | 0.670635 | 188 | 1,260 | 4.441489 | 0.457447 | 0.038323 | 0.067066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007121 | 0.219841 | 1,260 | 45 | 77 | 28 | 0.842319 | 0.140476 | 0 | 0 | 0 | 0 | 0.236769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.296296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4be9e7b3f1d8dc92e7eb20af897bc616463c0bc8 | 278 | py | Python | h/streamer/__init__.py | kevinjalbert/h | 0f260bf59847f27eff720eeb3c3b2468571412b2 | [
"BSD-2-Clause"
] | 1 | 2020-06-19T01:49:39.000Z | 2020-06-19T01:49:39.000Z | h/streamer/__init__.py | kevinjalbert/h | 0f260bf59847f27eff720eeb3c3b2468571412b2 | [
"BSD-2-Clause"
] | 5 | 2020-03-24T18:14:50.000Z | 2022-03-02T06:56:50.000Z | h/streamer/__init__.py | liquidinvestigations/hypothesis-h | 2eebc0b20823fc5bc42a8e8c33551a6d448ad6ba | [
"BSD-2-Clause"
] | null | null | null | from h.streamer.tweens import close_db_session_tween_factory
__all__ = ["close_db_session_tween_factory"]
def includeme(config):
config.include("h.streamer.views")
config.add_subscriber(
"h.streamer.streamer.start", "pyramid.events.ApplicationCreated"
)
| 23.166667 | 72 | 0.755396 | 34 | 278 | 5.794118 | 0.647059 | 0.137056 | 0.142132 | 0.192893 | 0.263959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136691 | 278 | 11 | 73 | 25.272727 | 0.820833 | 0 | 0 | 0 | 0 | 0 | 0.374101 | 0.316547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bee939aa81eb1f700e9016d2bd68b3774cae1e9 | 615 | py | Python | app/admin/infrastructure/queries.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | null | null | null | app/admin/infrastructure/queries.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | null | null | null | app/admin/infrastructure/queries.py | ExiledNarwal28/glo-2005-project | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | [
"MIT"
] | 1 | 2020-05-21T10:07:07.000Z | 2020-05-21T10:07:07.000Z | from app.admin.infrastructure.tables import MySQLStatEventsTable as StatEvents
from app.interfaces.infrastructure.queries import MySQLQuery
all_fields = f'{StatEvents.type_name_col}, {StatEvents.date_col}'
select_all_operation = f'SELECT {all_fields} FROM {StatEvents.table_name}'
class MySQLStatEventQuery(MySQLQuer... | 30.75 | 89 | 0.752846 | 78 | 615 | 5.717949 | 0.474359 | 0.060538 | 0.080717 | 0.09417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149594 | 615 | 19 | 90 | 32.368421 | 0.852772 | 0 | 0 | 0 | 0 | 0 | 0.265041 | 0.152846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4bef10077a339cf1db0281da378020ce2ff46778 | 793 | py | Python | Burp/lib/issue_listener.py | wisdark/HUNT | 9b128913f62e01ed9e82db1e1eee79e4b88385fb | [
"Apache-2.0"
] | 1,628 | 2017-08-07T17:27:17.000Z | 2022-03-28T18:43:34.000Z | Burp/lib/issue_listener.py | wisdark/HUNT | 9b128913f62e01ed9e82db1e1eee79e4b88385fb | [
"Apache-2.0"
] | 48 | 2017-08-08T11:56:48.000Z | 2021-04-08T18:01:31.000Z | Burp/lib/issue_listener.py | wisdark/HUNT | 9b128913f62e01ed9e82db1e1eee79e4b88385fb | [
"Apache-2.0"
] | 328 | 2017-08-08T05:12:48.000Z | 2022-03-31T15:15:20.000Z | from javax.swing.event import ListSelectionListener
class IssueListener(ListSelectionListener):
def __init__(self, view, table, scanner_pane, issue_name, issue_param):
self.view = view
self.table = table
self.scanner_pane = scanner_pane
self.issue_name = issue_name
self.issu... | 41.736842 | 128 | 0.701135 | 100 | 793 | 5.33 | 0.33 | 0.118199 | 0.12758 | 0.202627 | 0.225141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006279 | 0.196721 | 793 | 18 | 129 | 44.055556 | 0.830455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef1275e8978c2076d21c48c7d81bb2be5598052e | 451 | py | Python | code/__init__.py | andycasey/stellar-twins | 9b3cfbf608e3e15a2358bbd33aa5ae21cfc1d0dd | [
"MIT"
] | null | null | null | code/__init__.py | andycasey/stellar-twins | 9b3cfbf608e3e15a2358bbd33aa5ae21cfc1d0dd | [
"MIT"
] | null | null | null | code/__init__.py | andycasey/stellar-twins | 9b3cfbf608e3e15a2358bbd33aa5ae21cfc1d0dd | [
"MIT"
] | 1 | 2016-09-28T20:47:21.000Z | 2016-09-28T20:47:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" The Cannon for absolute stellar luminosities. """
__author__ = "Andy Casey <arc@ast.cam.ac.uk>"
import logging
import numpy as np
from warnings import simplefilter
# Speak up.
logging.basicConfig(level=logging.INFO,
format="%(asctime)s [%(levelname)s] %(message... | 23.736842 | 53 | 0.718404 | 58 | 451 | 5.517241 | 0.775862 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002532 | 0.124169 | 451 | 19 | 54 | 23.736842 | 0.807595 | 0.239468 | 0 | 0 | 0 | 0 | 0.260479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ef14a88c63591ca35c49602d45a4bf7a8ce3b2a3 | 4,563 | py | Python | pyhton_deneme1.py | matua34/python | bb0ff3e35b96050fa19fdbd5ac67e409266a5332 | [
"BSD-2-Clause"
] | null | null | null | pyhton_deneme1.py | matua34/python | bb0ff3e35b96050fa19fdbd5ac67e409266a5332 | [
"BSD-2-Clause"
] | null | null | null | pyhton_deneme1.py | matua34/python | bb0ff3e35b96050fa19fdbd5ac67e409266a5332 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 1 03:50:35 2020
@author: metea
"""
"""
print ("hello ai era")
type(8)
type(5.4)
type("hello si era")"""
#sayılar ve dizinler
"""
type("125")
"a"+"b"
"a " "b"
"a" -"b"
"a"*5
"a "*7
"""
#METHOTLAR İŞLEC BELİRLİ GÖREVLERİ YERİNE GETİRİR
"""len("alican")
... | 19.334746 | 80 | 0.550953 | 666 | 4,563 | 3.77027 | 0.397898 | 0.075667 | 0.020709 | 0.023895 | 0.071685 | 0.042613 | 0.034249 | 0.019116 | 0.019116 | 0.019116 | 0 | 0.071906 | 0.213675 | 4,563 | 235 | 81 | 19.417021 | 0.619287 | 0.263423 | 0 | 0.083333 | 0 | 0 | 0.108931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef27c7604e4cd2cd45be599d4257b26fd545fb29 | 765 | py | Python | python/class_practice.py | nssuperx/playground | ee0484998cdd2697d2563fb03b4cca5812327355 | [
"Unlicense"
] | null | null | null | python/class_practice.py | nssuperx/playground | ee0484998cdd2697d2563fb03b4cca5812327355 | [
"Unlicense"
] | null | null | null | python/class_practice.py | nssuperx/playground | ee0484998cdd2697d2563fb03b4cca5812327355 | [
"Unlicense"
] | null | null | null | from enum import Enum, auto
class testClass():
element1 = 1
element2 = "string"
def instanceMethod(self):
pass
@classmethod
def classMethod():
pass
@staticmethod
def staticMethod():
pass
class enumClass(Enum):
cpu = auto()
memory = au... | 16.630435 | 30 | 0.562092 | 76 | 765 | 5.526316 | 0.407895 | 0.080952 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01354 | 0.324183 | 765 | 45 | 31 | 17 | 0.798839 | 0 | 0 | 0.090909 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.090909 | 0.030303 | 0 | 0.393939 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ef2d25eae6f15a4540d47c521cb2b6db0d241b17 | 409 | py | Python | website/article/migrations/0002_auto_20211024_1228.py | Bigpop/Vue3-Django-drf | 899fca9fed3a7d51a0e39a5ac4ec2103596eedef | [
"MIT"
] | 1 | 2021-12-11T10:10:48.000Z | 2021-12-11T10:10:48.000Z | article/migrations/0002_auto_20211024_1228.py | Bigpop/django-blog-template | 96f015024521c3d7c2d0ff409202940d7ffbfcec | [
"MIT"
] | null | null | null | article/migrations/0002_auto_20211024_1228.py | Bigpop/django-blog-template | 96f015024521c3d7c2d0ff409202940d7ffbfcec | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2021-10-24 12:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='article',
name='cover',
f... | 21.526316 | 84 | 0.599022 | 44 | 409 | 5.5 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0.273839 | 409 | 18 | 85 | 22.722222 | 0.750842 | 0.110024 | 0 | 0 | 1 | 0 | 0.146409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef2e11244b8a5fbfdbaf72a10e1ce49f2aa0b445 | 618 | py | Python | restapi/src/DB/DBConnection.py | RaymanRJ/rrjamal.ca | d0231076ff4f47531a8f990332a09eeb9abb69f5 | [
"MIT"
] | null | null | null | restapi/src/DB/DBConnection.py | RaymanRJ/rrjamal.ca | d0231076ff4f47531a8f990332a09eeb9abb69f5 | [
"MIT"
] | null | null | null | restapi/src/DB/DBConnection.py | RaymanRJ/rrjamal.ca | d0231076ff4f47531a8f990332a09eeb9abb69f5 | [
"MIT"
] | null | null | null | from typing import Dict
import psycopg2
from DBConfig import db_config
class DBConnection:
__config: Dict[str, str]
__conn: psycopg2
def __init__(self):
self.__config = db_config
print(self.__config)
self.__conn = psycopg2.connect(
host=self.__config['host'],
... | 22.071429 | 47 | 0.614887 | 66 | 618 | 5.333333 | 0.393939 | 0.170455 | 0.102273 | 0.125 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 0.283172 | 618 | 27 | 48 | 22.888889 | 0.783296 | 0 | 0 | 0.095238 | 0 | 0 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.047619 | 0.142857 | 0.095238 | 0.52381 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef3ab201448d604bbfb8e5b37c89458d8d1819d6 | 20,606 | py | Python | molly/apps/sakai/views.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 7 | 2015-05-16T13:27:21.000Z | 2019-08-06T11:09:24.000Z | molly/apps/sakai/views.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | null | null | null | molly/apps/sakai/views.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 4 | 2015-11-27T13:36:36.000Z | 2021-03-09T17:55:53.000Z | import logging
import urllib
import urllib2
import simplejson
import urlparse
import dateutil.parser
import socket
from lxml import etree
from dateutil.tz import tzutc
from StringIO import StringIO
from datetime import datetime, timedelta
from contextlib import contextmanager
from simplejson.decoder import JSONDecodeEr... | 38.230056 | 153 | 0.596816 | 2,197 | 20,606 | 5.484297 | 0.168411 | 0.047639 | 0.035854 | 0.029878 | 0.454312 | 0.421612 | 0.36003 | 0.242344 | 0.197195 | 0.158353 | 0 | 0.006306 | 0.284238 | 20,606 | 538 | 154 | 38.301115 | 0.810631 | 0.033777 | 0 | 0.331818 | 0 | 0 | 0.148856 | 0.033817 | 0 | 0 | 0 | 0.001859 | 0 | 0 | null | null | 0.002273 | 0.054545 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef4283607c0fcbc7fa948bf325c348added1747a | 5,116 | py | Python | src/main.py | DantasB/smart-speaker | d74151f447848f5054d310679cafb0b3298d34bd | [
"MIT"
] | 1 | 2021-09-25T16:07:30.000Z | 2021-09-25T16:07:30.000Z | src/main.py | DantasB/smart-speaker | d74151f447848f5054d310679cafb0b3298d34bd | [
"MIT"
] | 1 | 2022-01-10T03:50:13.000Z | 2022-01-10T03:50:13.000Z | src/main.py | DantasB/smart-speaker | d74151f447848f5054d310679cafb0b3298d34bd | [
"MIT"
] | null | null | null | import os
import re
import requests
from datetime import datetime as dt
import dotenv
from shared_library.shared_library import generate_workfolder, delete_workfolder
from listener.listener import Listener
from speaker.speaker import Speaker
dotenv.load_dotenv()
ACTIVATION_WORD = os.environ.get("ACTIVATION_WORD")
pr... | 51.676768 | 137 | 0.528733 | 532 | 5,116 | 4.964286 | 0.261278 | 0.037486 | 0.054525 | 0.078379 | 0.480878 | 0.408179 | 0.382431 | 0.345324 | 0.345324 | 0.345324 | 0 | 0.010946 | 0.357115 | 5,116 | 98 | 138 | 52.204082 | 0.792034 | 0.05864 | 0 | 0.364706 | 1 | 0.035294 | 0.195132 | 0.005201 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.094118 | 0 | 0.094118 | 0.129412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef5253f77623cb75ca687c243a1ade0bd6de9e42 | 530 | py | Python | setup.py | drivefast/pycipherwallet | 04e23f6c4291bf61812d8621238658207e2d70f3 | [
"MIT"
] | 1 | 2015-01-09T02:30:12.000Z | 2015-01-09T02:30:12.000Z | setup.py | drivefast/pycipherwallet | 04e23f6c4291bf61812d8621238658207e2d70f3 | [
"MIT"
] | null | null | null | setup.py | drivefast/pycipherwallet | 04e23f6c4291bf61812d8621238658207e2d70f3 | [
"MIT"
] | null | null | null | from setuptools import setup
setup (
name="pycipherwallet",
version=open("VERSION").read(),
author="drivefast",
author_email="radu@cqr.io",
packages=["cipherwallet"],
include_package_data=True,
url="https://github.com/drivefast/pycipherwallet",
download_url="https://github.com/drivefast... | 33.125 | 97 | 0.696226 | 57 | 530 | 6.368421 | 0.684211 | 0.060606 | 0.082645 | 0.093664 | 0.220386 | 0.220386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130189 | 530 | 15 | 98 | 35.333333 | 0.787419 | 0 | 0 | 0 | 0 | 0 | 0.40566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef594cf149982d44d38273489acf1731afb032c2 | 1,632 | py | Python | Square-in-Square.py | Pallav277/Python_Turtle_Graphics | 3e0d4fd6160b0aa5fbde8757051a85a81b7652d9 | [
"Apache-2.0"
] | null | null | null | Square-in-Square.py | Pallav277/Python_Turtle_Graphics | 3e0d4fd6160b0aa5fbde8757051a85a81b7652d9 | [
"Apache-2.0"
] | null | null | null | Square-in-Square.py | Pallav277/Python_Turtle_Graphics | 3e0d4fd6160b0aa5fbde8757051a85a81b7652d9 | [
"Apache-2.0"
] | null | null | null | import turtle
wn = turtle.getscreen()
wn.bgcolor("black")
s = turtle.Turtle()
for i in range(4):
s.begin_fill()
s.forward(100)
s.left(90)
s.pencolor("red")
s.forward(100)
s.fillcolor("red")
s.end_fill()
for i in range(4):
s.begin_fill()
s.forward(90)
s.left(90)
s.pencolor("... | 17.178947 | 25 | 0.569853 | 271 | 1,632 | 3.357934 | 0.143911 | 0.175824 | 0.065934 | 0.120879 | 0.584615 | 0.408791 | 0.408791 | 0.408791 | 0.408791 | 0.408791 | 0 | 0.058872 | 0.250613 | 1,632 | 94 | 26 | 17.361702 | 0.6852 | 0 | 0 | 0.714286 | 0 | 0 | 0.059436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011905 | 0 | 0.011905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
ef5e1486ab30c6eb7b1c308e94e73f98c419eef8 | 4,886 | py | Python | tests/test_cases.py | vegarsti/pycolumn | a9589b1020e4ac832a4ac78531792b5890fe2717 | [
"MIT"
] | 34 | 2017-10-31T12:42:25.000Z | 2021-12-04T04:27:35.000Z | tests/test_cases.py | vegarsti/pycolumn | a9589b1020e4ac832a4ac78531792b5890fe2717 | [
"MIT"
] | 10 | 2018-02-14T07:58:19.000Z | 2021-03-30T15:03:45.000Z | tests/test_cases.py | vegarsti/pycolumn | a9589b1020e4ac832a4ac78531792b5890fe2717 | [
"MIT"
] | 3 | 2018-02-13T09:44:12.000Z | 2021-09-29T07:16:20.000Z | expected_normal_output = """Title Release Year Estimated Budget
Shawshank Redemption 1994 $25 000 000
The Godfather 1972 $6 000 000
The Godfather: Part II 1974 $13 000 000
The Dark Knight 2008 $185 000 000
12 Angry Men 1957 ... | 49.353535 | 108 | 0.5307 | 542 | 4,886 | 4.638376 | 0.136531 | 0.090692 | 0.089499 | 0.121718 | 0.696102 | 0.591885 | 0.536595 | 0.526651 | 0.526651 | 0.526651 | 0 | 0.165028 | 0.312935 | 4,886 | 99 | 109 | 49.353535 | 0.583855 | 0 | 0 | 0.45977 | 0 | 0 | 0.731123 | 0.063843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef5e7917d9306a97f8b631664b47a68314781816 | 375 | py | Python | api/settings.py | Bibliotecaio/biblioteca | 584268b7615f2be5f011fad09b472ee8a06914e0 | [
"MIT"
] | null | null | null | api/settings.py | Bibliotecaio/biblioteca | 584268b7615f2be5f011fad09b472ee8a06914e0 | [
"MIT"
] | null | null | null | api/settings.py | Bibliotecaio/biblioteca | 584268b7615f2be5f011fad09b472ee8a06914e0 | [
"MIT"
] | null | null | null | from .base_settings import *
import os
import sys
PRJ_ROOT = os.path.normpath(os.path.dirname(__file__))
DEBUG = True
# Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'biblioteca',
'USER': 'biblioteca',
'PASSWORD': '123456',
... | 17.857143 | 59 | 0.586667 | 38 | 375 | 5.605263 | 0.842105 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039286 | 0.253333 | 375 | 20 | 60 | 18.75 | 0.721429 | 0.021333 | 0 | 0 | 0 | 0 | 0.313187 | 0.104396 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
322c38968c35031497ca501bae9ef55ade200484 | 758 | py | Python | pwa_store_backend/pwas/migrations/0014_auto_20210814_1611.py | nathanhfoster/pwa-store-backend | 93a4bb1d347a9076b40600a2ec2fac92cada03cf | [
"MIT"
] | null | null | null | pwa_store_backend/pwas/migrations/0014_auto_20210814_1611.py | nathanhfoster/pwa-store-backend | 93a4bb1d347a9076b40600a2ec2fac92cada03cf | [
"MIT"
] | 38 | 2021-08-09T21:15:40.000Z | 2021-10-11T04:15:47.000Z | pwa_store_backend/pwas/migrations/0014_auto_20210814_1611.py | nathanhfoster/pwa-store-backend | 93a4bb1d347a9076b40600a2ec2fac92cada03cf | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-08-14 16:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pwas', '0013_pwaanalytics'),
]
operations = [
migrations.AlterModelOptions(
name='pwaanalytics... | 27.071429 | 129 | 0.596306 | 79 | 758 | 5.607595 | 0.56962 | 0.054176 | 0.063205 | 0.099323 | 0.090293 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03643 | 0.275726 | 758 | 27 | 130 | 28.074074 | 0.770492 | 0.060686 | 0 | 0.333333 | 1 | 0 | 0.16338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3237a8f0c9b60052c475350cfd5b1d1f5f4340b4 | 1,237 | py | Python | tekstovni_vmesnik.py | justinraisp/Potapljanje_ladjic | 915ee4cdcc907e312d2dae9f47e161b72dda6e89 | [
"MIT"
] | null | null | null | tekstovni_vmesnik.py | justinraisp/Potapljanje_ladjic | 915ee4cdcc907e312d2dae9f47e161b72dda6e89 | [
"MIT"
] | null | null | null | tekstovni_vmesnik.py | justinraisp/Potapljanje_ladjic | 915ee4cdcc907e312d2dae9f47e161b72dda6e89 | [
"MIT"
] | null | null | null | import model
import time
def izpis_igre(igra):
konec_igre = model.konec_igre
print('---Dobrodosli v igri potapljanje ladjic---')
print('Imate 40 strelov, da zadanete 4 ladje velikosti 2, 3, 4, 5. Naj se bitka zacne!')
while not konec_igre:
for vrstica in igra.izpisi_plosco():
print... | 38.65625 | 98 | 0.594988 | 156 | 1,237 | 4.596154 | 0.474359 | 0.075314 | 0.054393 | 0.041841 | 0.09205 | 0.09205 | 0.09205 | 0 | 0 | 0 | 0 | 0.017602 | 0.265158 | 1,237 | 32 | 99 | 38.65625 | 0.771177 | 0 | 0 | 0.103448 | 0 | 0.034483 | 0.301292 | 0.021809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.103448 | 0.413793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
32441f1b0f440dd8f3cbdfc2126faf29d695abe2 | 2,427 | py | Python | src/generative_playground/molecules/visualize_molecules.py | ZmeiGorynych/generative_playground | 5c336dfbd14235e4fd97b21778842a650e733275 | [
"MIT"
] | 9 | 2018-09-23T17:34:23.000Z | 2021-07-29T09:48:55.000Z | src/generative_playground/molecules/visualize_molecules.py | ZmeiGorynych/generative_playground | 5c336dfbd14235e4fd97b21778842a650e733275 | [
"MIT"
] | 2 | 2020-04-15T17:52:18.000Z | 2020-04-15T18:26:27.000Z | src/generative_playground/molecules/visualize_molecules.py | ZmeiGorynych/generative_playground | 5c336dfbd14235e4fd97b21778842a650e733275 | [
"MIT"
] | 6 | 2019-04-30T22:01:43.000Z | 2021-11-22T02:20:18.000Z |
import torch
import numpy as np
from rdkit import Chem
from rdkit.Chem import rdMolDescriptors as desc
from rdkit.Chem.Draw import MolToFile
import os, inspect
from generative_playground.molecules.rdkit_utils.rdkit_utils import NormalizedScorer
import numpy as np
scorer = NormalizedScorer()
root_location = os.path.di... | 39.786885 | 111 | 0.583024 | 299 | 2,427 | 4.608696 | 0.414716 | 0.040639 | 0.020319 | 0.034833 | 0.144412 | 0.144412 | 0.107402 | 0.060958 | 0 | 0 | 0 | 0.002899 | 0.289246 | 2,427 | 61 | 112 | 39.786885 | 0.795942 | 0.058508 | 0 | 0.240741 | 0 | 0 | 0.075844 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.259259 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
326cad557f5f27af00e798db962ffce548f6392d | 1,445 | py | Python | scripts/git2types/git2_type_repository.py | git24j/git24j | 9ea76baaff965ff4bfde15b5cc9b8fbcf2ef1330 | [
"MIT"
] | 25 | 2020-01-04T18:07:45.000Z | 2022-02-20T19:16:06.000Z | scripts/git2types/git2_type_repository.py | git24j/git24j | 9ea76baaff965ff4bfde15b5cc9b8fbcf2ef1330 | [
"MIT"
] | 5 | 2020-06-18T02:34:32.000Z | 2022-01-25T03:48:47.000Z | scripts/git2types/git2_type_repository.py | git24j/git24j | 9ea76baaff965ff4bfde15b5cc9b8fbcf2ef1330 | [
"MIT"
] | 4 | 2019-11-06T02:26:51.000Z | 2022-02-20T19:16:07.000Z | import re
from .git2_types import Git2Type
class Git2TypeConstRepository(Git2Type):
"""
const git_repository *repo:
- (header param): "jlong repoPtr"
- (wrapper_before): ""
- (c function param): "(git_repository *)repoPtr"
- (wrapper_after): ""
- (jni param): long r... | 37.051282 | 120 | 0.625606 | 182 | 1,445 | 4.637363 | 0.236264 | 0.091232 | 0.035545 | 0.030806 | 0.218009 | 0.175355 | 0.175355 | 0.175355 | 0.175355 | 0.175355 | 0 | 0.005245 | 0.208305 | 1,445 | 38 | 121 | 38.026316 | 0.732517 | 0.308651 | 0 | 0.111111 | 0 | 0.166667 | 0.462156 | 0.243119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
326db5629f03fe220772d14d3386647ea83fd4e9 | 15,702 | py | Python | phase2_train_benchmarks/model_wrappers.py | bradyneal/sampler-benchmark | dc3a84c262e8f44baae481107eadafb1e487223e | [
"MIT"
] | null | null | null | phase2_train_benchmarks/model_wrappers.py | bradyneal/sampler-benchmark | dc3a84c262e8f44baae481107eadafb1e487223e | [
"MIT"
] | null | null | null | phase2_train_benchmarks/model_wrappers.py | bradyneal/sampler-benchmark | dc3a84c262e8f44baae481107eadafb1e487223e | [
"MIT"
] | null | null | null | # Ryan Turner (turnerry@iro.umontreal.ca)
import os
import warnings
import numpy as np
from numpy.linalg.linalg import LinAlgError
import scipy.stats as ss
from scipy.misc import logsumexp
from sklearn.mixture import BayesianGaussianMixture, GaussianMixture
# IGN stuff
import bench_models.ign.ign as ign
import bench_m... | 41.321053 | 167 | 0.640364 | 2,053 | 15,702 | 4.686313 | 0.201656 | 0.01663 | 0.012473 | 0.031598 | 0.344663 | 0.31213 | 0.285625 | 0.257354 | 0.21952 | 0.21952 | 0 | 0.008802 | 0.254745 | 15,702 | 379 | 168 | 41.430079 | 0.813365 | 0.095529 | 0 | 0.310345 | 0 | 0 | 0.040731 | 0.002706 | 0 | 0 | 0 | 0.005277 | 0.045977 | 0 | null | null | 0.003831 | 0.065134 | null | null | 0.003831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3276399e3371c0f804630efd38f16d495ba91c4f | 3,278 | py | Python | avi.py | Cryptoc1/avi | 59b55c35e484a61b6e25b03f9a500a66bba6ee46 | [
"MIT"
] | 4 | 2015-11-14T20:53:16.000Z | 2015-12-17T16:52:52.000Z | avi.py | Cryptoc1/avi | 59b55c35e484a61b6e25b03f9a500a66bba6ee46 | [
"MIT"
] | null | null | null | avi.py | Cryptoc1/avi | 59b55c35e484a61b6e25b03f9a500a66bba6ee46 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###
#
# "Why can't we use twitter to visual share how we're feeling?"
#
# (c) Samuel Steele, cryptoc1
#
###
import os, sys, ConfigParser
import tweepy
_usage = "avi.py usage:\n\
-h|--help : Print this message\n\
--init : Initialize your config\n\
-l|--list : Print possibl... | 31.825243 | 209 | 0.57047 | 406 | 3,278 | 4.477833 | 0.288177 | 0.038504 | 0.061606 | 0.084708 | 0.353135 | 0.273927 | 0.212321 | 0.193069 | 0.193069 | 0.146865 | 0 | 0.004601 | 0.270592 | 3,278 | 102 | 210 | 32.137255 | 0.755751 | 0.034777 | 0 | 0.3625 | 0 | 0 | 0.202411 | 0.051713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.025 | null | null | 0.1125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
327f588092bce8fb6809006f38306163b9678617 | 826 | py | Python | crud/client.py | ES-UFABC/Grupo-2.2 | c2024fc685fd6208042bd90b34d8774dd7fcc934 | [
"MIT"
] | 5 | 2022-03-10T23:31:20.000Z | 2022-03-11T01:00:17.000Z | crud/client.py | ES-UFABC/Grupo-2.2 | c2024fc685fd6208042bd90b34d8774dd7fcc934 | [
"MIT"
] | 10 | 2022-03-21T23:16:42.000Z | 2022-03-31T02:02:09.000Z | crud/client.py | ES-UFABC/Grupo-2.2 | c2024fc685fd6208042bd90b34d8774dd7fcc934 | [
"MIT"
] | 1 | 2022-03-10T23:21:40.000Z | 2022-03-10T23:21:40.000Z | import sqlite3 as sql
def create(CPF, nome, password, email, telefone, rua, numero, bairro, cidade, estado, CEP, complemento):
print("ok")
with sql.connect("db/agrifacil.db") as con:
cur = con.cursor()
cur.execute("INSERT into consumidor (CPF, nome, password, telefone, email, rua, numero, bairr... | 43.473684 | 172 | 0.634383 | 100 | 826 | 5.22 | 0.46 | 0.04023 | 0.086207 | 0.12069 | 0.511494 | 0.511494 | 0.511494 | 0.43295 | 0.43295 | 0.43295 | 0 | 0.001527 | 0.207022 | 826 | 19 | 173 | 43.473684 | 0.79542 | 0.015739 | 0 | 0.285714 | 0 | 0.071429 | 0.326757 | 0.030826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.357143 | 0.071429 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
328013fb1aa7aaf81a92ed1e7161cdd8c9bdb75e | 2,126 | py | Python | galaxia/common/drilldown/load_mapping.py | WiproOpenSourcePractice/galaxia | baa6ea0a2192625dce2df7daddb1d983520bb7ab | [
"Apache-2.0"
] | 25 | 2016-04-27T14:45:59.000Z | 2020-05-21T00:14:56.000Z | galaxia/common/drilldown/load_mapping.py | WiproOpenSource/galaxia | baa6ea0a2192625dce2df7daddb1d983520bb7ab | [
"Apache-2.0"
] | 62 | 2016-04-27T14:13:06.000Z | 2016-11-16T05:12:21.000Z | galaxia/common/drilldown/load_mapping.py | WiproOpenSource/galaxia | baa6ea0a2192625dce2df7daddb1d983520bb7ab | [
"Apache-2.0"
] | 20 | 2016-05-01T14:28:09.000Z | 2018-10-25T18:11:29.000Z | # Copyright 2016 - Wipro Limited
#
# 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 writin... | 30.371429 | 111 | 0.657573 | 259 | 2,126 | 5.339768 | 0.459459 | 0.043384 | 0.050615 | 0.023138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005003 | 0.247883 | 2,126 | 70 | 112 | 30.371429 | 0.859912 | 0.296331 | 0 | 0 | 0 | 0 | 0.074899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0 | 0.046512 | 0.116279 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
32829ec4cc514c5cae8de5fc32ec2f6ab9cfc1f1 | 420 | py | Python | pm08-multimax/multimax.py | euccas/PyMorsels | 3898fc57551941d5d9a327d2050c2e58b967169e | [
"MIT"
] | null | null | null | pm08-multimax/multimax.py | euccas/PyMorsels | 3898fc57551941d5d9a327d2050c2e58b967169e | [
"MIT"
] | null | null | null | pm08-multimax/multimax.py | euccas/PyMorsels | 3898fc57551941d5d9a327d2050c2e58b967169e | [
"MIT"
] | 1 | 2019-09-14T05:30:55.000Z | 2019-09-14T05:30:55.000Z | def multimax(iterable):
if iterable is None:
return []
maxvars = []
max = iterable[0]
for item in iterable:
if item > max:
max = item
for item in iterable:
if item == max:
maxvars.append(item)
return maxvars
def multimax1(iterable):
if iter... | 18.26087 | 35 | 0.571429 | 48 | 420 | 5 | 0.416667 | 0.166667 | 0.15 | 0.166667 | 0.466667 | 0.466667 | 0.216667 | 0 | 0 | 0 | 0 | 0.007353 | 0.352381 | 420 | 22 | 36 | 19.090909 | 0.875 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
329a7f7e609918385449672d60b5fe69496180cc | 1,904 | py | Python | tarea_2.py | Daz-Riza-Seriog/Op_Heat_transfer | 3ee27a049a2de5deaf13356ed3e675562233ac29 | [
"MIT"
] | null | null | null | tarea_2.py | Daz-Riza-Seriog/Op_Heat_transfer | 3ee27a049a2de5deaf13356ed3e675562233ac29 | [
"MIT"
] | null | null | null | tarea_2.py | Daz-Riza-Seriog/Op_Heat_transfer | 3ee27a049a2de5deaf13356ed3e675562233ac29 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tarea_2.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1zWnlDFVNS9UkQ9mCQwPC7u-tTaHEVeox
"""
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
#datos
Lm=0.05 #Longitud en x
Ln=0.05 #... | 17 | 77 | 0.597164 | 453 | 1,904 | 2.507726 | 0.247241 | 0.042254 | 0.029049 | 0.028169 | 0.274648 | 0.221831 | 0.181338 | 0.169014 | 0.15493 | 0.038732 | 0 | 0.080049 | 0.147059 | 1,904 | 111 | 78 | 17.153153 | 0.619458 | 0.246324 | 0 | 0.20339 | 1 | 0 | 0.001421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.101695 | 0 | 0.101695 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32a63cf3f91e25c6b3d4859b758df66599e41a66 | 592 | py | Python | example_app/main.py | iwpnd/fastapi-aws-lambda-example | c68aef5bff12df42070be41c33b7e1d9d63344be | [
"MIT"
] | 117 | 2020-02-04T11:41:38.000Z | 2022-03-29T13:17:52.000Z | example_app/main.py | iwpnd/fastapi-aws-lambda-example | c68aef5bff12df42070be41c33b7e1d9d63344be | [
"MIT"
] | 7 | 2020-02-16T19:26:34.000Z | 2021-01-04T14:02:45.000Z | example_app/main.py | iwpnd/fastapi-aws-lambda-example | c68aef5bff12df42070be41c33b7e1d9d63344be | [
"MIT"
] | 17 | 2020-05-12T13:52:21.000Z | 2022-01-31T19:12:20.000Z | from fastapi import FastAPI
from mangum import Mangum
from example_app.api.api_v1.api import router as api_router
from example_app.core.config import API_V1_STR, PROJECT_NAME
app = FastAPI(
title=PROJECT_NAME,
# if not custom domain
# openapi_prefix="/prod"
)
app.include_router(api_router, prefix=API_V1... | 18.5 | 64 | 0.70777 | 87 | 592 | 4.655172 | 0.586207 | 0.037037 | 0.069136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.199324 | 592 | 31 | 65 | 19.096774 | 0.848101 | 0.285473 | 0 | 0 | 0 | 0 | 0.035623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
32ae4958c8a8dbba0cdb4c91cd33362bc619966a | 1,012 | py | Python | test/test_common.py | orange-kao/pglookout | 55ac891e6ce3b2e47ca6c6c9027c0a4d98dba002 | [
"Apache-2.0"
] | 61 | 2018-10-08T15:53:25.000Z | 2022-03-29T18:02:34.000Z | test/test_common.py | orange-kao/pglookout | 55ac891e6ce3b2e47ca6c6c9027c0a4d98dba002 | [
"Apache-2.0"
] | 8 | 2020-02-28T10:01:49.000Z | 2022-03-29T15:12:33.000Z | test/test_common.py | orange-kao/pglookout | 55ac891e6ce3b2e47ca6c6c9027c0a4d98dba002 | [
"Apache-2.0"
] | 8 | 2019-04-15T10:00:31.000Z | 2021-11-14T20:11:33.000Z | """
pglookout
Copyright (c) 2015 Ohmu Ltd
See LICENSE for details
"""
from pglookout.common import (
convert_xlog_location_to_offset,
parse_iso_datetime, get_iso_timestamp, ISO_EXT_RE,
)
from pytest import raises
import datetime
def test_convert_xlog_location_to_offset():
assert convert_xlog_location_to... | 25.948718 | 84 | 0.726285 | 139 | 1,012 | 4.935252 | 0.381295 | 0.09621 | 0.166181 | 0.183673 | 0.314869 | 0.236152 | 0.139942 | 0.139942 | 0.139942 | 0 | 0 | 0.02503 | 0.170949 | 1,012 | 38 | 85 | 26.631579 | 0.79261 | 0.061265 | 0 | 0.12 | 0 | 0 | 0.032909 | 0 | 0 | 0 | 0.0138 | 0 | 0.2 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32b4f9ebe4fbe0e3fb6f674e26931ca5d4a9cc20 | 527 | py | Python | app/__init__.py | bbognar1992/example-flask-postgre-docker-compose | a2f873704b5d75bfb2839c9cca5f581a96787195 | [
"MIT"
] | null | null | null | app/__init__.py | bbognar1992/example-flask-postgre-docker-compose | a2f873704b5d75bfb2839c9cca5f581a96787195 | [
"MIT"
] | null | null | null | app/__init__.py | bbognar1992/example-flask-postgre-docker-compose | a2f873704b5d75bfb2839c9cca5f581a96787195 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
# Globally accessible library
# Initialize ORM
db = SQLAlchemy()
def create_app():
"""Initialize the core application."""
app = Flask(__name__, instance_relative_config=False)
app.config.from_object('config.... | 21.958333 | 57 | 0.690702 | 63 | 527 | 5.587302 | 0.507937 | 0.076705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231499 | 527 | 23 | 58 | 22.913043 | 0.869136 | 0.235294 | 0 | 0 | 0 | 0 | 0.033079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
32c38f37fc46b6a267ee0e85145b36daff964ca8 | 15,976 | py | Python | plugins/modules/oci_log_analytics_entity_topology_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_log_analytics_entity_topology_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_log_analytics_entity_topology_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 42.946237 | 157 | 0.517714 | 1,403 | 15,976 | 5.733428 | 0.228083 | 0.049229 | 0.054948 | 0.067877 | 0.445177 | 0.427897 | 0.33267 | 0.23645 | 0.181004 | 0.165465 | 0 | 0.01436 | 0.420255 | 15,976 | 371 | 158 | 43.061995 | 0.854135 | 0.025601 | 0 | 0.366366 | 0 | 0.018018 | 0.833944 | 0.100932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009009 | false | 0.003003 | 0.018018 | 0.003003 | 0.039039 | 0.003003 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32c54c76a466959d05a5d78f49b7e3ca1cc722d3 | 244 | py | Python | ctc-executioner/ctc_executioner/order_side.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 51 | 2019-02-01T19:43:37.000Z | 2022-03-16T09:07:03.000Z | ctc-executioner/ctc_executioner/order_side.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 2 | 2019-02-23T18:54:22.000Z | 2019-11-09T01:30:32.000Z | ctc-executioner/ctc_executioner/order_side.py | mikimaus78/ml_monorepo | b2c2627ff0e86e27f6829170d0dac168d8e5783b | [
"BSD-3-Clause"
] | 35 | 2019-02-08T02:00:31.000Z | 2022-03-01T23:17:00.000Z | from enum import Enum
class OrderSide(Enum):
BUY = 'buy'
SELL = 'sell'
def opposite(self):
if self == OrderSide.BUY:
return OrderSide.SELL
elif self == OrderSide.SELL:
return OrderSide.BUY
| 18.769231 | 36 | 0.577869 | 28 | 244 | 5.035714 | 0.464286 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331967 | 244 | 12 | 37 | 20.333333 | 0.865031 | 0 | 0 | 0 | 0 | 0 | 0.028689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.777778 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
087783dd92a504a68868b51892541976f25396b0 | 1,925 | py | Python | src/users/migrations/0001_initial.py | system-design-2/user-service | 5bf71e15d7c0969bac55a0e53298711877b02aa1 | [
"MIT"
] | null | null | null | src/users/migrations/0001_initial.py | system-design-2/user-service | 5bf71e15d7c0969bac55a0e53298711877b02aa1 | [
"MIT"
] | null | null | null | src/users/migrations/0001_initial.py | system-design-2/user-service | 5bf71e15d7c0969bac55a0e53298711877b02aa1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2022-01-27 11:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 44.767442 | 146 | 0.606234 | 208 | 1,925 | 5.423077 | 0.379808 | 0.079787 | 0.124113 | 0.148936 | 0.409574 | 0.299645 | 0.27039 | 0.18883 | 0.079787 | 0.079787 | 0 | 0.020979 | 0.257143 | 1,925 | 42 | 147 | 45.833333 | 0.767832 | 0.022338 | 0 | 0 | 1 | 0 | 0.125532 | 0.011702 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.028571 | 0.085714 | 0 | 0.2 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
087d4db625604c2a9f652a43c988d189e29cf366 | 10,623 | py | Python | __main__.py | DrowseyDevelopers/create-spectrograms | 889cd93fc6fd86c7e691b74083b8595d59632d60 | [
"MIT"
] | null | null | null | __main__.py | DrowseyDevelopers/create-spectrograms | 889cd93fc6fd86c7e691b74083b8595d59632d60 | [
"MIT"
] | null | null | null | __main__.py | DrowseyDevelopers/create-spectrograms | 889cd93fc6fd86c7e691b74083b8595d59632d60 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Module to take in .mat MatLab files and generate spectrogram images via Short Time Fourier Transform
---------- ------------------------------ --------------------
| Data.mat | -> | Short-Time Fourier Transform | -> | Spectrogram Images |
... | 32.686154 | 114 | 0.658194 | 1,475 | 10,623 | 4.587797 | 0.214237 | 0.015073 | 0.022758 | 0.018472 | 0.197429 | 0.14482 | 0.099601 | 0.075366 | 0.049357 | 0.049357 | 0 | 0.016675 | 0.232232 | 10,623 | 324 | 115 | 32.787037 | 0.813021 | 0.372494 | 0 | 0.055556 | 1 | 0 | 0.096387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090278 | false | 0 | 0.069444 | 0 | 0.201389 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0880f306983a23bfab2451bfda62a5ea4a65a214 | 19,144 | py | Python | src/main/python/ui/preferences.py | 3ll3d00d/qvibe | 5f368b30d82cac3be00736d71fbd427432768f9e | [
"MIT"
] | null | null | null | src/main/python/ui/preferences.py | 3ll3d00d/qvibe | 5f368b30d82cac3be00736d71fbd427432768f9e | [
"MIT"
] | 55 | 2019-08-19T20:51:04.000Z | 2022-02-11T20:35:50.000Z | src/main/python/ui/preferences.py | 3ll3d00d/qvibe | 5f368b30d82cac3be00736d71fbd427432768f9e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'preferences.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_preferencesDialog(object):
def setupUi(self, preferencesDialo... | 60.391167 | 151 | 0.725084 | 1,698 | 19,144 | 8.138398 | 0.130742 | 0.101599 | 0.013894 | 0.037774 | 0.146827 | 0.059556 | 0.056082 | 0.051885 | 0.051885 | 0.051885 | 0 | 0.015996 | 0.16402 | 19,144 | 316 | 152 | 60.582278 | 0.847476 | 0.009664 | 0 | 0.09571 | 1 | 0 | 0.102522 | 0.00343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006601 | false | 0.013201 | 0.0033 | 0 | 0.013201 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0885d72e4ad2a1168846eab7ce26b0149a5fb20d | 11,850 | py | Python | fedireads/migrations/0001_initial.py | thricedotted/fedireads | a1fbba1ba31e569489378176b0894a0a8907c14c | [
"CC0-1.0"
] | null | null | null | fedireads/migrations/0001_initial.py | thricedotted/fedireads | a1fbba1ba31e569489378176b0894a0a8907c14c | [
"CC0-1.0"
] | null | null | null | fedireads/migrations/0001_initial.py | thricedotted/fedireads | a1fbba1ba31e569489378176b0894a0a8907c14c | [
"CC0-1.0"
] | 1 | 2021-01-30T22:38:20.000Z | 2021-01-30T22:38:20.000Z | # Generated by Django 3.0.3 on 2020-02-12 01:47
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
import django.contrib.postgres.fields.jsonb
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.util... | 56.971154 | 329 | 0.612236 | 1,228 | 11,850 | 5.751629 | 0.175896 | 0.035679 | 0.032281 | 0.057766 | 0.642503 | 0.62792 | 0.563642 | 0.455614 | 0.417245 | 0.382415 | 0 | 0.012231 | 0.247932 | 11,850 | 207 | 330 | 57.246377 | 0.780296 | 0.003797 | 0 | 0.525 | 1 | 0 | 0.167415 | 0.004575 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005 | 0.04 | 0 | 0.06 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08999c9994187602bd7b99b87b2f6bf4f2b761a4 | 464 | py | Python | server/process/caculate.py | grzhan/Tanngo | 7f2f346765c7c1de59a0977203e75ebfa67f8510 | [
"MIT"
] | 1 | 2015-09-01T00:30:27.000Z | 2015-09-01T00:30:27.000Z | server/process/caculate.py | grzhan/Tanngo | 7f2f346765c7c1de59a0977203e75ebfa67f8510 | [
"MIT"
] | null | null | null | server/process/caculate.py | grzhan/Tanngo | 7f2f346765c7c1de59a0977203e75ebfa67f8510 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#-*- coding: utf-8 -*-
import json
fscore = open('./process/score.out','r')
frome = open('./process/rome.out','r')
fresult = open('./process/final.out','w')
x = fscore.read()
list_ = x.strip('\n').split(' ')[1:]
sum_ = 0
for score in list_:
sum_ += float(score)
score = sum_ / len(list_) * 100
wow... | 17.185185 | 41 | 0.607759 | 72 | 464 | 3.833333 | 0.541667 | 0.119565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017588 | 0.142241 | 464 | 26 | 42 | 17.846154 | 0.675879 | 0.079741 | 0 | 0 | 0 | 0 | 0.17217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08aa85523d04649706a46813cb6b88fdc7c9ff79 | 1,220 | py | Python | Matplotlib-Widgets/cursor.py | JanJakob1/PAP2 | 0aa48867e24a89dd297a70381dcb1180b973e8cf | [
"MIT"
] | null | null | null | Matplotlib-Widgets/cursor.py | JanJakob1/PAP2 | 0aa48867e24a89dd297a70381dcb1180b973e8cf | [
"MIT"
] | null | null | null | Matplotlib-Widgets/cursor.py | JanJakob1/PAP2 | 0aa48867e24a89dd297a70381dcb1180b973e8cf | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from matplotlib.widgets import Cursor, Button;
from numpy import random
x, y = random.rand(2, 100)
fig, ax = plt.subplots()
p, = plt.plot(x, y, 'o')
cursor = Cursor(ax, horizOn = True, vertOn = True, color = 'green', linewidth = 2.0)
def onclick(event):
x1, y1 = event.xdata, eve... | 24.4 | 85 | 0.65082 | 166 | 1,220 | 4.746988 | 0.554217 | 0.040609 | 0.055838 | 0.060914 | 0.175127 | 0.106599 | 0.106599 | 0.106599 | 0 | 0 | 0 | 0.013645 | 0.159016 | 1,220 | 49 | 86 | 24.897959 | 0.754386 | 0.221311 | 0 | 0.133333 | 0 | 0 | 0.062425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08ab8b3c4149bd8a6d93d05d646e75d6f1caaf1b | 385 | py | Python | relay_test.py | flxdot/project-carlos-on-edge | de09709fbef09427a2e92135504e926ab623b5bb | [
"MIT"
] | null | null | null | relay_test.py | flxdot/project-carlos-on-edge | de09709fbef09427a2e92135504e926ab623b5bb | [
"MIT"
] | null | null | null | relay_test.py | flxdot/project-carlos-on-edge | de09709fbef09427a2e92135504e926ab623b5bb | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
pins = [20, 21, 22, 23, 24, 25, 26, 27]
GPIO.setmode(GPIO.BCM)
for pin in pins:
GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, GPIO.HIGH)
# activate each pin for one second
for cnt, pin in enumerate(pins):
print('Relay {}'.format(cnt + 1))
GPIO.output(pin, GPIO.LOW)
... | 19.25 | 39 | 0.654545 | 66 | 385 | 3.818182 | 0.545455 | 0.111111 | 0.154762 | 0.202381 | 0.242063 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.197403 | 385 | 19 | 40 | 20.263158 | 0.757282 | 0.083117 | 0 | 0.153846 | 0 | 0 | 0.022792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08af0a2106877a41a6be084b460b8b5f5228286d | 1,745 | py | Python | 00_Code/01_LeetCode/563_BinaryTreeTilt.py | KartikKannapur/Data_Structures_and_Algorithms_Python | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | [
"MIT"
] | 1 | 2017-06-11T04:57:07.000Z | 2017-06-11T04:57:07.000Z | 00_Code/01_LeetCode/563_BinaryTreeTilt.py | KartikKannapur/Data_Structures_and_Algorithms_Python | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | [
"MIT"
] | null | null | null | 00_Code/01_LeetCode/563_BinaryTreeTilt.py | KartikKannapur/Data_Structures_and_Algorithms_Python | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | [
"MIT"
] | null | null | null | """
Given a binary tree, return the tilt of the whole tree.
The tilt of a tree node is defined as the absolute difference between the sum of all left subtree node values and the sum of all right subtree node values. Null node has tilt 0.
The tilt of the whole tree is defined as the sum of all nodes' tilt.
Exampl... | 25.661765 | 177 | 0.593696 | 261 | 1,745 | 3.954023 | 0.348659 | 0.040698 | 0.03876 | 0.031977 | 0.102713 | 0.102713 | 0.062016 | 0.062016 | 0.062016 | 0 | 0 | 0.025729 | 0.331805 | 1,745 | 68 | 178 | 25.661765 | 0.859348 | 0.110602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08b7effa81b7e96a7cc339b07e66ef6692ceef0f | 157 | py | Python | language/logic/_illogical.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | language/logic/_illogical.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | language/logic/_illogical.py | jedhsu/language | 3772a4a0ff287e1fc5ebefc716b8d91928d04c72 | [
"MIT"
] | null | null | null | """
*Illogical*
Illogical, logically-speaking.
"""
from abc import ABCMeta
__all__ = ["Illogical"]
class Illogical:
__metaclass__ = ABCMeta
| 9.8125 | 32 | 0.66879 | 14 | 157 | 6.928571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216561 | 157 | 15 | 33 | 10.466667 | 0.788618 | 0.273885 | 0 | 0 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08c984262341555585d7683664c8bf44bfd42a10 | 8,551 | py | Python | apps/fund/admin.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 7 | 2015-01-02T19:31:14.000Z | 2021-03-22T17:30:23.000Z | apps/fund/admin.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | 1 | 2015-03-06T08:34:59.000Z | 2015-03-06T08:34:59.000Z | apps/fund/admin.py | jfterpstra/onepercentclub-site | 43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e | [
"BSD-3-Clause"
] | null | null | null | from apps.cowry_docdata.models import DocDataPaymentOrder, payment_method_mapping
from babel.numbers import format_currency
from bluebottle.utils.admin import export_as_csv_action, TotalAmountAdminChangeList
from django.contrib import admin
from django.core.urlresolvers import reverse
from django.contrib.admin import S... | 37.178261 | 124 | 0.660157 | 983 | 8,551 | 5.547304 | 0.189217 | 0.038144 | 0.012103 | 0.019072 | 0.473868 | 0.440125 | 0.421419 | 0.421419 | 0.391344 | 0.332111 | 0 | 0.0098 | 0.200444 | 8,551 | 229 | 125 | 37.340611 | 0.787772 | 0.031926 | 0 | 0.361963 | 0 | 0 | 0.164751 | 0.015604 | 0 | 0 | 0 | 0.004367 | 0 | 1 | 0.122699 | false | 0 | 0.06135 | 0.018405 | 0.607362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
08ced5cc24460ac78968ce54f4e4ae692f806576 | 306 | py | Python | setup.py | aweher/pysoftether | 190cdd6340b016a933b3a113df99085ee9a21a95 | [
"BSD-3-Clause"
] | 3 | 2020-09-24T14:30:34.000Z | 2020-12-14T16:05:29.000Z | setup.py | aweher/pysoftether | 190cdd6340b016a933b3a113df99085ee9a21a95 | [
"BSD-3-Clause"
] | 6 | 2018-10-27T05:52:42.000Z | 2022-02-16T09:59:30.000Z | setup.py | aweher/pysoftether | 190cdd6340b016a933b3a113df99085ee9a21a95 | [
"BSD-3-Clause"
] | 2 | 2019-06-24T11:11:56.000Z | 2021-03-23T09:06:05.000Z | #!/usr/bin/env python
from distutils.core import setup
setup(
name='pysoftether',
version='1.0.1',
description='SoftEther VPN Server Python Management API',
author='vandot',
author_email='ivan@vandot.rs',
url='https://github.com/vandot/pysoftether',
packages=['softether'],
)
| 21.857143 | 61 | 0.679739 | 38 | 306 | 5.447368 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011719 | 0.163399 | 306 | 13 | 62 | 23.538462 | 0.796875 | 0.065359 | 0 | 0 | 0 | 0 | 0.435088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08d81f224b9a15977ae79d31685780705e40aeac | 1,978 | py | Python | accounts/urls.py | bpatyi/simpleCRM | bf74f0e0d783ea4538fb96b6790474d991175b51 | [
"MIT"
] | 2 | 2016-10-03T08:35:07.000Z | 2016-10-04T07:22:20.000Z | accounts/urls.py | bpatyi/simpleCRM | bf74f0e0d783ea4538fb96b6790474d991175b51 | [
"MIT"
] | null | null | null | accounts/urls.py | bpatyi/simpleCRM | bf74f0e0d783ea4538fb96b6790474d991175b51 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from django.views.generic.edit import CreateView
from .forms import CustomUserCreationForm
from .views import (
Registration,
Profile
)
urlpatterns = [
url(
r'^login/$',
auth_views.login,
{
... | 23.270588 | 95 | 0.539939 | 207 | 1,978 | 4.903382 | 0.21256 | 0.17931 | 0.110345 | 0.141872 | 0.256158 | 0.061084 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.320526 | 1,978 | 84 | 96 | 23.547619 | 0.744792 | 0 | 0 | 0.234568 | 0 | 0.012346 | 0.327604 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.271605 | 0.061728 | 0 | 0.061728 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
08dea3379c99a607808936787e89f43917d33042 | 1,619 | py | Python | core/HanoiApp.py | stefan-matcovici/AI-Hanoi-Towers | d4b0966f060e26d40fef43cea2f364270f113a21 | [
"Apache-2.0"
] | null | null | null | core/HanoiApp.py | stefan-matcovici/AI-Hanoi-Towers | d4b0966f060e26d40fef43cea2f364270f113a21 | [
"Apache-2.0"
] | null | null | null | core/HanoiApp.py | stefan-matcovici/AI-Hanoi-Towers | d4b0966f060e26d40fef43cea2f364270f113a21 | [
"Apache-2.0"
] | null | null | null | from Benchmark import Benchmark
class HanoiApp:
def __init__(self):
self.no_discs = 0
self.no_rods = 0
self.initial = []
self.final = []
def read(self):
self.no_discs = int(raw_input("Number of discs: "))
self.no_rods = int(raw_input("Number of rods: "))
... | 30.54717 | 108 | 0.558369 | 227 | 1,619 | 3.885463 | 0.246696 | 0.081633 | 0.07483 | 0.034014 | 0.498866 | 0.396825 | 0.396825 | 0.263039 | 0.192744 | 0.192744 | 0 | 0.006604 | 0.345275 | 1,619 | 53 | 109 | 30.54717 | 0.825472 | 0 | 0 | 0.2 | 0 | 0 | 0.262346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08dfeee08d35d1517dd7813b6abce19f6da8daa5 | 2,007 | py | Python | tradingConfig.py | TheMusicMasters/StockGame | f3f97f227c2ace204c788671d93653a41981954b | [
"MIT"
] | null | null | null | tradingConfig.py | TheMusicMasters/StockGame | f3f97f227c2ace204c788671d93653a41981954b | [
"MIT"
] | null | null | null | tradingConfig.py | TheMusicMasters/StockGame | f3f97f227c2ace204c788671d93653a41981954b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
class TradingConfig():
"""
Author themusicmasters.official@gmail.com
Twitter@themusicmaster9
Class to create the tradingConfig from UI input
RMA10(Relative price between CLOSE and MA10)
HSL(Exchange rate)
maxLoss (maximum loss percentage)
maxGain ... | 33.45 | 165 | 0.6572 | 218 | 2,007 | 5.889908 | 0.37156 | 0.084112 | 0.062305 | 0.049065 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046622 | 0.262581 | 2,007 | 60 | 166 | 33.45 | 0.820946 | 0.256602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.0625 | 0.03125 | 0.4375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08e35596c6564778a01378905e61168b451b774d | 3,304 | py | Python | hima_experiment/src/PlotMissRateFalsePos.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | hima_experiment/src/PlotMissRateFalsePos.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | hima_experiment/src/PlotMissRateFalsePos.py | MRSD2018/reefbot-1 | a595ca718d0cda277726894a3105815cef000475 | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''Plots the precision recall graph for a single run. It is generated using the scored detections and changing the detection threshold.
'''
usage='PlotMissRateFalsePosl.py [options]'
import roslib; roslib.load_manifest('hima_experiment')
import rospy
from pylab import *
import numpy as np
from optpar... | 34.061856 | 135 | 0.627421 | 390 | 3,304 | 5.194872 | 0.44359 | 0.031096 | 0.051826 | 0.025173 | 0.127838 | 0.09773 | 0.04541 | 0.04541 | 0.04541 | 0 | 0 | 0.006653 | 0.272094 | 3,304 | 96 | 136 | 34.416667 | 0.835759 | 0.085048 | 0 | 0.028986 | 1 | 0 | 0.208762 | 0.007965 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.144928 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08e867e6ce9ca7288ad662238a8883d6337209e0 | 2,654 | py | Python | clickhouse_proxy/auth.py | kfzteile24/clickhouse-proxy | 578ac2f9f76774cd79bbde2543d2ad532bec56a1 | [
"MIT"
] | 1 | 2019-12-01T04:51:33.000Z | 2019-12-01T04:51:33.000Z | clickhouse_proxy/auth.py | kfzteile24/clickhouse-proxy | 578ac2f9f76774cd79bbde2543d2ad532bec56a1 | [
"MIT"
] | null | null | null | clickhouse_proxy/auth.py | kfzteile24/clickhouse-proxy | 578ac2f9f76774cd79bbde2543d2ad532bec56a1 | [
"MIT"
] | 1 | 2019-12-01T04:51:04.000Z | 2019-12-01T04:51:04.000Z | from clickhouse_proxy.config import config
from typing import Dict
def is_ipv6(ip: str) -> bool:
return ip.find(':') > -1
def ip_to_bits(ip: str) -> int:
# See what kind of IP this is and set parsing parameters
if is_ipv6(ip):
separator = ':'
chunks = [''] * 8
bytes_per_chunk = 2... | 28.537634 | 107 | 0.602487 | 405 | 2,654 | 3.780247 | 0.293827 | 0.027433 | 0.020901 | 0.013063 | 0.07838 | 0.07838 | 0.07838 | 0.07838 | 0.07838 | 0.07838 | 0 | 0.038968 | 0.284476 | 2,654 | 92 | 108 | 28.847826 | 0.767246 | 0.18312 | 0 | 0.033333 | 0 | 0 | 0.108322 | 0 | 0 | 0 | 0 | 0.01087 | 0.05 | 1 | 0.066667 | false | 0 | 0.033333 | 0.016667 | 0.216667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08f04339fee4b979b65dfb80494f4f4dbf65d84b | 6,223 | py | Python | main.py | sachin1092/Hashtag-Recommender-System | 88993646a7863135b49a020d204ff20154423a1b | [
"MIT"
] | null | null | null | main.py | sachin1092/Hashtag-Recommender-System | 88993646a7863135b49a020d204ff20154423a1b | [
"MIT"
] | null | null | null | main.py | sachin1092/Hashtag-Recommender-System | 88993646a7863135b49a020d204ff20154423a1b | [
"MIT"
] | null | null | null | import heapq
import math
import re
import os
global stop_words
def read_stopwords():
words = []
with open(os.getcwd() + os.sep + "stopwords.txt", "r") as f:
for line in f.readlines():
line = line.strip()
if len(line):
words.append(line.lower())
return words
stop_words=read_stopwords()
... | 30.208738 | 119 | 0.666881 | 901 | 6,223 | 4.465039 | 0.18535 | 0.044743 | 0.012429 | 0.016903 | 0.262739 | 0.206811 | 0.166045 | 0.113845 | 0.113845 | 0.113845 | 0 | 0.007457 | 0.202635 | 6,223 | 206 | 120 | 30.208738 | 0.803305 | 0.108308 | 0 | 0.187879 | 0 | 0.006061 | 0.127255 | 0.005888 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024242 | null | null | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08f54a3d39594b14df306ebb6b2c4996803bef39 | 471 | py | Python | scripts/identify_stddev.py | renan-cunha/PRECON | deecf81d091ba91b5c47456297f444d969a3d84a | [
"MIT"
] | null | null | null | scripts/identify_stddev.py | renan-cunha/PRECON | deecf81d091ba91b5c47456297f444d969a3d84a | [
"MIT"
] | 2 | 2020-01-20T17:20:56.000Z | 2020-01-20T17:21:06.000Z | scripts/identify_stddev.py | renan-cunha/PRECON | deecf81d091ba91b5c47456297f444d969a3d84a | [
"MIT"
] | null | null | null | import gym
from stable_baselines.common.policies import MlpPolicy
from stable_baselines.common import make_vec_env
from stable_baselines import A2C
# Parallel environments
env = make_vec_env('Pendulum-v0', n_envs=4)
model = A2C(MlpPolicy, env, verbose=1)
model.learn(total_timesteps=25000)
obs = env.reset()
while Tr... | 26.166667 | 54 | 0.766454 | 68 | 471 | 5.147059 | 0.588235 | 0.085714 | 0.162857 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02451 | 0.133758 | 471 | 18 | 55 | 26.166667 | 0.833333 | 0.044586 | 0 | 0 | 0 | 0 | 0.024499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3e9e58562f7987043b88e541ce31b10a061b020b | 482 | py | Python | cell_mat_to_csv.py | godzilla-but-nice/python-loader | afff5c856e70474e472779ba1d7b571f01472dfd | [
"BSD-3-Clause"
] | 1 | 2019-10-31T14:55:25.000Z | 2019-10-31T14:55:25.000Z | cell_mat_to_csv.py | godzilla-but-nice/python-loader | afff5c856e70474e472779ba1d7b571f01472dfd | [
"BSD-3-Clause"
] | null | null | null | cell_mat_to_csv.py | godzilla-but-nice/python-loader | afff5c856e70474e472779ba1d7b571f01472dfd | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
from pyMCDS import *
# Change things here ***********************************************************
# If file has output00012345*.mat set out_num to '00012345' as a string
out_num = '00003696'
out_dir = 'matlab_example'
# **************************************************************************... | 28.352941 | 80 | 0.524896 | 58 | 482 | 4.12069 | 0.637931 | 0.100418 | 0.100418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.103734 | 482 | 16 | 81 | 30.125 | 0.497685 | 0.470954 | 0 | 0 | 0 | 0 | 0.191235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e9ebde052099816948791cbd6b74092d4283042 | 2,246 | py | Python | pytorch_tools/losses/base.py | bonlime/pytorch-tools | 46fceaba823a613171efdb91436a8357b492af5e | [
"MIT"
] | 155 | 2019-11-06T14:05:32.000Z | 2022-03-24T11:12:19.000Z | pytorch_tools/losses/base.py | bonlime/pytorch-tools | 46fceaba823a613171efdb91436a8357b492af5e | [
"MIT"
] | 41 | 2019-11-01T21:41:51.000Z | 2021-07-19T12:53:39.000Z | pytorch_tools/losses/base.py | bonlime/pytorch-tools | 46fceaba823a613171efdb91436a8357b492af5e | [
"MIT"
] | 15 | 2019-12-07T19:09:18.000Z | 2021-09-27T19:17:55.000Z | from torch.nn.modules.loss import _Loss
import torch
from enum import Enum
from typing import Union
class Mode(Enum):
BINARY = "binary"
MULTICLASS = "multiclass"
MULTILABEL = "multilabel"
class Reduction(Enum):
SUM = "sum"
MEAN = "mean"
NONE = "none"
SAMPLE_SUM = "sample_sum" # mean by s... | 28.075 | 86 | 0.620659 | 271 | 2,246 | 4.95941 | 0.376384 | 0.066964 | 0.042411 | 0.034226 | 0.046131 | 0.046131 | 0 | 0 | 0 | 0 | 0 | 0.006619 | 0.260018 | 2,246 | 79 | 87 | 28.43038 | 0.802046 | 0.190561 | 0 | 0.09434 | 0 | 0 | 0.111488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169811 | false | 0 | 0.075472 | 0.075472 | 0.641509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3ea3428799a3370c68408cbeeed3bdbad21a8e1f | 967 | py | Python | timezone/timezone.py | arminfriedl/netclock | f83f0faa1f2c8f06dc04d2d6de315a7b35f1c361 | [
"MIT"
] | null | null | null | timezone/timezone.py | arminfriedl/netclock | f83f0faa1f2c8f06dc04d2d6de315a7b35f1c361 | [
"MIT"
] | null | null | null | timezone/timezone.py | arminfriedl/netclock | f83f0faa1f2c8f06dc04d2d6de315a7b35f1c361 | [
"MIT"
] | null | null | null | import csv
from search.trie import Trie
def load_geonames():
t = Trie(multi_value=True)
with open("data/cities500.txt", "r") as f:
reader = csv.reader(f, delimiter='\t')
for i, row in enumerate(reader):
try:
t.insert(row[1].encode("utf-8"), row[17])
excep... | 32.233333 | 60 | 0.472596 | 126 | 967 | 3.603175 | 0.365079 | 0.061674 | 0.052863 | 0.092511 | 0.687225 | 0.687225 | 0.687225 | 0.687225 | 0.687225 | 0.687225 | 0 | 0.029316 | 0.365047 | 967 | 29 | 61 | 33.344828 | 0.710098 | 0 | 0 | 0.666667 | 0 | 0 | 0.192347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.185185 | 0.259259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb0ad219dc864b0f7974e8e4a81af7e3f313611 | 7,381 | py | Python | resources/api_privacy.py | bcl-lab/FHIR_Genomics_Privacy_Server | 36dc0ea8023e3be9d8c99d63aa574efc88ec6d3b | [
"MIT"
] | null | null | null | resources/api_privacy.py | bcl-lab/FHIR_Genomics_Privacy_Server | 36dc0ea8023e3be9d8c99d63aa574efc88ec6d3b | [
"MIT"
] | null | null | null | resources/api_privacy.py | bcl-lab/FHIR_Genomics_Privacy_Server | 36dc0ea8023e3be9d8c99d63aa574efc88ec6d3b | [
"MIT"
] | null | null | null | from flask_restful import Resource,fields,marshal_with,reqparse
from common.database import not_existed,ok,add_policy,insert_record,delete_record,search_record,select_policy
from errors import PrivacyServerError
from datetime import datetime
import random
import string
from common.json_parser import list2json
'''
... | 42.177143 | 167 | 0.624306 | 890 | 7,381 | 4.996629 | 0.21573 | 0.032381 | 0.032157 | 0.036429 | 0.421408 | 0.357769 | 0.345626 | 0.338655 | 0.319766 | 0.290083 | 0 | 0.005281 | 0.256063 | 7,381 | 175 | 168 | 42.177143 | 0.804589 | 0.038206 | 0 | 0.339623 | 0 | 0 | 0.171621 | 0 | 0 | 0 | 0 | 0.005714 | 0 | 0 | null | null | 0 | 0.066038 | null | null | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb404f485e63301c1696564246d8a60b8fc0034 | 936 | py | Python | pytorch/setup.py | Anirudh0707/EdgeML_old | 636c1b2ab4f09c95d7d0bd3b68d33b92a9efbf20 | [
"MIT"
] | 2 | 2020-09-05T07:17:15.000Z | 2021-05-02T21:10:27.000Z | pytorch/setup.py | Anirudh0707/EdgeML_old | 636c1b2ab4f09c95d7d0bd3b68d33b92a9efbf20 | [
"MIT"
] | null | null | null | pytorch/setup.py | Anirudh0707/EdgeML_old | 636c1b2ab4f09c95d7d0bd3b68d33b92a9efbf20 | [
"MIT"
] | 1 | 2020-07-30T12:03:30.000Z | 2020-07-30T12:03:30.000Z | import setuptools #enables develop
import os
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
from edgeml_pytorch.utils import findCUDA
if findCUDA() is not None:
setuptools.setup(
name='fastgrnn_cuda',
ext_modules=[
CUDAExtension('fastgrnn_cuda', [
'e... | 31.2 | 105 | 0.662393 | 103 | 936 | 5.864078 | 0.582524 | 0.129139 | 0.062914 | 0.082781 | 0.096026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004127 | 0.223291 | 936 | 29 | 106 | 32.275862 | 0.826685 | 0.016026 | 0 | 0.074074 | 0 | 0 | 0.372826 | 0.11087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.148148 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb508cf69bc5d8571c0c095ee04bf6ed4715e41 | 3,938 | py | Python | flaskapp/auth/auth.py | phsontung/flask-skeleton | 51ad68e96a426ac7320f658fd559ea883f909827 | [
"MIT"
] | null | null | null | flaskapp/auth/auth.py | phsontung/flask-skeleton | 51ad68e96a426ac7320f658fd559ea883f909827 | [
"MIT"
] | 3 | 2019-12-26T17:39:43.000Z | 2021-06-01T23:58:34.000Z | flaskapp/auth/auth.py | phsontung/flask-skeleton | 51ad68e96a426ac7320f658fd559ea883f909827 | [
"MIT"
] | 1 | 2019-11-14T04:14:49.000Z | 2019-11-14T04:14:49.000Z | from flask import (
Blueprint, render_template, redirect, url_for, request, flash, jsonify
)
from flask_jwt_extended import create_access_token, get_jwt_identity, jwt_required
from flask_login import login_user, logout_user
from flask_mail import Message
from extensions import bcrypt
from extensions import db
from... | 32.278689 | 112 | 0.68258 | 531 | 3,938 | 4.934087 | 0.258004 | 0.030916 | 0.048092 | 0.053435 | 0.303817 | 0.276336 | 0.231298 | 0.20229 | 0.20229 | 0.187023 | 0 | 0.003166 | 0.197816 | 3,938 | 121 | 113 | 32.545455 | 0.826211 | 0.123159 | 0 | 0.228916 | 0 | 0 | 0.182558 | 0.007267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0.192771 | 0.096386 | 0.036145 | 0.361446 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb546a4ec736673c15912da24668df08c259893 | 358 | py | Python | scheduler/migrations/0024_auto_20190930_1836.py | annalee/alienplan | b54722d683a5e8eba03f4467a367bcf24339bb32 | [
"MIT"
] | 5 | 2018-07-23T13:44:33.000Z | 2021-12-24T20:13:57.000Z | scheduler/migrations/0024_auto_20190930_1836.py | annalee/alienplan | b54722d683a5e8eba03f4467a367bcf24339bb32 | [
"MIT"
] | 25 | 2018-02-11T00:02:08.000Z | 2021-07-06T22:35:30.000Z | scheduler/migrations/0024_auto_20190930_1836.py | annalee/alienplan | b54722d683a5e8eba03f4467a367bcf24339bb32 | [
"MIT"
] | 1 | 2021-12-02T14:48:15.000Z | 2021-12-02T14:48:15.000Z | # Generated by Django 2.2.4 on 2019-09-30 18:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('scheduler', '0023_auto_20190930_1631'),
]
operations = [
migrations.AlterUniqueTogether(
name='track',
unique_together={('sl... | 19.888889 | 53 | 0.603352 | 36 | 358 | 5.888889 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119231 | 0.273743 | 358 | 17 | 54 | 21.058824 | 0.696154 | 0.125698 | 0 | 0 | 1 | 0 | 0.163987 | 0.073955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb6710670601cbefb66cca6626400a2169739d8 | 14,127 | py | Python | sdk/python/pulumi_oci/databasemigration/get_connection.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/databasemigration/get_connection.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/databasemigration/get_connection.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 41.672566 | 461 | 0.678063 | 1,630 | 14,127 | 5.584049 | 0.142945 | 0.014502 | 0.038673 | 0.072512 | 0.244342 | 0.152933 | 0.083938 | 0.054494 | 0.012085 | 0.012085 | 0 | 0.000825 | 0.227649 | 14,127 | 338 | 462 | 41.795858 | 0.833379 | 0.158774 | 0 | 0.105727 | 1 | 0 | 0.187242 | 0.030489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110132 | false | 0 | 0.026432 | 0.013216 | 0.251101 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eb84e8c53e79b6a70502c7e6d7d386020cf2199 | 3,718 | py | Python | sympy/core/operations.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T17:54:57.000Z | 2016-05-08T17:54:57.000Z | sympy/core/operations.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null | sympy/core/operations.py | certik/sympy-oldcore | eb5bd061c309d88cdfb502bfd5df511b30368458 | [
"BSD-3-Clause"
] | null | null | null |
from basic import Basic, cache_it, cache_it_immutable
class AssocOp(Basic):
""" Associative operations, can separate noncommutative and
commutative parts.
(a op b) op c == a op (b op c) == a op b op c.
Base class for Add and Mul.
"""
@cache_it_immutable
def __new__(cls, *args, *... | 33.196429 | 99 | 0.552985 | 474 | 3,718 | 4.128692 | 0.278481 | 0.028615 | 0.022994 | 0.009198 | 0.028104 | 0.010731 | 0.010731 | 0.010731 | 0.010731 | 0.010731 | 0 | 0.007913 | 0.354223 | 3,718 | 111 | 100 | 33.495496 | 0.807164 | 0.085261 | 0 | 0.059524 | 0 | 0 | 0.014023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011905 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ebc3d55e23fcd44661a549c5206d78869aadd13 | 12,158 | py | Python | PyLangParser/old/core.py | hyzycczz/dna2oldmemory | 28fee2f1d9a3fa85565244c79c2f4dfefe597761 | [
"MIT"
] | 1 | 2022-03-13T15:57:11.000Z | 2022-03-13T15:57:11.000Z | PyLangParser/old/core.py | hyzycczz/dna2oldmemory | 28fee2f1d9a3fa85565244c79c2f4dfefe597761 | [
"MIT"
] | 1 | 2021-08-09T20:44:58.000Z | 2021-08-09T20:44:58.000Z | PyLangParser/old/core.py | hyzycczz/dna2oldmemory | 28fee2f1d9a3fa85565244c79c2f4dfefe597761 | [
"MIT"
] | 5 | 2018-05-06T10:02:57.000Z | 2022-03-13T15:57:12.000Z | """
@author: Seven Lju
@date: 2014-11-15
a generic source walker to tokenize source file.
"""
import re
common_stop = [
'\n', '\t', ' ', '~', '!', '#', '$', '%',
'@', '&', '*', '(', ')', '-', '=', '+', '[',
']', '{', '}', '\\', '|', '\'', '"', ';',
':', ',', '<', '.', '>', '/', '?', '^', '`'
]
clas... | 29.36715 | 78 | 0.490706 | 1,312 | 12,158 | 4.478659 | 0.164634 | 0.029952 | 0.010722 | 0.019741 | 0.311436 | 0.248809 | 0.245575 | 0.245575 | 0.224643 | 0.199455 | 0 | 0.009524 | 0.39546 | 12,158 | 413 | 79 | 29.438257 | 0.789932 | 0.115973 | 0 | 0.457875 | 0 | 0.003663 | 0.016263 | 0.003711 | 0.003663 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003663 | 0.003663 | null | null | 0.003663 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ec0ae41d3ef43bc5a44b09a6b71e4d13d8573a0 | 626 | py | Python | src/ml_gym/util/devices.py | SofiaTraba/mlgym | 3ececb4dcaa32119ced20987b81bd790303e7cb7 | [
"Apache-2.0"
] | 6 | 2020-11-28T16:56:01.000Z | 2022-01-06T12:49:12.000Z | src/ml_gym/util/devices.py | SofiaTraba/mlgym | 3ececb4dcaa32119ced20987b81bd790303e7cb7 | [
"Apache-2.0"
] | 6 | 2020-12-18T14:51:43.000Z | 2021-12-01T17:20:55.000Z | src/ml_gym/util/devices.py | SofiaTraba/mlgym | 3ececb4dcaa32119ced20987b81bd790303e7cb7 | [
"Apache-2.0"
] | 2 | 2021-11-16T08:47:36.000Z | 2022-01-06T12:49:15.000Z | import torch
import os
from typing import List
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
def get_devices(gpu_device_ids: List[int] = None) -> List[torch.device]:
if torch.cuda.is_available(): # if we got some GPUs
if gpu_device_ids is None:
gpu_device_ids = list(range(torch.cuda.device_... | 31.3 | 111 | 0.682109 | 92 | 626 | 4.358696 | 0.521739 | 0.089776 | 0.119701 | 0.079801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199681 | 626 | 19 | 112 | 32.947368 | 0.800399 | 0.083067 | 0 | 0 | 0 | 0 | 0.194396 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ed33392378319eb5cfb6d0bebb486a3eb80c17f | 592 | py | Python | tiflask/app.py | clarkchen/tiflask | 7dee6d2de85b9b15eb233d2e4dfcda218ab4c65b | [
"Apache-2.0"
] | null | null | null | tiflask/app.py | clarkchen/tiflask | 7dee6d2de85b9b15eb233d2e4dfcda218ab4c65b | [
"Apache-2.0"
] | null | null | null | tiflask/app.py | clarkchen/tiflask | 7dee6d2de85b9b15eb233d2e4dfcda218ab4c65b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import request, jsonify
# from tiflask.controllers import get_user_score_controller
from tiflask.controllers.user_info_controller import UserInfoController
__author__ = 'clarkchen'
from tiflask.config import server_config
from flask.ext.restful import Api
from flask import Flask
... | 22.769231 | 106 | 0.804054 | 86 | 592 | 5.22093 | 0.465116 | 0.097996 | 0.066815 | 0.080178 | 0.093541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028355 | 0.106419 | 592 | 25 | 107 | 23.68 | 0.820416 | 0.133446 | 0 | 0 | 0 | 0 | 0.072549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3edd8566b41980ee2b81ab165ab440a336df8bf4 | 682 | py | Python | loss/regularization.py | franciszchen/SR-SAI | 43880ac729ab61fd2672505c122d4fefa38b1009 | [
"MIT"
] | 1 | 2021-12-27T08:10:44.000Z | 2021-12-27T08:10:44.000Z | loss/regularization.py | franciszchen/SR-SAI | 43880ac729ab61fd2672505c122d4fefa38b1009 | [
"MIT"
] | 1 | 2022-02-27T05:27:45.000Z | 2022-02-27T05:27:45.000Z | loss/regularization.py | franciszchen/SR-SAI | 43880ac729ab61fd2672505c122d4fefa38b1009 | [
"MIT"
] | 3 | 2021-04-08T12:10:39.000Z | 2021-07-03T09:09:35.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class Regularization(nn.Module):
def __init__(self):
super(Regularization, self).__init__()
def forward(self, f_var, f_fix):
return self.regularization_loss(f_var, f_fix)
def regularization_loss(self, f_var, f_fix):
... | 24.357143 | 65 | 0.61437 | 97 | 682 | 4.051546 | 0.329897 | 0.071247 | 0.129771 | 0.061069 | 0.188295 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.274194 | 682 | 27 | 66 | 25.259259 | 0.781818 | 0.071848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3edda065987b540554b5c641b8efaf1bafc4f3c9 | 302 | py | Python | mini_maze/players/urls.py | MoonCheesez/mini-maze-django | 629146aafdfc3afccd645d71bb2412a817a9fbec | [
"MIT"
] | 1 | 2017-04-22T11:45:30.000Z | 2017-04-22T11:45:30.000Z | mini_maze/players/urls.py | MoonCheesez/mini-maze-django | 629146aafdfc3afccd645d71bb2412a817a9fbec | [
"MIT"
] | null | null | null | mini_maze/players/urls.py | MoonCheesez/mini-maze-django | 629146aafdfc3afccd645d71bb2412a817a9fbec | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^join/$', views.join, name='players-join'),
url(r'^leave/(\d)$', views.leave, name='players-leave'),
url(r'^maze/$', views.receive, name="players-receive"),
url(r'^players', views.serve, name='players-serve')
] | 33.555556 | 60 | 0.649007 | 43 | 302 | 4.55814 | 0.395349 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13245 | 302 | 9 | 61 | 33.555556 | 0.748092 | 0 | 0 | 0 | 0 | 0 | 0.287129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
3ee10db01bbb791e4661baea048a031dbb237202 | 1,591 | py | Python | fakex11-ue4/1.0/conanfile.py | jaiber/ue4-conan-recipes | f0ab8e2109135b5abe6f8b80f4fd1a07b1b47ee6 | [
"MIT"
] | null | null | null | fakex11-ue4/1.0/conanfile.py | jaiber/ue4-conan-recipes | f0ab8e2109135b5abe6f8b80f4fd1a07b1b47ee6 | [
"MIT"
] | null | null | null | fakex11-ue4/1.0/conanfile.py | jaiber/ue4-conan-recipes | f0ab8e2109135b5abe6f8b80f4fd1a07b1b47ee6 | [
"MIT"
] | 1 | 2021-08-20T00:39:37.000Z | 2021-08-20T00:39:37.000Z | from conans import ConanFile, CMake, tools
import json, os
class FakeX11Conan(ConanFile):
name = "fakex11-ue4"
version = "1.0"
license = "Apache-2.0"
url = "https://github.com/adamrehn/ue4-conan-recipes/fakex11-ue4"
description = "fakex11 custom build for Unreal Engine 4"
settings = "os", "comp... | 29.462963 | 91 | 0.590195 | 188 | 1,591 | 4.909574 | 0.553191 | 0.03467 | 0.035753 | 0.048754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.28347 | 1,591 | 53 | 92 | 30.018868 | 0.788596 | 0.096794 | 0 | 0 | 0 | 0 | 0.220516 | 0.038381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.025641 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3ee3401e679b66afd0c0fe5e7d35ad4a0fae1ea4 | 517 | py | Python | entity/migrations/0007_allentityproxy.py | thinkt4nk/django-entity | d338c8b767c7e68c630f67a92eb46af6c5b4a80b | [
"MIT"
] | 46 | 2015-01-27T08:10:49.000Z | 2022-01-11T15:29:26.000Z | entity/migrations/0007_allentityproxy.py | thinkt4nk/django-entity | d338c8b767c7e68c630f67a92eb46af6c5b4a80b | [
"MIT"
] | 15 | 2015-03-26T15:19:33.000Z | 2019-02-06T21:08:48.000Z | entity/migrations/0007_allentityproxy.py | thinkt4nk/django-entity | d338c8b767c7e68c630f67a92eb46af6c5b4a80b | [
"MIT"
] | 11 | 2015-03-24T21:21:13.000Z | 2020-04-30T01:44:42.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-15 18:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('entity', '0006_entity_relationship_unique'),
]
operations = [
migrations.CreateMode... | 20.68 | 54 | 0.539652 | 47 | 517 | 5.765957 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061584 | 0.340426 | 517 | 24 | 55 | 21.541667 | 0.733138 | 0.131528 | 0 | 0 | 1 | 0 | 0.154709 | 0.069507 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ee4370dfc5ea855db68c3a84d324822b8cba662 | 2,190 | py | Python | saleor/api - Copy/views.py | glosoftgroup/backend2 | 9f32833c2e87a0c6540ccd28fcc38e02d2f07e81 | [
"BSD-3-Clause"
] | null | null | null | saleor/api - Copy/views.py | glosoftgroup/backend2 | 9f32833c2e87a0c6540ccd28fcc38e02d2f07e81 | [
"BSD-3-Clause"
] | null | null | null | saleor/api - Copy/views.py | glosoftgroup/backend2 | 9f32833c2e87a0c6540ccd28fcc38e02d2f07e81 | [
"BSD-3-Clause"
] | null | null | null | from django.db.models import Q
from .pagination import PostLimitOffsetPagination, PostPageNumberPagination
from rest_framework.authentication import TokenAuthentication, BasicAuthentication
from rest_framework.filters import (
SearchFilter,
OrderingFilter
)
from rest_framework.permissions import (
IsAuthen... | 26.707317 | 91 | 0.715982 | 176 | 2,190 | 8.795455 | 0.346591 | 0.067829 | 0.05491 | 0.071059 | 0.29199 | 0.29199 | 0.268088 | 0.077519 | 0 | 0 | 0 | 0 | 0.217808 | 2,190 | 81 | 92 | 27.037037 | 0.903678 | 0.165297 | 0 | 0.244444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.644444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3ee5c5e2a9e0b60752616ea05afd856856905b68 | 11,669 | py | Python | sdk/python/pulumi_azure/servicebus/get_topic.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/servicebus/get_topic.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/servicebus/get_topic.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 43.218519 | 370 | 0.700831 | 1,402 | 11,669 | 5.508559 | 0.156919 | 0.058268 | 0.041823 | 0.054383 | 0.444905 | 0.315551 | 0.239156 | 0.174414 | 0.116276 | 0.104105 | 0 | 0.001528 | 0.214586 | 11,669 | 269 | 371 | 43.379182 | 0.841135 | 0.212615 | 0 | 0.10303 | 1 | 0 | 0.173948 | 0.065074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0 | 0.030303 | 0.018182 | 0.248485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ee72f3c22524323b67eacb6c6e1e5d57f1e68c7 | 2,249 | py | Python | src/django_vcs_watch/jobs/hourly/update_feeds.py | svetlyak40wt/django-vcs-watch | fa341c488b8a863812dd2b25cb0bda6d9beffdc9 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T13:45:53.000Z | 2016-05-08T13:45:53.000Z | src/django_vcs_watch/jobs/hourly/update_feeds.py | svetlyak40wt/django-vcs-watch | fa341c488b8a863812dd2b25cb0bda6d9beffdc9 | [
"BSD-3-Clause"
] | null | null | null | src/django_vcs_watch/jobs/hourly/update_feeds.py | svetlyak40wt/django-vcs-watch | fa341c488b8a863812dd2b25cb0bda6d9beffdc9 | [
"BSD-3-Clause"
] | 1 | 2019-06-10T16:49:02.000Z | 2019-06-10T16:49:02.000Z | import os
import logging
import time
import datetime
from itertools import chain
from django.conf import settings
from django_extensions.management.jobs import HourlyJob
from django_vcs_watch.models import Repository, Commit, Feed
from django_vcs_watch.settings import DELAY_BETWEEN_UPDATE_CHECK
from django_vcs_watch.... | 29.986667 | 105 | 0.609604 | 274 | 2,249 | 4.828467 | 0.357664 | 0.042328 | 0.063492 | 0.040816 | 0.280423 | 0.280423 | 0.18065 | 0.18065 | 0.18065 | 0.078609 | 0 | 0.00062 | 0.282792 | 2,249 | 74 | 106 | 30.391892 | 0.819591 | 0 | 0 | 0.185185 | 0 | 0 | 0.15258 | 0.061833 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.185185 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3eeb37d3ab86934392bc20f54c6ce7dd2c211f74 | 5,065 | py | Python | from-paragraphs-to-sentences/solution.py | kispygr/hackerrank_solutions | 54334f5d193aa8836b8e3955ac9aa2873d383246 | [
"MIT"
] | null | null | null | from-paragraphs-to-sentences/solution.py | kispygr/hackerrank_solutions | 54334f5d193aa8836b8e3955ac9aa2873d383246 | [
"MIT"
] | null | null | null | from-paragraphs-to-sentences/solution.py | kispygr/hackerrank_solutions | 54334f5d193aa8836b8e3955ac9aa2873d383246 | [
"MIT"
] | 1 | 2021-01-17T07:09:03.000Z | 2021-01-17T07:09:03.000Z | """
Problem: From Paragraphs to Sentences (/from-paragraphs-to-sentences)
"""
import sys
SPACE = " "
END_SENTENCE = (".")
END_SENTENCE_SPECIAL = ("?", "!")
OPEN_BLOCK_CHARACTERS = ("(")
CLOSE_BLOCK_CHARACTERS = (")")
BLOCK_CHARACTERS = ('"', "'")
SPECIAL_BLOCK_CHARACTERS = ("'")
MAX_ABBREVIATION = 4
paragraph = ""... | 41.859504 | 248 | 0.653504 | 763 | 5,065 | 4.205767 | 0.228047 | 0.053288 | 0.064818 | 0.035525 | 0.276098 | 0.204113 | 0.19196 | 0.180742 | 0.162979 | 0.162979 | 0 | 0.005075 | 0.299704 | 5,065 | 120 | 249 | 42.208333 | 0.899633 | 0.422113 | 0 | 0.347222 | 0 | 0 | 0.005952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013889 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3efc5b75268733b78428218095eb593fff9846a6 | 308 | py | Python | default/urls.py | Accomple/APIs | 9bda2e9d5582ff511bbe5beebcefd8dc626cbc3d | [
"MIT"
] | null | null | null | default/urls.py | Accomple/APIs | 9bda2e9d5582ff511bbe5beebcefd8dc626cbc3d | [
"MIT"
] | null | null | null | default/urls.py | Accomple/APIs | 9bda2e9d5582ff511bbe5beebcefd8dc626cbc3d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import *
app_name = "default"
urlpatterns = [
path('', home, name='home'),
path('active_cities/names/', ActiveCityNames.as_view(), name='active_city_names'),
path('active_cities/zip_codes/', ActiveCityZipCodes.as_view(), name='active_city_zip_codes'),
]
| 30.8 | 97 | 0.720779 | 40 | 308 | 5.275 | 0.525 | 0.094787 | 0.151659 | 0.151659 | 0.189573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12013 | 308 | 9 | 98 | 34.222222 | 0.778598 | 0 | 0 | 0 | 0 | 0 | 0.301948 | 0.146104 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 |
41136db76dd9051c83b98f6846a9b2169090fcd3 | 428 | py | Python | pyexlatex/models/format/text/color/deftypes/hex.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/models/format/text/color/deftypes/hex.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/models/format/text/color/deftypes/hex.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from typing import Optional
from pyexlatex.models.format.text.color.deftypes.base import ColorDefinition
class Hex(ColorDefinition):
"""
Define a color using a hex code, such as #21ad2a
"""
definition_type = 'HTML'
def __init__(self, hex_code: str, color_name: Optional[str] = None):
self.... | 30.571429 | 76 | 0.71028 | 58 | 428 | 4.948276 | 0.568966 | 0.121951 | 0.114983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.179907 | 428 | 13 | 77 | 32.923077 | 0.809117 | 0.11215 | 0 | 0 | 0 | 0 | 0.013736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
41165191062b8171a3232120b4891fb186ea8beb | 1,326 | py | Python | insta_dm.py | Udbhav18/scrapers | 810c426c40c1512156af6ce97cb096a0ce300e73 | [
"MIT"
] | null | null | null | insta_dm.py | Udbhav18/scrapers | 810c426c40c1512156af6ce97cb096a0ce300e73 | [
"MIT"
] | null | null | null | insta_dm.py | Udbhav18/scrapers | 810c426c40c1512156af6ce97cb096a0ce300e73 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
username = input('Enter your Username ')
password = input('Enter your Password ')
url = 'https://instagram.com/' + input('Enter username of user whome you want to send message')
def path():
global chrome
chrome ... | 23.678571 | 95 | 0.742081 | 206 | 1,326 | 4.582524 | 0.354369 | 0.085805 | 0.126059 | 0.14089 | 0.224576 | 0.175847 | 0 | 0 | 0 | 0 | 0 | 0.015477 | 0.122926 | 1,326 | 56 | 96 | 23.678571 | 0.796217 | 0 | 0 | 0.088889 | 0 | 0 | 0.159005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.133333 | 0.088889 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
41176499477f758c3c4a73c472848ca2fa2376b9 | 6,863 | py | Python | src/os_tornado/settings/__init__.py | cfhamlet/os-tornado | a1ac204889d561d2db9d646ee49214c39fa546c1 | [
"MIT"
] | 5 | 2018-03-01T12:28:50.000Z | 2020-12-08T19:19:56.000Z | src/os_tornado/settings/__init__.py | cfhamlet/os-tornado | a1ac204889d561d2db9d646ee49214c39fa546c1 | [
"MIT"
] | 3 | 2017-12-20T05:41:42.000Z | 2018-03-13T05:42:28.000Z | src/os_tornado/settings/__init__.py | cfhamlet/os-tornado | a1ac204889d561d2db9d646ee49214c39fa546c1 | [
"MIT"
] | null | null | null | """
Settings
"""
from importlib import import_module
import six
import json
from collections import MutableMapping
from . import default_settings
TORNADO_APP_SETTINGS_PREFIX = "TORNADO_APP_SETTINGS_"
TORNADO_SERVER_SETTINGS_PREFIX = "TORNADO_SERVER_SETTINGS_"
class Settings(MutableMapping):
def __init__(self, ... | 31.626728 | 83 | 0.616931 | 872 | 6,863 | 4.724771 | 0.184633 | 0.027184 | 0.021845 | 0.023301 | 0.357524 | 0.30801 | 0.293932 | 0.280825 | 0.27233 | 0.202913 | 0 | 0.002477 | 0.294041 | 6,863 | 216 | 84 | 31.773148 | 0.847884 | 0.336005 | 0 | 0.078431 | 0 | 0 | 0.05175 | 0.011089 | 0 | 0 | 0 | 0 | 0.04902 | 1 | 0.22549 | false | 0 | 0.058824 | 0.04902 | 0.45098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
411f770d4fac70269f9de25bbbc90c64b52bdba6 | 7,899 | py | Python | preprocess.py | cbaeck1/T2KWP | e3682bee5b96d049d66c586910d34d802ab47637 | [
"BSD-3-Clause"
] | null | null | null | preprocess.py | cbaeck1/T2KWP | e3682bee5b96d049d66c586910d34d802ab47637 | [
"BSD-3-Clause"
] | null | null | null | preprocess.py | cbaeck1/T2KWP | e3682bee5b96d049d66c586910d34d802ab47637 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import os
from tqdm import tqdm
from datasets import kss_wav, public_korean_wav, selvas_wav, check_file_integrity, generate_mel_f0, f0_mean
from multiprocessing import cpu_count
from hparams import create_hparams
import torch
# TODO: lang code is written in this procedure. Langcode==1 for korean-only c... | 39.495 | 125 | 0.650335 | 1,076 | 7,899 | 4.425651 | 0.170074 | 0.049139 | 0.078748 | 0.026459 | 0.533389 | 0.420622 | 0.329693 | 0.236665 | 0.194666 | 0.119068 | 0 | 0.008497 | 0.240157 | 7,899 | 199 | 126 | 39.693467 | 0.784905 | 0.165717 | 0 | 0.13986 | 1 | 0 | 0.257056 | 0.122502 | 0 | 0 | 0 | 0.005025 | 0 | 1 | 0.062937 | false | 0 | 0.048951 | 0 | 0.111888 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
412328d03d3b39612cd79188de60c11d122903f9 | 20,229 | py | Python | src/abaqus/Interaction/ContactStd.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Interaction/ContactStd.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Interaction/ContactStd.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | import typing
from abaqusConstants import *
from .ContactPropertyAssignment import ContactPropertyAssignment
from .InitializationAssignment import InitializationAssignment
from .Interaction import Interaction
from .MainSecondaryAssignment import MainSecondaryAssignment
from .RegionPairs import RegionPairs
from .Slidin... | 54.821138 | 154 | 0.717139 | 1,855 | 20,229 | 7.80593 | 0.113747 | 0.064641 | 0.052486 | 0.057182 | 0.667611 | 0.631906 | 0.593646 | 0.512017 | 0.506492 | 0.487569 | 0 | 0 | 0.248406 | 20,229 | 368 | 155 | 54.970109 | 0.952381 | 0.674724 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.231884 | 0 | 0.507246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
412ca03c3cd46bcd0250e49b863c4123def499d7 | 2,532 | py | Python | LHconnectivity/tests/test_LHconnectivity.py | benjamingarzon/LHconnectivity | 1c960e525ed93a056bed3eaa74db28f31212271a | [
"MIT"
] | null | null | null | LHconnectivity/tests/test_LHconnectivity.py | benjamingarzon/LHconnectivity | 1c960e525ed93a056bed3eaa74db28f31212271a | [
"MIT"
] | null | null | null | LHconnectivity/tests/test_LHconnectivity.py | benjamingarzon/LHconnectivity | 1c960e525ed93a056bed3eaa74db28f31212271a | [
"MIT"
] | null | null | null |
import sys, os, json
sys.path.append('..')
import LHconnectivity.preprocess_funcs as pf
import LHconnectivity as lh
PARAMS_FILE = os.path.join(lh.__path__[0], 'data', 'parameters_Berlin.json')
with open(PARAMS_FILE) as data_file:
parameters = json.load(data_file)
subject = parameters['TEST_SUBJECT']
WD = par... | 31.259259 | 76 | 0.75158 | 354 | 2,532 | 5.022599 | 0.20904 | 0.050619 | 0.042182 | 0.033746 | 0.086052 | 0.075366 | 0.075366 | 0.075366 | 0.075366 | 0.075366 | 0 | 0.000446 | 0.115324 | 2,532 | 80 | 77 | 31.65 | 0.793304 | 0.280016 | 0 | 0.045455 | 0 | 0 | 0.148251 | 0.012215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.113636 | 0.068182 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f5abd529e71ece8e924e2115f8736eb13b12450c | 1,590 | py | Python | mopidy_nowplayingtouch/screens/queueScreen.py | kdbdallas/Mopidy-Touchclient | 4a5a75a875e5c7be2b4bc6322d2bfa72b9611512 | [
"Apache-2.0"
] | 1 | 2016-12-15T23:48:59.000Z | 2016-12-15T23:48:59.000Z | mopidy_nowplayingtouch/screens/queueScreen.py | kdbdallas/Mopidy-Touchclient | 4a5a75a875e5c7be2b4bc6322d2bfa72b9611512 | [
"Apache-2.0"
] | null | null | null | mopidy_nowplayingtouch/screens/queueScreen.py | kdbdallas/Mopidy-Touchclient | 4a5a75a875e5c7be2b4bc6322d2bfa72b9611512 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from baseScreen import BaseScreen
from .mainScreen import MainScreen
from ..graphic_utils import ListView
class QueueScreen(BaseScreen):
def __init__(self, size, base_size, manager, fonts):
BaseScreen.__init__(self, size, base_size, manager, fonts)
self.size = size
... | 35.333333 | 93 | 0.67044 | 210 | 1,590 | 4.833333 | 0.271429 | 0.078818 | 0.070936 | 0.031527 | 0.155665 | 0.063054 | 0.063054 | 0 | 0 | 0 | 0 | 0.004003 | 0.214465 | 1,590 | 44 | 94 | 36.136364 | 0.808647 | 0.013208 | 0 | 0.117647 | 0 | 0 | 0.002553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0.029412 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5b8a718b4e3c6460b7e3425de690f43eae3dd2e | 3,019 | py | Python | lisa/tools/blkid.py | srveniga/lisa | 0b5bcf028ed4211d79ff90b9f915981c426baab4 | [
"MIT"
] | 65 | 2020-12-15T13:42:29.000Z | 2022-03-03T13:14:16.000Z | lisa/tools/blkid.py | srveniga/lisa | 0b5bcf028ed4211d79ff90b9f915981c426baab4 | [
"MIT"
] | 1,261 | 2018-05-17T04:32:22.000Z | 2020-11-23T17:29:13.000Z | lisa/tools/blkid.py | srveniga/lisa | 0b5bcf028ed4211d79ff90b9f915981c426baab4 | [
"MIT"
] | 133 | 2018-05-15T23:12:14.000Z | 2020-11-13T10:37:49.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import re
from typing import List
from assertpy.assertpy import assert_that
from lisa.executable import Tool
from lisa.util import LisaException, get_matched_str
class PartitionInfo(object):
# TODO: Merge with lsblk.PartitionInfo
def ... | 36.373494 | 159 | 0.657502 | 375 | 3,019 | 5.096 | 0.32 | 0.075353 | 0.027211 | 0.032967 | 0.276818 | 0.204605 | 0.204605 | 0.187336 | 0.148613 | 0.148613 | 0 | 0.069996 | 0.223915 | 3,019 | 82 | 160 | 36.817073 | 0.745625 | 0.349785 | 0 | 0 | 0 | 0 | 0.09437 | 0 | 0 | 0 | 0 | 0.012195 | 0.047619 | 1 | 0.142857 | false | 0 | 0.119048 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5c10facca2d65b5bc080d1e55e20ec1ad370342 | 38,672 | py | Python | tests/test_search_results.py | llazzaro/chem-fingerprints | 44b0a2e0cee9307d302b307255889e09db22184a | [
"MIT"
] | 3 | 2017-02-07T20:13:45.000Z | 2022-01-02T13:21:01.000Z | tests/test_search_results.py | wangz10/chem-fingerprints | 44b0a2e0cee9307d302b307255889e09db22184a | [
"MIT"
] | null | null | null | tests/test_search_results.py | wangz10/chem-fingerprints | 44b0a2e0cee9307d302b307255889e09db22184a | [
"MIT"
] | 1 | 2019-07-23T03:28:40.000Z | 2019-07-23T03:28:40.000Z | from __future__ import with_statement
import math
import unittest2
import random
import re
import array
from chemfp.search import SearchResults
from chemfp.fps_search import FPSSearchResults, FPSSearchResult
try:
next
except NameError:
# Compatibility with Python 2.5
def next(it):
return it.next(... | 42.034783 | 110 | 0.567749 | 5,787 | 38,672 | 3.672715 | 0.109038 | 0.011951 | 0.097817 | 0.058107 | 0.697939 | 0.66124 | 0.625341 | 0.596076 | 0.57321 | 0.553731 | 0 | 0.125606 | 0.252689 | 38,672 | 919 | 111 | 42.080522 | 0.609827 | 0.027074 | 0 | 0.48183 | 0 | 0 | 0.035584 | 0 | 0 | 0 | 0 | 0 | 0.234186 | 0 | null | null | 0.010767 | 0.010767 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5c35e1484a460e36a7ff39faee8971aaebce045 | 1,164 | py | Python | flask_blog/blog/api/serializers.py | dmitriyvek/flask-blog | 86e94f9a9bdae682061bb26662da9649f6a4e6ab | [
"MIT"
] | null | null | null | flask_blog/blog/api/serializers.py | dmitriyvek/flask-blog | 86e94f9a9bdae682061bb26662da9649f6a4e6ab | [
"MIT"
] | null | null | null | flask_blog/blog/api/serializers.py | dmitriyvek/flask-blog | 86e94f9a9bdae682061bb26662da9649f6a4e6ab | [
"MIT"
] | null | null | null | from marshmallow import fields, validate
from flask_blog import ma
from flask_blog.blog.models import Post
class PostDetailSerializer(ma.SQLAlchemySchema):
'''Schema for Post detail serialization'''
class Meta:
model = Post
fields = ('id', 'title', 'content', 'created_on',
... | 25.304348 | 71 | 0.662371 | 129 | 1,164 | 5.930233 | 0.341085 | 0.058824 | 0.12549 | 0.141176 | 0.564706 | 0.402614 | 0.402614 | 0.321569 | 0.321569 | 0.19085 | 0 | 0.002193 | 0.216495 | 1,164 | 45 | 72 | 25.866667 | 0.836623 | 0.122852 | 0 | 0.4 | 0 | 0 | 0.105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f5c5c1f3a9480d3738ea9f6ee553992e852733e5 | 5,909 | py | Python | tiledb/cloud/rest_api/models/attribute_buffer_size.py | TileDB-Inc/TileDB-Cloud-Py | e73f6e0ae3fc595218abd3be606c68f62ad5ac9b | [
"MIT"
] | 4 | 2019-12-04T23:19:35.000Z | 2021-06-21T21:42:53.000Z | tiledb/cloud/rest_api/models/attribute_buffer_size.py | TileDB-Inc/TileDB-Cloud-Py | e73f6e0ae3fc595218abd3be606c68f62ad5ac9b | [
"MIT"
] | 106 | 2019-11-07T22:40:43.000Z | 2022-03-29T22:31:18.000Z | tiledb/cloud/rest_api/models/attribute_buffer_size.py | TileDB-Inc/TileDB-Cloud-Py | e73f6e0ae3fc595218abd3be606c68f62ad5ac9b | [
"MIT"
] | 1 | 2020-10-04T18:54:37.000Z | 2020-10-04T18:54:37.000Z | # coding: utf-8
"""
TileDB Storage Platform API
TileDB Storage Platform REST API # noqa: E501
The version of the OpenAPI document: 2.2.19
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from tiledb.cloud.rest_api.configuration import Configuratio... | 29.693467 | 88 | 0.583178 | 659 | 5,909 | 5.06525 | 0.188164 | 0.057519 | 0.089874 | 0.078191 | 0.480228 | 0.413421 | 0.405932 | 0.311863 | 0.257939 | 0.177352 | 0 | 0.020965 | 0.330005 | 5,909 | 198 | 89 | 29.843434 | 0.822177 | 0.300728 | 0 | 0.151515 | 1 | 0 | 0.076447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.040404 | 0 | 0.292929 | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5c965fdf592f0833a2088b8becf863244688cd9 | 405 | py | Python | backend/apps/products/urls.py | maxelite1520/mecommerce | 1cd80fba1272a300d267a566198c05678f8c63f5 | [
"MIT"
] | null | null | null | backend/apps/products/urls.py | maxelite1520/mecommerce | 1cd80fba1272a300d267a566198c05678f8c63f5 | [
"MIT"
] | 87 | 2021-10-30T13:21:40.000Z | 2022-02-07T16:40:14.000Z | backend/apps/products/urls.py | maxelite1520/mecommerce | 1cd80fba1272a300d267a566198c05678f8c63f5 | [
"MIT"
] | null | null | null | from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import CategoryViewSet, ProductViewSet, all_products_list
router = SimpleRouter()
router.register(r'categories', CategoryViewSet, basename='category')
router.register(r'products', ProductViewSet, basename='product')
urlpattern... | 27 | 76 | 0.795062 | 46 | 405 | 6.891304 | 0.543478 | 0.104101 | 0.141956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096296 | 405 | 14 | 77 | 28.928571 | 0.86612 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f5ca43409a01cf3d28cb46783d403ae3c3ce95ec | 3,442 | py | Python | src/rogerthat/bizz/job/hookup_with_default_services.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/job/hookup_with_default_services.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/job/hookup_with_default_services.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 42.493827 | 121 | 0.750145 | 471 | 3,442 | 5.237792 | 0.335456 | 0.056749 | 0.018241 | 0.019457 | 0.143899 | 0.105391 | 0.085934 | 0.033239 | 0.033239 | 0.033239 | 0 | 0.004203 | 0.17054 | 3,442 | 80 | 122 | 43.025 | 0.859895 | 0.23649 | 0 | 0.086957 | 0 | 0 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.304348 | 0.021739 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f5cf6968ed15d1f6d38c740ba630a963fb2cb546 | 358 | py | Python | dask_ml/metrics/__init__.py | laprej/dask-ml | 78b1d942eae14db442a744f8812c3e94a8f31272 | [
"BSD-3-Clause"
] | 3 | 2017-06-13T22:36:45.000Z | 2017-09-20T16:08:47.000Z | dask_ml/metrics/__init__.py | laprej/dask-ml | 78b1d942eae14db442a744f8812c3e94a8f31272 | [
"BSD-3-Clause"
] | null | null | null | dask_ml/metrics/__init__.py | laprej/dask-ml | 78b1d942eae14db442a744f8812c3e94a8f31272 | [
"BSD-3-Clause"
] | 1 | 2019-12-03T13:23:52.000Z | 2019-12-03T13:23:52.000Z | from .pairwise import ( # noqa
pairwise_distances,
pairwise_distances_argmin_min,
euclidean_distances,
)
from .regression import ( # noqa
mean_absolute_error,
mean_squared_error,
r2_score,
)
from .classification import ( # noqa
accuracy_score,
)
from .scorer import ( # noqa
get_scor... | 17.9 | 37 | 0.695531 | 39 | 358 | 6.051282 | 0.564103 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.231844 | 358 | 19 | 38 | 18.842105 | 0.854545 | 0.053073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5d43cc6771fd1910fb418bb0e444faa11c4dc50 | 5,883 | py | Python | sdk/python/pulumi_aws_native/auditmanager/get_assessment.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/auditmanager/get_assessment.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/auditmanager/get_assessment.py | pulumi/pulumi-aws-native | 1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 37.954839 | 180 | 0.674656 | 650 | 5,883 | 5.844615 | 0.193846 | 0.047381 | 0.088444 | 0.071071 | 0.26507 | 0.121348 | 0.121348 | 0.035799 | 0.035799 | 0.035799 | 0 | 0.000219 | 0.225395 | 5,883 | 154 | 181 | 38.201299 | 0.833443 | 0.081251 | 0 | 0.12931 | 1 | 0 | 0.168616 | 0.063372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112069 | false | 0 | 0.060345 | 0.051724 | 0.284483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5d8f5dc77dd68b19b30f54290618af4d05f8209 | 4,572 | py | Python | Python/GUI/browser.py | Bktero/DummyCodes | 1c1db7e3b0d97b1614f5acc80dd15290486bdbf6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | Python/GUI/browser.py | Bktero/DummyCodes | 1c1db7e3b0d97b1614f5acc80dd15290486bdbf6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | Python/GUI/browser.py | Bktero/DummyCodes | 1c1db7e3b0d97b1614f5acc80dd15290486bdbf6 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-09T23:02:49.000Z | 2019-12-09T23:02:49.000Z | '''
Une application minimaliste qui switche a intervalle de temps regulier entre deux pages Internet.
L'idée de l'application vient de cette discussion :
http://www.developpez.net/forums/d1255957/autres-langages/python-zope/general-python/jongler-entre-onglets-navigateur-web
'''
import sys
from PyQt4 import QtCore, Q... | 38.420168 | 124 | 0.625984 | 480 | 4,572 | 5.929167 | 0.375 | 0.030921 | 0.035137 | 0.012649 | 0.133521 | 0.060436 | 0.033732 | 0.033732 | 0.033732 | 0 | 0 | 0.014143 | 0.257655 | 4,572 | 119 | 125 | 38.420168 | 0.824101 | 0.054462 | 0 | 0.055556 | 0 | 0 | 0.074519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5dd8a575e7816c8343bd43500cddbbac73ab41d | 13,341 | py | Python | svload/pandas_plugins/edi_filter.py | singleview-co-kr/django_etl | ba80e6bedf831c2b9519a9bfb8c29113bae95c22 | [
"BSD-3-Clause"
] | null | null | null | svload/pandas_plugins/edi_filter.py | singleview-co-kr/django_etl | ba80e6bedf831c2b9519a9bfb8c29113bae95c22 | [
"BSD-3-Clause"
] | 31 | 2021-09-06T05:27:43.000Z | 2022-02-17T05:05:01.000Z | svload/pandas_plugins/edi_filter.py | singleview-co-kr/django_etl | ba80e6bedf831c2b9519a9bfb8c29113bae95c22 | [
"BSD-3-Clause"
] | null | null | null | from svtransform.models import HyperMartType, HypermartGeoInfo
# for logger
import logging
logger = logging.getLogger(__name__) # __file__ # logger.debug('debug msg')
class EdiFilter:
__g_oHttpRequest = None
__g_dictBranchInfo = {}
__g_dictSalesChInfo = None
__g_dictFilter = {'s_sales_ch_mode': Non... | 48.868132 | 136 | 0.60018 | 1,707 | 13,341 | 4.158172 | 0.104862 | 0.027473 | 0.044379 | 0.02705 | 0.598901 | 0.530854 | 0.47929 | 0.421668 | 0.324739 | 0.282051 | 0 | 0.00251 | 0.31302 | 13,341 | 272 | 137 | 49.047794 | 0.771959 | 0.084851 | 0 | 0.358209 | 0 | 0 | 0.099737 | 0.008342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0.059701 | 0.00995 | 0 | 0.084577 | 0.004975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f5e1eb633691a43a98bed70032f415421201bd7a | 7,888 | py | Python | motion_analysis/gui/layout/motion_modelling_dialog_ui.py | gemlongman/motion_preprocessing_tool | 0d46fc41ff951e7cc4788d1d9355b0346a9df306 | [
"MIT"
] | 10 | 2020-05-20T04:10:07.000Z | 2021-02-10T16:06:46.000Z | motion_analysis/gui/layout/motion_modelling_dialog_ui.py | gemlongman/motion_preprocessing_tool | 0d46fc41ff951e7cc4788d1d9355b0346a9df306 | [
"MIT"
] | 6 | 2020-04-23T03:50:55.000Z | 2022-03-02T10:08:57.000Z | motion_analysis/gui/layout/motion_modelling_dialog_ui.py | gemlongman/motion_preprocessing_tool | 0d46fc41ff951e7cc4788d1d9355b0346a9df306 | [
"MIT"
] | 3 | 2020-05-22T03:37:30.000Z | 2021-05-24T11:12:53.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\Research\physics\workspace\mosi_app_mgtools\motion_analysis\GUI\layout\.\motion_modelling_dialog.ui',
# licensing of 'D:\Research\physics\workspace\mosi_app_mgtools\motion_analysis\GUI\layout\.\motion_modelling_dialog.ui' applies.
#
# Cre... | 64.655738 | 158 | 0.753423 | 732 | 7,888 | 8.039617 | 0.191257 | 0.115548 | 0.076466 | 0.091759 | 0.431946 | 0.242311 | 0.134579 | 0.134579 | 0.134579 | 0.134579 | 0 | 0.02861 | 0.144777 | 7,888 | 121 | 159 | 65.190083 | 0.843759 | 0.055781 | 0 | 0.037383 | 1 | 0 | 0.081474 | 0.020301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0.009346 | 0 | 0.037383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5ee69f806ca79d15fd346a922b7976af101268c | 360 | py | Python | docs/source/guides/adding-interactivity/responding-to-events/_examples/button_prints_message.py | jmtaysom/idom | d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343 | [
"MIT"
] | 55 | 2019-02-28T23:58:42.000Z | 2020-07-14T22:01:45.000Z | docs/source/guides/adding-interactivity/responding-to-events/_examples/button_prints_message.py | jmtaysom/idom | d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343 | [
"MIT"
] | 72 | 2019-04-04T18:46:30.000Z | 2020-06-24T02:47:57.000Z | docs/source/guides/adding-interactivity/responding-to-events/_examples/button_prints_message.py | jmtaysom/idom | d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343 | [
"MIT"
] | 7 | 2019-04-02T17:53:30.000Z | 2020-06-23T16:17:58.000Z | from idom import component, html, run
@component
def PrintButton(display_text, message_text):
def handle_event(event):
print(message_text)
return html.button({"onClick": handle_event}, display_text)
@component
def App():
return html.div(
PrintButton("Play", "Playing"),
PrintButt... | 17.142857 | 63 | 0.663889 | 42 | 360 | 5.547619 | 0.547619 | 0.103004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 360 | 20 | 64 | 18 | 0.817544 | 0 | 0 | 0.153846 | 0 | 0 | 0.080556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5f0569a1d9dbee939c5dcb237ffa1bb802c36ab | 4,705 | py | Python | GcinviteBot.py | HOTNSPICY12/InviteFuckKwel | a39a648cdbf99419758ec61fa555c7c57bb1c2b7 | [
"MIT"
] | null | null | null | GcinviteBot.py | HOTNSPICY12/InviteFuckKwel | a39a648cdbf99419758ec61fa555c7c57bb1c2b7 | [
"MIT"
] | null | null | null | GcinviteBot.py | HOTNSPICY12/InviteFuckKwel | a39a648cdbf99419758ec61fa555c7c57bb1c2b7 | [
"MIT"
] | null | null | null | import amino, concurrent.futures
import os
print("\t\033[1;31m GCINVITEBOT\n\n")
print("\t\033[1;32m Script by \033[1;36mMr.COMRADE \n\n")
print("\t\033[1;32m Again fixed by: \033[1;36mPRINCE OF PERSIA \n\n")
client = amino.Client()
email = input("Email: ")
password = input("Password: ")
client.login(email=email, pass... | 36.472868 | 97 | 0.696918 | 648 | 4,705 | 4.942901 | 0.186728 | 0.059007 | 0.052451 | 0.036528 | 0.65907 | 0.650952 | 0.63784 | 0.628473 | 0.628473 | 0.628473 | 0 | 0.045768 | 0.168757 | 4,705 | 128 | 98 | 36.757813 | 0.773204 | 0.029331 | 0 | 0.541667 | 0 | 0.016667 | 0.134721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.041667 | 0.016667 | 0 | 0.05 | 0.158333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5f11f4a1b4c05d17cb5de12f2725fea1282d2fe | 613 | py | Python | tables/req_versions.py | xmatthias/PyTables | da01cf8908c2d8c2b07e8a35685f0811807453f6 | [
"BSD-3-Clause"
] | 869 | 2015-01-04T08:55:33.000Z | 2022-03-28T17:22:14.000Z | tables/req_versions.py | xmatthias/PyTables | da01cf8908c2d8c2b07e8a35685f0811807453f6 | [
"BSD-3-Clause"
] | 558 | 2015-01-07T21:53:43.000Z | 2022-03-31T15:01:55.000Z | tables/req_versions.py | xmatthias/PyTables | da01cf8908c2d8c2b07e8a35685f0811807453f6 | [
"BSD-3-Clause"
] | 198 | 2015-01-04T13:58:01.000Z | 2022-03-29T02:33:43.000Z | """Required versions for PyTables dependencies."""
from packaging.version import Version
# **********************************************************************
# Keep these in sync with setup.cfg and user's guide
# **********************************************************************
# Minimum recommended versi... | 38.3125 | 72 | 0.582382 | 73 | 613 | 4.739726 | 0.616438 | 0.202312 | 0.17341 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028933 | 0.097879 | 613 | 15 | 73 | 40.866667 | 0.596745 | 0.476346 | 0 | 0 | 0 | 0 | 0.102459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.