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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6132f4b9628b5a6d9b8a39429c08581ca55a9a0b | 608 | py | Python | XtDac/ChandraUtils/angular_distance.py | giacomov/XtDac | 60eb1f1d492c7ab3099731738c257955502194a6 | [
"BSD-3-Clause"
] | 1 | 2020-01-08T19:57:19.000Z | 2020-01-08T19:57:19.000Z | chandra_suli/angular_distance.py | nitikayad96/chandra_suli | 905ded69825f8b3d4fa29a84661697abdb827a87 | [
"BSD-3-Clause"
] | null | null | null | chandra_suli/angular_distance.py | nitikayad96/chandra_suli | 905ded69825f8b3d4fa29a84661697abdb827a87 | [
"BSD-3-Clause"
] | null | null | null | import astropy.units as u
from astropy.coordinates import SkyCoord
def angular_distance(ra1, dec1, ra2, dec2, unit='degree'):
"""
Compute angular distance between pairs of coordinates
:param ra1:
:param dec1:
:param ra2:
:param dec2:
:param unit: the unit of the output (default: degree)
... | 26.434783 | 76 | 0.682566 | 85 | 608 | 4.8 | 0.423529 | 0.183824 | 0.102941 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.203947 | 608 | 22 | 77 | 27.636364 | 0.809917 | 0.302632 | 0 | 0 | 0 | 0 | 0.036458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
613383f045bd123c0cedd189e37da0bac420e7d3 | 662 | py | Python | src/dump_snowball.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | 3 | 2020-08-21T00:18:50.000Z | 2020-10-21T17:40:47.000Z | src/dump_snowball.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | src/dump_snowball.py | joigno/cloudlight | 8a6510047abd97e0bf3a568322205beb56fa5260 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
'''
Created on Oct 4, 2010
@author: jose
'''
from cloudlight import BigGraph
import sys
if __name__ == '__main__':
print 'Starting dump_snowball'
filename = len(sys.argv) > 1 and sys.argv[1] or None
if not filename:
print 'Error: first argument missing, input f... | 20.6875 | 85 | 0.623867 | 87 | 662 | 4.609195 | 0.54023 | 0.069825 | 0.049875 | 0.054863 | 0.149626 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023109 | 0.280967 | 662 | 32 | 86 | 20.6875 | 0.819328 | 0.024169 | 0 | 0.133333 | 0 | 0 | 0.27787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
613ea5901245ba59b8fcb69f950025b31322a848 | 11,593 | py | Python | tests/test_enum.py | nelfin/pylint-protobuf | dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e | [
"MIT"
] | 25 | 2018-09-21T13:21:25.000Z | 2021-12-30T06:00:57.000Z | tests/test_enum.py | nelfin/pylint-protobuf | dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e | [
"MIT"
] | 48 | 2019-01-26T10:10:43.000Z | 2021-07-27T02:23:19.000Z | tests/test_enum.py | nelfin/pylint-protobuf | dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e | [
"MIT"
] | 12 | 2018-09-27T09:19:58.000Z | 2021-02-12T17:17:07.000Z | import sys
import pytest
import pylint.testutils
import pylint_protobuf
from conftest import CheckerTestCase, extract_node, make_message
@pytest.fixture
def enum_mod(proto_builder):
return proto_builder("""
enum Variable {
CONTINUOUS = 0;
DISCRETE = 1;
}
""", 'enum')
@p... | 32.934659 | 104 | 0.615975 | 1,332 | 11,593 | 5.043544 | 0.120871 | 0.065645 | 0.050313 | 0.062519 | 0.719559 | 0.710182 | 0.676094 | 0.647812 | 0.591247 | 0.572343 | 0 | 0.009116 | 0.271371 | 11,593 | 351 | 105 | 33.02849 | 0.786196 | 0.002243 | 0 | 0.570957 | 0 | 0 | 0.349243 | 0.043926 | 0 | 0 | 0 | 0 | 0.105611 | 1 | 0.115512 | false | 0.006601 | 0.141914 | 0.013201 | 0.277228 | 0.023102 | 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 |
6142c9796be23fea97855a19721be941f4dc83c5 | 5,539 | py | Python | main.py | noatgnu/taro | 63277ca33ef5249014412df705d47a4d8ff6d526 | [
"MIT"
] | null | null | null | main.py | noatgnu/taro | 63277ca33ef5249014412df705d47a4d8ff6d526 | [
"MIT"
] | null | null | null | main.py | noatgnu/taro | 63277ca33ef5249014412df705d47a4d8ff6d526 | [
"MIT"
] | null | null | null | from tornado.httpclient import AsyncHTTPClient
from tornado import gen, web
from tornado.ioloop import IOLoop
from tornado.escape import json_decode
import pandas as pd
import asyncio
from parser_handler.parser import BaseParser, NCEPParser, BioMartParser
from tornado.options import define, options
define("init", defa... | 46.940678 | 120 | 0.700849 | 732 | 5,539 | 4.998634 | 0.310109 | 0.086089 | 0.167259 | 0.189396 | 0.227931 | 0.125171 | 0.039355 | 0.039355 | 0.039355 | 0 | 0 | 0.02437 | 0.148041 | 5,539 | 117 | 121 | 47.34188 | 0.751007 | 0 | 0 | 0.072917 | 0 | 0.010417 | 0.445026 | 0.282542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.09375 | 0 | 0.197917 | 0.03125 | 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 |
6144c40818691a773879b01bef9046d22accc5bc | 5,222 | py | Python | foundry/datacite.py | ethantruelove/foundry | 028524c1cfa7bac328970ed51f3a8703da8f9e40 | [
"MIT"
] | null | null | null | foundry/datacite.py | ethantruelove/foundry | 028524c1cfa7bac328970ed51f3a8703da8f9e40 | [
"MIT"
] | null | null | null | foundry/datacite.py | ethantruelove/foundry | 028524c1cfa7bac328970ed51f3a8703da8f9e40 | [
"MIT"
] | null | null | null | from pydantic import AnyUrl, ValidationError, BaseModel
from typing import List, Dict, Optional, Any
from enum import Enum
class DataciteIdentifier(BaseModel):
class DataciteIdentifierType(Enum):
DOI="DOI"
identifier: str = ""
identifierType: DataciteIdentifierType
class DataciteCreator... | 30.538012 | 69 | 0.638261 | 370 | 5,222 | 8.978378 | 0.424324 | 0.033113 | 0.014449 | 0.016255 | 0.045756 | 0.045756 | 0.045756 | 0.045756 | 0.045756 | 0.045756 | 0 | 0.001562 | 0.264458 | 5,222 | 171 | 69 | 30.538012 | 0.863317 | 0 | 0 | 0.07483 | 0 | 0 | 0.152403 | 0.004021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.006803 | 0.020408 | 0.006803 | 0.52381 | 0.006803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
614fb185c8723918d8a10f9ed96adc8f5255fea6 | 425 | py | Python | tests/functional/adapter/materialization/fixtures.py | mdesmet/dbt-trino | 2a1f03902b1375262d0bead06fc650d1c992fa0b | [
"Apache-2.0"
] | 37 | 2021-10-05T13:47:08.000Z | 2022-03-26T23:31:53.000Z | tests/functional/adapter/materialization/fixtures.py | mdesmet/dbt-trino | 2a1f03902b1375262d0bead06fc650d1c992fa0b | [
"Apache-2.0"
] | 36 | 2021-09-27T17:25:26.000Z | 2022-03-28T08:41:40.000Z | tests/functional/adapter/materialization/fixtures.py | mdesmet/dbt-trino | 2a1f03902b1375262d0bead06fc650d1c992fa0b | [
"Apache-2.0"
] | 11 | 2021-12-14T04:40:38.000Z | 2022-03-27T02:17:25.000Z | seed_csv = """
id,name,some_date
1,Easton,1981-05-20T06:46:51
2,Lillian,1978-09-03T18:10:33
3,Jeremiah,1982-03-11T03:59:51
4,Nolan,1976-05-06T20:21:35
""".lstrip()
model_sql = """
select * from {{ ref('seed') }}
"""
profile_yml = """
version: 2
models:
- name: materialization
columns:
- name: id
t... | 16.346154 | 31 | 0.569412 | 60 | 425 | 3.933333 | 0.8 | 0.059322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193651 | 0.258824 | 425 | 25 | 32 | 17 | 0.555556 | 0 | 0 | 0.26087 | 0 | 0 | 0.837647 | 0.268235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
615a1fc95672fd16b0e4b5a553801d681cbe34fd | 10,646 | py | Python | welcome.py | MadhavVij/File-Uploader-Bluemix | a9134c12b8004bebfa5edcb8440a7168ceff6056 | [
"Apache-2.0"
] | null | null | null | welcome.py | MadhavVij/File-Uploader-Bluemix | a9134c12b8004bebfa5edcb8440a7168ceff6056 | [
"Apache-2.0"
] | null | null | null | welcome.py | MadhavVij/File-Uploader-Bluemix | a9134c12b8004bebfa5edcb8440a7168ceff6056 | [
"Apache-2.0"
] | null | null | null | import base64
import json
import pymysql
import swiftclient
import os
from cloudant import Cloudant
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from flask import Flask, render_tem... | 31.128655 | 118 | 0.577588 | 1,145 | 10,646 | 5.222707 | 0.188646 | 0.026756 | 0.023913 | 0.022575 | 0.466722 | 0.3801 | 0.373746 | 0.344314 | 0.333612 | 0.333612 | 0 | 0.011813 | 0.292316 | 10,646 | 342 | 119 | 31.128655 | 0.781922 | 0.04659 | 0 | 0.38189 | 0 | 0 | 0.098871 | 0.009548 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035433 | 0.043307 | null | null | 0.015748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
615b8033db68cf86b18b3e37b8f349905fdcfd97 | 1,663 | py | Python | Lib/tempfile.py | AtjonTV/Python-1.4 | 2a80562c5a163490f444181cb75ca1b3089759ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Lib/tempfile.py | AtjonTV/Python-1.4 | 2a80562c5a163490f444181cb75ca1b3089759ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Lib/tempfile.py | AtjonTV/Python-1.4 | 2a80562c5a163490f444181cb75ca1b3089759ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | # Temporary file name allocation
#
# XXX This tries to be not UNIX specific, but I don't know beans about
# how to choose a temp directory or filename on MS-DOS or other
# systems so it may have to be changed...
import os
# Parameters that the caller may set to override the defaults
tempdir = None
template = None
... | 22.173333 | 72 | 0.67288 | 238 | 1,663 | 4.697479 | 0.483193 | 0.026834 | 0.045617 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004623 | 0.219483 | 1,663 | 74 | 73 | 22.472973 | 0.856703 | 0.292243 | 0 | 0.042553 | 0 | 0 | 0.091845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021277 | 0.021277 | 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 |
615bc45480abb5b0c80bd3a0bbb1d1ff42f80126 | 5,944 | py | Python | environment/pick_and_place.py | lobachevzky/hsr | b8c40b82c0d39fedc8f64cb50734620a0b2d84ab | [
"MIT"
] | 1 | 2021-03-29T16:42:01.000Z | 2021-03-29T16:42:01.000Z | environment/pick_and_place.py | ethanabrooks/hsr | b8c40b82c0d39fedc8f64cb50734620a0b2d84ab | [
"MIT"
] | 2 | 2018-02-02T20:47:03.000Z | 2018-05-22T21:10:29.000Z | environment/pick_and_place.py | lobachevzky/hsr | b8c40b82c0d39fedc8f64cb50734620a0b2d84ab | [
"MIT"
] | null | null | null | from os.path import join
import numpy as np
from gym import spaces
from mujoco import ObjType
from environment.base import BaseEnv, at_goal, print1
from environment.mujoco import MujocoEnv
def quaternion_multiply(quaternion1, quaternion0):
w0, x0, y0, z0 = quaternion0
w1, x1, y1, z1 = quaternion1
return... | 38.102564 | 96 | 0.608345 | 787 | 5,944 | 4.311309 | 0.243964 | 0.022694 | 0.035367 | 0.040083 | 0.185971 | 0.110816 | 0.037135 | 0.020041 | 0.020041 | 0 | 0 | 0.030515 | 0.277759 | 5,944 | 155 | 97 | 38.348387 | 0.759842 | 0.214334 | 0 | 0.020202 | 0 | 0 | 0.031243 | 0.00905 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.191919 | false | 0.010101 | 0.060606 | 0.10101 | 0.454545 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6160dcd1dab60233d444bc6fe8dc2b65c60cca9c | 462 | py | Python | app1/migrations/0077_auto_20210107_2055.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | 6 | 2021-09-16T16:46:56.000Z | 2022-02-06T13:00:08.000Z | app1/migrations/0077_auto_20210107_2055.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | null | null | null | app1/migrations/0077_auto_20210107_2055.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | 1 | 2021-09-14T09:26:58.000Z | 2021-09-14T09:26:58.000Z | # Generated by Django 3.1.2 on 2021-01-07 15:25
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app1', '0076_auto_20210104_1817'),
]
operations = [
migrations.AlterField(
model_name='resources',
n... | 23.1 | 98 | 0.627706 | 53 | 462 | 5.358491 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145773 | 0.257576 | 462 | 19 | 99 | 24.315789 | 0.682216 | 0.097403 | 0 | 0 | 1 | 0 | 0.13012 | 0.055422 | 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 |
6160fc3d4f13de43d704023e817e4dc9b2d61126 | 3,551 | py | Python | src/waldur_openstack/openstack/migrations/0006_router.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_openstack/openstack/migrations/0006_router.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_openstack/openstack/migrations/0006_router.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | # Generated by Django 2.2.13 on 2020-10-09 17:57
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
from django.db import migrations, models
import waldur_core.core.fields
import waldur_core.core.models
import waldur_core.core.shims
import waldur_core.core.validators
import waldur... | 34.144231 | 79 | 0.431709 | 248 | 3,551 | 6.008065 | 0.403226 | 0.073826 | 0.084564 | 0.053691 | 0.251007 | 0.177181 | 0.132886 | 0.132886 | 0.071141 | 0 | 0 | 0.018519 | 0.482963 | 3,551 | 103 | 80 | 34.475728 | 0.793028 | 0.012954 | 0 | 0.291667 | 1 | 0 | 0.097345 | 0.026263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.125 | 0 | 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 |
6166d76ca84a0aeaa06712eed1e40b216c23bdc9 | 2,338 | py | Python | setup.py | oraluben/pyperformance | 74acfa5fbf801ce79fdadc9e92355c99460e91e4 | [
"MIT"
] | 255 | 2016-08-27T05:38:56.000Z | 2019-05-27T16:15:38.000Z | setup.py | oraluben/pyperformance | 74acfa5fbf801ce79fdadc9e92355c99460e91e4 | [
"MIT"
] | 43 | 2016-08-30T15:22:01.000Z | 2019-05-24T10:59:54.000Z | setup.py | oraluben/pyperformance | 74acfa5fbf801ce79fdadc9e92355c99460e91e4 | [
"MIT"
] | 55 | 2016-08-30T15:19:45.000Z | 2019-05-20T12:41:02.000Z | #!/usr/bin/env python3
# FIXME:
#
# - REENABLE HG_STARTUP BENCHMARK.
#
# Update dependencies:
#
# - python3 -m pip install --user --upgrade pip-tools
# - git clean -fdx # remove all untracked files!
# - (pip-compile --upgrade -o requirements.txt requirements.in)
#
# Prepare a release:
#
# - git pull --rebase
# -... | 27.186047 | 71 | 0.648845 | 277 | 2,338 | 5.361011 | 0.555957 | 0.016162 | 0.022222 | 0.032323 | 0.088889 | 0.088889 | 0.088889 | 0 | 0 | 0 | 0 | 0.00384 | 0.220274 | 2,338 | 85 | 72 | 27.505882 | 0.810752 | 0.434559 | 0 | 0 | 0 | 0 | 0.441498 | 0.028081 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
616f6fdab45236fb725558f7e44036bd63863d4b | 685 | py | Python | mysign_app/migrations/0002_add_is_admin.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | mysign_app/migrations/0002_add_is_admin.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | 11 | 2020-06-06T00:27:01.000Z | 2022-02-10T09:38:26.000Z | mysign_app/migrations/0002_add_is_admin.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-24 09:16
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mysign_app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | 26.346154 | 129 | 0.611679 | 74 | 685 | 5.554054 | 0.608108 | 0.058394 | 0.068127 | 0.107056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038076 | 0.271533 | 685 | 25 | 130 | 27.4 | 0.785571 | 0.065693 | 0 | 0.105263 | 1 | 0 | 0.10815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 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 |
6170520312ac31d6827c789346a4c0689344201c | 2,260 | py | Python | jsonsimpleconfig/jscdata/jsc_section.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | jsonsimpleconfig/jscdata/jsc_section.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | jsonsimpleconfig/jscdata/jsc_section.py | xmzxmz/Python_jsonsimpleconfig | 7e7d15bb91c22156a8a54323b57bb0d5424dd06a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# * ********************************************************************* *
# * Copyright (C) 2018 by xmz *
# * ********************************************************************* *
__author__ = "Marcin Zelek (marcin.zelek@gmail.com)"
__copyright__ ... | 29.736842 | 89 | 0.400442 | 175 | 2,260 | 4.8 | 0.325714 | 0.183333 | 0.10119 | 0.078571 | 0.282143 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0.142857 | 0 | 0.005818 | 0.315487 | 2,260 | 75 | 90 | 30.133333 | 0.537169 | 0.268584 | 0 | 0.241379 | 0 | 0 | 0.077594 | 0.020924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0 | 0.034483 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61718021d00d44ea9293adc3081becbeba94d04c | 4,364 | py | Python | society.py | Vladimir37/Games_on_Python | 03315f097ccf16905dfb336502511a5d1375ed0a | [
"MIT"
] | 1 | 2016-01-11T19:09:47.000Z | 2016-01-11T19:09:47.000Z | society.py | Vladimir37/Blackjack | 03315f097ccf16905dfb336502511a5d1375ed0a | [
"MIT"
] | null | null | null | society.py | Vladimir37/Blackjack | 03315f097ccf16905dfb336502511a5d1375ed0a | [
"MIT"
] | null | null | null | from random import randint
import time
# variables
names = ["Fidela","Alessandra","Frederick","Marlene","Londa","Neoma","Coreen","Nathan","Angelena","Cathern","Leeann",
"Lisbeth","Rolando","Lyndsey","Krystyna","Bong","Petra","August","Graig","Lessie"]
# rand funcs
def scale():
return randint(1, 10)
def ... | 32.325926 | 120 | 0.554308 | 468 | 4,364 | 5.059829 | 0.294872 | 0.049409 | 0.027027 | 0.029139 | 0.217483 | 0.200591 | 0.162162 | 0.04223 | 0.04223 | 0 | 0 | 0.02158 | 0.309808 | 4,364 | 135 | 121 | 32.325926 | 0.764608 | 0.045371 | 0 | 0.135135 | 0 | 0 | 0.158807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018018 | null | null | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
61726815bddd790ded152affd5ba89e98e12a8e4 | 1,089 | py | Python | test_plugins/BondingTest.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | test_plugins/BondingTest.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | test_plugins/BondingTest.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | import os
import requests
import tempfile
import nanome
from nanome.util import Logs
import sys
import time
NAME = "Bonding Test"
DESCRIPTION = "Tests add_bonds."
CATEGORY = "testing"
HAS_ADVANCED_OPTIONS = False
class BondingTest(nanome.PluginInstance):
def start(self):
self.on_run()
def on_run(sel... | 28.657895 | 80 | 0.677686 | 139 | 1,089 | 5.172662 | 0.482014 | 0.038943 | 0.061196 | 0.080668 | 0.116829 | 0.116829 | 0.116829 | 0.116829 | 0 | 0 | 0 | 0.00346 | 0.203857 | 1,089 | 38 | 81 | 28.657895 | 0.825836 | 0.252525 | 0 | 0 | 0 | 0 | 0.107807 | 0.039653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.304348 | 0 | 0.478261 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6174a906517cfa486648a48889e1b82cccf662be | 2,679 | py | Python | app/eastmoney/trade.py | rex11458/financing_trading | ebd4e56913fe5e70fed0071dde0c617eddd99207 | [
"BSD-2-Clause"
] | null | null | null | app/eastmoney/trade.py | rex11458/financing_trading | ebd4e56913fe5e70fed0071dde0c617eddd99207 | [
"BSD-2-Clause"
] | null | null | null | app/eastmoney/trade.py | rex11458/financing_trading | ebd4e56913fe5e70fed0071dde0c617eddd99207 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
from market import quoteSnapshot
from user import check_response, current_time
class Trade:
user = None
ssrequest = None
base_url = None
def __init__(self, user):
self.user = user
self.ssrequest = user.ssrequest
self.base_url = user.base_url
# 获取资... | 29.43956 | 70 | 0.537514 | 283 | 2,679 | 4.989399 | 0.261484 | 0.029745 | 0.031161 | 0.029745 | 0.44051 | 0.401558 | 0.255666 | 0.240793 | 0.177054 | 0.121813 | 0 | 0.034463 | 0.339306 | 2,679 | 90 | 71 | 29.766667 | 0.763277 | 0.111982 | 0 | 0.348485 | 0 | 0 | 0.130655 | 0.010994 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
617c21b0e9b09d38070dee915b4df232488fe3b4 | 380 | py | Python | api/migrations/0012_auto_20180604_1924.py | hackoregon/housing-2018 | d0e23f942e2bb4e26c3bd4b30863fe468d64ff5f | [
"MIT"
] | 1 | 2018-01-30T22:26:14.000Z | 2018-01-30T22:26:14.000Z | api/migrations/0012_auto_20180604_1924.py | hackoregon/housing-2018 | d0e23f942e2bb4e26c3bd4b30863fe468d64ff5f | [
"MIT"
] | 21 | 2018-01-25T04:41:41.000Z | 2021-06-10T20:13:47.000Z | api/migrations/0012_auto_20180604_1924.py | hackoregon/housing-2018 | d0e23f942e2bb4e26c3bd4b30863fe468d64ff5f | [
"MIT"
] | 4 | 2018-01-25T04:19:40.000Z | 2018-12-13T19:19:58.000Z | # Generated by Django 2.0.1 on 2018-06-04 19:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0011_taxlotdata'),
]
operations = [
migrations.AlterField(
model_name='taxlotdata',
name='sale_date',
... | 20 | 49 | 0.592105 | 41 | 380 | 5.390244 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074349 | 0.292105 | 380 | 18 | 50 | 21.111111 | 0.747212 | 0.118421 | 0 | 0 | 1 | 0 | 0.111111 | 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 |
617ff68b74b67a83dac4933523eb366e7f689cb5 | 488 | py | Python | product/migrations/0004_product_category.py | biswajit955/nilu | 24443b45a5eb221f83d6637fb7863387e64561de | [
"MIT"
] | 6 | 2022-01-01T17:42:43.000Z | 2022-02-01T15:39:38.000Z | product/migrations/0004_product_category.py | biswajit955/nilu | 24443b45a5eb221f83d6637fb7863387e64561de | [
"MIT"
] | 1 | 2022-01-01T17:11:08.000Z | 2022-01-01T17:11:08.000Z | product/migrations/0004_product_category.py | biswajit955/nilu | 24443b45a5eb221f83d6637fb7863387e64561de | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2021-12-24 10:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('product', '0003_remove_product_category'),
]
operations = [
migrations.AddField(
model_name='prod... | 24.4 | 115 | 0.647541 | 55 | 488 | 5.654545 | 0.636364 | 0.07717 | 0.090032 | 0.141479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050938 | 0.235656 | 488 | 19 | 116 | 25.684211 | 0.782842 | 0.088115 | 0 | 0 | 1 | 0 | 0.148984 | 0.063205 | 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 |
6180086ba40a0994c8c06ca7e37cf9216b0456a3 | 6,255 | py | Python | tests/test_forms.py | Floyd-Droid/jf-issue-tracker | 77907a57ec13952a026b813d952e0699ca065d23 | [
"MIT"
] | null | null | null | tests/test_forms.py | Floyd-Droid/jf-issue-tracker | 77907a57ec13952a026b813d952e0699ca065d23 | [
"MIT"
] | null | null | null | tests/test_forms.py | Floyd-Droid/jf-issue-tracker | 77907a57ec13952a026b813d952e0699ca065d23 | [
"MIT"
] | null | null | null | """Test each form directly for expected validation behavior."""
from django.contrib.auth.models import User
from django.test import TestCase, Client
from issues.forms import (
UserForm,
UserGroupForm,
ManagePasswordForm,
ProjectForm,
ProjectIssueForm,
IssueForm,
CommentForm,
ReplyForm
... | 45.656934 | 257 | 0.671942 | 723 | 6,255 | 5.630705 | 0.174274 | 0.081061 | 0.087693 | 0.051339 | 0.592238 | 0.556866 | 0.535741 | 0.479243 | 0.407762 | 0.344387 | 0 | 0.006961 | 0.173141 | 6,255 | 136 | 258 | 45.992647 | 0.780162 | 0.009113 | 0 | 0.37 | 0 | 0 | 0.256137 | 0 | 0 | 0 | 0 | 0 | 0.34 | 1 | 0.16 | false | 0.08 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6181899d5f46cc5e89434bd4ef82b5bace095aad | 631 | py | Python | osme/migrations/0002_auto_20210316_1627.py | infolabs/django-osme | c0cf7c15dee2b16454461a41316acae2f7c50004 | [
"MIT"
] | null | null | null | osme/migrations/0002_auto_20210316_1627.py | infolabs/django-osme | c0cf7c15dee2b16454461a41316acae2f7c50004 | [
"MIT"
] | null | null | null | osme/migrations/0002_auto_20210316_1627.py | infolabs/django-osme | c0cf7c15dee2b16454461a41316acae2f7c50004 | [
"MIT"
] | 1 | 2022-03-02T07:05:13.000Z | 2022-03-02T07:05:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2021-03-16 13:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('osme', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 24.269231 | 100 | 0.594295 | 69 | 631 | 5.231884 | 0.724638 | 0.049862 | 0.083102 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057778 | 0.286846 | 631 | 25 | 101 | 25.24 | 0.744444 | 0.10935 | 0 | 0.222222 | 1 | 0 | 0.093023 | 0 | 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 |
618c2646f7fef6ca7b77241a2c954e14b7b10351 | 4,963 | py | Python | dl_papers/common/data/batch_iterator.py | 4Catalyzer/dl-papers | 31efba18c7a75036c6041f10cd880182b125c37c | [
"MIT"
] | 2 | 2017-04-20T06:35:14.000Z | 2017-04-21T02:47:55.000Z | dl_papers/common/data/batch_iterator.py | 4Catalyzer/dl-papers | 31efba18c7a75036c6041f10cd880182b125c37c | [
"MIT"
] | null | null | null | dl_papers/common/data/batch_iterator.py | 4Catalyzer/dl-papers | 31efba18c7a75036c6041f10cd880182b125c37c | [
"MIT"
] | null | null | null | import sys
import threading
from tqdm import tqdm
import numpy as np
import pandas as pd
import six
from six.moves.queue import Queue
from ..utils import if_none
__all__ = ('BatchIterator',)
# -----------------------------------------------------------------------------
DONE = object()
# -------------------------... | 30.262195 | 79 | 0.548257 | 566 | 4,963 | 4.620141 | 0.263251 | 0.048184 | 0.034799 | 0.034417 | 0.065774 | 0.046654 | 0.025239 | 0.025239 | 0.025239 | 0.025239 | 0 | 0.002997 | 0.327624 | 4,963 | 163 | 80 | 30.447853 | 0.780641 | 0.127141 | 0 | 0.067797 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0 | null | null | 0 | 0.067797 | 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 |
618c6b3abff3641264979404372c3739e288ffaa | 487 | py | Python | examples/user/database-model/meta.py | bobrock/AuthKit | ba82501d9dff699be9eef33266aecd03d016cec2 | [
"MIT"
] | null | null | null | examples/user/database-model/meta.py | bobrock/AuthKit | ba82501d9dff699be9eef33266aecd03d016cec2 | [
"MIT"
] | null | null | null | examples/user/database-model/meta.py | bobrock/AuthKit | ba82501d9dff699be9eef33266aecd03d016cec2 | [
"MIT"
] | 1 | 2020-06-24T19:20:13.000Z | 2020-06-24T19:20:13.000Z | """SQLAlchemy Metadata and Session object"""
from sqlalchemy import MetaData
from sqlalchemy.orm import scoped_session, sessionmaker
import pylons
__all__ = ['Session', 'metadata']
# SQLAlchemy database engine. Updated by model.init_model().
engine = None
# SQLAlchemy session manager. Updated by model.init_model(... | 25.631579 | 73 | 0.772074 | 62 | 487 | 5.951613 | 0.564516 | 0.075881 | 0.075881 | 0.097561 | 0.124661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147844 | 487 | 18 | 74 | 27.055556 | 0.889157 | 0.574949 | 0 | 0 | 0 | 0 | 0.076142 | 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 |
61ad1513553eaaba4bfaa9df2f9f39afa4903496 | 2,346 | py | Python | onconet/visualize/viz_utils.py | harrivle/Mirai | ea2d4839f1f8b9f881798b819b2192ce2795bd5d | [
"MIT"
] | 37 | 2021-01-28T06:00:34.000Z | 2022-03-29T21:14:12.000Z | onconet/visualize/viz_utils.py | NkwamPhilip/Mirai | 70413de690da36c5878e2e6006711476e166bb1d | [
"MIT"
] | null | null | null | onconet/visualize/viz_utils.py | NkwamPhilip/Mirai | 70413de690da36c5878e2e6006711476e166bb1d | [
"MIT"
] | 14 | 2021-02-02T09:42:18.000Z | 2022-03-23T00:36:41.000Z | import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
from collections import Counter
import numpy as np
import sklearn.metrics
SAVE_PLOT_STR="Saved figure for {} at {}"
ERR_PLOT_STR="ERROR! Failed to save figure for {} at {}. Exception {}}"
def plot_losses(args):
epochs = range(args.epoch... | 30.076923 | 92 | 0.615942 | 332 | 2,346 | 4.222892 | 0.385542 | 0.045649 | 0.029957 | 0.038516 | 0.279601 | 0.228245 | 0.089872 | 0.089872 | 0.089872 | 0.089872 | 0 | 0.019423 | 0.231884 | 2,346 | 77 | 93 | 30.467532 | 0.758602 | 0 | 0 | 0.184615 | 0 | 0 | 0.106138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
61ad28c073beb373fafc27aa467c3936e413c963 | 238 | py | Python | edict/forms.py | LimpidTech/django-edict | dae91d6682b9b6c8646866c5e2171b0bb5372441 | [
"MIT"
] | 1 | 2016-01-24T10:46:31.000Z | 2016-01-24T10:46:31.000Z | edict/forms.py | LimpidTech/django-edict | dae91d6682b9b6c8646866c5e2171b0bb5372441 | [
"MIT"
] | null | null | null | edict/forms.py | LimpidTech/django-edict | dae91d6682b9b6c8646866c5e2171b0bb5372441 | [
"MIT"
] | null | null | null | from django import forms
from models import Article
class NewsArticleForm(forms.ModelForm):
class Meta(object):
model = Article
widgets = {
'body': forms.Textarea(attrs={'class': 'text-edit'}),
}
| 21.636364 | 65 | 0.617647 | 25 | 238 | 5.88 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268908 | 238 | 10 | 66 | 23.8 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ad35416d5fc1f40615e85044eb544e0e61b72e | 629 | py | Python | todos/urls.py | akakream/Todotrackerwithdjango | 99bfbd8f3e548f51901722796e3660b0e4baf60b | [
"MIT"
] | null | null | null | todos/urls.py | akakream/Todotrackerwithdjango | 99bfbd8f3e548f51901722796e3660b0e4baf60b | [
"MIT"
] | null | null | null | todos/urls.py | akakream/Todotrackerwithdjango | 99bfbd8f3e548f51901722796e3660b0e4baf60b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from .views import (
TodoListView,
TodoDetailView,
TodoCreateView,
TodoUpdateView,
TodoDeleteView
)
urlpatterns = [
path('', TodoListView.as_view(), name='todos-home'),
path('viewtodo/<int:pk>/detail', TodoDetailView.as_view(), name='todos-... | 34.944444 | 86 | 0.685215 | 73 | 629 | 5.835616 | 0.39726 | 0.126761 | 0.117371 | 0.176056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136725 | 629 | 18 | 87 | 34.944444 | 0.78453 | 0 | 0 | 0 | 0 | 0 | 0.252381 | 0.038095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 |
61b0254c007c6addf8fb5af7f72ea0ae017ef32c | 4,474 | py | Python | tests/test_filters.py | apastors/jqfilters | 2282e83a07f1d288b57c55050562a77c488456eb | [
"MIT"
] | null | null | null | tests/test_filters.py | apastors/jqfilters | 2282e83a07f1d288b57c55050562a77c488456eb | [
"MIT"
] | 1 | 2019-11-06T19:59:10.000Z | 2020-06-24T13:19:10.000Z | tests/test_filters.py | apastors/filters | 2282e83a07f1d288b57c55050562a77c488456eb | [
"MIT"
] | null | null | null | from pytest import raises
from jqfilters.filters import Filter
from jqfilters.operations import identity
class TestFilter():
def test__init__ok_notransform(self):
op1 = '.a'
operator = 'ge'
op2 = 4
f = Filter(op1=op1, operator=operator, op2=op2)
assert isinstance(f, Filter... | 25.420455 | 101 | 0.475637 | 487 | 4,474 | 4.234086 | 0.131417 | 0.057711 | 0.06935 | 0.050436 | 0.759457 | 0.725509 | 0.652279 | 0.564016 | 0.505335 | 0.459263 | 0 | 0.053117 | 0.394055 | 4,474 | 175 | 102 | 25.565714 | 0.707488 | 0 | 0 | 0.613793 | 0 | 0 | 0.064819 | 0 | 0 | 0 | 0 | 0 | 0.124138 | 1 | 0.089655 | false | 0 | 0.02069 | 0 | 0.117241 | 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 |
61b51737e1cf72e79df940de7cbf0131537f9dc3 | 3,500 | py | Python | extra/logreader.py | iKsSs/sslsplit | 69d06a149fad75a0131fcc83c6d6061a6e3ab501 | [
"BSD-2-Clause"
] | 1,242 | 2015-01-02T13:42:24.000Z | 2022-03-31T18:45:23.000Z | extra/logreader.py | iKsSs/sslsplit | 69d06a149fad75a0131fcc83c6d6061a6e3ab501 | [
"BSD-2-Clause"
] | 224 | 2015-02-18T14:16:59.000Z | 2022-03-31T23:54:35.000Z | extra/logreader.py | iKsSs/sslsplit | 69d06a149fad75a0131fcc83c6d6061a6e3ab501 | [
"BSD-2-Clause"
] | 317 | 2015-01-02T13:42:26.000Z | 2022-03-30T18:51:11.000Z | #!/usr/bin/env python
# vim: set ft=python list et ts=8 sts=4 sw=4:
# SSLsplit contributed code: Log parser for sslsplit -L
# This script reads the log from standard input and parses it.
# Standard input can point to a file or a named pipe.
# Copyright (C) 2015, Maciej Kotowicz <mak@lokalhost.pl>.
# Copyright (C) 20... | 35 | 119 | 0.644571 | 516 | 3,500 | 4.333333 | 0.439922 | 0.018784 | 0.005367 | 0.007156 | 0.127013 | 0.105546 | 0.105546 | 0.105546 | 0.101073 | 0.101073 | 0 | 0.023622 | 0.238 | 3,500 | 99 | 120 | 35.353535 | 0.814773 | 0.480286 | 0 | 0.185185 | 0 | 0.018519 | 0.112991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.074074 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ba78f9cb0d542a47858c8377c382e08d661330 | 861 | py | Python | payroll/employee_management/migrations/0014_auto_20200302_1716.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | 1 | 2021-03-26T19:39:30.000Z | 2021-03-26T19:39:30.000Z | payroll/employee_management/migrations/0014_auto_20200302_1716.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | 12 | 2020-10-27T22:47:01.000Z | 2022-03-12T00:42:49.000Z | payroll/employee_management/migrations/0014_auto_20200302_1716.py | the-krafty-koder/pay-3 | 20426ef00b78c2a65fb4031a7692866bd22a991a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-03-02 17:16
from django.db import migrations, models
import employee_management.models
class Migration(migrations.Migration):
dependencies = [
('employee_management', '0013_education_employee'),
]
operations = [
migrations.CreateModel(
nam... | 30.75 | 114 | 0.62137 | 87 | 861 | 5.954023 | 0.597701 | 0.138996 | 0.138996 | 0.088803 | 0.243243 | 0.243243 | 0.243243 | 0.243243 | 0.243243 | 0.243243 | 0 | 0.033123 | 0.263647 | 861 | 27 | 115 | 31.888889 | 0.783912 | 0.052265 | 0 | 0.095238 | 1 | 0 | 0.095823 | 0.028256 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61bb3b63261480928fcb840b029b1c652cd42c29 | 2,938 | py | Python | career/migrations/0001_initial.py | cybrvybe/AU7OMA7A-BI | 1895abdd4b1ec0908b08ece65df460fc23925f25 | [
"MIT"
] | null | null | null | career/migrations/0001_initial.py | cybrvybe/AU7OMA7A-BI | 1895abdd4b1ec0908b08ece65df460fc23925f25 | [
"MIT"
] | null | null | null | career/migrations/0001_initial.py | cybrvybe/AU7OMA7A-BI | 1895abdd4b1ec0908b08ece65df460fc23925f25 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-06-08 16:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
... | 58.76 | 173 | 0.618448 | 350 | 2,938 | 5.062857 | 0.282857 | 0.0807 | 0.06772 | 0.085779 | 0.616253 | 0.604966 | 0.571106 | 0.571106 | 0.571106 | 0.571106 | 0 | 0.020289 | 0.245065 | 2,938 | 49 | 174 | 59.959184 | 0.778629 | 0.015317 | 0 | 0.357143 | 1 | 0 | 0.214638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61c0aa94fdd28c6912d50f7a01726c75703f5f9a | 2,627 | py | Python | furport/migrations/0003_auto_20200708_0528.py | ShunranSasaki/furport-back | e994241d4b9a7395a725a824e37c1602147bd449 | [
"MIT"
] | 2 | 2020-07-21T14:14:56.000Z | 2020-11-18T18:19:35.000Z | furport/migrations/0003_auto_20200708_0528.py | ShunranSasaki/furport-back | e994241d4b9a7395a725a824e37c1602147bd449 | [
"MIT"
] | 12 | 2020-07-22T10:09:45.000Z | 2021-06-25T15:41:08.000Z | furport/migrations/0003_auto_20200708_0528.py | ShunranSasaki/furport-back | e994241d4b9a7395a725a824e37c1602147bd449 | [
"MIT"
] | 2 | 2020-08-11T10:39:04.000Z | 2020-08-12T09:04:42.000Z | # Generated by Django 3.0.8 on 2020-07-08 05:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("furport", "0002_auto_202... | 32.8375 | 85 | 0.481919 | 217 | 2,627 | 5.645161 | 0.400922 | 0.053878 | 0.045714 | 0.058776 | 0.346122 | 0.300408 | 0.225306 | 0.168163 | 0.094694 | 0.094694 | 0 | 0.026333 | 0.407309 | 2,627 | 79 | 86 | 33.253165 | 0.760437 | 0.01713 | 0 | 0.328767 | 1 | 0 | 0.087985 | 0.008915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041096 | 0 | 0.082192 | 0 | 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 |
61c20282eaaed5ba9e0a061e7e4c770f13fd10ba | 9,735 | py | Python | Agents/train.py | TylerJamesMalloy/bullet3 | e357853815c1e0297683218273de79e586b574c8 | [
"Zlib"
] | null | null | null | Agents/train.py | TylerJamesMalloy/bullet3 | e357853815c1e0297683218273de79e586b574c8 | [
"Zlib"
] | null | null | null | Agents/train.py | TylerJamesMalloy/bullet3 | e357853815c1e0297683218273de79e586b574c8 | [
"Zlib"
] | null | null | null | import logging, os, time, multiprocessing, sys, signal
logging.disable(logging.WARNING)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
import tensorflow as tf
import gym
import pybullet, pybullet_envs, pybullet_data
import numpy as np
import pandas as pd
from stable_baselines.sac.policies import MlpPolicy
from stable_ba... | 44.452055 | 181 | 0.665845 | 1,212 | 9,735 | 5.05363 | 0.183168 | 0.038204 | 0.031347 | 0.036735 | 0.479837 | 0.446694 | 0.414694 | 0.403592 | 0.403592 | 0.403429 | 0 | 0.016763 | 0.197227 | 9,735 | 218 | 182 | 44.655963 | 0.766987 | 0.109605 | 0 | 0.114865 | 0 | 0 | 0.117382 | 0.043715 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.060811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
61c4086db122ab54e35ecf1267a7f38f7e807597 | 565 | py | Python | swaggerapp/urls.py | 3dcauldron/Repo-to-Rename-2 | 553f1c5cbed7f233aa10b83df23b6929dee4a47b | [
"MIT"
] | null | null | null | swaggerapp/urls.py | 3dcauldron/Repo-to-Rename-2 | 553f1c5cbed7f233aa10b83df23b6929dee4a47b | [
"MIT"
] | 3 | 2020-02-12T00:15:22.000Z | 2021-06-10T19:54:49.000Z | swaggerapp/urls.py | 3dcauldron/repo-to-rename-2 | 553f1c5cbed7f233aa10b83df23b6929dee4a47b | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from rest_framework_swagger.views import get_swagger_view
from swaggerapp import views as vs
from snippets import views
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'user... | 31.388889 | 83 | 0.746903 | 72 | 565 | 5.722222 | 0.430556 | 0.126214 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134513 | 565 | 18 | 84 | 31.388889 | 0.842536 | 0 | 0 | 0 | 0 | 0 | 0.107468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
61c615e78448e35c79abce0ba38d6b1f138da4ef | 13,886 | py | Python | appmetrics/tests/test_metrics.py | avalente/appmetrics | 366fc7e1ca897e49a2227cbfa43bfa02a47f1acc | [
"Apache-2.0"
] | 60 | 2015-01-19T05:32:32.000Z | 2021-06-08T07:35:02.000Z | appmetrics/tests/test_metrics.py | alexKeleon/appmetrics | 366fc7e1ca897e49a2227cbfa43bfa02a47f1acc | [
"Apache-2.0"
] | 6 | 2015-03-02T19:25:02.000Z | 2021-03-27T17:26:07.000Z | appmetrics/tests/test_metrics.py | alexKeleon/appmetrics | 366fc7e1ca897e49a2227cbfa43bfa02a47f1acc | [
"Apache-2.0"
] | 12 | 2015-01-19T05:04:14.000Z | 2020-09-08T07:49:54.000Z | import mock
from nose.tools import assert_equal, assert_in, raises, assert_is, assert_is_instance, assert_false, assert_true
from .. import metrics as mm, exceptions, histogram, simple_metrics as simple, meter
class TestMetricsModule(object):
def setUp(self):
self.original_registy = mm.REGISTRY.copy()
... | 28.338776 | 112 | 0.589731 | 1,728 | 13,886 | 4.525463 | 0.087384 | 0.077366 | 0.038235 | 0.029156 | 0.736701 | 0.605882 | 0.55844 | 0.527877 | 0.484527 | 0.440281 | 0 | 0.031726 | 0.266816 | 13,886 | 489 | 113 | 28.396728 | 0.736372 | 0.034495 | 0 | 0.481013 | 0 | 0 | 0.068849 | 0.00901 | 0 | 0 | 0 | 0 | 0.246835 | 1 | 0.21519 | false | 0.018987 | 0.009494 | 0 | 0.28481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ee999b9732bf31c857503800f8e74accb08531d | 8,247 | py | Python | antistasi_logbook/errors.py | Giddius/Antistasi_Logbook | b2b520db1a54df484984876c7dfdb724703fed77 | [
"MIT"
] | 2 | 2022-01-12T22:45:56.000Z | 2022-03-10T14:23:36.000Z | antistasi_logbook/errors.py | Giddius/Antistasi_Logbook | b2b520db1a54df484984876c7dfdb724703fed77 | [
"MIT"
] | null | null | null | antistasi_logbook/errors.py | Giddius/Antistasi_Logbook | b2b520db1a54df484984876c7dfdb724703fed77 | [
"MIT"
] | null | null | null |
"""
WiP.
Soon.
"""
# region [Imports]
# * Standard Library Imports ---------------------------------------------------------------------------->
import sys
import threading
from typing import TYPE_CHECKING, Callable, Optional
from pathlib import Path
from datetime import timezone
from traceback import format_tb
# ... | 38.71831 | 170 | 0.676973 | 859 | 8,247 | 6.204889 | 0.185099 | 0.041276 | 0.036023 | 0.041276 | 0.436585 | 0.408443 | 0.342214 | 0.283865 | 0.265666 | 0.255159 | 0 | 0.001059 | 0.198375 | 8,247 | 212 | 171 | 38.900943 | 0.805173 | 0.081363 | 0 | 0.191667 | 0 | 0.033333 | 0.11089 | 0.030243 | 0 | 0 | 0 | 0.004717 | 0 | 1 | 0.158333 | false | 0.075 | 0.083333 | 0 | 0.391667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4eebcda8040f067ea262562b4f6f0eeac6aa1a3d | 1,100 | py | Python | tests/test_verilog/test_inline_2d_array_interface.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 167 | 2017-10-08T00:59:22.000Z | 2022-02-08T00:14:39.000Z | tests/test_verilog/test_inline_2d_array_interface.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 719 | 2017-08-29T17:58:28.000Z | 2022-03-31T23:39:18.000Z | tests/test_verilog/test_inline_2d_array_interface.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 14 | 2017-09-01T03:25:16.000Z | 2021-11-05T13:30:24.000Z | import magma as m
from magma.testing import check_files_equal
import os
def test_inline_2d_array_interface():
class Main(m.Generator):
@staticmethod
def generate(width, depth):
class MonitorWrapper(m.Circuit):
io = m.IO(arr=m.In(m.Array[depth, m.Bits[width]]))
... | 37.931034 | 78 | 0.591818 | 135 | 1,100 | 4.533333 | 0.4 | 0.068627 | 0.156863 | 0.138889 | 0.245098 | 0.202614 | 0.107843 | 0.107843 | 0 | 0 | 0 | 0.011538 | 0.290909 | 1,100 | 28 | 79 | 39.285714 | 0.773077 | 0 | 0 | 0 | 1 | 0 | 0.308182 | 0.201818 | 0 | 0 | 0 | 0 | 0.086957 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.347826 | 0 | 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 |
4ef5a4586437936b87b772588879095ee278d389 | 1,594 | py | Python | countries/models.py | dokterbob/django-countries | 3e12f7d01b76aabd8ea214b8591618322c293aa2 | [
"BSD-3-Clause"
] | 1 | 2015-12-26T17:30:39.000Z | 2015-12-26T17:30:39.000Z | countries/models.py | dokterbob/django-countries | 3e12f7d01b76aabd8ea214b8591618322c293aa2 | [
"BSD-3-Clause"
] | null | null | null | countries/models.py | dokterbob/django-countries | 3e12f7d01b76aabd8ea214b8591618322c293aa2 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext, ugettext_lazy as _
class Country( models.Model ):
"""
International Organization for Standardization (ISO) 3166-1 Country list
Instance Variables:
iso -- ISO 3166-1 alpha-2
name -- Official country names (in all caps)... | 37.952381 | 80 | 0.676286 | 216 | 1,594 | 4.875 | 0.5 | 0.019943 | 0.015195 | 0.037987 | 0.043685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.247177 | 1,594 | 41 | 81 | 38.878049 | 0.856667 | 0.498118 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ef8872cd7b0f4f213fe9f2fdcbbe7c109bf4fc0 | 1,647 | py | Python | examples/message_dataframe.py | raipc/atsd-api-python | 4dfa123bf99381ec8d2a0d58d60571ddf5583c65 | [
"Apache-2.0"
] | 20 | 2015-04-15T21:43:56.000Z | 2019-12-16T13:34:08.000Z | examples/message_dataframe.py | raipc/atsd-api-python | 4dfa123bf99381ec8d2a0d58d60571ddf5583c65 | [
"Apache-2.0"
] | 34 | 2017-09-20T11:31:27.000Z | 2021-06-16T15:12:56.000Z | examples/message_dataframe.py | raipc/atsd-api-python | 4dfa123bf99381ec8d2a0d58d60571ddf5583c65 | [
"Apache-2.0"
] | 8 | 2016-07-19T15:31:49.000Z | 2020-01-02T17:29:11.000Z | #!/usr/bin/env python
from atsd_client import connect, connect_url
from atsd_client.models import EntityFilter, DateFilter, MessageQuery
from atsd_client.services import MessageService
'''
Query messages matching specified entity, type, source and date interval and convert results into a DataFrame.
'''
# Connect to ... | 40.170732 | 112 | 0.668488 | 209 | 1,647 | 5.162679 | 0.54067 | 0.027804 | 0.050973 | 0.035218 | 0.092678 | 0.092678 | 0.092678 | 0.092678 | 0.092678 | 0.092678 | 0 | 0.076251 | 0.23558 | 1,647 | 40 | 113 | 41.175 | 0.780778 | 0.433515 | 0 | 0 | 0 | 0 | 0.173101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.1875 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4eff1b4d7c9ea2a0cbe498b6e4f8b338ead2a894 | 2,305 | py | Python | roles/old/collectd/files/cuda_collectd.py | remcovergoossen/deepops | 52577cddabfcb317a833c0e89386d428625ae16a | [
"BSD-3-Clause"
] | 1 | 2020-05-24T16:15:52.000Z | 2020-05-24T16:15:52.000Z | roles/old/collectd/files/cuda_collectd.py | remcovergoossen/deepops | 52577cddabfcb317a833c0e89386d428625ae16a | [
"BSD-3-Clause"
] | 2 | 2019-06-14T19:59:52.000Z | 2019-07-12T00:22:56.000Z | roles/old/collectd/files/cuda_collectd.py | remcovergoossen/deepops | 52577cddabfcb317a833c0e89386d428625ae16a | [
"BSD-3-Clause"
] | 1 | 2019-07-11T16:56:38.000Z | 2019-07-11T16:56:38.000Z | #!/usr/bin/env python
# Type needs to exist in: /usr/share/collectd/types.db
import collectd
import subprocess
import xml.etree.ElementTree as ET
def read(data=None):
vl = collectd.Values(type='gauge')
vl.plugin = 'cuda'
out = subprocess.check_output(['nvidia-smi', '-q', '-x'])
root ... | 41.160714 | 100 | 0.578308 | 287 | 2,305 | 4.529617 | 0.285714 | 0.075385 | 0.107692 | 0.124615 | 0.607692 | 0.575385 | 0.469231 | 0.425385 | 0.373077 | 0.173077 | 0 | 0.01028 | 0.240347 | 2,305 | 55 | 101 | 41.909091 | 0.732153 | 0.03167 | 0 | 0.083333 | 0 | 0 | 0.173991 | 0.040359 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f601c0c70c2ac858bbc051b83710ebc6c021e6a5 | 697 | py | Python | web/tests/test_categorization.py | zeyuyun1/word-embeddings-benchmarks | 3586675b8fc5c83c615d8227e6a2eacab59a7b4f | [
"MIT"
] | 416 | 2015-12-28T18:09:22.000Z | 2022-03-22T07:46:35.000Z | web/tests/test_categorization.py | zeyuyun1/word-embeddings-benchmarks | 3586675b8fc5c83c615d8227e6a2eacab59a7b4f | [
"MIT"
] | 55 | 2016-04-07T07:23:57.000Z | 2021-01-04T14:09:03.000Z | web/tests/test_categorization.py | zeyuyun1/word-embeddings-benchmarks | 3586675b8fc5c83c615d8227e6a2eacab59a7b4f | [
"MIT"
] | 120 | 2016-04-14T00:42:28.000Z | 2022-03-17T14:19:21.000Z | import numpy as np
from web.evaluate import calculate_purity, evaluate_categorization
from web.embedding import Embedding
from web.datasets.utils import _fetch_file
from web.datasets.categorization import fetch_ESSLI_2c
def test_purity():
y_true = np.array([1,1,2,2,3])
y_pred = np.array([2,2,2,2,1])
assert... | 41 | 86 | 0.737446 | 115 | 697 | 4.286957 | 0.486957 | 0.056795 | 0.060852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0.133429 | 697 | 17 | 87 | 41 | 0.763245 | 0 | 0 | 0 | 0 | 0.066667 | 0.116046 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f6067cd2d6820ce875458f9e8a97cb84e0bff65e | 906 | py | Python | setup.py | ahzeeshan/sitator | bb00d87177b1a1b087ccc645b3e8c48de62f46c3 | [
"MIT"
] | null | null | null | setup.py | ahzeeshan/sitator | bb00d87177b1a1b087ccc645b3e8c48de62f46c3 | [
"MIT"
] | null | null | null | setup.py | ahzeeshan/sitator | bb00d87177b1a1b087ccc645b3e8c48de62f46c3 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from Cython.Build import cythonize
import numpy as np
setup(name = 'sitator',
version = '1.0.1',
description = 'Unsupervised landmark analysis for jump detection in molecular dynamics simulations.',
download_url = "https://github.com/Linux-cpp-lisp/sitator"... | 26.647059 | 107 | 0.564018 | 88 | 906 | 5.693182 | 0.795455 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009554 | 0.306843 | 906 | 33 | 108 | 27.454545 | 0.788217 | 0 | 0 | 0 | 0 | 0 | 0.317881 | 0.030905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.09375 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f607af435ab66690afc73b9503fe0499ffefd429 | 767 | py | Python | 1001-1100/1080-Max Area of Island/1080-Max Area of Island.py | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 1001-1100/1080-Max Area of Island/1080-Max Area of Island.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 1001-1100/1080-Max Area of Island/1080-Max Area of Island.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution:
"""
@param grid: a 2D array
@return: the maximum area of an island in the given 2D array
"""
def maxAreaOfIsland(self, grid):
# Write your code here
maxArea = 0
m = len(grid)
n = len(grid[0])
def dfs(r, c):
if grid[r][c] == 0:
... | 29.5 | 67 | 0.421121 | 106 | 767 | 3.04717 | 0.415094 | 0.03096 | 0.037152 | 0.043344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035885 | 0.45502 | 767 | 25 | 68 | 30.68 | 0.736842 | 0.138201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f6099e2b981928ae33093ef4bd91eab0f0e8b9e7 | 884 | py | Python | md.py | rozeroze/asterisk | 9b02fe7672bb36019cc981ff9b5e11c3efd2c561 | [
"MIT"
] | null | null | null | md.py | rozeroze/asterisk | 9b02fe7672bb36019cc981ff9b5e11c3efd2c561 | [
"MIT"
] | 1 | 2018-09-10T03:49:42.000Z | 2018-09-10T03:49:42.000Z | md.py | rozeroze/asterisk | 9b02fe7672bb36019cc981ff9b5e11c3efd2c561 | [
"MIT"
] | null | null | null | import re
"""
Summary: Markdown to Html Converter
Author: rozeroze
"""
"""
TODO: filepathをもらって、読込を行う関数の定義
TODO: 改行毎のリストではなく、空行毎の段落で操作
"""
# _sample (markdown) {{{
_sample = '''
### title-test
> this is description
##### list 1
* test1
* test2
* test2-1
* test2-2
* test3
##### list 2
- test
- test
- te... | 13.19403 | 64 | 0.557692 | 117 | 884 | 3.957265 | 0.504274 | 0.043197 | 0.038877 | 0.043197 | 0.060475 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022489 | 0.245475 | 884 | 66 | 65 | 13.393939 | 0.671664 | 0.029412 | 0 | 0.078947 | 0 | 0 | 0.29533 | 0.03022 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.078947 | false | 0.026316 | 0.026316 | 0 | 0.210526 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f60ff9ca884421fdd613022c22ebbd8299781b54 | 358 | py | Python | app/core/migrations/0003_auto_20200124_2045.py | aprezcuba24/django_test | a95ee68b08d7db75fac3e427ac3be7cccb984bf4 | [
"MIT"
] | null | null | null | app/core/migrations/0003_auto_20200124_2045.py | aprezcuba24/django_test | a95ee68b08d7db75fac3e427ac3be7cccb984bf4 | [
"MIT"
] | null | null | null | app/core/migrations/0003_auto_20200124_2045.py | aprezcuba24/django_test | a95ee68b08d7db75fac3e427ac3be7cccb984bf4 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-01-24 20:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_board_user'),
]
operations = [
migrations.AlterField(
model_name='card',
name='name',
field... | 18.842105 | 47 | 0.569832 | 38 | 358 | 5.289474 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.310056 | 358 | 18 | 48 | 19.888889 | 0.736842 | 0.125698 | 0 | 0 | 1 | 0 | 0.086817 | 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 |
f61745aa86533833a7bcd621d10f8ed318ff5992 | 5,513 | py | Python | src/old-verbio/selection.py | jasondraether/verbio | 0db543ebdee05e5cc24556d2239b7eaf215361a2 | [
"MIT"
] | null | null | null | src/old-verbio/selection.py | jasondraether/verbio | 0db543ebdee05e5cc24556d2239b7eaf215361a2 | [
"MIT"
] | null | null | null | src/old-verbio/selection.py | jasondraether/verbio | 0db543ebdee05e5cc24556d2239b7eaf215361a2 | [
"MIT"
] | null | null | null | import pandas as pd
from scipy import stats
from sklearn.svm import LinearSVC
from sklearn.feature_selection import SelectFromModel
import numpy as np
import preprocessing
def select_by_LASSO(df, target_key, feature_keys=[]):
# scikit-learn recommends using LinearSVC, but this can be experimented on
dropped_keys ... | 40.240876 | 106 | 0.747687 | 868 | 5,513 | 4.609447 | 0.221198 | 0.049488 | 0.023994 | 0.028493 | 0.698075 | 0.677081 | 0.596601 | 0.581105 | 0.581105 | 0.581105 | 0 | 0.003968 | 0.177217 | 5,513 | 136 | 107 | 40.536765 | 0.878086 | 0.575367 | 0 | 0.352941 | 0 | 0 | 0.016136 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.078431 | false | 0.019608 | 0.117647 | 0 | 0.254902 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f61dfbb3c8aa2daf4b50ec9efaf21394147135d8 | 1,044 | py | Python | src/Python/301-400/383.RansomNote.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 2 | 2018-05-03T07:50:03.000Z | 2018-06-17T04:32:13.000Z | src/Python/301-400/383.RansomNote.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | null | null | null | src/Python/301-400/383.RansomNote.py | Peefy/PeefyLeetCode | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | [
"Apache-2.0"
] | 3 | 2018-11-09T14:18:11.000Z | 2021-11-17T15:23:52.000Z |
class Solution:
def canConstruct(self, ransomNote, magazine):
"""
:type ransomNote: str
:type magazine: str
:rtype: bool
"""
ransomNote = list(ransomNote)
magazine = list(magazine)
r_len = len(ransomNote)
m_len = len(magazine)
if r_len... | 27.473684 | 92 | 0.51341 | 103 | 1,044 | 5.038835 | 0.359223 | 0.038536 | 0.192678 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010836 | 0.381226 | 1,044 | 37 | 93 | 28.216216 | 0.79257 | 0.051724 | 0 | 0.133333 | 0 | 0 | 0.111697 | 0.084299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.033333 | 0 | 0 | 0.166667 | 0.133333 | 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 |
f6207bc7d67228591c3e8c1330425fded64e3939 | 781 | py | Python | flatlander/test/observations/normal_tree_test.py | wullli/flatlander | 2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad | [
"MIT"
] | 3 | 2020-12-30T04:18:42.000Z | 2022-03-17T13:15:30.000Z | flatlander/test/observations/normal_tree_test.py | wullli/flatlander | 2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad | [
"MIT"
] | null | null | null | flatlander/test/observations/normal_tree_test.py | wullli/flatlander | 2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import numpy.testing as npt
from flatlander.envs.observations.positional_tree_obs import PositionalTreeObservation
from flatlander.envs.observations.tree_obs import TreeObservation
from flatlander.test.observations.dummy_tree_builder import DummyBuilder
class PositionalTreeObserva... | 26.931034 | 86 | 0.677337 | 95 | 781 | 5.4 | 0.515789 | 0.068226 | 0.081871 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014516 | 0.206146 | 781 | 28 | 87 | 27.892857 | 0.812903 | 0.049936 | 0 | 0 | 0 | 0 | 0.055152 | 0.033382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.642857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f62309117bb5ddf54e58ab42c56de3cdab69b244 | 746 | py | Python | omni_reports/facebook_reports/fields.py | paretogroup/omni-reports | 563febd7044cdf988d704019ae5fd114cfd824d3 | [
"MIT"
] | 24 | 2020-09-09T20:57:36.000Z | 2022-03-13T17:32:41.000Z | omni_reports/facebook_reports/fields.py | paretogroup/omni-reports | 563febd7044cdf988d704019ae5fd114cfd824d3 | [
"MIT"
] | 13 | 2020-09-01T19:34:24.000Z | 2021-03-31T19:58:53.000Z | omni_reports/facebook_reports/fields.py | paretogroup/omni-reports | 563febd7044cdf988d704019ae5fd114cfd824d3 | [
"MIT"
] | null | null | null | from omni_reports.client.fields import (
ReportField, AttributeReportField,
SegmentReportField, MetricReportField
)
FACEBOOK_OPERATORS_MAP = {
'equals': 'EQUAL',
'not_equals': 'NOT_EQUALS',
'in': 'IN',
'not_in': 'NOT_IN',
}
class FacebookReportField(ReportField):
def __init__(self, *args,... | 24.064516 | 78 | 0.75067 | 69 | 746 | 7.768116 | 0.478261 | 0.05597 | 0.083955 | 0.074627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151475 | 746 | 30 | 79 | 24.866667 | 0.846761 | 0 | 0 | 0.15 | 0 | 0 | 0.063003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6235969dcca12ff049eab78cbd05cacfc46e958 | 360 | py | Python | app/settings.py | poiley/take-note | d06c504f217cc9c8b001671c75e107d991e18848 | [
"MIT"
] | null | null | null | app/settings.py | poiley/take-note | d06c504f217cc9c8b001671c75e107d991e18848 | [
"MIT"
] | 2 | 2020-02-23T01:03:53.000Z | 2020-02-23T01:03:54.000Z | app/settings.py | poiley/take-note | d06c504f217cc9c8b001671c75e107d991e18848 | [
"MIT"
] | null | null | null | """Settings configuration - Configuration for environment variables can go in here."""
import os
SECRET_KEY = 'hello world'
ENV = os.getenv('FLASK_ENV', default='production')
DEBUG = ENV == 'development'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(os.path.dirname(os.pa... | 40 | 115 | 0.75 | 46 | 360 | 5.652174 | 0.76087 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 360 | 9 | 115 | 40 | 0.802469 | 0.222222 | 0 | 0 | 0 | 0 | 0.232727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
f62837c1b206ef406d502f2fc2538d5a2be10cbf | 4,005 | py | Python | topintersections/checkin.py | fchapoton/mgn | 9b0245e1f41aa08a19f7f332ef29415e8a66bf76 | [
"MIT"
] | null | null | null | topintersections/checkin.py | fchapoton/mgn | 9b0245e1f41aa08a19f7f332ef29415e8a66bf76 | [
"MIT"
] | 7 | 2020-03-17T18:07:48.000Z | 2021-03-19T12:54:49.000Z | topintersections/checkin.py | fchapoton/mgn | 9b0245e1f41aa08a19f7f332ef29415e8a66bf76 | [
"MIT"
] | 1 | 2020-02-20T09:28:51.000Z | 2020-02-20T09:28:51.000Z | """
This is very useful for debugging recursive programs. It is not a part of the intersection theory code.
"""
level = 0
def checkin(func):
def checkin_func(*args):
global level
print "." * level + "Entering {0} with arguments {1}".format(func.__name__, args)
level += 1
value... | 30.572519 | 117 | 0.542322 | 489 | 4,005 | 4.276074 | 0.243354 | 0.030607 | 0.040172 | 0.043042 | 0.401243 | 0.401243 | 0.401243 | 0.401243 | 0.401243 | 0.401243 | 0 | 0.013623 | 0.321848 | 4,005 | 130 | 118 | 30.807692 | 0.756259 | 0.097628 | 0 | 0.37234 | 0 | 0 | 0.08207 | 0.007149 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010638 | null | null | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f629cc4262a65f61216697ca15ae5cec32eecef3 | 502 | py | Python | PCA/data_highdimensional.py | jayshonzs/ESL | 2b51b1e01cb204d17588b7a2a8f765daa0a1e0c5 | [
"MIT"
] | 9 | 2016-09-26T15:56:16.000Z | 2019-10-21T05:59:14.000Z | PCA/data_highdimensional.py | jayshonzs/ESL | 2b51b1e01cb204d17588b7a2a8f765daa0a1e0c5 | [
"MIT"
] | null | null | null | PCA/data_highdimensional.py | jayshonzs/ESL | 2b51b1e01cb204d17588b7a2a8f765daa0a1e0c5 | [
"MIT"
] | 3 | 2016-08-15T00:18:22.000Z | 2019-02-28T14:54:55.000Z | '''
Created on 2014-8-28
@author: xiajie
'''
import numpy as np
def centering(X):
N = len(X)
D = len(X[0])
centered = np.zeros((N, D))
mean = np.mean(X, axis=0)
for i in range(N):
centered[i] = X[i] - mean
return centered
def eigen_decomposition(X):
cov = X.dot(np.transpose(X))
... | 17.310345 | 33 | 0.571713 | 84 | 502 | 3.285714 | 0.5 | 0.028986 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024457 | 0.266932 | 502 | 28 | 34 | 17.928571 | 0.725543 | 0.073705 | 0 | 0 | 0 | 0 | 0.017505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.052632 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f62e3fe430b2cfec2aac774ddcbebda16fadda82 | 806 | py | Python | lec5.py | Lauren-Poirier/IA-241-github | 7060aefddd3252a7baf113f9ef269ea471729114 | [
"MIT"
] | null | null | null | lec5.py | Lauren-Poirier/IA-241-github | 7060aefddd3252a7baf113f9ef269ea471729114 | [
"MIT"
] | null | null | null | lec5.py | Lauren-Poirier/IA-241-github | 7060aefddd3252a7baf113f9ef269ea471729114 | [
"MIT"
] | null | null | null | '''
lec5
if statement
'''
import this
print (1+2)
print ([1, 2, 3,
4, 5, 6])
m = 1\
+1
print (m)
a = [1,2,3]
b = [1,2,3]
print(id([1,2,3]))
print(id(a))
print(id(b))
print (a==b)
print (a is b)
x = None
print(id(None))
print(id(x))
print(x==None)
print(x is None)
y = []
print(y == None)
print(y is None)
print(Tr... | 10.891892 | 28 | 0.540943 | 163 | 806 | 2.674847 | 0.190184 | 0.165138 | 0.027523 | 0.061927 | 0.126147 | 0.080275 | 0.055046 | 0 | 0 | 0 | 0 | 0.088424 | 0.228288 | 806 | 74 | 29 | 10.891892 | 0.61254 | 0.021092 | 0 | 0.192982 | 0 | 0 | 0.057545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.017544 | 0.649123 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f631153e817c093255836be33e8a05ace7477789 | 1,943 | py | Python | drake/src/drake/ocaml/menhir.py | infinit/elle | a8154593c42743f45b9df09daf62b44630c24a02 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | drake/src/drake/ocaml/menhir.py | mefyl/elle | a8154593c42743f45b9df09daf62b44630c24a02 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | drake/src/drake/ocaml/menhir.py | mefyl/elle | a8154593c42743f45b9df09daf62b44630c24a02 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | # Copyright (C) 2019, Quentin "mefyl" Hocquet
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
# See the LICENSE file for more information.
'''OCaml menhir parser generator sup... | 27.757143 | 89 | 0.700463 | 239 | 1,943 | 5.464435 | 0.389121 | 0.061256 | 0.061256 | 0.045942 | 0.039816 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0.17859 | 1,943 | 69 | 90 | 28.15942 | 0.815789 | 0.308801 | 0 | 0.108108 | 0 | 0 | 0.028549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f6323ed6d801e4929f3814eafa95bdc148ab7d19 | 1,788 | py | Python | mallenom/staffing/urls.py | crowmurk/mallenom | c85bba2e657965879e6fac18bb762ca739ff4d98 | [
"MIT"
] | null | null | null | mallenom/staffing/urls.py | crowmurk/mallenom | c85bba2e657965879e6fac18bb762ca739ff4d98 | [
"MIT"
] | 9 | 2020-02-12T01:04:30.000Z | 2022-02-10T09:22:09.000Z | mallenom/staffing/urls.py | crowmurk/mallenom | c85bba2e657965879e6fac18bb762ca739ff4d98 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import permission_required
from django.urls import path, include
from . import views
app_name = 'staffing'
department = [
path('', views.DepartmentList.as_view(), name='list'),
path('create/', permission_required('is_superuser')(views.DepartmentCreate.as_view()), name='cr... | 47.052632 | 118 | 0.700224 | 206 | 1,788 | 5.907767 | 0.218447 | 0.073952 | 0.123254 | 0.214462 | 0.535744 | 0.486442 | 0.420707 | 0.420707 | 0.366475 | 0.366475 | 0 | 0 | 0.092282 | 1,788 | 37 | 119 | 48.324324 | 0.749846 | 0 | 0 | 0 | 0 | 0 | 0.228188 | 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 |
f6345d329e085d9ff037c1be5008ed7d246218c9 | 362 | py | Python | main.py | leferrad/rl-3 | b8cd81efc0d2619a31790d5e919c44fa1526d344 | [
"BSD-3-Clause"
] | null | null | null | main.py | leferrad/rl-3 | b8cd81efc0d2619a31790d5e919c44fa1526d344 | [
"BSD-3-Clause"
] | null | null | null | main.py | leferrad/rl-3 | b8cd81efc0d2619a31790d5e919c44fa1526d344 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
__author__ = 'leferrad'
import argparse
import sys
import time
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-src', '--source', dest='source', type=int,
default=0, help='Device index of the ca... | 16.454545 | 70 | 0.607735 | 42 | 362 | 4.904762 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.226519 | 362 | 21 | 71 | 17.238095 | 0.728571 | 0.116022 | 0 | 0 | 0 | 0 | 0.197411 | 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 |
f634fb0dab24918ae8e65e225e26578799559ff2 | 1,214 | py | Python | nxt/nxt_python/sensor_tests/color_sensor_test.py | spotrh/rpihacks | d46b8206821c7a27b40ff56077418bb6fff60e56 | [
"CC-BY-3.0",
"Unlicense",
"MIT"
] | 18 | 2015-01-05T15:02:23.000Z | 2021-06-16T19:24:42.000Z | nxt/nxt_python/sensor_tests/color_sensor_test.py | spotrh/rpihacks | d46b8206821c7a27b40ff56077418bb6fff60e56 | [
"CC-BY-3.0",
"Unlicense",
"MIT"
] | 1 | 2015-04-01T12:02:57.000Z | 2015-04-01T12:02:57.000Z | nxt/nxt_python/sensor_tests/color_sensor_test.py | spotrh/rpihacks | d46b8206821c7a27b40ff56077418bb6fff60e56 | [
"CC-BY-3.0",
"Unlicense",
"MIT"
] | 12 | 2015-01-08T13:02:29.000Z | 2020-06-14T09:19:11.000Z | #!/usr/bin/env python
import roslib; roslib.load_manifest("nxt_python")
import rospy
import time
import nxt.locator
from nxt.sensor import *
def test_sensors(b):
rospy.init_node('test_sensor')
cs = ColorSensor(b, PORT_1)
print "This is the color sensor test make sure that your color sensor is ... | 26.391304 | 102 | 0.626853 | 177 | 1,214 | 4.175141 | 0.367232 | 0.073072 | 0.067659 | 0.101489 | 0.265223 | 0.17862 | 0.17862 | 0.17862 | 0.17862 | 0.17862 | 0 | 0.019502 | 0.239703 | 1,214 | 45 | 103 | 26.977778 | 0.781148 | 0.016474 | 0 | 0.25641 | 0 | 0 | 0.184409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.128205 | null | null | 0.282051 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f641a53a9a93def2a10b6aabcd9612d4630ff33d | 1,204 | py | Python | src/Interview_exp/contests/bi_weekly/24/MinStartValuePositive.py | cool-dude/leetcode | 87bfed73dbdc058f191ab5d4a2f55e2ce602e5cb | [
"MIT"
] | null | null | null | src/Interview_exp/contests/bi_weekly/24/MinStartValuePositive.py | cool-dude/leetcode | 87bfed73dbdc058f191ab5d4a2f55e2ce602e5cb | [
"MIT"
] | null | null | null | src/Interview_exp/contests/bi_weekly/24/MinStartValuePositive.py | cool-dude/leetcode | 87bfed73dbdc058f191ab5d4a2f55e2ce602e5cb | [
"MIT"
] | null | null | null | '''
LC1413: Minimum Value to Get Positive Step by Step Sum
Given an array of integers nums, you start
with an initial positive value startValue.
In each iteration, you calculate the step by
step sum of startValue plus elements in nums (from left to right).
Return the minimum positive value of startValue
such that the s... | 31.684211 | 66 | 0.713455 | 209 | 1,204 | 4.110048 | 0.444976 | 0.027939 | 0.046566 | 0.060536 | 0.057043 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039874 | 0.208472 | 1,204 | 38 | 67 | 31.684211 | 0.86149 | 0.841362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f646ff47da8d12e0f31f64ee9993c7ea14a6e932 | 6,700 | py | Python | pysnmp-with-texts/BNET-ATM-ATOM-AUG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/BNET-ATM-ATOM-AUG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/BNET-ATM-ATOM-AUG-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BNET-ATM-ATOM-AUG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BNET-ATM-ATOM-AUG-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:40:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 124.074074 | 577 | 0.774328 | 752 | 6,700 | 6.898936 | 0.275266 | 0.050887 | 0.089052 | 0.009252 | 0.384156 | 0.218581 | 0.167695 | 0.167695 | 0.122205 | 0.122205 | 0 | 0.048613 | 0.085075 | 6,700 | 53 | 578 | 126.415094 | 0.797716 | 0.050149 | 0 | 0 | 0 | 0.021739 | 0.275688 | 0.027695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.23913 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6488650fd42c353e91d3c9e7cc3d0129d336337 | 7,551 | py | Python | melime/generators/vae_gen.py | elian204/melime | aef885fa4b6b02f7bf7294140d78a85fe546b622 | [
"MIT"
] | null | null | null | melime/generators/vae_gen.py | elian204/melime | aef885fa4b6b02f7bf7294140d78a85fe546b622 | [
"MIT"
] | null | null | null | melime/generators/vae_gen.py | elian204/melime | aef885fa4b6b02f7bf7294140d78a85fe546b622 | [
"MIT"
] | null | null | null | import torch
import torch.utils.data
from torch import nn, optim
from torch.nn import functional
from melime.generators.gen_base import GenBase
class VAEGen(GenBase):
def __init__(self, input_dim=None, verbose=False, model=None, **kwargs):
super().__init__()
if model is None:
self.mod... | 37.197044 | 116 | 0.59065 | 1,033 | 7,551 | 4.111326 | 0.210068 | 0.04874 | 0.031081 | 0.020014 | 0.27125 | 0.222745 | 0.134683 | 0.111608 | 0.067342 | 0.067342 | 0 | 0.017041 | 0.292809 | 7,551 | 202 | 117 | 37.381188 | 0.778277 | 0.060389 | 0 | 0.167742 | 0 | 0.006452 | 0.058176 | 0.018215 | 0 | 0 | 0 | 0.004951 | 0 | 0 | null | null | 0.006452 | 0.032258 | null | null | 0.045161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f64ca02e5d2b4998b337ad8b775d24b35cb91e7e | 1,516 | py | Python | sum-stdin.py | macgrrl/sum-stdin | ce104f4ad7be69aa3981eaffa581393a8ba6427c | [
"MIT"
] | null | null | null | sum-stdin.py | macgrrl/sum-stdin | ce104f4ad7be69aa3981eaffa581393a8ba6427c | [
"MIT"
] | null | null | null | sum-stdin.py | macgrrl/sum-stdin | ce104f4ad7be69aa3981eaffa581393a8ba6427c | [
"MIT"
] | null | null | null | import locale
import string
import sys
# global variables
# default symbols
currency_symbol = '$'
thousands_separator_symbol = ','
decimal_point_symbol = '.'
# global functions
def remove_symbols(s):
"""
clear out the input string of currency and thousands separator symbols, but keep the decimal point
... | 29.153846 | 102 | 0.665567 | 198 | 1,516 | 4.969697 | 0.409091 | 0.014228 | 0.045732 | 0.065041 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001675 | 0.212401 | 1,516 | 51 | 103 | 29.72549 | 0.822446 | 0.240765 | 0 | 0.076923 | 0 | 0 | 0.067524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f64cbe472401ad75945bedbb78964b2cb3627500 | 354 | py | Python | examples/custom_form.py | BenediktPrusas/streamlit-pydantic | f8fa45762cb39c689519101df9aa078c872eba6a | [
"MIT"
] | 62 | 2021-07-10T12:11:44.000Z | 2022-03-23T21:16:38.000Z | examples/custom_form.py | TangleSpace/streamlit-pydantic | 1afd4e3eb245f39aef6e6bbd786ef123762ec258 | [
"MIT"
] | 6 | 2021-07-10T14:52:43.000Z | 2022-03-16T12:51:47.000Z | examples/custom_form.py | TangleSpace/streamlit-pydantic | 1afd4e3eb245f39aef6e6bbd786ef123762ec258 | [
"MIT"
] | 7 | 2021-07-10T12:12:36.000Z | 2022-02-21T05:01:51.000Z | import streamlit as st
from pydantic import BaseModel
import streamlit_pydantic as sp
class ExampleModel(BaseModel):
some_text: str
some_number: int = 10
some_boolean: bool = True
with st.form(key="pydantic_form"):
sp.pydantic_input(key="my_input_model", model=ExampleModel)
submit_button = st.f... | 22.125 | 63 | 0.757062 | 50 | 354 | 5.14 | 0.56 | 0.116732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.158192 | 354 | 15 | 64 | 23.6 | 0.855705 | 0 | 0 | 0 | 0 | 0 | 0.09322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f64e7272223dba8c3d990451d1ddf317da6cd26d | 8,423 | py | Python | src/calibrate_stereo_pair.py | jwalthour/calibrationfinder | bc7853ea5553a73442f486c08a62bbb3aa1a1d86 | [
"Apache-2.0"
] | null | null | null | src/calibrate_stereo_pair.py | jwalthour/calibrationfinder | bc7853ea5553a73442f486c08a62bbb3aa1a1d86 | [
"Apache-2.0"
] | null | null | null | src/calibrate_stereo_pair.py | jwalthour/calibrationfinder | bc7853ea5553a73442f486c08a62bbb3aa1a1d86 | [
"Apache-2.0"
] | null | null | null | """
User-interactive stereo calibration capture and computation application
"""
import logging
logger = logging.getLogger(__name__)
logger.debug('Importing')
from datetime import datetime
import sys
import os
import cv2
import argparse
import numpy as np
from stereo_calibrator import StereoCalibrator
from cal_target_de... | 49.840237 | 244 | 0.638134 | 1,026 | 8,423 | 5.184211 | 0.295322 | 0.01692 | 0.031961 | 0.006768 | 0.185749 | 0.141004 | 0.134612 | 0.124459 | 0.107915 | 0.085354 | 0 | 0.011349 | 0.246824 | 8,423 | 168 | 245 | 50.136905 | 0.827081 | 0.143061 | 0 | 0.165354 | 0 | 0.031496 | 0.295029 | 0.00754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007874 | false | 0.055118 | 0.07874 | 0 | 0.110236 | 0.165354 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f654b359d2b88d4d41f968cbf9f8c22b0b45c8ca | 1,955 | py | Python | src/pyams_catalog/events.py | Py-AMS/pyams-catalog | fa225fda2a0584713efed562afb396fd144d9711 | [
"ZPL-2.1"
] | null | null | null | src/pyams_catalog/events.py | Py-AMS/pyams-catalog | fa225fda2a0584713efed562afb396fd144d9711 | [
"ZPL-2.1"
] | null | null | null | src/pyams_catalog/events.py | Py-AMS/pyams-catalog | fa225fda2a0584713efed562afb396fd144d9711 | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 35.545455 | 89 | 0.790281 | 249 | 1,955 | 6.068273 | 0.481928 | 0.04368 | 0.039709 | 0.057578 | 0.160159 | 0.090668 | 0.090668 | 0.067505 | 0.067505 | 0 | 0 | 0.00597 | 0.143223 | 1,955 | 54 | 90 | 36.203704 | 0.896119 | 0.448082 | 0 | 0.15 | 0 | 0 | 0.015474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.35 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f65669b8d742b25691e3f539bd879ced7b212d43 | 1,807 | py | Python | PlayChess/__init__.py | ShavImigne/PlayChess | 1eb0dcaf1d58b02bdc880f8e51857a87696ee461 | [
"MIT"
] | null | null | null | PlayChess/__init__.py | ShavImigne/PlayChess | 1eb0dcaf1d58b02bdc880f8e51857a87696ee461 | [
"MIT"
] | null | null | null | PlayChess/__init__.py | ShavImigne/PlayChess | 1eb0dcaf1d58b02bdc880f8e51857a87696ee461 | [
"MIT"
] | null | null | null | """
Makes the web application modular!
"""
import os
from flask import Flask
from flask_socketio import SocketIO
from .config import configurations
app = Flask(__name__)
# Read from environment file and load local env variables
if not os.environ.get('Production', False) and not os.environ.get('TRAVIS', False):
... | 31.701754 | 89 | 0.76591 | 261 | 1,807 | 5.149425 | 0.383142 | 0.087054 | 0.066964 | 0.070685 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000632 | 0.123962 | 1,807 | 57 | 90 | 31.701754 | 0.848389 | 0.18207 | 0 | 0 | 0 | 0 | 0.093707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.032258 | 0.419355 | 0 | 0.419355 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f65789e681b61f6a8daf66b809b187d5af24bfff | 3,442 | py | Python | 5° Período/Estrutura de Dados I/Introducao_Classes/revisaoclasses.py | sullyvan15/UVV | 2390cc2881792d036db1d8b098fe366f47cd98c3 | [
"MIT"
] | null | null | null | 5° Período/Estrutura de Dados I/Introducao_Classes/revisaoclasses.py | sullyvan15/UVV | 2390cc2881792d036db1d8b098fe366f47cd98c3 | [
"MIT"
] | 1 | 2020-10-07T23:33:21.000Z | 2020-10-08T01:15:11.000Z | 5° Período/Estrutura de Dados I/Introducao_Classes/revisaoclasses.py | sullyvan15/Universidade-Vila-Velha | 2390cc2881792d036db1d8b098fe366f47cd98c3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""RevisaoClasses.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1lDygHNUeYn_S-ZxGAF0cZ0G_mvdWkUZ7
"""
# https://docs.python.org/3.6/tutorial/controlflow.html
import math
import sys
import random
from datetime import dat... | 27.31746 | 98 | 0.616793 | 541 | 3,442 | 3.767098 | 0.330869 | 0.039745 | 0.026497 | 0.030913 | 0.109912 | 0.060844 | 0.060844 | 0.060844 | 0.060844 | 0.060844 | 0 | 0.042658 | 0.230389 | 3,442 | 126 | 99 | 27.31746 | 0.726689 | 0.552586 | 0 | 0 | 1 | 0 | 0.089235 | 0 | 0 | 0 | 0 | 0.007937 | 0 | 1 | 0.1875 | false | 0 | 0.083333 | 0.083333 | 0.395833 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f65f9c0545232ee31c3035b10f38b1f1396dc92f | 219 | py | Python | loops/beginWith.py | Awes35/python-functions | f6484cddcf0144e627b8219272d964bf039d1e53 | [
"MIT"
] | null | null | null | loops/beginWith.py | Awes35/python-functions | f6484cddcf0144e627b8219272d964bf039d1e53 | [
"MIT"
] | null | null | null | loops/beginWith.py | Awes35/python-functions | f6484cddcf0144e627b8219272d964bf039d1e53 | [
"MIT"
] | null | null | null | #author Kollen Gruizenga
#function to return all words in list L who start with letter "let"
def beginWith(L, let):
result = []
for x in L:
if (x[0] == let):
result += [x]
return result
| 21.9 | 67 | 0.584475 | 33 | 219 | 3.878788 | 0.69697 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.310502 | 219 | 9 | 68 | 24.333333 | 0.84106 | 0.406393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 |
f666f5bdc872841aa30b398d48f7ac8b5b9fb2c8 | 1,093 | py | Python | flib/random_binomial.py | rldotai/flib | 695e875f708b0b71c9b005fdf85c066e4ffb7c0f | [
"BSD-3-Clause"
] | 1 | 2017-02-01T00:34:23.000Z | 2017-02-01T00:34:23.000Z | flib/random_binomial.py | rldotai/flib | 695e875f708b0b71c9b005fdf85c066e4ffb7c0f | [
"BSD-3-Clause"
] | null | null | null | flib/random_binomial.py | rldotai/flib | 695e875f708b0b71c9b005fdf85c066e4ffb7c0f | [
"BSD-3-Clause"
] | null | null | null | """
Implementation of a feature function which, given a hashable input, maps that
input to a random binary vector with a specified number of nonzero entries.
That is, the number of nonzero entries is fixed, but which entries are zero and
which entries are one is chosen randomly.
"""
import numpy as np
from flib.abstr... | 30.361111 | 85 | 0.630375 | 152 | 1,093 | 4.427632 | 0.460526 | 0.081724 | 0.053492 | 0.065379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001266 | 0.277219 | 1,093 | 35 | 86 | 31.228571 | 0.850633 | 0.252516 | 0 | 0.173913 | 0 | 0 | 0.009889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f674b2a08c8281d0ebf3ae59647eebac9f478dec | 4,898 | py | Python | getm/concurrent/buffers.py | DataBiosphere/getm | b5007fe6d0f8a302a6cf63ae871648bfde927ce0 | [
"MIT"
] | 2 | 2021-09-28T19:34:02.000Z | 2022-02-01T01:53:39.000Z | getm/concurrent/buffers.py | xbrianh/streaming-urls | b5007fe6d0f8a302a6cf63ae871648bfde927ce0 | [
"MIT"
] | 1 | 2022-03-10T21:20:23.000Z | 2022-03-10T21:20:23.000Z | getm/concurrent/buffers.py | DataBiosphere/getm | b5007fe6d0f8a302a6cf63ae871648bfde927ce0 | [
"MIT"
] | null | null | null | import struct
try:
from multiprocessing.shared_memory import SharedMemory # type: ignore
except ImportError:
from getm.concurrent.shared_memory_37.shared_memory import SharedMemory # type: ignore
from typing import ByteString, Optional, Tuple
# TODO
# Assignment to memoryview slices annoys mypy
# Remove igno... | 35.23741 | 149 | 0.637811 | 640 | 4,898 | 4.60625 | 0.190625 | 0.101764 | 0.119403 | 0.05156 | 0.562076 | 0.532564 | 0.464722 | 0.416214 | 0.355495 | 0.296472 | 0 | 0.011028 | 0.259494 | 4,898 | 138 | 150 | 35.492754 | 0.801765 | 0.083912 | 0 | 0.439252 | 0 | 0 | 0.018345 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 1 | 0.205607 | false | 0 | 0.046729 | 0.056075 | 0.383178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f67723c381713f425ab1f6f66eedaff5b317a88e | 2,856 | py | Python | Lista6/MinimosQuadrados.py | thiago9864/calculo_numerico | e4b6f059bdb31460130093bd446fb3ea906dc542 | [
"MIT"
] | null | null | null | Lista6/MinimosQuadrados.py | thiago9864/calculo_numerico | e4b6f059bdb31460130093bd446fb3ea906dc542 | [
"MIT"
] | null | null | null | Lista6/MinimosQuadrados.py | thiago9864/calculo_numerico | e4b6f059bdb31460130093bd446fb3ea906dc542 | [
"MIT"
] | 1 | 2018-08-25T14:30:48.000Z | 2018-08-25T14:30:48.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 3 21:06:23 2018
@author: Thiago Almeida
"""
import numpy as np
from metodos_numericos.LU import LU
from metodos_numericos.Gauss import Gauss
#from Utils import Utils
#from TabelaGauss import TabelaGauss
from TabelaGaussLegendre import TabelaGaussL... | 24.20339 | 85 | 0.47444 | 368 | 2,856 | 3.67663 | 0.271739 | 0.020695 | 0.035477 | 0.03252 | 0.284553 | 0.235772 | 0.175905 | 0.175905 | 0.175905 | 0.175905 | 0 | 0.028425 | 0.384104 | 2,856 | 118 | 86 | 24.20339 | 0.740762 | 0.19993 | 0 | 0.395833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0 | 1 | 0.1875 | false | 0 | 0.083333 | 0.104167 | 0.479167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f67b257f3e478ac6adb0517b2c3265f474c8ea48 | 3,891 | py | Python | database/database.py | kalaLokia/fbr_bom_app | ea6be55d20f93ff87b29aeef13206d1d348553a0 | [
"MIT"
] | null | null | null | database/database.py | kalaLokia/fbr_bom_app | ea6be55d20f93ff87b29aeef13206d1d348553a0 | [
"MIT"
] | null | null | null | database/database.py | kalaLokia/fbr_bom_app | ea6be55d20f93ff87b29aeef13206d1d348553a0 | [
"MIT"
] | null | null | null | """
Models in the database
"""
import sqlalchemy as sa
from sqlalchemy.engine import URL
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.sql.schema import UniqueConstraint, PrimaryKeyConstraint # , ForeignKey
from settings import DB_CONN_STR
from . import (
SQL_T_ARTICLE,
SQL_T_BOM,... | 27.20979 | 88 | 0.645849 | 551 | 3,891 | 4.346642 | 0.277677 | 0.120251 | 0.129436 | 0.127766 | 0.31524 | 0.150313 | 0.095198 | 0.095198 | 0.066806 | 0 | 0 | 0.01976 | 0.206631 | 3,891 | 142 | 89 | 27.401408 | 0.756074 | 0.069905 | 0 | 0.104167 | 0 | 0 | 0.058084 | 0.009495 | 0 | 0 | 0 | 0.007042 | 0 | 1 | 0.072917 | false | 0 | 0.0625 | 0.052083 | 0.697917 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9c9153c848d3a118f8a9933487c71daa14cb157b | 728 | py | Python | lambdata_ethanmjansen/plant_care.py | ethanmjansen/lambdata | 6948afa7492e8a735fe9d5a587211644d834e9ca | [
"MIT"
] | null | null | null | lambdata_ethanmjansen/plant_care.py | ethanmjansen/lambdata | 6948afa7492e8a735fe9d5a587211644d834e9ca | [
"MIT"
] | 4 | 2020-03-24T18:23:52.000Z | 2021-06-02T01:16:54.000Z | lambdata_ethanmjansen/plant_care.py | ethanmjansen/lambdata | 6948afa7492e8a735fe9d5a587211644d834e9ca | [
"MIT"
] | 1 | 2020-01-14T21:32:13.000Z | 2020-01-14T21:32:13.000Z | '''
Class to represent plant care.
'''
class Plant_Care:
'''
General representation of abstract plant care.
'''
def __init__(self,
times_monthly=2,
plant_type='Cacti',
soil_moisutre='Arid'):
self.times_monthly = times_monthly
self.plan... | 25.103448 | 66 | 0.572802 | 82 | 728 | 4.853659 | 0.390244 | 0.180905 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002041 | 0.326923 | 728 | 29 | 67 | 25.103448 | 0.810204 | 0.215659 | 0 | 0 | 0 | 0 | 0.099404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c92c0a589928b988b773615ae9e2ce59658d067 | 8,128 | py | Python | gmusicapi/test/utils.py | odiroot/Unofficial-Google-Music-API | d192908ec636c4a252ffe232d873924eb56e47df | [
"BSD-3-Clause"
] | 1 | 2016-11-01T15:24:21.000Z | 2016-11-01T15:24:21.000Z | gmusicapi/test/utils.py | odiroot/Unofficial-Google-Music-API | d192908ec636c4a252ffe232d873924eb56e47df | [
"BSD-3-Clause"
] | null | null | null | gmusicapi/test/utils.py | odiroot/Unofficial-Google-Music-API | d192908ec636c4a252ffe232d873924eb56e47df | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2012, Simon Weber
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this ... | 33.311475 | 103 | 0.653297 | 1,137 | 8,128 | 4.545295 | 0.343008 | 0.006192 | 0.004644 | 0.009288 | 0.067144 | 0.053793 | 0.043731 | 0.043731 | 0.043731 | 0.043731 | 0 | 0.008292 | 0.25812 | 8,128 | 243 | 104 | 33.44856 | 0.848756 | 0.305364 | 0 | 0.05 | 0 | 0 | 0.096669 | 0.010233 | 0 | 0 | 0 | 0 | 0.016667 | 0 | null | null | 0.025 | 0.083333 | null | null | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c97e927d0a9360156bb2439506ab1f3ec52e36a | 2,036 | py | Python | codes/test2.py | wandrewjam/machine-learning | 530c559abd631d509eb847880927cdcb92ab8243 | [
"MIT"
] | null | null | null | codes/test2.py | wandrewjam/machine-learning | 530c559abd631d509eb847880927cdcb92ab8243 | [
"MIT"
] | null | null | null | codes/test2.py | wandrewjam/machine-learning | 530c559abd631d509eb847880927cdcb92ab8243 | [
"MIT"
] | null | null | null | import numpy as np
np.random.seed(1000)
def target_line():
''' generate two points, construct two equations , solve for W of the target line'''
w0 = 1
point_1 , point_2 = np.random.uniform(-1., 1., size=(2,2))
# A*W = b
A = [point_1 , point_2]
b= [-w0,-w0]
w1, w2 = np.linalg.solve(A, b)
... | 21.659574 | 88 | 0.576621 | 338 | 2,036 | 3.284024 | 0.254438 | 0.05045 | 0.010811 | 0.021622 | 0.158559 | 0.111712 | 0.025225 | 0.025225 | 0.025225 | 0 | 0 | 0.034741 | 0.278978 | 2,036 | 93 | 89 | 21.892473 | 0.72139 | 0.081041 | 0 | 0.066667 | 1 | 0 | 0.007559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.016667 | 0 | 0.216667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c98ef85a480010dee9c9ef95c3d96d5678d78a8 | 787 | py | Python | ansible_taskrunner/libs/formatting/__init__.py | berttejeda/ansible-taskrunner | b0cf8a56caa57ebe6dcc4da022f05c464f6a09f2 | [
"MIT"
] | 17 | 2019-08-03T06:46:11.000Z | 2022-01-25T17:17:56.000Z | ansible_taskrunner/libs/formatting/__init__.py | berttejeda/ansible-taskrunner | b0cf8a56caa57ebe6dcc4da022f05c464f6a09f2 | [
"MIT"
] | null | null | null | ansible_taskrunner/libs/formatting/__init__.py | berttejeda/ansible-taskrunner | b0cf8a56caa57ebe6dcc4da022f05c464f6a09f2 | [
"MIT"
] | 1 | 2019-08-03T15:58:47.000Z | 2019-08-03T15:58:47.000Z | # Defaults
ansi_colors = """
RESTORE=$(echo -en '\033[0m')
RED=$(echo -en '\033[00;31m')
GREEN=$(echo -en '\033[00;32m')
YELLOW=$(echo -en '\033[00;33m')
BLUE=$(echo -en '\033[00;34m')
MAGENTA=$(echo -en '\033[00;35m')
PURPLE=$(echo -en '\033[00;35m')
CYAN=$(echo -en '\033[00;36m')
LIGHTGRAY=$(echo -en '\033[00;37m')
"... | 25.387097 | 95 | 0.622618 | 122 | 787 | 3.885246 | 0.540984 | 0.113924 | 0.170886 | 0.185654 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08982 | 0.151207 | 787 | 30 | 96 | 26.233333 | 0.61976 | 0.120712 | 0 | 0 | 0 | 0.045455 | 0.529155 | 0.036443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0.045455 | 0.272727 | 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 |
9c9de080eed757ce8c682e8a5f55d37aff4f1eaf | 666 | py | Python | example.py | mshindo/nsxv-api-client | 268c006799b609288c82f234b7af6d53ad3ab572 | [
"Apache-1.1"
] | 4 | 2016-03-22T08:00:52.000Z | 2020-01-03T09:09:39.000Z | example.py | mshindo/nsxv-api-client | 268c006799b609288c82f234b7af6d53ad3ab572 | [
"Apache-1.1"
] | null | null | null | example.py | mshindo/nsxv-api-client | 268c006799b609288c82f234b7af6d53ad3ab572 | [
"Apache-1.1"
] | 1 | 2019-05-23T08:48:16.000Z | 2019-05-23T08:48:16.000Z | from nsxv import *
import datetime
nsx = Nsx('https://10.152.64.231:4443', 'admin', 'VMware1!')
n_sec = 1500
rules_per_sec = 20
print
print '***** Teting creating %d sections with %d rules each *****' % (n_sec, rules_per_sec)
print
nsx.deleteAllFirewallLayer3Sections(False)
last = datetime.datetime.now()
for sectio... | 30.272727 | 113 | 0.6997 | 92 | 666 | 4.967391 | 0.478261 | 0.026258 | 0.07221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041071 | 0.159159 | 666 | 21 | 114 | 31.714286 | 0.775 | 0 | 0 | 0.117647 | 0 | 0 | 0.219549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9cab2d2e5a01c48c580791e468c8a3ddd166e877 | 624 | py | Python | django-rgd-imagery/rgd_imagery/rest/download.py | ResonantGeoData/ResonantGeoData | 72b3d4085cc5700d0ad5556f31b7eb96ed2d3b8a | [
"Apache-2.0"
] | 40 | 2020-05-07T17:15:26.000Z | 2022-02-27T14:45:04.000Z | django-rgd-imagery/rgd_imagery/rest/download.py | ResonantGeoData/ResonantGeoData | 72b3d4085cc5700d0ad5556f31b7eb96ed2d3b8a | [
"Apache-2.0"
] | 408 | 2020-05-07T15:10:35.000Z | 2022-03-30T03:08:47.000Z | django-rgd-imagery/rgd_imagery/rest/download.py | ResonantGeoData/ResonantGeoData | 72b3d4085cc5700d0ad5556f31b7eb96ed2d3b8a | [
"Apache-2.0"
] | 3 | 2021-04-12T20:16:22.000Z | 2021-06-22T14:03:46.000Z | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from drf_yasg.utils import swagger_auto_schema
from rest_framework.decorators import api_view
from rgd.permissions import check_read_perm
from rgd_imagery import models
@swagger_auto_schema(
method='GET',
operation_sum... | 32.842105 | 92 | 0.801282 | 90 | 624 | 5.3 | 0.533333 | 0.041929 | 0.046122 | 0.0587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012844 | 0.126603 | 624 | 18 | 93 | 34.666667 | 0.862385 | 0 | 0 | 0 | 0 | 0 | 0.116987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9cac6896ecfe2ad025f3d6fc490b67b1232518d1 | 2,883 | py | Python | plot_afpo_rainbow_waterfall.py | mec-lab/data_science_toolkit | a6726d11da1d779bb1793301207beb7549e1c2c2 | [
"MIT"
] | null | null | null | plot_afpo_rainbow_waterfall.py | mec-lab/data_science_toolkit | a6726d11da1d779bb1793301207beb7549e1c2c2 | [
"MIT"
] | null | null | null | plot_afpo_rainbow_waterfall.py | mec-lab/data_science_toolkit | a6726d11da1d779bb1793301207beb7549e1c2c2 | [
"MIT"
] | null | null | null | from glob import glob
import matplotlib.pyplot as plt
"""
What is AFPO?
In the optimization algorithm AFPO (Age-Fitness Pareto Optimization), randomly generated candidate designs (solutions)
are injected into the population each generation with age zero. Every generation, modified copies are made of each
design in ... | 36.961538 | 121 | 0.695456 | 470 | 2,883 | 4.134043 | 0.368085 | 0.027792 | 0.037056 | 0.053525 | 0.103448 | 0.065878 | 0.047349 | 0.023675 | 0 | 0 | 0 | 0.01392 | 0.227541 | 2,883 | 77 | 122 | 37.441558 | 0.858554 | 0.098855 | 0 | 0 | 1 | 0 | 0.041889 | 0.020564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0 | 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 |
9cafc7b294d1047423f69d1b4b9601ee2377db91 | 8,196 | py | Python | components/reports/report_traits.py | Sitelink3D-v2-Developer/sitelink3dv2-examples | d9d832a2b488969e4998c5158ec39385b70d88e8 | [
"Apache-2.0"
] | 1 | 2021-10-19T00:08:24.000Z | 2021-10-19T00:08:24.000Z | components/reports/report_traits.py | Sitelink3D-v2-Developer/sitelink3dv2-examples | d9d832a2b488969e4998c5158ec39385b70d88e8 | [
"Apache-2.0"
] | 1 | 2021-05-14T05:23:03.000Z | 2021-05-14T05:23:03.000Z | components/reports/report_traits.py | Sitelink3D-v2-Developer/sitelink3dv2-examples | d9d832a2b488969e4998c5158ec39385b70d88e8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import re
import requests
session = requests.Session()
class ReportTraitsBase():
def __init__(self, a_results_header, a_start_unix_time_millis, a_end_unix_time_millis, a_report_type, a_result_targets):
self.m_results_header = a_results_header
self.m_report_type = a_report_type
... | 57.314685 | 1,227 | 0.70571 | 1,101 | 8,196 | 4.7802 | 0.118074 | 0.060802 | 0.106403 | 0.062702 | 0.637469 | 0.564127 | 0.533916 | 0.517766 | 0.499145 | 0.474254 | 0 | 0.002349 | 0.168863 | 8,196 | 142 | 1,228 | 57.71831 | 0.770258 | 0.001952 | 0 | 0.381818 | 0 | 0 | 0.159799 | 0.082528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.009091 | 0.018182 | 0.036364 | 0.390909 | 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 |
9cb0c32fc096ad3ab964463eb12b920b565266dd | 317 | py | Python | doc/example_code/car_table_page.py | dkotschessa/PyPCOM | d6713c53fa613ca5ec0b2916282965a147888a87 | [
"MIT"
] | 7 | 2019-02-01T08:52:52.000Z | 2020-06-24T16:35:52.000Z | doc/example_code/car_table_page.py | dkotschessa/PyPCOM | d6713c53fa613ca5ec0b2916282965a147888a87 | [
"MIT"
] | 3 | 2018-12-12T23:04:21.000Z | 2020-01-22T22:09:34.000Z | doc/example_code/car_table_page.py | dkotschessa/PyPCOM | d6713c53fa613ca5ec0b2916282965a147888a87 | [
"MIT"
] | 4 | 2018-12-12T22:44:40.000Z | 2020-04-10T14:25:42.000Z | class CarTablePage(Page):
add_car_form = AddCarForm()
car_table = CarTable()
def add_car(self, car: Car):
self.add_car_form.add_car(car)
def remove_car(self, car: Car):
self.car_table.remove_car(car)
@property
def cars(self) -> List[Car]:
return self.car_table.cars
| 22.642857 | 38 | 0.643533 | 46 | 317 | 4.195652 | 0.347826 | 0.124352 | 0.15544 | 0.134715 | 0.176166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239748 | 317 | 13 | 39 | 24.384615 | 0.80083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9cb7cb1491fa76c6c6d0a049fd04f0fbad192174 | 1,608 | py | Python | struts2/S2-033_PoC.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | struts2/S2-033_PoC.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | struts2/S2-033_PoC.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# S2-033 POC
# Author: CF_HB
# 时间:2016年6月6日
# 漏洞编号:CVE-2016-3087 (S2-033)
# 漏洞详情:http://blog.nsfocus.net/apache-struts2-vulnerability-technical-analysis-protection-scheme-s2-033/
import requests
import argparse
banner = u'''\
# S2-033 POC
# Author:CF_HB
# 时间:2016年6月6日
#使用... | 31.529412 | 286 | 0.651119 | 224 | 1,608 | 4.580357 | 0.535714 | 0.02924 | 0.023392 | 0.02729 | 0.188109 | 0.14425 | 0.14425 | 0.14425 | 0.087719 | 0.087719 | 0 | 0.084496 | 0.197761 | 1,608 | 50 | 287 | 32.16 | 0.710853 | 0.141169 | 0 | 0.205128 | 0 | 0.025641 | 0.394028 | 0.195193 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.205128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9cbec6371b694eb0081014b81bdbb4cad96c54cc | 372 | py | Python | setup.py | karol-brejna-i/excel-schedule-scrapper | 5ce926f4848950793c4d63a5f84130edfdfaab4b | [
"Apache-2.0"
] | null | null | null | setup.py | karol-brejna-i/excel-schedule-scrapper | 5ce926f4848950793c4d63a5f84130edfdfaab4b | [
"Apache-2.0"
] | null | null | null | setup.py | karol-brejna-i/excel-schedule-scrapper | 5ce926f4848950793c4d63a5f84130edfdfaab4b | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='scrapper',
version='0.1.0',
packages=['scrapper', 'scrapper.model', 'scrapper.utils', 'scrapper.walker'],
url='https://github.com/karol-brejna-i/excel-schedule-scrapper',
license='Apache 2.0',
author='gruby',
author_email='',
description='For pe... | 28.615385 | 81 | 0.674731 | 47 | 372 | 5.319149 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015974 | 0.158602 | 372 | 12 | 82 | 31 | 0.782748 | 0 | 0 | 0 | 0 | 0 | 0.510753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cc52947dfef6e10b4c478735dc1041df9202512 | 6,832 | py | Python | golmibot/golmibot.py | kfriedrichs/slurk-bots | 97b5e5bfe2ca9d2e43788430dfb5a17b6d7dc327 | [
"BSD-3-Clause"
] | null | null | null | golmibot/golmibot.py | kfriedrichs/slurk-bots | 97b5e5bfe2ca9d2e43788430dfb5a17b6d7dc327 | [
"BSD-3-Clause"
] | null | null | null | golmibot/golmibot.py | kfriedrichs/slurk-bots | 97b5e5bfe2ca9d2e43788430dfb5a17b6d7dc327 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import logging
import os
import requests
import socketio
LOG = logging.getLogger(__name__)
#TODO: need to delete rooms again
class GolmiBot:
"""
Helps set up a Golmi game within slurk.
"""
sio = socketio.Client(logger=True)
golmi_sio = socketio.Client(logger=True)
task_id = ... | 39.953216 | 95 | 0.528542 | 769 | 6,832 | 4.56827 | 0.252276 | 0.018787 | 0.031882 | 0.030743 | 0.158269 | 0.089952 | 0.051808 | 0 | 0 | 0 | 0 | 0.00023 | 0.363437 | 6,832 | 170 | 96 | 40.188235 | 0.807542 | 0.193208 | 0 | 0.117117 | 0 | 0 | 0.215999 | 0.043566 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.045045 | false | 0.009009 | 0.045045 | 0 | 0.126126 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9cc55549a0a1f9e8f815c8f11e2f1a19a1fcce0a | 538 | py | Python | ExpManager/admin.py | cisp/MyCMS | c4938d24ff4654d56e730e928d27ed41a75d0e9a | [
"MIT"
] | null | null | null | ExpManager/admin.py | cisp/MyCMS | c4938d24ff4654d56e730e928d27ed41a75d0e9a | [
"MIT"
] | null | null | null | ExpManager/admin.py | cisp/MyCMS | c4938d24ff4654d56e730e928d27ed41a75d0e9a | [
"MIT"
] | 1 | 2022-03-24T13:52:59.000Z | 2022-03-24T13:52:59.000Z | from django.contrib import admin
from ExpManager.models import ExpManager
from django.db import transaction
# Register your models here.
admin.site.site_header = '土拨鼠自动化扫描系统' # 设置header
admin.site.site_title = '土拨鼠自动化扫描系统' # 设置title
@admin.register(ExpManager)
class ExpManagerAdmin(admin.ModelAdmin):
lis... | 35.866667 | 89 | 0.711896 | 60 | 538 | 6.283333 | 0.6 | 0.05305 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154275 | 538 | 14 | 90 | 38.428571 | 0.828571 | 0.079926 | 0 | 0 | 0 | 0 | 0.199593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9cc5aee098a9e9392b68651f7459d6140f599484 | 2,613 | py | Python | pygazette/models.py | kudanai/PyGazette | 12ff73bc74e75fe92f4104305efe21944a1d7af0 | [
"MIT"
] | 2 | 2020-11-21T20:56:18.000Z | 2020-11-22T14:27:44.000Z | pygazette/models.py | kudanai/PyGazette | 12ff73bc74e75fe92f4104305efe21944a1d7af0 | [
"MIT"
] | null | null | null | pygazette/models.py | kudanai/PyGazette | 12ff73bc74e75fe92f4104305efe21944a1d7af0 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from typing import List, Optional
from datetime import datetime, date
from enum import Enum
class IulaanType(Enum):
MASAKKAIY: str = 'masakkaiy'
GANNAN: str = 'gannan-beynunvaa'
KUYYAH_DHINUN: str = 'kuyyah-dhinun'
KUYYAH_HIFUN: str = 'kuyyah-hifun'
VAZEEFA: str = 'v... | 24.194444 | 60 | 0.687333 | 302 | 2,613 | 5.788079 | 0.350993 | 0.016018 | 0.022311 | 0.030892 | 0.025172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220436 | 2,613 | 107 | 61 | 24.420561 | 0.858125 | 0.011864 | 0 | 0.095238 | 0 | 0 | 0.136895 | 0.018331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ccd721e5ab0e0b71966c28ff920b3b4ac5a10a1 | 1,497 | py | Python | foobar/ml_preprocessing/timeseries_preprocessing.py | brijow/foobar-gamestop | 54302ab330ff5a2099c7300f943f271ea9d30b52 | [
"MIT"
] | null | null | null | foobar/ml_preprocessing/timeseries_preprocessing.py | brijow/foobar-gamestop | 54302ab330ff5a2099c7300f943f271ea9d30b52 | [
"MIT"
] | null | null | null | foobar/ml_preprocessing/timeseries_preprocessing.py | brijow/foobar-gamestop | 54302ab330ff5a2099c7300f943f271ea9d30b52 | [
"MIT"
] | null | null | null | import torch
from torch.utils.data import TensorDataset, DataLoader
from sklearn.preprocessing import StandardScaler
# Generate time windows for time series forecasting with LSTM network
def generate_window(dataset, label, train_window, pred_horizon):
dataset_seq = []
size = len(dataset)
x_arr = []
y_... | 31.851064 | 88 | 0.700735 | 213 | 1,497 | 4.652582 | 0.319249 | 0.0555 | 0.060545 | 0.088799 | 0.12109 | 0.050454 | 0.050454 | 0 | 0 | 0 | 0 | 0.005046 | 0.205745 | 1,497 | 46 | 89 | 32.543478 | 0.828427 | 0.067468 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.314286 | 0 | 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 |
9ccd8ce07bdd7686b70cb36173b490caa65926a7 | 484 | py | Python | app/back/socket/ports/__init__.py | jgphilpott/polyplot | c46861174ee5881dadffbfb2278d555462523547 | [
"MIT"
] | 5 | 2021-05-17T14:17:14.000Z | 2021-12-14T12:54:32.000Z | app/back/socket/ports/__init__.py | jgphilpott/iGraph | 2a91ba57e4950856a83d3a109753f8f2badee829 | [
"MIT"
] | 8 | 2020-02-09T02:48:41.000Z | 2021-05-16T04:57:02.000Z | app/back/socket/ports/__init__.py | jgphilpott/iGraph | 2a91ba57e4950856a83d3a109753f8f2badee829 | [
"MIT"
] | 2 | 2016-09-12T03:48:16.000Z | 2019-05-04T14:15:19.000Z | from flask_socketio import emit
from back.mongo.data.collect.ports.mongo import find_port, find_ports
def connect_ports(app):
@app.on("get_port")
def get_port(query={}, filter={"_id": 0}):
emit("new_port", find_port(query, filter))
@app.on("get_ports")
def get_ports(query={}, filter={"_id":... | 30.25 | 112 | 0.659091 | 73 | 484 | 4.178082 | 0.438356 | 0.144262 | 0.052459 | 0.091803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012255 | 0.157025 | 484 | 15 | 113 | 32.266667 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.144628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 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 |
9ccdda0e2450704ee3e86703333805efc5fd9bc8 | 1,394 | py | Python | cybox/test/objects/unix_user_account_test.py | Mattlk13/python-cybox | ee82c7da40ca4638e3ca8d70766150c0dace1b55 | [
"BSD-3-Clause"
] | 40 | 2015-03-05T18:22:51.000Z | 2022-03-06T07:29:25.000Z | cybox/test/objects/unix_user_account_test.py | Mattlk13/python-cybox | ee82c7da40ca4638e3ca8d70766150c0dace1b55 | [
"BSD-3-Clause"
] | 106 | 2015-01-12T18:52:20.000Z | 2021-04-25T22:57:52.000Z | cybox/test/objects/unix_user_account_test.py | Mattlk13/python-cybox | ee82c7da40ca4638e3ca8d70766150c0dace1b55 | [
"BSD-3-Clause"
] | 30 | 2015-03-25T07:24:40.000Z | 2021-07-23T17:10:11.000Z | # Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import unittest
from mixbox.vendor.six import u
from cybox.objects.unix_user_account_object import UnixUserAccount
from cybox.test.objects import ObjectTestCase
class TestUnixUserAccount(ObjectTestCase, unittest... | 27.333333 | 66 | 0.568867 | 142 | 1,394 | 5.373239 | 0.65493 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036735 | 0.296987 | 1,394 | 50 | 67 | 27.88 | 0.741837 | 0.106169 | 0 | 0.052632 | 0 | 0 | 0.312651 | 0.04029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9ccee8523a176f9a337d04f415106f0986514d15 | 5,242 | py | Python | pyflycapture2_test.py | ianmalcolm/camera_calibration | a2338e4ec69769bbbcfd02f0e5e499011540462d | [
"MIT"
] | null | null | null | pyflycapture2_test.py | ianmalcolm/camera_calibration | a2338e4ec69769bbbcfd02f0e5e499011540462d | [
"MIT"
] | null | null | null | pyflycapture2_test.py | ianmalcolm/camera_calibration | a2338e4ec69769bbbcfd02f0e5e499011540462d | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy as np
import flycapture2 as fc2
import ctypes
import sys
import time
import cv2
def getBuildInfoStr(ver):
verStr = "FlyCapture2 library version: %d.%d.%d.%d" % \
(ver.major, ver.minor, ver.type, ver.build)
return verStr
def getCameraInfoStr(pCamInfo):
camInfoStr = "\n*** CAMERA IN... | 32.7625 | 107 | 0.715757 | 646 | 5,242 | 5.739938 | 0.272446 | 0.042071 | 0.021575 | 0.029666 | 0.208198 | 0.152913 | 0.148058 | 0.091424 | 0.091424 | 0.091424 | 0 | 0.037916 | 0.139641 | 5,242 | 159 | 108 | 32.968553 | 0.784257 | 0.044639 | 0 | 0.085938 | 0 | 0 | 0.1556 | 0.021 | 0 | 0 | 0.0008 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.023438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9cd01d072efaff3aaa03e149653e1fe2e56a0515 | 1,874 | py | Python | src/sensor/vl53l1x_sensor.py | mgfcf/tof-people-count | 630b52074b371674b1e924bbff721044ee8e41e7 | [
"MIT"
] | null | null | null | src/sensor/vl53l1x_sensor.py | mgfcf/tof-people-count | 630b52074b371674b1e924bbff721044ee8e41e7 | [
"MIT"
] | null | null | null | src/sensor/vl53l1x_sensor.py | mgfcf/tof-people-count | 630b52074b371674b1e924bbff721044ee8e41e7 | [
"MIT"
] | null | null | null | from sensor.tof_sensor import Directions, ToFSensor
import VL53L1X
# Reference: https://github.com/pimoroni/vl53l1x-python
#
# Left, right, top and bottom are relative to the SPAD matrix coordinates,
# which will be mirrored in real scene coordinates.
# (or even rotated, depending on the VM53L1X element alignment on t... | 28.830769 | 102 | 0.630736 | 231 | 1,874 | 4.948052 | 0.502165 | 0.069991 | 0.017498 | 0.031496 | 0.054243 | 0.054243 | 0 | 0 | 0 | 0 | 0 | 0.048423 | 0.272679 | 1,874 | 64 | 103 | 29.28125 | 0.790169 | 0.429562 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003868 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9cd239534828491ba55714c050a9310e99803ec6 | 1,784 | py | Python | timetracker/vms/migrations/0008_employee_client.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 1 | 2019-04-09T16:46:53.000Z | 2019-04-09T16:46:53.000Z | timetracker/vms/migrations/0008_employee_client.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 105 | 2018-10-12T17:57:20.000Z | 2020-06-05T19:35:21.000Z | timetracker/vms/migrations/0008_employee_client.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 1 | 2019-04-11T14:43:42.000Z | 2019-04-11T14:43:42.000Z | # Generated by Django 2.1.2 on 2018-10-24 22:41
from django.db import migrations, models
import django.db.models.deletion
def add_clients(apps, schema_editor):
"""
Use each employee's supervisor to assign their client company.
"""
Employee = apps.get_model('vms', 'Employee')
for emp in Employee.o... | 39.644444 | 283 | 0.672085 | 217 | 1,784 | 5.400922 | 0.400922 | 0.061433 | 0.047782 | 0.075085 | 0.474403 | 0.474403 | 0.422355 | 0.422355 | 0.383106 | 0.341297 | 0 | 0.013466 | 0.209081 | 1,784 | 44 | 284 | 40.545455 | 0.817151 | 0.110426 | 0 | 0.344828 | 1 | 0 | 0.205864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.206897 | 0 | 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 |
9cd27ed57ea034f3835d26d8d45622175c1c75b8 | 2,080 | py | Python | netbox_dns/models.py | hbasria/netbox-dns | ca6c715eee0e5a6b519906fae88c5d476c356a2d | [
"MIT"
] | null | null | null | netbox_dns/models.py | hbasria/netbox-dns | ca6c715eee0e5a6b519906fae88c5d476c356a2d | [
"MIT"
] | null | null | null | netbox_dns/models.py | hbasria/netbox-dns | ca6c715eee0e5a6b519906fae88c5d476c356a2d | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
from netbox.models import PrimaryModel, TaggableManager
from utilities.querysets import RestrictedQuerySet
class NameServer(PrimaryModel):
name = models.CharField(unique=True, max_length=255)
objects = RestrictedQuerySet.as_manager()
class Met... | 26.329114 | 86 | 0.653846 | 241 | 2,080 | 5.489627 | 0.311203 | 0.068027 | 0.043084 | 0.077098 | 0.496599 | 0.445956 | 0.388511 | 0.366591 | 0.304611 | 0.304611 | 0 | 0.010442 | 0.217308 | 2,080 | 78 | 87 | 26.666667 | 0.802211 | 0.015385 | 0 | 0.358491 | 0 | 0 | 0.093379 | 0.049407 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0.037736 | 0.075472 | 0.09434 | 0.849057 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9cd31c0ee810e1b64098499aefd2b06354ba842c | 1,447 | py | Python | e42.py | ZubinGou/Learn-Python3-The-Hard-Way | 63019ffcafaf4b649e6580bc9f99bb840d218ab6 | [
"MIT"
] | null | null | null | e42.py | ZubinGou/Learn-Python3-The-Hard-Way | 63019ffcafaf4b649e6580bc9f99bb840d218ab6 | [
"MIT"
] | null | null | null | e42.py | ZubinGou/Learn-Python3-The-Hard-Way | 63019ffcafaf4b649e6580bc9f99bb840d218ab6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2020-02-22 21:34:07
# @Author : ZubinGou (zebgou@gmail.com)
# @Link : https://github.com/ZubinGou
# @Version : $Id$
import os
# Animal is a object
class Animal(object):
pass
class Dog(Animal):
def __init__(self, name):
self.name = name... | 16.443182 | 44 | 0.61161 | 183 | 1,447 | 4.661202 | 0.387978 | 0.065651 | 0.077374 | 0.07034 | 0.106682 | 0.106682 | 0.106682 | 0.075029 | 0 | 0 | 0 | 0.019196 | 0.243953 | 1,447 | 87 | 45 | 16.632184 | 0.760512 | 0.145128 | 0 | 0.291667 | 0 | 0 | 0.078496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.020833 | 0 | 0.395833 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9cd63fe691cefb9a5565a074c6461e7d85029f6a | 5,196 | py | Python | ext/test_packetout.py | bopopescu/pox_metadata | 3a41f5370bfcc522cf6f5db2158713ce56b8cd2f | [
"Apache-2.0"
] | 1 | 2020-07-19T03:01:35.000Z | 2020-07-19T03:01:35.000Z | ext/test_packetout.py | bopopescu/pox_metadata | 3a41f5370bfcc522cf6f5db2158713ce56b8cd2f | [
"Apache-2.0"
] | null | null | null | ext/test_packetout.py | bopopescu/pox_metadata | 3a41f5370bfcc522cf6f5db2158713ce56b8cd2f | [
"Apache-2.0"
] | 1 | 2020-07-23T17:36:03.000Z | 2020-07-23T17:36:03.000Z | '''
Created on 2015.8.27
@author: shengrulee
'''
from pox.core import core
from pox.lib.revent.revent import EventMixin
import pox.openflow.libpof_02 as of
log = core.getLogger()
def _add_protocol(protocol_name, field_list):
"""
Define a new protocol, and save it to PMDatabase.
protocol_name: string... | 32.273292 | 129 | 0.668976 | 700 | 5,196 | 4.684286 | 0.204286 | 0.081122 | 0.034157 | 0.046356 | 0.329369 | 0.282098 | 0.229338 | 0.229338 | 0.229338 | 0.229338 | 0 | 0.045379 | 0.194188 | 5,196 | 160 | 130 | 32.475 | 0.73776 | 0.384911 | 0 | 0.16 | 0 | 0 | 0.111491 | 0 | 0 | 0 | 0.002052 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cdd8244746d910376c165ad101cb95420750a17 | 8,569 | py | Python | tests/handhistory/pkr_hands.py | VinQbator/poker | 0e7b75d279b15014d000a5390003095adba1e1ea | [
"MIT"
] | null | null | null | tests/handhistory/pkr_hands.py | VinQbator/poker | 0e7b75d279b15014d000a5390003095adba1e1ea | [
"MIT"
] | null | null | null | tests/handhistory/pkr_hands.py | VinQbator/poker | 0e7b75d279b15014d000a5390003095adba1e1ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import, division, print_function
HANDS = dict()
HANDS['holdem_full'] = """
Table #52121155 - Rapanui's Leela
Starting Hand #2433297728
Start time of hand: 05 Oct 2013 01:15:45
Last Hand #2433297369
Game Type: HOLD'EM
Limit Type: NO LIMIT
Table... | 22.97319 | 82 | 0.721438 | 1,593 | 8,569 | 3.866918 | 0.155681 | 0.017045 | 0.014286 | 0.019481 | 0.503896 | 0.431981 | 0.409416 | 0.333766 | 0.22013 | 0.193182 | 0 | 0.177743 | 0.1747 | 8,569 | 373 | 83 | 22.97319 | 0.693298 | 0.002451 | 0 | 0.441989 | 0 | 0 | 0.969463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002762 | 0 | 0.002762 | 0.002762 | 0 | 0 | 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 |
9cdea435ce8db8c46987e70107e015731e1c7da7 | 5,650 | py | Python | src/extras/gray2ind.py | pathak22/ccnn | aa3d3b2b0c194640fc2b887dbff04d9a5c032392 | [
"BSD-4-Clause-UC"
] | 69 | 2015-12-10T15:23:19.000Z | 2021-05-18T06:36:34.000Z | src/extras/gray2ind.py | chocl8camellia/ccnn | aa3d3b2b0c194640fc2b887dbff04d9a5c032392 | [
"BSD-4-Clause-UC"
] | 3 | 2016-05-31T19:31:31.000Z | 2018-07-25T09:14:11.000Z | src/extras/gray2ind.py | chocl8camellia/ccnn | aa3d3b2b0c194640fc2b887dbff04d9a5c032392 | [
"BSD-4-Clause-UC"
] | 30 | 2015-12-09T22:48:23.000Z | 2020-01-05T20:35:50.000Z | # --------------------------------------------------------
# CCNN
# Copyright (c) 2015 [See LICENSE file for details]
# Written by Deepak Pathak, Philipp Krahenbuhl
# --------------------------------------------------------
'''
- It is to be run after png2gray.py
- Converts the gray scale segmentation ground truth im... | 35.534591 | 156 | 0.578761 | 838 | 5,650 | 3.843675 | 0.218377 | 0.036945 | 0.07389 | 0.065197 | 0.635827 | 0.6172 | 0.6172 | 0.560075 | 0.560075 | 0.548898 | 0 | 0.045888 | 0.128319 | 5,650 | 158 | 157 | 35.759494 | 0.608122 | 0.515929 | 0 | 0.375 | 0 | 0 | 0.110718 | 0.050648 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9cdf0f40df0a3c5947f18ece704e2e3516c3c8ee | 362 | py | Python | AoC_Tag 04.py | Gravitar64/Advent-of-Code-2019 | bc51f984600440ef55e6203739362f3f3be29ec8 | [
"MIT"
] | 2 | 2021-03-01T23:27:36.000Z | 2021-03-01T23:27:58.000Z | AoC_Tag 04.py | Gravitar64/Advent-of-Code-2019 | bc51f984600440ef55e6203739362f3f3be29ec8 | [
"MIT"
] | null | null | null | AoC_Tag 04.py | Gravitar64/Advent-of-Code-2019 | bc51f984600440ef55e6203739362f3f3be29ec8 | [
"MIT"
] | 1 | 2019-12-30T18:18:16.000Z | 2019-12-30T18:18:16.000Z | range_von, range_bis = 357253,892943
lösung = 0
for password in range(range_von, range_bis):
text = str(password)
double = False
for x in range(5):
if text[x] == text[x+1]:
double = True
increasing = True
for x in range(5):
if text[x] > text[x+1]:
increasing = False
if double and increa... | 18.1 | 44 | 0.627072 | 57 | 362 | 3.912281 | 0.385965 | 0.089686 | 0.116592 | 0.143498 | 0.224215 | 0.224215 | 0.224215 | 0.224215 | 0.224215 | 0.224215 | 0 | 0.067164 | 0.259669 | 362 | 19 | 45 | 19.052632 | 0.764925 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9ce4311a1e7dfa44874612536e6c19b314c49de9 | 2,138 | py | Python | gmdb.py | jansc/gmdb | b1dad2fab667def1fe0d52bc5a31f2ddac3a5e53 | [
"MIT"
] | 3 | 2020-02-15T10:42:33.000Z | 2020-02-16T00:09:14.000Z | gmdb.py | jansc/gmdb | b1dad2fab667def1fe0d52bc5a31f2ddac3a5e53 | [
"MIT"
] | null | null | null | gmdb.py | jansc/gmdb | b1dad2fab667def1fe0d52bc5a31f2ddac3a5e53 | [
"MIT"
] | null | null | null | #!/var/gopher/cgi-bin/venv/bin/python3.7
import os
from sys import stdin
from imdb import IMDb
from pyfiglet import Figlet
from gopher_server.menu import Menu, MenuItem, InfoMenuItem
# Configuration: Change this to your needs
host = "jan.bio"
selector = "/cgi-bin/gmdb.py"
port = 70
def p(str):
""" Renders a stri... | 27.766234 | 89 | 0.579981 | 306 | 2,138 | 4.035948 | 0.408497 | 0.008097 | 0.041296 | 0.035628 | 0.032389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011097 | 0.241347 | 2,138 | 76 | 90 | 28.131579 | 0.750308 | 0.09261 | 0 | 0 | 0 | 0.017857 | 0.305974 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.017857 | false | 0 | 0.089286 | 0 | 0.107143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9ce516ea5120d386fdbf991c25e706420e430f9c | 1,379 | py | Python | rtsim/rtsim_test.py | FelixVi/Bedrock | 82072341902048e5b37022512909d209efb243d6 | [
"RSA-MD"
] | 17 | 2019-09-29T14:52:18.000Z | 2022-03-28T21:16:25.000Z | rtsim/rtsim_test.py | FelixVi/Bedrock | 82072341902048e5b37022512909d209efb243d6 | [
"RSA-MD"
] | null | null | null | rtsim/rtsim_test.py | FelixVi/Bedrock | 82072341902048e5b37022512909d209efb243d6 | [
"RSA-MD"
] | 4 | 2019-12-04T17:30:38.000Z | 2021-11-01T01:52:13.000Z | import numpy as np
import sys
from matplotlib import pyplot as plt
def read():
A = np.loadtxt('rtsim.dat')
cav = abs(A[:, 0] + 1j*A[:, 1])
fwd = abs(A[:, 2] + 1j*A[:, 3])
rfl = abs(A[:, 4] + 1j*A[:, 5])
return cav, fwd, rfl
def show(data):
cav, fwd, rfl = data
plt.plot(cav, label='cav')... | 22.983333 | 75 | 0.567803 | 196 | 1,379 | 3.846939 | 0.372449 | 0.04244 | 0.035809 | 0.059682 | 0.143236 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027108 | 0.277737 | 1,379 | 59 | 76 | 23.372881 | 0.72992 | 0 | 0 | 0.130435 | 0 | 0 | 0.076867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.065217 | 0.086957 | 0 | 0.23913 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9cfa4f4064cf29b359f6ffdd730a651257f637e6 | 2,157 | py | Python | extra/servers/memory_server.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 2,056 | 2018-03-17T01:46:40.000Z | 2022-03-31T20:06:48.000Z | extra/servers/memory_server.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 45 | 2018-05-15T08:50:51.000Z | 2022-01-01T10:51:40.000Z | extra/servers/memory_server.py | heinsm/qira | 3726403c4bf4a4f3cf74e1514001333b3fa0e6b4 | [
"MIT"
] | 365 | 2018-04-09T05:46:11.000Z | 2022-03-20T22:57:18.000Z | from qira_log import *
from flask import Flask
from flask.ext.socketio import SocketIO, emit
import base64
class Address:
def __init__(this):
this.backing = {}
def fetch(this, clnum):
# use binary search lol
while clnum >= 0:
if clnum in this.backing:
return this.backing[clnum]
cln... | 25.678571 | 75 | 0.609179 | 317 | 2,157 | 4.053628 | 0.350158 | 0.042023 | 0.014008 | 0.025681 | 0.103502 | 0.051362 | 0.051362 | 0 | 0 | 0 | 0 | 0.015729 | 0.233658 | 2,157 | 83 | 76 | 25.987952 | 0.761645 | 0.073713 | 0 | 0.089552 | 0 | 0 | 0.090498 | 0 | 0 | 0 | 0.002011 | 0 | 0 | 0 | null | null | 0 | 0.059701 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9cfdc50cbd2b770eb4dd5d9f1282287312c1dd61 | 1,755 | py | Python | sa/profiles/Planet/WGSD/profile.py | sbworth/getnoc | a9a5647df31822062db3db7afe7ae1c005d166f7 | [
"BSD-3-Clause"
] | null | null | null | sa/profiles/Planet/WGSD/profile.py | sbworth/getnoc | a9a5647df31822062db3db7afe7ae1c005d166f7 | [
"BSD-3-Clause"
] | null | null | null | sa/profiles/Planet/WGSD/profile.py | sbworth/getnoc | a9a5647df31822062db3db7afe7ae1c005d166f7 | [
"BSD-3-Clause"
] | null | null | null | # ---------------------------------------------------------------------
# Vendor: Planet
# OS: WGSD
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# N... | 31.909091 | 72 | 0.51396 | 187 | 1,755 | 4.684492 | 0.582888 | 0.015982 | 0.025114 | 0.038813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01107 | 0.22792 | 1,755 | 54 | 73 | 32.5 | 0.635424 | 0.239886 | 0 | 0 | 0 | 0 | 0.327653 | 0.03718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0.028571 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.