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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
303b5eed14bbef8eec63fde3f01e0754b2224058 | 4,683 | py | Python | db/Updater/connections/FTP_connection.py | tecdatalab/biostructure | a30e907e83fa5bbfb934d951b7c663b622104fcc | [
"Apache-2.0"
] | null | null | null | db/Updater/connections/FTP_connection.py | tecdatalab/biostructure | a30e907e83fa5bbfb934d951b7c663b622104fcc | [
"Apache-2.0"
] | 15 | 2019-06-17T16:13:39.000Z | 2022-02-27T05:23:59.000Z | db/Updater/connections/FTP_connection.py | tecdatalab/biostructure | a30e907e83fa5bbfb934d951b7c663b622104fcc | [
"Apache-2.0"
] | null | null | null | '''
Created on 30 mar. 2019
@author: luis98
'''
from ftplib import FTP
import datetime
def max_datetime(date1, date2):
if date1 == None:
return date2
elif date2 == None:
return date1
elif date1 > date2:
return date1
else:
return date2
class FTP_connection(object):
... | 37.166667 | 1,028 | 0.595985 | 644 | 4,683 | 4.180124 | 0.476708 | 0.044205 | 0.033804 | 0.041605 | 0.19688 | 0.181278 | 0.157132 | 0.135587 | 0.11107 | 0.104755 | 0 | 0.243034 | 0.256673 | 4,683 | 125 | 1,029 | 37.464 | 0.530307 | 0.250053 | 0 | 0.311688 | 0 | 0 | 0.0798 | 0.045075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12987 | false | 0.051948 | 0.025974 | 0.025974 | 0.298701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3042fb4127da405f973570a6ff7140662667b6b9 | 878 | py | Python | Assignments/1. Karel/ExtensionKarel.py | MeekaElla/stanford-code-in-place-2021 | 992334de45855fcf41b375198f7d27cb78bafa02 | [
"MIT"
] | null | null | null | Assignments/1. Karel/ExtensionKarel.py | MeekaElla/stanford-code-in-place-2021 | 992334de45855fcf41b375198f7d27cb78bafa02 | [
"MIT"
] | null | null | null | Assignments/1. Karel/ExtensionKarel.py | MeekaElla/stanford-code-in-place-2021 | 992334de45855fcf41b375198f7d27cb78bafa02 | [
"MIT"
] | null | null | null | from karel.stanfordkarel import *
"""
File: ExtensionKarel.py
-----------------------
This file is for optional extension programs.
"""
def main():
turn_left()
while front_is_clear():
paint_corner(RED)
move()
turn_right()
go_down()
go_up()
turn_right()
while front_is_clea... | 14.881356 | 49 | 0.578588 | 111 | 878 | 4.243243 | 0.396396 | 0.163482 | 0.208068 | 0.191083 | 0.416136 | 0.416136 | 0.358811 | 0.29087 | 0.29087 | 0.191083 | 0 | 0.001585 | 0.281321 | 878 | 58 | 50 | 15.137931 | 0.744849 | 0.053531 | 0 | 0.75 | 0 | 0 | 0.011004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.025 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3046549a8824888418e7f9eb6b24d1f360ce7eb0 | 2,911 | py | Python | home/forms.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 4 | 2022-02-16T10:19:11.000Z | 2022-03-17T03:34:26.000Z | home/forms.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 1 | 2022-02-17T14:02:31.000Z | 2022-03-31T03:56:42.000Z | home/forms.py | kevincornish/HeckGuide | eb974d6b589908f5fc2308d41032a48941cc3d21 | [
"MIT"
] | 3 | 2022-02-17T06:13:52.000Z | 2022-03-23T21:37:21.000Z | from django import forms
from .models import Webhooks
class TokenCalculatorForm(forms.Form):
token1 = forms.IntegerField(label='500', initial=0)
token2 = forms.IntegerField(label='1K', initial=0)
token3 = forms.IntegerField(label='2.5K', initial=0)
token4 = forms.IntegerField(label='5K', initial=0)
... | 42.808824 | 82 | 0.715562 | 342 | 2,911 | 6.078947 | 0.312866 | 0.278018 | 0.359788 | 0.053872 | 0.243867 | 0.243867 | 0.069745 | 0 | 0 | 0 | 0 | 0.03723 | 0.141876 | 2,911 | 68 | 83 | 42.808824 | 0.795036 | 0 | 0 | 0 | 0 | 0 | 0.137019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035088 | 0 | 0.807018 | 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 | 1 | 0 | 0 | 3 |
3050b3969c8f78dbafdc900abd4c249567f6ea25 | 869 | py | Python | manga_py/providers/rocaca_com.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | 1 | 2020-11-19T00:40:49.000Z | 2020-11-19T00:40:49.000Z | manga_py/providers/rocaca_com.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | manga_py/providers/rocaca_com.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | from .mangago_me import MangaGoMe
class RocacaCom(MangaGoMe):
def get_chapter_index(self) -> str:
re = self.re.search(r'/.+?chapter-(\d+(?:\.\d+)?)', self.chapter)
if not re:
re = self.re.search(r'/.+?Ch(\d+(?:\.\d+)?)', self.chapter)
if not re:
re = self.re.search... | 28.966667 | 73 | 0.552359 | 116 | 869 | 3.991379 | 0.353448 | 0.064795 | 0.069114 | 0.12095 | 0.259179 | 0.226782 | 0.226782 | 0.226782 | 0.226782 | 0.226782 | 0 | 0.001502 | 0.233602 | 869 | 29 | 74 | 29.965517 | 0.693694 | 0 | 0 | 0.15 | 0 | 0 | 0.187572 | 0.055236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.05 | 0.2 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30567559c51a9572c020654ee3e7051a2634564d | 448 | py | Python | schemas/auth.py | jasonvriends/lifetracker-backend | 255ee2961d21ad61ed590985d45603b3fc6c3859 | [
"Unlicense"
] | null | null | null | schemas/auth.py | jasonvriends/lifetracker-backend | 255ee2961d21ad61ed590985d45603b3fc6c3859 | [
"Unlicense"
] | null | null | null | schemas/auth.py | jasonvriends/lifetracker-backend | 255ee2961d21ad61ed590985d45603b3fc6c3859 | [
"Unlicense"
] | null | null | null | from typing import Any, Dict, List
from pydantic import BaseModel, EmailStr
class EmailSchema(BaseModel):
emails: List[EmailStr]
body: Dict[str, Any]
class Token(BaseModel):
access_token: str
token_type: str
class LoginDetails(BaseModel):
email: str
password: str
class RefreshDetails(Ba... | 15.448276 | 40 | 0.71875 | 53 | 448 | 6 | 0.45283 | 0.075472 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207589 | 448 | 28 | 41 | 16 | 0.895775 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.235294 | 0.117647 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3076a536996ab305be319a1ed0777ffa8ae628e2 | 311 | py | Python | ecp5-partial/make_connection.py | daveshah1/flow-examples | 70827c5f2f03197d4800614bcb38068441608dbe | [
"0BSD"
] | 11 | 2019-08-07T18:19:29.000Z | 2021-04-08T04:31:59.000Z | ecp5-partial/make_connection.py | daveshah1/flow-examples | 70827c5f2f03197d4800614bcb38068441608dbe | [
"0BSD"
] | null | null | null | ecp5-partial/make_connection.py | daveshah1/flow-examples | 70827c5f2f03197d4800614bcb38068441608dbe | [
"0BSD"
] | null | null | null | for nname, net in ctx.nets:
ctx.lockNetRouting(nname)
ctx.cells["slice_i"].addInput("A0")
ctx.connectPort("ctr[26]", "slice_i", "A0")
ctx.cells["slice_i"].setParam("LUT0_INITVAL", "0101010101010101") # LED is active low so invert
ctx.cells["slice_i"].setParam("A0MUX", "A0") # remove constant mux on LUT input
| 44.428571 | 95 | 0.723473 | 49 | 311 | 4.489796 | 0.653061 | 0.109091 | 0.177273 | 0.190909 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08156 | 0.093248 | 311 | 6 | 96 | 51.833333 | 0.698582 | 0.192926 | 0 | 0 | 0 | 0 | 0.298387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
062e39e4650fd808d04ede2f486b1b5f8692c8a0 | 300 | py | Python | memorable_password/dir.py | patarapolw/mnemopass | f53a2afa4104238e1770dfd4d85710bc00719302 | [
"Apache-2.0"
] | 10 | 2018-04-24T20:12:51.000Z | 2018-08-29T11:09:26.000Z | memorable_password/dir.py | patarapolw/mnemopass | f53a2afa4104238e1770dfd4d85710bc00719302 | [
"Apache-2.0"
] | 1 | 2020-06-19T09:29:46.000Z | 2020-06-19T09:29:46.000Z | memorable_password/dir.py | patarapolw/mnemopass | f53a2afa4104238e1770dfd4d85710bc00719302 | [
"Apache-2.0"
] | 3 | 2020-06-19T09:32:22.000Z | 2021-09-09T21:18:18.000Z | """
Defines ROOT as project_name/project_name/. Useful when installing using pip/setup.py.
"""
import os
import inspect
ROOT = os.path.abspath(os.path.dirname(inspect.getframeinfo(inspect.currentframe()).filename))
def database_path(database):
return os.path.join(ROOT, 'database', database)
| 23.076923 | 94 | 0.763333 | 41 | 300 | 5.512195 | 0.609756 | 0.079646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106667 | 300 | 12 | 95 | 25 | 0.843284 | 0.286667 | 0 | 0 | 0 | 0 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 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 | 1 | 1 | 0 | 0 | 3 |
0648ef7ab2e75c5dea6f088a5a345bb5eea45bce | 2,085 | py | Python | S4/S4 Library/simulation/trends/trend_tuning.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/trends/trend_tuning.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/trends/trend_tuning.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from sims4.localization import TunableLocalizedString
from sims4.tuning.dynamic_enum import DynamicEnum
from sims4.tuning.tunable import TunableTuple, TunableEnumEntry, TunableList, TunableMapping, TunableReference
from tag import TunableTag
from tunable_time import TunableTimeSpan
import services
class TrendType(Dyna... | 115.833333 | 711 | 0.710791 | 254 | 2,085 | 5.704724 | 0.366142 | 0.082816 | 0.082816 | 0.05176 | 0.143547 | 0.10766 | 0.066253 | 0.066253 | 0.066253 | 0.066253 | 0 | 0.003028 | 0.208153 | 2,085 | 17 | 712 | 122.647059 | 0.874621 | 0 | 0 | 0 | 0 | 0.133333 | 0.430216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
065f293b648b29f492730b43650720a5fce7b6bf | 531 | py | Python | sqlite_framework/sql/result/result.py | alvarogzp/python-sqlite-framework | 29db97a64f95cfe13eb7bae1d00b624b5a37b152 | [
"Apache-2.0"
] | 1 | 2020-08-29T12:42:11.000Z | 2020-08-29T12:42:11.000Z | sqlite_framework/sql/result/result.py | alvarogzp/python-sqlite-framework | 29db97a64f95cfe13eb7bae1d00b624b5a37b152 | [
"Apache-2.0"
] | 4 | 2018-05-07T19:36:30.000Z | 2018-05-29T05:18:13.000Z | sqlite_framework/sql/result/result.py | alvarogzp/python-sqlite-framework | 29db97a64f95cfe13eb7bae1d00b624b5a37b152 | [
"Apache-2.0"
] | null | null | null | from sqlite3 import Cursor
class SqlResult:
def __init__(self, cursor: Cursor):
self.cursor = cursor
def first(self):
return self.cursor.fetchone()
def first_field(self):
first = self.first()
if first is not None:
return first[0]
def map_field(self):
... | 21.24 | 46 | 0.602637 | 71 | 531 | 4.366197 | 0.394366 | 0.129032 | 0.103226 | 0.077419 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.308851 | 531 | 24 | 47 | 22.125 | 0.836512 | 0.054614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.0625 | 0.25 | 0.8125 | 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 | 1 | 0 | 0 | 3 |
0664ff4b0fa20472ee64ba97da2d80f879db06a9 | 234 | py | Python | applications/common/mixins/add_request_to_form.py | arielcalzadadeveloper/django-base-project | 6e6b8d4f25f45d76f34633f38eaec8d4880130ea | [
"MIT"
] | null | null | null | applications/common/mixins/add_request_to_form.py | arielcalzadadeveloper/django-base-project | 6e6b8d4f25f45d76f34633f38eaec8d4880130ea | [
"MIT"
] | null | null | null | applications/common/mixins/add_request_to_form.py | arielcalzadadeveloper/django-base-project | 6e6b8d4f25f45d76f34633f38eaec8d4880130ea | [
"MIT"
] | null | null | null | class AddRequestToFormMixin(object):
def get_form_kwargs(self):
kwargs = super(AddRequestToFormMixin, self).get_form_kwargs()
kwargs.update({
'request': self.request,
})
return kwargs
| 23.4 | 69 | 0.628205 | 22 | 234 | 6.5 | 0.545455 | 0.097902 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273504 | 234 | 9 | 70 | 26 | 0.841176 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
0670658149ef4a2fa1756ecbab17dfa24ecb8548 | 191 | py | Python | infoset/constants/__init__.py | clayton-colovore/infoset-ng | b0404fdda9e805effc16cebc9caef5f86b6bfe33 | [
"Apache-2.0"
] | null | null | null | infoset/constants/__init__.py | clayton-colovore/infoset-ng | b0404fdda9e805effc16cebc9caef5f86b6bfe33 | [
"Apache-2.0"
] | null | null | null | infoset/constants/__init__.py | clayton-colovore/infoset-ng | b0404fdda9e805effc16cebc9caef5f86b6bfe33 | [
"Apache-2.0"
] | null | null | null | SITE_PREFIX = '/infoset'
API_PREFIX = '{}/api/v1'.format(SITE_PREFIX)
API_EXECUTABLE = 'infoset-ng-api'
API_GUNICORN_AGENT = 'infoset-ng-gunicorn'
INGESTER_EXECUTABLE = 'infoset-ng-ingester'
| 31.833333 | 44 | 0.769634 | 26 | 191 | 5.384615 | 0.423077 | 0.192857 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.078534 | 191 | 5 | 45 | 38.2 | 0.789773 | 0 | 0 | 0 | 0 | 0 | 0.361257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
06742195a9f680bbc59dae54ca1cd3c0f3838fda | 2,572 | py | Python | connectors/abstract/abstract_storage.py | az365/snakee | 2f7dd35f50c76d23aa55f583b72f20455a3ca5a4 | [
"MIT"
] | null | null | null | connectors/abstract/abstract_storage.py | az365/snakee | 2f7dd35f50c76d23aa55f583b72f20455a3ca5a4 | [
"MIT"
] | null | null | null | connectors/abstract/abstract_storage.py | az365/snakee | 2f7dd35f50c76d23aa55f583b72f20455a3ca5a4 | [
"MIT"
] | 2 | 2021-04-10T19:22:15.000Z | 2022-03-08T19:37:56.000Z | from abc import ABC
from typing import Optional
try: # Assume we're a sub-module in a package.
from utils import arguments as arg
from interfaces import ContextInterface, Context, AutoContext, Name
from connectors.abstract.hierarchic_connector import HierarchicConnector
except ImportError: # Apparently n... | 31.365854 | 111 | 0.673795 | 302 | 2,572 | 5.52649 | 0.261589 | 0.092271 | 0.02876 | 0.045536 | 0.26423 | 0.160575 | 0.146195 | 0.109047 | 0.109047 | 0.109047 | 0 | 0 | 0.249611 | 2,572 | 81 | 112 | 31.753086 | 0.864767 | 0.047434 | 0 | 0.269841 | 0 | 0 | 0.000409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206349 | false | 0 | 0.142857 | 0.126984 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
06800690fb6a9ed77ed68d6b03c74697395538d3 | 1,782 | py | Python | python/paddle/fluid/tests/unittests/distribution/mock_data.py | tangzhiyi11/Paddle | 790cadd1f06fabeadc4b9aeca5622ea50985b990 | [
"Apache-2.0"
] | 2 | 2020-10-14T13:05:51.000Z | 2021-12-27T02:52:02.000Z | python/paddle/fluid/tests/unittests/distribution/mock_data.py | tangzhiyi11/Paddle | 790cadd1f06fabeadc4b9aeca5622ea50985b990 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/distribution/mock_data.py | tangzhiyi11/Paddle | 790cadd1f06fabeadc4b9aeca5622ea50985b990 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle 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 ap... | 27 | 74 | 0.688552 | 232 | 1,782 | 5.137931 | 0.478448 | 0.050336 | 0.027685 | 0.030201 | 0.184564 | 0.162752 | 0.062081 | 0.062081 | 0.062081 | 0 | 0 | 0.01295 | 0.219978 | 1,782 | 65 | 75 | 27.415385 | 0.844604 | 0.515152 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.346154 | false | 0.038462 | 0.038462 | 0.269231 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
068b3c10dd7cded7d68d36faa657a66ee5707131 | 1,046 | py | Python | users/models.py | arijit79/pythonhub | b22ac5d13fcd700a9fad1c1a9976082526e29e7d | [
"MIT"
] | null | null | null | users/models.py | arijit79/pythonhub | b22ac5d13fcd700a9fad1c1a9976082526e29e7d | [
"MIT"
] | null | null | null | users/models.py | arijit79/pythonhub | b22ac5d13fcd700a9fad1c1a9976082526e29e7d | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.hashers import make_password
from datetime import datetime
# Create your models here.
class User(models.Model):
first_name = models.CharField(max_length=16)
last_name = models.CharField(max_length=32)
email = models.EmailField(unique=True)
password ... | 27.526316 | 63 | 0.699809 | 138 | 1,046 | 5.144928 | 0.463768 | 0.070423 | 0.076056 | 0.101408 | 0.132394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008363 | 0.199809 | 1,046 | 37 | 64 | 28.27027 | 0.839904 | 0.022945 | 0 | 0.185185 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.111111 | 0.111111 | 0.222222 | 0.925926 | 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 | 1 | 0 | 0 | 0 | 3 |
ebf9b280244e2708b46ad56bc0c2b1313b1d2ef8 | 484 | py | Python | tests/test_utils.py | Dev3XOR/pomodoro | d4dc48b6ebb86ebcccf0897faac7bba36d0319aa | [
"MIT"
] | null | null | null | tests/test_utils.py | Dev3XOR/pomodoro | d4dc48b6ebb86ebcccf0897faac7bba36d0319aa | [
"MIT"
] | 1 | 2021-12-17T22:24:00.000Z | 2021-12-17T22:24:00.000Z | tests/test_utils.py | Dev3XOR/pomodoro | d4dc48b6ebb86ebcccf0897faac7bba36d0319aa | [
"MIT"
] | null | null | null | import unittest
from pomodoro import format_time, validate_number
class UtilsTestCase(unittest.TestCase):
def test_time_format(self):
self.assertEqual(format_time(0), "0:00:00")
self.assertEqual(format_time(10), "0:00:10")
self.assertEqual(format_time(75), "0:01:15")
def test_number_v... | 32.266667 | 52 | 0.702479 | 63 | 484 | 5.206349 | 0.412698 | 0.121951 | 0.192073 | 0.228659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059553 | 0.167355 | 484 | 14 | 53 | 34.571429 | 0.754342 | 0 | 0 | 0 | 0 | 0 | 0.06405 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
230116c1046a48bacc8902492baee7b2271148be | 895 | py | Python | micro_framework/amqp/compressors.py | Mendes11/micro_framework | dfb9f7a55922284e70f6937dd478a1edaacd83b7 | [
"Apache-2.0"
] | 7 | 2020-05-20T21:19:02.000Z | 2021-12-28T17:50:50.000Z | micro_framework/amqp/compressors.py | Mendes11/micro_framework | dfb9f7a55922284e70f6937dd478a1edaacd83b7 | [
"Apache-2.0"
] | 30 | 2020-06-07T20:20:11.000Z | 2021-06-03T14:58:41.000Z | micro_framework/amqp/compressors.py | Mendes11/micro_framework | dfb9f7a55922284e70f6937dd478a1edaacd83b7 | [
"Apache-2.0"
] | null | null | null | import gzip
from abc import ABC
class MessageCompressor(ABC):
content_encoding = None
def compress(self, content: bytes) -> bytes:
...
def decompress(self, content: bytes) -> bytes:
...
class GzipCompressor(MessageCompressor):
content_encoding = "gzip"
def __init__(self, compre... | 24.861111 | 72 | 0.703911 | 96 | 895 | 6.385417 | 0.229167 | 0.146819 | 0.104405 | 0.137031 | 0.466558 | 0.466558 | 0.218597 | 0.218597 | 0.218597 | 0.218597 | 0 | 0.001377 | 0.188827 | 895 | 35 | 73 | 25.571429 | 0.842975 | 0 | 0 | 0.26087 | 0 | 0 | 0.008939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.086957 | 0.173913 | 0.73913 | 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 | 1 | 0 | 0 | 3 |
231fa492a20cdbc71ce25bf790d782a8b06e197e | 1,479 | py | Python | wherepy/track/_tracker.py | dzhoshkun/wherepy | 82fc6bc51ead2d4551519f8cb1b35969ffc26c89 | [
"Apache-2.0"
] | 1 | 2018-02-20T10:52:59.000Z | 2018-02-20T10:52:59.000Z | wherepy/track/_tracker.py | dzhoshkun/wherepy | 82fc6bc51ead2d4551519f8cb1b35969ffc26c89 | [
"Apache-2.0"
] | 30 | 2018-02-17T08:28:52.000Z | 2018-03-01T15:11:33.000Z | wherepy/track/_tracker.py | dzhoshkun/wherepy | 82fc6bc51ead2d4551519f8cb1b35969ffc26c89 | [
"Apache-2.0"
] | null | null | null | """Internal module that keeps the abstract Tracker class."""
class Tracker(object):
"""This class is an abstraction for all supported trackers."""
NOT_IMPLEMENTED_MSG = 'To be implemented in device-linked class'
def __init__(self):
"""Create an instance ready for connecting."""
self.__co... | 27.388889 | 69 | 0.638269 | 164 | 1,479 | 5.646341 | 0.5 | 0.060475 | 0.073434 | 0.110151 | 0.220302 | 0.220302 | 0.064795 | 0 | 0 | 0 | 0 | 0 | 0.271805 | 1,479 | 53 | 70 | 27.90566 | 0.859796 | 0.465855 | 0 | 0.1875 | 0 | 0 | 0.062403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.0625 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
23284c9a7a96476e7e3a6e0f051895d091924f94 | 377 | py | Python | cartrade/templates/pages/dealercity.py | vignesharumainayagam/csdwale-cartrade-live | 8dd27adbb7a242fe8f7083bc743d13cbf05327fa | [
"MIT"
] | null | null | null | cartrade/templates/pages/dealercity.py | vignesharumainayagam/csdwale-cartrade-live | 8dd27adbb7a242fe8f7083bc743d13cbf05327fa | [
"MIT"
] | null | null | null | cartrade/templates/pages/dealercity.py | vignesharumainayagam/csdwale-cartrade-live | 8dd27adbb7a242fe8f7083bc743d13cbf05327fa | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
# import frappe
# from _future_ import unicode_literals
import frappe
import frappe.utils
from frappe.utils.oauth import get_oauth2_authorize_url, get_oauth_keys, login_via_oauth2, login_via_oauth2_id_token, login_oauth_user as _login_oauth_user, redirect_post_login
import json
f... | 25.133333 | 176 | 0.854111 | 57 | 377 | 5.157895 | 0.438596 | 0.122449 | 0.108844 | 0.156463 | 0.292517 | 0.292517 | 0.292517 | 0 | 0 | 0 | 0 | 0.008955 | 0.111406 | 377 | 15 | 177 | 25.133333 | 0.868657 | 0.135279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.75 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
233901a7b5d3580c474864d938e959f7778f14a6 | 225 | py | Python | echarli2/djangoapps/mentor/serializers.py | dilosung/echarli2 | eaf1c04b652d8ced8eb41bf3dc6eebae844f2134 | [
"MIT"
] | null | null | null | echarli2/djangoapps/mentor/serializers.py | dilosung/echarli2 | eaf1c04b652d8ced8eb41bf3dc6eebae844f2134 | [
"MIT"
] | null | null | null | echarli2/djangoapps/mentor/serializers.py | dilosung/echarli2 | eaf1c04b652d8ced8eb41bf3dc6eebae844f2134 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Mentor
class MentorSerializer(serializers.ModelSerializer):
"""Mentor Serializer"""
class Meta:
model = Mentor
fields = ('__all__')
| 22.5 | 52 | 0.68 | 21 | 225 | 7.047619 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 225 | 10 | 53 | 22.5 | 0.865497 | 0.075556 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 3 |
233adaff8cc3a8af2a499a7116c79a9f8e6bb6da | 164 | py | Python | pythonCode/wordv1.py | eatmore/python_practice | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | [
"MIT"
] | null | null | null | pythonCode/wordv1.py | eatmore/python_practice | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | [
"MIT"
] | null | null | null | pythonCode/wordv1.py | eatmore/python_practice | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | [
"MIT"
] | 1 | 2020-03-12T06:05:38.000Z | 2020-03-12T06:05:38.000Z | import wordcloud
txt = 'life is short short, you you you need python'
w = wordcloud.WordCloud(background_color = 'white')
w.generate(txt)
w.to_file('pywcloud.png') | 32.8 | 53 | 0.756098 | 26 | 164 | 4.692308 | 0.692308 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 164 | 5 | 54 | 32.8 | 0.847222 | 0 | 0 | 0 | 1 | 0 | 0.375758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2356abdf093a8b8d050b5f41c385ccff7a31e817 | 121 | py | Python | Firefly/helpers/device/__init__.py | Firefly-Automation/Firefly | fccf40b8f6e015ef34c292264184090eb8d860b7 | [
"Apache-2.0"
] | 20 | 2017-03-24T08:25:50.000Z | 2020-07-07T16:09:34.000Z | Firefly/helpers/device/__init__.py | Firefly-Automation/Firefly | fccf40b8f6e015ef34c292264184090eb8d860b7 | [
"Apache-2.0"
] | 1 | 2017-11-02T17:46:48.000Z | 2017-11-02T17:46:48.000Z | Firefly/helpers/device/__init__.py | Firefly-Automation/Firefly | fccf40b8f6e015ef34c292264184090eb8d860b7 | [
"Apache-2.0"
] | 5 | 2017-04-11T02:27:38.000Z | 2020-12-11T07:44:00.000Z | __all__ = ['TEMPERATURE', 'HUMIDITY', 'LUX', 'ULTRAVIOLET', 'BATTERY']
from .const import *
#from .device import Device | 24.2 | 70 | 0.694215 | 13 | 121 | 6.153846 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132231 | 121 | 5 | 71 | 24.2 | 0.761905 | 0.214876 | 0 | 0 | 0 | 0 | 0.421053 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
235a7b2671440757e3325e574404f53fa001e9ba | 213 | py | Python | tests/test_database.py | GoC-Spending/fuzzy-tribble | c6c7b82faad577025a799af84c64686e903499e6 | [
"MIT"
] | 6 | 2017-09-20T16:28:27.000Z | 2018-10-08T18:41:05.000Z | tests/test_database.py | GoC-Spending/fuzzy-tribble | c6c7b82faad577025a799af84c64686e903499e6 | [
"MIT"
] | 13 | 2017-12-02T01:35:10.000Z | 2018-02-28T14:06:31.000Z | tests/test_database.py | GoC-Spending/fuzzy-tribble | c6c7b82faad577025a799af84c64686e903499e6 | [
"MIT"
] | 2 | 2017-12-19T03:50:46.000Z | 2018-02-20T04:47:14.000Z | from sqlalchemy import engine
def test_connection(db_engine: engine.base.Engine) -> None:
connection = db_engine.connect()
result = connection.execute('SELECT 1;').fetchall()
assert result == [(1,)]
| 26.625 | 59 | 0.704225 | 26 | 213 | 5.653846 | 0.653846 | 0.163265 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.159624 | 213 | 7 | 60 | 30.428571 | 0.810056 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
235c543c1ad3ea0360a33974fddaf7e033ec79fb | 184 | py | Python | run.py | Braiiin/outline-logic | 28efcf5b97e5bf553537e0baa0d0b1d50a5734e4 | [
"Apache-2.0"
] | null | null | null | run.py | Braiiin/outline-logic | 28efcf5b97e5bf553537e0baa0d0b1d50a5734e4 | [
"Apache-2.0"
] | 1 | 2015-09-09T07:45:53.000Z | 2015-09-09T07:45:53.000Z | run.py | Braiiin/outline-logic | 28efcf5b97e5bf553537e0baa0d0b1d50a5734e4 | [
"Apache-2.0"
] | null | null | null | # the main Flask application
from outline_logic import create_outline_app
app = create_outline_app(root='outline_logic')
if __name__ == "__main__":
app.run(**app.config['INIT'])
| 23 | 46 | 0.755435 | 26 | 184 | 4.807692 | 0.615385 | 0.192 | 0.256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 184 | 7 | 47 | 26.285714 | 0.776398 | 0.141304 | 0 | 0 | 0 | 0 | 0.160256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 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 | 3 |
236abe7dc56fd827bf84bd56c26f05082fd6bf5a | 527 | py | Python | problems/bfs/Solution994.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bfs/Solution994.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bfs/Solution994.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ In a given grid, each cell can have one of three values:
the value 0 representing an empty cell; the value 1 representing a fresh
orange; the value 2 representing a rotten orange. Every minute, any fresh
orange that is adjacent (4-directionally) to a rotten orange becomes rotten.
Return the mi... | 31 | 79 | 0.721063 | 80 | 527 | 4.75 | 0.6625 | 0.063158 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.237192 | 527 | 16 | 80 | 32.9375 | 0.925373 | 0.859583 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
88c455bb35cb044474f658875fd0ba793f830a8e | 143 | py | Python | assignment2/scripts/exploit18/exploit18.py | vhazali/cs5331 | 3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f | [
"MIT"
] | 8 | 2020-02-22T12:47:12.000Z | 2021-12-03T11:39:19.000Z | assignment2/scripts/exploit18/exploit18.py | vhazali/cs5331 | 3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f | [
"MIT"
] | null | null | null | assignment2/scripts/exploit18/exploit18.py | vhazali/cs5331 | 3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f | [
"MIT"
] | 4 | 2018-08-15T12:58:36.000Z | 2021-12-29T07:06:29.000Z | import webbrowser
url = 'http://www.wsb.com/Assignment2/case18/case18.php?LANG=https://www.google.com'
new = 2
webbrowser.open(url, new=new)
| 20.428571 | 84 | 0.741259 | 23 | 143 | 4.608696 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.083916 | 143 | 6 | 85 | 23.833333 | 0.763359 | 0 | 0 | 0 | 0 | 0.25 | 0.535211 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
88e547089371aae30c821295d0f3af42e8b65741 | 527 | py | Python | h5py/highlevel.py | matthew-brett/h5py | 5498503ece0777edec6d90f51bb7bfd96ace33c1 | [
"BSD-3-Clause"
] | null | null | null | h5py/highlevel.py | matthew-brett/h5py | 5498503ece0777edec6d90f51bb7bfd96ace33c1 | [
"BSD-3-Clause"
] | null | null | null | h5py/highlevel.py | matthew-brett/h5py | 5498503ece0777edec6d90f51bb7bfd96ace33c1 | [
"BSD-3-Clause"
] | 1 | 2019-06-28T14:17:43.000Z | 2019-06-28T14:17:43.000Z | # This file is part of h5py, a Python interface to the HDF5 library.
#
# http://www.h5py.org
#
# Copyright 2008-2013 Andrew Collette and contributors
#
# License: Standard 3-clause BSD; see "license.txt" for full license terms
# and contributor agreement.
from _hl import filters
from _hl.base import is_hdf5... | 27.736842 | 75 | 0.772296 | 78 | 527 | 5.115385 | 0.641026 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029545 | 0.165085 | 527 | 18 | 76 | 29.277778 | 0.877273 | 0.474383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
88eac00d98281ba4e30e12fdaf6e1200c62c9fa0 | 17,618 | py | Python | pysnmp-with-texts/A3COM0017-STACK-CONFIG.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/A3COM0017-STACK-CONFIG.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/A3COM0017-STACK-CONFIG.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module A3COM0017-STACK-CONFIG (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM0017-STACK-CONFIG
# Produced by pysmi-0.3.4 at Wed May 1 11:08:38 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 191.5 | 1,124 | 0.792882 | 2,378 | 17,618 | 5.874264 | 0.207738 | 0.041234 | 0.07216 | 0.008018 | 0.34147 | 0.225642 | 0.180543 | 0.177393 | 0.160498 | 0.160498 | 0 | 0.041683 | 0.117607 | 17,618 | 91 | 1,125 | 193.604396 | 0.856876 | 0.019185 | 0 | 0 | 0 | 0.22619 | 0.519368 | 0.013143 | 0 | 0 | 0.003242 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
88ff2f471997b9481e61e669d0ea7e584202ea39 | 69 | py | Python | day002/fiveTimes.py | aki-it/100-days-of-code | aee4aef0c78a9b448e9d19bcdcd9dff8e1022266 | [
"MIT"
] | null | null | null | day002/fiveTimes.py | aki-it/100-days-of-code | aee4aef0c78a9b448e9d19bcdcd9dff8e1022266 | [
"MIT"
] | null | null | null | day002/fiveTimes.py | aki-it/100-days-of-code | aee4aef0c78a9b448e9d19bcdcd9dff8e1022266 | [
"MIT"
] | null | null | null | print('私の名前は')
for i in range(5):
print('石川五右衛門(' + str(i) + ')') | 23 | 35 | 0.536232 | 11 | 69 | 3.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.188406 | 69 | 3 | 35 | 23 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0.185714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 3 |
002513c90edffdecea47d92cfe12df3d6b864814 | 753 | py | Python | djmoney/admin.py | mikeiwi/django-money-fork | e89dfd75ea15be39d8a5c58f887279bcd5257b08 | [
"BSD-3-Clause"
] | null | null | null | djmoney/admin.py | mikeiwi/django-money-fork | e89dfd75ea15be39d8a5c58f887279bcd5257b08 | [
"BSD-3-Clause"
] | null | null | null | djmoney/admin.py | mikeiwi/django-money-fork | e89dfd75ea15be39d8a5c58f887279bcd5257b08 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import django.contrib.admin.utils as admin_utils
from django import VERSION
from ._compat import text_type
from .models.fields import MoneyField
def setup_admin_integration():
original_display_for_field = admin_utils.display_for_field
if VERSION[:2] == (1, 8):
def display_for_field(... | 27.888889 | 66 | 0.693227 | 96 | 753 | 5.145833 | 0.333333 | 0.161943 | 0.242915 | 0.161943 | 0.578947 | 0.477733 | 0.34413 | 0.34413 | 0.34413 | 0.34413 | 0 | 0.006944 | 0.23506 | 753 | 26 | 67 | 28.961538 | 0.850694 | 0.017264 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.647059 | 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 | 1 | 0 | 0 | 3 |
00314749a4b4b3bf9e5dcd374f25a9be24c9c4fa | 488 | py | Python | examples/show/main.py | 0hotpotman0/microbit-tm1637 | d139ab910084fe8649d82e389572a96b28a38ff2 | [
"MIT"
] | 8 | 2018-02-16T15:12:17.000Z | 2022-03-28T20:56:08.000Z | examples/show/main.py | 0hotpotman0/microbit-tm1637 | d139ab910084fe8649d82e389572a96b28a38ff2 | [
"MIT"
] | null | null | null | examples/show/main.py | 0hotpotman0/microbit-tm1637 | d139ab910084fe8649d82e389572a96b28a38ff2 | [
"MIT"
] | 7 | 2018-08-30T01:18:08.000Z | 2021-10-15T09:23:29.000Z | from microbit import *
from tm1637 import TM1637
tm = TM1637(clk=pin1, dio=pin2)
while True:
tm.show(' ')
sleep(1000)
tm.show('1234')
sleep(1000)
tm.show('help')
sleep(1000)
tm.show('cafe')
sleep(1000)
tm.show('beef')
sleep(1000)
tm.show('rainbow') # only shows rain
... | 18.074074 | 40 | 0.565574 | 70 | 488 | 3.942857 | 0.414286 | 0.217391 | 0.358696 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162011 | 0.266393 | 488 | 26 | 41 | 18.769231 | 0.608939 | 0.061475 | 0 | 0.416667 | 0 | 0 | 0.075055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
003b4aaa5b2818d9b04a62f63e17efa457de0e1b | 792 | py | Python | tests/migrations/0002_auto_20211011_1442.py | paiuolo/django-uploads-app | 226e170148c230949e924ccab29dbbaf2952f663 | [
"MIT"
] | null | null | null | tests/migrations/0002_auto_20211011_1442.py | paiuolo/django-uploads-app | 226e170148c230949e924ccab29dbbaf2952f663 | [
"MIT"
] | null | null | null | tests/migrations/0002_auto_20211011_1442.py | paiuolo/django-uploads-app | 226e170148c230949e924ccab29dbbaf2952f663 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.24 on 2021-10-11 14:42
from django.db import migrations, models
import django_uploads_app.ftp.utils
class Migration(migrations.Migration):
dependencies = [
('tests', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | 26.4 | 112 | 0.602273 | 82 | 792 | 5.646341 | 0.560976 | 0.116631 | 0.149028 | 0.174946 | 0.349892 | 0.24622 | 0.24622 | 0 | 0 | 0 | 0 | 0.047872 | 0.287879 | 792 | 29 | 113 | 27.310345 | 0.77305 | 0.058081 | 0 | 0.391304 | 1 | 0 | 0.081989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.086957 | 0 | 0.217391 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
004ceb9a550aeb5e93ae2c899414e02de7ee5db4 | 266 | py | Python | planning_system/db/schema/views/finance/v_ui_finance_breakdown.py | jehboyes/planning_system | a415f1408ef344732498d2ffb111dfd187b9b50f | [
"MIT"
] | null | null | null | planning_system/db/schema/views/finance/v_ui_finance_breakdown.py | jehboyes/planning_system | a415f1408ef344732498d2ffb111dfd187b9b50f | [
"MIT"
] | null | null | null | planning_system/db/schema/views/finance/v_ui_finance_breakdown.py | jehboyes/planning_system | a415f1408ef344732498d2ffb111dfd187b9b50f | [
"MIT"
] | null | null | null |
def definition():
"""UI breakdown of finance data"""
view = """
SELECT set_id, summary_code, account, account_description, sum(amount) as amount FROM v_mri_finance
GROUP BY set_id, summary_code, account, account_description
"""
return view
| 26.6 | 103 | 0.699248 | 35 | 266 | 5.085714 | 0.685714 | 0.05618 | 0.134831 | 0.179775 | 0.460674 | 0.460674 | 0.460674 | 0 | 0 | 0 | 0 | 0 | 0.206767 | 266 | 9 | 104 | 29.555556 | 0.843602 | 0.105263 | 0 | 0 | 0 | 0 | 0.752174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc36582f141081041838042ee5e295123778dd5f | 3,237 | py | Python | structure.py | WhiteRobe/Python-alg | ad9c71e61c419eabbfdb75b41655121074f22418 | [
"Apache-2.0"
] | null | null | null | structure.py | WhiteRobe/Python-alg | ad9c71e61c419eabbfdb75b41655121074f22418 | [
"Apache-2.0"
] | null | null | null | structure.py | WhiteRobe/Python-alg | ad9c71e61c419eabbfdb75b41655121074f22418 | [
"Apache-2.0"
] | null | null | null | class DirectedEdge:
_edge = None
def __init__(self, edge):
# $edge should like :
# ( (from_index, point_info), (to_index, point_info) )
self._edge = edge
def fr(self):
return self._edge[0]
def to(self):
return self._edge[1]
def revere(self):
return... | 23.977778 | 81 | 0.586036 | 407 | 3,237 | 4.253071 | 0.167076 | 0.092432 | 0.097054 | 0.031196 | 0.205661 | 0.161756 | 0.129405 | 0.129405 | 0.129405 | 0.129405 | 0 | 0.00744 | 0.294099 | 3,237 | 134 | 82 | 24.156716 | 0.750109 | 0.119555 | 0 | 0.088889 | 0 | 0 | 0.002818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.311111 | false | 0 | 0 | 0.188889 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cc4400f9a9855de938c22690f8c4fc18049fc15d | 1,423 | py | Python | settings/common.py | anselmomendes/Poker-Hand-Value-Ratings | 5fba451bddff83b7dec7d5211d5cd29ab66a5bb2 | [
"MIT"
] | 1 | 2021-11-20T02:46:02.000Z | 2021-11-20T02:46:02.000Z | settings/common.py | anselmomendes/Poker-Hand-Value-Ratings | 5fba451bddff83b7dec7d5211d5cd29ab66a5bb2 | [
"MIT"
] | null | null | null | settings/common.py | anselmomendes/Poker-Hand-Value-Ratings | 5fba451bddff83b7dec7d5211d5cd29ab66a5bb2 | [
"MIT"
] | null | null | null | #Support variables for suit checking and card scoring
class Common():
ROYAL_FLUSH_CARD:str = {"T": "10",
"J": "11",
"Q": "12",
"K": "13",
"A": "14"}
VALUE_CARD:str = {"2": "2",
... | 33.880952 | 54 | 0.141954 | 94 | 1,423 | 2.085106 | 0.414894 | 0.107143 | 0.040816 | 0.061224 | 0.438776 | 0.438776 | 0.438776 | 0.438776 | 0.438776 | 0.438776 | 0 | 0.154206 | 0.699227 | 1,423 | 42 | 55 | 33.880952 | 0.303738 | 0.036543 | 0 | 0.611111 | 0 | 0 | 0.06391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc4cb03249c9579124223080b7f62b484d7fff5f | 73 | py | Python | pdfplumber/_version.py | shalevy1/pdfplumber | 7cf54a1cc9d2750299d8530a18c5dcbf996b75e1 | [
"MIT"
] | 1 | 2019-08-25T13:39:27.000Z | 2019-08-25T13:39:27.000Z | pdfplumber/_version.py | theRealSuperMario/pdfplumber | 7cf54a1cc9d2750299d8530a18c5dcbf996b75e1 | [
"MIT"
] | 4 | 2021-03-19T15:48:11.000Z | 2022-03-12T00:54:11.000Z | pdfplumber/_version.py | theRealSuperMario/pdfplumber | 7cf54a1cc9d2750299d8530a18c5dcbf996b75e1 | [
"MIT"
] | null | null | null | version_info = (0, 5, 12)
__version__ = '.'.join(map(str, version_info))
| 24.333333 | 46 | 0.671233 | 11 | 73 | 3.909091 | 0.727273 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.123288 | 73 | 2 | 47 | 36.5 | 0.609375 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
cc5fefb0d79e5508265e8c492c12895dcff7aa18 | 7,548 | py | Python | Lectures/PythonClass/P07_python_dict.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Lectures/PythonClass/P07_python_dict.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Lectures/PythonClass/P07_python_dict.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | print('')
print('====================================================================================================')
print('== 문제 134. 아래와 같이 딕셔너리 형태의 데이터를 만들고 출력하시오!')
print('====================================================================================================')
emp_dic = {'mgr': '7788', 'sal': '1100... | 38.314721 | 146 | 0.449391 | 779 | 7,548 | 4.264442 | 0.175867 | 0.066225 | 0.049669 | 0.056291 | 0.707104 | 0.68814 | 0.66466 | 0.66466 | 0.64419 | 0.64419 | 0 | 0.013017 | 0.124669 | 7,548 | 197 | 147 | 38.314721 | 0.489784 | 0 | 0 | 0.772727 | 0 | 0.025974 | 0.475295 | 0.31885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006494 | false | 0 | 0.058442 | 0 | 0.071429 | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cc72ac338b6f72df8adcfd7f02a27c2ce73e35f6 | 312 | py | Python | miningsimulator/app/miners.py | emergent-consensus/simulator | 7853177f5d6bbfd6f674a96013dad822172f724c | [
"MIT"
] | null | null | null | miningsimulator/app/miners.py | emergent-consensus/simulator | 7853177f5d6bbfd6f674a96013dad822172f724c | [
"MIT"
] | null | null | null | miningsimulator/app/miners.py | emergent-consensus/simulator | 7853177f5d6bbfd6f674a96013dad822172f724c | [
"MIT"
] | null | null | null | class MiningRig:
def __init__(self, hashpower, user):
self.hashpower = hashpower
self.mining_block = None
self.user = user
self.user._miningrigs.append(self)
def __str__(self):
return "Mining Rig Hashpower " + str(self.hashpower) + " owned by " + str(self.user)
| 28.363636 | 92 | 0.63141 | 37 | 312 | 5.054054 | 0.459459 | 0.208556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262821 | 312 | 10 | 93 | 31.2 | 0.813043 | 0 | 0 | 0 | 0 | 0 | 0.099359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
cc7be77b0bf010462397ca16468f0b2197932be8 | 412 | py | Python | tsrc/repo.py | tst2005/tsrc | af378db4950b3d557bc6839dcec2f0d0070f982e | [
"BSD-3-Clause"
] | null | null | null | tsrc/repo.py | tst2005/tsrc | af378db4950b3d557bc6839dcec2f0d0070f982e | [
"BSD-3-Clause"
] | null | null | null | tsrc/repo.py | tst2005/tsrc | af378db4950b3d557bc6839dcec2f0d0070f982e | [
"BSD-3-Clause"
] | null | null | null | """ Repo value object """
import attr
from typing import Optional # noqa
@attr.s(frozen=True)
class Repo():
src = attr.ib() # type: str
url = attr.ib() # type: str
branch = attr.ib(default="master") # type: Optional[str]
sha1 = attr.ib(default=None) # type: Optional[str]
tag = attr.ib(defaul... | 27.466667 | 61 | 0.631068 | 58 | 412 | 4.482759 | 0.448276 | 0.138462 | 0.2 | 0.196154 | 0.357692 | 0.357692 | 0.246154 | 0 | 0 | 0 | 0 | 0.003077 | 0.211165 | 412 | 14 | 62 | 29.428571 | 0.796923 | 0.303398 | 0 | 0 | 0 | 0 | 0.021898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.9 | 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 | 1 | 0 | 0 | 3 |
cc8342ed1e7a9e12ed8bf8ec0f843a37d3f8ed0f | 24,272 | py | Python | grr/server/grr_response_server/stats_store_test.py | 4ndygu/grr | cfc725b5ee3a2626ac4cdae7fb14471612da4522 | [
"Apache-2.0"
] | null | null | null | grr/server/grr_response_server/stats_store_test.py | 4ndygu/grr | cfc725b5ee3a2626ac4cdae7fb14471612da4522 | [
"Apache-2.0"
] | null | null | null | grr/server/grr_response_server/stats_store_test.py | 4ndygu/grr | cfc725b5ee3a2626ac4cdae7fb14471612da4522 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Tests for the stats_store classes."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from builtins import range # pylint: disable=redefined-builtin
from future.builtins import str
from grr_response_core.lib import flags
from grr... | 39.211632 | 80 | 0.718523 | 2,837 | 24,272 | 5.87945 | 0.095876 | 0.058813 | 0.057554 | 0.066367 | 0.773861 | 0.747842 | 0.715048 | 0.695504 | 0.686631 | 0.661811 | 0 | 0.044294 | 0.176829 | 24,272 | 618 | 81 | 39.275081 | 0.790541 | 0.094512 | 0 | 0.59434 | 0 | 0 | 0.025825 | 0.004434 | 0 | 0 | 0 | 0 | 0.103774 | 1 | 0.063679 | false | 0 | 0.040094 | 0 | 0.110849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
cc8883cbffbd43b052fbc4413aeb9b171451aeea | 287 | py | Python | chemicalx/models/matchmaker.py | andrejlamov/chemicalx | 02cf0fdffd3bfac15dc8454a4f60ac615f2045b4 | [
"Apache-2.0"
] | null | null | null | chemicalx/models/matchmaker.py | andrejlamov/chemicalx | 02cf0fdffd3bfac15dc8454a4f60ac615f2045b4 | [
"Apache-2.0"
] | null | null | null | chemicalx/models/matchmaker.py | andrejlamov/chemicalx | 02cf0fdffd3bfac15dc8454a4f60ac615f2045b4 | [
"Apache-2.0"
] | null | null | null | """An implementation of the MatchMaker model."""
from .base import UnimplementedModel
__all__ = [
"MatchMaker",
]
class MatchMaker(UnimplementedModel):
"""An implementation of the MatchMaker model.
.. seealso:: https://github.com/AstraZeneca/chemicalx/issues/23
"""
| 19.133333 | 67 | 0.707317 | 29 | 287 | 6.862069 | 0.689655 | 0.160804 | 0.180905 | 0.211055 | 0.361809 | 0.361809 | 0 | 0 | 0 | 0 | 0 | 0.008368 | 0.167247 | 287 | 14 | 68 | 20.5 | 0.824268 | 0.522648 | 0 | 0 | 0 | 0 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 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 | 3 |
cc919ec29f9b4db8d5c6272eefd4ad4583568238 | 100 | py | Python | _build/jupyter_execute/notebooks/diagnostics.py | mgrover1/cesm-workflow | 46fc6166bf10a21a4f54649c272f39e53099a64a | [
"Apache-2.0"
] | null | null | null | _build/jupyter_execute/notebooks/diagnostics.py | mgrover1/cesm-workflow | 46fc6166bf10a21a4f54649c272f39e53099a64a | [
"Apache-2.0"
] | null | null | null | _build/jupyter_execute/notebooks/diagnostics.py | mgrover1/cesm-workflow | 46fc6166bf10a21a4f54649c272f39e53099a64a | [
"Apache-2.0"
] | null | null | null | # Diagnostics
This will include an example diagnostics workflow, making use of intake-esm catalog(s) | 50 | 86 | 0.82 | 15 | 100 | 5.466667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 100 | 2 | 86 | 50 | 0.942529 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cca34bcc71b683b7a369f69b37689a1d41e402fe | 3,148 | py | Python | aliyun-python-sdk-mpaas/aliyunsdkmpaas/request/v20190821/CreateMcubeMiniTaskRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-mpaas/aliyunsdkmpaas/request/v20190821/CreateMcubeMiniTaskRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-mpaas/aliyunsdkmpaas/request/v20190821/CreateMcubeMiniTaskRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.122449 | 74 | 0.757942 | 415 | 3,148 | 5.551807 | 0.279518 | 0.095486 | 0.06684 | 0.081163 | 0.143229 | 0.143229 | 0.143229 | 0 | 0 | 0 | 0 | 0.004412 | 0.135959 | 3,148 | 98 | 75 | 32.122449 | 0.842647 | 0.239517 | 0 | 0 | 0 | 0 | 0.134257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.425926 | false | 0 | 0.037037 | 0.203704 | 0.685185 | 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 | 1 | 0 | 0 | 3 |
ccab7b191db37061fcc4a26dbfd77f366c139939 | 442 | py | Python | code/test.py | YaelBenShalom/Maze-Generation-and-Exploration | df3938d81f56913dd7a16d366e061cf5fa23a4c1 | [
"MIT"
] | null | null | null | code/test.py | YaelBenShalom/Maze-Generation-and-Exploration | df3938d81f56913dd7a16d366e061cf5fa23a4c1 | [
"MIT"
] | null | null | null | code/test.py | YaelBenShalom/Maze-Generation-and-Exploration | df3938d81f56913dd7a16d366e061cf5fa23a4c1 | [
"MIT"
] | null | null | null | import numpy
m = 3
n = 3
walls = [(0, 2), (1, 1), (2, 2)]
start = (2, 1)
goal = (0, 1)
def testingMatrix(m, n, walls):
init_matrix = numpy.zeros([m, n])
# i = 0
for i in walls:
init_matrix[walls(i)] = 1
# i = i+1
# print init_matrix
# print i
return init_matrix
# for (x,... | 15.241379 | 37 | 0.520362 | 77 | 442 | 2.922078 | 0.324675 | 0.222222 | 0.2 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055738 | 0.309955 | 442 | 28 | 38 | 15.785714 | 0.681967 | 0.298643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
ccbc900bb5fe3a94339949327a29146141eb2a9d | 196 | py | Python | pygration/example/__init__.py | RafaelGSS/pygration | 327b8539479018bd6e08abc74ff6c72b0d3f0688 | [
"MIT"
] | null | null | null | pygration/example/__init__.py | RafaelGSS/pygration | 327b8539479018bd6e08abc74ff6c72b0d3f0688 | [
"MIT"
] | null | null | null | pygration/example/__init__.py | RafaelGSS/pygration | 327b8539479018bd6e08abc74ff6c72b0d3f0688 | [
"MIT"
] | 1 | 2018-08-31T16:55:56.000Z | 2018-08-31T16:55:56.000Z | import sys, inspect
from ._29082018_example import Example
migrations = []
for name, obj in inspect.getmembers(sys.modules[__name__]):
if inspect.isclass(obj):
migrations.append(obj) | 24.5 | 59 | 0.739796 | 25 | 196 | 5.56 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048485 | 0.158163 | 196 | 8 | 60 | 24.5 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ccd01f0e20747f180c6f43c7ee5baa4e015279c4 | 304 | py | Python | day_2/inbuilt_functions.py | anishLearnsToCode/python-workshop-wac-5 | edaa5d9fdc1dd0b2a7557155215ff823b0be44b5 | [
"MIT"
] | 3 | 2020-07-23T13:44:16.000Z | 2021-09-15T20:28:52.000Z | day_2/inbuilt_functions.py | anishLearnsToCode/python-workshop-wac-5 | edaa5d9fdc1dd0b2a7557155215ff823b0be44b5 | [
"MIT"
] | null | null | null | day_2/inbuilt_functions.py | anishLearnsToCode/python-workshop-wac-5 | edaa5d9fdc1dd0b2a7557155215ff823b0be44b5 | [
"MIT"
] | 1 | 2020-11-01T00:53:00.000Z | 2020-11-01T00:53:00.000Z | def abs(number):
return -number if number < 0 else number
# print(max([1, 2, 3]))
# print(min([1, 2, 3, -10, 0, 3]))
# print(sum([1, 2, 3, 4, -4, -6]))
# print(abs(-10))
# print(abs(10))
# print(list(map(bool, [1, 2, 4, 'hello', True, []])))
print(ord('\n'))
print(chr(ord('f')))
print('hello')
| 17.882353 | 54 | 0.532895 | 55 | 304 | 2.945455 | 0.472727 | 0.049383 | 0.055556 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.171053 | 304 | 16 | 55 | 19 | 0.547619 | 0.5625 | 0 | 0 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 3 |
ccd5c6e8df03770962d65cb4b94b0dd5c91916ad | 145 | py | Python | deprecated/turn_left.py | tararouras/alphabot-ppl | 4ece4d7ced3afda506ad26276671d4d9790ac164 | [
"MIT"
] | 9 | 2019-01-16T13:48:44.000Z | 2021-05-06T14:11:23.000Z | deprecated/turn_left.py | tararouras/alphabot-ppl | 4ece4d7ced3afda506ad26276671d4d9790ac164 | [
"MIT"
] | 1 | 2019-01-16T13:49:20.000Z | 2019-01-16T13:49:20.000Z | deprecated/turn_left.py | tararouras/alphabot-ppl | 4ece4d7ced3afda506ad26276671d4d9790ac164 | [
"MIT"
] | 3 | 2019-01-30T17:23:35.000Z | 2019-07-21T12:55:00.000Z | from time import sleep
from AlphaBot import AlphaBot
Ab = AlphaBot()
#Ab.setMotor(-87,-100)
#sleep(0.24)
Ab.setMotor()
sleep(0.24)
Ab.stop()
| 11.153846 | 29 | 0.703448 | 24 | 145 | 4.25 | 0.5 | 0.196078 | 0.156863 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088 | 0.137931 | 145 | 12 | 30 | 12.083333 | 0.728 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 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 | 3 |
aea1f00e963692c268eb69b0461941a6f1513bc1 | 732 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/packed_float.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/packed_float.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/packed_float.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.packed_float
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_packed_float'
_DEPRECATED = False
GL_R11F_G11F_B10F_EX... | 38.526316 | 104 | 0.82377 | 102 | 732 | 5.529412 | 0.5 | 0.053191 | 0.101064 | 0.111702 | 0.248227 | 0.099291 | 0.099291 | 0.099291 | 0 | 0 | 0 | 0.050536 | 0.107924 | 732 | 18 | 105 | 40.666667 | 0.81317 | 0.226776 | 0 | 0 | 1 | 0 | 0.187726 | 0.15343 | 0 | 0 | 0.032491 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
aea3bc37dfe0131f7839333eb2bc0095e163538d | 891 | py | Python | pyhcl/passes/_pass.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/_pass.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/_pass.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | from typing import List
class Pass:
...
#Error handling
class PassException(Exception):
def __init__(self, message: str):
self.message = message
def __str__(self):
return self.message
class PassExceptions(Exception):
def __init__(self, exceptions: List[PassException]):
s... | 24.081081 | 78 | 0.603816 | 100 | 891 | 5.18 | 0.36 | 0.135135 | 0.063707 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00312 | 0.280584 | 891 | 37 | 79 | 24.081081 | 0.804992 | 0.015713 | 0 | 0.076923 | 0 | 0 | 0.04447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0.269231 | 0.038462 | 0.076923 | 0.576923 | 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 | 1 | 0 | 0 | 3 |
aea714f739bfebb1f43d2021a3affc8375e60591 | 391 | py | Python | server/src/repository/image/i_virtual_tag_database_repository.py | konrad2508/picgal | 7f7822a02145fd2efa697e1c7750af9af680a3da | [
"MIT"
] | 4 | 2021-12-31T10:06:34.000Z | 2022-01-16T16:34:50.000Z | server/src/repository/image/i_virtual_tag_database_repository.py | konrad2508/picgal | 7f7822a02145fd2efa697e1c7750af9af680a3da | [
"MIT"
] | null | null | null | server/src/repository/image/i_virtual_tag_database_repository.py | konrad2508/picgal | 7f7822a02145fd2efa697e1c7750af9af680a3da | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from model.image.data.virtual_tag_data import VirtualTagData
from model.image.entity.subtag_condition import SubtagCondition
class IVirtualTagDatabaseRepository(ABC):
@abstractmethod
def get_virtual_tags(self) -> list[VirtualTagData]: ...
@abstractmethod
def get_c... | 30.076923 | 83 | 0.782609 | 44 | 391 | 6.795455 | 0.522727 | 0.113712 | 0.093645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12532 | 391 | 12 | 84 | 32.583333 | 0.874269 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
aebc5d6a9792ddd2b75b757521afb7c55688b742 | 140 | py | Python | backend/api/tests/settings.py | damo-da/bars-and-grills | 38ad32e39aac8679350f4c7388c51cbb18bb4020 | [
"MIT"
] | 45 | 2020-09-23T15:38:41.000Z | 2021-09-15T19:27:57.000Z | backend/api/tests/settings.py | damo-da/bars-and-grills | 38ad32e39aac8679350f4c7388c51cbb18bb4020 | [
"MIT"
] | null | null | null | backend/api/tests/settings.py | damo-da/bars-and-grills | 38ad32e39aac8679350f4c7388c51cbb18bb4020 | [
"MIT"
] | null | null | null | from core.settings import INSTALLED_APPS, SECRET_KEY, MIDDLEWARE, TEMPLATES, REST_FRAMEWORK, JWT_AUTH, DATABASES
ROOT_URLCONF = 'api.urls'
| 35 | 112 | 0.821429 | 19 | 140 | 5.789474 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 140 | 3 | 113 | 46.666667 | 0.873016 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
aebf6820803828c2be5a35a18187ab3b1684d629 | 6,773 | py | Python | release/stubs.min/Rhino/Geometry/__init___parts/BezierCurve.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Rhino/Geometry/__init___parts/BezierCurve.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Rhino/Geometry/__init___parts/BezierCurve.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | class BezierCurve(object,IDisposable):
"""
Represents a Bezier curve.
Note: as an exception,the bezier curve is not derived from Rhino.Geometry.Curve.
BezierCurve(controlPoints: IEnumerable[Point2d])
BezierCurve(controlPoints: IEnumerable[Point3d])
BezierCurve(controlPoints: IEnumerable[Poin... | 21.848387 | 215 | 0.679315 | 769 | 6,773 | 5.863459 | 0.283485 | 0.053227 | 0.023952 | 0.015303 | 0.293191 | 0.230206 | 0.230206 | 0.205589 | 0.178975 | 0.156798 | 0 | 0.005017 | 0.234903 | 6,773 | 309 | 216 | 21.919094 | 0.86511 | 0.665732 | 0 | 0.489362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.425532 | false | 0.425532 | 0 | 0 | 0.510638 | 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 | 1 | 0 | 0 | 3 |
4e042de1aeaba34797cbdcb8fec4ec1c294e610d | 753 | py | Python | carbon_black_live_response/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | carbon_black_live_response/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | carbon_black_live_response/setup.py | xhennessy-r7/insightconnect-plugins | 59268051313d67735b5dd3a30222eccb92aca8e9 | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
from setuptools import setup, find_packages
setup(name='carbon_black_live_response-rapid7-plugin',
version='1.0.0',
description='The Cb Response Live Response feature allows security operators to collect information and take action on remote endpoints in real time. ... | 50.2 | 334 | 0.742364 | 99 | 753 | 5.535354 | 0.757576 | 0.065693 | 0.054745 | 0.083942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008078 | 0.177955 | 753 | 14 | 335 | 53.785714 | 0.877221 | 0.128818 | 0 | 0 | 1 | 0.090909 | 0.623277 | 0.117917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e1bf4d46f5598e002172e1fe5393fa59dc419ca | 1,431 | py | Python | rest_api_oscar/api/oscar/business.py | kurt-hectic/oscar-rest-api | 273204114e6e09d701d23b8e6699ee13f40597ae | [
"MIT"
] | null | null | null | rest_api_oscar/api/oscar/business.py | kurt-hectic/oscar-rest-api | 273204114e6e09d701d23b8e6699ee13f40597ae | [
"MIT"
] | null | null | null | rest_api_oscar/api/oscar/business.py | kurt-hectic/oscar-rest-api | 273204114e6e09d701d23b8e6699ee13f40597ae | [
"MIT"
] | null | null | null | from rest_api_oscar.database.models import Station
from rest_api_oscar.lib.oscarapi import OscarClient
from sqlalchemy.orm.exc import NoResultFound
from flask import current_app
def get_all_stations():
pass
def get_station(id):
oscar_client = OscarClient(oscarurl=current_app.config["OSCAR_URL"])
... | 29.8125 | 127 | 0.683438 | 192 | 1,431 | 4.932292 | 0.3125 | 0.084477 | 0.057022 | 0.06019 | 0.330517 | 0.274551 | 0.274551 | 0.274551 | 0.274551 | 0.088701 | 0 | 0 | 0.179595 | 1,431 | 47 | 128 | 30.446809 | 0.806644 | 0.410901 | 0 | 0.210526 | 0 | 0 | 0.061893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.210526 | 0.210526 | 0 | 0.526316 | 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 | 1 | 0 | 0 | 3 |
4e1e505fd8a8e4c4e3c9fe6fa9b7488325389d09 | 144 | py | Python | tests/functional/test_yield_fixture.py | kozakHolota/pytest-html-reporter | 29aea2297a1613d3d2be1cfe54500473add8bd01 | [
"MIT"
] | 48 | 2020-07-27T07:27:25.000Z | 2022-03-31T17:32:02.000Z | tests/functional/test_yield_fixture.py | kozakHolota/pytest-html-reporter | 29aea2297a1613d3d2be1cfe54500473add8bd01 | [
"MIT"
] | 149 | 2020-07-13T15:27:16.000Z | 2022-03-29T15:18:04.000Z | tests/functional/test_yield_fixture.py | kozakHolota/pytest-html-reporter | 29aea2297a1613d3d2be1cfe54500473add8bd01 | [
"MIT"
] | 16 | 2020-09-03T12:00:03.000Z | 2022-03-09T10:31:05.000Z | import pytest
@pytest.yield_fixture()
def setup():
yield
def test_pass(setup):
assert True
def test_fail(setup):
assert False
| 9.6 | 23 | 0.6875 | 20 | 144 | 4.8 | 0.6 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 144 | 14 | 24 | 10.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.375 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9d74647e9bbf814c9352de30696423c73035377d | 716 | py | Python | mainsite/migrations/0011_alter_song_url_slug_alter_tour_url_slug_and_more.py | jazzyeagle/chatbot_website | 47da27f85907b5f3f7ea94bffd343a6322b8f39a | [
"BSD-3-Clause"
] | null | null | null | mainsite/migrations/0011_alter_song_url_slug_alter_tour_url_slug_and_more.py | jazzyeagle/chatbot_website | 47da27f85907b5f3f7ea94bffd343a6322b8f39a | [
"BSD-3-Clause"
] | null | null | null | mainsite/migrations/0011_alter_song_url_slug_alter_tour_url_slug_and_more.py | jazzyeagle/chatbot_website | 47da27f85907b5f3f7ea94bffd343a6322b8f39a | [
"BSD-3-Clause"
] | 1 | 2022-03-05T15:08:45.000Z | 2022-03-05T15:08:45.000Z | # Generated by Django 4.0 on 2021-12-18 21:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainsite', '0010_auto_20211204_0115'),
]
operations = [
migrations.AlterField(
model_name='song',
name='url_slug',
... | 24.689655 | 58 | 0.562849 | 73 | 716 | 5.39726 | 0.520548 | 0.152284 | 0.190355 | 0.220812 | 0.51269 | 0.51269 | 0.51269 | 0.51269 | 0.51269 | 0.51269 | 0 | 0.061475 | 0.318436 | 716 | 28 | 59 | 25.571429 | 0.745902 | 0.060056 | 0 | 0.545455 | 1 | 0 | 0.101341 | 0.034277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d8418296529d95cc7d5971c3f72252a99b21178 | 132 | py | Python | airbyte-integrations/connectors/source-chartmogul/source_chartmogul/__init__.py | OTRI-Unipd/OTRI-airbyte | 50eeeb773f75246e86c6e167b0cd7d2dda6efe0d | [
"MIT"
] | 22 | 2020-08-27T00:47:20.000Z | 2020-09-17T15:39:39.000Z | airbyte-integrations/connectors/source-chartmogul/source_chartmogul/__init__.py | OTRI-Unipd/OTRI-airbyte | 50eeeb773f75246e86c6e167b0cd7d2dda6efe0d | [
"MIT"
] | 116 | 2020-08-27T01:11:27.000Z | 2020-09-19T02:47:52.000Z | airbyte-integrations/connectors/source-chartmogul/source_chartmogul/__init__.py | OTRI-Unipd/OTRI-airbyte | 50eeeb773f75246e86c6e167b0cd7d2dda6efe0d | [
"MIT"
] | 1 | 2022-02-19T17:22:50.000Z | 2022-02-19T17:22:50.000Z | #
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
from .source import SourceChartmogul
__all__ = ["SourceChartmogul"]
| 14.666667 | 56 | 0.727273 | 14 | 132 | 6.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 0.159091 | 132 | 8 | 57 | 16.5 | 0.792793 | 0.409091 | 0 | 0 | 0 | 0 | 0.216216 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9da79194d1e80b2f0d53a311e034d65e46a10ad6 | 207 | py | Python | minimum_moves_to_equal_array_elements_453.py | cthi/LeetCode | fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89 | [
"MIT"
] | null | null | null | minimum_moves_to_equal_array_elements_453.py | cthi/LeetCode | fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89 | [
"MIT"
] | null | null | null | minimum_moves_to_equal_array_elements_453.py | cthi/LeetCode | fbeb077e382ab4c4e8d8cc4707b9f1a9f33c5a89 | [
"MIT"
] | null | null | null | class Solution(object):
def minMoves(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
smallest = min(nums)
return sum([n - smallest for n in nums])
| 20.7 | 48 | 0.502415 | 24 | 207 | 4.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.36715 | 207 | 9 | 49 | 23 | 0.793893 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9dd5e0e00aa445799d17ec4c499aede491eb0e3b | 129 | py | Python | qpyson/cli.py | mpkocher/qpyson | 13ea663bf5e4d481158ceab20226e26891569cfd | [
"MIT"
] | 1 | 2020-07-09T10:29:20.000Z | 2020-07-09T10:29:20.000Z | qpyson/cli.py | mpkocher/qpyson | 13ea663bf5e4d481158ceab20226e26891569cfd | [
"MIT"
] | null | null | null | qpyson/cli.py | mpkocher/qpyson | 13ea663bf5e4d481158ceab20226e26891569cfd | [
"MIT"
] | null | null | null | import sys
from . import runner
def run_main():
sys.exit(runner(sys.argv[1:]))
if __name__ == "__main__":
run_main()
| 11.727273 | 34 | 0.643411 | 19 | 129 | 3.842105 | 0.631579 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0.20155 | 129 | 10 | 35 | 12.9 | 0.699029 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9dff724ac6237c1cc7910f7b5a2a2716ac474a89 | 1,015 | py | Python | reprobench/tools/executable.py | gorczyca/reprobench | 915c729eec488ce85ff8c65b8b36851c43b1b345 | [
"MIT"
] | 1 | 2019-05-18T12:18:02.000Z | 2019-05-18T12:18:02.000Z | reprobench/tools/executable.py | gorczyca/reprobench | 915c729eec488ce85ff8c65b8b36851c43b1b345 | [
"MIT"
] | 19 | 2019-03-11T13:35:12.000Z | 2019-07-26T06:54:39.000Z | reprobench/tools/executable.py | gorczyca/reprobench | 915c729eec488ce85ff8c65b8b36851c43b1b345 | [
"MIT"
] | 4 | 2020-09-28T09:24:38.000Z | 2022-03-18T12:55:20.000Z | from pathlib import Path
from loguru import logger
from reprobench.core.base import Tool
class ExecutableTool(Tool):
name = "Basic Executable Tool"
path = None
prefix = "--"
@classmethod
def is_ready(cls):
return True
def get_arguments(self):
return [f"{self.prefix}{key}={v... | 23.604651 | 88 | 0.617734 | 135 | 1,015 | 4.466667 | 0.348148 | 0.092869 | 0.069652 | 0.059701 | 0.092869 | 0.092869 | 0.092869 | 0 | 0 | 0 | 0 | 0 | 0.260099 | 1,015 | 42 | 89 | 24.166667 | 0.802929 | 0 | 0 | 0 | 0 | 0 | 0.062069 | 0.025616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.1 | 0.233333 | 0.733333 | 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 | 1 | 0 | 0 | 3 |
d18996b25e27b52a234ab30357459426a77762e1 | 254 | py | Python | openstack-dashboard/openstack_dashboard/dashboards/project/monitors/panel.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/monitors/panel.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/monitors/panel.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
import horizon
from openstack_dashboard.dashboards.project import dashboard
class Monitors(horizon.Panel):
name = _("Monitoring")
slug = 'monitors'
dashboard.Project.register(Monitors)
| 19.538462 | 60 | 0.787402 | 29 | 254 | 6.758621 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133858 | 254 | 12 | 61 | 21.166667 | 0.890909 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
d195b7cc31483dfb290e154c3d1185b96dea5874 | 205 | py | Python | util/send.py | borisblizzard/sakit | 84ce2faabf2ae34908d9a45af4521f62b92a2521 | [
"BSD-3-Clause"
] | null | null | null | util/send.py | borisblizzard/sakit | 84ce2faabf2ae34908d9a45af4521f62b92a2521 | [
"BSD-3-Clause"
] | null | null | null | util/send.py | borisblizzard/sakit | 84ce2faabf2ae34908d9a45af4521f62b92a2521 | [
"BSD-3-Clause"
] | null | null | null | from socket import *
cs = socket(AF_INET, SOCK_DGRAM)
cs.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
cs.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
print(cs.sendto('This is a test', ('192.168.1.255', 5005)))
| 34.166667 | 60 | 0.726829 | 35 | 205 | 4.085714 | 0.685714 | 0.167832 | 0.20979 | 0.293706 | 0.321678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 0.121951 | 205 | 5 | 61 | 41 | 0.705556 | 0 | 0 | 0 | 0 | 0 | 0.135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 1 | 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 | 3 |
d19db7c218a6303da82107d5c14fb5db2bc64100 | 447 | py | Python | semana-02/lista-exercicio/lista-1/exercicio_10_organizacao_turmar.py | larissajusten/ufsc-object-oriented-programming | 839e6abcc20580ea1a47479232c3ed3cb0153e4b | [
"MIT"
] | 6 | 2021-11-29T05:43:19.000Z | 2022-03-15T21:54:54.000Z | semana-02/lista-exercicio/lista-1/exercicio_10_organizacao_turmar.py | larissajusten/ufsc-object-oriented-programming | 839e6abcc20580ea1a47479232c3ed3cb0153e4b | [
"MIT"
] | 3 | 2021-11-21T03:44:03.000Z | 2021-11-21T03:44:05.000Z | semana-02/lista-exercicio/lista-1/exercicio_10_organizacao_turmar.py | larissajusten/ufsc-object-oriented-programming | 839e6abcc20580ea1a47479232c3ed3cb0153e4b | [
"MIT"
] | null | null | null | """
Crie um sistema que gerencia o cadastro de alunos e professores em turmas.
Os usuáriosserão os membros da secretaria.
Eles devem conseguir visualizar os alunos matriculados emcada turma, com seus dados, suas notas e presenças.
Além disso, os secretários precisam teracesso a dados cadastrais dos pr... | 55.875 | 113 | 0.760626 | 62 | 447 | 5.483871 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201342 | 447 | 8 | 114 | 55.875 | 0.952381 | 0.928412 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d19f1c9ec760efa8aa711594e13ded6da0419142 | 162 | py | Python | multiply/multiply.py | evansMeja/Leetcode | dac2e00090afad47eb02b30e56848fbc0ea8b57f | [
"MIT"
] | null | null | null | multiply/multiply.py | evansMeja/Leetcode | dac2e00090afad47eb02b30e56848fbc0ea8b57f | [
"MIT"
] | null | null | null | multiply/multiply.py | evansMeja/Leetcode | dac2e00090afad47eb02b30e56848fbc0ea8b57f | [
"MIT"
] | null | null | null | class Solution:
def multiply(self, num1: str, num2: str) -> str:
a = int(num1)
b = int(num2)
return str(a * b)
| 20.25 | 52 | 0.444444 | 20 | 162 | 3.6 | 0.6 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.438272 | 162 | 7 | 53 | 23.142857 | 0.747253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
d1aadf9e84d1f4f6e526877061ee2660a3a0bb48 | 1,295 | py | Python | grokwiki/src/grokwiki/wiki.py | zopefoundation/grok | 9c29591071aff824e6ef72acf8137bb21c0ea861 | [
"ZPL-2.1"
] | 21 | 2015-11-06T08:54:43.000Z | 2021-08-15T13:41:13.000Z | grokwiki/src/grokwiki/wiki.py | clozinski/grok.install | d15f3aed6b422865c690c2787ad3811e73c7f1e9 | [
"ZPL-2.1"
] | 8 | 2016-03-18T14:25:17.000Z | 2020-06-10T23:17:26.000Z | grokwiki/src/grokwiki/wiki.py | clozinski/grok.install | d15f3aed6b422865c690c2787ad3811e73c7f1e9 | [
"ZPL-2.1"
] | 13 | 2015-09-19T22:42:44.000Z | 2022-01-24T18:55:20.000Z | ##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 24.903846 | 78 | 0.612355 | 154 | 1,295 | 5.149351 | 0.525974 | 0.045397 | 0.065574 | 0.071879 | 0.06053 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005607 | 0.173745 | 1,295 | 51 | 79 | 25.392157 | 0.735514 | 0.425483 | 0 | 0.2 | 0 | 0 | 0.040998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.15 | 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 | 1 | 1 | 0 | 0 | 3 |
d1b32bbe2da4e73033988cc4b694a1fcad5d4b00 | 8,301 | py | Python | python/os.py | 3mdeb/bits | 19da7046a7303f1de8b53165eea1a6f486757c03 | [
"BSD-3-Clause"
] | 215 | 2015-08-05T07:31:35.000Z | 2022-03-25T17:34:54.000Z | python/os.py | marcol3786/bits | 19da7046a7303f1de8b53165eea1a6f486757c03 | [
"BSD-3-Clause"
] | 12 | 2015-09-07T14:09:53.000Z | 2021-04-07T05:03:26.000Z | python/os.py | marcol3786/bits | 19da7046a7303f1de8b53165eea1a6f486757c03 | [
"BSD-3-Clause"
] | 71 | 2015-08-05T02:35:13.000Z | 2022-02-11T21:16:39.000Z | # Copyright (c) 2014, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condit... | 21.230179 | 185 | 0.686303 | 1,161 | 8,301 | 4.646856 | 0.407407 | 0.033364 | 0.007414 | 0.010195 | 0.099351 | 0.08304 | 0.08304 | 0.08304 | 0.08304 | 0.08304 | 0 | 0.006567 | 0.211179 | 8,301 | 390 | 186 | 21.284615 | 0.817349 | 0.468257 | 0 | 0.054545 | 0 | 0.018182 | 0.157517 | 0.005153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245455 | false | 0.009091 | 0.045455 | 0.136364 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d1de357be2198181ab74a35e0a230b3361d5383c | 285 | py | Python | src/athena_type_converter/_meta_data.py | QuiNovas/athena-type-convertor | 775e6deeccd1be4a486363bcdbff57ce594849f0 | [
"Apache-2.0"
] | 2 | 2020-07-18T00:23:27.000Z | 2021-05-15T14:23:55.000Z | src/athena_type_converter/_meta_data.py | QuiNovas/athena-type-converter | 775e6deeccd1be4a486363bcdbff57ce594849f0 | [
"Apache-2.0"
] | null | null | null | src/athena_type_converter/_meta_data.py | QuiNovas/athena-type-converter | 775e6deeccd1be4a486363bcdbff57ce594849f0 | [
"Apache-2.0"
] | null | null | null | from athena_type_converter._type_converters import TYPE_CONVERTERS
def map_meta_data(result_meta_data):
mapped_meta_data = []
for column in result_meta_data['ColumnInfo']:
mapped_meta_data.append((column['Name'], TYPE_CONVERTERS[column['Type']]))
return mapped_meta_data
| 31.666667 | 80 | 0.792982 | 40 | 285 | 5.2 | 0.475 | 0.230769 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108772 | 285 | 8 | 81 | 35.625 | 0.818898 | 0 | 0 | 0 | 0 | 0 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 3 |
d1e3ca939b0d56ea549d6e079089100968e12daf | 153 | py | Python | passstatement.py | pawankumarsharm/Pythoncoding | f0e5f6c1d22b101e109088529640326dd5405a6a | [
"bzip2-1.0.6"
] | null | null | null | passstatement.py | pawankumarsharm/Pythoncoding | f0e5f6c1d22b101e109088529640326dd5405a6a | [
"bzip2-1.0.6"
] | null | null | null | passstatement.py | pawankumarsharm/Pythoncoding | f0e5f6c1d22b101e109088529640326dd5405a6a | [
"bzip2-1.0.6"
] | null | null | null | def f1():
print("Hello")
def f2():
pass
f1()
f2()
for i in range(100):
if i%10==0:
print(i)
else:pass
"""Hello
0
10
20
30
40
50
60
70
80
90""" | 6.12 | 20 | 0.562092 | 33 | 153 | 2.606061 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.24183 | 153 | 25 | 21 | 6.12 | 0.491379 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d1edd4b8a42052e2a03b0c83e7d51487d5847bee | 63 | py | Python | shop/source/api/purchases/__init__.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/api/purchases/__init__.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/api/purchases/__init__.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | from .purchases import PurchasesAPI
__all__ = ['PurchasesAPI'] | 21 | 35 | 0.793651 | 6 | 63 | 7.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 63 | 3 | 36 | 21 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
060c1a4d17fab2c0420ec6d777dfa67f7b2ba4f8 | 301 | py | Python | joblibhadoop/resources/__init__.py | joblib/joblib-hadoop | 85f250e4bc3c397e502ce05e1185bd3f1609a4cf | [
"BSD-3-Clause"
] | 3 | 2017-06-18T11:00:20.000Z | 2020-01-30T01:30:47.000Z | joblibhadoop/resources/__init__.py | joblib/joblib-hadoop | 85f250e4bc3c397e502ce05e1185bd3f1609a4cf | [
"BSD-3-Clause"
] | 6 | 2017-06-04T22:06:39.000Z | 2021-01-08T19:37:26.000Z | joblibhadoop/resources/__init__.py | joblib/joblib-hadoop | 85f250e4bc3c397e502ce05e1185bd3f1609a4cf | [
"BSD-3-Clause"
] | 1 | 2017-06-04T21:01:36.000Z | 2017-06-04T21:01:36.000Z | """Joblibhadoop resources module."""
import os.path
ENVIRONMENT_YML_FILENAME = 'joblib-hadoop-environment.yml'
def conda_environment_filename():
"""Return the conda environment filename."""
return os.path.join(
os.path.dirname(os.path.abspath(__file__)), ENVIRONMENT_YML_FILENAME)
| 25.083333 | 77 | 0.747508 | 36 | 301 | 5.972222 | 0.527778 | 0.111628 | 0.204651 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129568 | 301 | 11 | 78 | 27.363636 | 0.820611 | 0.229236 | 0 | 0 | 0 | 0 | 0.131222 | 0.131222 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
ae06d33748dfc5232f905e99ef835c5e96bb9018 | 541 | py | Python | PersonalWebApp/ProjectsManagement/migrations/0002_auto_20200921_2318.py | CiganOliviu/personal_website | abedf67efc2e7e212c32815f645d3b3709f9f177 | [
"MIT"
] | 1 | 2021-04-02T16:45:52.000Z | 2021-04-02T16:45:52.000Z | ClientsManagementSystem/ProjectsManagement/migrations/0002_auto_20200921_2318.py | CiganOliviu/ClientsManagementSystem | 6271dd007e549fd0369c4df7c017980b915a91b5 | [
"MIT"
] | null | null | null | ClientsManagementSystem/ProjectsManagement/migrations/0002_auto_20200921_2318.py | CiganOliviu/ClientsManagementSystem | 6271dd007e549fd0369c4df7c017980b915a91b5 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-09-21 20:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ProjectsManagement', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='ActiveWorkingProduct',
),
migration... | 20.807692 | 47 | 0.567468 | 42 | 541 | 7.285714 | 0.690476 | 0.27451 | 0.326797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052198 | 0.327172 | 541 | 25 | 48 | 21.64 | 0.788462 | 0.083179 | 0 | 0.421053 | 1 | 0 | 0.182186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae0fb6e432229c14401dda038b302172eb2e111e | 312 | py | Python | e2e_graphsage/data/datasets/__init__.py | mingruimingrui/E2EGraphSage | 90de7befd3a8ced514697c073b4c64e96b63bdb0 | [
"MIT"
] | null | null | null | e2e_graphsage/data/datasets/__init__.py | mingruimingrui/E2EGraphSage | 90de7befd3a8ced514697c073b4c64e96b63bdb0 | [
"MIT"
] | null | null | null | e2e_graphsage/data/datasets/__init__.py | mingruimingrui/E2EGraphSage | 90de7befd3a8ced514697c073b4c64e96b63bdb0 | [
"MIT"
] | null | null | null | from .edge_dataset import EdgeDataset
from .snap_dataset import SnapDataset
from .pretraining_bert_dataset import PretrainingBertDataset
from .pretraining_bert_dataset import bert_dataset_collate_fn
__all__ = [
'EdgeDataset',
'SnapDataset',
'PretrainingBertDataset',
'bert_dataset_collate_fn'
]
| 26 | 61 | 0.810897 | 33 | 312 | 7.181818 | 0.393939 | 0.219409 | 0.160338 | 0.219409 | 0.270042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13141 | 312 | 11 | 62 | 28.363636 | 0.874539 | 0 | 0 | 0 | 0 | 0 | 0.214744 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ae1c11faf69ea25cf8c993e8562e9b936d0b0bc4 | 2,048 | py | Python | clubs/models.py | gkulk007/Mag-E | a584e988cf2513eb0b1ff24e0e9dd696ffd1d71e | [
"MIT"
] | 2 | 2021-06-22T18:01:15.000Z | 2021-06-26T13:07:07.000Z | clubs/models.py | gkulk007/Mag-E | a584e988cf2513eb0b1ff24e0e9dd696ffd1d71e | [
"MIT"
] | null | null | null | clubs/models.py | gkulk007/Mag-E | a584e988cf2513eb0b1ff24e0e9dd696ffd1d71e | [
"MIT"
] | null | null | null | from django.db import models
class Club(models.Model):
club_name = models.CharField(max_length=255, null=True, blank=True)
club_desc = models.TextField(max_length=600, null=True, blank=True)
club_logo = models.TextField(max_length=600, null=True, blank=True)
youtube_channel = models.CharField(max_leng... | 40.96 | 78 | 0.740234 | 288 | 2,048 | 5.065972 | 0.197917 | 0.115147 | 0.187114 | 0.244688 | 0.732008 | 0.664839 | 0.64085 | 0.584647 | 0.584647 | 0.138451 | 0 | 0.032553 | 0.14502 | 2,048 | 49 | 79 | 41.795918 | 0.800685 | 0 | 0 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0.108108 | 1 | 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 | 1 | 0 | 0 | 0 | 3 |
ae211e48ad200360231e9bf88c6671e99e8e69dd | 274 | py | Python | rvaconnect/places/urls.py | rva-data/rvaconnect | dc7e387dd35971ff5514f2675532e29094843ae2 | [
"BSD-3-Clause"
] | 1 | 2015-01-27T05:24:13.000Z | 2015-01-27T05:24:13.000Z | rvaconnect/places/urls.py | rva-data/rvaconnect | dc7e387dd35971ff5514f2675532e29094843ae2 | [
"BSD-3-Clause"
] | null | null | null | rvaconnect/places/urls.py | rva-data/rvaconnect | dc7e387dd35971ff5514f2675532e29094843ae2 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url
from .views import PlaceList, PlaceDetail
urlpatterns = patterns('',
url(r'^$', view=PlaceList.as_view(), name="place_list"),
url(r'^(?P<slug>[\w\d-]+)-(?P<pk>\d+)/$', view=PlaceDetail.as_view(), name="place_detail"),
)
| 27.4 | 95 | 0.656934 | 39 | 274 | 4.512821 | 0.589744 | 0.125 | 0.113636 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113139 | 274 | 9 | 96 | 30.444444 | 0.72428 | 0 | 0 | 0 | 0 | 0 | 0.208029 | 0.120438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ae385e9c09822fc972f954edfd2ddaebcc3178f7 | 952 | py | Python | examples.py | KarrLab/wc_test | 08c01512c985d9a026640eda0235c25b887472e9 | [
"MIT"
] | null | null | null | examples.py | KarrLab/wc_test | 08c01512c985d9a026640eda0235c25b887472e9 | [
"MIT"
] | null | null | null | examples.py | KarrLab/wc_test | 08c01512c985d9a026640eda0235c25b887472e9 | [
"MIT"
] | null | null | null | import pkg_resources
import wc_kb
import wc_kb.io
import wc_test
# read KB
kb_reader = wc_kb.io.Reader()
kb = kb_reader.run(
pkg_resources.resource_filename('mycoplasma_pneumoniae', 'kb', 'core.xlsx'),
seq_path=pkg_resources.resource_filename('mycoplasma_pneumoniae', 'kb', 'seq.fna'))[wc_kb.KnowledgeBase][0]
... | 952 | 952 | 0.773109 | 115 | 952 | 6.191304 | 0.33913 | 0.039326 | 0.050562 | 0.078652 | 0.280899 | 0.227528 | 0.227528 | 0 | 0 | 0 | 0 | 0.001202 | 0.12605 | 952 | 1 | 952 | 952 | 0.854567 | 0.023109 | 0 | 0.291667 | 0 | 0 | 0.092772 | 0.045307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae3de14c4604b1da4402a550ec40b977660938fe | 600 | py | Python | Jarvis_Youtube.py | VishalShenoy2002/J.A.R.V.I.S-Computer-Automation | f0cc4109f4f34f258e0a2ec2102ff8651b9c308a | [
"MIT"
] | 1 | 2022-01-13T07:28:33.000Z | 2022-01-13T07:28:33.000Z | Jarvis_Youtube.py | VishalShenoy2002/J.A.R.V.I.S-Computer-Automation | f0cc4109f4f34f258e0a2ec2102ff8651b9c308a | [
"MIT"
] | null | null | null | Jarvis_Youtube.py | VishalShenoy2002/J.A.R.V.I.S-Computer-Automation | f0cc4109f4f34f258e0a2ec2102ff8651b9c308a | [
"MIT"
] | null | null | null | import pyautogui
import webbrowser
import time
class Youtube:
def __init__(self):
pass
def OpenYoutube(self):
webbrowser.open('https://www.youtube.com/')
def YoutubeSearch(self,search_content):
pyautogui.moveTo(625,189,duration=0.5)
pyautogui.click()
pyautogui.type... | 17.647059 | 57 | 0.628333 | 70 | 600 | 5.228571 | 0.528571 | 0.131148 | 0.150273 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025287 | 0.275 | 600 | 33 | 58 | 18.181818 | 0.816092 | 0 | 0 | 0.26087 | 0 | 0 | 0.048576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0.26087 | 0.130435 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ae40d2cb63b042baf7be0d8a4d61ba4d7ccfe585 | 133 | py | Python | geometry/types.py | fR0zTy/geometry | c8cbd3671fd8ac5e86150cdeb297b584a63a9760 | [
"MIT"
] | null | null | null | geometry/types.py | fR0zTy/geometry | c8cbd3671fd8ac5e86150cdeb297b584a63a9760 | [
"MIT"
] | null | null | null | geometry/types.py | fR0zTy/geometry | c8cbd3671fd8ac5e86150cdeb297b584a63a9760 | [
"MIT"
] | null | null | null | # -*- coding : utf-8 -*-
from typing import List, Union
# Type definitions
Real = Union[int, float]
RealList = List[Real]
# Enums
| 13.3 | 30 | 0.661654 | 18 | 133 | 4.888889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.195489 | 133 | 9 | 31 | 14.777778 | 0.813084 | 0.338346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ae7dcacd35ae09cbee49768fc068df2ed9e76851 | 223 | py | Python | display/display/handlers/examples/blank.py | owlsn/h_crawl | c0431ee6484e61d9339553c3350962ea517749d6 | [
"MIT"
] | null | null | null | display/display/handlers/examples/blank.py | owlsn/h_crawl | c0431ee6484e61d9339553c3350962ea517749d6 | [
"MIT"
] | 8 | 2021-03-18T20:33:29.000Z | 2022-03-11T23:21:04.000Z | display/display/handlers/examples/blank.py | owlsn/h_crawl | c0431ee6484e61d9339553c3350962ea517749d6 | [
"MIT"
] | null | null | null | from display.handlers.base import BaseHandler
class ExamplesBlankHandler(BaseHandler):
def get(self):
title = 'ExamplesBlankHandler'
self.render('examples/blank.html', title = title, **self.render_dict) | 37.166667 | 77 | 0.730942 | 24 | 223 | 6.75 | 0.708333 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161435 | 223 | 6 | 77 | 37.166667 | 0.86631 | 0 | 0 | 0 | 0 | 0 | 0.174107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 3 |
881d3e4d97dd484d2ab1b30cc7fa97bca7f0d570 | 52 | py | Python | notebooks/_solutions/11-xarray-intro20.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 58 | 2020-10-09T10:10:59.000Z | 2022-03-07T14:58:07.000Z | notebooks/_solutions/11-xarray-intro20.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 24 | 2020-09-30T19:57:14.000Z | 2021-10-05T07:21:09.000Z | notebooks/_solutions/11-xarray-intro20.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 19 | 2020-10-05T09:32:18.000Z | 2022-03-20T00:09:14.000Z | # Make a RGB plot
gent_f.plot.imshow(figsize=(9, 5)) | 26 | 34 | 0.711538 | 11 | 52 | 3.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.115385 | 52 | 2 | 34 | 26 | 0.73913 | 0.288462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8834b0ec4b881953c745822f1768e9f06f0a3fa4 | 98 | py | Python | pt-ppo/util/constance.py | SpencerLo-CMU/pytorch-rl-suite | 52b215f38cbb4c39a0ccfff48ab8262b1c9ef4a0 | [
"MIT"
] | 1 | 2018-05-10T07:58:15.000Z | 2018-05-10T07:58:15.000Z | pt-ppo/util/constance.py | SpencerLo-CMU/pytorch-rl-suite | 52b215f38cbb4c39a0ccfff48ab8262b1c9ef4a0 | [
"MIT"
] | null | null | null | pt-ppo/util/constance.py | SpencerLo-CMU/pytorch-rl-suite | 52b215f38cbb4c39a0ccfff48ab8262b1c9ef4a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import torch
NUM_PROCESSES = torch.multiprocessing.cpu_count()
EPS = 1e-6
| 16.333333 | 49 | 0.765306 | 15 | 98 | 4.866667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.112245 | 98 | 5 | 50 | 19.6 | 0.804598 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
883d9e5b3826cefcb7122564c964c42f8d158905 | 88 | py | Python | tron/__init__.py | rhettg/Tron | 670693b348342218b91fc0f229d73b2150e4b688 | [
"Apache-2.0"
] | 1 | 2015-11-05T20:39:24.000Z | 2015-11-05T20:39:24.000Z | tron/__init__.py | rhettg/Tron | 670693b348342218b91fc0f229d73b2150e4b688 | [
"Apache-2.0"
] | null | null | null | tron/__init__.py | rhettg/Tron | 670693b348342218b91fc0f229d73b2150e4b688 | [
"Apache-2.0"
] | null | null | null | __version_info__ = (0, 2, 7)
__version__ = ".".join("%s" % v for v in __version_info__)
| 29.333333 | 58 | 0.659091 | 14 | 88 | 3.142857 | 0.714286 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.159091 | 88 | 2 | 59 | 44 | 0.554054 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
8843215b93d96f6bdaf1bf0511a3769cc2559f4b | 15,372 | py | Python | tests/test_regular_solution.py | andr1976/thermo | 42d10b3702373aacc88167d4046ea9af92abd570 | [
"MIT"
] | 380 | 2016-07-04T09:45:20.000Z | 2022-03-20T18:09:45.000Z | tests/test_regular_solution.py | simonmb/thermo | 9abbb0ea71abe8677155e029d01aebe74cce137f | [
"MIT"
] | 104 | 2016-07-10T20:47:12.000Z | 2022-03-22T20:43:39.000Z | tests/test_regular_solution.py | simonmb/thermo | 9abbb0ea71abe8677155e029d01aebe74cce137f | [
"MIT"
] | 96 | 2016-07-05T20:54:05.000Z | 2022-02-23T03:06:02.000Z | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | 53.190311 | 1,057 | 0.687484 | 2,085 | 15,372 | 4.919904 | 0.258513 | 0.012186 | 0.018717 | 0.023396 | 0.317703 | 0.283876 | 0.239715 | 0.22363 | 0.134334 | 0.122539 | 0 | 0.365767 | 0.178311 | 15,372 | 288 | 1,058 | 53.375 | 0.446362 | 0.10389 | 0 | 0.179348 | 0 | 0 | 0.00313 | 0 | 0 | 0 | 0 | 0 | 0.255435 | 1 | 0.054348 | false | 0 | 0.054348 | 0.01087 | 0.119565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8845fc3fe725299b342bcd5bc0d3fb98eb17a769 | 141 | py | Python | pyalarmdotcomajax/__init__.py | kevin-david/pyalarmdotcomajax | 89f5f0feba68bb2370bdf5f0e5f8c300a7f7f74e | [
"MIT"
] | 8 | 2020-03-19T07:48:27.000Z | 2021-11-12T19:08:33.000Z | pyalarmdotcomajax/__init__.py | kevin-david/pyalarmdotcomajax | 89f5f0feba68bb2370bdf5f0e5f8c300a7f7f74e | [
"MIT"
] | 20 | 2020-03-19T01:37:42.000Z | 2022-02-15T21:42:39.000Z | pyalarmdotcomajax/__init__.py | kevin-david/pyalarmdotcomajax | 89f5f0feba68bb2370bdf5f0e5f8c300a7f7f74e | [
"MIT"
] | 16 | 2020-03-22T16:57:07.000Z | 2022-02-01T05:48:50.000Z | """pyalarmdotcomajax module."""
__version__ = "0.1.13"
from .pyalarmdotcomajax import Alarmdotcom, AlarmdotcomADT, AlarmdotcomProtection1
| 35.25 | 83 | 0.794326 | 12 | 141 | 9 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.099291 | 141 | 3 | 84 | 47 | 0.811024 | 0.177305 | 0 | 0 | 0 | 0 | 0.056075 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
884f499803d89781cdc3532f635c959fbad9e0ad | 1,044 | py | Python | asym_rlpo/utils/timer.py | abaisero/asym-porl | 8a76d920e51d783bbeeeea3cd2b02efffbb33c72 | [
"MIT"
] | 2 | 2021-08-24T22:41:36.000Z | 2021-10-31T01:55:37.000Z | asym_rlpo/utils/timer.py | abaisero/asym-porl | 8a76d920e51d783bbeeeea3cd2b02efffbb33c72 | [
"MIT"
] | null | null | null | asym_rlpo/utils/timer.py | abaisero/asym-porl | 8a76d920e51d783bbeeeea3cd2b02efffbb33c72 | [
"MIT"
] | 1 | 2021-10-13T12:27:40.000Z | 2021-10-13T12:27:40.000Z | import time
from asym_rlpo.utils.checkpointing import Serializable
class Timer(Serializable):
def __init__(self):
self.reset()
def reset(self):
self.start = time.time()
@property
def seconds(self) -> float:
return time.time() - self.start
@property
def hours(self) -... | 20.470588 | 57 | 0.565134 | 135 | 1,044 | 4.207407 | 0.311111 | 0.06162 | 0.079225 | 0.052817 | 0.225352 | 0.098592 | 0.098592 | 0 | 0 | 0 | 0 | 0.006993 | 0.315134 | 1,044 | 50 | 58 | 20.88 | 0.787413 | 0.045019 | 0 | 0.176471 | 0 | 0 | 0.028254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.117647 | 0.588235 | 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 | 1 | 0 | 0 | 3 |
8858ec3cd2dea53a25f86db9cb092e79e78a8c4d | 4,366 | py | Python | src/HafrenHaver/lc.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | 2 | 2020-11-09T19:30:26.000Z | 2020-12-29T21:38:40.000Z | src/HafrenHaver/lc.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | null | null | null | src/HafrenHaver/lc.py | InnovAnon-Inc/HafrenHaver | 5283ae3817c500f2365d1c8108dd3270aceb28fa | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python3
import ast
import astor
import inspect
#from ast_decompiler import decompile
#from numba import jit
import re
indent_amount = 3
comment_pattern = re.compile (' *#.*')
lambda_pattern = re.compile ('lambda *')
indent_pattern = re.compile (' ' * indent_amount)
empty_line = re.compile (r... | 42.803922 | 123 | 0.596656 | 533 | 4,366 | 4.803002 | 0.347092 | 0.028125 | 0.04375 | 0.035156 | 0.149219 | 0.100781 | 0.034375 | 0.034375 | 0 | 0 | 0 | 0.004915 | 0.300962 | 4,366 | 101 | 124 | 43.227723 | 0.833879 | 0.352726 | 0 | 0 | 0 | 0 | 0.020901 | 0 | 0 | 0 | 0 | 0.009901 | 0.083333 | 1 | 0.233333 | false | 0.016667 | 0.15 | 0.166667 | 0.55 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8868462ea44051a19b0a521d403aa8c39464733d | 633 | py | Python | problems/test_find_smallest_positive.py | gregdferrell/algo | 974ae25b028d49bcb7ded6655a7e11dcf6aa221d | [
"MIT"
] | null | null | null | problems/test_find_smallest_positive.py | gregdferrell/algo | 974ae25b028d49bcb7ded6655a7e11dcf6aa221d | [
"MIT"
] | null | null | null | problems/test_find_smallest_positive.py | gregdferrell/algo | 974ae25b028d49bcb7ded6655a7e11dcf6aa221d | [
"MIT"
] | null | null | null | from .c_example_1 import find_smallest_positive, solution
def test_find_smallest_pos_1():
items = [1, 2, 4, 3]
assert find_smallest_positive(items) == 5
items = [3]
assert find_smallest_positive(items) == 1
items = [1]
assert find_smallest_positive(items) == 2
items = [3, 2]
assert find_smallest_positive(item... | 19.181818 | 57 | 0.620853 | 116 | 633 | 3.206897 | 0.198276 | 0.225806 | 0.322581 | 0.349462 | 0.604839 | 0.38172 | 0.204301 | 0.204301 | 0 | 0 | 0 | 0.098 | 0.210111 | 633 | 32 | 58 | 19.78125 | 0.646 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 3 |
886e282feb0a5b6e5813a35661b598e313a716cf | 536 | py | Python | precious/plugins/custom_commands.py | bzyx/precious | 1c97cca4d1e20d9db7fb2a626209da6b312e874c | [
"BSD-3-Clause"
] | 3 | 2015-06-18T20:12:45.000Z | 2020-03-11T05:26:49.000Z | precious/plugins/custom_commands.py | bzyx/precious | 1c97cca4d1e20d9db7fb2a626209da6b312e874c | [
"BSD-3-Clause"
] | null | null | null | precious/plugins/custom_commands.py | bzyx/precious | 1c97cca4d1e20d9db7fb2a626209da6b312e874c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from precious.plugins import Build_step, FormElements
class Custom_commands(Build_step):
@staticmethod
def description():
return ('Custom user build script',
{'text': ('Commands:', FormElements.Textarea)})
def __init__(self, **kwargs):
if 'text' no... | 28.210526 | 77 | 0.606343 | 62 | 536 | 5.032258 | 0.580645 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002457 | 0.240672 | 536 | 18 | 78 | 29.777778 | 0.764128 | 0.039179 | 0 | 0 | 0 | 0 | 0.099415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
887fb1541d35b400b6f073ae4771c84e89ee1203 | 94 | py | Python | src/createurl/__init__.py | mpflynnx/clipbm | 14ba0444a361a9b4f4d2e40ce72a2d944a2ba880 | [
"MIT"
] | null | null | null | src/createurl/__init__.py | mpflynnx/clipbm | 14ba0444a361a9b4f4d2e40ce72a2d944a2ba880 | [
"MIT"
] | 12 | 2022-01-28T13:32:34.000Z | 2022-03-23T11:14:44.000Z | src/createurl/__init__.py | mpflynnx/createurl | 14ba0444a361a9b4f4d2e40ce72a2d944a2ba880 | [
"MIT"
] | null | null | null | """Top-level package for createurl."""
__version__ = "0.6.0"
from .main import main # noqa
| 15.666667 | 38 | 0.670213 | 14 | 94 | 4.214286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.170213 | 94 | 5 | 39 | 18.8 | 0.717949 | 0.404255 | 0 | 0 | 0 | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8898c5fb3ae4ed2d99b6e71874880b2801f36e42 | 1,387 | py | Python | accounts/migrations/0002_auto_20180207_0051.py | walison17/pulso-api | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | [
"MIT"
] | null | null | null | accounts/migrations/0002_auto_20180207_0051.py | walison17/pulso-api | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | [
"MIT"
] | null | null | null | accounts/migrations/0002_auto_20180207_0051.py | walison17/pulso-api | b9edfc3f6042676dbdb50d7efcdb461a19ea90ed | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-02-07 00:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [('accounts', '0001_initial')]
operations = [
migrations.AddField(
model_name='user',
name='about',
field=models.TextField(... | 30.822222 | 84 | 0.547224 | 139 | 1,387 | 5.330935 | 0.410072 | 0.145749 | 0.186235 | 0.218623 | 0.439946 | 0.283401 | 0 | 0 | 0 | 0 | 0 | 0.03014 | 0.330209 | 1,387 | 44 | 85 | 31.522727 | 0.767492 | 0.031002 | 0 | 0.512821 | 1 | 0 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.102564 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
88a8f88e520df603f738c76faac5579652a4a5b4 | 81 | py | Python | Intermediate/filp.py | man21/IOSD-UIETKUK-HacktoberFest-Meetup-2019 | 8ca1a8bf95ee98d303d3a909c448288fa5992210 | [
"Apache-2.0"
] | 22 | 2019-10-02T16:48:10.000Z | 2020-11-14T23:28:41.000Z | Intermediate/filp.py | man21/IOSD-UIETKUK-HacktoberFest-Meetup-2019 | 8ca1a8bf95ee98d303d3a909c448288fa5992210 | [
"Apache-2.0"
] | 46 | 2019-10-01T03:53:30.000Z | 2020-10-20T16:34:37.000Z | Intermediate/filp.py | man21/IOSD-UIETKUK-HacktoberFest-Meetup-2019 | 8ca1a8bf95ee98d303d3a909c448288fa5992210 | [
"Apache-2.0"
] | 415 | 2019-10-01T03:48:22.000Z | 2021-02-27T04:57:28.000Z | # flipping the binary bits of number
n = int(input('Enter a number '))
print(~n)
| 20.25 | 36 | 0.691358 | 14 | 81 | 4 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 81 | 3 | 37 | 27 | 0.835821 | 0.419753 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 3 |
ee074e0683ec67540c4b7c086969e89275d66cea | 303 | py | Python | observatorioGoogle/html_scanner/requirement.py | teogenesmoura/pesquisaGoogle | 6f3d5e90a316ada9a7060097da20f6b341b82ec4 | [
"MIT"
] | 3 | 2018-03-30T14:46:24.000Z | 2018-10-05T16:09:16.000Z | observatorioGoogle/html_scanner/requirement.py | teogenesmoura/pesquisaGoogle | 6f3d5e90a316ada9a7060097da20f6b341b82ec4 | [
"MIT"
] | 17 | 2018-04-05T10:09:12.000Z | 2018-06-20T17:57:43.000Z | html_scanner/requirement.py | GTaumaturgo/Observatorio-google | a8850302e64a46923616d26aa35f28169a5ccef5 | [
"MIT"
] | null | null | null | # Essa classe representa um requisito atômico, isto é,
# um requisito que não depende de outros requisitos.
class Requirement():
def __init__(self):
self._dados = None
self._nome = None
def dados(self):
return self._dados
def nome(self):
return self._nome
| 21.642857 | 54 | 0.650165 | 39 | 303 | 4.846154 | 0.589744 | 0.116402 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273927 | 303 | 13 | 55 | 23.307692 | 0.859091 | 0.339934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.25 | 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 | 1 | 1 | 0 | 0 | 3 |
ee0d26988140df595e52e5af058e0dd4c1dfacf3 | 223 | py | Python | abc.py | sachinkrb/PythonExamples | d3e9b6b47f9e271f4fe1d25294b5cd1bf71dd55d | [
"MIT"
] | null | null | null | abc.py | sachinkrb/PythonExamples | d3e9b6b47f9e271f4fe1d25294b5cd1bf71dd55d | [
"MIT"
] | null | null | null | abc.py | sachinkrb/PythonExamples | d3e9b6b47f9e271f4fe1d25294b5cd1bf71dd55d | [
"MIT"
] | null | null | null | for num in range(2,50):
for x in range(2,num):
if num % x == 0:
print(str(num)+ 'not prime')
break
else:
print(str(num) + 'prime')
| 20.272727 | 40 | 0.367713 | 27 | 223 | 3.037037 | 0.555556 | 0.170732 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.511211 | 223 | 10 | 41 | 22.3 | 0.706422 | 0 | 0 | 0 | 0 | 0 | 0.06278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee58c81fb5ade907323695c7f0e9f8876be2400b | 467 | py | Python | P4DTensorflowDemos/Demos/TFDelphiProps/E06_props.py | qq33095304/TensorFlow4Delphi- | 8404a8de247cfdf6d94de2a4752a28cdbf7dfdc8 | [
"Apache-2.0"
] | 70 | 2017-11-29T12:51:39.000Z | 2021-08-13T08:42:40.000Z | P4DTensorflowDemos/Demos/TFDelphiProps/E06_props.py | sunfuhong/TensorFlow4Delphi | 8404a8de247cfdf6d94de2a4752a28cdbf7dfdc8 | [
"Apache-2.0"
] | 1 | 2019-02-07T06:36:32.000Z | 2019-02-07T06:47:54.000Z | P4DTensorflowDemos/Demos/TFDelphiProps/E06_props.py | sunfuhong/TensorFlow4Delphi | 8404a8de247cfdf6d94de2a4752a28cdbf7dfdc8 | [
"Apache-2.0"
] | 26 | 2017-11-29T19:25:41.000Z | 2021-09-28T14:33:19.000Z | # Display the Properties content
print (P4DProps)
# Get single property
print (P4DProps.Value['date1'])
print (P4DProps.Value['date2'])
print (P4DProps.Value['date3'])
# Put single property
P4DProps.Value['date1'] = ["01.01.2017",""]
P4DProps.Value['date2'] = ["","31.12.2017"]
P4DProps.Value['date3'] = ["01.01.2017","... | 29.1875 | 61 | 0.717345 | 65 | 467 | 5.153846 | 0.476923 | 0.310448 | 0.161194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113527 | 0.11349 | 467 | 15 | 62 | 31.133333 | 0.695652 | 0.357602 | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ee6621d2eb4cfb7d13d27837ff0bf0a9a6b079d9 | 327 | py | Python | text.py | free-ocr/ocr2text-master | dc834621978eb6fbd78af94803ef5637b096548e | [
"MIT"
] | null | null | null | text.py | free-ocr/ocr2text-master | dc834621978eb6fbd78af94803ef5637b096548e | [
"MIT"
] | null | null | null | text.py | free-ocr/ocr2text-master | dc834621978eb6fbd78af94803ef5637b096548e | [
"MIT"
] | null | null | null | import pytesseract
from PIL import Image
import tesserocr
im=Image.open('./test_files/ying_shu.png')
print(pytesseract.image_to_string(im))
im1=Image.open('./test_files/ying_jianti.png')
print(pytesseract.image_to_string(im1,lang='chi_sim'))
#im2=Image.open('fanti.png')
#print(pytesseract.image_to_string(im2,lang='chi... | 32.7 | 55 | 0.798165 | 53 | 327 | 4.698113 | 0.45283 | 0.108434 | 0.228916 | 0.289157 | 0.562249 | 0.385542 | 0 | 0 | 0 | 0 | 0 | 0.01278 | 0.042813 | 327 | 10 | 55 | 32.7 | 0.782748 | 0.247706 | 0 | 0 | 0 | 0 | 0.244898 | 0.216327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
ee6a3ad1e17853dcb4ea7804b2566b0ab9d36043 | 21 | py | Python | src/convbump/__init__.py | Luminaar/cocobump | 5771b0d1bb3be011f9485bc77057c0bc15ce0352 | [
"BSD-3-Clause"
] | null | null | null | src/convbump/__init__.py | Luminaar/cocobump | 5771b0d1bb3be011f9485bc77057c0bc15ce0352 | [
"BSD-3-Clause"
] | 3 | 2021-07-20T08:01:36.000Z | 2021-08-01T03:11:32.000Z | src/convbump/__init__.py | Luminaar/cocobump | 5771b0d1bb3be011f9485bc77057c0bc15ce0352 | [
"BSD-3-Clause"
] | null | null | null | __app__ = "convbump"
| 10.5 | 20 | 0.714286 | 2 | 21 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
ee72735e31521d4f0577c55d18bcd1191dafd9d6 | 174 | py | Python | gspaces/__init__.py | quintenstar/gspaces | 638001c8e3d57e48930a61b5a676e382a60820dc | [
"MIT"
] | null | null | null | gspaces/__init__.py | quintenstar/gspaces | 638001c8e3d57e48930a61b5a676e382a60820dc | [
"MIT"
] | null | null | null | gspaces/__init__.py | quintenstar/gspaces | 638001c8e3d57e48930a61b5a676e382a60820dc | [
"MIT"
] | null | null | null | """
"""
__author__ = "Quinten Star"
__version__ = "0.3.0"
from .linear import LinearSpace, arange, linspace
from .log import LogSpace, logspace, GeometricSpace, geomspace
| 17.4 | 62 | 0.735632 | 20 | 174 | 6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.143678 | 174 | 9 | 63 | 19.333333 | 0.785235 | 0 | 0 | 0 | 0 | 0 | 0.10241 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ee8a7b9ab2e3ee27585b6e9c71d3dd1941a3eeed | 8,066 | py | Python | appengine/findit/waterfall/flake/test/process_flake_try_job_result_pipeline_test.py | mcgreevy/chromium-infra | 09064105713603f7bf75c772e8354800a1bfa256 | [
"BSD-3-Clause"
] | 1 | 2018-01-02T05:47:07.000Z | 2018-01-02T05:47:07.000Z | appengine/findit/waterfall/flake/test/process_flake_try_job_result_pipeline_test.py | mcgreevy/chromium-infra | 09064105713603f7bf75c772e8354800a1bfa256 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/flake/test/process_flake_try_job_result_pipeline_test.py | mcgreevy/chromium-infra | 09064105713603f7bf75c772e8354800a1bfa256 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import mock
from gae_libs.testcase import TestCase
from model.flake.flake_try_job import FlakeTryJob
from model.flake.master_flake_analysis import MasterFla... | 29.874074 | 80 | 0.538805 | 740 | 8,066 | 5.521622 | 0.182432 | 0.057269 | 0.041116 | 0.035242 | 0.740578 | 0.730788 | 0.696035 | 0.669604 | 0.669604 | 0.651493 | 0 | 0.012403 | 0.360278 | 8,066 | 269 | 81 | 29.98513 | 0.779457 | 0.019216 | 0 | 0.630081 | 0 | 0 | 0.12217 | 0.009106 | 0 | 0 | 0 | 0 | 0.04878 | 1 | 0.03252 | false | 0.073171 | 0.028455 | 0 | 0.065041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ee9047586b08c3a6c3d515441b2b2f1e19a9bc34 | 157 | py | Python | remote/run.py | TxConvergentAdmin/remote | 91485dc7db70c97c09576a98049aa8dcab9344f8 | [
"MIT"
] | null | null | null | remote/run.py | TxConvergentAdmin/remote | 91485dc7db70c97c09576a98049aa8dcab9344f8 | [
"MIT"
] | null | null | null | remote/run.py | TxConvergentAdmin/remote | 91485dc7db70c97c09576a98049aa8dcab9344f8 | [
"MIT"
] | null | null | null | from remote.server import app
from flask_ngrok import run_with_ngrok
run_with_ngrok(app)
def main():
app.run()
if __name__ == "__main__":
main() | 13.083333 | 38 | 0.713376 | 24 | 157 | 4.125 | 0.541667 | 0.141414 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184713 | 157 | 12 | 39 | 13.083333 | 0.773438 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c99b99191692fee404cb7db14125fb036e1894a3 | 5,543 | py | Python | tests/test_utils.py | MSLNZ/pr-single-photons | b3f52d2a2a7cf5385d885f30ae9555e1e7d77ec2 | [
"MIT"
] | null | null | null | tests/test_utils.py | MSLNZ/pr-single-photons | b3f52d2a2a7cf5385d885f30ae9555e1e7d77ec2 | [
"MIT"
] | null | null | null | tests/test_utils.py | MSLNZ/pr-single-photons | b3f52d2a2a7cf5385d885f30ae9555e1e7d77ec2 | [
"MIT"
] | null | null | null | import math
import pytest
import numpy as np
from photons import utils
def test_decimals():
assert utils.get_decimals(0.) == 0
assert utils.get_decimals(0) == 0
assert utils.get_decimals(1) == 0
assert utils.get_decimals(1.0) == 0
assert utils.get_decimals(-1) == 0
assert utils.get_decimals(... | 36.708609 | 95 | 0.593541 | 1,079 | 5,543 | 2.993513 | 0.121409 | 0.105573 | 0.121362 | 0.190712 | 0.588235 | 0.543344 | 0.482353 | 0.382663 | 0.308359 | 0.29226 | 0 | 0.227594 | 0.208912 | 5,543 | 150 | 96 | 36.953333 | 0.509008 | 0.01768 | 0 | 0.094017 | 0 | 0.008547 | 0.019312 | 0.00515 | 0 | 0 | 0 | 0 | 0.495727 | 1 | 0.042735 | false | 0 | 0.034188 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9a1a0cdae7d9d0e38ab16a9535f79adcb41ae14 | 1,206 | py | Python | catalogue/migrations/0023_auto_20170316_1155.py | R-Wolf/CFD_A_library | b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9 | [
"MIT"
] | 4 | 2017-03-14T05:03:03.000Z | 2019-04-13T05:13:24.000Z | catalogue/migrations/0023_auto_20170316_1155.py | gpulkit96/CFD_A_library | b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9 | [
"MIT"
] | 1 | 2017-05-18T08:39:46.000Z | 2017-05-18T08:39:46.000Z | catalogue/migrations/0023_auto_20170316_1155.py | gpulkit96/CFD_A_library | b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9 | [
"MIT"
] | 2 | 2017-03-13T08:54:21.000Z | 2017-05-18T06:24:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-16 06:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0022_auto_20170315_1355'),
]
operations = [
migrations.AlterFi... | 29.414634 | 90 | 0.580431 | 124 | 1,206 | 5.5 | 0.443548 | 0.146628 | 0.183284 | 0.21261 | 0.527859 | 0.485337 | 0.431085 | 0.26393 | 0 | 0 | 0 | 0.054309 | 0.297678 | 1,206 | 40 | 91 | 30.15 | 0.750885 | 0.056385 | 0 | 0.454545 | 1 | 0 | 0.081938 | 0.020264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9a4b004311e06243c6aaadca615786f12e547f9 | 589 | py | Python | Aula 08/ParentesisValido.py | diexmontana/LabADAGrupoC | 699713007534cdd97c8ca429141a9a4a69feb4b4 | [
"BSD-3-Clause"
] | null | null | null | Aula 08/ParentesisValido.py | diexmontana/LabADAGrupoC | 699713007534cdd97c8ca429141a9a4a69feb4b4 | [
"BSD-3-Clause"
] | null | null | null | Aula 08/ParentesisValido.py | diexmontana/LabADAGrupoC | 699713007534cdd97c8ca429141a9a4a69feb4b4 | [
"BSD-3-Clause"
] | null | null | null | #ParentesisValido.py
def parentesisValido (cadena) :
# Comprueba los pares de parentesis validos que abren y cierran
# Devuelve el numero de parentesis sobrantes
stack =[]
for val in cadena:
if val == ")":
if len(stack) != 0 and stack[-1] == "(":
stack.pop... | 24.541667 | 68 | 0.541596 | 57 | 589 | 5.596491 | 0.561404 | 0.263323 | 0.244514 | 0.394984 | 0.263323 | 0.263323 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.312394 | 589 | 23 | 69 | 25.608696 | 0.780247 | 0.210526 | 0 | 0.266667 | 0 | 0 | 0.045662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0.266667 | 0 | 0 | 0 | null | 1 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.