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
1571a0b85835ed2e4f49d3d06f331c8a311e704c
1,103
py
Python
exercises/en/test_general.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_general.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_general.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# This test file only runs internally when you test the course with pytest. # It can be used to ensure that results the course depend on are accurate, e.g. # when updating to a new version of spaCy. This especially includes predictions # that some examples assume or depend on. import spacy import pytest @pytest.fixtu...
33.424242
102
0.668178
ec6faf441bf8515ca7423055ace732e5d3e60644
131
py
Python
archive/mumath/__init__.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
archive/mumath/__init__.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
archive/mumath/__init__.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
""" File info """ from .treebuilder import Math, UpdateContext, ClearContext __all__ = ['Math', "UpdateContext", "ClearContext"]
16.375
58
0.717557
ec9812d2007ea581250a5fb2361448973265e993
3,598
py
Python
Modell/KeywordModell.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/KeywordModell.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/KeywordModell.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
#-------------------------------------------------------------------------------------------------# #Trainingsdaten reinladen #-------------------------------------------------------------------------------------------------# from tensorflow.keras.preprocessing.image import load_img,img_to_array from tensorflow.keras.u...
43.349398
99
0.615898
17a29d31421dc9b40fce2ef3784412b5acd77211
221
py
Python
03.BruteForce/HG/1018.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
03.BruteForce/HG/1018.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
03.BruteForce/HG/1018.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
import sys M, N = map(int, sys.stdin.readline().split(" ")) board = [] for _ in range(N): board.append(list(sys.stdin.readline().rstrip())) def pprint(arr): for line in arr: print(line) pprint(board)
14.733333
53
0.615385
da18fc60708c5195da178c365ee60e9d0755175c
3,458
py
Python
src/bo4e/enum/geraetetyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/geraetetyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/geraetetyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum # pylint: disable=line-too-long class Geraetetyp(StrEnum): """ Auflistung möglicher abzurechnender Gerätetypen. """ WECHSELSTROMZAEHLER = "WECHSELSTROMZAEHLER" #: Wechselstromzähler DREHSTROMZAEHLER = "DREHSTROMZAEH...
61.75
158
0.778774
974264f5b459a2621cf00c1efb2fefa93163867b
164
py
Python
exercises/pt/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "for doc in nlp.pipe(TEXTS)" in __solution__ ), "Você está iterando nos docs retornados em nlp.pipe?" __msg__.good("Bom!")
27.333333
60
0.628049
978262f853b8dc3c27babcb325d8e2a7d2fa536b
2,931
py
Python
Bibliothek/models.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Bibliothek/models.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Bibliothek/models.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
""" """ from django.db import models from Produkte.models import KlasseMitProdukten class Altes_Buch(KlasseMitProdukten): arten_liste = ['kaufen'] autor_und_titel = models.CharField( max_length=255, null=True, blank=True) def button_text(self, _): return 'Auswählen!' class Buch(...
31.516129
72
0.619243
8af808612ba9b5dcad15d1cacf0033f3794d424d
2,582
py
Python
src/nfz_module/evaluator/SensorDataEvaluator.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/evaluator/SensorDataEvaluator.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/evaluator/SensorDataEvaluator.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
__author__ = 'Hans-Werner Roitzsch' from controller.LEDController import LEDController from controller.SpeakerController import SpeakerController from model.WarningLevel import WarningLevel from network.RESTCommunicator import RESTCommunicator from adapter.GPSSensorAdapter import GPSSensorAdapter from datetime import...
38.537313
131
0.788923
8affda21357fe4e7c7a28e9b25a0971926ede0af
1,024
py
Python
src/nfz_module/examples/GPSExample.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/examples/GPSExample.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/examples/GPSExample.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
from GPSController import GPSController import time if __name__ == '__main__': # create the controller gpsc = GPSController() try: # start controller gpsc.start() counter = 0 while True: print('Counter:', counter) print('latitude:', gpsc.fix.latitude) print('longitude:', gpsc.fix.longitude) pri...
22.755556
53
0.655273
821c03851c00dd63ad33a67a36b4507af9075f85
708
py
Python
src/classifier/torch_helpers/load_pretrained.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/torch_helpers/load_pretrained.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/torch_helpers/load_pretrained.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import hydra import torch from src.classifier.lstm.lstm_classifier import RegardLSTM from src.classifier.sent_transformer.sbert_classifier import RegardBERT def load_torch_model(model_path, model_type, logger=None): model_path = hydra.utils.to_absolute_path(model_path) if logger is not None: logger.in...
37.263158
72
0.731638
416ec2ffed14fc787e02e5917411c7c252c19ab8
37
py
Python
lib/python3.5/sre_parse.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/sre_parse.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/sre_parse.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/sre_parse.py
37
37
0.810811
419d0159f77650b9d3a780cf41424c7cc4b34df3
1,888
py
Python
kts/core/run_id.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/core/run_id.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/core/run_id.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from typing import Optional, Tuple SPLITTER = '__KTS__' class RunID: def __init__(self, function_name: str, fold: str, input_frame: Optional[str] = None): self.function_name = function_name self.fold = fold self.input_frame = input_frame @staticmethod def from_column_name(column...
29.968254
96
0.648835
ec0029671e41ce7d33cad4eab4bf0648b0d5fcc6
377
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_2/update_landed_cost_voucher.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v4_2/update_landed_cost_voucher.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_2/update_landed_cost_voucher.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(): frappe.reload_doc("stock", "doctype", "landed_cost_voucher") frappe.db.sql("""update `tabLanded Cost Voucher` set distri...
34.272727
92
0.771883
cf0ad5917ab5f6eb56344e607f784f3f8a5f57bb
7,220
py
Python
URecon/userrecon.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
URecon/userrecon.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
URecon/userrecon.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #-*- coding:utf-8 -*- import sys import time import platform import os import json try: import requests except ImportError: sys.exit("\033[31m[!] Error Import Requests Module") try: from datetime import datetime except ImportError: sys.exit("\033[31m[!] Error Import Datetime Module...
38.609626
127
0.466898
9946c1539234d63c3955601cfa0a3aa7d937e117
100
py
Python
Online-Judges/CodingBat/Python/String-01/09-combo_string.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/String-01/09-combo_string.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/String-01/09-combo_string.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def combo_string(a, b): if len(a) > len(b): return b+a+b else: return a+b+a
16.666667
23
0.49
998b314b408c0e1862e1a365b4362b7f93320eb2
474
py
Python
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/boot/boot.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/boot/boot.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/boot/boot.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from watchmen_pipeline_kernel.common.settings import ask_elastic_search_writer_enabled, \ ask_standard_external_writer_enabled from watchmen_pipeline_kernel.external_writer import register_elastic_search_external_writer, \ register_standard_external_writer def init_prebuilt_external_writers() -> None: if ask_stand...
39.5
95
0.886076
51293f2b9ce40570a0f01d4645fa495ccc55665e
978
py
Python
logya/docparser.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
logya/docparser.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
logya/docparser.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
# -*- coding: utf-8 -*- import markdown from yaml import load try: from yaml import CLoader as Loader except ImportError: from yaml import Loader def parse(content, content_type=None): """Parse document and return a dictionary of header fields and body.""" # Extract YAML header and body and load hea...
27.942857
75
0.620654
cffe0c9388edfb556dbee5eacabc56175b561b31
12,106
py
Python
research/nlp/atae_lstm/create_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/atae_lstm/create_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/atae_lstm/create_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.816568
93
0.572278
8f629757863478b80a0e1d1d7d9dbf6ff63a0b82
1,961
py
Python
.circleci/checklhe/config.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/checklhe/config.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/checklhe/config.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
import globalvariables import ROOT #syntax checks checkfirstline = True #check that the first line in each event has the right syntax, and that the number of particles is correct checkstatus = True #check that the particle status is correct #kinematic checks checkinvmass = True #check tha...
40.020408
139
0.648139
853ef5c5e86483081803ef337ff616a74a1deac5
813
py
Python
task_manager/task_manager/tasks/forms.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
task_manager/task_manager/tasks/forms.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
task_manager/task_manager/tasks/forms.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django import forms from task_manager.tasks.models import Task class RemoveLabelSuffixFormMixin: fields = {} def _init_remove_colons(self): for name, field in self.fields.items(): field.label_suffix = '' class TaskForm(RemoveLabelSuffixFormMixin, forms.ModelForm): def __init__...
23.228571
60
0.512915
85489e383ee58337c61be506208c5566c774088d
8,540
py
Python
bolt/discord/models/guild.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/guild.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/guild.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.base import Enum, Model, Field, ListField, Snowflake, Timestamp, SearchableList from bolt.discord.models.channel import Channel, ChannelType from bolt.discord.models.user import User from bolt.discord.permissions import Permission class MessageNotificationLevel(Enum): ALL_MESSAGES = 0 ...
25.878788
107
0.670141
f19213458b2a893f2faa700340cb3e4de496cc84
844
py
Python
pyconuk/urls.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
3
2017-10-24T13:33:29.000Z
2017-10-30T10:47:28.000Z
pyconuk/urls.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
78
2017-02-14T16:49:58.000Z
2018-04-19T06:28:42.000Z
pyconuk/urls.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
36
2017-06-19T07:48:38.000Z
2018-01-19T11:08:10.000Z
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^$', views.page, name='index'), url(r'^unlinked-pages/$', views.unlinked_pages, name='unlinked_pages'), url(r'^schedule/$', views.schedule_view, name='sche...
44.421053
124
0.651659
74cc2a836c8c70a0a38b94ba2eb71df6d2d071a8
2,647
py
Python
models.py
rserur/food-atlas-viz-app
8ed63cb9f7b41ebafe8d0c098e73fece04939e06
[ "MIT" ]
null
null
null
models.py
rserur/food-atlas-viz-app
8ed63cb9f7b41ebafe8d0c098e73fece04939e06
[ "MIT" ]
null
null
null
models.py
rserur/food-atlas-viz-app
8ed63cb9f7b41ebafe8d0c098e73fece04939e06
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class FoodAtlas(db.Model): __tablename__ = 'food_atlas' id = db.Column(db.Integer, primary_key=True, unique=True, nullable=False) fips = db.Column(db.Integer, unique=True, nullable=False) county = db.Column(db.String(255)) state = db.Column...
39.507463
77
0.710238
74516dc26d6798d336f8750aa91562a640a7db6c
2,052
py
Python
Interview Preparation Kits/Interview Preparation Kit/Recursion and Backtracking/Crossword Puzzle/crossword.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/Recursion and Backtracking/Crossword Puzzle/crossword.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Recursion and Backtracking/Crossword Puzzle/crossword.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the crosswordPuzzle function below. def print_crossword(crossword): for row in crossword: print(''.join(row)) def possible_positions(crossword, word): positions = [] n = len(word) for i in range(10): f...
23.05618
59
0.528265
7043aa18c3669e20ff301896118cf9a5738da66f
11,046
py
Python
tests/onegov/org/test_extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_extensions.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import Bunch from onegov.form import Form from onegov.form.extensions import Extendable from onegov.org.models import ( PersonLinkExtension, ContactExtension, AccessExtension, HoneyPotExtension ) from uuid import UUID def test_access_extension(): class Topic(AccessExtension): m...
28.250639
77
0.635615
706e08170ef54926acc3c60819c00fe3697092b6
522
py
Python
INBa/2015/Kishukov_N/task_2_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kishukov_N/task_2_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kishukov_N/task_2_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 10 # Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Юстиниан. Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Кишуков Назир # 29.02.2016 print ("И не судите о том, что является лучшим и более справедл...
43.5
201
0.773946
70a91a319fc489849edda908797daa953fde77b0
4,861
py
Python
quark_core_api/context/core_context.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/context/core_context.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/context/core_context.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
import os, six, abc from quark_core_api.data.persistence import Persistence from quark_core_api.exceptions import InvalidOperationException @six.add_metaclass(abc.ABCMeta) class CoreContext(object): def __init__(self, directory, context_initializer): self.directory = directory self.initializer = ...
32.192053
108
0.56079
70a9276cdd83b95e02657a90eca64b9fdde2cf09
71
py
Python
nz_crawl_demo/day10/soufang_scrapy/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day10/soufang_scrapy/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day10/soufang/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from scrapy import cmdline cmdline.execute("scrapy crawl sfw".split())
23.666667
43
0.788732
8e62ccd4d3bebd2520763baa8ba9c38f4cdca02d
780
py
Python
src/test/tests/databases/oldsilo.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/oldsilo.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/oldsilo.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: oldsilo.py # # Tests: old-style silo files (netcdf driver) # # Programmer: Mark C. Miller # Date: February 11, 2004 # # Modifications: # Jeremy Meredith, Thu Jan 14 12:38:24 EST 2010 ...
20.526316
78
0.55641
6921a4c5abef82c500eb82668a9e8efc4c9dc5e8
718
py
Python
Classes/Screen_codes/Options_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Screen_codes/Options_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Screen_codes/Options_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
from PyQt5.QtWidgets import QDialog from PyQt5.QtCore import pyqtSlot from PyQt5 import uic qtCreatorFile = "Classes/GUI/options.ui" Ui_Dialog, QtBaseClass = uic.loadUiType(qtCreatorFile) class Options(QDialog, Ui_Dialog): def __init__(self, parent = None): QDialog.__init__(self, parent) self.se...
25.642857
71
0.714485
c620bcb55f0214c46590143cc364046578caa609
14,766
py
Python
Packs/PrismaSaasSecurity/Integrations/SaasSecurityEventCollector/SaasSecurityEventCollector_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/PrismaSaasSecurity/Integrations/SaasSecurityEventCollector/SaasSecurityEventCollector_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Packs/PrismaSaasSecurity/Integrations/SaasSecurityEventCollector/SaasSecurityEventCollector_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
"""Base Integration for Cortex XSOAR - Unit Tests file Pytest Unit Tests: all funcion names must start with "test_" More details: https://xsoar.pan.dev/docs/integrations/unit-testing MAKE SURE YOU REVIEW/REPLACE ALL THE COMMENTS MARKED AS "TODO" You must add at least a Unit Test function for every XSOAR command you...
42.188571
120
0.639781
d6a6e0828ef58e0c400fa673158959d294ebe706
1,268
py
Python
ENV/tensorforce-master/mazerunner/message.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
5
2017-07-25T21:43:02.000Z
2020-07-28T03:31:58.000Z
ENV/tensorforce-master/mazerunner/message.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
2
2017-07-26T02:46:17.000Z
2017-07-27T07:27:15.000Z
mazeexp/engine/message.py
mryellow/maze_explorer
495b414591094a17a919668b719f66fe8fc2f7e8
[ "MIT" ]
4
2018-01-26T01:02:48.000Z
2020-04-27T03:56:35.000Z
import cocos import cocos.actions as ac import config class MessageLayer(cocos.layer.Layer): """ MessageLayer Transitory messages over WorldLayer Responsability: full display cycle for transitory messages, with effects and optional callback after hiding the message. """ def show_me...
28.818182
86
0.487382
d6b63c407bfe5996b6849a578bf5f904e3167430
1,309
py
Python
source/api_wrapper/examples/react_to_stream.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/api_wrapper/examples/react_to_stream.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/api_wrapper/examples/react_to_stream.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
from src.twitter import Twitter # Your access information for the twitter API access_info = { 'consumer_key': '', 'consumer_secret': '', 'access_token': '', 'access_token_secret': '' } ptp = Twitter(access_info=access_info) actions = [ # Favor a tweet containing 'Ducks are the best!' with the let...
42.225806
108
0.672269
d6c79824cff6ccebc5a30e6bfef56920987c4d6c
625
py
Python
数据结构/NowCode/21_MoreThanHalfNum.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/21_MoreThanHalfNum.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/21_MoreThanHalfNum.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 数组中出现次数超过一半的数字 # 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现了5次,超过数组长度的一半,因此输出2。如果不存在则输出0。 # -*- coding:utf-8 -*- class Solution: def MoreThanHalfNum_Solution(self, numbers): numsCount = {} numLen = len(numbers) for num in numbers: if num in num...
31.25
107
0.5728
0344352af3f889ea979cd5932b3d8690f1e1508e
3,435
py
Python
_dev/license-retrival-mock-server/src/routers/licenses.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
_dev/license-retrival-mock-server/src/routers/licenses.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
_dev/license-retrival-mock-server/src/routers/licenses.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
""" Endpoints common to both CR1 and CR2 versions """ import json from pathlib import Path from typing import Callable, List, Type from fastapi import APIRouter, Form, HTTPException, Response from models import (CR1LicensePackageResponse, CR2LicensePackageResponse, Cover, Metadata, MetadataInfo, Q...
39.034091
97
0.662591
0631f299ad2ccd04a4a7eab65086b4e3e7f22242
425
py
Python
frappe-bench/apps/erpnext/erpnext/domains/education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/domains/education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/domains/education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
data = { 'desktop_icons': [ 'Student', 'Program', 'Course', 'Student Group', 'Instructor', 'Fees', 'Task', 'ToDo', 'Education', 'Student Attendance Tool', 'Student Applicant' ], 'default_portal_role': 'Guardian', 'restricted_roles': [ 'Student', 'Instructor', 'Academics User', 'Educati...
15.740741
54
0.625882
d1dcdb5a33e2766332d29ab23e0fa76b9110597c
442
py
Python
SoSe-21/Code-Vorlesungen/Wiederholung/Wiederholung-Datentypen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/Wiederholung/Wiederholung-Datentypen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/Wiederholung/Wiederholung-Datentypen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
b = 5 # integer c = 5.5 # float d = True # boolean e = [1, 2, 3] # liste f = {'a': 2, 'b': 3} # Dictionary g = "Hello there" # String # Ändern des Datentypen von 'string' in 'int', damit wir damit rechnen können alter = int(input("Bitte geben Sie Ihr Alter ein: ")) # Willkürliche Berechnung, die nur möglich ist wenn ...
31.571429
109
0.68552
88a2f5545eff6903d9e5afe8f0e2354dd0ad1037
3,203
py
Python
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators/TopMaliciousRatioIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators/TopMaliciousRatioIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators/TopMaliciousRatioIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from typing import Tuple import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def select_indicator_columns(indicator: dict) -> Dict: display_indicator = {} display_indicator['ID'] = indicator['id'] display_indicator['Type'] = indicator['indicator_type'] display_i...
40.0375
112
0.672495
ee22dd54d5a1a7d794b6571066779ce137a53029
3,726
py
Python
robot/csdn/fastlist.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/csdn/fastlist.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/csdn/fastlist.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import random from gevent import monkey monkey.patch_socket() import gevent import requests import time from bs4 import BeautifulSoup req_headers = { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/53...
29.109375
125
0.59474
6dbc6bfe3b2f8ad0c3981b1955aba07ab5cac4ef
2,512
py
Python
language/python/scipy/pandas_notes.py
mkmayank/quest
dbdde9e62c0b2c2b0cd5d16304793291d8400248
[ "Apache-2.0" ]
null
null
null
language/python/scipy/pandas_notes.py
mkmayank/quest
dbdde9e62c0b2c2b0cd5d16304793291d8400248
[ "Apache-2.0" ]
null
null
null
language/python/scipy/pandas_notes.py
mkmayank/quest
dbdde9e62c0b2c2b0cd5d16304793291d8400248
[ "Apache-2.0" ]
null
null
null
# Data Structure # Series 1D contianer for scalars # Dataframe 2D container for series # Dataframe # █ █ █ █ column names # █ ░ ░ ▓ ░ # █ ░ ░ ▓ ░ # █ ▓ ▓ ▓ ▓ row # █ ░ ░ ▓ ░ # index col # Dataframe can be th...
21.109244
95
0.660828
fedd79121148c0b3da179d4db0d6944b5f34b913
13,265
py
Python
python/odml/test_scripts/cardinality.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/cardinality.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/cardinality.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" odml object cardinality tests. """ def prop_card_save_load(): import odml fname = '/home/sommer/Chaos/tmp/odml/test.xml' doc = odml.Document() sec_empty = "cardinality_empty" sec_max = "cardinality_max" sec_max_card = (None, 10) sec_min = "cardinality_min" sec_min_card = (2, Non...
33.245614
100
0.687147
6ea1187c458be159603d3d5c8712a70e6a0f4b7a
709
py
Python
data-pipeline/src/data_pipeline/data_types/mane_select_transcript.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/data_types/mane_select_transcript.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/data_types/mane_select_transcript.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import re import hail as hl def import_mane_select_transcripts(path): filename = path.split("/")[-1] version = re.search(r"v(\d+(\.\d+)+?)", filename).group(1) ds = hl.import_table(path, force=True) ds = ds.annotate_globals(version=version) ds = ds.filter(ds.MANE_status == "MANE Select") ...
25.321429
62
0.606488
6e54f66317f00e08359cf3c4e43cb03a3db06850
3,383
py
Python
pyventskalender/tag13.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag13.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag13.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Heute wollen wir uns anschauen, wie man das Spiel # [Mad Libs](https://de.wikipedia.org/wiki/Mad_Libs) in Python umsetzen kann. # %% # Wir wollen unseren Satz mit Satzbausteinen beschreiben. # Dazu verwenden wir `< >`-Klammern im Text, um die zu ersetzenden Teile zu # markieren, das sieht dann bspw. so aus: geschic...
37.175824
144
0.763228
06fb00a8c1a990e315e9e7d0619b713f5a3fbfb7
642
py
Python
packages/watchmen-model/src/watchmen_model/analysis/factor_index.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/analysis/factor_index.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/analysis/factor_index.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from typing import TypeVar from pydantic import BaseModel from watchmen_model.admin import FactorType from watchmen_model.common import FactorId, Storable, TenantId, TopicId FactorIndexId = TypeVar('FactorIndexId', bound=str) # noinspection DuplicatedCode class FactorIndex(Storable, B...
25.68
71
0.794393
b016a927306ec9de84174d86515e4241f11f5204
2,056
py
Python
Controller/storage/models/LinearRegressor/LinearRegressor.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Controller/storage/models/LinearRegressor/LinearRegressor.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Controller/storage/models/LinearRegressor/LinearRegressor.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 LinearRegressor(Algorithm): def __init__(self, data, labels, confi...
31.151515
91
0.608463
b03effc543a0d52096957319eae39f5560903835
1,072
py
Python
scripts/new_blueprint.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
scripts/new_blueprint.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
scripts/new_blueprint.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path def make_blueprint(blueprint_name): maindir = Path(os.getcwd()) p = Path(maindir) p = p / 'benwaonline' bp = p / blueprint_name bp.mkdir(exist_ok=True) fp = bp / '__init__.py' with fp.open(mode='w') as f: f.write(new_init(blueprint_name...
26.146341
92
0.661381
c6c8d94ddf1055f4f981aab41ca270b8b39b945d
805
py
Python
Theories/Algorithms/Recursion1/ReverseLinkedList/reversed_linked_list.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Theories/Algorithms/Recursion1/ReverseLinkedList/reversed_linked_list.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/Algorithms/Recursion1/ReverseLinkedList/reversed_linked_list.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next # def reverseList(head: Optional[ListNode]) -> Optional[ListNode]: # """recursion""" # # def get_reverse_list(head: Optional[ListNode], root: Optional[ListNode] = None) -> Opt...
27.758621
108
0.665839
c6d46c3a8ac4d4edf244655c36e2a4fda2db8bc8
1,528
py
Python
Python/zzz_training_challenge/Python_Challenge/chapter_02/prime_number.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/chapter_02/prime_number.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/chapter_02/prime_number.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
def get_prime(max_value): counter = 0 prime = [2] all_numbers = [i for i in range(3, max_value + 1) if i % 2 != 0] while all_numbers: n = all_numbers.pop(0) print(f"\r at the moment we are at prime_number: {n}", end="") prime.append(n) for val in all_numbers: ...
23.151515
70
0.570026
afa89c291ea577a51f9187670301616bcae3e14f
370
py
Python
___Python/Carsten/p10_weather_API/m01_wetterabruf.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p10_weather_API/m01_wetterabruf.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p10_weather_API/m01_wetterabruf.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from weather import Weather, Unit weather = Weather(unit=Unit.CELSIUS) location = weather.lookup_by_location('vaals') condition = location.condition print(condition.temp) forecasts = location.forecast for forecast in forecasts: #print(forecasts) print(forecast.text) #print(forecast.date) ...
23.125
47
0.721622
3c4510b12cd399a021a73b34d44d45666ca7da58
464
py
Python
bolt/discord/models/emoji.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/emoji.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/emoji.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.base import Model, Field, Snowflake, ListField from bolt.discord.models.user import User from bolt.discord.models.guild import Role class Emoji(Model): __repr_keys__ = ['id', 'name'] id = Field(Snowflake) name = Field(str, required=True) roles = ListField(Role) user = Lis...
29
71
0.713362
3c4ce21f79e4df99f9528c18492c2c7c311ce792
1,528
py
Python
FakeRobot/FakeRobot.py
SConaway/py-FakeRobot
c27a9da922ab8402a46d1718047c9d36025bbbe5
[ "MIT" ]
1
2021-04-21T17:13:49.000Z
2021-04-21T17:13:49.000Z
FakeRobot/FakeRobot.py
SConaway/py-FakeRobot
c27a9da922ab8402a46d1718047c9d36025bbbe5
[ "MIT" ]
null
null
null
FakeRobot/FakeRobot.py
SConaway/py-FakeRobot
c27a9da922ab8402a46d1718047c9d36025bbbe5
[ "MIT" ]
null
null
null
import math from time import sleep class FakeRobot: speed = 50 position = (0, 0, 0) positions = [(0, 0, 0)] _heading = 0 sleep(0) def __init__(self): """ Constructor for this class. """ # do nothing def set_heading(self, angle): """Add angle to the current headin...
25.04918
90
0.534031
3c90a3e80549ac6681f23744c8e76827b1da3cb2
588
py
Python
src/logging/logger_belt.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
src/logging/logger_belt.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
src/logging/logger_belt.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
from debug import debug_logger from debug import debug_level from console import console_logger # Serves as a container class for the different loggers class LoggerBelt(): def __init__(self): self.console = ConsoleLogger() self.debug = DebugLogger() def log_debug(message, message_level=DebugLevel.INFO): se...
25.565217
56
0.797619
b1fe3ca7e8848f045e43c5b459ae02139e741814
256
py
Python
bot/data/texts.py
YoshlikMedia/STT-uzbek-bot
fec5d6a7bec4135aeb35a86970193654637194f5
[ "MIT" ]
null
null
null
bot/data/texts.py
YoshlikMedia/STT-uzbek-bot
fec5d6a7bec4135aeb35a86970193654637194f5
[ "MIT" ]
null
null
null
bot/data/texts.py
YoshlikMedia/STT-uzbek-bot
fec5d6a7bec4135aeb35a86970193654637194f5
[ "MIT" ]
null
null
null
class Text: def __init__(self): self.start_message = 'Assalomu Alaykum, {}!\n\n' \ 'Botdan foydalanish uchun voice yuboring.' self.help_message = 'Botdan foydalanish uchun voice yuboring.' text = Text()
23.272727
71
0.59375
5925d2d9b4e59a79edcfe08cb1a0527a22f1fbcc
1,373
py
Python
ucct/types.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/types.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/types.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 retnikt Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
26.921569
74
0.70284
3cd567a64e5fea99363cfc092faa2c482cdc51f1
571
py
Python
src/scheduler/handlers/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/scheduler/handlers/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/scheduler/handlers/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from .executions import ExecutionsListResource, ExecutionsResource # from .jobs import JobListResource, JobResource # from .logs import LogListResources def init_api(api): api.add_resource(ExecutionsListResource, '/{}/executions'.format(api.PREFIX)) api.add_resource(ExecutionsResource, '/{}/executions/<int:ob...
40.785714
90
0.744308
e62774b5e06c88ac8697607b66c11f9a78a92760
4,930
py
Python
LoginManager.py
tarohida/LoginManager
387d4acc3a50c0bf91d25726224339fccc67de0e
[ "MIT" ]
null
null
null
LoginManager.py
tarohida/LoginManager
387d4acc3a50c0bf91d25726224339fccc67de0e
[ "MIT" ]
null
null
null
LoginManager.py
tarohida/LoginManager
387d4acc3a50c0bf91d25726224339fccc67de0e
[ "MIT" ]
null
null
null
#!/usr/bin/python #!coding:utf-8 import yaml import json import argparse import subprocess def import_yml(file_path): with open( file_path, 'r') as f: login_data_list = yaml.load( f ) return login_data_list def outport_yml(file_path, login_data_list): with open( file_path, 'w' ) as f: yaml.dump(log...
29.698795
101
0.636308
e65ff2483c4d220c4db13de04355b4d352c6f61f
1,336
py
Python
dbs/U5/connectivity.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
dbs/U5/connectivity.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
dbs/U5/connectivity.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
import psycopg2 def connect(): """ Connect to the PostgreSQL database server """ conn = None try: print('Connecting to the PostgreSQL database...') #connection data conn = psycopg2.connect(host="localhost", database="testDB", user="postgres", password="admin") ...
26.72
104
0.581587
056f02e59c6cfd78134b8a2611baebf609c8d900
313
py
Python
Problems/Stack/Easy/RemoveOutermostParentheses/remove_outermost_parentheses.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Stack/Easy/RemoveOutermostParentheses/remove_outermost_parentheses.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Stack/Easy/RemoveOutermostParentheses/remove_outermost_parentheses.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def removeOuterParentheses(s: str) -> str: res = [] balance, i = 0, 0 for j in range(len(s)): if s[j] == "(": balance += 1 elif s[j] == ")": balance -= 1 if balance == 0: res.append(s[i + 1:j]) i = j + 1 return "".join(res)
22.357143
42
0.399361
75a5ab7b4a9aa2069cc2b19fd063791ad8342040
135
py
Python
fun/fun/doctype/tp/test_tp.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
fun/fun/doctype/tp/test_tp.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
fun/fun/doctype/tp/test_tp.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Vfun and Contributors # See license.txt # import frappe import unittest class Testtp(unittest.TestCase): pass
15
43
0.762963
ddb317430e5f9fd54d81f4f40fcf8854ceeb044a
590
py
Python
Praxisseminar/tests.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
Praxisseminar/tests.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
Praxisseminar/tests.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
""" swat-s1 tests. """ # from mininet.cli import CLI from mininet.net import Mininet from utils import STATE, RWT_INIT_LEVEL from utils import TANK_SECTION from topo import SwatTopo from physical_process import RawWaterTank # import subprocess # import sys def test_init(): pass def test_topo(): topo =...
14.390244
41
0.667797
9b523a04e282b1a8c6e01929233718a1187b095c
491
py
Python
zencad/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/axis.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import zencad.util from OCC.Core.Geom import Geom_Line from OCC.Core.gp import gp_Lin, gp_Pnt, gp_Dir, gp_XYZ class Axis: def __init__(self, *xyz): self._coords = zencad.util.as_indexed(xyz) def to_Geom_Line(self): return Geom_Line( gp_Lin( gp_Pnt(0, 0, 0), ...
25.842105
54
0.503055
9b858dee082bcf4a3abf4f6db4d4c95cc416c754
410
py
Python
INBa/2014/MorenkoAA/MorenkoAA_2_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/MorenkoAA/MorenkoAA_2_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/MorenkoAA/MorenkoAA_2_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2, Вариант 14 # Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Конфуций. Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Моренко А.А. # 07.03.2016 print("Если ты ненавидишь — значит тебя победили.") prin...
37.272727
202
0.685366
20f9f3d38a9454bd9f38ee97782693eafaf21ed9
401
py
Python
INBa/2015/ZORIN_D_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 0. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Эдуард Георгиевич Зюбин. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Зорин Д.И. # 14.03.2016 print("Псевдоним Багрицкий Эдуард - поэт, писатель,н...
40.1
216
0.790524
7b28a8ebc233c06154927f0c347e7400c814321c
7,030
py
Python
20-fs-ias-lec/groups/Demo B/src/tests/test_verify_insertion.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/Demo B/src/tests/test_verify_insertion.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/Demo B/src/tests/test_verify_insertion.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import secrets # Comes with python from contextlib import contextmanager import os from nacl.signing import SigningKey from logStore.funcs.log import create_logger from logStore.verific.verify_insertion import Verification from logStore.funcs.EventCreationTool import EventFactory from logStore.appconn.feed_ctrl_connec...
38.415301
106
0.60697
7b88d6b2408aaf9d479e88b82e0c8594325e0f77
708
py
Python
Problems/Two Pointers/easy/CountBinarySubstrings/count_binary_substrings.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/CountBinarySubstrings/count_binary_substrings.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/CountBinarySubstrings/count_binary_substrings.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def countBinarySubstrings(self, s: str) -> int: pre_cont_occ, cur_cont_occ = 0, 1 count_binary_substr = 0 for i in range(1, (len(s))): if s[i] == s[i - 1]: cur_cont_occ += 1 else: # update counter of binary substrings between prevous character group and current char...
32.181818
109
0.641243
b53c9bbb151adb64ac32cc8d858a50d6580953c2
1,680
py
Python
resources/mechanics_lib/api/shapes.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/shapes.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/shapes.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from drawing import Drawing from edge import * from math import pi, sin, cos from graphs.face import Face as GraphFace class Face(Drawing): def __init__(self, pts, edgetype = None, origin = True): Drawing.__init__(self) if origin: pts = list(pts) + [(0,0)] else: pts = list(pts) lastpt = ...
25.846154
72
0.62381
a9118f586dd99bcb27cbc03f43889ada42911082
1,070
py
Python
tests/onegov/async_http/test_async_fetch.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/async_http/test_async_fetch.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/async_http/test_async_fetch.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from aiohttp import InvalidURL from onegov.async_http.fetch import async_aiohttp_get_all from onegov.core.utils import Bunch valid_urls = [ 'https://seantis.ch', 'https://www.google.ch', ] invalid_urls = [ 'invalid.url.com', Bunch(url='xxx', name='Failed') ] @pytest.mark.parametrize('...
24.883721
71
0.685047
a5c506ffab063b83b83065726798fb016bc1fae7
7,707
py
Python
Preparefacebook.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
Preparefacebook.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
Preparefacebook.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python Mark Roberts - data engineer/SWE 45 min coding/SQL - - - - - - - - - - - - - - - - - - - Mark Roberts (Data Engineer) - Ninja - Coding Question 1: Date Compare This is a good warm up question that appears super simple at first glance, but trips people up with unexpected complexity. In general a...
25.519868
129
0.724536
a5c94b34b8034fc8b641ee207599295ce3648857
1,217
py
Python
tests/oidc/core/authorization/test_max_age.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
tests/oidc/core/authorization/test_max_age.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
tests/oidc/core/authorization/test_max_age.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
""" OIDC specification of authentication request parameter ``max_age``: OPTIONAL. Maximum Authentication Age. Specifies the allowable elapsed time in seconds since the last time the End-User was actively authenticated by the OP. If the elapsed time is greater than this value, the OP MUST attempt to act...
35.794118
79
0.741167
a5ed37b69ea2afd1a29f7e9a72e032feaf9e4a7d
396
py
Python
exercises/fr/solution_01_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_01_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_01_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.load("fr_core_news_sm") text = "Apple : le nouveau modèle X Pro attendu pour l'été." # Traite le texte doc = nlp(text) # Itère sur les entités for ent in doc.ents: # Affiche le texte de l'entité et son label print(ent.text, ent.label_) # Obtiens la portion pour "X Pro" x_pro = doc[...
19.8
60
0.699495
93d946dd7cffe555b2f9176a2878d16c2a23b74a
840
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/45_gerando_cpfs/45_gerando_cpfs.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/45_gerando_cpfs/45_gerando_cpfs.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/45_gerando_cpfs/45_gerando_cpfs.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from random import randint while True: cpf = str(randint(10000000000, 99999999999)) # cpf = '16899535009' add_uma_string = 0 while add_uma_string <= 1: soma_cpf = 0 reverso = 10 + add_uma_string for i in range(0, 9 + add_uma_string): soma_cpf += (reverso * int(cpf[i...
26.25
48
0.536905
27bdaa0dee1437316fdc36f46553a4a2db2d0d32
1,143
py
Python
Python-Fundamentals/school_library.py
dechevh/SoftwareUniversity
8be1c0c096cf385a84093265a31767afd4454476
[ "MIT" ]
null
null
null
Python-Fundamentals/school_library.py
dechevh/SoftwareUniversity
8be1c0c096cf385a84093265a31767afd4454476
[ "MIT" ]
null
null
null
Python-Fundamentals/school_library.py
dechevh/SoftwareUniversity
8be1c0c096cf385a84093265a31767afd4454476
[ "MIT" ]
null
null
null
all_books = input().split("&") command = input() collection = list(all_books) while command != "Done": tokens = command.split(" | ") action = tokens[0] if action == "Add Book": book_name = tokens[1] if book_name in collection: pass else: # ls.insert(0, "new...
28.575
78
0.575678
8b75c53819a2c08f96c00e77871c953b7cba2e74
162
py
Python
projects/g4h1-wsn/src/wsn/__init__.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h1-wsn/src/wsn/__init__.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h1-wsn/src/wsn/__init__.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
from .core import Wsn from .node import WsnNode, WsnNodeManager from .medium import WsnMedium __all__ = ['Wsn', 'WsnNode', 'WsnNodeManager', 'WsnMedium']
23.142857
60
0.722222
4742402c968c693bc4dc36bf9c4516d0b9fcb6fc
2,145
py
Python
server/apps/user_operation/serializers.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/user_operation/serializers.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/user_operation/serializers.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-04-22 09:32 # @Author : Mayandev # @Site : https://github.com/Mayandev/ # @File : serializers.py # @Software: PyCharm from rest_framework import serializers from user_operation.models import UserFavorMovie, UserFavorActor, UserFavorGenre from rest_...
25.843373
80
0.619114
477167ad5b630a6b76b23302a38cd4cc58f5df20
4,094
py
Python
src/balldetection/PreciseTrajectoryBall.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/balldetection/PreciseTrajectoryBall.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/balldetection/PreciseTrajectoryBall.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import numpy as np import warnings from src.Util import getcolour # mute that one annoying warning warnings.simplefilter('ignore', np.RankWarning) class PreciseTrajectoryBall(object): def __init__(self, posOne, posTwo, posThree, meta=None): # remember older positions self.positions = [] ...
30.102941
113
0.579384
ef2997f1d680d863dac7e26ea307e28aecc8056c
389
py
Python
leetcode/233-Number-of-Digit-One/NumberofDigitOne_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/233-Number-of-Digit-One/NumberofDigitOne_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/233-Number-of-Digit-One/NumberofDigitOne_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {integer} n # @return {integer} def countDigitOne(self, n): res, d = 0, 10 while 10 * n >= d: t = d / 10 r = n % d res += n / d * t if t - 1 < r < 2 * t - 1: res += r - t + 1 elif 2 * t - 1 <...
24.3125
37
0.326478
3e9dae3d87dd91f6ef61f3b2f6a76193c37da78d
69
pyde
Python
sketches/Bouncing_Ball_Simulator/Bouncing_Ball_Simulator.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/Bouncing_Ball_Simulator/Bouncing_Ball_Simulator.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/Bouncing_Ball_Simulator/Bouncing_Ball_Simulator.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
def setup(): size(600, 600) def draw(): background(0, 0, 0)
11.5
23
0.550725
3eb2bda1fbb5ce05088b1f83c648c108c519e89d
2,577
py
Python
ring_buffer/test_ring_buffer.py
Oyekunle-Mark/tangled-mystery
ae789d5b05a4791594427f23d52249af81748ff4
[ "MIT" ]
null
null
null
ring_buffer/test_ring_buffer.py
Oyekunle-Mark/tangled-mystery
ae789d5b05a4791594427f23d52249af81748ff4
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/03_data_structures/Sprint-Challenge--Data-Structures-Python/ring_buffer/test_ring_buffer.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
1
2021-09-03T16:17:47.000Z
2021-09-03T16:17:47.000Z
import unittest from ring_buffer import RingBuffer, ArrayRingBuffer class RingBufferTests(unittest.TestCase): def setUp(self): self.buffer = RingBuffer(5) self.buffer_2 = RingBuffer(5) def test_ring_buffer(self): self.assertEqual(self.buffer.storage.length, 0) self.buffer.app...
32.620253
70
0.58052
3eda867ccce770947156e25bbb310d717c308153
1,144
py
Python
scripts/generate_doc_files.py
suisen-cp/cp-library-cpp
8fbbdcdbceb60f5adc56ff4740549ce3c1a1ea43
[ "CC0-1.0" ]
2
2021-10-04T15:46:56.000Z
2022-01-14T19:28:43.000Z
scripts/generate_doc_files.py
suisen-cp/cp-library-cpp
8fbbdcdbceb60f5adc56ff4740549ce3c1a1ea43
[ "CC0-1.0" ]
null
null
null
scripts/generate_doc_files.py
suisen-cp/cp-library-cpp
8fbbdcdbceb60f5adc56ff4740549ce3c1a1ea43
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import os import argparse from pathlib import Path def generate(path): doc_path = str(Path(doc_folder) / Path(path)).replace(".hpp", ".md") if os.path.exists(doc_path): return if not os.path.exists(os.path.dirname(doc_path)): os.makedirs(os.path.dirname(doc_path)) ...
30.918919
93
0.615385
df9705ffb9c908595ec5144549b2f46801e86dd9
22,135
py
Python
scripts/signal_marker_processing/notebook/md_widgets.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
scripts/signal_marker_processing/notebook/md_widgets.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
scripts/signal_marker_processing/notebook/md_widgets.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Daniele Borio # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD from ipywidgets import (DatePicker, HBox, BoundedIntText, HTML, VBox,...
32.07971
98
0.493382
a0bb978e1a25de64317b3605dfc8fd25c3e291a6
147
py
Python
python/python_backup/PRAC_PYTHON/count.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/count.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/count.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def count1(n): k=n s=0 while(k!=0): s=s+1 k=k//10 return s l=int(input("Enter a number :")) l=count1(l) l=l**l print(l)
9.1875
33
0.496599
3e2a33debd788f8f09fae3bd8a408a4c79e7d6d8
5,582
py
Python
generator/generator/aspif.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
29
2017-06-21T19:29:07.000Z
2022-02-17T12:26:24.000Z
generator/generator/aspif.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
34
2017-06-26T14:31:02.000Z
2022-02-03T16:40:41.000Z
generator/generator/aspif.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
22
2017-06-29T11:08:42.000Z
2022-02-03T16:16:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Ground program observation for ASPIF output of instance generator.""" from sys import getsizeof from itertools import chain from clingo.symbol import Function, Number, Tuple_, String class AspifObserver(object): """Ground program observer for ASPIF output of instan...
41.044118
212
0.647438
e45164dbaa1219d27b921def3827cedf705486ea
202
py
Python
python/main.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
1
2020-09-29T17:44:31.000Z
2020-09-29T17:44:31.000Z
python/main.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
python/main.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
from system.log import log from system.webserver import Webserver from system.config import Config log.info("starting...") ws = Webserver() ws.run(port=Config.getSingleton().getInt("webserverport"))
20.2
58
0.772277
e471e782a84c0bf9f622367d36feefdaaf0a867e
404
py
Python
INBa/2015/Cherniy_F_Y/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Cherniy_F_Y/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Cherniy_F_Y/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 28. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Норма Бейкер. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Cherniy F. Y. # 28.02.2016 print ("Норма Бейкер наиболее известна как американская кин...
44.888889
205
0.794554
904832fe801e917f8b6e0a2b4db018b0b671ee6f
6,282
py
Python
zencad/libs/malgo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/libs/malgo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/libs/malgo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import zencad import math import numpy import time def kinematic_backpack(senses, target, current): sens = [s.to_array() for s in senses] target = (current.inverse() * target).to_array() return zencad.malgo.svd_backpack(target, sens) def kinematic_backpack_translation_only(senses, target): sens = [s...
25.536585
110
0.59774
5f6fe53b314fd1639f36d5ee01d47dc07534a774
2,238
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex07_capitalize.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex07_capitalize.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex07_capitalize.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def capitalize(input): input_chars = list(input) capitalize_next_char = True for i, current_char in enumerate(input_chars): if current_char.isspace(): capitalize_next_char = True elif capita...
24.326087
70
0.672475
845d95725150fc1f4748f907c0a662800dc524d3
258
py
Python
testbed0/listen_can.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
null
null
null
testbed0/listen_can.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
null
null
null
testbed0/listen_can.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
1
2019-10-20T20:35:23.000Z
2019-10-20T20:35:23.000Z
#!/usr/bin/python3 import can bustype = 'socketcan_native' channel = 'vcan0' bus = can.interface.Bus(channel=channel, bustype=bustype) try: while True: print(bus.recv()) except: # Possible interrupt received print("Stopped listening");
18.428571
57
0.693798
ffe5fc6d0e7d3e3427c0051416ea8c7aa911a574
1,138
py
Python
app.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
app.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
app.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
from flask import Flask,render_template, redirect, url_for,request; # 导入电影天堂数据库爬取模型 from database.models import Dytt app = Flask(__name__) @app.route('/') @app.route("/index") def index(): movies = Dytt().index_get(); return render_template("index.html",movies=movies); @app.route("/category") def category():...
28.45
91
0.65993
4b022de7f1a39ff7443ed56aac77ec4cdc85786f
1,181
py
Python
src/config_db/scripts/sdp_example_workflow.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/config_db/scripts/sdp_example_workflow.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/config_db/scripts/sdp_example_workflow.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
""" Example real-time SDP workflow. Just waits for matching configuration to appear in the configuration, and holds it until it gets removed. """ # pylint: disable=C0103 import logging import ska_sdp_config logging.basicConfig() log = logging.getLogger('main') log.setLevel(logging.INFO) # Instantiate configuration...
23.156863
77
0.701101
d9edfe1b2ca507ef1eb88b93cd0642094a37ae57
1,634
py
Python
twitter/twitter_proxy.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
3
2019-08-29T10:14:40.000Z
2021-03-05T09:50:15.000Z
twitter/twitter_proxy.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
null
null
null
twitter/twitter_proxy.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
1
2021-03-05T09:50:29.000Z
2021-03-05T09:50:29.000Z
"""Twitter API Helper.""" import os import boto3 import gittuts.cloudtuts.twitter SSM_PARAMETER_PREFIX = os.getenv("SSM_PARAMETER_PREFIX") CONSUMER_KEY_PARAM_NAME = '/{}/consumer_key'.format(SSM_PARAMETER_PREFIX) CONSUMER_SECRET_PARAM_NAME = '/{}/consumer_secret'.format(SSM_PARAMETER_PREFIX) ACCESS_TOKEN_PARAM_NAME ...
32.68
109
0.738678
d9fbe4cdc06b5ea4056aac111c5c25d2a0bedda2
472
py
Python
01.DataStructure/Stack&Queue/SY/b1966_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
01.DataStructure/Stack&Queue/SY/b1966_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
01.DataStructure/Stack&Queue/SY/b1966_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
# b166_SY answer = [] time = int(input()) for t in range(time): N, M = map(int, input().split()) arr = [int(x) for x in input().split()] key = arr[M] result = 1 while arr: if arr[0] == key: if arr[0] == max(arr): answer.append(result) break ...
21.454545
43
0.432203
8a30e12aae5c8165adf033be677d22f05e3fd4bd
406
py
Python
exercises/es/exc_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/exc_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/exc_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importa la clase de lenguaje "Spanish" y crea el objeto nlp from ____ import ____ nlp = ____ # Procesa el texto doc = ____("Me gustan las panteras negras y los leones.") # Un slice del Doc para "panteras negras" panteras_negras = ____ print(panteras_negras.text) # Un slice del Doc para "panteras negras y los leon...
25.375
67
0.761084
76d74eabfc1c28bb25817981c9ab3987c3a21973
1,459
py
Python
website/apps/fileupload/migrations/0001_initial.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/fileupload/migrations/0001_initial.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/fileupload/migrations/0001_initial.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone import django.core.files.storage import django_extensions.db.fields import fileupload.models class Migration(migrations.Migration): dependencies = [ ] operations = [ ...
40.527778
221
0.633996
0a2f2d3c1058bb2e0515f9a96ca7b26a9bcb05a5
279
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_2/mark_students_active.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/mark_students_active.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/mark_students_active.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): # 'Schools' module changed to the 'Education' # frappe.reload_doc('schools', 'doctype', 'student_group_student') frappe.reload_doc('education', 'doctype', 'student_group_student') frappe.db.sql("update `tabStudent Group Student` set active=1")
31
67
0.749104
0a6160c97fe6153a3c7e2885719808798de2b946
71
py
Python
datadog/pyhton-api/generic/src/main/python/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
5
2016-11-16T02:18:45.000Z
2018-03-14T19:57:11.000Z
datadog/pyhton-api/generic/src/main/python/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
null
null
null
datadog/pyhton-api/generic/src/main/python/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
10
2016-06-06T18:28:13.000Z
2018-07-01T18:20:06.000Z
from datadog import initialize def main(): initialize() main()
7.888889
30
0.676056
7cad8754262c8406e690bb0aad7d1713f5d4b8aa
829
py
Python
mypath.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
mypath.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
mypath.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/9 上午10:42 """ class Path(object): @staticmethod def db_root_dir(dataset): if dataset == 'pascal': return '/media/Program/CV/dataset/VOCdevkit/' # folder that contains VOCdevkit/. ...
31.884615
93
0.597105
86a6aa82f85f01b8207a77fe2dffbd3ed1fdb5f0
1,489
py
Python
seg_utils.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
seg_utils.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
seg_utils.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
#!/usr/bin/env python """Utility functions for segmentation tasks.""" from PIL import Image import numpy def get_image(image_path, force_mode=None): """ Get a numpy array of an image so that one can access values[y][x]. Parameters ---------- image_path : str force_mode : {None, 'L', 'RGB', ...
24.016129
79
0.589657
d4ee8b487c0427ced463cd123130250f119698b6
1,378
py
Python
codeit/oop/open_closed_principle/keyboard_manager.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/open_closed_principle/keyboard_manager.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/open_closed_principle/keyboard_manager.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Keyboard(ABC): @abstractmethod def save_input(self, input): pass @abstractmethod def send_input(self): pass class SamsungKeyboard(Keyboard): def __init__(self): self.user_input = "" def save_input(self, input): sel...
20.878788
58
0.686502
07a4a15037d41093894106bfe9746d9b67ee006e
488
py
Python
Licence 1/I21/test.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I21/test.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I21/test.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
a = 1 b = 2 def operateur(operation): global a global b return operation(a, b) lambda a, b: [c for c in range(a, b + 1)] print(c) list = [ [1, 2, 3], [8, 2, -1], [4, 5, 6] ] print("### SERPENTIN ###") s_j = len(list[0]) for i in range(len(list)): for j in range(s_j): print(list...
13.555556
56
0.479508
9c69cc2d239875b89f5bfe76f1add7b14a81ad92
5,774
py
Python
0CTF/2021/Quals/pwn/uc_masteeer/uc_masteeer.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
0CTF/2021/Quals/pwn/uc_masteeer/uc_masteeer.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
0CTF/2021/Quals/pwn/uc_masteeer/uc_masteeer.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import struct import types from unicorn import * from unicorn.x86_const import * from syscall import hook_syscall CODE = 0xdeadbeef000 STACK = 0xbabecafe000 MAIN = b'\x48\x83\xec\x20\x66\xc7\x44\x24\x0e\x00\x00\x48\x8d\x5c\x24\x0e\x48\xc7\x44\x24\x10\x00\x00\x00\x00\x48\xc7\x44\x24\x1...
62.76087
2,150
0.714063