blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
d8d41ae91224bf4537d44f0b7ab5700facdbe029
7be65d5792bcb270673c7b0279fecdb82ba6bbac
/server-minimal.py
1c382f34cb22e9ec4ccd08d567e31896a03d0792
[]
no_license
niko9797/make_opcua
63dcb6796a5ded50015b8c03cf2a19189c564d3b
eff4fd2c124699d6519022c29ced3a962d0beb09
refs/heads/master
2021-01-24T03:52:46.148866
2018-02-26T13:52:23
2018-02-26T13:52:23
122,910,789
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
import sys sys.path.insert(0, "..") import time from opcua import ua, Server if __name__ == "__main__": # setup our server server = Server() server.set_endpoint("opc.tcp://localhost:4841/freeopcua/server/") # setup our own namespace, not really necessary but should as spec uri = "http://exampl...
31640ba88e52306b8f9a5469864d401ce4d992e4
f101fe75892da8d7b5258d22bd31534d47f39ec1
/feature.py
039980b31ea2d443121913c748e60ed024f11554
[]
no_license
xianjunxia/Acoustic-event-detection-with-feature-space-attention-based-convolution-recurrent-neural-network
2ae9d4d0148f5082cc6739f753bf750e1940ecfb
d2a7b36700e798e0da02d3efebb27cd340235f36
refs/heads/master
2020-03-22T17:11:53.028900
2018-07-10T05:15:32
2018-07-10T05:15:32
140,379,734
1
0
null
null
null
null
UTF-8
Python
false
false
8,150
py
import wave import numpy as np import utils #import librosa from IPython import embed import os from sklearn import preprocessing import scipy.io as sio def load_audio(filename, mono=True, fs=44100): file_base, file_extension = os.path.splitext(filename) if file_extension == '.wav': _audio_file = wave...
c52b1c6c264352ca8f6c39666cd4b3d7f7e23005
555944b5b196fc6e52db6abd913c8cd7eaa00c0a
/HW7/test_FizzBuzz.py
6537d71235828ab0a8b797cdae6248a4aba9fce4
[]
no_license
shinhoj01/CS362
bdd4d8fd1ee5e5f866d5a3432478701890204af6
34dddbb108eff3448af84f8687772202f0dcbfef
refs/heads/main
2023-03-22T00:45:15.184379
2021-03-03T10:19:33
2021-03-03T10:19:33
334,580,473
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
import pytest from FizzBuzz import fizzbuzz class TestCase: def test(self): # lists of inputs and outputs inp = (2,3,5,9,10,15,55,75,99,100) otp = [2,"Fizz","Buzz","Fizz","Buzz","FizzBuzz", "Buzz","FizzBuzz","Fizz","Buzz"] # Used map to apply the function to list ...
84ea5c637ee27630e4f66977e073aaeeb817e3da
d127e063dd6578a08f48cd4fdff626047a6ee080
/todo/admin.py
9f2b1bfd5e480f55eac46b92ed7cef23e5a60730
[]
no_license
nagarjunnas/Todo
571c33fd6eac3dc603da7283e4d60e88c9362910
2610b86243056b4e8d0d84c61deae8a3518e7307
refs/heads/master
2020-04-01T04:56:22.858222
2018-10-13T15:37:25
2018-10-13T15:37:25
152,882,708
0
0
null
null
null
null
UTF-8
Python
false
false
1,171
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import csv from django.http import HttpResponse from django.contrib import admin from .models import Todo # Register your models here. class TodoAdmin(admin.ModelAdmin): search_fields = ['title'] list_filter = ('status','created_at', 'modified_at...
7c9975bd2527fff01822ea1ebc940d8c3c0a8bc8
37d8a02e4976a8ca516500d5b9d2fa6626c2b9e3
/A_Scorecard/example/test/scorecard_functions_V3_test.py
6bb0dd6dc82772ca9a4635b439dd71e7090a3287
[]
no_license
sucre111/xiaoxiang_fengkong_peixun
b0bb59243346fc02fea8126d729af1fb29bf907d
5eac4e3011e5bbc7e59e79296c12e81074166551
refs/heads/master
2021-09-17T05:16:19.362017
2018-06-28T11:33:29
2018-06-28T11:33:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
#conding = utf-8 import pandas as pd target = "y" from example.scorecard_functions_V3 import * train_data_file = "D:/conf_test/A_Scorecard/application.csv" def BadRateEncodingTest(): df = pd.read_csv(train_data_file, encoding = 'latin1') # 处理标签:Fully Paid是正常用户;Charged Off是违约用户 df['y'] = df['loan_s...
9b65587d2edd34c01f8d3c9311f82ec3d053bda6
0d54e167332199c80e75fa00489dac6c590e3ff3
/MFE.py
15057e6203a76b55cfff767ae4d8b46692216e6f
[]
no_license
TudorCretu/PI-LSTM
4ab1cea8e2ec62a31ce41f6c49b367ca9e47f638
ea2efa71f722746900915c38bb2729805282c82a
refs/heads/master
2022-07-22T15:01:57.924019
2020-05-18T16:32:28
2020-05-18T16:32:28
264,999,161
4
0
null
null
null
null
UTF-8
Python
false
false
15,477
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import h5py Lx = 1.75 * np.pi Lz = 1.2 * np.pi Re = 600 X = 0 Y = 1 Z = 2 alpha = 2 * np.pi / Lx beta = np.pi / 2 gamma = 2 * np.pi / Lz Kay = np.sqrt(alpha ** 2 + gamma ** 2) Kby = np.sqrt(beta ** 2 + gamma ** 2) Kaby = np.sq...
95a262821a56a75e0139657f3d8ad7f45772edde
b1edca0e9ea6171493d8cb4232f5c1fc35e853ed
/SVF/tissue-bw-prop.py
3c9aa9a048fcd01b451a31f5b95daed9a591e3d3
[]
no_license
leoguignard/Mouse-Atlas
bcceeb2ba56d5adeb1ab2a5590c28b73f84dd865
d2985fbb6251b60a5830a4d5e7e112a92738a665
refs/heads/master
2018-12-20T03:58:10.587284
2018-09-17T05:59:33
2018-09-17T05:59:33
123,352,501
1
0
null
null
null
null
UTF-8
Python
false
false
14,741
py
# This file is subject to the terms and conditions defined in # file 'LICENSE', which is part of this source code package. # Author: Leo Guignard (guignardl...@[email protected]) from IO import imread, imsave, SpatialImage from scipy import ndimage as nd import numpy as np import os from multiprocessing import Po...
40795157a3f554244a207f013e2929446f70dbea
1d9a012f38a40f662c6e1047b2b2e52635374c0d
/login.py
cafb9a5376f71db36a020a4ee82326d564e76d97
[]
no_license
Tanjila-Sarkar-Promi/3rd_Semester_project
3b356bbaa09ba56ce61b9db0bc125611edef70f6
824061f59ecfd707b64bf624d4bb53533ba817bf
refs/heads/master
2023-08-22T00:25:24.862850
2021-10-17T15:32:41
2021-10-17T15:32:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
Set as interpreter #!C:/pythoncode/venv/Scripts/python.exe print("Content-type:text/html\r\n\r\n") import mysql.connector import cgi form = cgi.FieldStorage() n=form.getvalue("name") p=form.getvalue("pass") mydb=mysql.connector.connect( host="localhost", user="root", password="", database="medi" ) mycur...
76848a321556dc72d28c4478cf14ea644c690541
11194e8da8d5d496bdadd82ae03c9b6109dc4f6a
/id_PERM/AH/019_AH_PERM.py
0d47195763f7e9d9c25cce4cdf9a89e2897bc8fc
[]
no_license
prepiscak/beatson_rosalind
f4e37ec87dd6d6206c09dbdb78a6ae829efb69fb
529465bdc2edb83eafb687a729513e2e50aff4db
refs/heads/master
2020-04-27T01:31:10.631357
2019-09-26T09:58:27
2019-09-26T09:58:27
173,968,130
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
#!/usr/bin/python3 #usage 019_PERM.py n #improt some stuff import sys from itertools import permutations as perm #get int from command line n=int(sys.argv[1]) #get all the permutations of the set 1:n in a list of lists perm_list=list(perm(set(range(1,n+1)))) #print print(len(perm_list)) for p in perm_list: prin...
2b5ac8164f91997e6ead1e624f33df2c4683565b
6eb957a3690c3c758feb84725ccccded529bd50b
/POO/Seccion.py
196a144aef94039a3d3bb6103a9c122167d4855a
[]
no_license
MRpintoM/Ejercicio_3Py
38b8c13a8946cf57f47bd3c341dbc4504c709766
5e90e36e43632b5bf8c9560805d329bedf3bdeac
refs/heads/master
2023-03-08T01:37:18.861742
2021-02-23T02:19:42
2021-02-23T02:19:42
341,399,662
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
class Seccion(): def registerSeccion(self): __seccion=input("Ingresa una sección:") __regseccion= (str(__seccion)) return __regseccion
67d99b5c3eced18b0bdf7022c3511339e5b942b1
e79c8521fb55586e356e17caef7358152ab3a21f
/ismo/bin/generate_samples.py
294b1cb7a48b322adb5a2e97d43c94f586d54277
[ "MIT" ]
permissive
kjetil-lye/iterative_surrogate_optimization
1e06a0727b8385926eab81bbf3d8133b8ceed1f1
f5de412daab1180612837f4c950203ad87d62f7e
refs/heads/master
2023-04-14T03:28:42.715302
2020-10-20T07:25:26
2020-10-20T07:25:26
187,802,115
6
3
MIT
2023-02-02T06:47:00
2019-05-21T09:08:20
Python
UTF-8
Python
false
false
2,211
py
#!/bin/env python import os.path if __name__ == '__main__': import argparse from ismo.samples import create_sample_generator import numpy as np parser = argparse.ArgumentParser(description=""" Generate samples and write them to file using numpy.savetxt. Each row repesents a single sample, and each val...
af34fd1034f5561c8b73ec840986022f67f088ed
803f0fbc5973ff31fd5faca5c0f2981b2c52a591
/Python/tensorflow/variable.py
c1d7bc9416c924c4de82917774c881ca2d032ea4
[]
no_license
MiohitoKiri5474/CodesBackUp
00ab52bd55732b8164a42cffd664407878f4390e
4247fa032c8e88259dcc3992a21c510b6f2e8850
refs/heads/master
2023-08-09T14:46:10.445697
2023-08-04T01:12:58
2023-08-04T01:12:58
126,162,563
3
1
null
null
null
null
UTF-8
Python
false
false
313
py
import tensorflow as tf B = tf.Variable ( 10 ) with tf.Session() as sess: sess.run ( tf.global_variables_initializer() ) # 用變數要先把變數初始化 print ( sess.run ( B ) ) print ( sess.run ( B.assign ( 100 ) ) ) # 變數可用assign初始化,且一定要開Session run過一次
7befe330fcfccd5eda39f24b075dfc42fad72e4e
895a414a8467be8532bbac52eaa199ed2cfd5d75
/greedy/PriyankaAndToys.py
8d9ec6347229a25186662a215f599e9822c284c8
[]
no_license
burakkurt/Hackerrank_Python
92e0c4c17edd8a3e57ad9ae1ba4e2e2dd459f983
a22e632c59100bcebb775b2c1c4551640336ba38
refs/heads/master
2021-01-12T14:16:41.608708
2016-10-06T15:53:57
2016-10-06T15:53:57
70,005,682
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
numToys = int(raw_input()); toys = map(int, raw_input().split()); toys.sort(); priceLeft = toys[0]; priceRight = priceLeft + 4; numToysToBuy=1; for i in range(1,numToys): if(toys[i]>=priceLeft and toys[i]<=priceRight): continue; else: numToysToBuy += 1; priceLeft=toys[i]; pri...
d3905ca9265658e5bf4b7a91a378ed0ea340b520
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.0_rd=1_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=82/sched.py
304905f0cc9f12230fa3ed58eca351b59ad910a9
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
-X FMLP -Q 0 -L 2 105 400 -X FMLP -Q 0 -L 2 85 250 -X FMLP -Q 0 -L 2 70 250 -X FMLP -Q 1 -L 2 66 200 -X FMLP -Q 1 -L 2 64 250 -X FMLP -Q 1 -L 2 50 200 -X FMLP -Q 2 -L 1 41 150 -X FMLP -Q 2 -L 1 40 125 -X FMLP -Q 2 -L 1 34 100 -X FMLP -Q 3 -L 1 33 200 -X FMLP -Q 3 -L 1 20 250 -X FMLP -Q...
5f8e1a0fa5bcf1fa053e4be9b091e851fbbb20e0
63870f39c2fd700e5474247a4dfc3cb7cbfea7ac
/Power.py
b66588bdb8fe3987dcee302c91a7948cac0ff742
[]
no_license
DaviPMello27/PythonImageProcessing
2616e306a79d0d26c7af5106ee0110b6e7bd1d3d
c348cf1a38880a76ddb3e8a8edd3cfbbc21e5df3
refs/heads/master
2020-08-23T14:15:59.250354
2019-11-08T20:49:10
2019-11-08T20:49:10
216,636,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
import matplotlib.pyplot as plt import cv2 def showImage(title, pos, effect = None): image = plt.subplot(pos) image.set_title(title) image.set_yticks([]), image.set_xticks([]) image.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB), cmap = effect) def calculateIntensity(image, plot): intervals = () ...
7bd9dbb485425614b3b564465bc42b23de0ad1ab
6cf7035780de933f98ad533ecbaf18744f5546a6
/src/apps/accounts/apps.py
770feb5cbdc38a5ec0883c47455350c1d452abed
[]
no_license
Lakanbi37/Social
2a21ac7a7507f1e762c8261950539f946f956b8e
6221d34dac6fd31d68866c76c8f1d19afaffe49f
refs/heads/master
2023-01-30T18:55:38.200523
2020-04-30T04:18:58
2020-04-30T04:18:58
259,552,475
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from django.apps import AppConfig class AccountsConfig(AppConfig): name = 'apps.accounts' label = "accounts" verbose_name = "Accounts"
e172c4d221cb93b78fdf15d990b35e7e7e7fd500
48894ae68f0234e263d325470178d67ab313c73e
/scripts/noc-wf.py
9a461df838cfb1119d145697b6241de9a1a2e87f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DreamerDDL/noc
7f949f55bb2c02c15ac2cc46bc62d957aee43a86
2ab0ab7718bb7116da2c3953efd466757e11d9ce
refs/heads/master
2021-05-10T18:22:53.678588
2015-06-29T12:28:20
2015-06-29T12:28:20
118,628,133
0
0
null
2018-01-23T15:19:51
2018-01-23T15:19:51
null
UTF-8
Python
false
false
663
py
#!./bin/python # -*- coding: utf-8 -*- ##---------------------------------------------------------------------- ## noc-wf daemon ##---------------------------------------------------------------------- ## Copyright (C) 2007-2011 The NOC Project ## See LICENSE for details ##----------------------------------------------...
67db2b1feed5ce6b57cddb306d4a56163cf97ada
27b599705364707392d66cff4df9e38f28e54433
/ex50/projects/gothonweb/app.py
9114cef9a3766c083c1378c783d9f2d0113410e6
[]
no_license
huanglao2002/lphw
a615598568fe089dda230829c323a2cbe2c1af4f
4fce5374613e713c02b5b86fc39c290c496ed1ba
refs/heads/master
2023-01-23T15:17:13.442619
2020-11-25T13:30:55
2020-11-25T13:30:55
315,808,466
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
from flask import Flask from flask import render_template app = Flask(__name__) @app.route('/') def index(): #greeting = "Hello Jim" #return render_template("index.html", greeting=greeting) return render_template("index.html") if __name__ == "__main__": app.run()
ccb94a4d32c9ff95e32281b681554a1c8059a209
79d41f92e0c0018bd83fc1fafed8e481fc5d3d41
/migrations/versions/84084dd1c091_.py
72d4fb99e71faf80c704c0595eefb4eadde8471e
[]
no_license
fiveCubes/udacity_Fyyur
9cc109778fa8d8d7cd6c19f09384d8e65401de68
0228a85bacc0c563805ef300ea3899bd0ce5a293
refs/heads/master
2022-12-06T15:50:10.583937
2020-09-04T22:18:28
2020-09-04T22:18:28
292,956,940
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
"""empty message Revision ID: 84084dd1c091 Revises: 4192e26b4382 Create Date: 2020-09-02 15:37:31.769251 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '84084dd1c091' down_revision = '4192e26b4382' branch_labels = None...
0e647dd279872f9ca98db25c23550b1a1e7e5fb4
df83f97ed2c6dd199005e96bc7c494cfb3b49f8c
/GeeksForGeeks/String Rotations.py
42ed217509cdfcaf23e1e662e437f71bfb0dfa7b
[]
no_license
poojan14/Python-Practice
45f0b68b0ad2f92bbf0b92286602d64f3b1ae992
ed98acc788ba4a1b53bec3d0757108abb5274c0f
refs/heads/master
2022-03-27T18:24:18.130598
2019-12-25T07:26:09
2019-12-25T07:26:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
''' Given strings s1 and s2, you need to find if s2 is a rotated version of the string s1. The strings are lowercase. ''' if __name__ == '__main__': T = int(input()) for _ in range(T): s1 = input() s2 = input() if len(s1)==len(s2): tmp = s1+s1 # It gives a...
a17893e3403ed935e013c8026c259ffe22a74959
64ef95039cec3c508b8e3ab911a3318121778119
/day_3_ai_boot_camp_.py
40deaa3367a0ea97035e9ce5b03d418a833f1188
[]
no_license
ALEENA-KT/Practical-AI-Bootcamp
c98f752112e8febb7e7d324ded177f5d36dd0180
0a12a5124e4587decec21354f0f0dbbc40ea4fc9
refs/heads/main
2023-08-18T02:40:34.992591
2021-09-13T18:22:45
2021-09-13T18:22:45
404,694,854
0
0
null
2021-09-09T12:13:57
2021-09-09T11:25:19
null
UTF-8
Python
false
false
3,442
py
# -*- coding: utf-8 -*- """Day 3 AI BOOT CAMP .ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1e_Ee9jcv9rIfmnVXTXQAktNKBwu0GejP """ import tensorflow_datasets as tfds print(tfds.list_builders()) dataloader = tfds.load("cifar10", as_supervised=T...
3b04f91b01c4c46ccf2a29e2a33fa5ec59f1e0e0
16c24cba9ca47b27dafed2595159b5970fbebbd2
/shan/build_dataset.py
b608756cb823e9f56c47209f56d0fad525ba939c
[]
no_license
jakisou/SHAN
834c80271c2a0ad85c12667d7ddd0187d3aa431a
7e5b5f4970808407f2dc9498e8600bc85b18a4c9
refs/heads/master
2022-04-07T23:49:11.382667
2020-02-29T07:50:12
2020-02-29T07:50:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,115
py
import random import pickle import numpy as np import copy max_length = 90 random.seed(1234) with open('../Data/remap.pkl', 'rb') as f: reviews_df = pickle.load(f) item_cate_list = pickle.load(f) user_count, item_count, cate_count, example_count = pickle.load(f) train_set = [] test_set = [] for revi...
d68125104a4b0d63b31ac8183cc83ed87465a499
c7f6f03449bc1cdbda9f62db66ac4aefefd836ea
/preprocessing.py
032424323a888ee4c19e23d1b9c650231c21b5e9
[]
no_license
paul-freeman/aars
d8d382b1f11ed2e25c72e811fd8bac1a5459b298
f054a8cb7fdc27bbca8e2001329b6a5cfbc470ad
refs/heads/master
2021-11-21T20:51:23.462501
2021-08-09T06:36:24
2021-08-09T06:36:24
229,409,003
0
0
null
null
null
null
UTF-8
Python
false
false
9,576
py
import sys import glob import os.path import json AA_LIST = ['ala', 'asn', 'asp', 'gln', 'leu', 'glu', 'gly', 'his', 'ile', 'lys', 'arg', 'met', 'phe', 'pro', 'pyl', 'sep', 'ser', 'thr', 'val', 'cys', 'trp', 'tyr'] KINGDOM_LIST = ['bact', 'arch'] def parse_fasta(path): fasta_data = [] with open(pa...
d8edf4a0202d663a88b7fda1373d4c25ec1d3f06
b183c98f7749a015ca420940be85f8af6c004bb3
/medium/78.py
0ce95a3bbd0bad7e58ef50181285396d20b4dc60
[ "Apache-2.0" ]
permissive
oneTaken/leetcode
b8cfa7e0ff42de2eaef8b64cceef4f183006612e
f9357d839ac8fa6333b0d7eeb2028ba28a63764c
refs/heads/master
2020-03-12T10:08:12.200753
2018-05-05T05:12:24
2018-05-05T05:12:24
130,566,847
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
class Solution: def subsets(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ import itertools ans = [] for i in range(len(nums) + 1): _ans = itertools.combinations(nums, i) _ans = list(map(list, _ans)) ans....
ad03c6c89d53f7c088759d2f9b0a1bb92b0aa033
654aba6352851ff88d8acfa04658529c75509b74
/scrapy_sample/scrapy_sample/items.py
885749a754e1d85322e9cb98999bc35d4b94340c
[ "Apache-2.0" ]
permissive
neilnee/octopus
2ecb93b6a83a85826782238f515cebba9c0c72a9
7981e8a926f0ea9d5a09bea6e4828fdc0f7f0e62
refs/heads/master
2021-08-31T16:22:18.744762
2017-12-22T02:10:17
2017-12-22T02:10:17
104,200,838
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class HuxiuItem(scrapy.Item): title = scrapy.Field() link = scrapy.Field() desc = scrapy.Field() posttime = scrapy.Field()
9bfe15dacc41979c5b07071075e289d74a471d5f
ac2a27debbc62fb4ccd71e550d4cdeb167674d43
/firewall/test/sim_firewall_tcp/run.py
88080576ee170f4b67a4b9e6ed1eb48ac6e28e5c
[]
no_license
TopologyMapping/netfpga-tutorial
8a4227594e96d1f68443c3bc241165abadb051a1
3457b3dda94b5a90d3dbc66cb367764adb826f14
refs/heads/master
2020-04-12T14:55:27.511141
2016-05-18T15:38:29
2016-05-18T15:38:29
31,033,110
2
2
null
null
null
null
UTF-8
Python
false
false
2,415
py
#!/bin/env python from NFTest import * from NFTest import simReg phy2loop0 = ('../connections/conn', 'nf2c0') nftest_init(sim_loop = [], hw_config = [phy2loop0]) nftest_start() pdrop = [1210, 80, 22, 667] #Ports to drop 1210, 80, 22, 667 nftest_regwrite((reg_defines.FIREWALL_DPORT1_REG()),pdrop[0]) nftest_regwrit...
[ "bob@crunchbang" ]
bob@crunchbang
067c502cd6a0bed78cd8a82684f8da8fa51c15dc
1c85f6ba14b7762cf14fc5453b07a93dc735afc2
/python/algorithms/hw0/randomhw/insertion_sort.py
1a0f8c31c2d4e29570591ab625bf0c579d84a1ff
[]
no_license
jashook/ev6
557bceb82d4e0e241c51f7ba27cc4cfa00f98408
97e7787b23fae38719538daf19a6ab119519e662
refs/heads/master
2021-01-22T23:16:06.702451
2013-10-12T18:39:44
2013-10-12T18:39:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
#!/usr/bin/python ################################################################################ ################################################################################ # # Author: Jarret Shook # # Module: insertion_sort.py # # Modifications: # # 29-Jan-13: Version 1.0: Created # # Timeperiod: ev6 # #######...
049ada4f72aaa8b3ab20c0db52e19f9c60c95d9d
7343859ea0cd609a74a5683aaa3729398c329d43
/visitors/admin.py
e40ec64eb3ff609de7c64fd3573e9bac1e9c71d8
[]
no_license
qiubite31/tw_visitor
6a7ab00bad476ef8180d5888290a7895a93b49d0
b08715d32096c9139d396efc15077666ce1cd5e9
refs/heads/master
2020-05-20T07:27:19.842678
2019-03-07T15:13:30
2019-03-07T15:13:30
63,789,216
2
0
null
null
null
null
UTF-8
Python
false
false
132
py
from django.contrib import admin from .models import ArrivalRecord # Register your models here. admin.site.register(ArrivalRecord)
[ "Dragon Lin" ]
Dragon Lin
92c64ad45c5b329b5722db23cdfe5a17175b703f
8ea3fbf18c58e4905a894b7c44059b726f9d522a
/ch4ex2.py
7b917d45392afc2e801a6064fabbbc0e9b7811f5
[]
no_license
leslieawicke/thinkpython
ecc17f91d173462b77da96f9a9ed72cda65cf9f5
231468f471df696561fbe81085f109c0a7fc8373
refs/heads/master
2021-04-29T07:23:59.413862
2018-03-09T02:04:13
2018-03-09T02:04:13
121,819,725
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
import math import turtle from ch4ex import arc bob = turtle.Turtle() radius = 250 n = 5 overlap = 45 def petal(t, r, n, o): """draws a petal shape with given radius (r) and angle (a) derived from the number of petals desired (n). t = turtle""" a = 360/n + o arc(t, r, a) bob.lt(180 - a) arc(t, r, a) bob.lt(18...
7af9568b63838fbfb2206906589c9512df1ae16a
6512957d7a359c633aaaed63b9fd44eb132b0d0f
/parser.py
2db19836c75dfd97b0365cdb2154995535083a95
[]
no_license
j-ibad/cpsc323-compiler-py
78aabb57de8af4e7399c0a51454e465ec90d9ac8
6f9835ff74cc9b74ccb93733aef65ae7ba189318
refs/heads/main
2023-04-20T13:49:31.690254
2021-05-13T02:28:05
2021-05-13T02:28:05
361,184,289
0
0
null
null
null
null
UTF-8
Python
false
false
24,447
py
#!/usr/bin/env python3 ''' Project Name: Project 2 - Syntax Analyzer Class: CPSC 323 - 02, Spring 2021 Professor: Prof. Anthony Le Authors: Winnie Pan Josh Ibad Titus Sudarno Thomas-James Le ''' import lexer import sys import re import getopt #Global variable to help when mu...
cb6129890bf338a65a0d59e425a58c5f8b914d32
498c3189f21f4545eb9829a9c63c6ef6dcce229e
/Algorithms/Strings/Palindrome-Index.py
e5274a4cd869d229daf74495d91fbd15ff84551e
[]
no_license
Damian1724/Hackerrank
af83c74a5a5aa6b4e1684c7a7133571c8dd7d2f8
9c58363e6214eabb4b55330e276c7b414273beee
refs/heads/master
2020-03-17T12:26:18.543723
2018-12-06T23:52:43
2018-12-06T23:52:43
133,103,693
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
/* Author: Damian Cruz source: HackerRank(https://www.hackerrank.com) problem name:Algorithms>Strings>Palindrome-Index problem url: https://www.hackerrank.com/challenges/palindrome-index/problem */ def checking(word,pos): a=0 b=len(word)-1 while a<b: if a==pos:a+=1 if b==pos:b-=1 ...
30394348b699ec0d39eb02cb0fca340cdf880ae9
ab1998970b4977b93466820e7a41227a57b21563
/local_lib/pykrige/ok3d.py
7298d0d67801077c78ed146584778128cbc036a1
[]
no_license
kamccormack/PEFiredrake
95b76f0c4e12b9b840fecb98e672621c4047455f
329bb214268fa04fbebd5b6d219941273a849728
refs/heads/master
2020-03-09T19:44:00.191375
2018-04-10T16:38:18
2018-04-10T16:38:18
128,964,966
1
0
null
null
null
null
UTF-8
Python
false
false
35,858
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals __doc__ = """Code by Benjamin S. Murphy [email protected] Dependencies: numpy scipy matplotlib Classes: OrdinaryKriging3D: Support for 3D Ordinary...
1a95afb8fe2a0cbbec27d84d31a8ca32f302e201
d1847e96c14a7d06aeab2a557eb25b1c6d5170d7
/Python Web App/myapp.py
65c164ffd18f5fef19f59380536518c22555e13e
[]
no_license
ANA-POTJE/WEB_Applications
5dc043b9b63ed5ddb1cc8a17dba4d5de6fb68712
c9c0869b9f8787eb8e400a4f774f9ba387e3bf71
refs/heads/master
2022-11-09T07:53:30.720297
2020-06-18T14:27:53
2020-06-18T14:27:53
273,253,091
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
import yfinance as yf import streamlit as st st.write(""" # Simple Stock Price App Shown are the stock closing price and volume of Google! """) # https://towardsdatascience.com/how-to-get-stock-data-using-python-c0de1df17e75 #define the ticker symbol tickerSymbol = 'GOOGL' #get data on this ticker tickerData = yf.Ti...
b1755b3e3660b7295bc811bc77f3610c15e76d96
5f8b40db6465a2d28a2369d8b99c8d0db9d06e90
/samples/pad.py
9632098c4f8b2c26d1502e92c9d4ec77e99e9779
[]
no_license
asherkobin/GameOfLife
4d816ef8b7fcd46ddb3ef055ccfd172a53db9446
4fc9a9e568b58bb412b0586698c614211efc168a
refs/heads/master
2022-11-24T02:10:30.081982
2020-07-13T21:35:32
2020-07-13T21:35:32
267,113,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
import curses import curses.panel def main(win): global stdscr global max_y,max_x,mult stdscr = win curses.initscr() curses.cbreak() curses.noecho() stdscr.keypad(1) curses.curs_set(0) y,x = 0,1 mult = 40 maxcoords = stdscr.getmaxyx() max_y, max_x = maxcoords[y],maxcoord...
9ef7705adfd20289b94d32e635c9782513a6bf09
22168b5ae3a347f3a310ac23c87ffe4d313534bb
/s3backupper.py
2d4542231ca6bc4f31c20983b275a66a6e42f306
[]
no_license
iamanders/s3backupper
f93b8ae96b83524fdb0b5e07f5ef882bfa5d45b6
a2870eeaa93753246f7498d1af1dc591b605f082
refs/heads/master
2021-01-19T07:55:07.968577
2010-01-22T13:53:00
2010-01-22T13:53:00
482,263
1
0
null
null
null
null
UTF-8
Python
false
false
2,164
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os import time import tarfile from boto.s3.connection import S3Connection from boto.s3.key import Key class uploader: """Class for gzip and upload files to Amazon S3""" def __init__(self, access_key, secret_key, crypt_key): self.access_key = access_key self.se...
9c726b92873e564d1807d53aeb25eb416f88fba3
e6c65e2e354336a4bea5b6a4ccbccd3682915fe2
/out-bin/py/google/fhir/seqex/bundle_to_seqex_test.runfiles/pypi__apache_beam_2_9_0/apache_beam/runners/worker/sideinputs_test.py
57d59bfa69ad81880b5237c6baf3ea3f0406a320
[ "Apache-2.0" ]
permissive
rasalt/fhir-datalab
c30ab773d84983dd04a37e9d0ddec8bf2824b8a4
3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de
refs/heads/master
2021-10-09T05:51:04.593416
2018-12-21T18:11:03
2018-12-22T05:38:32
162,744,237
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__apache_beam_2_9_0/apache_beam/runners/worker/sideinputs_test.py
d20beb7361baa30e1f49b5bce1bc4a1d3158cbba
7c61f236f81c642b43abeee79bd36802d92df7d9
/sandbox/envs/maze/point_env.py
4048496a5296e5d875c986a502a17f9cae4bd722
[]
no_license
ZiyeHu/goalgail
e9044b3863c608d2ccd4d49241cf3d0c09962eef
1d940c8efffd519a0a77c58c8adf03b9967aa81a
refs/heads/master
2022-12-11T14:26:28.781537
2020-09-17T16:08:24
2020-09-17T16:08:24
296,116,076
0
0
null
2020-09-16T18:30:54
2020-09-16T18:30:53
null
UTF-8
Python
false
false
7,554
py
from rllab.envs.base import Step from rllab.envs.mujoco.mujoco_env import MujocoEnv from rllab.core.serializable import Serializable from rllab.misc.overrides import overrides from rllab.misc import logger import numpy as np import math import random from sandbox.envs.base import StateGenerator from sandbox.envs.goal_...
450531988b753188c27f8d2709248ab92e7c0e5c
cf0fd44aa791b5ee547b436c14700ff45ac7944e
/panorama-stitching/stitch.py
4c22bdf66a48c93a0d58684e9c4257931d5308df
[]
no_license
danield0garu/computer-vision
1186e2ba76312af4382df6663961f45635aa4e3d
b0805859c8ae1fa255b7e6c892394adc06e749cc
refs/heads/master
2021-09-10T21:21:49.679892
2018-04-02T12:01:12
2018-04-02T12:01:12
112,088,082
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
from pyimagesearch.panorama import Stitcher import argparse import imutils import cv2 # construct the argument parse and parse the arguments """ ap = argparse.ArgumentParser() ap.add_argument("-f", "--first", required=True, help="path to the first image") ap.add_argument("-s", "--second", required=True, help="path ...
070bacfa4034a83dfc962b353c22e495e86f20fd
31ae8cf31da9729a93155fff20f079caf853df98
/objects.py
22bb6a1b37da920c06e7828cf0553a7de20b89e4
[]
no_license
cuthb3rt/physics_sim
afd3ac1e00f64fdefb1ea10c9c1223f60f34c4b9
39cee1ca7457ea7a90cdafef41b795210fa7697e
refs/heads/master
2021-01-19T02:05:37.173117
2016-07-21T20:39:17
2016-07-21T20:39:17
29,778,320
1
0
null
null
null
null
UTF-8
Python
false
false
2,301
py
__author__ = 'Andy' import physics import vec_math as vm class Particle(): """ Particle class mass = float i_p = 3vec i_v = 3vec """ NUM_PARTICLES = 1 ALL_PARTICLES = [] def __repr__(self): # return "ID: %s; Mass: %s; Position: %s; Velocity: %s; Acceleration: %s" % (self....
537cc1b377a1a29fe985de13d1284703ca373594
ebcc40516adba151e6a1c772223b0726899a26eb
/slicedimage/url/__init__.py
903fa8c5d102018aed1a5b5cd312397b50a9e499
[ "MIT" ]
permissive
spacetx/slicedimage
acf4a767f87b6ab78e657d85efad22ee241939f4
eb8e1d3899628db66cffed1370f2a7e6dd729c4f
refs/heads/master
2021-04-09T10:53:15.057821
2020-05-26T17:40:11
2020-05-26T17:40:11
125,316,414
7
4
MIT
2020-05-26T17:40:15
2018-03-15T05:24:24
Python
UTF-8
Python
false
false
19
py
from . import path
8835abd75b08767de42f6adfcaa8726b27a17627
2a40963fc6af9a2fcf917bb2dba4d223d3249987
/apps/course/urls.py
0c5515c5bd2dc6260c06a37e53cfe06aa8dee805
[]
no_license
hiimkelvin/courses_django
63736337a50919b6948811ffd51fdaa5fe7b7c74
6f3fd0d2d85dd918b1154ac63de891bd61e9caad
refs/heads/master
2021-01-20T01:32:59.570678
2017-04-24T18:26:44
2017-04-24T18:26:44
89,293,991
1
0
null
null
null
null
UTF-8
Python
false
false
239
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index), url(r'^addnew$', views.addnew), url(r'^confirm/(?P<id>\d+)$', views.confirm_page), url(r'^remove/(?P<id>\d+)$', views.remove) ]
5273b3149612f78e9ebeacd06c2f9328d000c15e
56c5cbd3629c206fe31da740a3213040464a5483
/driver/views.py
fce79dd6a5c59fe9aa1c00a9f05c50185b4b3a9e
[]
no_license
AhmedYasser27/Fleet-MS
f211df471743eb78130ebc858d52a6016f8951f1
06e2395406956482f56de1df5029985bf37c4441
refs/heads/master
2022-12-10T01:16:59.008445
2020-09-04T20:56:45
2020-09-04T20:56:45
292,945,204
0
0
null
null
null
null
UTF-8
Python
false
false
2,378
py
from django.shortcuts import render,get_object_or_404,redirect from django.http import HttpResponse from django.http import Http404 from django.template import loader from .models import Driver from .forms import DriverForm # Create your views here. def index(request): if request.user.is_authenticated: for...
51c188fc3582d89f30984fe761bd4de74c07d286
711756b796d68035dc6a39060515200d1d37a274
/output_cog/optimized_24247.py
f41dd9eb54effc2fae8b2b76ddc93da38babc1a1
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
10,840
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
5fb69116e48dca7461402838a90ce882b621c688
6fa0c940edffaeb325205673b4c7643b2ebfffc4
/clicker/admin.py
dfb60e1999dfce5cae2f0891a8b4978f8c49920c
[]
no_license
RustamMullayanov/myDjangoClicker
5f564bab3cd067eebc712f2fff82939e63f6c8b7
caaa47f36904de92be0e16187b0acc707a4497ad
refs/heads/master
2023-05-29T00:22:59.039925
2021-06-13T09:30:49
2021-06-13T09:30:49
367,644,274
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.Clicker)
47204ab5273867d202c0c4bdbd8c953a99b17499
f9c223341e3c052705cc08291d2246399121f037
/LSR/lsr.py
3e5ea30d0781c904bd887def9f5932d263d6258a
[]
no_license
andreaeliasc/Lab3-Redes
185155d91e7f0eec6c59956751c830a19e2e197e
037f06a632d0e5972f150dc005c29cae232dcf48
refs/heads/main
2023-07-15T14:57:28.684337
2021-09-01T03:03:57
2021-09-01T03:03:57
401,242,615
0
1
null
null
null
null
UTF-8
Python
false
false
7,107
py
import asyncio from asyncio.tasks import sleep import slixmpp from getpass import getpass from aioconsole import ainput, aprint import time from utils import * class LSRClient(slixmpp.ClientXMPP): def __init__(self, jid, password, topo_file,names_file): slixmpp.ClientXMPP.__init__(self, jid, password) ...
e2143b19b050bbbb72261ab6e4bd8ec5639ae272
9cc3011ae618d43f6f09a98f2ea4577bb57b3482
/week8/3.2.Цикл while/a.py
d927561ceda36772314c4c577b15165260fde5a5
[]
no_license
Alexey929/web-development
2992db5f18917641740886d8920c1486f61b84e9
c50a394734614bb5b05cfc0d43cb7ccd9e4087af
refs/heads/master
2023-01-13T20:29:06.663877
2020-04-28T13:41:32
2020-04-28T13:41:32
236,985,130
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
import math x = int(input()) i = 1 root = math.sqrt(x) while i <= root: print(str(i * i) + " ", end='') i += 1
14de26357470049d34384244bc6dfe2cabc076b9
a80ce010d5d9b459d07bc4ff838123e3d9e8a394
/conftest.py
82c66e9c1664f34e156e8abc834440a12310ad01
[]
no_license
teola/mail-test
df20e7d7e2f3ef178a85c777320222183f7a3eeb
6594455a1a9f5323cadb20bc4997327cca171c88
refs/heads/main
2023-05-07T00:44:42.754919
2021-06-01T14:10:36
2021-06-01T14:18:13
372,849,095
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
import pytest import time from selenium import webdriver @pytest.fixture(scope="session") def browser(): driver = webdriver.Firefox() yield driver time.sleep(3) driver.quit()
843eaba7ba980ea2096e0e19da78db3ac8be4534
41682d817cd6aab0e73e9c0733a515d77ae7c540
/worker.py
8d3c50e7af3f697054a683db8b6a68711b57b3c1
[]
no_license
subhamsps/testRepo
d2cd328ec40ab5b37b220a0f449f8cbcf14993bc
3046507cb893e0d58a8722561118b494e06b5c3a
refs/heads/master
2020-04-29T02:33:56.717073
2019-04-08T17:47:20
2019-04-08T17:47:20
175,773,978
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
# A simple Python program for traversal of a linked list # Node class class Node: # Function to initialise the node object def __init__(self, data): self.data = data # Assign data self.next = None # Initialize next as null # Linked List class contains a Node object class LinkedList: # Function to initialize...
ade4325ffae0867072eb07d5294917e637b30a23
de4d26a724b966ca8d0b95ec3063b5b784129028
/UserData/UserApp/migrations/0002_auto_20190402_0505.py
cc02790701761a7d0486f6803b359929ae666412
[]
no_license
ChetanKoranga/UserRESTapi
88904a326a093842ad68628eed98ea5ca2a95de0
11342bef21be163c4faf79744e90e9848e3a89bf
refs/heads/master
2020-05-04T00:01:22.998117
2019-04-02T05:51:18
2019-04-02T05:51:18
178,876,580
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
# Generated by Django 2.2 on 2019-04-02 05:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('UserApp', '0001_initial'), ] operations = [ migrations.AlterField( model_name='usermodel', name='zip', fie...
a003a04f25ae531bcff5fcc6b77658dab1d893f8
ca82e3c6084e697ecbdbf32d96c08293c5540287
/courses/python_data_structures_linked_lists/Exercise Files/Ch05/05_01/End/dll.py
50cac5b09fdcbb4bdfd6e43e8d6640dcd496bb4e
[]
no_license
bheki-maenetja/small-projects-py
8c8b35444ff2ecef7ad77e709392a9c860967ecc
18504d2e1f1ea48b612a4e469828682f426c9704
refs/heads/master
2023-08-17T00:38:06.208787
2023-08-16T16:25:22
2023-08-16T16:25:22
131,871,876
1
0
null
2023-08-14T23:44:23
2018-05-02T15:37:58
Python
UTF-8
Python
false
false
1,390
py
class DLLNode: def __init__(self, data): self.data = data self.next = None self.previous = None def __repr__(self): return "DLLNode object: data={}".format(self.data) def get_data(self): """Return the self.data attribute.""" return self.data def set_da...
fcf1f6548924e0a7b8d556c5614e9aee7511b172
ffea8d9c5a742170fb21c5c95e3f84ce9ab2f3bd
/algorithms_find_unique_chars.py
43ee638f4f6311ce56d55f48d9b623bd298e71d9
[]
no_license
catechnix/greentree
3b8583bd4ccb1a506f3e24f03a6c1592f1664518
ffcd7b1b26fa6552b4f58ac9645151afb591628b
refs/heads/master
2023-04-08T23:41:15.502014
2021-04-03T03:48:07
2021-04-03T03:48:07
288,299,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
# Given a string, find the first non-repeating character in it and return its index. # If it doesn't exist, return -1. # Note: all the input strings are already lowercase. #Approach 1 def solution(s): frequency = {} for i in s: if i not in frequency: frequency[i] = 1 else: ...
e1ff873dc7162e68805ea496e18d054103fd202b
6246f61c6bb4143fc88d74c72f6d2e7936433ee9
/saper.py
d8ce9e5291c0319c76368b2ce8e78d6c68c45df6
[]
no_license
aramann/mineswapper
0663d1189d38ec0704d39e6b97f8690e80367b38
8fab851d7e948924e88c4101bc35e4745d7971b3
refs/heads/master
2021-06-13T20:36:39.147322
2017-03-06T14:28:31
2017-03-06T14:28:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,094
py
import random import tkinter as tk def gen_bomb(field): i = random.randint(1, m - 1) j = random.randint(1, n - 1) while field[i][j] == 'b': i = random.randint(1, m - 1) j = random.randint(1, n - 1) field[i][j] = 'b' return field # if field[i][j] == 'b': # return gen_fie...
21821ff603c4c08ad1e79cfc45c19e207342a87f
da8e3af2bfbad7109c19e37efe6b10bd5b1e0f56
/이코테/DP/q32_정수삼각형.py
b6fb0e0512b1f63802f795516949612640493eb5
[]
no_license
cheonyeji/algorithm_study
fead92b52e42d98a0fdf7f3395ed0a6676c8b972
ef2f5e50f874751a9ba8e9157a13f832f439618b
refs/heads/master
2023-09-01T00:41:24.600614
2023-08-31T07:39:45
2023-08-31T07:39:45
234,265,247
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
# 2022-01-19 # 이코테 ch16 다이나믹 프로그래밍 # https://www.acmicpc.net/problem/1932 n = int(input()) tri = [] for _ in range(n): tri.append(list(map(int, input().split()))) for i in range(1, n): for j in range(0, i + 1): if j == 0: tri[i][j] += tri[i - 1][j] elif j == i: tri[i...
19e02e30a90fc1c0781c84ee261b118d7bd1b1bb
91652afbc75037f6c631dbe9c14c343514d07469
/examples/static.py
80e29ed6bb54b099e5dd92eeaef8911dc9804300
[]
no_license
BitTheByte/Pybook
beb2186077cdecd821a25b015522beeb3e1d4426
8385a9006b4c8577412fa75d7c2196e0e0c539a5
refs/heads/master
2023-06-11T02:57:21.458411
2023-06-04T18:58:26
2023-06-04T18:58:26
148,077,126
4
2
null
2023-06-04T18:58:27
2018-09-10T00:15:29
Python
UTF-8
Python
false
false
717
py
""" please move this example to the root directory """ from lib.session import * from lib.parser import * from lib.engine import * fbsession = login("[email protected]","Secret_Password123") # login with facebook def hi(msg): print msg return "HELLO FROM FUNCTION" """ def custom(message):...
8ad86d60b83d577d0c3cb1c91bfc2655109ff2b6
60130f382f2ffff27994a6fc573cd56c87d99450
/Requests/requeststests.py
336a072034b6c8686021d63c8e3b9100eff94194
[]
no_license
hellknight87/python
4be75dc8ffee810edaa485366f423d24f0fdec0a
ced1ff205e21ba5e73dfd35dcbefad5ba4d4a3cf
refs/heads/master
2021-04-03T06:28:36.208338
2018-05-09T06:11:30
2018-05-09T06:11:30
125,104,124
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
import requests params = {"q": "pizza"} r = requests.get("http://www.bing.com/search", params=params) print("Status:", r.status_code) print(r.url) f = open("./page.html", "w+") f.write(r.text)
ff81fb06f2512900c9797697d5792d8253d5a9af
a5631fae399c750eb4f8de58bcc16da0edb2e33d
/lessons/lesson14_RegressionDiagnostics_Imputations/Diagnostics_Walkthrough.py
a883a00d9e82960b5c8d4a34817556a3dbeee4e7
[]
no_license
robertdavidwest/GADS11-NYC-Summer2014
1fa50b577b1f6c62c43522d0823bc6fa50dcace2
d9cbdcef0f9f94a01597b04b9a24d867b127ce30
refs/heads/master
2020-12-24T23:28:17.395587
2014-08-20T01:46:09
2014-08-20T01:46:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,717
py
#<<<<<<< HEAD import csv import numpy as np import pandas as pd from dateutil import parser import pylab as pl import statsmodels.api as sm import matplotlib.pyplot as plt import random from sklearn.preprocessing import scale from numpy import inf import scipy.stats as stats import pylab #======= ### IMPORT DATA ### ...
c32ad72dc0b1b7022ee645d091b9a96888d5760e
373ecb4548a8412b50b685d1ec0e5cea59a9425f
/Week 13/gallons_convert.py
1b8e1392e2709b2e5541696f6c477f0ab07e0127
[]
no_license
stewartrowley/CSE110
847c04c036b62f718952a12a65163281e23fac2c
57c744aa1f2b40c5f9b13b26b6558196aef3d515
refs/heads/main
2023-08-15T22:25:50.487798
2021-09-29T02:34:24
2021-09-29T02:34:24
411,504,145
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
def convert_gallons_to_ounces(gallon): """ Functions: convert_gallon_to_ounces Description: convert gallons to ounces Params: gallons (float) - The amoun in gallons returns: Float - The amoun in ounces """ return gallon * 128 def convert_gallons_to_litiets(gallons): """...
d7a80960660ed56f591c130f94a6772a5d9f6e60
c30450b7794e8ae888a5916e20c74c17d014c6fa
/parser/summary.py
c8a0a835fa2b440f48949edd4f73d0a609967c61
[]
no_license
zacateras/yansp
cc9cfc49c1ee5e1558a5a8bddb6dd2f523b3a508
20e094047364a5cfcb0f5a293fbd979f14411023
refs/heads/master
2020-04-22T18:11:53.363848
2019-05-12T21:33:44
2019-05-12T21:33:44
170,569,331
0
0
null
null
null
null
UTF-8
Python
false
false
2,215
py
from utils.model import count_variables def summary_for_parser(parser): return { 'variables_all': count_variables(parser.variables), 'variables_all_trainable': count_variables(parser.trainable_variables), 'variables_word': count_variables(parser.word_model.variables) if hasattr(parser, 'wo...
069a57e3df39d947bfd19a9af8fff7b242cce5d6
04b1faa6394131c8119700f731894d607a88a100
/loja/models.py
7720d2797da7e27eb8189382485d3582eed88e0c
[]
no_license
tamilly/loja_pe
c9ae340cbbbb5df86fb27dca89e6cd8f6a2fff10
453becffc74a853a616ee005ad00fff9ecc56d41
refs/heads/master
2022-11-06T23:05:29.740496
2020-07-06T23:05:08
2020-07-06T23:05:08
277,662,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,255
py
#Tamilly's code / 2020-01-07 from django.db import models from django.conf import settings from django.utils import timezone class User(models.Model): cpf = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=100) email = models.EmailField(max_length=100) birth_date = models.DateField(auto...
f3c5d20d29dd9b88627ce522e66785298e8855f1
498fcf34fa4482be5c9fefc488666e60edcf46c7
/supervised_learning/0x08-deep_cnns/6-transition_layer.py
b1f56c159fcbde725fe51e00dbf6f594f96be8dd
[]
no_license
MansourKef/holbertonschool-machine_learning
7dbc465def04c311c1afb0e8b8903cbe34c72ad3
19f78fc09f0ebeb9f27f3f76b98e7a0e9212fd22
refs/heads/main
2023-03-12T16:18:08.919099
2021-03-05T09:42:09
2021-03-05T09:42:09
317,303,125
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
#!/usr/bin/env python3 """module""" import tensorflow.keras as K def transition_layer(X, nb_filters, compression): """function""" BN1 = K.layers.BatchNormalization(axis=3)(X) Relu1 = K.layers.Activation("relu")(BN1) conv1 = K.layers.Conv2D(int(compression * nb_filters), k...
2282495d9f9f1ac8079c3e9d8dbe84bc6f9a1e8d
edbf80fb7ae7f411aaa1bdc58c1c5ed96c7aeec5
/app/gateways/OwlveyGateway.py
cd8c37ae458588cbdbea35a4e823f9290733298f
[ "Apache-2.0" ]
permissive
owlvey/power_tools
3eff4339855e6731b600915732f2a0a011688de8
cec83fb13a21ebd0592f8d203cc3705101c109b8
refs/heads/master
2022-07-18T07:55:17.259885
2020-05-15T14:21:20
2020-05-15T14:21:20
263,683,971
0
0
null
null
null
null
UTF-8
Python
false
false
8,664
py
import datetime import requests from app.components.ConfigurationComponent import ConfigurationComponent class OwlveyGateway: def __init__(self, configuration_component: ConfigurationComponent): self.host = configuration_component.owlvey_url self.identity = configuration_component.owlvey_identi...
1a7945122da319698aab18dff3ea548ff1990001
cd7557f4daedf3447673c67e13b1c67220905b0e
/Judgment Classifier.py
718395714852f46853f26e330aace481d2f0abae
[]
no_license
Jason1286/Copyright_88_Classifier
5774703773ac5816401ba2256777f74d0f9a0859
02ba028235c21aa79cae00727effb15a111b8568
refs/heads/main
2023-06-02T01:51:59.552419
2021-06-25T07:12:30
2021-06-25T07:12:30
380,103,097
0
0
null
null
null
null
UTF-8
Python
false
false
7,381
py
#!/usr/bin/env python # coding: utf-8 # 使用套件 import os import re import pandas as pd import numpy as np from itertools import compress # 人工標記結果 manual_label_df = pd.read_excel(r'C:\Users\ASUS VivoBook\Desktop\計算與法律分析\Final_Project\判決標註.xlsx', sheet_name = '工作表1') # read all sheets manual_label_id = list(manual_label_...
12655a75caf61802783410d883ae5ec5680cefe5
b77cc1448ae2c68589c5ee24e1a0b1e53499e606
/asset/migrations/0005_auto_20171026_1532.py
eb4e2ea65956f0a359a6c7516eb7dbb444b94e2a
[]
no_license
PregTech-c/Hrp_system
a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7
11d8dd3221497c536dd7df9028b9991632055b21
refs/heads/master
2022-10-09T07:54:49.538270
2018-08-21T11:12:04
2018-08-21T11:12:04
145,424,954
1
1
null
2022-10-01T09:48:53
2018-08-20T13:58:31
JavaScript
UTF-8
Python
false
false
664
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-10-26 12:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('asset', '0004_auto_20171022_1404'), ] operations = [ migrations.AddField( ...
2906ecce75b2ac95aa33a8672781a51b33e0c125
93e42a3c0f546694992844b7f24668538fcfb01e
/controller.py
e36a7d116f3c83778b2186b56a18296dcafafbf7
[]
no_license
zongjunhao/tencent_relationship_map
a89def2fdf151e12cd2b6d599451a37ac611dab8
61d2c808f1e3f4ea014be5192cec56ee386780c2
refs/heads/master
2023-08-23T20:10:22.132142
2021-10-24T10:17:08
2021-10-24T10:17:08
416,812,111
1
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
from flask import Flask, redirect, url_for, request from flask_cors import CORS import util app = Flask(__name__, static_folder="visualization", static_url_path="") CORS(app, supports_credentials=True) @app.route('/get_init_data') def get_init_data(): return util.generate_graph_data() @app.route('/get_raw_dat...
ccd8398a6f0d223f5b36f6d68625ad6b7499eeec
0d42d967b732a789705f9e08e538090f69808706
/flaskr/__init__.py
1ada9012763c5ef7962dc17079683c63cf8938b6
[ "MIT" ]
permissive
aicioara-old/flask_tutorial2
f812ed25f57430b48669587dd2e6905760df33bb
acb5c6fa2743f2f060ad6a3a26cc7eef56b6490b
refs/heads/master
2020-05-23T16:31:32.983214
2019-05-14T17:35:23
2019-05-14T17:35:23
186,851,392
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import os import datetime import click from flask import Flask from flask import current_app, g def create_app(test_config=None): # create and configure the app app = Flask(__name__, instance_relative_config=True) app.config.from_mapping( SECRET_KEY='dev', DATABASE=os.path.join(app.instan...
270b750136f37b35a8ec6301de7546fe80dc514e
8186514b510a801863229e3f9711c0c657e727e5
/assembly/qtable/qlist_q.py
c4d46f59661410f1d3c06c6df3d6c2b23370a997
[]
no_license
masknugget/mypyqt
274b2cbbf66c04927453815248f9c1bc5e65ca17
b86a49e4b8c7c8c3d8546ce1b49f8f3bb6332307
refs/heads/main
2023-08-17T13:30:11.451066
2021-09-27T14:14:54
2021-09-27T14:14:54
355,904,935
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
# 自定义控件--实现了一个带全选功能的复选框 import sys from PyQt5.QtWidgets import QApplication, QListWidget, QCheckBox, QListWidgetItem from PyQt5.QtCore import Qt class FilteredList(QListWidget): # 继承自列表控件 def __init__(self, textList, parent=None): super().__init__(parent) self.selectAll_ch = QCheckBox("全选(sele...
6ff2f7bbff706bd61e5fbd3eab9118c72980e899
a7723fa70d4a7701b038b37d1913d917fd2e8e8f
/codeif/app/dashboard/writer/post/apps.py
f64003df9a3ac78b305400cd0e393cb9a0f03ee8
[]
no_license
Nym-Git/codeif-internship
e3f8656b1eb0a1baf095f80d262eb172cf88a027
5af8597cadf02b670dd593a804dcc0e0b3f6bb53
refs/heads/master
2023-07-16T03:03:55.343589
2021-08-26T14:11:48
2021-08-26T14:11:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
from django.apps import AppConfig class PostConfig(AppConfig): name = 'app.dashboard.writer.post'
4d4174c05cd9b20b5c5012cc3f5ba7fd0900d63d
669660bee94af2f9312ca84fb5ea956e35e551ac
/quickstart/views.py
f7fe0ca0347e4d744beeb57d36c23e64e4c4a31c
[]
no_license
jaymodi-ntech/demo3
d8bc9746788927fc7dc5cd72352c85f552b32ce7
f930bfe2b087a0a446ed9deeddf8205d895a18bd
refs/heads/master
2021-01-02T09:34:39.014444
2014-10-06T11:13:34
2014-10-06T11:13:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
__author__ = 'mj' from django.shortcuts import render # Create your views here. from django.contrib.auth.models import User, Group from rest_framework import viewsets from quickstart.serializers import * class UserViewSet(viewsets.ModelViewSet): """ API endpoint that allows users to be viewed or edited. ...
[ "ntech@n-tech.(none)" ]
ntech@n-tech.(none)
3add78b720f640eb549c134985d2b3184558de5d
151f71970df1e6e3734b1a9f834db51d02bdf2db
/tools/validator.py
6c54b18254dbdae4f036144f4dfdbc4dff7b9cf9
[]
no_license
mbiparva/slowfast-networks-pytorch
20e6ea77f58f4c67c40cda1234e6f30a234ef8aa
27da5fc479e38d7440d9651ee236bf4a296e7a55
refs/heads/master
2020-07-07T17:42:30.538222
2019-08-20T18:59:08
2019-08-20T18:59:08
203,425,393
21
4
null
null
null
null
UTF-8
Python
false
false
545
py
from tv_abc import TVBase import torch class Validator(TVBase): def __init__(self, mode, meters, device): super().__init__(mode, meters, device) def set_net_mode(self, net): net.eval() def batch_main(self, net, x_slow, x_fast, annotation): with torch.no_grad(): p = ne...
e46294ff8a6718f3fb4b012273d0b1ce052e33ed
ca5334081b6fc6298becc0aac4b6ef5872b484e2
/comments/validators.py
079e918c70c9b1ce25fbb81d90f9340ac85afa63
[]
no_license
tachiefab/codewithtm
1b575f9884b19124303419fb5c5029e4ab7b3306
42ea8d761103a695c4428a5a1204a176cef2e3b5
refs/heads/master
2023-03-15T17:28:45.582101
2021-03-08T04:41:31
2021-03-08T04:41:31
284,474,285
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
from django.core.exceptions import ValidationError def validate_content(value): content = value if content == "": raise ValidationError("Content cannot be blank") return value
4611dd4f883110ac156a9299f169d60ae6b42feb
12a47a2aca78086c76dc4e669abfe00fa012f6c5
/day9.py
f51e18f0fadb0285ed3c50cf564b13ddd53747dc
[]
no_license
susieir/advent_of_code_2020
67e155ffff57b662b3edde0235da6290cfb2c331
f1881dad8c7d790654357c2cdb5a1830af560c12
refs/heads/main
2023-02-20T05:18:33.991166
2021-01-21T15:56:05
2021-01-21T15:56:05
330,618,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
""" Advent of code puzzle - Day 9""" def create_input_list(filename): """ Reads the input data and stores as a list""" with open(filename, 'r') as fp: return [int(x) for x in fp.read().splitlines()] def inspect_check_number(filename, step=5, inc=0): """ Function that inspects whether t...
33282c89da89f060278ed17e50013ffdb1f88707
455c1cec4101254a0b7f50349e915411033a0af1
/supervised_learning/0x00-binary_classification/9-neural_network.py
5f65dc0fea7fe410b59fbce3194f1ddcd97e815b
[]
no_license
Daransoto/holbertonschool-machine_learning
30c9f2753463d57cac87f245b77c8d6655351e75
1e7cd1589e6e4896ee48a24b9ca85595e16e929d
refs/heads/master
2021-03-10T14:32:09.419389
2020-10-23T19:47:31
2020-10-23T19:47:31
246,461,514
0
1
null
null
null
null
UTF-8
Python
false
false
1,290
py
#!/usr/bin/env python3 """ Creates a neural network. """ import numpy as np class NeuralNetwork: """ Neural network class. """ def __init__(self, nx, nodes): """ Initializer for the neural network. """ if type(nx) != int: raise TypeError('nx must be an integer') if nx < 1: ...
9ac60f6dc3755d4c8f3c20fd4d1cd54718994a90
2faf152deabb0476ac43d4754f3b529fd678a36d
/ch_18.py
3d923149df97df02941390334db1bf1ff1f74392
[]
no_license
Sakartu/matasano
46cba1325a01c41f6272f80b9fa698c6338c2e50
b42e5a2ce5daa2fcc6691873e995a4b0d05e03d2
refs/heads/master
2021-01-23T09:51:50.305296
2015-08-10T15:37:59
2015-08-10T15:37:59
32,535,769
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
#!/usr/bin/env python3 # -*- coding: utf8 -*- """ Usage: test_ctr.py """ import base64 import util __author__ = 'peter' def main(): test = base64.b64decode('L77na/nrFsKvynd6HzOoG7GHTLXsTVu9qvY/2syLXzhPweyyMTJULu/6/kXX0KSvoOLSFQ==') assert util.aes_ctr_decrypt(test, b"YELLOW SUBMARINE") == b"Yo, VIP Let's ki...
06f952c695c3533ca0dd029f3e93895af5b02c59
5c8139f1e57e06c7eaf603bd8fe74d9f22620513
/PartB/py删除链表的倒数第n个节点的位置的值2.py
ab9093a8ca2755b9b1f62111641d210996e07d4a
[]
no_license
madeibao/PythonAlgorithm
c8a11d298617d1abb12a72461665583c6a44f9d2
b4c8a75e724a674812b8a38c0202485776445d89
refs/heads/master
2023-04-03T07:18:49.842063
2021-04-11T12:02:40
2021-04-11T12:02:40
325,269,130
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
# 把一个链表的倒数的第n个节点来进行删除。 class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def remove(self, head, n): dummy = ListNode(-1) dummy.next = head slow = dummy fast = dummy for i in range(n): fast ...
8982cf56ab7561232b24afc577a5d47a1a120f37
57d9d4e881ea308db01938c39afc20091d87a1ab
/src/web/views.py
f96b8cb43a75b61fe5d479b89a92e0b96f0a90c3
[]
no_license
logworthy/parku
14eea4351c366d5b0a03e56fa385fb8df0d71b90
e2fc9323d42abc4e616ac717ab4e7d009c1abe87
refs/heads/master
2020-04-06T06:54:25.282258
2014-08-30T03:56:39
2014-08-30T03:56:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
from django.shortcuts import render def index(request): return render(request, "web/index.html")
68cfaa5dc120b4df33a466b592bd6685a7dceb21
83aca2c2e2608d3a44b43c2bc9fa396e290580f9
/Faculty/PlagueGame/src/repository/file_repository.py
0007ecd2807ac5d2d2e4d86144fef2d96e340587
[]
no_license
biancadragomir/school-work
b91fb2e947435b9030d7e5ef8e2f5e362698d5eb
ca43abc656d2e0d87bc5a389d77de038fa220fdd
refs/heads/master
2020-04-03T05:49:58.245702
2018-10-28T10:07:46
2018-10-28T10:07:46
155,057,194
1
0
null
null
null
null
UTF-8
Python
false
false
1,359
py
from domain.entities import Person from repository.person_repository import PersonRepository class FileRepoException(Exception): def __init__(self, msg): self.__msg = msg def __str__(self): return self.__msg class FileRepo(PersonRepository): def __init__(self, fileName): PersonR...
47e8f9432798989895c7cbfef00d209e0fdc4bb3
45c870a3edf37781efd6059a3d879aedf9da7f7f
/custom_resize_drag_toolbar_pyqt5/example.py
cd9c9f2dad5a08e344715d5aaa95e6dcedafa101
[]
no_license
saladeen/custom_resize_drag_toolbar_pyqt5
e6dc8598df6b7d58bf3114bfa348db38c2b1512b
f38aa8b263b08fd0f94ea2e1428e873cdadce80e
refs/heads/main
2023-08-11T04:44:53.349929
2021-10-01T19:10:20
2021-10-01T19:10:20
412,588,371
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout from PyQt5.QtCore import Qt import resizable_qwidget import toolbar import sys class ExampleWindow(resizable_qwidget.TestWindow): def __init__(self): super().__init__() layout = QHBoxLayout() layout.addWidget(toolbar.C...
68ad4b3925c2279ab9c55e808cc56b98321c3f2a
042688362e547b2c45427f90723196f5d9f56792
/応用編/37.改行コードの取得/os.linesep.py
a60233ee7ad6f2da8f510d8e3f3cb0754b671128
[]
no_license
Watapon1704/python_study
5a0b482f2cd5f4b02f4411a812b30ef260a8a7c5
a196c692ff5b232c108f301ce5e165bc781df55e
refs/heads/master
2020-03-12T00:59:31.671306
2019-03-27T12:48:44
2019-03-27T12:48:44
130,363,832
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
import os test_str = 'python-izm.com' print(test_str.replace('.', os.linesep))
82bf4f9dd14a53dadeab63ace0b26d76c4989687
866d527d9264765dc2ada2fcd523163e9d686061
/practices/baby_shark.py
c01dc9e39c3901d132766be6c7f50e4862e58490
[ "MIT" ]
permissive
kimjiwook0129/Coding-Interivew-Cheatsheet
910d245b83039d59302df71ac5776425ab1b92c2
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
refs/heads/main
2023-08-21T03:57:43.328811
2021-10-02T08:59:27
2021-10-02T08:59:27
371,915,448
3
0
null
null
null
null
UTF-8
Python
false
false
1,835
py
# https://www.acmicpc.net/problem/16236 from collections import deque def bfs(table, curRow, curCol, N, sharkSize): visited = [[False] * N for _ in range(N)] q = deque([(0, curRow, curCol)]) dx, dy = [-1, 0, 0, 1], [0, -1, 1, 0] arrayOfPossibilities = [] while q: dis, row, col = q.popleft...
c0fd1993ef34225c74db2d83b77f92209b7547fb
08355c36cafc4ad86a5e85a6a70204796a6722f6
/api/entity/image.py
219bd7cfa852a70ffeb8bf1b98f43b22c530210b
[]
no_license
vankcdhv/CosinSimilarity
0a3d114be3cfc8dec3e80ec88dbbea7d0f4bd690
70cb59329e55eecc0c57e9e9dbcca04e39ff3ea5
refs/heads/main
2023-04-19T22:08:03.653394
2021-05-11T02:07:48
2021-05-11T02:07:48
366,228,611
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
from multipledispatch import dispatch class Image: @dispatch() def __init__(self): self.__id = 0 self.__postID = 0 self.__url = '' @dispatch(object) def __init__(self, row): self.__id = row[0] self.__postID = row[1] self.__url = row[2] @property ...
b7f47856158c111a86a9df8272bdabd459f506dc
8d0e0fa1062d575a0370bb842f7cafd85dc58ff9
/Graphics/Players_Graphic.py
3e9fece82cadf4d62cc54acc9677149cc92b6134
[]
no_license
KorneevVladislav/Blackjack
4aa1418bed12ddb17e0abd2324d814007939ac2a
abeeceba061e1fc874286ce002611694083ec0d9
refs/heads/master
2021-05-17T18:38:16.106196
2020-04-27T17:29:49
2020-04-27T17:29:49
250,922,343
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
import pygame #def PlayerGraphics(): #def DeilerGraphics():
4d9688118734773d4a204a1b601cc1ffda2a036e
dc987f2153345dfb383de804c112aa54be2199d7
/Code buoi hoc/Buoi 7/bt.py
a3530b4d9ecee6edfc2ad920e627c86ecbde8793
[]
no_license
lva123/python101-sinh-vien
c2d204a7dec26bcff2f212372468bb658beed0ac
cdc177f30404cd2175b11e6ad0e9877df7252497
refs/heads/main
2023-09-03T00:51:35.641239
2021-11-20T03:19:10
2021-11-20T03:19:10
429,988,208
0
0
null
2021-11-20T02:23:03
2021-11-20T02:23:02
null
UTF-8
Python
false
false
351
py
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': n = int(input().strip()) if n % 2 != 0: print("Weird") else: if 2 <= n <= 5: print("Not weird") elif 6 <= n <= 20: print("Weird") elif 20 < n: ...
f10d585c637387ccc269aab61ce295e13ab11663
321e58ab3e6b2385bb3549aaaefd56a58c2a51e7
/python/atpic/perf_postgres.py
3c2b1312c886a38a2fa3d9e62deeb883a4697fb5
[]
no_license
alexmadon/atpic_photosharing
7829118d032344bd9a67818cd50e2c27a228d028
9fdddeb78548dadf946b1951aea0d0632e979156
refs/heads/master
2020-06-02T15:00:29.282979
2017-06-12T17:09:52
2017-06-12T17:09:52
94,095,494
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
import atpic.database import time import pycurl import StringIO import cStringIO time1=time.time() for i in range(1,100): print i con=atpic.database.connect() listofdict=atpic.database.query("select 1",con) con.close() time2=time.time() print "==========" con=atpic.database.connect() for i in range...
2472d991874e1382b2a57fe70f66ab353ff64c6b
1ec1d20f16a9bd9d51b8a7be9b7fa5fcec6a4f02
/main.py
79809bf14ee1eb4fa881034b745157b21fdc73eb
[]
no_license
billyjia1/UnfairBulletHell
b676f66a3c033e765f832e57a0f1bb3d8acbc394
8d623113ec1491e949164599e9db77217bb8c35d
refs/heads/main
2023-08-15T00:09:45.935440
2021-09-27T21:39:09
2021-09-27T21:39:09
409,778,226
0
0
null
null
null
null
UTF-8
Python
false
false
10,077
py
import pygame import os import time import random pygame.font.init() WIDTH, HEIGHT = 750, 750 WIN = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Space Shooter Tutorial") # Load images RED_SPACE_SHIP = pygame.image.load(os.path.join("assets", "pixel_ship_red_small.png")) GREEN_SPACE_SHIP = pyga...
abe8946f42327bcd1a8465e567045df15152ea4d
5e5a301bbd9887dee50d416e2a0de61b5c8133ad
/webhelper/models.py
85b0fce4b4ec05e137f39107ff5fca70e91959a7
[]
no_license
dmalikcs/django-webhelper
a3965656e1b95a9d715b442919dcd80ba45baa2f
d2f0e7ac3f72b16ba696525f7ac903c8d8c876ee
refs/heads/master
2020-06-02T08:28:33.194264
2014-04-15T16:56:45
2014-04-15T16:56:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,603
py
from django.db import models from django.contrib.sites.models import Site from django.core.validators import RegexValidator class SocialLinks(models.Model): ''' facebook linkedin twitter gluse rss ''' facebook = models.URLField( max_length=100, blank=True, null...
fd910a171a8cf2b17e59bea547030c2eb288ab75
32c993540a42ac5110e82ee9f23b1c7c9ce32332
/logicaldoc/__init__.py
2f8ffb535901cf92a58100dcf389fa5cab41f57e
[]
no_license
OpenCode/logicaldoc
2f7ef4287eac677b5033e4ed9b8c4eefd68c67f0
089a35c86db9c0bb024bc6bfcee699f84b8169ad
refs/heads/master
2020-05-21T06:00:46.577484
2019-03-27T13:54:30
2019-03-27T13:54:30
84,583,273
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
# -*- coding: utf-8 -*- # © 2016 Francesco Apruzzese <[email protected]> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from .logicaldoc import LogicalDoc from .constant import *
4e37a9db4d23fe3b02b8714633e4e1eb463a253b
a67f928aea79cfceca16cb40e62e51dd7e484dd4
/analysis/analysisLog.py
ad6ade7d698ca4e0aa19a76b6a049ee594142bb2
[]
no_license
daniyuu/LatticeLSTM
2b6293d35f8ed674854bda8611d91992fa2fbd59
03953e576db12c741e804b1c36aa461696d018b9
refs/heads/master
2020-03-22T19:38:56.944213
2018-09-14T07:09:47
2018-09-14T07:09:47
140,542,239
2
0
null
2018-09-14T07:09:49
2018-07-11T08:04:15
Python
UTF-8
Python
false
false
3,079
py
import os from datetime import date import pygal log_folder_path = "./log/" result_folder_path = "./result/" if not os.path.exists(result_folder_path): os.makedirs(result_folder_path) def analysis_overall(file_name): logFile = open(log_folder_path + '{0}.txt'.format(file_name), 'r') y_test_p = [] ...
dbb6da85866332dca534ebaa601baddbff1949fb
059742e69e6842eea5fff25acc8329a08ea3eb86
/OauthDemo/bloggo/posts/urls.py
28d10dcf290be21c565343a95fdf034bcb0bbb13
[]
no_license
commanderchewbacca/Guides
856aa556fa263f32282b4607d64f1f02f98316d3
e07a5d71c556d46cebb54dc404dc73ce16057b7a
refs/heads/master
2020-03-11T00:22:07.701088
2018-04-15T02:08:32
2018-04-15T02:08:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
from django.conf.urls import url from . import views app_name="posts" urlpatterns = [ url(r'^/$', views.index, name='index'), url(r'^about/$', views.about, name='about'), url(r'^details/(?P<pk>\d+)$', views.post_details, name='post_details'), url(r'^fitbitinfo', views.fitbit_info, name='registerfitbi...
d41314fca2d3cdd3ddb87acbf55bd346e0642cd2
05b598f07c5f58c4278fd7d3e31b2a74f84d7fcb
/SConstruct
429244eff91806e3da6047183f46ddd3e9f0a1f8
[]
no_license
jpcummins/sortr
1e604e1a0b9aecf8ae4456489c7d6e692008b97f
329f0f1c9a89002088673945f2464740637f5612
refs/heads/master
2020-05-16T21:08:18.930490
2010-11-22T01:04:38
2010-11-22T01:04:38
957,342
1
0
null
null
null
null
UTF-8
Python
false
false
94
import os env = Environment(CCFLAGS = '-g -Wall -pedantic') env.Program('test', Glob('*.c'))
052349cced621bbf4fe2950e0da1e1f43cdde479
ece5aafef31d93ad9e344f71f5d33d19a7a87651
/model/pspnet2/cil.pspnet2.R101/eval_all.py
e2620a6800f92f1d3190d77d02c16e18fd42762b
[ "MIT" ]
permissive
lxxue/TorchSeg
f8325b97b55d4da7ea4a25ea812b122ab9ce661c
da5eae8c2c3734924a5178cf3c9e4dafb9c6c16f
refs/heads/master
2022-11-27T11:39:11.302225
2020-08-01T07:57:56
2020-08-01T07:57:56
274,429,653
0
2
MIT
2020-08-01T13:39:10
2020-06-23T14:37:22
Python
UTF-8
Python
false
false
360
py
import os import numpy as np epoch_nums = np.arange(200, 4100, step=200) print(epoch_nums) for e in epoch_nums: print("-----------------------------------------------------------------") print(e) os.system("python eval.py -e {} -p results_eval/epoch{}/".format(e, e)) print("----------------------------...
b0ebd397cc8459a46dd0ef18c330ccdc2c8d2efb
bef4b43dc0a93697dfb7befdf4434994d109d242
/extract_features.py
0bb7bcc29969f2399ab42483e98a35287f5e4aac
[]
no_license
karanjsingh/Object-detector
69d9e5154b9f73028760d6d76da1a0f55038cfea
9114e95f79e2dd77a3cbbbee92e4432e5c237362
refs/heads/master
2020-06-25T22:31:14.941147
2020-01-14T23:36:22
2020-01-14T23:36:22
199,440,746
1
0
null
2019-07-29T11:43:34
2019-07-29T11:34:47
null
UTF-8
Python
false
false
3,513
py
#import necessary packages from __future__ import print_function from sklearn.feature_extraction.image import extract_patches_2d from pyimagesearch.object_detection import helpers from pyimagesearch.utils import dataset from pyimagesearch.utils import conf from pyimagesearch.descriptors import hog from imutils i...
161039098666b2a69f57aa3710a588c4f046cc99
f3e2912c5631337985373df238d68b5c0d340add
/leetcode/p138_v2.py
ee8d872a784db1ca0d90df226fe24f0d54fe243b
[]
no_license
mrfox321/leetcode
b7eb318e6679a4a99ab0aa9b0149013bc1817dc3
7b355ff4514c4cb17e970e10f2338542d2435aa9
refs/heads/master
2021-05-12T02:48:56.391646
2018-01-15T21:35:24
2018-01-15T21:35:24
117,597,860
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
def vote3(nums): count1 = 0 count2 = 0 num1 = 0 num2 = 0 if not nums: return []
2d96b9e44c4d5cf68a3afe6db0a8a384018a4a30
0dafa1dff4429bb8893445d05202061ff4f9f710
/plotting_scripts/plot_sigloss_modeloop.py
1aba5bcdf53def99fce4f45924bf9b849ed55c96
[]
no_license
carinacheng/PAPERMethods_paper
8d879291eb4d30e3a0d98286fbab4dd42bba3ef7
9b657e0274842477643407db89916781ac948f80
refs/heads/master
2021-07-23T21:59:29.331251
2018-11-01T23:25:08
2018-11-01T23:25:08
95,481,809
0
0
null
null
null
null
UTF-8
Python
false
false
6,724
py
#! /usr/bin/env python import numpy as n import matplotlib.pyplot as p from scipy.optimize import curve_fit # Reads in power spectrum results from projecting out 0,1,2... modes # Plots power spectrum results before and after signal loss correction as a function of modes removed if True: # eigenmodes set to 1 pat...
d4ae3c0ec0b6138ccbc71c51af7764f03636fedc
f2bd7e127de1a49407858bfa24e2dacdf8a2159a
/exercises/ex3_1.py
f83e013df042248baedc94da8f381edfa85a83ed
[]
no_license
eddyhuyhp/ThreeCat
795b808040540fb14773938ccb9d4aca2a1c5d0a
81d51938ea5080f286decf3011493487e2639713
refs/heads/master
2020-03-16T13:31:25.208675
2018-05-09T03:19:44
2018-05-09T03:19:44
132,692,766
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
#!/usr/bin/env python3 def solve(input_data): '''Đầu vào: một số nguyên dương Đầu ra: số nguyên tạo bởi phần từ số 1 cuối cùng trở về bên phải - của dạng binary của số đầu vào. Ví dụ:: input_data = 5 # (0101) output = 1 input_data = 24 (11000) output = 1000 input_data ...
9b8aae38ac4636bc7486232355f8895685ede2c4
042f1fe8d0b89b0df7043af0d37f24ef5508784c
/websphere-traditional/virtual-host.py
d1099de42f1326bdeca2ecc44c1ec019fba1a7b0
[]
no_license
pdprof/icp4a-helloworld
2e6eeeb25e665f32d2dc86c03d1a2332501cb847
849b4bc07b70fd78c28539326c8df48421b671f2
refs/heads/master
2023-08-10T09:21:36.404230
2021-09-13T09:41:31
2021-09-13T09:41:31
319,898,688
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
print "set default-host..." AdminConfig.create('HostAlias', AdminConfig.getid('/Cell:DefaultCell01/VirtualHost:admin_host/'), '[[hostname "twas-admin-route-default.apps-crc.testing"] [port "80"]]') print "delete *:80..." AdminConfig.remove('(cells/DefaultCell01|virtualhosts.xml#HostAlias_2)') print "set admin-host..." ...
e5825d77166ea761d10b731b739736acb581c092
f061602595a78bdbdbf32e2dfdcfe623db5b8efd
/graph/models.py
e48f2ed8c0b90fc6e2e06d8ee764bb75c38b0d6f
[]
no_license
NorbertMichalski/utilities
b9e0643d4b8e0097e0c774d63adbeaa66d3da06b
da27a23add9c42d62ae21a5e74eef920bbd3d839
refs/heads/master
2020-05-14T19:04:23.262384
2014-01-27T13:45:28
2014-01-27T13:45:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,937
py
from django.db import models from django.template.loader import render_to_string from prices.models import Product, Result from scrapers import ClickyScraper, RankScraper, OrderScraper, CashScraper import datetime # Create your models here. class OverviewGraph(models.Model): brand = models.CharField(max_length=50...
a161266ee413fb7f3bb8b94466c9d03314de7ee9
633b695a03e789f6aa644c7bec7280367a9252a8
/lmfit_gallery/documentation/fitting_withreport.py
412f4c07159b2a6fb06c2af10b0d239b29d68e3f
[]
no_license
tnakaicode/PlotGallery
3d831d3245a4a51e87f48bd2053b5ef82cf66b87
5c01e5d6e2425dbd17593cb5ecc973982f491732
refs/heads/master
2023-08-16T22:54:38.416509
2023-08-03T04:23:21
2023-08-03T04:23:21
238,610,688
5
2
null
null
null
null
UTF-8
Python
false
false
1,206
py
""" doc_fitting_withreport.py ========================= """ # <examples/doc_fitting_withreport.py> from numpy import exp, linspace, pi, random, sign, sin from lmfit import Parameters, fit_report, minimize p_true = Parameters() p_true.add('amp', value=14.0) p_true.add('period', value=5.46) p_true.add('shift', value=...
dd70ce0a8d819d13d154991d54421443c6ce4260
5b4deaae0a06d84418d750d80ad0c954e84d954e
/documents/admin.py
9b9639bbc4da8f8acb46ee2e5d05b9f7d18c4d79
[]
no_license
maratovision/military_crm
d3dfdca84dad45e5c903571624057ddf16c5d9d0
d44d9ff581b53895cef8d00b0a25a2a2e84337f7
refs/heads/master
2023-04-28T19:01:41.305201
2021-05-19T15:12:57
2021-05-19T15:12:57
362,474,704
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
from django.contrib import admin from .models import * admin.site.register(Document)
8332e30937e9e1b5e5122db696b4431f00c38374
6223dc2e5de7921696cb34fb62142fd4a4efe361
/.metadata/.plugins/org.eclipse.core.resources/.history/51/40e6c6177739001412b5c17ef71e72e3
6db0fb731998676d3ddb05dbce7d5249db6922c6
[]
no_license
Mushirahmed/python_workspace
5ef477b2688e8c25b1372f546752501ee53d93e5
46e2ed783b17450aba29e4e2df7b656522b2b03b
refs/heads/master
2021-03-12T19:24:50.598982
2015-05-25T10:23:54
2015-05-25T10:23:54
24,671,376
0
1
null
2015-02-06T09:27:40
2014-10-01T08:40:33
Python
UTF-8
Python
false
false
1,442
#!/usr/bin/env python import wx def slider(parent, min, max, callback): """ Return a wx.Slider object. @param min: minimum slider value @type min: float @param max: maximum slider value @type max: float @param callback: function of one arg invoked when slider moves. @rtype: wx.Slider ...
532a4c353a1544432b498ed028eb0f65b6b9fc4d
e2860eb874db045fb8d0279566a935af907e5bdf
/ml/ml07_1_boston.py
b245a54bef04d78667e33b52f33e63088f0a8179
[]
no_license
MinseokCHAE/Bitcamp2_new
dda7990907cb136c2e709a345eec634dfdb6ac02
849adb5a330b621f1c681f0b5e92005d1281a44d
refs/heads/main
2023-08-31T03:28:18.068561
2021-10-05T00:48:52
2021-10-05T00:48:52
390,228,262
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
import numpy as np import time from sklearn.metrics import r2_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler, StandardScaler, RobustScaler, QuantileTransformer, OneHotEncoder from sklearn.datasets import load_boston from tensorflow.keras.models import Sequentia...