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
7fe7ea89908f9d233dbdb9e46bf2d677406ab324
c85ec43e50f81f8e20c883eae9e06a5c8c621f8e
/tests/test_utils/test_nx_utils/test_nx_copy.py
91f3f2eef3643caf8ae9a41e248d93ac594f52db
[ "MIT" ]
permissive
jvrana/caldera
b6cc0faed560df6bfa15a3f460fed4ea18b8a55a
a346324e77f20739e00a82f97530dda4906f59dd
refs/heads/master
2023-04-27T04:19:05.499430
2021-03-09T16:37:50
2021-03-09T16:37:50
266,161,720
0
0
MIT
2020-08-12T01:40:48
2020-05-22T16:49:35
Jupyter Notebook
UTF-8
Python
false
false
2,809
py
test_nx_copy.py
import networkx as nx import pytest from caldera.utils.nx import nx_copy def add_data(g): g.add_node(1) g.add_node(2, x=5) g.add_edge(1, 2, y=6) g.add_edge(2, 3, z=[]) def assert_graph_data(g1, g2): assert g1 is not g2 assert g2.nodes[1] == {} assert g2.nodes[2] == {"x": 5} assert g...
7cb75195df567a5b65fe2385423b0082f3b9de4b
0bb291bbe94381b0ec50c7c4f22d58f242d9046a
/KingOfSiam/GameMap.py
5480646c0a76b1e27199951c7ac8832fb1795282
[]
no_license
Teusner/Siam_Realm
2f43b8c55bbcec60ae26c30b16a0bf715cc8cd90
0f3c977e75d445002407e599b13074d9a957ee18
refs/heads/master
2020-04-27T02:16:29.047482
2019-06-06T18:30:23
2019-06-06T18:30:23
173,988,959
0
0
null
null
null
null
UTF-8
Python
false
false
16,551
py
GameMap.py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Brateaqu, Farolflu" __copyright__ = "Copyright 2019" __credits__ = ["Quentin BRATEAU", "Luca FAROLFI"] __license__ = "GPL" __version__ = "1.0" __email__ = ["quentin.brateau@ensta-bretagne.org", "luca.farolfi@ensta-bretagne.org"] # Importing modules import...
fecaf41152e8c98784585abfdb3777fc0a4824f3
cffb519578d52fec692a9c0dfdffc9cf5f36782a
/InClassWork/working_with_if_statements.py
b22267cf462becebdec47d4b31a6a445e117b3ae
[]
no_license
Garychen796/Python_Tuesday-Class
122b6f9c06e8aef66eb3770bd273f5a695a1b4fc
c25e9941b657ef78ea9766eb2e9e1ce0d5eaabba
refs/heads/master
2020-07-12T12:48:33.027680
2019-12-18T03:30:42
2019-12-18T03:30:42
204,823,642
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
working_with_if_statements.py
string1 = "Vegetable" #string2 = "Fruit" string2 = "vegetable" print(string1 == string2) print(string1 != string2) if string1.lower() == string2.lower(): print("The strings are equal") else: print("The strings are not equal") number1 = 25 number2 = 30 # == # != # > # < # >= # <= if number1 <...
6bc400896c004f0fdddbbd3dd73ef9aaa19eb4db
ded7564c1742a8d01aa9973c838d2748e00d8001
/customers/migrations/0001_initial.py
6fa03b2d3dba4a4f6fc7494f402ccd95d64d90f6
[ "MIT" ]
permissive
SamuelDauzon/Improllow-up
b6f9fff6578d6534f06b1d6df99caa126ca8646f
67d7028426090bdbc6c8fd77c02e687ee11f07aa
refs/heads/master
2021-01-10T15:35:22.405562
2015-12-13T01:29:19
2015-12-13T01:29:19
45,325,893
1
1
null
null
null
null
UTF-8
Python
false
false
837
py
0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(ver...
513a2bbcf7a63baf900b73b18cf25618937dc7d0
102307e9f718920153b60e6113fb9212c344bfb8
/modules/u3_organisationAndReources/naming/helloworld.py
12a3fc706b099f34398057adad0d17b2ec7ed3eb
[]
no_license
NorthcoteHS/10MCOD-Samuel-DOYLE
2473b4fc2a786dfedfffd91f627fcbca5e61b669
b59db35912b4b8ae24867241adcf1aa0a7aa34d5
refs/heads/master
2021-04-15T16:55:12.435840
2018-06-26T00:13:09
2018-06-26T00:13:09
126,898,900
1
1
null
null
null
null
UTF-8
Python
false
false
118
py
helloworld.py
""" Prog: helloworld.py Name: Samuel doyle Date: 18/04/18 Desc: My first program! """ print('Hello, world!')
a21ac29911931bb71460175cba584e0011fa2ece
6f0599dafa5fcd22973082a20823755e63d3f131
/sendEmail.py
de65e398558871a07b9e0ddf83bf2da3154bce14
[]
no_license
Natanlimap/camera-sensor-detector-and-monitoration
8ee7a7a6b6a925917e751e68e10102de72961067
617a00803f56baa77b56a3e41fe2a045b84a25a7
refs/heads/main
2023-06-27T18:28:23.837397
2021-08-01T19:04:15
2021-08-01T19:04:15
391,650,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
sendEmail.py
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import base64 import configobj import datetime import os config = configobj.ConfigObj('.env') port = 2525 smtp_server = "smtp.mailtrap.io" login = config['SMTP_USERNAME'] password = config['SMTP_PASSWORD'] sender_email...
562b2c3567e42699cfd0804a5780af7ede142e13
89d3bea7c6ac116f92ffbed0e49053fe29082a2f
/lib/name.py
142ae4b9f35d1ac0831992deec9b57d49cd9129e
[]
no_license
feitnomore/gcs-reporting
95411f73351cdc2ef5f665bf09093e7871010e12
5b0f61c95330cd3b63f0a0690a856dcb35fe8eb2
refs/heads/master
2023-04-07T03:45:07.595641
2021-04-11T17:21:01
2021-04-11T17:21:01
356,930,033
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
name.py
## Filename: name.py # Author: Marcelo Feitoza Parisi # # Description: Report the objects # on the bucket sorted by name. # # ########################### # # DISCLAIMER - IMPORTANT! # # ########################### # # Stuff found here was built as a # Proof-Of-Concept or Study material # and should not b...
358879d83ed3058530031d50fb69e3ce11fbd524
741d0e3e630209891bcd071f1cd398d5979e4c56
/review/review2.py
6b72a56001bd229c7fa8d38ebb23075a52c67c1f
[]
no_license
monado3/intro_python3
54d20f8d66d9703d328075c976731480f8492035
102eaaa4dc1345f81465aedc157c564c5ee90426
refs/heads/master
2020-03-21T02:09:06.250477
2018-06-20T05:23:04
2018-06-20T05:23:04
137,983,160
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
review2.py
print(60*60) seconds_per_hour=60*60 print(24*seconds_per_hour) seconds_per_day=24*seconds_per_hour print(seconds_per_day/seconds_per_hour) print(seconds_per_day//seconds_per_hour)
5c1d81c973487f1b091e58a6ccf5947c3f2a7e6d
41010b16ef8c6a0073769c96666ca381b9640061
/tests/test_telegram.py
2192656814333f4c98eddab401ac4a97bb0441a5
[]
no_license
davidenunes/nldata
61619a73ac376f0d301c2a94e7948ee54bd0b2c1
cecf6689e85ecdc38800d356cac7af89f90fa229
refs/heads/master
2022-11-24T20:43:47.113651
2020-07-29T20:27:54
2020-07-29T20:27:54
283,596,908
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
test_telegram.py
import unittest from nldata.corpora import Telegram import os class TestTelegram(unittest.TestCase): def test_export_iter(self): pass # telegram = Telegram(data_dir) # it = telegram.split("train", n=20) # samples = [s for s in it] # self.assertEqual(len(samples), 20) ...
03629e62b11e66eeb0e111fee551c75c8463cbb8
796a0c5f212ba16dda91e37f8bdde3ede50f8a9b
/tests/compas/geometry/test_line.py
c570b5ea5b2ccc0af82a3b8464ce97cb743503a3
[ "MIT" ]
permissive
tkmmark/compas
fe8676cddc1f5421743ce99775575a06d12bbc42
7791cf969e3b3e81a48253a6cc851013901521e0
refs/heads/master
2023-04-15T17:11:57.837409
2023-04-08T20:16:26
2023-04-08T20:16:26
250,857,439
0
0
null
2020-03-28T17:44:45
2020-03-28T17:44:45
null
UTF-8
Python
false
false
709
py
test_line.py
from compas.geometry import Line # This import is use to test __repr__. from compas.geometry import Point # noqa: F401 def test_line(): p1 = [0, 0, 0] p2 = [1, 0, 0] line = Line(p1, p2) assert line.start == p1 assert line.end == p2 def test_equality(): p1 = [0, 0, 0] p2 = [1, 0, 0] ...
26495562931eb16c14790cd9ba99602fab84165a
0131f6d91da5b063b3d79330b014871c128c67ed
/irc/unimatrix/unimatrix/unimatrix/flatfile.py
d18c0d904cf272aebfa65ce19888b7be7bb03e78
[ "Zlib" ]
permissive
moneytech/code-2
f31602a702cc7e13b24c1ab5817d30d2314dde76
d970038329f7c4e4f0ee9dcd1b345741dd0fcc51
refs/heads/master
2021-10-02T18:24:20.159492
2018-11-30T02:14:18
2018-11-30T02:14:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,555
py
flatfile.py
# Copyright (C) 2014 Christine Dodrill <xena@yolo-swag.com> All rights reserved. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use of this software. # # Permission is granted to anyone to use this software...
e4e48c6d12e2d5b5f18e1efaa759880b40d11355
0efd89e5ee83485443ac2840195104b731c350d8
/xknx/remote_value/remote_value_dpt_value_1_ucount.py
7ce7caa9ab566a0803fd2271d745ade7c589b2bf
[ "MIT" ]
permissive
eXtenZy/xknx
94d25414c3313bd40978691a1da8d70995d98e98
2c2420670da88fea386d573f78a78c5a342186e9
refs/heads/master
2021-06-19T11:55:59.498546
2021-02-20T20:33:00
2021-02-20T20:33:00
195,518,023
0
0
MIT
2019-07-06T08:46:35
2019-07-06T08:46:35
null
UTF-8
Python
false
false
954
py
remote_value_dpt_value_1_ucount.py
""" Module for managing a DTP 5010 remote value. DPT 5.010. """ from typing import Optional, Union from xknx.dpt import DPTArray, DPTBinary, DPTValue1Ucount from .remote_value import RemoteValue class RemoteValueDptValue1Ucount(RemoteValue[DPTArray]): """Abstraction for remote value of KNX DPT 5.010.""" #...
27d6e7cf83f63a6dc4f49e653e22b023aa4a9a6f
6c554d78718fbe99846bc3d625429c65eacb7e36
/pedestalsxml2root.py
b7299289e8fbf0c47bdf8a41f1d5f37cf888d315
[]
no_license
argiro/ecalpedestals
2bfa33f4ab899ac3609e32638e496a2c60367a3f
c4cc155a22f3ba4da5ecf09c00c398de74d8a3ff
refs/heads/master
2020-12-25T16:24:53.748518
2017-12-11T14:42:58
2017-12-11T14:42:58
68,211,184
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
pedestalsxml2root.py
# Read pedestals fom xml and make a TTree # # def makeTree(infile,outfile): from array import array from ROOT import TTree,TFile from PedestalsFromXML import readxml nchs = 75848 ped = array('f',[0.0]*nchs) pedrms = array('f',[0.0]*nchs) tfile = TFile(outfile,'recreate') ...
fcec59b27327cdbfe3b52ae3b2ea2f3828fce587
6a6efa4739b7a9f937a4d57211a34b71ee805424
/conFinal.py
f79fdeaba4c8b504220266b32ab3bc14c6c92f73
[]
no_license
CoPsyN-Sleep-Lab/Conscious-Task
549f7af6759e12be724f3f3ad5d91264762d4a72
fd6548f881328438678b6b6f96b05ad5e672779e
refs/heads/main
2023-06-05T00:31:44.725486
2021-06-25T02:00:24
2021-06-25T02:00:24
379,351,540
0
1
null
2021-06-25T02:00:25
2021-06-22T17:34:08
Python
UTF-8
Python
false
false
40,382
py
conFinal.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ This experiment was created by the PanLab in March 2018 by Brooke Staveland and Carlos Correa Original task design by Leanne Williams and the Brain Resource Center If you publish work using this script please cite the relevant PsychoPy publications Peirce, JW (2007) ...
b777c38ae8586ba289ef1d85bbd7e837dbf89b87
8f61848783d2dbb4726ddc328590b46d89f93b6f
/2022/Day3/day3.py
bc2db5bb77970e1aa487f132685c043f243d02e7
[]
no_license
yzheng347/AdventOfCode
67d4edbabf957c88be3bed924c23b555f6ef1d7c
99e09ed008604b335810cca42f9b4bf5c994cde8
refs/heads/master
2022-12-11T19:47:16.145827
2022-12-04T15:45:13
2022-12-04T15:45:13
226,730,033
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
day3.py
def get_priority(item): if item.islower(): return ord(item) - 96 else: return ord(item) - 38 with open('input.txt') as f: lines = f.read().splitlines() duplicates = [] for line in lines: left = line[:len(line) // 2] right = line[len(line) // 2:] left_set, rig...
16dd7f0993afa285305b167639c8baeec212fac8
95cd807e5890087af8f16e02e570b51f7d8263fc
/course/NTUCS2019PWN/how2orw/exploit.py
e6d1e44d6763882f55b116ccc549dab250cc4f56
[]
no_license
qqgnoe466263/My-PWN-Life
40564e587713151bd744572f04206945a8c1b22b
ac545150c2bc5a1ea45bcaf2a2abd7c975610396
refs/heads/master
2021-07-14T20:40:30.455871
2020-11-21T03:28:31
2020-11-21T03:28:31
225,331,691
31
8
null
null
null
null
UTF-8
Python
false
false
764
py
exploit.py
#!/usr/bin/env python from pwn import * context.arch = 'amd64' #r = process('./orw') r = remote('edu-ctf.csie.org',10171) buf = 0x6010a0 padding = 'a'*24 sh = asm(""" xor rax,rax xor rdi,rdi xor rsi,rsi xor rdx,rdx mov rax,0x67616c662f7772 push rax mov rax,0x6...
2c71539ac4aaf8070a6bda959706f860602ed7bf
9a28f6bf8ba177ced8c498d04d3115d8f5ccdf7b
/Invoicing/serializers.py
3781857ef97023f5fb771916a5210287c0969729
[]
no_license
owinckle/Arkalys-OS
0fabc396a4d91e0267a0beac762e519c47fe312b
964de2005bb40fe8bfb37fbafeb1028047d99b02
refs/heads/main
2023-06-25T01:41:19.322400
2021-07-19T17:28:25
2021-07-19T17:28:25
384,285,954
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
serializers.py
from rest_framework import serializers from .models import * class InvoiceSerializer(serializers.ModelSerializer): class Meta: model = Invoice fields = "__all__" class InvoiceItemSerializer(serializers.ModelSerializer): class Meta: model = InvoiceItem fields = "__all__"
e49c23bea9d22431bfce0b7e35cfad896f835d20
d9be74a91adc2b9cd9428be6464ea6e012b2a542
/test/test_computer_move_generator.py
86980e58a809257c8d2e28cd58af5ac4b35d3c00
[]
no_license
NicoleCarpenter/tic-tac-toe-python
b1294c52b277a7938af484fdd046c7d518f3553c
ad3ba869f114959c461d6050e40b5c9671582385
refs/heads/master
2020-04-06T04:19:00.766738
2017-01-02T19:29:02
2017-01-02T19:29:02
57,977,971
0
0
null
null
null
null
UTF-8
Python
false
false
3,300
py
test_computer_move_generator.py
import unittest import copy import config from test.mocks.mock_view import MockView from lib.ttt.ttt_board import TTTBoard from lib.computer_move_generator import ComputerMoveGenerator xxx = config.OPEN_SPACE class TestComputerMoveGenerator(unittest.TestCase): def setUp(self): self.view = MockView() self.m...
85919a3b091c9e81ce057c46430c1aff7382ec21
8e649da09229cbb70fd526cac936834cbafead2d
/MAPSI_TME/Semaine01/tutoriel.py
c60ea3387be1c9190088b6492dab7a0f1065f3ce
[]
no_license
Raphael-De-Wang/Semestre01
f4e52d6b01f71f7cb09a2050b30910fff02fc03a
5ee98f28b9300edacfb294befaf419ef7d7340a6
refs/heads/master
2021-01-01T18:55:55.764644
2015-01-10T22:23:00
2015-01-10T22:23:00
26,332,182
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
tutoriel.py
import numpy as np import matplotlib.pyplot as plt a = 2 m0 = np.array([[1,2],[3,4]])
7b73446a8b5dc9f38dd0426f1406c17d48fd3f3e
20d6063a626edec4f2f678a8b86d4d6643f226b9
/SSASProject (2)/test.py
adc680e386f960e0231965615f6eaaf5f2ece968
[]
no_license
so-hko/SIC
7d7b4c6236d5715219a75e0b5bb7a47c2f58ee6c
549b4569b46137b38fbe725415eb7c0fa5432c80
refs/heads/main
2023-03-11T02:27:53.498833
2021-02-24T01:32:33
2021-02-24T01:32:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
test.py
opr="#11778" opr=int(''.join(opr[1:])) print(hex(opr))
05348385e0317b333f4292085c84dc03e7b5884d
26896f933b2ac0a4e0a456032688380b3bc13f6f
/Software/processingData.py
89c59c486c56289d750dcffa0b8f662751523bc7
[]
no_license
jelneo/CG3002-NUS-AY1819-Team12
95300b1eef3e3b25e12c154ff77491e0cb92783b
828bc4ad4c7e775f4658ee99f1e170b19b64e6c6
refs/heads/master
2021-10-21T08:00:16.127981
2019-03-03T15:24:59
2019-03-03T15:24:59
146,902,039
0
0
null
null
null
null
UTF-8
Python
false
false
4,876
py
processingData.py
import pandas as pd import numpy as np from sklearn import preprocessing from scipy.fftpack import fft from pathlib import Path import os WINDOW_SIZE = 128 path = str(Path().resolve().parent) + '\Data' print(path) # Different volunteers subjectList = ['Subject1', 'Subject2', 'Subject3', 'Subject4'] # subjectList = [...
49263c6058beb000b2226af8af41d108b95babbf
48961d884ad71d66e830b1297843201f1a9be757
/scripts/library/online/ControlDomain.py
8f3ff26bb99bb49fde68ad0c533a39c5fc395b9b
[]
no_license
musesoftltd/WebLogic-12c
76cd2e25f84c2d88a483375837be8958ad84e918
1b2a7c77b2e655ab3f9951dea8e5f27fd25af313
refs/heads/master
2022-08-09T12:32:56.022333
2022-07-25T12:10:24
2022-07-25T12:10:24
163,537,996
0
0
null
null
null
null
UTF-8
Python
false
false
9,899
py
ControlDomain.py
import getopt from java.io import FileInputStream from java.lang import System import os from com.muse.properties.secure import EncryptionUtils from weblogic.management.scripting.utils.wlst import * from wlst.WlstWrapper import connect, readDomain, closeDomain, nmConnect, \ nmStart, nmDisconnect if __name__ == '...
89ae6838d1e4d7c9a42595ef040a4a7600e78a2c
4937082fb8046490e19a1c9778373fe3d6b7a1d8
/stylize.py
a4ceed21bc5f032febdfbed89dce6c026ca71c8e
[]
no_license
zlind0/gramophone_style
d3035d5374d3ded83499f6768718d20e581ce7ec
0cf2beb744d5cfc60d903a854fde96e48ab782f8
refs/heads/master
2023-01-29T20:16:48.818409
2020-12-18T11:05:46
2020-12-18T11:05:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,647
py
stylize.py
#!/usr/bin/env python # coding: utf-8 import librosa import soundfile as sf # import librosa.display import numpy as np import scipy import tqdm import math import random import numba import sys import cv2 from skimage.transform import resize import os epsilon=0.12 #random pitch mod range slicelen=1000 #random pitc...
b13a0da3736456f8cf0aaf050ad64f6f79a99510
49b0c6ac31f8ab56eb827e436d31559699edfa0f
/dataset_loader/uci_pamap2.py
7335d2a2c4bd7999ac36a91c4ff4d12f9171ff25
[]
no_license
ssz66666/ADS_SH2_Project
4fc813cabfea688f63a07dbf430822526e6c2a17
77a82715a223daa5a8abd66475d5f6c25c22fa43
refs/heads/master
2020-05-01T05:33:11.289492
2019-05-10T11:51:33
2019-05-10T11:51:33
177,305,134
0
1
null
null
null
null
UTF-8
Python
false
false
5,330
py
uci_pamap2.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import os import csv import math from collections import OrderedDict from decimal import Decimal from enum import Enum import dataset_loader.sqlite_util as sqlite_util from misc import mul_str_arr DATA_PATH = "PAMAP2_Dataset/PAMAP2_Dataset" DATASET_NA...
29d137d548805baa252ad4c9a9983abb67d28115
998de30aecc963e44fd10b8bda5b7d9342ad7580
/tests/test_params.py
7de88500d80b647db8ff854e101c27098ca62797
[ "Apache-2.0" ]
permissive
jeremietharaud/aws-cfn-cli
2ed15d678642eda6083274cb428348388b605a8b
8e9f535b32711982c8ed64c31df332a3abb55f72
refs/heads/master
2023-02-22T00:41:50.723003
2021-09-08T10:36:47
2021-09-08T10:36:47
220,108,851
1
0
Apache-2.0
2023-02-16T04:14:17
2019-11-06T23:20:03
Python
UTF-8
Python
false
false
2,655
py
test_params.py
import cfncli.cfncli as cfncli import yaml from typing import Dict, List yaml_variables = """ Name: 'test-stack' Tags: Project: 'cfncli' Env: 'tst' Name: 'test-stack' Variables: RepositoryName: 'test-123' """ def load_test_yaml_params() -> Dict[str, str]: streams = yaml.safe_load(yaml_variables) ret...
1657c2aebe57d4ff449f55dd443ca1ef318d2a08
896da319c2164d1a0a1a723e7150559a65228a58
/auto_encoder.py
678ca8e861545984a22e66f3fe1d4c5eda299d5d
[]
no_license
lrlab/auto-encoder-matsunag
53dfbdaa0615916982593cb10c7a401aaa03ed25
d0586f1747b0843067f29ff4bdbe610c6d1eeb9f
refs/heads/master
2016-09-13T00:12:44.167380
2016-05-18T13:57:18
2016-05-18T13:57:18
59,064,637
0
0
null
null
null
null
UTF-8
Python
false
false
9,106
py
auto_encoder.py
''' Created on 2016/05/14 @author: matsunagi ''' import sys import numpy from argparse import ArgumentParser from chainer import Chain, Variable, cuda, functions, links, optimizer, optimizers, serializers from collections import defaultdict import pickle def parse_args(): def_function = "sigmoid" def_thresh...
74ce57d57068ea00836f7cfc09c8b8df8896381b
3f2d5b39b5abeb20a7042aa9baafa6088be1fb7a
/5-function/ex6.py
a8062e746840c71959eede91f5b402e264acde4c
[]
no_license
lcantillo00/python-exercises
ee98e89cac271c6dbb56e94fb8b3e46efacfa58c
e1fb01d5c8e9aef4448acb62580d21662ce074a0
refs/heads/master
2020-12-03T00:08:40.578431
2017-08-13T13:50:14
2017-08-13T13:50:14
95,993,644
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
ex6.py
from test import testEqual def sumTo(n): sum=(n * (n + 1)) / 2 return sum print(sumTo(10))
90d1296e3a5f92704962277025e20702af4a8b38
7cd8ee14711eaf33cee0d9e06e78a974fc579242
/PIFramework/juicer/spiders/ticketnew_browse.py
8ff1c8875721d4da9185a733a1066e13844d4a62
[]
no_license
Chandler-Song/pi
c618117dfdd9a7496a57c69f029851e94787f591
aebc6d65b79ed43c66e7e1bf16d6d9f31b470372
refs/heads/master
2022-03-13T02:44:30.452673
2019-02-19T09:38:45
2019-02-19T09:38:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,371
py
ticketnew_browse.py
import scrapy import hashlib import csv import datetime from scrapy.selector import Selector import datetime from juicer.utils import * from scrapy.http import Request, FormRequest import time import sys reload(sys) # Reload does the trick! sys.setdefaultencoding('UTF8') from juicer.items import * from datetime import...
eb3b64f744c1cbae9a85ab365f2bd5a8caf20556
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stdlib/@python2/operator.pyi
cff20b85898bb7992edfec487464161f13759f8a
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
7,382
pyi
operator.pyi
from typing import Any, Container, Generic, Mapping, MutableMapping, MutableSequence, Sequence, SupportsAbs, TypeVar, overload _T = TypeVar("_T") _T_co = TypeVar("_T_co", covariant=True) _K = TypeVar("_K") _V = TypeVar("_V") def lt(__a: Any, __b: Any) -> Any: ... def le(__a: Any, __b: Any) -> Any: ... def eq(__a: Any...
923b6a1a2d408b71b6a379821cdc7408bf2b3c6c
13586404b55025e5a9db12a270503a9e807d452f
/c3po/api/__init__.py
ea943742dc2703e7aed4bb104c7f15c4c3eef99e
[ "MIT" ]
permissive
lttkgp/C-3PO
196da62f3d907a940dca72a8b6345576a221cb43
1ebb81877d2438b806d81803af271f9737955cd1
refs/heads/master
2021-09-26T19:49:44.712352
2021-09-23T16:04:43
2021-09-23T16:04:43
111,901,051
34
33
MIT
2021-09-23T14:18:59
2017-11-24T09:35:40
Python
UTF-8
Python
false
false
633
py
__init__.py
"""Register all namespaces and import API's from controllers.""" from flask import Blueprint from flask_restx import Api from c3po.api.controller.data_controller import data_ns from c3po.api.controller.feed_controller import feed_ns from c3po.api.controller.health_controller import health_ns api_bp = Blueprint("api"...
74aa8c1d233be936013bf16933f316323702d585
e787434bce2217b512e79ed2888eac96f8a220fc
/ADC_Inference.py
487a6f2a96f876b50a49c270cf0ac7d4b4f9557c
[]
no_license
SchofieChen/ADC_RNN-LSTM-Predicition
2ff620957aef7d9807441767149128fab41ac10b
f8c616e8886b3d646a4ca0ef75102767cc91b40f
refs/heads/master
2023-04-05T09:08:28.475422
2020-01-15T07:13:41
2020-01-15T07:13:41
180,746,552
3
0
null
2023-03-24T22:17:45
2019-04-11T08:17:12
Python
UTF-8
Python
false
false
3,068
py
ADC_Inference.py
import SMG_ADS1256PyLib import numpy as np import matplotlib.pyplot as plt import scipy.fftpack import time import pandas as pd import os import json from keras.models import Sequential, load_model def model_instance(): print("start loading model...") model = load_model('saved_models/11042019-112212-e1.h5') ...
91fa2e77bff23b783c001ae986d8f8ff287f8682
1fa5be17eb0a7e66f920527d3ef6ae54c3486190
/experiments/pcduino/dojo/analoop_ctypes.py
40bfa5fdd6d9f379fd6f843865d649398eccf5b7
[ "MIT" ]
permissive
rbanffy/pingo
8edac67c8f405b6399cf22650f5760666f474f85
b448d5eecae17b82aafd708c2594dae6d4194d84
refs/heads/master
2021-07-11T03:39:46.798298
2014-12-17T06:27:26
2014-12-17T06:27:26
27,268,917
1
0
MIT
2021-04-20T21:16:14
2014-11-28T13:50:21
Python
UTF-8
Python
false
false
193
py
analoop_ctypes.py
#!/usr/bin/env python from ctypes import CDLL # LIB_ARDUINO = '/home/ubuntu/sample/core/libarduino.so' LIB_ARDUINO = './ard2.so' print 'testes', LIB_ARDUINO lib = CDLL(LIB_ARDUINO) print lib
472ab6cbe50985a45bcf7e5f10c348943b24e59e
0b5541d5b95234b2bba406cf479c9108f887ab72
/nqe/system-plugins/leads-lucene-indexing/src/main/python/eu/leads/infext/python/articlecomment/verification.py
a1123c16c9fef71c51e38af2d8027f77cb046e33
[]
no_license
vagvaz/leads-query-processor
30abbe4ed910f25b467572de800ba729ab223973
2f2282b80563df8222adb8e206d9184c53e94e0b
refs/heads/master
2021-01-19T05:52:14.497831
2015-09-28T09:40:39
2015-09-28T09:40:39
20,615,094
0
0
null
null
null
null
UTF-8
Python
false
false
6,176
py
verification.py
from eu.leads.infext.python.ops.xpathops import element2path from eu.leads.infext.python.ops import stringops, xpathops import string __author__ = 'freak' from goose import Goose import urllib2 import re from BeautifulSoup import BeautifulSoup class Verify(): def __init__(self): self.goose = Goose() d...
d71a52ae267597fa56adc28c5cf48afdef492540
5fee555a27c71caed5757968ec322b4a2a665a32
/audioFrameFFTPeak.py
eb7a36a0e0530ebbe79f3d1d8119a00a70fba4d6
[]
no_license
ylcg87/musicSigProc
94115ec1d1337c3e91ce2e590705068928b0b219
c9c2ff238598c9f39829cea0de4ab84e1fd2ce92
refs/heads/master
2021-09-05T13:56:04.107419
2018-01-28T12:26:50
2018-01-28T12:26:50
118,995,058
1
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
audioFrameFFTPeak.py
# Author: Liang Ge # Audio Strings LLC (c) 2017 import scipy import numpy as np import matplotlib.pyplot as plt from scipy.io import wavfile from scipy.fftpack import fft, ifft import math from math import pi folder = 'sounds/piano/MuseScore/' file = 'little_star_3.wav' rate, data = wavfile.read(folder+file, 'r') if...
e9cb26cc0d2a1716265274a5cbdacba2d8fd0744
184efaeb5b1206c07ebcbdabf2f91170f43d99f0
/filenergy/__init__.py
fbf5d8f20eee2c7083b4d2e1505a9fa63f549a0e
[]
no_license
mikegachunji/file-upload-download
f681b13acad5032fe97647b11fd7997b716f6c7e
6dfaca2bea17023fe0fd8c34315c43ccb4b9dfde
refs/heads/master
2020-03-23T23:09:46.138017
2018-07-24T22:32:34
2018-07-24T22:32:34
142,219,290
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
__init__.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from filenergy import settings app = Flask(__name__) app.secret_key = settings.secret_key app.config.update(settings.config) db = SQLAlchemy(app) db.create_all() login_manager = LoginManager() login_manager.init_ap...
17e91077d73e26db7a3ec3347f13358e6d2ddd3a
c3b64f9d461cf25a9e1260249ad490a0bb02f811
/VTPackage/URLreportTab.py
afa7a7bc97782ab847ab5bd4148c6ca9343d8553
[]
no_license
hritikchauhan/Antivirus-using-API
77572c3e91f77ae10d9220f30ae84e1e66ee6a3c
d0722477e20a5b3d1ae136e482b7d62ece8c7231
refs/heads/main
2023-05-30T17:29:50.344821
2021-06-03T06:08:57
2021-06-03T06:08:57
373,399,285
0
0
null
null
null
null
UTF-8
Python
false
false
3,139
py
URLreportTab.py
from tkinter import ttk from tkinter import StringVar from VTPackage import Consts class URLreportTab: def __init__(self, root, frame, vtClient): self.root = root self.frame = frame self.mainVTURLframe = ttk.LabelFrame(frame, text=' URL report tab!') # using the tkinter grid layou...
73e4dec9ec9be5b867d4ee9363e9a9e6aa78af48
1bfebc7e1c95cd3c25024b6b1adbf518e55513bf
/src/pykit/mathtoy/test/test_mathtoy.py
f9c5e882c86b4e7416356a91bebdb46a99a464f6
[ "MIT" ]
permissive
bsc-s2/ops
a9a217a47dad558285ca8064fa29fdff10ab4ad7
6fb8ad758b328a445005627ac1e5736f17088cee
refs/heads/master
2021-06-24T09:32:49.057026
2020-11-02T06:50:01
2020-11-02T06:50:01
123,527,739
8
0
MIT
2020-09-03T04:58:26
2018-03-02T03:54:20
Python
UTF-8
Python
false
false
3,562
py
test_mathtoy.py
#!/usr/bin/env python # coding: utf-8 import unittest from pykit import ututil from pykit.mathtoy import Matrix from pykit.mathtoy import Polynomial from pykit.mathtoy import Vector dd = ututil.dd class TestVector(unittest.TestCase): def test_vector(self): a = Vector([1, 2, 3]) b = a + [2, 3,...
5b207824f22c92ca61a16a6278cb9edb63783ec6
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/19_数学/采样/按权值采样/rand.py
3b4669da5f776ae59cbc57b65315c2eb5a3ec75c
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
129
py
rand.py
import random from itertools import accumulate print(random.randint(1, 4)) # [1,4] print(*accumulate([1, 2, 3])) # 1,3,6
d4a5647d4fa8652e4b4f2b673fbec50f0a7a83aa
53040e9727014211df374add140cf269da159605
/学习目录/playground.py
a35f2a68fbdd43c77a42f436733436ecfee5accd
[]
no_license
madaoCN/PYCodes
07ce22c6757066d7f2488cdc42ade92776ad4dae
a1fcd52e23a1607de553b005dff23b3a48e3cad0
refs/heads/master
2021-06-21T00:04:05.077102
2017-07-12T11:17:05
2017-07-12T11:17:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
playground.py
#coding=utf8 #!/usr/bin/python # -*- coding: utf-8 -*- import pandas as pd import numpy as np import re if __name__ == "__main__": df1 = pd.DataFrame({'key':['b', 'b', 'a', 'c', 'a', 'a', 'b'], 'data1':range(7)}) df2 = pd.DataFrame({'key': ['a', 'b', 'd'], 'dat...
305134e1a60f442f3f671b4d08a1b4bf423eecf2
708e4bcc2ba8892e7126e04d6537924fbfe9a090
/6009/lab3/lab3/resources/testing_data/FindMaximumDeviationJunction_SmallRandom_2.py
5fedc8586546a09a7f2d6aca12149d637c8719ea
[]
no_license
miller-ian/junior-class
4f957ab1b6e10c096b7732134ba4e58d475f7c44
9897141cf34bdaa35c51caba5baab40d9779e639
refs/heads/master
2023-02-27T12:54:40.341913
2023-02-20T23:40:12
2023-02-20T23:40:12
219,837,516
0
0
null
null
null
null
UTF-8
Python
false
false
4,427
py
FindMaximumDeviationJunction_SmallRandom_2.py
junctions = {'X_0', 'X_1', 'X_10', 'X_11', 'X_12', 'X_13', 'X_14', 'X_2', 'X_3', 'X_4', 'X_5', 'X_6', 'X_7', 'X_8', 'X_9'} wires = {'W_0': ('X_6', 'X_5'), 'W_1': ('X_14', 'X_6'), 'W_10': ('X_1', 'X_14'), 'W_11': ('X_2', 'X_0'), 'W_12': ('X_0', 'X_9'), 'W_13': ('X_12', 'X_13'), 'W_14': ('X_1', 'X_10'), 'W_15': ('X_10',...
54466490a099214c9d6e0de508f4dae044164641
8b73690a1ef87837934263f35f71a30c88d0def5
/utils/file_helper_functions.py
244ae6a4b92ccadd0b30962e32e87f34dfd7914b
[]
no_license
AadityaSubedi/backend
3720a09692ec9e1ebdc92da381a17bff493f8ca1
2767aba945a916e3a0fbe222500578112892a26d
refs/heads/master
2023-07-23T12:00:58.561360
2021-09-05T13:15:30
2021-09-05T13:15:30
398,031,446
2
1
null
null
null
null
UTF-8
Python
false
false
2,158
py
file_helper_functions.py
import os import uuid from io import BytesIO from flask import current_app as app from PIL import Image from werkzeug.datastructures import FileStorage from . import helper_functions as hf def save_image(file: FileStorage) -> str: """ Checks if the file is valid and saves it. Args: file (FileSto...
588a60b1d7e4ddf32ea247260a5f1708072e1027
213700d207317f614ad04d774ed21343ae39b1eb
/geospacelab/datahub/sources/superdarn/potmap/loader.py
da2ae2571d5e6483e81eb9c717c7c591a59e7795
[ "BSD-3-Clause" ]
permissive
JouleCai/geospacelab
7d4749eb8908a7b177c288156b8891d9edf58a07
78ffe542857022913a923e0ea6a7414e1e0cc8dc
refs/heads/master
2023-08-31T00:57:26.062726
2023-08-29T12:24:22
2023-08-29T12:24:22
347,315,860
41
6
BSD-3-Clause
2022-08-30T10:44:44
2021-03-13T08:32:17
Python
UTF-8
Python
false
false
10,900
py
loader.py
# Licensed under the BSD 3-Clause License # Copyright (C) 2021 GeospaceLab (geospacelab) # Author: Lei Cai, Space Physics and Astronomy, University of Oulu import netCDF4 as nc import datetime import numpy as np import pathlib import re import cftime import geospacelab.toolbox.utilities.pydatetime as dttool import geo...
3cb693ab9b0e26a6699adcfa0b42339fa4beaa6f
2f68d060883809a7225abf91f60e0cf3261d836f
/counter/migrations/0010_auto_20180127_1303.py
72bd368d4bea10a9bfdfa3362313d8795f71f841
[]
no_license
stevendjie/get-fit
8db05d80bc55e75bb857d14b5234cdb80e106b78
5f73bc8d1d42bd62e7ea734d7db7158b50ee6e7f
refs/heads/master
2021-01-24T01:29:22.330734
2018-05-14T22:33:58
2018-05-14T22:33:58
122,811,234
1
1
null
null
null
null
UTF-8
Python
false
false
694
py
0010_auto_20180127_1303.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2018-01-27 18:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('counter', '0009_auto_20180120_1304'), ] operations = [ migrations.AlterFiel...
e9b76b1657baee4dca680e893ea0b7a17414b638
104a5775666544ccb5a369b650432547af7a30d0
/helper.py
25107ba47ed3309d7f5d497d4e4c86e822637803
[]
no_license
Aisling-Dempsey/Haven
58bf302498f85244ffadd325eb26318da2b3b45d
3c8b87c0f5dd0d77af9d2c2b85886230b01fd9bd
refs/heads/master
2021-01-17T12:55:41.054917
2016-06-21T00:30:16
2016-06-21T00:30:16
58,024,009
3
3
null
null
null
null
UTF-8
Python
false
false
17,148
py
helper.py
import requests from models import Business, Rating, User, Category, BusinessCategory from yelpapi import YelpAPI from flask import session, request, jsonify import os from datetime import datetime from models import connect_to_db, db import sys reload(sys) sys.setdefaultencoding('UTF8') KEYS = {'maps': os.environ['M...
e592f6db97aefa7a040b84c33479207ddddf41cd
3f4c1f93dfce0da527ec39056a7c0f98ec185c7a
/plugins/convert_currency_plugin.py
9416f8636f15d364003561f953fc4835426d7918
[]
no_license
Qwerty-Space/tanyabot
b0907d583e72ededd8368e884a0f0187ff4f9771
b4da6e45cf374933e60fb897c4f70bbab284830c
refs/heads/master
2021-06-02T03:55:49.352872
2021-01-10T23:18:43
2021-01-10T23:18:43
146,359,599
8
7
null
2020-09-15T21:32:57
2018-08-27T22:07:38
Python
UTF-8
Python
false
false
1,861
py
convert_currency_plugin.py
r"""Converts two different currencies using the [European Central Bank's exchange rates](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html). Example: "GBP to/in USD" (case insensitive). You can also specify an amount of said currency: "5 GBP to USD". List curre...
339ad319c050bb34c8f6c7e824ff4f063ff96c27
71483b3987afb0d48e00d54df38471eb028aba85
/BJ/수학계산 1/bk1.py
d4d0cfef43e74734a66437ba3fc1c273f9651a65
[]
no_license
hjklnm4/garedn
086f922a0f9fd5a74bd1b605d4e6f4a15be18be5
cbf0ba459320a86ed618e1d807f38809aa457fa1
refs/heads/main
2023-05-29T23:40:14.288665
2021-06-15T05:44:53
2021-06-15T05:44:53
326,954,972
2
0
null
null
null
null
UTF-8
Python
false
false
171
py
bk1.py
a,b,c = map(int,input().split()) def arr(a,b,c): d = 0 re = 0 if b >= c : return -1 else : return int(a/(c-b)+1) d = arr(a,b,c) print(d)
13f903893c8b1c59e564f096dc128a28ff67c7e2
c8cb51cc9e661052e4c330cba1124677cee19cd4
/ProjetosBanin/alunos7.py
7ce9a6641bb0d130edcc7388342bfc5263633d56
[]
no_license
vinnymarcondes/python
8aaf9cda14567e84712849f2219cfb61e21d3bd5
905a7779c436c081ea54093f6b3d51dccccc3963
refs/heads/master
2020-05-31T04:32:14.066523
2019-06-04T17:36:21
2019-06-04T17:36:21
190,100,445
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
alunos7.py
#*************************************************************# # Faculdade de Tecnologia - FATEC São Paulo # # Análise e Desenvolvimento de Sistemas - Noite - 1º Sem 2019 # # Algoritmos e Lógica de Programação - Prof Sérgio Luiz Banin # # # ...
42c33a5cbd631a5a9e6a574b1468637b5a7767f3
cdcda398dc4b02b1c9ad3a03889c09b4d766d24b
/hw5/myanswer_4.py
43a870dc5656db09e9dfc60c4cfb27123050d0d4
[]
no_license
YCCHIU861116/2020CSIEprog
ba2c80c3863e15a88fc80d4694f30336cb5234c5
20d4baa4282a99a36ea7cf5b8ef17e2e2d1354f9
refs/heads/master
2023-02-13T17:48:41.019864
2021-01-05T08:36:48
2021-01-05T08:36:48
302,337,829
3
6
null
null
null
null
UTF-8
Python
false
false
486
py
myanswer_4.py
N = eval(input()) array = list(map(int,input().split(' '))) max_ending_here = max_so_far = 0 max_ending_here_begin = 0 max_begin = 0 max_end = 0 for i in range(len(array)): if(max_ending_here + array[i] >= 0): max_ending_here = max_ending_here + array[i] else: max_ending_here = 0 max_ending_here_begin = i+1 i...
9f7b2ad55077f6145522381a6ebc62f9cf277857
b21aca9910ee77cecb8f3d258684611e35c118d4
/homework2/dictionarie.py
d6914c8069938cd92003b838d6a4dbe4c4c9a8cc
[]
no_license
Priclend/Homework
0ef2c3465650eada47e263965f31d4a515d50b95
2039151bc5c7324fa6b2e95add3b558178c3d522
refs/heads/master
2020-04-30T03:52:30.967477
2019-05-28T15:26:56
2019-05-28T15:26:56
176,597,027
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
dictionarie.py
a = {"Имя":"Мария","Возраст":16,"Рост":"маленький","Оценки":5} for i in a: print (i, ':', a[i])
63d44fe73c4a5dd254e027a5cf196adf96e998b6
7f4edf26b8946a5d41fedf621240325c41d905a5
/pymc/examples/gp/PyMCmodel.py
c47aef6a568a84a910fe9d901ba372f17176b9e3
[ "Apache-2.0", "AFL-2.1" ]
permissive
rsumner31/pymc3-23
82e5dce9fd44ae65cfdb2309df89f6d0dfc727e1
539c0fc04c196679a1cdcbf4bc2dbea4dee10080
refs/heads/master
2021-04-03T06:06:51.409669
2018-03-12T17:34:47
2018-03-12T17:34:47
124,764,587
1
0
null
null
null
null
UTF-8
Python
false
false
1,435
py
PyMCmodel.py
import pymc as pm import pymc.gp as gp from pymc.gp.cov_funs import matern import numpy as np import matplotlib.pyplot as pl from numpy.random import normal x = np.arange(-1.,1.,.1) # Prior parameters of C diff_degree = pm.Uniform('diff_degree', .1, 3) amp = pm.Lognormal('amp', mu=.4, tau=1.) scale = pm.Lognormal(...
9b50d8416ebaa1ba1dfbdcf293488599977f4ac6
5661772d09ffb94c6e87a20c5eafd2ff2dee358e
/Code/Projects.py
dd0502b969a8826ede260ce0b46d6a5d52499793
[]
no_license
vivekchenreddyy/MGNREGA
2dcec28b54699ada3981254e9c3d0e094c2881ce
4555969ddb26a4989c9975a736d24b5f7797a469
refs/heads/master
2022-04-02T02:08:49.158393
2020-02-05T09:30:45
2020-02-05T09:30:45
235,757,157
0
0
null
null
null
null
UTF-8
Python
false
false
7,377
py
Projects.py
import datetime import pandas as pd """Projects class where Create update delete and show projects are done.""" class Projects: """Input functions.""" def memuname_input(con): memuname = input('Enter the username of the person you want to assign the project for : ') return memuname def proj...
f89c365d3c29894aceb692f188963245fe789766
52027c6479ddd407fdc1506eb1dcedcde8155125
/structs/domain_description.py
37fbb121b0c31e00306ff6b54683b2c6dd7748a0
[]
no_license
matrackif/krar-project
578f847a9349a76ed3d4f22ce8b298901a583ce5
b92fd4dff6dea9e889b5a0c2ca29e80fd168079c
refs/heads/master
2020-05-24T16:29:20.354963
2019-06-11T22:37:31
2019-06-11T22:37:31
187,358,856
0
2
null
2019-06-11T20:42:17
2019-05-18T13:04:48
Python
UTF-8
Python
false
false
149
py
domain_description.py
from typing import NamedTuple, List from structs.statements import Statement class DomainDescription(NamedTuple): statements: List[Statement]
8330041c21a9bdced7340a7e951965ec18f3595a
8027074ff0294d2e0af32cd64dafc60f3aa25689
/pythonsm1/p0726_ collect.py
0f671c4cbb0df11f02ee0ee67214ae990572c344
[]
no_license
khfbvxz/python_sm
53d2599a74c5e144e54b3b16eb9efdf33110cc34
bd13ac4fba269c5e7fa7742df2a8df753b9b03f3
refs/heads/main
2023-06-27T04:36:54.407168
2021-08-02T17:34:00
2021-08-02T17:34:00
389,881,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
p0726_ collect.py
import requests import json def save_image(publisher, file_name): image_response = requests.get(publisher) if image_response.status_code == 200: with open(file_name, "wb") as fp: fp.write(image_response.content) def save_text(documents, file_name): blog_response = requests.ge...
dc9bc0f4e9e325ac2ee70b4b644b2c64ff9740ac
78934f8f03293f0e2b4e50d6c1c967ee91b18f56
/RetrievTweetInfo/itemitem.py
d609bcccc5218fbeeb03ce4bbc0dddfb9d533e09
[]
no_license
harshulgandhi/IS5126-Project-Interest-Recommendation-System
1013b331ef7afc960682bf9e297b2ab12295c7f5
a0d362111205b4cff1b939747ff57d325d81b3df
refs/heads/master
2021-01-24T23:50:12.749546
2015-04-26T08:05:32
2015-04-26T08:05:32
33,139,963
0
0
null
null
null
null
UTF-8
Python
false
false
3,280
py
itemitem.py
''' Created on Apr 2, 2015 @author: 9020dell ''' import csv import ast import config from pymongo import MongoClient sample_output={} class ItemItem(): ''' classdocs ''' typesDict = {} outputList = [] def __init__(self, amrules): ''' Constructor ''' with open(a...
eb5f29b2a73562c76eb6997cd76578df1f739814
70d611c121effc60870c2b66347b5f1620d53127
/start.py
6de982d181abff6eb27299ef90ce16830ce3b0e9
[]
no_license
feiernk/ShoppingSystem
182084b01289fdfee32fb5c8feb674ac672a6a0d
13f31115498277c186c4d1c9f0955fed8d653dd3
refs/heads/master
2021-05-23T08:22:35.328709
2020-04-05T09:18:48
2020-04-05T09:18:48
253,195,884
0
0
null
2020-04-05T09:18:49
2020-04-05T09:14:09
null
UTF-8
Python
false
false
132
py
start.py
import sys from core import src sys.path.append(__file__) if __name__ == '__main__': print('开始运行。') src.run()
a6faaf562d74a27a850317cc3243efa807d3ddf5
67ca269e39935d0c439329c3a63df859e40168bb
/test/test_utils/test_single_thread_client.py
2338d4cf73ab1286502d6f1f6fe4b0ce2d8eb92e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-philippe-de-muyter" ]
permissive
automl/Auto-PyTorch
2e67ffb44f40d9993470ded9b63f10a5164b41df
56a2ac1d69c7c61a847c678879a67f5d3672b3e8
refs/heads/master
2023-07-14T22:55:57.826602
2022-08-23T16:43:15
2022-08-23T16:43:15
159,791,040
2,214
280
Apache-2.0
2023-04-04T14:41:15
2018-11-30T08:18:34
Python
UTF-8
Python
false
false
1,200
py
test_single_thread_client.py
import dask.distributed from distributed.utils_test import inc import pytest from autoPyTorch.utils.single_thread_client import SingleThreadedClient def test_single_thread_client_like_dask_client(): single_thread_client = SingleThreadedClient() assert isinstance(single_thread_client, dask.distributed.Clien...
9a48a4c4b6224feda25e432e8a9627c36791664c
7f75b1e02594eba22a301ec92e78175166efb5ed
/backend/migrations/0001_initial.py
09b61b5a5c9ee3e68c47e6bd8231fb75177c3204
[]
no_license
reyphilipp/article_stock
91fd4a8bfef7e1d19fadfe92889291e06f271941
43a8b401d34e9ff34012237f8e6dcf636c7e78f2
refs/heads/master
2020-06-10T18:44:18.364033
2019-06-25T13:13:09
2019-06-25T13:13:09
193,710,104
0
0
null
null
null
null
UTF-8
Python
false
false
2,193
py
0001_initial.py
# Generated by Django 2.2.2 on 2019-06-25 12:11 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
896ba7450c7d66bfaea59f24d1a1b31a1cc647ec
1a596e85b4fd0ddbb03a4b46a0b3cfa458d0f488
/models/func_models.py
a020e9fe3e8c6b81dcffb82acf8e58b643b2450f
[]
no_license
HaakonSvane/Icarus
87a5363d410107280270bfecb949d775ca3c2240
e5f0677a78de4da4e3fec5f48ad72c0804e33feb
refs/heads/master
2023-01-23T06:31:31.125702
2020-11-29T16:55:47
2020-11-29T16:55:47
306,263,145
0
0
null
null
null
null
UTF-8
Python
false
false
4,448
py
func_models.py
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils import weight_norm DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") # LSTM class LSTM(nn.Module): def __init__(self, input_size, hidden_size, num_layers, num_classes): super(LSTM, self).__init__() ...
161c0fcdaf3e5c675b11f676900f909fd8430df2
ee6473f39314bf15d1145338ca6b69b624e18a5a
/esol/teacher/models.py
19337807502675efef02666483679e5225624cb9
[]
no_license
ahmad-ali14/Esol
4bb13be99412d6c56b73b824f5ade37995e22569
050c7e239f05cb3f52c578cfadd554e7e077a372
refs/heads/master
2021-10-26T04:39:11.462958
2019-04-10T14:29:37
2019-04-10T14:29:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
models.py
from django.db import models # Create your models here. class teacher(models.Model): teacher_name = models.CharField(max_length=100) class_name = models.CharField(max_length=100) teacher_email = models.EmailField(max_length=70) def __str__(self): return '%s' %self.teacher_name
849437bd9bb1cab21601135c48b27392236764cb
261626715de809a7ac1124c856059f636a04302a
/HousePrice_int.py
db0bfc58c09c05a1499432ca0a300f3b6079d79a
[]
no_license
Ashwini-sys/Python
f5a9f6cce11461284200de3eca20baae98c2c6c1
ac9d0f3b4ac131af4e37e71c29cbf65c2338cbba
refs/heads/main
2023-04-09T05:23:46.218813
2021-04-25T11:04:09
2021-04-25T11:04:09
332,431,263
0
0
null
null
null
null
UTF-8
Python
false
false
23,559
py
HousePrice_int.py
# God is my Saviour! import os os.chdir("C:/Users/khile/Desktop/WD_python") import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns #df5 = pd.read_csv('df5.csv') # after bedroomAbgr, written as df5 df4 = pd.read_csv('D:/data _science/PYTHON/Linear_Regression_Python/df...
9bb6fd6fbe212bdc29e2d1ec37fa6ec6ca9a9469
462c0aa6751a720c0a53f6215271adb1aeab8e6a
/src/builtins/concurrent/multiprocess/daemon_process.py
6194d7e3293a05c7f46ca93385feb41889b3c2a1
[]
no_license
SugarP1g/LearningPython
9cddfb657c5d9139f7159c95e0ab2bcd7558efed
357d2d445c6d9da96b7a69414249f41aac4d0b2b
refs/heads/master
2023-07-14T01:22:24.976941
2021-08-12T10:48:31
2021-08-12T10:48:31
266,500,311
1
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
daemon_process.py
#!/usr/bin/env python # encoding: utf-8 import multiprocessing import time import sys def daemon(): p = multiprocessing.current_process() print('Starting:', p.name, p.pid) sys.stdout.flush() time.sleep(2) print('Exiting :', p.name, p.pid) sys.stdout.flush() def non_daemon(): p = multipr...
267cb37f2ccad5b02a809d9b85327eacd9a49515
e0cc928bf39caf9a6c09b78bbef335f067d17586
/main.py
32b2c3c47061e61f8c1a807d65ac0d9dfe42f22f
[]
no_license
mepesh/python-webhooks
3dc545a71386de652f499adc3f661ae381c7bbe9
4d45bc66b8a9a5d972e89f643fecbaba53fe81a2
refs/heads/master
2023-05-26T18:39:07.891932
2020-07-16T01:48:14
2020-07-16T01:48:14
249,669,342
0
0
null
2023-05-22T22:42:42
2020-03-24T09:47:43
Python
UTF-8
Python
false
false
16,914
py
main.py
from flask import Flask, jsonify, request import requests, json, random from bs4 import BeautifulSoup import gspread import pandas as pd import dataservices as dss from oauth2client.service_account import ServiceAccountCredentials # page = requests.get("https://www.worldometers.info/coronavirus/") # soup = BeautifulSou...
0555c577a8fb746cf2debb929d02b46cd3be4d7b
d71d5797b52008f409c23e126d55ccfdd2692ba0
/lesson3/6.py
eacdde67f049efc15ac828caa2f5b9b3340b02d3
[]
no_license
timliakhor/geekbrains_python
6a77942755bfad4efc80c0abe0a34c499d68d433
07cb6ac945335cc6863adff5f11dbfe030943a3b
refs/heads/main
2023-03-28T04:25:21.706803
2021-03-28T08:51:54
2021-03-28T08:51:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
6.py
from typing import List def uppercase_first_letter(string: str) -> str: return string[0:1].upper() + string[1:] string_list: List[str] = input('Please, input string: ').split(' ') result: str = '' for i, value in enumerate(string_list): result += (lambda index: '' if index == 0 else ' ')(i) + uppercase_fir...
8355faf7c0d3742be34a56ddc982cb389c80d0a9
6f23f9ed79b3c4829aecd02bd992784a012afc25
/tests/unit_tests/utilities/model_manager_test.py
4bb2b823b9480eb58b5ac78db4c7b7ebf2cd8dc5
[ "BSD-3-Clause" ]
permissive
BigRLab/ml-base
81c8cbf28c13f5bb242a94a33155b48588248904
0942703ba6595f01a2599287c2679639d4d61fe4
refs/heads/master
2023-01-05T20:18:44.446193
2020-10-13T11:59:54
2020-10-13T11:59:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,037
py
model_manager_test.py
import unittest from traceback import print_tb from ml_base.utilities.model_manager import ModelManager from tests.mocks import MLModelMock class ModelManagerTests(unittest.TestCase): def test_model_manager_will_return_same_instance_when_instantiated_many_times(self): """Testing that the ModelManager wi...
8ec18e259af1123fad7563aee3a363e095e30e8e
5ccd7737f0c5c787e66e6be5cd28496c5b20546e
/sfotipy/songs/models.py
c108aa97b48158d63ec094b007950748a7ab3120
[]
no_license
adrian-zumbler/Taller-Django
8dc8a15478872fa5e25a3edfe059861e63ba7b39
8999de91fad273fa5e7e7d1abda61c7a7ccc86bf
refs/heads/master
2016-08-12T07:50:51.697843
2015-11-12T03:38:32
2015-11-12T03:38:32
45,886,376
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
models.py
from django.db import models from albums.models import Albums class Song(models.Model): name = models.CharField(max_length=255) filename = models.FileField(upload_to='canciones/') album = models.ForeignKey(Albums) def __unicode__(self,): return self.name
f7d3096d669946e13186a893ffc53067e0fd0a0a
29dfa1deefc72493d1b1eecf1a8df62e24599a77
/test_data/init.py
294012a7df862802fa71e124ed277d889e51e32a
[ "Apache-2.0" ]
permissive
log2timeline/dfvfs
fd301eaf721a9945641a44ff722aec963158a6b3
28756d910e951a22c5f0b2bcf5184f055a19d544
refs/heads/main
2023-08-07T22:45:45.432668
2023-07-30T12:17:56
2023-07-30T12:17:56
23,820,144
197
65
Apache-2.0
2023-07-30T12:17:58
2014-09-09T05:06:44
Python
UTF-8
Python
false
false
252
py
init.py
# -*- coding: utf-8 -*- """Digital Forensics Virtual File System (dfVFS). dfVFS, or Digital Forensics Virtual File System, is a Python module that provides read-only access to file-system objects from various storage media types and file formats. """
84980b8923fa25664833f810a906d27531145141
81c1cfa4e43fe5b6bca2bc2aa87a107858e5fd41
/tesseract_module.py
d18feebd10178d811796295155cca2af674352fd
[]
no_license
Camebax/DMC
a43d7013e037075933e463a9ea503541f2c4b4d7
7f3a04198adf0845eae4cb49478f073107887f08
refs/heads/main
2023-06-28T22:22:17.879310
2021-08-08T08:09:01
2021-08-08T08:09:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,974
py
tesseract_module.py
import cv2, os, fitz, shutil import numpy as np from PIL import Image from pytesseract import pytesseract from PIL import UnidentifiedImageError pytesseract.tesseract_cmd = 'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe' config = r'--oem 3 --psm' # Возвращает путь к картинке, созданной на основе 1 ...
bb208d40ce098b05594aaf9c579f64b909738d52
01ff1363eb0036fcf18079d4af8917d9d3ff115b
/assembly_report.py
88f18398d668f5e240c9269022aa60621aaa7483
[]
no_license
dmamonov/dbperformancetest
1a7f30371f25d297112f79d9a99556823a90a6e4
2894bb2539a8cb518c0fc0776f42ab486760bd81
refs/heads/master
2021-01-01T19:16:06.170559
2014-08-15T10:57:50
2014-08-15T10:57:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,891
py
assembly_report.py
#!/usr/bin/python import os; import math; # os.chdir('data/postgres/linux.env') os.chdir('data/mysql/linux.env') # os.chdir('data/mongo/linux.env') col_time = 0; col_read_ops = 1 col_read_err = 2 col_write_ops = 3 col_write_err = 4 class ColumnData: def __init__(self, chart, title, data): self.chart = ...
84515ef6879b54b333f9afd48c6c4b7c43ff6957
0b260cfc4feff284874edc8c0767982a5ec1d3dc
/DynamicProgramming/120_Triangle.py
045ce202558322c93e86680dc84b5a614bbad142
[]
no_license
Xu-Guo/GQQLeetCode
9b3bac2ed76c8204e24674ff0e1b4c335ef14ea3
174277225dffa23b2bb712d2bd41bf6d77abc04e
refs/heads/master
2021-01-19T15:25:30.876905
2017-04-10T23:08:36
2017-04-10T23:08:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
120_Triangle.py
class Solution(object): def minimumTotal(self, triangle): """ :type triangle: List[List[int]] :rtype: int """ t = triangle if len(t) == 1: return t[0][0] ret = [0] * len(t) ret[0] = t[0][0] for i in range(1, len(t)): fo...
1bbadf02c4b9ca22a0099bcc09fa4c62c9901c39
e11098cf333dbc61c1947c0cd6cd13e1ca988196
/app/posts/models.py
1b51d938477673788cf2fcb51f2481b0e93ebd50
[]
no_license
jeonyh0924/igloo
2b7a328c5c4aeaaedebf701b4510ece2f6998f42
34158826ed1a715702d61598a82645cff09de680
refs/heads/master
2022-12-10T07:47:58.601303
2020-03-22T12:12:36
2020-03-22T12:12:36
230,484,324
1
1
null
2022-12-08T03:35:53
2019-12-27T17:18:56
Python
UTF-8
Python
false
false
5,872
py
models.py
from django.conf import settings from django.db import models def get_image_filename(instance, filename): a = f'post_images/{instance.post.title}.svg' return a def get_main_image_filename(instance, filename): a = f'post_images/{instance.title}_main.svg' return a # Create your models here. class Po...
428bb03abbe2fe5bd89c962171c0fafe6dc431e8
45e03dd61493195cbbbce14fa54a787715c7c1fb
/Python_String_Methods/join().py
451482d552971a44f3fb4687921de1c666b61474
[]
no_license
VaishnaviReddyGuddeti/Python_programs
c55ee69c05d78a70a44385ee2e66365f69546035
309a1786fa5a3886d516cd49eb09f9cd847389df
refs/heads/master
2023-02-17T03:41:31.480858
2021-01-14T15:39:52
2021-01-14T15:39:52
279,762,059
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
join().py
# join() - Joins the elements of an iterable to the end of the string # Join all items in a tuple into a string, using a hash character as separator: myTuple = ("Janu", "Parth", "Vikram") x = "#".join(myTuple) print(x) # Join all items in a dictionary into a string, using a the word "TEST" as separator: myDict = ...
0958897108da7210fb4bf84c103374c6f2d32e9e
f62aef060fca13acf4ee5430ca40f3c8a0cadf22
/CSC 231 - Intro to Data Structures/Exercise 8/08PalindromesDetection.py
d2937a9fd0cc6036397509ec8982969103b2f880
[]
no_license
rmj23/Python-files
8999b791b44012a7a7697f831ce4750f34b6b41b
ef84298d10b989812bd217760dd5e04aae2aa077
refs/heads/master
2020-04-04T12:45:17.147131
2019-11-18T19:16:29
2019-11-18T19:16:29
155,936,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
08PalindromesDetection.py
# Day 8 Exercise (will be counted as Programing Assignment 4) """ 1. Download and include the Deque class in your project 2. Read in a string from the user 3. Define and call a method is_palindrome that returns True if s is a palindrome and False otherwise; 4. Don't worry about spaces or punctu...
475e61ad6bc139e22e3fe56ea0bce5c1d9972bc0
3f03f0ef5f115cbc87398d7c09b526749c0f5a6c
/src/daemon/core/services/quagga.py
6ff11495170014d3bbec9a698be43f781afbd49a
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Benocs/core
d20f10696761ec21edc7e33b4c9c98bdd4a44f2d
5ec0e02bd97b5055e81fbc66966ca74fa530548a
refs/heads/master
2021-01-01T19:01:36.697378
2016-12-13T13:17:37
2016-12-13T13:17:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
33,565
py
quagga.py
# # CORE # Copyright (c)2010-2012 the Boeing Company. # See the LICENSE file included in this distribution. # # author: Jeff Ahrenholz <jeffrey.m.ahrenholz@boeing.com> # # # Copyright (c) 2014 Benocs GmbH # # author: Robert Wuttke <robert@benocs.com> # # See the LICENSE file included in this distribution. # ''' quagga...
91176fd66c767f3f399cffc93535dad8988a8658
f773600e418f9cab541aec52435292c454050046
/ligue_des_etoiles.py
23c659ff78b847ca1679ad29d402fde547087274
[ "Unlicense" ]
permissive
SPSquonK/FFWTTLigueEtoiles
57878843616549bc092772942c488f5233fef29b
8cfed57128bc761c149ca6e7952d714beb0ae6f3
refs/heads/master
2022-07-24T00:17:02.042229
2020-05-16T17:18:55
2020-05-16T17:18:55
258,039,584
0
0
null
2020-05-16T17:18:56
2020-04-22T23:01:03
HTML
UTF-8
Python
false
false
12,433
py
ligue_des_etoiles.py
import re import sys import pprint as pp from collections import OrderedDict rewards = [] list_of_players = OrderedDict() list_of_other_names = {} removed_names = {} rules = OrderedDict() rules["+ ="] = ("red", "+ = alea") rules["mm ma"] = ("orange", "mm ma elem") rules["mp + ="] = ("blue", "mp + = alea") rules["mp"]...
f614f200270b3fc7e1cbe85c282861a1e77d1d56
fa63adf25ef83c647dde6365a41937695429268c
/Implementation of Data Structure & Algorithms/1042.py
99532f0e79940fb70bf771f5abd47b5ed2c1ade9
[]
no_license
BlackBoxSQL/Problem-Solving
96b2fd541ee81178ae4d5c84ce5aa3f333441a19
9560b847d90136ea2ce98e5b9de398ea6c57f6bf
refs/heads/master
2021-05-26T07:41:42.453280
2021-03-31T08:45:28
2021-03-31T08:45:28
127,932,374
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
1042.py
def sortem(numbers): for i in range(len(numbers)-1, 0, -1): for j in range(i): if numbers[j] > numbers[j+1]: temp = numbers[j] numbers[j] = numbers[j+1] numbers[j+1] = temp numbers = [] for t in range(3): numb = int(input()) numbers.appen...
f301a585f2aa73d090bea3f4400ecc5af4babd85
6936fed224ba0bda6c5f899a4c31dbf2df24a533
/src/data_structures.py
7fffcd1ae3b696241bfa5c25211827ecf94d119e
[]
no_license
bonaert/hashcode-2020
0a752e8b92406e8ab5646a7ba65d6c426766e450
a32eaddd38773e53620ec3cee6c642312bd801e0
refs/heads/master
2022-04-11T11:29:06.893726
2020-02-20T21:05:13
2020-02-20T21:05:13
241,884,017
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
data_structures.py
from dataclasses import dataclass from typing import List, Set @dataclass class LibraryScans: library_id: int time_at_which_it_was_signed_up: int scanned_books: List[int] @dataclass class Library: id: int sign_up_time: int ship_per_day: int sorted_books_by_score: List[int] @dataclass c...
1dc408f4d1094d5c597f842fcbc03a1310c0239c
92da6d0aab06e2d8ed6ec4b7e81d01c77b875bb8
/helpers/__init__.py
2cf0afd97e99fe0504e38f098ef39b529413a334
[]
no_license
Quitten/Autorize
b4629b295da1b20d6b9344471e321c9fefbaec0f
65b5cfdf764a92c053994ebc0ce295868fcc6d1e
refs/heads/master
2023-08-10T09:09:33.216274
2023-04-11T17:37:35
2023-04-11T17:37:35
30,739,183
764
162
null
2023-06-18T20:55:55
2015-02-13T03:47:50
Python
UTF-8
Python
false
false
110
py
__init__.py
#TODO # - Disable buttons when saving state/restoring state/export # - Add full headers in addition to cookies
4b1a85adb4cb0c503f1f6bc9a974136c77d58c24
93e0f73b1f1e21cbd22a0bf0fd8d7c3d2eeda656
/Selenium/dailyRankingInfo2.py
e6004f3dd6691181983afe12d3e0d16c8175d933
[]
no_license
fj2008/python
0254d8d6c7ee528b3369cb2fa0a7b8f563371390
60211bb0ed970bb5df56246ad376d9c3aa0781cb
refs/heads/master
2023-04-01T09:33:44.296561
2021-04-09T09:05:55
2021-04-09T09:05:55
351,632,907
0
0
null
null
null
null
UTF-8
Python
false
false
3,157
py
dailyRankingInfo2.py
''' 어제, 오늘의 랭킹 데이터를 불러와 오늘의 랭킹 데이터를 출력할 때 어제 보다 몇 단계 올랐는지 함께 출력해주는 프로그램 ''' from datetime import datetime from datetime import timedelta import argparse today = datetime.now() today = today.strftime("%Y%m%d") parser = argparse.ArgumentParser() parser.add_argument("--date", type=str, default=today) args = parser.pars...
fb987437698afdef3088432ea0decedbe8d188f6
3a6a211ea0d32405497fbd6486c490bb147e25f9
/dashboard/dashboard/pinpoint/handlers/cas.py
5fad3b0e730b1a7921a8283a4a33bdb2abd6676a
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
4,587
py
cas.py
# Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Service for tracking CAS reference from RBE and looking them up by builder and commit. RBE is the Remote Build Execution used for building and storing the...
9cce9a77baa8b5e3175876d02926802ed0bfeb31
5e539e8373d9c2f70849bc7ffaae05b524e04d2f
/start.py
dc44c4d76c710cf0c2dcf19cd069f639a66c9ab2
[]
no_license
koorya/cnn_zmq_service
05e3033f78cc0df0406bc19d90f28ba699e7bb5a
1f84f312212f7c4792ff38ed02084335c5bf9ee3
refs/heads/master
2023-02-27T13:19:21.606206
2020-11-20T15:36:30
2020-11-20T15:36:30
304,259,655
1
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
start.py
import sys import argparse from json.decoder import JSONDecodeError import zmq import json from json_coder.py import CustomEncoder, decode_object from json_coder.py.messages import ServiceTask, CNNTask, CNNAnswer from cnn.cnn import * cnn_model = './cnn/config/model.json' # граф нейросети cnn_weight = './cnn/config/be...
b13234e684606f101f5e0bf77b1890e0696e50ac
b160954308fc9e84d0f7a654af44d6d8d89f2c55
/KotelculatorScript.py
308fb793358de29a3667b67f17f9da9daf50910a
[]
no_license
MortalCoder/Kotelculator
8a431cd04a80e18df79dabcd06dd28a4b75e0bcd
92c9eebf3466db1eca6795e25d77260fe1c538a0
refs/heads/master
2022-12-25T20:10:20.584520
2020-10-02T18:51:30
2020-10-02T18:51:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,776
py
KotelculatorScript.py
import tkinter as tk # Colors' constants Colors = {'BorderCol': '#388C77', 'BgCol': '#4B9985', 'FgCol': '#A7C7B5', 'YellowCol': '#C5CC04', 'BlackCol': '#000000'} # Creating main window's widget Kotel = tk.Tk() # Constants for storing window's size and position HEIGHT = 500; WIDTH = 600 # Padding...
c776b8e6f63a50425f6f35b5b3a90a6981b788e6
58506ca78efcba849e3885887669c2e48ce00db6
/params.py
f2e1c155411ca177e38a9ed858be9a8f3c2023c3
[ "Apache-2.0" ]
permissive
aakamishra/hyperband_benchmarks
96c1bc891aa7793cb3b5d507da5f4e3e24b2cd7e
f73b38dfd4337b23662c6ff412aa2bb99e1819c2
refs/heads/master
2023-03-16T01:51:12.428411
2017-04-07T06:43:15
2017-04-07T06:43:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,165
py
params.py
#!/usr/bin/env python2.7 import numpy import random import copy class Param(object): def __init__(self, name, min_val, max_val, init_val=None, distrib = 'uniform',scale='log',logbase = numpy.e, interval = None): self.name = name self.init_val = init_val self.min_val = min_val self.max_val = max_val ...
ef98c86d9481263f1d063640eb1a4ea501089119
e6e03fbe1a614133ecb5a121c6f6400fee04d02c
/core/forms.py
05a90dbc2a26387252f7659f4197b6ab87467674
[]
no_license
VinGitonga/Django-Student-Management
4c955101b7b88a8b1fcb044a4296f3fc9e92a836
497554c656655744da4fa80b28ecccc7215b2596
refs/heads/master
2023-06-20T21:42:31.171614
2021-07-20T03:55:50
2021-07-20T03:55:50
387,529,326
1
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
forms.py
from django import forms from django.contrib.auth.forms import UserCreationForm,UsernameField from django.db import transaction # from django.forms.utils import ValidationError from .models import User, Department, Course, Student class UserForm(UserCreationForm): class Meta: model = User fields ...
6284dba5317a1f15b0c4a2770f5859126a517706
b4993af5be0ce34b166f4acb3a1a1208103fd0bb
/SelectByRegexCommand.py
d8f6205cedfcbd1b1cbe8a36ae7f6eef84a687e0
[]
no_license
klorenz/SelectByRegex
4dd46555a04fcd9a4bb2ab55efcc53bb4c07f732
8929e2ea71830fb4ecba2817ddfe94dc98000074
refs/heads/master
2021-01-18T02:19:54.728245
2013-10-28T14:34:55
2013-10-28T14:34:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,544
py
SelectByRegexCommand.py
import re, sublime, sublime_plugin ST3 = sublime.version() >= '3000' class SelectByRegexCommand(sublime_plugin.TextCommand): previous_regex = "" original_regions = [] def description(): """ Part of the plugin API, description returns a string describing a command """ re...
a8ce735eb0f49c9a6db9e7450524f74c54123538
30a56531ae8bae208cc7efe57d93548541299288
/environment/migrations/0001_initial.py
c39e3209f02806a69ec71ea429d41c0a47c85896
[]
no_license
kiptoo-rotich/pollution
b07d6ec557ee4e842d73db6cb98880b4c059cb9e
ab23ece19596c69db23220af263c8ce4a92a89b5
refs/heads/master
2023-06-25T09:19:19.213447
2021-07-28T22:03:21
2021-07-28T22:03:21
390,518,761
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
0001_initial.py
# Generated by Django 3.2.5 on 2021-07-27 15:41 import cloudinary.models from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('...
ef18208010a211e877d959015d4b028144adce6e
a500053189be958d80208a362ddc72418bb111fd
/개별/Module_0227_12th/FuncEx01.py
b0c55503dab5a8b7f6562e233025cd90d676671f
[]
no_license
godls1650/BytePy
82b7a569be201327372239eb0a2427149ca98531
20b426f05c124d777cbd1b8ee60d16c9f9ad1344
refs/heads/master
2022-10-21T15:51:07.865087
2020-06-17T12:58:29
2020-06-17T12:58:29
256,214,012
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
FuncEx01.py
# 함수안의 변수의 효력 범위 # GLOBAL VARIABLE : 0개 def func(x, y) : global var var = var + 1 def func2(x) : x = x + 1 return x def mypow(x = 2, y = 2) : return x ** y def testPrinting(): global test # 외부의 변수에대한 바로가기 print(test)
ded6d056cb74fcba4ac1650cffd9d1dc4695a277
9f6865943a9d473bfa89a8a01e79a569e515ee7d
/hashid_field/__init__.py
bdf54134d1b48b19d61d99fdfbfd25fb5115d731
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
nshafer/django-hashid-field
f1c8b9662baafcd67791431ec4a1d1a65ceb61c1
829a460c47e98f182e6fa609164fbabd2ad6014c
refs/heads/master
2023-07-02T18:17:25.813422
2022-10-18T19:13:20
2022-10-18T19:13:20
69,611,679
366
42
MIT
2022-12-02T23:38:35
2016-09-29T22:04:50
Python
UTF-8
Python
false
false
318
py
__init__.py
from .field import HashidField, BigHashidField, HashidAutoField, BigHashidAutoField from .hashid import Hashid __title__ = 'Django Hashid Field' __version__ = "3.3.7" __author__ = 'Nathan Shafer' __license__ = 'MIT License' __copyright__ = 'Copyright 2017-2021 Nathan Shafer' # Version synonym VERSION = __version__
bf8893db6c522f8e6d0f7e1470b0c11b3b887829
d42718db956da3a07a5cf008fb5fd6ab0ba3f878
/models/car.py
8891982a2a57edbcf6920a60e843a194117200a6
[]
no_license
Alvarlegur/Isbilar_1.0
7c06aeb767d40e2ddfd20ea841f0acbfb896650b
e832a253f5153e05ac4996345ff20ea8e650ae31
refs/heads/master
2020-04-09T15:19:28.033384
2018-12-14T18:24:43
2018-12-14T18:24:43
160,389,169
0
0
null
null
null
null
UTF-8
Python
false
false
1,317
py
car.py
class car: #defining inital class instance def __init__(self,licensePlate, manufacturer, typeCar, manOrAuto, fuelType, priceGroup, manufYear,availability): self.__licensePlate = licensePlate self.__manufacturer = manufacturer self.__typeCar = typeCar self.__manOrAuto = manOrAuto ...
89cf4496645f236b748bb65e1669fd0577736a32
300995b3b2c431cb705e1164d023c642b62e626b
/Desktop/yayın/dosyayukle/migrations/0001_initial.py
2f7b0533b5b1e181cf20aeeb5ea66dcd3287cc33
[]
no_license
orhunakar01/hekimbeyosgb
b293b4952b5e839dc53f385493455cd96e3297a5
e6dbc808d49e95a7b666c7b3f91ef5bbd5f4b41b
refs/heads/master
2023-01-11T14:54:57.488348
2020-11-12T09:58:35
2020-11-12T09:58:35
312,235,466
0
0
null
null
null
null
UTF-8
Python
false
false
1,856
py
0001_initial.py
# Generated by Django 2.2 on 2020-10-19 13:31 import datetime from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('evrakAdi', '0001_initial'),...
91374115f37bc4a9817db2bfa29964831249b360
8644a2174c3cb7ccfe211a5e49edffbcc3a74a46
/HackerrankSolutions/ProblemSolving/Algorithms/String/Medium/new.py
abb19a5c01777b17952e49e753a662444b54743d
[]
no_license
bhavya2403/Learning-Python
9e7cc9dee21172321fb217cae27c8072357f71ce
3898211b357fbab320010a82a4811b68611d0422
refs/heads/main
2023-03-24T03:19:49.989965
2021-03-22T20:11:04
2021-03-22T20:11:04
315,962,811
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
new.py
def maxPal(s, l, r): s = list(s[l-1:r].rstrip()) max_len = 0 mid = len(s)//2 lo = 0 hi = len(s)-1 while max_len < mid: i = mid-1 j = mid+1
6f2827e2295f5b44332cf2d4153684e427303279
6f287d695ea21a08a0420ee9fe22c1bf6a68a8dc
/econopy/rents/capitalizacion.py
03d424677c0afe7f03096f9755115a08f68b037a
[ "MIT" ]
permissive
vishalbelsare/econoPy
e250bbe40f94e97b6db0a32b0b76ddf090d82ec2
33844fb537f3fd6ad281f7c5200b6444273a8946
refs/heads/master
2022-03-18T08:33:26.023505
2019-12-03T22:29:48
2019-12-03T22:29:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
capitalizacion.py
"""Capitalizaciones financieras .. llevar dinero al futuro.""" def capitalizar_cantidad_compuesto(amount, rate, periods): """Capitaliza una cantidad de dinero. Un determinado número de períodos por el metodo compuesto, los cuales han sido pasados en los parámetros. """ return amount*(1+rate)**per...
579518025dbc3315c0d0a311428a6a2cdcc1c1d9
106b1940ebf0bab67853097e3cb93eb31cfdbccb
/com/spider/case/stock/stackcode.py
576343ab41a31867752de3f95aa1833619cb43a5
[]
no_license
BobOfRivia/spider_first
eea64ee84593e6094f43a99211c91f11519cee36
4bc9dafc19b59150bc61b12a4f0605f818b4d354
refs/heads/master
2023-07-08T09:47:55.760314
2023-06-27T07:45:46
2023-06-27T07:45:46
98,788,977
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
stackcode.py
import requests import re ## 爬取所有股票号 stackUrl = "http://quote.eastmoney.com/stocklist.html" def gethtml(url:str): html = requests.get(url) html.encoding = 'gb2312' return html.text def getcodeList(html:str): reg = r'<li><a target="_blank" href="http://quote.eastmoney.com/\S\S(.*?).html">(.*?)\(' ...
9d0f6f4ad018ac1952c426fe557348528d1cc37a
d78a217b59052076159daed016f2e409d1b1b68d
/tests/conftest.py
959b1c468453b11d74634a6e491b4734ff0764d3
[ "MIT" ]
permissive
li8bot/pydngconverter
ed4b8c4907ff589a48a01573ef1fd1d1637f32a3
fb8e9e72c5bf1c1e9fe471278395b485bfe475bc
refs/heads/master
2023-03-20T20:23:38.467968
2021-02-15T00:24:35
2021-02-15T00:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
conftest.py
# -*- coding: utf-8 -*- """PyDNGConverter test config.""" import pytest from pytest_mock import MockFixture @pytest.fixture(autouse=True, scope="session") def mock_wand(session_mocker: MockFixture): session_mocker.patch("pydngconverter.main.Image")
5d3ad1a60de239f990228f6540f3c27e007666b3
b39ccb541771b40176ccd52cbbc719e26d3e77ef
/checkinfo.py
f3bfb40b4af6f3191aaed7e5093ed2825dc465d3
[]
no_license
kxwang2016/ccl-utils
6a8a8c9e228a6d451cb367a7f08863b0916d8431
694bc3cfb6bb136ba9340df68bc0c0e92f5b819f
refs/heads/master
2020-09-22T23:11:08.822005
2016-09-22T17:46:56
2016-09-22T17:46:56
67,741,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,612
py
checkinfo.py
#!/usr/bin/python import getopt, sys import ccl from ccl import * from collections import defaultdict def usage(): print '%s --class <classname, eg. B1P> --csv <csv of student registration sheet>' % sys.argv[0] def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'h', ['class=', 'csv=', 'help']) ...
599836a9069d8ad288765925f1e955dd37d25129
35e5d6f189855f95ac4f1fbd728dc15e4012136e
/python/python_web/django/django_site/app/urls.py
369cf952a49cb3040edc472b70b6a369e78891fe
[]
no_license
dotheright/mylovelycodes
012517d85240b63c2b1c3f15580f9f314e591024
0e585b7d716f9f63a7b79dccbdf189193f4bf0c5
refs/heads/master
2020-12-22T20:55:51.965688
2018-10-05T10:09:09
2018-10-05T10:09:09
28,511,833
1
2
null
2016-06-21T20:23:55
2014-12-26T13:41:58
null
UTF-8
Python
false
false
487
py
urls.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################### # File Name: urls.py # Author: guoqingyao # mail: stepbystepto@163.com # Created Time: 2017年09月23日 星期六 13时19分04秒 ######################################################################### from djang...
f0799e0c340391d91c5d524c7c3f1a54e67a69dd
9b5987770ac33eb4b263f0ccd52d72978b61581e
/test_fb.py
547bd049e76b67e8c93c4a2e707623187118f9f0
[]
no_license
Nagendra6231/jenkin
9157fb25b8ba8a58cc9f54b7d2e45eee5d06ba02
1cf514fb4d446b56b3e477e8e981cd7de1885fdb
refs/heads/master
2023-08-21T17:55:23.202576
2021-10-17T18:27:08
2021-10-17T18:27:08
418,077,861
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
test_fb.py
import webbrowser from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options import time import pytest class Testfacebook(): @pytest.yield_fixture() def test_setup(self): global driver option1 = Options() option1....
64e72b401c6a81e896ac056930e8b4512eb36689
76e4804ecfbe159869f9ecd6a0b6f8c47a05faea
/dcgan/nn/discriminator.py
fa65f8c5ba6f66275ebb114abf99822f30efe4a3
[ "Apache-2.0" ]
permissive
cheremushkin/gans
4bd5291e281842b0e3951755bda64a75fa1eb601
310f418c5b27534646d37ee08f84897aefbc9ea7
refs/heads/master
2023-08-24T17:13:45.156923
2021-11-01T21:31:53
2021-11-01T21:31:53
419,895,905
0
0
Apache-2.0
2021-11-01T21:31:53
2021-10-21T22:35:00
Jupyter Notebook
UTF-8
Python
false
false
2,095
py
discriminator.py
import typing as tp import torch import torch.nn as nn class ConvBlock(nn.Module): """ ConvTranspose2d -> BatchNorm2d -> ReLU """ def __init__(self, in_channels: int, out_channels: int, kernel_size: tp.Tuple[int, int] = (4, 4), stride...
4f186014f29f3d34152052e7184aaca296182111
e798a53f53af0d960e00d8523e5ea3991a7f20b3
/server/api/migrations/0001_initial.py
85c6a8d93bd2cade223279381fdab7dcdbc363ae
[]
no_license
denis96z/iu7-project-neural-networks
98ef8aa4b66ca1eb313ba9b64dcad2f9204b3483
70c1a603b8f0e846b986c50da0eadd534599e07a
refs/heads/master
2022-12-10T21:46:07.437961
2018-10-06T11:50:01
2018-10-06T11:50:01
135,077,577
1
0
null
2022-11-22T02:30:21
2018-05-27T20:02:12
Python
UTF-8
Python
false
false
3,458
py
0001_initial.py
import api.models from django.db import migrations, models import django.db.models.deletion import django_resized.forms import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ChineseCharacterImage', ...
5020def69707779236226b34758d287e21c3a9ec
a93093449511a8f7395f52616ad17a9584cff1a0
/PyPokerEngine-master/pypokerengine/utils/visualize_utils.py
f2a9d110a6d6900e44f62990df37840b603c96d2
[ "MIT" ]
permissive
kwonseungchan/Alpha_Poker
643582e965938bc30b1476671a3525cd24e58f36
968f3c879b5e79ae5ebb7fc0ea4a21b8e7d4ea41
refs/heads/master
2020-08-31T18:13:13.543919
2020-01-13T08:57:36
2020-01-13T08:57:36
218,749,986
4
1
null
2019-11-26T17:31:42
2019-10-31T11:25:14
Python
UTF-8
Python
false
false
8,226
py
visualize_utils.py
from pypokerengine.engine.tts import tts import time DIVIDER = "="*70 def visualize_game_start(game_info, uuid=None): ls = [] ls.append(_visualize_title("Game start", uuid)) ls.append(DIVIDER) ls.append(_visualize_sub_title("rule")) ls.append(_visualize_item("%d players game" % game_info["player_nu...
de66c8251b54e9826a240decdbfb0e18559c6de4
1bb4111306377aae3af3f9c49785c01400b3aaec
/server/api/__init__.py
bc061c546a1480787b081d72f1c8e758d9eb0eaa
[]
no_license
Wraith29/TrelloClone
d1f35ed31fdc4167c12762e4968a2afc64ef8caf
ad0ac28c860667c1375987b4deae641a1e1042de
refs/heads/main
2023-05-06T03:35:32.619093
2021-05-28T15:59:57
2021-05-28T15:59:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
__init__.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from api.config import AppConfig # importing the configuration app = Flask(__name__) # creating a flask app app.config.from_object(AppConfig) # configuring the flask app db = SQLAlchemy(app) # linking the database