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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
54c3b0e260c86c076df393e5c072e11bffa98d3b
cfa7034c6bdaaa45c541666ca27b50c75caf707f
/inference.py
4afbde7190489a5ba2044cb6c3bca5282eee4a03
[]
no_license
AChengy/Artificial_Intelligence_Pacaman_Tracking
a472dfa440d49729813cc47b3a921e7a0f0f1415
fe69ffa1cb1494b1722a1e9ad5bd54691707edad
refs/heads/master
2021-01-01T03:59:36.509201
2016-04-23T22:56:18
2016-04-23T22:56:18
56,904,323
0
0
null
null
null
null
UTF-8
Python
false
false
25,983
py
# inference.py # ------------ # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. ...
[ "alex.chengelis@gmail.com" ]
alex.chengelis@gmail.com
2e35b80c7caaa11de6e7a6c8ec18671878f4edcd
c20e0c8b68e0c42afae42d3fc9afda7fdde41744
/NumberGuess.py
f7135fdc13bffd1c84447e4f7ec7f215293110e5
[]
no_license
MattaAtakan/NumberGuess
65f79c09df26194ef355f8ce1a63b0b48992d33f
477d5b972c05209b97919720cb1866e66cecf264
refs/heads/master
2022-07-10T09:28:13.202828
2020-05-16T11:51:36
2020-05-16T11:51:36
264,425,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
from random import randint from time import sleep def get_user_guess(): guess = int(input("Guess the number: ")) return guess def roll_dice(number_of_sides): first_roll = randint(1, number_of_sides) second_roll = randint(1, number_of_sides) max_val = number_of_sides * 2 print("Th...
[ "noreply@github.com" ]
MattaAtakan.noreply@github.com
5cbe16584b54d3540a89ca8f46bb85656526da34
0152b53f7f1a47997d99e6b87402efc3ba7a799e
/day8.py
b9018daee532e0a37d61c16b568df1c78e546cba
[]
no_license
KVooys/AdventOfCode2017
8fba09039aa26aa18ddafeb83be6879de171f5fa
245aa7d4a6c3ca0eeaf6f59ca7085f0c2448af67
refs/heads/master
2021-05-06T22:42:48.502213
2017-12-17T16:16:26
2017-12-17T16:16:26
112,851,989
0
0
null
null
null
null
UTF-8
Python
false
false
2,009
py
""" Input is a set of instructions related to named registers if the conditional is true, perform the change Find what the largest register is at the end """ from collections import defaultdict # store register values here registers = defaultdict(int) # extract variables from the instruction test = "b inc 5 if a > ...
[ "k.vooys@hotmail.com" ]
k.vooys@hotmail.com
2d56d902771278a4dbfd5ae09f7f13cf70c78b82
1ace2c0a2022024cf987f8087e4f6d5fc3865b1d
/lib/dataset/transforms/__init__.py
7dd8c7cd0e1bcc0d12d4874ac745c7729c9b13eb
[]
no_license
ZJULiHongxin/HRNet-Hand-Pose-Estimation
b6b31f34d55067f853d6458240c5e59909670ddd
9ce02e7161051e7a25573a7791117e1e6b92abd3
refs/heads/main
2023-05-05T10:34:28.263160
2021-05-20T01:43:50
2021-05-20T01:43:50
369,047,460
1
1
null
null
null
null
UTF-8
Python
false
false
284
py
from .transforms import Compose from .transforms import RandomAffineTransform from .transforms import ToTensor from .transforms import Normalize from .transforms import RandomHorizontalFlip from . import Mytransforms from .build import build_transforms from .build import FLIP_CONFIG
[ "hongxin_li@zju.edu.cn" ]
hongxin_li@zju.edu.cn
284a051b4199ebc1e0859e2bc7ce26faacac59c5
b7a97c2919807983cd418d9262a1246fff9d95a1
/apps/feeder/models/order.py
77d0d82a6596d396f812baa2efc04c2fd78f327f
[]
no_license
PUYUP/kirimsaran
da2f439c70979ab88ef2e62e3b2a73c2278ce077
250dddddc3d22429c26eed6bfeaf054666f0c110
refs/heads/main
2023-08-04T10:11:23.016982
2021-09-29T00:59:11
2021-09-29T00:59:11
397,851,918
0
0
null
null
null
null
UTF-8
Python
false
false
4,508
py
from django.core.validators import RegexValidator from django.db import models, transaction from django.conf import settings from django.apps import apps from django.utils.translation import ugettext_lazy as _ from .abstract import AbstractCommonField from ..utils import save_random_identifier class AbstractOrder(Ab...
[ "hellopuyup@gmail.com" ]
hellopuyup@gmail.com
b8eb80f7b390fefa87b95d483d818254e4c5eef7
2e9b81b3b33504069c9861587fb7ef7e14631b04
/Script/Search_By_Router_ARP.py
786048c538a0596d98dd53f6d04f56e9a898cd41
[ "MIT" ]
permissive
omarthe95/Cisco-MAC-Tracer
d4ff998dda1a7e9e210d6d991fde669a6bcfcb55
8b8083232c2b748e42245fb13f4b776a2371ce61
refs/heads/master
2020-06-04T16:49:12.122279
2020-04-25T23:24:53
2020-04-25T23:24:53
192,110,250
3
1
null
null
null
null
UTF-8
Python
false
false
3,969
py
#!/usr/bin/python3 import netmiko, glob ,os ,sys, re, socket, json from netmiko import ConnectHandler from netmiko.ssh_exception import NetMikoTimeoutException from paramiko.ssh_exception import SSHException from netmiko.ssh_exception import AuthenticationException USER = 'cisco' PASSWORD = 'Cisco123' IPacc="" cisc...
[ "noreply@github.com" ]
omarthe95.noreply@github.com
cc7ddd7c61ab177c7b5fccf25af20b075b8a99d1
a072a312eae030c471d19f6a67735337a146d396
/dataSetFromDb/test_agent.py
6cd0a3a6d50d8c6de94c325947123469a423c908
[]
no_license
allnightlight/LearningWithTemporalPointProcess
a26ea224fa7cd3750292ea5989d50a1d03a205df
2c2565c76878c23dba74d1447e3f0c4a50edb95b
refs/heads/master
2022-11-09T17:47:28.979752
2020-06-23T07:59:48
2020-06-23T07:59:48
261,947,992
1
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
''' Created on 2020/06/15 @author: ukai ''' import unittest from agentGru import AgentGru import torch import numpy as np import itertools class Test(unittest.TestCase): def test001(self): for (Npv, Nseq, Ndelta, Nh) in itertools.product( (10, 0) , (...
[ "shouta.ukai@gmail.com" ]
shouta.ukai@gmail.com
80330976f796cd31bd492341d4011ad69f3d0738
806652855eff597797b923c89d62745993551444
/docs/conf.py
0abf2beec0723b742af3ff2ca2ad02bf5ae14b3d
[ "MIT" ]
permissive
bellini666/graphene-django-plus
56248f352ffbd96b6c9654201da062a8e87b9387
945e8ff293ffe11cff04928c54ee67deeba4df28
refs/heads/master
2021-07-20T18:14:58.419890
2020-07-29T12:57:08
2020-07-29T12:57:08
200,929,655
0
0
null
2019-08-06T21:55:57
2019-08-06T21:55:56
null
UTF-8
Python
false
false
2,121
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
[ "thiago@bellini.dev" ]
thiago@bellini.dev
da8ed081dab3d99f9f34ef1edfe060e92520f36b
637ea32963b3ba0964d9dbdaee60c158a307273d
/Dynamic Programming/0-1 Knapsack/top-down 0-1 knapsack.py
3b63c46830260a38a685ecc18f1643a6c349abc9
[]
no_license
prachi1807/Data-Structures-and-Algorithms
0283aa6c3f9794d942819355512aa99e65ab3143
7029c75863a65dc85000e4eb4d02456c60c7daa8
refs/heads/main
2023-08-10T10:24:45.108313
2021-08-29T16:53:33
2021-08-29T16:53:33
341,242,242
0
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
# In the top down approach, we completely omit the recursive calls # Every value is stored in the DP matrix and the answer is the last value of the DP Matrix # We make a DP Matrix with one additional row and column for initialization # Rows ---> len(val) # Columns ---> W t = [[-1 for _ in range(3)] for _ in range(4)] ...
[ "noreply@github.com" ]
prachi1807.noreply@github.com
3eddeb775d3577dd33c2264ec122e8e82da69d1e
2974da49bf6bbc9509563356b311ad062f8352f0
/thumt/layers/nn.py
261f2b88aefc43fde929126f5b5964a8054f1d53
[ "BSD-3-Clause" ]
permissive
WeerayutBu/GCDT
057bdc5e6a716a860ea1b2a2cb2533bf9eeb53d0
5991044307f59598ea224b64f1f3b915fa00ebcc
refs/heads/master
2022-02-27T08:16:47.081494
2019-09-20T08:48:52
2019-09-20T08:48:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,837
py
# coding=utf-8 # Copyright 2018 The THUMT Authors import tensorflow as tf def linear(inputs, output_size, bias, concat=True, dtype=None, scope=None): """ Linear layer :param inputs: A Tensor or a list of Tensors with shape [batch, input_size] :param output_size: An integer specify the output size...
[ "noreply@github.com" ]
WeerayutBu.noreply@github.com
cfaa8651b5992022597531e96d3fb64ac7824898
ee16d40e1786fbdacb4dd16795845b18c367fa7e
/Server/Server.py
8a4b2f15f0f8c67ed050e8ba4b495802ceed22e2
[]
no_license
saiswaroop5225/Chat-APP
0915361fba4b0ed35f50dbf42e8be55989ae9060
c01c076e85a6e756b39473aa31b6e77ea7b8d82d
refs/heads/main
2023-03-17T19:04:07.405164
2021-03-10T05:32:20
2021-03-10T05:32:20
345,738,290
0
0
null
null
null
null
UTF-8
Python
false
false
2,029
py
from socket import AF_INET, socket, SOCK_STREAM from threading import Thread import time from person import Person # GLOBAL CONSTANTS HOST = 'localhost' PORT = 999 ADDR = (HOST, PORT) MAX_CONNECTIONS = 10 BUFSIZ =1024 #GLOBAL VARIABLES persons = [] # INTIALIZE SERVER SERVER = socket(AF_INET, SOCK_STREAM) SERVER.bind(A...
[ "42674406+saiswaroop5225@users.noreply.github.com" ]
42674406+saiswaroop5225@users.noreply.github.com
0e962f90bfe02d167857c860dda5543415903dcc
07c4798e133b3190c7a4351d6b40fdd2f0a40756
/Challenge_139.py
220f548c139b2e03b5515237db6f11ee740b37b6
[]
no_license
hardhary/PythonByExample
95f05ded7ea96e824cd0ee453ead97004d069dcd
15c2c496060b6058fe604f3f0389976ffe9293a2
refs/heads/master
2023-03-06T19:05:21.018556
2021-02-06T19:55:15
2021-02-06T19:55:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
import sqlite3 with sqlite3.connect("PhoneBook.db") as db: cursor = db.cursor() cursor.execute(""" CREATE TABLE IF NOT EXISTS Names( id integer PRIMARY KEY, firstname text, surname text, phonenumber text);""") cursor.execute("""INSERT INTO Names (id,firstname,surname,phonenumber) VALUES("1","Simon","How...
[ "jonathanvillordon@gmail.com" ]
jonathanvillordon@gmail.com
a5f5caa88096ea3da71c4e973a2095f500fa7cae
5417c8af1883ee47688b9027cbcc194dd87d643c
/flask/fameforecaster/model.py
ccde72335e90459fd4664775685e7138c9b6cf99
[]
no_license
chocochun/FameForecaster
29c44863f84d5bdac12865982415040420b4f7f2
2ba4ec90f235e5317fa079b0976b0776201c391e
refs/heads/master
2022-12-11T01:54:10.602910
2018-02-05T15:01:09
2018-02-05T15:01:09
119,705,836
2
1
null
2022-12-01T22:41:51
2018-01-31T15:32:12
HTML
UTF-8
Python
false
false
558
py
from wtforms import Form, FloatField, validators from math import pi class InputForm(Form): A = FloatField( label='amplitude (m)', default=1.0, validators=[validators.InputRequired()]) b = FloatField( label='damping factor (kg/s)', default=0, validators=[validators.InputRequired...
[ "chocochun@gmail.com" ]
chocochun@gmail.com
316e7365092c96ced14f54d6d4595c49ec57a2ca
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/392/usersdata/314/71167/submittedfiles/formula.py
f70b595a824c5bd58d3737692eea90af30944fcf
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
# -*- coding: utf-8 -*- print('digite P: '\n) print('digite i: '\n) print('digite n: '\n)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9cbf73b313ceadb9a84a8983a41d3478ed5d80c4
bd4144e919786b4aded4345a2a69ed79e0922946
/1월 3주차/공통조상.py
2f554303324d304c1362d167d0514050064e797d
[]
no_license
2020-ASW/kwoneyng-Park
670ee027a77c1559f808a51aaf58f27ab3bb85b9
3ef556889bbf3f2762c01fdfd10b59869d5e912f
refs/heads/master
2023-05-14T16:14:04.227511
2021-06-11T08:00:37
2021-06-11T08:00:37
321,286,504
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
from math import log2 def makeTree(cur, parent): depth[cur] = depth[parent] + 1 # 자식노드 차수가 부모노드 + 1 dp[cur][0] = parent for i in range(1,mxL): upper = dp[cur][i-1] #1 2^n if upper == 0: break dp[cur][i] = dp[upper][i-1] # dp[13][2] = dp[6][1] for child in n...
[ "nan308@naver.com" ]
nan308@naver.com
bbf936f4182cf543264b0bb7e67b827688cd1be8
231682b5285cb6e93ce8ca8f42e8a577b929dd18
/play/benchmark-test-copy-paste-from-erik-hallstrom.py
8b8465e2bb2a3decb30d927ab650b750d696d4b4
[ "MIT" ]
permissive
anthony-sarkis/self-driving-car-nanodegree-nd013
aca8faf05605b0071895be286bcceaab222015a3
910565c71ed789a8da079ba5f6e60a4fce0d65b4
refs/heads/master
2021-06-23T13:23:52.218671
2017-08-15T19:49:47
2017-08-15T19:49:47
71,311,641
2
0
null
null
null
null
UTF-8
Python
false
false
1,579
py
#### 100% of CREDIT TO ERIK HALLSTORM used for benchmarking from __future__ import print_function import matplotlib import matplotlib.pyplot as plt import tensorflow as tf import time def get_times(maximum_time): device_times = { "/gpu:0":[], "/cpu:0":[] } matrix_sizes = range(500,50000,...
[ "anthonysarkis@gmail.com" ]
anthonysarkis@gmail.com
96f31bfeb86c80ba89858cec03aa42169c5c1f39
9f98ed0db445cd69e22eea9e6cfefa929111fe7f
/setup.py
8afab05cdee21e2c40619e9211f70e7c7243323a
[]
no_license
zhuyoucai168/talospider
670c34fc75e709814c1dd9f9f72e0a21e07dee47
da4f0bdc6f6046c306be5c36d9016b74794823b0
refs/heads/master
2020-08-29T05:39:57.661905
2019-02-22T06:55:48
2019-02-22T06:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='talospider', version='0.0.6', author='Howie Hu', description="A simple,lightweight scraping micro-framework", author_email='xiaozizayang@gmail.com', install_requires=['lxml', 'requests', 'cchardet', 'cssselect'], ...
[ "xiaozizayang@gmail.com" ]
xiaozizayang@gmail.com
f5ffa547d398fd7b63d8eda40d9c5e9d6396f71d
0e12572e29aba5e2f10a23ab34d32573ce94da01
/wesleyVenters/chat.py
df169eeb11286b753e91a8aec882ff046574b13b
[]
no_license
Andre-Aguillard/Siren_2020CyberStorm
6e39a54b78bcbb29838e667c554d7f532b9b9f09
b7dbd9d1b1f1c390e73a77d2de98a8c22c393adb
refs/heads/master
2022-09-18T04:54:09.404336
2020-05-17T21:17:21
2020-05-17T21:17:21
264,212,798
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
#Wesley Venters #program 4 #for my program i have made it to where you only have to actually edit the program variable is if #the zero timing needs to be bigger than the one by making the timing arguments 3 and for #so when you run the code it should be (python2.7 i believe): #python chat.py "ip" "port" "zero timing" "...
[ "noreply@github.com" ]
Andre-Aguillard.noreply@github.com
541ccb08f012dd53867e6a59108a9f660bba337a
56b2e1bee45b32a0fba2e5400d1449364dbac1ec
/AlgorithmsPart1/medianWithHeap.py
2db06b7f04975ee316a1d7d12b962e3ee0e8aba5
[]
no_license
krammandrea/Coursera
c294c44e04efe26d0b82d62f320ba0f4d2d759e2
c3617c3d5a81a624495d625cf9a726de4477db8c
refs/heads/master
2021-01-10T07:59:50.269415
2014-04-06T03:35:17
2014-04-06T03:36:38
8,444,092
0
0
null
null
null
null
UTF-8
Python
false
false
5,149
py
#Input: a stream of numbers added over time #Output: median of all numbers so far, during every time #Idea: maintain two heaps of equal size, median is either at the root of #max-heap or min-heap class MinHeap(object): """ heap represented in an array, root contains the minimum, add element and remove r...
[ "krammandrea@gmail.com" ]
krammandrea@gmail.com
0121af025b75095b667e0d0416853d7206c880a4
ac83d1ddb84ecc904c73bdf779f458bd77efc98c
/src/programy/config/brain/binaries.py
730ef746b85832414db26d3fdd3828a61fc3a8a2
[ "MIT" ]
permissive
secrecy27/chatbot
77829f32a15e17563f038663aebebdb71e52c5a7
e65a753cf665a4d6d97b57703431cba5331e4f0b
refs/heads/master
2022-07-24T08:39:57.788009
2020-07-16T03:55:21
2020-07-16T03:55:21
130,678,143
4
4
NOASSERTION
2022-07-06T19:49:14
2018-04-23T10:12:01
Python
UTF-8
Python
false
false
2,747
py
""" Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
[ "secrecy418@naver.com" ]
secrecy418@naver.com
cc43cfea35b76a03d917ff020c3d23f68dc559c9
dd0a180ce381184de3f13c097fb1f75fbaae68e4
/FormTest.py
87e429501b4254409f350e3ea718efc014e48ba9
[]
no_license
Nitro5176/ExperimentingWithTkinter
9f9d39c9cf87acd56fdc1cd6c8f7b8d07ee7dcbc
aa4ec6ac18d4604683e3cf82b484c4fbc8d9c2e2
refs/heads/main
2023-07-21T02:51:23.057625
2021-09-03T01:15:32
2021-09-03T01:15:32
387,303,549
2
0
null
null
null
null
UTF-8
Python
false
false
955
py
import tkinter as tk listOfEntries = ["First Name:", "Last Name:", "Address Line 1:", "Address Line 2:", "City:", "State/Province:", "Postal Code:", "Country:"] mainWindow = tk.Tk() mainWindow.title("Address Entry Form") for i in range(8): for j in range(2): frame = tk.F...
[ "st.98.30.03@gmail.com" ]
st.98.30.03@gmail.com
d3b06bb9eabac99e4515b615ec43151d1574dfd5
b687a7e0a9a7166f8c3bb30a28d275b126a4d3b7
/blog/migrations/0001_initial.py
c5520bef1baae0be5acde2c0d3f1764b85a3587b
[]
no_license
IVYTONG0813/my-first-blog
b4b361216515717c90a46dab790547359d0e4fad
e618b8660bc45de1f516227c50b58dc4da7b498b
refs/heads/master
2021-01-01T19:49:31.567960
2017-07-29T06:39:41
2017-07-29T06:39:41
98,700,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-29 00:50 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
[ "ivytong0813@gmail.com" ]
ivytong0813@gmail.com
e49263d6772c3f3b42aca20ff6cb78fbfd338ca0
dd514dfcd2b2f981effeea45d9b03fa72f8878ed
/Targil3.4.2.py
5a67774191b7e1fe222ab8e1ef026db7d8fcf9ad
[]
no_license
ShalomVanunu/SelfPy
556e7237d468bc1b45a98085d7c55833fa602fca
11421378372178e3b945e4dea5887abbf66e704b
refs/heads/master
2022-11-11T12:51:09.533203
2020-07-05T15:00:22
2020-07-05T15:00:22
277,325,347
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
sentence = input("Please enter a string: ") LETTER = "e" #word_order = sentence.find(LETTER) new_sentence = sentence.replace("e","d") #new_sentence[word_order]="d" print(new_sentence)
[ "shalomvanunu@gmail.com" ]
shalomvanunu@gmail.com
a512b8037a74b6513f954b443d63b952a3fc0907
d39334881a1ff2633eea2874c5a4e6702dd2480b
/project_learning_5.py
34de6ca1fc91ec44c2d5ff8a930cb879afd201ae
[]
no_license
Phigaro/Experimental-Comparison-to-Improve-Performance-of-Spam-Filter-System
28364a3d759933d2c34a3872bdf62dd70b251561
6e820d6ec2a949d1c46e70be21250e26a9567324
refs/heads/master
2021-05-06T15:36:14.509384
2017-12-11T14:37:18
2017-12-11T14:37:18
113,620,705
1
0
null
null
null
null
UTF-8
Python
false
false
8,511
py
#-*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') import os import re import io import requests import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from zipfile import ZipFile from tensorflow.python.framework import ops ops.reset_default_graph() TrialCount = 20 # St...
[ "fkrlsp2@naver.com" ]
fkrlsp2@naver.com
f1218b031a16d088561ec348c303d8a31922c5ad
4678235a48fbf0e16c6a44fa1c7d97044ff2af90
/Object Oriented Programming/class methods.py
26cd83227d66b743a3b6e83f93b217cf5a2e9f83
[]
no_license
prerit1998jain/Information-Systems-Laboratory
1f1344d3fa5592affd737deaeaa11f8930ee0ff7
a4ea72bc91ef9a30bf1fa5f9e55d9a3d4310199c
refs/heads/master
2020-03-28T19:02:01.936262
2018-12-16T03:55:13
2018-12-16T03:55:13
148,937,895
1
0
null
null
null
null
UTF-8
Python
false
false
800
py
class Employee: no_of_employees = 0 raise_factor = 1.20 def __init__(self,first,last,pay): self.first = first self.last = last self.pay = pay self.email = first + last + "@company.com" Employee.no_of_employees +=1 def annual_income(self): ...
[ "noreply@github.com" ]
prerit1998jain.noreply@github.com
c286b1a874453c75683d06d59998a489a148fdfc
a48721b16b4d53c039619b9173d7c42e9a3319bb
/snake-game-windows.py
8724da4845712362dcc56ae396ccccbc353dc14f
[]
no_license
andreimarinx/snake-game
cb8ff1274d86a0bd780ed7f0b6e546caeaa79f39
8f3faa2ae2cbd94a85298a0fb279ae67ad494fbc
refs/heads/master
2022-07-24T18:32:56.525678
2020-05-20T21:10:52
2020-05-20T21:10:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,862
py
import os import keyboard import time import random import sys clear = lambda: os.system('cls') x = 8 y = 7 line = 0 length = 1 fruit_x = 8 fruit_y = 9 fruit_line = 0 fruits = 0 w=0 a=0 s=0 d=0 random_fruit_x = 18 random_fruit_y = 38 width = 40 height = 20 while True: if height == 4: ...
[ "noreply@github.com" ]
andreimarinx.noreply@github.com
ea4b9a1ac6f1aed7d859bf3e833b06decce9082a
dd920206e9ef8b0338cd331a4a4c39f1c5775915
/camera/views.py
5077b05cf6c27cc49f38cda18901bf9d4004406c
[]
no_license
Moeedtkxel/moment.ai
99757933f3b2ef859363eaf4d1506c21ee89eb4c
475c1d7bc1aa950af04840da841bb8d1414eae3e
refs/heads/master
2022-12-09T12:34:40.495723
2020-02-21T13:04:23
2020-02-21T13:04:23
242,093,664
0
0
null
2022-12-08T03:39:38
2020-02-21T08:45:55
Python
UTF-8
Python
false
false
386
py
from django.shortcuts import render from rest_framework import generics from camera.models import Camera from camera.serializers import CameraSerializer class DisplayAllCameras(generics.ListAPIView): lookup_field = 'pk' serializer_class = CameraSerializer queryset = Camera.objects.all() ...
[ "moeed.khalid@tkxel.com" ]
moeed.khalid@tkxel.com
7bf22c70f45685c4ea67f99072c20b8e37fac314
099acd6f0d3006070bbefb7647942b32cc74a588
/candy_shop/apps/delivery/views.py
a218de4bdf6d305aa34578225d46c2313a9e6d1e
[]
no_license
atsanda/candy-shop
9b3066a48f1b5860c0d08a8e7e32ca331b6a3296
8c1eef5f9b1dae1183433e9e6476b9bd1a7c132b
refs/heads/main
2023-03-30T16:55:24.288676
2021-03-25T20:17:36
2021-03-25T20:17:36
350,831,825
0
0
null
null
null
null
UTF-8
Python
false
false
3,182
py
from rest_framework import viewsets, status, mixins from rest_framework.response import Response from .models import Courier, Order from rest_framework.generics import GenericAPIView from .serializers import (CourierSerializer, OrderSerializer, AssignSerializer, CompleteOrderSerializer, Courie...
[ "tsanda.artyom@gmail.com" ]
tsanda.artyom@gmail.com
fcaa1532d63a15d6db0cad531937d07a12345735
e3d9d6d7866e98cd20afca85e81d9509d5dcd9c8
/model/RandomForest.py
03abfb440bae194a2cd5b15efc403498f0ec7bbc
[]
no_license
csienslab-PCC/PathConstraintClassifier
22d55cb647cb79281b9945a1019c55a8fb2b1eb0
c5e6052fb93987d70489386b10502d1570ca9692
refs/heads/master
2020-04-24T01:59:36.915301
2019-03-04T04:30:43
2019-03-04T04:30:43
171,620,594
9
3
null
null
null
null
UTF-8
Python
false
false
1,970
py
import sys import pickle import logging import numpy as np from ModelException import * from sklearn.ensemble import RandomForestClassifier from sklearn.datasets import make_classification sys.path.append('/home/enhancing-se/enhancing-se/PathConstraintClassifier') import config class RandomForestModel(object): ...
[ "how2play@how2hack.local" ]
how2play@how2hack.local
addb030e7205b03d033c250b1cbd6dcdaee1db8a
c6634f6a6cfcc13116e2a666fedabd915760ff4b
/food/urls.py
26b760d816a5c2bdb8e7821038280829fba23a4a
[]
no_license
Saharshsolanki31/finalfoods
9f4f4aebf800ff1b24133bac411157ca05ebce65
a7e9debf207c047044a5e0964b66e80585c2bba6
refs/heads/dev
2023-06-17T03:04:44.394231
2021-07-07T10:19:27
2021-07-07T10:19:27
383,346,251
0
0
null
2021-07-06T05:46:59
2021-07-06T05:08:09
JavaScript
UTF-8
Python
false
false
1,104
py
"""food URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "justforhost26@gmail.com" ]
justforhost26@gmail.com
0190641d0a52f2bb21bdadca9729076fc23f134c
89149d8612e080d52eee0931e00632fac702e883
/E94084082-Lab7/game/user_request.py
ec417469b31b6e40fd3da8d88fa31d745deb4066
[]
no_license
wanyu0105/E94084082_wanyu_Lab7
29bc76c9bb7e0ab2f67dbb5804e99c0698c28d77
26a470adc020d5ac82c9a7879971d2ea5f6d4171
refs/heads/main
2023-07-01T07:23:15.706364
2021-08-06T08:32:09
2021-08-06T08:32:09
393,311,391
0
0
null
null
null
null
UTF-8
Python
false
false
3,411
py
import pygame from tower.towers import Tower, Vacancy """This module is import in model.py""" """ Here we demonstrate how does the Observer Pattern work Once the subject updates, if will notify all the observer who has register the subject """ class RequestSubject: def __init__(self, model): self.__obse...
[ "noreply@github.com" ]
wanyu0105.noreply@github.com
fb1829184abe641220c7aa6757bd0f1e6b254663
9713af0c7d31faec9eecf7884f308f91eb2f4d09
/Lab1/Source/Lab-1/Q2.py
4808a4d8ec0d01e217cb00c36e3301d61a1b3220
[]
no_license
NamrataDutta/Python-Lab-Assignments
fcd65c6757ffc0b07c3ddaa74222b39630c15c99
0275f9f2ffa1050b0850e0c8d57996cff74c2b48
refs/heads/master
2021-05-09T04:46:13.895472
2018-03-19T04:07:50
2018-03-19T04:07:50
119,286,726
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
#User enters the sentence s = input("Enter the sentence") #splitting the sentence mid=s.split() #calculating the length of the words after the split a=len(mid) #if the length of the word is even then it will print 2 words in the middle if a%2==0: x=a/2 y=int(x-1) print("The middle word is :", (mid[y]+" "+...
[ "nd8gv@mail.umkc.edu" ]
nd8gv@mail.umkc.edu
4faa9a5e073c7e14b1d3f0fdf39a78e0c5049694
2572087b29556ed31dbcb06503d3c0c6da4b2d10
/25_arrayReplace.py
39f334e3bf5ad850fb2d34497be34c8d783a5b72
[]
no_license
Humberto59/CodeSignal-Arcade-Intro
09867ff4d1ddd680a7c010c7c1400ad0fc1b85c6
38a765d3338c5934a820b8bdd050d3b3d0fb7c87
refs/heads/master
2020-04-29T09:41:21.426395
2019-03-16T23:15:09
2019-03-16T23:15:09
176,034,261
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
#!/usr/bin/env python import sys #25 #Rains of Reason def arrayReplace(inputArray, elemToReplace, substitutionElem): """ Main method """ result = None for i in range(0, len(inputArray)): val = inputArray[i] if val == elemToReplace: inputArray[i] = substitutionElem return i...
[ "hzamora@localhost.localdomain" ]
hzamora@localhost.localdomain
582e6d7977304ec94ff5e09011134c56548fddee
8644a2174c3cb7ccfe211a5e49edffbcc3a74a46
/HackerrankSolutions/ProblemSolving/DataStructures/LinkedList/Easy/insert_node_doubly_ll.py
30a3ceddc485daee86a8b335eec39479fd28e2eb
[]
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
1,170
py
class DoublyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None self.prev = None class DoublyLinkedList: def __init__(self): self.head = None self.tail = None def insert_node(self, node_data): node = DoublyLink...
[ "noreply@github.com" ]
bhavya2403.noreply@github.com
2055974086f364ee65b2b2f5b214a51c90acc8ec
b7b54106c32fa01d5f583463f00e8734de3441c9
/pages/urls.py
a9b5af0bc6936b78f67da3321f4436aa67193e61
[]
no_license
rexy09/eel
fcc83c1b55c0117c0be7899df9ef0f7b54c005de
b3faf35beaa39168b703d2a98b95df8b32b379ae
refs/heads/master
2023-03-13T15:23:52.480731
2021-03-13T20:16:57
2021-03-13T20:16:57
342,302,928
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from django.urls import path from pages import views app_name = 'pages' urlpatterns = [ path('', views.index, name="index"), path('about', views.about, name="about"), path('contact', views.contact, name="contact"), ]
[ "fredmuju@gmail.com" ]
fredmuju@gmail.com
3c40d89ebe58b12e75def3e0190a55e9fe582789
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/MMseg-swin/configs/ann/ann_r50-d8_512x512_20k_voc12aug.py
84eaca27405633ca786ead28b974db2f7f527e5c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
3,652
py
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2017 # All rights reserved. # Copyright 2022 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
74c3218fe7828e80bfe409623a6d2b06a6bda466
cd84230bd9b168c7911f2266a705251b80d212bd
/Qt5/basic05_statusbar.py
3e9cbaf54b160a5ec2a0235a02517e4eda847498
[]
no_license
highgon2/PythonTest
f8b38fc6d9eab6d536591b785acc94049765cdb7
1b1bab38e8b09db1084d2abec1d9ea294bfb2de1
refs/heads/master
2023-06-25T01:58:11.178296
2021-07-28T01:50:06
2021-07-28T01:50:06
169,029,837
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
import sys from PyQt5.QtWidgets import QApplication, QMainWindow class MyApp(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): self.statusBar().showMessage("Ready") self.setWindowTitle("Statusbar") self.setGeometry(300, 300, 400, 300)...
[ "highgon2@gmail.com" ]
highgon2@gmail.com
a13551308aa9e21b98aaf389a432068777e34fcf
9a4e73b83dd050c58adc44f9b646d5c2673877e2
/backend/user_profile/serializers.py
4eadcc5763dae42a79ddc9b6a842d530cdc44d72
[]
no_license
Zaid-2112/Session-django
e23d526c6c6cb8c50fecbefcb341f23761fc828f
1b5feeff8d9544c3d5cf545d40d697fab8012e40
refs/heads/master
2023-05-04T17:32:07.546234
2021-05-23T17:50:12
2021-05-23T17:50:12
365,334,016
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
from rest_framework import serializers from .models import UserProfile # Seraialzers for UserProfile model class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfile fields = '__all__'
[ "anasahmed.2199@gmail.com" ]
anasahmed.2199@gmail.com
b9483e817781707e24858a6055a70b73da0287b3
13b7e3297cf597686deb807b56fa3ec0adc37741
/day01/inputs.py
28c8c8c5aa7b9c1b418c2eb01a2ac73cd967aa5f
[]
no_license
What-After-College/Python-Batch-056
2765e6447ead2c6c980c4bbb754f868536343257
5c6bbf29924f60268fca9140fab7787e80570486
refs/heads/master
2022-12-03T12:40:59.115161
2020-08-29T10:22:04
2020-08-29T10:22:04
288,370,734
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
# num = input("Enter a number: ") # print("The number is: ",num)'' # num1 = int(input("Enter first number: ")) # num2 = int(input("Enter second number: ")) # result = num1+num2 # print("Sum is: ", result) # # print(type(num1), type(num2)) # num1 = int(input("Enter first number: ")) # num2 = int(input("Enter second...
[ "mjontop0602@gmail.com" ]
mjontop0602@gmail.com
956bb462985e994afbbc8b780bfb63ddff9869ec
6256c21af3fa3bff0bcc4bfe0ffb60ce9aad220c
/projet_python_tk_bouton_input/test_motus.py
ef9de0dbcccd22af80160c2f9117390382a79a98
[]
no_license
SebastianHac/Projet_Python_Motus
277a38ac8fed67bfbf152523a802cc64bed0af5f
37d4468f9423623ca210c18be4203e7bc25b9924
refs/heads/main
2023-02-08T12:40:32.427998
2021-01-03T22:35:50
2021-01-03T22:35:50
310,053,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
import unittest class MotusTestUnit(unittest.TestCase) : def __init__(self, methodName): super().__init__(methodName) self.mot1='voitures' self.mot2='banane' self.mot3='qdz4' self.mot4='voiture4' self.mot5='voïtures' self.mot6='' def te...
[ "noreply@github.com" ]
SebastianHac.noreply@github.com
95b8210713497e0cafc453597074e3ea098966f1
53d66c5af8adbd58457ba3b24672221a8edb8538
/students/RussellLarge/RussellLarge-A03/hello_name.py
1c3e271febd23ed4b742461c45089dc9c65694fc
[]
no_license
russlarge256/Python210-W19
5468b80ae14af791efe4c92931008612d3fa63a0
3119d9d0425a5c1e49f41aa1fa70fed4372e60a2
refs/heads/master
2020-04-19T08:06:50.259300
2019-03-17T20:15:43
2019-03-17T20:15:43
168,066,312
0
0
null
2019-01-29T01:20:25
2019-01-29T01:20:25
null
UTF-8
Python
false
false
276
py
''' Given a string name, e.g. "Bob", return a greeting of the form "Hello Bob!". hello_name('Bob') → 'Hello Bob!' hello_name('Alice') → 'Hello Alice!' hello_name('X') → 'Hello X!' ''' def hello_name(name): if name != False: return ("Hello" + " " + name + "!")
[ "russlarge@gmail.com" ]
russlarge@gmail.com
1a2bf9bf5039e875dc2f03afca4380918f039fa9
5a54f52ea01c73b203b0b843273b4d6e3d4a1fd5
/Python/PythonDjango/wall_erd/apps/wall/migrations/0001_initial.py
3ce479e183d529f0fbfbfb430679d0b755bb4204
[]
no_license
rockomatthews/Dojo
223e8e37d7ecca308f263852a12258098b525f87
cb223809ab677999f90f7aed5d54951850a1a103
refs/heads/master
2020-02-26T15:15:32.906973
2017-10-30T17:06:51
2017-10-30T17:06:51
83,516,181
0
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-20 15:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
[ "rob.matthews@me.com" ]
rob.matthews@me.com
0ca53be296d182dd9a97e3c30a691a63d83fbe0d
2b03b8113a03e7da6e2fc14a525692c4c04626ae
/Paint/paint.py
25b17269edcff7224d44b65f577167a4020d3f01
[ "MIT" ]
permissive
Mechatronixyt/Python-Apps
ec20e7dace68bdcfda8d881e427d05e649167088
d74e650c73c7dde6e73bfc25b0c296f358644f95
refs/heads/main
2023-03-18T04:32:10.523800
2021-03-20T18:28:29
2021-03-20T18:28:29
348,685,916
1
0
null
null
null
null
UTF-8
Python
false
false
7,201
py
# creator: @Mechatronix # date: 20.03.2021 # lisencs: MIT # contact: mechatronix@mail.de from PyQt5.QtWidgets import QApplication, QMainWindow, QMenuBar, QMenu, QAction, QFileDialog from PyQt5.QtGui import QImage, QPainter, QPen from PyQt5.QtCore import Qt, QPoint import sys class Window(QMainWindow): ...
[ "noreply@github.com" ]
Mechatronixyt.noreply@github.com
ff6bd559acf6fe9d63ce293ed90c9cd15fbb0a5a
6c646388e17b41f61a88efec279d751ad2ddcef0
/min_function2.py
4737b8fee1dd4426cb7bf00d6bef1f3565741efe
[]
no_license
mj-ribeiro/Math-Statistics-in-Python
749bde6b72585c43e2088679d72e5f99a1ab2d99
74b114208e26437227d182504ae8eeab25f56d09
refs/heads/master
2020-12-21T17:23:47.176365
2020-07-26T14:25:22
2020-07-26T14:25:22
236,502,867
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
# -*- coding: utf-8 -*- """ Created on Thu Mar 5 11:46:53 2020 @author: Marcos J Ribeiro """ import scipy.optimize as sp import numpy as np import matplotlib.pyplot as plt def f(x): return x**2 + x - 3 def c1(x): return f(x) - 0 cons = {'type':'ineq', 'fun':c1} x0 = 100 sol = sp.min...
[ "mjribeiro@usp.br" ]
mjribeiro@usp.br
292a70303ab24f11e4e69776cbb9a8f245807a2e
f5aae3ea83268e13b0d2c02ca6d94eedb87ca510
/code/webserver/django/reporting_app/migrations/0032_auto_20160318_1408.py
dceae7cfabdef470904726962de36beca764ccb2
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
openzero-team/evel-reporting-reference-vnf
446ad3f8919cb09bc0c7b920450589e32c5ad219
39bf9e30a4984f94bfc605d733d05fa491e65835
refs/heads/master
2021-06-06T05:06:04.029324
2016-10-11T02:47:39
2016-10-11T02:47:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,811
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-03-18 14:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reporting_app', '0031_auto_20160227_1830'), ] operations = [ migrations.Alte...
[ "blsaws@hotmail.com" ]
blsaws@hotmail.com
bf4b8314af5c3e90c21ffb2b2e162da2ba70d665
d45d07f8f6f6bae05a74ab19b75b7d0a8bfc2df1
/prajesh_gohel/Python/django_intro/time_display/time_display/urls.py
81822ba50915cd2c165ef5dbcb78d09128f933a1
[]
no_license
CodingDojoDallas/python_july_2018
efd4df419c381e8fe504a9b017dabb789281b561
5aaf6bd53b838503289ed422cc6d605f79d547d7
refs/heads/master
2020-03-22T15:03:22.719556
2018-07-17T01:25:22
2018-07-17T01:25:22
140,226,045
0
10
null
2018-07-25T17:55:36
2018-07-09T03:21:21
Python
UTF-8
Python
false
false
737
py
"""time_display URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "prajeshgohel@gmail.com" ]
prajeshgohel@gmail.com
c3b5005a2b16bf465392034a5dd8560026528ce1
9318b1885946f639f1446431abc6ec4fa33fc9ac
/Cisco_python/module_4/act-3.py
4a247a9c4472018c19b3a620743bb178d2405f56
[]
no_license
mcewenar/PYTHON_INFO_I_BASIC
1d365bcd3d0186c8955e3cde2605831717d0a412
e5c3278969b420e7ce03bf7903cf57e63865aaca
refs/heads/master
2023-06-04T02:26:42.124304
2021-06-22T02:48:08
2021-06-22T02:48:08
326,510,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
#Tu tarea es escribir y probar una función que toma tres argumentos (un año, un mes y un día del mes) #y devuelve el día correspondiente del año, o devuelve None si cualquiera de los argumentos no es válido. #Debes utilizar las funciones previamente escritas y probadas. Agrega algunos casos de prueba al código. #Est...
[ "dmcewena@hotmail.com" ]
dmcewena@hotmail.com
5c3acbff7b4396dd50b8f5d6b34d27c5a4cd7b7a
614a1b9144236c77922de9db5e115b7f72e74b1f
/utils.py
e31c657b6e6211cf7a167d0a8f3e73a2af8461ce
[]
no_license
ianjdarrow/mass_pr
e07cb8355986444a245b7da6dc681895e7472355
6456b397704da8f0e3e72369f0103eebcc71fb77
refs/heads/master
2020-04-19T07:57:41.902915
2019-01-31T20:58:08
2019-01-31T20:58:08
168,062,499
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
import time def format_s(delta): return '{:.3f}s'.format(delta/1e9) def chunk(data, n): for i in range(0, len(data), n): yield data[i:i+n]
[ "ian.j.darrow@gmail.com" ]
ian.j.darrow@gmail.com
0318c3573be46cdd69165baf1ea0dba3219f22b1
33648419977a4fba65b759eb3a2a974403298340
/laser_slowing/visualize.py
3400eca2d6766712cb5623154a5ba5a8a9696f66
[]
no_license
Andrew-wi/magnetic_lens
3c3cbd2c5b821f4f43d7b562afbab6610f3d9608
efe51168018c5e4c9c2055416dc47c3694af448b
refs/heads/master
2023-05-23T10:00:08.998982
2021-06-15T18:05:32
2021-06-15T18:05:32
262,870,016
0
0
null
null
null
null
UTF-8
Python
false
false
3,990
py
# ---------------------------------------------------------------------------- # Visualize # ---------------------------------------------------------------------------- from dependencies import * from init import * from vector_field import * print('Visualizing fields...') # # Plot magnetization of circular Halbach a...
[ "andrew.winnicki.sc@gmail.com" ]
andrew.winnicki.sc@gmail.com
8791a940c36d9ba54a7cc9c8daf732090787f76e
64cde3c728f37dac444cd2a83a4f4d9c10c0c568
/leetcode-1721-swapping-nodes-in-a-linkedin-list/leetcode-1721-swapping-nodes-in-a-linkedin-list.py
ea7fd9479b7ae410bb2e8f4b9036f23002bb423f
[]
no_license
kajalgada-gmr/leetcode-python
6d2a5b202ba5a2b6ccc5da7ef68f9ee2541040d2
01a88bf84130f6f07f5772f222a30c75ca554666
refs/heads/main
2023-06-14T23:29:36.670578
2021-07-12T19:33:41
2021-07-12T19:33:41
386,093,610
0
0
null
2021-07-14T22:39:10
2021-07-14T22:39:09
null
UTF-8
Python
false
false
1,020
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def swapNodes(self, head: ListNode, k: int) -> ListNode: # If it is a empty list or just has one node. if head is None or head.n...
[ "noreply@github.com" ]
kajalgada-gmr.noreply@github.com
29d7a98c07c9898895662a98876a970f2954f5a8
929ffa6bf0b60f03b1620d280ed70bf40891c74c
/Python/055.py
e28100e776cbf666eb697fd65c6f45c3780105e1
[ "Unlicense" ]
permissive
arvganesh/Project-Euler-Log
3aad3928c13c561b83f883fa30d8305c0afe446a
19434437853870ca9ed54f09eb28615f54dc3202
refs/heads/master
2020-04-17T16:38:41.480385
2019-08-15T20:42:23
2019-08-15T20:42:23
67,154,482
3
1
null
null
null
null
UTF-8
Python
false
false
615
py
def isPalindrome(strin): # Checks if Palindrome instr = str(strin) numrev = instr[::-1] if instr == numrev: return True return False def lychrelNum(n): storageInt = n reverseNum = int(str(storageInt)[::-1]) count = 0 while count < 50: # 50 Iteration Limit my_sum = revers...
[ "noreply@github.com" ]
arvganesh.noreply@github.com
c31952cb741afc8d6221da1766048dabf15ef27b
7cdbe9eccd815bc8888079abaf5d16201c82e316
/import_to_cassandra.py
9bb7c061ce47b766d53e1f011c7ed17192aed5db
[]
no_license
joeljacobson/cassandra_tweet_stream
99f40ac696e5e33004d764d534f07b377c65cf3a
c1b5e86f5709fa0e7bb82544874958c3b69d27b4
refs/heads/master
2021-01-19T05:29:45.362697
2016-10-21T20:08:06
2016-10-21T20:08:06
64,262,023
1
0
null
null
null
null
UTF-8
Python
false
false
1,291
py
from cassandra.cluster import Cluster from cassandra.query import BatchStatement from cassandra.query import SimpleStatement import json cluster = Cluster(['127.0.0.1']) session = cluster.connect() session.execute( """ CREATE KEYSPACE IF NOT EXISTS twitter_data WITH replication = {'class': 'SimpleStra...
[ "joel@joeljacobson.com" ]
joel@joeljacobson.com
a9ffbf6927f011eca02197d776c8cdf231525322
42ff36f4c6c967d2f39bf75c1f24c8b5911a8491
/whileloop.py
b570fd612b80873ea6da85ac6f2859b7c5ebf077
[]
no_license
cal1log/python
0d47b688e619d0cdd464267225f76fff7d3101a4
c8196c40e5505d4e83301ada97dd384611660778
refs/heads/main
2023-06-29T13:11:31.869976
2021-07-27T22:36:04
2021-07-27T22:36:04
366,841,686
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
#!/usr/bin/env python3 i = 1 ''' incremental while loop ''' while i <= 5: print('hello calilog') i += 1 print() i = 5 ''' decremental while loop ''' while i >= 1: print('hello calilog') i -= 1
[ "orlago250183@gmail.com" ]
orlago250183@gmail.com
121487660dc60511473593213656ba0f82050aa3
73c585e3007197e415bd0c10143db1ac191f3519
/Discussion2.py
a98efd0617f7f8305d062b01a4d8364cfb728851
[]
no_license
ABoothInTheWild/Northwestern
785c5b6ff6b65f6f07d6365f7ad3d9d17d093bda
dbe0344833377bbe63a842a1c6b9e694b74c2860
refs/heads/master
2021-01-11T16:01:52.318336
2019-07-14T18:16:03
2019-07-14T18:16:03
79,984,051
0
0
null
null
null
null
UTF-8
Python
false
false
1,130
py
# -*- coding: utf-8 -*- """ Created on Sat Jan 14 17:33:12 2017 @author: Alexander """ import csv import os #set wd os.chdir('C:/Users/Alexander/Documents/Northwestern/Winter 2017/MSPA 400/Python/Session 2') #open csvs trainData = open('train.csv', "r").readlines() trainLabels = open('trainLabels.csv...
[ "noreply@github.com" ]
ABoothInTheWild.noreply@github.com
16bec49a939949dec19469329515808a53e2b58d
ddd35c693194aefb9c009fe6b88c52de7fa7c444
/Live 10.1.18/_NKFW2/ResettingMixerComponent.py
c2477c605980a00da5595cf0a5b14ce75043c10b
[]
no_license
notelba/midi-remote-scripts
819372d9c22573877c7912091bd8359fdd42585d
e3ec6846470eed7da8a4d4f78562ed49dc00727b
refs/heads/main
2022-07-30T00:18:33.296376
2020-10-04T00:00:12
2020-10-04T00:00:12
301,003,961
0
0
null
null
null
null
UTF-8
Python
false
false
3,013
py
# uncompyle6 version 3.7.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00) # [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)] # Embedded file name: C:\ProgramData\Ableton\Live 9.7 Suite\Resources\MIDI Remote Scripts\_NKFW2\ResettingMixerComponent.py # Compiled at: 2017-10-14 18:5...
[ "notelba@example.com" ]
notelba@example.com
59b91296ccaa8963d2281f16b8d11899e58118bf
2fc1dd57e421458e0c59048a5118668e028f98b3
/generalized_methods/journal_paper/weighted_SVM/results6/main.py
9e870fe4ebcfe08f6836e7f9ac1480f213703e1e
[]
no_license
AllenMao/semi_bts_svm
31bfe5c61d04ba9529e49b4907510a0c26d31696
a9257497cd026daa97ac218e4d2abf45895f9772
refs/heads/master
2021-01-21T21:29:26.729833
2015-07-22T23:14:02
2015-07-22T23:14:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,415
py
import numpy as np import os import sys import fcntl import copy import pdb sys.path.append('/home/local/USHERBROOKE/havm2701/git.repos/semi_bts_svm/semi_bts_svm/generalized_methods/') sys.path.append('/home/local/USHERBROOKE/havm2701/git.repos/semi_bts_svm/semi_bts_svm/generalized_methods/journal_paper/') from string ...
[ "seyed.mohammad.havaei@usherbrooke.ca" ]
seyed.mohammad.havaei@usherbrooke.ca
e4987cae312d74aa411a4f12b08a6e756eff56e6
f7c29c49733f3d0721bc423f15a009c163bde8bd
/Crawler/Deep in Python Web Crawler/Chapter_12/cccsv/cccsv/items.py
9e8a0393ebe2937dbe2ae601cc9e2b35194f9aaa
[]
no_license
Cylra/py3Learn
036665ba73b09fdf852a3149603ac1b2da18d92c
7fac7c548f2183b636ef8d6336e2499e5ceb63a1
refs/heads/master
2021-06-20T11:12:02.732047
2020-03-31T14:40:58
2020-03-31T14:40:58
100,771,707
0
1
null
null
null
null
UTF-8
Python
false
false
378
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 CccsvItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() name = scrapy.Field() sex = scrapy.F...
[ "longyu998127@gmail.com" ]
longyu998127@gmail.com
31c81e8e7598e42e78d696f778d4cfde386ba942
07581468815610e4eedc1063d0892838ce5b90e3
/sammba/externals/nipype/interfaces/fsl/utils.py
9eeca4d55a65011b9d40f61450cf37bb06076afa
[ "LicenseRef-scancode-cecill-b-en" ]
permissive
salma1601/sammba-mri
27c687b060950816d471b8796d0e2c4e2a880e90
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
refs/heads/master
2021-06-25T17:19:14.997755
2018-12-01T21:00:50
2018-12-01T21:00:50
97,102,384
0
0
null
null
null
null
UTF-8
Python
false
false
90,084
py
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The fsl module provides classes for interfacing with the `FSL <http://www.fmrib.ox.ac.uk/fsl/index.html>`_ command line tools. This was written to work with FSL version 4.1.4. E...
[ "noreply@github.com" ]
salma1601.noreply@github.com
672a3b9815fa0172265ae6714397a102bf675799
26907a78e55f4436cfcf2b0a18935d79dcc50c2f
/2020/test_02.py
c2bf7c5a80e9be076f1b66a0c13a96cdcf0b281e
[]
no_license
singingknight/adventOfCode
7f55d9b06c48fa75c7558d4ed2256e841858bf6f
13d3ffb95d4a2e2c2269a95b1cb8a27b2ac3e3b3
refs/heads/master
2022-11-30T19:21:32.212258
2020-12-25T11:15:54
2020-12-25T11:15:54
225,067,214
0
1
null
2022-11-10T08:12:32
2019-11-30T20:39:36
TypeScript
UTF-8
Python
false
false
236
py
from day02 import validPwdCount, validPwdCount2 testList = [ '1-3 a: abcde', '1-3 b: cdefg', '2-9 c: ccccccccc' ] def test_part1(): assert(validPwdCount(testList) == 2) def test_part2(): assert(validPwdCount2(testList) == 1)
[ "per.jakobsen@gmail.com" ]
per.jakobsen@gmail.com
c306ee028f03366c34bdca2afb22d77a7303c459
a6f70134a9bfdcc630e67a6d05c174d35496ada3
/Sum of Inverse of Numbers^n.py
bb4e17b7740256803b5bc189aaea48aee10de4d2
[]
no_license
nauman-sakharkar/Python-2.x
9c0e9d9e5968631e44ab595175ddcbe0a1b615ad
31df433481d75c7b76a40b2fc372fa6fefbb779f
refs/heads/master
2022-10-08T17:20:46.387977
2020-06-10T07:36:03
2020-06-10T07:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
n=int(input("Enter the Number Of Times = ")) q=int(input("Enter The Number = ")) sum=0 for i in range(1,n+1): sum=sum+((1/q)**i) print("",sum)
[ "50130960+nauman-sakharkar@users.noreply.github.com" ]
50130960+nauman-sakharkar@users.noreply.github.com
344914ff635ee7598f00751b9c5725df745637bf
fe7e55dd4f245b18c95afcfb131787fcb595612f
/lib/python3.6/heapq.py
f572e8e985437c4d8ce7c67d41e92ba4f65515e7
[]
no_license
ElviraMingazova/rand-IS
a8434ebc34c06eca1fa32171b8e257bdd420c2ee
9d397f5fb9718e676267135b32f1d9beee7f426e
refs/heads/master
2018-12-19T23:43:36.667407
2018-09-30T10:10:01
2018-09-30T10:10:01
107,152,385
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
/home/elvira/anaconda3/lib/python3.6/heapq.py
[ "mingazova.elvira@gmail.com" ]
mingazova.elvira@gmail.com
1d3352d9893bcc8b31c4ddb0277479b962b41ff5
15a1d05d48953ddaa835b94c8fb93ca69c02488d
/catkin_ws/src/make_plan/src/make_plan_caller.py
5ca21a8f98eb974de97b5ea1e21186320fc9dea9
[]
no_license
ok-kewei/ROS-Navigation
81b895cccbe65287be98da6e62967ae44dee4ab6
5218fe366db3638efc179cc6e55fe368842a1c20
refs/heads/master
2023-01-06T15:08:19.822330
2020-11-05T20:41:03
2020-11-05T20:41:03
304,449,087
3
0
null
null
null
null
UTF-8
Python
false
false
823
py
#! /usr/bin/env python import rospy from nav_msgs.srv import GetPlan, GetPlanRequest import sys rospy.init_node('service_client') rospy.wait_for_service('/move_base/make_plan') make_plan_service = rospy.ServiceProxy('/move_base/make_plan', GetPlan) msg = GetPlanRequest() msg.start.header.frame_id = 'map' msg.start.p...
[ "43628709+ok-kewei@users.noreply.github.com" ]
43628709+ok-kewei@users.noreply.github.com
dacef40ee0d77541e89664963c507877e18a2ff9
ad6cbaa1f137dc86ad92295b9ac9b5eabbd32b3f
/stt_service_pb2_grpc.py
8891e52a73ca1e4dcd981ceae9b40b1f130e5db5
[]
no_license
ping2lai2/speech_to_text
b67360ad74883cfa29a743c01d49cc5c3bef7b6b
80056dddd6e4ecc15eeacef21a83f40776f59cf3
refs/heads/master
2021-02-15T21:19:21.350641
2019-03-05T13:44:32
2020-03-04T15:25:58
244,932,644
0
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import stt_service_pb2 as stt__service__pb2 class SttServiceStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. ...
[ "eugene.kazak@antidasoftware.com" ]
eugene.kazak@antidasoftware.com
4ea666bc8e896fbcd40fb73d27e4e967147c0a7b
3e85618c79a1a934fec543e1327e772ca081a5b9
/N1226.py
f9cf0945dd8c9496a8325051fcd4c4ce8e6bba04
[]
no_license
ghdus4185/SWEXPERT
72d79aa4a668452327a676a644b952bab191c79b
4dc74ad74df7837450de4ce55526dac7760ce738
refs/heads/master
2020-07-16T18:31:22.153239
2019-12-20T04:18:30
2019-12-20T04:18:30
205,843,190
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
import sys sys.stdin = open('input.txt', 'r') def find(x,y): global di, dj, maze, possible, check stack = [] stack.append([x,y]) while stack: n = stack.pop() for k in range(4): ni = n[0] + di[k] nj = n[1] + dj[k] # 범위 안에 있는지 if 0 <= ni < 1...
[ "ckdghdus@naver.com" ]
ckdghdus@naver.com
7ede643951e1f15dbbd488aee63423bae39dbced
33db9e6d0a73f2353747a4c9d3223d55a38730a8
/apps/first_app/models.py
9c9e3168c45565effb1144ef8f0ded356a58890e
[]
no_license
philmccormick23/Likes-and-Books
94d778df265fe9b1645f783c83358617ca6fe0c0
0a9b18ceb7ce33a72334900e7f9f62b10d87a796
refs/heads/master
2020-04-02T15:14:46.314382
2018-10-24T19:46:10
2018-10-24T19:46:10
154,559,822
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
from __future__ import unicode_literals from django.db import models # Create your models here. class User(models.Model): first_name = models.CharField(max_length=200) last_name = models.CharField(max_length=200) email = models.EmailField() created_at = models.DateTimeField(auto_now_add=True) updat...
[ "phillipmccormick@Phillips-MacBook-Pro.local" ]
phillipmccormick@Phillips-MacBook-Pro.local
0c21269cec3d106c781ee734f3a60a7415c78889
1792509a9accac11c837e2a18dcb3d34f1d7e30e
/client/category.py
edfa52d0b3eb42271cc8d9e90fe84f84bc763d38
[]
no_license
kafura-kafiri/herb
2d3166b94e5fdacd106d6c4bc21d09f6c9cf568e
48329a0059e2843c72ad2d85e7bb31379f0042e5
refs/heads/master
2020-04-09T09:35:03.720161
2018-12-17T11:02:25
2018-12-17T11:02:25
160,238,902
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
import requests url = 'http://localhost:5000/categories/' headers = {'content-type': 'application/json'} _categories = [ { 'ancestors': ['a', 'b', 'c'], 'title': 'd' }, { 'ancestors': ['x', 'y'], 'title': 'z' } ] def fill(): requests.post(url + '*') print() pri...
[ "kafura.kafiri@gmail.com" ]
kafura.kafiri@gmail.com
03f1eecc3a67de6f1eafac6c19edfc3223b0f5d0
2ad68da0d7c0d0237b9953744891bc1028c6ed91
/vimba/__init__.py
443e0ee55945ae04b8c0a07a3066520bcc34e1a7
[ "BSD-2-Clause" ]
permissive
SunnyAVT/VimbaPython
8a9dc74ab2d5425b994ceb31779242e33b110f1e
82571be46e7f6fb1af272d02a96fb6f331d23d33
refs/heads/master
2020-09-20T06:00:33.344031
2019-11-27T09:17:09
2019-11-27T09:17:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
"""BSD 2-Clause License Copyright (c) 2019, Allied Vision Technologies GmbH All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, thi...
[ "florian.klostermann@alliedvision.com" ]
florian.klostermann@alliedvision.com
139a3a9e6acd217e8b8f6f1cb1fff6560717ae03
50881c040f81dcb6b9dd63d40fc10eba8dfed633
/python_playground/python_mythical_creatures/test/test_Unicorn.py
9b076b4365716e9b41af03c323c8c3423c41c019
[]
no_license
SiCuellar/playground
1eee2582d69514fbfc9e37041d1f15e34536da97
c9a40cd9c0cabcbeec0f273e16a576a92471c87b
refs/heads/master
2020-09-09T22:18:41.850080
2019-12-13T05:17:31
2019-12-13T05:17:31
221,584,612
0
0
null
2019-12-12T03:11:18
2019-11-14T01:25:29
Python
UTF-8
Python
false
false
243
py
import unittest def test_sum(): assert sum([1, 2, 3]) == 6, "Should be 6" def test_sum_tuple(): assert sum((1, 2, 2)) == 5, "Should be 6" if __name__ == "__main__": test_sum() test_sum_tuple() print("Everything passed")
[ "cuellarsilvestre@gmail.com" ]
cuellarsilvestre@gmail.com
62da749d8fe1776099720894ebd45484afc28052
7a1d09aa5caec2ca7964f6561a3e255de6c1fc78
/Python Course/dice_game.py
628b9ad3417fd8b418b6a64209c2106daad2a21f
[]
no_license
TheKingInDaNorth/practical_python_for_beginners
0d8799678143d839748345754e78006063a5c4d9
5e7b6bd8357aa9a18b4816d5ed0a2911395a65e5
refs/heads/main
2023-04-03T10:01:21.689997
2021-03-31T16:45:42
2021-03-31T16:45:42
348,765,112
0
0
null
2021-03-31T16:45:43
2021-03-17T15:46:08
Python
UTF-8
Python
false
false
495
py
import random def roll_dice(): dice_total = random.randint(1,6) + random.randint(1,6) return dice_total def main(): player1 = input("Enter player 1's name: ") player2 = input("Enter player 2's name: ") roll1 = roll_dice() roll2 = roll_dice() print(player1, 'rolled', roll1) print(play...
[ "60161055+TheKingInDaNorth@users.noreply.github.com" ]
60161055+TheKingInDaNorth@users.noreply.github.com
35662ad32cc491d6c5f85ea17467bd46906d4f1b
04a28b3589e6f6a13d9b181b37fb9bf18129b4d6
/testing.py
aaac232ed66df0c32459a677cbc73c7ddd05786f
[ "MIT" ]
permissive
achen353/facial-landmarks
e31184c8d6060f44b96fbf441ef6c36d254b284d
b49a3a112d9caa66d912e88674ec94dc4c911515
refs/heads/master
2023-08-24T22:18:03.269554
2021-09-30T15:53:09
2021-09-30T15:53:09
412,122,019
0
0
MIT
2021-09-30T15:53:09
2021-09-30T15:34:55
null
UTF-8
Python
false
false
2,955
py
''' This script compare the results for different face detection models and it's result for facial landmarks ''' from imutils import face_utils, video, resize import dlib import numpy as np import cv2 import argparse W = './shape_predictor_68_face_landmarks.dat' P = '../face_detection/deploy.prototxt.txt' M...
[ "keyur.rathod@zymr.com" ]
keyur.rathod@zymr.com
55b6f93691b7de5fd7566c9b56cad59dbd44da7d
8c86ff06a497951d3dce7013d788d6c66d81ab95
/bot/forms.py
819243766716eb0a105e982fb307a7918c63cef1
[]
no_license
JbFiras/text_to_speech_django
2748277cf970a5b064b838c44bd5778882e2e750
5f9bc481600f0524571fad47247c530e96605157
refs/heads/master
2023-06-03T06:26:27.405605
2021-06-23T17:45:59
2021-06-23T17:45:59
379,662,508
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from django.forms import ModelForm from django.contrib.auth.forms import UserCreationForm from django import forms from django.contrib.auth.models import User class CreateUserForm(UserCreationForm): class Meta: model = User fields = ['username', 'email', 'password1', 'password2'] ...
[ "contact@firas-jebari.tn" ]
contact@firas-jebari.tn
cb62f6b3b1e63ef61da4306d45b76f864602ac8a
a8cd81b83431445d05ebb01640d19defde627021
/services/service-pick&drop/src/api/v1/models.py
d5eaf6f929c8bf6f13362276a9f77bb820ab074c
[ "MIT" ]
permissive
Beracah-Group/docker-microservices
9c19856e34650168df24b02a618ea6faa3e2c251
2876b05ba585772e97746a11845b64bd4ede61cb
refs/heads/dashboard-service
2023-02-08T06:15:40.912190
2020-02-28T16:51:04
2020-02-28T16:51:04
241,168,010
1
0
null
2023-02-02T03:27:38
2020-02-17T17:30:41
Python
UTF-8
Python
false
false
1,413
py
# import modules from datetime import datetime from src.api.__init__ import databases # washing class model with methods class Pickanddrop(databases.Model): __tablename__ = 'Pickanddrop' id = databases.Column(databases.Integer, primary_key=True, autoincrement=True) name = databases.Column(databases.String...
[ "businge.scott@andela.com" ]
businge.scott@andela.com
bfb068a116423f3d92a9952c2c96297fc5b2901b
49ab2cb193abfdf52ca64370a7dc5aad3537440e
/utilities/util.py
1608a7bba3013edeb4e2f673c15bc44c3cf29de4
[]
no_license
savitabadhe/sample
9134558d0563e5291114039d76792077c50eef11
c163f11eccbb35e3514c5897110190af5ad60037
refs/heads/master
2022-11-17T08:47:21.005387
2020-07-10T12:53:16
2020-07-10T12:53:16
274,578,233
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
""" @package utilities Util class implementation All most commonly used utilities should be implemented in this class Example: name = self.util.getUniqueName() """ import time import traceback import random, string import xlrd import utilities.custom_logger as cl import logging class Util(object): log = c...
[ "savita.badhe@nitorinfotech.net" ]
savita.badhe@nitorinfotech.net
abc23afd2529d451231178fd83d1f7d528a36c60
9a1c130a5f1e9957560e22b09e7e3db5af65180b
/hw06/david/G02.py
73d4a66dbf6da19cddfd367f0e5ee768fb054af2
[]
no_license
TheRiseOfDavid/NTUTcs_media
61df3999bb4633d6b4b8f329be107ff76819a5ed
cacdd5bd0a009cedc2c2651d725f789f2a38add0
refs/heads/master
2023-05-30T10:51:34.160750
2021-06-13T05:21:09
2021-06-13T05:21:09
344,658,900
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
# -*- coding: utf-8 -*- """ Created on Sun Apr 18 15:57:30 2021 @author: user """ import cv2 import numpy as np from skimage.feature import hog from sklearn.datasets import fetch_lfw_people from sklearn import svm from scipy.cluster.vq import kmeans, vq from sklearn.model_selection import train_test_split import hw06_...
[ "david53133@gmail.com" ]
david53133@gmail.com
8ebe95e658fa81d2c57f56149b95418881155e43
89001e83b276f8906fd3cc08a9feb6e3a172d178
/doc/publishconf.py
a7e7ef4ea5ca7bb247d8465c50707871edb7965a
[ "Apache-2.0" ]
permissive
incf-nidash/nidm-specs
9bab2b16a1c6d75ff40e9ef9671591887ee751d3
b568043b81e75110d63b994c00aa17275a5f4614
refs/heads/master
2023-04-05T15:20:31.467970
2023-03-22T15:46:01
2023-03-22T15:46:01
8,960,650
18
9
NOASSERTION
2023-03-22T15:46:03
2013-03-22T20:47:55
Python
UTF-8
Python
false
false
530
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://nidm.nidash.org' RELATIVE_URLS = False...
[ "nolan.nichols@gmail.com" ]
nolan.nichols@gmail.com
2dedac0723fde2c7d884eb9ada3ecbbc4786f727
1d3258de931d7695498e069e5e06deccadc552d9
/mpg_eightball/wsgi.py
c273bd2fe3e9fb0c18f91fc9f01c4daed140c23c
[]
no_license
ckz8780/mpg_eightball
cf81cd50dde922c68dc3e4691d32e00f78e2c4cf
db84b70fb5e6ce953d80fcb76f29f78948a6bdc9
refs/heads/master
2020-03-21T09:07:41.259791
2018-06-25T19:57:05
2018-06-25T19:57:05
138,383,671
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for mpg_eightball project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO...
[ "ckz8780@gmail.com" ]
ckz8780@gmail.com
a723eaff6f4ec736d6302d682a44094bb2814bed
5f4b1457c3f38ab9b3b62b748fc852b0526a668d
/blog/views.py
27fa09cbbc903ffbb676d054876a77d007be1107
[]
no_license
AnindhaxNill/django_project2
81ae20f89cce259a1e876528996aebc2d39fe12b
809de48dd7316bca60c44855efe3fbd9c737a07c
refs/heads/master
2023-05-04T13:36:58.552464
2021-05-25T16:32:26
2021-05-25T16:32:26
370,760,104
0
0
null
null
null
null
UTF-8
Python
false
false
1,978
py
from django.shortcuts import render,get_object_or_404 from django.contrib.auth.models import User from .models import * from django.views.generic import ListView,DetailView,CreateView,UpdateView,DeleteView from django.contrib.auth.mixins import LoginRequiredMixin,UserPassesTestMixin def home(request): context ...
[ "anindha004@gmail.com" ]
anindha004@gmail.com
e3d7d971d4d1ab830a03f5af3a1ae0ece4a0d061
4c802d3a303fbc8261787ef9d283d3a69a16ab84
/mocbackend/migrations/0014_auto_20180816_1417.py
0b1474f0d5a3f3076cfb22b9d4eef3fa6a5a6966
[]
no_license
Gong-hr/mozaik-veza-backend
2d68b2c1fdd121dabfd4b0a34f5cb06cc1386334
63fc8737b4a98da50afd74adf6bf7b31207f2ef0
refs/heads/master
2023-02-23T07:40:34.986041
2021-01-25T05:52:58
2021-01-25T05:52:58
303,319,971
2
0
null
null
null
null
UTF-8
Python
false
false
579
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-08-16 12:17 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mocbackend', '0013_auto_20180816_1417'), ] operations = [ migrations.RenameField( ...
[ "drutalj@abacusstudio.hr" ]
drutalj@abacusstudio.hr
006775ffac8c01ec3e6d30f790bdc8716d9a52d4
59e0e826aea3dc8b210600ae4fce7709c3ec4e65
/files/test_base.py
3b3e97d6733510885542c1da5e33bcb09edc7d25
[]
no_license
lhy11009/aspectLib
d2be904a4df20445b57525a4cbe573f7d9ebfdcf
d919cadce2b57811351c0615d94da5c6ebfff800
refs/heads/master
2023-09-01T19:32:10.422521
2023-08-24T09:24:24
2023-08-24T09:24:24
241,186,934
0
1
null
2021-03-20T18:30:34
2020-02-17T19:11:32
Python
UTF-8
Python
false
false
1,181
py
# -*- coding: utf-8 -*- r"""Test for foo.py This outputs:   - test results to value of variable "test_dir" This depends on: - source files written from the value of "source_dir" Examples of usage: - default usage: python -m pytest test_foo.py descriptions: every function is a separate test, comb...
[ "hylli@ucdavis.edu" ]
hylli@ucdavis.edu
bffefbdb1d03e1802fc30007513c9749facb031c
7f9beb228b33002a7a31abeb0341f1114f48df37
/main.py
0b6fa9355b8e1d1ec6bfca7fb98742ee04ace9ba
[ "Apache-2.0" ]
permissive
finkelsteinj/poker-ai
c4aabe1853ad2e7a876f863caf7e4e035d9fa270
a2381584187e79b75feb41b1bfc198cb632818da
refs/heads/main
2023-03-10T10:24:02.981789
2021-02-21T17:13:18
2021-02-21T17:13:18
340,676,038
0
2
Apache-2.0
2021-02-21T16:46:01
2021-02-20T14:38:05
Python
UTF-8
Python
false
false
239
py
from Poker import Poker from Player import Player from Card import Card def getInputs(): global numPlayers numPlayers = int(input('How many players are playing? ')) if __name__ == '__main__': getInputs() Poker(numPlayers)
[ "finkelsteinj11@gmail.com" ]
finkelsteinj11@gmail.com
28cb89506c201fba276f34362a75f76ce01ffe95
f6d2385cd8eb896e17c5e72ac75abe6a0ba28659
/greffe1/essais.py
9f4aebeaa116aa85140e83a9274bb4de511e3b61
[]
no_license
pastrouveedespeudo/greffegreffe
fba94c9169c3d021714eabf1a45812ca762cfe9d
8ebe4d555246aed26e705671014a260a23148a6a
refs/heads/master
2020-06-12T14:50:17.590418
2019-07-04T14:01:25
2019-07-04T14:01:25
194,335,511
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
from fonction import function from fonction import ecrire from fonction import lecture from fonction import ecrire2 page = 'https://fr.yahoo.com/?guccounter=1&guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&guce_referrer_sig=AQAAAMdlxFFv1CpIEQ0VuhLMZl4pjm_0Ur2KGpLoKBkg4lBqmzqdwLxulK-E29QEXf815EL1VsURfRYB-M3USUSs2...
[ "noreply@github.com" ]
pastrouveedespeudo.noreply@github.com
ea0b3a58092fa895ad9e6bad059c2894b58aaedd
99818c8b0296ff1b15b832f2474d0861b508f53a
/src/util/numpy_util.py
a0362625874bc1c1b73b8025558f12d4f0be2e1f
[ "Apache-2.0" ]
permissive
sqsxwj520/DeepNotebooks
97ecb81ffc9cace876586127a1dbd72a829b52b2
036c807753254504c8546fbdfc91a86cd94e6a3d
refs/heads/master
2023-04-26T13:22:07.612137
2019-09-15T14:59:07
2019-09-15T14:59:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
import numpy as np def find_nearest(array, value): idx = (np.abs(np.reshape(array, (-1, 1)) - np.reshape(value, (1, -1)))).argmin(axis = 0) return idx
[ "claas@voelcker.net" ]
claas@voelcker.net
ca7688703ec43c89f230e5fb981e562d285ed52e
f27e1531a14c4f39766dcfcf0cc9813792ad40a6
/smile_recog.py
dfad86bb31b0128ecedfb72e4926bac44a8e2f70
[]
no_license
neil98daftary/face-recognition
aeb154e2dc4a0b9a6b308e40e20f18c61c1ca4d8
5212a23c902e14b665ad14c77f105421ab6bafb4
refs/heads/main
2023-01-21T16:51:15.903959
2020-11-28T15:35:17
2020-11-28T15:35:17
316,658,474
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 28 10:28:53 2020 @author: neil """ import cv2 #get the haar features face = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye = cv2.CascadeClassifier('haarcascade_eye.xml') smile = cv2.CascadeClassifier('haarcascade_smile.xml') # D...
[ "neil98daftary@gmail.com" ]
neil98daftary@gmail.com
3b7ade9e1d0e877ea632dc23877fbdda42be086b
8805967dfb30ff6ac4f78211c772a703137439f9
/files/review/movies2/entertainment_center.py
7d498bde24f9cffae8b6611e418700c99ee7aafa
[]
no_license
sophieRO1/python_projects
681d0c733a33b508ae2d7d4012dcd85115145b06
6d2877a202cea4f0be6d3a0648f56854587b97aa
refs/heads/master
2020-03-22T03:06:04.647429
2018-07-02T08:29:25
2018-07-02T08:29:25
139,413,349
0
1
null
null
null
null
UTF-8
Python
false
false
1,274
py
import media import fresh_tomatoes cindrella = media.Movie('cindrella', 'a poor girl who making the prnce fallinng in love with her', 'file:///C:/Users/Bonjour/Desktop/assepoester-1.20170303020003.jpg', 'https://www.youtube.com/watch?v=20DF6U1HcG...
[ "hwauie23@gmail.com" ]
hwauie23@gmail.com
2f069e6b51314ab6cffe53700121d67f9d5748e8
67dfe88ed93ea8d08e62cf06ff5a32153f507cb6
/libs/utils/__init__.py
43a258525804099409d3071f637ef9fe02d7ec4f
[ "MIT" ]
permissive
yashkhem1/SPNet
b2e23103b6a9688e3466a07cdcc3bb20e2264859
50d18b569d2be9ed440849baf2d85b78cfe05944
refs/heads/master
2023-02-14T21:55:49.182285
2021-01-03T10:42:43
2021-01-03T10:42:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
from .loss import CrossEntropyLoss2d from .metric import scores from .metric2 import scores_gzsl from .crf import dense_crf
[ "subhc4@gmail.com" ]
subhc4@gmail.com
4c4db37d9d99aadea067f84ef5a02562e139dd31
41cc7b614a4d8435de36a936582c2165da4163b5
/session 8/bài tập 19.py
8214e51f1d750115af6d41fd88da94a455f6ed50
[]
no_license
dgvu/NguyenHuyDuongVu-T4T10
ab55d11b4900d63a571d186f73a35bc9746648a7
a12e99a59f47b1c9ceb2e3437049e34d2967ce79
refs/heads/master
2020-04-07T02:46:23.603237
2019-05-10T16:29:53
2019-05-10T16:29:53
157,989,212
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
a = [45, 67, 56, 78] for i in range(len(a)): print(i + 1, ", ", a[i]) x = input("Enter your new score ? ") a.append(x) for i in range(len(a)): print(i + 1, ", ", a[i])
[ "duongvu090903@gmail.com" ]
duongvu090903@gmail.com
e72e6cb7adb3aad553507b8048e09da634d379a9
a8d7e94a1178ac59bb60524421d39c80a5f3080a
/testing/client_app/pages/login/login_factory.py
f1ff5a8c5f7e36f7e37bffe08f8442bd5d3c4218
[ "MIT" ]
permissive
griffinmilsap/gigantum-client
5d22a3e3690437916f1f670f3ea341c7fb12db13
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
refs/heads/master
2021-07-11T21:41:11.420668
2021-06-16T13:33:44
2021-06-16T13:33:44
249,494,372
0
0
MIT
2020-03-23T17:10:21
2020-03-23T17:10:20
null
UTF-8
Python
false
false
704
py
from client_app.pages.login.log_in_page import AuthLogInPage from client_app.pages.login.ldap_login_page import LdapLogInPage from client_app.pages.login.internal_login_page import InternalLogInPage class LoginFactory: """ A factory class that creates the LoginPage based on the login type provided""" def loa...
[ "noreply@github.com" ]
griffinmilsap.noreply@github.com
79258c9426d558486274c453e5f1e7bd0cbb4a0a
52b5773617a1b972a905de4d692540d26ff74926
/.history/validPalindrome_20200803230103.py
15299f1055653cb18098fa47a7ef7af4c4238410
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
import re def palindrome(str): if len(str) == 0: return True actualStr = str.lower() str = str.lower() cleanStr = re.sub(r"[,.;:@#?!&$]+",' ',str) print('cleanStr',cleanStr) str = str.split(" ") str.reverse() newArr = [] print(actualStr) for i in str: newArr.ap...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
918da380b47298fcdb7e1bfbb695a97994dd52ab
87e5bee17b54293c3c1cdbd313fc6b00ac07b581
/poll_manager/handler/urls.py
11f337d1e2cb583f1859b950919a9d60d06528a3
[]
no_license
smapl/poll_manager
952e97926099656656a3972960983b24026f01bd
b738b130a57022f3e8160b321385b973942da8ff
refs/heads/main
2023-02-17T12:07:51.519248
2021-01-10T21:07:13
2021-01-10T21:07:13
328,409,842
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
from django.urls import path, include from .views import active_polls, get_poll, send_poll_answer, get_passed_polls urlpatterns = [ path("api/active_polls", active_polls, name="active_polls"), path("api/get_poll", get_poll, name="get_poll"), path("api/send_poll_answer", send_poll_answer, name="send_poll_an...
[ "a.mustafin00@mail.ru" ]
a.mustafin00@mail.ru
64e49a9a1d5aac4d8e593274c3aaa18adc45a81d
f8062ca099ed4817b575abd7962077d574b0dbf9
/dataarugentation/main3.py
3a82b080b0fef1c0061cc0c663151fa8fcb4eb66
[]
no_license
GRSEB9S/ai.challenge
4c861ee98ea169a34129e0b72667a06436f7182d
f15f5ef36318dfefdb60c9c0479586717c18fb1a
refs/heads/master
2021-08-23T19:49:58.393485
2017-12-06T08:53:53
2017-12-06T08:53:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,301
py
import imgaug as ia from imgaug import augmenters as iaa import numpy as np import cv2 ia.seed(1) images = np.empty(shape=[2]); # Example batch of images. # The array has shape (32, 64, 64, 3) and dtype uint8. f1 = '/home/frelam/ai_challenger_scene_train_20170904/caffe_train.txt' import os def seq_setting(): seq...
[ "noreply@github.com" ]
GRSEB9S.noreply@github.com
64798f56924cb3a6122c1d8f1dcda32e5a4d0248
cf540df0f31fdfa06eed34572d65261641988d63
/feature_extractors.py
3f446a2762de31336e7ea9ccd95138282c54c9b9
[]
no_license
cmilke/HH4b_vbf_analysis
bcc0e45e511b538ce5a6c262b1cd88b1d52ff97e
660219fa95f88351b14eb4c1624ca5f2c9036b42
refs/heads/master
2022-11-19T01:57:05.561780
2020-07-22T17:34:03
2020-07-22T17:34:03
279,408,209
0
0
null
null
null
null
UTF-8
Python
false
false
4,588
py
import itertools from uproot_methods import TLorentzVector as LV _fourvec_names = [ f'vbf_candidates_{v}' for v in ['pT', 'eta', 'phi', 'E'] ] make_vector_list = lambda datarow: [ LV.from_ptetaphie(*vec) for vec in zip(*datarow[_fourvec_names]) ] def valid_vbf(datarow): vector_list = make_vector_list(datarow) ...
[ "chrisdmilke@gmail.com" ]
chrisdmilke@gmail.com
ec4f6c602cdd8f3760547226ea935b15fad574b7
499c97e3456d89ef6a73de7594f80af69703c153
/code/code-py/Chap2_2_3_Pie Chart.py
169d929e63fcc638c78118854f2dce69dfbc297a
[]
no_license
whatEpisteme/python
8bffd9d07c8209e0a4200c68d30ea91bec2a663a
81fdab986c02c6d1a4b2a8c46aeeaf3d3158bf92
refs/heads/main
2023-06-15T18:27:27.317388
2021-07-12T02:11:34
2021-07-12T02:11:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,071
py
#!/usr/bin/env python # coding: utf-8 ### 라이브러리 호출 import pandas as pd import numpy as np ### 데이터 호출 # 상위 폴더로 이동 후 data 폴더로 이동 path = '../data/' # 데이터 호출 df = pd.read_csv(path + 'Sales data/Data.csv') ### 데이터 변수 생성 및 정렬 # 연도, 월 변수 생성 df['year'] = df['OrderDate'].str.slice(start = 0, stop = 4) df['month'] = df['Or...
[ "hsj2864@gmail.com" ]
hsj2864@gmail.com
4e4e407a30aae6656e79b437e51a28957fafe3a1
0676fa55160ece68c1316f997b3609c7532b9238
/soap/core_send.py
50f4d312f24d5b6fa7a19cac21754854996e504e
[]
no_license
mamdouhmalek/gccid
f13f98e38e6d924b4e22ac9513cdde71007f7d97
f20191bf5166c5e5f8a3f7e5b73112e25240e723
refs/heads/master
2016-09-05T14:20:16.983877
2014-05-23T09:58:53
2014-05-23T09:58:53
18,293,484
0
1
null
null
null
null
UTF-8
Python
false
false
5,770
py
from configuration import GetConfig, LogInput from suds.client import Client from suds.transport.http import HttpAuthenticated from suds.transport.https import HttpTransport from urllib2 import HTTPBasicAuthHandler, build_opener, install_opener, urlopen, BaseHandler import xml from xml.dom import minidom ...
[ "mamdouh.malek@4gtss.com" ]
mamdouh.malek@4gtss.com
41f8b79db905bc0e33ade9d4c202458c71c6d178
ca72eb47bd82f87e029f14fb16dbd80340f9f0f7
/model_zoo/YoloV3/api.py
2b8f6bbf345e4521bcb6b49f91d4d37b0d25ec82
[ "Apache-2.0" ]
permissive
sinferwu/YoloAll
b905ebf178d984e8e262599e7101bf9dfb7b235c
38cd486d1e2ee83c05ee19aab45076b7a7759852
refs/heads/main
2023-07-25T10:19:16.551172
2021-08-29T02:46:02
2021-08-29T02:46:02
400,935,791
1
0
Apache-2.0
2021-08-29T02:48:22
2021-08-29T02:48:22
null
UTF-8
Python
false
false
2,378
py
#! /usr/bin/env python3 from __future__ import division import os import argparse import tqdm import random import numpy as np from PIL import Image import torch import torchvision.transforms as transforms from torch.utils.data import DataLoader from torch.autograd import Variable from pytorchyolo.models import loa...
[ "408958731@qq.com" ]
408958731@qq.com
ca7095ab3d8c8f9a438a75a24c6495f62b664b90
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_geologies.py
84e56d430f9355cad6a66d3b9a709b593d67b684
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
from xai.brain.wordbase.nouns._geology import _GEOLOGY #calss header class _GEOLOGIES(_GEOLOGY, ): def __init__(self,): _GEOLOGY.__init__(self) self.name = "GEOLOGIES" self.specie = 'nouns' self.basic = "geology" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
290a914b6bae37cef63319ce03ef2b923eec6203
df752e629cd20f9706876fe65dee9d178c1331aa
/Python/mrtfuncs.py
0943217d51e87cae92470e58b77347cef384d741
[]
no_license
UPennEoR/MiniRadioTelescope
3a27d5d6405f2a2d92d0edc3c6146b77365fcb4a
4fa076bb94cb12864083e96f908d0bc25d386ef9
refs/heads/master
2023-02-21T22:33:06.543694
2022-02-07T21:37:32
2022-02-07T21:37:32
63,442,562
307
36
null
2023-02-22T22:13:15
2016-07-15T18:23:12
Jupyter Notebook
UTF-8
Python
false
false
3,860
py
import os import sys import serial def arduinoPort(baudrate, auto = True, debug = False): # Returns the detected or selected port while True: # Variables status = False ports = [] indexList = [] # Functions def portList(portDirectory = '/dev'): # Finds possible ...
[ "jaguirre@sas.upenn.edu" ]
jaguirre@sas.upenn.edu
377de16c937260d90c622d656d7aa16574214d81
618b6945d639b03e72cfcdf835f1d89025d3d666
/kitchen.cs.cmu.edu-2012/main_CRF.py
9ee415b8e855a6deef873ee2620ce76b35aa71d8
[]
no_license
TAB9/Masterarbeit-Tamara-Becker
f138a2411757691113a371606e9b5807bd57727e
884cc4fe943148a01571049dc84f8854a6f2b709
refs/heads/master
2020-03-24T00:16:24.935064
2018-07-25T10:42:11
2018-07-25T10:42:11
142,277,078
0
0
null
null
null
null
UTF-8
Python
false
false
7,389
py
import glob import matplotlib.pyplot as plt import numpy as np import pickle import scipy.stats import sklearn_crfsuite import random from confusionMetrics import plot_confusion_matrix from ffmpeginput import input from math import log, exp from numpy import prod from sklearn_crfsuite import scorers from sklearn_crfs...
[ "noreply@github.com" ]
TAB9.noreply@github.com
6311a8a8847f13f56bf6c925a32dacf30f781bd9
a45a97455322545bbc040c40fb669e5b2475e651
/FirstPygame.py
81f467f0789da285b455d22bd935c427d1167d33
[]
no_license
BreadBro/GameDesign
e6d2e67a85ce2394656b96a48d0e3b6d880df841
f7b8db91d6c74283acc893b72986fe36d4497e9b
refs/heads/master
2023-01-29T14:09:07.837882
2020-12-12T17:02:33
2020-12-12T17:02:33
290,260,946
0
0
null
null
null
null
UTF-8
Python
false
false
4,938
py
import pygame pygame.init() WIDTH = 1000 HEIGHT = 800 screen = pygame.display.set_mode((WIDTH,HEIGHT)) pygame.display.set_caption("First Game") walkRight = [pygame.image.load('Crabbo Pictures\png\Walk (1).png'), pygame.image.load('Crabbo Pictures\png\Walk (2).png'), pygame.image.load('Crabbo Pictures\png\Walk (...
[ "noreply@github.com" ]
BreadBro.noreply@github.com
f85db437a5027e96641b973b28ae8143d8ef91c3
db9fdd33a8f7277aa0b210341ca5f3223cf84592
/smithwilson/tests/test_core.py
aafe3fa1e9064c6e1e7e105c77f6b4488d1bb097
[ "MIT" ]
permissive
simicd/smith-wilson-py
f42f2e41e9a5bdcace48d558ac7b2044e337d350
e8e9e0ed6233ded23196ddcddf151ff0159cdaf6
refs/heads/main
2022-02-10T18:23:37.230530
2022-01-30T12:47:15
2022-01-30T12:47:15
191,021,279
15
6
MIT
2022-01-30T12:47:16
2019-06-09T15:11:35
Python
UTF-8
Python
false
false
14,047
py
import unittest import smithwilson as sw import numpy as np class TestSmithWilson(unittest.TestCase): def test_ufr_discount_factor(self): """Test creation of UFR discount factor vector""" # Input ufr = 0.029 t = np.array([0.25, 1.0, 5.0, 49.5, 125.0]) # Expected Output ...
[ "10134699+simicd@users.noreply.github.com" ]
10134699+simicd@users.noreply.github.com
47fdd194eeaf4bba70ad20cd0abe5d247a08db82
f3209b50bd154be6ab3de5ed6ab639b99e157272
/geoprocessing_cpp/probabilityLayerMultiPriority/rasterAgreementTable.py
94dc6594e0d4d20a960ca4943312acd75fa881ab
[]
no_license
andriybun/bun-various-projects
7e300cb2a663771b279df4210eed1b436cbdd1f8
79914097cc47929af39642cf4d971b53f99b3598
refs/heads/master
2016-09-05T13:47:30.932095
2014-12-01T12:38:26
2014-12-01T12:38:26
32,204,755
0
0
null
null
null
null
UTF-8
Python
false
false
10,867
py
# -*- coding: utf-8 -*- """ Created on Wed Dec 08 22:16:02 2010 @author: Andriy Bun @name: rasterAgreementTable """ from utils import * def invertPriorities(priorityVector): maxVal = max(priorityVector) + 1 res = [] for val in priorityVector: res.append(maxVal - val) return r...
[ "andr.bun@8e31e031-ea9d-cf67-1966-e0f2b5892f1d" ]
andr.bun@8e31e031-ea9d-cf67-1966-e0f2b5892f1d