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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df51ec334550c49eb7790e3f18cf59ef7a93d0b4 | 1,379 | py | Python | __init__.py | MattDavies01/Rocket.PY | 1438438003189e7f5ed94c04b2cc32a0dad9251d | [
"Apache-2.0"
] | 1 | 2022-01-26T01:42:56.000Z | 2022-01-26T01:42:56.000Z | __init__.py | MattDavies01/Rocket.PY | 1438438003189e7f5ed94c04b2cc32a0dad9251d | [
"Apache-2.0"
] | 1 | 2022-01-26T01:46:47.000Z | 2022-01-26T01:46:47.000Z | __init__.py | MattDavies01/Rocket.py | 1438438003189e7f5ed94c04b2cc32a0dad9251d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
RocketPy is a trajectory simulation for High-Power Rocketry built by
Matthew Davies. The code allows for a complete 6 degrees of freedom simulation
of a rocket's flight trajectory, including high fidelity variable mass effects
as well as descent under parachutes. Weather conditions,... | 32.833333 | 81 | 0.788978 | 174 | 1,379 | 6.086207 | 0.643678 | 0.036827 | 0.028329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012163 | 0.165337 | 1,379 | 42 | 82 | 32.833333 | 0.907906 | 0.410442 | 0 | 0 | 0 | 0 | 0.162092 | 0.037909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.730769 | 0 | 0.730769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df52feb2c8a4c50aa8faf2b473e3313d1f9cf2d0 | 575 | py | Python | projects/webptspy/webpts/celery.py | codelieche/testing | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | 2 | 2017-08-10T03:40:22.000Z | 2017-08-17T13:20:16.000Z | projects/webptspy/webpts/celery.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | projects/webptspy/webpts/celery.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import absolute_import
import os
import django
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webpts.settings')
# django.setup()
# 可以在实例化Celery的时候传入broker、backend参数。也可以在settings中配置BROKER_URL
app = Celery('webpts')
''... | 23.958333 | 66 | 0.770435 | 79 | 575 | 5.405063 | 0.455696 | 0.046838 | 0.070258 | 0.098361 | 0.084309 | 0.084309 | 0.084309 | 0 | 0 | 0 | 0 | 0.043893 | 0.088696 | 575 | 23 | 67 | 25 | 0.770992 | 0.165217 | 0 | 0 | 0 | 0 | 0.194444 | 0.067901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
df555b49f5f72a7db5fe555788ce1f38e531867c | 223 | py | Python | output/models/nist_data/list_pkg/int_pkg/schema_instance/nistschema_sv_iv_list_int_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/int_pkg/schema_instance/nistschema_sv_iv_list_int_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/int_pkg/schema_instance/nistschema_sv_iv_list_int_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.int_pkg.schema_instance.nistschema_sv_iv_list_int_length_3_xsd.nistschema_sv_iv_list_int_length_3 import NistschemaSvIvListIntLength3
__all__ = [
"NistschemaSvIvListIntLength3",
]
| 37.166667 | 171 | 0.878924 | 30 | 223 | 5.833333 | 0.633333 | 0.137143 | 0.16 | 0.205714 | 0.32 | 0.32 | 0.32 | 0 | 0 | 0 | 0 | 0.019139 | 0.06278 | 223 | 5 | 172 | 44.6 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.125561 | 0.125561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df57af99392b30945522af21d7c8ec27e6ba04a0 | 510 | py | Python | w3resource/Basics-Part II/Example029.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | w3resource/Basics-Part II/Example029.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | w3resource/Basics-Part II/Example029.py | DanielPascualSenties/pythonw3 | f0355d1b640dec19e0b087797538204332111bb5 | [
"MIT"
] | null | null | null | def intersection(l1, l2):
res = [v for v in l1 if v in l2]
return res
def divide_into_primes(num, base=2, seq=None):
if seq is None:
seq = []
if num == 1:
return seq
for i in range(base, num+1):
if not num % i:
seq.append(i)
return divide_into_primes... | 20.4 | 57 | 0.613725 | 85 | 510 | 3.588235 | 0.447059 | 0.131148 | 0.209836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.278431 | 510 | 25 | 58 | 20.4 | 0.785326 | 0.086275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.277778 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df6660f379287cf464d9a84bf21b80fe9d3f01b0 | 1,953 | py | Python | WORC/addexceptions.py | MStarmans91/WORC | b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7 | [
"ECL-2.0",
"Apache-2.0"
] | 47 | 2018-01-28T14:08:15.000Z | 2022-03-24T16:10:07.000Z | WORC/addexceptions.py | JZK00/WORC | 14e8099835eccb35d49b52b97c0be64ecca3809c | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2018-08-28T13:32:57.000Z | 2020-10-26T16:35:59.000Z | WORC/addexceptions.py | JZK00/WORC | 14e8099835eccb35d49b52b97c0be64ecca3809c | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2017-11-13T10:53:36.000Z | 2022-03-18T17:02:04.000Z | #!/usr/bin/env python
# Copyright 2016-2021 Biomedical Imaging Group Rotterdam, Departments of
# Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obt... | 23.53012 | 76 | 0.711726 | 245 | 1,953 | 5.673469 | 0.55102 | 0.045324 | 0.032374 | 0.053957 | 0.082734 | 0.069065 | 0 | 0 | 0 | 0 | 0 | 0.007792 | 0.21147 | 1,953 | 82 | 77 | 23.817073 | 0.894805 | 0.662058 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0 | true | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
df75e5161c533e6c21f4518ff4a3f0ed8206ec41 | 218 | py | Python | python/set_add.py | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | python/set_add.py | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | python/set_add.py | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | s = set()
for _ in range(int(input())):
s.add(input())
print (len(s))
# one line solution
print ( len(set([str(input()) for _ in range(int(input()))])) )
# https://www.hackerrank.com/challenges/py-set-add/problem | 24.222222 | 63 | 0.642202 | 35 | 218 | 3.942857 | 0.6 | 0.072464 | 0.144928 | 0.188406 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133028 | 218 | 9 | 64 | 24.222222 | 0.730159 | 0.33945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
df89b1e6f91f3ef541b5cebb30e667ae39a8a923 | 418 | py | Python | example.py | Techno263/python-minecraft-data | 606353cb9ec8d9779a1e73d53f394abd023206d4 | [
"MIT"
] | null | null | null | example.py | Techno263/python-minecraft-data | 606353cb9ec8d9779a1e73d53f394abd023206d4 | [
"MIT"
] | null | null | null | example.py | Techno263/python-minecraft-data | 606353cb9ec8d9779a1e73d53f394abd023206d4 | [
"MIT"
] | null | null | null | import minecraft_data
# Java edition minecraft-data
mcd = minecraft_data("1.13")
print(mcd.version)
print(mcd.find_item_or_block(1))
print(mcd.find_item_or_block('stone'))
print(mcd.recipes['5'][0])
print(mcd.windows['minecraft:brewing_stand'])
print(mcd.effects_name['Haste'])
# Pocket Edition minecraft-data
mcd_... | 19.904762 | 45 | 0.760766 | 68 | 418 | 4.426471 | 0.382353 | 0.212625 | 0.099668 | 0.149502 | 0.23588 | 0.152824 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.076555 | 418 | 20 | 46 | 20.9 | 0.759067 | 0.136364 | 0 | 0 | 0 | 0 | 0.134078 | 0.064246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.727273 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
df8feb1f1dfe9e1d770e943eb47c7d02d485c406 | 12,139 | py | Python | yacht/config/proto/train_pb2.py | IusztinPaul/yacht | c68ab7c66bde860bb91534c29e97772ba328adb5 | [
"Apache-2.0"
] | 5 | 2021-09-03T10:16:50.000Z | 2022-02-28T07:32:43.000Z | yacht/config/proto/train_pb2.py | IusztinPaul/yacht | c68ab7c66bde860bb91534c29e97772ba328adb5 | [
"Apache-2.0"
] | null | null | null | yacht/config/proto/train_pb2.py | IusztinPaul/yacht | c68ab7c66bde860bb91534c29e97772ba328adb5 | [
"Apache-2.0"
] | 1 | 2022-03-05T16:06:46.000Z | 2022-03-05T16:06:46.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yacht/config/proto/train.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import ref... | 52.549784 | 1,235 | 0.747096 | 1,697 | 12,139 | 5.077195 | 0.123748 | 0.067781 | 0.05571 | 0.060353 | 0.697307 | 0.68071 | 0.634285 | 0.605153 | 0.558496 | 0.54805 | 0 | 0.04693 | 0.129335 | 12,139 | 230 | 1,236 | 52.778261 | 0.768285 | 0.019524 | 0 | 0.597156 | 1 | 0.004739 | 0.239156 | 0.20612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023697 | 0 | 0.023697 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10c3f4d00811536466a7b2e4cf932e6fb5628ba5 | 18,965 | py | Python | libra/proto/transaction_pb2.py | MaslDi/libra-client | 0983adfcb6787f7a16de4bf364cdf5596c183d88 | [
"MIT"
] | null | null | null | libra/proto/transaction_pb2.py | MaslDi/libra-client | 0983adfcb6787f7a16de4bf364cdf5596c183d88 | [
"MIT"
] | null | null | null | libra/proto/transaction_pb2.py | MaslDi/libra-client | 0983adfcb6787f7a16de4bf364cdf5596c183d88 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: transaction.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | 41.773128 | 1,930 | 0.76947 | 2,213 | 18,965 | 6.276096 | 0.106643 | 0.0432 | 0.051408 | 0.034848 | 0.557492 | 0.510332 | 0.495284 | 0.46742 | 0.439484 | 0.411765 | 0 | 0.039502 | 0.115001 | 18,965 | 453 | 1,931 | 41.865342 | 0.788012 | 0.033325 | 0 | 0.642157 | 1 | 0.012255 | 0.167686 | 0.119159 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02451 | 0 | 0.02451 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10d645c9672c7c753cd49f7ae2ccfe907a280393 | 1,038 | py | Python | users/management/commands/compute_first_sighting.py | maverick-labs-pune/wikirumours | 51651aae651fd88468b54d08abb8ec28a93e65fa | [
"MIT"
] | null | null | null | users/management/commands/compute_first_sighting.py | maverick-labs-pune/wikirumours | 51651aae651fd88468b54d08abb8ec28a93e65fa | [
"MIT"
] | null | null | null | users/management/commands/compute_first_sighting.py | maverick-labs-pune/wikirumours | 51651aae651fd88468b54d08abb8ec28a93e65fa | [
"MIT"
] | null | null | null | import csv
import datetime
import os
from django.contrib.gis.geos import Point
from django.core.management import BaseCommand, CommandError
from django.db import transaction
from geopy import Nominatim
from countries.models import Country
from report.models import Report, Sighting, ReportedViaChoice
from users.models... | 31.454545 | 90 | 0.685934 | 122 | 1,038 | 5.754098 | 0.5 | 0.092593 | 0.08547 | 0.065527 | 0.116809 | 0.116809 | 0 | 0 | 0 | 0 | 0 | 0.001229 | 0.2158 | 1,038 | 32 | 91 | 32.4375 | 0.861179 | 0.101156 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.434783 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
10fbb0a2e721903333eaa0a9397a4dfeaa824001 | 1,382 | py | Python | DailyProgrammer/DP20120706B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20120706B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20120706B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
Write a program that, given an ASCII binary matrix of 0's and 1's like this:
0000000000000000
0000000000000000
0000011001110000
0000001111010000
0000011001110000
0000011011100000
0000000000110000
0000101000010000
0000000000000000
0000000000000000
0000000000000000
Outputs the smallest cropped sub-matrix that still... | 21.261538 | 105 | 0.585384 | 149 | 1,382 | 5.33557 | 0.375839 | 0.085535 | 0.124528 | 0.085535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.44564 | 0.327786 | 1,382 | 64 | 106 | 21.59375 | 0.410118 | 0.308249 | 0 | 0.15625 | 0 | 0 | 0.220464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.03125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
10fca53da2221bbb5c3c4305335a2e7729d78da8 | 96 | py | Python | resp.py | ainilili/ocr-server | 6f4f3b9f37065eb3e51c045b440520a5e6ba5429 | [
"MIT"
] | 1 | 2019-12-30T06:16:08.000Z | 2019-12-30T06:16:08.000Z | resp.py | ainilili/ocr-server | 6f4f3b9f37065eb3e51c045b440520a5e6ba5429 | [
"MIT"
] | null | null | null | resp.py | ainilili/ocr-server | 6f4f3b9f37065eb3e51c045b440520a5e6ba5429 | [
"MIT"
] | null | null | null | import json
class RespVo:
def __init__(self):
self.code = 0
self.msg = ''
self.data = {} | 13.714286 | 20 | 0.625 | 14 | 96 | 4 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.229167 | 96 | 7 | 21 | 13.714286 | 0.743243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8001cd82250f641b5ba9b9f8de8ea4c5f0ea0847 | 83 | py | Python | problem_1.py | adamkells/project_euler | 52b7dc59f22e2d0782a74df186d9147d187f5e4e | [
"Apache-2.0"
] | null | null | null | problem_1.py | adamkells/project_euler | 52b7dc59f22e2d0782a74df186d9147d187f5e4e | [
"Apache-2.0"
] | null | null | null | problem_1.py | adamkells/project_euler | 52b7dc59f22e2d0782a74df186d9147d187f5e4e | [
"Apache-2.0"
] | null | null | null | result = 0
for i in range(1000):
if i%3==0 or i%5==0:
result += i
print(result) | 13.833333 | 21 | 0.60241 | 19 | 83 | 2.631579 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 0.216867 | 83 | 6 | 22 | 13.833333 | 0.630769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8011291f703e382af0dda2931df19aa8224c193a | 513 | py | Python | examples/dip/blog/views.py | navycut/navycut | 1d49621105c7c4683d52a3d2c853ae7165b9dc0d | [
"MIT"
] | 13 | 2021-04-26T04:00:36.000Z | 2021-09-18T19:57:58.000Z | examples/dip/blog/views.py | navycut/navycut | 1d49621105c7c4683d52a3d2c853ae7165b9dc0d | [
"MIT"
] | 6 | 2021-07-15T16:30:33.000Z | 2021-09-09T04:51:03.000Z | examples/dip/blog/views.py | navycut/navycut | 1d49621105c7c4683d52a3d2c853ae7165b9dc0d | [
"MIT"
] | 7 | 2021-07-21T06:21:55.000Z | 2021-09-02T17:58:04.000Z | from navycut.urls import MethodView
from navycut.http import JsonResponse
from .models import *
# write your views here.
class IndexView(MethodView):
def get(self):
return JsonResponse(message="Salve Mundi!")
class GargiView(MethodView):
def get(self):
gargi= Gargi.query.get(1)
return... | 28.5 | 90 | 0.68616 | 67 | 513 | 5.223881 | 0.492537 | 0.068571 | 0.091429 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.202729 | 513 | 18 | 91 | 28.5 | 0.853301 | 0.042885 | 0 | 0.142857 | 0 | 0 | 0.02449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.071429 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8012b7eb83c6cf98ea6281e8520ee1ee4aeb892f | 14,493 | py | Python | python/oneflow/compatible/single_client/__init__.py | grybd/oneflow | 82237ad096a10527591660c09b61444c42917e69 | [
"Apache-2.0"
] | null | null | null | python/oneflow/compatible/single_client/__init__.py | grybd/oneflow | 82237ad096a10527591660c09b61444c42917e69 | [
"Apache-2.0"
] | null | null | null | python/oneflow/compatible/single_client/__init__.py | grybd/oneflow | 82237ad096a10527591660c09b61444c42917e69 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 35.007246 | 88 | 0.823294 | 1,917 | 14,493 | 5.885759 | 0.182577 | 0.098467 | 0.203846 | 0.257024 | 0.534432 | 0.489586 | 0.435877 | 0.387663 | 0.366215 | 0.300807 | 0 | 0.004424 | 0.111019 | 14,493 | 413 | 89 | 35.09201 | 0.871313 | 0.040088 | 0 | 0.128947 | 0 | 0 | 0.007048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002632 | false | 0 | 0.284211 | 0 | 0.286842 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
802abdc21f1c113d1f80f2402c01d26ef67f6ade | 625 | py | Python | school/migrations/0010_auto_20200816_0326.py | threecoolcat/ThreeCoolCat | 805f37b4cc68dce768356c0042663d0659abd6cb | [
"MIT"
] | 6 | 2021-08-07T10:51:25.000Z | 2022-02-25T04:59:02.000Z | school/migrations/0010_auto_20200816_0326.py | threecoolcat/ThreeCoolCat | 805f37b4cc68dce768356c0042663d0659abd6cb | [
"MIT"
] | null | null | null | school/migrations/0010_auto_20200816_0326.py | threecoolcat/ThreeCoolCat | 805f37b4cc68dce768356c0042663d0659abd6cb | [
"MIT"
] | 2 | 2021-09-15T10:22:05.000Z | 2022-01-19T07:12:04.000Z | # Generated by Django 3.0.7 on 2020-08-16 03:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0008_auto_20200816_0303'),
]
operations = [
# migrations.AlterField(
# model_name='teacher',
# name='cours... | 27.173913 | 151 | 0.6032 | 58 | 625 | 6.37931 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067686 | 0.2672 | 625 | 22 | 152 | 28.409091 | 0.740175 | 0.5568 | 0 | 0 | 1 | 0 | 0.109023 | 0.086466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
80318dedc43e29ccfe2c394168b77f8e87203be6 | 4,416 | py | Python | azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01/models/__init__.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 45.525773 | 135 | 0.799819 | 380 | 4,416 | 8.957895 | 0.273684 | 0.047591 | 0.032902 | 0.056404 | 0.576675 | 0.523208 | 0.329612 | 0.208578 | 0.122797 | 0.047004 | 0 | 0.004933 | 0.127717 | 4,416 | 96 | 136 | 46 | 0.878764 | 0.102355 | 0 | 0 | 0 | 0 | 0.157096 | 0.108525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.511905 | 0 | 0.511905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
803587478cf7a177ca1e6ad0f177920f714a2c2a | 806 | py | Python | src/metadata/get_dependents.py | Yanivmd/maloss | af85ac202668da88d0b4a885386a1e56703e37c8 | [
"MIT"
] | 1 | 2022-01-29T16:13:06.000Z | 2022-01-29T16:13:06.000Z | src/metadata/get_dependents.py | Yanivmd/maloss | af85ac202668da88d0b4a885386a1e56703e37c8 | [
"MIT"
] | null | null | null | src/metadata/get_dependents.py | Yanivmd/maloss | af85ac202668da88d0b4a885386a1e56703e37c8 | [
"MIT"
] | 1 | 2022-01-29T16:13:07.000Z | 2022-01-29T16:13:07.000Z | import pickle
import sys
results = []
def getdependentsofpackage(pkg_manager, pkg_name):
for pkg in G.predecessors(pkg_name):
print pkg
if pkg == pkg_manager:
continue
else:
if pkg not in results:
results.append(pkg)
getdependentsofpacka... | 26 | 92 | 0.632754 | 101 | 806 | 4.831683 | 0.455446 | 0.122951 | 0.196721 | 0.143443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.280397 | 806 | 30 | 93 | 26.866667 | 0.832759 | 0.026055 | 0 | 0.086957 | 0 | 0 | 0.191571 | 0.03576 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.173913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
805696208077f412255c2d41a76e73c2fed05806 | 1,075 | py | Python | Data Science With Python/02-intermediate-python-for-data-science/1-matplotlib/scatter_plot-(1).py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 3 | 2019-05-12T04:49:24.000Z | 2020-05-06T00:40:28.000Z | Data Science With Python/02-intermediate-python-for-data-science/1-matplotlib/scatter_plot-(1).py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | null | null | null | Data Science With Python/02-intermediate-python-for-data-science/1-matplotlib/scatter_plot-(1).py | aimanahmedmoin1997/DataCamp | c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d | [
"MIT"
] | 7 | 2018-11-06T17:43:31.000Z | 2020-11-07T21:08:16.000Z | '''
Scatter Plot (1)
100xp
When you have a time scale along the horizontal axis, the line plot is your friend.
But in many other cases, when you're trying to assess if there's a correlation between
two variables, for example, the scatter plot is the better choice. Below is an example
of how to build a scatter plot.
im... | 31.617647 | 92 | 0.771163 | 193 | 1,075 | 4.274611 | 0.471503 | 0.08 | 0.058182 | 0.06303 | 0.075152 | 0.075152 | 0 | 0 | 0 | 0 | 0 | 0.008949 | 0.168372 | 1,075 | 33 | 93 | 32.575758 | 0.91387 | 0.897674 | 0 | 0 | 0 | 0 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
338fb658723f0a9637bf725ff37c1ea6654df3f8 | 1,604 | py | Python | aws_toolbox/emails/email_sender.py | and-computers/aws_pytools | e13fb2af8f5dfe568add4cd44502f4218642db7d | [
"MIT"
] | null | null | null | aws_toolbox/emails/email_sender.py | and-computers/aws_pytools | e13fb2af8f5dfe568add4cd44502f4218642db7d | [
"MIT"
] | null | null | null | aws_toolbox/emails/email_sender.py | and-computers/aws_pytools | e13fb2af8f5dfe568add4cd44502f4218642db7d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import boto3
class EmailSender():
def __init__(self, from_address, session=None):
self._from_address = from_address
self._client = boto3.client('ses', region_name='us-east-1')
def send_email(self, to_address, subject, message):
# type checking
if isin... | 28.642857 | 67 | 0.44389 | 139 | 1,604 | 4.906475 | 0.517986 | 0.092375 | 0.087977 | 0.07478 | 0.190616 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.008111 | 0.46197 | 1,604 | 55 | 68 | 29.163636 | 0.782155 | 0.114713 | 0 | 0.175 | 0 | 0 | 0.08133 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.05 | false | 0.1 | 0.025 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
339600e9d5277fa3045509d56bd3a534b0ebb959 | 19,317 | py | Python | tofu/data/_inversions_algos.py | WinstonLHS/tofu | c95b2eb6aedcf4bac5676752b9635b78f31af6ca | [
"MIT"
] | 6 | 2016-09-15T17:01:19.000Z | 2017-03-06T22:53:10.000Z | tofu/data/_inversions_algos.py | WinstonLHS/tofu | c95b2eb6aedcf4bac5676752b9635b78f31af6ca | [
"MIT"
] | 9 | 2016-09-14T17:23:52.000Z | 2017-04-13T07:30:07.000Z | tofu/data/_inversions_algos.py | Didou09/tofu | 4a4e1f058bab8e7556ed9d518f90807cec605476 | [
"MIT"
] | null | null | null |
import warnings
import numpy as np
import scipy.linalg as scplin
import scipy.optimize as scpop
import scipy.sparse as scpsp
dfail = {}
try:
import sksparse as sksp
except Exception as err:
sksp = False
dfail['sksparse'] = "For cholesk factorizations"
try:
import scikits.umfpack as skumf
except E... | 29.810185 | 90 | 0.48786 | 2,348 | 19,317 | 3.970613 | 0.142675 | 0.012871 | 0.009761 | 0.013944 | 0.722729 | 0.694626 | 0.683578 | 0.669634 | 0.655047 | 0.652043 | 0 | 0.049749 | 0.360046 | 19,317 | 647 | 91 | 29.85626 | 0.704417 | 0.220117 | 0 | 0.754386 | 0 | 0.050439 | 0.109464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.015351 | 0 | 0.041667 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
33c36df5fb62b329dbca666d73e9dbeb3bb3762d | 5,299 | py | Python | cards.py | ashbc/pybreak | fc020510c4407514e93a6b33d0ce1168ee65f8ea | [
"0BSD"
] | null | null | null | cards.py | ashbc/pybreak | fc020510c4407514e93a6b33d0ce1168ee65f8ea | [
"0BSD"
] | null | null | null | cards.py | ashbc/pybreak | fc020510c4407514e93a6b33d0ce1168ee65f8ea | [
"0BSD"
] | null | null | null | from enum import Enum
# TODO: turn to dict bleh
RunnerFactions = Enum('RunnerFactions', 'Neutral Shaper Anarch Criminal SunnyLebeau Adam Apex')
CorpFactions = Enum('CorpFactions', 'Neutral Jinteki HaasBioroid NBN Weyland CorpMiniFactionsWhenFFGPls')
# The Breaker and Ice classes represent "Generic" base behaviour for... | 34.187097 | 138 | 0.729194 | 797 | 5,299 | 4.750314 | 0.36261 | 0.014527 | 0.026149 | 0.020602 | 0.058373 | 0.025885 | 0 | 0 | 0 | 0 | 0 | 0.007854 | 0.183053 | 5,299 | 154 | 139 | 34.409091 | 0.866713 | 0.578788 | 0 | 0.111111 | 0 | 0 | 0.115723 | 0.012695 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.063492 | false | 0 | 0.015873 | 0.015873 | 0.603175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
33c508a5f4712db900f7c08e7e146cc04c858e23 | 1,812 | py | Python | Array/Gas_Station.py | shua2018ti/Google | 3a9847e0c60d887d15eb4b0d4d8ebf51e464df1b | [
"MIT"
] | 87 | 2015-07-15T20:41:09.000Z | 2022-03-08T13:55:38.000Z | Array/Gas_Station.py | shua2018ti/Google | 3a9847e0c60d887d15eb4b0d4d8ebf51e464df1b | [
"MIT"
] | 59 | 2015-03-19T22:26:41.000Z | 2015-07-25T17:58:08.000Z | Array/Gas_Station.py | shua2018ti/Google | 3a9847e0c60d887d15eb4b0d4d8ebf51e464df1b | [
"MIT"
] | 45 | 2015-07-15T20:41:12.000Z | 2022-02-01T20:18:07.000Z | '''
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations.
Return the starting gas st... | 27.876923 | 190 | 0.553532 | 269 | 1,812 | 3.732342 | 0.453532 | 0.034861 | 0.035857 | 0.044821 | 0.247012 | 0.247012 | 0.247012 | 0.247012 | 0.247012 | 0.247012 | 0 | 0.039506 | 0.32947 | 1,812 | 64 | 191 | 28.3125 | 0.786008 | 0.078918 | 0 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
33cd14de6c5de2f891d91f699da7d704f1a47d0b | 4,746 | py | Python | distribulator/engine/data/Environment.py | adace74/test | b7b45fae6c4ba6ffe8a04c45b6e2bf23a918226b | [
"BSD-3-Clause"
] | null | null | null | distribulator/engine/data/Environment.py | adace74/test | b7b45fae6c4ba6ffe8a04c45b6e2bf23a918226b | [
"BSD-3-Clause"
] | null | null | null | distribulator/engine/data/Environment.py | adace74/test | b7b45fae6c4ba6ffe8a04c45b6e2bf23a918226b | [
"BSD-3-Clause"
] | null | null | null | ######################################################################
#
# $Id$
#
# (c) Copyright 2004 Orbitz, Inc. All Rights Reserved.
# Please see the accompanying LICENSE file for license information.
#
######################################################################
# Pydoc comments
"""This class holds dat... | 32.506849 | 91 | 0.481458 | 311 | 4,746 | 7.273312 | 0.321543 | 0.029178 | 0.034041 | 0.068081 | 0.47878 | 0.47878 | 0.427056 | 0.370469 | 0.370469 | 0.257294 | 0 | 0.003102 | 0.184787 | 4,746 | 145 | 92 | 32.731034 | 0.581546 | 0.193215 | 0 | 0.265306 | 0 | 0 | 0.008454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0.469388 | 0.020408 | 0 | 0.489796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
33d6c4342f8a7527b8698796079fc060c30dec5e | 277 | py | Python | Ex011.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | Ex011.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | Ex011.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | altura= float(input('Quanto de altura a parede possui?'))
largura= float(input('Quanto de largura a parede possui?'))
area= largura * altura
litros= area/2
print('Sua parede possui uma área de {},portanto, você precisará de {}litros de tinta para pinta-la'.format(area,litros)) | 55.4 | 121 | 0.750903 | 44 | 277 | 4.727273 | 0.545455 | 0.173077 | 0.153846 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004115 | 0.122744 | 277 | 5 | 121 | 55.4 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.571942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
33e90a4116aaa0f7a00467033fc74a1dc29ce0c5 | 1,002 | py | Python | flixbus/flixbus/models.py | kamotos/flixbus-homework | 696375f763d0afdbb594698ee71e8d1abd1f156f | [
"MIT"
] | null | null | null | flixbus/flixbus/models.py | kamotos/flixbus-homework | 696375f763d0afdbb594698ee71e8d1abd1f156f | [
"MIT"
] | null | null | null | flixbus/flixbus/models.py | kamotos/flixbus-homework | 696375f763d0afdbb594698ee71e8d1abd1f156f | [
"MIT"
] | null | null | null | from django.db import models
class Segment(models.Model):
from_stop = models.IntegerField()
to_stop = models.IntegerField()
distance = models.DecimalField(max_digits=6, decimal_places=2)
class Route(models.Model):
segments = models.ManyToManyField(Segment, through='RouteSegment')
class RouteSegmen... | 26.368421 | 70 | 0.722555 | 113 | 1,002 | 6.292035 | 0.389381 | 0.084388 | 0.185654 | 0.109705 | 0.241913 | 0.241913 | 0.241913 | 0.241913 | 0.171589 | 0.171589 | 0 | 0.007186 | 0.166667 | 1,002 | 37 | 71 | 27.081081 | 0.844311 | 0 | 0 | 0.32 | 0 | 0 | 0.024975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.96 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d504780412b5b3e92a504e49e337218ed17ba6a2 | 1,191 | py | Python | week4/w4e1.py | melphick/pybasics | 68508d10b7509943b629b3c627252de60b6a5744 | [
"Apache-2.0"
] | null | null | null | week4/w4e1.py | melphick/pybasics | 68508d10b7509943b629b3c627252de60b6a5744 | [
"Apache-2.0"
] | null | null | null | week4/w4e1.py | melphick/pybasics | 68508d10b7509943b629b3c627252de60b6a5744 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
valid = False
reason = []
while valid == False:
valid = True
ip_addr = raw_input("please enter an IP: ")
print "The IP is now: %s" % ip_addr
ip_list = ip_addr.split('.')
if len (ip_list) != 4:
valid = False
reason.append('IP Address does not have 4 octets')
if (int(ip_li... | 26.466667 | 107 | 0.648195 | 210 | 1,191 | 3.590476 | 0.261905 | 0.111406 | 0.143236 | 0.204244 | 0.645889 | 0.538462 | 0.497347 | 0.449602 | 0.385942 | 0.328912 | 0 | 0.064651 | 0.194794 | 1,191 | 44 | 108 | 27.068182 | 0.721585 | 0.016793 | 0 | 0.387097 | 0 | 0 | 0.281197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.096774 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d1050fabf4839f614bbd5fdd4ed81bdb4787749 | 468 | py | Python | mots_vides/tests/shortcut.py | Fantomas42/mots-vides | eaeccf73bdb415d0c5559ccd74de360b37a2bbac | [
"BSD-3-Clause"
] | 13 | 2015-02-15T17:09:12.000Z | 2021-04-10T12:52:00.000Z | mots_vides/tests/shortcut.py | Fantomas42/mots-vides | eaeccf73bdb415d0c5559ccd74de360b37a2bbac | [
"BSD-3-Clause"
] | 1 | 2015-02-05T10:59:29.000Z | 2015-02-08T13:39:53.000Z | mots_vides/tests/shortcut.py | Fantomas42/mots-vides | eaeccf73bdb415d0c5559ccd74de360b37a2bbac | [
"BSD-3-Clause"
] | 1 | 2021-12-17T20:01:48.000Z | 2021-12-17T20:01:48.000Z | """
Tests for shortcuts
"""
from unittest import TestCase
from mots_vides import stop_words
from mots_vides.stop_words import StopWord
from mots_vides.exceptions import StopWordError
class StopWordShortcutTestCase(TestCase):
def test_stop_words(self):
self.assertTrue(isinstance(stop_words('french'), Sto... | 27.529412 | 70 | 0.771368 | 55 | 468 | 6.381818 | 0.454545 | 0.153846 | 0.111111 | 0.159544 | 0.188034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 468 | 16 | 71 | 29.25 | 0.870968 | 0.040598 | 0 | 0 | 0 | 0 | 0.045351 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1d108ce95584770b896d1cac758712be9f2c2319 | 1,055 | py | Python | rastervision_core/rastervision/core/utils/misc.py | theoway/raster-vision | dab675517f904771e2ce8c052494f8a6f1ddc026 | [
"Apache-2.0"
] | 1,577 | 2017-05-22T14:22:00.000Z | 2022-03-31T02:03:25.000Z | rastervision_core/rastervision/core/utils/misc.py | theoway/raster-vision | dab675517f904771e2ce8c052494f8a6f1ddc026 | [
"Apache-2.0"
] | 933 | 2017-05-09T20:25:02.000Z | 2022-03-31T10:22:59.000Z | rastervision_core/rastervision/core/utils/misc.py | monocilindro/raster-vision | fc181a6f31f085affa1ee12f0204bdbc5a6bf85a | [
"Apache-2.0"
] | 336 | 2017-05-15T16:30:44.000Z | 2022-03-28T06:19:33.000Z | import io
from pydantic import confloat
from PIL import Image
import numpy as np
import imageio
import logging
Proportion = confloat(ge=0, le=1)
log = logging.getLogger(__name__)
def save_img(im_array, output_path):
imageio.imwrite(output_path, im_array)
def numpy_to_png(array: np.ndarray) -> str:
"""Get... | 21.1 | 70 | 0.635071 | 155 | 1,055 | 4.23871 | 0.425806 | 0.018265 | 0.050228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00651 | 0.272038 | 1,055 | 49 | 71 | 21.530612 | 0.848958 | 0.387678 | 0 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.315789 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1d283e0875d0e400a51bc00a32f5f05bc8b450ef | 1,158 | py | Python | next/boot/fe/parser.py | 27Saumya/next | 807de4a8e007211bc943545b61d0fdbb8c78e375 | [
"Apache-2.0"
] | 2 | 2022-03-17T07:43:40.000Z | 2022-03-17T08:13:20.000Z | next/boot/fe/parser.py | 27Saumya/next | 807de4a8e007211bc943545b61d0fdbb8c78e375 | [
"Apache-2.0"
] | null | null | null | next/boot/fe/parser.py | 27Saumya/next | 807de4a8e007211bc943545b61d0fdbb8c78e375 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 VincentRPS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | 34.058824 | 85 | 0.705527 | 163 | 1,158 | 4.944785 | 0.552147 | 0.074442 | 0.032258 | 0.039702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010905 | 0.208117 | 1,158 | 33 | 86 | 35.090909 | 0.868048 | 0.468912 | 0 | 0 | 0 | 0 | 0.114809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.235294 | 0.176471 | 0.764706 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1d51f84d1d5305ed9e8afb4c0e9a17534ac4763c | 922 | py | Python | players/cheating_idiot_player.py | timotree3/hanabi-1 | 28a1890e25b1012d8b9179163a255b2a3eb99622 | [
"MIT"
] | 25 | 2016-04-12T08:05:33.000Z | 2020-02-25T15:25:19.000Z | players/cheating_idiot_player.py | timotree3/hanabi-1 | 28a1890e25b1012d8b9179163a255b2a3eb99622 | [
"MIT"
] | 19 | 2016-04-17T09:49:53.000Z | 2019-03-21T04:51:53.000Z | players/cheating_idiot_player.py | timotree3/hanabi-1 | 28a1890e25b1012d8b9179163a255b2a3eb99622 | [
"MIT"
] | 13 | 2016-04-12T15:28:13.000Z | 2021-08-30T18:37:35.000Z | """A despicable Hanabi player.
Cheating Idiot never hints. He peeks at his cards. When he has a play, he
picks one randomly. When he doesn't, he discards randomly.
"""
from hanabi_classes import *
from bot_utils import get_plays
class CheatingIdiotPlayer(AIPlayer):
@classmethod
def get_name(cls):
... | 27.939394 | 78 | 0.654013 | 117 | 922 | 5.025641 | 0.564103 | 0.020408 | 0.05102 | 0.057823 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252712 | 922 | 32 | 79 | 28.8125 | 0.853411 | 0.313449 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.111111 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1d526db61e37b07b6a0588d3248ba712d36998ef | 275 | py | Python | gpscraper/forms/permissions.py | alverelt/gpscraper | 9c0322d1b8f0c70786bd15512746650b6c4d9ded | [
"MIT"
] | 1 | 2021-06-09T05:15:49.000Z | 2021-06-09T05:15:49.000Z | gpscraper/forms/permissions.py | alverelt/gpscraper | 9c0322d1b8f0c70786bd15512746650b6c4d9ded | [
"MIT"
] | 1 | 2021-07-30T21:30:31.000Z | 2021-08-10T21:15:53.000Z | gpscraper/forms/permissions.py | alverelt/gpscraper | 9c0322d1b8f0c70786bd15512746650b6c4d9ded | [
"MIT"
] | null | null | null | import json
def permissions(app_id):
form = {
'f.req': [[[
'xdSrCf',
f'[[null,["{app_id}",7],[]]]',
None,
'1'
]]]
}
form['f.req'] = json.dumps(form['f.req'], separators=(',', ':'))
return form | 18.333333 | 68 | 0.385455 | 28 | 275 | 3.714286 | 0.607143 | 0.144231 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.378182 | 275 | 15 | 69 | 18.333333 | 0.596491 | 0 | 0 | 0 | 0 | 0 | 0.181159 | 0.094203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 1 | 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 | 2 |
1d5baa2a1f27979ff0dcb4b162b385639f95f669 | 349 | py | Python | utils/slack_msg_fmt.py | angeleneleow/rocket2 | 649f49a94d123e78bfd014189e8fede31fa007f6 | [
"MIT"
] | 14 | 2019-01-20T21:54:36.000Z | 2021-10-09T21:06:23.000Z | utils/slack_msg_fmt.py | angeleneleow/rocket2 | 649f49a94d123e78bfd014189e8fede31fa007f6 | [
"MIT"
] | 510 | 2018-11-18T20:07:51.000Z | 2022-02-01T15:34:03.000Z | utils/slack_msg_fmt.py | angeleneleow/rocket2 | 649f49a94d123e78bfd014189e8fede31fa007f6 | [
"MIT"
] | 9 | 2019-08-20T16:57:21.000Z | 2021-05-04T12:51:47.000Z | """Utility class for formatting Slack Messages."""
def wrap_slack_code(str):
"""Format code."""
return f"`{str}`"
def wrap_code_block(str):
"""Format code block."""
return f"```\n{str}\n```"
def wrap_quote(str):
"""Format quote."""
return f"> {str}\n"
def wrap_emph(str):
"""Format em... | 15.863636 | 50 | 0.573066 | 48 | 349 | 4.041667 | 0.354167 | 0.14433 | 0.154639 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206304 | 349 | 21 | 51 | 16.619048 | 0.700361 | 0.295129 | 0 | 0 | 0 | 0 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1d5ff4234522e678b0d3eea0a76777a45ac6974e | 239 | py | Python | data_collection/gazette/spiders/sc_pescaria_brava.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 454 | 2018-04-07T03:32:57.000Z | 2020-08-17T19:56:22.000Z | data_collection/gazette/spiders/sc_pescaria_brava.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 254 | 2020-08-18T14:09:43.000Z | 2022-03-28T11:30:51.000Z | data_collection/gazette/spiders/sc_pescaria_brava.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 183 | 2018-04-11T15:09:37.000Z | 2020-08-15T18:55:11.000Z | from gazette.spiders.base.fecam import FecamGazetteSpider
class ScPescariaBravaSpider(FecamGazetteSpider):
name = "sc_pescaria_brava"
FECAM_QUERY = 'entidade:"Prefeitura Municipal de Pescaria Brava"'
TERRITORY_ID = "4212650"
| 29.875 | 69 | 0.786611 | 25 | 239 | 7.36 | 0.84 | 0.141304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033981 | 0.138075 | 239 | 7 | 70 | 34.142857 | 0.859223 | 0 | 0 | 0 | 0 | 0 | 0.305439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d631ca8216d74db751cc9b4c6bdc37b69b99ee2 | 1,093 | py | Python | tests/analysis/test_pearson_integration.py | AISyLab/side-channel-attacks | 83c93b1087c9f16423ece7191c3171d07ed1cdce | [
"MIT"
] | 14 | 2020-04-20T16:22:00.000Z | 2022-01-26T16:52:35.000Z | tests/analysis/test_pearson_integration.py | AISyLab/side-channel-attacks | 83c93b1087c9f16423ece7191c3171d07ed1cdce | [
"MIT"
] | 1 | 2021-09-02T13:53:05.000Z | 2021-09-02T14:19:01.000Z | tests/analysis/test_pearson_integration.py | AISyLab/side-channel-attacks | 83c93b1087c9f16423ece7191c3171d07ed1cdce | [
"MIT"
] | 6 | 2020-07-02T16:24:18.000Z | 2022-02-07T08:55:20.000Z | import unittest
import os.path
import numpy as np
from sca.__main__ import CONST_DEFAULT_PLAIN_FILE
from sca.__main__ import CONST_DEFAULT_TRACES_FILE
from sca.__main__ import CONST_DEFAULT_KEYS_FILE
from sca.analysis.pearson import Pearson
class TestPearsonIntegration(unittest.TestCase):
"""Tests the whole Pear... | 37.689655 | 87 | 0.706313 | 150 | 1,093 | 4.82 | 0.326667 | 0.149378 | 0.091286 | 0.149378 | 0.684647 | 0.684647 | 0.644537 | 0.55325 | 0.55325 | 0.55325 | 0 | 0.020571 | 0.199451 | 1,093 | 28 | 88 | 39.035714 | 0.805714 | 0.120769 | 0 | 0.222222 | 0 | 0 | 0.092063 | 0.092063 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.388889 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1d6467c538bbc946471cd09423169c7a79d83e46 | 362 | py | Python | Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/107.py | rafaelvizu/Estudos | eef5e3e3706ff99959226c51b9907b6af4377bfe | [
"MIT"
] | null | null | null | Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/107.py | rafaelvizu/Estudos | eef5e3e3706ff99959226c51b9907b6af4377bfe | [
"MIT"
] | null | null | null | Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/107.py | rafaelvizu/Estudos | eef5e3e3706ff99959226c51b9907b6af4377bfe | [
"MIT"
] | null | null | null | from pacotes import ex107
print('\033[36;40mExercício Python #107 - Exercitando módulos em Python\033[m\n')
v = float(input('Digite o preço: R$'))
print(f'\nA metade de {v} é R${ex107.metade(v)}')
print(f'O dobro de {v} é R${ex107.dobro(v)}')
print(f'Aumentando 10%, temos R${ex107.aumentar(v, 10)}')
print(f'Reduzi... | 32.909091 | 82 | 0.679558 | 66 | 362 | 3.727273 | 0.530303 | 0.097561 | 0.03252 | 0.04065 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112853 | 0.118785 | 362 | 11 | 83 | 32.909091 | 0.658307 | 0 | 0 | 0 | 0 | 0.142857 | 0.710744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.714286 | 0 | 0 | 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 | 1 | 0 | 2 |
1d6bfa77dd0e62d54bdc094bbfdc0d0450b8fdf4 | 7,048 | py | Python | src/genie/libs/parser/iosxe/tests/c9300/ShowControllers/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/c9300/ShowControllers/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/c9300/ShowControllers/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | null | null | null | expected_output = {
"interface_name": "Gi1/0/1",
"if_id": "75",
"phy_registers": {
"0": {
"register_number": "0000",
"hex_bit_value": "1140",
"register_name": "Control Register",
"bits": "0001000101000000",
},
"1": {
"regist... | 32.479263 | 66 | 0.453178 | 572 | 7,048 | 5.332168 | 0.335664 | 0.160656 | 0.12623 | 0.034426 | 0.24459 | 0.24459 | 0.082623 | 0.03082 | 0.03082 | 0 | 0 | 0.218287 | 0.38706 | 7,048 | 216 | 67 | 32.62963 | 0.487731 | 0 | 0 | 0.166667 | 0 | 0 | 0.469637 | 0 | 0 | 0 | 0.013195 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d74776a4f88d41613d86bc1797ff75c8a42f6d5 | 188 | py | Python | Leetcode/Sorting,_Binary_Search/1_-_Easy/349._Intersection_of_Two_Arrays.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | 1 | 2020-09-21T10:01:26.000Z | 2020-09-21T10:01:26.000Z | Leetcode/Sorting,_Binary_Search/1_-_Easy/349._Intersection_of_Two_Arrays.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | null | null | null | Leetcode/Sorting,_Binary_Search/1_-_Easy/349._Intersection_of_Two_Arrays.py | Khalid-Sultan/Algorithms-Prep | 7773c5bc0448d8677bf324bd1d9bdc43b813fcd5 | [
"MIT"
] | 2 | 2020-09-01T12:33:55.000Z | 2020-11-30T13:23:50.000Z | class Solution:
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
l = set(nums1)
ret = [i for i in nums2 if i in l]
return list(set(ret)) | 37.6 | 76 | 0.579787 | 30 | 188 | 3.633333 | 0.566667 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0.281915 | 188 | 5 | 77 | 37.6 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1d853a3afe5eeaf64347e65e3462e4bf408e61c6 | 268 | py | Python | tests/lemmatizer/test_lemmatizer.py | zavliju/nlp-id | c3dac7d4b79856ad1f80f384af750bfe851fa259 | [
"MIT"
] | 46 | 2019-11-26T00:35:31.000Z | 2022-03-01T08:05:26.000Z | tests/lemmatizer/test_lemmatizer.py | zavliju/nlp-id | c3dac7d4b79856ad1f80f384af750bfe851fa259 | [
"MIT"
] | 1 | 2022-03-13T18:09:02.000Z | 2022-03-13T18:09:02.000Z | tests/lemmatizer/test_lemmatizer.py | zavliju/nlp-id | c3dac7d4b79856ad1f80f384af750bfe851fa259 | [
"MIT"
] | 10 | 2019-11-23T11:25:35.000Z | 2022-03-31T07:11:17.000Z | from nlp_id.lemmatizer import Lemmatizer
def test_lemmatizer():
"""
test for Lemmatizer
"""
lemmatizer = Lemmatizer()
text = 'Saya sedang mencoba'
expected_result = 'saya sedang coba'
assert lemmatizer.lemmatize(text) == expected_result
| 20.615385 | 56 | 0.690299 | 29 | 268 | 6.241379 | 0.586207 | 0.220994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220149 | 268 | 12 | 57 | 22.333333 | 0.866029 | 0.070896 | 0 | 0 | 0 | 0 | 0.150215 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1d91be8210c310532f598deed82c884db462b8f6 | 4,202 | py | Python | pybtooth/media_player.py | elParaguayo/pybtooth | d74155f5fddbfcf7fbf6795f31ea8e22ad68b576 | [
"MIT"
] | 2 | 2018-04-28T08:30:37.000Z | 2018-06-30T23:55:08.000Z | pybtooth/media_player.py | Pybias/pybtooth | d74155f5fddbfcf7fbf6795f31ea8e22ad68b576 | [
"MIT"
] | null | null | null | pybtooth/media_player.py | Pybias/pybtooth | d74155f5fddbfcf7fbf6795f31ea8e22ad68b576 | [
"MIT"
] | 1 | 2020-11-12T20:40:25.000Z | 2020-11-12T20:40:25.000Z | import dbus
from .base import BluetoothBase
from .constants import *
class BluetoothMediaPlayer(BluetoothBase):
TRACK_TYPES = {"Title": str,
"Artist": str,
"Album": str,
"Genre": str,
"NumberOfTracks": int,
"TrackNumbe... | 23.740113 | 80 | 0.560447 | 440 | 4,202 | 5.227273 | 0.231818 | 0.045652 | 0.045217 | 0.05913 | 0.087826 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001048 | 0.318658 | 4,202 | 176 | 81 | 23.875 | 0.802305 | 0.004284 | 0 | 0.142857 | 0 | 0 | 0.112413 | 0.010285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.022556 | 0.105263 | 0.556391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
1da054194b58fa373994ae6b30f2e44bb9de5436 | 3,115 | py | Python | asgard/http/client.py | ThalesSathler/asgard-api | 428349bd53ad92a2f05a3bcebde6c710ddb04741 | [
"MIT"
] | 1 | 2019-04-14T23:39:18.000Z | 2019-04-14T23:39:18.000Z | asgard/http/client.py | ThalesSathler/asgard-api | 428349bd53ad92a2f05a3bcebde6c710ddb04741 | [
"MIT"
] | null | null | null | asgard/http/client.py | ThalesSathler/asgard-api | 428349bd53ad92a2f05a3bcebde6c710ddb04741 | [
"MIT"
] | null | null | null | from typing import Optional, Union
from aiohttp import ClientSession, ClientTimeout # type: ignore
from asgard import conf
default_http_client_timeout = ClientTimeout(
total=conf.ASGARD_HTTP_CLIENT_TOTAL_TIMEOUT,
connect=conf.ASGARD_HTTP_CLIENT_CONNECT_TIMEOUT,
)
class _HttpClient:
_session: Optional[... | 26.853448 | 78 | 0.591011 | 324 | 3,115 | 5.228395 | 0.151235 | 0.227273 | 0.226682 | 0.094451 | 0.661747 | 0.511806 | 0.449233 | 0.4268 | 0.402007 | 0.402007 | 0 | 0 | 0.324559 | 3,115 | 115 | 79 | 27.086957 | 0.805133 | 0.003852 | 0 | 0.375 | 0 | 0 | 0.00516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072917 | false | 0 | 0.03125 | 0.052083 | 0.208333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1da3342d3ae406ad072ba5f67542de9806e9cbae | 1,073 | py | Python | tests/test_protein.py | leoisl/hypothesis-bio | ff4172163110f30f60df4d0981dbffd5c1c7e4c0 | [
"Apache-2.0"
] | null | null | null | tests/test_protein.py | leoisl/hypothesis-bio | ff4172163110f30f60df4d0981dbffd5c1c7e4c0 | [
"Apache-2.0"
] | null | null | null | tests/test_protein.py | leoisl/hypothesis-bio | ff4172163110f30f60df4d0981dbffd5c1c7e4c0 | [
"Apache-2.0"
] | null | null | null | from hypothesis import given
from .minimal import minimal
from hypothesis_bio import protein
@given(protein())
def test_protein_type(seq):
assert type(seq) == str
def test_smallest_example():
assert minimal(protein()) == ""
def test_smallest_example_3_letter_abbrv():
assert minimal(protein(single_let... | 21.897959 | 68 | 0.716682 | 159 | 1,073 | 4.528302 | 0.232704 | 0.0875 | 0.083333 | 0.144444 | 0.495833 | 0.376389 | 0.240278 | 0.240278 | 0.240278 | 0.240278 | 0 | 0.024444 | 0.16123 | 1,073 | 48 | 69 | 22.354167 | 0.775556 | 0 | 0 | 0 | 0 | 0 | 0.011184 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 1 | 0.310345 | false | 0 | 0.103448 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d51e8e9d8314099d188bfcdf55c24f2cf11ee20e | 617 | py | Python | mud/events/changeprop.py | erwanaubry/alamud_IUT_Escape | cc9e77203245a9b933300edc2efb9bd5fcd8abc3 | [
"Unlicense"
] | null | null | null | mud/events/changeprop.py | erwanaubry/alamud_IUT_Escape | cc9e77203245a9b933300edc2efb9bd5fcd8abc3 | [
"Unlicense"
] | null | null | null | mud/events/changeprop.py | erwanaubry/alamud_IUT_Escape | cc9e77203245a9b933300edc2efb9bd5fcd8abc3 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Denys Duchier, IUT d'Orléans
#==============================================================================
from .event import Event2
class ChangePropEvent(Event2):
NAME = "change-prop"
def get_event_templates(self):
return self.object.get_event_templates... | 28.045455 | 79 | 0.557536 | 65 | 617 | 5.076923 | 0.569231 | 0.081818 | 0.10303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014403 | 0.212318 | 617 | 21 | 80 | 29.380952 | 0.664609 | 0.23825 | 0 | 0 | 0 | 0 | 0.023605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d52c89acc49843e0c7105cc9c5a38dd205b7a3d4 | 1,382 | py | Python | bert2tf/excepts.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | 7 | 2021-08-05T16:35:08.000Z | 2022-01-04T03:26:10.000Z | bert2tf/excepts.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | 96 | 2021-08-06T08:32:09.000Z | 2022-01-21T11:07:25.000Z | bert2tf/excepts.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | null | null | null | class YAMLEmptyError(Exception):
"""The yaml configs file is empty, nothing to read from there."""
class BadInputs(Exception):
"""Bad inputs"""
class PeaFailToStart(SystemError):
"""When pea is failed to started"""
class GRPCServerError(Exception):
"""Can not connect to the grpc gateway"""
class... | 22.655738 | 105 | 0.722865 | 160 | 1,382 | 6.24375 | 0.6 | 0.024024 | 0.066066 | 0.078078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000874 | 0.172214 | 1,382 | 60 | 106 | 23.033333 | 0.872378 | 0.486252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d537c96afac1e95d5e530443435815c88109f0e6 | 1,522 | py | Python | generate_script.py | mwestera/iterated-char-rnn | f78b617a421e87921e8bdce4973e31269c8c3112 | [
"MIT"
] | null | null | null | generate_script.py | mwestera/iterated-char-rnn | f78b617a421e87921e8bdce4973e31269c8c3112 | [
"MIT"
] | null | null | null | generate_script.py | mwestera/iterated-char-rnn | f78b617a421e87921e8bdce4973e31269c8c3112 | [
"MIT"
] | null | null | null | import sys
"""
To run, e.g.:
python generate_script.py 20 config.ini
Prints script for 20 runs with random hyperparameters according to config.ini
"""
if __name__ == '__main__':
# Read command line args
if len(sys.argv) == 1:
print('Argument missing: requested number of runs.')
quit()
... | 32.382979 | 108 | 0.615637 | 219 | 1,522 | 4.164384 | 0.461187 | 0.061404 | 0.065789 | 0.039474 | 0.125 | 0.061404 | 0.061404 | 0 | 0 | 0 | 0 | 0.018851 | 0.268068 | 1,522 | 47 | 109 | 32.382979 | 0.79982 | 0.279895 | 0 | 0.16 | 1 | 0 | 0.177471 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d53d5eb7a7a9a14c0ad77d204d905208c7a15ba3 | 1,394 | py | Python | sync_my_tasks/command.py | wilrnh/sync-my-tasks | 50e144e2271819467f6e97e7fda542b8009df8f2 | [
"MIT"
] | 2 | 2021-11-28T20:39:19.000Z | 2021-12-07T18:25:01.000Z | sync_my_tasks/command.py | wilrnh/sync-my-tasks | 50e144e2271819467f6e97e7fda542b8009df8f2 | [
"MIT"
] | null | null | null | sync_my_tasks/command.py | wilrnh/sync-my-tasks | 50e144e2271819467f6e97e7fda542b8009df8f2 | [
"MIT"
] | null | null | null | """sync-my-tasks.
Usage:
sync-my-tasks (--from-asana --asana-workspace=<name> [--asana-token-file PATH]) (--to-mstodo)
sync-my-tasks (-h | --help)
sync-my-tasks --version
Options:
-h --help Show this screen.
--version Show version.
--from-asana Pul... | 34.85 | 104 | 0.652798 | 178 | 1,394 | 4.932584 | 0.292135 | 0.091116 | 0.087699 | 0.04328 | 0.125285 | 0.072893 | 0 | 0 | 0 | 0 | 0 | 0.002804 | 0.232425 | 1,394 | 40 | 105 | 34.85 | 0.817757 | 0.487088 | 0 | 0 | 0 | 0 | 0.120567 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d550977761dcb6cff383b53d2aa18eb774f2203a | 2,563 | py | Python | lingvo/core/spectrum_augmenter_on_device.py | Singed-jj/lingvo | a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56 | [
"Apache-2.0"
] | 1 | 2020-08-04T08:39:35.000Z | 2020-08-04T08:39:35.000Z | lingvo/core/spectrum_augmenter_on_device.py | Singed-jj/lingvo | a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56 | [
"Apache-2.0"
] | null | null | null | lingvo/core/spectrum_augmenter_on_device.py | Singed-jj/lingvo | a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56 | [
"Apache-2.0"
] | null | null | null | # Lint as: python2, python3
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | 41.33871 | 80 | 0.69723 | 383 | 2,563 | 4.574413 | 0.370757 | 0.01484 | 0.061644 | 0.034247 | 0.35274 | 0.341895 | 0.285388 | 0.285388 | 0.285388 | 0.285388 | 0 | 0.013278 | 0.147874 | 2,563 | 61 | 81 | 42.016393 | 0.788919 | 0.494733 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.217391 | 0 | 0.782609 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d5767318f02e6097cfea4142a4ec8b1dfaf61355 | 192 | py | Python | Python/main.py | minjibyeongho/KOSA-Pytorch | 80d71a8c579d645bea4c3352c9babdf232a8630e | [
"MIT"
] | 2 | 2021-05-25T08:52:07.000Z | 2021-08-13T23:49:42.000Z | Python/main.py | minjibyeongho/KOSA-Pytorch | 80d71a8c579d645bea4c3352c9babdf232a8630e | [
"MIT"
] | null | null | null | Python/main.py | minjibyeongho/KOSA-Pytorch | 80d71a8c579d645bea4c3352c9babdf232a8630e | [
"MIT"
] | 2 | 2021-05-24T00:49:45.000Z | 2021-06-11T01:30:12.000Z | #https://docs.python.org/ko/3/library/__main__.html
#main.py
#from module import *
import module
if __name__ == "__main__":
print(__name__)
#hello()
module.hello() | 14.769231 | 52 | 0.630208 | 24 | 192 | 4.375 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.223958 | 192 | 13 | 53 | 14.769231 | 0.697987 | 0.4375 | 0 | 0 | 0 | 0 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d579ea64469c534daf993560e13071167511feda | 239 | py | Python | ABC/abc051-abc100/abc059/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ABC/abc051-abc100/abc059/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ABC/abc051-abc100/abc059/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | '''input
atcoder beginner contest
ABC
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem A
if __name__ == '__main__':
a, b, c = input().split()
result = a[0] + b[0] + c[0]
print(result.upper())
| 14.9375 | 32 | 0.539749 | 31 | 239 | 3.903226 | 0.645161 | 0.247934 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023121 | 0.276151 | 239 | 15 | 33 | 15.933333 | 0.676301 | 0.384937 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d58479b0768504151fad25594cc4819812ea5c2d | 165 | py | Python | hw4/mv4.py | iaxat/MMIS3500 | c787aa97ed3edb1c4dcf3078333df55d281918db | [
"MIT"
] | null | null | null | hw4/mv4.py | iaxat/MMIS3500 | c787aa97ed3edb1c4dcf3078333df55d281918db | [
"MIT"
] | null | null | null | hw4/mv4.py | iaxat/MMIS3500 | c787aa97ed3edb1c4dcf3078333df55d281918db | [
"MIT"
] | null | null | null | file = open("AAPL.txt", "r")
lines = file.readlines()
prices = []
for line in lines:
price = float(line)
prices.append(price)
print(price)
print(prices) | 18.333333 | 28 | 0.642424 | 23 | 165 | 4.608696 | 0.652174 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193939 | 165 | 9 | 29 | 18.333333 | 0.796992 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d58d1365ff88a39cc3f677288061627832ce9436 | 398 | py | Python | Lib/site-packages/altendpy/tests/test_timeit.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | Lib/site-packages/altendpy/tests/test_timeit.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/altendpy/tests/test_timeit.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | import altendpy.timeit
def test_runner():
short = altendpy.timeit.Example(statement="time.sleep(0.1)")
long = altendpy.timeit.Example(statement="time.sleep(0.2)")
runner = altendpy.timeit.Runner(
examples=(short, long),
repeats=1,
interleave=True,
cycles=10,
)
run... | 23.411765 | 67 | 0.633166 | 50 | 398 | 5.02 | 0.5 | 0.223108 | 0.167331 | 0.239044 | 0.318725 | 0.318725 | 0.318725 | 0 | 0 | 0 | 0 | 0.035484 | 0.221106 | 398 | 16 | 68 | 24.875 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d58e8e5ffa6ff2fbd56e34bbdb1de8925bf44b76 | 718 | py | Python | Ex009.py | Fernando-Rodrigo/Exercicios | 04fe641220f36df85a754b2944d60f245cf6cabd | [
"MIT"
] | 1 | 2022-03-14T20:49:04.000Z | 2022-03-14T20:49:04.000Z | Ex009.py | Fernando-Rodrigo/Exercicios | 04fe641220f36df85a754b2944d60f245cf6cabd | [
"MIT"
] | null | null | null | Ex009.py | Fernando-Rodrigo/Exercicios | 04fe641220f36df85a754b2944d60f245cf6cabd | [
"MIT"
] | null | null | null | n = int(input('Digite um número para calcular a tabuada '))
m = 1
print('{} x {:2} = {}'.format(n, 1, n*1))
print('{} x {:2} = {}'.format(n, 2, n*2))
print('{} x {:2} = {}'.format(n, 3, n*3))
print('{} x {:2} = {}'.format(n, 4, n*4))
print('{} x {:2} = {}'.format(n, 5, n*5))
print('{} x {:2} = {}'.format(n, 6, n*6))
p... | 44.875 | 117 | 0.551532 | 132 | 718 | 3 | 0.424242 | 0.151515 | 0.176768 | 0.328283 | 0.358586 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0.059122 | 0.175487 | 718 | 16 | 118 | 44.875 | 0.609797 | 0.311978 | 0 | 0 | 0 | 0 | 0.367886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 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 | 1 | 0 | 2 |
d58edd6156b5700ded0834aa6dde679326630d22 | 1,659 | py | Python | pyHPConfBackup.py | efflicto/pyHPConfigBackup | 60c7d9b99337028da7aab856be4c3c57da2f4541 | [
"MIT"
] | 2 | 2018-08-17T06:50:39.000Z | 2018-08-17T06:50:50.000Z | pyHPConfBackup.py | efflicto/pyHPConfigBackup | 60c7d9b99337028da7aab856be4c3c57da2f4541 | [
"MIT"
] | null | null | null | pyHPConfBackup.py | efflicto/pyHPConfigBackup | 60c7d9b99337028da7aab856be4c3c57da2f4541 | [
"MIT"
] | null | null | null | import os
import zipfile
import glob
import datetime
import telnetlib
import time
print("Starting backup...")
hosts = ["192.168.1.1"]
user = "UserName"
passw = "PassWord"
loc = "/mnt/backup"
date = str(datetime.date.today())
hosts_ok =0
count =0
print("Removing all old backup files")
for fl in glob.glob("/srv/tftp/*.... | 24.397059 | 81 | 0.618445 | 247 | 1,659 | 4.08502 | 0.396761 | 0.034688 | 0.043608 | 0.035679 | 0.025768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021472 | 0.213984 | 1,659 | 68 | 81 | 24.397059 | 0.752301 | 0 | 0 | 0.036364 | 0 | 0 | 0.240361 | 0.012651 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054545 | 0.109091 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d59263fb8de45a09da29b2ed65c0c95135471335 | 83 | py | Python | examples/do_noise.py | jackthgu/rnnoise | 92ecc3a8da568f59db650da427130c2bcf45916b | [
"BSD-3-Clause"
] | null | null | null | examples/do_noise.py | jackthgu/rnnoise | 92ecc3a8da568f59db650da427130c2bcf45916b | [
"BSD-3-Clause"
] | null | null | null | examples/do_noise.py | jackthgu/rnnoise | 92ecc3a8da568f59db650da427130c2bcf45916b | [
"BSD-3-Clause"
] | null | null | null | import os
stream = os.popen('echo Returned output')
output = stream.read()
output
| 13.833333 | 41 | 0.73494 | 12 | 83 | 5.083333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 83 | 5 | 42 | 16.6 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.240964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d5afcaafe4db9fb53289e391f033664d32c45b93 | 1,424 | py | Python | yarnrunner_python/vm_std_lib.py | mapto/YarnRunner-Python | b09d63bab68af324232682b263f2f6f18f3b4baf | [
"MIT"
] | 2 | 2021-12-16T15:17:17.000Z | 2021-12-16T15:18:11.000Z | yarnrunner_python/vm_std_lib.py | mapto/YarnRunner-Python | b09d63bab68af324232682b263f2f6f18f3b4baf | [
"MIT"
] | 2 | 2022-01-07T13:17:25.000Z | 2022-01-24T22:00:35.000Z | yarnrunner_python/vm_std_lib.py | mapto/YarnRunner-Python | b09d63bab68af324232682b263f2f6f18f3b4baf | [
"MIT"
] | 1 | 2022-01-07T16:04:33.000Z | 2022-01-07T16:04:33.000Z | functions = {
'Add': (2, lambda p: p[0] + p[1]),
'Minus': (2, lambda p: p[0] - p[1]),
'UnaryMinus': (1, lambda p: -p[0]),
'Divide': (2, lambda p: p[0] / p[1]),
'Multiply': (2, lambda p: p[0] * p[1]),
'Modulo': (2, lambda p: p[0] % p[1]),
'EqualTo': (2, lambda p: p[0] == p[1]),
'NotEqualT... | 30.297872 | 57 | 0.422051 | 169 | 1,424 | 3.556213 | 0.195266 | 0.186356 | 0.199667 | 0.224626 | 0.272879 | 0.239601 | 0.239601 | 0 | 0 | 0 | 0 | 0.050773 | 0.363764 | 1,424 | 46 | 58 | 30.956522 | 0.612583 | 0 | 0 | 0.068182 | 0 | 0 | 0.221208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6342777a63270942d47f11ee5a3d9e0b0d0c29cf | 3,925 | py | Python | python/examples/core/variables.py | chelini/iree-llvm-sandbox | 28978acb424bbac552f04856b28eb6c87478c289 | [
"Apache-2.0"
] | 29 | 2021-06-18T17:25:09.000Z | 2022-03-18T23:20:24.000Z | python/examples/core/variables.py | chelini/iree-llvm-sandbox | 28978acb424bbac552f04856b28eb6c87478c289 | [
"Apache-2.0"
] | 151 | 2021-06-11T18:45:52.000Z | 2022-03-31T23:13:23.000Z | python/examples/core/variables.py | chelini/iree-llvm-sandbox | 28978acb424bbac552f04856b28eb6c87478c289 | [
"Apache-2.0"
] | 25 | 2021-03-24T14:33:12.000Z | 2022-03-29T13:42:57.000Z | """Utilities for search space exploration over linalg operations."""
import typing as tp
class Variable:
'Abstract class used as a base for all search variables.'
def __init__(self, name):
self.name = name
def assign(self, assignments, value):
'Assigns variable to a given value in assignments diction... | 27.068966 | 88 | 0.724586 | 491 | 3,925 | 5.435845 | 0.175153 | 0.086924 | 0.076433 | 0.063694 | 0.610716 | 0.487823 | 0.417385 | 0.391158 | 0.391158 | 0.359685 | 0 | 0 | 0.17172 | 3,925 | 144 | 89 | 27.256944 | 0.820978 | 0.187516 | 0 | 0.553191 | 0 | 0 | 0.292204 | 0.080376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212766 | false | 0 | 0.010638 | 0.106383 | 0.457447 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
636656a742fab3673a13bcd7624101bbb8c4bef8 | 129 | py | Python | gameconst.py | pestunov/game | 4ac7ddbd6a38b8f96642f3f03911790319d2909f | [
"MIT"
] | null | null | null | gameconst.py | pestunov/game | 4ac7ddbd6a38b8f96642f3f03911790319d2909f | [
"MIT"
] | null | null | null | gameconst.py | pestunov/game | 4ac7ddbd6a38b8f96642f3f03911790319d2909f | [
"MIT"
] | null | null | null |
WIDTH = 512
HEIGHT = 336
FPS = 50
PIX_FOR_BRIX = 16
STEPS_FOR_CYCLE = 16
N_STEP_FOR_TEST = 5
BLACK = (0, 0, 0)
BKGR = (0, 0, 0)
| 12.9 | 20 | 0.651163 | 27 | 129 | 2.851852 | 0.703704 | 0.103896 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19 | 0.224806 | 129 | 9 | 21 | 14.333333 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
636a18bcea26d25ac5c661f4f7bcedb47ae6ee48 | 1,034 | py | Python | src/database/biz/Accounts/Accounts.py | ytitweb/GitHub.Uploader.Pi3.Https.201802230700 | 4b2b7a81ca9872c290826be02cba2fddfdd8a8fb | [
"CC0-1.0"
] | null | null | null | src/database/biz/Accounts/Accounts.py | ytitweb/GitHub.Uploader.Pi3.Https.201802230700 | 4b2b7a81ca9872c290826be02cba2fddfdd8a8fb | [
"CC0-1.0"
] | null | null | null | src/database/biz/Accounts/Accounts.py | ytitweb/GitHub.Uploader.Pi3.Https.201802230700 | 4b2b7a81ca9872c290826be02cba2fddfdd8a8fb | [
"CC0-1.0"
] | null | null | null | from database.Database import Database as Db
class Accounts:
def __init__(self, db):
#self.__db = Database().Accounts
#self.__db = Db()._Database__Initializers[self.__class__.__name__].Db
self.__db = db # dataset.connect('sqlite:///' + .../GitHub.Accounts.sqlite3) 呼出元: DatabaseMeta.__init__... | 33.354839 | 113 | 0.589942 | 110 | 1,034 | 5.218182 | 0.418182 | 0.094077 | 0.097561 | 0.094077 | 0.083624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001227 | 0.211799 | 1,034 | 30 | 114 | 34.466667 | 0.703067 | 0.383946 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.071429 | 0.071429 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
63725dcc0f569d77c9d62f52bf92c6b90da2b9b2 | 3,311 | py | Python | src/p4rrot/known_types.py | gycsaba96/P4RROT | aa10d2063d566450674e4798e6f713e49877a604 | [
"MIT"
] | null | null | null | src/p4rrot/known_types.py | gycsaba96/P4RROT | aa10d2063d566450674e4798e6f713e49877a604 | [
"MIT"
] | null | null | null | src/p4rrot/known_types.py | gycsaba96/P4RROT | aa10d2063d566450674e4798e6f713e49877a604 | [
"MIT"
] | null | null | null | #
# Classes representing available types and their P4 equivalent.
#
from typing import Dict, List, Tuple
import ctypes
from functools import lru_cache
class KnownType:
"""
Base class of available types.
"""
pass
class uint8_t(KnownType):
def get_p4_type() -> str:
return 'bit<8>'
def... | 22.52381 | 89 | 0.580187 | 452 | 3,311 | 4.081858 | 0.216814 | 0.045528 | 0.065041 | 0.060705 | 0.654201 | 0.590244 | 0.590244 | 0.55122 | 0.512195 | 0.426016 | 0 | 0.024815 | 0.306252 | 3,311 | 146 | 90 | 22.678082 | 0.778407 | 0.059499 | 0 | 0.505495 | 0 | 0 | 0.101299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.340659 | false | 0.010989 | 0.032967 | 0.230769 | 0.791209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
637e55680df7ac950c6c3d4eae325b7ef13498ab | 1,069 | py | Python | setup.py | Jimdo/nagios2trac | 53b7559b37be57c48b8adb36363b2db3c611d7ca | [
"Apache-2.0"
] | null | null | null | setup.py | Jimdo/nagios2trac | 53b7559b37be57c48b8adb36363b2db3c611d7ca | [
"Apache-2.0"
] | 2 | 2015-03-13T08:10:21.000Z | 2016-12-28T08:22:44.000Z | setup.py | Jimdo/nagios2trac | 53b7559b37be57c48b8adb36363b2db3c611d7ca | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import Command, setup
import sys
class PyPandoc(Command):
description = 'Generates the documentation in reStructuredText format.'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def convert(self, infile... | 27.410256 | 75 | 0.623012 | 125 | 1,069 | 5.272 | 0.616 | 0.033384 | 0.045524 | 0.054628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.23667 | 1,069 | 38 | 76 | 28.131579 | 0.800245 | 0.018709 | 0 | 0.068966 | 1 | 0 | 0.283397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.068966 | 0.103448 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
637e58dc7c2905f3fbcb05a6330ac69299a6562c | 228 | py | Python | synthqc/errors.py | jcreinhold/synthqc | a08d4c925a81c397195fb87f6691893858fc0792 | [
"Apache-2.0"
] | null | null | null | synthqc/errors.py | jcreinhold/synthqc | a08d4c925a81c397195fb87f6691893858fc0792 | [
"Apache-2.0"
] | null | null | null | synthqc/errors.py | jcreinhold/synthqc | a08d4c925a81c397195fb87f6691893858fc0792 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
synthqc.errors
This module holds project defined errors
Author: Jacob Reinhold (jacob.reinhold@jhu.edu)
Created on: Nov 15, 2018
"""
class SynthQCError(Exception):
pass
| 14.25 | 47 | 0.697368 | 31 | 228 | 5.129032 | 0.903226 | 0.163522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036649 | 0.162281 | 228 | 15 | 48 | 15.2 | 0.795812 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
638271dcf2f31523965be120a56fa91b37bf0de1 | 274 | py | Python | language-learning/python/tricks/equal_vs_is.py | imteekay/programming-language-research | a9b05d70a669d789d79e1bd916bcc088958ff9df | [
"MIT"
] | 24 | 2019-05-24T03:22:42.000Z | 2021-09-30T01:04:17.000Z | language-learning/python/tricks/equal_vs_is.py | imteekay/programming-language-research | a9b05d70a669d789d79e1bd916bcc088958ff9df | [
"MIT"
] | null | null | null | language-learning/python/tricks/equal_vs_is.py | imteekay/programming-language-research | a9b05d70a669d789d79e1bd916bcc088958ff9df | [
"MIT"
] | 3 | 2019-11-22T19:04:23.000Z | 2021-04-15T19:40:47.000Z | a = [1, 2, 3]
b = a
print(a == b)
# => True
print(a is b)
# => True
c = list(a)
# == evaluates to true if the objects referred by the variables are equal
print(a == c)
# => True
# is evaluates to true if both variables point to the same object
print(a is c)
# => false
| 14.421053 | 73 | 0.620438 | 51 | 274 | 3.333333 | 0.490196 | 0.141176 | 0.094118 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.244526 | 274 | 18 | 74 | 15.222222 | 0.806763 | 0.613139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 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 | 1 | 0 | 2 |
6387e70fe6ee6d6df945036d9b2b9a0612df5188 | 2,345 | py | Python | masar_cheques/overrides/overrides.py | karamakcsc/masar_cheques | 36aa177fdfe8954e4344235193514e7b7d6c39ae | [
"MIT"
] | null | null | null | masar_cheques/overrides/overrides.py | karamakcsc/masar_cheques | 36aa177fdfe8954e4344235193514e7b7d6c39ae | [
"MIT"
] | null | null | null | masar_cheques/overrides/overrides.py | karamakcsc/masar_cheques | 36aa177fdfe8954e4344235193514e7b7d6c39ae | [
"MIT"
] | null | null | null | import frappe
import erpnext
from frappe import throw, msgprint, _
from erpnext.accounts.doctype.payment_entry.payment_entry import PaymentEntry
def custom_add_bank_gl_entries(self, gl_entries):
if self.mode_of_payment == "Cheque":
if self.payment_type in ("Pay", "Internal Transfer"):
for d in self.get("payme... | 35.530303 | 84 | 0.676759 | 309 | 2,345 | 4.812298 | 0.174757 | 0.121049 | 0.069939 | 0.091459 | 0.765972 | 0.710155 | 0.69267 | 0.69267 | 0.61735 | 0.61735 | 0 | 0 | 0.207249 | 2,345 | 65 | 85 | 36.076923 | 0.799892 | 0 | 0 | 0.508475 | 0 | 0 | 0.198721 | 0.043497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.118644 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6391d525ff68fe7cf5b70e0a8aadb19f9b8a5d2d | 1,249 | py | Python | rx/operators/observable/blocking/last.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-11-16T09:07:13.000Z | 2018-11-16T09:07:13.000Z | rx/operators/observable/blocking/last.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/operators/observable/blocking/last.py | yutiansut/RxPY | c3bbba77f9ebd7706c949141725e220096deabd4 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-05-08T08:23:08.000Z | 2020-05-08T08:23:08.000Z | from typing import Any
def last(self) -> Any:
"""Blocks until the last element emits from a BlockingObservable.
If no item is emitted when on_completed() is called, an exception is thrown
Note: This will block even if the underlying Observable is
asynchronous.
Returns the last item to be emitte... | 24.490196 | 79 | 0.68775 | 178 | 1,249 | 4.702247 | 0.320225 | 0.076464 | 0.109916 | 0.040621 | 0.685783 | 0.685783 | 0.685783 | 0.685783 | 0.685783 | 0.685783 | 0 | 0 | 0.26261 | 1,249 | 50 | 80 | 24.98 | 0.908795 | 0.526021 | 0 | 0.736842 | 0 | 0 | 0.039848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
63c5cdce4522a0bb9dc633c285ec5908cf404f73 | 266 | py | Python | python/2.OOP/2Inheritance/5.extends_any.py | dunitian/BaseCode | 4855ef4c6dd7c95d7239d2048832d8acfe26e084 | [
"Apache-2.0"
] | 25 | 2018-06-13T08:13:44.000Z | 2020-11-19T14:02:11.000Z | python/2.OOP/2Inheritance/5.extends_any.py | dunitian/BaseCode | 4855ef4c6dd7c95d7239d2048832d8acfe26e084 | [
"Apache-2.0"
] | null | null | null | python/2.OOP/2Inheritance/5.extends_any.py | dunitian/BaseCode | 4855ef4c6dd7c95d7239d2048832d8acfe26e084 | [
"Apache-2.0"
] | 13 | 2018-06-13T08:13:38.000Z | 2022-01-06T06:45:07.000Z | # 多继承引入
class Father(object):
def eat(self):
print("文雅的吃饭")
class Mom(object):
def run(self):
print("小碎步")
class Son(Father, Mom):
pass
def main():
son = Son()
son.eat()
son.run()
if __name__ == '__main__':
main()
| 11.083333 | 26 | 0.533835 | 34 | 266 | 3.941176 | 0.5 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300752 | 266 | 23 | 27 | 11.565217 | 0.72043 | 0.018797 | 0 | 0 | 0 | 0 | 0.061776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.071429 | 0 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
63c8214dde303ecaafbfdce91b1baae958453afb | 274 | py | Python | videos/urls.py | rupeshcode/youtube_scraper | e4c93b17d65b6e6432723b5f96ca6884082de7e0 | [
"MIT"
] | null | null | null | videos/urls.py | rupeshcode/youtube_scraper | e4c93b17d65b6e6432723b5f96ca6884082de7e0 | [
"MIT"
] | null | null | null | videos/urls.py | rupeshcode/youtube_scraper | e4c93b17d65b6e6432723b5f96ca6884082de7e0 | [
"MIT"
] | null | null | null | from django.urls import include, path
from videos.views import manage_videos, manage_videos_search
app_name = 'videos'
urlpatterns = [
path('videos', manage_videos, name='manage_videos'),
path('videos/search', manage_videos_search, name='manage_videos_search')
]
| 24.909091 | 76 | 0.766423 | 36 | 274 | 5.555556 | 0.361111 | 0.36 | 0.27 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124088 | 274 | 10 | 77 | 27.4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.211679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
63d5dd7f7775860865d5d63c046cec78fa459859 | 387 | py | Python | tests/lists_tests/test_contains.py | lycantropos/cppbuiltins | c1facfe06f8af33201cd64e713da93bbc14763f2 | [
"MIT"
] | 1 | 2021-08-15T11:35:45.000Z | 2021-08-15T11:35:45.000Z | tests/lists_tests/test_contains.py | lycantropos/cppbuiltins | c1facfe06f8af33201cd64e713da93bbc14763f2 | [
"MIT"
] | null | null | null | tests/lists_tests/test_contains.py | lycantropos/cppbuiltins | c1facfe06f8af33201cd64e713da93bbc14763f2 | [
"MIT"
] | null | null | null | from typing import Any
from hypothesis import given
from tests.utils import (AlternativeNativeListsPair,
equivalence)
from . import strategies
@given(strategies.lists_pairs, strategies.objects)
def test_basic(pair: AlternativeNativeListsPair, value: Any) -> None:
alternative, native = p... | 25.8 | 69 | 0.744186 | 42 | 387 | 6.809524 | 0.571429 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193798 | 387 | 14 | 70 | 27.642857 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8922f831c2bfba3a75dfba22090d54cdc78fc78c | 37,077 | py | Python | TEMpcPlot/tables/pt_tables.py | Prestipino/TEMpcPlot | 6473751623d90ea7574910a187c98c6bd84dab3a | [
"MIT"
] | null | null | null | TEMpcPlot/tables/pt_tables.py | Prestipino/TEMpcPlot | 6473751623d90ea7574910a187c98c6bd84dab3a | [
"MIT"
] | null | null | null | TEMpcPlot/tables/pt_tables.py | Prestipino/TEMpcPlot | 6473751623d90ea7574910a187c98c6bd84dab3a | [
"MIT"
] | null | null | null | #!usr/bin/python
# -*- coding: utf-8 -*-
# pt_table.py
"""set of funcion for atomic weight calculation
the modules contain some data
N_av constant avogadro number
Faraday constant Faraday constant (C/mol) n coulomb equal to a mole of e-
elements list Names of atoms
atomic_w... | 71.028736 | 449 | 0.327777 | 5,659 | 37,077 | 2.106203 | 0.227602 | 0.100512 | 0.123332 | 0.129877 | 0.17879 | 0.16352 | 0.122074 | 0.114859 | 0.111754 | 0.107392 | 0 | 0.385745 | 0.454352 | 37,077 | 521 | 450 | 71.165067 | 0.203401 | 0.040807 | 0 | 0.236504 | 0 | 0 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0.007712 | 1 | 0.007712 | false | 0 | 0.002571 | 0 | 0.023136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89271b2e2dd1732f4ec720fe37e44760143528e5 | 2,273 | py | Python | src/monitors/optim_monitors.py | isaachenrion/jets | 59aeba81788d0741af448192d9dfb764fb97cf8d | [
"BSD-3-Clause"
] | 9 | 2017-10-09T17:01:52.000Z | 2018-06-12T18:06:05.000Z | src/monitors/optim_monitors.py | isaachenrion/jets | 59aeba81788d0741af448192d9dfb764fb97cf8d | [
"BSD-3-Clause"
] | 31 | 2017-11-01T14:39:02.000Z | 2018-04-18T15:34:24.000Z | src/monitors/optim_monitors.py | isaachenrion/jets | 59aeba81788d0741af448192d9dfb764fb97cf8d | [
"BSD-3-Clause"
] | 10 | 2017-10-17T19:23:14.000Z | 2020-07-05T04:44:45.000Z | import torch
from .meta import Collect
class GradNorm(Collect):
def __init__(self, **kwargs):
super().__init__('grad_norm', fn='last', **kwargs)
def call(self, grads=None, **kwargs):
#grads = [p.grad for p in model.parameters()]
#grads = torch.cat([g.view(-1) for g in grads],0)
... | 34.969231 | 71 | 0.639683 | 299 | 2,273 | 4.58194 | 0.147157 | 0.136496 | 0.051095 | 0.065693 | 0.751825 | 0.655474 | 0.616788 | 0.575182 | 0.465693 | 0.437956 | 0 | 0.005627 | 0.218214 | 2,273 | 64 | 72 | 35.515625 | 0.765335 | 0.231852 | 0 | 0.4 | 0 | 0 | 0.044957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8934ebc2362350f969fabc033a0037220175278b | 626 | py | Python | dtf/affiliates/views.py | WebPowerLabs/django-trainings | 97f7a96c0fbeb85a001201c74713f7944cb77236 | [
"BSD-3-Clause"
] | null | null | null | dtf/affiliates/views.py | WebPowerLabs/django-trainings | 97f7a96c0fbeb85a001201c74713f7944cb77236 | [
"BSD-3-Clause"
] | null | null | null | dtf/affiliates/views.py | WebPowerLabs/django-trainings | 97f7a96c0fbeb85a001201c74713f7944cb77236 | [
"BSD-3-Clause"
] | null | null | null | from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.contrib.auth.decorators import login_required
from utils.views import PermissionMixin
from .models import Partner, PartnerProduct
class PartnerListView(PermissionMixin, ListView):
model = Partner
de... | 31.3 | 57 | 0.78754 | 70 | 626 | 6.942857 | 0.471429 | 0.061728 | 0.061728 | 0.090535 | 0.156379 | 0.156379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132588 | 626 | 20 | 58 | 31.3 | 0.895028 | 0 | 0 | 0.285714 | 0 | 0 | 0.102073 | 0.092504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8936f914bd2ae7f5d3057bc552b6d1fbc258c4aa | 798 | py | Python | project-euler/0018_maximum_path_sum.py | alenic/comprosol | 101d43ea7fef5e1847842420ab08e481c82bc526 | [
"MIT"
] | null | null | null | project-euler/0018_maximum_path_sum.py | alenic/comprosol | 101d43ea7fef5e1847842420ab08e481c82bc526 | [
"MIT"
] | null | null | null | project-euler/0018_maximum_path_sum.py | alenic/comprosol | 101d43ea7fef5e1847842420ab08e481c82bc526 | [
"MIT"
] | null | null | null | s = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67 30 73 16 69 87 40 3... | 21 | 64 | 0.626566 | 201 | 798 | 2.402985 | 0.487562 | 0.062112 | 0.057971 | 0.099379 | 0.136646 | 0.10766 | 0.10766 | 0.10766 | 0 | 0 | 0 | 0.444834 | 0.284461 | 798 | 38 | 65 | 21 | 0.401051 | 0 | 0 | 0 | 0 | 0 | 0.451815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.066667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8942f9a1aae9d79ad55697677f95590021cdb1a5 | 693 | py | Python | might_useful.py | lyclyc52/nerf_with_slot_attention | af314b226ebe6603ecac394d4330ddfe9e094d13 | [
"MIT"
] | 1 | 2022-03-24T13:42:24.000Z | 2022-03-24T13:42:24.000Z | might_useful.py | lyclyc52/nerf_with_slot_attention | af314b226ebe6603ecac394d4330ddfe9e094d13 | [
"MIT"
] | null | null | null | might_useful.py | lyclyc52/nerf_with_slot_attention | af314b226ebe6603ecac394d4330ddfe9e094d13 | [
"MIT"
] | null | null | null |
# For EM
# slots = slots.T
# position = position.T
# with torch.no_grad():
# for i in range(20):
# z = torch.matmul(f, slots) # NxK
# z_p = torch.matmul(f_p, position)
# z = z + w * z_p
# z = F.softmax(z, dim=-1) # NxK
# z_ = z / (1e-6 + z.sum(dim=1... | 27.72 | 56 | 0.528139 | 106 | 693 | 3.330189 | 0.386792 | 0.155807 | 0.169972 | 0.096317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.300144 | 693 | 25 | 57 | 27.72 | 0.696907 | 0.930736 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8945e1768f8dcd0b216dc6512fcd6f582f407d44 | 186 | py | Python | 10_File_Handling/01_Files.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | 2 | 2021-05-29T17:22:40.000Z | 2021-06-07T09:32:53.000Z | 10_File_Handling/01_Files.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | null | null | null | 10_File_Handling/01_Files.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | null | null | null | f=open('This.txt','r')
# this is Default read mode of file
f=open('This.txt') #open file
# data=f.read()
data=f.read(5) #Starting 5 characters from file
print(data)
f.close() | 20.666667 | 48 | 0.650538 | 34 | 186 | 3.558824 | 0.529412 | 0.123967 | 0.14876 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.177419 | 186 | 9 | 49 | 20.666667 | 0.777778 | 0.467742 | 0 | 0 | 0 | 0 | 0.195402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8963e6d19464e4426a06a7f598f15465bc24bbbd | 1,771 | py | Python | rasa_nlu/tokenizers/yaha_tokenizer.py | hetaomilk123/Rasa_NLU_Chi | 21c815dd20a8206e93a6a3661c1e024115d670cf | [
"Apache-2.0"
] | 1,304 | 2017-11-15T08:33:44.000Z | 2022-03-30T09:05:12.000Z | rasa_nlu/tokenizers/yaha_tokenizer.py | hetaomilk123/Rasa_NLU_Chi | 21c815dd20a8206e93a6a3661c1e024115d670cf | [
"Apache-2.0"
] | 94 | 2017-11-15T11:44:50.000Z | 2021-12-19T11:48:11.000Z | rasa_nlu/tokenizers/yaha_tokenizer.py | hetaomilk123/Rasa_NLU_Chi | 21c815dd20a8206e93a6a3661c1e024115d670cf | [
"Apache-2.0"
] | 397 | 2017-11-11T09:02:01.000Z | 2022-03-18T08:04:38.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 23 14:54:35 2017
@author: user
"""
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from typing import Any
from typing import Dict
from typing import List
... | 26.432836 | 104 | 0.648786 | 209 | 1,771 | 5.325359 | 0.440191 | 0.035939 | 0.049416 | 0.034142 | 0.052111 | 0.052111 | 0 | 0 | 0 | 0 | 0 | 0.011346 | 0.253529 | 1,771 | 66 | 105 | 26.833333 | 0.83056 | 0.116318 | 0 | 0 | 0 | 0 | 0.086079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.027027 | 0.405405 | 0.027027 | 0.702703 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
89669f4cdf068fd6d2ed0db34a69c8a2bdc3e9f6 | 979 | py | Python | CS1_BostonCollege/HW2_CS1/temperature.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | CS1_BostonCollege/HW2_CS1/temperature.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | CS1_BostonCollege/HW2_CS1/temperature.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | # author: Gonzalo Salazar
# assigment: Homework #2
# description: contains three functions
# First function:
# Input: temperature value in degrees Centigrade
# Output: temperature value in degrees Fahrenheit
# Second function:
# Input: temperature value in degrees Fahrenheit
# Output: temper... | 34.964286 | 87 | 0.71093 | 140 | 979 | 4.871429 | 0.392857 | 0.117302 | 0.131965 | 0.183284 | 0.331378 | 0.196481 | 0.140762 | 0 | 0 | 0 | 0 | 0.040208 | 0.212462 | 979 | 27 | 88 | 36.259259 | 0.844358 | 0.662921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
897f1e46c858effdd7124801e8d63b086847b1eb | 6,805 | py | Python | alipay/aop/api/response/AlipayOpenServicemarketCommodityQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayOpenServicemarketCommodityQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayOpenServicemarketCommodityQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenServicemarketCommodityQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenServicemarketCommodityQueryResponse, self).__init__()
self._app_hot... | 28.834746 | 118 | 0.639824 | 799 | 6,805 | 5.146433 | 0.077597 | 0.058852 | 0.074903 | 0.013619 | 0.030642 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000203 | 0.276561 | 6,805 | 235 | 119 | 28.957447 | 0.83506 | 0.006172 | 0 | 0.107317 | 0 | 0 | 0.067741 | 0.006212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22439 | false | 0 | 0.009756 | 0.107317 | 0.346341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
89918aefb072ff501679e64756f1c7f4242492c3 | 2,485 | py | Python | data_structure/heap/max_heap.py | khoadnse/algorithm | 24f224cf2fd85f8a896df607325a05818efa2811 | [
"MIT"
] | null | null | null | data_structure/heap/max_heap.py | khoadnse/algorithm | 24f224cf2fd85f8a896df607325a05818efa2811 | [
"MIT"
] | null | null | null | data_structure/heap/max_heap.py | khoadnse/algorithm | 24f224cf2fd85f8a896df607325a05818efa2811 | [
"MIT"
] | null | null | null | """
Max Heap
"""
import unittest
from typing import TypeVar
from data_structure.heap.abstract_heap import AbstractHeap
T = TypeVar('T')
class MaxHeap(AbstractHeap[T]):
def __init__(self, array: list[T], cap: int = 10):
if array:
super().__init__(max(len(array), cap))
for i in ra... | 28.895349 | 95 | 0.582294 | 322 | 2,485 | 4.350932 | 0.245342 | 0.1606 | 0.203426 | 0.231977 | 0.301927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046577 | 0.282897 | 2,485 | 85 | 96 | 29.235294 | 0.739618 | 0.003219 | 0 | 0.033333 | 0 | 0 | 0.00891 | 0 | 0 | 0 | 0 | 0 | 0.316667 | 1 | 0.066667 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89aecdd1190f53ff622c4ccb4469a70065afaac5 | 21,037 | py | Python | skywalking/JVMMetricsService_pb2.py | nutzam/skywalking-python-agent | 56e52171f37b1996f4fe6c1bf336de1ed603b9ba | [
"Apache-2.0"
] | 12 | 2017-10-18T12:32:39.000Z | 2020-04-20T03:42:24.000Z | skywalking/JVMMetricsService_pb2.py | nutzam/skywalking-python-agent | 56e52171f37b1996f4fe6c1bf336de1ed603b9ba | [
"Apache-2.0"
] | 2 | 2017-11-01T01:51:26.000Z | 2019-01-16T03:35:15.000Z | skywalking/JVMMetricsService_pb2.py | nutzam/skywalking-python-agent | 56e52171f37b1996f4fe6c1bf336de1ed603b9ba | [
"Apache-2.0"
] | 2 | 2018-11-30T06:36:41.000Z | 2019-12-13T15:32:27.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: JVMMetricsService.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import mes... | 35.237856 | 1,541 | 0.73114 | 2,652 | 21,037 | 5.556561 | 0.128205 | 0.042888 | 0.035423 | 0.034338 | 0.539699 | 0.497828 | 0.488939 | 0.476113 | 0.425285 | 0.425285 | 0 | 0.039906 | 0.151875 | 21,037 | 596 | 1,542 | 35.29698 | 0.786011 | 0.09393 | 0 | 0.549801 | 1 | 0.001992 | 0.150185 | 0.094301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013944 | false | 0.015936 | 0.027888 | 0 | 0.053785 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
89b10d858251dfab1044774ba34043f35b34fc0d | 546 | py | Python | tests/r/test_bio_chemists.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_bio_chemists.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_bio_chemists.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.bio_chemists import bio_chemists
def test_bio_chemists():
"""Test module bio_chemists.py by downloading
bio_chemists.csv and testing shape of... | 22.75 | 52 | 0.767399 | 78 | 546 | 5.038462 | 0.538462 | 0.167939 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01766 | 0.17033 | 546 | 23 | 53 | 23.73913 | 0.84989 | 0.223443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
89b89b1892ad0085fa75d3d952e62f8c2cd2949d | 1,907 | py | Python | test/record/parser/test_response_whois_in_ua_status_registered.py | huyphan/pyyawhois | 77fb2f73a9c67989f1d41d98f37037406a69d136 | [
"MIT"
] | null | null | null | test/record/parser/test_response_whois_in_ua_status_registered.py | huyphan/pyyawhois | 77fb2f73a9c67989f1d41d98f37037406a69d136 | [
"MIT"
] | null | null | null | test/record/parser/test_response_whois_in_ua_status_registered.py | huyphan/pyyawhois | 77fb2f73a9c67989f1d41d98f37037406a69d136 | [
"MIT"
] | null | null | null |
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# spec/fixtures/responses/whois.in.ua/status_registered
#
# and regenerate the tests with the following script
#
# $ scripts/generate_tests.py
#
from nose.tools import *
from dateutil.parser import parse a... | 35.981132 | 87 | 0.69376 | 252 | 1,907 | 4.904762 | 0.380952 | 0.13754 | 0.135922 | 0.130259 | 0.355178 | 0.276699 | 0.226537 | 0.074434 | 0 | 0 | 0 | 0.026198 | 0.179339 | 1,907 | 52 | 88 | 36.673077 | 0.763578 | 0.125328 | 0 | 0 | 1 | 0 | 0.126132 | 0.0344 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.25 | false | 0 | 0.09375 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98293db0d0be8036e03f73f89fc442c988ece231 | 1,979 | py | Python | 19-10-15-exercises/main.py | stogacs/cscex | 40e3bca8bebc4ee8275d26185cae6f33a8bafcd6 | [
"MIT"
] | null | null | null | 19-10-15-exercises/main.py | stogacs/cscex | 40e3bca8bebc4ee8275d26185cae6f33a8bafcd6 | [
"MIT"
] | null | null | null | 19-10-15-exercises/main.py | stogacs/cscex | 40e3bca8bebc4ee8275d26185cae6f33a8bafcd6 | [
"MIT"
] | 1 | 2020-10-11T20:34:26.000Z | 2020-10-11T20:34:26.000Z | '''
Conestoga Computer Science Club Programming Challenges
Instructions:
Finish each method and run the test.py file to test the methods.
'''
'''
Karaca Encrypt
--------------
Make a function that encrypts a given input with these steps:
Input: "apple"
Step 1: Reverse the input: "elppa"
Step 2: Replace all vowel... | 21.27957 | 181 | 0.6857 | 344 | 1,979 | 3.956395 | 0.47093 | 0.026451 | 0.035268 | 0.005878 | 0.051433 | 0.051433 | 0.014695 | 0.014695 | 0.014695 | 0.014695 | 0 | 0.070164 | 0.200606 | 1,979 | 92 | 182 | 21.51087 | 0.783818 | 0.083375 | 0 | 0.285714 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.285714 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9829f3621153c209b0c703d338f19057b5316a7a | 474 | py | Python | tests/python/test_units.py | aTrotier/sycomore | 32e438d3a90ca0a9d051bb6acff461e06079116d | [
"MIT"
] | 14 | 2019-11-06T09:23:09.000Z | 2022-01-11T19:08:36.000Z | tests/python/test_units.py | aTrotier/sycomore | 32e438d3a90ca0a9d051bb6acff461e06079116d | [
"MIT"
] | 2 | 2020-12-01T15:48:27.000Z | 2020-12-04T15:19:37.000Z | tests/python/test_units.py | aTrotier/sycomore | 32e438d3a90ca0a9d051bb6acff461e06079116d | [
"MIT"
] | 2 | 2020-08-12T04:36:36.000Z | 2021-05-27T13:17:34.000Z | import unittest
import sycomore
from sycomore.units import *
class TestUnits(unittest.TestCase):
def test_basic_unit(self):
length = 100*cm
self.assertEqual(length.magnitude, 1)
self.assertEqual(length.dimensions, sycomore.Length)
def test_derived_unit(self):
length = 1*kN
... | 24.947368 | 60 | 0.698312 | 55 | 474 | 5.8 | 0.490909 | 0.188088 | 0.263323 | 0.188088 | 0.244514 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023873 | 0.204641 | 474 | 18 | 61 | 26.333333 | 0.822281 | 0 | 0 | 0 | 0 | 0 | 0.016878 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
982a5489398070db8ecfb6f1d7d8165430418681 | 1,209 | py | Python | SQL/1068. Product Sales Analysis I.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | SQL/1068. Product Sales Analysis I.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | SQL/1068. Product Sales Analysis I.py | joshlyman/Josh-LeetCode | cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed | [
"MIT"
] | null | null | null | -- Write an SQL query that reports all product names of the products in the Sales table along with their selling year and price.
-- For example:
-- Sales table:
-- +---------+------------+------+----------+-------+
-- | sale_id | product_id | year | quantity | price |
-- +---------+------------+------+----------+----... | 32.675676 | 128 | 0.369727 | 99 | 1,209 | 4.434343 | 0.555556 | 0.082005 | 0.072893 | 0.091116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083799 | 0.259719 | 1,209 | 37 | 129 | 32.675676 | 0.406704 | 0.031431 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
983883c265500a2f1f71a28638f2597e7321ffba | 428 | py | Python | test/tests.py | jealuna/NReinas | f65a57f246d557b10fa17e831f1e5cd5c0c25e37 | [
"MIT"
] | null | null | null | test/tests.py | jealuna/NReinas | f65a57f246d557b10fa17e831f1e5cd5c0c25e37 | [
"MIT"
] | null | null | null | test/tests.py | jealuna/NReinas | f65a57f246d557b10fa17e831f1e5cd5c0c25e37 | [
"MIT"
] | null | null | null | import pytest
import reinas.queens as queens
import numpy as np
import models.consultas as consultas
def test_numero_reinas(numero):
n = int(numero)
lista_soluciones = []
session = consultas.loadSession()
tablero = np.zeros(shape=(n,n),dtype=int)
queens.n_reinas(tablero,0,lista_soluciones)
... | 32.923077 | 57 | 0.738318 | 57 | 428 | 5.385965 | 0.45614 | 0.14658 | 0.117264 | 0.18241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002817 | 0.170561 | 428 | 13 | 58 | 32.923077 | 0.861972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
98442b79a05dc3688a1a432772446353d365c08f | 197 | py | Python | tests/run_tests.py | alercebroker/lc_correction | fa556a54baba647a5c026d3dd7b182aca18fc46e | [
"MIT"
] | null | null | null | tests/run_tests.py | alercebroker/lc_correction | fa556a54baba647a5c026d3dd7b182aca18fc46e | [
"MIT"
] | 3 | 2020-10-13T14:55:42.000Z | 2021-01-05T15:35:57.000Z | tests/run_tests.py | alercebroker/lc_correction | fa556a54baba647a5c026d3dd7b182aca18fc46e | [
"MIT"
] | null | null | null | import unittest
import os
import sys
FILE_PATH = os.path.dirname(os.path.abspath(__file__))
sys.path.append(FILE_PATH)
from ZTF_correction import *
if __name__ == "__main__":
unittest.main()
| 17.909091 | 54 | 0.761421 | 29 | 197 | 4.655172 | 0.517241 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126904 | 197 | 10 | 55 | 19.7 | 0.784884 | 0 | 0 | 0 | 0 | 0 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
9846f767cc451b95cc049b8404f7df46a3c5f248 | 3,516 | py | Python | name_generator/generator.py | cookyt/name-generator | 8a7fc61981a1ba608f767a9f54fbf37e858aff78 | [
"MIT-feh",
"MIT"
] | 1 | 2017-12-06T12:16:00.000Z | 2017-12-06T12:16:00.000Z | name_generator/generator.py | cookyt/name-generator | 8a7fc61981a1ba608f767a9f54fbf37e858aff78 | [
"MIT-feh",
"MIT"
] | null | null | null | name_generator/generator.py | cookyt/name-generator | 8a7fc61981a1ba608f767a9f54fbf37e858aff78 | [
"MIT-feh",
"MIT"
] | null | null | null | #! /usr/bin/env python2
import os
import random
from collections import defaultdict
def GetNames(fname):
with open(fname, 'r') as fin:
names = [name.strip().lower() for name in fin.readlines()]
return names
class WordGenerator(object):
''' Generates words using statistical properties of the given list of... | 36.625 | 79 | 0.705347 | 488 | 3,516 | 4.922131 | 0.346311 | 0.023314 | 0.021649 | 0.017485 | 0.045795 | 0.045795 | 0.033306 | 0 | 0 | 0 | 0 | 0.003595 | 0.20876 | 3,516 | 95 | 80 | 37.010526 | 0.859813 | 0.225256 | 0 | 0.036364 | 0 | 0 | 0.080209 | 0.015257 | 0 | 0 | 0 | 0.010526 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98486997e33e22d259f01458fb37c3286216db34 | 5,724 | py | Python | rldb/db/paper__gorila_dqn/algo__dqn/entries.py | seungjaeryanlee/sotarl | 8c471c4666d6210c68f3cb468e439a2b168c785d | [
"MIT"
] | 45 | 2019-05-13T17:39:33.000Z | 2022-03-07T23:44:13.000Z | rldb/db/paper__gorila_dqn/algo__dqn/entries.py | seungjaeryanlee/sotarl | 8c471c4666d6210c68f3cb468e439a2b168c785d | [
"MIT"
] | 2 | 2019-03-29T01:41:59.000Z | 2019-07-02T02:48:31.000Z | rldb/db/paper__gorila_dqn/algo__dqn/entries.py | seungjaeryanlee/sotarl | 8c471c4666d6210c68f3cb468e439a2b168c785d | [
"MIT"
] | 2 | 2020-04-07T20:57:30.000Z | 2020-07-08T12:55:15.000Z | entries = [
{
'env-title': 'atari-alien',
'env-variant': 'Human start',
'score': 570.20,
},
{
'env-title': 'atari-amidar',
'env-variant': 'Human start',
'score': 133.40,
},
{
'env-title': 'atari-assault',
'env-variant': 'Human start',
... | 23.080645 | 47 | 0.445842 | 565 | 5,724 | 4.516814 | 0.244248 | 0.153605 | 0.249608 | 0.384013 | 0.505878 | 0.065047 | 0.065047 | 0.065047 | 0.065047 | 0.065047 | 0 | 0.070331 | 0.351677 | 5,724 | 247 | 48 | 23.174089 | 0.617354 | 0 | 0 | 0.214575 | 0 | 0 | 0.437631 | 0.007687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9849b7b881bd8ae132be05997f3bbc5678da5556 | 244 | py | Python | config.py | superiorkid/todo | a5fef03d16d500af29c49f640dc1fcc2589df7db | [
"MIT"
] | null | null | null | config.py | superiorkid/todo | a5fef03d16d500af29c49f640dc1fcc2589df7db | [
"MIT"
] | null | null | null | config.py | superiorkid/todo | a5fef03d16d500af29c49f640dc1fcc2589df7db | [
"MIT"
] | null | null | null | import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or os.urandom(32)
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'postgresql://superiorkid:root@localhost/todo'
SQLALCHEMY_TRACK_MODIFICATIONS = False | 40.666667 | 108 | 0.786885 | 34 | 244 | 5.441176 | 0.705882 | 0.097297 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.094262 | 244 | 6 | 109 | 40.666667 | 0.828054 | 0 | 0 | 0 | 0 | 0 | 0.269388 | 0.179592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
984e51d2c6fff7a06f623009850fc88e1024e9c4 | 1,735 | py | Python | discrete_fuzzy_operators/decision_making/yager_aggregation.py | mmunar97/discrete-fuzzy-operators | e97646faa82a732b7d24c2e6621704b981b80b60 | [
"MIT"
] | null | null | null | discrete_fuzzy_operators/decision_making/yager_aggregation.py | mmunar97/discrete-fuzzy-operators | e97646faa82a732b7d24c2e6621704b981b80b60 | [
"MIT"
] | null | null | null | discrete_fuzzy_operators/decision_making/yager_aggregation.py | mmunar97/discrete-fuzzy-operators | e97646faa82a732b7d24c2e6621704b981b80b60 | [
"MIT"
] | null | null | null | from typing import Callable, List, Tuple
def yager_aggregation_decision_making(assessments: List[List[int]], aggregation_function: Callable[[List[int]], int]) -> Tuple[int, int]:
"""
Computes the best alternative from a matrix of assessments. The matrix contains, in each row, the assessment made
in a cert... | 55.967742 | 137 | 0.707205 | 236 | 1,735 | 5.152542 | 0.419492 | 0.078125 | 0.036184 | 0.019737 | 0.052632 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0.02566 | 0.236311 | 1,735 | 30 | 138 | 57.833333 | 0.891321 | 0.729107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9856fc295cdc73e2d8dfdbb14cdeef27d288abef | 345 | py | Python | classes/Speak.py | Sunuba/roc | 4dc80b2c885ba867b9dd2bbe5e4c2caee3ab275c | [
"MIT"
] | 23 | 2019-03-15T01:11:15.000Z | 2021-08-03T20:27:28.000Z | classes/Speak.py | Sunuba/roc | 4dc80b2c885ba867b9dd2bbe5e4c2caee3ab275c | [
"MIT"
] | 15 | 2020-03-24T18:15:24.000Z | 2022-03-12T00:15:35.000Z | classes/Speak.py | Sunuba/roc | 4dc80b2c885ba867b9dd2bbe5e4c2caee3ab275c | [
"MIT"
] | 21 | 2019-03-15T01:25:49.000Z | 2020-11-30T10:22:14.000Z | import pyttsx3
class Speak:
def __init__(self):
self.speaker = pyttsx3.init(driverName='sapi5')
# self.speaker.setProperty('voice', 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0')
def speak(self, text):
pass
self.speaker.say(text)
s... | 26.538462 | 128 | 0.678261 | 44 | 345 | 5.090909 | 0.704545 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.2 | 345 | 12 | 129 | 28.75 | 0.789855 | 0.342029 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
985cd9485810f246c523de413eb18e287e6d339c | 219 | py | Python | examples/ComputeAreaWithConsoleInput.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | null | null | null | examples/ComputeAreaWithConsoleInput.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 4 | 2019-11-07T12:32:19.000Z | 2020-07-19T14:04:44.000Z | examples/ComputeAreaWithConsoleInput.py | Ellis0817/Introduction-to-Programming-Using-Python | 1882a2a846162d5ff56d4d56c3940b638ef408bd | [
"MIT"
] | 5 | 2019-12-04T15:56:55.000Z | 2022-01-14T06:19:18.000Z | # Prompt the user to enter a radius
radius = eval(input("Enter a number for radius: "))
# Compute area
area = radius * radius * 3.14159
# Display results
print("The area for the circle of radius", radius, "is", area)
| 24.333333 | 62 | 0.703196 | 35 | 219 | 4.4 | 0.6 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.187215 | 219 | 8 | 63 | 27.375 | 0.831461 | 0.283105 | 0 | 0 | 0 | 0 | 0.405229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
986571e0c5e5e02f90b8e87238fd72f96e0f3e8e | 202 | py | Python | 08_Paquetes/8.1_uso-paquetes.py | alemr214/curso-python-desde-cero | ba36a1105125fef098cb25e9bce538ed8478b556 | [
"MIT"
] | null | null | null | 08_Paquetes/8.1_uso-paquetes.py | alemr214/curso-python-desde-cero | ba36a1105125fef098cb25e9bce538ed8478b556 | [
"MIT"
] | null | null | null | 08_Paquetes/8.1_uso-paquetes.py | alemr214/curso-python-desde-cero | ba36a1105125fef098cb25e9bce538ed8478b556 | [
"MIT"
] | null | null | null | # Se llama a un modulo del paquete "paquetito" usando todas sus funcionalidades
from paquetito.funcionesMatematicas import *
def main():
print(sumar(5, 4))
if __name__ == '__main__':
main()
| 18.363636 | 79 | 0.712871 | 26 | 202 | 5.230769 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.188119 | 202 | 10 | 80 | 20.2 | 0.817073 | 0.381188 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
988064a15f0a323f0c9281a8b18e1727d67840d8 | 1,213 | py | Python | django/mysite/polls/migrations/0005_auto_20170815_0447.py | vithd/vithd.github.io | 2c2f0863226a15d910ceeeb395704bc1a620db9a | [
"MIT"
] | null | null | null | django/mysite/polls/migrations/0005_auto_20170815_0447.py | vithd/vithd.github.io | 2c2f0863226a15d910ceeeb395704bc1a620db9a | [
"MIT"
] | null | null | null | django/mysite/polls/migrations/0005_auto_20170815_0447.py | vithd/vithd.github.io | 2c2f0863226a15d910ceeeb395704bc1a620db9a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-15 04:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0004_auto_20170811_0444'),
]
operations = [
migrations.RemoveField... | 28.209302 | 127 | 0.55235 | 121 | 1,213 | 5.380165 | 0.53719 | 0.082949 | 0.156682 | 0.193548 | 0.416283 | 0.416283 | 0.356375 | 0.144393 | 0 | 0 | 0 | 0.056627 | 0.315746 | 1,213 | 42 | 128 | 28.880952 | 0.727711 | 0.056059 | 0 | 0.514286 | 1 | 0 | 0.150613 | 0.02014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
988b7bd942045208b06ccb9cb4826dbe1901e18c | 242 | py | Python | swagger_fuzzer/utils.py | cadesalaberry/swagger-fuzzer | c0d648b905761f9c2b21c363ecbcaa4716cc2427 | [
"MIT"
] | 25 | 2016-05-27T12:33:09.000Z | 2021-05-08T12:24:03.000Z | swagger_fuzzer/utils.py | cadesalaberry/swagger-fuzzer | c0d648b905761f9c2b21c363ecbcaa4716cc2427 | [
"MIT"
] | 4 | 2016-10-17T09:58:54.000Z | 2018-01-26T16:51:32.000Z | swagger_fuzzer/utils.py | Lothiraldan/swagger-fuzzer | b0d2ab9298bdd7f8c39c2d6ee449c70d44b1b472 | [
"MIT"
] | 2 | 2016-10-17T09:44:51.000Z | 2017-01-17T14:59:21.000Z | """ Various helpers
"""
import json
from datetime import datetime
class CustomJsonEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, datetime):
return o.isoformat()
return super().default(o)
| 17.285714 | 42 | 0.652893 | 27 | 242 | 5.851852 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239669 | 242 | 13 | 43 | 18.615385 | 0.858696 | 0.061983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 2 |
98acf43b81f6ce5d3003c13ecda590bffef2b7cd | 4,149 | py | Python | turnovertools/mediaobject.py | morganwl/turnovertools | ea911853033ed5087b40852b5adc3b8f5d0a903d | [
"MIT"
] | null | null | null | turnovertools/mediaobject.py | morganwl/turnovertools | ea911853033ed5087b40852b5adc3b8f5d0a903d | [
"MIT"
] | 3 | 2021-03-22T00:44:24.000Z | 2021-06-26T19:32:31.000Z | turnovertools/mediaobject.py | morganwl/turnovertools | ea911853033ed5087b40852b5adc3b8f5d0a903d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from abc import ABCMeta
import collections.abc
class MediaObject(object):
"""
Parent class for all media objects. Not meant to be instantiated directly.
"""
__wraps_type__ = type(None)
__default_data__ = []
__requires_properties__ = []
@classmethod
def wrap_list... | 28.033784 | 78 | 0.608821 | 487 | 4,149 | 4.907598 | 0.256674 | 0.033473 | 0.030126 | 0.018828 | 0.342259 | 0.316736 | 0.253138 | 0.233054 | 0.233054 | 0.191632 | 0 | 0.000684 | 0.295734 | 4,149 | 147 | 79 | 28.22449 | 0.817248 | 0.103398 | 0 | 0.346535 | 0 | 0 | 0.021679 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 1 | 0.227723 | false | 0.019802 | 0.019802 | 0.049505 | 0.524752 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
98ad3ca0dbe75bc56739bde9ed69cc85c55b41e0 | 201 | py | Python | main.py | doravante/bot-carona-tg | e4c7b003d301b5efff1b99f43be352048c1bbde2 | [
"MIT"
] | null | null | null | main.py | doravante/bot-carona-tg | e4c7b003d301b5efff1b99f43be352048c1bbde2 | [
"MIT"
] | null | null | null | main.py | doravante/bot-carona-tg | e4c7b003d301b5efff1b99f43be352048c1bbde2 | [
"MIT"
] | null | null | null | import sys
import time
import bot
def main():
TOKEN = sys.argv[1]
b = bot.Bot(TOKEN)
print 'Listening ...'
b.notifyOnMessage(run_forever=True)
if __name__ == '__main__':
main();
| 14.357143 | 39 | 0.631841 | 27 | 201 | 4.37037 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.228856 | 201 | 13 | 40 | 15.461538 | 0.754839 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f27deaade563da91dc1439768b14617a9026d15 | 549 | py | Python | base/migrations/0002_auto_20210117_0922.py | shah-deep/Smart-Guidance | f757c3fc56054f7418d1ca17e0b81c4916c2a363 | [
"Apache-2.0"
] | 2 | 2021-11-26T09:11:37.000Z | 2021-12-09T14:59:36.000Z | base/migrations/0002_auto_20210117_0922.py | shah-deep/Smart-Guidance | f757c3fc56054f7418d1ca17e0b81c4916c2a363 | [
"Apache-2.0"
] | null | null | null | base/migrations/0002_auto_20210117_0922.py | shah-deep/Smart-Guidance | f757c3fc56054f7418d1ca17e0b81c4916c2a363 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.2 on 2021-01-17 09:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='topic',
name='entry',
field=mo... | 22.875 | 73 | 0.564663 | 58 | 549 | 5.275862 | 0.672414 | 0.117647 | 0.150327 | 0.176471 | 0.235294 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.311475 | 549 | 23 | 74 | 23.869565 | 0.753968 | 0.081967 | 0 | 0.352941 | 1 | 0 | 0.067729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f38abc4787c79a800f2484c133504983f942e5b | 1,045 | py | Python | DeepSentiment/GetSentiment.py | AbhinavBhatnagar/DeepSentiment | 8439c69f92e235be640688d026342c32650498a9 | [
"MIT"
] | 1 | 2017-02-05T20:39:31.000Z | 2017-02-05T20:39:31.000Z | DeepSentiment/GetSentiment.py | AbhinavBhatnagar/DeepSentiment | 8439c69f92e235be640688d026342c32650498a9 | [
"MIT"
] | null | null | null | DeepSentiment/GetSentiment.py | AbhinavBhatnagar/DeepSentiment | 8439c69f92e235be640688d026342c32650498a9 | [
"MIT"
] | null | null | null | import requests
import json
import subprocess
import os
class DeepSentiment:
def __init__(self):
self.parameter = []
self.text = ""
self.sentiment = ""
self.sentiment_score = 0
self.proc = None
def run_server(self):
call_ = ['nohup','java', '-jar', str(os.getcwd... | 26.794872 | 104 | 0.632536 | 118 | 1,045 | 5.474576 | 0.338983 | 0.120743 | 0.055728 | 0.080495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014013 | 0.248804 | 1,045 | 38 | 105 | 27.5 | 0.808917 | 0 | 0 | 0 | 0 | 0 | 0.099617 | 0.04023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7f6409057cfb5beb451279c93ae751354805d213 | 115 | py | Python | pymycobot/__init__.py | toyoshi/pymycobot | d9eeb7b2b5e9f141848cdb30c551ddb260f4999e | [
"MIT"
] | null | null | null | pymycobot/__init__.py | toyoshi/pymycobot | d9eeb7b2b5e9f141848cdb30c551ddb260f4999e | [
"MIT"
] | null | null | null | pymycobot/__init__.py | toyoshi/pymycobot | d9eeb7b2b5e9f141848cdb30c551ddb260f4999e | [
"MIT"
] | null | null | null | from __future__ import absolute_import
name = 'pymycobot'
__version__ = '2.1.2'
__all__ = ['mycobot', 'genre']
| 12.777778 | 38 | 0.704348 | 14 | 115 | 4.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.156522 | 115 | 8 | 39 | 14.375 | 0.670103 | 0 | 0 | 0 | 0 | 0 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7f6c3a861eaf14d792263ab200e357c788d001a6 | 12,355 | py | Python | titanfp/rk_sweep.py | billzorn/fpunreal | 5ba896298f2acc53652112ea4426508483d85a04 | [
"MIT"
] | 4 | 2019-02-21T06:15:26.000Z | 2020-09-08T21:06:41.000Z | titanfp/rk_sweep.py | billzorn/fpunreal | 5ba896298f2acc53652112ea4426508483d85a04 | [
"MIT"
] | 3 | 2019-02-22T02:21:09.000Z | 2021-08-31T20:25:23.000Z | titanfp/rk_sweep.py | billzorn/fpunreal | 5ba896298f2acc53652112ea4426508483d85a04 | [
"MIT"
] | null | null | null | import math
import operator
from .titanic import ndarray
from .fpbench import fpcparser
from .arithmetic import mpmf, ieee754, evalctx, analysis
from .arithmetic.mpmf import Interpreter
from .sweep import search
eqn_core = '''(FPCore lorenz-3d ((xyz 3))
:precision {fn_prec}
(let ([sigma 10]
[beta 8/3]
... | 37.439394 | 109 | 0.625334 | 1,805 | 12,355 | 4.175623 | 0.214404 | 0.020167 | 0.015921 | 0.011145 | 0.40069 | 0.386759 | 0.319092 | 0.312193 | 0.301977 | 0.301977 | 0 | 0.422678 | 0.195548 | 12,355 | 329 | 110 | 37.553191 | 0.335647 | 0.046702 | 0 | 0.326425 | 0 | 0.005181 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056995 | false | 0 | 0.046632 | 0.005181 | 0.139896 | 0.010363 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.