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
60bb23e2b1809a41ea42d6d6b79e528b2bad7cac
14,545
py
Python
Packs/F5LTM/Integrations/F5LTM/F5LTM.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/F5LTM/Integrations/F5LTM/F5LTM.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/F5LTM/Integrations/F5LTM/F5LTM.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from CommonServerPython import * from CommonServerUserPython import * import requests import traceback requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' ''' CLIENT CLASS ''' class Client(BaseClient): def __init__(self, base_url: str, token: object, partition: ...
37.199488
118
0.619732
60de087326af1857e34cfcb293c68e6aee80cd46
3,793
py
Python
test/mockServer.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
test/mockServer.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
test/mockServer.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding=utf-8 -*- import time import json import sys import urllib import urllib2 import tornado.autoreload import tornado.httpserver import tornado.ioloop import tornado.web from tornado import gen from tornado.httpclient import AsyncHTTPClient, HTTPRequest from tornado.options import define, ...
26.711268
112
0.598998
1cd0cf84e798265a9a8e8336698e1aa2171fea5c
447
py
Python
exercises/fr/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Définis le composant personnalisé def length_component(doc): # Obtiens la longueur du doc doc_length = ____ print(f"Ce document comporte {doc_length} tokens.") # Retourne le doc ____ # Charge le petit modèle français nlp = spacy.load("fr_core_news_sm") # Ajoute le composant en pre...
20.318182
55
0.736018
1c79e01b4127b52b3e7bc24ce51bb12b4d134971
2,570
py
Python
Work/TriviaMVA/TriviaMVA/routes.py
dineshkumar2509/Flask
bcacb81d9411f53a88a80c2e4ce31e8141775cbe
[ "Apache-2.0" ]
79
2015-01-31T17:08:36.000Z
2021-11-16T16:33:51.000Z
Work/TriviaMVA/TriviaMVA/routes.py
dineshkumar2509/Flask
bcacb81d9411f53a88a80c2e4ce31e8141775cbe
[ "Apache-2.0" ]
3
2015-05-31T16:34:20.000Z
2016-10-17T05:32:36.000Z
Work/TriviaMVA/TriviaMVA/routes.py
dineshkumar2509/Flask
bcacb81d9411f53a88a80c2e4ce31e8141775cbe
[ "Apache-2.0" ]
100
2015-02-01T12:28:58.000Z
2020-11-15T11:43:34.000Z
from flask import Flask, url_for, request, render_template; from app import app; import redis; #Connect to redis data store r = redis.StrictRedis(host='flaskmva.redis.cache.windows.net',port=6380,ssl=True,db=0, charset="utf-8", decode_responses=True, password='kxmLxHPfw5Xx8piaTlyv5VrPBBkKMoNTG6TNta+Pd5I='); # server...
32.531646
184
0.593774
c76cacc3894170172a9e06b6fc08329e356911a3
483
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_4_Dictionary/70. return all unique values in a dictionary.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_4_Dictionary/70. return all unique values in a dictionary.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_4_Dictionary/70. return all unique values in a dictionary.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
''' Write a Python function to return all unique values in a dictionary. The values should be returned in a list. Input Data: input_dict = {'Box1':'Apple', 'Box2':'Mango', 'Box3':'Orange', 'Box4':'Apple', 'Box5':'Orange', 'Box6':'Orange','Box7':'Strawberry','Box8':'Apple'} Expected outcome = ['Mango', 'Orange', 'Str...
32.2
147
0.695652
dc130899590bfd29eb5ac57e06ac2c75a7885d25
3,990
py
Python
spo/spo/report/abgleich_facharztexpertisen/abgleich_facharztexpertisen.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
null
null
null
spo/spo/report/abgleich_facharztexpertisen/abgleich_facharztexpertisen.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/report/abgleich_facharztexpertisen/abgleich_facharztexpertisen.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# Copyright (c) 2013, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils.data import getdate def execute(filters=None): columns, data = [ {"label": _("Mandat"), "fieldname": "mandat", "fi...
54.657534
268
0.58396
2905fe1e6a974e5ab7a1f813f59b7d449ba2e3fc
1,369
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/global_defaults_to_system_settings.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_0/global_defaults_to_system_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/global_defaults_to_system_settings.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 # MIT License. See license.txt from __future__ import unicode_literals import frappe from collections import Counter from frappe.core.doctype.user.user import STANDARD_USERS def execute(): frappe.reload_doc("core", "doctype", "system_settings") s...
34.225
113
0.747991
466a4ca11a22839e4911c0eb45053871cb3a8be6
1,209
py
Python
posts/forms.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/forms.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/forms.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from django import forms from posts.categoryModels import Category from .models import Post from pagedown.widgets import PagedownWidget class SearchForm(forms.Form): query = forms.CharField() class CategoryForm(forms.ModelForm): class Meta: model = Category fields = [ "parent", ...
26.866667
180
0.615385
3155b4d9678dc852aff9ff775f8d7987826ad7a3
283
py
Python
exercises/de/solution_04_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_04_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_04_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Erstelle ein leeres Model für "de" nlp = spacy.blank("de") # Erstelle einen neuen Entity Recognizer ("ner") und füge ihn zur Pipeline hinzu ner = nlp.create_pipe("ner") nlp.add_pipe(ner) # Füge das Label "GADGET" zum Entity Recognizer hinzu ner.add_label("GADGET")
23.583333
80
0.742049
9ec56ecd764e192603a0f5d2ec22a3f32287400f
5,773
py
Python
experiments/yale_b/data_setup.py
shailesh1729/ssc
6baec02037fc3563bd3b671dd3e7a1fbe16a0841
[ "Apache-2.0" ]
1
2021-12-10T04:25:08.000Z
2021-12-10T04:25:08.000Z
experiments/yale_b/data_setup.py
shailesh1729/ssc
6baec02037fc3563bd3b671dd3e7a1fbe16a0841
[ "Apache-2.0" ]
null
null
null
experiments/yale_b/data_setup.py
shailesh1729/ssc
6baec02037fc3563bd3b671dd3e7a1fbe16a0841
[ "Apache-2.0" ]
null
null
null
# Python imports from pathlib import Path # Numpy/Scipy imports import scipy.io # JAX imports import jax.numpy as jnp from jax import random # CR-Sparse imports import cr.sparse.cluster as crcluster import cr.sparse.cluster.ssc as ssc import cr.sparse as crs # Data directory here = Path(__file__).parent experiments_d...
39.272109
112
0.698077
9ee2578dd228665a195857d571f350ec752e68a9
584
py
Python
components/ucloud_ai/cp_resources.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/ucloud_ai/cp_resources.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/ucloud_ai/cp_resources.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#!/usr/bin/env python3 import os import sys import getpass import shutil comp_path = sys.path[0] print("comp_path:") print(comp_path) # original folder org_image_path = comp_path + "/example/image" # new folder data_path = comp_path + "/../../hardware/chip/haas1000/prebuild/data" image_path = data_path + "/ucloud_a...
20.137931
69
0.755137
b47e16660ce97262ab4ed447057c27c51d887867
394
py
Python
udacity course code/01-03-numpyarrays.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
1
2021-03-22T22:25:54.000Z
2021-03-22T22:25:54.000Z
udacity course code/01-03-numpyarrays.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
6
2017-01-16T09:53:21.000Z
2017-01-18T12:20:09.000Z
udacity course code/01-03-numpyarrays.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
null
null
null
"""Creating NumPy arrays.""" import numpy as np def test_run(): # List to 1D array print np.array([2, 3, 4]) # List of tuples to 2D array print np.array([(2, 3, 4), (5, 6, 7)]) # Empty array print np.empty(5) print np.empty((5,4,3)) print np.ones((5,4)) # Type specifying pri...
17.909091
42
0.573604
5eedd86900e560c0c2f9547a3a751b7ed1ea6c29
133
py
Python
Exercicios/ex05.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex05.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex05.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
nome = input('Digite seu nome: ') idade = input('Digite sua idade: ') msg = '{0} você tem {1} anos!' print(msg.format(nome,idade))
19
35
0.639098
48fe1b555e85bd8df3b989d7cfc9858cc98e919e
309
py
Python
Classes/Wall.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Wall.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Wall.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
import pygame class Wall(object): x, y = '', '' desc = "wall" def __init__(self, pos): self.x = pos[0] self.y = pos[1] self.rect = pygame.Rect(pos[0], pos[1], 50, 50) def get_wall(self): return self def get_pos_wall(self): return self.x, self.y
18.176471
55
0.527508
82748e0b8e9e847204b145ca3ca6892e1b7b55ac
286
py
Python
service/generate.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
service/generate.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
service/generate.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
import sys import collections infile = sys.argv[1] d = collections.defaultdict(list) for line in open(infile): prefix = line[:5] suffix = line[5:] d[prefix].append(suffix) for prefix, suffices in d.items(): with open(prefix, "w") as f: f.writelines(suffices)
19.066667
34
0.660839
7db1de91a1fcfd103816fd8a1a3cbb008e5c3aa7
1,158
py
Python
source-code/ESP8266/m_Storage.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
3
2020-12-30T18:37:13.000Z
2021-10-02T07:43:10.000Z
source-code/ESP8266/m_Storage.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
null
null
null
source-code/ESP8266/m_Storage.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
1
2021-10-02T07:47:53.000Z
2021-10-02T07:47:53.000Z
import gc gc.collect() import ujson as json class Storage: def __init__(self, system): self._call = system self._call.Save = self.SAVE self._call.RESET = self.RESET with open('main.json') as f: self._call.JSON_Main = json.loads(f.read()) f.clo...
27.571429
56
0.480138
96669d331e147a5408219722fc4ca75f9c0f1545
822
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week2/particle_class1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week2/particle_class1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week2/particle_class1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# Testing template for Particle class ################################################### # Student should add code for the Particle class here ################################################### # Test code for the Particle class p = Particle([20, 20], "Red") print p print type(p) p.move([10, 20]) print p p...
21.076923
53
0.547445
7382abd68b5f1b4bb10d3771e5b873c5e9137494
2,887
py
Python
qmk_firmware/lib/python/qmk/cli/generate/rgb_breathe_table.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
qmk_firmware/lib/python/qmk/cli/generate/rgb_breathe_table.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/generate/rgb_breathe_table.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Generate rgblight_breathe_table.h """ import math from argparse import ArgumentTypeError from milc import cli import qmk.path def breathing_center(value): value = float(value) if value >= 1 and value <= 2.7: return value else: raise ArgumentTypeError('Breathing center must be between ...
36.0875
200
0.653273
fb7c2517331d75d7e3b07b6eaba4fd7daf807c44
463
py
Python
udacity course code/01-03-numpyarraymaximumquiz.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
1
2021-03-22T22:25:54.000Z
2021-03-22T22:25:54.000Z
udacity course code/01-03-numpyarraymaximumquiz.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
6
2017-01-16T09:53:21.000Z
2017-01-18T12:20:09.000Z
udacity course code/01-03-numpyarraymaximumquiz.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
null
null
null
"""Locate maximum value.""" import numpy as np def get_max_index(a): """Return the index of the maximum value in given 1D array.""" return a.argmax() def test_run(): a = np.array([9, 6, 2, 3, 12, 14, 7, 10], dtype=np.int32) # 32-bit integer array print "Array:", a # Find the maximum and i...
21.045455
85
0.617711
fbbdf3163499c3447e03e3e1528ddacc06bc4eae
361
py
Python
python/synchronization_primitives/rlock_tut.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/synchronization_primitives/rlock_tut.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/synchronization_primitives/rlock_tut.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import threading num = 0 lock = threading.Lock() # lock.acquire() # num += 1 # lock.acquire() # num += 2 # lock.release() # With RLock, that problem doesn't happen lock = threading.RLock() lock.acquire() num += 3 lock.acquire() # This won't block num += 4 lock.release() lock.release() # You need to call release ...
15.695652
72
0.6759
83ed04089a5d0b637ee4aa9de52771d2d4dcb6cd
1,977
py
Python
room.py
nomadkitty/adventure-game-python
f8081ab2ca4a0e874dea10c3262e2ab65cb66974
[ "MIT" ]
null
null
null
room.py
nomadkitty/adventure-game-python
f8081ab2ca4a0e874dea10c3262e2ab65cb66974
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/projects/adventure/room.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
# Implement a class to hold room information. This should have name and # description attributes. class Room: def __init__(self, name, description, id=0, x=None, y=None): self.id = id self.name = name self.description = description self.n_to = None self.s_to = None se...
32.95
110
0.545776
f72b2ad2a58898693037001dda7e833ae44efbc4
682
py
Python
pyntcloud/structures/kdtree.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/structures/kdtree.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/structures/kdtree.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
from scipy.spatial import cKDTree from .base import Structure class KDTree(cKDTree, Structure): def __init__(self, *, points, leafsize=16, compact_nodes=False, balanced_tree=False): Structure.__init__(self, points=points) self._leafsize = leafsize self._compact_nodes = compact_nodes ...
31
96
0.66129
f7867a88c2b86564a1923fad38ef0c1c8121a5ed
163
py
Python
TreeModelLib/GrowthAndDeathDynamics/NetworkBettina/__init__.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
TreeModelLib/GrowthAndDeathDynamics/NetworkBettina/__init__.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
TreeModelLib/GrowthAndDeathDynamics/NetworkBettina/__init__.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2021-Today @author: marie-christin.wimmler@tu-dresden.de """ from .NetworkBettina import NetworkBettina
18.111111
45
0.699387
f7984d4af11c0fbe68c524c074d728a8ddec39f2
15,756
py
Python
mxst/pipeline_EXAM.py
mnemocron/FHNW
e43c298cb9c8f617fa19b77dd6630a342c78bda7
[ "Unlicense" ]
1
2020-10-07T07:28:33.000Z
2020-10-07T07:28:33.000Z
mxst/pipeline_EXAM.py
mnemocron/FHNW
e43c298cb9c8f617fa19b77dd6630a342c78bda7
[ "Unlicense" ]
null
null
null
mxst/pipeline_EXAM.py
mnemocron/FHNW
e43c298cb9c8f617fa19b77dd6630a342c78bda7
[ "Unlicense" ]
1
2021-01-17T16:38:58.000Z
2021-01-17T16:38:58.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jun 29 08:58:00 2020 @author: simon SEE EXAM in the SECTION BELOW """ #%% import sympy as sp import numpy as np import matplotlib.pyplot as plt # Quantizer # quant(0.111, [-0.125, 0.125]) ==> 1 out of range[0, 1, 2] # returns value in range [0 to n+1] where...
29.560976
101
0.585047
e3b227025c72734558cea5d65292ce23745fa25a
3,260
py
Python
merge_ortho_groups.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
merge_ortho_groups.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
merge_ortho_groups.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Merge orthology groups # Yue Hao # 10/2020 # python merge_ortho_groups.py species-names.tab Ortho_groups_test_90.nt_ali.fasta.tre.txt import sys from parse_ortho_gene_tree import get_species def main(): global species species = get_species(str(sys.argv[1])) Ortho_groups = read_ortho_group(st...
26.08
95
0.676687
58724c36c3934f86aeb5b0f277a433dfa4c1524f
3,030
py
Python
utils/configuration.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/configuration.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/configuration.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from types import FunctionType from utils.codes import Models, Losses, Kernels, properties z_dim = 32 class default_config: model_name = Models.AE graph_type = Models.AE dataset_name = '' # latent_dim = z_dim latent_mean = np.zeros(z_dim)...
23.671875
77
0.566667
548126c840932b1d216303447453db499273d654
126
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 19/19.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 19/19.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 19/19.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Add a c key with a value of 3 to the dictionary and print out the updated dictinary d = {"a": 1, "b": 2} d["c"] = 3 print(d)
25.2
84
0.634921
b207797933f14f82f7a5e06e85e852b4cfbf20a1
586
py
Python
exercises/de/exc_04_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/exc_04_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/exc_04_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.tokens import Span nlp = spacy.blank("de") doc1 = nlp("ich war letztes jahr in amsterdem und die kanäle warn superschön") doc1.ents = [Span(doc1, 5, 6, label="TOURISTENZIEL")] doc2 = nlp("Du solltest einmal im Leben Paris besuchen, aber der Eiffelturm ist relativ langweilig") doc2.ents = [Spa...
34.470588
103
0.728669
b7b158eab7cfeb9a360aae2d982b58b298dacc96
8,203
py
Python
Assignments/2019_Fall/pa2/private_autograder/grader_third.py
USMC1941/CS211_Rutgers
dfcac8b9c719edc04d3e79fee3f95bf3aa40a4e8
[ "MIT" ]
24
2018-12-30T18:05:26.000Z
2022-01-18T08:36:59.000Z
Assignments/2019_Fall/pa2/private_autograder/grader_third.py
USMC1941/CS211_Rutgers
dfcac8b9c719edc04d3e79fee3f95bf3aa40a4e8
[ "MIT" ]
null
null
null
Assignments/2019_Fall/pa2/private_autograder/grader_third.py
USMC1941/CS211_Rutgers
dfcac8b9c719edc04d3e79fee3f95bf3aa40a4e8
[ "MIT" ]
12
2018-02-16T20:25:23.000Z
2021-06-29T22:39:46.000Z
#! /usr/bin/python import os import sys import glob import time import subprocess import signal import popen2 import time dict_train = {"testA.txt": "trainA.txt", "testB.txt": "trainB.txt", "testC.txt": "trainC.txt", "testD.txt": "trainD.txt", "testE.txt": "trainE.txt", "testF.txt": "trainF.txt", "testG...
30.608209
174
0.566012
4dc89978a9c564b486544e02fdeaaadb84963b25
1,034
py
Python
methods/transformers/examples/token-classification/scripts/preprocess.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/examples/token-classification/scripts/preprocess.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/examples/token-classification/scripts/preprocess.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
import sys from transformers import AutoTokenizer dataset = sys.argv[1] model_name_or_path = sys.argv[2] max_len = int(sys.argv[3]) subword_len_counter = 0 tokenizer = AutoTokenizer.from_pretrained(model_name_or_path) max_len -= tokenizer.num_special_tokens_to_add() with open(dataset, "rt") as f_p: ...
24.619048
70
0.617021
12e29017e75f2468dc380af03eb0c27c0be128c9
400
py
Python
tests/views/test_image.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_image.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_image.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import shutil import pytest from project import img_path @pytest.mark.parametrize("size", [None, 100]) def test_read(app, seeder, utils, size): user_id, admin_unit_id = seeder.setup_base() image_id = seeder.upsert_default_image() shutil.rmtree(img_path, ignore_errors=True) url = utils.get_image_ur...
22.222222
54
0.73
42794047a2354128de07b6c24ea7d73914bfda6c
4,501
py
Python
tests/transformers/xlnet/test_modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/transformers/xlnet/test_modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/transformers/xlnet/test_modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.340741
114
0.638303
c055ceed477da0ba3b62a89bc9c92b9cf15a24ff
188
py
Python
src/aijack/utils/metrics.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/utils/metrics.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/utils/metrics.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
import torch def total_variation(x): dx = torch.mean(torch.abs(x[:, :, :, :-1] - x[:, :, :, 1:])) dy = torch.mean(torch.abs(x[:, :, :-1, :] - x[:, :, 1:, :])) return dx + dy
23.5
64
0.457447
450d842e665d2966bd69329cf87180b9b82520e0
330
py
Python
StarCTF/2021/web/oh-my-socket/source/client/client/app.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
91
2021-01-21T07:37:47.000Z
2021-11-18T03:08:58.000Z
StarCTF/2021/web/oh-my-socket/source/client/client/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
2
2021-01-22T01:21:19.000Z
2021-01-22T18:29:33.000Z
StarCTF/2021/web/oh-my-socket/source/client/client/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
13
2021-01-21T10:11:19.000Z
2021-03-14T13:10:49.000Z
from flask import Flask, request app = Flask(__name__) @app.route('/') def index(): return open(__file__).read() @app.route("/file", methods=['GET','POST']) def file(): file = request.args.get('name') content = open(file).read() return content if __name__ == "__main__": app.run(port=5000, host='...
19.411765
43
0.630303
8319fce9e5adbf083ce34d380eba0cdabaf9fb6e
1,248
py
Python
automation/ansible/roles/zookeeper/molecule/default/tests/test_default.py
nutstache/dockerlabs
acfb2b4e06e2c4092849be6dcc1f88038f64cfed
[ "MIT" ]
2,521
2018-07-13T07:23:45.000Z
2022-03-31T22:54:06.000Z
automation/ansible/roles/zookeeper/molecule/default/tests/test_default.py
nutstache/dockerlabs
acfb2b4e06e2c4092849be6dcc1f88038f64cfed
[ "MIT" ]
171
2018-06-21T13:21:43.000Z
2022-03-09T06:55:35.000Z
automation/ansible/roles/zookeeper/molecule/default/tests/test_default.py
nutstache/dockerlabs
acfb2b4e06e2c4092849be6dcc1f88038f64cfed
[ "MIT" ]
1,250
2018-06-19T06:57:23.000Z
2022-03-29T16:26:34.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_package(host): if host.system_info.distribution == 'centos': d = host.file("/opt/zookeeper-3.4.13") assert d.exists...
24.470588
63
0.661859
7fed4a2af61617460c5ab7a026cf617670993f2d
391
py
Python
etl/mappings/cdm_definitions.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/mappings/cdm_definitions.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/mappings/cdm_definitions.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
""" diag, hist, and prob are not included in this cdm_defs """ cdm_defs = { 'fid a': { 'unit': '', 'value': str, 'thresh': (None, None), 'human_readable': 'feature A definition', }, 'fid' b: { 'unit': '', 'value': str, 'thresh': (No...
21.722222
54
0.44757
1826a2bc9171d52a7382df001a0c5b9ee308f6b7
430
py
Python
OSCP/walkthrough/HTB/web/freelancer/emdee.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
98
2019-11-20T05:26:30.000Z
2022-01-27T05:05:39.000Z
OSCP/walkthrough/HTB/web/freelancer/emdee.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
null
null
null
OSCP/walkthrough/HTB/web/freelancer/emdee.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
34
2019-11-25T14:29:16.000Z
2021-10-18T16:40:42.000Z
import requests import hashlib import re url = "http://docker.hackthebox.eu:34914/" r = requests.session() out=r.get(url) out=re.search("<h3 align='center'>+.*?</h3>",out.text) out=re.search("'>.*<",out[0]) out=re.search("[^|'|>|<]...................",out[0]) out=hashlib.md5(out[0].encode('utf-8')).hexdigest() pr...
18.695652
54
0.602326
a7fdb6a457cead76ef5444457850f621040e47f5
2,302
py
Python
reports/sep/code/create_yolo_data.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/sep/code/create_yolo_data.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/sep/code/create_yolo_data.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import cv2 import json import numpy as np from os import path, listdir from tqdm import tqdm raw = path.join('data', 'sep_raw_01') interim = path.join('data', 'sep_interim_01') processed = path.join('data', 'sep_processed_01') image_width = 360 image_height = 360 data_list = [] num_examples = 100000 for image_idx...
30.693333
76
0.586012
9aae22705d3a2efde6589471f1be34163ebf1b78
1,682
py
Python
S5/CS331-SS/PGM_005b - Two Level Directory.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S5/CS331-SS/PGM_005b - Two Level Directory.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S5/CS331-SS/PGM_005b - Two Level Directory.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
from anytree import Node, RenderTree def view(): us, lst = [], [] rt = Node(root) [us.append(Node(i, parent=rt)) for i in users] [lst.append(Node(j,parent=i)) for i, k in zip(us, range(len(files))) for j in files[k]] for pre, fill, node in RenderTree(rt): print(str(pre)+str(node.name)) fill #just to use the v...
28.508475
161
0.625446
b1078d65f640b4c4a760cfdd6983f29f2cf93bab
1,519
py
Python
lib/python/algebra/unionfind.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
lib/python/algebra/unionfind.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
lib/python/algebra/unionfind.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
# Ref: not522/ac-library-python https://github.com/not522/ac-library-python/blob/master/atcoder/dsu.py class UnionFind: def __init__(self, n=0): self._n = n self.parent_or_size = [-1] * n def merge(self, a, b): assert 0 <= a < self._n assert 0 <= b < self._n x = self.fin...
31.645833
102
0.535221
7715c5c00d4b8eedbe690b0154f6265172cead60
634
py
Python
app/models/documents.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/models/documents.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/models/documents.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
import datetime from sqlalchemy.dialects.mysql import LONGTEXT from app import db class Document(db.Model): __tablename__ = 'documents' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(80), unique=True) content = db.Column(LONGTEXT) creator_id = db.Column(db.Integer, ind...
30.190476
108
0.722397
6204e04510c0a038bae54738b6f08f58cfce5e94
38,396
py
Python
Packs/BPA/Integrations/BPA/test_data/response_constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/BPA/Integrations/BPA/test_data/response_constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/BPA/Integrations/BPA/test_data/response_constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
GET_RESULTS_RESPONSE = { "status": "complete", "results": { "version": "5.0.0", "adoption": ["adoption"], "adoption_summary": ["adoption summary"], "adoption_grand_totals": {"adoption grand totals": "stats"}, "adoption_trend": ['adoption trend'], "bpa": { ...
52.097693
1,160
0.445541
656aa1e3004154eb861b6326bc1f9d4fa6b278f2
21,795
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/virt_pool.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/virt_pool.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/virt_pool.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Maciej Delmanowski <drybjed@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1...
30.610955
106
0.57504
65b797fc6f222d2242b0dfa22abe6627f584a549
697
py
Python
partner_ngos/fund_management/doctype/activity/activity.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/fund_management/doctype/activity/activity.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/fund_management/doctype/activity/activity.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Akram Mutaher and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _, throw from frappe.model.document import Document from frappe.utils import (cstr) class Activity(Document): def val...
30.304348
81
0.757532
029c0515ce610d56d84a6677a7f4f0ed8e4c952a
5,300
py
Python
research/nlp/seq2seq/src/seq2seq_model/decoder.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/seq2seq/src/seq2seq_model/decoder.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/seq2seq/src/seq2seq_model/decoder.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...
41.085271
108
0.625472
b89e0e8defe498254ebfd03e3b32f93e8ea1f90c
9,262
py
Python
hisim/components/battery.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/components/battery.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/components/battery.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
1
2022-03-13T16:15:36.000Z
2022-03-13T16:15:36.000Z
# Generic/Built-in import copy # Owned from hisim import component as cp from hisim import loadtypes as lt from hisim import utils from hisim.components.ev_charger import SimpleStorageState from hisim.simulationparameters import SimulationParameters __authors__ = "Vitor Hugo Bellotto Zago" __copyright__ = "Copyright 2...
42.1
149
0.562513
b22faf1519e40b192480a732a03d95fb56e54e9c
704
py
Python
BITs/2014/Shmireychik_S_V/task_4_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Shmireychik_S_V/task_4_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Shmireychik_S_V/task_4_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №4, Вариант 17 #Программа выводит имя, под которым скрывается Грета Густафсон и дополнительно выводит область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти) #Шмирейчик С.В. #14.03.2016 print(" Грета Гус...
35.2
240
0.742898
a7778629f5a0d1c521e89d84f16df7798ad78a70
3,424
py
Python
Packs/PcapAnalysis/Scripts/PcapMinerV2/PcapMinerV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PcapAnalysis/Scripts/PcapMinerV2/PcapMinerV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PcapAnalysis/Scripts/PcapMinerV2/PcapMinerV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest def test_strip(): test_string = "T'hi's >is a t[]es[t t<]ext." from PcapMinerV2 import strip assert strip(test_string) == "Thisisatesttext." def test_heirarchy_to_md(): test_heirarchy = {'First Layer': 50, 'Second Layer': 50, 'Third Layer': 5...
43.897436
118
0.571554
38f796481cc6a3c57e85d87d90ecf8c61c4787a6
5,096
py
Python
MAIN/STM32F405_C/NORMAL/history/V36/AppContext.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V36/AppContext.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V36/AppContext.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import utime import peripheral import userControl import DataBase import SX1239 import SubController DB = DataBase.DataBase() SX1239 = SX1239.SX1239() SX1239.Receive() Sub = SubController.Sub() class Operation: class Mode: Value = 3 Standby = 0 Register = 1 Delete = 2 Sl...
31.652174
86
0.620487
ac428b2659e5a0789d6bddd79912a0f557b040b5
30,430
py
Python
Packs/WindowsDefenderAdvancedThreatProtection/Integrations/WindowsDefenderAdvancedThreatProtection/WindowsDefenderAdvancedThreatProtection.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/WindowsDefenderAdvancedThreatProtection/Integrations/WindowsDefenderAdvancedThreatProtection/WindowsDefenderAdvancedThreatProtection.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/WindowsDefenderAdvancedThreatProtection/Integrations/WindowsDefenderAdvancedThreatProtection/WindowsDefenderAdvancedThreatProtection.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import requests import base64 from cryptography.hazmat.primitives.ciphers.aead import AESGCM requests.packages.urllib3.disable_warnings() if not demisto.params()['proxy']: del os.environ['HTTP_PROXY'] del os.env...
33.004338
112
0.619783
3bd7771e5bfd8c165390479895908a0492b2cf1c
14,183
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/salary_slip/test_salary_slip.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/salary_slip/test_salary_slip.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/salary_slip/test_salary_slip.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 unittest import frappe import erpnext import calendar from erpnext.accounts.utils import get_fiscal_year from frappe.utils import getdate, nowdat...
39.839888
163
0.721145
ce1c79a45c8d6e513bc68a8e84822a861f9a41c8
618
py
Python
comp/lifered/city.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/lifered/city.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/lifered/city.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
def city(T): # build adjacency list adj = [[] for i in range(len(T))] root = 0 for i in range(len(T)): t = T[i] if i == t: root = i continue adj[i].append(t) adj[t].append(i) # bfs q = [root] visited = [False for i in range(len(T))] ...
20.6
44
0.412621
5a5b2133295ab36491a60f27f333eef6afac4d22
79
py
Python
books/PythonCleanCode/ch9_design_pattern/log.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch9_design_pattern/log.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch9_design_pattern/log.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import logging logging.basicConfig() logger = logging.getLogger(__name__)
15.8
37
0.772152
0c7ee71659d6a76f652562512ca80488d1626145
230
py
Python
Python/1. Introduction/2.If_Else.py
anberlin-mudasir/hakerrank
7ea076bf959f942dfb7a97ba2dc8074147b610be
[ "MIT" ]
null
null
null
Python/1. Introduction/2.If_Else.py
anberlin-mudasir/hakerrank
7ea076bf959f942dfb7a97ba2dc8074147b610be
[ "MIT" ]
null
null
null
Python/1. Introduction/2.If_Else.py
anberlin-mudasir/hakerrank
7ea076bf959f942dfb7a97ba2dc8074147b610be
[ "MIT" ]
null
null
null
if __name__ == '__main__': n = int(input()) if(n%2 !=0): print('Weird') else: if(n>=2 and n<=5): print ('Not Weird') elif(n>=6 and n<=20): print ('Weird') else: print ('Not Weird')
14.375
27
0.465217
49064fffcb8c211bce47d97147d570dde89cd566
256
py
Python
python/lib/sms.py
FiboVN/sms-examples
ec6df1104d67766a2a03e4d1313a47b2358d4d83
[ "MIT" ]
null
null
null
python/lib/sms.py
FiboVN/sms-examples
ec6df1104d67766a2a03e4d1313a47b2358d4d83
[ "MIT" ]
null
null
null
python/lib/sms.py
FiboVN/sms-examples
ec6df1104d67766a2a03e4d1313a47b2358d4d83
[ "MIT" ]
null
null
null
class SMS: endpoint = "http://center.fibosms.com/service.asmx" clientNo = "" clientPass = "" def __init__(self, clientNo, clientPass): self.clientNo = clientNo self.clientPass = clientPass def send_sms(self, message): return False
19.692308
53
0.683594
0babf9acfd8a28649e34b9911d5d6d7dbe75b845
5,360
py
Python
trainers/soft_value_based_trainer.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
trainers/soft_value_based_trainer.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
trainers/soft_value_based_trainer.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import os import torch import numpy as np from trainers.value_based_trainer import ValueBasedTrainer from utils.scheduler import epsilon_scheduler from utils.hparams import hparams from utils.replay_buffer import ReplayBuffer from utils.tb_logger import TensorBoardLogger from utils.torch_utils import * from utils.clas...
44.297521
121
0.674813
e7edf4a9a1e88f9f4d39094399c9a8270227e327
2,625
py
Python
verto/tests/TableOfContentsTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/TableOfContentsTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/TableOfContentsTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from unittest.mock import Mock from verto.VertoExtension import VertoExtension from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor from verto.tests.ProcessorTest import ProcessorTest class TableOfContentsTest(ProcessorTest): '''The table-of-contents processor inherits f...
46.875
132
0.735238
e8da4e8c03669cbb17ca154b66391b0cb8554dce
18,185
py
Python
Packs/FeedCrowdstrikeFalconIntel/Integrations/CrowdStrikeIndicatorFeed/CrowdStrikeIndicatorFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedCrowdstrikeFalconIntel/Integrations/CrowdStrikeIndicatorFeed/CrowdStrikeIndicatorFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedCrowdstrikeFalconIntel/Integrations/CrowdStrikeIndicatorFeed/CrowdStrikeIndicatorFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import copy import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa from CrowdStrikeApiModule import * # noqa: E402 # IMPORTS from datetime import datetime import requests # Disable insecure warnings requests.packag...
39.532609
130
0.649821
68649c12d45ef7b8e10aaa8ad6d0c12a6adf07bf
1,461
py
Python
INBa/2014/Andreev_F_I/Andreev_9_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Andreev_F_I/Andreev_9_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Andreev_F_I/Andreev_9_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9, Вариант 2 # Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. # Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо # буква в слове, причем программа может отвечать только "Да" и "Нет". Вслед за тем игрок должен поп...
31.76087
124
0.603012
686d50ce0b6ecb9da90a48dc070525af27f7b396
499
py
Python
Project Euler Qusetions 11 - 20/Project Euler Question 20.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Qusetions 11 - 20/Project Euler Question 20.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Qusetions 11 - 20/Project Euler Question 20.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 20 #n! means n × (n − 1) × ... × 3 × 2 × 1 #For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800, #and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27. #Find the sum of the digits in the number 100! def factorial(x): if x == 1: return 1 if x == 2: return 2 e...
22.681818
79
0.593186
68b155581afda2ccffd3bf2abc2b006afd282417
8,875
py
Python
HW1.py
ranayukirin/ImageProce_hw1
1761d8a63aefc50091caa84069199baf8b026b05
[ "MIT" ]
null
null
null
HW1.py
ranayukirin/ImageProce_hw1
1761d8a63aefc50091caa84069199baf8b026b05
[ "MIT" ]
null
null
null
HW1.py
ranayukirin/ImageProce_hw1
1761d8a63aefc50091caa84069199baf8b026b05
[ "MIT" ]
null
null
null
import numpy as np import tkinter as tk from PIL import ImageTk, Image # just for showing picture on GUI, NOT use for image loading or processing from my_imfilter import my_imfilter from gauss2D import gauss2D from bitmap import Bitmap window = tk.Tk() window.title('HW1') window.geometry('900x700') starty = 0.5 * (700...
40.158371
105
0.550873
0bdfe1abd511791c79d7a476ccc7b2b07c204ce6
1,468
py
Python
FemagMain.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
FemagMain.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
FemagMain.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
from module.d_optimal_design import Doptimaldesign from module.parallelcomp import run import numpy as np var = [596.0, 40.0, 1.2, 3.6, 1.0, 0.0, 0.0, 0.0, 0.0, 4.0] inside_diam = 390.00 minJoch = 10.00 minSlot = 10.0 total_num_slot = 48 minopHeight = 1.00 slotwidthMin ...
34.139535
169
0.591281
4a129764ca3f6b4da14be65bc0e096cb7f5027d4
1,684
py
Python
RESTApi/flaskapp/routes.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
RESTApi/flaskapp/routes.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
32
2018-06-19T15:27:04.000Z
2018-09-30T20:17:23.000Z
RESTApi/flaskapp/routes.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
from flask import Blueprint, request, Response from db import get_db from db import init_db from uploader import Uploader from jsonParser import JsonParser import json from . import trainAndTest from . import label_image import os from collections import Counter import recommend bp = Blueprint("routes", __...
30.618182
88
0.7019
e8b60876abd294da0da10d93a9008a6f154336a8
2,075
py
Python
Packs/Rapid7_Nexpose/Integrations/Rapid7_Nexpose/Rapid7_Nexpose_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Rapid7_Nexpose/Integrations/Rapid7_Nexpose/Rapid7_Nexpose_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Rapid7_Nexpose/Integrations/Rapid7_Nexpose/Rapid7_Nexpose_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import requests ITEM_WITHOUT_MS = { 'date': '2019-05-03T03:01:54Z' } ITEM_WITH_MS = { 'date': '2019-05-03T03:02:54.123Z' } ITEM_WITH_SCANID = { 'date': '2019-05-03T03:03:54.123Z', 'scanId': '1' } class ResponseMock: def __init__(self): self.status_code = 20...
23.314607
76
0.640482
d75bf86d563e8abfa6013100fdff22d453e16110
2,614
py
Python
official/recommend/naml/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/naml/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/naml/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.215385
107
0.72456
7ed3250f47500af222aea8713d79c8d95fb41574
979
py
Python
python/en/_matplotlib/gallery/subplots_axes_and_figures/aligning_labels.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/subplots_axes_and_figures/aligning_labels.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/subplots_axes_and_figures/aligning_labels.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ subplots_axes_and_figures/aligning_labels.py Matplotlib > Gallery > Subplots, axes and figures > Aligning Labels https://matplotlib.org/gallery/subplots_axes_and_figures/align_labels_demo.html#sphx-glr-gallery-subplots-axes-and-figures-align-labels-demo-py TODO: Test...
27.971429
143
0.694586
bc3407f255ea9d54cfa02b9bff0b4f1852859bee
1,407
py
Python
python/oneflow/compatible/single_client/test/ops/test_module_container.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_module_container.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_module_container.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
29.93617
72
0.710021
cb144dd8d225b467a6f5cedb504f362c5900073d
1,038
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex07_roman_numbers_with_csv_file_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex07_roman_numbers_with_csv_file_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex07_roman_numbers_with_csv_file_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest import csv from ch02_math.solutions.ex07_roman_numbers import from_roman_number, to_roman_number def arabic_to_roman_number_map(): result = [] with open('arabicroman2.csv','rt') as file: data = csv.r...
28.833333
85
0.694605
1de89cdd45dad6148b6bcaf71330d9f8432f2ce0
3,593
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOmas.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOmas.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOmas.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from builtins import str from builtins import object from qgis.core import QgsProject,QgsMapLayer,QgsVectorLayer,QgsDataProvider,QgsDataSourceUri from PyQt5.QtCore import Qt class run(object): def __init__(self, id, gtotool, config, debug): super(run, self).__ini...
47.276316
111
0.473421
69921522f5e14e4cc8e303e1e9e6565eaba46d23
635
py
Python
_Dist/NeuralNetworks/_Tests/Madelon/MadelonUtil.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
_Dist/NeuralNetworks/_Tests/Madelon/MadelonUtil.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
_Dist/NeuralNetworks/_Tests/Madelon/MadelonUtil.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import os import sys root_path = os.path.abspath("../../../../") if root_path not in sys.path: sys.path.append(root_path) import numpy as np import matplotlib.pyplot as plt plt.switch_backend("Qt5Agg") from _Dist.NeuralNetworks.NNUtil import Toolbox def get_madelon(): with open(os.path.join(root_path, "_Dat...
28.863636
76
0.656693
38995ecf58067f7ae70ff281709236de19149c49
302
py
Python
exercises/ja/solution_02_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_02_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_02_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_sm") doc = nlp("ベルリンはいい街だと思う") # すべてのトークンの文字列と品詞タグを取得 for token in doc: # 現在のトークンが固有名詞かどうかをチェック if token.pos_ == "PROPN": # 次のトークンが設置詞かどうかをチェック if doc[token.i + 1].pos_ == "ADP": print("設置詞の前の固有名詞が見つかりました:", token.text)
23.230769
52
0.649007
aa8feb43c78b79bd53f28566f2a9d48b0f532b1c
15,085
py
Python
100_parse_csv_stud (1).py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
100_parse_csv_stud (1).py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
100_parse_csv_stud (1).py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
import csv # Import Daten aus meiner Excel import turtle # Import Bibliothek from pathlib import Path # Import Bibliothek DEBUG_INFO =...
61.321138
207
0.504607
2ac4201894e5ac1c60491201352c7884cad5cca9
350
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 34/34.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 34/34.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 34/34.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#The script throws an error (when global c is not there). Fix it so that the script prints the value assigned to c inside the function #A: Add "global c" before "c=1". #C: Worth mentioning that if you remove foo(), variable c will come as undifined because the function has not been run def foo(): #global c c = ...
35
134
0.708571
879a6967b58d9968e68cc147ac668ee3ceb60aa8
3,683
py
Python
Question2.py
LuisGMM/Num-Lab
69e41628a14c7b3ea94be44c78653592fe5891cc
[ "MIT" ]
null
null
null
Question2.py
LuisGMM/Num-Lab
69e41628a14c7b3ea94be44c78653592fe5891cc
[ "MIT" ]
null
null
null
Question2.py
LuisGMM/Num-Lab
69e41628a14c7b3ea94be44c78653592fe5891cc
[ "MIT" ]
null
null
null
from datetime import datetime from matplotlib.patches import Rectangle from algorithm import * def start_plot(): global fig, ax, line fig = plt.figure() ax = plt.axes(xlim=(-2, 15), ylim=(0, 0.005)) line, = ax.plot([], []) def init(): line.set_data([], []) return line, ...
27.080882
117
0.587021
87c0cd9dcc794e00835b27fedaa104f6f4a43951
1,375
py
Python
Persistence/gitdescribe.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Persistence/gitdescribe.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Persistence/gitdescribe.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
# pylint: disable=C0114 from GitVersion import Git git_object = Git() def get_last_hash(sql): sql.cursor.execute(""" SELECT content FROM last WHERE subject = 'githash' """) row = sql.cursor.fetchone() if row is None: return None ...
23.706897
76
0.532364
3565de32d1cf86a7257ab65d8cf8e0ad696edc7a
293
py
Python
rm_xls.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
rm_xls.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
rm_xls.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
import os file_path = '/home/zxt2000/share_plat_standard/xdr_build/linux' os.chdir(file_path) print os.getcwd() files = os.listdir(file_path) for file in files: if os.path.splitext(file)[1]=='.xls': os.system('rm '+file) print 'rm ' ,file print 'all xls files deleted!'
20.928571
63
0.679181
359c834c2c33e6a41d9b9a12915c48e526d0f39b
701
py
Python
workSpace/test/rfid.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:15.000Z
2021-02-07T13:59:42.000Z
workSpace/test/rfid.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
null
null
null
workSpace/test/rfid.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:03.000Z
2021-10-01T07:06:16.000Z
from machine import Pin, SPI from lib.rfid.mfrc522 import MFRC522 from time import sleep_ms # SPI-BUS INIT sck = Pin(18, Pin.OUT) mosi = Pin(23, Pin.OUT) miso = Pin(19, Pin.OUT) sda = Pin(5, Pin.OUT) spi = SPI(baudrate=100000, polarity=0, phase=0, sck=sck, mosi=mosi, miso=miso) try: while True: rdr = MFRC...
28.04
95
0.577746
ea81f12f4c1760826e9b7d20d66089169ef40a1a
13,007
py
Python
Scripts/testInputs.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
40
2016-09-13T12:54:11.000Z
2021-09-05T18:45:38.000Z
Scripts/testInputs.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
351
2016-08-10T17:58:38.000Z
2021-09-15T12:19:48.000Z
Scripts/testInputs.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
32
2016-09-09T16:04:01.000Z
2021-01-21T13:27:40.000Z
#! /usr/bin/env python import yaml import glob import sys import json import requests from copy import deepcopy import jsonschema from jsonschema import validate import dereferenceAll def replaceIDs(url): newURL = url newURL = newURL.replace('{studyDbId}', '1001') newURL = newURL.replace('{mapDbId}', 'gm1') newU...
26.383367
86
0.478665
a4c5e55813a09abfeeb49609b2b5d44bd60fe6a2
154,162
py
Python
DHParser/syntaxtree.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
DHParser/syntaxtree.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
DHParser/syntaxtree.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
# syntaxtree.py - syntax tree classes 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 License. # You ma...
42.028899
164
0.61233
dcbaaabc7eb162eb46c647e2957a00598b79d9ab
38,538
py
Python
python_gui_tkinter/Combinatorics-1.4.5/combinatorics.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Combinatorics-1.4.5/combinatorics.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Combinatorics-1.4.5/combinatorics.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" combinatorics.py OVERVIEW ======== This module was created to supplement Python's itertools module, filling in gaps in the following areas of basic combinatorics: (A) ordered and unordered m-way combinations, (B) generalizations of the four basic occupancy problems ('balls in boxes'), and (C) constrained permu...
34.104425
80
0.698531
522b113148b15e8486a5328542f380015f3967dc
387
py
Python
exercises/ja/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert "token_text = token.text" in __solution__, "トークンの文字列をちゃんと取得していますか?" assert ( "token_pos = token.pos_" in __solution__ ), "トークンの品詞タグをちゃんと取得していますか?文字列属性を取得するには、アンダースコアを用いることを忘れないでください。" assert ( "token_dep = token.dep_" in __solution__ ), "トークンの依存関係ラベルをちゃんと取得していますか?文...
38.7
78
0.718346
5eae7627574ce65a83a9dcb85e221f19f44bb177
369
py
Python
mysql_with_config/test.py
MilovanTomasevic/stackoverflow
472d207cc839389ae877233bccacc4b27474c844
[ "MIT" ]
null
null
null
mysql_with_config/test.py
MilovanTomasevic/stackoverflow
472d207cc839389ae877233bccacc4b27474c844
[ "MIT" ]
null
null
null
mysql_with_config/test.py
MilovanTomasevic/stackoverflow
472d207cc839389ae877233bccacc4b27474c844
[ "MIT" ]
null
null
null
from python_mysql_dbconfig import read_db_config from db_lib import MySQLDataBase if __name__ == "__main__": conn = MySQLDataBase().connection(read_db_config()) cursor = conn.cursor() cursor.execute("SELECT VERSION()") row = cursor.fetchone() print("Server version:", row[0]) cursor.close() ...
21.705882
55
0.691057
21c1681dc0df5bca242966208d3e4531ba4ec5f3
21,738
py
Python
svgtemplate.py
fau-fablab/etiketten
5f4fcdd14001807e183164ae66df48d86c8f7a3e
[ "Unlicense" ]
1
2018-12-15T04:07:38.000Z
2018-12-15T04:07:38.000Z
svgtemplate.py
fau-fablab/etiketten
5f4fcdd14001807e183164ae66df48d86c8f7a3e
[ "Unlicense" ]
14
2015-01-02T10:37:33.000Z
2021-10-03T13:42:15.000Z
svgtemplate.py
fau-fablab/etiketten
5f4fcdd14001807e183164ae66df48d86c8f7a3e
[ "Unlicense" ]
1
2018-12-15T04:07:40.000Z
2018-12-15T04:07:40.000Z
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # PYTHON_ARGCOMPLETE_OK """ SVG Templating System (C) Max Gaukler 2013 with additions and redesigns by members of the FAU FabLab unlimited usage allowed, see LICENSE file """ from lxml import etree from copy import deepcopy import inspect import StringIO import re from...
40.937853
150
0.591545
10d6546f801e49db91dacf6fab85dc464e539739
1,399
py
Python
src/onegov/wtfs/models/municipality.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/municipality.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/municipality.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm.mixins import meta_property from onegov.core.orm.mixins import TimestampMixin from onegov.user import UserGroup from onegov.wtfs.models.payment_type import PaymentType from sqlalchemy.orm import object_session class Municipality(UserGroup, TimestampMixin): """ A municipality / user group. """...
29.145833
67
0.664046
1d4763f5507fc80dde74b19790588508c06d37e8
436
py
Python
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/15.02-Multiple-Inheritance.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/15.02-Multiple-Inheritance.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/15.02-Multiple-Inheritance.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
class A: def feature1(self): print("Feature 1 working") def feature2(self): print("Feature 2 working") class B: def feature3(self): print("Feature 3 working") def feature4(self): print("Feature 4 working") class C(A, B): def feature5(self): print("Featur...
14.533333
34
0.580275
634a08c2c7633bb53fc9309565334e74e6dc1b61
6,596
py
Python
sdiff/parser.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
sdiff/parser.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
sdiff/parser.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
from typing import Match, Type import mistune import re from .model import * class InlineLexer(mistune.BlockLexer): grammar_class = mistune.InlineGrammar default_rules = [ 'linebreak', 'link', 'reflink', 'text', ] def __init__(self): self.links = {} self.grammar_cla...
29.846154
107
0.562614
89ab2e593f760090827840569824c1e173c41338
41,573
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_base/arrayman.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_base/arrayman.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_base/arrayman.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
35.231356
137
0.565944
9837a8ec7d2699861e4345b5d2536afa1004908d
420
py
Python
euler10hacker.py
akashsharma99/2ndSemPractise
ba854e8ef5089ad627cee6f7c8828b711437affa
[ "MIT" ]
null
null
null
euler10hacker.py
akashsharma99/2ndSemPractise
ba854e8ef5089ad627cee6f7c8828b711437affa
[ "MIT" ]
null
null
null
euler10hacker.py
akashsharma99/2ndSemPractise
ba854e8ef5089ad627cee6f7c8828b711437affa
[ "MIT" ]
null
null
null
prime=[1] * 1000001 sum=[0] * 1000001 prime[0],prime[1]=0,0 #ensures that multiples of one are not traversed unlike previously where i had prime[1] as true for p,pri in enumerate(prime): if (pri): sum[p]=sum[p-1]+p i=p*p while(i<=1000000): prime[i]=0 i+=p else: ...
21
95
0.55
f6f1279c7d5995ecb362e8dab66727cf1b439a00
58
py
Python
python/python_backup/PRAC_PYTHON/20_test2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/20_test2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/20_test2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
f=1 a=0 for i in range(10000): a=i+1 f=f*a print(f)
9.666667
23
0.551724
6165360d5e47b7f7c15626496204f96295d4fd5c
9,770
py
Python
cloudmesh/volume/Provider.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-12T09:49:53.000Z
2020-03-12T09:49:53.000Z
cloudmesh/volume/Provider.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-25T00:47:12.000Z
2020-03-30T23:32:00.000Z
cloudmesh/volume/Provider.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
5
2020-02-20T01:04:24.000Z
2020-05-05T14:36:30.000Z
from cloudmesh.common.Printer import Printer from cloudmesh.common.console import Console from cloudmesh.common.variables import Variables from cloudmesh.configuration.Config import Config from cloudmesh.mongo.DataBaseDecorator import DatabaseUpdate from cloudmesh.mongo.CmDatabase import CmDatabase # class Provider(V...
31.824104
79
0.552098
144ec34e8ae1877a2f28c87fcae0c41eb72dbd3a
730
py
Python
Union/2021/misc/ASMRNet/speech_embedder_net.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Union/2021/misc/ASMRNet/speech_embedder_net.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Union/2021/misc/ASMRNet/speech_embedder_net.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import torch import torch.nn as nn import hparam as hp class SpeechEmbedder(nn.Module): def __init__(self): super(SpeechEmbedder, self).__init__() self.LSTM_stack = nn.LSTM(hp.nmels, hp.hidden, num_layers=hp.num_layer, batch_first=True) for name, param in self.LSTM_stack.named_parameters()...
31.73913
97
0.606849
371b002d4b059fe343bcd20e70692499b5412db5
835
py
Python
rtcmadd1008.py
aortner/RpiNtripBase
ed1d9abcc1c8294c6811b5360703dd3e37acd1c9
[ "MIT" ]
1
2019-10-19T09:54:22.000Z
2019-10-19T09:54:22.000Z
rtcmadd1008.py
ropecope/RpiNtripBase
b4b49d6a3dd507379bf115304288ee760ee204ef
[ "MIT" ]
null
null
null
rtcmadd1008.py
ropecope/RpiNtripBase
b4b49d6a3dd507379bf115304288ee760ee204ef
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys while True: data = sys.stdin.buffer.read(1) while (data != b'\xd3'): data = sys.stdin.buffer.read(1) length_data = sys.stdin.buffer.read(2) length = (length_data[0] << 8) + length_data[1] packet_data = sys.stdin.buffer.read(length) crc24_data ...
28.793103
102
0.637126
d3a1214d19276a425c3c987961b853eaa0e19b40
1,176
py
Python
myems-cleaning/config.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
82
2021-02-19T10:24:31.000Z
2022-03-28T06:30:18.000Z
myems-cleaning/config.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
188
2021-02-22T07:08:30.000Z
2022-03-02T04:11:03.000Z
myems-cleaning/config.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
54
2021-02-19T08:48:46.000Z
2022-03-30T06:21:34.000Z
from decouple import config myems_system_db = { 'host': config('MYEMS_SYSTEM_DB_HOST', default='127.0.0.1'), 'port': config('MYEMS_SYSTEM_DB_PORT', default=3306, cast=int), 'database': config('MYEMS_SYSTEM_DB_DATABASE', default='myems_system_db'), 'user': config('MYEMS_SYSTEM_DB_USER', default='root')...
43.555556
87
0.738946
6cbd48e493cbd0ff5231d38783c2be0961d2bad6
3,550
py
Python
tests/onegov/election_day/screen_widgets/test_generic_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/screen_widgets/test_generic_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/screen_widgets/test_generic_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from chameleon import PageTemplate from lxml import etree from onegov.core.utils import Bunch from onegov.core.widgets import inject_variables from onegov.core.widgets import transform_structure from onegov.election_day.screen_widgets import ColumnWidget from onegov.election_day.screen_widgets import H1Widget from oneg...
28.629032
62
0.581972
9f16c82e7b0ef49cb9b6111ddd06054b95d54a56
2,595
py
Python
project/api/place/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/api/place/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/api/place/schemas.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from marshmallow import fields, validate from project.api import marshmallow from project.api.fields import Owned from project.api.image.schemas import ImageDumpSchema, ImageSchema from project.api.location.schemas import ( LocationDumpSchema, LocationPatchRequestSchema, LocationPostRequestSchema, Loca...
27.903226
85
0.761079
2c4a9ce9f59cd1eb53e5e8f6235e2d8b0c6057e1
282
wsgi
Python
marsyas-vamp/marsyas/src/django/birdsong/apache/django.wsgi
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/apache/django.wsgi
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/apache/django.wsgi
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.append('/var/www/calls/application') os.environ['PYTHON_EGG_CACHE'] = '/home/sness/dDEV/calls/.python-egg' os.environ['DJANGO_SETTINGS_MODULE'] = 'calls.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
28.2
69
0.780142
391e22e75296f081b787d2c1a61bc25451566c05
244
py
Python
Licence 1/I11/TP4/ex5.2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP4/ex5.2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP4/ex5.2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
semaine = [ "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche" ] calendOct18 = [] for i in range(1, 32): calendOct18 += [semaine[i % 7 - 1] + " " + str(i) + " octobre"] print(calendOct18)
14.352941
67
0.512295
1a9fe0975085027f0f442410d4acfbb90e357f8a
2,683
py
Python
ppyt/const.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/const.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/const.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import os # ディレクトリ関連を定義します。 BASE_DIR = os.path.abspath(os.path.dirname(__file__)) PRJ_DIR = os.path.dirname(BASE_DIR) RULEFILE_DIR = os.path.join(PRJ_DIR, 'rules') # ruleファイルの置き場所 FILTERFILE_DIR = os.path.join(PRJ_DIR, 'filters') # filterファイルの置き場所 DATA_DIR = os.path.join(PRJ_DIR, 'data') DATA_DIR_STO...
24.842593
68
0.764443
80c7c4f93371cbf7f927339e0eeb38e82e49ba6e
17,962
py
Python
Packs/PhishLabs/Integrations/PhishLabsIOC_DRP/PhishLabsIOC_DRP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PhishLabs/Integrations/PhishLabsIOC_DRP/PhishLabsIOC_DRP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PhishLabs/Integrations/PhishLabsIOC_DRP/PhishLabsIOC_DRP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import pytest from freezegun import freeze_time """Helper functions and fixrtures""" def load_params_from_json(json_path, type=''): with open(json_path) as f: file = json.load(f) if type == "incidents": for incident in file: incident['rawJSON'] = json.dumps(incident.ge...
70.164063
125
0.655829
03b0c4aebe323ae8aeb1998ac96a0195fa9b4cbb
221
py
Python
WD/Cwiczenia/FunkcjaJedenPrzezX.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/FunkcjaJedenPrzezX.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/FunkcjaJedenPrzezX.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
#Generujemy zbior liczb postaci 1/x, gdzie x jest całkowite z przedziału(0,9] #Do tego celu zdefiniujemy funkcję def JedenPrzezX(): Zbior = [1/x for x in range(1,10)] return Zbior print(JedenPrzezX())
22.1
78
0.687783