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
2a353b93f5f9d4300699da32fbf0979754bb0b70
1,973
py
Python
messaging_abstract/component/server/router/router.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
messaging_abstract/component/server/router/router.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
9
2018-09-25T10:10:58.000Z
2019-03-19T14:59:43.000Z
messaging_abstract/component/server/router/router.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
1
2019-03-13T10:40:35.000Z
2019-03-13T10:40:35.000Z
from iqa_common.executor import Executor from messaging_abstract.component.server.server import Server from messaging_abstract.component.server.service import Service from messaging_abstract.node.node import Node import abc class Router(Server, abc.ABC): """ Abstract messaging Router """ def __init...
32.883333
91
0.653827
257
1,973
4.840467
0.287938
0.033762
0.03537
0.048232
0.107717
0.049839
0.049839
0
0
0
0
0.002762
0.266092
1,973
59
92
33.440678
0.856354
0.21997
0
0
0
0
0.017094
0
0
0
0
0
0
1
0.172414
false
0.241379
0.172414
0.068966
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2a370b0dda6f71ff02ee2cafa3d70eacdb20068e
884
py
Python
tools/Ubertooth/host/python/specan_ui/setup.py
Charmve/BLE-Security-Att-Def
3652d84bf4ac0c694bb3c4c0f611098da9122af0
[ "BSD-2-Clause" ]
149
2020-10-23T23:31:51.000Z
2022-03-15T00:25:35.000Z
tools/Ubertooth/host/python/specan_ui/setup.py
Charmve/BLE-Security-Att-Def
3652d84bf4ac0c694bb3c4c0f611098da9122af0
[ "BSD-2-Clause" ]
1
2021-04-12T19:24:00.000Z
2021-04-27T03:11:07.000Z
tools/Ubertooth/host/python/specan_ui/setup.py
Charmve/BLE-Security-Att-Def
3652d84bf4ac0c694bb3c4c0f611098da9122af0
[ "BSD-2-Clause" ]
22
2020-11-17T02:52:40.000Z
2022-03-15T00:26:38.000Z
#!/usr/bin/env python """ Specan setup Install script for the Ubertooth spectrum analyzer tool Usage: python setup.py install This file is part of project Ubertooth Copyright 2012 Dominic Spill """ from distutils.core import setup setup( name = "specan", description = "A tool for reading spectrum an...
27.625
87
0.635747
95
884
5.915789
0.757895
0.05694
0
0
0
0
0
0
0
0
0
0.007587
0.254525
884
31
88
28.516129
0.84522
0.216063
0
0
0
0
0.545985
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
2a414dea4b4f880272f6002e7f38a16a317d1dd1
945
py
Python
tests/functional/modules/pyi_testmod_relimp/relimp1.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
tests/functional/modules/pyi_testmod_relimp/relimp1.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
tests/functional/modules/pyi_testmod_relimp/relimp1.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
37.8
78
0.640212
112
945
5.169643
0.508929
0.086356
0.138169
0.103627
0.103627
0
0
0
0
0
0
0.026474
0.120635
945
24
79
39.375
0.670277
0.538624
0
0
0
0
0.337264
0.228774
0
0
0
0
0.222222
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2a45c8371283bb6371f79e42366c69021e265908
2,325
py
Python
vectorizing.py
ramankh/multi-digit-recognition
f87614455e2c3545e0bdda093471ef8c6a3e9c81
[ "MIT" ]
null
null
null
vectorizing.py
ramankh/multi-digit-recognition
f87614455e2c3545e0bdda093471ef8c6a3e9c81
[ "MIT" ]
null
null
null
vectorizing.py
ramankh/multi-digit-recognition
f87614455e2c3545e0bdda093471ef8c6a3e9c81
[ "MIT" ]
null
null
null
import cv2 import numpy as np import pickle import h5py number_of_images = 13068 #33402 # #dic_pick = pickle.load( open( "train_metadata.pickle", "rb" ) ) dic_pick = pickle.load( open( "test_metadata.pickle", "rb" ) ) length = [len(x) for x in dic_pick["label"]] inpt= np.ndarray((number_of_images,784)) labels = np.n...
29.807692
87
0.712258
413
2,325
3.755448
0.251816
0.065764
0.099291
0.058672
0.330754
0.265635
0.249516
0.137976
0.121212
0
0
0.028841
0.135054
2,325
77
88
30.194805
0.742417
0.227957
0
0.04
0
0
0.094435
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a4e73d56b9bdffd0d81ba2d7e45f2b95877fd0c
2,869
py
Python
tools/summarizer.py
planchar/algorhythm-use-case
27e27662b5899447988a68f1bf003a813be86398
[ "MIT" ]
null
null
null
tools/summarizer.py
planchar/algorhythm-use-case
27e27662b5899447988a68f1bf003a813be86398
[ "MIT" ]
null
null
null
tools/summarizer.py
planchar/algorhythm-use-case
27e27662b5899447988a68f1bf003a813be86398
[ "MIT" ]
null
null
null
""" This module provides a summarize_book function. It takes a url as input, and attempts to generates a summary for the text. """ # imports from transformers import pipeline import re import requests def summarize_book(url): # get the text with requests txt_url = url # for now, work wit...
29.57732
84
0.624259
391
2,869
4.478261
0.383632
0.02056
0.018846
0.023986
0.134209
0.107938
0.053113
0
0
0
0
0.019788
0.242593
2,869
97
85
29.57732
0.78555
0.319624
0
0.086957
1
0
0.143904
0.055468
0
0
0
0
0
1
0.021739
false
0
0.065217
0
0.108696
0.065217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a5e181b041f080e45507e18c8e8e469ff3b1a7e
610
py
Python
src/debugpy/_vendored/pydevd/tests_python/resources/_debugger_case15.py
r3m0t/debugpy
090e3c3ef5758e5b316514c9d6f44f9b9b488cf1
[ "MIT" ]
695
2020-01-30T14:34:51.000Z
2022-03-31T09:31:57.000Z
python/helpers/pydev/pydev_tests_python/resources/_debugger_case15.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
1,095
2018-03-01T00:50:11.000Z
2019-05-06T17:44:15.000Z
python/helpers/pydev/pydev_tests_python/resources/_debugger_case15.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
class Car(object): """A car class""" def __init__(self, model, make, color): self.model = model self.make = make self.color = color self.price = None def get_price(self): return self.price def set_price(self, value): self.price = value availableCars = ...
20.333333
47
0.603279
76
610
4.644737
0.513158
0.076487
0
0
0
0
0
0
0
0
0
0.025114
0.281967
610
29
48
21.034483
0.780822
0.113115
0
0
0
0
0.075188
0
0
0
0
0
0
1
0.210526
false
0
0
0.052632
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2a6287f73581e1c3f458f4aab88a607f73f07463
806
py
Python
src/week.py
macuyler/clock
a8575df01caabf69897fdf5f5038759b1bf50bed
[ "MIT" ]
null
null
null
src/week.py
macuyler/clock
a8575df01caabf69897fdf5f5038759b1bf50bed
[ "MIT" ]
4
2020-11-24T23:32:49.000Z
2022-01-20T19:39:37.000Z
src/week.py
macuyler/clock
a8575df01caabf69897fdf5f5038759b1bf50bed
[ "MIT" ]
null
null
null
"""A week's worth of log lines.""" from functools import reduce from operator import add from typing import Union from src.day import Day, str_to_day from src.time import Time class Week: def __init__(self, week_num: int, days: list[Union[str, Day]]): str_days = all(map(lambda d: isinstance(d, str), da...
24.424242
69
0.630273
123
806
3.95122
0.373984
0.057613
0.067901
0.057613
0
0
0
0
0
0
0
0
0.240695
806
32
70
25.1875
0.794118
0.034739
0
0
0
0
0.059585
0
0
0
0
0
0
1
0.2
false
0
0.25
0.1
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2a65d28b364774f1af2fa423bb2f027af6d078de
3,185
py
Python
await.py
bilkoh/imgur_c2
998b962fae8137619536c88654a917f0af8dd0c4
[ "MIT" ]
1
2021-11-05T20:04:02.000Z
2021-11-05T20:04:02.000Z
await.py
bilkoh/imgur_c2
998b962fae8137619536c88654a917f0af8dd0c4
[ "MIT" ]
null
null
null
await.py
bilkoh/imgur_c2
998b962fae8137619536c88654a917f0af8dd0c4
[ "MIT" ]
null
null
null
import requests import json import os import subprocess import sqlite3 as sl from datetime import datetime from imgur_c2.auth import client_id from imgur_c2.tng import generate_tag_name from imgur_c2.ImgMsg import ImgMsg, imgMsgFromFile, imgMsgFromImage # Bots find C2 by searching Imgur for special tags, generated ba...
25.894309
92
0.609419
424
3,185
4.400943
0.386792
0.05627
0.017685
0.0209
0.096999
0.086817
0.03537
0.03537
0.03537
0.03537
0
0.006053
0.273783
3,185
122
93
26.106557
0.800692
0.102355
0
0.180723
1
0.012048
0.178947
0.029323
0
0
0
0
0
1
0.060241
false
0
0.108434
0
0.204819
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a6ebac7a2c77a98b7d1e304dc757dedaf7d9536
2,502
py
Python
examples/21_tictactoe/tictactoe.py
michaelandrewblum/be434-fall-2021
5c2281a99ece283e7ee7d1873708efbef473f3d3
[ "MIT" ]
null
null
null
examples/21_tictactoe/tictactoe.py
michaelandrewblum/be434-fall-2021
5c2281a99ece283e7ee7d1873708efbef473f3d3
[ "MIT" ]
null
null
null
examples/21_tictactoe/tictactoe.py
michaelandrewblum/be434-fall-2021
5c2281a99ece283e7ee7d1873708efbef473f3d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : michaelblum <michaelblum@localhost> Date : 2021-11-08 Purpose: Rock the Casbah """ import argparse import re # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Rock...
25.02
79
0.444844
247
2,502
4.42915
0.412955
0.051188
0.046618
0.060329
0.042048
0
0
0
0
0
0
0.01516
0.314548
2,502
99
80
25.272727
0.622741
0.110312
0
0.178571
0
0
0.138171
0
0
0
0
0
0
0
null
null
0
0.035714
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a6ebae4a429e985b9d67e300ab8ff4e31a5ca92
753
py
Python
src/keri/kli/commands/revoke.py
repsistance/keripy
655c5625b5593844c405e7da5d4b089153b64efb
[ "Apache-2.0" ]
null
null
null
src/keri/kli/commands/revoke.py
repsistance/keripy
655c5625b5593844c405e7da5d4b089153b64efb
[ "Apache-2.0" ]
null
null
null
src/keri/kli/commands/revoke.py
repsistance/keripy
655c5625b5593844c405e7da5d4b089153b64efb
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ keri.kli.commands module """ import argparse from keri.base import keeping from keri.base.basing import Habitat from keri.db import dbing from keri.vdr.issuing import Issuer parser = argparse.ArgumentParser(description='Revoke a verifiable credential') parser.set_defaults(handler=lambda...
30.12
96
0.719788
112
753
4.8125
0.508929
0.059369
0.044527
0.06308
0.070501
0
0
0
0
0
0
0.004644
0.142098
753
24
97
31.375
0.829721
0.065073
0
0
0
0
0.143885
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2a71a680373cd347d0075e42e9327a860e7d2fa9
1,972
py
Python
rotkehlchen/assets/unknown_asset.py
resslerruntime/rotki
5e2578aa2d9a82d2e2b08c11d05967fb48c4ddc5
[ "BSD-3-Clause" ]
1
2020-11-14T12:20:37.000Z
2020-11-14T12:20:37.000Z
rotkehlchen/assets/unknown_asset.py
resslerruntime/rotki
5e2578aa2d9a82d2e2b08c11d05967fb48c4ddc5
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/assets/unknown_asset.py
resslerruntime/rotki
5e2578aa2d9a82d2e2b08c11d05967fb48c4ddc5
[ "BSD-3-Clause" ]
null
null
null
from dataclasses import dataclass, asdict from typing import ( Any, Dict, List, Optional, Set, Tuple, Union, ) from rotkehlchen.typing import ChecksumEthAddress SerializeAsDictKeys = Union[List[str], Tuple[str, ...], Set[str]] @dataclass(init=True, repr=True, eq=False, unsafe_hash=False...
27.774648
78
0.619168
223
1,972
5.309417
0.32287
0.126689
0.112331
0.055743
0.050676
0
0
0
0
0
0
0
0.277383
1,972
70
79
28.171429
0.830877
0.077586
0
0
0
0
0.126186
0.059743
0
0
0
0
0
1
0.137255
false
0
0.058824
0.078431
0.509804
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2a7439ba612cff30a0f9b2cca5f2718847313185
819
py
Python
prio_queue_test.py
aTeK7/deep-stereo1.4
dd2150097d0ed1c05791e4d80cf9b404f98a6880
[ "MIT" ]
53
2016-07-25T15:05:21.000Z
2021-11-19T16:45:51.000Z
prio_queue_test.py
aTeK7/deep-stereo1.4
dd2150097d0ed1c05791e4d80cf9b404f98a6880
[ "MIT" ]
1
2018-04-16T21:27:29.000Z
2019-08-01T04:24:26.000Z
prio_queue_test.py
aTeK7/deep-stereo1.4
dd2150097d0ed1c05791e4d80cf9b404f98a6880
[ "MIT" ]
14
2016-08-14T10:57:31.000Z
2021-06-29T11:29:07.000Z
import multiprocessing import os import time #processing queue input_queue = multiprocessing.Queue(maxsize=5) output_queue = multiprocessing.Queue(maxsize=5) def worker_main(in_queue, out_queue): #print os.getpid(),"working" while True: item = in_queue.get(True) #print os.getpid(), "got", i...
24.818182
76
0.634921
113
819
4.477876
0.442478
0.079051
0.098814
0.126482
0.130435
0
0
0
0
0
0
0.014377
0.235653
819
33
77
24.818182
0.79393
0.192918
0
0
0
0
0.119266
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a77331da6dd945851909f01c9ac9b7de6f5118c
651
py
Python
modules/dbnd/test_dbnd/scenarios/pipelines/double_fault.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/test_dbnd/scenarios/pipelines/double_fault.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/test_dbnd/scenarios/pipelines/double_fault.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import logging import sys from dbnd import PipelineTask, PythonTask, output, parameter logger = logging.getLogger(__name__) class T1(PythonTask): p1 = parameter.value("somep") o_1 = output[str] def run(self): self.o_1 = self.p1 class T2(PythonTask): p1 = parameter.value("somep") o_1 ...
17.131579
60
0.623656
94
651
4.06383
0.37234
0.041885
0.062827
0.086387
0.361257
0.361257
0.272251
0.272251
0.272251
0.272251
0
0.04065
0.24424
651
37
61
17.594595
0.735772
0.02765
0
0.318182
0
0
0.033281
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2a794f438e0f420e445de19b97f1abae3e32c2cf
393
py
Python
new/src/22.02.2020/password task.py
VladBaryliuk/my_start_tasks
bf387543e6fa3ee303cbef04d2af48d558011ed9
[ "Apache-2.0" ]
null
null
null
new/src/22.02.2020/password task.py
VladBaryliuk/my_start_tasks
bf387543e6fa3ee303cbef04d2af48d558011ed9
[ "Apache-2.0" ]
null
null
null
new/src/22.02.2020/password task.py
VladBaryliuk/my_start_tasks
bf387543e6fa3ee303cbef04d2af48d558011ed9
[ "Apache-2.0" ]
null
null
null
password = input() alpha = False upalpha = False digit = False for i in password: if i.isspace(): print("NOPE") break if i.isdigit(): digit = True if i.isalpha(): if i.isupper(): upalpha = True if i.islower(): alpha = True else: if alpha an...
18.714286
35
0.51145
48
393
4.1875
0.458333
0.074627
0.069652
0
0
0
0
0
0
0
0
0
0.374046
393
20
36
19.65
0.817073
0
0
0.2
0
0
0.025445
0
0
0
0
0
0
1
0
false
0.1
0
0
0
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2a8573b11c7f403df42b813ffd452857183a1c8d
852
py
Python
matrevy/accounts/models.py
matrevy/matrevy.dk
abaf6bc328adf55d522a5cf0c83092949a8f7a20
[ "MIT" ]
null
null
null
matrevy/accounts/models.py
matrevy/matrevy.dk
abaf6bc328adf55d522a5cf0c83092949a8f7a20
[ "MIT" ]
null
null
null
matrevy/accounts/models.py
matrevy/matrevy.dk
abaf6bc328adf55d522a5cf0c83092949a8f7a20
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin class AccountManager(): use_in_migration = True class Account(PermissionsMixin, AbstractBaseUser): """ Users within the Django authentication system are represented by this model. ...
23.027027
74
0.649061
85
852
6.317647
0.647059
0.037244
0
0
0
0
0
0
0
0
0
0.004777
0.262911
852
36
75
23.666667
0.850318
0.171362
0
0
0
0
0.075851
0
0
0
0
0.027778
0
1
0
false
0
0.105263
0
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2a85fbeeda2e3b26fbf0f7a827f8055cde08212c
5,874
py
Python
ViewState2JSON.py
nielszz/NetBinaryFormatterParser
4d3ed9a7dbf0ba249a66429396f7a9f16ced7474
[ "MIT" ]
22
2016-05-12T19:10:03.000Z
2022-03-12T18:19:19.000Z
ViewState2JSON.py
nielszz/NetBinaryFormatterParser
4d3ed9a7dbf0ba249a66429396f7a9f16ced7474
[ "MIT" ]
1
2018-02-23T19:18:28.000Z
2018-02-23T21:04:31.000Z
ViewState2JSON.py
nielszz/NetBinaryFormatterParser
4d3ed9a7dbf0ba249a66429396f7a9f16ced7474
[ "MIT" ]
7
2016-05-13T05:51:44.000Z
2021-12-25T17:59:38.000Z
import sys import struct import datetime import json from base64 import b64decode, b64encode def printverbose(string): if len(sys.argv) > 2 and sys.argv[2] == '-v': print string def popp(s, n): a = '' for c in range(n): a += s.pop(0) return a Marker_Format = 0xff Marker_Version_1 = 0x...
23.40239
80
0.668029
792
5,874
4.801768
0.183081
0.069419
0.030765
0.040231
0.270576
0.23087
0.197739
0.167762
0.132001
0.132001
0
0.032974
0.179094
5,874
251
81
23.40239
0.755703
0
0
0.252475
0
0
0.111319
0.022809
0
0
0.001362
0
0
0
null
null
0
0.024752
null
null
0.064356
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a881c69016d0468ed07389784b08b7c38445974
3,183
py
Python
MIT-6.0002-Introduction to Computational Thinking and Data Science/ps1b.py
fwd2020-c/MIT_OCW
b93255312f27a634e1aef82fce9ac632f3c098e6
[ "MIT" ]
null
null
null
MIT-6.0002-Introduction to Computational Thinking and Data Science/ps1b.py
fwd2020-c/MIT_OCW
b93255312f27a634e1aef82fce9ac632f3c098e6
[ "MIT" ]
null
null
null
MIT-6.0002-Introduction to Computational Thinking and Data Science/ps1b.py
fwd2020-c/MIT_OCW
b93255312f27a634e1aef82fce9ac632f3c098e6
[ "MIT" ]
null
null
null
########################### # 6.0002 Problem Set 1b: Space Change # Name: # Collaborators: # Time: # Author: charz, cdenise #================================ # Part B: Golden Eggs #================================ # Problem 1 # Method 1 # def dp_make_weight(egg_weights, target_weight, memo = {}): # ...
37.447059
134
0.603519
421
3,183
4.356295
0.351544
0.137405
0.045802
0.057252
0.292257
0.221374
0.124864
0.106325
0.087241
0
0
0.028033
0.282752
3,183
85
135
37.447059
0.775296
0.685831
0
0
0
0
0.128916
0
0
0
0
0.011765
0
1
0.047619
false
0
0
0
0.190476
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2a8933cd8cf08f0069cc1bed0bd8c71d5c4a96c1
521
py
Python
file_list.py
dobachi/PubNubExample
93750b3347e3656acc3b4aaa74f7e900f4c33c64
[ "Apache-2.0" ]
null
null
null
file_list.py
dobachi/PubNubExample
93750b3347e3656acc3b4aaa74f7e900f4c33c64
[ "Apache-2.0" ]
null
null
null
file_list.py
dobachi/PubNubExample
93750b3347e3656acc3b4aaa74f7e900f4c33c64
[ "Apache-2.0" ]
null
null
null
import os import inspect import pprint from pubnub.callbacks import SubscribeCallback from pubnub.enums import PNStatusCategory from pubnub.pnconfiguration import PNConfiguration from pubnub.pubnub import PubNub CHANNEL = "file_test" pnconfig = PNConfiguration() pnconfig.publish_key = os.environ["PUBNUB_PUBKEY"] pnc...
23.681818
53
0.81382
64
521
6.53125
0.46875
0.095694
0.057416
0.086124
0
0
0
0
0
0
0
0
0.095969
521
21
54
24.809524
0.887473
0
0
0
0
0
0.09405
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2a8c26fda6fa99226bc21697bbf6ce9513cf4171
986
py
Python
python/qitoolchain/actions/package_info.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
51
2015-01-05T14:35:13.000Z
2021-07-27T06:46:59.000Z
python/qitoolchain/actions/package_info.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
104
2015-04-09T10:48:42.000Z
2020-09-16T16:33:29.000Z
python/qitoolchain/actions/package_info.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
46
2015-01-05T14:35:16.000Z
2022-02-13T20:39:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ Display info about a toolchain package """ from __future__ import absolute_import from __future__ import unicode_litera...
31.806452
84
0.741379
131
986
5.389313
0.541985
0.067989
0.067989
0
0
0
0
0
0
0
0
0.010791
0.154158
986
30
85
32.866667
0.835731
0.28499
0
0
0
0
0.036603
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2a90711d2d6f1b39b8211334103cfebabe3834bd
1,191
py
Python
TaichiGAME/common/config.py
erizmr/TaichiGAME
db6258d5fd89b4afef9f3944337ed010eb75e246
[ "MIT" ]
37
2021-12-30T02:03:11.000Z
2022-03-21T11:37:52.000Z
TaichiGAME/common/config.py
maksyuki/TaichiGame
647d08d3d31b209314ec0dfec5270c565b2f6a61
[ "MIT" ]
2
2022-01-09T13:04:04.000Z
2022-01-11T06:47:43.000Z
TaichiGAME/common/config.py
maksyuki/TaichiGame
647d08d3d31b209314ec0dfec5270c565b2f6a61
[ "MIT" ]
2
2022-01-03T06:52:23.000Z
2022-01-11T06:31:30.000Z
from typing import TypeVar class Config(): SimplexMax: int = 8 Epsilon: float = 1e-5 Max: float = 1e37 PositiveMin: float = 1e-37 NegativeMin: float = -Max Pi: float = 3.14159265 HalfPi: float = Pi / 2.0 DoublePi: float = Pi * 2.0 ReciprocalOfPi: float = 0.3183098861 GeometryEp...
26.466667
44
0.633921
127
1,191
5.944882
0.535433
0.043709
0.021192
0.023841
0
0
0
0
0
0
0
0.142689
0.287993
1,191
44
45
27.068182
0.747642
0.005038
0
0
0
0
0.000845
0
0
0
0.094675
0
0.026316
1
0.026316
false
0
0.026316
0
0.868421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2a91e96cacd50c26d42376c2074727b8cb3c2aef
23,258
py
Python
.kodi/userdata/addon_data/plugin.video.p2p-streams/acestream/ace/ACEStream/Core/BitTornado/BT1/Storage.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/userdata/addon_data/plugin.video.p2p-streams/acestream/ace/ACEStream/Core/BitTornado/BT1/Storage.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/userdata/addon_data/plugin.video.p2p-streams/acestream/ace/ACEStream/Core/BitTornado/BT1/Storage.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\Core\BitTornado\BT1\Storage.pyo import sys import os import binascii import math from threading import Lock from time import strftime, localtime, time from os.path import exists, getsize, getmtime as getmtime_, basename from traceback import print_stack from bisect import bisect try: ...
35.508397
153
0.492476
2,599
23,258
4.266641
0.092728
0.024529
0.032825
0.038958
0.452611
0.379656
0.317251
0.252322
0.201281
0.152313
0
0.008931
0.403044
23,258
654
154
35.562691
0.789758
0.002623
0
0.452218
0
0
0.048327
0.004613
0
0
0
0
0
0
null
null
0.010239
0.032423
null
null
0.005119
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2a986a8e22ba40f247b5541f8e42366c5f3d68ab
1,873
py
Python
create-template-script/createtemplatefile.py
TechnicalConsultant123/material-design-icons-adt-template
c4313bfeb1f12b9c36792f2d9c0d5da4b24c1fb7
[ "Apache-2.0" ]
352
2015-01-01T23:54:28.000Z
2022-03-14T01:31:10.000Z
create-template-script/createtemplatefile.py
TechnicalConsultant123/material-design-icons-adt-template
c4313bfeb1f12b9c36792f2d9c0d5da4b24c1fb7
[ "Apache-2.0" ]
6
2015-01-16T13:21:38.000Z
2016-07-27T06:58:38.000Z
create-template-script/createtemplatefile.py
intrications/material-design-icons-adt-template
c4313bfeb1f12b9c36792f2d9c0d5da4b24c1fb7
[ "Apache-2.0" ]
76
2015-01-15T18:39:50.000Z
2021-08-24T11:25:06.000Z
import os from os.path import join from collections import OrderedDict templateFile = open('../MaterialDesignIcons/template.xml', 'w') file1 = open('part1.txt', 'r') for line in file1: templateFile.write(line), file1.close() icons_path = "../MaterialDesignIcons/root/material-design-icons" walk = os.listdir(icons...
33.446429
212
0.651895
220
1,873
5.490909
0.354545
0.044702
0.017384
0.027318
0.424669
0.392384
0.392384
0.392384
0.392384
0.392384
0
0.015405
0.202883
1,873
56
213
33.446429
0.793704
0.06834
0
0.5
0
0
0.170396
0.064831
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa4e0e6f81dad29785de7d294d30fe05ba614e2e
1,458
py
Python
editor/migrations/0034_set_contributors.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
51
2015-04-19T23:27:04.000Z
2022-03-25T01:43:43.000Z
editor/migrations/0034_set_contributors.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
428
2015-01-05T10:56:32.000Z
2022-03-29T14:33:23.000Z
editor/migrations/0034_set_contributors.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
71
2015-01-28T20:06:15.000Z
2022-03-25T02:35:40.000Z
# Generated by Django 2.0.5 on 2018-06-26 09:05 from django.db import migrations from itertools import groupby def set_contributors(apps, schema_editor): EditorItem = apps.get_model('editor','EditorItem') Revision = apps.get_model('reversion','Revision') ContentType = apps.get_model('contenttypes','Conte...
35.560976
150
0.693416
177
1,458
5.525424
0.40113
0.035787
0.06135
0.03681
0
0
0
0
0
0
0
0.01598
0.184499
1,458
40
151
36.45
0.80656
0.030864
0
0
1
0
0.128278
0.019844
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa509c199dd61a4e104146461130fc9bf32e449a
1,122
py
Python
sandbox/src1/fits/mkflat.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
5
2016-05-28T14:12:28.000Z
2021-04-22T10:23:12.000Z
sandbox/src1/fits/mkflat.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
null
null
null
sandbox/src1/fits/mkflat.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
2
2015-07-13T10:04:10.000Z
2021-04-22T10:23:23.000Z
import pyfits import sys import numpy #few means shoud be changed to median!! #This is for ALFOSC #Overscan might change if used for another instrument filelist = open(sys.argv[1]).readlines() bias = pyfits.getdata(sys.argv[2]) print "This script makes a flatfield image..." print "\n%i images will be median combine...
28.05
83
0.706774
181
1,122
4.381215
0.486188
0.030265
0.015132
0.045397
0
0
0
0
0
0
0
0.031556
0.180927
1,122
39
84
28.769231
0.831338
0.21836
0
0
0
0
0.299194
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.291667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa547984c4ed838c13e6c32b599c4743f9411ddf
1,533
py
Python
etc/metadataParsers/ngrams/writeNgrams.py
organisciak/HTRC-BookwormDB
bc24080d6443f8da38255e19149431c9e5b182ab
[ "MIT" ]
null
null
null
etc/metadataParsers/ngrams/writeNgrams.py
organisciak/HTRC-BookwormDB
bc24080d6443f8da38255e19149431c9e5b182ab
[ "MIT" ]
null
null
null
etc/metadataParsers/ngrams/writeNgrams.py
organisciak/HTRC-BookwormDB
bc24080d6443f8da38255e19149431c9e5b182ab
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import re filenames = [filename for filename in os.listdir("../../../texts/raw") if not (re.search('zip',filename) or re.search('3gram',filename))] for filename in filenames: towrite = dict() print filename reading = open("../../../texts/raw/" + filename) corpus = re.sub("-2...
33.326087
137
0.507502
174
1,533
4.471264
0.413793
0.041131
0.042416
0.053985
0.043702
0
0
0
0
0
0
0.033589
0.320287
1,533
45
138
34.066667
0.713052
0.010437
0
0.186047
0
0
0.135224
0.031003
0
0
0
0
0
0
null
null
0.023256
0.046512
null
null
0.139535
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa5807ff894b92f86380e2ee7f1662eb7490d2f2
1,009
py
Python
watchdogs/mail/scripts/SMTPScript.py
watchdogoblivion/watchdogs-offsec
66212988a83b97e54caabcf3ec1ea48e76dafedc
[ "MIT" ]
null
null
null
watchdogs/mail/scripts/SMTPScript.py
watchdogoblivion/watchdogs-offsec
66212988a83b97e54caabcf3ec1ea48e76dafedc
[ "MIT" ]
10
2021-08-19T17:48:20.000Z
2021-09-15T03:40:40.000Z
watchdogs/mail/scripts/SMTPScript.py
watchdogoblivion/offsec-python
66212988a83b97e54caabcf3ec1ea48e76dafedc
[ "MIT" ]
null
null
null
# author: WatchDogOblivion # description: TODO # WatchDogs SMTP Script import traceback from watchdogs.base.models import AllArgs, Common from watchdogs.mail.parsers import SMTPArgs from watchdogs.mail.services import SMTPService class SMTPScript(Common): def __init__(self, sMTPService=SMTPService()): #type: ...
28.828571
70
0.721506
104
1,009
6.807692
0.413462
0.127119
0.110169
0.084746
0.155367
0.155367
0.155367
0.155367
0.155367
0
0
0
0.16551
1,009
34
71
29.676471
0.840855
0.154609
0
0.26087
0
0
0
0
0
0
0
0.029412
0
1
0.173913
false
0
0.173913
0.043478
0.434783
0.173913
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
aa5eddefc758767a60db08dd806756648f1a4057
6,582
py
Python
boxes.py
kclemens/epoet
a3c545033a88252087e8b11d8d815391e96de831
[ "MIT" ]
null
null
null
boxes.py
kclemens/epoet
a3c545033a88252087e8b11d8d815391e96de831
[ "MIT" ]
null
null
null
boxes.py
kclemens/epoet
a3c545033a88252087e8b11d8d815391e96de831
[ "MIT" ]
null
null
null
import math import logging import random import json import gzip class Box(object): def __init__(self, min_lon=-180.0, min_lat=-90.0, max_lon=180.0, max_lat=90.0): self.max_lon = max_lon self.max_lat = max_lat self.min_lon = min_lon self.min_lat = min_lat def __repr__(self): ...
40.134146
168
0.603008
941
6,582
3.979809
0.179596
0.050467
0.037383
0.026168
0.241656
0.209613
0.156208
0.142857
0.142857
0.126836
0
0.023873
0.255394
6,582
163
169
40.380368
0.740257
0.093892
0
0.086207
0
0.008621
0.11658
0.008399
0
0
0.00336
0
0.043103
0
null
null
0
0.043103
null
null
0.025862
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa61fc98f4293a5e76229d9e593e97fc15070269
1,897
py
Python
vendor/packages/coverage/coverage/misc.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/coverage/coverage/misc.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/coverage/coverage/misc.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
"""Miscellaneous stuff for Coverage.""" def nice_pair(pair): """Make a nice string representation of a pair of numbers. If the numbers are equal, just return the number, otherwise return the pair with a dash between them, indicating the range. """ start, end = pair if start == end: ...
27.1
79
0.593042
262
1,897
4.251908
0.442748
0.035907
0.019749
0.023339
0.086176
0.043088
0
0
0
0
0
0.029367
0.299947
1,897
69
80
27.492754
0.809488
0.428044
0
0.166667
0
0
0.01641
0
0
0
0
0
0
1
0.111111
false
0.055556
0
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa625ea7e51009b5c81abd81053b17b3717de6d3
1,914
py
Python
Ameya/Stock_Sentiment_Naiive_Bayes/headlines_bayes.py
ameya03dot/News-Scrapping-and-Naiive-Bayes
14474458ce6d6b80523bce50f62001e21daa0ce3
[ "MIT" ]
null
null
null
Ameya/Stock_Sentiment_Naiive_Bayes/headlines_bayes.py
ameya03dot/News-Scrapping-and-Naiive-Bayes
14474458ce6d6b80523bce50f62001e21daa0ce3
[ "MIT" ]
null
null
null
Ameya/Stock_Sentiment_Naiive_Bayes/headlines_bayes.py
ameya03dot/News-Scrapping-and-Naiive-Bayes
14474458ce6d6b80523bce50f62001e21daa0ce3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Headlines_Bayes.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1YzcugeVLWofKlwfN2uC-Mk_EY3jYX_pk """ import pandas as pd import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.na...
29.90625
84
0.747649
256
1,914
5.519531
0.460938
0.046709
0.050955
0.067941
0.093418
0.052371
0.028309
0
0
0
0
0.027316
0.120167
1,914
63
85
30.380952
0.811758
0.140021
0
0
1
0
0.058603
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa6822767f2324d5756036077738eff603e13daf
22,265
py
Python
src/photometricRedshifts.py
sniemi/MLPhotoZ
4a9eb59b92d9734e58a2f0a0e04ce82b96289aba
[ "BSD-2-Clause" ]
1
2016-12-19T11:25:56.000Z
2016-12-19T11:25:56.000Z
src/photometricRedshifts.py
sniemi/MLPhotoZ
4a9eb59b92d9734e58a2f0a0e04ce82b96289aba
[ "BSD-2-Clause" ]
null
null
null
src/photometricRedshifts.py
sniemi/MLPhotoZ
4a9eb59b92d9734e58a2f0a0e04ce82b96289aba
[ "BSD-2-Clause" ]
null
null
null
""" Photometric Redshifts ===================== This scripts shows simple methods to derive photometric redshifts using machine learning. Data can be downloaded from the Kaggle website: https://inclass.kaggle.com/c/PhotometricRedshiftEstimation/data :requires: pandas :requires: numpy :requires: scikit-learn :require...
38.520761
108
0.609342
2,824
22,265
4.641643
0.182365
0.015105
0.010528
0.015944
0.397849
0.3417
0.335978
0.325526
0.31065
0.286695
0
0.020941
0.281518
22,265
577
109
38.587522
0.798462
0.016259
0
0.364146
0
0
0.121974
0.008242
0
0
0
0
0
0
null
null
0
0.07563
null
null
0.128852
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa6b5b5a34f4c82636a5e3376a01845c708b8abf
362
py
Python
tests/isolated/green_ssl_py36_properties.py
li-caspar/eventlet_0.30.2
a431842e29c26e46cfcfff60c93ca92e07663044
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/eventlet-0.24.1/tests/isolated/green_ssl_py36_properties.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/eventlet-0.24.1/tests/isolated/green_ssl_py36_properties.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
__test__ = False if __name__ == '__main__': import eventlet eventlet.monkey_patch() try: eventlet.wrap_ssl( eventlet.listen(('localhost', 0)), certfile='does-not-exist', keyfile='does-not-exist', server_side=True) except IOError as ex: a...
21.294118
46
0.558011
39
362
4.794872
0.820513
0.074866
0.128342
0
0
0
0
0
0
0
0
0.008163
0.323204
362
16
47
22.625
0.755102
0
0
0
0
0
0.135359
0
0
0
0
0
0.076923
1
0
false
0.076923
0.076923
0
0.076923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa6c842a9f5ef228d98c146def4433a33e98c407
2,516
py
Python
src/stock.py
galstyankaren/twitterstockstream
5bd09ecf128b00e434dcb3b969e97431b3a32b5a
[ "MIT" ]
null
null
null
src/stock.py
galstyankaren/twitterstockstream
5bd09ecf128b00e434dcb3b969e97431b3a32b5a
[ "MIT" ]
null
null
null
src/stock.py
galstyankaren/twitterstockstream
5bd09ecf128b00e434dcb3b969e97431b3a32b5a
[ "MIT" ]
null
null
null
from rtstock.stock import Stock from rtstock.utils import request_historical import json import datetime def getStockInfoVerbose(ticker): """Return verbose result of the ticker""" stock = Stock(ticker) # datadump=json.dumps(stock.get_info()) return stock.get_info() """ Verbose content [ { "Ask":...
28.91954
61
0.622019
255
2,516
6.105882
0.592157
0.020552
0.023121
0.021837
0.097624
0.097624
0.097624
0.097624
0.097624
0.097624
0
0.110294
0.189189
2,516
86
62
29.255814
0.652941
0.080684
0
0.125
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.25
0
0.6875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
aa71178c2556752edf33ce0450ada07f0118e418
293
py
Python
gitfx/__main__.py
gitx-io/GitFx
8a17215dcc955da5c557d6d7b67da4c51ad67153
[ "Apache-2.0" ]
3
2021-03-23T05:22:29.000Z
2022-01-26T02:07:27.000Z
gitfx/__main__.py
gitx-io/GitFx
8a17215dcc955da5c557d6d7b67da4c51ad67153
[ "Apache-2.0" ]
1
2021-04-06T08:06:39.000Z
2021-04-06T08:10:38.000Z
gitfx/__main__.py
gitx-io/GitFx
8a17215dcc955da5c557d6d7b67da4c51ad67153
[ "Apache-2.0" ]
1
2021-08-11T17:20:54.000Z
2021-08-11T17:20:54.000Z
import os import sys from gitfx import run_funcs if __name__ == "__main__": # func_path is a path where the functions locate if len(sys.argv) > 1: run_funcs.run(*sys.argv[1:], './.gitfx') else: func_path = os.getcwd() run_funcs.run(func_path, './.gitfx')
22.538462
52
0.624573
44
293
3.840909
0.522727
0.142012
0.094675
0
0
0
0
0
0
0
0
0.009009
0.242321
293
12
53
24.416667
0.752252
0.156997
0
0
0
0
0.097959
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aa747f2911037ce5d51e0f026d24cf4d3ecf591d
13,787
py
Python
scilifelab/pm/core/controller.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
1
2016-03-21T14:04:09.000Z
2016-03-21T14:04:09.000Z
scilifelab/pm/core/controller.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
35
2015-01-22T08:25:02.000Z
2020-02-17T12:09:12.000Z
scilifelab/pm/core/controller.py
ssjunnebo/scilifelab
79960f7042118f900bd1eaabe4902ee76abd8020
[ "MIT" ]
6
2015-01-16T15:32:08.000Z
2020-01-30T14:34:40.000Z
"""Pm Controller Module""" import os import sys import re import pprint from cement.core import interface, handler, controller, backend from scilifelab.pm.lib.help import PmHelpFormatter from scilifelab.utils.misc import filtered_output, query_yes_no, filtered_walk class AbstractBaseController(controller.CementBaseC...
44.047923
265
0.618191
1,738
13,787
4.754315
0.182969
0.059058
0.036306
0.036306
0.329904
0.313082
0.26891
0.238412
0.210093
0.14099
0
0.00239
0.241387
13,787
312
266
44.189103
0.787647
0.021977
0
0.226891
0
0.004202
0.221191
0.003979
0
0
0
0
0.004202
0
null
null
0.008403
0.029412
null
null
0.033613
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa7970bc2aaa8699a00e189969e7d0ae96ab3da2
3,964
py
Python
pvinflux/pvinflux.py
cszielke/SolarPy
7a0575c98033c42c391783428adad1f9782943e6
[ "MIT" ]
null
null
null
pvinflux/pvinflux.py
cszielke/SolarPy
7a0575c98033c42c391783428adad1f9782943e6
[ "MIT" ]
null
null
null
pvinflux/pvinflux.py
cszielke/SolarPy
7a0575c98033c42c391783428adad1f9782943e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pv.data import PVData from pvbasemodul import PVBaseModul from influxdb import InfluxDBClient import datetime import pytz class PVInflux(PVBaseModul): local = pytz.timezone("Europe/Berlin") pvdata = PVData() client = None enabled = False host = '127.0.0.1...
47.759036
125
0.599899
403
3,964
5.858561
0.30273
0.072003
0.101652
0.100805
0.182973
0
0
0
0
0
0
0.014354
0.261857
3,964
82
126
48.341463
0.79255
0.009586
0
0
0
0
0.150963
0
0
0
0
0
0
1
0.070423
false
0.056338
0.070423
0
0.295775
0.070423
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa7aaaa0efe98e2d1c549fedca9e44e9b131d00c
2,942
py
Python
exp/comm/comm_model_utils.py
PeterouZh/CIPS-3D
9b8bfa0fb23f642af042e150ccd70408f9d137c6
[ "MIT" ]
308
2021-10-19T17:29:14.000Z
2022-03-31T11:54:45.000Z
exp/comm/comm_model_utils.py
PeterouZh/CIPS-3D
9b8bfa0fb23f642af042e150ccd70408f9d137c6
[ "MIT" ]
28
2021-10-31T22:49:00.000Z
2022-03-25T05:49:47.000Z
exp/comm/comm_model_utils.py
PeterouZh/CIPS-3D
9b8bfa0fb23f642af042e150ccd70408f9d137c6
[ "MIT" ]
44
2021-10-21T10:08:23.000Z
2022-03-16T10:05:08.000Z
import logging import random import numpy as np import math import torch import torch.nn as nn class PosEmbedding(nn.Module): def __init__(self, max_logscale, N_freqs, logscale=True, multi_pi=False,): """ Defines a function that embeds x to (x, si...
24.114754
84
0.612169
415
2,942
4.178313
0.301205
0.051903
0.044406
0.039216
0.086505
0.056517
0.033449
0
0
0
0
0.01138
0.283141
2,942
121
85
24.31405
0.810811
0.266485
0
0.15625
0
0
0.032689
0
0
0
0
0
0
1
0.09375
false
0.0625
0.09375
0
0.265625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa7dc0ae74564763293f09220ab64d235cf9c231
826
py
Python
restapi/use_tweets/tf.py
hp2414/Sapphirine-find_people_like_you
3328bc3ca2fdf8922bf94424254cc29fc33859ef
[ "Apache-2.0" ]
null
null
null
restapi/use_tweets/tf.py
hp2414/Sapphirine-find_people_like_you
3328bc3ca2fdf8922bf94424254cc29fc33859ef
[ "Apache-2.0" ]
null
null
null
restapi/use_tweets/tf.py
hp2414/Sapphirine-find_people_like_you
3328bc3ca2fdf8922bf94424254cc29fc33859ef
[ "Apache-2.0" ]
null
null
null
from pyspark.mllib.feature import HashingTF, IDF from pyspark import SparkConf, SparkContext from pyspark.mllib.clustering import KMeans, KMeansModel from numpy import array from math import sqrt conf = SparkConf().setAppName("tfidf").setMaster("local") sc = SparkContext(conf = conf) rdd = sc.wholeTextFiles("DIR").m...
26.645161
100
0.772397
97
826
6.57732
0.57732
0.051724
0.050157
0
0
0
0
0
0
0
0
0.01084
0.106538
826
30
101
27.533333
0.853659
0
0
0
0
0
0.047503
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa82757e9291a456a2194c8cb55897d30f772e42
369
py
Python
aula5_tuplas_conversao_lista_tupla.py
clovisdanielcosta/python-dio
764eaac06320c0531c3038e301eb4c002fe8afce
[ "MIT" ]
null
null
null
aula5_tuplas_conversao_lista_tupla.py
clovisdanielcosta/python-dio
764eaac06320c0531c3038e301eb4c002fe8afce
[ "MIT" ]
null
null
null
aula5_tuplas_conversao_lista_tupla.py
clovisdanielcosta/python-dio
764eaac06320c0531c3038e301eb4c002fe8afce
[ "MIT" ]
null
null
null
lista = [1, 13, 15, 7] lista_animal = ['cachorro', 'gato', 'elefante', 'arara'] # Convertendo lista em tupla tupla_animal = tuple(lista_animal) print(lista_animal) print(tupla_animal) # Convertendo tupla em lista tupla = (1, 13, 15, 7) lista_numerica = list(tupla) print(tupla) print(lista_numerica) # Daí dá para alt...
21.705882
56
0.737127
55
369
4.781818
0.418182
0.197719
0.038023
0.045627
0.08365
0
0
0
0
0
0
0.046875
0.132791
369
17
57
21.705882
0.775
0.197832
0
0.181818
0
0
0.085324
0
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
aa88f74b1620e074c764f25dd7c129d6d4c8fa75
7,637
py
Python
scripts/view/view_image.py
fdesjardins/surface-estimation-and-image-relighting
fb5aa44612076f7ee59da891edc61268eb4c05ad
[ "MIT" ]
9
2017-06-14T09:58:27.000Z
2020-12-18T03:22:06.000Z
scripts/view/view_image.py
fdesjardins/svm-surface-estimation-and-relighting
fb5aa44612076f7ee59da891edc61268eb4c05ad
[ "MIT" ]
null
null
null
scripts/view/view_image.py
fdesjardins/svm-surface-estimation-and-relighting
fb5aa44612076f7ee59da891edc61268eb4c05ad
[ "MIT" ]
2
2020-01-19T01:06:59.000Z
2021-08-08T10:32:34.000Z
import os import sys import numpy as np from OpenGL.arrays import vbo from OpenGL.arrays import ArrayDatatype as ADT from OpenGL.GL.ARB.vertex_buffer_object import * from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * from scipy.spatial import Delaunay from Image import open def initFunc(): ...
28.818868
81
0.618306
1,025
7,637
4.449756
0.19122
0.027626
0.019733
0.015786
0.586056
0.557772
0.545056
0.538698
0.512826
0.512826
0
0.050868
0.253503
7,637
265
82
28.818868
0.749167
0.148619
0
0.378947
0
0
0.004946
0
0
0
0
0
0
0
null
null
0
0.057895
null
null
0.005263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa9860dba8167325f68a44155d34bf717d10bda1
1,306
py
Python
backend/tests/elections/conftest.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
2
2020-02-28T16:24:55.000Z
2020-03-27T17:12:50.000Z
backend/tests/elections/conftest.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
51
2020-02-12T20:52:08.000Z
2022-02-27T00:23:20.000Z
backend/tests/elections/conftest.py
heidal/apollo
576743e12048985ae8ef127224e1cb8ac49acd28
[ "MIT" ]
null
null
null
from typing import TypedDict from pytest import fixture from apollo.elections import models as el_models from apollo.elections.models import Answer from apollo.users.models import User @fixture def decrypt_mock(mocker, answer: Answer): mock = mocker.patch("apollo.elections.crypto.decrypt") mock.return_value ...
27.208333
85
0.728178
155
1,306
5.916129
0.322581
0.034896
0.065431
0.047983
0.095965
0.095965
0
0
0
0
0
0
0.189893
1,306
47
86
27.787234
0.86673
0.014548
0
0.117647
0
0
0.080934
0.024125
0
0
0
0.021277
0
1
0.147059
false
0
0.147059
0.058824
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
aa9de4e87e332ef5b78edff723e053c02ca08108
569
py
Python
src/musictag/util.py
lmdslyngl/lmdsmusic
376849d278374ffee0caf56073001cd2ba8ae463
[ "MIT" ]
null
null
null
src/musictag/util.py
lmdslyngl/lmdsmusic
376849d278374ffee0caf56073001cd2ba8ae463
[ "MIT" ]
3
2021-06-08T21:20:20.000Z
2022-03-12T00:24:37.000Z
src/musictag/util.py
lmdslyngl/lmdsmusic
376849d278374ffee0caf56073001cd2ba8ae463
[ "MIT" ]
null
null
null
class TagLoaderException(Exception): pass def str2int(s: str, default=0) -> int: try: return int(s) except ValueError: return default def get_or_default(d, k, default=""): if k in d: return d[k] else: return default def bytes2str(buffer: bytes) -> [str, bytes]:...
18.354839
45
0.571178
67
569
4.820896
0.537313
0.055728
0.099071
0
0
0
0
0
0
0
0
0.018041
0.318102
569
30
46
18.966667
0.814433
0.024605
0
0.285714
0
0
0.025362
0
0
0
0
0
0
1
0.142857
false
0.095238
0
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
aa9f63a85ccd02c3bbba5d320d68f0015625ab78
250
py
Python
resize_lfw.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
resize_lfw.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
resize_lfw.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
from src.resize_for_train import getTrainImg DATA_SET = "datasets/lfw_trans" OUT_DIR = "datasets/lfw_resize_for_train_128" MARGIN_FILE = "datasets/lfw_resize_margin_128.txt" IMAGE_SIZE = 128 getTrainImg(DATA_SET, IMAGE_SIZE, OUT_DIR, MARGIN_FILE)
27.777778
56
0.828
40
250
4.725
0.5
0.174603
0.148148
0
0
0
0
0
0
0
0
0.039648
0.092
250
9
56
27.777778
0.792952
0
0
0
0
0
0.338645
0.266932
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aaa3f004f691ccdeb2f313fd3133c491e011ea75
1,652
py
Python
tests/tests_notion_client.py
sodrooome/notion-sdk
c42efd4040b2afafc37ae6c973ad8b93713a9112
[ "MIT" ]
1
2022-01-20T11:41:41.000Z
2022-01-20T11:41:41.000Z
tests/tests_notion_client.py
sodrooome/notion-sdk
c42efd4040b2afafc37ae6c973ad8b93713a9112
[ "MIT" ]
null
null
null
tests/tests_notion_client.py
sodrooome/notion-sdk
c42efd4040b2afafc37ae6c973ad8b93713a9112
[ "MIT" ]
null
null
null
import requests from notion.clients import NotionAPI from notion.adapters import adapter # this secret key only for mock testing # should not be concern about that secret = "secret_vRRyjBas5iKPicOw2tO0d1baCUObmRLo7Oe7B1aRZA2" version = "2021-05-13" def test_adapter(): headers = { "Authorization": f"Bear...
24.656716
69
0.724576
217
1,652
5.345622
0.262673
0.05431
0.093103
0.147414
0.675
0.675
0.675
0.635345
0.349138
0
0
0.015766
0.193705
1,652
66
70
25.030303
0.855105
0.042373
0
0.386364
0
0
0.08993
0.031666
0
0
0
0
0.204545
1
0.204545
false
0
0.068182
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
aaaf294db29365a5a368246d48be44208b95af50
1,193
py
Python
commands.py
CODER591/SmartChainBot
6d9baba5122560e73c0f614ec3afa394c27ffa28
[ "MIT" ]
null
null
null
commands.py
CODER591/SmartChainBot
6d9baba5122560e73c0f614ec3afa394c27ffa28
[ "MIT" ]
null
null
null
commands.py
CODER591/SmartChainBot
6d9baba5122560e73c0f614ec3afa394c27ffa28
[ "MIT" ]
null
null
null
from telegram.ext import * from cached_text import * # Type: Command # Name: /start # # Arguments: doc_default # # Functional:
 # Providing basic tutorial for user # # Return value: None # def start(update, context): context.bot.send_message(chat_id=update.effective_chat.id, text=st...
19.241935
83
0.64627
142
1,193
5.316901
0.366197
0.047682
0.07947
0.115232
0.554967
0.504636
0.504636
0.504636
0.504636
0.504636
0
0
0.248952
1,193
61
84
19.557377
0.842634
0.478625
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
aab532a0398d4af2bb358e850508a901e014889c
1,166
py
Python
examples/dates/gen_dates.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
6
2015-04-22T15:17:51.000Z
2019-03-01T16:26:35.000Z
examples/dates/gen_dates.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
174
2015-02-18T13:32:39.000Z
2019-06-26T18:56:18.000Z
examples/dates/gen_dates.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
11
2015-04-22T15:17:59.000Z
2019-06-24T10:49:40.000Z
#!/usr/bin/env/python """ gen_dates.py -- generate dates for inclusion in VIVO """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2016 (c) Michael Conlon" __license__ = "New BSD License" __version__ = "0.01" from datetime import datetime from dateutil.relativedelta import relativedelta out_file = open...
25.347826
56
0.69554
167
1,166
4.562874
0.383234
0.115486
0.062992
0.110236
0.412073
0.412073
0.32021
0.32021
0.32021
0.32021
0
0.04128
0.168954
1,166
45
57
25.911111
0.745098
0.118353
0
0.307692
1
0
0.127345
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aab5aa24a847ec42ce8ae7235d2646ee49fe8cfa
5,706
py
Python
Utils/py/PathPlanner/LPG.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/LPG.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/LPG.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from __future__ import division import sys import math import numpy as np from matplotlib import pyplot as plt from matplotlib.patches import Circle import matplotlib as mpl import Queue as Q import copy import time base = 1.1789 minimal_cell = 100 angular_part = 16 parameter_s = 0.5 robot_radius = 0 ...
33.174419
170
0.578339
905
5,706
3.478453
0.177901
0.035578
0.02859
0.016518
0.154384
0.091487
0.081957
0.067662
0.067662
0.067662
0
0.038405
0.279005
5,706
171
171
33.368421
0.726787
0.063442
0
0.031746
0
0
0.005068
0
0
0
0
0
0
0
null
null
0
0.079365
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aab7745706fa8992de04a0191ad6f20ca7746628
1,540
py
Python
Visualization/overlapped_classes.py
aliborji/ShapeDefence
92da19bb195b5161d997f6ee1cc777b07a714f6f
[ "MIT" ]
null
null
null
Visualization/overlapped_classes.py
aliborji/ShapeDefence
92da19bb195b5161d997f6ee1cc777b07a714f6f
[ "MIT" ]
1
2022-03-12T00:40:21.000Z
2022-03-12T00:40:21.000Z
Visualization/overlapped_classes.py
aliborji/ShapeDefense
92da19bb195b5161d997f6ee1cc777b07a714f6f
[ "MIT" ]
null
null
null
overlapped_classes = ["Alarm clock", "Backpack", "Banana", "Band Aid", "Basket", "Bath towel", "Beer bottle", "Bench", "Bicycle", "Binder (closed)", "Bottle cap", "Bread loaf", "Broom", "Bucket", "Butcher's knife", "Can opener", "Candle", "Cellphone", "Chair", "Clothes hamper", "Combination lock", "Computer mouse", "De...
13.628319
36
0.635714
177
1,540
5.525424
0.903955
0
0
0
0
0
0
0
0
0
0
0
0.132468
1,540
113
37
13.628319
0.732036
0
0
0
0
0
0.67294
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aab913b3071a59962dd3666fb9e7dd3afa7d4e35
547
py
Python
apps/youtsong_model.py
stephenjaggai/musicmatch
a4fb5c62d393e002b51da5608ae20c61f3467bd9
[ "MIT" ]
null
null
null
apps/youtsong_model.py
stephenjaggai/musicmatch
a4fb5c62d393e002b51da5608ae20c61f3467bd9
[ "MIT" ]
null
null
null
apps/youtsong_model.py
stephenjaggai/musicmatch
a4fb5c62d393e002b51da5608ae20c61f3467bd9
[ "MIT" ]
1
2022-01-24T03:21:46.000Z
2022-01-24T03:21:46.000Z
import sqlite3 import json from unittest import result from colorama import Cursor #from django.db import connection #define connection and cursor connection = sqlite3.connect('songs.db') Cursor = connection.cursor() #creating song table for spotify songs command2 = """CREATE TABLE IF NOT EXISTS youtube(name TEX...
16.088235
56
0.76234
71
547
5.873239
0.577465
0.093525
0
0
0
0
0
0
0
0
0
0.008511
0.140768
547
33
57
16.575758
0.878723
0.323583
0
0
0
0
0.203297
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aabd39f06260f126b05d0ad9a9806d337b5c62ab
196
py
Python
atari/common/pad_dim.py
neevparikh/lwm
ec8d27f6c011a732aa58ae04cba66a5bac68f8f8
[ "MIT" ]
17
2020-10-07T08:15:46.000Z
2022-01-10T02:47:53.000Z
atari/common/pad_dim.py
neevparikh/lwm
ec8d27f6c011a732aa58ae04cba66a5bac68f8f8
[ "MIT" ]
null
null
null
atari/common/pad_dim.py
neevparikh/lwm
ec8d27f6c011a732aa58ae04cba66a5bac68f8f8
[ "MIT" ]
2
2021-02-19T17:47:17.000Z
2021-03-07T16:41:54.000Z
import torch.nn.functional as F def pad_dim(x, dim, size=1, value=0, left=False): p = [0] * len(x.shape) * 2 p[-(dim + 1) * 2 + int(not left)] = size return F.pad(x, p, value=value)
24.5
49
0.581633
38
196
2.973684
0.605263
0
0
0
0
0
0
0
0
0
0
0.039735
0.229592
196
7
50
28
0.708609
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aac0062130d1b6529cbd44c75cc0e3c275976c91
333
py
Python
ai_pics/migrations/0003_aipics_is_valid.py
rodkiewicz/pola-backend
e26df1cea07b43c8b4272739234b7e78e2ce08c9
[ "BSD-3-Clause" ]
30
2015-08-13T01:05:36.000Z
2022-01-22T03:02:50.000Z
ai_pics/migrations/0003_aipics_is_valid.py
rodkiewicz/pola-backend
e26df1cea07b43c8b4272739234b7e78e2ce08c9
[ "BSD-3-Clause" ]
1,428
2015-10-08T07:38:26.000Z
2022-03-31T08:36:08.000Z
ai_pics/migrations/0003_aipics_is_valid.py
rodkiewicz/pola-backend
e26df1cea07b43c8b4272739234b7e78e2ce08c9
[ "BSD-3-Clause" ]
13
2015-12-27T22:35:25.000Z
2022-02-01T15:55:58.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ai_pics', '0002_aiattachment_file_no'), ] operations = [ migrations.AddField( model_name='aipics', name='is_valid', field=models.NullBooleanField(), ...
19.588235
49
0.582583
29
333
6.482759
0.827586
0
0
0
0
0
0
0
0
0
0
0.017316
0.306306
333
16
50
20.8125
0.796537
0
0
0
0
0
0.138138
0.075075
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aac85ca99f59308ff0bfb492a6eb2e92c4561380
916
py
Python
polling_stations/apps/data_importers/management/commands/import_rugby.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/data_importers/management/commands/import_rugby.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/data_importers/management/commands/import_rugby.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "RUG" addresses_name = "2021-03-25T13:16:40.725865/Democracy_Club__06May2021.tsv" stations_name = "2021-03-25T13:16:40.725865/Democracy_Club__06May2021.tsv" ...
30.533333
81
0.616812
99
916
5.525253
0.69697
0.02925
0.036563
0.054845
0.182815
0.182815
0.182815
0.182815
0.182815
0.182815
0
0.153263
0.280568
916
29
82
31.586207
0.676783
0.082969
0
0.173913
0
0
0.227001
0.133811
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
aad022dbbb4b9166c10fd4144381b548f991d08d
4,958
py
Python
carbonserver/carbonserver/api/infra/database/sql_models.py
connor-mccarthy/codecarbon
ef25ad1fd80751859fa5965a25a3114e19343012
[ "MIT" ]
null
null
null
carbonserver/carbonserver/api/infra/database/sql_models.py
connor-mccarthy/codecarbon
ef25ad1fd80751859fa5965a25a3114e19343012
[ "MIT" ]
null
null
null
carbonserver/carbonserver/api/infra/database/sql_models.py
connor-mccarthy/codecarbon
ef25ad1fd80751859fa5965a25a3114e19343012
[ "MIT" ]
null
null
null
import uuid from sqlalchemy import Boolean, Column, DateTime, Float, ForeignKey, String from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import relationship from sqlalchemy.types import ARRAY from carbonserver.database.database import Base class Emission(Base): __tablename__ = "emissions" ...
33.958904
85
0.631101
566
4,958
5.316254
0.130742
0.075773
0.047856
0.055833
0.460618
0.418744
0.389831
0.336657
0.271186
0.257561
0
0.002334
0.222267
4,958
145
86
34.193103
0.778008
0
0
0.385246
0
0
0.221057
0.142396
0
0
0
0
0
1
0.057377
false
0.008197
0.04918
0.057377
0.696721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
aad9456ddb43c9a1dac059bc77b2a79691dd6aeb
592
py
Python
example_contests/fk_2014_beta/problems/saldureratosthenesar/data/secret/gen.py
ForritunarkeppniFramhaldsskolanna/epsilon
a31260ad33aba3d1846cda585840d7e7d2f2349c
[ "MIT" ]
6
2016-03-28T13:57:54.000Z
2017-07-25T06:04:05.000Z
example_contests/fk_2014_beta/problems/saldureratosthenesar/data/secret/gen.py
ForritunarkeppniFramhaldsskolanna/epsilon
a31260ad33aba3d1846cda585840d7e7d2f2349c
[ "MIT" ]
25
2015-01-23T18:02:35.000Z
2015-03-17T01:40:27.000Z
example_contests/fk_2014_beta/problems/saldureratosthenesar/data/secret/gen.py
ForritunarkeppniFramhaldsskolanna/epsilon
a31260ad33aba3d1846cda585840d7e7d2f2349c
[ "MIT" ]
3
2016-06-28T00:48:38.000Z
2017-05-25T05:29:25.000Z
ts = [ # example tests 14, 16, 23, # small numbers 5, 4, 3, 2, 1, # random bit bigger numbers 10, 20, 31, 32, 33, 46, # perfect squares 25, 36, 49, # random incrementally larger numbers 73, 89, 106, 132, 182, 258, 299,...
10.206897
40
0.445946
79
592
3.341772
0.848101
0
0
0
0
0
0
0
0
0
0
0.265672
0.434122
592
57
41
10.385965
0.522388
0.251689
0
0
0
0
0.030023
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aadaf7e4017371829cf275067270162e883f410d
801
py
Python
footballseason/migrations/0005_auto_20180918_1636.py
mkokotovich/footballpicks
9c158ed165adb040215b770a38d51a6d42a6600f
[ "MIT" ]
null
null
null
footballseason/migrations/0005_auto_20180918_1636.py
mkokotovich/footballpicks
9c158ed165adb040215b770a38d51a6d42a6600f
[ "MIT" ]
28
2015-09-15T21:04:14.000Z
2022-02-18T03:22:38.000Z
footballseason/migrations/0005_auto_20180918_1636.py
mkokotovich/footballpicks
9c158ed165adb040215b770a38d51a6d42a6600f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-09-18 21:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('footballseason', '0004_g...
29.666667
129
0.654182
89
801
5.741573
0.58427
0.046967
0.054795
0.086106
0.144814
0.144814
0
0
0
0
0
0.031046
0.235955
801
26
130
30.807692
0.803922
0.05618
0
0.3
1
0
0.136605
0
0
0
0
0
0
1
0
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aadb44f602295a1308d7b815528409b09b4c9c8a
1,080
py
Python
saleor/account/migrations/0009_auto_20170206_0407.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/account/migrations/0009_auto_20170206_0407.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/account/migrations/0009_auto_20170206_0407.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-06 10:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("account", "0008_auto_20161115_1011")] replaces = [("userprofile", "0009_auto_20170206_0407")] ...
30
87
0.591667
103
1,080
5.990291
0.563107
0.106969
0.100486
0.094003
0.119935
0.119935
0
0
0
0
0
0.066667
0.277778
1,080
35
88
30.857143
0.724359
0.062963
0
0.407407
1
0
0.2111
0.04559
0
0
0
0
0
1
0
false
0
0.074074
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a9c08fd96aa471b16d38a1c7de59810b3b51d0a
2,264
py
Python
msl/examples/equipment/database.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
msl/examples/equipment/database.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
msl/examples/equipment/database.py
SwiftyMorgan/msl-equipment
56bc467e97a2a0a60aa6f031dd30bf1d98ebda5c
[ "MIT" ]
null
null
null
""" Example showing how to interact with equipment and connection databases. """ # this "if" statement is used so that Sphinx does not execute this script when the docs are being built if __name__ == '__main__': from msl.equipment import Config from msl.examples.equipment import EXAMPLES_DIR # load the da...
39.719298
107
0.683304
309
2,264
4.957929
0.378641
0.063969
0.074413
0.03329
0.073107
0
0
0
0
0
0
0.007852
0.212456
2,264
56
108
40.428571
0.851374
0.329064
0
0.142857
0
0
0.288474
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.628571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2a9cf2b5e9c5ac244acb650ec61ce6cf212ce1f9
420
py
Python
website/migrations/0058_exam_miniround_time.py
pshen24/cmimc-online
7d2435e506381fa19f3512635eb615f7a02e5f03
[ "MIT" ]
null
null
null
website/migrations/0058_exam_miniround_time.py
pshen24/cmimc-online
7d2435e506381fa19f3512635eb615f7a02e5f03
[ "MIT" ]
null
null
null
website/migrations/0058_exam_miniround_time.py
pshen24/cmimc-online
7d2435e506381fa19f3512635eb615f7a02e5f03
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-23 06:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0057_auto_20210122_2049'), ] operations = [ migrations.AddField( model_name='exam', name='m...
22.105263
63
0.580952
44
420
5.431818
0.840909
0
0
0
0
0
0
0
0
0
0
0.106897
0.309524
420
18
64
23.333333
0.717241
0.107143
0
0
1
0
0.135211
0.064789
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2a9d16f0b0bfd0f3cc9dc49d1e546e28de8f5e3c
2,492
py
Python
dreamdns/dreamdns.py
alistairking/dreamdns
cd739abc5e8e85e36737e08665448fcf44b28262
[ "MIT" ]
null
null
null
dreamdns/dreamdns.py
alistairking/dreamdns
cd739abc5e8e85e36737e08665448fcf44b28262
[ "MIT" ]
null
null
null
dreamdns/dreamdns.py
alistairking/dreamdns
cd739abc5e8e85e36737e08665448fcf44b28262
[ "MIT" ]
null
null
null
import argparse import json import logging import os from urllib.request import urlopen from urllib.parse import urlencode DREAMHOST_API_KEY = os.environ["DREAMHOST_API_KEY"] def cfg_logger(level="info"): level = level.upper() # logging expects DEBUG, INFO, etc logging.basicConfig( level=level, ...
26.231579
81
0.646469
344
2,492
4.473837
0.296512
0.025991
0.031189
0.02859
0.054581
0.054581
0.054581
0.054581
0.054581
0.054581
0
0
0.225522
2,492
94
82
26.510638
0.797409
0.014848
0
0.027778
0
0
0.202284
0.010604
0
0
0
0.010638
0
1
0.111111
false
0
0.083333
0
0.236111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2a9f45263d90d802badbbcdbe6d5d6dac14b75a5
2,405
py
Python
examples/pymt_heatpy_ex.py
mdpiper/pymt_heatpy
0eb1ad6902aca21e5dcf0f9e0fb1b480dca250f5
[ "MIT" ]
null
null
null
examples/pymt_heatpy_ex.py
mdpiper/pymt_heatpy
0eb1ad6902aca21e5dcf0f9e0fb1b480dca250f5
[ "MIT" ]
1
2021-08-31T20:02:47.000Z
2021-09-08T22:40:38.000Z
examples/pymt_heatpy_ex.py
mdpiper/pymt_heatpy
0eb1ad6902aca21e5dcf0f9e0fb1b480dca250f5
[ "MIT" ]
null
null
null
"""Run the heatpy model in pymt.""" import numpy as np from pymt.models import HeatModelPy np.set_printoptions(formatter={"float": "{: 6.2f}".format}) # Instantiate the component and get its name. m = HeatModelPy() print(m.name) # Call setup, then initialize the model. args = m.setup(".") m.initialize(*args) # Get...
29.329268
59
0.70395
397
2,405
4.110831
0.231738
0.068627
0.051471
0.042892
0.310049
0.234681
0.210784
0.178922
0.178922
0.146446
0
0.004699
0.115177
2,405
81
60
29.691358
0.762218
0.158004
0
0.232143
0
0
0.238925
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.696429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2aa1048bfcd2e8f21cd67a10dab71a5111c49e58
4,815
py
Python
scripts/extract_syscalls.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
scripts/extract_syscalls.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
scripts/extract_syscalls.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Generate syscall tables from the Linux source. Used to generate manticore/platforms/linux_syscalls.py. This fetches the tables from kernel.org. Usage: ./extract_syscalls.py [--linux_version linux_version] linux_syscalls.py """ import argparse import os import re import subprocess im...
31.887417
98
0.606854
625
4,815
4.4672
0.3168
0.019699
0.030086
0.022923
0.18553
0.098854
0.083811
0.059456
0.059456
0.035817
0
0.01378
0.261475
4,815
150
99
32.1
0.771372
0.110073
0
0.133333
1
0.009524
0.218735
0.064403
0
0
0.001639
0
0
1
0.019048
false
0
0.066667
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2aa5ad12309a76a3eb10277e4f2eb0bfdf2f1594
881
py
Python
django_app/app/tests/uuid.py
kiryanenko/django-tarantool
9448e2acceedd3b99bcb3fc3ef3c13b5db3f29e8
[ "MIT" ]
15
2020-06-26T16:27:50.000Z
2021-11-04T11:45:42.000Z
django_app/app/tests/uuid.py
kiryanenko/django-tarantool
9448e2acceedd3b99bcb3fc3ef3c13b5db3f29e8
[ "MIT" ]
1
2021-01-15T13:05:34.000Z
2021-01-16T22:37:18.000Z
django_app/app/tests/uuid.py
kiryanenko/django-tarantool
9448e2acceedd3b99bcb3fc3ef3c13b5db3f29e8
[ "MIT" ]
1
2020-12-21T12:57:53.000Z
2020-12-21T12:57:53.000Z
import uuid from django.core.exceptions import ValidationError from django.test import TestCase from app.models import Uuid class UuidTests(TestCase): @classmethod def setUpTestData(cls): cls.uuid_value = uuid.uuid4() Uuid.objects.create(uuid=cls.uuid_value) def test_uuid(self): ...
29.366667
65
0.711691
121
881
4.975207
0.264463
0.119601
0.119601
0.106312
0.495017
0.461794
0.461794
0.312292
0.312292
0.312292
0
0.001401
0.189557
881
29
66
30.37931
0.841737
0
0
0.142857
0
0
0.021566
0
0
0
0
0
0.190476
1
0.238095
false
0
0.190476
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2aa78da27e46c0d4dd9d49487335b0fe32957b8b
4,721
py
Python
reporting-plugins/register-ivac-lvl/script.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
2
2018-04-20T15:48:02.000Z
2021-11-30T17:39:28.000Z
reporting-plugins/register-ivac-lvl/script.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
41
2017-07-19T11:17:26.000Z
2021-09-28T12:10:49.000Z
reporting-plugins/register-ivac-lvl/script.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
2
2017-04-27T10:32:33.000Z
2018-02-20T09:26:12.000Z
## # ingestion service script to register multiple levels of an ivac patient # (entity level, biological sample level, test sample level, NGS sample level) ## def process(tr, parameters, tableBuilder): """Create different levels for ivac patient, entity level to NGS sequencing level """ level = parameters.get("...
45.834951
96
0.744969
442
4,721
7.809955
0.276018
0.105446
0.034762
0.043453
0.137312
0.068366
0
0
0
0
0
0.003215
0.143614
4,721
102
97
46.284314
0.850606
0.031349
0
0.038462
0
0
0.18263
0.009824
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2aa8a6b259f0b00abc9a8180e1b2168cc65e29f9
584
py
Python
test/examples/test_pysc2.py
osu-xai/abp
cd83eaa2810a1c5350c849303d61639576c0bb0d
[ "MIT" ]
null
null
null
test/examples/test_pysc2.py
osu-xai/abp
cd83eaa2810a1c5350c849303d61639576c0bb0d
[ "MIT" ]
9
2018-11-14T23:35:05.000Z
2019-05-22T18:31:30.000Z
test/examples/test_pysc2.py
osu-xai/abp
cd83eaa2810a1c5350c849303d61639576c0bb0d
[ "MIT" ]
1
2018-11-14T22:34:09.000Z
2018-11-14T22:34:09.000Z
import sys import unittest class PySC2Tests(unittest.TestCase): def test_pysc2_shards_dqn(self): sys.argv = ['', '--task', 'abp.examples.pysc2.collect_shards.dqn', '--folder', 'test/tasks/pysc2_collect_shards_dqn'] from abp.trainer.task_runner import main mai...
32.444444
66
0.606164
68
584
4.970588
0.352941
0.142012
0.213018
0.106509
0.680473
0.680473
0.485207
0.485207
0.260355
0
0
0.016355
0.267123
584
17
67
34.352941
0.773364
0
0
0.4
0
0
0.294521
0.246575
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.466667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ab1766ec6a8f2cc06a23b99393979d5ea824a69
10,872
py
Python
blockedarray/lazyflow_cpp/testOpArrayCacheCpp.py
thorbenk/blockedarray
4ab3b8f8407ab8b3776942b9cd5497efdb3fb2d4
[ "MIT" ]
7
2015-05-11T05:34:34.000Z
2019-03-11T13:31:10.000Z
blockedarray/lazyflow_cpp/testOpArrayCacheCpp.py
thorbenk/blockedarray
4ab3b8f8407ab8b3776942b9cd5497efdb3fb2d4
[ "MIT" ]
null
null
null
blockedarray/lazyflow_cpp/testOpArrayCacheCpp.py
thorbenk/blockedarray
4ab3b8f8407ab8b3776942b9cd5497efdb3fb2d4
[ "MIT" ]
null
null
null
import threading import numpy import vigra from lazyflow.graph import Graph from lazyflow.roi import sliceToRoi, roiToSlice from lazyflow.operators import OpArrayPiper from lazyflow.operators.opArrayCacheCpp import OpArrayCacheCpp class KeyMaker(): def __getitem__(self, *args): return list(*args) make_key ...
34.405063
121
0.621137
1,206
10,872
5.565506
0.210614
0.04261
0.056317
0.095948
0.52503
0.51758
0.510131
0.492253
0.478546
0.467521
0
0.027481
0.277042
10,872
315
122
34.514286
0.826463
0.24071
0
0.578231
0
0
0.014988
0.003608
0
0
0
0.003175
0.176871
0
null
null
0
0.061224
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2ab440cee4105857f17f95ded6a448454e4d4742
384
py
Python
test/mitmproxy/test_web_master.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
1
2018-03-31T17:16:07.000Z
2018-03-31T17:16:07.000Z
test/mitmproxy/test_web_master.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
null
null
null
test/mitmproxy/test_web_master.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
4
2018-04-18T13:17:01.000Z
2021-02-21T17:08:33.000Z
from mitmproxy.web import master from . import mastertest class TestWebMaster(mastertest.MasterTest): def mkmaster(self, **options): o = master.Options(**options) return master.WebMaster(None, o) def test_basic(self): m = self.mkmaster() for i in (1, 2, 3): self.du...
25.6
43
0.606771
50
384
4.62
0.64
0
0
0
0
0
0
0
0
0
0
0.014286
0.270833
384
14
44
27.428571
0.810714
0
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.181818
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2ab7d9c6d2f3ac0bab0d8b85268dc0e764010dd3
211
py
Python
answers/Ananya Chandra/day26/question2.py
AnaAdler18/30-DaysOfCode-March-2021
678a037b824487c801c8fbdb1ed3c4e84a52dba5
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/Ananya Chandra/day26/question2.py
AnaAdler18/30-DaysOfCode-March-2021
678a037b824487c801c8fbdb1ed3c4e84a52dba5
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/Ananya Chandra/day26/question2.py
AnaAdler18/30-DaysOfCode-March-2021
678a037b824487c801c8fbdb1ed3c4e84a52dba5
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
l= int(input("Enter the size of array \n")) a=input("Enter the integer inputs\n").split() c=0 a[0]=int(a[0]) for i in range(1,l): a[i]=int(a[i]) while a[i]<a[i-1]: c+=1 a[i]+=1 print(c)
17.583333
45
0.530806
48
211
2.333333
0.458333
0.089286
0.232143
0
0
0
0
0
0
0
0
0.042945
0.227488
211
11
46
19.181818
0.644172
0
0
0
0
0
0.247619
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ab85d423996a9db8aec4bf6a3cbe263fe25a259
2,765
py
Python
blog/migrations/0005_auto_20190415_2055.py
Vardancer/django_blog
d5dae0e4f05bd306d39dd63d289ca7ed48b516d1
[ "BSD-2-Clause" ]
null
null
null
blog/migrations/0005_auto_20190415_2055.py
Vardancer/django_blog
d5dae0e4f05bd306d39dd63d289ca7ed48b516d1
[ "BSD-2-Clause" ]
7
2019-12-04T22:27:15.000Z
2022-02-10T07:57:32.000Z
blog/migrations/0005_auto_20190415_2055.py
Vardancer/django_blog
d5dae0e4f05bd306d39dd63d289ca7ed48b516d1
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.1.7 on 2019-04-15 17:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0004_auto_201903...
40.072464
152
0.58915
279
2,765
5.688172
0.290323
0.035287
0.05293
0.083176
0.546944
0.546944
0.478891
0.478891
0.478891
0.41966
0
0.022489
0.276311
2,765
68
153
40.661765
0.770615
0.016275
0
0.532258
1
0
0.103385
0.008462
0
0
0
0
0
1
0
false
0
0.048387
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2abdb7b90af83a866b6b4b85a21ad1e60bc13099
26,315
py
Python
ruomyTeam(1).py
inverthermit/pacman_contest
6cd200394408c248d1dac2dd7b9918ff42618201
[ "MIT" ]
1
2017-10-16T00:13:46.000Z
2017-10-16T00:13:46.000Z
ruomyTeam(1).py
inverthermit/pacman_contest
6cd200394408c248d1dac2dd7b9918ff42618201
[ "MIT" ]
null
null
null
ruomyTeam(1).py
inverthermit/pacman_contest
6cd200394408c248d1dac2dd7b9918ff42618201
[ "MIT" ]
5
2017-10-10T10:28:06.000Z
2019-09-20T04:56:50.000Z
# myTeam.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # At...
37.011252
205
0.748584
3,164
26,315
6.219975
0.186789
0.026524
0.022866
0.015549
0.229522
0.134146
0.09436
0.068852
0.055539
0.030742
0
0.011392
0.152727
26,315
710
206
37.06338
0.871277
0.118108
0
0.242038
0
0
0.040731
0.005047
0
0
0
0.001408
0
0
null
null
0
0.016985
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2ac1198764cc3b962e366e53e7d8cb98a4481d42
1,649
py
Python
src/c3nav/mapdata/migrations/0039_auto_20170501_1523.py
bate/c3nav
9a86dd3eaeb3a10af3c5fa869575ed1e9300465a
[ "Apache-2.0" ]
1
2021-07-07T06:16:40.000Z
2021-07-07T06:16:40.000Z
src/c3nav/mapdata/migrations/0039_auto_20170501_1523.py
0ki/c3nav
18fdb34b3fbcf7eb4617794750494cfa16428c54
[ "Apache-2.0" ]
null
null
null
src/c3nav/mapdata/migrations/0039_auto_20170501_1523.py
0ki/c3nav
18fdb34b3fbcf7eb4617794750494cfa16428c54
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-05-01 15:23 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models def set_public_by_package(apps, schema_editor): from c3nav.settings import config public_packages = [n for n in config.get...
32.98
102
0.628866
173
1,649
5.774566
0.393064
0.08008
0.092092
0.108108
0.419419
0.419419
0.419419
0.419419
0.419419
0.419419
0
0.018714
0.2547
1,649
49
103
33.653061
0.794142
0.041237
0
0.5
1
0
0.108999
0
0
0
0
0
0
1
0.025
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ac27d4be0335de7e84f3a4f52a95617515636dd
320
py
Python
setup.py
StevenWoodsCtx/keyrings.alt
67dc2eb4cf5bf3608a79cd2dbd04161c20c9c36f
[ "MIT" ]
null
null
null
setup.py
StevenWoodsCtx/keyrings.alt
67dc2eb4cf5bf3608a79cd2dbd04161c20c9c36f
[ "MIT" ]
null
null
null
setup.py
StevenWoodsCtx/keyrings.alt
67dc2eb4cf5bf3608a79cd2dbd04161c20c9c36f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='keyrings.alt', version='3.1.1', author='Jason R. Coombs', author_email="jaraco@jaraco.com", url='https://github.com/jaraco/keyrings.alt', license='MIT', description='Alternate keyring implementations', packages=['keyrings.alt'] )
24.615385
52
0.68125
39
320
5.538462
0.717949
0.152778
0
0
0
0
0
0
0
0
0
0.011194
0.1625
320
12
53
26.666667
0.794776
0
0
0
0
0
0.421875
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
2ac971d0a120c4b7404a0ceec3c4191efbe89e09
2,800
py
Python
examples/pipeline/partitioned_execution.py
edublancas/python-ds-tools
1da2337961db9c50562349c28c9115d3a7cc6c0c
[ "MIT" ]
1
2021-11-02T05:48:00.000Z
2021-11-02T05:48:00.000Z
examples/pipeline/partitioned_execution.py
edublancas/python-ds-tools
1da2337961db9c50562349c28c9115d3a7cc6c0c
[ "MIT" ]
8
2016-05-25T01:50:14.000Z
2021-03-03T14:52:36.000Z
examples/pipeline/partitioned_execution.py
edublancas/dstools
1da2337961db9c50562349c28c9115d3a7cc6c0c
[ "MIT" ]
null
null
null
""" Example of parallel processing using partitioned datasets """ import time import pyarrow as pa from pyarrow import parquet as pq from scipy import stats import numpy as np import pandas as pd from pathlib import Path from dstools.pipeline import DAG from dstools.pipeline.tasks import PythonCallable from dstools.p...
33.333333
85
0.701429
392
2,800
4.936224
0.464286
0.022739
0.039276
0.020672
0.041344
0
0
0
0
0
0
0.009313
0.194643
2,800
83
86
33.73494
0.84878
0.372143
0
0
0
0
0.083045
0
0
0
0
0.012048
0
1
0.073171
false
0
0.268293
0
0.341463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2acec46f4e2b110f92e6ad7af4603d6a4d4ff768
357
py
Python
alshamelah_api/apps/users/migrations/0015_auto_20200627_2045.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
alshamelah_api/apps/users/migrations/0015_auto_20200627_2045.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
alshamelah_api/apps/users/migrations/0015_auto_20200627_2045.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-27 20:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0014_auto_20200627_1001'), ] operations = [ migrations.RenameField( model_name='user', old_name='photo', ...
19.833333
47
0.579832
39
357
5.128205
0.820513
0.09
0
0
0
0
0
0
0
0
0
0.125
0.305322
357
17
48
21
0.681452
0.12605
0
0
1
0
0.13871
0.074194
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ae2161adcbd58b86aef347b72853dffbac5bc8a
872
py
Python
day5.py
harpolea/advent_of_code_2016
0303b2bf0045e1fb030be8af08b54c8ef642c55d
[ "MIT" ]
null
null
null
day5.py
harpolea/advent_of_code_2016
0303b2bf0045e1fb030be8af08b54c8ef642c55d
[ "MIT" ]
null
null
null
day5.py
harpolea/advent_of_code_2016
0303b2bf0045e1fb030be8af08b54c8ef642c55d
[ "MIT" ]
null
null
null
import hashlib def find_code_part_1(in_str): pwd = '' i = 0 while len(pwd) < 8: m = hashlib.md5(str.encode(in_str + str(i))).hexdigest() if m[:5] == '00000': print(m[5]) pwd += m[5] i += 1 print("Password is: {}".format(pwd)) def find_code_part_2(in_str...
24.914286
80
0.5
133
872
3.045113
0.300752
0.098765
0.118519
0.074074
0.528395
0.528395
0.237037
0.237037
0.237037
0.237037
0
0.061121
0.324541
872
34
81
25.647059
0.626486
0.043578
0
0.296296
0
0
0.067308
0
0
0
0
0
0
1
0.074074
false
0.074074
0.037037
0
0.111111
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2ae79932b0e720899799d73990a04009db07d495
2,108
py
Python
database/crawler/crawl_GOanotation.py
tttor/csipb-jamu-prj
33b08a8a12054c8a5a7240681a28c8b233b329ba
[ "MIT" ]
5
2017-03-31T03:25:09.000Z
2021-12-17T02:28:24.000Z
database/crawler/crawl_GOanotation.py
tttor/csipb-jamu-prj
33b08a8a12054c8a5a7240681a28c8b233b329ba
[ "MIT" ]
165
2016-08-11T01:59:47.000Z
2017-10-10T06:32:12.000Z
database/crawler/crawl_GOanotation.py
tttor/csipb-jamu-prj
33b08a8a12054c8a5a7240681a28c8b233b329ba
[ "MIT" ]
11
2015-06-15T04:25:59.000Z
2021-04-18T09:39:16.000Z
import numpy as np import urllib2 as ulib import csv import time import sys def main(): start_time = time.time() it = 0 if len(sys.argv)!=3: print "Usage: python [outputDir] [protList]" return outDir = sys.argv[1] listDir = sys.argv[2] urlDomain = "http://www.uniprot.org/unipro...
30.550725
79
0.479602
250
2,108
4
0.34
0.036
0.04
0.027
0.147
0.147
0.147
0.13
0.13
0.13
0
0.024096
0.330645
2,108
68
80
31
0.684621
0.027514
0
0.140351
0
0
0.100845
0.017387
0
0
0
0
0
0
null
null
0
0.087719
null
null
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2ae8c9b30d034a57113970a8691a3f3460be0e39
1,815
py
Python
src/zope/app/pagetemplate/tests/test_binding.py
zopefoundation/zope.app.pagetemplate
03e1869afd0cb9105b36c794e4f8ddaeada42e53
[ "ZPL-2.1" ]
null
null
null
src/zope/app/pagetemplate/tests/test_binding.py
zopefoundation/zope.app.pagetemplate
03e1869afd0cb9105b36c794e4f8ddaeada42e53
[ "ZPL-2.1" ]
1
2017-04-22T13:31:57.000Z
2017-04-22T13:57:25.000Z
src/zope/app/pagetemplate/tests/test_binding.py
zopefoundation/zope.app.pagetemplate
03e1869afd0cb9105b36c794e4f8ddaeada42e53
[ "ZPL-2.1" ]
1
2015-04-03T07:55:41.000Z
2015-04-03T07:55:41.000Z
############################################################################## # # Copyright (c) 2001, 2002 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. # TH...
34.903846
79
0.682645
199
1,815
6.21608
0.487437
0.058205
0.046079
0.024252
0.105093
0.105093
0.084074
0.084074
0
0
0
0.008946
0.137741
1,815
51
80
35.588235
0.78147
0.265565
0
0
0
0
0.024138
0
0
0
0
0
0.125
1
0.166667
false
0
0.416667
0.041667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2af93b411be7631aa8ce4f7ee6885f197b545662
2,280
py
Python
Python/StudentManagementSystem.py
Liam0605/hacktoberfest2021-1
5bb8d7cef900cc2a5e5b7f7caf1685f40413b2a5
[ "CC0-1.0" ]
null
null
null
Python/StudentManagementSystem.py
Liam0605/hacktoberfest2021-1
5bb8d7cef900cc2a5e5b7f7caf1685f40413b2a5
[ "CC0-1.0" ]
null
null
null
Python/StudentManagementSystem.py
Liam0605/hacktoberfest2021-1
5bb8d7cef900cc2a5e5b7f7caf1685f40413b2a5
[ "CC0-1.0" ]
null
null
null
import os import platform global studentlist studentlist = ["jason yap", "Jake ramos", "James Pascual", "Jester Paglinga"] def studentmanagement(): print("\n++++++ Welcome to Evanz College Student Management System ++++++\n") print("[Choice 1: Showing the List of Student]") print("[Choice 2: Add New Student]") print...
27.46988
193
0.717982
319
2,280
5.131661
0.39185
0.021991
0.054979
0.043983
0.182651
0.182651
0.182651
0.118509
0.118509
0.059866
0
0.006566
0.131579
2,280
82
194
27.804878
0.820202
0.167982
0
0.275862
0
0
0.382337
0
0
0
0
0
0
0
null
null
0
0.034483
null
null
0.310345
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6305f8930500660cb2057865864e87290597220c
1,936
py
Python
RF_Kernel_Gen.py
bGhorbani/linearized_neural_networks
a6d987d960988595ec1e5ec69e211535f1d4921b
[ "Apache-2.0" ]
null
null
null
RF_Kernel_Gen.py
bGhorbani/linearized_neural_networks
a6d987d960988595ec1e5ec69e211535f1d4921b
[ "Apache-2.0" ]
null
null
null
RF_Kernel_Gen.py
bGhorbani/linearized_neural_networks
a6d987d960988595ec1e5ec69e211535f1d4921b
[ "Apache-2.0" ]
null
null
null
# This code calculates kernels for massive RF models that # cannot be fitted directly. For example, we use this code # to generate kernels for RF models with N=4.2 \times 10^6 # on CIFAR-2. # # The code was written for Python/2.7 from __future__ import print_function import numpy as np import sys from preprocess imp...
26.520548
59
0.689566
356
1,936
3.676966
0.398876
0.022918
0.034377
0.018335
0.106952
0.030558
0.030558
0
0
0
0
0.021394
0.154959
1,936
73
60
26.520548
0.778729
0.316116
0
0
1
0
0.178407
0.056662
0
0
0
0
0
1
0.021739
false
0
0.152174
0.021739
0.195652
0.217391
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
63111bd6d941364558b6f880c0a925b6273bd339
382
py
Python
poem/migrations/0013_poem_publicly_visible.py
ljod-is/poetcave
6d7fbc5c1e2b376a5693b906b5513efc35d085f8
[ "MIT" ]
2
2021-11-16T16:08:05.000Z
2021-11-24T17:02:53.000Z
poem/migrations/0013_poem_publicly_visible.py
ljod-is/poetcave
6d7fbc5c1e2b376a5693b906b5513efc35d085f8
[ "MIT" ]
null
null
null
poem/migrations/0013_poem_publicly_visible.py
ljod-is/poetcave
6d7fbc5c1e2b376a5693b906b5513efc35d085f8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-07 18:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('poem', '0012_bookmark'), ] operations = [ migrations.AddField( model_name='poem', name='publicly_visible', ...
20.105263
53
0.594241
40
382
5.6
0.825
0
0
0
0
0
0
0
0
0
0
0.070111
0.290576
382
18
54
21.222222
0.756458
0.117801
0
0
1
0
0.110448
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6315b3e7e78a800e1c19084e6b76b77dd4d697f0
4,879
py
Python
Preferences/PresetList/Preset/Options.py
CaptainDesAstres/Blender-Render-Manager
39082e7833383bbe7dd414381f1b295e3b778439
[ "MIT" ]
5
2015-07-22T03:02:17.000Z
2018-10-11T10:07:42.000Z
Preferences/PresetList/Preset/Options.py
CaptainDesAstres/Blender-Render-Manager
39082e7833383bbe7dd414381f1b295e3b778439
[ "MIT" ]
null
null
null
Preferences/PresetList/Preset/Options.py
CaptainDesAstres/Blender-Render-Manager
39082e7833383bbe7dd414381f1b295e3b778439
[ "MIT" ]
1
2018-10-11T10:07:43.000Z
2018-10-11T10:07:43.000Z
#!/usr/bin/python3.4 # -*-coding:Utf-8 -* '''module to manage Rendering Options''' import xml.etree.ElementTree as xmlMod import os class Options: '''class to manage Rendering Options''' RGBA_AVAILABLE = ['IRIS', 'PNG', 'JPEG2000', 'TARGA', 'DPX', 'OPEN_EXR_MULTILAYER', 'OPEN_EXR', 'HDR' ] def __init__(self, xm...
23.233333
104
0.628817
627
4,879
4.858054
0.245614
0.047275
0.011819
0.017072
0.078135
0.065003
0
0
0
0
0
0.010529
0.221357
4,879
209
105
23.344498
0.791261
0.108014
0
0.104
0
0
0.228837
0
0
0
0
0
0
1
0.064
false
0.056
0.024
0
0.136
0.104
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
631d9ad923b660ba3eb57aa6115a30cf2cc92c9f
1,475
py
Python
model_center/model/basemodel.py
zh-zheng/ModelCenter
2b7fc148c48e41a2a024b32b8bd1f989d8b1f654
[ "Apache-2.0" ]
null
null
null
model_center/model/basemodel.py
zh-zheng/ModelCenter
2b7fc148c48e41a2a024b32b8bd1f989d8b1f654
[ "Apache-2.0" ]
null
null
null
model_center/model/basemodel.py
zh-zheng/ModelCenter
2b7fc148c48e41a2a024b32b8bd1f989d8b1f654
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The OpenBMB team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.119048
98
0.734915
217
1,475
4.829493
0.483871
0.057252
0.054389
0.060115
0.197519
0
0
0
0
0
0
0.007519
0.188475
1,475
41
99
35.97561
0.868003
0.384407
0
0.272727
0
0
0.023516
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
631da53429394c3afb5ec7cfafdd6126441c7de5
23,030
py
Python
sdk/python/pulumi_aws_native/ssm/association.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/ssm/association.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/ssm/association.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
46.24498
171
0.674077
2,533
23,030
5.805369
0.073826
0.076301
0.096906
0.059844
0.771778
0.696022
0.646583
0.590819
0.560354
0.456987
0
0.000168
0.222579
23,030
497
172
46.338028
0.821157
0.147764
0
0.452991
1
0
0.159615
0.077781
0
0
0
0
0
1
0.156695
false
0.002849
0.022792
0.051282
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
632418f629a2bc224419f970331b25a1ec387304
1,682
py
Python
app/repository_matcher.py
toptal/license-cop
84f3dbf7b3632d761e423b182ce0d9927b885f41
[ "MIT" ]
24
2017-11-21T18:30:19.000Z
2021-11-08T10:52:48.000Z
app/repository_matcher.py
toptal/license-cop
84f3dbf7b3632d761e423b182ce0d9927b885f41
[ "MIT" ]
27
2017-11-22T15:50:56.000Z
2021-09-30T09:03:21.000Z
app/repository_matcher.py
toptal/license-cop
84f3dbf7b3632d761e423b182ce0d9927b885f41
[ "MIT" ]
5
2017-11-21T14:08:21.000Z
2021-04-07T19:30:09.000Z
from abc import * from itertools import groupby from app.data_object import DataObject class ManifestMatch(DataObject): def __init__(self, nodes): self.nodes = nodes @property def paths(self): return [i.path for i in self.nodes] class RepositoryMatch(DataObject): def __init__(self,...
27.57377
80
0.644471
195
1,682
5.276923
0.271795
0.068027
0.023324
0.029155
0
0
0
0
0
0
0
0.00082
0.275268
1,682
60
81
28.033333
0.843314
0
0
0.043478
0
0
0
0
0
0
0
0
0
1
0.217391
false
0.021739
0.065217
0.021739
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
632450e01a1de9224ed1f4d4d5ec5c24ff303ce6
10,591
py
Python
scripts/storage/secondary/cloud-install-sys-tmplt.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,131
2015-01-08T18:59:06.000Z
2022-03-29T11:31:10.000Z
scripts/storage/secondary/cloud-install-sys-tmplt.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
5,908
2015-01-13T15:28:37.000Z
2022-03-31T20:31:07.000Z
scripts/storage/secondary/cloud-install-sys-tmplt.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,083
2015-01-05T01:16:52.000Z
2022-03-31T12:14:10.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # 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, Ve...
44.877119
238
0.702483
1,211
10,591
6.11891
0.278282
0.022672
0.017544
0.025506
0.118893
0.109312
0.078812
0.069096
0.059109
0.038057
0
0.00292
0.159381
10,591
236
239
44.877119
0.829383
0.074686
0
0.152284
0
0.005076
0.245426
0.027497
0
0
0
0
0
0
null
null
0.040609
0.050761
null
null
0.076142
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
632ba60f98437c2ee8aad3775f28942b9cc53ff5
5,099
py
Python
python/evalTiming.py
jstraub/tdp
dcab53662be5b88db1538cf831707b07ab96e387
[ "MIT-feh" ]
1
2017-10-17T19:25:47.000Z
2017-10-17T19:25:47.000Z
python/evalTiming.py
jstraub/tdp
dcab53662be5b88db1538cf831707b07ab96e387
[ "MIT-feh" ]
1
2018-05-02T06:04:06.000Z
2018-05-02T06:04:06.000Z
python/evalTiming.py
jstraub/tdp
dcab53662be5b88db1538cf831707b07ab96e387
[ "MIT-feh" ]
5
2017-09-17T18:46:20.000Z
2019-03-11T12:52:57.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from helpers import * from js.utils.plot.colors import colorScheme mpl.rc('font',size=30) mpl.rc('lines',linewidth=2.) figSize = (21, 10) figSize = (16, 10) cs = colorScheme("label") pathToTimings = "../results/ablation_fr2_xyz/fullmode/timi...
32.477707
104
0.67778
654
5,099
5.278287
0.252294
0.022306
0.036501
0.034762
0.427578
0.381228
0.336037
0.278679
0.278679
0.278679
0
0.009919
0.130026
5,099
156
105
32.685897
0.76826
0.026476
0
0.419118
0
0
0.31664
0.023223
0
0
0
0
0
0
null
null
0
0.036765
null
null
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
633345a6747aefef402c76aa394a9c7d277518eb
323
py
Python
panoptes/analysis/lenses/hour/sessions.py
oberlin/panoptes
67d451ea4ffc58c23b5f347bfa5609fa7f853b45
[ "BSD-3-Clause" ]
2
2017-07-24T05:11:59.000Z
2017-08-27T19:17:42.000Z
panoptes/analysis/lenses/hour/sessions.py
oberlin/panoptes
67d451ea4ffc58c23b5f347bfa5609fa7f853b45
[ "BSD-3-Clause" ]
null
null
null
panoptes/analysis/lenses/hour/sessions.py
oberlin/panoptes
67d451ea4ffc58c23b5f347bfa5609fa7f853b45
[ "BSD-3-Clause" ]
null
null
null
from panoptes.analysis.lenses import BaseLens class Lens(BaseLens): """A lens to view the number of sessions per hour.""" slug = "sessions-per-hour" x_axis_slug = "hours" y_axis_slug = "session-count" panels = ( ('chart', {'chart': 'bar'}), ('map', {'map': 'sessions'}), ('events', {'list': 'hour'}) ...
19
54
0.616099
42
323
4.642857
0.714286
0.112821
0.153846
0
0
0
0
0
0
0
0
0
0.182663
323
16
55
20.1875
0.738636
0.145511
0
0
0
0
0.282528
0
0
0
0
0
0
1
0
false
0
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2d4c2952d6ade2ea984e06b3a722225331533415
1,221
py
Python
loris/compliance/abstract_feature_set.py
jpstroop/loris-redux
b5db56d5a250fdb24486afe01bad55b81761701a
[ "BSD-2-Clause" ]
7
2016-08-09T17:39:05.000Z
2016-09-26T19:37:30.000Z
loris/compliance/abstract_feature_set.py
jpstroop/loris-redux
b5db56d5a250fdb24486afe01bad55b81761701a
[ "BSD-2-Clause" ]
183
2016-06-02T22:07:05.000Z
2022-03-11T23:23:01.000Z
loris/compliance/abstract_feature_set.py
jpstroop/loris-redux
b5db56d5a250fdb24486afe01bad55b81761701a
[ "BSD-2-Clause" ]
1
2016-08-09T17:39:11.000Z
2016-08-09T17:39:11.000Z
from loris.compliance.helpers import ComparableMixin from loris.compliance.helpers import st class AbstractFeatureSet(ComparableMixin): # Override these in implementations LEVEL_2 = () LEVEL_1 = () LEVEL_0 = () # Only necessary to overide if value are listed in the profile ALL = () def __ini...
32.131579
83
0.647011
165
1,221
4.666667
0.478788
0.124675
0.036364
0.067532
0.168831
0.085714
0.085714
0.085714
0.085714
0.085714
0
0.011364
0.279279
1,221
37
84
33
0.863636
0.308763
0
0
0
0
0.008373
0
0
0
0
0
0
1
0.16
false
0
0.08
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2d4cdf3f740d2517a8131e795658d5dfe6208109
753
py
Python
src/main.py
TechStudent11/snek-test
b553d1008b8192d79f48492a3581f1c7f2d56592
[ "Unlicense" ]
2
2022-01-24T20:02:45.000Z
2022-01-25T08:11:24.000Z
src/main.py
TechStudent11/snek-test
b553d1008b8192d79f48492a3581f1c7f2d56592
[ "Unlicense" ]
null
null
null
src/main.py
TechStudent11/snek-test
b553d1008b8192d79f48492a3581f1c7f2d56592
[ "Unlicense" ]
1
2022-01-25T08:11:36.000Z
2022-01-25T08:11:36.000Z
import stdint VGA_GREEN: int = 0x2 VGA_WHITE: int = 0x7 # u16 is an unsigned 16-bit integer # It was added by Snek to allow for better portability & systems programming def print_to_vga(offset: int, character: u16, color: int): raw: u16 = (character) | color << 8 # __builtin_write_mem is a special function t...
28.961538
84
0.689243
123
753
4.073171
0.601626
0.031936
0.03992
0.05988
0
0
0
0
0
0
0
0.044143
0.217795
753
25
85
30.12
0.806452
0.381142
0
0
0
0
0.071739
0
0
0
0.028261
0
0
1
0.230769
false
0
0.076923
0
0.307692
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2d55a892d5aa17f2600a42b6c2bca87bce94535a
455
py
Python
math/josepheus_problem/python/josephus.py
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
math/josepheus_problem/python/josephus.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
math/josepheus_problem/python/josephus.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
from __future__ import print_function def josephus(list_of_players, step): #skipdeadguy step -= 1 index = step while len(list_of_players) > 1: print("Player Died : " , list_of_players.pop(index)) index = (index + step) % len(list_of_players) print('Player Survived : ', list_of_players[0]) def main(): print(...
26.764706
54
0.668132
84
455
3.345238
0.452381
0.106762
0.231317
0.113879
0.156584
0.156584
0.156584
0.156584
0.156584
0.156584
0
0.120513
0.142857
455
16
55
28.4375
0.6
0.024176
0
0
0
0.076923
0.180587
0.085779
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.230769
0.307692
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d55b90571bf3a511439defadf8c450058f2b624
20,699
py
Python
mi/instrument/virtual/driver.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/virtual/driver.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/virtual/driver.py
ronkyo/mi-instrument
ad6188ea9d7d941292f078a58718d09b46cc4fed
[ "BSD-2-Clause" ]
null
null
null
""" @package mi.instrument.noaa.ooicore.driver @file marine-integrations/mi/instrument/noaa/ooicore/driver.py @author Pete Cable @brief virtual driver, generates simulated particle data Release notes: """ from collections import namedtuple import functools import random import sqlite3 import string import time import...
35.142615
113
0.599787
2,059
20,699
5.798932
0.174356
0.026131
0.021441
0.018425
0.257705
0.201424
0.187772
0.161977
0.1366
0.127052
0
0.015979
0.262283
20,699
588
114
35.202381
0.765946
0.154355
0
0.187879
1
0
0.057943
0.007743
0
0
0
0
0
1
0.093939
false
0.009091
0.066667
0.006061
0.369697
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d5a55a47840175cf9a863491220e334f331b3aa
1,255
py
Python
Curso de Python Completo e Proficional/Aulas/Aula 12 - Tipos de Dados em Python.py
MauriSdL/Programs-in-Python
79e35bc9488fdd377f161b0faf573b2df765fdb3
[ "MIT" ]
null
null
null
Curso de Python Completo e Proficional/Aulas/Aula 12 - Tipos de Dados em Python.py
MauriSdL/Programs-in-Python
79e35bc9488fdd377f161b0faf573b2df765fdb3
[ "MIT" ]
null
null
null
Curso de Python Completo e Proficional/Aulas/Aula 12 - Tipos de Dados em Python.py
MauriSdL/Programs-in-Python
79e35bc9488fdd377f161b0faf573b2df765fdb3
[ "MIT" ]
null
null
null
import random # Tipos de Dados em Python # Tipos de texto: str # Tipos de numéricos: int, float, complex # Tipos de seguencia: list, tuple, range # Tipo de mapeamento: dict # Tipos de conjuntos: set, frozenset # Tipo booleano: bool # Tipos binários: bytes, bytearray, memoriyview # Definir tipos de dados...
20.57377
63
0.58247
164
1,255
4.457317
0.402439
0.057456
0.093023
0.082079
0.062928
0
0
0
0
0
0
0.028154
0.235857
1,255
60
64
20.916667
0.734098
0.713147
0
0.210526
0
0
0.030303
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.578947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2d5fa43e73a0d8ba7fe62b3d11afbd5395fca1ae
2,296
py
Python
src/jk_simpleexec/TextDataProcessingPolicy.py
jkpubsrc/python-module-jk-simpleexec
ec5d4f643ad0c8c97679c482aaf2f17d475d9321
[ "Apache-1.1" ]
null
null
null
src/jk_simpleexec/TextDataProcessingPolicy.py
jkpubsrc/python-module-jk-simpleexec
ec5d4f643ad0c8c97679c482aaf2f17d475d9321
[ "Apache-1.1" ]
null
null
null
src/jk_simpleexec/TextDataProcessingPolicy.py
jkpubsrc/python-module-jk-simpleexec
ec5d4f643ad0c8c97679c482aaf2f17d475d9321
[ "Apache-1.1" ]
null
null
null
import typing import jk_prettyprintobj # # This class defines the defaults for postpocessing text data recieved. # class TextDataProcessingPolicy(jk_prettyprintobj.DumpMixin): ################################################################################################################################ ## Co...
27.333333
129
0.404181
107
2,296
8.607477
0.439252
0.091205
0.115092
0
0
0
0
0
0
0
0
0
0.104965
2,296
83
130
27.662651
0.448175
0.065331
0
0
0
0
0.117324
0.089826
0
0
0
0
0.030303
1
0.121212
false
0
0.060606
0.060606
0.333333
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d6285de33b9ec05799fcff32d8f2d10f21424a5
837
py
Python
Problems/Recursion/0022-GenerateParentheses.py
s2503901ernie/LeetCode
cd40be2ddd2bc5e4e5630ec9068ae62504d527c2
[ "MIT" ]
null
null
null
Problems/Recursion/0022-GenerateParentheses.py
s2503901ernie/LeetCode
cd40be2ddd2bc5e4e5630ec9068ae62504d527c2
[ "MIT" ]
null
null
null
Problems/Recursion/0022-GenerateParentheses.py
s2503901ernie/LeetCode
cd40be2ddd2bc5e4e5630ec9068ae62504d527c2
[ "MIT" ]
null
null
null
""" Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3 Output: ["((()))","(()())","(())()","()(())","()()()"] Example 2: Input: n = 1 Output: ["()"] Constraints: 1 <= n <= 8 """ class Solution: def generateParenthesis(self, n: int...
20.925
103
0.519713
103
837
4.184466
0.407767
0.046404
0.076566
0.060325
0.143852
0.143852
0
0
0
0
0
0.017301
0.309438
837
39
104
21.461538
0.728374
0.30466
0
0.176471
1
0
0.003484
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d67c56f054b1b44b7009ddf6f2856ca9465afc0
280
py
Python
src/accounts/urls.py
algorithm-ssau/food-delivery
ce7650f54bc34bfd9c92542a9462f4200db865ee
[ "bzip2-1.0.6" ]
null
null
null
src/accounts/urls.py
algorithm-ssau/food-delivery
ce7650f54bc34bfd9c92542a9462f4200db865ee
[ "bzip2-1.0.6" ]
9
2020-02-12T00:33:22.000Z
2022-02-10T11:00:44.000Z
src/accounts/urls.py
algorithm-ssau/food-delivery
ce7650f54bc34bfd9c92542a9462f4200db865ee
[ "bzip2-1.0.6" ]
null
null
null
from django.urls import path, include from .views import Register from django.contrib.auth.views import LogoutView app_name = 'accounts' urlpatterns = [ path('', include('django.contrib.auth.urls')), path('register/', Register.as_view(), name='register'), ]
23.333333
60
0.692857
34
280
5.647059
0.5
0.104167
0.177083
0
0
0
0
0
0
0
0
0
0.167857
280
11
61
25.454545
0.824034
0
0
0
0
0
0.182156
0.089219
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2d690360569ead9ac4ab9d53edef0fc51dc11e3c
20,461
py
Python
addons/hr/models/hr.py
shdkej/odoo_gvm
15b797e60a329f5d2fddb817a2b30a926b5873fa
[ "MIT" ]
null
null
null
addons/hr/models/hr.py
shdkej/odoo_gvm
15b797e60a329f5d2fddb817a2b30a926b5873fa
[ "MIT" ]
3
2020-12-06T11:10:32.000Z
2020-12-06T11:16:48.000Z
addons/hr/models/hr.py
shdkej/odoo_gvm
15b797e60a329f5d2fddb817a2b30a926b5873fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import datetime from odoo import api, fields, models from odoo import tools, _ from odoo.exceptions import ValidationError from odoo.modules.module import get_module_resource _logger = logging.getLogger...
41.587398
196
0.638434
2,577
20,461
4.916182
0.19092
0.014997
0.018944
0.009472
0.301444
0.240587
0.183124
0.164338
0.128976
0.097877
0
0.013791
0.238063
20,461
491
197
41.672098
0.798845
0.06984
0
0.162983
0
0
0.215393
0.002293
0
0
0
0
0
0
null
null
0.002762
0.016575
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2d6bd403551ce1c462aa5d0249a54094f0b8d37d
3,455
py
Python
control/test_stand/generate_test_sequence.py
sentree/hover-jet
7c0f03e57ecfd07a7a167b3ae509700fb48b8764
[ "MIT" ]
10
2018-12-26T23:08:40.000Z
2021-02-04T23:22:01.000Z
control/test_stand/generate_test_sequence.py
sentree/hover-jet
7c0f03e57ecfd07a7a167b3ae509700fb48b8764
[ "MIT" ]
40
2018-12-15T21:10:04.000Z
2021-07-29T06:21:22.000Z
control/test_stand/generate_test_sequence.py
sentree/hover-jet
7c0f03e57ecfd07a7a167b3ae509700fb48b8764
[ "MIT" ]
6
2018-12-15T20:46:19.000Z
2020-11-27T09:39:34.000Z
import numpy as np from functools import partial import os MAX_SERVO_ANGLE_RAD = 1.1 MS_PER_TICK = 25 SEC_PER_MS = 1e-3 LENGTH_TICKS = 1000 ALL_INDICES = {0, 1, 2, 3} def generate_yaml(command_list): assert command_list.ndim == 2 assert command_list.shape[1] == 4 text = "commands:\n" for cmd in comm...
31.990741
109
0.621708
533
3,455
3.741088
0.238274
0.039117
0.042126
0.042126
0.327482
0.271314
0.230191
0.220662
0.18656
0.18656
0
0.0478
0.237048
3,455
107
110
32.28972
0.708649
0
0
0.072289
1
0
0.090883
0
0
0
0
0
0.024096
1
0.060241
false
0
0.060241
0
0.168675
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d6fb4bf66fd71beb1aa0b7dda36ac5ea2fe2481
1,037
py
Python
evap/evaluation/migrations/0115_add_contribution_role.py
felixrindt/EvaP
fe65fcc511cc942695ce1edbaab170894f0d37b1
[ "MIT" ]
29
2020-02-28T23:03:41.000Z
2022-02-19T09:29:36.000Z
evap/evaluation/migrations/0115_add_contribution_role.py
felixrindt/EvaP
fe65fcc511cc942695ce1edbaab170894f0d37b1
[ "MIT" ]
737
2015-01-02T17:43:25.000Z
2018-12-10T20:45:10.000Z
evap/evaluation/migrations/0115_add_contribution_role.py
felixrindt/EvaP
fe65fcc511cc942695ce1edbaab170894f0d37b1
[ "MIT" ]
83
2015-01-14T12:39:41.000Z
2018-10-29T16:36:43.000Z
# Generated by Django 3.0.6 on 2020-05-25 22:24 from django.db import migrations, models def fill_role_from_can_edit(apps, _schema_editor): Contribution = apps.get_model('evaluation', 'Contribution') for contribution in Contribution.objects.all(): contribution.role = int(contribution.can_edit) ...
30.5
115
0.681774
118
1,037
5.754237
0.440678
0.061856
0.035346
0.044183
0.444772
0.332842
0.332842
0.332842
0.332842
0.332842
0
0.027811
0.202507
1,037
33
116
31.424242
0.793229
0.043394
0
0.26087
1
0
0.112121
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d799eae1b1e9d326e2d2e06cf62eb5dfdda9db4
656
py
Python
Modulo_1/semana2/Estructura-de-Datos/array/arreglo-rebanada.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_1/semana2/Estructura-de-Datos/array/arreglo-rebanada.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_1/semana2/Estructura-de-Datos/array/arreglo-rebanada.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import array as arr # Creando lista l = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100] a = arr.array('i', l) print("Inicializar arreglo: ") for i in (a): print(i, end =" ") # Imprime el elemento del rango # Usando la operacion de rebanada Sliced_array = a[3:8] print("\nRebana de elemento en rango 3-8: ") print(Sli...
26.24
64
0.713415
104
656
4.442308
0.548077
0.142857
0.077922
0.116883
0
0
0
0
0
0
0
0.049724
0.172256
656
25
65
26.24
0.801105
0.283537
0
0.2
0
0
0.352688
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.533333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2d889c20ec347e8ebe004184fd349949abaecb27
1,828
py
Python
common/src/main/python/gov/nasa/jpl/edrn/labcas/server/openslide_image_converter.py
EDRN/labcas-backend
87a0a4bfbb98782b3ed58270aebcc8ba6a392106
[ "Apache-2.0" ]
null
null
null
common/src/main/python/gov/nasa/jpl/edrn/labcas/server/openslide_image_converter.py
EDRN/labcas-backend
87a0a4bfbb98782b3ed58270aebcc8ba6a392106
[ "Apache-2.0" ]
3
2020-01-30T01:02:14.000Z
2021-01-01T00:55:59.000Z
common/src/main/python/gov/nasa/jpl/edrn/labcas/server/openslide_thumbnail_generator.py
EDRN/labcas-backend
87a0a4bfbb98782b3ed58270aebcc8ba6a392106
[ "Apache-2.0" ]
null
null
null
# Thumbnail generator for OpenSlide compatible files. # Usage: python openslide_thumbnail_generator.py <filepath.svs> <thumbnail_root_dir> <thumbnail_root_url> # # Example: python /usr/local/labcas_home/etc/openslide_thumbnail_generator.py /usr/local/labcas_archive/Team_37_CTIIP_Animal_Models/CTIIP-1.1b/1/EX10-0061-3N...
32.642857
220
0.743435
234
1,828
5.538462
0.457265
0.091821
0.049383
0.044753
0.072531
0.072531
0
0
0
0
0
0.014037
0.181619
1,828
55
221
33.236364
0.852273
0.452407
0
0
0
0
0.032609
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2d8e521498032b4d32d0988b89b51a53508db11a
2,126
py
Python
BreastCancerPrediction_Python_Flask/src/mlScript.py
snigdhayan/Prototypes
2dff6a806d62bb6629886f2974373025fec6e908
[ "MIT" ]
1
2021-11-17T10:51:51.000Z
2021-11-17T10:51:51.000Z
BreastCancerPrediction_Python_Flask/src/mlScript.py
snigdhayan/Prototypes
2dff6a806d62bb6629886f2974373025fec6e908
[ "MIT" ]
null
null
null
BreastCancerPrediction_Python_Flask/src/mlScript.py
snigdhayan/Prototypes
2dff6a806d62bb6629886f2974373025fec6e908
[ "MIT" ]
null
null
null
# coding: utf-8 # Gather breast cancer data from sklearn.datasets import load_breast_cancer breast_cancer = load_breast_cancer() breast_cancer_data = breast_cancer.data breast_cancer_labels = breast_cancer.target # Prepare data as pandas dataframe import numpy as np labels = np.reshape(breast_cancer_labels,(569,1...
32.212121
114
0.813264
303
2,126
5.419142
0.330033
0.204629
0.173569
0.058465
0.160171
0.106577
0
0
0
0
0
0.007784
0.093603
2,126
66
115
32.212121
0.844318
0.110536
0
0
0
0
0.037485
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2d909aeaeac3e7362efa4f7a96b8442a49e430a8
1,480
py
Python
backend/web/control/Reset.py
asterfusion/Tapplet-Web
d32a077810ae27d50f010e058242f04e497ef68a
[ "MIT" ]
3
2019-12-24T03:52:39.000Z
2019-12-30T11:47:53.000Z
backend/web/control/Reset.py
asterfusion/Tapplet-Web
d32a077810ae27d50f010e058242f04e497ef68a
[ "MIT" ]
null
null
null
backend/web/control/Reset.py
asterfusion/Tapplet-Web
d32a077810ae27d50f010e058242f04e497ef68a
[ "MIT" ]
6
2019-12-16T08:38:07.000Z
2020-12-02T19:37:25.000Z
#!/usr/bin/python3 import sqlite3 import json import threading import requests import urllib3 import datetime import time import asyncio import tornado.autoreload from tornado.concurrent import run_on_executor from concurrent.futures import ThreadPoolExecutor import sys sys.path.append('./web/control/') sys.path.append...
29.019608
100
0.760811
219
1,480
5.03653
0.39726
0.058024
0.063463
0.081596
0.25204
0.181324
0.145059
0.094288
0.094288
0.094288
0
0.01506
0.102703
1,480
50
101
29.6
0.815512
0.011486
0
0.086957
0
0
0.263338
0.041724
0
0
0
0
0
1
0.043478
false
0
0.391304
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1