blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
4857c14bb8a29b0199091b438175fa4be610f116
0cc6e38bc7572951cef5484314595334f4d53447
/conftest.py
6fd5961045b1dc9ac59f4dc89187b41fb8d71766
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jrast/borg
6e5ccbe3a0816e49b8ff33870fb900963a2bf2b0
27a41f5c1f8a8187c9ae129d1ec1de73e6a8712d
refs/heads/master
2021-06-29T16:57:08.054134
2020-04-21T09:45:40
2020-04-21T09:45:40
196,276,997
2
1
NOASSERTION
2019-08-08T22:15:07
2019-07-10T21:25:59
C
UTF-8
Python
false
false
2,742
py
conftest.py
import os import pytest # IMPORTANT keep this above all other borg imports to avoid inconsistent values # for `from borg.constants import PBKDF2_ITERATIONS` (or star import) usages before # this is executed from borg import constants # no fixture-based monkey-patching since star-imports are used for the constants mod...
7c0c2b22ebbf3d9c5606f93fb74efcf4db5bcc57
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GL/OES/read_format.py
7d95ed3a3c6ea3bc124f196dffeeddc7ad176e79
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
read_format.py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p from OpenGL.constant import Constant as _C # Code generation uses this # End users want this... from OpenGL.raw.GL import _errors _EXTENSION_NAME = 'GL_OES_read_format' def _f(function): return _p.createFunction(function, ...
ec597c80dfbf31276d0d2814d093ecbd2da43c36
389cfcf3f89c45b421e978a53b16ec1ede40b180
/datascience/utils/quartiles.py
c74998a20add17464ab85f024ee62ae5b88d7f76
[]
no_license
al3xandr3/datascience
384b4d194c4f36ef0e17d5da3a56dd50220dab6f
075b58bf456adabdb571715fa8ef7e1bdd328ded
refs/heads/master
2020-05-29T08:40:45.225892
2016-10-14T16:25:57
2016-10-14T16:25:57
69,883,921
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
quartiles.py
# -*- coding: utf-8 -*- # def boxplot_values (data_df): x = data_df return [ x.min().values[0] ,x.quantile(.25).values[0] ,x.median().values[0] ,x.quantile(.75).values[0] ,x.max().values[0] ] #print boxplot_values([377,571,248,573,341,314,1007,398,158,192,40...
8a9f0d06595cc3a554d6bf36a0055bd844398a19
e572587247458ff2071f9b803001b94c9b55604b
/sepulsa/response.py
dc8a76edc11f4439b6ab461b7b3dcde8a0496cb2
[ "MIT" ]
permissive
vousmeevoyez/sepulsa
afa22f0fa735c740b38ad9ecac16a9aad78ab9ce
eebc1cd09471f03eb5ff1e3f3389f43e508f1ca6
refs/heads/master
2022-12-22T12:18:56.912945
2020-04-08T10:12:50
2020-04-08T10:12:50
254,046,552
4
0
MIT
2021-06-02T01:24:21
2020-04-08T09:42:44
Python
UTF-8
Python
false
false
4,061
py
response.py
""" Sepulsa Response __________________ """ from urllib.parse import urlparse, parse_qs from sepulsa.core.response import HTTPResponse from sepulsa.core.exceptions import ( ResponseError, DuplicateRequestError, InvalidResponseError, StatusCodeError, ) class SepulsaResponse(HTTPResponse): ...
767f978b081cb7173a0d63d315679ac4159875a2
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/AdvancedPython_OOP_with_Real_Words_Programs/App-8-Instant-Dictionary-Webapp/src/examples/main.py
01d40e3af30c9f5179a418e973aac1b469d61822
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,386
py
main.py
_____ justpy __ jp @jp.SetRoute("/home") ___ home wp jp.QuasarPage(tailwindTrue) div jp.Div(awp, classes"bg-gray-200 h-screen") div1 jp.Div(adiv, classes"grid grid-cols-3 gap-4 p-4") in_1 jp.Input(adiv1, placeholder"Enter first value", classes"form-input") in_2 jp.Input(adiv1, pl...
839ca931c53f0cd791fd52e9842cb2631f8a4d9a
4f6fdd0effc474226b75ccc5d247509121b90fdf
/patterns1/hollow pyramid (Equilateral triangle) star pattern.py
7ba5a0d2c3db9e0c9a605e9b69a6d99cf2b2648f
[]
no_license
tuhiniris/Python-ShortCodes-Applications
1580785a6922c70df3b7375cb81e98f4a684d86f
f3fe7ac1c11a631fcd05b9d19b25b1a841d94550
refs/heads/main
2023-04-07T21:42:21.094545
2021-04-21T07:47:46
2021-04-21T07:47:46
358,605,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
hollow pyramid (Equilateral triangle) star pattern.py
''' Pattern Hollow pyramid star pattern Enter number of number_rows: 5 * * * * * * * ********* ''' print('Hollow pyramid star pattern: ') #the naming is done in a simplified way so as to avoid any confusion. ''' number of rows: number_rows i=row j=column ''' number_rows=int(input('Ente...
dc05ac9e3f578e79d5d47c86f91b56723abe5459
bd7ce4120e906e6232793caee507877ae9bf4c66
/results/cc-all-12-07-2015/plot.py
915b880d8aa72d6fe04484019d0c3a12064c32dd
[]
no_license
lchsk/msc
2b3fe5719238bd18d5b051ba18c6ce74ffa60779
57926cedfee30f3ecedce651b89f1f5044245f64
refs/heads/master
2016-09-05T20:59:23.808637
2015-07-13T08:01:08
2015-07-13T08:01:08
37,783,913
0
0
null
null
null
null
UTF-8
Python
false
false
5,338
py
plot.py
import pandas as pd import matplotlib.pyplot as pl import matplotlib.patches as mpatches import numpy as np pl.xlabel('File size') pl.ylabel('Time [ms]') pl.ylim(0, 1000) pl.grid(True) # i5, xeon, phi, ver2, simple, ver2_simple, load EXPERIMENT = 'load' if EXPERIMENT == 'i5': d = pd.read_csv("i5.txt") pl.t...
3b3849125a01d7e3d995049016df20d0438f26e9
24d6f09ddcb4e05915dad7ba78edc60c5554ab78
/irxah-inbound-services-new/common/irxah/mix.py
a758e9652b5774efcd29af9458f03193e3429a19
[]
no_license
RahulAdepu92/myLearning
828a529d3ab845505d63322087f0117a99d93612
234d81fb0a0359ec66f850531685f96611abfbd1
refs/heads/master
2023-09-01T19:52:06.379385
2023-08-24T14:56:20
2023-08-24T14:56:20
271,236,496
0
0
null
2023-08-24T10:01:38
2020-06-10T09:35:14
Python
UTF-8
Python
false
false
22,312
py
mix.py
import logging.config import os from datetime import datetime from typing import Optional from .constants import TABLE_FILE_VALIDATION_RESULT, TABLE_ACCUM_DETAIL_DW, SCHEMA_DW, TABLE_JOB, SUCCESS from .database.dbi import AhubDb from .glue import get_glue_logger from .model import Job, ClientFile from .notifications i...
fceb03c26d432d1deac5177118374d9237f26700
2b3c73301bde3306a050b0d690fa8a9f64e5d64f
/read_raw_data.py
3e6ac73241a772026707fe8bc23b97a8bde8eaa2
[]
no_license
fintechdummy/SA-CCR
ba0c8fee15ca2c6727d6a1baec6885bbb119fdfd
bea9b48f97a711d1813fc189d2492ac819ee57e8
refs/heads/master
2020-04-30T08:57:29.845563
2019-03-20T17:06:07
2019-03-20T17:06:07
176,732,404
1
0
null
null
null
null
UTF-8
Python
false
false
225
py
read_raw_data.py
import json # load the json file from local with open(f'/Users/.../Example_Data.json', encoding='utf-8-sig') as json_file: json_data = json.load(json_file) # store the data in a variable netting_set = json_data['data']
be0f0dc39786181b63c0f7eaa242e00d3c9f575a
f926b3e6ce2716d6360013c2e8cecb2b1fcc6b16
/tests/unit/modifiers/test_base.py
c8a9c20b4f3d6f0a0dc7af6b078895bd88532f2c
[ "Apache-2.0" ]
permissive
twindb/backup
feb330b49c2312edf04fed5b74081f423f457f06
127f44600388af00ff2cc0f3c54baa0f2d53ce1d
refs/heads/master
2023-09-04T20:28:46.946503
2023-08-31T16:06:18
2023-08-31T16:06:18
59,252,462
75
53
NOASSERTION
2023-08-31T16:06:21
2016-05-20T00:28:49
Python
UTF-8
Python
false
false
416
py
test_base.py
from twindb_backup.modifiers.base import Modifier def test_modifier(tmpdir): input_stream = tmpdir.join("in.txt") f_in = open(str(input_stream), "w+") m = Modifier(f_in) assert m.input == f_in def test_modifier_get_stream(input_file): with open(str(input_file), "r") as f: m = Modifier(f)...
04268859fd49139b751c53600e23a6aa6c38826c
e75d3d8418e4de1f36f42148d20e632b075be5f5
/pymove/tests/test_semantic.py
c8425fd8d2c8152de915ae75a0289801c42e1ea8
[ "MIT", "Python-2.0" ]
permissive
InsightLab/PyMove
6daff6a28964db4a943776a9c878fe29d15945f3
15cccf0697117d3dae6be83c1eb8e8aa12eaba5e
refs/heads/master
2022-11-06T09:17:48.988170
2022-10-11T00:45:11
2022-10-11T00:45:11
148,082,279
85
26
MIT
2022-10-11T00:45:12
2018-09-10T01:27:03
Jupyter Notebook
UTF-8
Python
false
false
21,710
py
test_semantic.py
from numpy import nan from pandas import DataFrame, Timestamp from pandas.testing import assert_frame_equal from pymove import MoveDataFrame, semantic from pymove.utils.constants import ( BLOCK, DATETIME, DIST_PREV_TO_NEXT, DIST_TO_NEXT, DIST_TO_PREV, LATITUDE, LONGITUDE, SEGMENT_STOP,...
7224295e608c54c9a5b015db7d22ba16f1b0fe8a
1111d46e370b01a77bbfb1d65b23f59790ba7285
/robot-name/robot_name.py
9ff6d116336e4a739576a1266efb6624d0ae4a21
[]
no_license
dangrenell/exercism
c2cd53f541e9933e8062d73d92b0db790c8e9cea
71dd3ae24612e426a2bf47a6eb07e781f158ccf1
refs/heads/master
2023-01-30T22:43:10.410275
2020-12-14T12:47:54
2020-12-14T12:47:54
306,200,169
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
robot_name.py
import random import string class Robot: def __init__(self): self.name = self.namer() def namer(self): name = "" for _ in range(2): name += random.choice(string.ascii_uppercase) for _ in range(3): name += str(random.randint(0, 9)) self.name = na...
2b350ca954ccb26ce445346a39f63d73ef07ab6b
713847f81bcc9e60f46c663bd2ee648f8ab3d160
/softm_ischnittstellen
2735ac5d4af0d7f7c9febfb11194dc7c9c058ea7
[ "BSD-2-Clause" ]
permissive
mdornseif/hd-munin-plugins
2b3c1b8e52e732292a052d37e4f644e2d36a64f7
b1076f4baf426fd4ceb105b3b456906ae8769eb4
refs/heads/master
2022-01-30T02:36:47.182506
2022-01-18T21:26:10
2022-01-18T21:26:10
616,127
0
0
NOASSERTION
2021-12-17T18:06:49
2010-04-18T10:47:58
Python
UTF-8
Python
false
false
1,977
softm_ischnittstellen
#!/usr/local/bin/python """Munin Plugin fuer offene Vorgaenge in SoftM-Schnittstellen mit timestamp""" import os import sys import time import anydbm import datetime import simplejson as json import urllib import httplib max_time_in_schnittstelle = (24*60*60)+1 # == 24h db = anydbm.open('/tmp/munin_stapelschnittste...
e5a5166fd230fb5595deb17ef20009433b3993d1
65caa23f19fcb4879ae50a9dfde4e24079163bc1
/richMenu/deleteRichMenu.py
be55cf1ac85a6829ddaafd5fb7221a540e8bd873
[]
no_license
glenyu80119/testbot
2662cb4fa035bfcc91d76531a4edae0ff8bf61ef
fd9416df58e5236a28bd271a8b70e5cf745c1b3c
refs/heads/master
2022-12-11T19:40:32.642355
2019-09-04T00:55:29
2019-09-04T00:55:29
206,198,973
0
0
null
2022-12-08T06:07:08
2019-09-04T00:52:52
Python
UTF-8
Python
false
false
359
py
deleteRichMenu.py
import json from linebot import ( LineBotApi, WebhookHandler ) from createDBInstance import db from RichMenu import RichMenu with open('Config.json', 'r') as f: config_dict = json.load(f) # Channel access token line_bot_api = LineBotApi(config_dict['CHANNEL_ACCESS_TOKEN']) line_bot_api.delete_rich_menu('rich...
d0c6636f94438e647aa4175f147b7fde801b93dc
24759a8dd2f3bab1b15519dbfd3ff848561422d5
/apps/core/urls.py
dc8b5b50b77ed00b59aa29af57e1a3b18aebaf39
[]
no_license
YesseyMelis/portal
aa3aee082ed8d464baa105e2c70959644b25eac0
3c5e089e6dfdacbb3e7b12cdbd7715bf4c05dddf
refs/heads/master
2023-06-25T04:31:09.657702
2021-07-14T14:56:51
2021-07-14T14:56:51
385,977,516
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
urls.py
from django.urls import path from apps.core import views urlpatterns = [ path('student/', views.StudentListCreateView.as_view(), name='student-list-create'), path('student/<int:pk>', views.StudentUpdateView.as_view(), name='student-update'), ] app_name = 'core'
ea5faaf932a31b131d2658bce6cccda2bb4362d1
6f57a4962fce266b08ae8096edf671ffe730267a
/ziwm/model/classifier/hpelmnn.py
b20c48f731ae5ae2251e543c1b773e45278d4e7f
[]
no_license
zajg/ziwm
8e070784d6a0c10ef8bc328041e2f89acc5ee346
1ac9c0b063747f9f0379d60f7934ab4607a0e994
refs/heads/master
2022-09-10T06:11:23.305836
2016-06-02T13:37:45
2016-06-02T13:37:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
hpelmnn.py
from ziwm.model.classifier.base import Classifier from hpelm import ELM import numpy as np from sklearn.preprocessing.data import OneHotEncoder import sys import os class HPELMNN(Classifier): def __init__(self): self.__hpelm = None @staticmethod def name(): return "hpelmnn" ...
cfa7c48c08696e6fde476e675d9f0201308b0d00
2f72d57fd2250f654907285d0c20dc937684b81a
/Dockerized_Entry_Production/Entry_Management_App/Entry/models.py
2a1cec2716053afe63ba10fcae7d79735d374b72
[]
no_license
purvaudai/Innovaccer-SDE-Intern-Challenge
48ae9b960ffb22ffdc90a4e7cb687358c0f3975f
25ced1c36c57ca6e04b1dd5776b4e620260dc4e4
refs/heads/master
2022-12-18T09:14:11.602792
2019-11-28T20:26:04
2019-11-28T20:26:04
224,488,650
0
1
null
2022-12-08T07:27:36
2019-11-27T18:00:02
Python
UTF-8
Python
false
false
1,490
py
models.py
from django.db import models from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from phonenumber_field.modelfields import PhoneNumberField from django.db.models.signals import post_save from django.dispatch import receiv...
4e9089a80f343ec3776eb753fc0b9ca90aa7496a
d3cb26252996e270b132ca161bbd39fc961da993
/3.py
fe20c505e0d0ad23de41fed3145602110a0b560b
[]
no_license
sukhvir786/Python-Day-1
1b5f84b765a5e90e11569f6b606433ba9e3723a3
aaaa7812746f8f6276b514aba345114d1dc48ac4
refs/heads/master
2022-11-13T10:34:31.721089
2020-07-07T06:30:42
2020-07-07T06:30:42
277,735,596
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
3.py
""" entry from user side """ x = int (input("Enter any integer value :")) print("Entered value is:",x) y = 2.5 z = x+y print(z) print(type(z)) # int + float = float a = 3 + 5j b = x + a print(b) print(type(b)) d = True e = False print(d,e) # int + bool = int # float + bool = float print(x+d) pri...
3fa049301f58d81bba581edbd3bbef0ce7c47b01
71aa0b6feb5afe99e3e73d63c44b770920f9ad6d
/script/m0_test.py
a09aef166c91e7d046c9799999ee663e99cbf71b
[]
no_license
jianglangcaisheng/python_2018-07
2617c907c5e4ae7289041b94c4fcf7cd5fe127f0
90602f2377f3b86901395eb277b0ac2e790c824f
refs/heads/master
2020-04-10T18:38:12.328888
2018-12-23T03:03:30
2018-12-23T03:03:30
161,206,863
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
m0_test.py
import numpy as np if 0: # result = 1 print((1 == 1, 0 == 1) and 1) if 1: trainTimes_poseInShape_array = [1800, 1500, 1200, 1200, 1200, 1200] sum = 0 for i in range(1, trainTimes_poseInShape_array.__len__()): sum = sum + trainTimes_poseInShape_array[i] print("sum: %d" % sum)
ec5b7d52a022fdb217c9f1d27cfbaa5ac9afa737
57af916fe82dd297dcb61b326255f45ee9cf1729
/ssh_client/third_party/naclsdk/build
f6b0087d044ea7f2f9eff0ea15f3b63c964c1ed5
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
ish-app/libapps
b0d9b8362f1510dd5dc9e5c0671291e8b099406b
b8cacae35e5b11d64bb736a053921c16ca7faf9e
refs/heads/master
2022-08-01T02:37:31.210167
2021-09-07T05:46:38
2021-09-07T05:46:38
205,956,672
30
7
BSD-3-Clause
2022-07-20T04:06:40
2019-09-03T00:27:40
JavaScript
UTF-8
Python
false
false
1,269
build
#!/usr/bin/env python3 # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Build naclsdk package.""" import os import sys FILESDIR = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.pa...
292d29c50a5aabb2abe2a021e04b251305bcba60
e6ded73bec58e4805ec9eb6b34e5d5bac96a66cf
/tests/test_api.py
21424f20adcf082764b555ca388047c6781bde26
[]
no_license
sebastianhe-jpg/ze-delivery-backend
ecbf70531414897cbe320119e57d338f46170a66
95c9791c1dcce220fa6895022be2cf141cdcb2f0
refs/heads/master
2021-07-15T22:18:06.457179
2020-03-17T18:42:41
2020-03-17T18:42:41
247,149,173
0
1
null
2021-05-06T19:58:02
2020-03-13T19:40:07
Python
UTF-8
Python
false
false
620
py
test_api.py
# -*- coding: utf-8 -*- # !/usr/bin/env python3 """ unit test to check if flask is running properly on server """ import unittest import app from .utils import print_test_time_elapsed class TestApi(unittest.TestCase): """ api class for unit test """ def setUp(self): app.APP.testing = True ...
e5c5eea4348b17cb239108cb0adf52e566ef5c6d
1fde5fd53dc8cef3cd8d684fa9da9e5f8607fafa
/rest.py
52d32ef4d08aec5618d8a41234e63bc36f68de15
[]
no_license
autocorrectoff/Colens3DevTask
001acb604afa30fd5429869116b1d9dfdaf67d3f
a81d55214cac318243a4979d5efa9300093ec543
refs/heads/main
2023-01-05T05:02:38.144693
2020-11-01T17:26:10
2020-11-01T17:26:10
307,653,015
0
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
rest.py
from flask import Flask from flask import request from services.aws_s3_service import S3_Client from services.redis_service import Redis_Client import json app = Flask(__name__) @app.route("/load", methods = ['POST']) def load(): req_body = request.json s3_client = get_s3_client(req_body["bucket"]) result...
a3f0d410ce6f57108134256d8d7cca72de80e244
68246a042e97371c8d5381e2dd6c99c2420909c0
/core/data/timecode.py
bf44a38df102b72b9e796bf586058044f198c227
[]
no_license
CoDen256/smartlemmatize-rest
34ea3bea53107236d6b12e1ce7f99b7cbeb59403
cec8746a0274e7b5533896e1dbe566f8d3881cd7
refs/heads/master
2023-06-08T10:37:50.908771
2020-11-01T18:30:59
2020-11-01T18:30:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
timecode.py
class LemmatizedTimeCode: def __init__(self, lemmas, start, end): self.lemmas = lemmas # Lemmas of all the words in this period self.start = start # Start of the timecode, to which this lemmas refer self.end = end # End of the timecode, to which this lemmas refer def __str__(self): ...
046d358704a81d9c16702b1a86467ea2c801e4d9
165ae3c03707935a7080da4a968389dd6de278ae
/marketingDepartment.py
36472302a444a80685b9193d271e838bda802705
[]
no_license
calebwatt15/Marketing-Department
83be00d7b48f971a186ee8fa25d24f09d75ce95f
71615f6bea6d6a28464a6aa6fe7b938a5bb3162a
refs/heads/master
2020-12-25T16:50:13.381931
2017-09-28T17:19:25
2017-09-28T17:19:25
11,970,053
1
1
null
2016-08-30T12:00:26
2013-08-08T06:59:25
Python
UTF-8
Python
false
false
1,790
py
marketingDepartment.py
#!/usr/bin/python #Developed by Caleb Watt and Ben Donnelly for USCC Western Regional 2013 #CYBER THREAT-HUNT!! import random import os import sys buzzwords = ['cyber', 'cloud', 'threat', 'analytics', 'infrastructure', 'software-as-a-service', 'virtualization', 'distributed', 'denial', 'critical', 'mission', 'mobile',...
98c6cfcfe872db112135c8cf99fed2cf1848f154
808df00644ee2e136a5f29a86cfde7dfdf49de5d
/pages/urls.py
cbbad5c3b62c10593abe0404c3253aa6da1377b0
[]
no_license
connelevalsam/ghbc.ng
0de2f251d4d7c3221022ac9a63d48f3adbb7a9de
687814f982e613a79bd3124cbd919ed549612773
refs/heads/master
2021-03-05T01:59:33.185116
2020-03-29T09:47:19
2020-03-29T09:47:19
246,086,480
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.home_view, name='home'), path('media/', views.media_view, name='media'), path('give/', views.give_view, name='give'), path('kids/', views.kids_view, name='kids'), path('store/', views.store_view, name='store'), path...
92ccbb9df6c9772e74e2b599b330da231987eeec
99df9c4b94b78a9df708534dda30ac4bd2e58d51
/main.py
80711e1201ce7a6e7a5f6002b2cc037cdae70816
[ "MIT" ]
permissive
polzbit/imdb_scraper
5be623e416bf637695ff015b7bcbb4a3ce425210
78e8b03e7b141604cc8ce410d9ff615ef8451d03
refs/heads/main
2023-05-11T15:05:41.789418
2021-06-02T10:28:41
2021-06-02T10:28:41
373,126,306
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
main.py
from src.imdb_bot import ImdbBot if __name__ == "__main__": i = ImdbBot() print(i.new_releases) print(i.charts)
33996e0089d7f1821b4e32971f247c6bd7551932
b1229aff02d346d11a149b6fda3fa09e160eea56
/OldFiles/Classes.py
65b253713388053b29d0102af6965105e71589bc
[]
no_license
sceptre12/Learning-Python
33733db50cd532043b1203629e630660ec7064f3
a047d8de4bd7b176b0cc86ffdaba4ded34fe8a98
refs/heads/master
2021-06-11T14:21:33.364649
2017-02-14T04:42:48
2017-02-14T04:42:48
79,885,363
0
0
null
null
null
null
UTF-8
Python
false
false
7,823
py
Classes.py
#!/usr/bin/python import urllib2; import json; from bs4 import BeautifulSoup; class ArrayFunctions: @staticmethod def map(func,list): newList = []; for item in list: newList.append(func(item)); return newList; @staticmethod def filter(func,list): newList = []; ...
86bbbf3622bd2fe0dbead50ec29a46a81582dba8
b98d80092e59415a7038cb15ea9052032b5ba2c5
/fetch-server/create_demo_db.py
8878e8fc2dac62b6e2d994bf0f5c09e499b22955
[]
no_license
UCSD-CSE-210/Fetch
6bf4432e08b818e742ffcda5e1bef4aae6cf5f85
ab789bd46c40869a18476887a6fc411a109c7505
refs/heads/master
2021-08-29T12:24:14.336270
2017-12-14T00:31:11
2017-12-14T00:31:11
108,889,593
0
0
null
2017-12-08T03:04:33
2017-10-30T18:10:32
Python
UTF-8
Python
false
false
10,129
py
create_demo_db.py
import os, errno, sys import os.path as op import json import utils from fetch import app, user_datastore, wildlife_images, route_images from models.user import Role from models.route import Route from models.surface import Surface from models.wildlife import WildlifeType from models.image import RouteImag...
d9c16d1514b5be8e442f3f747ddbd65d058cfc50
9121ae60662521c3c7ef50e3762e7841adaa124d
/challenges/hash_tables/tree_intersection/test_tree_intersection.py
e0f8aa551800ea7da76060b2876fee019bffebe3
[]
no_license
benbenbuhben/python-data-structures-and-algorithms
4aa37229795398879d99c1b69b5e65200073ebaa
d05efc4af6b3fd51230c761f31e46cb5e32c2667
refs/heads/master
2020-03-26T09:22:29.003579
2018-10-02T05:43:32
2018-10-02T05:43:32
144,746,955
0
0
null
2018-10-02T05:43:33
2018-08-14T16:39:49
Python
UTF-8
Python
false
false
2,066
py
test_tree_intersection.py
import pytest from data_structures.hash_table.hash_table import HashTable from data_structures.trees.binary_tree.binary_tree import BinaryTree from data_structures.trees.binary_tree.node import Node from challenges.hash_tables.tree_intersection.tree_intersection import tree_intersection @pytest.fixture def empty_tree_...
968875424439fb868801f828300660a09e3005dd
5fcfd9c6600d0485c82d0af30737d4055c75d2b3
/01_FittingProbDistribs_Python/normal_inv_gamma.py
7bb5a4bcd4d410ce56a7f1fc075e8b9d649c7a96
[]
no_license
magiii96/Machine-Vision
f92b1f8a9d4b7f8d7776dcdc6e6a9bd590635a0c
ffa867b6d845aa0d82500e50bcb422a7e08011a5
refs/heads/master
2022-12-01T00:31:12.653453
2020-08-02T19:20:28
2020-08-02T19:20:28
284,284,209
0
2
null
null
null
null
UTF-8
Python
false
false
770
py
normal_inv_gamma.py
import numpy as np from scipy.special import gamma as gamma_function def normal_inv_gamma(alpha, beta, delta, gamma, mu, sigma): """Return the probability density function for the normal inverse gamma density at (mu, sigma) Args: alpha: shape of variance beta: scale of variance ...
1186d9a1d5a052e9983e52d1c226ceaf0cf2d884
b432fd53ae28249e4d81669b0f733513ce2f118b
/csv2json.py
40c3400eb786fdcd5f7e0806e3a5fa3fc164dd3e
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
alexander-winkler/nlatepic
b2e7cddbdcb1b671cf41341dc0d6fc26b162313e
50bf6663112ff31e72f3acc96b28d8f56511eeca
refs/heads/main
2023-08-16T10:17:27.332909
2023-08-12T11:37:31
2023-08-12T11:37:31
324,364,381
0
0
CC0-1.0
2022-01-03T10:10:36
2020-12-25T13:07:44
Jupyter Notebook
UTF-8
Python
false
false
4,370
py
csv2json.py
import csv import json from operator import itemgetter import operator from collections import defaultdict import requests csv_file = "works.csv" json_file = "works.json" data = [] def getWdLabel(WD): try: resp = requests.get(f"https://www.wikidata.org/wiki/Special:EntityData/{WD}.json").json() ...
893b6618df5172c67092f0945f0ae4716b7595bb
dc19f4cb92b1c7cc6f9e49aa103ada02496afe99
/CVP_API/Snapshot_Utils/getSnapshots_Resource_API/cloudvision-python/examples/resources/inventory/lookup_device.py
38d92ddddef23ff7e38963f0edc992e59e724410
[ "Apache-2.0" ]
permissive
Hugh-Adams/Example_Scripts
683c7d49da782693037e9b615d9aa88518b7ce40
d93b5f66a00b1e3710257d607d62f9d43736304e
refs/heads/main
2023-04-23T02:23:22.738986
2023-03-31T18:30:06
2023-03-31T18:30:06
347,106,772
4
1
BSD-3-Clause
2022-06-21T18:57:11
2021-03-12T15:11:46
Python
UTF-8
Python
false
false
4,147
py
lookup_device.py
#!/usr/bin/env python # Copyright (c) 2020 Arista Networks, Inc. # Use of this source code is governed by the Apache License 2.0 # that can be found in the COPYING file. # Lookup a single device by serial or hostname. # You can optionally provide both arguments which will assert both the # serial and hostname match. ...
6e632c2e2bfdf363b4e0403026addcf4ea60adf9
4e828baa91cf0045529e90330d2a5ad4c8819fb8
/openmdao/python/ccblade/utils.py
c7e5146420a5c83300740283a71340852bb198dd
[ "MIT" ]
permissive
byuflowlab/CCBlade.jl
5a802c9470d55c16fcdb339a80e02155302a3f1b
50ba0be7f19290c7bfc38726b8ad21f565191263
refs/heads/master
2023-08-27T00:19:31.948765
2023-08-07T23:03:20
2023-08-07T23:03:20
59,145,440
45
29
NOASSERTION
2022-12-27T05:46:46
2016-05-18T19:33:38
Python
UTF-8
Python
false
false
1,500
py
utils.py
import numpy as np def get_rows_cols(ss_sizes, of_ss, wrt_ss): # Get the shape of the output variable (the "of") and the input variable # (the "wrt"). of_shape = [ss_sizes[s] for s in of_ss] wrt_shape = [ss_sizes[s] for s in wrt_ss] # Get the output subscript, which will start with the of_ss, th...
c7c38a5e62f4b5d160c46bc771774e3b3ddeb4de
759ccbf4e95e60046adbbb9bac2e1016674c7596
/sandbox/distance.py
7d6bea5371f20111d0fa17788661563bfd303d6e
[]
no_license
kkellner/rpi-fountain
0d0f804bc72e1bba9060f6365115f82889482352
01081aca48992b21869896be8c8c8c1424ad7c71
refs/heads/master
2023-07-21T20:17:07.136562
2023-07-05T01:10:12
2023-07-05T01:10:12
188,927,145
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
distance.py
#!/usr/bin/python3 import time import melopero_vl53l1x as mp import statistics sensor = mp.VL53L1X() #sensor = mp.VL53L1X(i2c_bus=1, i2c_address=0x29) #sensor.set_measurement_timing_budget(40) #sensor.set_intermeasurement_period(250) #sensor.set_intermeasurement_period(100) #sensor.setROI(6, 12, 9, 9) #sensor.sta...
eecda2de7a5fdbce9174b7dbf3e1c8e44f315ae2
f867888b181469eef07716df25bffed0115be038
/TeamLadder/leave.py
fce1d84e7063f3442be2f5bff9cd6778091fa54d
[]
no_license
WarlightProgramming/TeamLadder
bd73d426ea868972b97df43ded05bbbd18417737
2c201145e36e6e97eddea7df6a57e87dea77e5cc
refs/heads/master
2021-01-16T18:36:03.703039
2016-06-10T15:31:58
2016-06-10T15:31:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,488
py
leave.py
from main import BaseHandler, get_template from players import Player from api import wlnet from teams import Team import logging import lot class LeavePage(BaseHandler): def get(self, lotID): if 'authenticatedtoken' not in self.session: return self.redirect('http://' + wlnet + "/CLOT/Auth?p...
7bc5f8782e9fd73f3bf61a0de1412374e739e58a
dfcadafb9b7aee820a6eebba7b67dc31c0cabda5
/codeforces/122/A.py
5337f42b1ab502122db252062f7ed2579e812c17
[]
no_license
sainad2222/my_cp_codes
0b631872e96ff84897dd498caf4a6ed5ba4f9c15
4621a2b6d80ea5dc36401481bba58096192e0822
refs/heads/master
2023-02-15T20:42:03.524179
2021-01-12T09:14:00
2021-01-15T07:45:41
324,394,919
1
0
null
null
null
null
UTF-8
Python
false
false
332
py
A.py
def check(n): n=list(str(n)) for i in n: if(i=="4" or i=='7'): pass else: return False return True lis = [x for x in range(1001) if(check(x)==True)] n = int(input()) flag=0 for i in lis: if(n%i==0): flag=1 break if(flag): print("YES") else: ...
2b26fbafdde92c7ae7afbc488a0d04e505871f9e
c67c719a229bac258b954179c021a0ff59abdb78
/helpers.py
0deb37dd7f62be6057f384bbbea66cde802cd74c
[]
no_license
Kvis-Dev/gitlab-pipelines
95ae3cea0ae7d6bb33b491534c970ee4e50e2051
be376c7dc21fa773964152af62a7888233d78302
refs/heads/master
2023-05-25T18:40:31.422710
2020-06-04T11:45:38
2020-06-04T11:45:38
269,344,938
1
1
null
2023-05-22T23:29:40
2020-06-04T11:46:21
Python
UTF-8
Python
false
false
492
py
helpers.py
import subprocess from PyQt5.QtGui import QImage, QPainter, QPixmap from PyQt5.QtSvg import QSvgRenderer def send_message(title, message): subprocess.Popen(['notify-send', title, message]) return def load_svg_sized_pixmap(path, w=100, h=100): svg_renderer = QSvgRenderer(path) image = QImage(w, h, Q...
d85c4e57c2727b5d9f6c86672e51b783b74a1834
ee224d381ea283a70e69f783c0340001bc51c6cd
/app/providers/res_helper.py
475f0ad81d67831c47cb89909d9eaf51dcf73ddf
[]
no_license
Sujin1135/mango-coinone-trader
33868723f8b9db526dd3b6dc95209f49382f4df6
912f6493c9e09232fe028b1d3946db4818a6aadf
refs/heads/main
2023-08-11T19:15:48.674930
2021-09-26T11:33:25
2021-09-26T11:33:25
364,501,696
4
1
null
null
null
null
UTF-8
Python
false
false
270
py
res_helper.py
from fastapi import Response, status def response_success(data): return {"result": True, "data": data} def response_failure(response: Response, e: Exception): response.status_code = status.HTTP_404_NOT_FOUND return {"result": False, "error_msg": str(e)}
727ea6d4422b40a82728c56735c932ac9d754cd3
dca974e2b5e2ba8d079914e05631a8f7faad33fe
/website/widgets.py
9cf0b2b9265fd56762009175dfcda9b6d2b4247c
[]
no_license
maxmumford/propertymanagementtools
78a50f44f36959638a825e5d9262733f53a4dd28
92c71d0e668c0b183d296891e2abe250a83731f6
refs/heads/master
2016-09-09T20:49:56.345460
2015-09-17T15:25:42
2015-09-17T15:25:42
40,614,563
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
widgets.py
from django.utils.safestring import mark_safe from django.forms import TextInput from django.db import models class DatePickerWidget(TextInput): def render(self, name, value, attrs=None): """ Create a twitter bootstrap datepicker widget using the dateinput field as a base. This widget is u...
50b9b4cc2c33a441fc28ffc13c22ddce8cf18b70
e8092ad1aabf1ec8e9bd3b14c51e974855566f50
/Python-usecases/deep_learning_tensorflow/dist_auto_encoder/lstm_analysis.py
dd4d5ff3d7476baffa19a67478010e8700de4ac6
[]
no_license
minhitbk/data-science
35787712da2772cfddedf1fbe92ca0ab3af1660b
376ae93a67d3a59e870e7a4d20c9c05353539a9c
refs/heads/master
2021-01-19T05:07:34.326340
2017-01-10T04:47:51
2017-01-10T04:47:51
62,090,875
1
1
null
null
null
null
UTF-8
Python
false
false
7,851
py
lstm_analysis.py
''' Created on May 16, 2016 @author: minhtran ''' import tensorflow as tf from encoder import AutoEncoder from configuration import Config import numpy as np from itertools import islice import json from utils import load_object, save_object import os from tensorflow.python.ops import array_ops # Load configuration c...
59d04ebd9a45c6a179a2da1f88f728ba2af91c05
9023a864a175f070483a2d21e3de24b4506e303a
/pharmaserver/pharma_models/personas/admin.py
24f1bdfd996e4ef343fd9e4756aabfd1290a48f0
[]
no_license
ASW-20171/FullPharma
8c891b291264a9f5597a3166e5571f0257130322
02b3f95e9bac45bc100cb3db0bc29a162a7646fe
refs/heads/master
2021-01-23T08:10:40.670866
2017-06-28T16:57:21
2017-06-28T16:57:21
86,482,326
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
admin.py
from django.contrib import admin from pharma_models.personas.models import Persona admin.site.register(Persona)
ed5653455062cb3468c232cf0fa3f1d18793626a
aaa03fa00fd90ebfc61af66cbd2da57df32d5ac7
/python_logging/Demo_test.py
f16cbbe3b5df72b00561a17eb2e20ee068b6e517
[]
no_license
zcwfeng/python3_demo
2f97ddfc05db78e3cde8b20e8f8d7c87fc5590e2
c196e922341f17a9455e7d1d2ef1300a1946c1a7
refs/heads/master
2021-04-03T09:47:01.041273
2020-05-21T09:22:14
2020-05-21T09:22:14
124,347,015
3
0
null
null
null
null
UTF-8
Python
false
false
196
py
Demo_test.py
from python_logging.Demo_CustomLogger import CustomLogger CustomLogger.init_log() # CustomLogger.info() log_str = '%s/%s/%s\n' % ("demo1", "demo2", "demo3") CustomLogger.info('[main]', log_str)
a9f3d5f11a9f2781571029b54d54b41d9f1f83b3
b78f5ea741bab830434fa49ea6ce19745d63b0ef
/app/admin.py
16b31af0def9bfd12f52c164baeb21840d7e414e
[]
no_license
lu1sd4/convivetic
3e5eb2766835c6f14a5c55285864a025347d7c83
d9db06177e79c9b1b7b023de86a6d28b83198fa0
refs/heads/master
2020-07-04T00:28:00.639836
2018-07-27T03:38:05
2018-07-27T03:38:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
admin.py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from app.models import * # Register your models here. class ProfileInline(admin.StackedInline): model = UserProfile can_delete = False verbose_name_plural = 'profile' clas...
a9b2a4d4924dcdd6e146ea346e71bf42c0259846
5fbb6e4bbd147ecfa12acbf08b2d33dc854aae90
/gcm/bin/gua.py
226182b803bfb8ff90ba148f6fe33e27a3182553
[]
no_license
ericsandbling/greger
c995ac1aad9d69e44f82a46ff7f3fe3e4f14c628
eb590db8c2fdd922af0b9e58bedb37ed0f4b84bf
refs/heads/master
2021-07-05T21:38:40.588307
2019-04-19T22:19:31
2019-04-19T22:19:31
113,867,926
1
0
null
2018-04-29T18:57:37
2017-12-11T14:21:02
null
UTF-8
Python
false
false
13,118
py
gua.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Greger Update Agent (GUA) module for the Greger Client Module """ __author__ = "Eric Sandbling" __license__ = 'MIT' __status__ = 'Development' # System modules import os, sys import shutil import logging import subprocess from threading import Event from threading im...
9bd659bb3bf812e48710f625bb65a848d3a8d074
6ffab0c46ef32db561b8ac479f3c35cf8c454242
/scrabblerow.py
8c880f938c65f834a9e7596c3504f5b19d59b40c
[]
no_license
modernfaust/scrabbleSolver
5b2545a13adc270281fd17447ce01a8dff944301
5ccc951a0733869e6c2ce23b5f6c0ad742904442
refs/heads/master
2023-01-04T03:31:56.661213
2020-11-01T08:39:38
2020-11-01T08:39:38
302,741,314
1
0
null
null
null
null
UTF-8
Python
false
false
3,413
py
scrabblerow.py
#THIS BUILD WORKS, BUT IS VERY SLOW. CURRENTLY YIELDS A DECENT SCORE, NOT GREAT alphabet = "abcdefghijklmnopqrstuvwxyz" def author(): return "" def student_id(): return "" def fill_words(pattern,words,scoring_f,minlen,maxlen): foundWords = find_words(pattern,words,scoring_f,minlen,maxlen) f...
3212bb7df990ad7d075b8ca49a99e1072eab2a90
8a8483d6bb1e26f65d80c737c4c4d3d93ba8551d
/src/main/adapter/api_adapter.py
1584478b8128bca5cef2aaebeee3b07a1521482b
[]
no_license
verhagenkava/ebanx-take-home
46bc656de2bf7b5832dacc3a7a5677b6db61aa4b
3c22192d54e94f8a71ffcfe4d54fe2989eb44aba
refs/heads/master
2023-08-22T03:14:42.163512
2021-10-13T23:59:14
2021-10-13T23:59:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
api_adapter.py
from typing import Type from sqlalchemy.exc import IntegrityError from src.main.interface import RouteInterface as Route from src.presenters.helpers import HttpRequest, HttpResponse from src.presenters.errors import HttpErrors def flask_adapter(request: any, api_route: Type[Route]) -> any: """Adapter pattern for ...
3a65565af4c55fa5479e323a737c48f7f2fdb8ce
d61293633cd538d029f42ea81a39b984e8ed5a4e
/functions/open函数详解.py
625722772c1d068dd84289b9174e6a0462078880
[]
no_license
WangRongsheng/Python-functions
06d8440184eb4deb8cf9b91dd00c121a0eeabe22
8e91da5aceeb6ffcc1544993dfdfba12bf332b43
refs/heads/master
2021-05-18T11:58:39.987652
2020-03-30T07:49:25
2020-03-30T07:49:25
251,235,738
0
1
null
null
null
null
UTF-8
Python
false
false
4,664
py
open函数详解.py
''' python open() 函数用于打开一个文件,创建一个 file 对象,相关的方法才可以调用它进行读写。 更多文件操作可参考:Python 文件I/O。 函数语法 open(name[, mode[, buffering]]) 参数说明: name : 一个包含了你要访问的文件名称的字符串值。 mode : mode 决定了打开文件的模式:只读,写入,追加等。所有可取值见如下的完全列表。这个参数是非强制的,默认文件访问模式为只读(r)。 buffering : 如果 buffering 的值被设为 0,就不会有寄存。如果 buffering 的值取 1,访问文件时会寄存行。如果将 buffering 的值设为大于 1 的...
c0348fc5f51e6f7a191fea6d0e3cb84c60b03e22
dee62bd47b1d2ce7363bc8f4dc84ba24a25ff6c6
/3. Вычисления/Гипотенуза.py
3609b9329e033122ec97a048de2c475e86762b13
[]
no_license
hellion86/pythontutor-lessons
c0f5c8a1ee84bfd861f224ca10f9154e35ac82c6
2d6b721db2f8ddabb530f5898317118d77db5d47
refs/heads/master
2020-03-12T10:45:02.444438
2018-12-21T18:24:59
2018-12-21T18:24:59
130,580,143
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
Гипотенуза.py
''' Условие Дано два числа a и b. Выведите гипотенузу треугольника с заданными катетами. ''' import math a = int(input()) b = int(input()) print(math.sqrt(a * a + b * b))
8ac84aa29e9e4f3b85f1b3c27819feb5f41e8d8e
b002cf54d7df02c6b5c34fa5c1ea2a72b2e31686
/factorsDictionariesFunction.py
cc186dd9eb21fdc035098627a30850077ec581a6
[]
no_license
usma-eecs/mobile-app-privacy-score
ce0475194c4032995be0066d8ca6e17ef6135dcc
5859cc8adc4a8e70e5db9721be92a3b2e2a5a6f4
refs/heads/master
2020-09-29T20:40:58.857168
2020-02-23T21:31:29
2020-02-23T21:31:29
227,117,916
1
0
null
null
null
null
UTF-8
Python
false
false
3,594
py
factorsDictionariesFunction.py
import os import factorStatFileCreator dirName = 'NoPerms/' dirName2 = 'AllPerms/' freqAgentDic = dict() lenAgentDic = dict() contAgentDic = dict() def freqModAvgFunc(dirName): fullList = factorStatFileCreator.directoryFreq(dirName) UA = dirName.split("/")[1] avgList = [] sum = 0 i = 0 while ...
f733885eed5d1cbf6e49db0997655ad627c9d795
6bc95aa9105a63d5bcad5f2a2755c68472d8b249
/online_shop/templatetags/range.py
1412250852de8071b585343eb5b6474ffb4b3247
[]
no_license
REDxEYE/Temp_repo
7a38c9a7619e8b2cddd80cf5e6bddd075405c49c
6037ad319ba4457c23ffde787894f2d2bec928ac
refs/heads/master
2023-05-03T01:21:19.183794
2021-05-25T19:55:09
2021-05-25T19:55:09
349,076,267
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
range.py
from django import template register = template.Library() @register.filter(name='range') def filter_range(start, end=None): if end is None: return range(start) else: return range(start, end)
6707f782372737921644eb4d3417d23d69c36c0b
3d8fca8295325dfed02af40ec3bb6760c197d894
/MockDNP3_1.1/OneTimePad.py
67fc6d70f8cba878884d89d2415ea27612dcd4ea
[]
no_license
davisarthur/QKD
92532971d9673f23a7b2edcf6ccbba5fbf081357
b70483a6ab9d87d4cdfe9444e42582ea7f38a33a
refs/heads/master
2020-08-07T01:40:52.041461
2019-10-06T21:25:30
2019-10-06T21:25:30
213,245,990
4
0
null
null
null
null
UTF-8
Python
false
false
705
py
OneTimePad.py
### # Functions that perform XOR gate for one time pad # Davis Arthur, ORNL # 7/23/2019 ### from BinaryHexConversions import * # binStr1, binStr2 - binary strings to convert to integers and perform xor gate def xor(binStr1, binStr2): # make sure that the length of the two binary strings is the same # before ...
690286c4dec338848391af45216a4953c50f71eb
4ba9854649b4a8c0489393a2ecea82cdb5e4f0c7
/app.py
d82a226232a5b7e56d368222788ddd983ec29172
[]
no_license
Brunoazzireluto/relogio_basico
d276579ba409cdcf90f37a008168eaba86b02451
7fde535f299944cbb19a38be8dc7799b866713e7
refs/heads/master
2023-02-03T05:10:43.390090
2020-12-15T18:02:32
2020-12-15T18:02:32
321,742,508
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
app.py
from tkinter import * from tkinter.ttk import * from time import strftime root = Tk() #instanciando o objeto na raiz do tkinter root.title('Relógio') #dando um titúlo ao projeto def relogio(): horario = strftime('%H:%M:%S') # puxando o horario do sitema operacinal label.config(text=horario) #definindo o tex...
db1cb8c6e302cf747d56febe0a49391a396216ec
cb20ef5b4048457a2e6dca4a4cb45c53c9843744
/libs/agent-scripts/libvirt/limitnics.py
4c5a3ec88ab7e612dfaf694fc13a86fb321c69e4
[]
no_license
rudecs/openvcloud
5001b77e8d943427c1bed563f3dcc6b9467936e2
12ccce2a54034f5bf5842e000c2cc3d7e22836d8
refs/heads/master
2020-03-24T00:00:10.422677
2018-11-22T13:41:17
2018-11-22T13:41:17
142,267,808
2
1
null
2018-07-25T08:02:37
2018-07-25T08:02:36
null
UTF-8
Python
false
false
662
py
limitnics.py
from JumpScale import j descr = """ Limit nic speed """ category = "cloudbroker" organization = "greenitglobe" author = "deboeckj@codescalers.com" license = "bsd" version = "1.0" queue = "default" async = True def action(machineids, rate, burst): from CloudscalerLibcloud.utils.libvirtutil import LibvirtUtil ...
52b4e424513a4c25adb520c0f20b370cee90f66a
60dc657619b43d46ee7ea995dd193c23c7129e78
/purg/shuffle.py
fc99ada04b6e0ffca073469eac52a719cedabb35
[]
no_license
ZacharieMenetrier/tagc-predaction
82b3016e97c6099f42afc0d28ab849c36c8cd05d
25ed73c2872e1037eefd08bd35b31bae84815971
refs/heads/master
2021-09-15T09:05:56.867254
2018-05-29T13:41:55
2018-05-29T13:41:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,384
py
shuffle.py
import pandas import copy def parse_interactions(file_path): df = pandas.read_csv(file_path, sep="\t") interactions = set() for row in df.itertuples(): interactions.add(frozenset([row.protA, row.protB])) return interactions def shuffle(interactions): interactions = copy.copy(interactions) ...
0823ab07327dafedef24ee2192a0567202d84a11
fab32f6c00511abd164f20e06224bd5204e9fcfa
/src/opcv.py
abd4b96586d535c5b657f3574e0b441491eae319
[]
no_license
jackfan00/YOLOpython
aa585aa7fd55cfcf244983ae6f08f4f22a04ff51
a7fd5bae6d678fe17442a0767e0049a271f3f5c3
refs/heads/master
2021-01-13T15:45:16.243936
2017-01-08T15:26:56
2017-01-08T15:26:56
76,870,815
5
4
null
null
null
null
UTF-8
Python
false
false
559
py
opcv.py
import numpy as np import cv2 import time def showboximage(img, x0, y0, x1, y1, classprob, classimgpath, frameTime=100): classimg = cv2.imread(classimgpath) # draw bounding box cv2.rectangle(img, (x0, y0), (x1, y1), (255,255,255), 2) # draw classimg img[y0-classimg.shape[0]:y0, x0:x0+classimg.shape[1]] = classimg...
27c9f73de6c73538886db90018c30ff93f0c1b02
3755c050d8ee5e196936c79fcd49cd07802a8941
/madlibs.py
7282d71a38e5d5c6302b017d92b3ac15427bd2e1
[]
no_license
samuelcheung924/Lab-05-js-py
4c22d351f83c02592e5b05150925f259652d0988
bd1ebc8fc91126c13db5ccb02cd9a40b4749f94d
refs/heads/main
2022-12-25T20:39:45.957104
2020-10-08T21:00:34
2020-10-08T21:00:34
301,530,694
1
0
null
null
null
null
UTF-8
Python
false
false
123
py
madlibs.py
noun = "island" adjective = "molten" adverb = "hula" verb = "askin" print(noun) print(adjective) print(adverb) print(verb)
cc078e84b50db960c9e3f4c947a1d4b2da83397d
03c644ba2657d6115a431356ce31f592e177190e
/Project/Project/admins/utils.py
246d2b862510a49fa9ded666b6204beebfae7419
[]
no_license
bhargavapranjali/outpass_system
5c591e7daa84ec030820384c20d37fe0c8a88d49
3c4904400753095609106c63b83c7567161507d2
refs/heads/main
2023-03-13T15:20:22.248468
2021-03-16T10:05:27
2021-03-16T10:05:27
347,844,669
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
utils.py
import secrets import os import time import cv2 import numpy as np import json from Project import app from json import JSONEncoder from PIL import Image from flask import current_app def save_picture(form_picture, index): random_hex = secrets.token_hex(8) _, f_ext = os.path.splitext(form_picture.filename) ...
f42f082975f3cbdb575c1dac91a28a810225eada
0f2f7abb8134f639ec559e0971f20641004b73f6
/logreg_adagrad.py
6060c6bbb6117b5df4f83dae1709ee101d75739f
[]
no_license
sailalitha96/Gradient-Descents-Variants
0cf2ecb8f4b7b3ef12e9bce7c7cdec8628bbc066
81b13c44076ed27cabee78e39f8489259457d076
refs/heads/master
2020-04-26T13:51:22.135518
2019-03-11T14:29:34
2019-03-11T14:29:34
173,593,031
0
0
null
null
null
null
UTF-8
Python
false
false
5,463
py
logreg_adagrad.py
''' TEMPLATE FOR MACHINE LEARNING HOMEWORK AUTHOR Eric Eaton ''' import numpy as np import math import random from numpy import linalg as LA import matplotlib.pyplot as plt class LogisticRegressionAdagrad: def __init__(self, alpha = 0.01, regLambda=0.01, regNorm=2, epsilon=0.01, maxNumIters = 10000): ...
05b549c233f11257c57bd3a274c3c89170f6bd9d
ae1b6cd0b0a7ea85236a584a19e88789add6cd17
/set4_problem1_alt.py
2ebb400bb86cb6c2f0bf6d9aed40717e49b4975f
[]
no_license
chikavelvet/CryptograPy
418efdf00c8570c49485aaf31586795b6e96ed65
7d86980ba1b885f6aa62774d7df2ea3760023c35
refs/heads/master
2021-08-14T16:12:57.601335
2017-11-16T05:32:19
2017-11-16T05:32:19
110,912,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
set4_problem1_alt.py
#!/usr/bin/env python3 from math import sqrt def euclidean_gcd(a, b): if (b == 0): return a q = a // b r = a % b return euclidean_gcd(b, r) def brute_mod_inverse(x, p): if euclidean_gcd(x, p) != 1: raise Exception for i in range(1, p): if (x * i % p == 1): ...
2ff43c55a5e93cbefb2be2711efcf0dcddb69bba
44b71e0162067eda907eee5f48ca405857eb591a
/app/entities/github.py
bc2069cbf981d0c9ec89fd94002b1d3ec5d8d777
[]
no_license
beomjungil/notion-as-ticket-system
1ad2338dd116d1ed7609fb6aefc0e8ccb9e83543
98e9e23aa96951cebfddafe0366de55a70be2f6c
refs/heads/main
2023-02-07T16:28:16.262069
2020-12-29T16:45:33
2020-12-29T16:45:33
324,981,248
2
1
null
2020-12-29T16:45:34
2020-12-28T10:29:45
Python
UTF-8
Python
false
false
803
py
github.py
import datetime from typing import Optional, List from pydantic import BaseModel class GithubAuthor(BaseModel): username: str class GithubCommit(BaseModel): id: str url: str message: str author: GithubAuthor timestamp: datetime.datetime class GithubPullRequestUser(BaseModel): login: s...
3d00896a80719699fe8a509712e37eb0268819a0
bb14242d4bfbdcea47407ad97e36765d1f90d81e
/Py #66 db GUI.pyw
4b958aa19437cfeb74f9d303328ac16b71c11eb0
[]
no_license
JaxDavio/Tkinter24hrFileModifierMover
e685ceaa6485a3a3ffc15475630a12b96536f743
f77f3a13995b90f95a2048a31836c096571a1c1c
refs/heads/master
2021-01-02T22:51:58.327187
2017-08-05T07:23:47
2017-08-05T07:23:47
99,406,811
1
0
null
null
null
null
UTF-8
Python
false
false
6,396
pyw
Py #66 db GUI.pyw
## OS: Windows 7 ## Python: 3.6.1 ## ## Author: David Jackson ## jaxdavio@yahoo.com ## ## Purpose: To move only .txt files in db, modified in the last 24hrs, ## from folder 'A' to 'B' using the tkinter GUI and also ## give...
c8a20a64b57e4e3c28f2e69ac0a28845ea50b661
a807ce0fa3e3e9c3b558b2e977c05e60c3a667b1
/nemo_text_processing/text_normalization/en/verbalizers/electronic.py
26f7e990808dcde903160d329358a82d12402238
[ "Apache-2.0" ]
permissive
blisc/NeMo
630376e7555c0face994da2f6f9af5d8d31243c3
fadeb45c84d6b323d78e30475538455a88b7c151
refs/heads/rework_reqs
2023-08-17T00:03:39.248669
2021-08-12T15:15:06
2021-08-12T15:15:06
208,142,160
2
0
Apache-2.0
2022-02-03T16:30:33
2019-09-12T20:37:24
Jupyter Notebook
UTF-8
Python
false
false
3,752
py
electronic.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, Inc. # # 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/license...
4264cbd7c23cbcad2f48b173c5a183752495aded
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/JgYPQrYdivmqN4KKX_8.py
6b92965e9fbdf321d56f8d94a9deab6350bbdc44
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
JgYPQrYdivmqN4KKX_8.py
def BMI(weight, height): w, h = weight.split(), height.split() kilos = int(w[0])*0.453592 if w[1] == 'pounds' else float(w[0]) meters = int(h[0])*.0254 if h[1] == 'inches' else float(h[0]) bmi = round(kilos / meters**2, 1) if bmi < 18.5: return str(bmi) + " Underweight" elif bmi < 24.9: return str(...
0f8f0844acb7481777802d6dbe83ab42bd0ce823
88f54179d13c2956bc420b2dbc608f8accaa805f
/pelicanconf.py
5ce46b3e585ce5171e9455c21021d9444496b6b5
[ "MIT" ]
permissive
poiley/poiley.github.io
f307cbc83521d6f491b0243f8b9181ee7acca58b
e72b234b4d7e073c0248493e54cc1f3a6c527adb
refs/heads/master
2023-03-31T05:50:47.871914
2021-11-01T20:40:11
2021-11-01T20:40:11
163,228,657
0
0
MIT
2023-03-28T03:59:18
2018-12-27T00:29:51
HTML
UTF-8
Python
false
false
1,411
py
pelicanconf.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # AUTHOR = 'Ben Poile' SITENAME = 'blog' SITEURL = 'https://poiley.github.io' # GITHUB_URL = 'https://github.com/poiley/poiley.github.io' PATH = 'content' OUTPUT_PATH = 'output' STATIC_PATHS = ['articles', 'downloads'] ARTICLE_PATHS = ['articles',] ARTICLE_URL = 'artic...
3cd41013baf71f41409536e3566d52ae764f3b4c
2aa4c5fc960c5c05b6ef9891fd7ae85e5e38ac57
/infrastructure/migrations/0017_auto_20210928_1329.py
455eebdd6f9b43e02e4586fcda047577fc3090d9
[ "MIT" ]
permissive
OpenUpSA/municipal-data
4a4e8239f41bc179705f8858c82f15246160ba90
21ee3a4cf3614ac1fe32ff730843a238f39e1f40
refs/heads/master
2023-08-30T23:52:45.924118
2023-08-23T13:33:55
2023-08-23T13:33:55
55,236,579
24
15
MIT
2023-09-14T14:12:18
2016-04-01T14:01:37
JavaScript
UTF-8
Python
false
false
870
py
0017_auto_20210928_1329.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-09-28 11:29 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('infrastructure', '0016_auto_20210907_0131'), ] op...
f52b18a197e692022973b0a28c658a9651a9a5b8
a718c3eccb3f1147a3ad49a508eec3af22afc5b5
/week02/Square.py
561f19620591790e68f9f331ecdd8793de110d08
[]
no_license
aqqje/MoocPythonNote
2acabc9dcda20905c646b7d6f4eff1b870124fc0
41868e6167dcb6f32bff7900b43be299306a25e5
refs/heads/master
2018-07-21T15:01:15.711561
2018-07-09T11:23:05
2018-07-09T11:23:05
125,642,864
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
Square.py
# 使用turtle库,绘制一个正方形 import turtle as t t.setup(600, 600) t.pu() t.seth(225) t.fd(300) t.seth(0) t.pd() for i in range(4): t.fd(400) t.left(90) t.done()
d9f1bd40fe257555b936e305b5773a1ea3790b99
54f4ebc4d8a7f615c8b0ec93383335cd98ba2a9e
/mudata/_core/mudata.py
b4b2d65dddc17a7a5b14de441e94c4b986218492
[ "BSD-3-Clause" ]
permissive
scverse/mudata
3bf7df842631f481e6c8dfb27c2ca64cd0b4b54d
29b5a1186655eed8211e08270e80f2e12521057c
refs/heads/master
2023-08-23T16:34:29.831157
2023-08-03T15:11:49
2023-08-03T15:11:49
392,836,868
45
6
BSD-3-Clause
2023-09-11T13:18:12
2021-08-04T22:12:18
Python
UTF-8
Python
false
false
53,761
py
mudata.py
from typing import List, Tuple, Union, Optional, Mapping, Iterable, Sequence, Any, Literal from numbers import Integral from collections import abc from collections.abc import MutableMapping from functools import reduce from itertools import chain, combinations import warnings from copy import deepcopy from pathlib imp...
237defdc6de731ef5b73da87b150047c75b78789
70054399da3bf6deb88907930ffa9cd8276e9073
/histAdd.py
f850084ec663cd5eae5173f483b1fae5424ab1a1
[]
no_license
hcwhwang/ttbb
73f42eb5d771b705ccf442bdf342da8eee91466b
2c521828c16d63df249c27eb86434e3a08f3e257
refs/heads/master
2020-03-30T09:34:12.000512
2019-01-22T07:45:46
2019-01-22T07:45:46
47,506,347
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
histAdd.py
from ROOT import * import copy ''' fJES = TFile.Open("csvNbjets2VisNestPDFIndi1_nuisance.root") for i in fJES.GetListOfKeys(): if i.GetClassName()!= 'TH1F': continue if 'data' in i.GetTitle() : continue #if 'FSR' not in i.GetTitle() and 'ISR' not in i.GetTitle(): continue #if 'PS' in i.GetTitle(): continue if...
08ed41a93e53716a44536b26383b1d81bc75cc2f
39ec88513bcc35a3e3deb2d752ca65f0fe60f7aa
/main/enums.py
b2c922392b0938391ec96a0999a6f2fb23f5a945
[ "MIT" ]
permissive
grace-pham/College-Expense-Tracker
29c422a99152c0004d214b949e8814fc4b0c87e0
501fbc58ae2e130117efbe781b9c24ecccfed439
refs/heads/master
2023-06-13T01:11:14.166296
2021-06-29T04:18:34
2021-06-29T04:18:34
365,474,193
0
0
MIT
2021-06-26T04:57:49
2021-05-08T09:34:00
null
UTF-8
Python
false
false
769
py
enums.py
import inspect import re class EnumBase(object): @classmethod def get_list(cls): attributes = inspect.getmembers(cls, lambda att: not (inspect.ismethod(att))) value_list = [] for key, value in attributes: rx = re.compile(r'\b__(?:\w*)__?\b') if key not in rx.fin...
3ecd7b0865e08d94f149eeb2cce0bd00f06ff89c
02b471b62c8dbf00f53344afd1caefcee7332260
/find_cause.py
de3b70f271cb9b5748cafb37e90e067bfe400774
[]
no_license
Blossssom/data_code_python
24d79a928722420f8574c1af2e569cb06b43206d
d0619b26fba96a67c32034d3711d17d1ab318201
refs/heads/master
2022-11-14T22:15:44.485720
2020-07-09T08:36:44
2020-07-09T08:36:44
278,308,068
0
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
find_cause.py
from konlpy.tag import Twitter, Kkma, Mecab import pandas as pd import re word_km = Kkma() word_mecab = Mecab() word_twitter = Twitter() condition = ['면', '거든', '던들', '진대'] purpose = ['러', '려고', '고자'] causation = ['아서', '니까', '므로', '느라고'] word_head = ['date', 'title', 'newsID', 'organization', 'provider_code', 'provid...
a1b41ea727a9b0d23f2acea1288072e5e1cdbe7c
0fc83b0f8d02c3cfb2ea71410cc71231f629f64a
/leetcode-algorithms/101. Symmetric Tree/symmetrictree.py
112bb4d59244d0e0513aa8f0903396f2e00f33c2
[ "MIT" ]
permissive
rongpenl/algorithms-and-oj
687bb08747f983c0449ad39a64e14de63bb896b2
6b01401f88e852a313e1c2f1915b131bbb6a4272
refs/heads/master
2020-07-09T16:54:24.808275
2020-02-02T01:18:58
2020-02-02T01:18:58
204,027,239
0
1
null
2019-08-23T15:42:37
2019-08-23T15:42:37
null
UTF-8
Python
false
false
919
py
symmetrictree.py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def isSymmetric(self, root: TreeNode) -> bool: if root == None: return True if (root.left == None and root.r...
bc44261b1854029d8d7bad4e1403024d7ea3e97c
03f9666687a147bfd6bace2adfbab6de8879e207
/plugins/modules/network_device_config.py
84aa6359c693313a34a3080d18f28d0cba0221b5
[ "MIT" ]
permissive
robertcsapo/dnacenter-ansible
a221c8dc6ab68d6ccbc710e5e5f3061b90b0de59
33f776f8c0bc7113da73191c301dd1807e6b4a43
refs/heads/main
2023-07-17T08:27:59.902108
2021-09-06T15:58:05
2021-09-06T15:58:05
376,349,036
0
0
MIT
2021-06-12T17:32:27
2021-06-12T17:32:27
null
UTF-8
Python
false
false
1,996
py
network_device_config.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: network_device_config short_description: Manage NetworkDeviceConfig objects of Devices description: - Returns the...
69cdde271edb63f8ebdad0d517874a42148b15f5
2c1d016f7913071964bcef778a061e665714bcec
/crawler/GPCrawler/base_crawler.py
1a21d974cae7dcf2e07a1fd4a097d0574dfd44c5
[]
no_license
Fanbo0428/GraduateDissertation
b0d45d56c47926c536f0b7c53fac34c1fa62f91e
6be40ae3f354beaceee16d6d29ef752b7ddd74e7
refs/heads/master
2020-03-11T09:16:15.189087
2018-04-17T13:08:34
2018-04-17T13:08:34
129,905,949
0
0
null
null
null
null
UTF-8
Python
false
false
3,237
py
base_crawler.py
# -*- coding: utf-8 -*- import time import random import logging import requests import redis from urlparse import urljoin from urlparse import urldefrag from HTMLParser import HTMLParser import settings from types.account import Account from login import login from dal import MongoDal from dal import MySQLDal class...
d3bf017d8454b05443238cc930e6ffa9b6041763
ecc3313b6e172eaf7657b0eaee26dda8e4281c6a
/problem-crazycoopdog/instances.py
fbb21d532d95e32218853c444f2ce3be65b530a7
[]
no_license
crazycoopdog/Cube_Problem
1368d808e363413cccf6ef2afdccdd95c727a480
22ef79bc3dbc5d232ede93e07d77b0b1c4bf8d6e
refs/heads/master
2022-12-13T13:12:21.211372
2020-09-08T17:39:59
2020-09-08T17:39:59
293,882,035
0
0
null
null
null
null
UTF-8
Python
false
false
5,709
py
instances.py
import search import random import sys, traceback # A trivial Problem definition class LightSwitch(search.Problem): # initial state constructor inherited def actions(self, state): return ['up', 'down'] def result(self, state, action): if action == 'up': return 'on' els...
e7a19b7b7fc54d2c2a934fc9b89507cf45241f8d
8cfd316ad9ee134aa5d9bf221c68bb95ff40566b
/Machine_Learning/2_pre_processa.py
60f098c9d364dc1f5387e1a13a664f7f57cb724c
[]
no_license
pablo-vieira-59/Drawings_Recognizer_CNN
a2e27c235a4a0041e14107085d62a4581ae062fd
2f98a513096ff772b6ec47d5e83cf802022b9766
refs/heads/master
2022-06-21T20:48:13.696845
2020-05-04T21:50:30
2020-05-04T21:50:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,055
py
2_pre_processa.py
import numpy as np import pandas as pd import cv2 from sklearn.model_selection import train_test_split def get_sizes(datasets :list): sizes = [] for dataset in datasets: size = len(dataset) sizes.append(size) return sizes def resize_datasets(datasets :list, max_val :int): rez_datasets ...
a405acd41069cbbd82748081feb5c70cd5b45847
dde5fb00e30f3a0b6a8fca15315568611752a1a3
/price.py
4ae1a7d0d7ca436d46c7db96ac5d2560ecf37039
[]
no_license
nst/efx-backtest
a93cf2e871ae61bb74eaa9292b53de499ce0c197
664fca9c7a238dd153c47968c9fbdb759508dd3f
refs/heads/master
2021-01-18T22:34:21.727741
2016-06-08T08:37:01
2016-06-08T08:37:01
4,745,870
3
2
null
null
null
null
UTF-8
Python
false
false
486
py
price.py
#!/usr/bin/python class Price: def __init__(self, timestamp, open, low, high, close): self.timestamp = timestamp; self.open = open self.low = low self.high = high self.close = close def __str__(self): return "<Price> %s - %s %s %s" % (self.timestamp.str...
95bf68447487e908ba9c27cb5f9529c6c58f3121
419eee7672547fc178aaaa98614ab00c4c5d2303
/Code Library/61.Kaprekar_Numbers.py
6855880fd482afa1633e9dc4c78776e94f30b16a
[]
no_license
PratikshaDanti/APS
35fdc382bda3548c88b73ae8a72fffc37c0a0d8e
cbb3ac41f08394d95978211e73621689d13d9e1f
refs/heads/master
2022-04-19T00:34:52.929430
2020-04-06T13:55:09
2020-04-06T13:55:09
236,159,046
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
61.Kaprekar_Numbers.py
# -*- coding: utf-8 -*- """ Created on Mon Mar 23 08:27:17 2020 @author: Pratiksha """ def print_Kaprekar_nums(start, end): for i in range(start, end + 1): if i==1: print(i) sqr = i ** 2 digits = str(sqr) length = len(digits) for x in range(1, leng...
0bbde9c46edc53579324c05fb4784d9480489364
dceb4384cfb6b333e6bf1fff2831d6ab22d508dc
/backend/analytics/g6.py
44626e8cd193c554e3cc703917486521ed305519
[ "LicenseRef-scancode-unknown-license-reference", "CC0-1.0" ]
permissive
shyamsuresh14/YoutubeDataAnalyser
9bd9e6d5d6990184d4e6630a8b28679e0e4f6991
a4014ecfecc34c273ae612e12ed1e7d03c24437c
refs/heads/master
2021-06-28T22:41:26.485676
2020-09-10T13:51:12
2020-09-10T13:51:12
153,441,858
0
0
CC0-1.0
2020-09-10T13:54:00
2018-10-17T10:56:43
HTML
UTF-8
Python
false
false
3,533
py
g6.py
import pandas as pd import numpy as np import math import sys import os fileName = sys.argv[1] path = os.path.abspath('data') df=pd.read_csv(path + '\\' + fileName) total_rows=df['Views'].count() view2=np.array([]) comments=np.array([]) likes=np.array([]) n = 152 if total_rows < n: n = total_rows for i in range...
57807c8d624ffa31ec537c43acefe6946732a9a6
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2443/59308/251319.py
349330f3d868f1216fc900936204e07e5612cc59
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
217
py
251319.py
import functools def cmp(a,b): if a + b > b + a: return -1 else: return 1 a = [str(x) for x in eval(input())] for i in sorted(a,key=functools.cmp_to_key(cmp)): print(i, end='') print()
c93fe399c94ee555b5c59df946e9b7a04e737ffc
77966fcb7fd8d30115c3a612cf900b266f1e2280
/src/audiobook_split_ffmpeg/util.py
31e084d2c58bf55ae88c4f7f0b6fcfe31efb5bf2
[ "Apache-2.0" ]
permissive
MawKKe/audiobook-split-ffmpeg
4d098c1302736f7fdda01de9413e6b2a74b0699e
27f0166c86ad1053fe42ac3c6a3c465a6cbc7793
refs/heads/main
2023-07-28T10:56:48.587165
2021-09-01T22:34:18
2021-09-01T22:42:51
393,789,196
7
0
null
null
null
null
UTF-8
Python
false
false
4,344
py
util.py
# Copyright 2018 Markus Holmström (MawKKe) # # 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 t...
0fbc9e7c66aa13a7bad8081bf010976d1636cdf0
fc5becca3e2e48a444b512e059df1cd21601829b
/Aulas/Aula17C.py
abacfe631b9b2856f1d01d1d59b9146320bf1171
[ "MIT" ]
permissive
Felix-xilef/Curso-de-Python
c44bf8c22b393aefaed3a2bb3127ef7999e27fb8
cdff7c7f3850e6326e274c8c1987b9e1a18ce910
refs/heads/master
2021-05-19T11:09:22.644638
2020-04-01T22:09:02
2020-04-01T22:09:02
251,665,966
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
Aula17C.py
a = [2, 3, 4, 7] b = a # Quando se iguala uma lista a outra cria-se uma ligação entre ela, isto é, o que for alterado em uma será alterado na outra b[2] = 8 print(f'\n\tLista a: {a}\n\tLista b: {b}') c = a[:] # c = fatiamento de a começando do primeiro ao último elemento, isto é cria-se uma cópia de a em c (não é criad...
45dfdd1ca897f41347e30d31f83cef6b3f3939c4
65aa94967f1b3a492bcf951f442b8b686d180db2
/test/cdf.py
2be134215c316b3b6e4c5358a1f7c3f6ff04d74e
[ "Apache-2.0" ]
permissive
jcwoods/datagen
7f9241128c902091ce0f9538e0035b4caf497554
72dce9e7c49afa42794a23be80ae5248547ad03f
refs/heads/master
2021-01-19T16:24:21.312044
2019-06-03T22:43:57
2019-06-03T22:43:57
88,261,811
1
2
null
null
null
null
UTF-8
Python
false
false
2,910
py
cdf.py
#!/usr/bin/python3 from datagen.cdf import CDF import os import random import unittest class TestCDF(unittest.TestCase): seed = 1 def setUp(self): random.seed(TestCDF.seed) # for test, use the same seed every time!! self.test_data_path = os.path.join(os.path.dirname(__file__), "testdata")...
b95f80d721dd19f36afc8261450bcd66dfde40f0
2b290d054202fc60175fb93b6c3138fc22b0abde
/seawatch_registration/countries.py
6d0cf1afb98afe7d680ed882a7c88534ff6365e5
[]
no_license
innoq/seawatch_planner
5ec45edf0eadb27922bb19bf60069bba5750409a
66f595497cc232747dcc2fe60c9106e84a49773b
refs/heads/master
2020-08-27T07:57:36.453250
2020-01-30T15:11:38
2020-01-30T15:11:38
217,291,570
4
1
null
2020-01-31T13:48:32
2019-10-24T12:17:16
Python
UTF-8
Python
false
false
16,429
py
countries.py
data = [ {'code': 'AD', 'name': 'Andorra', 'demonym': 'Andorran'}, {'code': 'AE', 'name': 'United Arab Emirates', 'demonym': 'Emirian'}, {'code': 'AF', 'name': 'Afghanistan', 'demonym': 'Afghani'}, {'code': 'AG', 'name': 'Antigua and Barbuda', 'demonym': 'Antiguan'}, {'code': 'AI', 'name': 'Anguilla...
76c7472ebd0b2fe133b3b4b30cb14c6824322fff
70bbb149d87097fd03b0409db27fbd398d1ca723
/box1.py
3e195f40be4c3e1a1060c75c6a1ae54c3f74e7b6
[]
no_license
subhusri/proj1
b2fa3bc7659ff92442b4b8393eee0b54f836dc07
e74f790c8a797c0c4bcd06104a145f91f223b6be
refs/heads/master
2020-11-27T01:30:52.688568
2020-01-09T17:30:13
2020-01-09T17:30:13
229,257,118
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
box1.py
class area(): length, width class box (): length, width #type = row of the excel file mass = box.length * box.width x,y read_from_file randomize_location def compute_force (critical_box,constants) force_x , force_y = 0 for box in boxes - box: dis...
a6cf05071a1d871d03aa5b578d0ba6f44dadc1f8
b87098d6af206d0eb279879c2cced1eb0b8625e6
/executor.py
7bca437485e3c017bfcf4f504591747d4302b0c9
[]
no_license
devos50/application-tester
8bb8916d7ad5d991187263002d67a4e3df626c8f
27721fc7a84782d7d6bf91b8ba18ec5dbc4db5ce
refs/heads/master
2021-06-30T14:30:07.887545
2018-12-13T14:43:45
2018-12-13T14:43:45
159,216,853
0
0
null
2018-11-26T18:49:00
2018-11-26T18:49:00
null
UTF-8
Python
false
false
11,579
py
executor.py
import logging import os import subprocess from bisect import bisect from random import random, randint, choice import sys import time import signal from twisted.internet import reactor from twisted.internet.defer import Deferred, inlineCallbacks from twisted.internet.error import ConnectionRefusedError from twisted.i...
f35e84d3655680f614168166ef1dd42f5a173cf5
8a96aa6b1a5ef54540775a69b5eab56265eca449
/backend/timing/time.py
00dd88a939689a46be6b42a33d79063475bf7f02
[]
no_license
f16falcona46/Hacktech2019
7ea1ff9a4f64c92a630382ca960fd158ce96ba5c
a9a76b96eecac06b1e1ea7c6695c9fc5e0898ab0
refs/heads/master
2020-04-26T12:37:36.082014
2019-04-04T00:56:12
2019-04-04T00:56:12
173,555,470
0
2
null
null
null
null
UTF-8
Python
false
false
111
py
time.py
import time def generate_timestamps(): timestamp = time.time() * np.power(10., 3.) return timestamp
d998217cf8169d54cf914c324395ef4dc359f38c
401f3d38b387ae7746c2223e915f0051bfee384c
/2020/clase0/TrabajoPractico1/murua-rafael/ex1.py
29b465570474d4cecc4342df8e5ca35448942a92
[]
no_license
eamanu/Curso-Python-Intermedio-A
bcaeb7dede950d02b6ba42715146f938354dfd21
9b35e7042674dfab3d3ca929b6e7ba9ae1fcc1b2
refs/heads/master
2023-02-01T05:41:21.492358
2020-12-20T21:52:06
2020-12-20T21:52:06
306,191,035
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
ex1.py
# EJERCICIO N°1 #Crear una función que reciba una fecha en formato humano DD/MM/YYYY HH:MM e imprima el dia al que corresponda esa fecha import datetime val = True while val: date = input('Ingrese una fecha con el siguiente formato Día/mes/Año Hora:Minutos: ') h = datetime.datetime.strptime(date, '%d/%m/%...
98a7cf1c29ad4cf4ff1d2a87ea648c22668f25a5
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_382/ch50_2020_04_06_19_30_51_283297.py
e697105579dae0af70cee70ed8bd651cdd7d39c7
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
ch50_2020_04_06_19_30_51_283297.py
def junta_nome_sobrenome(l1,l2): lista = l1 + l2 return lista
de969f4abf478c4cecc727ecbad141fe81a58235
e9cc48ccc526d68088d4c5881e5f72c54986a0e5
/NewPCareRecur.py
6b9b26452d55d33e769dc5a4cabf6f28dc6f37ae
[]
no_license
awnonbhowmik/Poincare-Recurrence
7b403511502f852dad690235f16521f9acde6e41
6549d8119f5ffc300189eb74f7c2fcb5cfce27f5
refs/heads/master
2021-08-08T22:40:42.382477
2020-08-20T10:55:35
2020-08-20T10:55:35
214,184,750
1
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
NewPCareRecur.py
from random import randint from time import time urn_a=set() urn_b=set() #n=int(input("How many numbers to start with:")) def count_state(n): for i in range(1,n+1): urn_a.add(i) # print("\nUrn A contains: {}".format(urn_a)) # if len(urn_b)==0: # print("Urn B contains: {}") num=randi...
1b7a99c285b9e94122c26c522dc49c859adaf1d9
17594c0dc66f37efc19568509bfbe0d440adfce1
/boj.kr/dp/1699.py
d9e4f146a56b951d34b2bdefac9c3e6a37b2abe4
[]
no_license
jhs851/algorithm
c7cea7d3773871593dea0805bdb9f67a9e36d380
24995cdb0f1100590c9f5cc1df4a7eedd2bfe281
refs/heads/main
2023-07-26T03:09:13.005799
2021-09-09T07:18:29
2021-09-09T07:18:29
362,413,731
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
1699.py
# 1. 점화식의 정이 -> d[i] = i에 대한 제곱수 항의 최소 개수 # 2. 작은 문제 # -> i의 마지막 항에 어떤 값(j)을 넣을지가 중요 # -> d[i]에 마지막 항에 j^2을 넣었다면 마지막 항을 제외한 최소 개수는 d[i - j^2] # 3. 점화식 -> d[i] = min(d[i - j^k]) + 1 # 4. 시간복잡도 -> O(N루트N) # 5. 코드 n = int(input()) d = [i for i in range(n + 1)] for i in range(2, n + 1): j = 1 while j * j <=...
e2927447a4d05d25a00f130245854d517c5594db
f6f632d0d19fcced0a464d7c75d82ef2c3a9758a
/ABTS/utils/Reference_system.py
43c628c1bd3ae69ad27ff1872ac8439b506152b3
[]
no_license
gfalcon2/Aerobraking-Trajectory-Simulator
3f9446be40df41e94fe59ac60bd6d2edf2364232
2ad7314ae759283148bd259449a012a7797de6c2
refs/heads/master
2022-12-03T22:30:33.979187
2022-11-20T16:48:11
2022-11-20T16:48:11
239,838,808
7
1
null
null
null
null
UTF-8
Python
false
false
10,135
py
Reference_system.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat May 30 16:23:54 2020 @author: Giusy Falcone (gfalcon2@illinois.edu) @copyright University of illinois at Urbana Champaign """ from math import cos as c from math import sin as s from math import acos as ac from math import asin from math import atan as...
30b40fec995afa1d8d8e15bcc9e105e4557ad4af
21a4cf96dc57ef678219c62f80f484237aa418d6
/Cogs/__init__.py
e8cac7543417ee75a5d93763ad71238dee8343ef
[]
no_license
Teara-exe/clanBattleBot
96b436cdef18aad54ebdd54bf741f27b53ef5525
e552fadd0529cb55a3acdb5bdb811271e5c3e487
refs/heads/master
2023-03-25T08:38:16.374657
2021-03-22T17:30:23
2021-03-22T17:30:23
336,591,581
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
__init__.py
from . import AliasCog from . import AttackCancelCog from . import AttackCog from . import AttackCountWriteCog from . import AttackFinishCog from . import AttackOverKillCog from . import AttackStatusCog from . import BossLapCalcCog from . import CommandErrorHandlerCog from . import DeleteDetectCog from . import Previou...
d327820d4b86cb72af941c89a8a0d265d8f9405a
1a66c13f442ce81bb9ed1fc33af76cb7a03185b4
/readit/app/auth.py
9d341c6b3046ac934ba321bfc837ee10b1d72cdc
[]
no_license
tv-deusen/flask-skeleton
631fd2d3a1e68699d862a447a95f9f9130cbf8a4
8ed6076ead94f4317e8dc5f241eb211191e483bf
refs/heads/master
2022-12-07T22:22:24.168066
2020-08-20T21:25:23
2020-08-20T21:25:23
289,108,649
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
auth.py
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash # Blueprint that handles registration, authorization and authentication # Routes: # /register # / bp = Blueprint('auth', _...
f8b514a97b571db823490a5fa54af047dd3e8728
a33e727969560a90eba39670e89fbf264239a1ae
/models.py
8dbbb13255fc1b8bbe1d3888c3b2a93fa97fa100
[]
no_license
WhiteLab/mw_viewer
02b85b071e44245dbfbc04536706e7fce5e73b90
539cb9551dcf579adc6b64636c9320baba32906d
refs/heads/master
2021-01-10T14:33:26.680632
2016-02-05T22:47:07
2016-02-05T22:47:07
46,874,637
0
0
null
null
null
null
UTF-8
Python
false
false
2,597
py
models.py
import django.utils.timezone from django.db import models class Individual(models.Model): individual_id = models.CharField(max_length=10) gender = models.CharField(max_length=10) def __unicode__(self): return self.individual_id class Sample(models.Model): sample_id = models.CharField(max_len...
8b8706a72e6abf3d5f2a5444d58b461b40a00935
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/q5jCspdCvmSjKE9HZ_5.py
24346a4068459233c15ea30d9edd285a9f5b874e
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
q5jCspdCvmSjKE9HZ_5.py
def gcd(a,b): while b>0: a,b=b,a%b return a def lcm_of_list(l): m=l[0] for i in l[1:]: m=m*i//gcd(m,i) return m
940ba61e2ecd96c530fb473f97115e965ae375e2
1ab6a3595a8767b8677a12514005467ebf18ae57
/main.py
0d6d550731245aedafb6e2b8441e8a6f99d07285
[]
no_license
santiagoparaella/ADM-HW5
ba526fdd63aa5e24bb373253733000dbc705ebee
07a350da770ec1417ebd359c1bfd7f0871cbb305
refs/heads/master
2020-09-28T18:12:09.460077
2019-12-22T22:21:15
2019-12-22T22:21:15
226,832,281
0
1
null
null
null
null
UTF-8
Python
false
false
1,187
py
main.py
import sys import time import func_1 as f1 import func_3 as f3 import func_2 as f2 import func_4 as f4 def func_1(): f1.func_1() def func_2(): f2.functionality_2() def func_3(): coordinates_dict, G = f3.get_coords_and_graph() t = time.time() s_o_r = f3.shortest_ordered_route(G, ...
0a3820dcdd4373114ee207d827dbd56f52fc8004
e92209e1e8916ca9fbf44dcc11dd3093d47a77f6
/model01/apps.py
a6b94967138a0555658a17072ff5e41757fef3f3
[]
no_license
zhangwei725/django_model
2a7bce0c86464604a06377932e0db92703a1a719
1bfd12dd11f3ac501131fd6751a70c753e711d01
refs/heads/master
2020-04-06T13:59:08.694788
2018-11-14T09:19:33
2018-11-14T09:19:33
157,522,750
9
0
null
null
null
null
UTF-8
Python
false
false
89
py
apps.py
from django.apps import AppConfig class Model01Config(AppConfig): name = 'model01'
8e5ab3d442bc87fc7e02780d44a522acecc867a6
b2135e3fc77666f043f0fbafd0d88ed9865d5b4f
/Python files/39 Week 7 - About Sets/05 test_convert_the_set_into_a_list_to_sort_it/78854_01_code.step.py
1adcd596f5044496c4b5b2d36bf31c6f36632002
[]
no_license
Felienne/spea
164d05e9fbba82c7b7df8d00295f7157054f9248
ecb06c66aaf6a2dced3f141ca415be9efb7dbff5
refs/heads/master
2020-03-17T17:35:27.302219
2018-05-17T10:14:49
2018-05-17T10:14:49
133,794,299
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
78854_01_code.step.py
# class AboutSets(unittest.TestCase): def test_convert_the_set_into_a_list_to_sort_it(self): self.assertEqual(__, sorted(set('52314')))
1062686622284a71a7ea0178f8e9532e54b48fdd
2179b02e2d3b293b16ccb8bd03fd9f89e40d3df8
/main.py
f3fc96b2d581096b1abc518afc45f49ee075019b
[]
no_license
Seebyt/splitthebill
aeb0e7ee61af2b0a6975bb9fc3d45b6e3de7daeb
ef0cc99a10943bd3737ded1f869be195ec85a075
refs/heads/main
2023-01-16T02:09:14.574937
2020-11-26T17:58:14
2020-11-26T17:58:14
316,303,000
0
0
null
null
null
null
UTF-8
Python
false
false
5,249
py
main.py
from __future__ import print_function import cv2 import pytesseract import numpy as np import argparse # Returns the user dict def get_user_dict(): user_dict = dict() user = "" while user == "": try: user = int(input("Wieviele Leute teilen heute?")) if user == 0: ...
6fa6df35ae1e0649483543befcba44eff65bf0a7
533e1333ce9cba7ff4b10c13137030502592f214
/data_preprocess.py
7a1ff68b2d5ccee4f739a27efb194b2a2c801c87
[ "MIT" ]
permissive
ronen85/deep_planner_portfolio
6084e409f2317a244d4826971395486f7bf587b4
c9808ff336fda20f14ac2c8ac1515175c56993f6
refs/heads/master
2022-04-11T20:47:59.918245
2020-03-09T11:04:53
2020-03-09T11:04:53
207,503,799
1
0
null
null
null
null
UTF-8
Python
false
false
1,628
py
data_preprocess.py
import os import pandas as pd from utils import * CURRENT_DIR = os.getcwd() DATA_DIR = os.path.expanduser(CURRENT_DIR + '/IPC-image-data/lifted') df = pd.read_csv(CURRENT_DIR + '/IPC-image-data/runtimes.csv') """ make all the values in df be [-1,0,1] -1: if the planner has reached time out 1: if the planner was at ...