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
44e9ce58eca6b367787b117139e6f3f50464f852
833
py
Python
python/p010.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
4
2018-11-14T12:03:05.000Z
2019-09-03T14:33:28.000Z
python/p010.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
null
null
null
python/p010.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
1
2018-11-17T14:39:22.000Z
2018-11-17T14:39:22.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # author :mathm # email :tlming16@fudan.edu.cn class solution: __slots__=('n') def __init__(self,n:int): self.n=n def is_prime(self,n): if n==2 or n==3 or n==5: return True if n<=1 or n%2==0 or n%3==0 or n%5==0: ...
19.833333
46
0.435774
44eb56b665503a0dd73d9e89b9a79e49606e8146
2,650
py
Python
turngen/execturn.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/execturn.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/execturn.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
import numpy as np def newStateTargetField(existingPiece, newPiece): # if pieces are opposing if existingPiece == 0: return newPiece if 1 <= existingPiece <= 3 and 4 <= newPiece <= 6 or 1 <= existingPiece <= 3 and 4 <= newPiece <= 6: #this is a capture #old piece is a single ...
28.191489
106
0.571698
78b2d7a35a910cd0287ffb4e8d3da7717034fc80
1,559
py
Python
app/configuration.py
brunomileto/gamebet_website
b315569ff5c18538cbc374d19011591edb5f8b26
[ "MIT" ]
null
null
null
app/configuration.py
brunomileto/gamebet_website
b315569ff5c18538cbc374d19011591edb5f8b26
[ "MIT" ]
null
null
null
app/configuration.py
brunomileto/gamebet_website
b315569ff5c18538cbc374d19011591edb5f8b26
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ import os from os import environ # Grabs the folder where the script runs. basedir = os.path.abspath(os.path.dirname(__file__)) class DebugConfig(): CSRF_ENABLED = True SECRET_KEY = "77tgFCdrEEdv77554##@3" UPLOADED_IM...
26.87931
105
0.694035
ecb2cded38d0cb7391b1c1e5c4ef15a33aa6366e
80
py
Python
python/deep_learning/exp/gauss.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/deep_learning/exp/gauss.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/deep_learning/exp/gauss.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
for i in range(3): for j in range(3): a[i][j]=input("Input no. :")
16
36
0.4875
176f81b8dcb07b4020c11bcf9d9147cafd1c9d7b
700
py
Python
docs/config/docs.py
ProEnterprise/docs
9d176ad1a494777acd2cedd60f2393acf53000e0
[ "MIT" ]
null
null
null
docs/config/docs.py
ProEnterprise/docs
9d176ad1a494777acd2cedd60f2393acf53000e0
[ "MIT" ]
null
null
null
docs/config/docs.py
ProEnterprise/docs
9d176ad1a494777acd2cedd60f2393acf53000e0
[ "MIT" ]
null
null
null
""" Configuration for docs """ source_link = "https://github.com/ProEnterprise/docs.git" docs_base_url = "https://enterprise.plus.co.zm/docs" headline = "Documentation" sub_heading = "Pro Enteprise documentation" def get_context(context): context.brand_html = "Pro Enterprise" context.favicon = 'https:...
33.333333
83
0.665714
1777d56a1a0c43b723644f867105bdbb36bb9981
71
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/83criando_lendo_escrevendo_apagando_arquivos/comparadno.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/83criando_lendo_escrevendo_apagando_arquivos/comparadno.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/83criando_lendo_escrevendo_apagando_arquivos/comparadno.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
texto = open('cienComp.txt', 'r') for linha in texto: print(linha)
17.75
33
0.647887
bdcb88c76eaf77019a81a4db94d3812b7500d42e
381
py
Python
334-increasing-triplet-subsequence/334-increasing-triplet-subsequence.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
334-increasing-triplet-subsequence/334-increasing-triplet-subsequence.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
334-increasing-triplet-subsequence/334-increasing-triplet-subsequence.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def increasingTriplet(self, nums: List[int]) -> bool: dp=[nums[0]] for num in nums[1:]: if num>dp[-1]: dp.append(num) elif len(dp)==1 or num<dp[-2]: dp[0]=num elif num>dp[-2]: dp[1]=num if...
29.307692
57
0.419948
e53711d0386772fc3516741b360f04668d26a0e7
1,612
py
Python
Computerorietierte_Mathematik/U8/U8_A3_b.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
Computerorietierte_Mathematik/U8/U8_A3_b.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
Computerorietierte_Mathematik/U8/U8_A3_b.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 """ Die Hauptidee ist, dass wir Bottom-Up dynammische Programmierung verwenden, damit wir viele unnötige Multiplikation einsparen können, dadurch die Laufzeit verkürzert wi...
23.028571
95
0.506203
c13d4c5b83caec6bfd4a7f2dc613be9147cb4e9d
433
py
Python
python/pytest/test_pytest_fixture.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pytest/test_pytest_fixture.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pytest/test_pytest_fixture.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def example_people_data(): return [ { "given_name": "Alfonsa", "family_name": "Ruiz", "title": "Senior Software Engineer", }, { "given_name": "Sayid", "family_name": "Khan", "title": "Proj...
20.619048
56
0.526559
2e87ea3702d8c49f2f3dd13a799c90ce913a53ba
1,421
py
Python
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Lab/Solutions/P11_FruitShop.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Lab/Solutions/P11_FruitShop.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Lab/Solutions/P11_FruitShop.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
name = input() day = input() qty = float(input()) price = 0 if day == 'Monday' \ or day == 'Tuesday' \ or day == 'Wednesday' \ or day == 'Thursday' \ or day == 'Friday': if name == 'banana': price = 2.50 elif name == 'apple': price = 1.20 elif name == 'orang...
24.929825
87
0.4905
cf07097eaab0f277d09dc02b771956aef14fdd92
703
py
Python
nz_tornado01/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_tornado01/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_tornado01/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import tornado.ioloop import tornado.web from tornado.options import define,parse_command_line,options define('port',default=8081,type=int) #定义默认的启动端口号为8081 class MainHandler(tornado.web.RequestHandler): #请求处理的类视图 #继承于RequestHandler类 def get(self): self.write('命令行启动的时候我可以自定义端口号') #以字符串为参数写入到http的响应中 ...
24.241379
61
0.682788
cf872a46129540c229df35895a72c8658491ba36
2,109
py
Python
Controller/storage/models/MulticlassClassifier/MulticlassClassifier.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Controller/storage/models/MulticlassClassifier/MulticlassClassifier.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Controller/storage/models/MulticlassClassifier/MulticlassClassifier.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
from tensorflow.python.keras.layers import Dense from tensorflow.python.keras.models import Sequential, load_model from tensorflow.python.keras.optimizers import Adam from Algorithm import Algorithm from KerasCallback import StatusCallback class MulticlassClassifier(Algorithm): def __init__(self, data, labels, ...
35.745763
103
0.618303
d8ea94fdd34e0c38f4e4657e67857fad45a58cea
8,722
py
Python
awsrun/aws/aws_backend.py
eec289q-f21/stdsw
93604a1b947e39496e6559982eea6d41c77d0204
[ "MIT" ]
null
null
null
awsrun/aws/aws_backend.py
eec289q-f21/stdsw
93604a1b947e39496e6559982eea6d41c77d0204
[ "MIT" ]
null
null
null
awsrun/aws/aws_backend.py
eec289q-f21/stdsw
93604a1b947e39496e6559982eea6d41c77d0204
[ "MIT" ]
1
2021-10-07T23:10:33.000Z
2021-10-07T23:10:33.000Z
import logging import sys import boto3 from botocore.config import Config from utils.Meta import Singleton import requests @Singleton class AWSBackend: GEOGRAPHY = {"A1": "us-east-1", "A2": "us-east-1", "AD": "eu-west-1", "AE": "ap-southeast-1", "AF": "ap-southeast-1", "AG": "us-east-1", "AI": "...
69.222222
114
0.4867
7aa26c5a8047fba91407380f38bf05f74f4b1609
2,858
py
Python
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalPDNSWidgetScript/RiskIQPassiveTotalPDNSWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalPDNSWidgetScript/RiskIQPassiveTotalPDNSWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalPDNSWidgetScript/RiskIQPassiveTotalPDNSWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from RiskIQPassiveTotalPDNSWidgetScript import set_arguments_for_widget_view def test_for_pdns_widget_set_arguments_for_widget_view_when_indicator_type_riskiqasset_and_riskiqassettype_is_empty(): # Configure # set argument for command indicator_data = { 'indicator_type': 'RiskIQAsset', 'v...
28.58
120
0.684745
7ab9bcc95d4b5ed9b21fca89e81049ea5cb1abd4
2,377
py
Python
03 Python/Entwicklung eines IoT-Devices/aufgabe/src/my_iot_device/restserver.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Entwicklung eines IoT-Devices/aufgabe/src/my_iot_device/restserver.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Entwicklung eines IoT-Devices/aufgabe/src/my_iot_device/restserver.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
import cherrypy, threading SERVER_PORT = 8080 MAX_COUNT = 1000 class RestServerHandler: """ Handler-Klasse für einen einfachen, eingebauten Webserver. Der Webserver startet auf Port SERVER_PORT und liefert eine einfache JSON-Struktur mit MAX_COUNT Datensätzen, die seit dem Start der Anwendung gemessen...
30.088608
79
0.599916
8f3ad5874eedafd92dc9ac9663088e21a11001f7
9,445
py
Python
.venv/Lib/site-packages/dexpy/factorial.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/factorial.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/factorial.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
"""Functions to build factorial designs.""" import itertools import pandas as pd import dexpy.design as design def build_full_factorial(factor_count): """Builds a full 2^K factorial design. The resulting design will contain every combination of -1 and +1 for the number of factors given. """ fact...
106.123596
767
0.535204
710099ee1024fcbff86b87f0e7696639086027f9
5,829
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/item_wise_purchase_register/item_wise_purchase_register.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, erpnext from frappe import _ from frappe.utils import flt from erpnext.accounts.report.item_wise_sales_register.item_wise_sales_register ...
38.86
143
0.734603
714243101d16cfb2e366710b0a7407ece1218e2b
398
py
Python
euler-4.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-4.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-4.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
def je_palindrom(n): sez = [] while n > 0: sez.append(n % 10) n //= 10 return sez == sez[::-1] def najvecji_palindrom(n=1): palindromi = [] for x in range(100,1000): for y in range(x,1000): z = x * y if je_palindrom(z): p...
19.9
37
0.487437
852f97878e24b66e710822d3cd6d5321a56da771
261
py
Python
30 Days of Code/30DoC-day-05/30DoC_day_5.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-05/30DoC_day_5.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-05/30DoC_day_5.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
# Strings and loop # Enter your code here. Read input from STDIN. Print output to STDOUT import math import os import random import re import sys s = int(input()) for i in range(0, s): strInput = input() print(strInput[0::2] + " " + strInput[1::2])
16.3125
69
0.670498
85a20253b3b6f7de020f3fe5c54c10bd2b67d5f9
972
py
Python
pws/converter.py
zamys/pws
b26ddb12cbbb00ef3a337d8b5a8ef7dc051d4b13
[ "MIT" ]
null
null
null
pws/converter.py
zamys/pws
b26ddb12cbbb00ef3a337d8b5a8ef7dc051d4b13
[ "MIT" ]
null
null
null
pws/converter.py
zamys/pws
b26ddb12cbbb00ef3a337d8b5a8ef7dc051d4b13
[ "MIT" ]
null
null
null
import json import csv import tkinter as tk from tkinter import filedialog #CSV file wordt aangemaakt als hij niet bestaat #Als er een CSV file is dan wordt er data aan toegevoegd file = open('tweets.csv','a',encoding='utf-8') #encoding moet utf-8 zijn vanwege emoji's en dergelijken csv_writer = csv.writer(file) heade...
27
103
0.647119
7773f86d0acca2bba465894c84afbcec3d920fde
6,094
py
Python
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/net/protocol.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/net/protocol.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/net/protocol.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from browser import help, help_functions from net import filehandler from utils import color import os class Protocol: def __init__(self, unionpath): self.unionpath = unionpath self.client = self.unionpath.client self.filehandler = filehandler.Filehandler(self.unionpath, self.client) ...
39.830065
161
0.524286
567d19fd485ae4adab97d500136cb0fcd46ff743
22,800
py
Python
DHParser/compile.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
DHParser/compile.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
DHParser/compile.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
# compile.py - Syntax driven compilation support for DHParser # # Copyright 2016 by Eckhart Arnold (arnold@badw.de) # Bavarian Academy of Sciences an Humanities (badw.de) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
42.144177
98
0.630175
56816b2fd3f4ef00d89db4402c47b13ec1b5d2b9
273
py
Python
python/python_backup/PRAC_PYTHON/obj3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/obj3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/obj3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#object oriented programming in python #1st prg class stud2: a=0 def _init_(self): self.b=10 self.c=20 def display(self): print stud2.a print stud2.b print self.c s1=stud2() #s1.input() s1.display()
15.166667
39
0.538462
3b09265c2665341f600b6dcd9eb5e899c7bf91db
16,157
py
Python
pyScript/custom_src/PortInstance.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/PortInstance.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/PortInstance.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QGraphicsItem, QLineEdit, QSpinBox from PySide2.QtCore import Qt, QRectF, QPointF from PySide2.QtGui import QColor, QBrush, QPen, QFontMetricsF, QFont from custom_src.GlobalAccess import GlobalStorage from custom_src.FlowProxyWidget import FlowProxyWidget class PortInstance: def __...
42.406824
149
0.605744
d90b02b6f9c33f2f4394ab5803b4663831515f47
48
py
Python
packages/watchmen-meta/src/watchmen_meta/common/exception.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/common/exception.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/common/exception.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
class InitialMetaAppException(Exception): pass
16
41
0.854167
eb52d34ae74b070595df9b8302274e5f2b613a78
1,034
py
Python
udacity course code/01-06-plothistogram.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
1
2021-03-22T22:25:54.000Z
2021-03-22T22:25:54.000Z
udacity course code/01-06-plothistogram.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
6
2017-01-16T09:53:21.000Z
2017-01-18T12:20:09.000Z
udacity course code/01-06-plothistogram.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
null
null
null
"""Plot a histogram.""" import pandas as pd import matplotlib.pyplot as plt from util import get_data, plot_data, compute_daily_returns def test_run(): # Read data dates = pd.date_range('2009-01-01', '2012-12-31') # date range as index symbols = ['SPY'] df = get_data(symbols, dates) # get data for e...
28.722222
79
0.659574
15e16c7c88d30e68a4b102eefa691239707a2222
684
py
Python
Utils/py/GoPro/utils/Blackboard.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/Blackboard.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/Blackboard.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import threading class Blackboard: def __init__(self): # using lock explicitly, don't want to rely on GIL or other python stuff self.__data_lock = threading.Lock() self.__data = {} def get(self, key): with self.__data_lock: if key not in self.__data: ...
23.586207
80
0.595029
d6ba5dec0cc182850bdfb7cc15e100aab8f6abaf
2,003
py
Python
year_3/databases_sem1/lab1/maxdb_usage.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab1/maxdb_usage.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab1/maxdb_usage.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from maxdb import * db = DB('db.json', storage=JSONStorage) """Creating tables and adding rows.""" # users = db.table( # 'Users', # columns={ # 'fname': 'str', # 'sname': 'str' # }, # cache_size=20 # ) # books = db.table( # 'Books', # columns={ # 'author': 'fk', # ...
23.845238
83
0.542187
ba5ef46558d852b1d39d004043845e9cc8e6a8d5
32
py
Python
modules/ui/qt_ui/__init__.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/ui/qt_ui/__init__.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/ui/qt_ui/__init__.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
from .mainwindow import Ui_Form
16
31
0.84375
03149c63b3daf18e9bcc5359e159a1d042b8fde2
181
py
Python
main.py
Yijie-Wu/FileServer
344a225bfba8b8a6f2c4087e186d41f4ba5ecc9f
[ "Unlicense" ]
null
null
null
main.py
Yijie-Wu/FileServer
344a225bfba8b8a6f2c4087e186d41f4ba5ecc9f
[ "Unlicense" ]
null
null
null
main.py
Yijie-Wu/FileServer
344a225bfba8b8a6f2c4087e186d41f4ba5ecc9f
[ "Unlicense" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return "<h1>Hello Jenkins</h1>" if __name__ == '__main__': app.run(host="0.0.0.0", port=5001)
11.3125
36
0.629834
cee678d14cf029f9c72edfa91cf13cf7a2f927b9
3,262
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/turn-defs/generateTurnDefs.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/turn-defs/generateTurnDefs.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/turn-defs/generateTurnDefs.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2011-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 avail...
40.775
102
0.628755
cc43c8ca04edc3dcb02fcc880e8be141d2f60ccc
365
py
Python
pacman-arch/test/pacman/tests/sync1105.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync1105.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync1105.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade with a replacement in a repo with lower prioriy" sp1 = pmpkg("pkg2") self.addpkg2db("sync1", sp1) sp2 = pmpkg("pkg1") sp2.replaces = ["pkg2"] self.addpkg2db("sync2", sp2) lp = pmpkg("pkg2") self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("!PKG...
20.277778
76
0.70411
aeabf2974943a6cedb7eadb13700c3ae79b7342b
6,833
py
Python
python/csv_delete_rows.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/csv_delete_rows.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/csv_delete_rows.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import codecs import copy import csv import os import sys import openapc_toolkit as oat ARG_HELP_STRINGS = { "csv_file": "The file to delete lines from", "index": "The index of the column to test for the delete condition", "value": "A single ...
43.246835
107
0.583785
d198e42a34cdc6b41e3330b3e22a3b45fb48facc
4,705
py
Python
src/bo4e/bo/ausschreibung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/ausschreibung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/ausschreibung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Ausschreibung class and corresponding marshmallow schema for de-/serialization """ from datetime import datetime from typing import List, Optional import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt...
47.05
180
0.783209
4e5172ca15e26ba22bdff7558b641955b0cbba5e
335
py
Python
Fastir_Collector/dump/windows2012ServerDump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/dump/windows2012ServerDump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/dump/windows2012ServerDump.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 Windows2012ServerDump(_Dump): def __init__(self, params): super(Windows2012ServerDump, self).__init__(params) self.root_reg = os.path.join(_VSS._get_instance(params)._return_root(), 'Windows\Sy...
37.222222
106
0.773134
4eda99ac4d65032e16b31a24e07955aac105c495
2,195
py
Python
crunching.py
WolleTD/RackSorterPython
f6eb4f562e4b6008ce9ec9e64de1f1947cb84318
[ "MIT" ]
null
null
null
crunching.py
WolleTD/RackSorterPython
f6eb4f562e4b6008ce9ec9e64de1f1947cb84318
[ "MIT" ]
null
null
null
crunching.py
WolleTD/RackSorterPython
f6eb4f562e4b6008ce9ec9e64de1f1947cb84318
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import racksorter import itertools as it def findShortestPath(stack): shortestPath = racksorter.findShortestPathRecursive(stack, 0, [], None) printStack(stack) print("Shortest path is {} with {} steps".format(*shortestPath)) print("Chains were: ", list(map(list, rack...
34.84127
78
0.569021
118951970b4840771f162cfc206b1632b837ac78
6,751
py
Python
test/test_npu/test_network_ops/test_stack.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_stack.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_stack.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.459119
106
0.644349
11fca9ccccb57198758e5fdbabdac381aac7b611
7,067
py
Python
official_examples/Using_MXNet_to_Train_Caltech101/codes/train_caltech.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
official_examples/Using_MXNet_to_Train_Caltech101/codes/train_caltech.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
official_examples/Using_MXNet_to_Train_Caltech101/codes/train_caltech.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
import ctypes ctypes.CDLL('./codes/libimageaugdefault.so', ctypes.RTLD_LOCAL) import mxnet as mx import argparse import logging import os from codes.symbol.resnet import get_symbol import time # load data def get_mnist_iter(args): train_data_path = os.path.join(args.data_url, 'Caltech101_train.rec') eval_data_...
39.926554
102
0.583274
eea2e726f15a384e74ab294dacaa64621c12a6ed
3,062
py
Python
oldp/apps/laws/management/commands/process_laws.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/laws/management/commands/process_laws.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/laws/management/commands/process_laws.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import os from django.conf import settings from django.core.management.base import BaseCommand from oldp.apps.backend.processing.processing_steps.post.send_to_es import SendToES from oldp.apps.laws.models import Law from oldp.apps.laws.processing.law_processor import LawProcessor, LawInputHandlerFS, LawInputHandlerDB...
34.404494
106
0.655781
eea5d88beac195ba7592b130bb9f56921dcf625d
66
py
Python
torba/torba/orchstr8/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/orchstr8/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/orchstr8/__init__.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
from .node import Conductor from .service import ConductorService
22
37
0.848485
013bc0cf4011bbeb928d7e03a9f0fcab079e5ecb
2,531
py
Python
TEG/past_works/gera_grafo2.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
TEG/past_works/gera_grafo2.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
TEG/past_works/gera_grafo2.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
import random as r from pprint import pprint import math as m def cria_ponto(): return round(r.uniform(0, 1), 4) def gera_x(n): x = set() while len(x) < n: x.add(cria_ponto()) return x def gera_y(n): y = set() while len(y) < n: y.add(cria_ponto()) return y def gera_co...
28.438202
91
0.603714
0173a80a2f2ae3063643f3501c371a465fac6ade
52
py
Python
python/RomanNumbers/tests/method_conversion.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
8
2016-10-18T09:30:12.000Z
2021-12-08T13:28:28.000Z
python/RomanNumbers/tests/method_conversion.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
29
2019-12-28T06:09:07.000Z
2022-03-02T03:44:19.000Z
python/RomanNumbers/tests/method_conversion.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
4
2018-07-23T22:20:58.000Z
2020-09-19T09:46:41.000Z
def as_function(func): return lambda x: func(x)
17.333333
28
0.692308
019a167810ec84723af8c575da63b13ae6e2cf2b
7,264
py
Python
zombie-2021-02-02.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
zombie-2021-02-02.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
zombie-2021-02-02.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
from tkinter import Tk, Canvas from random import randint, choice fire_rate = 5 def positiveOrNegative(n): if n == 0: return 0 elif n < 0: return -1 else: return 1 class Empty(): pass class Player: def __init__(self, up, down, left, right): self.x, self.y = 500...
29.64898
79
0.490914
6d69b8eddde239cbe1f8d119e50b25eb98f5f016
4,595
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_services.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_services.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_services.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. import sub...
30.430464
102
0.623286
6d776cfcfca6db199868b4ba1dd15fd117d2bcc1
57
py
Python
crypto/PsychECC/src/secret.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/PsychECC/src/secret.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/PsychECC/src/secret.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
flag = "rarctf{w0ah_str4ight_cl41r0v0y4nc3!!_8119733d69}"
57
57
0.842105
09d386d63d83470edf82d97f1cbf37395bdef3ea
2,861
py
Python
src/onegov/core/cache.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/cache.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/cache.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Provides caching methods for onegov.core. Onegov.core uses dogpile for caching: `<https://dogpilecache.readthedocs.org/>`_ Unlike dogpile onegov.core does not provide a global region however. The cache is available through the app:: request.app.cache.set('key', 'value') Global caches in a multi-tennant appl...
27.247619
75
0.686473
09dafb40e6dad0cd7406d52c7d7f24edcabc0474
1,809
py
Python
retro/cores/gba/src/platform/python/mgba/thread.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/mgba/thread.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/mgba/thread.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
# Copyright (c) 2013-2017 Jeffrey Pfau # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from ._pylib import ffi, lib from .core import IRunner, ICoreOwner, Core class ...
30.661017
74
0.662797
110cbcf0f3699731027123efb301ff4f7fae87b4
1,347
py
Python
exercises/de/test_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/test_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/test_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert Doc.has_extension( "autor" ), "Hast du die Doc-Erweiterung 'autor' registriert?" ext = Doc.get_extension("autor") assert all( v is None for v in ext ), "Hast du den default-Wert der Erweiterung 'autor' angegeben?" assert Doc.has_extension("buch"), "Hast du die ...
43.451613
89
0.665924
116778a25eb87759a9715b5b8f3eb5a33309610a
205
py
Python
components/py_engine/adapter/esp32/m5stackcore2/boot.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
components/py_engine/adapter/esp32/m5stackcore2/boot.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
components/py_engine/adapter/esp32/m5stackcore2/boot.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import axp192 try: # for m5stack-core2 only axp = axp192.Axp192() axp.powerAll() axp.setLCDBrightness(80) # 设置背光亮度 0~100 except OSError: print("make sure axp192.py is in libs folder")
20.5
50
0.678049
e931bc3dc1fb4c7e6ff3f9c1659880264b5bbfdf
552
py
Python
source/pkgsrc/devel/py-setuptools44/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-setuptools44/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-setuptools44/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2020/08/31 23:04:03 wiz Exp $ Do not install easy_install without python version suffix to allow parallel installation of this package for multiple python versions. --- setup.py.orig 2016-07-14 05:17:28.000000000 +0000 +++ setup.py @@ -30,7 +30,7 @@ scripts = [] def _gen_console_scr...
32.470588
71
0.730072
c9739ea56593c6b035503315f65187d58db9d034
335
py
Python
ugly-number/ugly-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
ugly-number/ugly-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
ugly-number/ugly-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def isUgly(self, n: int) -> bool: if n<1: return False while(n>1): if n%5==0: n/=5 elif n%3==0: n/=3 elif n%2==0: n/=2 else: return False retur...
20.9375
37
0.316418
a32c1632fa1382239245b8d5d5d654210419a7c0
846
py
Python
BITs/2014/Abdrahmanova_G_I/task_4_1.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Abdrahmanova_G_I/task_4_1.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Abdrahmanova_G_I/task_4_1.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 4. Вариант 1. #Напишите программу, которая выводит имя, под которым скрывается Иво Ливи. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех необходимых данных...
52.875
428
0.783688
6e10cb1aeea77f04e4f61bf923d8dc455c5fffbf
4,848
py
Python
profiles/forms.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/forms.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/forms.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from .models import Profile, Feedback from ledger.models import Account, Transaction, Credit, Debit class SignupForm(UserCreationForm): email = forms.EmailField(require...
37.581395
118
0.639851
95ec7b423d1129e5758e0d8e275b598c1ae8c513
530
py
Python
python/en/archive/dropbox/miscellaneous_python_files/python-class-ex02-adder in class Calculator.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/python-class-ex02-adder in class Calculator.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/python-class-ex02-adder in class Calculator.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# 점프 투 파이썬, 박응용, 이지스 퍼블리싱 # 05-1. 파이썬 프로그래밍의 핵심, 클래스 # 클래스는 도대체 왜 필요한가? # pp.174-175 # result = 0 # def adder( num ): # global result # result += num # return result # print( adder( 3 ) ) # print( adder( 4 ) ) class Calculator: def __init__( self ): self.result = 0 def adder( s...
17.096774
29
0.564151
255caa8fbc4b2b6e492b07fcab2652bd7d54cab3
3,084
py
Python
Interview Preparation Kits/Interview Preparation Kit/Trees/Balanced Forest/balanced_forest.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Trees/Balanced Forest/balanced_forest.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Trees/Balanced Forest/balanced_forest.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the balancedForest function below. class Node: def __init__(self, value, children): self.value = value self.children = children self.total = None def build_tree(values, edges): nodes = [Node(value, set(...
27.535714
132
0.54572
6c3d7bdd704581c26fba2170b0aaaf426eae342f
1,844
py
Python
research/nlp/tprr/src/reranker.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/tprr/src/reranker.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/tprr/src/reranker.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...
40.086957
79
0.70282
6c4bf41abf1b2c1477def90a8baac1cd2b079b30
411
py
Python
leetcode/274-H-Index/HIndex_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/274-H-Index/HIndex_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/274-H-Index/HIndex_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def hIndex(self, citations): """ :type citations: List[int] :rtype: int """ citations.sort() res = 0 n = len(citations) l, r = 0, n - 1 while l <= r: m = l + (r - l) / 2 if citations[m] >= n - m: ...
22.833333
37
0.360097
6c62209b27a2b2ccf2b811a221030cf0e8b5df58
134
py
Python
exercises/ja/solution_01_02_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/solution_01_02_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/solution_01_02_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# spaCyをインポート import spacy # nlpオブジェクトを作成 nlp = spacy.blank("ja") # テキストを処理 doc = nlp("有難うございます。") # docのテキストをプリント print(doc.text)
11.166667
23
0.708955
6607b36e182d8d9de3a303b4e2fc0af02ac23791
4,324
py
Python
test/test_npu/test_network_ops/test_tanh_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_tanh_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_tanh_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.392157
89
0.594126
c66f3f2e73a8e26b784e4b774674428a1bd97bcd
513
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_2/update_doctype_status.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/v7_2/update_doctype_status.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/update_doctype_status.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): doctypes = ["Opportunity", "Quotation", "Sales Order", "Sales Invoice", "Purchase Invoice", "Purchase Order", "Delivery N...
46.636364
147
0.730994
c6b6b05f9506e1ad57c8424c123a856ac7b2a05a
563
py
Python
cache/cache/urls.py
wectf/2021
333086b618aae8f95449265b6ec94eb6db4e57a9
[ "MIT" ]
26
2021-06-20T17:01:16.000Z
2022-02-22T03:13:18.000Z
WeCTF/2021/Cache/cache/urls.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
WeCTF/2021/Cache/cache/urls.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
4
2021-06-20T17:08:19.000Z
2021-07-04T08:36:56.000Z
import os from django.urls import re_path from django.http import HttpResponse, HttpRequest FLAG = os.getenv("FLAG") ADMIN_TOKEN = os.getenv("ADMIN_TOKEN") def flag(request: HttpRequest): token = request.COOKIES.get("token") print(token, ADMIN_TOKEN) if not token or token != ADMIN_TOKEN: return...
20.851852
59
0.703375
a524982233d59d367300d859c3584bc1c3e973f6
1,226
py
Python
Intro-Python-I/src/13_file_io.py
tobias-fyi/01_intro_python
c56645291b8bce94d8511c3277fefba1fe8add89
[ "MIT" ]
null
null
null
Intro-Python-I/src/13_file_io.py
tobias-fyi/01_intro_python
c56645291b8bce94d8511c3277fefba1fe8add89
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Intro-Python-I/src/13_file_io.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Python makes performing file I/O simple. Take a look at how to read and write to files here: https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files """ # Open up the "foo.txt" file (which already exists) for reading # Print all the contents of the file, then close the file # Note: pay close...
36.058824
136
0.731648
a574487b33e1d86ea37d8eb2fc97e8ba98bbe1be
1,851
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/11_rad_bttn.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/11_rad_bttn.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/11_rad_bttn.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' A radio button, sometimes called option button, is a graphical user interface element of Tkinter, which allows the user to choose (exactly) one of a predefined set of options. Radio buttons can contain text or images. The button can only display text in a single font. A Python function or method can be associated ...
31.913793
407
0.599136
a5a534ea7131117618ca470642bbd9d71c9184d6
12,137
py
Python
buildscripts/notarize-build.py
doekman/PostgresApp
1f02d2239c3baf298a7c69c47a6edc666127f9bc
[ "PostgreSQL" ]
4,933
2015-01-01T03:23:52.000Z
2022-03-30T22:49:21.000Z
buildscripts/notarize-build.py
doekman/PostgresApp
1f02d2239c3baf298a7c69c47a6edc666127f9bc
[ "PostgreSQL" ]
442
2015-01-01T14:25:30.000Z
2022-03-13T00:03:03.000Z
buildscripts/notarize-build.py
tiarebalbi/PostgresApp
80d9c6d8acb5ce6f4dc45d445af391cfbbf0a8f5
[ "PostgreSQL" ]
318
2015-01-20T09:46:28.000Z
2022-03-27T05:12:52.000Z
#! /usr/bin/env python3 import argparse import getpass import os import platform import re import socket import subprocess import sys import time import zipfile import plistlib import requests import threading def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def read_plist_from_zip(zipPath): ...
38.900641
180
0.594875
a5b8662c333ccbbcc0272f2d139f40908121fce6
484
py
Python
.vscode/extensions/ms-python.python-2021.6.944021595/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydev_imps/_pydev_saved_modules.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
5
2019-04-30T02:46:37.000Z
2021-08-22T08:39:11.000Z
src/ptvsd/_vendored/pydevd/_pydev_imps/_pydev_saved_modules.py
ev3dev/ptvsd
cea22767dd78a812a14e2330a540a368f615224e
[ "MIT" ]
12
2015-10-30T19:20:28.000Z
2021-04-23T15:59:58.000Z
src/ptvsd/_vendored/pydevd/_pydev_imps/_pydev_saved_modules.py
ev3dev/ptvsd
cea22767dd78a812a14e2330a540a368f615224e
[ "MIT" ]
5
2015-09-16T07:50:06.000Z
2019-09-09T14:33:46.000Z
import sys IS_PY2 = sys.version_info < (3,) import threading import time import socket import select if IS_PY2: import thread import Queue as _queue import xmlrpclib import SimpleXMLRPCServer as _pydev_SimpleXMLRPCServer import BaseHTTPServer else: import _thread as thread...
21.043478
59
0.733471
b1b3343adec1da85ecb12e50b7a7fb95a22e08bb
150
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/list_histogram.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/list_histogram.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/list_histogram.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def histogram(items): for n in items: output='' times=n while times>0: output+='*' times=times-1 print(output) histogram([2,3,6,5,7])
13.636364
22
0.62
b1eb5029243c28b83dc13d75efede48aa0df454f
518
py
Python
pacman-arch/test/pacman/tests/upgrade057.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade057.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade057.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade a package that both provides and is a dependency" lp1 = pmpkg("pkg1") lp1.depends = ["pkg2", "imag3"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.provides = ["imag3"] self.addpkg2db("local", lp2) p = pmpkg("pkg2", "1.0-2") p.provides = ["imag3"] self.addpkg(p) self.args = "-U %s...
23.545455
77
0.694981
557927364c1d6964a11092e5dd073c8dfd37d6b3
3,577
py
Python
spider_django/django_app/models.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
spider_django/django_app/models.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
spider_django/django_app/models.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior # * Remove `managed =...
60.627119
155
0.740844
e9d8a775806c8826e41e48b8ded398d8f1446651
555
py
Python
modelindex/commands/cli.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
modelindex/commands/cli.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
modelindex/commands/cli.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
import os import click from modelindex.load_model_index import load @click.group() def cli(): """model-index command line client.""" pass @cli.command() @click.argument("filepath", default="") def check(filepath): """Check if the file syntax is valid""" if filepath == "": filepath = "model-...
18.5
80
0.628829
75d5097ef682b1e4a401c607ce89ae5fe1809591
11,155
py
Python
Project/search.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
Project/search.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
Project/search.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
import heapq from collections import deque import os class StateSpace: n = 0 def __init__(self, action, gval, parent): self.action = action self.gval = gval self.parent = parent self.index = StateSpace.n StateSpace.n = StateSpace.n + 1 def print_p...
39.278169
134
0.525952
f97396e1b07d02977634c32724d6e092dbf2bfb2
1,104
py
Python
src/dataset.py
Narendra1508/Advanced-Project-1
cbafc32378d1a52c44f7b1c17aea9360abf88833
[ "Apache-2.0" ]
null
null
null
src/dataset.py
Narendra1508/Advanced-Project-1
cbafc32378d1a52c44f7b1c17aea9360abf88833
[ "Apache-2.0" ]
null
null
null
src/dataset.py
Narendra1508/Advanced-Project-1
cbafc32378d1a52c44f7b1c17aea9360abf88833
[ "Apache-2.0" ]
null
null
null
#Importing neccessary libraries to read the dataset import json import pandas as pd # Input data files are available in the "./dataset/" directory. # Read the input raw data and parse only the necessary columns from the json file. def main(): """ This function reads the raw twitter dataset and takes no argume...
34.5
107
0.674819
34893dbd4ea3d75036ac3ad3607df64b5e455ea5
223
py
Python
HackerP/introduction/loops.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/introduction/loops.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/introduction/loops.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
# loops # Created by JKChang # 14/08/2018, 10:57 # Tag: # Description: https://www.hackerrank.com/challenges/python-loops/problem if __name__ == '__main__': n = int(input()) for x in range(n): print(x * x)
20.272727
73
0.636771
34f123ef6f34e9741d6671518935055129c9da9d
4,939
py
Python
module/parallelcomp.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
module/parallelcomp.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
module/parallelcomp.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
import threading import queue from femagfunction import Femag from multiprocessing import Process,Value,Array import _thread import os import shutil import multiprocessing import datetime import time import math import numpy as np from operator import itemgetter def make_dir(info): unterordner = "...
24.695
213
0.560437
9b7aab1c8bdbc1466db8877a3069b065bcf378aa
3,063
py
Python
script_party_partisanship_classifier.py
Pijanes/Party_Mobilisation_Twitter
59181b442fa16c7e96cbabfcd28798b473aad2c6
[ "MIT" ]
null
null
null
script_party_partisanship_classifier.py
Pijanes/Party_Mobilisation_Twitter
59181b442fa16c7e96cbabfcd28798b473aad2c6
[ "MIT" ]
null
null
null
script_party_partisanship_classifier.py
Pijanes/Party_Mobilisation_Twitter
59181b442fa16c7e96cbabfcd28798b473aad2c6
[ "MIT" ]
1
2021-07-18T08:32:12.000Z
2021-07-18T08:32:12.000Z
'''Getting ready for Naive Bayes Classifier''' '''databases&Tweet_list''' import pickle import re from nltk.corpus import stopwords import nltk nltk.download('stopwords') from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.model_selection...
39.269231
254
0.781913
1f65d274b2e9a45db57c05be734021d60feffd25
478
py
Python
source/pkgsrc/databases/mongodb/patches/patch-site__scons_site__tools_libtool.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/databases/mongodb/patches/patch-site__scons_site__tools_libtool.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/databases/mongodb/patches/patch-site__scons_site__tools_libtool.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-site__scons_site__tools_libtool.py,v 1.1 2019/03/05 19:35:58 adam Exp $ Use system libtool (Darwin only). --- site_scons/site_tools/libtool.py.orig 2019-03-04 18:25:28.000000000 +0000 +++ site_scons/site_tools/libtool.py @@ -2,7 +2,7 @@ import SCons def generate(env): - env['AR'] = 'libtool' + ...
29.875
86
0.658996
1f7ab78d405ffe388d2c56c70bcb0df88f4f97d8
2,159
py
Python
doc/examples/writing_benchmarks/bench_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/writing_benchmarks/bench_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/writing_benchmarks/bench_jit.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import jit import numba from pure_numpy import laplace_numpy, laplace_loops laplace_transonic_pythran = jit(native=True, xsimd=True)(laplace_numpy) laplace_transonic_python = jit(backend="python")(laplace_numpy) laplace_transonic_numba = jit(backend="numba")(laplace_numpy) laplace_numba = numba.njit(la...
31.289855
77
0.729041
c0e128c55514692029153247a6b2331f8f21e092
1,245
py
Python
easy/4/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
1
2019-02-26T16:34:06.000Z
2019-02-26T16:34:06.000Z
easy/4/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
null
null
null
easy/4/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """app.py: challenge #4""" __author__ = "Carlan Calazans" __copyright__ = "Copyright 2016, Carlan Calazans" __credits__ = ["Carlan Calazans"] __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Carlan Calazans" __email__ = "carlancalazans at gmail dot com" __status...
28.295455
107
0.702008
9e35bbd5cc53fb2b5f26d6b978f8347e997d6f87
108
py
Python
year_3/comppi_0/tgadmincore/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_0/tgadmincore/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_0/tgadmincore/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from tgadmincore import views from django.urls import path urlpatterns = [ path('', views.indexcore) ]
15.428571
29
0.731481
8d31278c73ff2d09cf5969a2cceada74b439e23f
507
py
Python
nz_tornado01/demo01.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_tornado01/demo01.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_tornado01/demo01.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): #请求处理的类视图 #继承于RequestHandler类 def get(self): self.write('tornado是一个支持高并发的web框架') #以字符串为参数写入到http的响应中 def post(self): pass def make_app(): return tornado.web.Application( handlers=[ ...
19.5
63
0.633136
8d950523290edd47c6141614c6b797d5aa69b3e5
266
py
Python
Algorithms/1_Warm_up/7.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/1_Warm_up/7.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/1_Warm_up/7.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/staircase/problem #!/bin/python3 import math import os import random import re import sys def staircase(n): for z in range(1,n+1): print(" "*(n-z)+"#"*z) if __name__ == '__main__': n = int(input()) staircase(n)
16.625
57
0.661654
9e1c49f4dc7b4e610c932b0d883fad2fa383d208
479
py
Python
WD/Cwiczenia/PakietyModuly.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/PakietyModuly.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/PakietyModuly.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
#Zadanie (z kolokwium) #Stwórz pakiet z dwoma modułami. W pierwszym module zapisz #funkcję generującą ciąg liczb podzielnych przez 9 (należy wykorzystać Python #Comprehension) a w drugim module zapisz funkcję, która generuje słownik #gdzie klucze to będa liczby podzielne przez 5 a wartości dowolne. Ilość elementów ...
34.214286
83
0.793319
7e052035308e9aac0667233984b8cac9d1275ec2
5,894
py
Python
tarefas-poo/lista-03/tribo/view/paineis/painel_gerencia_tribo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/tribo/view/paineis/painel_gerencia_tribo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/tribo/view/paineis/painel_gerencia_tribo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício da Tribo # -------------------------- # Classe responsável por gerenciar os acontecimentos de uma tribo # from view.paineis.painel_abstrato import PainelAbstrato from view.menu import Menu class PainelGerenciaTribo(PainelAbstrato): def __init_...
37.782051
104
0.504072
e3097a9d7d68d7f508bd6a84e68e4770af675066
1,346
py
Python
musterloesungen/5.1/login_abfrage.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/5.1/login_abfrage.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/5.1/login_abfrage.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Kurs: Python: Grundlagen der Programmierung für Nicht-Informatiker # Semester: Herbstsemester 2018 # Homepage: http://accaputo.ch/kurs/python-uzh-hs-2018/ # Author: Giuseppe Accaputo # Aufgabe: 5.1 # Die Anzahl Versuche, die der Benutzer bis jetzt gebraucht hat anza...
35.421053
111
0.725111
47ce335a15dcb1eabc458f9c1df4bd3ed2e60b57
1,119
py
Python
shoWifi-master/show.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
shoWifi-master/show.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
shoWifi-master/show.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os,re def cat(): data = [] for i in ['device_name','manufacturer','model_name','model_number','serial_number','device_type']: data.append(re.search(i+'=(.+)',open('/data/misc/wifi/wpa_supplicant.conf','r').read()).group(1)) print(f''' +++ \033[92mDevice Informations\033[0m +++ Device Name : {data[0]} Man...
24.866667
99
0.576408
d0be2fcbbfc7d863957036058a3fd161e1529a51
2,034
py
Python
skills/radio/action-radio.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
4
2021-01-08T21:08:50.000Z
2021-12-08T15:30:50.000Z
skills/radio/action-radio.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
skills/radio/action-radio.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
import json, os import io, configparser from rhasspyhermes.nlu import NluIntent from rhasspyhermes_app import EndSession, HermesApp from radio import Radio app = HermesApp("RadioApp") def read_configuration_file(): try: cp = configparser.ConfigParser() with io.open(os.path.dirname(__file__) + ...
31.78125
91
0.685841
72011d2a238281796dd4b13f5ea76dd63a557f66
282
py
Python
4.py
alvinbengeorge/HackerRank
11101db16df57736cbcacd0a7d9e0b61069ba750
[ "MIT" ]
1
2021-11-06T13:24:58.000Z
2021-11-06T13:24:58.000Z
4.py
alvinbengeorge/HackerRank
11101db16df57736cbcacd0a7d9e0b61069ba750
[ "MIT" ]
null
null
null
4.py
alvinbengeorge/HackerRank
11101db16df57736cbcacd0a7d9e0b61069ba750
[ "MIT" ]
null
null
null
#https://www.hackerrank.com/challenges/python-print/problem?isFullScreen=true&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen if __name__ == '__main__': n = int(input()) [print(i+1,end = "") for i in range(n)]
56.4
186
0.716312
a0a7af5a2d301770aa5988679ea18092e93fd815
347
py
Python
kernel/panel/views.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/panel/views.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/panel/views.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
from django.urls import reverse_lazy, reverse from django.views import generic from django.contrib.auth.mixins import LoginRequiredMixin from painless.decorators import confirm_password # Create your views here. class PanelView(generic.TemplateView): template_name = 'panel/index.html' #additional infor...
21.6875
57
0.78098
3e0bbb6ff91a96cee2a5ea724bd9c515e0992ce6
414
py
Python
.venv/Lib/site-packages/ipopt-0.1.9/ipopt/version.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/ipopt-0.1.9/ipopt/version.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/ipopt-0.1.9/ipopt/version.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ cyipopt: Python wrapper for the Ipopt optimization package, written in Cython. Copyright (C) 2012-2015 Amit Aides Copyright (C) 2015-2018 Matthias Kümmerer Author: Matthias Kümmerer <matthias.kuemmerer@bethgelab.org> (original Author: Amit Aides <amitibo@tx.technion.a...
25.875
78
0.736715
3962f8f1f21245cc5adb7d62bc677032ac61e39f
463
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_1/remove_sales_invoice_from_returned_serial_no.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_1/remove_sales_invoice_from_returned_serial_no.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_1/remove_sales_invoice_from_returned_serial_no.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(): frappe.reload_doctype("Serial No") frappe.db.sql(""" update `tabSerial No` set sales_invoice = NULL where sales_invoice in (sel...
25.722222
60
0.738661
f22d1dd7005e45c861ea74e2fba8e8443cce423d
1,047
py
Python
Course_1/Week_02/MyInversionsZhiyuan.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_02/MyInversionsZhiyuan.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_02/MyInversionsZhiyuan.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
def ReadFile(file_path): data=[] f = open(file_path, 'r') for c in f.readlines(): c_array=c.split('\n') data.append(int(c_array[0])) return data def MySort(UnsortedArray): n=len(UnsortedArray) if n==1: Inversions=0 SortedArray=UnsortedArray else: ...
26.175
62
0.556829
d9d7631ff744d092067796ff4f2ac4c82deb0c27
1,494
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/61c1/src/oop/test_oop1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61c1/src/oop/test_oop1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Sprint-Challenge--Intro-Python/src/oop/test_oop1.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import unittest from oop1 import * class Oop1Tests(unittest.TestCase): def setUp(self): self.vehicle = Vehicle() self.flight_vehicle = FlightVehicle() self.ground_vehicle = GroundVehicle() self.car = Car() self.motorcycle = Motorcycle() self.starship = Starship() self.airplane = Airplane(...
33.954545
67
0.751004
8a6a877ad10db3294a7d108e229081808ae2ad55
1,216
py
Python
tools/pythonpkg/tests/fast/api/test_dbapi01.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_dbapi01.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_dbapi01.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
# multiple result sets import numpy import duckdb class TestMultipleResultSets(object): def test_regular_selection(self, duckdb_cursor): duckdb_cursor.execute('SELECT * FROM integers') duckdb_cursor.execute('SELECT * FROM integers') result = duckdb_cursor.fetchall() assert result =...
43.428571
123
0.633224
6aab62108763e3d07a5e33c3fef5d303516c9880
688
py
Python
python/advanced_sw/IP_COLLECTOR/git_scrap/test111.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/IP_COLLECTOR/git_scrap/test111.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/IP_COLLECTOR/git_scrap/test111.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 from selenium.webdriver.support.ui import Select driver = webd...
32.761905
89
0.800872
6ac323cb17259f89139df15473885fa13be89e25
537
py
Python
volley/serializers/base.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
volley/serializers/base.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
volley/serializers/base.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
# Copyright (c) Shipt, Inc. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from abc import ABC, abstractmethod from typing import Any, Dict class BaseSerialization(ABC): """Base class for serializing and deserializing queue data""" ...
28.263158
65
0.700186
7c402ab79df6309f6bd237992ffe77eccbbca5a6
4,526
py
Python
Lexer_Tokenizer.py
Peetee06/compilerbau_ws2122_hsbochum
9b71e33f7385ba946ce7f4d375b7ca68b21dd97f
[ "MIT" ]
null
null
null
Lexer_Tokenizer.py
Peetee06/compilerbau_ws2122_hsbochum
9b71e33f7385ba946ce7f4d375b7ca68b21dd97f
[ "MIT" ]
null
null
null
Lexer_Tokenizer.py
Peetee06/compilerbau_ws2122_hsbochum
9b71e33f7385ba946ce7f4d375b7ca68b21dd97f
[ "MIT" ]
2
2022-03-13T18:48:24.000Z
2022-03-20T16:45:19.000Z
from lexer_error import (IllegalCharError, InvalidOperatorError) from lexer_token import Token from lexer_position import Position # LEXICAL SCANNER class Tokenizer: def __init__(self, filename, input): self.filename = filename self.input = input self.position = Position(-1,0,-1, filename, ...
43.519231
164
0.644498
7c8d86ede29685adc3f12dd4ceb6b7e494b223d2
4,976
py
Python
Generator/rules.py
Design-Computation-RWTH/ILC_Demonstrator
60046366383de053026a0d03b213f6af3610f608
[ "MIT" ]
1
2021-06-08T10:04:35.000Z
2021-06-08T10:04:35.000Z
mvdXMLGen/ILC_Demonstrator-master/Generator/rules.py
BIMInstitut/MRL-Datenbank
81130071d3b76eba010e7649a2cbaf0a1b7dcfc4
[ "MIT" ]
null
null
null
mvdXMLGen/ILC_Demonstrator-master/Generator/rules.py
BIMInstitut/MRL-Datenbank
81130071d3b76eba010e7649a2cbaf0a1b7dcfc4
[ "MIT" ]
1
2021-05-04T09:38:20.000Z
2021-05-04T09:38:20.000Z
# -*- coding: utf-8 -*- from Generator import guid #rule definition for string, here would be a parse nice #parser to do class PropertySetName: @staticmethod def get(property_set_name): return "PropertySetName[Value]='{}'".format(property_set_name) class PropertyName: @staticmethod def get(pr...
29.270588
193
0.651125
6b2cf45ad13fc9a8a1176259368d7571f0cd56eb
1,146
py
Python
leetcode/015-3Sum/ThreeSum_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/015-3Sum/ThreeSum_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/015-3Sum/ThreeSum_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# @author: cchen # It will be simplified later class Solution: # @return a list of lists of length 3, [[val1,val2,val3]] def threeSum(self, num): num.sort() res = [] for i in range(len(num) - 2): if i == 0 or num[i] > num[i - 1]: left = i + 1; ...
39.517241
87
0.381326
8685e73ef46f8999ee0d5a920fff4410c67c5e9d
500
py
Python
Python/fizzbuzz.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/fizzbuzz.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/fizzbuzz.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'fizzBuzz' function below. # # The function accepts INTEGER n as parameter. # def fizzBuzz(n): for i in range(1,n+1): if i%3==0 and i%5==0: print('FizzBuzz') elif i%3==0 and i%5!=0: p...
16.129032
46
0.542
86d466ccd508a6441cc344c2a3f8a1fe94df76c4
1,890
py
Python
loesungen/chapter04/polynom_graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter04/polynom_graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter04/polynom_graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import re from sys import argv, exit def func(coefficients, x): y = 0 for exponent in coefficients: y += coefficients[exponent] * x ** exponent return y def formula(coefficients): result = '' for i in sorted(coefficients.keys(), reverse=Tr...
26.619718
80
0.587302
d4dcc8703173aadda5ca183644883ef09132e065
81,530
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_bgp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_bgp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_bgp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
34.961407
140
0.539507