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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
776dc62a2ba4235e6f64510c266046df5ceac1aa | 619 | py | Python | 2020/day2/day2_part2.py | karstendick/advent-of-code | 4f8d41c7a889693b99da4825d476b2ee744ae7a7 | [
"MIT"
] | null | null | null | 2020/day2/day2_part2.py | karstendick/advent-of-code | 4f8d41c7a889693b99da4825d476b2ee744ae7a7 | [
"MIT"
] | null | null | null | 2020/day2/day2_part2.py | karstendick/advent-of-code | 4f8d41c7a889693b99da4825d476b2ee744ae7a7 | [
"MIT"
] | null | null | null | valid_passwords = 0
with open('input.txt', 'r') as f:
for line in f:
min_max, letter_colon, password = line.split()
pmin, pmax = [int(c) for c in min_max.split('-')]
letter = letter_colon[0:1] # remove colon
password = ' ' + password # account for 1-indexing
matching_chars = 0
... | 29.47619 | 73 | 0.597738 | 82 | 619 | 4.365854 | 0.439024 | 0.145251 | 0.117318 | 0.111732 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019912 | 0.26979 | 619 | 20 | 74 | 30.95 | 0.772124 | 0.192246 | 0 | 0.133333 | 0 | 0 | 0.024242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.466667 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
776eac24ab4f9c417aaeb1297d9cc373c4db5105 | 957 | py | Python | globee/resources/exceptions.py | MrMebelMan/pyGloBee | ef51a9cb5c176ff6c24b57b89362e2ccd9f9ad98 | [
"MIT"
] | null | null | null | globee/resources/exceptions.py | MrMebelMan/pyGloBee | ef51a9cb5c176ff6c24b57b89362e2ccd9f9ad98 | [
"MIT"
] | null | null | null | globee/resources/exceptions.py | MrMebelMan/pyGloBee | ef51a9cb5c176ff6c24b57b89362e2ccd9f9ad98 | [
"MIT"
] | null | null | null | class Globee404NotFound(Exception):
def __init__(self):
super().__init__()
self.message = 'Payment Request returned 404: Not Found'
def __str__(self):
return self.message
class Globee422UnprocessableEntity(Exception):
def __init__(self, errors):
super().__init__()
... | 28.147059 | 64 | 0.587252 | 106 | 957 | 4.924528 | 0.367925 | 0.091954 | 0.05364 | 0.114943 | 0.264368 | 0.264368 | 0.16092 | 0 | 0 | 0 | 0 | 0.017341 | 0.276907 | 957 | 33 | 65 | 29 | 0.736994 | 0 | 0 | 0.32 | 0 | 0 | 0.17364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0 | 0.08 | 0.48 | 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 |
7771014acf58439aea56076ced1dc1b7cf801d4d | 2,828 | py | Python | pyexchange/base/contacts.py | Gexeg/pyexchange | 82da9e8a193cdaf94e410575f291f4581ffcab02 | [
"Apache-2.0"
] | 4 | 2016-09-09T12:25:44.000Z | 2021-05-04T11:54:37.000Z | pyexchange/base/contacts.py | Gexeg/pyexchange | 82da9e8a193cdaf94e410575f291f4581ffcab02 | [
"Apache-2.0"
] | 1 | 2017-09-20T09:14:03.000Z | 2020-03-20T18:36:51.000Z | pyexchange/base/contacts.py | Gexeg/pyexchange | 82da9e8a193cdaf94e410575f291f4581ffcab02 | [
"Apache-2.0"
] | 4 | 2018-02-13T11:18:44.000Z | 2019-10-30T06:58:12.000Z | class BaseExchangeContactService(object):
def __init__(self, service, folder_id):
self.service = service
self.folder_id = folder_id
def get_contact(self, id):
raise NotImplementedError
def new_contact(self, **properties):
raise NotImplementedError
class BaseExchangeContac... | 28.28 | 137 | 0.655233 | 344 | 2,828 | 5.125 | 0.322674 | 0.068066 | 0.076574 | 0.040839 | 0.11004 | 0.043108 | 0.043108 | 0.043108 | 0 | 0 | 0 | 0.001457 | 0.271924 | 2,828 | 99 | 138 | 28.565657 | 0.854784 | 0.143564 | 0 | 0.178082 | 0 | 0 | 0.020859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205479 | false | 0 | 0 | 0 | 0.575342 | 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 |
777789ad8ba2e82b9d3b95b6a6574fac134f463b | 759 | py | Python | setup.py | donutfarian/drumutation | 11a1108d227eedd18e36702c06c0d4e4c9b137be | [
"MIT"
] | null | null | null | setup.py | donutfarian/drumutation | 11a1108d227eedd18e36702c06c0d4e4c9b137be | [
"MIT"
] | null | null | null | setup.py | donutfarian/drumutation | 11a1108d227eedd18e36702c06c0d4e4c9b137be | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
import drumutation
def readme():
with open("README.md") as f:
return f.read()
setup(name="drumutation",
version=drumutation.__version__,
description="Create LilyPond sheet music for drum permutations.",
long_des... | 26.172414 | 71 | 0.637681 | 81 | 759 | 5.82716 | 0.728395 | 0.076271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003356 | 0.214756 | 759 | 28 | 72 | 27.107143 | 0.788591 | 0.056653 | 0 | 0 | 0 | 0 | 0.268908 | 0.032213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | true | 0 | 0.086957 | 0 | 0.173913 | 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 |
7785dd2655b091c1474f22ebf9c71c5563b497ee | 5,572 | py | Python | app/user/tests/test_user_api.py | geraldini/recipe-app-api | 653863e6c9d2b8132db1abdc80a3298a12e68d93 | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | geraldini/recipe-app-api | 653863e6c9d2b8132db1abdc80a3298a12e68d93 | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | geraldini/recipe-app-api | 653863e6c9d2b8132db1abdc80a3298a12e68d93 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
class TestUserApi(TestCase):
USER_API_URL = reverse('user:create')
TOKEN_API_URL = reverse('user:token')
ME_URL = rev... | 36.418301 | 79 | 0.655958 | 654 | 5,572 | 5.383792 | 0.19419 | 0.039761 | 0.078387 | 0.090599 | 0.526555 | 0.480829 | 0.4476 | 0.437376 | 0.419767 | 0.369213 | 0 | 0.010485 | 0.22972 | 5,572 | 152 | 80 | 36.657895 | 0.809879 | 0.108579 | 0 | 0.390476 | 0 | 0 | 0.113942 | 0.017122 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.12381 | false | 0.152381 | 0.047619 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
77917044eb836ce686254ef6a75f212fcc50e732 | 1,115 | py | Python | src/util/configuration.py | skywing/template_python_vscode | 0c125eb8d4b479e660919f3d987e085906a24e6c | [
"MIT"
] | null | null | null | src/util/configuration.py | skywing/template_python_vscode | 0c125eb8d4b479e660919f3d987e085906a24e6c | [
"MIT"
] | 1 | 2021-07-06T13:34:41.000Z | 2021-07-06T13:34:41.000Z | src/util/configuration.py | skywing/template_python_vscode | 0c125eb8d4b479e660919f3d987e085906a24e6c | [
"MIT"
] | null | null | null | from pathlib import Path
import logging
from typing import MutableMapping
import toml
logger = logging.getLogger(__name__)
class Configuration():
def __init__(self):
self.__config_file_path : str
self.__config : MutableMapping
def load(self, config_file_path: str = './config.toml'):
l... | 32.794118 | 75 | 0.683408 | 142 | 1,115 | 4.943662 | 0.253521 | 0.185185 | 0.239316 | 0.153846 | 0.299145 | 0.159544 | 0.091168 | 0 | 0 | 0 | 0 | 0 | 0.215247 | 1,115 | 33 | 76 | 33.787879 | 0.802286 | 0 | 0 | 0 | 0 | 0 | 0.218834 | 0.064574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.148148 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7795ed77234d2b9213758a8bee21122fc164595f | 347 | py | Python | python/pksdr2l6.py | yoronneko/PocketSDR | c54e203bd3c0f9373bbf7e0da49a956d03a6e0b4 | [
"BSD-2-Clause"
] | 1 | 2022-03-05T12:32:09.000Z | 2022-03-05T12:32:09.000Z | python/pksdr2l6.py | yoronneko/PocketSDR | c54e203bd3c0f9373bbf7e0da49a956d03a6e0b4 | [
"BSD-2-Clause"
] | null | null | null | python/pksdr2l6.py | yoronneko/PocketSDR | c54e203bd3c0f9373bbf7e0da49a956d03a6e0b4 | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
line = sys.stdin.readline().strip()
while (line):
if line[0:6] != "$L6FRM":
line = sys.stdin.readline().strip()
continue
t_data = line.split(',')[5]
sys.stdout.buffer.write(bytes.fromhex(t_data))
sys.stdout.flush()
line = sy... | 24.785714 | 50 | 0.599424 | 48 | 347 | 4.291667 | 0.604167 | 0.101942 | 0.174757 | 0.291262 | 0.364078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.195965 | 347 | 13 | 51 | 26.692308 | 0.716846 | 0.126801 | 0 | 0.3 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
7798982ceec36bf91454571d81ccd9521c2ea996 | 10,277 | py | Python | sfpDigger.py | networkProgrammingDevStock/CiscoACI | 8a530fe0fd1b9c76e83e90a11041503653cdcbe0 | [
"BSD-3-Clause"
] | 4 | 2020-04-26T07:32:51.000Z | 2021-09-05T14:39:29.000Z | sfpDigger.py | networkProgrammingDevStock/CiscoACI | 8a530fe0fd1b9c76e83e90a11041503653cdcbe0 | [
"BSD-3-Clause"
] | null | null | null | sfpDigger.py | networkProgrammingDevStock/CiscoACI | 8a530fe0fd1b9c76e83e90a11041503653cdcbe0 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T21:22:51.000Z | 2021-03-04T07:43:21.000Z | import sys
import time
import datetime
import requests
import json
import urllib3
import click
print("Libraries are imported")
urllib3.disable_warnings()
class Interface():
def __init__(self, name):
'''
This class is representative of physical interfaces of dc switches
'''
self.na... | 49.647343 | 286 | 0.577114 | 1,060 | 10,277 | 5.554717 | 0.248113 | 0.009171 | 0.009171 | 0.014436 | 0.259851 | 0.234545 | 0.204823 | 0.17663 | 0.167459 | 0.13553 | 0 | 0.006691 | 0.301936 | 10,277 | 206 | 287 | 49.88835 | 0.814051 | 0.109176 | 0 | 0.212903 | 0 | 0.032258 | 0.216698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.070968 | 0.051613 | 0 | 0.154839 | 0.103226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
779bc153d9d568f697b7b5ad8c9ec86444644bb1 | 973 | wsgi | Python | docker/wrong_port_warning.wsgi | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | 87 | 2015-02-10T23:36:28.000Z | 2022-01-31T00:51:10.000Z | docker/wrong_port_warning.wsgi | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | 443 | 2015-04-28T18:50:25.000Z | 2022-03-31T03:29:43.000Z | docker/wrong_port_warning.wsgi | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | 122 | 2015-01-13T16:27:44.000Z | 2022-01-24T09:35:56.000Z | # Per kobotoolbox/kobo-docker#301, we have changed the uWSGI port to 8001. This
# provides a helpful message to anyone still trying to use port 8000.
# Based upon
# https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#the-first-wsgi-application
html_response = b'''
<html>
<head><title>System configuration e... | 40.541667 | 92 | 0.75334 | 148 | 973 | 4.925676 | 0.608108 | 0.061728 | 0.08642 | 0.060357 | 0.197531 | 0.120713 | 0.120713 | 0.120713 | 0 | 0 | 0 | 0.039261 | 0.109969 | 973 | 23 | 93 | 42.304348 | 0.80254 | 0.251799 | 0 | 0 | 0 | 0.058824 | 0.821082 | 0.041609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 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 |
779bfae4e7717cb79a47a9027a07ae5bf057fa4b | 339 | py | Python | api/routers/auth.py | temanisparsh/mailing-system | 9c3e5a060a0d3531f8f4a83af335098b36e735c5 | [
"MIT"
] | 2 | 2021-04-13T02:45:24.000Z | 2021-04-24T14:06:23.000Z | api/routers/auth.py | temanisparsh/mailing-system | 9c3e5a060a0d3531f8f4a83af335098b36e735c5 | [
"MIT"
] | null | null | null | api/routers/auth.py | temanisparsh/mailing-system | 9c3e5a060a0d3531f8f4a83af335098b36e735c5 | [
"MIT"
] | null | null | null | from flask import Blueprint, make_response, request, jsonify, current_app
from flask.views import MethodView
from controllers import auth
controller = auth.controller
router = Blueprint('auth', __name__)
router.add_url_rule('/login', view_func = controller['login'])
router.add_url_rule('/register', view_func = contr... | 30.818182 | 73 | 0.79056 | 44 | 339 | 5.818182 | 0.545455 | 0.070313 | 0.09375 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100295 | 339 | 10 | 74 | 33.9 | 0.839344 | 0 | 0 | 0 | 0 | 0 | 0.094395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77a45156574a36572e345e5aa9c688f34f1f287b | 472 | py | Python | Part5/varargs3.py | BaiMoHan/LearningPython_ING_202002 | 90d1152b66e8efa284b75b4b76fbf29d7d61e900 | [
"MIT"
] | null | null | null | Part5/varargs3.py | BaiMoHan/LearningPython_ING_202002 | 90d1152b66e8efa284b75b4b76fbf29d7d61e900 | [
"MIT"
] | null | null | null | Part5/varargs3.py | BaiMoHan/LearningPython_ING_202002 | 90d1152b66e8efa284b75b4b76fbf29d7d61e900 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/2/14 14:58
# @Author : Baimohan/PH
# @Site : https://github.com/BaiMoHan
# @File : varargs3.py
# @Software: PyCharm
def test(x, y, z=3, *books, **scores): # **代表收集关键字参数
print(x, y, z)
print(books) # 收集参数保存的是元组
print(scores) # 对于关键... | 26.222222 | 71 | 0.601695 | 67 | 472 | 4.119403 | 0.731343 | 0.014493 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072386 | 0.209746 | 472 | 18 | 72 | 26.222222 | 0.66756 | 0.449153 | 0 | 0 | 0 | 0 | 0.131474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77a4eb080f19ee7ff7612a59e8b302e702a77631 | 260 | py | Python | pyjazzcash/__init__.py | shahraizali/PyJazzCash | b9a2618f55ff73a18c0d5d1e11f55c0d7b390f0e | [
"MIT"
] | null | null | null | pyjazzcash/__init__.py | shahraizali/PyJazzCash | b9a2618f55ff73a18c0d5d1e11f55c0d7b390f0e | [
"MIT"
] | null | null | null | pyjazzcash/__init__.py | shahraizali/PyJazzCash | b9a2618f55ff73a18c0d5d1e11f55c0d7b390f0e | [
"MIT"
] | null | null | null | """Top-level package for PyJazzCash."""
__author__ = """Rana Shahraiz Ali"""
__email__ = 'shahraizali10@yahoo.com'
__version__ = '0.1.0'
integrity_salt = None
merchant_id = None
merchant_password = None
from pyjazzcash import *
from pyjazzcash.card import *
| 21.666667 | 39 | 0.75 | 33 | 260 | 5.454545 | 0.757576 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022124 | 0.130769 | 260 | 11 | 40 | 23.636364 | 0.774336 | 0.126923 | 0 | 0 | 0 | 0 | 0.20362 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
77a904d1681639b1f0163373cdabb8015f17ee48 | 2,071 | py | Python | discordobjects/static/auditlog.py | igo95862/DiscordBot_lib | 09624864a369751441a6eed2b3d0449f03c52151 | [
"MIT"
] | null | null | null | discordobjects/static/auditlog.py | igo95862/DiscordBot_lib | 09624864a369751441a6eed2b3d0449f03c52151 | [
"MIT"
] | null | null | null | discordobjects/static/auditlog.py | igo95862/DiscordBot_lib | 09624864a369751441a6eed2b3d0449f03c52151 | [
"MIT"
] | null | null | null | from .base_object import DiscordObject
from ..client import DiscordClientAsync
class AuditLog(DiscordObject):
GUILD_UPDATE = 1
CHANNEL_CREATE = 10
CHANNEL_UPDATE = 11
CHANNEL_DELETE = 12
CHANNEL_OVERWRITE_CREATE = 13
CHANNEL_OVERWRITE_UPDATE = 14
CHANNEL_OVERWRITE_DELETE = 15
MEMBER_KI... | 33.403226 | 112 | 0.695316 | 266 | 2,071 | 5.048872 | 0.315789 | 0.033507 | 0.075949 | 0.084885 | 0.419955 | 0.404319 | 0.404319 | 0.404319 | 0.404319 | 0.404319 | 0 | 0.032156 | 0.234186 | 2,071 | 61 | 113 | 33.95082 | 0.814628 | 0.04732 | 0 | 0.166667 | 0 | 0 | 0.05739 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.083333 | false | 0 | 0.041667 | 0.020833 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
77ac4458039312cb43a3557cf76c47f06b334e9e | 332 | py | Python | slaves/testslave.py | datalad/buildbot | 4dccffe0772a2816fcf16073b6279b42cfe408f6 | [
"MIT"
] | 1 | 2016-08-30T07:39:22.000Z | 2016-08-30T07:39:22.000Z | slaves/testslave.py | datalad/buildbot | 4dccffe0772a2816fcf16073b6279b42cfe408f6 | [
"MIT"
] | 6 | 2015-03-25T03:40:41.000Z | 2020-01-09T21:38:04.000Z | slaves/testslave.py | datalad/buildbot | 4dccffe0772a2816fcf16073b6279b42cfe408f6 | [
"MIT"
] | null | null | null | import docker
docker_socket = 'tcp://172.17.42.1:4243'
client = docker.client.Client(base_url=docker_socket)
slave_image = 'datalad/buildslave:nd80-1'
container = client.create_container(slave_image)
client.start(container['Id'])
# Optionally examine the logs of the master
client.stop(container['Id'])
client.wait(conta... | 33.2 | 53 | 0.78012 | 49 | 332 | 5.163265 | 0.591837 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04886 | 0.075301 | 332 | 9 | 54 | 36.888889 | 0.775244 | 0.123494 | 0 | 0 | 0 | 0 | 0.183391 | 0.16263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
77aee28f214c0dd61513c5223e5b66b5686711a1 | 3,827 | py | Python | engine/gui/adaptive.py | alexcher-im/sgemu | e85c6834b1057a27ba5c41c357c0de2336a12e2e | [
"Zlib"
] | 5 | 2020-10-24T12:39:52.000Z | 2021-04-04T22:47:44.000Z | engine/gui/adaptive.py | alexcher-im/sgemu | e85c6834b1057a27ba5c41c357c0de2336a12e2e | [
"Zlib"
] | null | null | null | engine/gui/adaptive.py | alexcher-im/sgemu | e85c6834b1057a27ba5c41c357c0de2336a12e2e | [
"Zlib"
] | null | null | null | from collections import namedtuple
from glm import vec2, min as glm_min
from .typedefs import cvec
ResizeWrapper = namedtuple('ResizeWrapper', 'func soft_redraw')
AlignWrapper = namedtuple('AlignWrapper', 'func soft_redraw')
# resize functions
def resize_stretch(elem):
new_size = vec2(elem.metrics.user_size) *... | 29.438462 | 101 | 0.705252 | 569 | 3,827 | 4.528998 | 0.13181 | 0.106713 | 0.103221 | 0.081102 | 0.43927 | 0.342258 | 0.339542 | 0.237874 | 0.237874 | 0.213815 | 0 | 0.009245 | 0.180298 | 3,827 | 129 | 102 | 29.666667 | 0.812241 | 0.031879 | 0 | 0.025974 | 0 | 0 | 0.015414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233766 | false | 0 | 0.038961 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77b33ce3d8aa6238439f59100e46c30d4a4197b7 | 351 | py | Python | utils/dictToObject.py | Qlanowski/rangle | 53299209e5e1fb9ce1c9eed4cf44ac34684dba02 | [
"MIT"
] | null | null | null | utils/dictToObject.py | Qlanowski/rangle | 53299209e5e1fb9ce1c9eed4cf44ac34684dba02 | [
"MIT"
] | null | null | null | utils/dictToObject.py | Qlanowski/rangle | 53299209e5e1fb9ce1c9eed4cf44ac34684dba02 | [
"MIT"
] | null | null | null | class DictToObject(object):
def __init__(self, dictionary):
def _traverse(key, element):
if isinstance(element, dict):
return key, DictToObject(element)
else:
return key, element
objd = dict(_traverse(k, v) for k, v in dictionary.items())
... | 31.909091 | 67 | 0.581197 | 38 | 351 | 5.105263 | 0.578947 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321937 | 351 | 11 | 68 | 31.909091 | 0.815126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77c50d6a3355e307e0b5a4d8992b946f87f0e295 | 1,256 | py | Python | spar_python/analytics/ta2/circuit_parameters/main.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | spar_python/analytics/ta2/circuit_parameters/main.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | spar_python/analytics/ta2/circuit_parameters/main.py | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | # *****************************************************************
# Copyright 2015 MIT Lincoln Laboratory
# Project: SPAR
# Authors: Yang
# Description: Script to add additional parameters to Stealth
# circuit descriptions.
#
# Modifications:
# Date ... | 36.941176 | 79 | 0.542197 | 127 | 1,256 | 5.165354 | 0.519685 | 0.027439 | 0.041159 | 0.064024 | 0.118902 | 0.118902 | 0.118902 | 0.118902 | 0 | 0 | 0 | 0.01065 | 0.252389 | 1,256 | 33 | 80 | 38.060606 | 0.687966 | 0.386147 | 0 | 0 | 0 | 0 | 0.288918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77cdc9acccee280c5ddaea4463fb692d5c17c7de | 15,192 | py | Python | exquiro/tests/test_ea_activity_diagram_parser.py | xhusar2/conceptual_model_parser | 63eea4ab8b967a6d2ee612ffb4a06b93e97d0043 | [
"MIT"
] | null | null | null | exquiro/tests/test_ea_activity_diagram_parser.py | xhusar2/conceptual_model_parser | 63eea4ab8b967a6d2ee612ffb4a06b93e97d0043 | [
"MIT"
] | null | null | null | exquiro/tests/test_ea_activity_diagram_parser.py | xhusar2/conceptual_model_parser | 63eea4ab8b967a6d2ee612ffb4a06b93e97d0043 | [
"MIT"
] | null | null | null | import unittest
from exquiro.parsers.enterprise_architect.ea_activity_diagram_parser import EAActivityDiagramParser
from exquiro.models.activity_diagram.activity_diagram_model import ActivityDiagramModel
from exquiro.models.activity_diagram.activity_relation import ActivityRelation
from exquiro.models.activity_diagram.... | 46.176292 | 142 | 0.710045 | 1,933 | 15,192 | 5.32954 | 0.08329 | 0.118229 | 0.090274 | 0.08707 | 0.753058 | 0.659289 | 0.596971 | 0.560571 | 0.51524 | 0.507086 | 0 | 0.011004 | 0.18049 | 15,192 | 328 | 143 | 46.317073 | 0.816466 | 0 | 0 | 0.351145 | 0 | 0 | 0.091101 | 0.066482 | 0 | 0 | 0 | 0 | 0.259542 | 1 | 0.248092 | false | 0.003817 | 0.019084 | 0 | 0.270992 | 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 |
77ce25f988851655ba399d12d359786bd35cd260 | 8,289 | py | Python | backend/core/settings.py | open-contracting/pelican-frontend | 136421f6dc0b8269d689c0ddaf49ebbe5ebf3691 | [
"BSD-3-Clause"
] | null | null | null | backend/core/settings.py | open-contracting/pelican-frontend | 136421f6dc0b8269d689c0ddaf49ebbe5ebf3691 | [
"BSD-3-Clause"
] | 57 | 2021-06-29T15:09:22.000Z | 2022-01-28T18:21:23.000Z | backend/core/settings.py | open-contracting/pelican-frontend | 136421f6dc0b8269d689c0ddaf49ebbe5ebf3691 | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for the project.
Generated by "django-admin startproject" using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from g... | 31.637405 | 118 | 0.705272 | 957 | 8,289 | 5.950888 | 0.338558 | 0.022476 | 0.042493 | 0.048288 | 0.141879 | 0.124144 | 0.078314 | 0.078314 | 0.046708 | 0.018613 | 0 | 0.01478 | 0.167451 | 8,289 | 261 | 119 | 31.758621 | 0.810462 | 0.283388 | 0 | 0.025157 | 1 | 0.006289 | 0.471128 | 0.344599 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.031447 | 0.050314 | 0 | 0.050314 | 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 |
77d45c9e40e8319a6245180fbafce4b3be07a17e | 826 | py | Python | setup.py | shubhaguha/mlinspect-demo | 1e9b201d9138a1c99282fe17f6a7ded8a8a67b6b | [
"Apache-2.0"
] | 1 | 2021-06-06T20:07:09.000Z | 2021-06-06T20:07:09.000Z | setup.py | shubhaguha/mlinspect-demo | 1e9b201d9138a1c99282fe17f6a7ded8a8a67b6b | [
"Apache-2.0"
] | null | null | null | setup.py | shubhaguha/mlinspect-demo | 1e9b201d9138a1c99282fe17f6a7ded8a8a67b6b | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="mlinspect-demo",
version="1.0.0",
description="Web app that demos the features of `mlinspect`",
url="https://github.com/shubhaguha/mlinspect-demo",
license="Apache License 2.0",
python_requires="==3.8.*",
classifiers=[
"Licen... | 29.5 | 87 | 0.61138 | 87 | 826 | 5.735632 | 0.643678 | 0.048096 | 0.056112 | 0.104208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018809 | 0.227603 | 826 | 27 | 88 | 30.592593 | 0.763323 | 0 | 0 | 0.08 | 0 | 0.04 | 0.527845 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 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 |
77e0ada425fa4cf0b8fc1a416afd27a878c1ca6e | 704 | py | Python | Q6_PP.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | Q6_PP.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | Q6_PP.py | allenalvin333/12 | 7b0e3fc4c3887dd872fd8faed3b39eada57d4c7e | [
"MIT"
] | null | null | null | class employee:
def __init__(self):
self.e_no = raw_input("Employee number:")
self.name = raw_input("Employee name:")
self.add = raw_input("Address:")
self.dept = raw_input("Department:")
def display(self):
print "Employee number:",self.e_no
print "Employe... | 37.052632 | 95 | 0.619318 | 88 | 704 | 4.715909 | 0.329545 | 0.096386 | 0.072289 | 0.091566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001931 | 0.264205 | 704 | 18 | 96 | 39.111111 | 0.799228 | 0 | 0 | 0.111111 | 0 | 0 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77eee3a780a6c11c495a38a7b5308a5283a60ed2 | 1,552 | py | Python | EKF_seperate_plotted/ekf-plot.py | basavarajnavalgund/tracking-with-Extended-Kalman-Filter | aceb8b217c14b155264edbb6ad0eac4efe0f99f2 | [
"MIT"
] | 1 | 2020-08-16T13:02:43.000Z | 2020-08-16T13:02:43.000Z | EKF_seperate_plotted/ekf-plot.py | basavarajnavalgund/tracking-with-Extended-Kalman-Filter | aceb8b217c14b155264edbb6ad0eac4efe0f99f2 | [
"MIT"
] | null | null | null | EKF_seperate_plotted/ekf-plot.py | basavarajnavalgund/tracking-with-Extended-Kalman-Filter | aceb8b217c14b155264edbb6ad0eac4efe0f99f2 | [
"MIT"
] | null | null | null | from plotly.graph_objs import *
import pandas as pd
import math
my_cols=['est_px','est_py','est_vx','est_vy','meas_px','meas_py','gt_px','gt_py','gt_vx','gt_vy','lgt_px','lgt_py','rgt_px','rgt_py']
with open('output1.txt') as f:
table_ekf_output = pd.read_table(f, sep='\t', header=None, names=my_cols, lineterminat... | 19.64557 | 133 | 0.623067 | 222 | 1,552 | 4.117117 | 0.328829 | 0.105033 | 0.183807 | 0.087527 | 0.377462 | 0.109409 | 0 | 0 | 0 | 0 | 0 | 0.020259 | 0.204897 | 1,552 | 78 | 134 | 19.897436 | 0.720421 | 0.032861 | 0 | 0.254237 | 0 | 0 | 0.193721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.084746 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77ef4c182e362a1728b3e0ee17cd5d011bfddd7c | 846 | py | Python | ptah/core/blueprint_manager.py | Varkal/ptah | 077f38e2000f1cc2aca72b0e3b7775322b8a7e98 | [
"MIT"
] | null | null | null | ptah/core/blueprint_manager.py | Varkal/ptah | 077f38e2000f1cc2aca72b0e3b7775322b8a7e98 | [
"MIT"
] | null | null | null | ptah/core/blueprint_manager.py | Varkal/ptah | 077f38e2000f1cc2aca72b0e3b7775322b8a7e98 | [
"MIT"
] | null | null | null | from bullet import Bullet, YesNo
from pathlib import Path
class BlueprintManager:
def __init__(self):
self.config = None
def setup(self, config: dict):
self.config = config
def get_blueprint_folder(self, blueprint_name: str = None):
library_folder = Path(self.config.get("library_... | 30.214286 | 97 | 0.665485 | 94 | 846 | 5.787234 | 0.43617 | 0.073529 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 846 | 27 | 98 | 31.333333 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0.094563 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.444444 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
77f3a32394c6ae96105faabc5b796c85be5a93b7 | 441 | py | Python | api_v1/migrations/0002_auto_20190220_2125.py | wscullen/tile_viewer_api | da4aeb14aefe4ab5e3c1c7f573d726d71a14cbe7 | [
"MIT"
] | null | null | null | api_v1/migrations/0002_auto_20190220_2125.py | wscullen/tile_viewer_api | da4aeb14aefe4ab5e3c1c7f573d726d71a14cbe7 | [
"MIT"
] | null | null | null | api_v1/migrations/0002_auto_20190220_2125.py | wscullen/tile_viewer_api | da4aeb14aefe4ab5e3c1c7f573d726d71a14cbe7 | [
"MIT"
] | 1 | 2020-11-04T17:43:32.000Z | 2020-11-04T17:43:32.000Z | # Generated by Django 2.1.7 on 2019-02-20 21:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api_v1', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='job',
name='priority',
fie... | 23.210526 | 118 | 0.562358 | 50 | 441 | 4.88 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074303 | 0.267574 | 441 | 18 | 119 | 24.5 | 0.681115 | 0.102041 | 0 | 0 | 1 | 0 | 0.116751 | 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 |
77f89b3de5f7af9120c916f0acf0bf85cda64d1c | 2,197 | py | Python | algos/replay.py | yg-smile/RL_VVC_dataset | 9546fa468d00ed5f0b4b2a7872d24eff464e4b6f | [
"MIT"
] | 2 | 2021-11-23T23:36:08.000Z | 2022-02-27T01:25:43.000Z | algos/replay.py | yg-smile/RL_VVC_dataset | 9546fa468d00ed5f0b4b2a7872d24eff464e4b6f | [
"MIT"
] | null | null | null | algos/replay.py | yg-smile/RL_VVC_dataset | 9546fa468d00ed5f0b4b2a7872d24eff464e4b6f | [
"MIT"
] | null | null | null | from collections import namedtuple
from collections import deque
import torch
import numpy.random as nr
Transitions = namedtuple('Transitions', ['state', 'action', 'reward', 'next_state', 'done'])
class ReplayBuffer:
def __init__(self,
replay_size,
seed):
nr.seed(seed)
... | 34.873016 | 92 | 0.593081 | 267 | 2,197 | 4.666667 | 0.23221 | 0.120385 | 0.134831 | 0.168539 | 0.404494 | 0.370787 | 0.280899 | 0.280899 | 0.280899 | 0.280899 | 0 | 0.00127 | 0.283113 | 2,197 | 62 | 93 | 35.435484 | 0.789841 | 0.051889 | 0 | 0.196078 | 0 | 0 | 0.020192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.078431 | 0 | 0.196078 | 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 |
77f97634a2c1bf6257d9009349e195b59d8d66a6 | 852 | py | Python | src/Rumor/admin.py | HarleyCody/rumor | 9642f2fcb19c2dd486e7a18258f9d1948fa1f8b2 | [
"bzip2-1.0.6"
] | null | null | null | src/Rumor/admin.py | HarleyCody/rumor | 9642f2fcb19c2dd486e7a18258f9d1948fa1f8b2 | [
"bzip2-1.0.6"
] | 6 | 2020-06-05T20:55:19.000Z | 2021-09-22T18:32:17.000Z | src/Rumor/admin.py | HarleyCody/rumor | 9642f2fcb19c2dd486e7a18258f9d1948fa1f8b2 | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib import admin
from .models import Rumor
from django.contrib.auth.models import Group
#Register your models here.
class RegionRumorFilter(admin.SimpleListFilter):
title = 'Region'
parameter_name = 'rumor'
def lookups(self, request, admin):
return [('inRegion','In Region')]
... | 30.428571 | 58 | 0.663146 | 95 | 852 | 5.884211 | 0.494737 | 0.075134 | 0.060823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002994 | 0.215962 | 852 | 28 | 59 | 30.428571 | 0.833832 | 0.030516 | 0 | 0.095238 | 0 | 0 | 0.09201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0.047619 | 0.809524 | 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 |
77fa65c3cf92857ef729aec34a90ffaa22b052b5 | 4,694 | py | Python | ip_verifier.py | Rex31056/twitter-university-2018 | ae4a6dbed7ce21590179d1a3175a3eac1ff46a3f | [
"MIT"
] | null | null | null | ip_verifier.py | Rex31056/twitter-university-2018 | ae4a6dbed7ce21590179d1a3175a3eac1ff46a3f | [
"MIT"
] | null | null | null | ip_verifier.py | Rex31056/twitter-university-2018 | ae4a6dbed7ce21590179d1a3175a3eac1ff46a3f | [
"MIT"
] | null | null | null |
"""
IPv4 was the first publicly used Internet Protocol. It used 4-byte addresses and permitted 232 distinct values. The typical format for an IPv4 address is A.B.C.D where A, B, C, and D are integers in the inclusive range between 0 and 255. IPv6, with 128 bits, was developed to permit the expansion of the address spa... | 93.88 | 2,748 | 0.65147 | 730 | 4,694 | 4.164384 | 0.294521 | 0.028947 | 0.016447 | 0.015789 | 0.264145 | 0.231908 | 0.178289 | 0.1625 | 0.1125 | 0.1125 | 0 | 0.072249 | 0.295271 | 4,694 | 49 | 2,749 | 95.795918 | 0.845224 | 0.670643 | 0 | 0.512195 | 0 | 0 | 0.041176 | 0.014379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ae004636dd65d81d6a32424b668f1c7ad5d04667 | 483 | py | Python | 05.06.21 - Excluir elemento da lista.py | AdamastorLinsFrancaNetto/python-iniciante | 1dab7f824559e5d3db3f28b3e408d3899a5209b4 | [
"MIT"
] | null | null | null | 05.06.21 - Excluir elemento da lista.py | AdamastorLinsFrancaNetto/python-iniciante | 1dab7f824559e5d3db3f28b3e408d3899a5209b4 | [
"MIT"
] | null | null | null | 05.06.21 - Excluir elemento da lista.py | AdamastorLinsFrancaNetto/python-iniciante | 1dab7f824559e5d3db3f28b3e408d3899a5209b4 | [
"MIT"
] | null | null | null | # Escreva um programa para ler um vetor de 10 elementos inteiros. Em seguida exclua o 3° elemento do vetor deslocando os elementos subsequentes uma posição para o inicio do vetor. Depois escreva o vetor resultante na tela.
list = [1,2,3,4,5,6,7,8,9,10]
for i in range(len(list)):
print(f"Posição {i}: {list[i]}")
... | 40.25 | 222 | 0.710145 | 91 | 483 | 3.78022 | 0.604396 | 0.040698 | 0.034884 | 0.063953 | 0.215116 | 0.215116 | 0.215116 | 0.215116 | 0.215116 | 0.215116 | 0 | 0.0399 | 0.169772 | 483 | 12 | 223 | 40.25 | 0.815461 | 0.455487 | 0 | 0.571429 | 0 | 0 | 0.458015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ac66d115946d863b57b1f0084c0ad38ef7633a8 | 4,589 | py | Python | components/fuselage/primitives/fframe.py | skilkis/KBE | e34ac4aede3e0ab59349fcb467332025b50fa3a2 | [
"MIT"
] | 6 | 2019-01-08T13:53:33.000Z | 2022-02-25T09:56:46.000Z | components/fuselage/primitives/fframe.py | skilkis/KBE | e34ac4aede3e0ab59349fcb467332025b50fa3a2 | [
"MIT"
] | null | null | null | components/fuselage/primitives/fframe.py | skilkis/KBE | e34ac4aede3e0ab59349fcb467332025b50fa3a2 | [
"MIT"
] | 2 | 2019-03-28T15:06:39.000Z | 2022-02-25T09:56:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Required ParaPy Modules
from parapy.geom import *
from parapy.core import *
from directories import *
__author__ = "Şan Kılkış"
__all__ = ["FFrame"]
class FFrame(GeomBase):
"""FFrame (Fuselage-Frame) is a class which utilizes a scaled 'unit curve' to define a fus... | 42.490741 | 120 | 0.57834 | 580 | 4,589 | 4.475862 | 0.344828 | 0.010015 | 0.018875 | 0.015408 | 0.071263 | 0.038136 | 0.027735 | 0.027735 | 0 | 0 | 0 | 0.019178 | 0.284158 | 4,589 | 107 | 121 | 42.88785 | 0.771081 | 0.404663 | 0 | 0.09434 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.113208 | 0.09434 | 0.509434 | 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 |
7ad41c2d042dc89d23676dca3bc129fe7f96d538 | 2,203 | py | Python | src/processing/Output.py | Phrosten/CodeCompetition_07-2017_BigData | 3d9cb8da2164ea2687471375966d77ff7b129a93 | [
"Apache-2.0"
] | null | null | null | src/processing/Output.py | Phrosten/CodeCompetition_07-2017_BigData | 3d9cb8da2164ea2687471375966d77ff7b129a93 | [
"Apache-2.0"
] | null | null | null | src/processing/Output.py | Phrosten/CodeCompetition_07-2017_BigData | 3d9cb8da2164ea2687471375966d77ff7b129a93 | [
"Apache-2.0"
] | null | null | null | #
# JSON Output
#
def GenerateJSONArray(list, startIndex=0, endIndex=None, date=False): # Generate a json array string from a list
# ASSUMPTION: All items are of the same type / if one is list all are list
if(len(list) > 0 and type(list[0]) == type([])): # If the list has entries and... | 36.114754 | 130 | 0.532002 | 286 | 2,203 | 4.097902 | 0.307692 | 0.029863 | 0.020478 | 0.028157 | 0.09215 | 0.044369 | 0.044369 | 0.044369 | 0.044369 | 0 | 0 | 0.009979 | 0.363141 | 2,203 | 61 | 131 | 36.114754 | 0.825374 | 0.354517 | 0 | 0.47619 | 1 | 0 | 0.027201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.119048 | 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 |
7ad539494b3f9a14dd573e9ee52b6339c71b7558 | 276 | py | Python | student/urls.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | student/urls.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | student/urls.py | zhangyafeii/CRM | 4d93fb276c7210676590da48b18d8e72cc202ef0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Datetime: 2018/10/28
@Author: Zhang Yafei
"""
from django.conf.urls import url
from student import views
urlpatterns = [
url(r'^my_courses$',views.my_courses,name='my_courses'),
url(r'^my_homework$',views.my_homework,name='my_homework'),
] | 21.230769 | 62 | 0.692029 | 41 | 276 | 4.512195 | 0.585366 | 0.145946 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.119565 | 276 | 13 | 63 | 21.230769 | 0.72428 | 0.235507 | 0 | 0 | 0 | 0 | 0.22549 | 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 |
7ada3089bceb2d905bed5da16f2ee6105b80f3ae | 574 | py | Python | tempo-api/src/app/tempo/controllers/create_post_controller.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | tempo-api/src/app/tempo/controllers/create_post_controller.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | tempo-api/src/app/tempo/controllers/create_post_controller.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | from . import *
class CreatePostController(AppDevController):
def get_path(self):
return '/posts/'
def get_methods(self):
return ['POST']
@authorize
def content(self, **kwargs):
user = kwargs.get('user')
song_info = {
'spotify_url': request.args['song_info[spotify_url]'],
'ar... | 24.956522 | 62 | 0.656794 | 73 | 574 | 4.931507 | 0.424658 | 0.111111 | 0.125 | 0.158333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19338 | 574 | 22 | 63 | 26.090909 | 0.777538 | 0 | 0 | 0 | 0 | 0 | 0.167247 | 0.038328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 0.470588 | 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 |
7ade0514020b9ade1182ae64d9e5f97000999195 | 2,804 | py | Python | ParaViewPlugins/QuaternionToOrientationFrame.py | Kitware/ParaViewTangoRecorder | 1765d65def66fafdf33197a273784c68b87ef84f | [
"Apache-2.0"
] | 31 | 2015-02-06T18:12:33.000Z | 2018-12-11T13:23:54.000Z | ParaViewPlugins/QuaternionToOrientationFrame.py | Kitware/ParaViewTangoRecorder | 1765d65def66fafdf33197a273784c68b87ef84f | [
"Apache-2.0"
] | 2 | 2015-03-05T20:57:43.000Z | 2016-06-20T08:37:40.000Z | ParaViewPlugins/QuaternionToOrientationFrame.py | Kitware/ParaViewTangoRecorder | 1765d65def66fafdf33197a273784c68b87ef84f | [
"Apache-2.0"
] | 18 | 2015-03-04T00:14:50.000Z | 2019-10-16T06:01:25.000Z | ###################################################
######## Programmable filter script ########
###################################################
Name = 'QuaternionToOrientation'
Label = 'Convert Quaternion to Orientation Frame'
Help = 'This converts the orientation from a quaternion to an orientation matrix'
# Au... | 27.490196 | 81 | 0.584879 | 298 | 2,804 | 5.503356 | 0.308725 | 0.010976 | 0.010976 | 0.029268 | 0.112195 | 0.096341 | 0.070732 | 0.070732 | 0.020732 | 0 | 0 | 0.018022 | 0.228245 | 2,804 | 101 | 82 | 27.762376 | 0.739834 | 0.131598 | 0 | 0 | 0 | 0 | 0.111545 | 0.009983 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ae1134fe9e38050f404d5f3381912431eb927aa | 10,959 | py | Python | enso/webui.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 7 | 2015-09-19T20:57:32.000Z | 2020-12-31T16:34:42.000Z | enso/webui.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 21 | 2015-11-03T23:15:25.000Z | 2018-10-11T21:57:45.000Z | enso/webui.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 4 | 2015-09-15T17:18:00.000Z | 2021-06-16T07:06:06.000Z | # vim:set ff=unix tabstop=4 shiftwidth=4 expandtab:
from __future__ import with_statement
import Queue
import cgi
import logging
import os
import socket
import threading
import urllib
import urllib2
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import enso.config
from enso.contrib.scriptotron import cm... | 31.950437 | 88 | 0.608723 | 1,327 | 10,959 | 4.862849 | 0.202713 | 0.024175 | 0.015497 | 0.032543 | 0.385712 | 0.32574 | 0.260344 | 0.252906 | 0.248876 | 0.248876 | 0 | 0.012742 | 0.26955 | 10,959 | 342 | 89 | 32.04386 | 0.793379 | 0.046263 | 0 | 0.367273 | 0 | 0 | 0.110972 | 0.008855 | 0 | 0 | 0 | 0.002924 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.007273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ae2f338a9c836d757d5f7fc199851b7cbe8e8dc | 1,397 | py | Python | bootcamp/news/migrations/0001_initial.py | nandkumar1996/sharebox-portal | 1b4fb60c776d42271a03997ab47f4da67463ad91 | [
"MIT"
] | 7 | 2019-11-25T10:43:31.000Z | 2021-08-09T14:02:58.000Z | bootcamp/news/migrations/0001_initial.py | nandkumar1996/sharebox-portal | 1b4fb60c776d42271a03997ab47f4da67463ad91 | [
"MIT"
] | 45 | 2020-03-29T20:01:38.000Z | 2021-08-09T16:39:33.000Z | bootcamp/news/migrations/0001_initial.py | nandkumar1996/sharebox-portal | 1b4fb60c776d42271a03997ab47f4da67463ad91 | [
"MIT"
] | 5 | 2020-03-30T15:33:42.000Z | 2021-09-17T17:04:40.000Z | # Generated by Django 2.0.3 on 2018-07-04 03:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 38.805556 | 156 | 0.619184 | 152 | 1,397 | 5.539474 | 0.5 | 0.038005 | 0.049881 | 0.078385 | 0.144893 | 0.090261 | 0.090261 | 0.090261 | 0 | 0 | 0 | 0.018095 | 0.248389 | 1,397 | 35 | 157 | 39.914286 | 0.78381 | 0.032212 | 0 | 0 | 1 | 0 | 0.11037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ae6e1b2feb369361a2a5f389eaacde9a198c37a | 327 | py | Python | Session II/Encapsulation.py | intrepidkarthi/softwareengineer | 3e839376dc3db2df055fcc6ac6dbac84bec2b42b | [
"MIT"
] | 4 | 2021-08-15T14:14:26.000Z | 2021-10-09T09:21:23.000Z | Session II/Encapsulation.py | intrepidkarthi/softwareengineer | 3e839376dc3db2df055fcc6ac6dbac84bec2b42b | [
"MIT"
] | null | null | null | Session II/Encapsulation.py | intrepidkarthi/softwareengineer | 3e839376dc3db2df055fcc6ac6dbac84bec2b42b | [
"MIT"
] | 1 | 2021-10-09T07:08:19.000Z | 2021-10-09T07:08:19.000Z | class Encapsulation:
def __init__(self):
self.__my_price = 10
def sell(self):
print("my selling price is {}".format(self.__my_price))
def setprice(self, price):
self.__my_price = price
encap = Encapsulation()
encap.sell()
encap.__my_price = 20
encap.sell()
encap.setprice(20)
encap... | 20.4375 | 63 | 0.663609 | 44 | 327 | 4.568182 | 0.363636 | 0.139303 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023166 | 0.207951 | 327 | 16 | 64 | 20.4375 | 0.752896 | 0 | 0 | 0.230769 | 0 | 0 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ae85ce45bd40013454bc2fab5461799b41a443e | 3,384 | py | Python | guilded/emoji.py | DakshG07/KOOLIOMAN | 84d851f9d88e99e884dc6cc38a5638af0c29da9c | [
"MIT"
] | 3 | 2021-12-22T12:54:32.000Z | 2022-01-27T13:14:18.000Z | guilded/emoji.py | DakshG07/KOOLIOMAN | 84d851f9d88e99e884dc6cc38a5638af0c29da9c | [
"MIT"
] | null | null | null | guilded/emoji.py | DakshG07/KOOLIOMAN | 84d851f9d88e99e884dc6cc38a5638af0c29da9c | [
"MIT"
] | 1 | 2021-08-31T11:23:58.000Z | 2021-08-31T11:23:58.000Z | """
MIT License
Copyright (c) 2020-present shay (shayypy)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | 43.384615 | 121 | 0.716312 | 489 | 3,384 | 4.936605 | 0.331288 | 0.072908 | 0.021541 | 0.020713 | 0.684341 | 0.684341 | 0.684341 | 0.684341 | 0.684341 | 0.684341 | 0 | 0.003666 | 0.193853 | 3,384 | 77 | 122 | 43.948052 | 0.881232 | 0.727541 | 0 | 0 | 0 | 0 | 0.153173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ae93ed496c80f8166b51a396eaf003a736b78a9 | 1,404 | py | Python | tests/controllers/test_usage_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | tests/controllers/test_usage_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | tests/controllers/test_usage_controller.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ytelapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
import jsonpickle
import dateutil.parser
from .controller_test_base import ControllerTestBase
from ..test_helper import TestHelper
from ytelapi.api_helper import APIHelper
... | 31.909091 | 178 | 0.701567 | 161 | 1,404 | 5.950311 | 0.565217 | 0.046973 | 0.068894 | 0.056367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00554 | 0.228632 | 1,404 | 43 | 179 | 32.651163 | 0.87904 | 0.277066 | 0 | 0 | 1 | 0 | 0.029505 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aef095506ad595dc971c15898ac300a2af2dc74 | 483 | py | Python | fiat/components/train/train.py | chamhoo/Severstal | 29e7cf7083b6e5a6228379177dc83f6f85533e9a | [
"MIT"
] | null | null | null | fiat/components/train/train.py | chamhoo/Severstal | 29e7cf7083b6e5a6228379177dc83f6f85533e9a | [
"MIT"
] | null | null | null | fiat/components/train/train.py | chamhoo/Severstal | 29e7cf7083b6e5a6228379177dc83f6f85533e9a | [
"MIT"
] | null | null | null | """
auther: leechh
"""
import os
def empty_recorder():
return {'train': [-(2 ** 32)], 'valid': [-(2 ** 32)]}
def checkpoint(saver, sess, ckpt_dir, num_epoch):
saver.save(
sess=sess,
save_path=os.path.join(ckpt_dir, f'epoch_{num_epoch}', 'model.ckpt'),
write_meta_graph=False)
def ca... | 23 | 77 | 0.6294 | 62 | 483 | 4.741935 | 0.564516 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.20911 | 483 | 21 | 78 | 23 | 0.753927 | 0.028986 | 0 | 0 | 0 | 0 | 0.080087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 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 |
7aef97477ac24dfd198ad82de28a2981e303eea5 | 369 | py | Python | old/vimeo-tests/asyn_test.py | dishapatel010/python-tg-bot-vimeo-to-drive | 1a7ed8770522d372275583c935f9c2d90408f4a6 | [
"MIT"
] | 3 | 2021-05-17T14:28:28.000Z | 2021-11-02T04:08:14.000Z | old/vimeo-tests/asyn_test.py | dishapatel010/python-tg-bot-vimeo-to-drive | 1a7ed8770522d372275583c935f9c2d90408f4a6 | [
"MIT"
] | null | null | null | old/vimeo-tests/asyn_test.py | dishapatel010/python-tg-bot-vimeo-to-drive | 1a7ed8770522d372275583c935f9c2d90408f4a6 | [
"MIT"
] | 2 | 2021-07-27T06:53:43.000Z | 2021-08-09T15:06:01.000Z | import asyncio
import time
async def myAsyncFunc():
print("Started async fun")
return 20
async def min():
print(f"started at {time.strftime('%X')}")
say_after(1, 'hello')
# say_after(2, 'world')
print(f"finished at {time.strftime('%X')}")
async def say_after(delay, what):
await asyncio.... | 17.571429 | 47 | 0.644986 | 53 | 369 | 4.433962 | 0.528302 | 0.102128 | 0.119149 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013468 | 0.195122 | 369 | 21 | 48 | 17.571429 | 0.777778 | 0.056911 | 0 | 0 | 0 | 0 | 0.25072 | 0.121037 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.230769 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7af1ece1a8fbd00f97d2474974e700214a14fc07 | 819 | py | Python | shared/utils.py | AlexLike/ETH-WiNet-VLC-Lab | 9e0812d0849a168e7adf47e78960cecf25caf096 | [
"MIT"
] | 2 | 2021-12-04T19:05:49.000Z | 2022-02-10T17:29:20.000Z | shared/utils.py | AlexLike/ETH-WiNet-VLC-Lab | 9e0812d0849a168e7adf47e78960cecf25caf096 | [
"MIT"
] | null | null | null | shared/utils.py | AlexLike/ETH-WiNet-VLC-Lab | 9e0812d0849a168e7adf47e78960cecf25caf096 | [
"MIT"
] | null | null | null | def prompt_with_default(instructions: str, default):
"""Prompts the user for input and returns the default value if nothing is entered."""
user_input = input(f"{instructions} (default is {default}): ").strip()
return default if not user_input else type(default)(user_input)
def default_port():
""""Returns a def... | 48.176471 | 138 | 0.710623 | 119 | 819 | 4.840336 | 0.487395 | 0.125 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002886 | 0.153846 | 819 | 17 | 139 | 48.176471 | 0.828283 | 0.25641 | 0 | 0 | 0 | 0 | 0.185309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.642857 | 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 |
7afb688355862b062e30cb714592492f1800f25b | 5,893 | py | Python | src/flask_authentic/account/views.py | proteanhq/flask-authentic | 05bd643927fa2721bf0a7294d9c7e53e71e88a89 | [
"BSD-3-Clause"
] | 3 | 2018-08-24T17:09:32.000Z | 2020-06-22T03:03:28.000Z | src/flask_authentic/account/views.py | proteanhq/flask-authentic | 05bd643927fa2721bf0a7294d9c7e53e71e88a89 | [
"BSD-3-Clause"
] | 1 | 2019-03-14T07:27:06.000Z | 2019-03-14T07:27:06.000Z | src/flask_authentic/account/views.py | proteanhq/flask-authentic | 05bd643927fa2721bf0a7294d9c7e53e71e88a89 | [
"BSD-3-Clause"
] | 1 | 2020-06-22T03:03:29.000Z | 2020-06-22T03:03:29.000Z | """ Views for managing accounts and authentication """
from authentic.usecases.core import ChangeAccountPasswordRequestObject
from authentic.usecases.core import ChangeAccountPasswordUseCase
from authentic.usecases.core import CreateAccountRequestObject
from authentic.usecases.core import CreateAccountUseCase
from auth... | 37.535032 | 76 | 0.741727 | 599 | 5,893 | 7.15025 | 0.203673 | 0.042494 | 0.068643 | 0.081718 | 0.454588 | 0.272006 | 0.177679 | 0.177679 | 0.177679 | 0.177679 | 0 | 0 | 0.191414 | 5,893 | 156 | 77 | 37.775641 | 0.898846 | 0.145596 | 0 | 0.3 | 0 | 0 | 0.027364 | 0.004901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07 | false | 0.15 | 0.29 | 0 | 0.76 | 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 |
bb042d37ef8b7a2a287a7b72062d2223db1a6c13 | 648 | py | Python | tests/test_matrix_props/test_is_square.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 76 | 2020-01-28T17:02:01.000Z | 2022-02-14T18:02:15.000Z | tests/test_matrix_props/test_is_square.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 82 | 2020-05-31T20:09:38.000Z | 2022-03-28T17:13:59.000Z | tests/test_matrix_props/test_is_square.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 30 | 2020-04-02T16:07:11.000Z | 2022-02-05T13:39:22.000Z | """Test is_square."""
import numpy as np
from toqito.matrix_props import is_square
def test_is_square():
"""Test that square matrix returns True."""
mat = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
np.testing.assert_equal(is_square(mat), True)
def test_is_not_square():
"""Test that non-square matr... | 24 | 53 | 0.646605 | 103 | 648 | 3.805825 | 0.446602 | 0.142857 | 0.091837 | 0.076531 | 0.239796 | 0.239796 | 0.239796 | 0.081633 | 0.081633 | 0 | 0 | 0.032075 | 0.182099 | 648 | 26 | 54 | 24.923077 | 0.707547 | 0.185185 | 0 | 0 | 0 | 0 | 0.015779 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb094d511173415f409b55ca7c153f2334d97ea7 | 21,877 | py | Python | src/main/python/lib/default/gtkgui/default_gui/fileviewers.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/gtkgui/default_gui/fileviewers.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/default/gtkgui/default_gui/fileviewers.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null |
"""
The various classes that launch external programs to view files
"""
import plugins, os
from .. import guiplugins
from string import Template
from copy import copy
import subprocess
class FileViewAction(guiplugins.ActionGUI):
def __init__(self, *args, **kw):
self.performArgs = []
guiplugins.Ac... | 38.996435 | 150 | 0.662888 | 1,995 | 21,877 | 7.230576 | 0.198997 | 0.024957 | 0.024402 | 0.023293 | 0.289289 | 0.22565 | 0.153345 | 0.107036 | 0.064887 | 0.017608 | 0 | 0.002673 | 0.247612 | 21,877 | 560 | 151 | 39.066071 | 0.873694 | 0.028615 | 0 | 0.305164 | 0 | 0 | 0.072711 | 0.006567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007042 | 0.011737 | 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 |
bb1797b56eed6d665e7d5da77b5021cfcdc5dd63 | 201 | py | Python | api/gunicorn.conf.py | wallbreaker007/ada-gateway | c35a193c41c858a992b1c27c96162166e8b72db1 | [
"Apache-2.0"
] | null | null | null | api/gunicorn.conf.py | wallbreaker007/ada-gateway | c35a193c41c858a992b1c27c96162166e8b72db1 | [
"Apache-2.0"
] | 2 | 2022-01-13T03:08:37.000Z | 2022-03-12T00:43:57.000Z | api/gunicorn.conf.py | wallbreaker007/ada-gateway | c35a193c41c858a992b1c27c96162166e8b72db1 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
'''
@Time : 2020/7/27 9:36
@Author : qinhanluo
@File : gunicorn.conf.py
@Software: PyCharm
@Description : TODO
'''
workers = 5
worker_class = 'gevent'
bind = "0.0.0.0:5000" | 16.75 | 25 | 0.631841 | 30 | 201 | 4.2 | 0.9 | 0.047619 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 0.164179 | 201 | 12 | 26 | 16.75 | 0.630952 | 0.661692 | 0 | 0 | 0 | 0 | 0.295082 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb251065534da701ed789c841dbf8bb6408ca2d4 | 361 | py | Python | 1700-number-of-students-unable-to-eat-lunch/1700-number-of-students-unable-to-eat-lunch.py | NodiraIbrogimova/LeetHub | 010682bec2d4b4d94442d0505aa8fede20a685b3 | [
"MIT"
] | 4 | 2021-09-25T13:25:08.000Z | 2022-03-29T21:45:16.000Z | 1700-number-of-students-unable-to-eat-lunch/1700-number-of-students-unable-to-eat-lunch.py | NodiraIbrogimova/LeetHub | 010682bec2d4b4d94442d0505aa8fede20a685b3 | [
"MIT"
] | null | null | null | 1700-number-of-students-unable-to-eat-lunch/1700-number-of-students-unable-to-eat-lunch.py | NodiraIbrogimova/LeetHub | 010682bec2d4b4d94442d0505aa8fede20a685b3 | [
"MIT"
] | null | null | null | class Solution:
def countStudents(self, students: List[int], sandwiches: List[int]) -> int:
count = {0:0, 1:0}
for el in students:
count[el] += 1
i = 0
while i < len(students) and count[sandwiches[i]]:
count[sandwiches[i]] -= 1
i += 1
... | 30.083333 | 79 | 0.484765 | 44 | 361 | 3.977273 | 0.454545 | 0.08 | 0.182857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.390582 | 361 | 12 | 80 | 30.083333 | 0.759091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb2945d4879eef9e31788f0a0cded3e78741aef3 | 556 | py | Python | Chapter04/B13346_04_16-json.py | shahidnawazkhan/geog786course | e2d425875d183af3f0d5d54bb7c01033f5b2926f | [
"MIT"
] | 97 | 2019-06-21T21:59:23.000Z | 2022-03-30T17:00:46.000Z | Chapter04/B13346_04_16-json.py | Fall-in-love-with-Kikyo/Learning-Geospatial-Analysis-with-Python-Third-Edition | 5f4961837d762cffbf67338e0237313ea89dbb48 | [
"MIT"
] | 3 | 2021-10-19T02:31:15.000Z | 2022-01-18T04:45:07.000Z | Chapter04/B13346_04_16-json.py | Fall-in-love-with-Kikyo/Learning-Geospatial-Analysis-with-Python-Third-Edition | 5f4961837d762cffbf67338e0237313ea89dbb48 | [
"MIT"
] | 61 | 2019-04-07T22:53:30.000Z | 2022-03-28T03:01:11.000Z | import json
# Parse GeoJson data
jsdata = """{
"type": "Feature",
"id": "OpenLayers.Feature.Vector_314",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
97.03125,
39.7265625
]
},
"crs": {
"type": "name",
"properties": {
"name": "urn: ogc: def: crs:... | 17.375 | 50 | 0.579137 | 67 | 556 | 4.791045 | 0.61194 | 0.068536 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053738 | 0.230216 | 556 | 31 | 51 | 17.935484 | 0.696262 | 0.160072 | 0 | 0.08 | 0 | 0 | 0.670996 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb2b120e03babe90a111121387cada3d109c07f5 | 377 | py | Python | csv1.py | AsciencioAlex/Matplotlib-In-Practice-Data-Visualization | 4203b5ba0f3f2fd7f72c26e6fec6d32d7949fc54 | [
"MIT"
] | null | null | null | csv1.py | AsciencioAlex/Matplotlib-In-Practice-Data-Visualization | 4203b5ba0f3f2fd7f72c26e6fec6d32d7949fc54 | [
"MIT"
] | null | null | null | csv1.py | AsciencioAlex/Matplotlib-In-Practice-Data-Visualization | 4203b5ba0f3f2fd7f72c26e6fec6d32d7949fc54 | [
"MIT"
] | null | null | null | import csv
filename = 'machine-learning.abw'
data = []
try:
with open (filename) as f:
reader = csv.reader(f)
header = reader.next()
data = [row for row in reader]
except csv.Error as e:
print "Error reading CSV file at line %s: %s" % (reader.line_num, e)
sys.exit(-1)
if header:
print header
print '==... | 17.136364 | 69 | 0.6313 | 58 | 377 | 4.086207 | 0.568966 | 0.092827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.206897 | 377 | 21 | 70 | 17.952381 | 0.789298 | 0 | 0 | 0 | 0 | 0 | 0.198939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bb2fe1e806dd7f4c9ff64aa1d2528c5d333cee70 | 31,532 | py | Python | src/rogerthat/bizz/service/mfd/sub.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/service/mfd/sub.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/rogerthat/bizz/service/mfd/sub.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# @@xxx_skip_license@@
# @PydevCodeAnalysisIgnore
#
# Generated Tue Nov 6 11:26:05 2018 by generateDS.py version 2.29.24.
# Python 3.7.0 (default, Jul 23 2018, 20:22:55) [Clang 9.1.0 (clang-902.0.39.2)]
#
# Command line options:
# ('-f', '')
# ('--no-questions', '')
# ('--external-encodin... | 48.660494 | 332 | 0.782253 | 3,126 | 31,532 | 7.690019 | 0.143314 | 0.019801 | 0.031116 | 0.015683 | 0.363867 | 0.338616 | 0.326511 | 0.31582 | 0.312908 | 0.309996 | 0 | 0.002596 | 0.120449 | 31,532 | 647 | 333 | 48.735703 | 0.864174 | 0.092097 | 0 | 0.178947 | 1 | 0 | 0.007748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.047368 | 0.018421 | 0 | 0.413158 | 0.007895 | 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 |
bb309b94bf66fb556a92975493aa65234a98ceb5 | 649 | py | Python | tests/utils/load_config.py | voidrank/alchemy | 854c9b867d21514b43dcd97e1b223a75435c3d81 | [
"MIT"
] | 5 | 2016-12-26T07:56:14.000Z | 2017-02-04T05:11:22.000Z | tests/utils/load_config.py | voidrank/alchemy | 854c9b867d21514b43dcd97e1b223a75435c3d81 | [
"MIT"
] | null | null | null | tests/utils/load_config.py | voidrank/alchemy | 854c9b867d21514b43dcd97e1b223a75435c3d81 | [
"MIT"
] | 1 | 2018-08-05T14:51:06.000Z | 2018-08-05T14:51:06.000Z | import unittest
import sys
import os
import json
import numpy as np
if __name__ == "__main__":
sys.path.insert(0, os.getcwd())
from utils.load_config import load_config
import config
class TestImage(unittest.TestCase):
def setUp(self):
self.config_path = "examples/config/coco.json"
def test_l... | 20.935484 | 60 | 0.651772 | 93 | 649 | 4.27957 | 0.526882 | 0.100503 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036217 | 0.234206 | 649 | 30 | 61 | 21.633333 | 0.764588 | 0 | 0 | 0 | 0 | 0 | 0.064715 | 0.038521 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.333333 | 0 | 0.47619 | 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 |
bb32e9bd588e15e7eabe515c3ee079b14d04d5cf | 1,118 | py | Python | Other_data_processing_scripts/02_genotype_matrix.py | peipeiwang6/Genomic_prediction_in_Switchgrass | 1fba3508c0d81d16e0629e3cf94ff4d174a85b13 | [
"MIT"
] | null | null | null | Other_data_processing_scripts/02_genotype_matrix.py | peipeiwang6/Genomic_prediction_in_Switchgrass | 1fba3508c0d81d16e0629e3cf94ff4d174a85b13 | [
"MIT"
] | null | null | null | Other_data_processing_scripts/02_genotype_matrix.py | peipeiwang6/Genomic_prediction_in_Switchgrass | 1fba3508c0d81d16e0629e3cf94ff4d174a85b13 | [
"MIT"
] | null | null | null | import sys,os
inp = open('/mnt/scratch/mengfanr/Switchgrass/02_combine_GVCF_by_group/All_Group_GVCF/Switchgrass_ALL_Chromosomes/' + sys.argv[1],'r')
inl = inp.readline()
D = {}
out = open(sys.argv[1] + '_genotype_matrix','w')
while inl:
if inl.startswith('#CHROM'):
tem = inl.split('\t')[9:]
out.write('Chr\tPos\tRe... | 27.268293 | 134 | 0.577818 | 197 | 1,118 | 3.228426 | 0.319797 | 0.188679 | 0.188679 | 0.154088 | 0.242138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037528 | 0.189624 | 1,118 | 41 | 135 | 27.268293 | 0.664459 | 0 | 0 | 0.1 | 0 | 0 | 0.171582 | 0.110813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb347169e0f55c65c1ebf0c3af150d2a2afa6c3a | 207 | py | Python | y_tebya_ect/y_tebya_ect/game/urls.py | regalcat/y-tebya-ect | 9a5bf439aafdb836a364f6f29c087a84acb4f8c5 | [
"MIT"
] | null | null | null | y_tebya_ect/y_tebya_ect/game/urls.py | regalcat/y-tebya-ect | 9a5bf439aafdb836a364f6f29c087a84acb4f8c5 | [
"MIT"
] | null | null | null | y_tebya_ect/y_tebya_ect/game/urls.py | regalcat/y-tebya-ect | 9a5bf439aafdb836a364f6f29c087a84acb4f8c5 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(
regex=r'^(?P<username>[\w.@+-]+)/$',
view=views.GameDashboardView.as_view(),
name='dashboard'
),
]
| 17.25 | 47 | 0.570048 | 23 | 207 | 5.086957 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246377 | 207 | 11 | 48 | 18.818182 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.169082 | 0.125604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
bb354730c11e4f5a31a6db19c61fb3f26a986b97 | 686 | py | Python | Submarine/controlserver/photo.py | MoffKalast/RaspberryUnderwaterROV | 46f3cf09f7babe5ecd963f0e065d88fe6030e423 | [
"MIT"
] | 5 | 2020-01-28T01:30:49.000Z | 2021-09-22T07:05:07.000Z | Submarine/controlserver/photo.py | MoffKalast/RaspberryUnderwaterROV | 46f3cf09f7babe5ecd963f0e065d88fe6030e423 | [
"MIT"
] | null | null | null | Submarine/controlserver/photo.py | MoffKalast/RaspberryUnderwaterROV | 46f3cf09f7babe5ecd963f0e065d88fe6030e423 | [
"MIT"
] | 2 | 2020-01-28T01:32:12.000Z | 2020-06-11T05:19:00.000Z |
import sys
import time
import io
import picamera
import logging
import socketserver
import threading
from threading import Condition
from http import server
streamRES = "800x600"
recordRES = "1640x1232"
record = False
exposureMode = 'night'
meterMode = 'average'
rotation = 180
captureNumber = 5
captureExposure = ... | 17.589744 | 84 | 0.758017 | 84 | 686 | 6.154762 | 0.642857 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 0.139942 | 686 | 38 | 85 | 18.052632 | 0.825424 | 0 | 0 | 0 | 0 | 0 | 0.093431 | 0.032117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.346154 | 0 | 0.346154 | 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 |
bb39bd3589d3b9a2b4c93986f67ccdf89ce40353 | 670 | py | Python | ProjectManager/migrations/0003_auto_20210926_0053.py | vacnex/Project-Manager-Web-Application | 5e412c84dbfa12395f0573165fccb7deba36843a | [
"MIT"
] | null | null | null | ProjectManager/migrations/0003_auto_20210926_0053.py | vacnex/Project-Manager-Web-Application | 5e412c84dbfa12395f0573165fccb7deba36843a | [
"MIT"
] | null | null | null | ProjectManager/migrations/0003_auto_20210926_0053.py | vacnex/Project-Manager-Web-Application | 5e412c84dbfa12395f0573165fccb7deba36843a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-25 17:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ProjectManager', '0002_auto_20210926_0047'),
]
operations = [
migrations.AddField(
model_name='... | 26.8 | 139 | 0.625373 | 71 | 670 | 5.802817 | 0.633803 | 0.058252 | 0.067961 | 0.106796 | 0.184466 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0.062374 | 0.258209 | 670 | 24 | 140 | 27.916667 | 0.7666 | 0.067164 | 0 | 0.333333 | 1 | 0 | 0.154093 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
bb446d36c774385e5917a9e7e902b27a1c18783a | 498 | py | Python | setup.py | MoebiusSolutions/sqlstrainer | 1be8442deb00971bea17cc676fdfe270552966cf | [
"MIT"
] | null | null | null | setup.py | MoebiusSolutions/sqlstrainer | 1be8442deb00971bea17cc676fdfe270552966cf | [
"MIT"
] | null | null | null | setup.py | MoebiusSolutions/sqlstrainer | 1be8442deb00971bea17cc676fdfe270552966cf | [
"MIT"
] | null | null | null | """
SQLStrainer
"""
from distutils.core import setup
setup(
name='SQLStrainer',
version='0.0.1',
author='Douglas MacDougall',
author_email='douglas.macdougall@moesol.com',
packages=['sqlstrainer'],
scripts=[],
url='http://pypi.python.org/pypi/sqlstrainer/',
license='LICENSE',
desc... | 22.636364 | 76 | 0.656627 | 55 | 498 | 5.890909 | 0.745455 | 0.104938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.180723 | 498 | 22 | 77 | 22.636364 | 0.779412 | 0.022088 | 0 | 0 | 0 | 0 | 0.433054 | 0.060669 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
bb4a2c3aef7a03ad8ed484a9b12ee43e09a0bdb8 | 1,454 | py | Python | ApkInstall/Base/ADB.py | LiuTianen/PackManage | 4b067954cc223baa14569a6f1517954b9cdb968f | [
"MIT"
] | null | null | null | ApkInstall/Base/ADB.py | LiuTianen/PackManage | 4b067954cc223baa14569a6f1517954b9cdb968f | [
"MIT"
] | null | null | null | ApkInstall/Base/ADB.py | LiuTianen/PackManage | 4b067954cc223baa14569a6f1517954b9cdb968f | [
"MIT"
] | null | null | null | import subprocess
import time
import re
import os
import configparser
import platform
cf = configparser.ConfigParser()
cf.read('Config.ini', encoding="utf-8")
system = platform.system()
if system is "Windows":
find_util = "findstr"
else:
find_util = "grep"
class Adb:
def adbInstall(self,device, apk_path... | 25.508772 | 75 | 0.622421 | 180 | 1,454 | 4.961111 | 0.394444 | 0.022396 | 0.027996 | 0.043673 | 0.040314 | 0.040314 | 0.040314 | 0 | 0 | 0 | 0 | 0.002799 | 0.262724 | 1,454 | 56 | 76 | 25.964286 | 0.830224 | 0 | 0 | 0 | 0 | 0 | 0.19326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.022727 | 0.136364 | 0 | 0.522727 | 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 |
bb52446e7d9ce88f0bfe37776c581fb3274bc7b2 | 1,156 | py | Python | tweet_app/api/sentiment.py | noah40povis/twitter_info_aggregator | ebbd2de270687aac7970d734c3986fee3e967588 | [
"MIT"
] | null | null | null | tweet_app/api/sentiment.py | noah40povis/twitter_info_aggregator | ebbd2de270687aac7970d734c3986fee3e967588 | [
"MIT"
] | null | null | null | tweet_app/api/sentiment.py | noah40povis/twitter_info_aggregator | ebbd2de270687aac7970d734c3986fee3e967588 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from fastapi.responses import JSONResponse
# Importing Eland and low-level Elasticsearch clients for comparison
import eland as ed
from eland.conftest import *
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search, Q
# Import pandas and numpy for data wrangling
impo... | 32.111111 | 113 | 0.738754 | 159 | 1,156 | 5.301887 | 0.534591 | 0.02847 | 0.023725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004211 | 0.178201 | 1,156 | 35 | 114 | 33.028571 | 0.883158 | 0.33045 | 0 | 0 | 0 | 0 | 0.188976 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.421053 | 0 | 0.473684 | 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 |
bb5629ec2b2af41a3d5e2e8d0ca806067f634ae1 | 554 | py | Python | formation/migrations/0012_auto_20170412_1649.py | kgdunn/lti-groups-brightspace | 572b994e94041ae5a8f6a7dfcaeebb06c4173877 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | formation/migrations/0012_auto_20170412_1649.py | kgdunn/lti-groups-brightspace | 572b994e94041ae5a8f6a7dfcaeebb06c4173877 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | formation/migrations/0012_auto_20170412_1649.py | kgdunn/lti-groups-brightspace | 572b994e94041ae5a8f6a7dfcaeebb06c4173877 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-12 14:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('formation', '0011_auto_20170412_1548'),
]
operations = [
migrations.AlterFi... | 26.380952 | 154 | 0.646209 | 67 | 554 | 5.164179 | 0.791045 | 0.052023 | 0.075145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0.236462 | 554 | 20 | 155 | 27.7 | 0.732861 | 0.122744 | 0 | 0 | 1 | 0 | 0.20911 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb58266d8401b9550b893f3bfc92a647f3c346ae | 17,483 | py | Python | TNModel/pytorch_model.py | ligongzzz/TNModel | 2609c184a67aac968248bb9d41000b4d647720c3 | [
"Apache-2.0"
] | 1 | 2021-06-11T11:34:33.000Z | 2021-06-11T11:34:33.000Z | TNModel/pytorch_model.py | ligongzzz/TNModel | 2609c184a67aac968248bb9d41000b4d647720c3 | [
"Apache-2.0"
] | null | null | null | TNModel/pytorch_model.py | ligongzzz/TNModel | 2609c184a67aac968248bb9d41000b4d647720c3 | [
"Apache-2.0"
] | 1 | 2021-06-11T11:34:37.000Z | 2021-06-11T11:34:37.000Z | import torch
import torch.nn as nn
import tensornetwork as tn
import TNModel.simple_mps as simple_mps
import TNModel.simple_peps as simple_peps
from tensornetwork import contractors
from typing import List, Tuple
class MPSLayer(nn.Module):
def __init__(self, hyper_params):
super(MPSLayer, self).__init__()... | 37.040254 | 145 | 0.519991 | 2,308 | 17,483 | 3.706672 | 0.068891 | 0.050497 | 0.035067 | 0.028288 | 0.741204 | 0.719112 | 0.657393 | 0.633548 | 0.593805 | 0.573583 | 0 | 0.028559 | 0.363096 | 17,483 | 471 | 146 | 37.118896 | 0.73974 | 0.062689 | 0 | 0.571429 | 0 | 0 | 0.031076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.020833 | 0 | 0.092262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb5cdac3fde0b095505a0bcf7dd7983c3527357a | 396 | py | Python | config.py | LeoColomb/kholloscope | 1751d312d07e3415507d0bde185eb71429241eab | [
"MIT"
] | null | null | null | config.py | LeoColomb/kholloscope | 1751d312d07e3415507d0bde185eb71429241eab | [
"MIT"
] | 1 | 2015-05-26T14:06:26.000Z | 2015-05-26T14:06:49.000Z | config.py | LeoColomb/kholloscope | 1751d312d07e3415507d0bde185eb71429241eab | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Kholloscope
~~~~~~~~~~~
Petit framework pour grand kholloscope. Publier facilement,
en Python, le kholloscope d'une classe préparatoire.
Fichier de configuration.
"""
__zone = 'c'
__debug = False
__domain = 'localhost'
__port = 8080
__route = '... | 20.842105 | 63 | 0.631313 | 47 | 396 | 4.978723 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025078 | 0.194444 | 396 | 18 | 64 | 22 | 0.705329 | 0.106061 | 0 | 0 | 0 | 0 | 0.288462 | 0.173077 | 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 |
246d24d6e6a21c48f65d8186edd8600a1564ea86 | 14,553 | py | Python | sdk/python/pulumi_gcp/iot/outputs.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/iot/outputs.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/iot/outputs.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.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... | 35.322816 | 155 | 0.633203 | 1,646 | 14,553 | 5.312272 | 0.108141 | 0.020814 | 0.029735 | 0.043458 | 0.616651 | 0.557525 | 0.520586 | 0.44968 | 0.428408 | 0.408966 | 0 | 0.002341 | 0.266337 | 14,553 | 411 | 156 | 35.408759 | 0.816615 | 0.18491 | 0 | 0.438662 | 1 | 0.022305 | 0.179583 | 0.043231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171004 | false | 0 | 0.022305 | 0.033457 | 0.342007 | 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 |
246efb3d4a68c3904268de86ed6589a82f8f2377 | 1,879 | py | Python | SPConvNets/models/epn_conv_netvlad.py | chienerh/EPN_PointCloud | d1488cf1ff82a5bc7ac89c28df30fa2f3f2e0e30 | [
"MIT"
] | null | null | null | SPConvNets/models/epn_conv_netvlad.py | chienerh/EPN_PointCloud | d1488cf1ff82a5bc7ac89c28df30fa2f3f2e0e30 | [
"MIT"
] | null | null | null | SPConvNets/models/epn_conv_netvlad.py | chienerh/EPN_PointCloud | d1488cf1ff82a5bc7ac89c28df30fa2f3f2e0e30 | [
"MIT"
] | null | null | null | """
network architechture for place recognition (Oxford dataset)
"""
import math
import os
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.batchnorm import _BatchNorm
import time
from collections import OrderedDict
import json
import vgtk
import SPConvNets.ut... | 30.306452 | 142 | 0.602448 | 270 | 1,879 | 4.066667 | 0.385185 | 0.057377 | 0.043716 | 0.032787 | 0.071038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041014 | 0.286323 | 1,879 | 62 | 143 | 30.306452 | 0.777778 | 0.141032 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.384615 | 0 | 0.487179 | 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 |
2479b90b11abd42849651d96dbf05ed99d575eb9 | 930 | py | Python | kokki/cookbooks/minecraft/recipes/server.py | samuel/kokki | da98da55e0bba8db5bda993666a43c6fdc4cacdb | [
"BSD-3-Clause"
] | 11 | 2015-01-14T00:43:26.000Z | 2020-12-29T06:12:51.000Z | kokki/cookbooks/minecraft/recipes/server.py | samuel/kokki | da98da55e0bba8db5bda993666a43c6fdc4cacdb | [
"BSD-3-Clause"
] | null | null | null | kokki/cookbooks/minecraft/recipes/server.py | samuel/kokki | da98da55e0bba8db5bda993666a43c6fdc4cacdb | [
"BSD-3-Clause"
] | 3 | 2015-01-14T01:05:56.000Z | 2019-01-26T05:09:37.000Z |
import os
from kokki import Package, Directory, Script, File, Service
env.include_recipe("java.jre")
Package("screen")
Directory(env.config.minecraft.path,
owner = env.config.minecraft.user)
Script("install-minecraft-server",
not_if = lambda:os.path.exists(os.path.join(env.config.minecraft.path, "minecraft... | 26.571429 | 100 | 0.658065 | 123 | 930 | 4.910569 | 0.455285 | 0.173841 | 0.149007 | 0.145695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024902 | 0.17957 | 930 | 34 | 101 | 27.352941 | 0.76671 | 0 | 0 | 0 | 0 | 0 | 0.357374 | 0.113025 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | 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 |
247afb060502652636541bf277b6044bfa3faa20 | 1,325 | py | Python | kathodes_package/.ipynb_checkpoints/outlier_assessment-checkpoint.py | katherine-soderberg/project_spring_2020 | d46868ee8d8246321f5b35c195c1a49f7961c4fa | [
"Apache-2.0"
] | null | null | null | kathodes_package/.ipynb_checkpoints/outlier_assessment-checkpoint.py | katherine-soderberg/project_spring_2020 | d46868ee8d8246321f5b35c195c1a49f7961c4fa | [
"Apache-2.0"
] | null | null | null | kathodes_package/.ipynb_checkpoints/outlier_assessment-checkpoint.py | katherine-soderberg/project_spring_2020 | d46868ee8d8246321f5b35c195c1a49f7961c4fa | [
"Apache-2.0"
] | null | null | null |
def outlierStats(outlier_list):
"""Takes a list of outliers and computes the mean and standard deviation"""
try:
outlierMean = outlier_list.mean()
outlierStdev = outlier_list.std()
return outlierMean, outlierStdev
except TypeError :
explanation = "Cannot compute statistics o... | 50.961538 | 151 | 0.724528 | 156 | 1,325 | 5.910256 | 0.455128 | 0.138829 | 0.119306 | 0.151844 | 0.17679 | 0.075922 | 0 | 0 | 0 | 0 | 0 | 0.000935 | 0.192453 | 1,325 | 25 | 152 | 53 | 0.860748 | 0 | 0 | 0 | 0 | 0 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24837aacd17dfe78fffc58339b4ccc77f019f93e | 5,473 | py | Python | tests_functional/test_basic_rebase.py | locriandev/doozer | 375eafccc15aadfd18dc50061eccb9a917d31b0b | [
"Apache-2.0"
] | 16 | 2018-11-06T16:49:03.000Z | 2021-11-07T19:48:49.000Z | tests_functional/test_basic_rebase.py | locriandev/doozer | 375eafccc15aadfd18dc50061eccb9a917d31b0b | [
"Apache-2.0"
] | 479 | 2018-11-15T15:37:49.000Z | 2022-03-31T08:39:44.000Z | tests_functional/test_basic_rebase.py | locriandev/doozer | 375eafccc15aadfd18dc50061eccb9a917d31b0b | [
"Apache-2.0"
] | 38 | 2018-11-07T14:33:15.000Z | 2021-12-13T13:59:12.000Z | #!/usr/bin/env python3
import unittest
from dockerfile_parse import DockerfileParser
from tests_functional import DoozerRunnerTestCase
class TestBasicRebase(DoozerRunnerTestCase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def setUp(self):
super().setUp()
d... | 52.12381 | 157 | 0.693952 | 649 | 5,473 | 5.583975 | 0.237288 | 0.124172 | 0.069536 | 0.081126 | 0.552704 | 0.480684 | 0.407009 | 0.299117 | 0.226269 | 0.205022 | 0 | 0.027557 | 0.171204 | 5,473 | 104 | 158 | 52.625 | 0.771384 | 0.049516 | 0 | 0 | 0 | 0 | 0.328927 | 0.18818 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.077922 | false | 0 | 0.038961 | 0 | 0.12987 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24908065ce3e5a88060732fdc57df6f728308c4c | 1,470 | py | Python | nesc/whip6/platforms/parts/mcu/cortex-m3/scripts/symbols2sizes.py | wojtex/whip6-pub | 7aca863e45199f4f1354f24b1c88afd8cb34c2ba | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"Intel",
"BSD-3-Clause"
] | 1 | 2017-02-21T16:44:56.000Z | 2017-02-21T16:44:56.000Z | nesc/whip6/platforms/parts/mcu/cortex-m3/scripts/symbols2sizes.py | wojtex/whip6-pub | 7aca863e45199f4f1354f24b1c88afd8cb34c2ba | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"Intel",
"BSD-3-Clause"
] | 9 | 2017-02-21T16:43:31.000Z | 2021-06-10T19:28:41.000Z | nesc/whip6/platforms/parts/mcu/cortex-m3/scripts/symbols2sizes.py | wojtex/whip6-pub | 7aca863e45199f4f1354f24b1c88afd8cb34c2ba | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"Intel",
"BSD-3-Clause"
] | 12 | 2016-12-19T12:04:17.000Z | 2020-09-17T14:44:39.000Z | #!/usr/bin/env python
#
# whip6: Warsaw High-performance IPv6.
#
# Copyright (c) 2012-2017 Szymon Acedanski
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE
# files.
#
import os.path
import sys
import argparse
import errno
KINDS = {
'flash': 'DdGgpRrTt',
'ram': ... | 26.727273 | 79 | 0.638095 | 199 | 1,470 | 4.678392 | 0.592965 | 0.019334 | 0.03652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01421 | 0.234014 | 1,470 | 54 | 80 | 27.222222 | 0.812611 | 0.133333 | 0 | 0.051282 | 0 | 0 | 0.238924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | 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 |
24986ac5cd2cefe038d9ed923d3a5be11c44306e | 5,307 | py | Python | app/api/v2/views/auth.py | nesh-dev/Store-Manager-API | 01e80bd2a080b37cafa293ca759dbf854fe7054f | [
"MIT"
] | null | null | null | app/api/v2/views/auth.py | nesh-dev/Store-Manager-API | 01e80bd2a080b37cafa293ca759dbf854fe7054f | [
"MIT"
] | 3 | 2018-10-16T10:56:33.000Z | 2018-10-30T07:45:03.000Z | app/api/v2/views/auth.py | nesh-dev/Store-Manager-API | 01e80bd2a080b37cafa293ca759dbf854fe7054f | [
"MIT"
] | 1 | 2018-10-31T18:07:47.000Z | 2018-10-31T18:07:47.000Z |
import datetime
import re
from json_tricks import dumps
from flask import jsonify
from flask_restful import reqparse, Resource
from flask_jwt_extended import (create_access_token, create_refresh_token,
get_raw_jwt)
# local imports
from app.bcrypt_instance import Bcrypt
from ..models.a... | 34.019231 | 78 | 0.561146 | 593 | 5,307 | 4.887015 | 0.242833 | 0.062802 | 0.05383 | 0.018634 | 0.398206 | 0.384403 | 0.353347 | 0.353347 | 0.328157 | 0.328157 | 0 | 0.013403 | 0.311099 | 5,307 | 155 | 79 | 34.23871 | 0.779267 | 0.058037 | 0 | 0.386792 | 0 | 0.028302 | 0.170291 | 0.030482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0.103774 | 0.09434 | 0 | 0.330189 | 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 |
2498a59deed9e6379e71f3402eefd9c5156f7e44 | 7,061 | py | Python | a2ml/api/roi/lexer.py | augerai/a2ml | 9d9ce0ac1b51cc81f1cb5ae331c4523131bc6a86 | [
"Apache-2.0"
] | 30 | 2019-07-01T13:23:27.000Z | 2022-03-16T21:19:33.000Z | a2ml/api/roi/lexer.py | augerai/a2ml | 9d9ce0ac1b51cc81f1cb5ae331c4523131bc6a86 | [
"Apache-2.0"
] | 234 | 2019-07-04T13:56:15.000Z | 2021-11-04T10:12:55.000Z | a2ml/api/roi/lexer.py | augerai/a2ml | 9d9ce0ac1b51cc81f1cb5ae331c4523131bc6a86 | [
"Apache-2.0"
] | 13 | 2019-07-04T14:00:34.000Z | 2020-07-13T11:18:44.000Z | # Lexical Grammar:
#
# NUMBER → DIGIT+ ( "." DIGIT+ )? ;
# STRING → "\"" <any char except "\"">* "\"" ;
# IDENTIFIER → (ALPHA | "@") ( ALPHA | DIGIT )* ;
# ALPHA → "a" ... "z" | "A" ... "Z" | "_" ;
# DIGIT → "0" ... "9" ;
class AstError(Exception):
def __init__(self, msg, posi... | 24.432526 | 117 | 0.534768 | 808 | 7,061 | 4.502475 | 0.162129 | 0.105827 | 0.14431 | 0.082463 | 0.385377 | 0.298791 | 0.195437 | 0.106927 | 0.106927 | 0.031886 | 0 | 0.001286 | 0.339329 | 7,061 | 288 | 118 | 24.517361 | 0.777492 | 0.03923 | 0 | 0.257009 | 0 | 0.004673 | 0.037491 | 0.00738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102804 | false | 0.004673 | 0 | 0.018692 | 0.546729 | 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 |
249a7831a49da50ab9ac6145f57a7933ec81c483 | 3,507 | py | Python | amazonian/redshift/Schema.py | idin/amazonian | 3a20c8520f139a75da41b78aa140e92d949a5260 | [
"MIT"
] | null | null | null | amazonian/redshift/Schema.py | idin/amazonian | 3a20c8520f139a75da41b78aa140e92d949a5260 | [
"MIT"
] | null | null | null | amazonian/redshift/Schema.py | idin/amazonian | 3a20c8520f139a75da41b78aa140e92d949a5260 | [
"MIT"
] | null | null | null | from .Table import Table
from .Metadata import Metadata
class Schema:
def __init__(self, name, database, echo=None):
"""
:type name: str
:type database: .Redshift.Redshift
:type echo: int or NoneType
"""
self._name = name
self._database = database
self._table_dict = None
self._metadata = None
if ... | 20.875 | 95 | 0.680068 | 480 | 3,507 | 4.770833 | 0.15625 | 0.055022 | 0.039738 | 0.024454 | 0.140611 | 0.070742 | 0.070742 | 0.070742 | 0.070742 | 0 | 0 | 0.000705 | 0.191046 | 3,507 | 167 | 96 | 21 | 0.806486 | 0.132877 | 0 | 0.182692 | 0 | 0 | 0.061538 | 0.01094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.221154 | false | 0 | 0.019231 | 0.076923 | 0.423077 | 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 |
249bcf0e9fe71d0cc0e72b910f18fe4547cdc397 | 3,658 | py | Python | plant/pipe/fittings/grade_fittings.py | gerkx/big-bang-pipe | 5528d1257e18fc093d9785094732076dc46700d5 | [
"MIT"
] | null | null | null | plant/pipe/fittings/grade_fittings.py | gerkx/big-bang-pipe | 5528d1257e18fc093d9785094732076dc46700d5 | [
"MIT"
] | null | null | null | plant/pipe/fittings/grade_fittings.py | gerkx/big-bang-pipe | 5528d1257e18fc093d9785094732076dc46700d5 | [
"MIT"
] | null | null | null | import os, shutil
from datetime import datetime
import os.path as path
from typing import Type
from .base_fittings import IO_Fitting
from ...database.models import (
Client, Project, Shot, Grade, WorkingPost
)
class Move_Grade_To_Server(IO_Fitting):
def fitting(self):
props = self.fso.props
e... | 33.254545 | 81 | 0.600875 | 490 | 3,658 | 4.293878 | 0.161224 | 0.136407 | 0.18251 | 0.053232 | 0.48289 | 0.327471 | 0.197719 | 0.163498 | 0.131179 | 0.08365 | 0 | 0.008789 | 0.284582 | 3,658 | 109 | 82 | 33.559633 | 0.795185 | 0 | 0 | 0.206522 | 0 | 0 | 0.067268 | 0.053322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
249d69bc497fae1c215a63aea07c018b29c87b85 | 354 | py | Python | IndicatorsProject/SPYhold.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | IndicatorsProject/SPYhold.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | IndicatorsProject/SPYhold.py | benjabee10/WKUResearch | 5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97 | [
"MIT"
] | null | null | null | def initialize(context):
context.spy= sid(8554)
schedule_function(my_rebalance, date_rules.month_start(), time_rules.market_open())
def my_rebalance(context,data):
position= context.portfolio.positions[context.spy].amount
if position == 0:
order_target_percent(context.spy, 1.0)
re... | 35.4 | 87 | 0.725989 | 46 | 354 | 5.391304 | 0.695652 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02349 | 0.158192 | 354 | 10 | 88 | 35.4 | 0.808725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24aeca812cfca0cbeaac5049b7592e1defcf01ba | 1,545 | py | Python | test/test_ssh.py | stonier/groot_rocker_extensions | 5b2855b9fccc4869f01e3c2e232115259f496e2a | [
"BSD-2-Clause"
] | null | null | null | test/test_ssh.py | stonier/groot_rocker_extensions | 5b2855b9fccc4869f01e3c2e232115259f496e2a | [
"BSD-2-Clause"
] | 19 | 2021-03-24T00:54:54.000Z | 2021-09-15T14:29:44.000Z | test/test_ssh.py | stonier/groot_rocker_extensions | 5b2855b9fccc4869f01e3c2e232115259f496e2a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: BSD
# https://raw.githubusercontent.com/stonier/groot_rocker_extensions/devel/LICENSE
#
##############################################################################
# Imports
##############################################################################
... | 32.1875 | 124 | 0.521683 | 160 | 1,545 | 4.7375 | 0.45625 | 0.120053 | 0.188654 | 0.036939 | 0.274406 | 0.221636 | 0.221636 | 0.221636 | 0.108179 | 0 | 0 | 0.001609 | 0.195469 | 1,545 | 47 | 125 | 32.87234 | 0.608206 | 0.169579 | 0 | 0.173913 | 0 | 0 | 0.190625 | 0.032292 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24b1ffedeb7708206bb804bbd3c48b449e686244 | 796 | py | Python | init.py | ircashem/iem-telegram-bot | 512a9502dbd53b6b1e5f41f57b6df05797ba4932 | [
"MIT"
] | 1 | 2020-07-27T06:54:42.000Z | 2020-07-27T06:54:42.000Z | init.py | ircashem/iem-telegram-bot | 512a9502dbd53b6b1e5f41f57b6df05797ba4932 | [
"MIT"
] | null | null | null | init.py | ircashem/iem-telegram-bot | 512a9502dbd53b6b1e5f41f57b6df05797ba4932 | [
"MIT"
] | null | null | null | from setup import logger
from telegram.ext import (Updater)#, CommandHandler, MessageHandler, Filters, ConversationHandler)
from handlers.start import start_handler
from handlers.notice import notice_handler
from handlers.news import news_handler
from handlers.good_bye import exit_handler
from handlers.contact import c... | 31.84 | 98 | 0.780151 | 100 | 796 | 5.97 | 0.42 | 0.100503 | 0.127303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144472 | 796 | 25 | 99 | 31.84 | 0.876652 | 0.079146 | 0 | 0 | 0 | 0 | 0.092769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.4 | 0 | 0.45 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24c2536e4ed78a31afc7b7f5b49038d5b8e0334e | 1,742 | py | Python | AMR/ConcurrentModels/overhead.py | samuelkgutierrez/CODY | d51bbd863f4f8b9ab05ad21cad4bf1104516ac72 | [
"BSD-2-Clause"
] | 7 | 2017-02-09T17:39:22.000Z | 2021-09-02T14:58:12.000Z | AMR/ConcurrentModels/overhead.py | samuelkgutierrez/CODY | d51bbd863f4f8b9ab05ad21cad4bf1104516ac72 | [
"BSD-2-Clause"
] | 1 | 2017-08-29T17:58:53.000Z | 2017-08-29T17:58:53.000Z | AMR/ConcurrentModels/overhead.py | samuelkgutierrez/CODY | d51bbd863f4f8b9ab05ad21cad4bf1104516ac72 | [
"BSD-2-Clause"
] | 7 | 2017-06-01T12:06:22.000Z | 2020-03-19T08:27:59.000Z | from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
import csv as csv
import argparse
from matplotlib.backends.backend_pdf import PdfPages
import cPickle as pickle
def outputFigure(dataDic,filename,xRange,yRange,title,xLabel,yLabel,loc,
maxCores,line):
fig = plt.figure()
fig.suptitl... | 28.557377 | 75 | 0.689437 | 262 | 1,742 | 4.496183 | 0.408397 | 0.029711 | 0.013582 | 0.033956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020875 | 0.147532 | 1,742 | 60 | 76 | 29.033333 | 0.772391 | 0 | 0 | 0 | 0 | 0 | 0.080367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12963 | 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 |
24c25b9dc11430b1654aed78d6234f006fada81d | 23,647 | py | Python | codes/dataloader.py | ling-cai/Time2Box | 7c6f7467a0341f7c979103121d54e2f911806a6d | [
"MIT"
] | 5 | 2021-11-15T15:02:50.000Z | 2022-03-24T05:09:32.000Z | codes/dataloader.py | ling-cai/Time2Box | 7c6f7467a0341f7c979103121d54e2f911806a6d | [
"MIT"
] | 1 | 2021-12-13T11:53:35.000Z | 2022-03-27T11:57:52.000Z | codes/dataloader.py | ling-cai/Time2Box | 7c6f7467a0341f7c979103121d54e2f911806a6d | [
"MIT"
] | 1 | 2021-12-26T02:24:28.000Z | 2021-12-26T02:24:28.000Z | #!/usr/bin/python3
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import torch
from torch.utils.data import Dataset
from utils import *
TIME_TYPE = {'no-time':0, 'point-in-time':1, 'only-begin':2, 'only-end':3, 'full-interval':4}
'''
(... | 47.388778 | 240 | 0.607138 | 2,970 | 23,647 | 4.595286 | 0.089899 | 0.111811 | 0.042204 | 0.032825 | 0.73454 | 0.688599 | 0.643684 | 0.592321 | 0.558617 | 0.546014 | 0 | 0.014875 | 0.292088 | 23,647 | 499 | 241 | 47.388778 | 0.800418 | 0.138791 | 0 | 0.702842 | 0 | 0 | 0.01373 | 0 | 0 | 0 | 0 | 0 | 0.02584 | 1 | 0.087855 | false | 0 | 0.018088 | 0.020672 | 0.196382 | 0.010336 | 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 |
24c5419bb7d4bdf7f3cf2bbdc2bd13d40c9c5985 | 2,555 | py | Python | redis/commands/bf/info.py | salty-horse/redis-py | 41cef4703a9e23af72040966a9411ee55d92d917 | [
"MIT"
] | 483 | 2021-10-11T22:11:32.000Z | 2022-03-31T20:30:32.000Z | redis/commands/bf/info.py | salty-horse/redis-py | 41cef4703a9e23af72040966a9411ee55d92d917 | [
"MIT"
] | 423 | 2021-10-13T09:07:29.000Z | 2022-03-31T09:13:03.000Z | redis/commands/bf/info.py | salty-horse/redis-py | 41cef4703a9e23af72040966a9411ee55d92d917 | [
"MIT"
] | 148 | 2021-10-19T09:43:51.000Z | 2022-03-30T16:35:53.000Z | from ..helpers import nativestr
class BFInfo(object):
capacity = None
size = None
filterNum = None
insertedNum = None
expansionRate = None
def __init__(self, args):
response = dict(zip(map(nativestr, args[::2]), args[1::2]))
self.capacity = response["Capacity"]
self.si... | 29.709302 | 67 | 0.62818 | 275 | 2,555 | 5.763636 | 0.218182 | 0.052997 | 0.060568 | 0.047319 | 0.502839 | 0.356467 | 0.356467 | 0.356467 | 0.356467 | 0.298423 | 0 | 0.007829 | 0.250098 | 2,555 | 85 | 68 | 30.058824 | 0.819415 | 0 | 0 | 0.542857 | 0 | 0 | 0.122505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.014286 | 0 | 0.542857 | 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 |
24c8083a8b107556ff52f1f1abd33879620393ce | 427 | py | Python | home/migrations/0003_alter_student_age.py | suyogojha/Token-gen-Django | 07df37fa6cb3d9783d0712b857332a2a0df88249 | [
"MIT"
] | null | null | null | home/migrations/0003_alter_student_age.py | suyogojha/Token-gen-Django | 07df37fa6cb3d9783d0712b857332a2a0df88249 | [
"MIT"
] | null | null | null | home/migrations/0003_alter_student_age.py | suyogojha/Token-gen-Django | 07df37fa6cb3d9783d0712b857332a2a0df88249 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-08 10:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_rename_email_student_age_remove_student_message_and_more'),
]
operations = [
migrations.AlterField(
model_name='stu... | 22.473684 | 82 | 0.629977 | 49 | 427 | 5.285714 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060317 | 0.262295 | 427 | 18 | 83 | 23.722222 | 0.761905 | 0.105386 | 0 | 0 | 1 | 0 | 0.197368 | 0.160526 | 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 |
24c8eb8b4fd126c43378c022f6f33a4240373b4e | 5,781 | py | Python | workflow.py | gsvic/fmriFlow | e29a1ce0f649ec65222ceee69293aa6b59d92003 | [
"MIT"
] | null | null | null | workflow.py | gsvic/fmriFlow | e29a1ce0f649ec65222ceee69293aa6b59d92003 | [
"MIT"
] | null | null | null | workflow.py | gsvic/fmriFlow | e29a1ce0f649ec65222ceee69293aa6b59d92003 | [
"MIT"
] | null | null | null | import logging
from thunder import ThunderContext
from thunder import Colorize
from thunder.clustering.kmeans import KMeans
logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(message)s',
filename="logs/fmriFlow.log")
class Workflow(object):
"""
A Workflow desc... | 30.426316 | 103 | 0.612005 | 656 | 5,781 | 5.314024 | 0.227134 | 0.060241 | 0.050488 | 0.037866 | 0.329604 | 0.259897 | 0.173838 | 0.137694 | 0.137694 | 0.137694 | 0 | 0.003835 | 0.278326 | 5,781 | 190 | 104 | 30.426316 | 0.831735 | 0.036153 | 0 | 0.287879 | 0 | 0 | 0.054313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.075758 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24ca162e22c0d134f50eef589afd656d45d3bba1 | 4,490 | py | Python | pystein/tests/test_constants.py | JWKennington/pynstein | 5333a4f90991a0e69be13c68fbe67f172aeb9d85 | [
"MIT"
] | null | null | null | pystein/tests/test_constants.py | JWKennington/pynstein | 5333a4f90991a0e69be13c68fbe67f172aeb9d85 | [
"MIT"
] | 3 | 2020-10-26T22:36:00.000Z | 2020-12-04T03:55:11.000Z | pystein/tests/test_constants.py | JWKennington/pystein | 5333a4f90991a0e69be13c68fbe67f172aeb9d85 | [
"MIT"
] | null | null | null | """Unittests for pystein.symbolic.constants module"""
# pylint: disable=protected-access
import pytest
from astropy import constants as astro_constants
from sympy import symbols
from pystein import constants
from pystein.constants import UnitSystem
class TestNaturalUnits:
"""Test Natural Units"""
# TODO thi... | 32.302158 | 77 | 0.634967 | 541 | 4,490 | 5.123845 | 0.210721 | 0.042929 | 0.037879 | 0.05303 | 0.373377 | 0.226551 | 0.156205 | 0.12013 | 0.09127 | 0.09127 | 0 | 0.04528 | 0.247439 | 4,490 | 138 | 78 | 32.536232 | 0.775081 | 0.142984 | 0 | 0.182927 | 0 | 0 | 0.076387 | 0 | 0 | 0 | 0 | 0.007246 | 0.353659 | 1 | 0.219512 | false | 0 | 0.060976 | 0 | 0.341463 | 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 |
24cb3d160d15de507ece9dd9cfd87506687c44da | 1,165 | py | Python | plenum/server/instances.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | plenum/server/instances.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | null | null | null | plenum/server/instances.py | steptan/indy-plenum | 488bf63c82753a74a92ac6952da784825ffd4a3d | [
"Apache-2.0"
] | 2 | 2017-12-13T21:14:54.000Z | 2021-06-06T15:48:03.000Z | import time
from typing import Optional, Sequence
class Instances:
def __init__(self):
self.count = 0
# Started time for each replica on the node. The value at index `i` in
# the start time of the `i`th protocol instance
self.started = []
def add(self):
"""
Ad... | 24.787234 | 78 | 0.567382 | 145 | 1,165 | 4.524138 | 0.406897 | 0.082317 | 0.054878 | 0.064024 | 0.192073 | 0.192073 | 0.091463 | 0 | 0 | 0 | 0 | 0.009115 | 0.340773 | 1,165 | 46 | 79 | 25.326087 | 0.845052 | 0.300429 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24d6558168b6ebe84501c49b578d41ad6574c4a2 | 664 | py | Python | openpype/hosts/tvpaint/plugins/publish/increment_workfile_version.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 1 | 2022-02-08T15:40:41.000Z | 2022-02-08T15:40:41.000Z | openpype/hosts/tvpaint/plugins/publish/increment_workfile_version.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | 2 | 2022-03-18T01:46:03.000Z | 2022-03-18T01:46:16.000Z | openpype/hosts/tvpaint/plugins/publish/increment_workfile_version.py | zafrs/OpenPype | 4b8e7e1ed002fc55b31307efdea70b0feaed474f | [
"MIT"
] | null | null | null | import pyblish.api
from openpype.api import version_up
from openpype.hosts.tvpaint.api import workio
class IncrementWorkfileVersion(pyblish.api.ContextPlugin):
"""Increment current workfile version."""
order = pyblish.api.IntegratorOrder + 1
label = "Increment Workfile Version"
optional = True
h... | 28.869565 | 78 | 0.698795 | 76 | 664 | 6.065789 | 0.618421 | 0.065076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00188 | 0.198795 | 664 | 22 | 79 | 30.181818 | 0.864662 | 0.052711 | 0 | 0 | 0 | 0 | 0.226324 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.642857 | 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 |
24d6c3657d739e9c347d300dda1382fa8552d8a3 | 12,213 | py | Python | ddot/cx_services_old-8-31-17/similarity_service.py | pupster90/ddot2 | 1952bff30383b35dff72b332592e1471201d40f3 | [
"MIT"
] | 1 | 2018-11-08T14:41:43.000Z | 2018-11-08T14:41:43.000Z | ddot/cx_services_old-8-31-17/similarity_service.py | pupster90/ddot2 | 1952bff30383b35dff72b332592e1471201d40f3 | [
"MIT"
] | null | null | null | ddot/cx_services_old-8-31-17/similarity_service.py | pupster90/ddot2 | 1952bff30383b35dff72b332592e1471201d40f3 | [
"MIT"
] | null | null | null | import ndex.client as nc
import io
import json
from IPython.display import HTML
from time import sleep
import os, time, tempfile
import sys
import time
import logging
import grpc
import networkx as nx
import cx_pb2
import cx_pb2_grpc
import numpy as np
import inspect
from concurrent import futures
from itertools impo... | 37.928571 | 128 | 0.563007 | 1,431 | 12,213 | 4.563941 | 0.166317 | 0.020211 | 0.034451 | 0.012862 | 0.371612 | 0.34497 | 0.313888 | 0.294595 | 0.250498 | 0.218037 | 0 | 0.009856 | 0.33538 | 12,213 | 321 | 129 | 38.046729 | 0.794752 | 0.146238 | 0 | 0.199095 | 0 | 0 | 0.083002 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0 | null | null | 0.027149 | 0.108597 | null | null | 0.013575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24e74fce1a06d52fd13216e5509aa4ea5aa413f7 | 24,739 | py | Python | src/plots.py | JeanClaudeR/COVID19_Trends_by_Age | 3c16cf47159429570be4c0b4c2a3a90fa8f0d195 | [
"MIT"
] | 4 | 2020-09-07T20:51:25.000Z | 2021-12-19T01:17:38.000Z | src/plots.py | lilianmarey/COVID19_Trends_by_Age | 1887b5250462d62b0fa4f1c1479e224a3c52e2ca | [
"MIT"
] | 4 | 2020-09-21T12:35:59.000Z | 2020-09-23T12:26:25.000Z | src/plots.py | JeanClaudeR/COVID19_Trends_by_Age | 3c16cf47159429570be4c0b4c2a3a90fa8f0d195 | [
"MIT"
] | 2 | 2020-09-23T06:17:23.000Z | 2020-09-28T21:10:43.000Z | """
plots: functions to plot needed data
=============================================
.. moduleauthor:: Lilian MAREY <lilian.marey@ensae.fr>
"""
import pandas as pd
from math import isnan
import plotly.graph_objects as go
import plotly.express as px
from src.mysettings import label_dic, months_list, c... | 33.750341 | 178 | 0.382675 | 2,042 | 24,739 | 4.508325 | 0.156219 | 0.019552 | 0.019552 | 0.017489 | 0.639474 | 0.622203 | 0.605366 | 0.588746 | 0.563654 | 0.540843 | 0 | 0.031346 | 0.526739 | 24,739 | 733 | 179 | 33.750341 | 0.754954 | 0.154614 | 0 | 0.623932 | 0 | 0 | 0.087451 | 0.001572 | 0.00641 | 0 | 0 | 0 | 0 | 1 | 0.010684 | false | 0.008547 | 0.014957 | 0 | 0.044872 | 0.002137 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24ebcb789d1423d0ae283d2b7b69b6d53ca18044 | 1,306 | py | Python | fiware_cloto/cloto/tests/acceptance/commons/configuration.py | telefonicaid/fiware-cloto | 8249cb81812475453035d8d106a8f7352a1b3a47 | [
"Apache-2.0"
] | 2 | 2016-07-20T20:08:28.000Z | 2019-05-03T08:17:16.000Z | fiware_cloto/cloto/tests/acceptance/commons/configuration.py | telefonicaid/fiware-cloto | 8249cb81812475453035d8d106a8f7352a1b3a47 | [
"Apache-2.0"
] | 65 | 2015-02-03T14:49:39.000Z | 2021-03-25T21:45:48.000Z | fiware_cloto/cloto/tests/acceptance/commons/configuration.py | telefonicaid/fiware-cloto | 8249cb81812475453035d8d106a8f7352a1b3a47 | [
"Apache-2.0"
] | 12 | 2015-01-22T09:21:51.000Z | 2021-04-07T23:27:19.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright 2014 Telefónica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE project.
#
# 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 th... | 27.787234 | 75 | 0.716692 | 195 | 1,306 | 4.676923 | 0.646154 | 0.065789 | 0.019737 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026364 | 0.157734 | 1,306 | 46 | 76 | 28.391304 | 0.802727 | 0.588821 | 0 | 0 | 0 | 0 | 0.290448 | 0.083821 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
24edb90d895d6fee0b1f1f61750c687c7ef1a8e5 | 275 | py | Python | src/tunewhale/blog/admin.py | mariaaprilrose/fuck | f6b081ce3d6bdc59c9da3da2e7e70a5e36a560f1 | [
"BSD-3-Clause"
] | null | null | null | src/tunewhale/blog/admin.py | mariaaprilrose/fuck | f6b081ce3d6bdc59c9da3da2e7e70a5e36a560f1 | [
"BSD-3-Clause"
] | 1 | 2015-07-15T06:18:34.000Z | 2015-07-15T06:18:49.000Z | src/tunewhale/blog/admin.py | mariaaprilrose/fuck | f6b081ce3d6bdc59c9da3da2e7e70a5e36a560f1 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from blog.models import Blog
class BlogAdmin(admin.ModelAdmin):
list_display = ('title', 'date_published')
list_filter = ['date_published']
date_hierarchy = 'date_published'
search_fields = ['title']
admin.site.register(Blog, BlogAdmin) | 27.5 | 43 | 0.774545 | 35 | 275 | 5.885714 | 0.6 | 0.18932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 275 | 10 | 44 | 27.5 | 0.840816 | 0 | 0 | 0 | 0 | 0 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
24ee29b002dd7c796d251bcbda037675d8fe47a8 | 2,164 | py | Python | tests/test_sweep.py | blakebjorn/tuxpay | 9bcbb309d6d41add9a2224f69efa7d525d829c95 | [
"MIT"
] | null | null | null | tests/test_sweep.py | blakebjorn/tuxpay | 9bcbb309d6d41add9a2224f69efa7d525d829c95 | [
"MIT"
] | null | null | null | tests/test_sweep.py | blakebjorn/tuxpay | 9bcbb309d6d41add9a2224f69efa7d525d829c95 | [
"MIT"
] | null | null | null | import unittest
from mnemonic import Mnemonic
from modules.coins import ALL_COINS
from modules.electrum_mods.tux_mods import NetworkLock, serialize_privkey, BIP32Node
TEST_MNEMONIC = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
TEST_PASSPHRASE = "TREZOR"
RECIPIENT_... | 43.28 | 156 | 0.730129 | 189 | 2,164 | 8.15873 | 0.465608 | 0.090791 | 0.122568 | 0.145266 | 0.140726 | 0.140726 | 0.101816 | 0.101816 | 0.101816 | 0.049935 | 0 | 0.119955 | 0.187153 | 2,164 | 49 | 157 | 44.163265 | 0.75668 | 0 | 0 | 0 | 0 | 0 | 0.343663 | 0.269195 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.028571 | false | 0.057143 | 0.114286 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7002a53985d9f836e71b5930e07d1a7f7be916e0 | 5,593 | py | Python | merc/channel.py | merc-devel/merc | 15e010db2474b5d9f9720fc83983b03c95063a02 | [
"MIT"
] | 4 | 2015-02-15T03:37:34.000Z | 2017-03-27T12:39:10.000Z | merc/channel.py | merc-devel/merc | 15e010db2474b5d9f9720fc83983b03c95063a02 | [
"MIT"
] | null | null | null | merc/channel.py | merc-devel/merc | 15e010db2474b5d9f9720fc83983b03c95063a02 | [
"MIT"
] | null | null | null | import datetime
import fnmatch
import regex
from merc import errors
from merc import util
class ChannelUser(object):
def __init__(self, channel, user):
self.channel = channel
self.user = user
self.is_voiced = False
self.is_halfop = False
self.is_operator = False
self.is_admin = False
s... | 23.8 | 74 | 0.6914 | 762 | 5,593 | 4.879265 | 0.148294 | 0.076923 | 0.060247 | 0.068854 | 0.33163 | 0.232921 | 0.221087 | 0.214094 | 0.214094 | 0.153846 | 0 | 0.000453 | 0.211336 | 5,593 | 234 | 75 | 23.901709 | 0.842439 | 0.012158 | 0 | 0.239766 | 0 | 0 | 0.005975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204678 | false | 0 | 0.02924 | 0.087719 | 0.380117 | 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 |
700fa56a48189f85135d31250c0aad5b61243355 | 1,107 | py | Python | src/charts/android/factories.py | frmdstryr/enaml-native-charts | d1c705ce42c1f5a4a340abca274cef5ad0ef89e5 | [
"MIT"
] | 3 | 2019-04-15T16:39:03.000Z | 2019-05-27T12:15:50.000Z | src/charts/android/factories.py | frmdstryr/enaml-native-charts | d1c705ce42c1f5a4a340abca274cef5ad0ef89e5 | [
"MIT"
] | null | null | null | src/charts/android/factories.py | frmdstryr/enaml-native-charts | d1c705ce42c1f5a4a340abca274cef5ad0ef89e5 | [
"MIT"
] | 1 | 2020-12-07T18:57:00.000Z | 2020-12-07T18:57:00.000Z | """
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the MIT License.
The full license is in the file COPYING.txt, distributed with this software.
Created on Oct 29, 2017
@author: jrm
"""
def bar_chart_factory():
from .android_chart_view import AndroidBarChart
return AndroidBarChart
def ... | 22.591837 | 76 | 0.751581 | 128 | 1,107 | 6.242188 | 0.429688 | 0.12015 | 0.112641 | 0.14393 | 0.231539 | 0.231539 | 0.190238 | 0 | 0 | 0 | 0 | 0.011111 | 0.186992 | 1,107 | 49 | 77 | 22.591837 | 0.876667 | 0.180668 | 0 | 0 | 0 | 0 | 0.048889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.24 | 0 | 0.68 | 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 |
7013ad2aeb78362df2aaeaf8686a55c5903f492e | 4,180 | py | Python | torchvision/edgeailite/xnn/utils/print_utils.py | TexasInstruments/vision | abaf29de0798e8e8d3f996dc272cd3c515562695 | [
"BSD-3-Clause"
] | 21 | 2021-10-08T02:47:56.000Z | 2022-03-29T14:17:04.000Z | torchvision/xnn/utils/print_utils.py | leidi1989/edgeai-torchvision | 94bd2d8a01fac800e7df82dd710b3cc13f9a24ea | [
"BSD-3-Clause"
] | 9 | 2021-11-15T06:43:54.000Z | 2022-03-16T04:47:52.000Z | torchvision/xnn/utils/print_utils.py | leidi1989/edgeai-torchvision | 94bd2d8a01fac800e7df82dd710b3cc13f9a24ea | [
"BSD-3-Clause"
] | 9 | 2021-11-11T11:17:16.000Z | 2022-03-08T04:26:10.000Z | #################################################################################
# Copyright (c) 2018-2021, Texas Instruments Incorporated - http://www.ti.com
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditio... | 33.174603 | 126 | 0.633971 | 539 | 4,180 | 4.799629 | 0.341373 | 0.054117 | 0.086587 | 0.046386 | 0.232702 | 0.171241 | 0.171241 | 0.171241 | 0.150754 | 0.131426 | 0 | 0.007098 | 0.191148 | 4,180 | 125 | 127 | 33.44 | 0.75806 | 0.377512 | 0 | 0.034483 | 0 | 0 | 0.059034 | 0.009392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258621 | false | 0 | 0.051724 | 0.034483 | 0.448276 | 0.37931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7017b08920258c0aa470d1d8624fe6fdc6392981 | 1,291 | py | Python | ditto/pinboard/migrations/0025_auto_20201223_1509.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 54 | 2016-08-15T17:32:41.000Z | 2022-02-27T03:32:05.000Z | ditto/pinboard/migrations/0025_auto_20201223_1509.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 229 | 2015-07-23T12:50:47.000Z | 2022-03-24T10:33:20.000Z | ditto/pinboard/migrations/0025_auto_20201223_1509.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 8 | 2015-09-10T17:10:35.000Z | 2022-03-25T13:05:01.000Z | # Generated by Django 3.1.3 on 2020-12-23 15:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("contenttypes", "0002_remove_content_type_name"),
("pinboard", "0024_bookmark_post_year"),
]
operations = [
... | 31.487805 | 85 | 0.593338 | 125 | 1,291 | 5.928 | 0.464 | 0.107962 | 0.134953 | 0.156545 | 0.334683 | 0.334683 | 0.089069 | 0 | 0 | 0 | 0 | 0.031903 | 0.295895 | 1,291 | 40 | 86 | 32.275 | 0.783278 | 0.034857 | 0 | 0.382353 | 1 | 0 | 0.192926 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.147059 | 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 |
70269b6d2d9aae0886f4f0b428510900e71a2df2 | 348 | py | Python | docker/app/app/backend/apps/search/urls.py | JTarball/tetherbox | cae7a4bb6e29da0f34670f8c8d228faf5f909f3a | [
"0BSD"
] | 1 | 2018-02-26T07:26:30.000Z | 2018-02-26T07:26:30.000Z | docker/app/app/backend/apps/search/urls.py | JTarball/docker-django-polymer-starter-kit | b5250030b1646e29567c15d01ba4668c6ad535c9 | [
"0BSD"
] | null | null | null | docker/app/app/backend/apps/search/urls.py | JTarball/docker-django-polymer-starter-kit | b5250030b1646e29567c15d01ba4668c6ad535c9 | [
"0BSD"
] | null | null | null | """
search.urls
===========
"""
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from .views import autosuggest_view, search_view
urlpatterns = format_suffix_patterns([
url(r'^autosuggest/$', autosuggest_view, name='autosuggest'),
url(r'^results/$', sear... | 21.75 | 65 | 0.70977 | 41 | 348 | 5.804878 | 0.463415 | 0.10084 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135057 | 348 | 15 | 66 | 23.2 | 0.790698 | 0.066092 | 0 | 0 | 0 | 0 | 0.133117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
702e2ca7762676ac76f21501f5be4458a6eccda2 | 903 | py | Python | cf/regrid/__init__.py | sadielbartholomew/cf-python | 98541d8e55c703eca9bfba4168fb3d42755267da | [
"MIT"
] | 49 | 2019-10-08T12:46:39.000Z | 2022-02-06T01:13:30.000Z | cf/regrid/__init__.py | sadielbartholomew/cf-python | 98541d8e55c703eca9bfba4168fb3d42755267da | [
"MIT"
] | 279 | 2019-10-07T11:14:37.000Z | 2022-03-31T13:46:37.000Z | cf/regrid/__init__.py | sadielbartholomew/cf-python | 98541d8e55c703eca9bfba4168fb3d42755267da | [
"MIT"
] | 14 | 2019-10-25T08:54:06.000Z | 2022-01-31T10:42:39.000Z | from .regridoperator import (
RegridOperator,
conservative_regridding_methods,
regrid_method_map,
regrid_method_map_inverse,
regridding_methods,
)
from .utils import (
create_Grid,
create_Field,
create_Regrid,
get_cartesian_coords,
grids_have_same_coords,
grids_have_same_mask... | 25.083333 | 40 | 0.776301 | 106 | 903 | 5.962264 | 0.471698 | 0.128165 | 0.047468 | 0.060127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182724 | 903 | 35 | 41 | 25.8 | 0.856369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.057143 | 0 | 0.057143 | 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 |
703e9c37db91d06d7044f6ad374fa2ea95117b23 | 4,621 | py | Python | src/sissotools/constraints.py | henniggroup/symbolic-regression-utilities | 11cf1f31888afe3a29140557dc7b3871102b8204 | [
"Apache-2.0"
] | 6 | 2020-04-04T10:20:20.000Z | 2021-10-21T07:29:19.000Z | src/sissotools/constraints.py | henniggroup/symbolic-regression-utilities | 11cf1f31888afe3a29140557dc7b3871102b8204 | [
"Apache-2.0"
] | null | null | null | src/sissotools/constraints.py | henniggroup/symbolic-regression-utilities | 11cf1f31888afe3a29140557dc7b3871102b8204 | [
"Apache-2.0"
] | 5 | 2019-09-11T20:36:20.000Z | 2022-03-18T10:04:43.000Z | import os
import re
import numpy as np
import pandas as pd
import sympy
from sympy.parsing.sympy_parser import parse_expr
from sympy.calculus.singularities import is_monotonic
from sympy.calculus.singularities import is_increasing
from sympy.calculus.singularities import is_decreasing
from sympy.calculus.singulariti... | 38.508333 | 79 | 0.559403 | 448 | 4,621 | 5.651786 | 0.21875 | 0.07109 | 0.039494 | 0.045419 | 0.227883 | 0.18207 | 0 | 0 | 0 | 0 | 0 | 0.002039 | 0.363125 | 4,621 | 119 | 80 | 38.831933 | 0.858308 | 0.03311 | 0 | 0.215686 | 0 | 0 | 0.036804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009804 | false | 0.078431 | 0.117647 | 0 | 0.147059 | 0.009804 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70426a7b107a8beb2bb8cf87ab9cb6ced676ffb1 | 2,422 | py | Python | src/test/test_w3resource_problem_solution/test_string_exercise.py | EduHubICT/python-basic | 43765320e7ff4d5d13a11684f8320513f47ea1ff | [
"MIT"
] | null | null | null | src/test/test_w3resource_problem_solution/test_string_exercise.py | EduHubICT/python-basic | 43765320e7ff4d5d13a11684f8320513f47ea1ff | [
"MIT"
] | 3 | 2020-06-13T14:48:36.000Z | 2020-07-02T15:51:13.000Z | src/test/test_w3resource_problem_solution/test_string_exercise.py | Big0one/python-basic | 43765320e7ff4d5d13a11684f8320513f47ea1ff | [
"MIT"
] | 1 | 2020-06-06T22:51:50.000Z | 2020-06-06T22:51:50.000Z | import unittest
from src.main.w3resource_problem_solved.string_exercise import *
class StringTestCase(unittest.TestCase):
def test_solution_1(self):
self.assertEqual(get_length("sample"), 6)
def test_solution_2(self):
self.assertEqual(
get_characters_frequency("samples"),
... | 31.868421 | 88 | 0.628819 | 285 | 2,422 | 5.112281 | 0.37193 | 0.154427 | 0.133837 | 0.134523 | 0.09952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035656 | 0.247316 | 2,422 | 75 | 89 | 32.293333 | 0.763577 | 0 | 0 | 0.050847 | 0 | 0 | 0.125929 | 0 | 0 | 0 | 0 | 0 | 0.288136 | 1 | 0.220339 | false | 0 | 0.033898 | 0 | 0.271186 | 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 |
7042b1977f4e0940747aa9ca65cb692c786d7c63 | 1,830 | py | Python | code/reasoningtool/kg-construction/tests/QueryBioLinkExtendedTests.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 31 | 2018-03-05T20:01:10.000Z | 2022-02-01T03:31:22.000Z | code/reasoningtool/kg-construction/tests/QueryBioLinkExtendedTests.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 1,774 | 2018-03-06T01:55:03.000Z | 2022-03-31T03:09:04.000Z | code/reasoningtool/kg-construction/tests/QueryBioLinkExtendedTests.py | andrewsu/RTX | dd1de262d0817f7e6d2f64e5bec7d5009a3a2740 | [
"MIT"
] | 19 | 2018-05-10T00:43:19.000Z | 2022-03-08T19:26:16.000Z | import unittest
import json
import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
from QueryBioLinkExtended import QueryBioLinkExtended as QBLEx
def get_from_test_file(key):
f = open('query_test_data.json', 'r')
test_data = f.read()
try:
... | 36.6 | 110 | 0.718579 | 238 | 1,830 | 5.151261 | 0.252101 | 0.156607 | 0.208809 | 0.061175 | 0.541599 | 0.515498 | 0.515498 | 0.404568 | 0.404568 | 0.404568 | 0 | 0.03382 | 0.175956 | 1,830 | 50 | 111 | 36.6 | 0.779178 | 0 | 0 | 0.25641 | 0 | 0 | 0.078099 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.128205 | false | 0 | 0.102564 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7044b0b6c9b4a812faa5b956f3eb42b75576576a | 4,118 | py | Python | test/error/server_error_test.py | pombreda/py2neo | 7a07767242809ba4086cbc1b73a078a7de1ba283 | [
"Apache-2.0"
] | null | null | null | test/error/server_error_test.py | pombreda/py2neo | 7a07767242809ba4086cbc1b73a078a7de1ba283 | [
"Apache-2.0"
] | null | null | null | test/error/server_error_test.py | pombreda/py2neo | 7a07767242809ba4086cbc1b73a078a7de1ba283 | [
"Apache-2.0"
] | null | null | null | #/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2011-2014, Nigel Small
#
# 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 ... | 30.962406 | 98 | 0.679213 | 491 | 4,118 | 5.464358 | 0.262729 | 0.044726 | 0.029817 | 0.047708 | 0.605665 | 0.601193 | 0.601193 | 0.590384 | 0.574357 | 0.574357 | 0 | 0.017181 | 0.236765 | 4,118 | 132 | 99 | 31.19697 | 0.836462 | 0.14473 | 0 | 0.702128 | 0 | 0 | 0.072712 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 1 | 0.085106 | false | 0 | 0.053191 | 0 | 0.159574 | 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 |
704f09e22444d6197480f70e460ca943eb7e0fd9 | 2,634 | py | Python | test_solution.py | MLDSPARROW/solution_shop | ef3cf5a165ef0ea9959239933a0c36505eb30665 | [
"MIT"
] | null | null | null | test_solution.py | MLDSPARROW/solution_shop | ef3cf5a165ef0ea9959239933a0c36505eb30665 | [
"MIT"
] | null | null | null | test_solution.py | MLDSPARROW/solution_shop | ef3cf5a165ef0ea9959239933a0c36505eb30665 | [
"MIT"
] | null | null | null | import mysql.connector
import unittest
import datetime
from decimal import Decimal
from solution import (
get_current_date,
get_connection,
get_budgets,
show_message,
insert_notified_and_show_message
)
class TestShopAnalyzerg(unittest.TestCase):
"""
The class with test... | 30.627907 | 134 | 0.611997 | 307 | 2,634 | 5.065147 | 0.338762 | 0.056592 | 0.036013 | 0.034727 | 0.146624 | 0.082315 | 0.042444 | 0 | 0 | 0 | 0 | 0.03828 | 0.276006 | 2,634 | 86 | 135 | 30.627907 | 0.777137 | 0.161731 | 0 | 0.044444 | 0 | 0 | 0.097951 | 0 | 0 | 0 | 0 | 0.011628 | 0.111111 | 1 | 0.133333 | false | 0.022222 | 0.111111 | 0 | 0.311111 | 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 |
704fec9249347df8dfd8879c186d6e60da817477 | 184 | py | Python | experiments/galileo2/button.py | rbanffy/pingo | b448d5eecae17b82aafd708c2594dae6d4194d84 | [
"MIT"
] | null | null | null | experiments/galileo2/button.py | rbanffy/pingo | b448d5eecae17b82aafd708c2594dae6d4194d84 | [
"MIT"
] | 1 | 2021-03-20T05:17:03.000Z | 2021-03-20T05:17:03.000Z | experiments/galileo2/button.py | rbanffy/pingo | b448d5eecae17b82aafd708c2594dae6d4194d84 | [
"MIT"
] | null | null | null | import mraa
from time import sleep
button = mraa.Gpio(6)
button.dir(mraa.DIR_IN)
while(button.read()!=1):
print 'Press button to quit'
sleep(0.3)
print 'The End'
| 15.333333 | 33 | 0.646739 | 30 | 184 | 3.933333 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.228261 | 184 | 11 | 34 | 16.727273 | 0.802817 | 0 | 0 | 0 | 0 | 0 | 0.156069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7058b6696a25099785b375f885a07f282b4932c1 | 6,688 | py | Python | csv/csv_tools.py | npcasler/libgeotiff | 9810d78fd1f4eb12ee3318d77ec4648f3c4f365d | [
"MIT"
] | null | null | null | csv/csv_tools.py | npcasler/libgeotiff | 9810d78fd1f4eb12ee3318d77ec4648f3c4f365d | [
"MIT"
] | null | null | null | csv/csv_tools.py | npcasler/libgeotiff | 9810d78fd1f4eb12ee3318d77ec4648f3c4f365d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#******************************************************************************
# $Id: csv_tools.py 1820 2010-02-27 04:53:55Z warmerdam $
#
# Project: GDAL
# Purpose: Build the epsg_pcs.csv table with the minimum information
# required to define a PCS (not including GCS defs).
# ... | 32.784314 | 79 | 0.532297 | 811 | 6,688 | 4.260173 | 0.268804 | 0.032417 | 0.031838 | 0.012735 | 0.151375 | 0.120695 | 0.079016 | 0.072069 | 0.072069 | 0.054703 | 0 | 0.009957 | 0.339264 | 6,688 | 203 | 80 | 32.945813 | 0.771894 | 0.274821 | 0 | 0.204545 | 0 | 0 | 0.02098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007576 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
706a7a75ccfc40f77c0e562abd7e007364cfb6d3 | 1,872 | py | Python | pymctdh/qoperator.py | addschile/pymctdh | 20a93ce543526de1919757defceef16f9005f423 | [
"MIT"
] | null | null | null | pymctdh/qoperator.py | addschile/pymctdh | 20a93ce543526de1919757defceef16f9005f423 | [
"MIT"
] | null | null | null | pymctdh/qoperator.py | addschile/pymctdh | 20a93ce543526de1919757defceef16f9005f423 | [
"MIT"
] | null | null | null | import numpy as np
import pymctdh.units as units
class QOperator(object):
"""Generic operator class for user defined potentials.
"""
def __init__(self, nmodes, term, pbfs=None):
"""
"""
self.nmodes = nmodes
self.term = term
self.term_setup()
self.op_setup()
... | 34.666667 | 79 | 0.53953 | 241 | 1,872 | 4.141079 | 0.327801 | 0.176353 | 0.0501 | 0.033066 | 0.214429 | 0.052104 | 0.052104 | 0 | 0 | 0 | 0 | 0.003205 | 0.333333 | 1,872 | 53 | 80 | 35.320755 | 0.796474 | 0.244658 | 0 | 0.0625 | 0 | 0 | 0.068232 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.