hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
4373368d3881af5dad1c3516090dba95efd0a39f
250
py
Python
data_tests/saved__backend__/numba/boosted_func_use_import.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/saved__backend__/numba/boosted_func_use_import.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/saved__backend__py3.9/numba/boosted_func_use_import.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
# __protected__ from numba import njit import numpy as np from exterior_import_boost import func_import # __protected__ @njit(cache=True, fastmath=True) def func(a, b): return (a * np.log(b)).max() + func_import() __transonic__ = ("0.4.7",)
19.230769
48
0.716
43a0ca7dfbf60b2b121809320b0387335d941edb
237
py
Python
apps/home/urls.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
apps/home/urls.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
4
2020-09-21T01:32:14.000Z
2020-09-21T01:32:47.000Z
apps/home/urls.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.urls import path from .views import DashboardView app_name = 'home' urlpatterns = [ path('', DashboardView.as_view(), name='index'), # path('graph/', ShowGraphView.as_view(), name='graphs'), ]
26.333333
61
0.662447
78eb01c1d2e069dcd38d9900c494b0bfdf821972
14,972
py
Python
gpt3/02-prompts.py
sixvo-labs/Sapir
07ba6fe1c83e2d5fbf139f1601a28df6b6740483
[ "MIT" ]
null
null
null
gpt3/02-prompts.py
sixvo-labs/Sapir
07ba6fe1c83e2d5fbf139f1601a28df6b6740483
[ "MIT" ]
null
null
null
gpt3/02-prompts.py
sixvo-labs/Sapir
07ba6fe1c83e2d5fbf139f1601a28df6b6740483
[ "MIT" ]
null
null
null
#prompts.py """ Q&A prompt="I am a highly intelligent question answering bot. If you ask me a question that is rooted in truth, I will give you the answer. If you ask me a question that is nonsense, trickery, or has no clear answer, I will respond with \"Unknown\".\n\nQ: What is human life expectancy in the United S...
74.86
920
0.726155
e07c91610a9d54aefa63ec1579b4ae70d6b84dac
5,690
py
Python
research/nlp/senta/src/data/tokenizer/tokenization_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/senta/src/data/tokenizer/tokenization_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/senta/src/data/tokenizer/tokenization_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.274854
103
0.563445
c74df07a5128d847f235ffe4c7a7940c3fa94fc0
4,769
py
Python
20-fs-ias-lec/groups/01-dev2dev/Code/BTonly/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/01-dev2dev/Code/BTonly/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/01-dev2dev/Code/BTonly/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#!/usr/bin/env python3 """Main Program Loop This module contains the program logic for FreedomDrop """ import connection import impexp import subprocess from bluetooth import * #This is the actual starting point for the flow connectionEstablished = False dataReceived = False okReceived = False log = "test.pcap" inv...
35.325926
124
0.694695
1bf6a285a4251a045f07f2f743f0384085ab7264
187
py
Python
Licence 2/I33/TP 2/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 2/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 2/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def inverse(a, p): u, v = 1, 0 u1, v1 = 0, 1 p1 = p while a != 0: u2 = u - (p1 // a) * u1 v2 = v - (p1 // a) * v1 u, v = u1, v1 u1, v1 = u2, v2 p1, a = a, p1 % a return v%p
17
25
0.411765
40f65903560d5a4f15396edb09f8e895aef387a3
2,420
py
Python
examples/model_interpretation/evaluation/faithfulness/newp_analysis.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/model_interpretation/evaluation/faithfulness/newp_analysis.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/model_interpretation/evaluation/faithfulness/newp_analysis.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
29.876543
78
0.669008
907cebd427d47f20b849c7f27122f119794f8d83
1,272
py
Python
ping_server.py
Hofei90/create_automount
6975b1e7b477ac650fd33592bf771e8484357f92
[ "MIT" ]
3
2020-07-19T12:05:13.000Z
2021-04-19T12:38:28.000Z
ping_server.py
Hofei90/create_automount
6975b1e7b477ac650fd33592bf771e8484357f92
[ "MIT" ]
2
2019-08-20T19:28:26.000Z
2021-09-30T10:03:51.000Z
ping_server.py
Hofei90/create_automount
6975b1e7b477ac650fd33592bf771e8484357f92
[ "MIT" ]
1
2019-05-24T05:13:30.000Z
2019-05-24T05:13:30.000Z
#!/usr/bin/python3 import shlex import subprocess import sys import time VERSUCHE = 5 def ping_wlan(ip): """pingt die IP 2x an return (0 | !0) 0 wenn erreichbar""" befehl = "ping -c2 -W1 {}".format(ip) cmd = shlex.split(befehl) return subprocess.call(cmd) def systemd_cat(message, identifier, p...
27.06383
114
0.631289
4695bb58360e21acec39250f9cf396bf58597889
8,586
py
Python
NER/embedding.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
7
2020-03-06T05:53:43.000Z
2022-01-30T17:31:18.000Z
NER/embedding.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
NER/embedding.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
from NER.utils import * class embed(nn.Module): def __init__(self, cti_size, wti_size, params, hre = False ): super().__init__() self.hre = hre # hierarchical recurrent encoding self.EMBED = params['EMBED'] self.EMBED_SIZE = params['EMBED_SIZE'] global DROPOUT DROPOU...
41.882927
96
0.501165
3187a6f971532c11d4d966b02bdbceb07ce9b9cd
2,554
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/influxdb_write.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/influxdb_write.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/influxdb_write.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017, René Moser <mail@renemoser.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1...
25.039216
92
0.655051
31e41000df791797f5a4696a3efba7caf5e62f16
5,703
py
Python
oneflow/python/test/ops/test_assign.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/ops/test_assign.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/test/ops/test_assign.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
33.350877
81
0.664913
b445ff5f27a352c03cfe552126e94b2edd6cc38a
361
py
Python
WiSe-2122/Wiederholung/Vorlesung/modulo.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Wiederholung/Vorlesung/modulo.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Wiederholung/Vorlesung/modulo.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
richtige_eingabe = False while not richtige_eingabe: try: zahl = int(input("Bitte geben Sie eine ganze Zahl ein: ")) richtige_eingabe = True if zahl % 2 == 0: print("gerade") else: print("Die von Ihnen eingegebene Zahl ist ungerade.") except: print...
32.818182
66
0.595568
5ef46d219f7864225e98d3ba4b5b2a89b47593c9
1,001
py
Python
Controller/rest/RestIO.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Controller/rest/RestIO.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Controller/rest/RestIO.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from flask_cors import CORS import logging from rest.Resources import Dataset, Job, View, Experiment, Architecture, Architecture_config, User class RestIO: auth = None def __init__(self): app = Flask(__name__) CORS(app) api = Api...
27.054054
154
0.587413
4868aec448d92d8100841978ea4a9cbf1f0a81de
1,047
py
Python
AutosClasificados/core/migrations/0004_auto_20171011_1457.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/migrations/0004_auto_20171011_1457.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/migrations/0004_auto_20171011_1457.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-10-11 17:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20171011_1444'), ] operations = [ migrations.AlterField( ...
29.083333
75
0.602674
6f7fe79807a61d03f769c18058d0ca850e53146d
20,537
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_bfd_view.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_bfd_view.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_bfd_view.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
36.284452
140
0.602328
6ff69117e54b370aff7f00ca2179d603ca6bd90c
14,303
py
Python
operatorQN.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
1
2022-03-09T20:44:33.000Z
2022-03-09T20:44:33.000Z
operatorQN.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
operatorQN.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
import sys import numpy as np import pandas as pd import time import datetime import random from decimal import Decimal import lib RATIO = 1/3 INVEST_TRG_HIGH = 0.99 INVEST_TRG_LOW = 0.01 # sudo docker run -it -v secret:/secret_data --name operatorQN --restart unless-stopped operator:vQN.1 def choose_price(t_dat...
40.865714
201
0.592183
d21688bd8e1a5adb646068e56c4c707a9110b63a
5,791
py
Python
wagtail_localize/views/update_translations.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
6
2019-09-10T19:53:55.000Z
2019-11-14T16:57:07.000Z
wagtail_localize/views/update_translations.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
17
2019-07-11T11:17:37.000Z
2019-11-19T16:40:31.000Z
wagtail_localize/views/update_translations.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
2
2019-09-30T20:23:39.000Z
2019-10-31T14:09:31.000Z
from django import forms from django.contrib import messages from django.contrib.admin.utils import quote from django.core.exceptions import PermissionDenied, ValidationError from django.db import transaction from django.shortcuts import get_object_or_404, redirect from django.urls import reverse from django.utils.tran...
35.746914
102
0.616474
96ad7b6a8cef667031c96b260d54760edf378cd7
357
py
Python
comp/microsoft/002_min_flips_to_obtain_str_without_3_same_consective_letters.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
comp/microsoft/002_min_flips_to_obtain_str_without_3_same_consective_letters.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/002_min_flips_to_obtain_str_without_3_same_consective_letters.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: def min_moves(self, S): res = 0 ac, bc = 0, 0 for l in S: if l == 'a': ac += 1 bc = 0 elif l == 'b': bc += 1 ac = 0 if ac == 3 or bc == 3: ac, bc = 0, 0 ...
22.3125
34
0.27451
83a87aa1a661e0a600819c4c4a88ce31e2d2fa4a
85,588
py
Python
Telegrat-main/data.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Telegrat-main/data.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Telegrat-main/data.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
""" Скрипт написал @lamer112311 Обфускация для того, чтоб всякие мрази, вроде slivmens не спиздили код. Интересуют исходники? Пиши в телеграм @lamer112311 """ __pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x08\x00\x55\x0d\x0d\x0a\x07\x2c\xa0\x01\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x...
12,226.857143
85,427
0.750047
79150a17b1ee176b56aa8f9c2b7b67cd7c5243fd
800
py
Python
measure/system/AbstractSystemMeter.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
measure/system/AbstractSystemMeter.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
measure/system/AbstractSystemMeter.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.dirname(__file__)) class AbstractSystemMeter: """Common system meter interface for all resource monitorings. For each system resource to monitor, a wrapper class will be written as subclass of this one. This way we have a common "interface" for all system resou...
26.666667
114
0.6975
49ceedd53613feddea7c1a3303de2d5f13947442
214
py
Python
Pythonjunior2020/Woche1/Aufgabe_1_6_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_6_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_6_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 1.6.1, Woche 1, Block 6, Aufgabe 1 # Import from turtle import * import time # Startpunkt penup() goto(-200,100) pendown() # Quadrat for i in range(0,4) : forward(400) right(90) # Pause time.sleep(5)
11.888889
36
0.649533
49e068581b1dd8afc609bbe4877a0bc1aea63a12
1,213
py
Python
ucct/base/hashes.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/base/hashes.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/base/hashes.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 retnikt Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
28.880952
77
0.67601
3fd130ea8ec30e27f512831ab07f4a5bda51681c
1,659
py
Python
web/SecureUploader/src/secureuploader/app/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/SecureUploader/src/secureuploader/app/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/SecureUploader/src/secureuploader/app/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
from flask import Flask, request, redirect, g import sqlite3 import os import uuid app = Flask(__name__) SCHEMA = """CREATE TABLE files ( id text primary key, path text ); """ def db(): g_db = getattr(g, '_database', None) if g_db is None: g_db = g._database = sqlite3.connect("database.db") retu...
22.12
88
0.610006
b76317642587323c34e49fb0aaa1f5074554d3a9
1,553
py
Python
Chapter3_DeepLearning/mnistCnn.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
2
2021-02-10T19:50:27.000Z
2021-12-30T06:15:55.000Z
Chapter3_DeepLearning/mnistCnn.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
1
2020-12-21T15:29:20.000Z
2022-01-15T12:06:09.000Z
Chapter3_DeepLearning/mnistCnn.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
4
2020-11-08T17:07:53.000Z
2022-02-07T06:40:55.000Z
from tensorflow.keras.layers import Activation from tensorflow.keras.layers import Conv2D from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Flatten from tensorflow.keras.layers import MaxPooling2D from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam fr...
25.883333
74
0.743078
4d91a0ca27ed4bb7866c843ee55386d30fdaf195
848
py
Python
5_ifElse/3_switchOnOff.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
5_ifElse/3_switchOnOff.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
5_ifElse/3_switchOnOff.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
""" Switch on, switch off """ newPage(100, 100) radius = 20 if True: print("True") else: print("False") fill(1) rect(0, 0, width(), height()) fill(0) oval(width()/2-radius, height()/2-radius, radius*2, radius*2) """ Frage: - Wie wird der Kreis (Oval) eingemittet? Warum wird der Radius zuerst v...
21.74359
76
0.658019
c411626308e5e27c4cc206a5a21cf23b15f00c61
7,868
py
Python
Metadataextraction/getCSVInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/getCSVInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/getCSVInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click # used to print something import extractTool # used for the the transformation and prints import pandas as pd # to read the csv we use Pandas: http://pandas.pydata.org/pandas-docs/stable/io.html import numpy as np # used to calculate the convex hull from scipy.spatial import ConvexHull # used to...
39.537688
120
0.686197
67606b02d51b063efbf2464ed8185df41529e762
539
py
Python
configs/celeba_test.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
1
2020-08-28T05:06:36.000Z
2020-08-28T05:06:36.000Z
configs/celeba_test.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
configs/celeba_test.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
from .master_config import CONFIG config = { "exp_name": 'celeba_test', "epochs": 1, "data": 'celeba', "target": 'Male', "conceptizer": 'VaeConceptizer', "num_concepts": 5, "beta": 4, "parameterizer": 'ConvParameterizer', "num_classes": 2, "robustness_reg": 1e-4, "aggregator...
23.434783
48
0.619666
67672f0a8f91db2a3a50d37a78322d92ba1be645
532
py
Python
fastapi/tutorial-1-7-dependencies/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
fastapi/tutorial-1-7-dependencies/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
fastapi/tutorial-1-7-dependencies/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
# https://fastapi.tiangolo.com/tutorial/dependencies/ from fastapi import FastAPI, Depends from typing import Optional app = FastAPI() def common_parameters(q: Optional[str] = None, skip: int = 0, limit: int = 100): return {"q": q, "skip": skip, "limit": limit} @app.get("/") def hello(): return {"message": ...
24.181818
80
0.691729
c0573c95eb4b673c9bbbc10a280b34942e91ea06
1,926
py
Python
cogs/events.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
1
2021-04-21T09:01:26.000Z
2021-04-21T09:01:26.000Z
cogs/events.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
cogs/events.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
from discord.ext import commands import os import json import mysql.connector import datetime import asyncio class Events(commands.Cog): def __init__(self, client): self.client = client self.use_mysql = False if os.path.exists("config/mysql.json"): with open('config/mysql.json'...
36.339623
133
0.571651
fbf0d22368f26eff971d75618457c7b9bf99328a
2,935
py
Python
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalWhoisWidgetScript/RiskIQPassiveTotalWhoisWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalWhoisWidgetScript/RiskIQPassiveTotalWhoisWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalWhoisWidgetScript/RiskIQPassiveTotalWhoisWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from RiskIQPassiveTotalWhoisWidgetScript import set_arguments_for_widget_view def test_for_whois_widget_set_arguments_for_widget_view_when_indicator_type_riskiqasset_and_riskiqassettype_is_empty(): # Configure # set argument for command indicator_data = { 'indicator_type': 'RiskIQAsset', ...
28.495146
120
0.678024
58ac6812615afbfc5b54c6909594f00e927d9883
372
py
Python
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P06_CharityCampaign.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P06_CharityCampaign.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P06_CharityCampaign.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
torta = 45 gofreta = 5.80 palachinka = 3.20 days = int(input()) chefs = int(input()) num_torta = int(input()) num_gofreta = int(input()) num_palachinka = int(input()) amount_1 = torta * num_torta amount_2 = gofreta * num_gofreta amount_3 = palachinka * num_palachinka power = days * chefs * (amount_1 + amount_2 + amount...
26.571429
55
0.717742
58cd51007927c88acf51728033cee99af14ff0a9
8,232
py
Python
examples/model_compression/distill_lstm/small.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/model_compression/distill_lstm/small.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/model_compression/distill_lstm/small.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
37.081081
92
0.556851
18f1e096fce929e25697184502cd5ef0620f4e33
144
py
Python
DataProcess/net/__init__.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/net/__init__.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/net/__init__.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ @File :__init__.py.py @Author :Zhang Qihang @Date :2022/1/13 19:06 @Description : """
16
26
0.583333
e1cded5ba9d3a5af471afa1dd42e4955382196ea
22,432
py
Python
plugins/tff_backend/bizz/user.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/user.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/user.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
42.80916
151
0.697397
831e0751b51ceaebb7f7f68dd8ee4e8d28f79904
5,815
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_contrib.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_contrib.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_contrib.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" tests for contrib module """ import sys import os import pybedtools from pybedtools import Interval #from pybedtools.contrib import Classifier from .tfuncs import setup, teardown, testdir, test_tempdir, unwriteable # model for gdc. # chr2L, starts at 1 and spacing is 10bp. # import gdc # g = gdc.GenomeModel(chrom_...
29.820513
109
0.517111
3687b0240925b54fd899bf25f3fb3c30356c6513
932
py
Python
app/database-maker/src/main.py
shimech/hit-and-blow
7fd7d7077ca286b5dfaea333b68514f824a42c8e
[ "MIT" ]
1
2020-06-25T17:07:36.000Z
2020-06-25T17:07:36.000Z
app/database-maker/src/main.py
shimech/hit-and-blow
7fd7d7077ca286b5dfaea333b68514f824a42c8e
[ "MIT" ]
1
2020-04-02T11:19:10.000Z
2020-04-02T11:19:10.000Z
app/database-maker/src/main.py
shimech/hit-and-blow
7fd7d7077ca286b5dfaea333b68514f824a42c8e
[ "MIT" ]
null
null
null
import os import sys import itertools import json from utils import Utils FILE_PATH = os.path.abspath(__file__) NUMS = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] DEFAULT_LENGTH = 4 def main(): length = int(sys.argv[1]) if len(sys.argv) >= 2 else DEFAULT_LENGTH db_dir_path = Utils.make_dir( o...
22.731707
71
0.622318
18001cd7e9dbf3c37a9a220197cfcdc18912bd07
1,313
py
Python
OrigPic.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-03-28T11:50:45.000Z
2020-12-08T13:36:26.000Z
OrigPic.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-04-20T11:12:59.000Z
2020-05-11T05:37:36.000Z
OrigPic.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
null
null
null
from IProcess import IProcess, EDataType from PIL import Image import os.path class OrigPic(IProcess): ### Constructor reading a image from a path. ### Reads entire image file in given format (default = RGB) ### TODO: Color format to read in. ### Mode References: https://pillow.readthedocs.io/en/stable/handbook...
25.25
98
0.718203
1803312131677dd6cfaf0c2e02ee4bfc188c4494
1,032
py
Python
elements/python/8/1/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/8/1/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/8/1/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, x, nxt): self.x = x self.next = nxt def to_list(n): """ to_list converts the linked list n to a list. """ L = [] while n is not None: L.append(n.x) n = n.next return L def from_list(L): """ from_list builds a ...
16.125
55
0.510659
62bcc1c1ad22c748030d95f99a6fe3a5758b2d2c
1,216
py
Python
005-C101-CloudStorage/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
2
2021-09-28T13:55:20.000Z
2021-11-15T10:08:49.000Z
005-C101-CloudStorage/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
null
null
null
005-C101-CloudStorage/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
1
2022-01-20T03:02:20.000Z
2022-01-20T03:02:20.000Z
# Dropbox program to upload a whole folder to Dropbox\ import dropbox import os class DropboxUploader: def __init__(self, access_token): self.access_token = access_token self.dbx = dropbox.Dropbox(self.access_token) print(f'Created DropBox Client: {self.dbx}') def upload_file(self, fil...
31.179487
57
0.61102
3d7587c7ca8fb3e7663b559c9e455df50289f533
3,349
py
Python
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/TESTING2/TEST/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/TESTING2/TEST/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/TESTING2/TEST/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import tkinter as tk from tkinter import * from tkinter import font from tkinter.filedialog import askopenfilename from tkinter import ttk from AppOperations import AppOperations as ao # the class build for this purpose data_valid = 0 # to check if the data was sucessfully inserted or not! info = [ ...
39.869048
131
0.599283
b8de30ac7fb755e9fb2d22be8f13c3fa61a4d437
6,054
py
Python
src/create_dataset.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/create_dataset.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/create_dataset.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import pickle import hydra.utils import numpy as np from src.classifier.data_processing.splitting.create_splits import get_data_splits from src.classifier.utils import get_data_dir from src.classifier.data_processing.data_augmentation.gendered_prompts import ( replace_with_gendered_pronouns, ) from src....
34.793103
87
0.631483
b8f13b80be399d869a69efb53c6f0e0130eaba38
2,546
py
Python
playlist_youtube.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
1
2020-07-30T15:46:06.000Z
2020-07-30T15:46:06.000Z
playlist_youtube.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
null
null
null
playlist_youtube.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
null
null
null
import asyncio from pyppeteer import launch from AudioKa import AudioKa from PlaylistKa import PlaylistKa def suppr_a_partir(txt, c): tmp = "" for caractere in txt: if caractere == c: return tmp tmp += caractere return tmp async def playlist_youtube_translate(titre_playlist: st...
28.288889
165
0.652789
624f6932171f8af833faa27c8ecd5c72d48f1d71
625
py
Python
listings/chapter10/neural-network-sklearn.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter10/neural-network-sklearn.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter10/neural-network-sklearn.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
from sklearn.datasets import load_digits from sklearn.neural_network import MLPClassifier from sklearn.model_selection import train_test_split # Digits-Datenmenge laden X, y = load_digits(return_X_y=True) # 80% Trainings-, 20% Testdaten X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.2 ) #...
26.041667
53
0.7664
62610a74ce7a962a8f1d9fa303543937b89ed1f1
2,444
py
Python
__main__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
__main__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
__main__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
import argparse import buzzer import display import config import controls import time import dmx import utils import audio import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) def main(): parser = argparse.ArgumentParser(description='Stagebuzzer') parser.add_argument('-l', '--log-level', action='store', dest='log...
33.479452
112
0.729133
65662631b09e374d52785c1817c4445bd8ca961e
19,462
py
Python
Packs/Inventa/Integrations/Inventa/Inventa_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Inventa/Integrations/Inventa/Inventa_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/Inventa/Integrations/Inventa/Inventa_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
"""Base Integration for Cortex XSOAR - Unit Tests file Pytest Unit Tests: all funcion names must start with "test_" More details: https://xsoar.pan.dev/docs/integrations/unit-testing MAKE SURE YOU REVIEW/REPLACE ALL THE COMMENTS MARKED AS "TODO" You must add at least a Unit Test function for every XSOAR command you...
32.654362
117
0.659182
656ef7231909de3321b0d700e27d07971fef84c0
6,672
py
Python
app/src/assets/resources/locations/latloncitysize_enrichment.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
app/src/assets/resources/locations/latloncitysize_enrichment.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
app/src/assets/resources/locations/latloncitysize_enrichment.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
import csv import requests class PlaceNamePostcode: """Container for a openstreetmap result.""" def __init__(self, osmid, place_name, postcode, state): """Sets all parameter of PlaceNamePostcode.""" self.osmid = osmid self.place_name = place_name self.postcode = postcode ...
35.870968
118
0.679107
02cb2e75a7d34005b87e363cabc2a03a9344ffc9
1,568
py
Python
apps/forms/users.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
apps/forms/users.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
apps/forms/users.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from flask_wtf import FlaskForm from wtforms import StringField,PasswordField,SubmitField,BooleanField from wtforms.validators import DataRequired,Length,EqualTo,Email,ValidationError from flask_wtf.file import FileField,FileRequired,FileAllowed from apps.models import User # from apps.extensions import photos #用户注册表单...
44.8
102
0.739796
a231d479e4d0ce994221587797d4281536adccf1
2,052
py
Python
python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/Deletion.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/Deletion.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/Deletion.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import tkinter as tk from tkinter import * from tkinter import font from tkinter.filedialog import askopenfilename from tkinter import ttk import textwrap from AppOperations import AppOperations as ao # the class build for this purpose #from tkMessageBox import * from tkinter import messagebox info = [ ("Name (...
26.307692
108
0.665205
a28247307ce0efe59ba35e0be0731108b4cedd5d
37
py
Python
python/python_backup/PRAC_PYTHON/s1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/s1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/s1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import math f=math.sin(30) print(f)
12.333333
15
0.702703
a290a1c20eeaf152f3d3084c6bcee4868c43c7e1
1,641
py
Python
codeit/oop/liskov_substitution_principle/employee.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/liskov_substitution_principle/employee.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/liskov_substitution_principle/employee.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class Employee: """직원 클래스""" company_name = '코드잇 버거' raise_percentage = 1.03 def __init__(self, name, wage): """인스턴스 변수 설정""" self.name = name self._wage = wage def raise_pay(self): """직원 시급을 인상하는 메소드""" self._wage *= self.raise_percentage @property ...
24.492537
61
0.603291
a2cf1e9b3366b5132b57ebf739f66b0b2239a329
1,011
py
Python
IdeaProjects/MachineLearning/NeuralNetwork.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
IdeaProjects/MachineLearning/NeuralNetwork.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
IdeaProjects/MachineLearning/NeuralNetwork.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- """ @author: miko """ import numpy as np def sigmoid(x): return 1 / (1 + np.exp(-x)) # derivative of sigmoid # sigmoid(y) * (1.0 - sigmoid(y)) # the way we use this y is already sigmoided def dsigmoid(y): return y * (1.0 - y) class Network(object): def __init__(self,sizes): ...
25.275
82
0.586548
a2d32f5b49fa0111c6844cc32da461e0567ad1cc
419
py
Python
IVTp/2014/LOHINA_L_M/task_1_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/LOHINA_L_M/task_1_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/LOHINA_L_M/task_1_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 11. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Алессандро Филипели. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. #Лохина Л.М. #12.03.2016 print ("Алессандро Филипепи более известен под псевдонимом...
41.9
211
0.813842
cbf424f06cfec84ddda769f9e7910568cb4a724b
1,467
py
Python
solutions/im2recipe/src/data_loader.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/im2recipe/src/data_loader.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/im2recipe/src/data_loader.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import torch.utils.data as data from PIL import Image import os import sys import pickle import numpy as np import lmdb import torch from src.config import file_keys_pkl class RecipeLoader(data.Dataset): def __init__(self, data_path=None): if ...
27.679245
82
0.604635
5a7a035d9369013e230bbf97f4d40fb7d5a8ecde
1,515
py
Python
IVTp/2014/Shcherbakov_R_A/task_12_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Shcherbakov_R_A/task_12_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Shcherbakov_R_A/task_12_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 12. Вариант 22. # Разработайте игру "Крестики-нолики". (см. М.Доусон Программируем на Python # гл. 6). # Щербаков Р.А. # 22.05.2016 print(""" Добро пожаловать на игру крестики нолики чтобы сделать ход введите число от 0 до 8 0 | 1 | 2 --------- 3 | 4 | 5 ------...
26.12069
76
0.446205
f00ab9ca098f0d6cff7cf89e7d8dfe0d77297f19
15,800
py
Python
Packs/Accessdata/Integrations/Accessdata/test_data/constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Accessdata/Integrations/Accessdata/test_data/constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Accessdata/Integrations/Accessdata/test_data/constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
MOCK_BASE_URL = "quincfake" MOCK_URL = MOCK_BASE_URL + ":4443/" FAKE_SITESERVER_TOKEN = "86c8a888-49e3-446f-9d37-467429200717" MOCK_LEGACYAGENT_URL = "fakelegacyagent" MOCK_PARAMS = { 'insecure': True, 'server_name': MOCK_BASE_URL, 'Token': FAKE_SITESERVER_TOKEN, 'proxy': False } JOB_JUST_WITHOUT_CASE...
254.83871
8,196
0.467595
4a14be7441110d461eb3993fb4d378c7ac3691ad
2,380
py
Python
Modell/eingabeAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/eingabeAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/eingabeAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import sounddevice as sd from PIL import Image import time import numpy as np import tensorflow.keras.models class schlange: def __init__(self,max_groesse): self.__max_groesse = max_groesse self.__voll = False self.__liste = [] def anhaengen(self,ding): self.__liste.append(ding) ...
34
108
0.686975
763620c94ea9614ef443b63bf8f1567e580fdd9d
219
py
Python
Python/DateAndTime/time_delta.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/DateAndTime/time_delta.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/DateAndTime/time_delta.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
from datetime import datetime for _ in range(int(input())): t1 = datetime.strptime(input(), '%a %d %b %Y %X %z') t2 = datetime.strptime(input(), '%a %d %b %Y %X %z') print(abs(int((t1-t2).total_seconds())))
36.5
56
0.598174
8c0120f984fb13ede7b88e3dc26a19fffad6ac08
7,410
py
Python
src/test/tests/databases/OpenFOAM.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/OpenFOAM.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/OpenFOAM.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: OpenFOAM.py # # Programmer: Hank Childs # Date: September 8, 2006 # # Modifications: # Jeremy Meredith, Tue Jul 15 10:43:58 EDT 2008 # Changed number of vectors in vector plot to match the ...
29.64
94
0.678138
4ff88c4fba5e8cb527e34e5e77f4460d7196ee2c
1,034
py
Python
research/nlp/dscnn/src/model_utils/local_adapter.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/dscnn/src/model_utils/local_adapter.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/dscnn/src/model_utils/local_adapter.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License Version 2.0(the "License"); # you may not use this file except in compliance with the License. # you may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0# # # Unless required by applicable law or agreed to ...
27.945946
86
0.667311
8b276b9815073eb2db8183850aceb3b6bfb18744
3,523
py
Python
src/doc/tutorials/tutorial_examples/dbreak3d/dbreak_plot_pathlines.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/doc/tutorials/tutorial_examples/dbreak3d/dbreak_plot_pathlines.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/doc/tutorials/tutorial_examples/dbreak3d/dbreak_plot_pathlines.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# # file: dbreak_plot_pathlines.py # info: Source in VisIt's Commands window with both # dbreak3d_fluid.visit and dbreak3d_boundaries.silo open. # def select_dbreak3d_fluid_db(): srcs = GetGlobalAttributes().sources for src in srcs: if src.count("dbreak3d_fluid"): ActivateDatabase(src...
31.738739
103
0.701107
2cdea7cb92e01e306d5a8de35f02dfc9246c7fe1
943
py
Python
examples/myqueryset/get_/migrations/0001_initial.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/myqueryset/get_/migrations/0001_initial.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/myqueryset/get_/migrations/0001_initial.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
# Generated by Django 3.1.7 on 2021-03-25 07:38 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='product', fields=[ ('id', models.AutoField(...
34.925926
114
0.601273
ad780da4766815b937eb1bd81cad114ec523af5b
49
py
Python
sandbox/location/location.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
null
null
null
sandbox/location/location.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
1
2022-03-22T23:50:32.000Z
2022-03-22T23:50:32.000Z
sandbox/location/location.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
null
null
null
import string class Location: name: string
8.166667
16
0.714286
a8e95422e3675907e17a2a79e6f74d22756fb0aa
1,109
py
Python
Shodan-master/shodan.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Shodan-master/shodan.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Shodan-master/shodan.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python3 #github.com/AngelSecurityTeam/Shodan import requests, sys, json def tldSorting(subdomainList): localsortedlist = list() finallist = list() for item in subdomainList: Reverseddomain = ".".join(str(item).split('.')[::-1]) localsortedlist.append(Reverseddomain) sort...
28.435897
80
0.623084
d15a1fb0327fcb6b0766aba769c9e7286e13d6b9
5,501
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_bgp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_bgp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_bgp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import pa...
49.116071
103
0.61916
0f402653ac49f98e5a3ab4d2ac60d8f15673be3a
139
py
Python
scripts/hello_world_aarushi.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_aarushi.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_aarushi.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# LANGUAGE: Python # ENV: Python 2 # AUTHOR: Aarushi Arya # GITHUB: https://github.com/aarushi15002 print 'Hello World' print 'By Aarushi'
19.857143
41
0.733813
0e370fcc0e0c3e145a4829d5f6173cee1e017dfe
190
py
Python
Python/Collections/most_commons.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/most_commons.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/most_commons.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
from collections import Counter, OrderedDict class OrderedCounter(Counter, OrderedDict): pass for i in OrderedCounter(sorted(input())).most_common(3): print(' '.join(map(str, i)))
23.75
56
0.731579
bc19baa07e3fa871ab832ba6281b8ee8ed254ea9
44,100
py
Python
feedcrawler/myjd.py
rix1337/RSScrawler
5a1c067148310c03321329d3fa409a4e4144fce7
[ "MIT" ]
63
2016-03-21T21:35:07.000Z
2021-03-20T22:50:34.000Z
feedcrawler/myjd.py
rix1337/RSScrawler
5a1c067148310c03321329d3fa409a4e4144fce7
[ "MIT" ]
200
2016-03-15T21:45:26.000Z
2021-04-03T10:47:45.000Z
feedcrawler/myjd.py
rix1337/RSScrawler
5a1c067148310c03321329d3fa409a4e4144fce7
[ "MIT" ]
25
2016-03-15T20:44:33.000Z
2020-10-25T09:43:48.000Z
# -*- coding: utf-8 -*- # FeedCrawler # Projekt von https://github.com/rix1337 import re import time from rapidfuzz import fuzz import feedcrawler.myjdapi from feedcrawler import internal from feedcrawler.common import check_hoster from feedcrawler.common import is_device from feedcrawler.common import longest_subst...
38.148789
134
0.538549
cb5ba4d87f5010435f9f7c9d734f490ff752bbff
604
py
Python
leetcode/017-Letter-Combinations-of-a-Phone-Number/LettCombPhoneNum_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/017-Letter-Combinations-of-a-Phone-Number/LettCombPhoneNum_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/017-Letter-Combinations-of-a-Phone-Number/LettCombPhoneNum_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ def comb(digits, d2l): if not digits: return [""] res = [] for c in d2l[int(digits[0])]: for suffix ...
25.166667
56
0.418874
cbd0693d6e80f25fcaa8c578113e5f21bc1dac4a
4,465
py
Python
official/cv/ctpn/src/eval_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ctpn/src/eval_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ctpn/src/eval_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.77451
108
0.602464
3836d1ddf55d56dbcb6abc870969fc6e3d0f589f
28,959
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_wx/wxmisc.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_wx/wxmisc.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_wx/wxmisc.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
31.408894
107
0.55765
699a5027b6e478683fd3e6fcf46b9e27bf77421b
2,639
py
Python
test/sqlite_test.py
littlecharacter/AutoWork
feebb8459f889b7a9165073be8fd44ba544cbb35
[ "Apache-2.0" ]
null
null
null
test/sqlite_test.py
littlecharacter/AutoWork
feebb8459f889b7a9165073be8fd44ba544cbb35
[ "Apache-2.0" ]
null
null
null
test/sqlite_test.py
littlecharacter/AutoWork
feebb8459f889b7a9165073be8fd44ba544cbb35
[ "Apache-2.0" ]
null
null
null
# https://www.jianshu.com/p/ba8a27cf7da1 # https://www.cnblogs.com/goldsunshine/p/15259246.html import sqlite3 import peewee import datetime import core.orm as orm db = peewee.SqliteDatabase('../db/auto_work.db') class BaseModel(peewee.Model): class Meta: database = db class WorkItem(BaseModel): na...
26.128713
112
0.67033
c7f6f7b267bfcb5456d80223094c0407b476f95c
4,844
py
Python
csv_export/noyb_exporter.py
cyber-perikarp/auskunftsbegehren_at_adressen_parser
bc3ba4b7d3fc1da29fa5e505131cc1c7e90fd9b9
[ "MIT" ]
null
null
null
csv_export/noyb_exporter.py
cyber-perikarp/auskunftsbegehren_at_adressen_parser
bc3ba4b7d3fc1da29fa5e505131cc1c7e90fd9b9
[ "MIT" ]
null
null
null
csv_export/noyb_exporter.py
cyber-perikarp/auskunftsbegehren_at_adressen_parser
bc3ba4b7d3fc1da29fa5e505131cc1c7e90fd9b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ################################### # https://www.mydatadoneright.eu/ # ################################### import csv import argparse import sys import os import logzero from logzero import logger as log from locale import strxfrm #### Config #### # CLI Params parser =...
39.704918
505
0.654831
2a23330201cad0e91bf936499e19d50b7918d651
1,011
py
Python
Django/ballon/migrations/0005_auto_20180828_0202.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/migrations/0005_auto_20180828_0202.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/migrations/0005_auto_20180828_0202.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-28 09:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ballon', '0004_auto_20180828_0041'), ] operations = [ migrations.AddField( model_name='main', ...
28.885714
113
0.586548
faf366419b6021451d441b1ebc5a409a3c0381f1
3,232
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/detector/aggregateFlows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/detector/aggregateFlows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/detector/aggregateFlows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2007-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
34.752688
116
0.651609
faf492e3ce5ea88eb7f231452b51532fc1c5aa71
133
py
Python
src/backend/utils/printing.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
2
2021-04-07T03:12:33.000Z
2021-05-25T10:01:40.000Z
src/backend/utils/printing.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
src/backend/utils/printing.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
3
2021-04-07T03:12:44.000Z
2021-04-13T11:21:03.000Z
from typing import Iterable def iter_to_str(iter: Iterable, sep: str = ', '): return sep.join(item.__str__() for item in iter)
22.166667
52
0.699248
87a666f755277a3a5a52f1c6132d56c5d61ca051
873
py
Python
source/blog/models.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/models.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/models.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from datetime import datetime class VisitorIp(models.Model): pub_date = models.DateTimeField('GET reqest date ', default=datetime.now()) ip_address = models.GenericIPAddressField() def __str__(self): return self.pub_date class BlogPost(models.Model): title = m...
31.178571
79
0.730813
35b873ab96d9af409f2de9a7194c2fda5fa69a7f
13,314
py
Python
tests/test_blueprint.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
tests/test_blueprint.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
tests/test_blueprint.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from http import HTTPStatus from typing import TypedDict, cast from unittest.mock import MagicMock from spangle.api import Api from spangle.blueprint import Blueprint from spangle.exceptions import NotFoundError from spangle.handler_protocols import RequestHandlerProtocol, use_params from ward import each, fixture, ra...
29.390728
87
0.638876
ea77b7a9d2731c8e5800321f96377fef8aa3fe2c
318
py
Python
modeling/head/compose_head.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/head/compose_head.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/head/compose_head.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2021/1/4 下午4:07 """ import torch import torch.nn as nn import torch.nn.functional as F class ComposeHead(nn.Module): def __init__(self,head:nn.Module): pass def forward(self, inputs): pass
15.142857
38
0.657233
5785f7957f549807260781ecca95527c2e8450a4
4,027
py
Python
gemtown/modelers/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/modelers/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/modelers/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-04-20 06:10 from django.db import migrations, models import multiselectfield.db.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CommentOfModeler', field...
63.920635
388
0.570151
5237ac26d8c22b37f8f58ce15b7542c92241fad0
3,970
py
Python
src/test/tests/databases/miranda.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/miranda.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/miranda.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: miranda.py # # Tests: miranda raw dumps # # Programmer: David Bremer # Date: Feb 20, 2007 # # Modifications: # Jeremy Meredith, Tue Jul 15 10:43:58 EDT 2008 # Changed number of vecto...
25.448718
78
0.545088
524568e68bdcdbd91ba1ae621c76974384545c34
616
py
Python
PythonPro/demo/str.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/str.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/str.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
#coding=utf-8 #字符串 print ("My name is %s and weight is %d kg!" % ('Zara', 21) ) # a = "Hello" # b = "Python" # # print ("a + b 输出结果:", a + b) # print ("a * 2 输出结果:", a * 2) # print ("a[1] 输出结果:", a[1]) # print ("a[1:4] 输出结果:", a[1:4]) # # if( "H" in a) : # print ("H 在变量 a 中") # else : # print ("H 不在变量 a 中") # # ...
17.111111
60
0.477273
5298c9d6d7aade93adc8d1cea737fd580d13b8fd
431
py
Python
lr.py
sivadax/NJLabs
0273e363f6b3d1da8dbe51c1e78824b77b12eb8c
[ "MIT" ]
null
null
null
lr.py
sivadax/NJLabs
0273e363f6b3d1da8dbe51c1e78824b77b12eb8c
[ "MIT" ]
null
null
null
lr.py
sivadax/NJLabs
0273e363f6b3d1da8dbe51c1e78824b77b12eb8c
[ "MIT" ]
null
null
null
# Load the Pandas libraries with alias 'pd' import pandas as pd import numpy as np import tensorflow as tf import matplotlib.pyplot as plt # Read data from file 'filename.csv' # (in the same directory that your python process is based) # Control delimiters, rows, column names with read_csv (see later) dat...
23.944444
67
0.723898
21ca05849d58f9cf0b17daab94e9ce67e96dc3d0
11,479
py
Python
coco2yolov5-converter/src/sbb2yolo.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
coco2yolov5-converter/src/sbb2yolo.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
coco2yolov5-converter/src/sbb2yolo.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
""" Main """ import argparse import kwcoco import shutil import sys from pathlib import Path from random import random import logging from converter.convert_util import convertRelCoco2Yolo, convertAbsCoco2Yolo from converter.filesystem_util import FileSystemUtil from converter.txt_util import TxtUtil from converter.ya...
64.853107
3,150
0.690652
10f3254a3c43bc4705ee6e29e289dd467c8a3712
18,323
py
Python
daemon/experiment_handler_daemon.py
nikhil/RAS
1ed1f70872b700bb422128a537ab4ddb4fbeb97f
[ "MIT" ]
null
null
null
daemon/experiment_handler_daemon.py
nikhil/RAS
1ed1f70872b700bb422128a537ab4ddb4fbeb97f
[ "MIT" ]
null
null
null
daemon/experiment_handler_daemon.py
nikhil/RAS
1ed1f70872b700bb422128a537ab4ddb4fbeb97f
[ "MIT" ]
null
null
null
from daemon import Daemon import sys import time import os from pymongo import MongoClient import sendgrid from sendgrid.helpers.mail import * import re import subprocess import shutil import json import multiprocessing.dummy as threads import yaml project_dir = os.getcwd()[:-7] class experiment_handler(Daemon): ...
51.469101
292
0.712656
1d85625f2d14216ea37f84cceb42af62f264aa1c
15
py
Python
Python X/Classes and Objects II.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
1
2016-11-03T14:06:14.000Z
2016-11-03T14:06:14.000Z
puffin/test/assign.py
lucian1900/puffin
d34065389d2c67a3f2a20779528efee973064a05
[ "Artistic-2.0", "PSF-2.0" ]
null
null
null
puffin/test/assign.py
lucian1900/puffin
d34065389d2c67a3f2a20779528efee973064a05
[ "Artistic-2.0", "PSF-2.0" ]
null
null
null
a = 2 print(a)
5
8
0.533333
d596d6a31eb97dc9d43ebad91f44dac8d20f3668
196
pyde
Python
sketches/cuteplanet03/cuteplanet03.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/cuteplanet03/cuteplanet03.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/cuteplanet03/cuteplanet03.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Klasse Kitty from kitty import Kitty kitty = Kitty(275, 100) def setup(): size(640, 480) kitty.loadPic() def draw(): background(0, 80, 125) kitty.move() kitty.display()
12.25
26
0.617347
6362420e69f26ea11bb5f9d29215b454e9eeecbe
503
pyde
Python
sketches/sierpinskiifs/sierpinskiifs.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/sierpinskiifs/sierpinskiifs.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/sierpinskiifs/sierpinskiifs.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
import random as r i = 0 x = y = 0 def setup(): size(640, 480) background(0) colorMode(HSB, 360, 100, 100) frameRate(1200) def draw(): global i, x, y p = r.randint(0, 2) if (p == 0): x /= 2 y = (y + 480)/2 elif (p == 1): x = (x + 320)/2 y /= 2 else:...
16.766667
33
0.411531
89428df6963780ddddffc9179ee110262243a1ac
151,994
py
Python
comtypes/gen/_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
comtypes/gen/_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
comtypes/gen/_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
# -*- coding: mbcs -*- typelib_path = 'UIAutomationCore.dll' _lcid = 0 # change this if required from ctypes import * import comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0 from comtypes import GUID from ctypes import HRESULT from comtypes import helpstring from comtypes import COMMETHOD from comtypes import d...
40.00895
127
0.618945
981ee148a891b76e904ce950453c16eb43fb1a06
10,267
py
Python
research/cv/siamRPN/src/data_loader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/siamRPN/src/data_loader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/siamRPN/src/data_loader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
49.124402
119
0.605143
f6e680e7927022702a4f5f875b883b7afe639417
2,535
py
Python
spider/master_Science_Technology_od.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/master_Science_Technology_od.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/master_Science_Technology_od.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* # 获得爬取“宗教”推文所需信息 import json from Config_Science_Technology_od import get_noau_config from datetime import datetime, timedelta _, db, r = get_noau_config() # 数据库配置 def get_date(date): # 获取日期集合 dates = date.split('\n') date_list = [] for i in dates: if not...
27.554348
102
0.57002
f6f15b67f56ee51fc8b1ba2ae5be60b0712b7bff
607
py
Python
challenges/blackrock/better_spending.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
challenges/blackrock/better_spending.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
challenges/blackrock/better_spending.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
# 4083.843 # 4091.584 - 28 42 38 # 4091.494 - 28 43 37 # 4084.348 - 29 41 38 # I1=(5000*29*(1.055))/100 # I2=(5000* 42 * (100-29) * (1.055**2))/(100**2) # I3=(5000* 37 * (100-42) * (100-29) * (1.055**3))/(100**3) comb = [(28, 42, 38), (28, 43, 37), (29, 41, 38), (29, 42, 37), (29, 43, 36), (30, 41, 37), (30, 42, 36)] ...
23.346154
105
0.507414
122dfc0801d1f11112a1fadfac926b275535ddf0
2,127
py
Python
PINp/2014/Valkovskey_M_A/task_9_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_9_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_9_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9. Вариант 49. #Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо буква в слове, причем программа может отвечать только "Да" и "Нет". Вслед за тем игрок должен попробовать от...
29.541667
309
0.600376
1249ae893df2f6770b36b89600831ca16fb1f411
1,423
py
Python
RDS/circle3_central_services/research_manager/src/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/research_manager/src/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/research_manager/src/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
""" Module that monkey-patches json module when it's imported so JSONEncoder.default() automatically checks for a special "to_json()" method and uses it to encode the object if found. """ from jaeger_client.metrics.prometheus import PrometheusMetricsFactory from jaeger_client import Config as jConfig from connexion_pl...
30.934783
87
0.703443
c3b50040b1ff685725798eed99d20a06eb3ca7af
1,608
py
Python
speakerphat/playMorse.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
speakerphat/playMorse.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
speakerphat/playMorse.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math import time import sys import pygame import morse import speakerphatled TIME_FOR_UNIT = 1.0 / 3.0 def outputText(text): morseCode = morse.convertTextToMorseCode(text) outputMorseCode(morseCode) def outputMorseCode(morseCode): for morseCodeCharacter in morseCo...
23.647059
68
0.741294
9c9d2cd4ecb96b500f11acada493b6fd7b52a894
1,028
py
Python
computer-networking-a-top-down-approach/cp2/server.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
3
2021-08-04T07:59:48.000Z
2022-03-26T23:58:17.000Z
computer-networking-a-top-down-approach/cp2/server.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
computer-networking-a-top-down-approach/cp2/server.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
#import socket module from socket import * serverSocket = socket(AF_INET, SOCK_STREAM) #Prepare a sever socket serverSocket.bind(('', 1234)) serverSocket.listen(1) while True: #Establish the connection print('Ready to serve...') connectionSocket, addr = serverSocket.accept() try: message = connectionSock...
31.151515
118
0.707198
1428b4aa4fcb5b8e163eebeb67ab571e883829e0
349
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem3_1(txtfilename): infile = open(txtfilename) let = 0 for line in infile: lin_len = len(line) let = let + lin_len #for letter in line: # let = let + 1 print(line,end="") print() let = let - 1 print("There are",let,"letters in the file.") print() infile.close() #file1 = input("Enter the fil...
20.529412
46
0.647564
0d538795d61f95c7f37f0637805ac7f3f2619981
32
py
Python
main.py
erollison/stark
6bcb08edba2165fd1f9000a8c2484369f3c10a8b
[ "Apache-2.0" ]
null
null
null
main.py
erollison/stark
6bcb08edba2165fd1f9000a8c2484369f3c10a8b
[ "Apache-2.0" ]
null
null
null
main.py
erollison/stark
6bcb08edba2165fd1f9000a8c2484369f3c10a8b
[ "Apache-2.0" ]
null
null
null
##This will be the main.py file
16
31
0.71875
371bd37199fd7dfeb83f5626d86cdc99f053bd49
1,182
py
Python
python/oneflow/compatible/single_client/test/ops/test_demo.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_demo.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_demo.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
29.55
87
0.735195
25d3310c690a8db0d4fb8fd6884d476cd369f405
5,211
py
Python
.venv/Lib/site-packages/ipopt-0.1.9/test/lasso.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/ipopt-0.1.9/test/lasso.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/ipopt-0.1.9/test/lasso.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ cyipopt: Python wrapper for the Ipopt optimization package, written in Cython. Copyright (C) 2012-2015 Amit Aides Copyright (C) 2015-2018 Matthias Kümmerer Author: Matthias Kümmerer <matthias.kuemmerer@bethgelab.org> (original Author: Amit Aides <amitibo@tx.technion.a...
27.140625
109
0.59739
25f47ade3847352dfa186456799e447a860b4ca0
1,020
py
Python
utils.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
utils.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
utils.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
from google.appengine.api import users import os ADMIN_USERS = ['jigarkub@usc.edu', 'pashints@usc.edu'] def authenticate_user(self, email_list=None): if not email_list: email_list = [] email_list += ADMIN_USERS user = users.get_current_user() if user: if user.email().lower() in email...
32.903226
111
0.62451