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
956e0e7b92d0b568460b5ebffe5b9715aa24132e
534
py
Python
app/api/timetrack/models.py
WagnerJM/timetracker
f5413aca5422b21d9fa094fbf9a96f9474487e35
[ "MIT" ]
null
null
null
app/api/timetrack/models.py
WagnerJM/timetracker
f5413aca5422b21d9fa094fbf9a96f9474487e35
[ "MIT" ]
null
null
null
app/api/timetrack/models.py
WagnerJM/timetracker
f5413aca5422b21d9fa094fbf9a96f9474487e35
[ "MIT" ]
null
null
null
from datetime import datetime from app.database import db, BaseMixin from app.serializer import ma class WorkDay(db.Model, BaseMixin): __tablename__ = "workDays" time_in = db.Column(db.DateTime) time_out = db.Column(db.DateTime) dTime = db.Column(db.Float) def __init__(self, time_in): s...
20.538462
38
0.604869
66c397d1d864f6cd50bc16b0fbcfe8b8c1241302
5,838
py
Python
rasa/shared/utils/validation.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2020-09-12T17:27:21.000Z
2020-09-12T17:27:21.000Z
rasa/shared/utils/validation.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
46
2020-09-26T11:36:38.000Z
2022-03-01T13:38:02.000Z
rasa/shared/utils/validation.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
import logging from typing import Text, Dict, Any from packaging import version from packaging.version import LegacyVersion from ruamel.yaml.constructor import DuplicateKeyError import rasa.shared import rasa.shared.utils.io from rasa.shared.constants import ( DOCS_URL_TRAINING_DATA_NLU, PACKAGE_NAME, LA...
32.797753
92
0.664269
66c99e121185e621bdda99f0aa052eecb56410ed
226
py
Python
Problems/Two Pointers/easy/ReverseWordsInString3/reverse_words_3.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/ReverseWordsInString3/reverse_words_3.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/ReverseWordsInString3/reverse_words_3.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def reverseWords(s: str) -> str: pointer, result = 0, "" s += " " for i in range(len(s)): if s[i] == " ": result += s[pointer: i][::-1] + " " pointer = i + 1 return result[:-1]
22.6
47
0.415929
66dd98ba476ef53ecc6d1c9b6617f10ecbe7f092
1,180
py
Python
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/slice.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/slice.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/slice.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
''' a[start:end] # items start through end-1 a[start:] # items start through the rest of the array a[:end] # items from the beginning through end-1 a[:] # a copy of the whole array a[start:end:step] # start through not past end, by step a[-1] # last item in th...
29.5
68
0.583898
dd22b7e32c7d5a7419b85c9501c11b7fdc79911e
2,251
py
Python
web-app/web_app.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
web-app/web_app.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
web-app/web_app.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
""" Created by Florian Fricke. """ import sys import os sys.path.insert( 0, "{}/web-app".format(os.getcwd())) from flask import Flask, render_template, request, jsonify from predictions.predict import predict_sentiment from keras.models import load_model from kutilities.layers import Attention import numpy as np i...
33.102941
108
0.686362
dd45c02f3a752f6da24dcc2a1180ed17f883ece1
4,930
py
Python
Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/xsoar_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/xsoar_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/xsoar_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
def event_response(): return [ { "ata_event_count": 1, "datetime_created": "2021-05-11T20:11:30Z", "fields": [ { "key": "auto_run", "label": "Auto Run", "value": "False", "orde...
30.060976
65
0.447262
663159d380b2954cdfecd7dbe62cc836656d2f35
1,681
py
Python
backend/CCTalkHandler.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
backend/CCTalkHandler.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
backend/CCTalkHandler.py
bytebang/ppvm
07a0650c618b9dd6abc7563070a80c132034f532
[ "MIT" ]
null
null
null
from cctalk.coin_messenger import CoinMessenger from cctalk.tools import make_serial_object from helpers.Config import Config import time class CCTalkHandler: def __init__(self): self.connected = False def listenThrowIn(self, callback): while self.connected: coinType = s...
28.016667
62
0.538965
ab91797d16bbdcd6f5f41166ae939d7c355999b4
2,142
py
Python
Algorithms/Dynamic_Programming/coin_change.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Dynamic_Programming/coin_change.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Dynamic_Programming/coin_change.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/reduced-string/problem?h_r=internal-search # imports from itertools import combinations as cb from math import factorial as fact # dynamic programming # https://en.wikipedia.org/wiki/Dynamic_programming # memoization # https://en.wikipedia.org/wiki/Overlapping_subproblems # pr...
20.796117
111
0.519608
abb4e24e28ac2069999e26472c531a28bd00c131
1,809
py
Python
src/test/tests/hybrid/val4mat.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/val4mat.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/hybrid/val4mat.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: val4mat.py # # Tests: mesh - 3D structured, multi domain # plots - pc # # Notes: Migrated value_for_material tests from expressions.py # and added post ghost...
23.802632
78
0.658928
abc39b592351ce03f9792dabde78e8f1e81767f3
314
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/25. remove duplicates elements from a string.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/25. remove duplicates elements from a string.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/25. remove duplicates elements from a string.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function to remove duplicate elements from a Python string. input_string = 'How are you?' Expected output = How areyu? """ def remove_duplicates(input_string): new = "" for i in input_string: if(i in new): pass else: new = new + i return new
18.470588
67
0.585987
e9d5694ebac79205099f66f2ee917320b5775457
397
py
Python
ANN/e13/e13.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
ANN/e13/e13.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
ANN/e13/e13.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
N = [ [-1.72780521453553], [-1.857323531180396], [-1.838165618719436], [-1.828890843079051], [-1.826266689843919], [-1.825591142423036], ] grau = 6 b = 2 for i in range(grau - 1): for j in range(grau - i - 1): N[j].append( ((2 ** (i * b + b) * N[j + 1][i]) - N[j][i]) / ...
20.894737
81
0.450882
75835953cb499c300fc970ec40c859cb9fd92f35
1,059
py
Python
server/homepage.py
critterandguitari/Organelle_Web
eb8692930127b0fa980722e3f1870893a4fbed7f
[ "BSD-3-Clause" ]
1
2017-09-22T21:16:32.000Z
2017-09-22T21:16:32.000Z
server/homepage.py
critterandguitari/Organelle_Web
eb8692930127b0fa980722e3f1870893a4fbed7f
[ "BSD-3-Clause" ]
null
null
null
server/homepage.py
critterandguitari/Organelle_Web
eb8692930127b0fa980722e3f1870893a4fbed7f
[ "BSD-3-Clause" ]
1
2019-10-20T17:28:47.000Z
2019-10-20T17:28:47.000Z
import cherrypy import os current_dir = os.path.dirname(os.path.abspath(__file__)) config = { '/': { }, '/static/bootstrap.min.css': { 'tools.staticfile.on': True, 'tools.staticfile.filename': current_dir + '/static/bootstrap.min.css' }, '/static/fonts'...
21.612245
132
0.564684
ddf9868d5f8150aa2080f4b1f54cd125e2da59ff
5,541
py
Python
SichereEntnahmeCAPE.py
ThoEngel/rentenplanung
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
3
2022-01-01T18:24:46.000Z
2022-01-08T15:28:46.000Z
SichereEntnahmeCAPE.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
SichereEntnahmeCAPE.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
''' Entnahmestrategien optimieren – bessere Rente dank CAPE Ratio https://www.finanzen-erklaert.de/entnahmestrategien-optimieren-bessere-rente-dank-cape-ratio/ ''' import pandas as pd import time from SEsimulation.mDate import mDate from SEsimulation import SEsimulation import plotly.express as px import plotly.gra...
32.594118
115
0.600433
34865478e35d857c8b2596b39456b137f2eba3de
1,402
py
Python
Packs/SymantecEndpointProtection/Integrations/SymantecEndpointProtection_V2/SEPM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SymantecEndpointProtection/Integrations/SymantecEndpointProtection_V2/SEPM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SymantecEndpointProtection/Integrations/SymantecEndpointProtection_V2/SEPM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import json def mock_demisto(mocker): mocker.patch.object(demisto, 'params', return_value={'proxy': True}) def _get_api_response(): response = "test-data/SEPM-endpoint-api-response.json" with open(response, 'r') as f: api_response = json.loads(f.read()) return a...
31.863636
100
0.736805
551d41af4ad81e2d1f285c36376aa9934b982e1d
501
py
Python
2266-count-number-of-texts/2266-count-number-of-texts.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2266-count-number-of-texts/2266-count-number-of-texts.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2266-count-number-of-texts/2266-count-number-of-texts.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def countTexts(self, pressedKeys: str) -> int: dp=[1, 1] for i, pkey in enumerate(pressedKeys[1:], 1): temp=dp[-1] if i>=1 and pressedKeys[i-1]==pkey: temp+=dp[-2] if i>=2 and pressedKeys[i-2]==pkey: temp+=dp...
38.538462
78
0.449102
9ba1b2c097ec6e88e2027fcc39cad76bb5563b74
149
py
Python
app/app/calc.py
ProXPegasus/recpie-app-api
f11644398393a7063f9330814361dae22a330203
[ "MIT" ]
null
null
null
app/app/calc.py
ProXPegasus/recpie-app-api
f11644398393a7063f9330814361dae22a330203
[ "MIT" ]
null
null
null
app/app/calc.py
ProXPegasus/recpie-app-api
f11644398393a7063f9330814361dae22a330203
[ "MIT" ]
null
null
null
def add(x ,y): return x+y def Subtraction(x, y): return x-y def Multiplication(x , y): return x*y def Division(x , y): return x/y
12.416667
26
0.590604
fd22e916a63d50763c1c1c3083cd83f68ac56ba5
796
py
Python
challenges/equalPairOfBits/python3/equalPairOfBits.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/equalPairOfBits/python3/equalPairOfBits.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/equalPairOfBits/python3/equalPairOfBits.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
from math import log2 def equalPairOfBits(n, m): return 2**log2((n&m|~n&~m)&-(n&m|~n&~m)) if __name__ == '__main__': input0 = [10, 0, 28, 895, 1073741824] input1 = [11, 0, 27, 928, 1006895103] expectedOutput = [2, 1, 8, 32, 262144] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutput = {}'....
56.857143
130
0.674623
fd3be08b89b12614dd5b09fbc9d1879dfec5a133
1,378
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_status_for_multiple_source_in_po.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_status_for_multiple_source_in_po.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_status_for_multiple_source_in_po.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): # update the sales order item in the material request frappe.reload_doc('stock', 'doctype', 'material_request_item') frappe.db.sql('''update...
33.609756
89
0.727866
95302c6555c2a5ef19ce950033750a147e107f74
8,100
py
Python
schloesser/ex06_07/MyGraph.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
schloesser/ex06_07/MyGraph.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
schloesser/ex06_07/MyGraph.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
#!/usr/bin/env python3 ''' Standalone simple graph structure with the means to compute a longest shortest path. ''' from misc import pop_next_destination class Vertex: ''' Vertex This class holds all relevant information about a vertex. ''' def __init__(self, name): self.name = name ...
27.739726
105
0.553827
2f991cea83c443652baab68f65d757f5be8af69d
550
py
Python
leetcode/325-Maximum-Size-Subarray-Sum-Equals-k/MaxSizeSubarrSumEqlK_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/325-Maximum-Size-Subarray-Sum-Equals-k/MaxSizeSubarrSumEqlK_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/325-Maximum-Size-Subarray-Sum-Equals-k/MaxSizeSubarrSumEqlK_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' a possible more efficient solution: https://leetcode.com/problems/maximum-size-subarray-sum-equals-k/?tab=Solutions ''' class Solution(object): def maxSubArrayLen(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ mx, sm = 0, 0 ...
23.913043
83
0.467273
85df848e29fde80a118e1766e67b4c20a8f7013d
595
py
Python
Python/Topics/Json/01-json-string.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Python/Topics/Json/01-json-string.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Python/Topics/Json/01-json-string.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
import json from textwrap import indent json_string = ''' { "students" : [ { "id": 1, "name": "Tim", "age": 21, "full-time": true }, { "id": 2, "name": "Joe", ...
18.59375
57
0.413445
c0f15390f928e4b3da9debcdd99c41ed5e65dda5
1,058
py
Python
src/python/BI/NumpyDemo.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/NumpyDemo.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/NumpyDemo.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
from os import X_OK import numpy as np data = [15, 16, 18, 45, 22, 24, 20, 30, 34] print(np.mean(data)) # 224.88888888888889 平均值 print(np.median(data)) # 22.0 中间值 print(np.percentile(data, 25)) # 18.0 print(np.percentile(data, 50)) # 22.0 print(np.percentile(data, 75)) ...
39.185185
66
0.482042
23c1688ca968a8ee1033e73d6dc3d5147fe55d2e
1,265
py
Python
day51/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day51/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day51/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv("day51/QueryResults.csv", header=0, names=['DATE', 'TAG', 'POSTS']) df = df.dropna() df["DATE"] = pd.to_datetime(df["DATE"]) num_of_posts = df.groupby("TAG").sum().sort_values("POSTS", ascending=False) print(num_of_posts) num_of_posts_month = df.gr...
29.418605
113
0.721739
f195e1c51f5eaf07fad9e3b58296341ce957926b
319
py
Python
Cracking_the_Coding_Interview/time_complexity_primality.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/time_complexity_primality.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/time_complexity_primality.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def is_prime(n): if n == 2: return True if not n & 1: return False return pow(n - 2, n - 1, n) == 1 p = int(input().strip()) for a0 in range(p): n = int(input().strip()) if is_prime(n): print('Prime') else: print('Not prime')
16.789474
36
0.510972
f1aa61e2757cfc477ab70b2fafba46e655482ad9
3,340
py
Python
src/compgen2/testdata/linguistic.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
1
2022-02-02T12:41:06.000Z
2022-02-02T12:41:06.000Z
src/compgen2/testdata/linguistic.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
src/compgen2/testdata/linguistic.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
import string import random from . import Manipulator class StringEnriched: def __init__(self, string_: str) -> None: self.string_ = string_ self.words = [] self.chars = [] def get_string(self) -> str: return self.string_ def apply_manipulator(self, manipulator: Manipulato...
37.954545
118
0.594611
7bc59cc840383311a73e972c5f217784fcddc904
643
py
Python
Tests/test_weltall.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
Tests/test_weltall.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
Tests/test_weltall.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
from unittest import TestCase from Weltall.weltall import Weltall from Model.solarSysModel import SolarSunModel from Objekte.planet import Planet from OpenGL.GLUT import * __author__ = 'floriandienesch' class TestWeltall(TestCase): def setUp(self): glutInit(sys.argv) glutCreateWindow("Solarsyste...
24.730769
73
0.685848
c8aba4aa03d141e590acef33c115763239cd0f39
789
py
Python
util/parallel.py
habecker/transfer-gan
b935e69d0fa0d37ba80aab091ce59e1657eacb1e
[ "BSD-3-Clause" ]
null
null
null
util/parallel.py
habecker/transfer-gan
b935e69d0fa0d37ba80aab091ce59e1657eacb1e
[ "BSD-3-Clause" ]
5
2021-03-19T14:21:08.000Z
2022-03-12T00:42:00.000Z
util/parallel.py
habecker/transfer-gan
b935e69d0fa0d37ba80aab091ce59e1657eacb1e
[ "BSD-3-Clause" ]
null
null
null
from typing import Callable, Any import multiprocessing class ParallelProcessing: def __init__(self, num_processes:int, initializer:Callable, initargs:tuple, task:Callable, job:list, do_result:Callable): self.pool = multiprocessing.Pool(processes=num_processes, initializer = initializer, initargs = initarg...
35.863636
125
0.662864
5704350205c149d09b200ffb0436acb96594bb20
163
py
Python
src/handlers/1st-lambda-function.py
Olaowokoya/HackathonFeb14
9341620901c155061606c5c9f37a3d3d4ccffb39
[ "MIT-0" ]
null
null
null
src/handlers/1st-lambda-function.py
Olaowokoya/HackathonFeb14
9341620901c155061606c5c9f37a3d3d4ccffb39
[ "MIT-0" ]
null
null
null
src/handlers/1st-lambda-function.py
Olaowokoya/HackathonFeb14
9341620901c155061606c5c9f37a3d3d4ccffb39
[ "MIT-0" ]
null
null
null
import pandas as pd def lambda_handler(event, context): d = {'col1': [1,2], 'col2': [3,4]} df = pd.DataFrame(data=d) print(df) print('Done x1.1')
20.375
38
0.582822
93f536a9e823041ab06f03832848670bf730a4a1
1,047
py
Python
python/data_sutram/scraper/get_live_loc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/get_live_loc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/get_live_loc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" import requests import json send_url = 'http://freegeoip.net/json' r = requests.get(send_url) j = json.loads(r.text) #lat = j['latitude'] #lon = j['longitude'] print(j) #print (lat,lon) ############################### [22.5697, 88.3697] Loading formatted geocoded file... [OrderedDict([('lat', '22.56263'), ...
20.94
54
0.606495
fde02db7dcd9dcd70b5f34c5916c04eddb2f2e97
8,341
py
Python
research/cv/DBPN/src/dataset/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/DBPN/src/dataset/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/DBPN/src/dataset/dataset.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...
37.071111
119
0.6305
e30b28f78cd4c9002bf5db81b50ce42f5ba0220b
12,554
py
Python
src/onegov/org/views/newsletter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/newsletter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/newsletter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" The newsletter view. """ import morepath from collections import OrderedDict from itertools import groupby from onegov.core.security import Public, Private from onegov.core.templates import render_template from onegov.event import Occurrence, OccurrenceCollection from onegov.file import File from onegov.file.util...
31.94402
79
0.653019
d075737ebd0f76a8dc8308b70ead597b78a32f2b
988
py
Python
api/migrations/0002_foodrequest.py
scholaronroad/guts_2021_hackathon
482b7b59317b67fc37f67f1ccfeaadbf811c00ca
[ "MIT" ]
null
null
null
api/migrations/0002_foodrequest.py
scholaronroad/guts_2021_hackathon
482b7b59317b67fc37f67f1ccfeaadbf811c00ca
[ "MIT" ]
2
2021-02-06T13:54:45.000Z
2021-02-06T20:05:18.000Z
api/migrations/0002_foodrequest.py
scholaronroad/guts_2021_hackathon
482b7b59317b67fc37f67f1ccfeaadbf811c00ca
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-02-06 18:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( name='FoodRequest', f...
35.285714
117
0.59919
dffe6a22df2fea07fdc76a0206a1f731598d15ef
8,848
py
Python
AP_SS16/503/python/data.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/503/python/data.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/503/python/data.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
import numpy as np import uncertainties from uncertainties import ufloat from uncertainties import unumpy as unp import functions as f from table import ( make_table, make_SI, write, ) g = 9.81 #drops is an array of the oildrops with voltage V, and velocity: v_0 , v_fast and v_slow for each drop. drops = ...
29.20132
204
0.504408
2651db90fd4ff955665236159fc33c6296ece5d3
344
py
Python
11-se/python_call_c/01-basic/setup.py
al2698/sp
fceabadef49ffe6ed25dfef38e3dc418f309e128
[ "MIT" ]
null
null
null
11-se/python_call_c/01-basic/setup.py
al2698/sp
fceabadef49ffe6ed25dfef38e3dc418f309e128
[ "MIT" ]
null
null
null
11-se/python_call_c/01-basic/setup.py
al2698/sp
fceabadef49ffe6ed25dfef38e3dc418f309e128
[ "MIT" ]
null
null
null
from distutils.core import setup, Extension speedup_performance_module = Extension('speedup_performance', sources=['speedup_performance.c']) setup(name='SpeedupPerformance', description='A package containing modules for speeding up performance.', ext_modules=[speedup...
34.4
78
0.703488
13fd91aa1212891b56227cfad10ea6f56fd48c21
1,859
py
Python
official/nlp/textcnn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/textcnn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/textcnn/preprocess.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.232558
93
0.676708
26b5e9d878d09e5339acdf207ce09307e3786098
6,022
py
Python
Reduced_DNF_Generator.py
reeshabhranjan/DNF-Generator
e4c55d6f75470349604cb5dcd93b2961e37964e1
[ "MIT" ]
null
null
null
Reduced_DNF_Generator.py
reeshabhranjan/DNF-Generator
e4c55d6f75470349604cb5dcd93b2961e37964e1
[ "MIT" ]
null
null
null
Reduced_DNF_Generator.py
reeshabhranjan/DNF-Generator
e4c55d6f75470349604cb5dcd93b2961e37964e1
[ "MIT" ]
1
2021-10-31T17:48:48.000Z
2021-10-31T17:48:48.000Z
################### Q1 PART B - BONUS ###### AKASH SHARMA , 2017327 ''' ASSUMPTIONS----------------------------------------------- Symbols to used in the input propositional logic: 1) + for disjunction 2) . for conjunction 3) ~ for negation 4) * for implication 5) = for bi-implication 6) Additional terms...
22.554307
124
0.58635
3e55bb4ca12a62c98a017c715524ea56743051e4
136
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.4-list-insert()-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.4-list-insert()-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.4-list-insert()-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
fruits = ["mango", "banana", "orange"] print(fruits) fruits.insert(0, "apple") print(fruits) fruits.insert(2, "coconut") print(fruits)
17
38
0.691176
e4bd9551159921fde2fc862f317c2c58076998fe
38,938
py
Python
tests/test_syntaxtree.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
tests/test_syntaxtree.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
tests/test_syntaxtree.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """test_syntaxtree.py - test of syntaxtree-module of DHParser Author: Eckhart Arnold <arnold@badw.de> Copyright 2017 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You...
41.823845
123
0.550645
5f3d6022b3da246ee6c2c4c367cff0589ef40b01
3,212
py
Python
3kCTF/2021/crypto/SMS/sms.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
3kCTF/2021/crypto/SMS/sms.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
3kCTF/2021/crypto/SMS/sms.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
SBOX = [0xb9, 0xb3, 0x49, 0x94, 0xf9, 0x3, 0xd0, 0xfc, 0x67, 0xa3, 0x72, 0xb5, 0x45, 0x82, 0x54, 0x93, 0x5b, 0x88, 0x5c, 0xe0, 0x96, 0x41, 0xc7, 0xa, 0xdb, 0x7f, 0x77, 0x29, 0x9, 0xb, 0x8d, 0x80, 0x2d, 0xaf, 0xe1, 0x4a, 0x38, 0x73, 0x3a, 0x6a, 0xf2, 0xb6, 0xdc, 0xbd, 0x79, 0x2a, 0xcb, 0x55, 0x10, 0x61, 0x63...
33.458333
79
0.577833
39733e2c4f23244770b0b6acf9d74314032885ac
863
py
Python
tools/pythonpkg/tests/fast/api/test_dbapi13.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/api/test_dbapi13.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/api/test_dbapi13.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
# time type import numpy import datetime import pandas class TestNumpyTime(object): def test_fetchall_date(self, duckdb_cursor): res = duckdb_cursor.execute("SELECT TIME '13:06:40' as test_time").fetchall() assert res == [(datetime.time(13, 6, 40),)] def test_fetchnumpy_date(self, duckdb_curs...
39.227273
88
0.680185
f2d5eb73f4228588e437f91bbc8ee3e7cb055bda
4,275
py
Python
Packs/OpenSourceVulnerabilities/Integrations/OSV/OSV.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/OpenSourceVulnerabilities/Integrations/OSV/OSV.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/OpenSourceVulnerabilities/Integrations/OSV/OSV.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 class Client(BaseClient): def __init__(self, server_url, verify, proxy, headers, auth): super().__init__(base_url=server_url, verify=verify, proxy=proxy, headers=headers, auth=auth) def osv_get_vuln_by_id_reque...
34.2
120
0.67345
845507a371aee1dc00d2b9a4750d8c8972f4ff42
595
py
Python
reflect.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
reflect.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
reflect.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import request from urllib2 import urlopen app = Flask(__name__) @app.route('/') def hello_world(): # type: () -> str return 'Hello, World' @app.route('/reflect') def reflect(): # type: (str) -> str url = request.query_string # type: str try: http_req...
17.5
45
0.615126
f23d304bfcc081675ad1c82530e2399c4727ba75
385
py
Python
SleekSecurity/layers/plugins/fingerprint/language/aspnet.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/language/aspnet.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/language/aspnet.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt from re import findall,I def aspnet(content): _ = findall(r'\<a href\=\S*(\.aspx|\.axd|\.asx|\.asmx|\.ashx|...
29.615385
97
0.628571
f29f13ed4b64d75286b6307206c279835a210e80
583
py
Python
pupil_invisible_monitor/deployment/_packaging/windows.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
pupil_invisible_monitor/deployment/_packaging/windows.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
pupil_invisible_monitor/deployment/_packaging/windows.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
import logging from pathlib import Path from subprocess import call from .utils import dist_dir, get_tag_commit, package_name logger = logging.getLogger() def archive_7z(deployment_root: Path) -> Path: logger.info("Creating 7z archive...") bundle_path = dist_dir(deployment_root) / package_name ...
29.15
71
0.734134
d9b6ee29444a109bd220594adff245a77c35605a
3,806
py
Python
src/onegov/feriennet/models/calendar.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/calendar.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/calendar.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import icalendar from onegov.activity import Attendee from onegov.core.orm import as_selectable_from_path from onegov.core.utils import module_path from onegov.feriennet.models import VacationActivity from sedate import standardize_date, utcnow from sqlalchemy import and_, select class Calendar(object): """ A ba...
30.206349
77
0.598266
7cbb0fe176c4b033f8067e0d7b5694868f2f2f5a
33,916
py
Python
Packs/Grafana/Integrations/Grafana/Grafana_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Grafana/Integrations/Grafana/Grafana_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/Grafana/Integrations/Grafana/Grafana_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import json import dateparser import pytest from freezegun import freeze_time from pytz import utc from Grafana import Client, alert_get_by_id_command, alert_pause_command, alert_to_incident, alert_unpause_command, \ alerts_list_command, annotation_create_command, calculate_fetch_start_time, change_key, dashboard...
39.1188
130
0.645742
d49c511160fbea6995dc68b6a1631e125a27530b
14,070
py
Python
model_zoo/ernie-1.0/data_tools/create_pretraining_data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-1.0/data_tools/create_pretraining_data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-1.0/data_tools/create_pretraining_data.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 applic...
35.892857
113
0.557427
9c31f38024f3f63cf190c04c1da85c2050780905
674
py
Python
validador_url.py
dralv/ExtratorURLPython
3c013cc7313fede1b8a389d99cd7e7971df1b3ba
[ "MIT" ]
null
null
null
validador_url.py
dralv/ExtratorURLPython
3c013cc7313fede1b8a389d99cd7e7971df1b3ba
[ "MIT" ]
null
null
null
validador_url.py
dralv/ExtratorURLPython
3c013cc7313fede1b8a389d99cd7e7971df1b3ba
[ "MIT" ]
null
null
null
import re ''' Exemplos de URLs válidas: bytebank.com/cambio bytebank.com.br/cambio www.bytebank.com/cambio www.bytebank.com.br/cambio http://www.bytebank.com/cambio http://www.bytebank.com.br/cambio https://www.bytebank.com/cambio https://www.bytebank.com.br/cambio Exemplos de URLs inválidas: https://bytebank/cambio...
21.741935
91
0.74184
1362c44bf0032fa9e0b66016af65ff03feb20201
3,048
py
Python
checks/generator.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
null
null
null
checks/generator.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
null
null
null
checks/generator.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
null
null
null
""" Checks the 'generator' meta tag and page content properties to detect well-known content management systems, themes etc. """ from checks.abstract_checker import AbstractChecker class Checker(AbstractChecker): # IP address of the newthinking GCMS server gcms_ip = "91.102.13.20" def __init__(self, con...
33.866667
75
0.602362
b935ba34d462bd562218acd358bfe81ca9c7091b
1,934
py
Python
cogs/osu.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
1
2021-04-21T09:01:26.000Z
2021-04-21T09:01:26.000Z
cogs/osu.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
cogs/osu.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
from discord.ext import commands import discord from botlibrary import constants import requests class Osu(commands.Cog): def __init__(self, client): self.client = client self.osuapi = constants.osu_token self.url = constants.osu_url @commands.command(name="osu") async def osu_com...
42.043478
148
0.62151
b93d3c992a5ecbd0635a5c1027193ddc364e526d
657
py
Python
0_homeworks/Python/Console/5/incapsilation.py
Team-on/works
16978b61c0d6bcb37e910efb4b5b80e9a2460230
[ "MIT" ]
10
2018-11-12T19:43:28.000Z
2020-09-09T18:48:30.000Z
0_homeworks/Python/Console/5/incapsilation.py
Team-on/works
16978b61c0d6bcb37e910efb4b5b80e9a2460230
[ "MIT" ]
null
null
null
0_homeworks/Python/Console/5/incapsilation.py
Team-on/works
16978b61c0d6bcb37e910efb4b5b80e9a2460230
[ "MIT" ]
null
null
null
#incapsulation test class Server: def __init__(self): self.__protected = "Protected" self.protected = "Not really protected" def TransferData(self): print("Transfer") def TransferData(self, data): print("Transfer:", data) def ControlledSelfDestruct(self, key): ...
21.9
47
0.65449
b96c8cac8216f047f9f843c550bccce905fb16bf
298
py
Python
python/gil/without_multithread.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gil/without_multithread.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gil/without_multithread.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from time import time def factorize(number): for i in range(1, number + 1): if number % i == 0: yield i numbers = [8402868, 2295738, 5938342, 7925426] start = time() for number in numbers: list(factorize(number)) end = time() print(f'Took {end - start:.3f} seconds')
19.866667
46
0.624161
e07809efc92e25520e933f0a26b650f16c59991c
7,745
py
Python
blinkpy-dwm/src/server/app.py
dwm66/iobroker-scripts
85dd47a14a4bfacc616cd9b3d7d47d0d2a37b821
[ "MIT" ]
1
2020-04-19T20:55:15.000Z
2020-04-19T20:55:15.000Z
blinkpy-dwm/src/server/app.py
dwm66/iobroker-scripts
85dd47a14a4bfacc616cd9b3d7d47d0d2a37b821
[ "MIT" ]
2
2021-02-06T11:23:37.000Z
2022-01-30T08:43:48.000Z
blinkpy-dwm/src/server/app.py
dwm66/iobroker-scripts
85dd47a14a4bfacc616cd9b3d7d47d0d2a37b821
[ "MIT" ]
2
2017-06-13T18:42:25.000Z
2020-01-29T14:22:14.000Z
import os import io import os.path import atexit from flask import Flask, request, send_file from flask_restful import Resource, Api, reqparse from blinkpy.blinkpy import Blink from blinkpy.auth import Auth from blinkpy.helpers.util import json_load version='0.1.4' blink=Blink() blinkStatus = 0 status...
33.820961
113
0.582957
162e9d26ed229b1f44ffdd921cbacddd8372ecd6
80
py
Python
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/util/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/util/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/util/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .trans import trans, trans_readonly, trans_with_fail_over, trans_with_tail
40
79
0.8625
1632ea034675ca07f049894b6cc7bda66d2aca72
62,296
py
Python
SIMBF-main/premium.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SIMBF-main/premium.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SIMBF-main/premium.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# YA MAU DI RECODE ANJHAYY CELEMEXX # TOLONG DI FOLLOW BRO GITHUG GWA YAA # :( import marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00@\x00\x00\x00sg\x03\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00y\x10\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00Wn#\x00\x04e\x02\x00k\n\x00rA...
10,382.666667
62,181
0.743756
166b3f362b4936df52f403fda75561c343ec3116
3,978
py
Python
research/cv/ssd_inceptionv2/src/anchor_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ssd_inceptionv2/src/anchor_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ssd_inceptionv2/src/anchor_generator.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.512195
115
0.67823
bc6175fd11a4111659ec6be88fedec5a54414aed
3,771
py
Python
tests/test_kostenblock.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_kostenblock.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_kostenblock.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.betrag import Betrag from bo4e.com.kostenblock import Kostenblock, KostenblockSchema from bo4e.com.kostenposition import Kostenposition from bo4e.com.preis import Preis from bo4e.enum.mengeneinheit import Mengeneinheit from bo4e.enum.preis...
40.548387
95
0.475736
bc7e3925c7bbd27e25071444dc62469c908eff94
1,057
py
Python
yg_pub.py
bagindakarli/KonserMusik-Python3.7
2d26d534eac63cdf0da5214b37c611a79e1c5ac9
[ "CNRI-Python" ]
null
null
null
yg_pub.py
bagindakarli/KonserMusik-Python3.7
2d26d534eac63cdf0da5214b37c611a79e1c5ac9
[ "CNRI-Python" ]
null
null
null
yg_pub.py
bagindakarli/KonserMusik-Python3.7
2d26d534eac63cdf0da5214b37c611a79e1c5ac9
[ "CNRI-Python" ]
null
null
null
# import paho mqtt import paho.mqtt.client as mqtt # import time untuk sleep() import time # import datetime untuk mendapatkan waktu dan tanggal import datetime #def on_publish(client, userdata, result): # print("Mengirimkan \n") # definisikan nama broker yang akan digunakan broker_address="127.0.0.1" # buat cl...
27.102564
138
0.712394
bcbd3641065cae8f7a918f554de87139714fbb60
3,814
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/auth/authenticate_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/auth/authenticate_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/auth/authenticate_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import timedelta from logging import getLogger from typing import Optional, Union from fastapi import APIRouter, Depends from fastapi.security import OAuth2PasswordRequestForm from pydantic import BaseModel from starlette.requests import Request from watchmen_auth import AuthenticationScheme, PrincipalS...
35.314815
121
0.806765
914a7e57b12a21b2c1e18749b17ed6b910d9a680
1,105
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/07_zeige_erste_3_google_treffer.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/07_zeige_erste_3_google_treffer.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/07_zeige_erste_3_google_treffer.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 07_zeige_erste_3_google_treffer.py # Dieses Script soll die Aufgabe erfüllen mit BeautifulSoup die ersten 3 Links einer Googlesuche # in einem neuen Browser-Tab aufzurufen. # https://www.google.com/search?q=TEST+TEST+TEST import requests, bs4, sys, logging, webbrowser logging.basicConfig(level=logging.DEBUG, format...
36.833333
96
0.749321
e69569e88e9a312c7496e96b32e29adf435acfc3
168
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/phone_num.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/phone_num.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/phone_num.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import phonenumbers from phonenumbers import geocoder phone_number2 = phonenumbers.parse("+919014705402") print(geocoder.description_for_number(phone_number2,'en'))
21
58
0.833333
e6ee1a7f8754650995251cc7240a98c49889c5df
1,202
py
Python
tests/rbac/common/proposal/proposal_helper.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/rbac/common/proposal/proposal_helper.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/rbac/common/proposal/proposal_helper.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
33.388889
79
0.687188
fc5f4c5e48e608c2017672cdcf6cebee5410a7fd
15,078
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/scenario/wxgui.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/coremodules/scenario/wxgui.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/coremodules/scenario/wxgui.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 ...
40.208
119
0.568444
5d0db21476938973b4351844235a2f2490290038
1,923
py
Python
udacity course code/01-02-utilityfunctions.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
1
2021-03-22T22:25:54.000Z
2021-03-22T22:25:54.000Z
udacity course code/01-02-utilityfunctions.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
6
2017-01-16T09:53:21.000Z
2017-01-18T12:20:09.000Z
udacity course code/01-02-utilityfunctions.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
null
null
null
"""Utility functions""" import os import pandas as pd import matplotlib.pyplot as plt def plot_selected(df, columns, start_index, end_index): """Plot the desired columns over index values in the given range.""" # TODO: Your code here # Note: DO NOT modify anything else! df_temp = df.ix[start_index : e...
29.136364
74
0.659906
4ae5582c98b438600500a698f306222c419339b6
585
py
Python
get_max_acc.py
BIGBALLON/Model_Experiment
d96712a01997a2f51cad29d611e60d2567ce1021
[ "MIT" ]
2
2018-11-25T14:05:33.000Z
2019-07-12T03:45:24.000Z
get_max_acc.py
BIGBALLON/Model_Experiment
d96712a01997a2f51cad29d611e60d2567ce1021
[ "MIT" ]
null
null
null
get_max_acc.py
BIGBALLON/Model_Experiment
d96712a01997a2f51cad29d611e60d2567ce1021
[ "MIT" ]
null
null
null
import os import pandas as pd def get_values(rootDir): li = [] list_dirs = os.walk(rootDir) for root, dirs, files in list_dirs: name = root.split("/")[1] if name not in li and ("net" in name or "Net" in name): print("") print(name,end=",") li.append(...
27.857143
63
0.492308
530702542a337b653759446482cc065710b1ee4a
281
py
Python
exercises/ja/solution_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.ja import Japanese nlp = Japanese() # Docクラスをインポート from spacy.tokens import Doc # 作りたいテキスト:「さあ、始めよう!」 words = ["さあ", "、", "始めよう", "!"] spaces = [False, False, False, False] # wordsとspacesからDocを作成 doc = Doc(nlp.vocab, words=words, spaces=spaces) print(doc.text)
18.733333
48
0.69395
f4163e3b6e79cfdc130aeffd6ed9a408b3053476
498
py
Python
Utils/py/WhistleDetector/export_sound.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/WhistleDetector/export_sound.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/WhistleDetector/export_sound.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python from naoth.LogReader import LogReader from naoth.LogReader import Parser def get_audio(frame): return frame["AudioData"] if __name__ == "__main__": myParser = Parser() newFile = open("audio.raw", "wb") timestamp = 0 for s in LogReader("./test_new_recorder.log", myParser, get_audio)...
21.652174
69
0.662651
f416ceb6fdc154c6f93093e9659303a8386cede2
617
py
Python
src/network/bo/messages/prepare_to_validate.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
2
2021-11-08T12:00:02.000Z
2021-11-12T18:37:52.000Z
src/network/bo/messages/prepare_to_validate.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
null
null
null
src/network/bo/messages/prepare_to_validate.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
1
2022-03-28T13:49:37.000Z
2022-03-28T13:49:37.000Z
from .message import Message class Prepare_to_validate(Message): def __init__(self, transaction) -> None: super().__init__() self._name = "prepare-to-validate" self._transaction = transaction def get_transaction(self): return self._transaction def set_transaction(se...
26.826087
55
0.63047
f42323a92919b6174dca2e1029736926ae6f4060
3,847
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/test_hsm.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/test_hsm.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/test_hsm.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
import unittest from unittest.mock import patch from patterns.other.hsm.hsm import ( Active, HierachicalStateMachine, Standby, Suspect, UnsupportedMessageType, UnsupportedState, UnsupportedTransition, ) class HsmMethodTest(unittest.TestCase): @classmethod def setUpClass(cls): ...
38.47
97
0.720302
f4286199dc65309a80e432351f18db8f501a6909
2,917
py
Python
Image_Recognition/Find_Rotation.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Image_Recognition/Find_Rotation.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Image_Recognition/Find_Rotation.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
import Image_Recognition.Find_Car as find_circle from math import atan, pi, pow, sqrt class RotationScanner(find_circle.ImageScanner): def __init__(self, img, color, color_range): self.center_pos = (round(img.shape[1] / 2), round(img.shape[0] / 2)) super().__init__(img, color, color_range) ...
36.4625
107
0.581419
be5e3c072de8ca36b98ecfae3a118c78965ac828
1,639
py
Python
setup.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
1
2020-12-07T13:30:59.000Z
2020-12-07T13:30:59.000Z
setup.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
setup.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
import os from kik import KikApi import requests, base64 BOT_USERNAME = os.environ.get('MUSIK_USERNAME') BOT_API_KEY = os.environ.get('MUSIK_API_KEY') token_response_json = None bot_config = { "username": BOT_USERNAME, "key": BOT_API_KEY } kik = KikApi(bot_config["username"], bot_config["key"]) def get_sp...
31.519231
132
0.695546
fe5da304fccc6caf746e3dccaf446e1cff6d5cc0
163
py
Python
Python/formatize.py
Tamwyn/Turniermanagment
489b3169f4d73ebe3fe68158befff82bf20fa80b
[ "MIT" ]
null
null
null
Python/formatize.py
Tamwyn/Turniermanagment
489b3169f4d73ebe3fe68158befff82bf20fa80b
[ "MIT" ]
null
null
null
Python/formatize.py
Tamwyn/Turniermanagment
489b3169f4d73ebe3fe68158befff82bf20fa80b
[ "MIT" ]
null
null
null
#Formatiere die verschachtelten Tuples zu einer einfachen Liste def format(cursor): result = list() for dump in cursor: result.append(dump[0]) return result
23.285714
63
0.760736
43277949cc1ad8d60b4a8e50bd07665d878b769b
153
py
Python
Pythonskripte/readSerial.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Pythonskripte/readSerial.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Pythonskripte/readSerial.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import serial,time ser = serial.Serial('/dev/ttyACM0',9600) while(1): serial_line=ser.readline() print(serial_line) time.sleep(1) ser.close()
21.857143
40
0.699346
6083a8d76b58daed79c313429195941ca9c014a0
288
py
Python
sources/stage01/hallo.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage01/hallo.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage01/hallo.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
my_supernumber = 333 def add_number(_my_supernumber): my_supernumber = _my_supernumber print(my_supernumber) my_supernumber += my_supernumber print("The number of the beast = " + str(my_supernumber)) print(my_supernumber) add_number(my_supernumber) print(my_supernumber)
26.181818
61
0.777778
60ceee01e8f5c0b17a948335d4b6ccb9d6616755
2,401
py
Python
Flask/FastAPI/Django/Python-API-Development.freeCodeCamp.org/07-Pydantic-Models/main.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Flask/FastAPI/Django/Python-API-Development.freeCodeCamp.org/07-Pydantic-Models/main.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Flask/FastAPI/Django/Python-API-Development.freeCodeCamp.org/07-Pydantic-Models/main.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
from fastapi import status, FastAPI, Response, HTTPException, Depends from .database import engine, get_db from sqlalchemy.orm import Session from sqlalchemy.sql import desc from . import models, schemas from typing import List models.Base.metadata.create_all(bind=engine) app = FastAPI() @app.get("/") def root(): ...
30.0125
94
0.691795
60d672435cb663ca6c90b010303e3e70293182aa
117
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 17/17.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 17/17.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 17/17.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Calculate the sum of value of key a and value of key b and print it out d = {"a": 1, "b": 2} print(d["b"] + d["a"])
29.25
72
0.589744
1ca1e816b8d2598fdc146af1744fff9eecfbd06f
1,434
py
Python
bag-of-words_model/cleanData.py
wingedRuslan/Sentiment-Analysis
6dbc90175a2b42e33e0779f4a09b04ea99689534
[ "MIT" ]
null
null
null
bag-of-words_model/cleanData.py
wingedRuslan/Sentiment-Analysis
6dbc90175a2b42e33e0779f4a09b04ea99689534
[ "MIT" ]
null
null
null
bag-of-words_model/cleanData.py
wingedRuslan/Sentiment-Analysis
6dbc90175a2b42e33e0779f4a09b04ea99689534
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import re import nltk from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer def twitts_to_words(tweet): """ Function to convert a raw review to a string of words The input is a single string (a raw movie review), and the output is a single str...
34.142857
78
0.637378
e82a156cf0c2738329f2e44fc5eefa4b8ea80c84
29,783
py
Python
app/base.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
app/base.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
app/base.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Basis Funktionen für alle Tests """ __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeiten an der TU-Dortmund / FH-Dortmund" __credits__ = ["R.B...
31.616773
209
0.51244
1c7ee9a344e1e6a1421f87a137489a423d555cdc
3,100
py
Python
database/bankends/mongo_database.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
database/bankends/mongo_database.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
database/bankends/mongo_database.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from pymongo import MongoClient, collection from config import singleton, CONFIG from database.db_settings import Settings import bson.binary from gridfs import * import time MONGODB = Settings.mongodb_config @singleton class MongoDatabase: # ===================================初始化数据库并建立连接=======================...
35.632184
150
0.553548
40217ddd516e63abbef225ec4332f78ed2cf0e47
2,443
py
Python
research/cv/wideresnet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/wideresnet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/wideresnet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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.465753
88
0.667212
403d5eabb626e4fab9bfc166b83c0c91390e71fe
316
py
Python
Fastir_Collector/dump/windows7Dump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/dump/windows7Dump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/dump/windows7Dump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
from __future__ import unicode_literals from dump import _Dump from utils.vss import _VSS import os class Windows7Dump(_Dump): def __init__(self, params): super(Windows7Dump, self).__init__(params) self.root_reg = os.path.join(_VSS._get_instance(params)._return_root(), 'Windows\System32\config')
39.5
106
0.762658
468167155cd1e766edbe8e08ed0c3d9c213ddb9d
390
py
Python
weird.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
weird.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
weird.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys num = int(input("Enter a number: ")) if (num % 2) != 0: print("Weird") elif ((num % 2) == 0) and (1 < num < 6): print("Not Weird") elif ((num % 2) == 0) and (5 < num < 21): print("Weird") elif ((num % 2) == 0) and (num > 20): p...
15.6
41
0.548718
9ee56bc1fdda5bfef10eb677b5d05ff2d960b1d2
8,218
py
Python
pyScript/custom_src/StartupDialog.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/StartupDialog.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/StartupDialog.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QPushButton, QTextEdit, QFileDialog, QWidget, QLabel, QListWidget, QListWidgetItem from PySide2.QtGui import QIcon import os from custom_src.GlobalAccess import GlobalStorage class StartupDialog(QDialog): def __init__(self): super(StartupD...
35.575758
147
0.652592
b4049f10e4d1dca0d8c3abc233db6f79b2523661
4,080
py
Python
Computerorietierte_Mathematik/U9/U9_A2.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
Computerorietierte_Mathematik/U9/U9_A2.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
Computerorietierte_Mathematik/U9/U9_A2.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
__author__ = "Qianli Wang und Nazar Sopiha" __copyright__ = "Copyright (c) 2019 qiaw99" # https://github.com/qiaw99/WS2019-20/blob/master/LICENSE #!/usr/bin/env python # -*- coding: utf-8 -*- import random import numpy as np import matplotlib.pyplot as plt # Aufgabe a) def bubblesort(ls): temp = 0 swap = Tru...
29.142857
98
0.539461
b4304c84c887f15dcfbc568d31a3cda2404aaed2
4,259
py
Python
bin/tokenize_all.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
5
2019-03-04T12:59:53.000Z
2022-03-25T03:07:00.000Z
bin/tokenize_all.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
12
2018-06-05T16:35:31.000Z
2022-02-14T21:43:40.000Z
bin/tokenize_all.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
2
2018-06-05T18:00:09.000Z
2019-03-04T12:59:57.000Z
#!/usr/bin/env python3 """ Tokenizes the concatenated files. """ import argparse import os import json import time def parse_args(): parser = argparse.ArgumentParser(description="") parser.add_argument("basepath") return parser.parse_args() def tokenize(lichen_config_data, my_concatenated_file, my_toke...
38.026786
100
0.634421
b488ce77ae1652660cd45780cccd55a98f33c68c
2,588
py
Python
orchestrator/printer.py
suvambasak/fog-service-orchestration
8404484c32b2f6c0bfb2ed820dc46d56f055141d
[ "Apache-2.0" ]
null
null
null
orchestrator/printer.py
suvambasak/fog-service-orchestration
8404484c32b2f6c0bfb2ed820dc46d56f055141d
[ "Apache-2.0" ]
null
null
null
orchestrator/printer.py
suvambasak/fog-service-orchestration
8404484c32b2f6c0bfb2ed820dc46d56f055141d
[ "Apache-2.0" ]
1
2022-02-02T14:49:40.000Z
2022-02-02T14:49:40.000Z
import sys class ColorPrint: """ Colored printing functions for strings that use universal ANSI escape sequences. fail: bold red, pass: bold green, warn: bold yellow, info: bold blue, bold: bold white """ @staticmethod def print_fail(message: str, end="\n"): sys.stderr.write("\x1b...
34.972973
86
0.546754
c31467e8062aae0444e426ce84e467df9eaac350
6,195
py
Python
history/Others/Python/files/simpledoc.py
hengg/i-know-nothing-about-js
2dc1af3303a8565dd5599f8803d4454121bfdbec
[ "MIT" ]
2
2020-08-07T15:31:19.000Z
2021-02-05T16:40:36.000Z
history/Others/Python/files/simpledoc.py
hengg/js-walker
2dc1af3303a8565dd5599f8803d4454121bfdbec
[ "MIT" ]
8
2020-04-07T00:56:00.000Z
2020-09-15T02:21:42.000Z
history/Others/Python/files/simpledoc.py
hengg/i-know-nothing-about-js
2dc1af3303a8565dd5599f8803d4454121bfdbec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os import os.path def getSummarize(): #获取文件功能概述 flag = False summarize="**功能概述**:" filename="## ```文件:" for i in range(0, len(all_the_text)):#逐行读取文件 line = all_the_text[i] if line.__contains__(".swift"): #行以.swift结束则开始解析文件声明 filename=filename+l...
38.006135
114
0.491364
6f4167588b7fcb920b1b7412f8e042c80de78046
835
py
Python
hrsdb/utils.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
hrsdb/utils.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
hrsdb/utils.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
""" Common utilities for the hrsdb package """ import datetime # Datetime format used for conversion DATETIME_FORMAT = "%Y/%m/%d %H:%M:%S" def str2date(date_string): """Convert a datetime string from the common format: dd/mm/YYYY to python Datetime :returns: Date string as a Datetime object, or None if th...
26.935484
71
0.665868
827e63bd9d8c38200963228527c127fae7ccb07a
5,643
py
Python
utils/resnext.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
null
null
null
utils/resnext.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
null
null
null
utils/resnext.py
scott-mao/CroP
f1e0a25224e341683cf47e7ce451ce0fe996e950
[ "MIT" ]
1
2021-11-08T16:34:45.000Z
2021-11-08T16:34:45.000Z
import torch import torch.nn as nn try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url model_urls = { 'resnext50_32x4d': 'https://download.pytorch.org/models/resnext50_32x4d-7cdf4587.pth', 'resnext101_32x8d': 'ht...
39.1875
188
0.639199
817f1fcfeb4fd49e52cbd9c1003cad5c91101489
1,502
py
Python
Packs/CommonScripts/Scripts/ParseExcel/ParseExcel_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ParseExcel/ParseExcel_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ParseExcel/ParseExcel_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import demistomock as demisto class TestParseExcel: @staticmethod def mock_results(mocker): mocker.patch.object(demisto, "results") @staticmethod def mock_context(mocker, args_value=None): if not args_value: args_value = { "entryId": "file_entry...
28.884615
98
0.627164
6fdc8bba496749e06a2315c81540b502b45dd438
601
py
Python
posts/utils.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/utils.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/utils.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
import re import math from django.utils.html import strip_tags def count_words(html_string): word_string = strip_tags(html_string) matching_list = re.findall(r'\w+', word_string) count = len(matching_list) return count def get_read_time(html_string): count = count_words(html_string) read_tim...
25.041667
51
0.703827
96a6c46ea237766ba49270251a6532377a88b756
9,921
py
Python
src/onegov/form/validators.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/validators.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/validators.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import importlib import re import humanize import phonenumbers from cgi import FieldStorage from mimetypes import types_map from onegov.form import _ from onegov.form.utils import with_options from onegov.form.errors import InvalidFormSyntax, DuplicateLabelError, \ FieldCompileError from stdnum.exceptions import ...
31.595541
78
0.610322
73967186703cc71ad9842cd36103e313b6776539
10,081
py
Python
frappe-bench/env/lib/python2.7/site-packages/github/tests/Organization.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/github/tests/Organization.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/github/tests/Organization.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
55.696133
436
0.623152
83e225e6f3a1336db29d844eede5a89f5c702662
3,432
py
Python
WifiEnigma/WifiUnhacking/wifi_Puzzlebox.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
WifiEnigma/WifiUnhacking/wifi_Puzzlebox.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
WifiEnigma/WifiUnhacking/wifi_Puzzlebox.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
from piwifi import Scanner, WpaManager import wifi import re def scan_wifi1(): s = Scanner(interface='wlan0', sudo=True) #Recupère la liste des réseaux et leurs caractéristiques network_list = s.cells #Convertit la liste en string network_list = ' '.join([str(elem) for elem in network_list]) ...
22
83
0.48951
f7a3e5f6cf94e74ba55561ff8beb715b4fcf4bf3
930
py
Python
Skripte/Python/plot_attiny.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/plot_attiny.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/plot_attiny.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
from vars import * csvFile = CSV_FOLDER + "attiny-output_wave.csv" resolution = 1 # Nur jeden n-ten wert verwenden x = np.genfromtxt(csvFile, delimiter=",", skip_header=8, usecols=1) /1000000 # Zeit Konversion von Nanosekunden zu Sekunden y = np.ge...
34.444444
124
0.64086
f7f95f5962303bd2f2a3a4349c065d7e7f872a13
856
py
Python
Packs/Ransomware/Scripts/RansomwareHostWidget/RansomwareHostWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Ransomware/Scripts/RansomwareHostWidget/RansomwareHostWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Ransomware/Scripts/RansomwareHostWidget/RansomwareHostWidget.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 incident = demisto.incidents() data = { "Type": 17, "ContentsFormat": "number", "Contents": { "stats": int(incident[0].get('CustomFields', {}).get('ransomwareapproximatenumberofencryptedendpoints', 0)), ...
25.939394
116
0.384346
58a1ce1e53b885c74b5508799a7d43b51e7c85eb
137
py
Python
Cat/drf_project/apps.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/apps.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/apps.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class DrfProjectConfig(AppConfig): name = 'drf_project'
17.125
39
0.80292
54551c8d07677e947d786790577f5200d7a100a8
2,808
py
Python
src/bo4e/bo/kosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/kosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/kosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Kosten class and corresponding marshmallow schema for de-/serialization """ from typing import List import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema from bo4e.com.betrag i...
39.549296
167
0.751068
49d3ff31538309d25703b13b88489bf01b193894
2,282
py
Python
Hackergame_2019/calculator/main.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2019/calculator/main.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2019/calculator/main.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
from math import * from queue import Queue import json import requests host = "http://202.38.93.241:10024" ln = lambda x: log(x, exp(1)) sqr = lambda x: x ** 2 funcs = [sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh, exp, ln, sqr, lambda x: -x, lambda x: 1 / x, radians, degrees] name...
28.886076
118
0.489483
b76905cb27853b81015b845da1b29bd3dbfdf994
549
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/54. return the index of a target value in a list.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/54. return the index of a target value in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/54. return the index of a target value in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that accepts a sorted list and a target value. If the target value is found in the list, the function should return the index of the target value. If not, return the index where it would be if it were inserted in order. Example: input_list = [0,1,5,7,8] target value = 6 Expected output : inde...
24.954545
100
0.701275