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
3289a27db11da8f781588a22d6acc8298fcf6d22
701
py
Python
play/isbnverify.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
play/isbnverify.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
play/isbnverify.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
def verify(isbn): p = 1 # aktuell untersuhte isbn-Position i = 0 sum = 0 for c in isbn: i += 1 if (c == "-"): # - wird ignoriert continue # isbn-Position 1 - 9 if (p < 10): try: z = int(c) except: return False # c ist valide Ziffer sum += z * (11 - ...
21.90625
66
0.492154
de53f271d7c3e76a137ab566dc5f787db76cba7f
1,936
py
Python
udm-bildungslogin/usr/lib/python2.7/dist-packages/univention/udm/modules/bildungslogin_metadata.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
udm-bildungslogin/usr/lib/python2.7/dist-packages/univention/udm/modules/bildungslogin_metadata.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
udm-bildungslogin/usr/lib/python2.7/dist-packages/univention/udm/modules/bildungslogin_metadata.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Univention GmbH # # https://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as published by the Free Software Foundation. # # Binary versions ...
32.813559
74
0.775826
c20a3aa282127647e10f2a472107a33ede4eb8a1
3,001
py
Python
imbiss_RL_gym.py
Steinheilig/Imbiss
49f6ae865cef05b4999569cecaf5931db0fb2113
[ "MIT" ]
null
null
null
imbiss_RL_gym.py
Steinheilig/Imbiss
49f6ae865cef05b4999569cecaf5931db0fb2113
[ "MIT" ]
null
null
null
imbiss_RL_gym.py
Steinheilig/Imbiss
49f6ae865cef05b4999569cecaf5931db0fb2113
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Machine Learning applied to defeat a 30 years old DOS game... Game mechanics "Imbiss" v. 5.4 by T. Bauer for IBM PC, 1991, Public Domain Soft Actor Critic (SAC) Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor. Box Actions - discrete states possible....
31.260417
124
0.698767
f8701e2595b8758afe9489ec8f7153cd5e1df658
3,183
py
Python
tracker.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
tracker.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
tracker.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
1
2021-08-09T14:57:57.000Z
2021-08-09T14:57:57.000Z
# Aus: # https://github.com/mabhisharma/Multi-Object-Tracking-with-Kalman-Filter vom 20.06.2021 # Der Urheber (mabhisharma) stellt es allen Interessierten ohne Kosten frei zur Verfügung, siehe: # https://github.com/mabhisharma/Multi-Object-Tracking-with-Kalman-Filter/blob/master/LICENSE import numpy as np from kalmanF...
34.978022
100
0.592523
f8b1c612b644ae2480827b0461cb7911e6693218
234
py
Python
Algorithms/Implementation/repeated_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/repeated_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/repeated_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys s = input().strip() n = int(input()) if set(s) == {'a'}: print(n) sys.exit(1) cnt_a = s.count('a') len_s = len(s) d, m = divmod(n, len_s) cnt_a *= d cnt_a += s[0:m].count('a') print(cnt_a)
13.764706
26
0.559829
e48874619b06730232c0f1bf24fadadae2fdb7c3
1,818
py
Python
handlemoursedata/com/aaron/bean/component_property.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
handlemoursedata/com/aaron/bean/component_property.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
handlemoursedata/com/aaron/bean/component_property.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2019-04-19 @FileName: component_property.py @Description: 处理行业参数数据 @author: 'Aaron.Qiu' @version V1.0.0 ''' class ComponentProperty: '组件属性类' __category1 = '' __category2 = '' __category3 = '' __category4 = '' __categoryTypeNum = '' __propList = None ...
23.61039
168
0.650165
e4c012c9db3cf9012001d8c64a1b948b934fd6a8
314
py
Python
src/bo4e/enum/sparte.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/sparte.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/sparte.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Sparte(StrEnum): """ Unterscheidungsmöglichkeiten für die Sparte. """ STROM = "STROM" GAS = "GAS" FERNWAERME = "FERNWAERME" NAHWAERME = "NAHWAERME" WASSER = "WASSER" ABWASSER = "ABWASSER"
18.470588
48
0.659236
29c9ea1b1e492d8bd9bc1a6576cf4f84c17a0176
5,203
py
Python
7-assets/past-student-repos/Graphs-Notes-master/lecture3/lecture3.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Graphs-Notes-master/lecture3/lecture3.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Graphs-Notes-master/lecture3/lecture3.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import random import time import math class Queue(): def __init__(self): self.queue = [] def enqueue(self, value): self.queue.append(value) def dequeue(self): if self.size() > 0: return self.queue.pop(0) else: return None def size(self): r...
35.394558
218
0.61157
e4025f64eeb6bd11543fbb1916c4beae80225700
2,227
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/build/setup-traci.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/build/setup-traci.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/build/setup-traci.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) 2017-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...
37.745763
107
0.686574
7c54207dd58447528bdca8f7b42f0ac77d038200
7,691
py
Python
utils/populate_db.py
joshiji/getpin.in
f7add99ad44cadde882962ff7ada17675039a970
[ "MIT" ]
null
null
null
utils/populate_db.py
joshiji/getpin.in
f7add99ad44cadde882962ff7ada17675039a970
[ "MIT" ]
null
null
null
utils/populate_db.py
joshiji/getpin.in
f7add99ad44cadde882962ff7ada17675039a970
[ "MIT" ]
null
null
null
import os import sqlite3 import getopt import sys from uuid import uuid4 ( OFFICE_NAME, PINCODE, OFFICE_TYPE, DELIVERY_STATUS, DIVISION_NAME, REGION_NAME, CIRCLE_NAME, TALUK, DISTRICT_NAME, STATE_NAME, TELEPHONE, RELATED_SUBOFFICE, RELATED_HEADOFFICE, LOGITUDE, ...
28.591078
93
0.539202
7c888f701b8cad797289b7d3b725c00b7a378e91
5,290
py
Python
Packs/ApiModules/Scripts/AWSApiModule/AWSApiModule_test.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ApiModules/Scripts/AWSApiModule/AWSApiModule_test.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ApiModules/Scripts/AWSApiModule/AWSApiModule_test.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from AWSApiModule import * import pytest from pytest import raises VALIDATE_CASES = \ [{ 'aws_default_region': 'test', 'aws_role_arn': 'test', 'aws_role_session_name': 'test', 'aws_access_key_id': 'test', 'aws_secret_access_key': 'test' }, { 'aws_default_region': 'region tes...
29.553073
101
0.656711
6b2bae691964135f2a0774a91f3e90c4c40c6865
3,120
py
Python
workshop_petstagram/workshop_petstagram/main/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
workshop_petstagram/workshop_petstagram/main/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
workshop_petstagram/workshop_petstagram/main/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from datetime import date from django.core.validators import MinLengthValidator from django.db import models from workshop_petstagram.main.validators import validate_only_letters, validate_file_max_size_in_mb, validate_min_date, \ validate_max_date class Profile(models.Model): FIRST_NAME_MIN_LENGTH = 2 ...
21.22449
121
0.597436
8650e26858e930d2d46062b131ecf1ddd17b5d2a
1,657
py
Python
T1/07_robotic_drawing_exercise/robotic_drawing/robo_drawing_exercise.py
tetov/MAS-1920
e5cfe4afbc7c0e80c6adfd139624d028c0ca4bfb
[ "MIT" ]
3
2019-09-15T17:40:35.000Z
2020-11-07T01:47:29.000Z
T1/07_robotic_drawing_exercise/robotic_drawing/robo_drawing_exercise.py
tetov/MAS-1920
e5cfe4afbc7c0e80c6adfd139624d028c0ca4bfb
[ "MIT" ]
1
2019-09-17T22:59:19.000Z
2019-09-17T22:59:19.000Z
T1/07_robotic_drawing_exercise/robotic_drawing/robo_drawing_exercise.py
MAS-dfab/MAS-1920
93abb09b072b9a061496bc8a30bdce481a8735c5
[ "MIT" ]
8
2019-09-16T18:47:20.000Z
2019-10-15T17:08:08.000Z
import sys sys.path.append('C:/Users/jennyd/Desktop/DAVIDJENNY/robotic_drawing') import robotic_drawing as rd rd.ROBOT_IP = '192.168.10.10' import simple_ur_script as ur import simple_comm as c import Rhino.Geometry as rg import math as m execute = True #move_to = rg.Point3d(300.0,60.0,300.0) #rd.move_robot_vertic...
16.737374
69
0.707302
8661ca91951464463dae1e980273372bb6daf6b7
168
py
Python
superstructure/__init__.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
superstructure/__init__.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
superstructure/__init__.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
"""top-level package for superstructure.""" from .geist import * # noqa from .logik import * # noqa from .grundbegriffe import * # noqa from .utils import * # noqa
28
43
0.690476
86c819bb757f406ef994477712009f5e95636a78
2,190
py
Python
research/cv/AVA_hpa/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AVA_hpa/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AVA_hpa/postprocess.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...
42.115385
79
0.673516
d49bff2fc7063c9f4eaff2ce283b60616c9462ef
1,141
py
Python
src/Prototyp/flaskProject Kopie/helper.py
jay-hae/SE-Projekt-I3
1decc546dd04ee994277d03f59b80c33de164f11
[ "CC-BY-4.0" ]
3
2021-12-14T13:07:55.000Z
2022-03-28T14:24:44.000Z
src/Prototyp/flaskProject Kopie/helper.py
jay-hae/SE-Projekt-I3
1decc546dd04ee994277d03f59b80c33de164f11
[ "CC-BY-4.0" ]
35
2021-12-08T17:01:23.000Z
2022-03-30T10:43:13.000Z
src/Prototyp/flaskProject Kopie/helper.py
jay-hae/SE-Projekt-I3
1decc546dd04ee994277d03f59b80c33de164f11
[ "CC-BY-4.0" ]
null
null
null
import Login def dynamic_querries(col): all_vals = "%s," * len(col) all_cols = "" for column in col: all_cols += ", " + column return [all_cols[2:], all_vals[:-1]] def create_update_string(values): string = "" for i in values: string += " " + i + " = %s," return string ...
26.534884
124
0.659071
d4a5759c9a82fce09de6711ac9b1f08b3b0eb69b
643
py
Python
tarefas-poo/lista-01/calculos/view/paineis/painel_maior_que.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_maior_que.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_maior_que.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício calculos # -------------------------- # Classe responsável por descobrir se um número inteiro é maior que outro númeroo inteiro. from view.paineis.painel_abstrato import PainelAbstrato from model.calculos import maior_que class PainelMaiorQue(Paine...
30.619048
90
0.586314
07ed0bacae0569e36caaa8161e8a43d1880da635
12,188
py
Python
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset/test_asset.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset/test_asset.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset/test_asset.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from frappe.utils import cstr, nowdate, getdate, flt from erpnext.assets.doctype.asset.depreciation import post_depreciation_entries, scra...
31.57513
107
0.735478
13092781f89ca274638fd81ed04cd899e5496588
206
py
Python
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Sensor/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Sensor/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Sensor/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from lib.loralink import LoraLink from machine import I2C, ADC, RTC from deleter import Deleter from network import WLAN import time import os LoraLink(ssid='CasaSalsi', pw='S@lsi1968', debug=1) #Deleter()
22.888889
51
0.786408
131e565cf04ce8daa838b60f8f12c2b87a686b15
839
py
Python
v501_502/python/stehwelle.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v501_502/python/stehwelle.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v501_502/python/stehwelle.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np from scipy import optimize import matplotlib.pyplot as plt from scipy.stats import sem N, f = np.genfromtxt("python/stehwelle.txt", unpack=True) # N[-1] = 14 # def fit(x, a, b): # return a * x + b # params, covariance_matrix = optimize.curve_fit(fit, N, f) # errors = np.sqrt(np.diag(covariance_...
28.931034
80
0.650775
b9e66713f46c13775a2cbfb073525bb70e58a91f
143
py
Python
zencad/examples/1.GeomPrim/3.prim1d/segment.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/3.prim1d/segment.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/3.prim1d/segment.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ZenCad API example: segment.py """ from zencad import * m = segment((10, 0, 0), (10, 20, 30)) display(m) show()
11
37
0.608392
b9f894931ead1fb43d064d3d7794aca69cf87f3f
10,505
py
Python
Packs/FeedFireEye/Integrations/FeedFireEye/FeedFireEye_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedFireEye/Integrations/FeedFireEye/FeedFireEye_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedFireEye/Integrations/FeedFireEye/FeedFireEye_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import random from typing import Optional import pytest import requests_mock from FeedFireEye import Client, STIX21Processor, FE_CONFIDENCE_TO_REPUTATION, parse_timestamp, \ handle_first_fetch_timestamp from freezegun import freeze_time import demistomock as demisto def create_client(public_key: str = 'public_k...
26.798469
120
0.567634
1628a82eef4d88fdf40d3496ab633130cbe34a68
973
py
Python
UnaHttp/test.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
UnaHttp/test.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
UnaHttp/test.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
import unahttp if __name__ == "__main__": client = unahttp.HttpClient() r = client.get("http://ifconfig.me/ip"); # by defaults gzip_compress is enable you can change it with this # get method is keyword variadic function # r = client.get("http://ifconfig.me/ip",gzip_response=False) # r = client.ge...
42.304348
122
0.701953
bcff3a2f59358d156b54ff2b0739d0b685de71d6
7,931
py
Python
lale/lib/sklearn/nystroem.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
265
2019-08-06T14:45:43.000Z
2022-03-30T23:57:48.000Z
lale/lib/sklearn/nystroem.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
467
2019-08-08T02:01:21.000Z
2022-03-25T16:12:00.000Z
lale/lib/sklearn/nystroem.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
81
2019-08-07T19:59:31.000Z
2022-03-31T09:11:58.000Z
# Copyright 2019 IBM Corporation # # 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, ...
36.888372
152
0.462237
4c191092dabd95400ff641402e706720e5be4eab
259
py
Python
scripts/Main.py
walty19950301/MovieRecommend
b86e773b4c27159d8819c5bae1c87192ce47953a
[ "MIT" ]
null
null
null
scripts/Main.py
walty19950301/MovieRecommend
b86e773b4c27159d8819c5bae1c87192ce47953a
[ "MIT" ]
null
null
null
scripts/Main.py
walty19950301/MovieRecommend
b86e773b4c27159d8819c5bae1c87192ce47953a
[ "MIT" ]
null
null
null
import MovieDataset as md, WQUtil as util, RA util.log('Main', 'start') movies = md.Movies('..\\ml_ra\\movies.dat') ratings = md.Ratings('..\\ml_ra\\ratings.dat') ra = RA.RA(movies,ratings) ra.process() del ra del movies del ratings util.log('Main', 'end')
19.923077
46
0.683398
5d90266edcf0c7eb994963951643cef3283613be
1,129
py
Python
python/en/_packages/nltk/test_stop_words.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_packages/nltk/test_stop_words.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_packages/nltk/test_stop_words.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# test_stop_words.py from nltk.corpus import stopwords from nltk.tokenize import word_tokenize stop_words = set(stopwords.words("english")) #print(stop_words) text = "The second text is to show how to filter out stop words with NLTK." #print( text ) words = word_tokenize(text) print(words) filtered_tex...
33.205882
81
0.749336
5d1e7bd3d881694f809555e3cb304c756c640e38
205
py
Python
exercises/en/solution_01_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/solution_01_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/solution_01_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Import the English language class from spacy.lang.en import English # Create the nlp object nlp = English() # Process a text doc = nlp("This is a sentence.") # Print the document text print(doc.text)
17.083333
35
0.731707
db6bb8d42125d58193be9988ffecf290f3252e8a
71,709
py
Python
Packs/CofenseTriage/Integrations/CofenseTriagev3/CofenseTriagev3.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CofenseTriage/Integrations/CofenseTriagev3/CofenseTriagev3.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CofenseTriage/Integrations/CofenseTriagev3/CofenseTriagev3.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import time import requests import traceback from typing import Any, Callable, Dict, Tuple # Disable insecure warnings requests.packages.urllib3.disable_warnings(...
35.359467
119
0.650267
91788e2ad2515fac044530208a89b47f53c7ab83
1,323
py
Python
Pathfinding/Find_Exit.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Pathfinding/Find_Exit.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Pathfinding/Find_Exit.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
""" Finds the exit of the labyrinth Current solution: Find the spaces on the ouside not occupied by an obstacle Then look which one is reachable """ import Pathfinding.A_Star as A_Star import numpy as np def scan(grid): exits = [] # loops trough the outer frame of the grid an looks for free space...
30.068182
81
0.609977
535571d4e57b602f260fc7e483e8de96c8c643a1
332
py
Python
Contests/CCC/CCC '12 J1 - Speed fines are not fine.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '12 J1 - Speed fines are not fine.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '12 J1 - Speed fines are not fine.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
l = int(input()) s = int(input()) d = s - l if d <= 0: print("Congratulations, you are within the speed limit!") elif d >= 1 and d <= 20: print("You are speeding and your fine is $100.") elif d >= 21 and d <= 30: print("You are speeding and your fine is $270.") else: print("You are speeding and your fin...
30.181818
61
0.614458
be5887fe08b5a05d3fe71a29605562694e312a7e
2,739
py
Python
Python/hex_conversion/tests/test_hexstring.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/hex_conversion/tests/test_hexstring.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/hex_conversion/tests/test_hexstring.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import unittest from coding_parser import CodingString class HexStringTests(unittest.TestCase): def setUp(self) -> None: # bit order : "10101011", "00101110", "00000000", "00010101" # hex order: AB 2E 00 15 self.hex_string = "AB2E0015" def test_read_hexlist(self): """ ...
32.223529
74
0.618839
fe2c1c0face2db7690e8ebeac8578d308df85540
4,217
py
Python
examples/text_to_sql/IGSQL/model/attention.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_to_sql/IGSQL/model/attention.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_to_sql/IGSQL/model/attention.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
38.336364
81
0.648328
fe40f67485d29803726e240f18ad0cc3452b1c03
3,225
py
Python
research/nlp/atae_lstm/src/model_utils/my_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/atae_lstm/src/model_utils/my_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/atae_lstm/src/model_utils/my_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.247423
82
0.636589
60830b9f4f6b01f35546c61f08969a4d05ad8284
252
py
Python
ebenezer/atencion/views/results/serializer.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/views/results/serializer.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/views/results/serializer.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
from ..models.results import Result from rest_framework import serializers, viewsets # Serializers define the API representation. class ResultSerializer(serializers.ModelSerializer): class Meta: model = Result fields = '__all__'
22.909091
52
0.75
71b45fe2e4a6b5bc6df5adff571d4848b307a7b2
464
py
Python
CS305/assignment7/rdt/client.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS305/assignment7/rdt/client.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS305/assignment7/rdt/client.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
from rdt import socket import time text1 = 'wdnmdwsma' text2 = 'abcdefsgasdasd' if __name__ == '__main__': client = socket() client.send(text1.encode('utf-8'), ('127.0.0.1', 2333)) client.send(text2.encode('utf-8'), ('127.0.0.1', 2333)) with open('alice.txt') as f: client.send(f.read().encode...
25.777778
66
0.599138
c78e5543f5301895df94b4f3b921fe02ca413bac
1,193
py
Python
webserver/HuConLogMessage.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
2
2019-09-25T13:39:22.000Z
2019-09-26T10:06:13.000Z
webserver/HuConLogMessage.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
44
2019-09-25T14:35:48.000Z
2021-08-20T17:26:12.000Z
webserver/HuConLogMessage.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
8
2019-09-25T13:53:07.000Z
2022-02-24T19:23:44.000Z
#!/usr/bin/python """ HuConLogMessage.py - The HuCon queue class for log messages. Copyright (C) 2019 Basler AG All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ try: import Queue except: import queue a...
24.346939
82
0.602682
c7a3fe267d68c8fd2a1e68aff18a96b76ff24c1f
16,703
py
Python
myems-api/core/datasource.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-api/core/datasource.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-api/core/datasource.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
import falcon import simplejson as json import mysql.connector import config import uuid from datetime import datetime, timezone, timedelta from core.useractivity import user_logger, access_control class DataSourceCollection: @staticmethod def __init__(): """"Initializes DataSourceCollection""" ...
39.301176
119
0.503263
c7ae9a1e53951ca44659217543deadbe602feaba
1,884
py
Python
programm/general.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/general.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/general.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
""" Pyhton-Module for general informations like number ranges and global data @author: wimmer, simon-justus """ import os #global variables Running = True Gamepad = False leftspeedvalue = 0 rightspeedvalue = 0 # TODO: wrap data to get some kind of final static pattern class params: patient_id = range(0, 9999) ...
28.119403
84
0.697452
c7d7b1ac93b67bdda3afb608dd8915e0076192ea
100
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/55_tuplas/tuplas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/55_tuplas/tuplas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/55_tuplas/tuplas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Tuplas não tem como mudar """ string = (1, 2, 3, 4, 5, 6, 7) string = list(string) print(string)
16.666667
30
0.61
90dba6397826d16385b534119b9830f518b96a16
2,479
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/pipeline_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/pipeline_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/pipeline_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List, Optional from watchmen_auth import PrincipalService from watchmen_data_kernel.cache import CacheService from watchmen_data_kernel.common import DataKernelException from watchmen_meta.admin import PipelineService as PipelineStorageService from watchmen_meta.common import ask_meta_storage, ask_s...
39.349206
112
0.786608
31297614398652ab3c8812ecf7a567c2c362828b
1,071
py
Python
exercises/fr/exc_02_15.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_02_15.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_02_15.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.matcher import PhraseMatcher from spacy.tokens import Span import json with open("exercises/fr/countries.json", encoding="utf8") as f: COUNTRIES = json.loads(f.read()) with open("exercises/fr/country_text.txt", encoding="utf8") as f: TEXT = f.read() nlp = spacy.load("fr_core_news_sm") ...
30.6
74
0.708683
7dfc3874f45f281f61c9359d3050926e575eac08
7,393
py
Python
applications/neural_search/recall/milvus/feature_extract.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/neural_search/recall/milvus/feature_extract.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/neural_search/recall/milvus/feature_extract.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.747312
132
0.646152
b40d0788e1e2db22df77acae83386bcb5d12b721
2,544
py
Python
python/oneflow/compatible/single_client/nn/modules/tensor_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/compatible/single_client/nn/modules/tensor_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/nn/modules/tensor_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.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...
27.652174
80
0.672956
6f126b349659952728106b55122125e4d4215c70
2,023
py
Python
retro/cores/gba/cinema/gb/mooneye-gb/update.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/cinema/gb/mooneye-gb/update.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/cinema/gb/mooneye-gb/update.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
#!/usr/bin/env python import os import os.path import shutil import yaml from cinema.util import dictMerge suffixes = { 'C': 'CGB', 'S': 'SGB', 'A': 'AGB', 'mgb': 'MGB', 'sgb': 'SGB', 'sgb2': 'SGB2', 'cgb': 'CGB', 'agb': 'AGB', 'ags': 'AGB', } def ingestDirectory(path, dest): f...
32.629032
131
0.503213
48bc808ed3af71f945b80d34b67baa9c927bc897
9,388
py
Python
official/cv/crnn_seq2seq_ocr/src/lstm.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/crnn_seq2seq_ocr/src/lstm.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/crnn_seq2seq_ocr/src/lstm.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...
47.654822
118
0.577759
960866d7a040b8878d1e361da7aa29a397b03989
434
py
Python
loesungen/chapter07/dbscan.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter07/dbscan.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter07/dbscan.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from sklearn.datasets import load_iris from sklearn.cluster import DBSCAN import numpy as np X, y = load_iris(return_X_y=True) dbscan = DBSCAN(eps = 0.6, min_samples = 4).fit(X) labels = dbscan.labels_ print(labels) n_clusters = len(set(labels)) - (1 if -1 in labels else 0) print("Anzahl Cluster:", n_clusters) n_noisy...
33.384615
64
0.746544
82c958033edcfe51b1ea9c922e210fc77a46c74f
488
py
Python
exercises/pt/solution_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/solution_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/solution_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.en import English from spacy.tokens import Token nlp = English() # Definir o atributo "is_country" com o valor padrão como falso (False) Token.set_extension("is_country", default=False) # Processar o texto e atribuir o atributo is_country com valor verdadeiro (True) para o token "Spain" doc = nlp("I ...
32.533333
101
0.758197
c4cb0a79480291661cf60cd18c4cd0e5aeaa8918
1,532
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Oplog/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Oplog/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2017-09-17T02:33:18.000Z
2020-12-18T23:20:59.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Oplog/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
from Oplog import Oplog # NOQA from OplogState import OplogState # NOQA from Resolver import Resolver # NOQA from Tailer import Tailer # NOQA def config(parser): parser.add_argument("--oplog.compression", dest="oplog.compression", choices=["none", "gzip"], default="none", help="Compres...
72.952381
133
0.680157
48401a2387c3bd16c2dfa7cccd81ecd758cfc5a8
792
py
Python
python/geokml2gpx.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/geokml2gpx.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/geokml2gpx.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
#!/usr/bin/python3.1 # utf-8 import os.path from pykml import parser import gpxpy.gpx import re pattern = (r'(\d+[,\.]?\d*)\s' * 3)[:-2] # removes last whitespace kmlfile = input() gpxfile = os.path.splitext(kmlfile)[0]+'.gpx' with open(kmlfile) as f: doc = parser.parse(f) gpx = gpxpy.gpx.GPX() gpx_track = gpx...
27.310345
84
0.699495
6f8eee01d2602197b1f92c0a5c9e6569f8133c68
413
py
Python
skil/__init__.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
skil/__init__.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
skil/__init__.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
from skil.base import * from skil.deployments import * from skil.experiments import * from skil.models import * from skil.workspaces import * from skil.context import * from skil.services import * from skil.resources import * from skil.jobs import * from skil.spark import * from skil.utils import * from skil.config imp...
25.8125
51
0.791768
b502bed9c2857b9ea9fb4db89b70eccf1f63ef7c
1,052
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/binary_search.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
4
2021-08-31T00:56:40.000Z
2021-11-29T03:08:55.000Z
7-assets/past-student-repos/data_struct_and_algo-master/binary_search.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
3
2022-02-14T18:48:11.000Z
2022-03-30T05:26:26.000Z
7-assets/past-student-repos/data_struct_and_algo-master/binary_search.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-08-31T00:54:51.000Z
2021-08-31T00:54:51.000Z
arr=[1,2,3,4,5,6] x=5 print("iterative approach to find element using") def binary_search_iterative(arr,l,r,x): while(l<=r): mid=l+(r-l)//2 if(arr[mid]==x): return mid elif(arr[mid]<x): l=mid+1 else: l=r-1 return -1 result_iterative=binary_...
23.909091
62
0.569392
962a28ceea2752abd8eb7e0cd77b8d7b426dde25
191
py
Python
Online-Judges/DimikOJ/Python/01-even-odd-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/01-even-odd-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/01-even-odd-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
how_many = int(input()) x = [] for i in range(how_many): x.append(int(input())) for i in x: if i % 2 == 0: print("even") else: print("odd") #print(x, type(x[0]))
15.916667
26
0.502618
965cfaf4043c3ec768c1c1877fd28a3f45ce039a
3,643
py
Python
Tests/test_models/test_sparse_layerless_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
Tests/test_models/test_sparse_layerless_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
Tests/test_models/test_sparse_layerless_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
import numpy.random from Tests import DATA_WIDTH, OUT_WIDTH, TEST_DATA, DATA_SIZE, XOR_SIMULATION, TEST_XOR, LEARNING_RATE, PRECISION from savageml.models import LayerlessSparseNetModel from savageml.simulations import BinaryXorSimulation import numpy as np HIDDEN_WIDTH = 10 EXPECTED_CONNECTION_COUNT = 88 PRECISION =...
40.932584
113
0.644249
73700f2d4894c1848252a53fdf613af5545020c7
5,910
py
Python
Packs/Perch/Integrations/Perch/Perch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Perch/Integrations/Perch/Perch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Perch/Integrations/Perch/Perch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json ALERTS = { "results": [ { "closed_at": "2020-11-20T01:18:30.224654Z", "community_id": 8, "count": 0, "created_at": "2020-11-19T15:28:03.451476Z", "dest_geo_ip": {}, "dest_ip": "8.8.8.8", "dest_port": 1122, ...
33.01676
110
0.481387
73a7ef3931b5fd08ad7d75def1bbb49605e20c02
10,949
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, erpnext import frappe.defaults from frappe import msgprint, _ from frappe.utils import cstr, flt, cint from erpnext.stock.stock_ledger im...
35.664495
159
0.729564
73aefdfdafa1f35d056754f5d1f3fe049bf27f1e
3,605
py
Python
Packs/Salesforce/Scripts/GenerateTimeZone/GenerateTimeZone.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Salesforce/Scripts/GenerateTimeZone/GenerateTimeZone.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Salesforce/Scripts/GenerateTimeZone/GenerateTimeZone.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 location_to_timezonesidkey = { "kiritimati": "Pacific/Kiritimati", "chatham": "Pacific/Chatham", "auckland": "Pacific/Auckland", "enderbury": "Pacific/Enderbury", "fiji": "Pacific/Fiji", "tongatapu": "Pac...
30.811966
65
0.623856
fbc2df3687253c4882f216ad3fb64809992ea23a
2,288
py
Python
main.py
juergenpabel/livecenter_sportschau_de
d4c08b14e71ff12fee712d83faa27ce566ed9d8b
[ "Apache-2.0" ]
null
null
null
main.py
juergenpabel/livecenter_sportschau_de
d4c08b14e71ff12fee712d83faa27ce566ed9d8b
[ "Apache-2.0" ]
null
null
null
main.py
juergenpabel/livecenter_sportschau_de
d4c08b14e71ff12fee712d83faa27ce566ed9d8b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # 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, softwar...
34.149254
107
0.756993
f7be1fda61887a6d6c229687d74049c0a142ae3e
25,046
py
Python
official/nlp/pangu_alpha/src/pangu_alpha.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/nlp/pangu_alpha/src/pangu_alpha.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/nlp/pangu_alpha/src/pangu_alpha.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
# 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...
50.700405
120
0.599976
f7fdeb55bc0326c1b03424292a432a31dc7976f6
769
pyde
Python
sketches/colldectrect/colldectrect.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/colldectrect/colldectrect.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/colldectrect/colldectrect.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from enemies import Enemy from player import Player def setup(): global enemy, player size(420, 420) this.surface.setTitle("Rectangle Collision Detection") enemy = Enemy(width/2 - 64, height/2 - 32) player = Player(20, 20) def draw(): global enemy, player background("#95ee0f5") if rect...
24.806452
58
0.592978
79341f143c4a81fb89741c9641b216048032a9bf
925
py
Python
chapter_ten/deploying_nightly_rust_in_rust/flask_app/src/data_access.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
21
2021-09-10T12:46:26.000Z
2022-03-23T02:50:39.000Z
chapter_nine/building_a_message_bus/src/data_access.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
null
null
null
chapter_nine/building_a_message_bus/src/data_access.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
6
2021-09-02T08:32:37.000Z
2022-03-17T21:15:25.000Z
from flask import _app_ctx_stack from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session from config import GlobalParams class DbEngine: def __init__(self) -> None: params = GlobalParams() self.base = dec...
33.035714
60
0.522162
e38b6383160941cea31cc4d075ca266c9bb1f88a
15,947
py
Python
repo/service.vpn.manager/libs/vpnapi.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/libs/vpnapi.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/libs/vpnapi.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Zomboided # # This program 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...
52.114379
168
0.615727
49eb6cf1e901f07dc5e103f4b0ae3b6b6a139397
2,367
py
Python
Paddle_Industry_Practice_Sample_Library/nlp_projects/relation_extraction/ernie/utils/metric.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-12T06:52:43.000Z
2022-01-12T06:52:43.000Z
Paddle_Industry_Practice_Sample_Library/nlp_projects/relation_extraction/ernie/utils/metric.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/nlp_projects/relation_extraction/ernie/utils/metric.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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 appli...
34.808824
138
0.679763
b70230747dae2f5c406d6128049ce913e33c2c98
1,910
py
Python
python_gui_tkinter/KALU/GARBAGE/TEST/Generic.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE/TEST/Generic.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE/TEST/Generic.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 CommandsGUI import CommandsGUI from CommandsGUI import ScreenGUI #from ...
26.901408
94
0.702618
b70aebfefe6261cd66358238afd45911afbc0377
678
py
Python
python/color/color.py
immortal/sandbox
761645c11399b15f624104accdf39688faf96a04
[ "BSD-3-Clause" ]
null
null
null
python/color/color.py
immortal/sandbox
761645c11399b15f624104accdf39688faf96a04
[ "BSD-3-Clause" ]
1
2020-06-25T03:59:50.000Z
2020-06-25T03:59:50.000Z
python/color/color.py
immortal/sandbox
761645c11399b15f624104accdf39688faf96a04
[ "BSD-3-Clause" ]
null
null
null
codeCodes = { 'black': u'0;30', 'bright gray': u'0;37', 'blue': u'0;34', 'white': u'1;37', 'green': u'0;32', 'bright blue': u'1;34', 'cyan': u'0;36', 'bright green': u'1;32', 'red': u'0;31', 'bright cyan': u'1;36', 'purple': u'0;35', 'bright red': u'1;31', 'yellow': u'0;33', 'bright purple':...
33.9
94
0.539823
b72eb2b0b8341107ecc3d73195d89f5242c523b4
448
py
Python
leetcode/953-Verifying-an-Alien-Dictionary/solution.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/953-Verifying-an-Alien-Dictionary/solution.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/953-Verifying-an-Alien-Dictionary/solution.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: def isAlienSorted(self, words: List[str], order: str) -> bool: a_to_l = dict(zip(order, 'abcdefghijklmnopqrstuvwxyz')) def translate(w): nw = '' for c in w: nw += a_to_l[c] return nw prev = '' for w in words: ...
24.888889
66
0.464286
3f93a55d44251ed6fb3de47520a13fdcb50f4434
3,769
py
Python
python/coursera_python/WESLEYAN/week4/test/ph_4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/test/ph_4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/test/ph_4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" This program maintains a database of names and phone numbers in a csv file called myphones.csv. It is run from the command line and is menu driven. To start it, save it in a directory and from the terminal run >python phones.py It can also be run from this editor in the usual way. Version FINAL: """ import os imp...
26.730496
78
0.579995
b78e437376eede18e57dce6e3555e8eec1808562
137
py
Python
input_eval.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
input_eval.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
input_eval.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
# Evaluate whether P(x) = k, where P is a polynomial x, k = map(int, input().split()) P = input() y = lambda x:eval(P) print(y(x) == k)
19.571429
52
0.59854
b7b4e2dbd0b024e4b686ee62347ae89e72b3bb60
15,962
py
Python
BtmManager-Prototyp-py/Gui_ui/BtM_gui.py
datend3nker/JuFo-BtM
a01e931ec4862c12e8a4861eed0661806ee2d19e
[ "BSD-Source-Code" ]
null
null
null
BtmManager-Prototyp-py/Gui_ui/BtM_gui.py
datend3nker/JuFo-BtM
a01e931ec4862c12e8a4861eed0661806ee2d19e
[ "BSD-Source-Code" ]
null
null
null
BtmManager-Prototyp-py/Gui_ui/BtM_gui.py
datend3nker/JuFo-BtM
a01e931ec4862c12e8a4861eed0661806ee2d19e
[ "BSD-Source-Code" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'BtM_gui.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWi...
57.417266
116
0.72209
127bc3f124f6362a8dc083fc4776d2806403ee48
3,890
py
Python
src/bo4e/enum/themengebiet.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/themengebiet.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/themengebiet.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Themengebiet(StrEnum): """ Über dieses ENUM kann eine thematische Zuordnung, beispielsweise eines Ansprechpartners, vorgenommen werden. """ ALLGEMEINER_INFORMATIONSAUSTAUSCH = "ALLGEMEINER_INFORMATIONSAUSTAUSCH" #...
54.027778
113
0.743702
35ff8fc119c465400e82a0eff0cf1a9507b02ab6
1,486
py
Python
backend/helpers/Config.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
backend/helpers/Config.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
backend/helpers/Config.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
import json import os class Config: @staticmethod def _loadConfig(): """ Loads the configuration file and returns it """ current_path = os.path.dirname(os.path.abspath(__file__)) config_file = open(current_path+"/../settings.json") return config_file @classmethod def _t...
34.55814
119
0.566622
671ed675ce100af0fa7be1c7ab9fe71a1f8495dc
10,654
py
Python
scripts/to_express_repo.py
jdehotin/IFC4.3.x-development
5652a25dac27242af8c60f1a33206d1697948ffa
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
scripts/to_express_repo.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
scripts/to_express_repo.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
# @todo: double encoding e.g Role &amp;lt;&amp;gt; # @todo: schema name not really discoverable # @todo: ControlPointsList / ColourList : LIST [2:?] OF LIST [2:?] # @todo: IfcClassificationReference.HasReferences self referential inverse # @todo: schema namespace different in constraint expression import sys import ht...
38.05
348
0.55275
220240e16c136191bb754df08fb9e07e32101a58
993
py
Python
src/classifiers/kff_classifier.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/classifiers/kff_classifier.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/classifiers/kff_classifier.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from extras import Logger from nltk import PorterStemmer # Classifier based on Kucera Francis frequency class KFFClassifier: # Constructor for the KFF classifier def __init__(self, dict_file): dictionary_...
26.131579
72
0.651561
224ea597c07540ae684b83c35fd4f00936f1eeb0
143
py
Python
hardware/chip/rtl872xd/hal/hal_test/spi/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/rtl872xd/hal/hal_test/spi/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/rtl872xd/hal/hal_test/spi/ucube.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
src = Split(''' spi_test.c ''') component = aos_component('spi_test', src) component.add_cflags('-Wall') component.add_cflags('-Werror')
15.888889
42
0.685315
2273990a79397a0ff96b34f61010d784ab6c1aca
3,485
py
Python
03_TicTacToe/2 Musterloesung/tic_tac_toe_modell.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/2 Musterloesung/tic_tac_toe_modell.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/2 Musterloesung/tic_tac_toe_modell.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
from enum import Enum class Pos(Enum): OBEN_LINKS = "oben links" OBEN_MITTE = "oben mitte" OBEN_RECHTS = "oben rechts" MITTE_LINKS = "mitte links" MITTE_MITTE = "mitte mitte" MITTE_RECHTS = "mitte rechts" UNTEN_LINKS = "unten links" UNTEN_MITTE = "unten mitte" UNTEN_RECHTS = "unten ...
33.190476
88
0.6066
452f982873007b371232a52720fc3ddf025e780d
1,400
py
Python
src/wordpress_plugin/build.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/wordpress_plugin/build.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/wordpress_plugin/build.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import os import subprocess import sys from distutils.dir_util import copy_tree import zipfile import shutil FRONTEND_LOCATION = "../frontend" def main(): cwd = os.path.dirname(os.path.realpath(__file__)) build = os.path.join(cwd, "build", "visuanalytics") frontend_path = os.path.normpath( os.pat...
25.454545
78
0.66
184f34592bbc074fe5724ebe7ec268aca2af0d75
75,003
py
Python
research/cvtmodel/resnet_ipl/src/seresnet152d.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/resnet_ipl/src/seresnet152d.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/resnet_ipl/src/seresnet152d.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
import mindspore.ops as P from mindspore import nn class Module0(nn.Cell): def __init__(self, conv2d_0_in_channels, conv2d_0_out_channels, conv2d_2_in_channels, conv2d_2_out_channels, conv2d_2_stride, conv2d_4_in_channels, conv2d_4_out_channels, conv2d_6_in_channels, conv2d_6_out...
67.814647
119
0.537565
188325d7675e03b9633a9c6d4b16fe4d4ed471f8
8,888
py
Python
src/bot.py
albertonl/jeff
0442284e70a708d464bd48ae383fffb8a2552472
[ "MIT" ]
null
null
null
src/bot.py
albertonl/jeff
0442284e70a708d464bd48ae383fffb8a2552472
[ "MIT" ]
null
null
null
src/bot.py
albertonl/jeff
0442284e70a708d464bd48ae383fffb8a2552472
[ "MIT" ]
null
null
null
import telebot import logging #from telegram.ext import Updater #from telegram.ext import CommandHandler import random from config.auth import token, my_bot_id from config.ident import unames, rnames # Names of the bot to use later in regMessageReply() names = ['bot','jeff','jeffrey','annoyingbot','annoying bot','Bot...
43.568627
234
0.581458
a14d2f2effdb2233a11609a8f2cf91cda49e06e7
3,689
py
Python
tests/test_app_config.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
tests/test_app_config.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
tests/test_app_config.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
""" Test App Config from files """ import os from unittest.mock import MagicMock from mock import patch import pytest from azure.core.exceptions import ResourceNotFoundError import fence from fence import app_init, _check_azure_storage from tests import test_settings from tests.conftest import FakeBlobServiceClient ...
31.529915
107
0.665492
629ce4f707c42f4f05ed1e3e2da93f3e0cfb82a5
359
py
Python
task_manager/task_manager/tasks/urls.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
task_manager/task_manager/tasks/urls.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
task_manager/task_manager/tasks/urls.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.urls import path from task_manager.tasks.views import show_home, delete_task, start_task, finish_task urlpatterns = ( path('', show_home, name='index'), path('delete/<int:pk>/', delete_task, name='delete task'), path('start/<int:pk>/', start_task, name='start task'), path('finish/<int:pk>/...
32.636364
84
0.688022
c5099a325a5aaa2af1dc810f31bb363b24d2cd16
1,117
py
Python
Organisation/Recherche/Pillow/Teil1/test.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
Organisation/Recherche/Pillow/Teil1/test.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
Organisation/Recherche/Pillow/Teil1/test.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
from PIL import Image from PIL import ImageDraw from PIL import ImageFont from PIL import ImageFilter from PIL import ImageEnhance source_img = Image.open("../Images/germanmap1920.png") second_img = Image.open("../Images/heiter2.png") img1 = Image.new("RGBA", source_img.size, (0, 0, 0, 0)) width, height = source_i...
30.189189
62
0.689346
c51d4f6ac66d92a66dec33670be05844ad38a0f4
4,442
py
Python
scrapers/scrape_zg.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
1
2021-04-25T14:32:32.000Z
2021-04-25T14:32:32.000Z
scrapers/scrape_zg.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_zg.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 import collections import csv from io import StringIO import scrape_common as sc main_url = 'https://www.zg.ch/behoerden/gesundheitsdirektion/statistikfachstelle/themen/gesundheit/corona' ct_csv_url = 'https://www.zg.ch/behoerden/gesundheitsdirektion/statistikfachstelle/daten/themen/result-the...
43.980198
431
0.695182
c5263e6477f7c88e76e2056a13a8960c8b45f7ca
1,167
py
Python
stanford2/py/w4_bf.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
stanford2/py/w4_bf.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
stanford2/py/w4_bf.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ A[0, s] = 0; A[0, v] = +inf for all v != s # Порядок обхода важен # Correct if no neg cycles n # count vetrex m # #edges # FIXME: а что с параллельными ребрами? i # budget for i = 1, 2... n-1: for each v in V: A[i, v] = min ( A[i-1, v] # 1) # in/out...
19.131148
63
0.560411
9ab4acc321518b71c838e42d9288e8fb9c82ca83
1,029
py
Python
antonio_sub.py
bagindakarli/KonserMusik-Python3.7
2d26d534eac63cdf0da5214b37c611a79e1c5ac9
[ "CNRI-Python" ]
null
null
null
antonio_sub.py
bagindakarli/KonserMusik-Python3.7
2d26d534eac63cdf0da5214b37c611a79e1c5ac9
[ "CNRI-Python" ]
null
null
null
antonio_sub.py
bagindakarli/KonserMusik-Python3.7
2d26d534eac63cdf0da5214b37c611a79e1c5ac9
[ "CNRI-Python" ]
null
null
null
# import paho mqtt import paho.mqtt.client as mqtt # import time for sleep() import time # buat callback on_message; jika ada pesan # maka fungsi ini akan dipanggil secara asynch ######################################## def on_message(client, userdata, message): print("Schedule : \n" ,str(message.payload.decode("...
24.5
64
0.677357
b12751f4018413ae71b14f11bceed4ec9114452f
2,439
py
Python
apps/register/auth.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/register/auth.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/register/auth.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
""" License MIT License Copyright (c) 2017 OpenAdaptronik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
38.109375
82
0.715867
b153e3553ab5063d3d909fe626382bee7892cf7d
7,824
py
Python
finbyz_dashboard/finbyz_dashboard/dashboard_overrides/data.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
1
2021-11-19T05:27:11.000Z
2021-11-19T05:27:11.000Z
finbyz_dashboard/finbyz_dashboard/dashboard_overrides/data.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
null
null
null
finbyz_dashboard/finbyz_dashboard/dashboard_overrides/data.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
2
2021-08-21T10:41:38.000Z
2021-11-19T05:27:13.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals from six import iteritems, string_types """build query for doclistview and return results""" import frappe.defaults from dateutil.parser._parser import ParserError import opera...
33.293617
127
0.723799
771563478db36b1f2573faa18e2f5dff7ff42f82
501
py
Python
SurveyManager/survey/migrations/0003_respuestapregunta_alumno.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/migrations/0003_respuestapregunta_alumno.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/migrations/0003_respuestapregunta_alumno.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-26 06:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('survey', '0002_auto_20181126_0514'), ] operations = [ migrations.AddField( model_name='respuest...
25.05
124
0.648703
773fe0728bcabfdc05764cd90f092500ed9c265c
124
py
Python
Arrays and Strings/MaximumOfSubarrays.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/MaximumOfSubarrays.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/MaximumOfSubarrays.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
""" Maximum of all subarrays of size k https://practice.geeksforgeeks.org/problems/maximum-of-all-subarrays-of-size-k/0 """
24.8
80
0.758065
774da2ad53349b3f01ea582bd29e644295bcd249
360
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/63_dictionary_comprehension/dictionary.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/63_dictionary_comprehension/dictionary.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/63_dictionary_comprehension/dictionary.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
import sys lista = [ ('chave1', 'valor1'), ('chave2', 'valor2'), ('chave1', 'valor1'), ('chave2', 'valor2'), ('chave1', 'valor1'), ] #d1 = {x.upper(): y.upper() for x, y in lista} # deixa tudo em maiusculo #d1 = {x for x in range(5)} d1 = {f'chave_{x}': 'a' for x in range(5)} print(d1) print(sys.ge...
24
72
0.572222
620a445041c1e1fc312c72d4ab5fec502fcd7e17
892
py
Python
ProjectEuler_plus/euler_078.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_078.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_078.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from itertools import count def pentagonal_seq(n): # https://oeis.org/A001318 if n == 0: return 0 if n == 1: return 1 return n * (3 * n - 1) // 2 def partition(n, part, penta): # https://oeis.org/A000041 if n == 0: return 1 if n == 1: retu...
20.744186
58
0.505605
623ee179ed2740028d3a1d6531ef1d2e00db654b
2,300
py
Python
Packs/DigitalGuardian/Integrations/DigitalGuardian/DigitalGuardian_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DigitalGuardian/Integrations/DigitalGuardian/DigitalGuardian_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DigitalGuardian/Integrations/DigitalGuardian/DigitalGuardian_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import requests_mock from CommonServerPython import * RETURN_ERROR_TARGET = 'DigitalGuardian.return_error' auth_url = "https://authorization_url.com" arc_url = "https://arc_url.com" @pytest.fixture(scope='function', autouse=True) def setup_params(mocker): demisto_params = { "auth_url": au...
38.983051
114
0.674783
02b17df4f474826481a6cb14e0b73ae9e8afcc53
1,614
py
Python
solutions/im2recipe/src/mysql_toolkits.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/im2recipe/src/mysql_toolkits.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/im2recipe/src/mysql_toolkits.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import pymysql import time from src.config import TABLE_NAME, temp_file_path, MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE # TABLE_NAME = 'image_search_1' def connect_mysql(): try: conn = pymysql.connect(host="127.0.0.1",user="root",port=3306,password="123456",database="mysql", lo...
24.454545
197
0.669145
b82558d5f382bffee8d0574b8588db79a596f06f
929
py
Python
tokenize.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
tokenize.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
tokenize.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Francesco Lumachi <francesco.lumachi@gmail.com> import nltk, string def words(text): """ Tokenize by word AND removed punctuation token """ return [w for w in nltk.word_tokenize(text.lower()) if w not in string.punctuation] def filter_stopwo...
35.730769
100
0.669537
b897f04003931bc236e77144a0ad89e29d184072
5,896
py
Python
src/server/pipeline.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/pipeline.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/pipeline.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import json from ingestion.pipeline import Pipeline from ingestion.transformers import ( AnomalyTransformer, IssueTransformer, MetricTransformer, MonitorTransformer, ZScoreTransformer, ) from server.middleware import db from .config import db_config as destination_dict import logging from sqlalche...
29.777778
144
0.674186
a22bc5e7d8add7bdf410083ce7db54ed77ee4baa
192
py
Python
exercises/en/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.en import English nlp = English() people = ["David Bowie", "Angela Merkel", "Lady Gaga"] # Create a list of patterns for the PhraseMatcher patterns = list(nlp.pipe(people))
21.333333
54
0.723958
a7b89a4a9ffc04734bad2cbc19a1317d374f0952
144
py
Python
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos B from.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos B from.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos B from.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from math import sqrt, floor num = int(input('Digite um numero: ')) raiz = sqrt(num) print('a raiz de {} é igual a {}'.format(num, floor(raiz)))
36
59
0.666667
3bf4e0517612be047b7c20644f4aeddf0b9020d4
2,525
py
Python
research/audio/deepspeech2/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/deepspeech2/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/deepspeech2/export.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...
48.557692
114
0.687921
ce0bd166a45cc1d657b8e97bbd73716177a0a1ca
295
py
Python
authApp/serializers/accountSerializer.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
null
null
null
authApp/serializers/accountSerializer.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
1
2022-01-05T23:52:37.000Z
2022-01-05T23:52:37.000Z
authApp/serializers/accountSerializer.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
null
null
null
from authApp.models.account import Account from rest_framework import serializers #Json a objeto y vis class AccountSerializer(serializers.ModelSerializer): #Heredar atributos de Meta class Meta: model = Account fields = ['balance', 'lastChangeDate', 'isActive']
36.875
59
0.722034
020c178cd6c73a0b0b1056586e282da13936a7db
734
py
Python
Curso-Em-Video-Python/2Exercicios/105_Analisando_e_gerando_dicionarios.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/105_Analisando_e_gerando_dicionarios.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/105_Analisando_e_gerando_dicionarios.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
def notas(* valores, sit=False): """ -> função para analisar notas e varias situações dos alunos :param valores: Uma ou mais nota de alunos, aceita quantas quiser :param sit: retorna se o ano foi bom ou ruim do aluno :return: dicionario com varios informações dos alunos """ dic = dict() ...
29.36
69
0.579019
ced11216a40ac6bb10e93382e6ee61cc85fbddf6
3,426
py
Python
v353/python/script.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v353/python/script.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v353/python/script.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np from scipy import optimize import matplotlib.pyplot as plt from uncertainties import ufloat print('Entladung ANFANG') def f(x, a, b): return a*x+b t, U = np.genfromtxt('python/daten/werte_a.txt', unpack=True) # unsere Messwerte # in ms, Volt t *= 1e-3 # jetzt in s m = np.linspace(0, 0.3, ...
25.759398
97
0.671629
d7edc649e56e1584f442373a37d44d552ddc1b61
3,988
py
Python
zzu_news_spider.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
zzu_news_spider.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
zzu_news_spider.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
import requests from lxml import etree import re # 敏感词过滤类,AC自动机 import Ac_auto headers = { 'User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;' } # 查找所有栏目的url,并保存 def all_urls_list(): urls_list = [] url = 'http://news.zzu.edu.cn/' r = requests.get(url, headers=heade...
27.694444
98
0.578736