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
63322af4b95d43ef597935dad6cbdbe2e3e43abe
1,329
py
Python
v2/etc.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
1
2021-03-31T03:41:06.000Z
2021-03-31T03:41:06.000Z
v2/etc.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
null
null
null
v2/etc.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
null
null
null
# vim: ts=2 sw=2 sts=2 et : import re import sys import copy import random from collections import UserDict class o(object): def __init__(i, **k): i.__dict__.update(**k) def __repr__(i): return i.__class__.__name__ + str( {k: v for k, v in i.__dict__.items() if k[0] != "_"}) def csv(f): with open(f)...
23.732143
71
0.579383
575d771680e97355b0c71231a4c20c6eb106d469
306
py
Python
solutions/pic_search/webserver/src/common/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/pic_search/webserver/src/common/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/pic_search/webserver/src/common/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import os MILVUS_HOST = os.getenv("MILVUS_HOST", "127.0.0.1") MILVUS_PORT = os.getenv("MILVUS_PORT", 19530) VECTOR_DIMENSION = os.getenv("VECTOR_DIMENSION", 512) DATA_PATH = os.getenv("DATA_PATH", "/data/jpegimages") DEFAULT_TABLE = os.getenv("DEFAULT_TABLE", "milvus") UPLOAD_PATH = "/tmp/search-images"
34
54
0.745098
579ebfce481be9346a0b920ba39edb11b760013c
3,670
py
Python
src/onegov/ballot/models/election/election_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/election_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/election_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot.models.election.mixins import DerivedAttributesMixin from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UUID from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import ForeignKey from sqlalchemy import Integer ...
32.192982
79
0.689101
aa3e077c3a89be71ad2e289ad1ca89d6f605d531
1,868
py
Python
tests/onegov/org/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import transaction from onegov.core.utils import Bunch from onegov.org import OrgApp def test_allowed_application_id(org_app): # little bobby tables! assert not org_app.is_allowed_application_id( "Robert'); DROP TABLE Students; --" ) assert not org_app.is_allowed_application_id('foo') org...
28.30303
76
0.5803
107c04032506f0575c84256532bfa677c024d876
1,577
py
Python
7-assets/past-student-repos/Graphs-master/projects/ancestor/ancestor.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Graphs-master/projects/ancestor/ancestor.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Graphs-master/projects/ancestor/ancestor.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
test_ancestors = [(1, 3), (2, 3), (3, 6), (5, 6), (5, 7), (4, 5), (4, 8), (8, 9), (11, 8), (10, 1)] def earliest_ancestor(ancestry_list, node): # If no parent node, return -1 valid_node = False for parent in ancestry_list: if parent[1] == node: valid_node = True ...
29.203704
99
0.535828
5e2d63235c9fdec82b25e9d5d4494a1c0bc506ae
5,566
py
Python
backend/app/crud/crud_course.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/crud/crud_course.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/crud/crud_course.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import List, Optional from sqlalchemy.orm import Session from app.crud.base import CRUDBase from app.models.course import Course from app.models.course_members import CourseMembers from app.schemas.course import CourseAdmin, CourseCreate, CourseDetail, CourseUpdate def set_member_status(*, cou...
31.805714
89
0.574739
f4cb8f7fb373b562b375f9ec4744a7562244e1c1
1,011
py
Python
lab2/zad1.py
agat272/ABD
485d762655101204cc805e92d9a223da5233036f
[ "MIT" ]
null
null
null
lab2/zad1.py
agat272/ABD
485d762655101204cc805e92d9a223da5233036f
[ "MIT" ]
null
null
null
lab2/zad1.py
agat272/ABD
485d762655101204cc805e92d9a223da5233036f
[ "MIT" ]
null
null
null
import pandas as pd #read data from csv file and choosing important for us columns data_t = pd.read_csv('C:/ABD-a/ABD/lab2/Original data/earthquake_data.csv', sep=',', usecols= ['Do you think the "Big One" will occur in your lifetime?', 'Age', 'What is your gender?']) #changing columns names data_tidy = data_t.rename(...
56.166667
185
0.753709
876febf04046106d586ec66b3ec88a7c20f56b2b
1,368
py
Python
venv/lib/python3.7/site-packages/twilio/rest/bulkexports/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
venv/lib/python3.7/site-packages/twilio/rest/bulkexports/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
bot/lib/python3.7/site-packages/twilio/rest/bulkexports/__init__.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base.domain import Domain from twilio.rest.bulkexports.v1 import V1 class Bulkexports(Domain): def __init__(self, twilio): """ Initialize the Bulkexports Domain ...
22.42623
87
0.578947
0d97bb138b93ba92574f08942843d574faeee955
56,161
py
Python
gllgen/gllgen.py
fusion32/gltools
316eab319f86d7fcc0990f76bb0d4b50b64e89c3
[ "MIT" ]
null
null
null
gllgen/gllgen.py
fusion32/gltools
316eab319f86d7fcc0990f76bb0d4b50b64e89c3
[ "MIT" ]
null
null
null
gllgen/gllgen.py
fusion32/gltools
316eab319f86d7fcc0990f76bb0d4b50b64e89c3
[ "MIT" ]
null
null
null
""" // TODO: review extensions to be used for the low end OpenGL renderer // and also which ones to use with the high end OpenGL renderer // [low] extensions // ARB_framebuffer_object / EXT_framebuffer_object // ARB_uniform_buffer_object // EXT_texture_array // ARB_sync // ARB_texture_storage // ARB_vertex_attrib_bind...
71.633929
133
0.858354
0da5ae3ee06f0302ba475f5e6b155fe26e8b7c39
1,906
py
Python
test_app.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
27
2018-11-30T21:32:26.000Z
2022-03-20T19:46:25.000Z
test_app.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
249
2018-09-30T07:04:37.000Z
2022-03-29T04:31:00.000Z
test_app.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
4
2019-03-01T06:46:13.000Z
2019-06-30T17:45:46.000Z
""" Smoke test site runner """ # pylint:disable=invalid-name import logging import os import authl.flask import flask import publ import publ.image APP_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tests') logging.basicConfig(level=logging.DEBUG if 'FLASK_DEBUG' in os.environ else logging.WARNIN...
28.878788
92
0.64638
df0c663857beb42aefafadb513f657b01b684f00
876
py
Python
src/onegov/activity/collections/volunteer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/collections/volunteer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/collections/volunteer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity.models import Volunteer from onegov.core.collection import GenericCollection from onegov.core.orm.sql import as_selectable_from_path from onegov.core.utils import module_path from sqlalchemy import select class VolunteerCollection(GenericCollection): def __init__(self, session, period): ...
27.375
75
0.711187
801ee25f767a81d3b9c01d46ade0c31e1b7d8384
2,762
py
Python
src/onegov/gis/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from more.webassets import WebassetsApp class MapboxApp(WebassetsApp): """ Provides mapbox integration :class:`onegov.core.framework.Framework` based applications. Doesn't do much except serve the mapbox public token, so we can store it in configuration and not with the source. Not that this token is...
26.304762
79
0.682114
1d5552199364af1aa2223dd68917261792c6ff08
1,527
py
Python
vkapp/bot/polling.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
1
2017-11-23T13:33:13.000Z
2017-11-23T13:33:13.000Z
vkapp/bot/polling.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
vkapp/bot/polling.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
import os import vk import requests import time import json from .handlers import handle_update def get_polling_server(): session = vk.Session(access_token=os.environ['GROUP_TOKEN']) vkapi = vk.API(session) r = vkapi('messages.getLongPollServer', need_pts=1) return r['server'], r['key'], r['ts'] class...
31.163265
133
0.527177
1d65d3fd69ae6eaf250476952029cc77e8c532be
1,645
py
Python
nltk_usage_sample.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
nltk_usage_sample.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
nltk_usage_sample.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
import nltk nltk.download('punkt') nltk.download('averaged_perceptron_tagger') nltk.download('wordnet') from nltk.corpus import wordnet from nltk import word_tokenize, pos_tag from nltk.stem import WordNetLemmatizer def get_wordnet_pos(treebank_tag): if treebank_tag.startswith('J'): return wordnet.ADJ ...
41.125
663
0.776292
d53588ed807a41b96b977883ce0bd93d38116dcb
678
py
Python
___Python/Angela/PyKurs/p04_oop/m03_uhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p04_oop/m03_uhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p04_oop/m03_uhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
class Uhr(object): def __init__(self, stunde, minute, sekunde): self.stunde = stunde self.minute = minute self.sekunde = sekunde def naechsteSekunde(self): self.sekunde += 1 if self.sekunde > 59: self.sekunde = 0 self.minute += 1 ...
26.076923
75
0.49705
d58b32dbe9ff1db3edf693db57117b17b07cf6d0
545
py
Python
books/PythonAutomate/file_organize/initialize_date_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/file_organize/initialize_date_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/file_organize/initialize_date_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import os import shutil from pathlib import Path def main(): dir_name = 'dates_sample' filenames = [ 'spam4-4-1984.txt', '01-03-2014eggs.zip', '06-02-2020today.txt', '6-2-2020cur.pdf', 'littlebrother.epub' ] # 기존 파일들 삭제 if os.path.isdir(...
18.793103
60
0.546789
63caeb68740386d892154ac6b99ef94125ec00e5
28,197
py
Python
etc code/opmlify2.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
etc code/opmlify2.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
etc code/opmlify2.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
""" Copyright 2016 Max Planck Society, Federica Bogo, Angjoo Kanazawa. All rights reserved. This software is provided for research purposes only. By using this software you agree to the terms of the SMPLify license here: http://smplify.is.tue.mpg.de/license About this Script: ============ This is a demo version o...
34.386585
227
0.560698
1ad4335d90a8a77f7e961f8d25f6af4435041b64
1,119
py
Python
src/onegov/town6/views/reservation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/reservation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/reservation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Public from onegov.org.views.reservation import handle_reservation_form, \ confirm_reservation, get_reservation_form_class, finalize_reservation from onegov.town6 import TownApp from onegov.reservation import Resource from onegov.town6.layout import ReservationLayout @TownApp.for...
39.964286
79
0.775693
21277174d67ea494c05bf1fce95e0eea201f93af
10,316
py
Python
Packs/FeedReversingLabsRansomwareAndRelatedToolsApp/Integrations/ReversingLabsRansomwareAndRelatedToolsFeed/ReversingLabsRansomwareAndRelatedToolsFeed.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/FeedReversingLabsRansomwareAndRelatedToolsApp/Integrations/ReversingLabsRansomwareAndRelatedToolsFeed/ReversingLabsRansomwareAndRelatedToolsFeed.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/FeedReversingLabsRansomwareAndRelatedToolsApp/Integrations/ReversingLabsRansomwareAndRelatedToolsFeed/ReversingLabsRansomwareAndRelatedToolsFeed.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from CommonServerPython import * VERSION = "v1.0.0" USER_AGENT = f"ReversingLabs XSOAR Ransomware Feed {VERSION}" MAX_HOURS_HISTORICAL = 4 ALLOWED_INDICATOR_TYPES = ("ipv4", "domain", "hash", "uri") INDICATOR_TYPE_MAP = { "ipv4": FeedIndicatorType.IP, "domain": FeedIndicatorType.Domain, "hash": FeedInd...
28.977528
121
0.643273
2ec2279a0faef9a06dd1c76dd8582ee57c29f5ef
601
py
Python
Modeling/setup.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
1
2019-10-01T04:13:08.000Z
2019-10-01T04:13:08.000Z
Modeling/setup.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
null
null
null
Modeling/setup.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
null
null
null
import sys from distutils.core import setup, Extension compile_args = ['-O3'] ''' ext = [] ext.append(Extension('DC3D', sources = ['dC3D.so'], extra_compile_args=compile_args)) ''' setup(name='gpsFIT', version = '0.1.0', description = 'GPS data handeling', url = ...
24.04
55
0.572379
25cb44aac78b03e35a2c44f22ad75a285c06af9c
393
py
Python
Python/Exercícios_Python/013_reajuste_salarial.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/013_reajuste_salarial.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/013_reajuste_salarial.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """013 - Reajuste Salarial Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1US2CGdprsjD4mRm_kRMWVKzj4mA3UMOp """ sa = float(input('Quanto ganha um funcionário? R$: ')) sn = sa + (sa * 15 / 100) print('Um funcionário que ganhava ...
32.75
107
0.694656
25f9383e28901edcb845d955490509e9f1765dd0
16,145
py
Python
TUMAGA/amazon.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
TUMAGA/amazon.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
TUMAGA/amazon.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
"""amazon module is a jungle containing different plants and creatures, for instance the boa which is a reptile like the turtle, however it may not moved around freely and can be constricted, hence boa constrictor""" import turtle from random import shuffle, randrange from math import radians, cos, sin def even(numbe...
39.864198
221
0.515206
d31de3923e542fde871f9579b2fe4b84161813c5
472
py
Python
source/pkgsrc/devel/py-h5py/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-h5py/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-h5py/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2021/06/18 12:15:22 nia Exp $ Do not require exact numpy version. --- setup.py.orig 2021-03-05 10:02:07.000000000 +0000 +++ setup.py @@ -49,7 +49,7 @@ SETUP_REQUIRES = [ "Cython >=0.29.14; python_version=='3.8'", "Cython >=0.29.15; python_version>='3.9'", ] + [ - f"numpy ==...
29.5
59
0.648305
6ca74a55f8c85e99df4603464264eeaa01bd291a
365
py
Python
microkg/cli.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
null
null
null
microkg/cli.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
1
2021-06-02T00:43:28.000Z
2021-06-02T00:43:28.000Z
microkg/cli.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
null
null
null
"""Command line interface for microkg.""" import click @click.group() def microkg_cli(): """PoC""" pass @microkg_cli.command() def parse(): """Parse""" from . import parser parser.main() @microkg_cli.command() def release(): """Release""" from . import releaser releaser.main() ...
12.586207
41
0.610959
9f400385a4dc421e9b890a796b6257f4e3ce1cf1
326
py
Python
Fastir_Collector/dump/windowsVistaDump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/dump/windowsVistaDump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/dump/windowsVistaDump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
from __future__ import unicode_literals from dump import _Dump from utils.vss import _VSS import os class WindowsVistaDump(_Dump): def __init__(self, params): super(WindowsVistaDump, self).__init__(params) self.root_reg = os.path.join(_VSS._get_instance(params)._return_root(), 'Windows\System32\con...
32.6
106
0.763804
9fc1e42eb6b3c0baadf80cdb389cb8ebef8f15ba
1,112
py
Python
tools/sanitizer/main.py
torsten-rathmann/rdmo-catalog
8cc58d6c5a94369ed06ed1e1cb96694eba76f519
[ "CC0-1.0" ]
10
2017-03-17T13:13:44.000Z
2022-02-09T17:12:03.000Z
tools/sanitizer/main.py
torsten-rathmann/rdmo-catalog
8cc58d6c5a94369ed06ed1e1cb96694eba76f519
[ "CC0-1.0" ]
74
2017-12-14T18:42:43.000Z
2022-03-08T16:22:52.000Z
tools/sanitizer/main.py
torsten-rathmann/rdmo-catalog
8cc58d6c5a94369ed06ed1e1cb96694eba76f519
[ "CC0-1.0" ]
36
2017-12-19T17:00:24.000Z
2022-03-04T13:06:52.000Z
#!/usr/bin/python3 import os import re from os.path import abspath from os.path import join as pj from lib.argparse import parse_args from lib.init import Init from lib.sanitize import Sanitize from lib.util import read_xml, write_xml if __name__ == '__main__': dirs = {} dirs['base'] = re.search(r'.*rdmo-cat...
30.888889
70
0.639388
e2d367735d80af6af8f89ee09ff2dd500486856c
1,425
py
Python
python/data_sutram/scraper/files_get.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/files_get.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/files_get.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" Here is the extracted answer (in pseudo code) for quick reference. Given Longitude/latitude/zoom to tile numbers : n = 2 ^ zoom xtile = n * ((lon_deg + 180) / 360) ytile = n * (1 - (log(tan(lat_rad) + sec(lat_rad)) / π)) / 2 Note that log() in this pseudo code refers to natural log (often "ln()" in common math s...
26.388889
144
0.613333
390ce9fd55ea1f005142d50eb09266f015e844cb
7,473
py
Python
src/onegov/wtfs/models/report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from datetime import date from onegov.core.orm.func import unaccent from onegov.wtfs import _ from onegov.wtfs.models.municipality import Municipality from onegov.wtfs.models.scan_job import ScanJob from sqlalchemy import func from sqlalchemy import Integer from sqlalchemy.sq...
31.531646
76
0.624113
393fb961c32bd18ffc6b434321fd8917ac43a07f
140
py
Python
day06/loops.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day06/loops.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day06/loops.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
#while something_is_true: #this will be executed numOfHurdles = 6 while numOfHurdles > 0: print(numOfHurdles) numOfHurdles -= 1
20
26
0.721429
1a5c5ca55574272903edf274dbfea30dba0e2c05
1,127
py
Python
research/cv/ibnnet/src/lr_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ibnnet/src/lr_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ibnnet/src/lr_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.21875
78
0.68323
b37f9638933600c12887a3d1259e21ceb48c9dda
25,797
py
Python
Packs/SolarWinds/Integrations/SolarWinds/SolarWinds.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SolarWinds/Integrations/SolarWinds/SolarWinds.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SolarWinds/Integrations/SolarWinds/SolarWinds.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 * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import requests import traceback from typing import Dict, List, Callable, Tuple # Disable insecure warnings requests.packages.urllib3.disable_warnings() # pylin...
39.145675
119
0.649145
b3a02adc1d4ff5051a1e299543fd318cad13b691
6,044
py
Python
src/assets/util/classifiers/ranforest.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
1
2022-03-28T17:23:03.000Z
2022-03-28T17:23:03.000Z
src/assets/util/classifiers/ranforest.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
null
null
null
src/assets/util/classifiers/ranforest.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
null
null
null
import os import js import numpy as np import pandas as pd import plotly.express as px import plotly.graph_objects as go from skimage import io from skimage import transform from sklearn import metrics from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import RandomizedSearchCV, train_tes...
34.340909
119
0.654037
37af514690f30d2c570bbbfd0785a1f03b2bbb97
10,488
py
Python
wz/ui/wz_main.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/wz_main.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/wz_main.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/wz_main.py Last updated: 2021-08-24 The "main" window. =+LICENCE============================= Copyright 2021 Michael Towers 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...
31.121662
77
0.62376
80f8a37d1b939dd9322efcd4a59cedd3c976b92a
772
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/row_manager.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/row_manager.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/row_manager.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # -*- codi...
32.166667
73
0.709845
20d5e6f78a19feebc920e986232bf3c74f0c7039
1,978
py
Python
jumeaux/addons/judgement/same.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/judgement/same.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/judgement/same.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- from owlmixin import OwlMixin, TList, TOption from jumeaux.addons.judgement import JudgementExecutor from jumeaux.utils import when_filter from jumeaux.logger import Logger from jumeaux.models import JudgementAddOnPayload, JudgementAddOnReference logger: Logger = Logger(__name__) LOG_PREFIX = ...
30.90625
85
0.574317
ff21cb0934219e2eb0b4d3f5c61f2588efdaad01
1,161
py
Python
src/onegov/org/forms/external_link.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/external_link.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/external_link.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org import _ from onegov.form import Form from wtforms import StringField, TextAreaField, SelectField from wtforms.fields.html5 import URLField from wtforms.validators import InputRequired from onegov.org.models.external_link import ExternalLinkCollection class ExternalLinkForm(Form): title = String...
27
68
0.647717
4449389c11403914b91a34428feeda316b9313d5
30
py
Python
rdlcompiler/db/__init__.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
4
2016-05-10T20:40:34.000Z
2020-04-09T13:23:33.000Z
rdlcompiler/db/__init__.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
null
null
null
rdlcompiler/db/__init__.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
null
null
null
__author__ = 'megabytephreak'
15
29
0.8
4465c28b1049d7e4d70edaedea69727875b81ba9
10,241
py
Python
RDS/circle2_use_cases/port/tests/server/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/port/tests/server/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/port/tests/server/test_server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import unittest import sys import os import json import logging from pactman import Consumer, Provider from src import bootstrap from lib.TokenService import TokenService import Util import jwt import datetime from RDS import User, OAuth2Service, BaseService, OAuth2Token, Token func = [Util.initialize_object_from_js...
35.071918
123
0.609804
927fa66ce686b3d748973f74554e9188a4dfc21e
1,297
py
Python
Projekt/TestAusschneidenHenry.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Projekt/TestAusschneidenHenry.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Projekt/TestAusschneidenHenry.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
3
2019-11-17T01:33:07.000Z
2020-03-26T10:13:39.000Z
""" Hier ein Beispiel wie man mittels HSV Raum ausschneiden kann. Dabei wird der S mit dem V Anteil multipliziert. Bei manchen Obst funktioniert es besser als bei anderem: z.B Carambola sehr gut, Plum eher schlecht """ from skimage.io import imread, imsave from skimage.color import rgb2hsv from skimage.filters import t...
28.822222
110
0.756361
2bb922c7199c792969062f1c6dda1fb637db5800
2,148
py
Python
micropython/sd/Turbidity.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/Turbidity.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/Turbidity.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
""" Test of the Turbidity meter using an ADC # The Turbidity sensor mapped from 0 to 1023 (0 - 5 volts) # ADC maps values -32768 to 32767, GND is 0 (-5 - 5 v) # Voltage conversion is volts = (reading / 32767) * 5 # This may need some calibration adjustment """ from pyb import ADC, Pin # actual voltage is 3.3, but cal...
23.347826
68
0.593575
a6ee93d23aa7035cc6bebc761e8d1c20d89fe33d
4,255
py
Python
quick_start/quickstart/views.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
quick_start/quickstart/views.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
quick_start/quickstart/views.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.contrib.auth.models import User, Group from rest_framework import viewsets, status, mixins, generics, permissions, reverse from rest_framework.decorators import api_view from rest_framework.response import Response # 导入Response from rest_framework.status import HTTP_404_NOT_FOUND fro...
31.992481
83
0.669565
5b355c960fef9a8f7c7d6173e8b5be3260a14dfd
409
py
Python
INBa/2015/Semyenov_A_N/task_2_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_2_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_2_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 2. Вариант 24 #Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Иоанн (Алексеев). Не забудьте о том, что автор должен быть упомянут на отдельной строке. #Semyenov A.N. #23.02.2016 print("<<Самомнение и тщеславие – они-то не дают видеть себя,...
51.125
208
0.767726
75431f80751dc01713937c15df904a647a9d890c
6,656
py
Python
contest_server/pjkiserver/ruleserver/racing_kings.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
contest_server/pjkiserver/ruleserver/racing_kings.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
contest_server/pjkiserver/ruleserver/racing_kings.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 3 14:47:31 2020 @author: vairee """ import numpy as np from .bitboard import Board from .valid_move_check import ValidCheck from .WinConditions import reihencheckrk from .racing_kings_check_check import checkmate INITIAL_FEN = "8/8/8/8/8/8/krbnNB...
33.616162
125
0.616737
346d4901176262ac3a1b2ede249c35302f6b10e1
1,332
py
Python
book/_build/jupyter_execute/docs/103_vibration.py
tom-tubeless/Biologie
44660ea21971d4b3d77118606bfe1264993465fc
[ "MIT" ]
null
null
null
book/_build/jupyter_execute/docs/103_vibration.py
tom-tubeless/Biologie
44660ea21971d4b3d77118606bfe1264993465fc
[ "MIT" ]
null
null
null
book/_build/jupyter_execute/docs/103_vibration.py
tom-tubeless/Biologie
44660ea21971d4b3d77118606bfe1264993465fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Vibration # # In dieser Lektion werden wir das Vibrationsmodul besprechen! # Wisst ihr was ein Vibrationsmodul ist? # # ```{figure} ./img/vibration_module.png # :name: vibration_module # # Das Vibrationsmodul auf dem Crowpi 2. | Lutz Tomala 2021 # ``` # # ## So funktionier...
41.625
229
0.766517
1b260c48cc1101af34f34e3d7066a7041866e6a6
961
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/customer_discount_to_pricing_rule.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/customer_discount_to_pricing_rule.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/customer_discount_to_pricing_rule.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 from frappe.utils.nestedset import get_root_of def execute(): frappe.reload_doc("accounts", "doctype", "pricing_rule") frappe.db.auto_...
28.264706
68
0.718002
9420dbb41f747462d33a63b6f17b786577f0a251
6,958
py
Python
freesms.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
freesms.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
freesms.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#By.Mr.Risky #9-2-2021 8.14 import base64 exec(base64.b64decode('aW1wb3J0IG9zLHN5cyxyZXF1ZXN0cyxqc29uLHRpbWUKCmI9J1wwMzNbMTszNG0nCmk9J1wwMzNbMTszMm0nCmM9J1wwMzNbMTszNm0nCm09J1wwMzNbMTszMW0nCnU9J1wwMzNbMTszNW0nCms9J1wwMzNbMTszM20nCnA9J1wwMzNbMTszN20nCmg9J1wwMzNbMTs5N20nCgoKZGVmIGhhbG8oKToKCgljbGVhcigpCglrYXRhMihmIntofV...
1,159.666667
6,914
0.995401
944ca7f84fdf0b558b9253a817e049add023dc24
847
py
Python
home/utils.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
1
2022-01-08T14:18:14.000Z
2022-01-08T14:18:14.000Z
home/utils.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
null
null
null
home/utils.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
null
null
null
import requests from django.http import HttpResponse from stockbinz import settings from django.core.mail import send_mail from django.template.loader import render_to_string from django.utils.html import strip_tags def mail(recipient): subject = "Greetings" html_message = render_to_string('email/ma...
26.46875
105
0.706021
84e2fdce26f50db1e4c3ed62aeaea280d01bcd0a
2,072
py
Python
nz_django/day7/middle_ware_demo/front/middlewares.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day7/middle_ware_demo/front/middlewares.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day7/middle_ware_demo/front/middlewares.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
#获取登录用户的详细信息 from .models import User #get_response是一个方法 def front_user_middleware(get_response): #执行一些初始化的代码 print("在这里执行一些中间件初始化的代码") def middleware(request): #真正的执行在这里 print('这里执行的是request到达view之前的代码') user_id = request.session.get('user_id') if user_id: try: ...
31.876923
68
0.620656
ca35e03d24a59649dc7117766094cfa0a363acf6
2,964
py
Python
kts/stl/misc.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/stl/misc.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/stl/misc.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import multiprocessing import numpy as np import pandas as pd from kts.validation.leaderboard import leaderboard as lb from kts.core.backend.memory import load from kts.core.base_constructors import merge, wrap_stl_function, empty_like def _apply_df(args): """ Args: args: Returns: """ d...
20.727273
80
0.584008
ca8ac9eac721a6870d1160a8bb9695f8e888234e
9,380
py
Python
src/onegov/agency/views/people.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/views/people.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/views/people.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import namedtuple from collections import OrderedDict from datetime import datetime, timedelta from itertools import groupby from morepath import redirect from morepath.request import Response from onegov.agency import _ from onegov.agency import AgencyApp from onegov.agency.collections import Extended...
28.597561
79
0.632836
b68b5fbee982e9a2f2724e4863f81a6f39ed955e
329
py
Python
apps/models/__init__.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
apps/models/__init__.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
apps/models/__init__.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from .users import User from .posts import Posts from apps.extensions import db # 添加用户与帖子的收藏中间关联表 表名.字段 collections = db.Table('collections', db.Column('user_id', db.Integer, db.ForeignKey('users.id')), db.Column('posts_id', db.Integer, db.ForeignKey('posts.id')) ) #一个用户可以收藏多个帖子 #一个帖子可以被多个用户收藏 #多对多我们是通过 中...
16.45
64
0.726444
b6b367398a88bea5e58cb3ea232cfd7998748428
228
py
Python
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/tt.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/tt.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/tt.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import os def create_dirs_in_list(self, dirs, root): pass if __name__ == "__main__": hashes = {"aa":"wefwe", "ddw":"plelwfe", "qdqq":"oergregeg", "rgergw":"olngeoirn", "dqd":"wrefgwgwww"} print(hashes.get("abc"))
22.8
106
0.635965
1e04fe0eed26927ebb0da0ddb5a91f51b2398921
1,896
py
Python
IVTa/2014/MOSHKOV_Y_O/task_4_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/MOSHKOV_Y_O/task_4_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/MOSHKOV_Y_O/task_4_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 23 # Напишите программу, которая выводит имя, под которым скрывается Илья Арнольдович Файзильберг. # Дополнительно необходимо вывести область интересов указанной личности, место рождения, # годы рождения и смерти (если человек умер), вычислить возраст на данный момент # (или момент смерти). Для хран...
33.263158
96
0.658755
a20ef6bc6ca33aca9dd082dde7fcb4b9d0ed7089
822
py
Python
ProjectEuler_plus/euler_044.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_044.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_044.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from math import sqrt def is_pentagonal(n): # https://stackoverflow.com/questions/37390233/python-is-pentagonal-number-check # https://en.wikipedia.org/wiki/Pentagonal_number#Tests_for_pentagonal_numbers p = (sqrt((24 * n) + 1) + 1) / 6 return p.is_integer() carry = 1...
24.909091
84
0.653285
bf6e5423f6d64e8802002108d45671cc0f853c03
1,377
py
Python
tests/test_geraet.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_geraet.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_geraet.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.com.geraet import Geraet, GeraetSchema from bo4e.com.geraeteeigenschaften import Geraeteeigenschaften from bo4e.enum.geraetemerkmal import Geraetemerkmal from bo4e.enum.geraetetyp import Geraetetyp from tests.serialization_helper import assert_serialization_roundtrip # t...
38.25
115
0.610022
44a77abcbd98361f5de71fbaefce38109add08a5
322
py
Python
src/aijack/attack/base_attack.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/attack/base_attack.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/attack/base_attack.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
from abc import ABCMeta, abstractmethod class BaseAttacker(metaclass=ABCMeta): def __init__(self, target_model): """attacker against ml model Args: target_model: target ML model """ self.target_model = target_model @abstractmethod def attack(self): pas...
20.125
41
0.63354
785d1af3a0f966bd897d35870a99c69b5ffa0752
147
py
Python
Pythonjunior2020/Woche2/Aufgabe_2_5_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_5_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_5_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 2.5.2, Woche 2, Block 5, Aufgabe 2 # Imports from daten import hinweise # Liste ausgeben for i in range(len(hinweise)): print(hinweise[i])
18.375
36
0.693878
1709c3838c77464f6b0b38dc5338d28ca2868b4a
329
py
Python
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch02-FlowControl-for_range.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch02-FlowControl-for_range.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch02-FlowControl-for_range.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# Ch02-FlowControl-for_range.py # This is an example for a for statement and the range() function. # # https://automatetheboringstuff.com/chapter2/ # for Loops and the range() Function # The numbers ranging from 0 to 100 are added up. sum = 0 for i in range(101): sum = sum + i print('sum = ', sum) # Expected resul...
23.5
66
0.705167
bdba368e82ce1a9ce9afac0958181aeacddad166
3,360
py
Python
brainfuck/bf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
brainfuck/bf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
brainfuck/bf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
"""Brainfuck in One Line of Python A question that has bugged me for a while is whether or not it is possible to simulate a Turing Machine in one semicolon-free expression of Python. If you allow for liberal use of eval then the answer is (trivially) positive, but it's not directly obvious that it would be true withou...
140
1,422
0.664286
e5249ded1f0a5d0b1ab4bf4be73d20f0f196b8b0
303
py
Python
python/pytest/test_compare.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pytest/test_compare.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pytest/test_compare.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pytest @pytest.mark.xfail @pytest.mark.great def test_greater(): num = 100 assert num > 100 @pytest.mark.xfail @pytest.mark.great def test_greater_equal(): num = 100 assert num >= 100 @pytest.mark.skip @pytest.mark.others def test_less(): num = 100 assert num < 200
13.173913
25
0.673267
974c84ec470f01e69d47fa98d18725e3aea3f2b6
3,891
py
Python
vae2gan/ganlib/eqlr.py
x6rulin/AiLab
b810590d4da645915b8472554794d0c6908109e3
[ "MIT" ]
null
null
null
vae2gan/ganlib/eqlr.py
x6rulin/AiLab
b810590d4da645915b8472554794d0c6908109e3
[ "MIT" ]
null
null
null
vae2gan/ganlib/eqlr.py
x6rulin/AiLab
b810590d4da645915b8472554794d0c6908109e3
[ "MIT" ]
null
null
null
"""Convlution layer and Linear layer which support equalized learning rate. """ import torch import torch.nn.functional as F def get_weight(shape, gain=1., use_wscale=False, lrmul=1.0): """Surpports equalized learning rate for weights updating. """ fan_in = torch.prod(torch.FloatTensor(list(shape[1:]))) h...
38.524752
99
0.636597
97a0e7f9c9f0dc23e21c642a1b806fbbb9242115
337
py
Python
src/python/py-accepted/122A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/122A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/122A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 122A # Created on : 2019-01-15 19:45:38 def Main(): lucky = [ 4, 7, 44, 47, 74, 77, 444, 447, 474, 744, 477, 747, 774, 777 ] n = int(input()) for luck in lucky: if n % luck == 0: print('YES') return print('NO') if __name__ == '__mai...
16.047619
76
0.474777
c119445f7ae01a9ae5524f0b67411a6b598eaae4
1,672
py
Python
vasculitis_2022_kd_winds/src/utils.py
AlFontal/vasculitis2022-conference
948c60019bb1a6d329c41ff46410b6208b8cc853
[ "BSD-3-Clause" ]
null
null
null
vasculitis_2022_kd_winds/src/utils.py
AlFontal/vasculitis2022-conference
948c60019bb1a6d329c41ff46410b6208b8cc853
[ "BSD-3-Clause" ]
null
null
null
vasculitis_2022_kd_winds/src/utils.py
AlFontal/vasculitis2022-conference
948c60019bb1a6d329c41ff46410b6208b8cc853
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd def add_date_columns(df: pd.DataFrame, date_column: str = 'date', index_date: bool = False) -> pd.DataFrame: """ Adds month number (int), month name (str), week day number (int, 0-idx) and week day name (str) to a data frame. Parameters ---------- df Pandas data frame w...
42.871795
116
0.568182
e76b962e93f5a75a0e39f822d3b8eed7863557ee
671
py
Python
tarefas-poo/lista-01/calculos/view/paineis/painel_divisivel_por.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_divisivel_por.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_divisivel_por.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício calculos # -------------------------- # Classe responsável por descobrir se um número inteiro é divisível por outro númeroo inteiro. from view.paineis.painel_abstrato import PainelAbstrato from model.calculos import divisivel_por class PainelDivisi...
31.952381
94
0.603577
e79d722b9fbdcdfe22ba426f2a1d5921b8ede3cb
1,005
py
Python
frappe-bench/apps/erpnext/erpnext/regional/report/gst_sales_register/gst_sales_register.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/regional/report/gst_sales_register/gst_sales_register.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/regional/report/gst_sales_register/gst_sales_register.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals from erpnext.accounts.report.sales_register.sales_register import _execute def execute(filters=None): return _execute(filters, additional_table_columns=[ d...
35.892857
74
0.742289
8236a6bdfa697f804056dbda7d81b922747c5105
13,939
py
Python
research/hpc/pfnn/data/gendata.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/pfnn/data/gendata.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/pfnn/data/gendata.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.75731
104
0.427434
413a0969b187b2874db657cc422b48be71233935
3,334
py
Python
euler-11.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-11.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-11.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
def matrikomat_nxn(n,st_v_besedi): mat = [] sez = st_v_besedi.replace("\n"," ").split(" ") for x in range(n): vrstica = sez[x*n:n + n*x] mat.append(vrstica) return mat def zmozi_sez(sez): zmozi = 1 for x in sez: zmozi *= int(x) return zmozi def največj...
31.752381
158
0.593881
68f8d5355e4e9cead97a3c105be4efac41d45164
4,287
py
Python
webapp/dash_reddit_scraping/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/dash_reddit_scraping/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/dash_reddit_scraping/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import praw import pandas as pd import pprint import dash import dash_html_components as html import dash_core_components as dcc import dash_table from dash.dependencies import Input, Output, State from dash.exceptions import PreventUpdate from config import cid, csec, ua # create a reddit connection reddit = praw....
29.163265
83
0.502449
d46676192afa01579e55cfe467d31b117ce2b0f1
2,436
py
Python
backend/api/btb/api/schema/mutations/updatesupply.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/api/schema/mutations/updatesupply.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/api/schema/mutations/updatesupply.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
import graphene from btb.api.schema.types import Supply from btb.api.models import db from btb.api.schema.resolvers import map_skills from sqlalchemy.dialects.postgresql import insert from sqlalchemy import text from flask import g, current_app from btb.api.constants import InputLengths from btb.api.schema.types.util i...
29.707317
133
0.669951
2e502112ec9630c47858e2de016189251f252b4b
17,581
py
Python
Packs/Symantec_Messaging_Gateway/Integrations/SymantecMessagingGateway/SymantecMessagingGateway.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Symantec_Messaging_Gateway/Integrations/SymantecMessagingGateway/SymantecMessagingGateway.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Symantec_Messaging_Gateway/Integrations/SymantecMessagingGateway/SymantecMessagingGateway.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os import demistomock as demisto # noqa: F401 import requests from bs4 import BeautifulSoup from CommonServerPython import * # noqa: F401 # disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBAL VARS ''' SERVER = demisto.params()['server'][:-1] if demisto.params()['server'].endswi...
37.247881
116
0.631136
cf418c99c195a9cde3d2b46741da10071e0a5a66
1,545
py
Python
python/en/archive/dropbox/miscellaneous_python_files/temp-functions4eda-delete_this.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/temp-functions4eda-delete_this.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/temp-functions4eda-delete_this.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# get_percentage( pd_series, '.', 'periods' ) # get_percentage( pd_series, '?', 'questionmarks' ) # get_percentage( pd_series, '\n', 'new_lines' ) # get_percentage( pd_series, '\r', 'returns' ) def get_percentage(pd_series, pattern, name): """ pd_series Pandas Series Usage: get_...
33.586957
85
0.588997
d8b3a9831e74e030364b741a025a2b656aeb6363
7,680
py
Python
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/generate_open62541CCode.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
4
2015-11-11T14:02:17.000Z
2021-11-29T16:07:38.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/generate_open62541CCode.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
6
2019-04-20T14:48:58.000Z
2020-08-26T15:13:02.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/generate_open62541CCode.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
9
2016-01-10T15:14:28.000Z
2021-10-13T22:45:19.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ### ### Author: Chris Iatrou (ichrispa@core-vector.net) ### Version: rev 13 ### ### This program was created for educational purposes and has been ### contributed to the open62541 project by the author. All licensing ### terms for this source is inherited by the terms and con...
40.851064
142
0.670964
9986cf3660428efa26c98d796d6921e2614b10ca
1,221
py
Python
prod-pipeline/classification/Importer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
prod-pipeline/classification/Importer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
prod-pipeline/classification/Importer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Imports from luigi.contrib.spark import PySparkTask from luigi.parameter import IntParameter from luigi import LocalTarget, Task, WrapperTask from luigi.format import UTF8 from os import listdir import pandas as pd import datetime class Importer(Task): # Date for Outpu...
29.071429
84
0.634726
514782fe8ecd14ea63c1daafdc6820b39866ea3b
1,367
py
Python
src/onegov/org/forms/person.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/person.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/person.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import ensure_scheme from onegov.form import Form from onegov.org import _ from wtforms import StringField, TextAreaField, validators from wtforms.fields.html5 import EmailField class PersonForm(Form): """ Form to edit people. """ salutation = StringField(_("Salutation")) academic_...
31.068182
75
0.669349
519a29791c50013313eff52e834d6b978894cdba
217
py
Python
tests/shared/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/shared/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/shared/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from tests.shared.plugin import * # noqa from tests.shared.client import * # noqa from tests.shared.fixtures import * # noqa from tests.shared.capturelog import * # noqa from tests.shared.browser import * # noqa
36.166667
45
0.746544
51b03579515308f9101b4edee068607f22dffef3
534
py
Python
crypto/crypto-babycrypt/src/server.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
2
2021-08-09T17:08:12.000Z
2021-08-09T17:08:17.000Z
crypto/crypto-babycrypt/src/server.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/crypto-babycrypt/src/server.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
1
2021-10-09T16:51:56.000Z
2021-10-09T16:51:56.000Z
from Crypto.Util.number import getPrime, bytes_to_long flag = bytes_to_long(open("/challenge/flag.txt", "rb").read()) def genkey(): e = 0x10001 p, q = getPrime(256), getPrime(256) if p <= q: p, q = q, p n = p * q pubkey = (e, n) privkey = (p, q) return pubkey, privkey def encrypt(m,...
19.777778
62
0.582397
cfd8b0e579fbfeb8b3b047f4e274421b6f3e9716
2,896
py
Python
tiles_png/community/cert/scripts/check_imgs.py
HackThisSite/HTS-rC3-Map
2113e33627fe1987129bc6ca0e4684d383bb3275
[ "MIT" ]
5
2021-11-16T22:15:33.000Z
2022-01-04T14:54:47.000Z
tiles_png/community/cert/scripts/check_imgs.py
HackThisSite/HTS-rC3-Map
2113e33627fe1987129bc6ca0e4684d383bb3275
[ "MIT" ]
null
null
null
tiles_png/community/cert/scripts/check_imgs.py
HackThisSite/HTS-rC3-Map
2113e33627fe1987129bc6ca0e4684d383bb3275
[ "MIT" ]
1
2021-10-30T12:40:02.000Z
2021-10-30T12:40:02.000Z
#!/usr/bin/env python3 from PIL import Image import sys import os BASE_DIR = 'imgs' COMPOSE_TILESHEETS = True TILESHEET_WIDTH = 512 TILESHEET_HEIGTH = 2048 class Row(): def __init__(self, width=TILESHEET_WIDTH, height=32): self.width = width self.height = height self.remainingWidth = width...
32.539326
90
0.541436
5c9e1309605cf1679bb766dcc638519d6b8701f6
230
py
Python
App/apis.py
linzhendemo2/linzhne00
767f75af53749d50986abba7a56b40bf4f706c4c
[ "Apache-2.0" ]
null
null
null
App/apis.py
linzhendemo2/linzhne00
767f75af53749d50986abba7a56b40bf4f706c4c
[ "Apache-2.0" ]
null
null
null
App/apis.py
linzhendemo2/linzhne00
767f75af53749d50986abba7a56b40bf4f706c4c
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from App.models import db blue = Blueprint('blue', __name__) @blue.route('/') def hello(): return 'hello linzhen' @blue.route('/data/') def data(): user = db.create_all() return 'sucess'
16.428571
34
0.665217
8533816b1fbb3f348728c80f5d9e44f4fd5734e4
1,581
py
Python
site/public/courses/CS-1.2/src/PlaylistLinkedList-StarterCode/main.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.2/src/PlaylistLinkedList-StarterCode/main.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.2/src/PlaylistLinkedList-StarterCode/main.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from Playlist import Playlist playlist = Playlist() while True: # Prints welcome message and options menu print(''' Welcome to Playlist Maker 🎶 ===================================== Options: 1: View playlist 2: To add a new song to playlist 3: To remove a song from playlist 4: ...
24.703125
63
0.613536
74cce15ade51e80184408c92ef36a60816115eb0
269
py
Python
etl/setup.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/setup.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/setup.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
from distutils.core import setup from setuptools import setup, find_packages setup( name='etl', version='1.0', package_dir={'etl': ''}, packages=["etl." + package for package in find_packages()], package_data={'': ['*.csv', '*.conf', '*.yaml']}, )
24.454545
63
0.620818
741f3c50907a01693e618f0f53adaf3bac1c9498
516
py
Python
testlogin/Data.py
weibk/webauto
f494f8043d05739935d1fc22b941bbc9a7ba75b7
[ "MIT" ]
null
null
null
testlogin/Data.py
weibk/webauto
f494f8043d05739935d1fc22b941bbc9a7ba75b7
[ "MIT" ]
null
null
null
testlogin/Data.py
weibk/webauto
f494f8043d05739935d1fc22b941bbc9a7ba75b7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # encoding='utf-8' # author:weibk # time:2021/10/28 19:31 class TestData(object): """参数化测试的数据源""" data_sucess = [ {'username': 'jason', 'password': '1234567', 'except': 'Student Login'}, {'username': 'admin', 'password': 'root', 'except': 'Student Login'} ] data_fail...
27.157895
80
0.552326
7423ee942eed2fac0547550c0a291ec456f0d9f9
408
py
Python
apps/quiver/migrations/0002_auto_20190401_1353.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/quiver/migrations/0002_auto_20190401_1353.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/quiver/migrations/0002_auto_20190401_1353.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2019-04-01 13:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quiver', '0001_initial'), ] operations = [ migrations.AlterField( model_name='analyticsservice', name='api_key', ...
21.473684
75
0.610294
745b9e2c40a83472eb72945599d42f5a6924465b
200
py
Python
transonic/backends/for_test_set_backend.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/backends/for_test_set_backend.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/backends/for_test_set_backend.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import boost, jit, set_backend_for_this_module, Transonic set_backend_for_this_module("python") ts = Transonic() @boost def func(): return 0 @jit def func_jit(): return 0
12.5
72
0.735
bb1c98860012efce5f912f7b571624fbe1083d74
2,829
py
Python
src/ingestion/destinations/s3.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/destinations/s3.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/destinations/s3.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import boto3 import os import logging from .base import Destination, DestinationConfiguration class S3DestinationConfiguration(DestinationConfiguration): @classmethod def validate(cls, configuration): raise NotImplementedError @classmethod def configuration_schema(cls): return { ...
30.419355
83
0.573701
2486c6726f408a919cd0a6e3b8192945af15c5bb
977
py
Python
py-basics/src/lectures/functions/tic-tac-toe-checker.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/functions/tic-tac-toe-checker.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/functions/tic-tac-toe-checker.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
# 5kyu | Tic-Tac-Toe Checker # https://www.codewars.com/kata/525caa5c1bf619d28c000335/python def is_solved(board): for i in range(3): if board[i][0] == board[i][1] == board[i][2] != 0: return board[i][0] for i in range(3): if board[0][i] == board[1][i] == board[2][i] != 0: ...
23.829268
63
0.467758
24aba1319b495f8249904332672f183c68dfd87b
309
py
Python
oldp/apps/contact/urls.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/contact/urls.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/contact/urls.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'contact' urlpatterns = [ # ex: /polls/ url(r'^$', views.form, name='form'), url(r'^thankyou', views.thankyou, name='thankyou'), # url(r'^api', views.api, name='api'), # url(r'^contact', views.contact, name='contact'), ]
20.6
55
0.61165
701509c0957c8dd1898930338655574097e23647
61
py
Python
Python/Strings/capitalize.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Strings/capitalize.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Strings/capitalize.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
print(' '.join([i.capitalize() for i in input().split(' ')]))
61
61
0.590164
3b9153ce6f36e196e1c324422ab6de19fa44fe3f
1,090
py
Python
lang-python/pwgen/src/pwgen.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/pwgen/src/pwgen.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/pwgen/src/pwgen.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # A simple Password Generator (pwgen) # Importiere das randowm-Modul import random # Zeichenvorrat pw_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890" # Anzahl Zeichen in Zeichenvorrat pw_chars_len = len(pw_chars) # Generiere eine Zufallszah...
22.708333
75
0.655963
8e92136936abfdfa33549280cddac1d8b81a31c2
14,853
py
Python
stiefo/render.py
effjot/stiefogen
da149f22912fa3b31fc2660ff01e4e0ca08d5efe
[ "MIT" ]
14
2015-04-30T08:50:53.000Z
2021-08-23T13:58:12.000Z
stiefo/render.py
effjot/stiefogen
da149f22912fa3b31fc2660ff01e4e0ca08d5efe
[ "MIT" ]
4
2020-08-28T20:45:47.000Z
2021-04-06T21:56:25.000Z
stiefo/render.py
effjot/stiefogen
da149f22912fa3b31fc2660ff01e4e0ca08d5efe
[ "MIT" ]
5
2015-05-01T06:40:40.000Z
2019-12-12T22:17:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import math from PyQt5 import QtCore, QtGui, QtWidgets, QtPrintSupport from PyQt5.QtCore import Qt import stiefo stiefoHeightPrint = 30 stiefoHeightScreen = 75 zeichneHilfslinien = True text_y_offset = 0.1 * stiefoHeightPrint def render_p...
36.764851
92
0.465832
8e983966046cfe272e5b8c57156979a048b2e7fd
6,836
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/cpu.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/cpu.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/cpu.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
"""CPU functionality.""" import sys class CPU: """Main CPU class.""" def __init__(self): """Construct a new CPU.""" self.register = [0] * 8 self.ram = [0] * 256 self.register[7] = len(self.ram) - 1 self.program_counter = 0 self.add = int(0b10100000) se...
32.245283
78
0.565243
d99430bdc5c3692093d460783d3740ee647f3cd2
1,231
py
Python
tests/unit/providers/ldap/ldap_delta_sync_unit_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/unit/providers/ldap/ldap_delta_sync_unit_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/unit/providers/ldap/ldap_delta_sync_unit_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
37.30303
79
0.69537
d67dba4ccc84885a5ed1f5f30650727907b16581
103
py
Python
weidianying/app/admin/__init__.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
1
2019-07-01T07:27:45.000Z
2019-07-01T07:27:45.000Z
weidianying/app/admin/__init__.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
null
null
null
weidianying/app/admin/__init__.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
null
null
null
# coding:utf-8 from flask import Blueprint admin = Blueprint("admin",__name__) import app.admin.views
17.166667
35
0.776699
ba405e67c473fa8845068ef68ba3ba4256ca638f
318
py
Python
5_kombinationen/loopRandom/StarrySky.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_kombinationen/loopRandom/StarrySky.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_kombinationen/loopRandom/StarrySky.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Random Starry Sky - Was passiert, wenn du Zeile 13 zu oval(dia, dia, dia, dia) änderst? - Warum braucht es für die x- und y-Position seperate Zufallswerte? """ newPage(300, 300) fill(0) rect(0, 0, 300, 300) for i in range (200): dia = random() * 3 fill(random()) oval(dia, dia, dia, dia)
17.666667
70
0.619497
06502255209dccbad57ba302f55f9c6a99513319
10,385
py
Python
ImageCaption/lib/get_dataset_xrh.py
Xinrihui/DeepLearningApp
8d86b88251ee8d37358c642b1ec4a341767bfd17
[ "Apache-2.0" ]
2
2021-08-25T01:13:29.000Z
2021-10-10T14:49:59.000Z
ImageCaption/lib/get_dataset_xrh.py
Xinrihui/DeepLearningApp
8d86b88251ee8d37358c642b1ec4a341767bfd17
[ "Apache-2.0" ]
null
null
null
ImageCaption/lib/get_dataset_xrh.py
Xinrihui/DeepLearningApp
8d86b88251ee8d37358c642b1ec4a341767bfd17
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- from lib.build_dataset_xrh import * from tensorflow.keras.utils import Sequence from tensorflow.keras.utils import to_categorical class BatchDataGenSequence(Sequence): """ 使用 Sequence 的数据批量生成器 与 class BatchDataGenerator 不同的是: 1.Sequence 是进行多进程处理的更安全的方法, ...
28.927577
131
0.621377
cca82319bd6487529e4b52fc548ef689c20a36cb
19,128
py
Python
RDS/circle2_use_cases/port/src/lib/TokenService.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/port/src/lib/TokenService.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/port/src/lib/TokenService.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import requests import os import json from flask import jsonify from RDS import BaseService, LoginService, OAuth2Service, User, LoginToken, OAuth2Token, Token, Util from lib.Exceptions.ServiceException import * import jwt import datetime import secrets import logging import os from typing import Union logger = logging...
31.357377
122
0.582967
aece21059070a373404f6d11718cf2d76c951ba0
48,042
py
Python
Packs/IronDefense/Integrations/IronDefense/IronDefense.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/IronDefense/Integrations/IronDefense/IronDefense.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/IronDefense/Integrations/IronDefense/IronDefense.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import functools from typing import List, Dict import demistomock as demisto from http.client import HTTPException from CommonServerPython import * # noqa: E402 lgtm [py/polluting-import] # Disable insecure warnings requests.packages.urllib3.disable_warnings() class XsoarLogger: """Wrapper class to add a prefix...
49.022449
126
0.583927
9ddd648dfbaa2dfae528eb0b4b699b72e184193d
1,804
py
Python
zufallsWeb.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
zufallsWeb.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
zufallsWeb.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
def rndIP(): min = 1 max = 254 seperator = '.' return str(str(int(random.uniform(min,max)))+seperator+str(int(random.uniform(min,max)))+seperator+str(int(random.uniform(min,max)))+seperator+str(int(random.uniform(min,max)))) def portscan(targetIp): s = socket.socket(socket.AF_INET, socket.SOCK_STREA...
27.753846
181
0.603104
ee49edd4349566152fe21f3373e8b18ff4f4a572
860
py
Python
RABBIT.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
RABBIT.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
RABBIT.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class Solution: static_count=0 # @param {string} s # @param {string} t # @return {integer} def numDistinct(self, s, t): self.re_search(s,t,0) print self.static_count return self.static_count def re_search(self,S,T,count): if len(T)==0: #print 'we finished one' self.static_co...
20.97561
124
0.698837
ee76a42d8faeecec37eae97a5d0c5da8bef3b831
1,022
py
Python
Packs/RiskSense/Scripts/RiskSenseDisplayCVEChartScript/RiskSenseDisplayCVEChartScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/RiskSense/Scripts/RiskSenseDisplayCVEChartScript/RiskSenseDisplayCVEChartScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/RiskSense/Scripts/RiskSenseDisplayCVEChartScript/RiskSenseDisplayCVEChartScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import demistomock as demisto CVE_CONTEXT = [ { "Cve": "CVE-0000-0000", "CVSS": 7.5, "VRR": 5.67, "ThreatCount": 1, "Trending": "false", "VulnLastTrendingOn": "2018-05-01", "Description": "remote code execution", "Threats": [{ ...
26.205128
68
0.523483
a001d00bf3de7ae1edefe4191dfff9f1cc39c946
496
py
Python
basics/weird_num.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/weird_num.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/weird_num.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': N = int(input()) if N % 2 == 1: print("Weird") elif N > 20: print("Not Weird") elif N > 6: print("Weird") else: print("Not Weird") """ If is odd, print Weird If...
17.714286
65
0.594758