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
2071c235fe5a9244e9a04e8a1327c9effcfe5b93
1,649
py
Python
rating/__init__.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
rating/__init__.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
rating/__init__.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
""" The rating module contains the functionality to get calculate score for certain criteria based on information gather by checks before. """ import logging from rating import canonical_url from rating import contact_link from rating import favicon from rating import feeds from rating import https from rating import...
27.483333
79
0.729533
45a02f33302c0767f60b774f68f87b8b49b0c476
518
py
Python
Beginner/03. Python/Computer Graphics Algos/DDA.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
3
2021-03-16T16:44:04.000Z
2021-06-07T17:32:51.000Z
Beginner/03. Python/Computer Graphics Algos/DDA.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/Computer Graphics Algos/DDA.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
2
2020-10-12T15:58:02.000Z
2020-10-20T05:31:11.000Z
#DDA Algo #from graphics import * win = GraphWin("CG Algorithms", 600, 600) #text label = Text(Point(290, 24), 'DDA Line Algo') label.setSize(24) label.draw(win) #Input points print("Enter x1, y1, x2, y2 - ") x0 = int(input()) y0 = int(input()) x1 = int(input()) y1 = int(input()) dx = x1 - x0 dy = y1 - y0 steps =...
14
45
0.590734
45b7934e6bec93014706c97e9e07e7343722be7f
1,010
py
Python
Python/pandas/15_pivot_reshaping.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/15_pivot_reshaping.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/15_pivot_reshaping.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd df = pd.DataFrame({ "group": ['cat', 'dog', 'cat', 'cat', 'dog'], "group2": ['a', 'a', 'b', 'c', 'b'], "A": ['a', 'b', 'c', 'd', 'x'], "B": ['e', 'f', 'g', 'h', 'y'], "C": np.random.randn(5), }) # PivotTable #! Achtung doppelte Indizes nicht erlaubt # Values ...
24.047619
84
0.545545
b32717343495dad169ecdc04d743ac6b8ccde520
6,020
py
Python
research/cv/siamRPN/src/tracker.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/siamRPN/src/tracker.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/siamRPN/src/tracker.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...
44.592593
115
0.581063
2fb4bceb127d2e9831ab4ddba3b1b08fe66f2726
785
py
Python
ev3/sysroot/home/robot/roborinth/app/testMqtt.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/testMqtt.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/testMqtt.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
1
2019-10-22T07:47:51.000Z
2019-10-22T07:47:51.000Z
#!/usr/bin/env python3 from classes.SimpleMqtt import SimpleMqtt from classes.JsonConfig import loadJsonFile configFile = '../config/config.json' def main(): print("test mqtt") config = loadJsonFile(configFile) mqtt = SimpleMqtt(config['mqtt'], config['robot']['id']) def echoMessage(topic, payload): print('ec...
25.322581
74
0.746497
ff95621d6c854910a967ce735fe067c9b05bb852
611
py
Python
20-fs-ias-lec/groups/06-longFi/localEther/sendEtherTest.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/06-longFi/localEther/sendEtherTest.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/06-longFi/localEther/sendEtherTest.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
''' sendEther.py Faris Ahmetasevic, Marco Banholzer, Nderim Shatri This code sends raw ethernet packets to a network by using the scapy library. ''' from scapy.all import sendp, Raw from scapy.layers.l2 import Ether from scapy.all import hexdump import sys import time x = hex(3) packet = x ether = Ether(type=0x70...
20.366667
87
0.733224
80ff5c77128dd0645f8ecdeededb123c325410cd
2,707
py
Python
test/test_npu/test_network_ops/test_upsample_nearest2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_upsample_nearest2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_upsample_nearest2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
42.296875
89
0.631696
a67bdc9a57b92a560411e60c49a32c143d470f23
1,089
py
Python
src/test/tests/plugins/operatorsVsInstall.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/plugins/operatorsVsInstall.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/plugins/operatorsVsInstall.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: operatorsVsInstall.py # # Tests: Building operator plugins against an installed version of VisIt # # # Programmer: Kathleen Biagas # Date: November 8, 2018 # # Modificat...
37.551724
112
0.599633
75024ee4dd5eb5b41a52477e5baf05ba52ac5312
3,268
py
Python
SVMSift.py
saikat-d/DIP2018-Midterm
06c3a74ae4fefc2ec6d47d970bf86ab8062df1bf
[ "BSD-2-Clause" ]
null
null
null
SVMSift.py
saikat-d/DIP2018-Midterm
06c3a74ae4fefc2ec6d47d970bf86ab8062df1bf
[ "BSD-2-Clause" ]
null
null
null
SVMSift.py
saikat-d/DIP2018-Midterm
06c3a74ae4fefc2ec6d47d970bf86ab8062df1bf
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Sep 30 12:22:06 2018 @author: Saikat """ import numpy as np import cv2 from cv2 import ml from matplotlib import pyplot as plt from sklearn.metrics import roc_curve, auc from os.path import isfile,join DB_path = 'images\\SVM\\train\\' TEST_path = 'images\\SVM\\tes...
28.417391
69
0.623929
341c8745eea43f050a66103e798ceb91ba7dfdb1
2,030
py
Python
Python/numpy/np_vector.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/numpy/np_vector.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/numpy/np_vector.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import numpy as np X = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) Y = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) print(42 + X) print(42 * X) print(2 ** X) print(f"X + Y: {X + Y}") print(f"X * Y: {X * Y}") # Matrizen X = np.array( [ [1, 2, 3], [4, 5, 6], [7, 8, 9], ] ) Y = np.array( ...
20.09901
81
0.536946
cad158bf92e8501209c95937b876059d7fd0e42f
1,267
py
Python
tradingbot/core/bot.py
stefaniuk/trading-bot
403abd2b53caf686a6d2456e7eab124c670e7340
[ "MIT" ]
3
2018-05-10T13:51:42.000Z
2020-07-05T16:43:45.000Z
tradingbot/core/bot.py
stefaniuk/trading-bot
403abd2b53caf686a6d2456e7eab124c670e7340
[ "MIT" ]
null
null
null
tradingbot/core/bot.py
stefaniuk/trading-bot
403abd2b53caf686a6d2456e7eab124c670e7340
[ "MIT" ]
1
2020-04-22T09:06:17.000Z
2020-04-22T09:06:17.000Z
from tradingAPI import API from getpass import getpass from .color import * from .config import Configurer from .algorithm import * class Bot(object): def __init__(self): self.api = API() self.config = Configurer("data.ini") self.pivot = Pivot(self.api, self.config) def conf(self): ...
36.2
65
0.546172
1b4825e884ee448679fe43e667c92267ac70e27d
416
py
Python
gestionTomaDatos/migrations/0002_auto_20210116_2025.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionTomaDatos/migrations/0002_auto_20210116_2025.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionTomaDatos/migrations/0002_auto_20210116_2025.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# Generated by Django 2.2.17 on 2021-01-16 20:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gestionTomaDatos', '0001_initial'), ] operations = [ migrations.AlterField( model_name='participantes', name='email...
21.894737
75
0.612981
8476b6a4824a0d65fd7b51222719b8fef4e8874f
6,493
py
Python
src/test/tests/operators/threshold.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/operators/threshold.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/operators/threshold.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: threshold.py # # Tests: mesh - 3D unstructured, single domain, # 3D rectilinear, multiple domain, # 2D curvilinear, multiple domain # ...
23.610909
78
0.710611
849207911c51fff559fb7f19f9cb9e5aa7ad47e2
2,017
py
Python
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/chart_update_onclick.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
14
2016-11-03T19:06:21.000Z
2021-11-24T09:05:09.000Z
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/chart_update_onclick.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
10
2022-02-16T07:17:49.000Z
2022-03-08T12:43:51.000Z
asset/integrations/django/samples/fusioncharts/samples/chart_update_onclick.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file which has required functions to embed the charts in html page from ..fusioncharts import FusionCharts # Loading Data from a Static JSON String # It is a example to show a Column 2D chart where data is passed ...
41.163265
168
0.554784
ca5a7c402119c4a030cb719aae478ae5e5f53aa8
1,341
py
Python
migrations/versions/62e071b0da50_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/62e071b0da50_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/62e071b0da50_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 62e071b0da50 Revises: dcd0b71650b0 Create Date: 2020-07-30 13:13:44.694716 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "62e071b0da50" down_revision = "dcd0b71650b0" branch_lab...
27.9375
86
0.680089
edf02fa2a513ecd992bf773828aef2b065225acd
30,804
py
Python
tests/onegov/ballot/models/test_vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/models/test_vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/models/test_vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from freezegun import freeze_time from onegov.ballot import Ballot from onegov.ballot import BallotResult from onegov.ballot import ComplexVote from onegov.ballot import Vote def test_vote(session): vote = Vote( title="Universal Healthcare", domain='federation', d...
27.284322
78
0.574601
94af1436edb56b31d321470bf77eda5a654ddbbe
799
py
Python
algorithms/ar-isrt/python3/insertion_sort.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
algorithms/ar-isrt/python3/insertion_sort.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
algorithms/ar-isrt/python3/insertion_sort.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
def insertion_sort(array): if not array or len(array) == 1: return array # the inputted array has nothing inside or has one element sorted_list = [] for item in array: # looping through the main array # iterating through the list and comparing each item for i in sorted_list: # comparing eve...
34.73913
129
0.64831
78180e882cb43b76bbb488e598c936137024a18f
1,812
py
Python
code/examples/Events.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
2
2019-09-25T13:39:22.000Z
2019-09-26T10:06:13.000Z
code/examples/Events.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
44
2019-09-25T14:35:48.000Z
2021-08-20T17:26:12.000Z
code/examples/Events.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
8
2019-09-25T13:53:07.000Z
2022-02-24T19:23:44.000Z
""" Register four events into the event system and run an endless loop to catch all. Register also a fifth callback to call the stop function of the event system. Set an eye on every callback to show the event catch. Copyright (C) 2019 Basler AG All rights reserved. This software may be modified a...
22.936709
84
0.676049
7865eb74917ae485480c397670808e65675e7901
1,946
py
Python
virtex-master/virtex.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
virtex-master/virtex.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
virtex-master/virtex.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Author: Rizky # github: https://github.com/hekelpro """ Mau ngapain kontol? Ganti author? ganti logo? lemah lu tolol, buat sendiri ngapa """ import requests as r import os clear = lambda : os.system('clear') def unduh(link, out): print '! Sedang Mengunduh...' a = r.get(link) with open(out+'.txt', 'wb') as sv: ...
29.938462
127
0.683453
01d90efe8d018d4bbe870e0d75083fd1b5d47cc6
7,167
py
Python
model.py
saliAlavi/SegAN
2b1ec5003e523a883ea9ae123765da1a529676f9
[ "MIT" ]
1
2022-01-17T18:08:01.000Z
2022-01-17T18:08:01.000Z
model.py
saliAlavi/SegAN
2b1ec5003e523a883ea9ae123765da1a529676f9
[ "MIT" ]
null
null
null
model.py
saliAlavi/SegAN
2b1ec5003e523a883ea9ae123765da1a529676f9
[ "MIT" ]
2
2020-07-31T07:15:40.000Z
2022-02-27T11:09:12.000Z
import torch.nn.functional as F import torch.nn as nn import torch from math import sqrt LEAKAGE = 0.001 class GConvBlock(nn.Module): def __init__(self, in_dim, out_dim, kernel_size): super(GConvBlock, self).__init__() pad0 = (kernel_size[0] - 1) / 2 pad1 = (kernel_size[1] - 1) / 2 ...
37.721053
102
0.558114
179bd6041d74c3cc213f50199c88c2346f25ee1b
2,977
py
Python
WiSe-2122/Wiederholung/Gruppe-A/Wiederholung-komplett.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Wiederholung/Gruppe-A/Wiederholung-komplett.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Wiederholung/Gruppe-A/Wiederholung-komplett.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Entwickeln Sie ein Programm, welches eine Einkaufsliste erstellt. # Der Nutzer soll die Möglichkeit haben, Waren und deren Menge zu der Einkaufsliste hinzuzufügen. # Ist die Ware bereits auf der Einkaufsliste vorhanden, so soll dies zuerst ausgegeben und gefragt werden, # ob die Menge geändert werden soll. # Variabl...
39.693333
176
0.695331
e5aa779cab02dc7f871586d914d48e189f68b53f
4,557
py
Python
backend/apps/accounts/db_stats.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/accounts/db_stats.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/accounts/db_stats.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
import datetime from django.db.models import Count from django.utils.translation import gettext_lazy as _ from apps.iamstudent.forms import form_labels from apps.iamstudent.models import AUSBILDUNGS_TYPEN_COLUMNS, EmailToHospital, EmailToSend, Student from apps.ineedstudent.models import Hospital from .models import...
35.053846
100
0.657889
c10ad3ce5f8c6b513a3a6fb5d03ae0165bd97ae5
871
py
Python
extender/launcher/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
extender/launcher/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
extender/launcher/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
from conans import ConanFile, CMake, tools import os.path import glob # conan install . -s arch=x86 class LocalConanFile(ConanFile): name = "starsiege-launcher" version = "0.5.1" build_requires = "cmake/3.22.0" settings = "os", "compiler", "build_type", "arch" requires = "detours/4.0.1@microsoft/st...
31.107143
98
0.641791
c156b0a474a4569dd60e76db09b92b4d27d2681f
10,405
py
Python
TestBot/test_cogs/pokerouletteFunctions/__init__.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
TestBot/test_cogs/pokerouletteFunctions/__init__.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
TestBot/test_cogs/pokerouletteFunctions/__init__.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from datetime import datetime as dt from sqlite3 import connect from discord import Embed, Colour import asyncio import pandas as pd import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) stream_handler = logging.StreamHandler() stream_format = logging.Formatter('[%(asctime)s - %(name)s - %(level...
19.894837
120
0.622489
c1e4dd2b4b2d3031a380cbb10b061c98e30849cc
4,332
py
Python
src/visitpy/visit_flow/flow/src/core/errors.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/src/core/errors.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/flow/src/core/errors.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: errors.py author: Cyrus Harrison <cyrush@llnl.gov> created: 3/24/2012 description: ...
31.852941
80
0.662281
a9feb78005ac4d90c2f136d4cf4b1bb8baf5edfe
4,680
py
Python
test/test_npu/common/util_test_new.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/common/util_test_new.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/common/util_test_new.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licen...
36.27907
118
0.685043
e70bac611bf0cb576fdd47ff1cffe53ad81bfa65
1,700
py
Python
python/course/leetcode/1~27/20. Valid Parentheses.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/1~27/20. Valid Parentheses.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/1~27/20. Valid Parentheses.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/21 16:22 # @Author:TimVan # @File:20. Valid Parentheses.py # @Software:PyCharm # 20. Valid Parentheses.py # Given a string containing just the characters '(', ')', '{', '}', '[' and ']', # determine if the input string is valid. # An input string is valid if: # Open brackets must ...
22.972973
80
0.510588
6b4e74df8c0ca01ed1b087e594089b3c2e8e830a
1,262
py
Python
Python/Machine_Learning/Regression/Data_Preprocessing/dataPreprocessing.py
saurabhpal007/hacktoberfest2021-1
5abad37ab426a7b34fc7bcd98ded885fd6ce02ef
[ "CC0-1.0" ]
81
2021-10-01T13:19:13.000Z
2021-10-06T08:43:35.000Z
Python/Machine_Learning/Regression/Data_Preprocessing/dataPreprocessing.py
saurabhpal007/hacktoberfest2021-1
5abad37ab426a7b34fc7bcd98ded885fd6ce02ef
[ "CC0-1.0" ]
67
2021-10-01T13:43:46.000Z
2021-10-06T13:55:49.000Z
Python/Machine_Learning/Regression/Data_Preprocessing/dataPreprocessing.py
saurabhpal007/hacktoberfest2021-1
5abad37ab426a7b34fc7bcd98ded885fd6ce02ef
[ "CC0-1.0" ]
394
2021-10-01T11:55:24.000Z
2021-10-06T13:45:57.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt #reading data from the csv file dataset=pd.read_csv("Data.csv") #Seperating dataset into dependent and independent variables X=dataset.iloc[:,:-1].values Y=dataset.iloc[:,-1].values #removing NULL values from the dataset from sklearn.impute impo...
23.811321
92
0.767036
6b5014ae5010e502ae8f3d0c45433814324a5b02
3,064
py
Python
2DNet/src/prepare_data.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
2DNet/src/prepare_data.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
2DNet/src/prepare_data.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
import joblib import PIL from glob import glob import pydicom import numpy as np import pandas as pd import os import cv2 import json import matplotlib.pyplot as plt import seaborn as sns from collections import Counter from PIL import Image import math import seaborn as sns from collections import defaultdict from pat...
30.64
113
0.715731
cf1bc5af057c789c8b0591b0b7ee17ced072da47
1,073
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/create_address_doc_from_address_field_in_company.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/v8_0/create_address_doc_from_address_field_in_company.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/create_address_doc_from_address_field_in_company.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(): # new field address_html is created in place of address field for the company's address in PR #8754 (without patch) # so here is the patch for ...
31.558824
116
0.696179
d8fa581493dd44f7b64fb3da8f619882135f58a3
2,310
py
Python
Curso_Python/Secao7-Bases-de-dado-com-Python/155_crud/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao7-Bases-de-dado-com-Python/155_crud/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao7-Bases-de-dado-com-Python/155_crud/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
import pymysql.cursors from contextlib import contextmanager @contextmanager def conectar(): conexao = pymysql.connect( host='127.0.0.1', user='root', # password='cursopython@123', db='clientes', charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor ) tr...
28.170732
93
0.587013
9947e0defac21a888bdffeb6a512580a5c24ba55
329
py
Python
src/bo4e/enum/mengenoperator.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/mengenoperator.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/mengenoperator.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Mengenoperator(StrEnum): """ Angabe, wie eine Menge in Bezug auf einen Wert zu bilden ist. """ KLEINER_ALS = "KLEINER_ALS" #: KLEINER_ALS GROESSER_ALS = "GROESSER_ALS" #: GROESSER_ALS GLEICH = "GLEICH" #...
25.307692
65
0.693009
41d487d92d032294cf36ca7319c7f3952fefd1cb
2,797
py
Python
cbm/ipycbm/ipy_view/view_code.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/ipycbm/ipy_view/view_code.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/ipycbm/ipy_view/view_code.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import glob def code(path): from ipywidgets import ...
32.905882
79
0.642832
511b619584d8f89e4e193626f66fc995b01a06b8
205
py
Python
production/pygsl-0.9.5/gsl_dist/array_includes.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
production/pygsl-0.9.5/gsl_dist/array_includes.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/gsl_dist/array_includes.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" WARNING: File Generated during build. DO NOT MODIFY!!! """ array_include_dirs = [] from numpy.distutils.misc_util import get_numpy_include_dirs array_include_dirs = get_numpy_include_dirs()
22.777778
62
0.756098
7a57461c82fce07613036871ec6322818ccfef27
1,376
py
Python
listings/chapter06/char-array.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter06/char-array.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter06/char-array.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
import re class CharArray: CHAR_MAP = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, ' ': 10, 'a': 11, 'b': 12, 'c': 13, 'd': 14, 'e': 15, 'f': 16, 'g': 17, 'h': 18, 'i': 19, 'j': 20, 'k': 21, 'l': 22, 'm': 23, 'n': 24, 'o': 25, 'p': 26, ...
29.913043
96
0.491279
8fb9f17632ba5d778d8a11cc8b85c7330bed5bab
9,654
py
Python
pdftools/pdftool.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
pdftools/pdftool.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
pdftools/pdftool.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python #-*- coding:utf-8 -*- import sys import time import platform import os import json try: from datetime import datetime except ImportError: sys.exit("[*] Exception datetime Import Error") try: from googlesearch import * except ImportError: sys.exit("[*] Exception googlesearch Import E...
40.90678
110
0.400249
85ad3c3afc7a77949a5d36b76b34f3cac5d471fb
204,088
py
Python
test/test_npu/test_torch_npu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_torch_npu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_torch_npu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
41.422367
126
0.583077
74d73b31797ad2798b05197c3988dbeab7129fee
534
py
Python
backend/app/schemas/statistic.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/schemas/statistic.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/schemas/statistic.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import List, Optional from pydantic import BaseModel class WrongImageStatistic(BaseModel): task_image_id: str name: str amount: int label: Optional[str] class WrongLabelDetailStatistic(BaseModel): label: str amount: int class WrongLabelStatistic(BaseModel): ...
20.538462
54
0.734082
7aec17ae9e117aecd063331df70c9e7d84ebcecc
59,493
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_volume.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_volume.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_volume.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# coding=utf-8 # (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type try: from unittest import mock except ImportError: import mock from ansible_collections.neta...
68.304248
144
0.568033
706927155592e340f3427061dfd78184059b76a0
4,906
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/build/configTemplateToWiki.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/configTemplateToWiki.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/configTemplateToWiki.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) 2008-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...
42.293103
102
0.519568
562e54a27bd20bbaa1013068c46cd60031cba5d5
3,414
py
Python
Unpublished/HeartDisease/HeartDisease.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
Unpublished/HeartDisease/HeartDisease.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
Unpublished/HeartDisease/HeartDisease.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] # # Heart Disease Data Exploration # # %% import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set(style="whitegrid") plt.style.use("seaborn-whitegrid") # %% # Fetch data dir_path = os.path.dirname(os.path.realpath(__file__)) heart_data = pd.read...
25.288889
101
0.772994
3b50ea05a848d2b02f5c8a36606fb8b6fb6ef83e
10,414
py
Python
WikiAnalyser/footballMatchAnalyzer/footballMatch.py
Simocracy/PwrBot
feac80393072f3c79e1978466c54c84a4e74ff85
[ "MIT" ]
null
null
null
WikiAnalyser/footballMatchAnalyzer/footballMatch.py
Simocracy/PwrBot
feac80393072f3c79e1978466c54c84a4e74ff85
[ "MIT" ]
null
null
null
WikiAnalyser/footballMatchAnalyzer/footballMatch.py
Simocracy/PwrBot
feac80393072f3c79e1978466c54c84a4e74ff85
[ "MIT" ]
null
null
null
import re from datetime import datetime from collections import OrderedDict from simocracy import flagConverter from simocracy import wiki from footballMatchAnalyzer.footballStatElement import FootballStatElement class FootballMatch: """ Fußballspiel """ """ Team, dessen Statistik erstellt wird, Basierend auf F...
28.298913
347
0.643461
d9709ac6182f4f24db42c6b116f07e65e3c6d3e2
859
py
Python
python/generator_tricks_for_systemprogrammer/netsend.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/netsend.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/netsend.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# netsend.py # # Consume items and send them to a remote machine import socket, pickle from broadcast import broadcast from follow import follow from apachelog import apache_log class NetConsumer(object): def __init__(self, addr): self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ...
22.605263
67
0.62631
d9903a30804f25cc43696d52e8295be84c3624ff
845
py
Python
aoc2020/day_14/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_14/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_14/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * import re class Solution(SolutionABC): expected = 165 def solve(self) -> any: memory = dict() mask = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" for op, val, addr in self.resource_lines("input", self.parse_op): if op == "mask": mask = val ...
31.296296
112
0.542012
79cfe85086a10395dd25b8647f2df14cf478dffc
1,554
py
Python
Packs/CortexXDR/Scripts/CortexXDRCloudProviderWidget/CortexXDRCloudProviderWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CortexXDR/Scripts/CortexXDRCloudProviderWidget/CortexXDRCloudProviderWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CortexXDR/Scripts/CortexXDRCloudProviderWidget/CortexXDRCloudProviderWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * import traceback COLORS = {'AWS': 'ff0000', 'GCP': '339966', 'Azure': '0000ff'} HTML_START = """<h1 style="color: #2e6c80; height: 170px; line-height: 170px; text-align: center;">""" HTML = """<span style="color: #{color};"><strong>{provider}&nbsp; &nbsp; &nbsp; &...
29.320755
122
0.668597
a50243f262ec6aff92aab4ae05a06c5162cf8e46
1,346
py
Python
Packs/ShiftManagement/Scripts/GetAwayUsers/GetAwayUsers.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ShiftManagement/Scripts/GetAwayUsers/GetAwayUsers.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ShiftManagement/Scripts/GetAwayUsers/GetAwayUsers.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from CommonServerPython import * def main(): try: users_command_response: Dict = demisto.executeCommand("getUsers", {}) if is_error(users_command_response) or not users_command_response: raise DemistoException(f'Could not retrieve users\nError details: {get_error(users_command_response...
40.787879
115
0.627043
c625c2b8788e223e6e51df1e07e6fb428ff1d282
304
py
Python
exercises/pt/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/solution_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importar a classe da língua inglesa (English) e criar um objeto nlp from spacy.lang.en import English nlp = English() # Processar o texto doc = nlp("I like tree kangaroos and narwhals.") # Selecionar o primeiro token first_token = doc[0] # Imprimir o texto do primeito token print(first_token.text)
23.384615
69
0.756579
ba54bd7775061e56ba8be7c663646e9584d5a4d7
1,748
py
Python
research/cv/DeepID/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/DeepID/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/DeepID/src/loss.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...
28.655738
83
0.647025
88b84d5da36e6e498396c5b25bfdafa88ef34693
119
py
Python
src/onegov/gis/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.gis.models.coordinates import Coordinates, CoordinatesMixin __all__ = ['Coordinates', 'CoordinatesMixin']
29.75
71
0.815126
003294715b1720c7c4bf781efe509a5e2eb12592
152
py
Python
python/datasets/path.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/datasets/path.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/datasets/path.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import os, sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.abspath(os.path.join(BASE_DIR, "../"))) # for package path
38
82
0.730263
cca9f8b3697b1df39f41f6fda2f5938a98b81f33
12,464
py
Python
bases/base_model.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
bases/base_model.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
bases/base_model.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
import gc import os import zipfile as zf from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from google.colab import auth from oauth2client.client import GoogleCredentials import numpy as np import tensorflow as tf import dask.array as da from dask_ml.decomposition import PCA f...
38.82866
145
0.507381
ccb5ddd84c722ab59aae78a1053a9871b721d6e2
2,399
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/build/setup-sumolib.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-sumolib.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-sumolib.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...
38.079365
83
0.678616
881ce638169b32ca665768fff3ce9fa181a8b6ee
465
py
Python
Sorting/algos/bubble.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
Sorting/algos/bubble.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
Sorting/algos/bubble.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
1
2020-09-25T18:31:34.000Z
2020-09-25T18:31:34.000Z
import numpy as np import matplotlib.pyplot as plt def bubblesort(arr): for i in range(len(arr) - 1): for j in range(0, len(arr) - i - 1): if arr[j] > arr[j + 1]: arr[j], arr[j + 1] = arr[j + 1], arr[j] plt.stem(arr) plt.pause(1e-10) plt.clf(...
22.142857
55
0.509677
ee36ef338ce914c73e4dded507b7c0525686cd37
471
py
Python
Sliding Window/MaximumAverageSubarray-1.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Sliding Window/MaximumAverageSubarray-1.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Sliding Window/MaximumAverageSubarray-1.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
from sys import maxsize class Solution: def findMaxAverage(self, nums, k): result = -maxsize windowStart = 0 windowSum = 0 if k > len(nums): return 0 for windowEnd in range(len(nums)): windowSum += nums[windowEnd] if windowEnd >= k - 1: ...
26.166667
47
0.52017
c9d27d30691be2b4442defb0c894dba06e77fb61
454
py
Python
leetcode/020-Valid-Parentheses/Val_Parent_best.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-12-29T03:26:39.000Z
2016-12-29T03:26:39.000Z
leetcode/020-Valid-Parentheses/Val_Parent_best.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/020-Valid-Parentheses/Val_Parent_best.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ stack = [] pairs = {'(': ')', '[': ']', '{': '}'} for c in s: if c == ')' or c == ']' or c == '}': if not stack or pairs[stack.pop()] != c: ...
25.222222
56
0.348018
a015dbfc7a1d59656cf36aaff3ffc84cd0d75083
506
py
Python
tests/data/conftest.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
tests/data/conftest.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
tests/data/conftest.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
""" Fixtures to support tests/data """ import pytest @pytest.fixture(scope="function", params=("upload", "download")) def supported_action(request): """ return "upload", "download" """ return request.param @pytest.fixture(scope="function", params=("s3", "http", "ftp", "https", "gs", "az")) def supp...
21.083333
84
0.628458
4ea3d58812e138d2e8283b57bbfbcb06764c96e9
949
py
Python
site/public/courses/CS-1.2/src/PlaylistLinkedList-StarterCode/Song.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.2/src/PlaylistLinkedList-StarterCode/Song.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.2/src/PlaylistLinkedList-StarterCode/Song.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
class Song: def __init__(self, title): self.__title = title self.__next_song = None # TODO: Create a getter method for the title attribute, called get_title def get_title(self): pass # TODO: Create a setter method for the next_song attribute, called set_title. Make sure titl...
26.361111
144
0.691254
eeac84bc98a764ed3c9d6da7626ab854dac09537
1,590
py
Python
tests/unit/ledger_sync/inbound/rbac_transaction_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/unit/ledger_sync/inbound/rbac_transaction_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/unit/ledger_sync/inbound/rbac_transaction_tests.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 ...
36.136364
82
0.68805
017ba785e0be21d4b525207ea0569b115ba187c1
5,998
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/traci/_poi.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/traci/_poi.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/traci/_poi.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-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....
36.13253
118
0.628376
6df89b13a2ade3b9edc974e4b6cb6853aa764eb4
316
py
Python
Kapitel_4/_1_Allgemein.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_4/_1_Allgemein.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_4/_1_Allgemein.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
class Discriptor: # owner_cls ist das Klassenobejkt, indem der Descriptor verwendet wird def __set_name__(self, owner_cls, name): pass def __get__(self, instance, owner_cls=None): pass def __set__(self, instace, value): pass def __delete__(self, instance): pass
24.307692
74
0.658228
28dd5c0d4e717d0756b67cf8eb95a17c1ed851c8
301
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_2/update_sales_order_invoice_field_name.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/v4_2/update_sales_order_invoice_field_name.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_2/update_sales_order_invoice_field_name.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc('accounts', 'doctype', 'sales_invoice') frappe.db.sql("""update `tabSales Invoice` set from_date = invoice_period_from_date, to_date = invoice_period_to_date, is_recurring = convert_into_recurring_invoice""")
37.625
85
0.800664
e90c6f5bc3617608a639a03f48b4c20a3aa944fb
3,085
py
Python
prototype/examples/user_support/lab_orchestrator_prototype/user_management.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/user_support/lab_orchestrator_prototype/user_management.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/user_support/lab_orchestrator_prototype/user_management.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
1
2021-09-26T12:09:52.000Z
2021-09-26T12:09:52.000Z
import os import time from flask import abort, request, jsonify, g, url_for import jwt from sqlalchemy.orm import relationship from werkzeug.security import generate_password_hash, check_password_hash import sqlalchemy as sql from lab_orchestrator_prototype.app import app, db, auth class User(db.Model): __tablen...
30.544554
74
0.667099
a3829319a00a6f0102507411f4432550620e97bb
713
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/purearrays/ex03_palindrome_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/purearrays/ex03_palindrome_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/purearrays/ex03_palindrome_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import numpy as np from ch06_arrays.solutions.ex03_palindrome import is_palindrome_rec, is_palindrome_iterative def main(): print(is_palindrome_rec(np.array(["Ein", "Test", " – ", "Test", "Ein"]))) print(is_palindrome_re...
31
92
0.660589
a3881224f1bcc537e4f2e2b8a0343048436ec2d6
2,050
py
Python
src/bias_lexica.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/bias_lexica.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/bias_lexica.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
from bidict import bidict # Bias lexica for qualitative appraisal # Some words are incomplete words or some appear to be only grammatically male # This is because the matching is done by checking if the lexicon entry is a substring violence = [ "Terrorist", "Schwerverbrecher", "Einbrecher", "gewalttät...
18.303571
86
0.556585
666b99b642180eb514bd3473f4a90768ca43e4a9
2,063
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/sonic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/sonic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/sonic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os.path import subprocess import pipes import mar_collection def single_file_generate_default_plugin(filename, basedir, plugin_name): cmd = "sonic-annotator -d %s %s -w csv --csv-force --csv-basedir %s " % ( plugin_name, pipes.quote(filename), basedir) subprocess.call(cmd...
28.652778
77
0.672807
9ffdba95129f4ba5d302b09314b98a2afeea9737
516
py
Python
RDS/circle3_central_services/research_manager/src/lib/Exceptions/ProjectServiceExceptions.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/research_manager/src/lib/Exceptions/ProjectServiceExceptions.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/research_manager/src/lib/Exceptions/ProjectServiceExceptions.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
class NotFoundIDError(Exception): def __init__(self, user, id, msg=None): if msg is None: msg = f"id {id} for user {user} not found." super(NotFoundIDError, self).__init__(msg) self.id = id self.user = user class NotFoundUserError(Exception): def __init__(self, user...
30.352941
55
0.589147
b06e113327d23e1b106d0f307114b7c24f365199
34
py
Python
lib/python3.5/ntpath.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/ntpath.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/ntpath.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/ntpath.py
34
34
0.794118
c6b80b4ac15564104f5c74aa545f0e3723588964
9,265
py
Python
src/onegov/org/forms/extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from sedate import utcnow, to_timezone from onegov.core.html_diff import render_html_diff from onegov.form.extensions import FormExtension from onegov.form.submissions import prepare_for_submission from onegov.form.fields import HoneyPotField from onegov.form.fields import T...
34.962264
79
0.544954
05f9c9aed4ee3878bd55719ab994d17235b2459b
1,752
py
Python
tools/pythonpkg/tests/fast/pandas/test_pandas_object.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/pandas/test_pandas_object.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/pandas/test_pandas_object.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import pandas as pd import duckdb import datetime from numpy import array import random class TestPandasObject(object): def test_object_to_string(self, duckdb_cursor): con = duckdb.connect(database=':memory:', read_only=False) x = pd.DataFrame([[1, 'a', 2],[1, None, 2], [1, 1.1, 2], [1, ...
50.057143
97
0.531393
af227f8e34b7e119198f35baa27549af56f740b0
1,033
py
Python
Graph/BFS.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Graph/BFS.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Graph/BFS.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
""" BFS traversal of a graph Credit: https://courses.csail.mit.edu/6.006/fall11/rec/rec13.pdf """ from collections import deque, OrderedDict class BFSResult: def __init__(self): self.level = OrderedDict() self.parent = OrderedDict() class Graph: def __init__(self): self.adj = {} d...
21.978723
78
0.513069
ab7dce0b469605fe692eeb66617008f5e2e7aaf6
200
py
Python
zencad/examples/1.GeomPrim/3.prim1d/interpolate.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/3.prim1d/interpolate.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/3.prim1d/interpolate.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from zencad import * m = interpolate([ (0, 0), (10, 0), (20, 10), (0, 5, 10), ], tangs=[ None, None, None, None ]) disp(m) show()
10
22
0.435
e984ef827803eeaf301a98b21940d3244a9b2099
1,640
py
Python
app/views/parsers/document_parsers.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/parsers/document_parsers.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/parsers/document_parsers.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from flask_restplus import reqparse, fields def generate_document_input_parser(): document_input_parser = reqparse.RequestParser() document_input_parser.add_argument('title', location='json', help='The document title') document_input_parser.add_argument('content', location='json', help='The document conte...
48.235294
118
0.712195
fb3a6fd49068f554b16b51a213deffc1734c7b65
650
py
Python
haas_lib_bundles/python/docs/examples/auto_control_door/esp32/code/servo.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/auto_control_door/esp32/code/servo.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/auto_control_door/esp32/code/servo.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
""" HaaSPython PWM driver for servo 舵机传感器驱动 """ from driver import PWM class SERVO(object): def __init__(self, pwmObj): self.pwmObj = None if not isinstance(pwmObj, PWM): raise ValueError("parameter is not an PWM object") self.pwmObj = pwmObj def setOptionSero(self,data)...
22.413793
71
0.606154
34d7980c9ee963043154b37dc1caa42c63841cd1
342
py
Python
service/wkb/poseMusic/Piano/setup.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
service/wkb/poseMusic/Piano/setup.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
service/wkb/poseMusic/Piano/setup.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
# coding: utf-8 import os import platform # 获取python版本和操作系统类型 version = platform.python_version_tuple() system = platform.system() # 拼接命令 if version[0] == '3': if system == 'Windows': command = 'pip install' else: command = 'pip3 install' else: command = 'pip install' command += ' mp3pla...
16.285714
41
0.652047
5513b4a111d9c98209968cd9cfedf45026931c1b
533
py
Python
dataChange.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
dataChange.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
dataChange.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
""" 将cm_text 文案转移到cm_text_new库中 """ import CralwerSet.connect_mysql as connect_mysql import traceback conn = connect_mysql.w_shark_erp() cur = conn.cursor() try: for i in range(12950641, 53503537, 100000): print(i) sql = f"INSERT INTO cm_text_new(URL_ID,TEXT) SELECT IFNULL(URL_ID, 0),TEXT FROM cm_...
23.173913
132
0.65666
9b482e5ea2974ae6fd066d085bf39778cf8d9043
1,874
py
Python
test/test_npu/test_sort.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_sort.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_sort.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
36.038462
75
0.719851
fd56c0fb7145de723b3146249863139b1b49080d
4,883
py
Python
deprecated/examples/word2vec/eval.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/examples/word2vec/eval.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/examples/word2vec/eval.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
import paddle import paddle.fluid as fluid from conf import * import logging import six import numpy as np from network import word2vec_infer_net logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s') logger = logging.getLogger("fluid") logger.setLevel(logging.INFO) def native_to_unicode(s): if ...
34.387324
114
0.554168
1fe3e29c78468a53b5835c09907d453a938d59c1
15,365
py
Python
src/backend/test.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
2
2021-04-07T03:12:33.000Z
2021-05-25T10:01:40.000Z
src/backend/test.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
src/backend/test.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
3
2021-04-07T03:12:44.000Z
2021-04-13T11:21:03.000Z
import unittest import time import os from utils.printing import iter_to_str from course import Course, Instructor, Session from student import Student from schedule import Schedule from get_instance import get_student, get_course, courses, instructors from DB.dbModels import db import DB.dbModels as dbMdl ''' Un...
44.025788
103
0.510901
952b1dafd087a620eb515309058ada068f3da878
9,136
py
Python
tests/testbase.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
tests/testbase.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
tests/testbase.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Use Ghostscript (gs) to convert pdf to png. Solution found in /tests/conftest.py render_png() shape size A4 210x297mm Parsing PDF in imagemagick has been disabled - it can be enabled manually by editing /etc/ImageMagick-7/policy.xml file and removing PDF from <policy domain="coder" ri...
34.217228
118
0.560749
1f9861fcba9cfad42f917bf7488d46c4f73bf1f4
730
py
Python
books/PythonAutomate/csv_json_files/csv_writer_obj.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/csv_json_files/csv_writer_obj.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/csv_json_files/csv_writer_obj.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""csv_writer_obj.py csv 모듈의 write obj 활용 """ import csv # 윈도우 OS에서는 newline을 세팅해주지 않으면 2줄 개행이 됨 output_file = open("output.csv", "w", newline="") output_writer = csv.writer(output_file) output_writer.writerow(["spam", "eggs", "bacon", "ham"]) output_writer.writerow(["Hello,world!", "eggs", "bacon", "ham"]) output_wr...
28.076923
72
0.679452
2f1c183a7a25514a5df03d109edd9309f22e112c
5,163
py
Python
deprecated/benchmark/ps/distribute_word2vec/tensorflow/word2vec.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/ps/distribute_word2vec/tensorflow/word2vec.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/ps/distribute_word2vec/tensorflow/word2vec.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
# Copyright 2015 The TensorFlow 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 applica...
40.653543
182
0.671121
2f658e1f94e0ed89d1eb4e2b62ba660190567eb3
3,583
py
Python
src/script/ClientPyChat.py
sera619/PythonSocksChat
21fbaf3e768a0fa33b110c9b6281a7bb3ff45af7
[ "MIT" ]
null
null
null
src/script/ClientPyChat.py
sera619/PythonSocksChat
21fbaf3e768a0fa33b110c9b6281a7bb3ff45af7
[ "MIT" ]
null
null
null
src/script/ClientPyChat.py
sera619/PythonSocksChat
21fbaf3e768a0fa33b110c9b6281a7bb3ff45af7
[ "MIT" ]
null
null
null
import errno import select import socket import sys print(f""" .oooooo..o .oooo. ooooooooo. .o .oooo. .oooo. d8P' `Y8 .dP""Y88b `888 `Y88. .d88 .dP""Y88b .dP""Y88b Y88bo. ]8P' 888 .d88' .d'888 ]8P' .ooooo. ]8P' `"Y8888o. <8...
41.662791
96
0.461903
c86f431dc32dbd98ae81fa3d3d5c153a6c4aab0c
173
py
Python
tutorial.py
nikhadif/Advanced-Programming
e5bf4f5014c17c252bc0cb93c9d44c7c615b79c0
[ "MIT" ]
1
2020-11-21T16:57:40.000Z
2020-11-21T16:57:40.000Z
tutorial.py
nikhadif/Advanced-Programming
e5bf4f5014c17c252bc0cb93c9d44c7c615b79c0
[ "MIT" ]
null
null
null
tutorial.py
nikhadif/Advanced-Programming
e5bf4f5014c17c252bc0cb93c9d44c7c615b79c0
[ "MIT" ]
null
null
null
age = input(input("Enter your age in years: ")) max_heart_rate = 206.9 - (0.67 * age) target = 0.65 * max_heart_rate print("Your target fat-burning heart rate is ", target)
34.6
55
0.699422
7401c7068e47ee4ad31860223fb6c4608c384e68
601
py
Python
algorithms/ar-lcs/python2/longest_common_subsequence.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
algorithms/ar-lcs/python2/longest_common_subsequence.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
algorithms/ar-lcs/python2/longest_common_subsequence.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
def LongestCommonSubsequence(A, B): row, col = len(A), len(B) # constructing the dp matrix intialized with zeros dp = [] for _ in range(row + 1): dp.append([0] * (col + 1)) for i in range(1, row + 1): for j in range(1, col + 1): if A[i - 1] == B[j - 1]: d...
28.619048
67
0.490849
a823ca0fae215d503e16e9e0582b3c4d77ce9f88
1,043
py
Python
WiSe-2122/Uebung-8/U8-A2_Warteschlange-2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Uebung-8/U8-A2_Warteschlange-2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Uebung-8/U8-A2_Warteschlange-2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Im Einwohnermeldeamt soll ein neues System implementiert werden. # Ankommende Besucher müssen sich mit ihrem Namen anmelden. Jeder weitere Besucher stellt sich danach # „hinten“ an. Es entsteht ein Warteschlange (Liste). Die Besucher werden der Reihe nach aufgerufen # und verlassen die Warteschlange (First-In-First-O...
33.645161
101
0.765101
a8377986f797a2478ccd0b06f31e178ebdf2b25d
1,041
py
Python
pyconuk/migrations/0004_scheduleslot.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
pyconuk/migrations/0004_scheduleslot.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
pyconuk/migrations/0004_scheduleslot.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-11 10:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pyconuk', '0003_sponsor'), ] operations = [ ...
32.53125
125
0.573487
b55bc243af609d4ee25eb75a0aca1d035380bc5e
246
py
Python
Online-Judges/LeetCode/1662.Check_If_Two_String_Arrays_are_Equivalent.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/LeetCode/1662.Check_If_Two_String_Arrays_are_Equivalent.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/LeetCode/1662.Check_If_Two_String_Arrays_are_Equivalent.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
class Solution: def arrayStringsAreEqual(self, word1: List[str], word2: List[str]) -> bool: st1, st2 = "", "" for ith in word1: st1 += ith for ith in word2: st2 += ith return st1 == st2
27.333333
79
0.504065
b5b39cd942049af5561d97c7b4777c9bf0777f7b
2,103
py
Python
Licence 1/I21/TP4/tris.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I21/TP4/tris.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I21/TP4/tris.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
from random import randint import matplotlib.pyplot as plt def rand_table(n, a, b): return [randint(a, b) for i in range(n)] def tri_insertion(l): tri = [i for i in l] index = 1 count = 0 while index < len(tri): j = index - 1 k = tri[index] while j >= 0 and k < tri[j]: ...
21.459184
45
0.471232
a96d2ac8635cf9b90096d5e33147508838a13548
3,028
py
Python
deprecated/benchmark/ps/distribute_ctr/tensorflow/data_dnn_process.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/ps/distribute_ctr/tensorflow/data_dnn_process.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/ps/distribute_ctr/tensorflow/data_dnn_process.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
# Copyright (c) 2019 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...
37.85
93
0.6179
f5388e8b40c07ce591a14185c06b7bbbe3943e96
400
py
Python
tests/test_pycharmbug.py
mcarans/pycharmbug
656f92d2ac8c07a027a4cca95a929a8f1ff4875d
[ "MIT" ]
null
null
null
tests/test_pycharmbug.py
mcarans/pycharmbug
656f92d2ac8c07a027a4cca95a929a8f1ff4875d
[ "MIT" ]
null
null
null
tests/test_pycharmbug.py
mcarans/pycharmbug
656f92d2ac8c07a027a4cca95a929a8f1ff4875d
[ "MIT" ]
1
2021-08-14T05:41:22.000Z
2021-08-14T05:41:22.000Z
# -*- coding: UTF-8 -*- """Dataset Title Helper Tests""" from datetime import datetime from hdx.data.dataset_title_helper import DatasetTitleHelper class TestDatasetTitleHelper: def test_get_date_from_title(self): assert DatasetTitleHelper.get_dates_from_title('Myanmar Town 2019 July') == \ ...
33.333333
92
0.6975
191a6341e2b9a4f9fdb9c23ec334791fe7a52f5b
642
py
Python
params.py
abhisheksharma026/AutoML
cc30d38e9e1a8a885ded15d40ed1584b3a4d6d34
[ "MIT" ]
null
null
null
params.py
abhisheksharma026/AutoML
cc30d38e9e1a8a885ded15d40ed1584b3a4d6d34
[ "MIT" ]
null
null
null
params.py
abhisheksharma026/AutoML
cc30d38e9e1a8a885ded15d40ed1584b3a4d6d34
[ "MIT" ]
null
null
null
from libraries import * hyperparameter_space = [space.Integer(3, 10, name = 'depth'), space.Real(0.005, 0.01, name = 'learning_rate'), space.Real(0.1, 0.9, name = 'bagging_temperature'), space.Integer(1, 10, name = 'l2_leaf_reg'), ...
40.125
75
0.484424
1935493c3abbfb0cba7d0bd41d5a3e87821ef720
3,060
py
Python
shinrl/solvers/discrete_pi/_step_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/solvers/discrete_pi/_step_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/solvers/discrete_pi/_step_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
"""MixIns to execute one-step update. Author: Toshinori Kitamura Affiliation: NAIST & OSX """ from copy import deepcopy from typing import Optional import gym import shinrl as srl from .config import PiConfig class TabularDpStepMixIn: def step(self): # Update Policy & Q tables self.data["LogPol...
31.22449
82
0.606209
27170410a8c505784a2ae51a8711922d293a70ef
1,625
py
Python
Crossbar/crossbar_test/argparseExample.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
Crossbar/crossbar_test/argparseExample.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
Crossbar/crossbar_test/argparseExample.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
# if __name__ == '__main__' : # ApplicationRunner( # url = 'wss://demo.crossbar.io/ws', # Même routeur que le composant JS # realm = 'realm1', # Même namespace que le composant JS # extra = {'msg' : 'Mouarfarfarf !'} # Paramètres passés au composant Python # ).run(SexyComponent) import argparse import analysis.csv a...
28.017241
129
0.668923
27ab0e93b35dce09da4f6375b943db35f54bf441
406
py
Python
app/decorators.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
1
2020-12-07T13:30:59.000Z
2020-12-07T13:30:59.000Z
app/decorators.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
app/decorators.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
from app import db def check_state(*wargs): def wrap(fn): def wrapper(*args, **kwargs): game = args[1] if game.state in wargs: fn(*args, **kwargs) db.session.commit() else: from handlers import handler hand...
22.555556
64
0.512315
27f640d6d716673d654feabf7680e5891cbbc1d3
606
py
Python
comp/microsoft/has_solution/005_longest_substr_without_2_contiguous_occur_of_letter.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/microsoft/has_solution/005_longest_substr_without_2_contiguous_occur_of_letter.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/has_solution/005_longest_substr_without_2_contiguous_occur_of_letter.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: def longest_substr(self, s): res = [] ac, bc = 0, 0 start = 0 for i, l in enumerate(s): if l == 'a': ac += 1 bc = 0 elif l == 'b': bc += 1 ac = 0 if ac == 3 or bc == 3 ...
31.894737
95
0.334983
7e00f0c41469d77210eabb5ccb0e1c6a470b4cf2
5,883
py
Python
Online-Courses/gans/utils.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
Online-Courses/gans/utils.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
Online-Courses/gans/utils.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
import os import numpy as np import errno import torchvision.utils as vutils from tensorboardX import SummaryWriter from IPython import display from matplotlib import pyplot as plt import torch ''' TensorBoard Data will be stored in './runs' path ''' class Logger: def __init__(self, model_name, data_name): ...
34.00578
114
0.570287
7e0c7360cb4fc3b74d3575fe05bf3a83e6c59a89
5,932
py
Python
mltrain-nips-2017/ben_athiwaratkun/pytorch-bayesgan/models/discriminators.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
mltrain-nips-2017/ben_athiwaratkun/pytorch-bayesgan/models/discriminators.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
mltrain-nips-2017/ben_athiwaratkun/pytorch-bayesgan/models/discriminators.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
import torch import torch.nn as nn class _netD64(nn.Module): def __init__(self, ngpu, num_classes=1, nc=3, ndf=64): super(_netD64, self).__init__() self.ngpu = ngpu self.num_classes = num_classes self.main = nn.Sequential( # input is (nc) x 64 x 64 nn.Conv2d(...
37.308176
82
0.538604
fd7caeff762b3f3a98cc43be879b2a2d83cbf6c3
1,274
py
Python
code/logic/bt_test_sm.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/logic/bt_test_sm.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/logic/bt_test_sm.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
from logic.statemachine import * from utils.functions import current_time_millis from sensors.bluetooth import bluetooth, bluetooth_pipelines from sensors import pipeline from sensors.camera import camera, camera_pipelines from sensors.ultrasonic import ultrasonic_pipelines, ultrasonic from sensors.infrared import infr...
28.954545
110
0.732339
8b75968313293cb53eda5e5c8c07b0a8a2eef443
575
py
Python
python/tests/test_constructing.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tests/test_constructing.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tests/test_constructing.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import os from os.path import join as opj import numpy as np from tutlibs.constructing import mesh_to_point, point_to_voxel from tutlibs.io import Mesh, Points from tutlibs.visualization import JupyterVisualizer as jv def test_mesh_to_point(data_dir_path: str): vertices, triangles, data = Mesh.read(opj(data_dir_...
28.75
77
0.763478
47f39cdbc0d0cc0c919d70614483d6dded664514
4,529
py
Python
RevIP-main/revip.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
RevIP-main/revip.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
RevIP-main/revip.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from urllib3.util.retry import Retry import requests from requests.adapters import HTTPAdapter import sys import random import requests, threading, os import os.path import threading import json from multiprocessing.dummy import Pool as ThreadPool from colorama import Fore, init, Style init(autoreset=True) os.system('c...
33.798507
133
0.488408