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
1a3007a1b69534bcd04ebe1d114bf8c09c231f38
1b49a60d578b6ae4bfc2d1421143f676c9d3128d
/src/installer/tests/conftest.py
8ba3389326c250fa716c6d70ea69d76b22fd8172
[ "Apache-2.0" ]
permissive
UnivaCorporation/tortuga
aad2c00a1b09fba67298b1dd7543125a26b64c51
56d808d7836cd15d6c6748cbf704cdea4407fef6
refs/heads/master
2021-03-24T13:31:33.060593
2020-11-23T19:57:59
2020-11-23T19:57:59
123,297,582
33
25
NOASSERTION
2020-11-23T19:58:27
2018-02-28T14:38:56
Python
UTF-8
Python
false
false
15,541
py
conftest.py
# Copyright 2008-2018 Univa 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 to in...
16de64a5cf3d62052326a63a9269eb8268c2ebcf
ec52c841ee9b6e103376279277a30243ed6e7442
/split_chrom_aware/recursive-chromosome-splitter.py
680f4454c4a1df3e76cd83695a4c135af5d1fe56
[ "MIT" ]
permissive
dudcha/3d-dna
9adf19f787452653eb1d3ecc6fa308a1010003ac
e12de47907a60d9ac869035369d0ff2479eb2fbc
refs/heads/master
2022-12-27T16:37:59.952936
2020-10-09T17:39:21
2020-10-09T17:39:21
117,464,422
2
0
MIT
2020-10-09T17:09:33
2018-01-14T20:32:40
Shell
UTF-8
Python
false
false
6,047
py
recursive-chromosome-splitter.py
import numpy as np #import matplotlib.pyplot as plt import sys from scipy.sparse import * import math # #First we define a function that takes in a matrix and computes the point where # #S(i) is minimized, splits the matrix at that position and makes two recursive # #calls to itself on both submatrices # #This funct...
25df2b91225dc9699a6ceb2394f18503de3664ec
b8c9436a51b7f25b1fae1c0767ef516d19e52a29
/focus_prune/network.py
72c57fd83c419946fa8a22fb78df42ad9ba796f8
[]
no_license
wudapeng268/KBQA-Baseline
99fdc9d3d47903aacc907a60f5af0f3c030f022f
2f7c937860a1eb7d160e6d61b00819b69e4ffe7d
refs/heads/master
2022-10-09T16:06:00.414749
2020-12-25T09:17:42
2020-12-25T09:17:42
129,218,299
7
3
null
2022-09-27T03:13:11
2018-04-12T08:26:10
Python
UTF-8
Python
false
false
2,918
py
network.py
# coding:utf-8 # author:wup # description: build bi_gru+crf to named-entity recogniztion # e-mail:wup@nlp.nju.cn # date:2018.4.6 from focus_prune.load_data import SimpleQA import tensorflow as tf from util import NN class fp_model(): def __init__(self, sess, config): self.sess = sess self.qa = Si...
2d2b8c96fadf905fbb5be2d5ac132f01c5d176e6
8d77e0954dfa4c87bf6125c84b2d6d1151c9a291
/main.py
058ad23d891f3127ebb97a573b0a707f50cb0df5
[]
no_license
mimorphism/lyrical
f0cdf76391022d47fdd96cebad373b5ab5ba4a22
3f66c4fecf291b5438e9fbc9ea1ba657ccd04eaa
refs/heads/master
2020-04-02T09:10:57.460084
2018-11-16T03:34:27
2018-11-16T03:34:27
154,280,284
0
0
null
null
null
null
UTF-8
Python
false
false
3,669
py
main.py
import win32gui import requests import pickle import sys from bs4 import BeautifulSoup from lyrical_form import Ui_Dialog from PyQt5.QtWidgets import QDialog, QApplication, QMessageBox import os class LyricalForm(QDialog): def __init__(self, parent=None): super(LyricalForm, self).__init__(parent) ...
d153d40b8fe11f6c66c920bd9fc747e0c65f0799
554331cc4181c4b3057bcdd6699bff226a0cae0c
/test.py
f6faded9a2176deff0432efb5e34e6c91f07b5f9
[]
no_license
gaocegege/dark-forest-server
e856479b92131398f6328b90b472e56a01969054
2f48dd19171f417c3701245c6568dc91520dee00
refs/heads/master
2020-12-03T09:26:09.333908
2015-11-07T17:32:17
2015-11-07T17:32:17
45,727,712
1
1
null
null
null
null
UTF-8
Python
false
false
502
py
test.py
import httplib, json params = { 'id': '12345', 'action': 'launch_missile', 'param': { 'pos': { 'x': 1, 'y': 2 }, 'vel': { 'x': 1, 'y': 2 } }} params = json.dumps(params) headers = {"Content-type": "application/json", "Accept":...
ba3bdd087b82f0e8ea93cb511b2b51748bb27985
eca55524eb34cace87917e3d26be23e052bc2de2
/python_challenge_14/python_14.py
a5dfb93b2de41773d40ea292816251ecc60407fc
[]
no_license
zhiquan304/python_challenge
34147ecc08400c0253e774f2863c9d0f2a923e09
9525d7703f8ae31da14c498768c9f6855db1bd2c
refs/heads/master
2021-06-10T21:42:47.283196
2016-09-11T12:08:57
2016-09-11T12:08:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
python_14.py
import PIL from PIL import Image all_data = Image.open('wire.png').getdata() #<!-- remember: 100*100 = (100+99+99+98) + (... --> #意思是以顺时针打印 #画布的大小为 x * y, #初始执行序列 x, y-1, x-1,y-2 def clockwise_paint(x,y): real_pic = Image.new("RGB",(x,y),(255,255,255)) xiang_you,xiang_xia,xiang_zuo,xiang_shang = (x, y-1, x...
15ceb331145ee03d497c329edd519d648cc0c2df
5a463f91e6648b6950bc5957718a387a86c5ffca
/simulated_sets/ligbind/ligbind/__init__.py
4046002e32a2f0a1dbad1c240f1a142dae189a7a
[ "BSD-2-Clause" ]
permissive
mcfitzgerald/tharsis3.0
6b545f552416ef68d0e1f78a68981af5dd85ad13
0ed579faea6752ecafa0721bbafe87caabf73ebe
refs/heads/master
2021-01-17T20:32:57.371019
2018-03-02T01:08:35
2018-03-02T01:08:35
84,145,368
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
__init__.py
from .core import WymSim, WymFit, WymSimTest, WymSim_Hardlig
30c74eba48b5de652f08b0388a6f5fa0d381cd1b
2faef839d13500e6aefbd5a1fc64a94b0dad961c
/leetcode/!MedianOfTwoSortedArray.py
d34b56cbf5f71fac73395d3363819d14db4266b2
[]
no_license
kironezhengyu/leetcode
a16e7e0f014e049872a3d98f3cb39098628b3956
9d3690287a9489aafcbfd57b5167c8c7ed5facf7
refs/heads/master
2021-01-02T08:47:07.590130
2014-01-19T16:22:20
2014-01-19T16:22:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
!MedianOfTwoSortedArray.py
''' There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). ''' ''' find the kth smallest number, and we are done where k is the m+n / 2 if m+n is even return m+n /2 +1 th as well ''' def findMedian(arr1,ar...
d8aff16a0ca3051508b1798f1765fc7924037be4
eb82e06402be351e1d41dfc0a2646426d26eace6
/mkt/inapp/tests/test_serializers.py
015a8b2b9732399dc3ae60819a7a5c4c05594c46
[]
permissive
sarvex/zamboni
34c28697f007b40131444af10fa943b19244fa24
5fa5400a447f2e905372d4c8eba6d959d22d4f3e
refs/heads/main
2023-08-19T04:53:22.857291
2023-08-14T10:04:05
2023-08-14T10:04:05
32,572,674
0
0
BSD-3-Clause
2023-09-10T15:16:10
2015-03-20T08:41:50
Python
UTF-8
Python
false
false
2,406
py
test_serializers.py
import mock from nose.tools import eq_, ok_ from requests.exceptions import RequestException from mkt.inapp.serializers import InAppProductSerializer from .test_views import BaseInAppProductViewSetTests class TestInAppProductSerializer(BaseInAppProductViewSetTests): def post(self, **kw): if 'data' not ...
29122da910240a354d35893ad89c00aa299d4131
ee9ca3d79511895f9129a198bfe48c57e975a3d2
/recommender_website/app/migrations/0001_initial.py
1d6ccf4b456990fef4d7600a6427e5dcc31f60a0
[]
no_license
chinmaysharmacs10/University_Recommender
98db418b6ab7a7afe29698e887e9796b6b833d98
d9c660f345527e1b9eb69649ccea6f995e8373d1
refs/heads/master
2022-12-17T00:08:19.285673
2020-09-10T11:23:32
2020-09-10T11:23:32
280,630,995
5
0
null
2020-07-18T17:09:11
2020-07-18T10:14:43
Jupyter Notebook
UTF-8
Python
false
false
846
py
0001_initial.py
# Generated by Django 2.2.5 on 2020-07-17 18:59 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(...
d2c3c76ea2337efcafd7205bd3cfbe9c6dd5944f
70b24ce9c3a1e9db935ef2bc85ee3c4d2534a0eb
/model-zoo/onnx-duc/duc_service.py
6901378706a0863d4a51382b54b57347de0c42d0
[ "Apache-2.0" ]
permissive
frankfliu/junkyard
3cf452825320de0fc7c22b7089d49adae658dc2e
2588b342ffd1d9ea8f3241483ca54ef89447d9f6
refs/heads/master
2023-08-22T09:39:38.474782
2023-08-14T18:11:34
2023-08-14T18:14:53
160,395,069
1
0
null
null
null
null
UTF-8
Python
false
false
6,834
py
duc_service.py
import base64 import json import math import os import sys from os import path import cv2 as cv import mxnet as mx import numpy as np from PIL import Image from mxnet.io import DataBatch from model_handler import ModelHandler def get_palette(): sys.path.append(path.dirname(path.abspath(__file__))) import ci...
fda77059f91015439cbfddc96e2473ffecaf27f6
e4cebbb2a8dbe67763e964ceaffa18402b483251
/data_esp/core/rpc/jsonrpc.py
e60beb934f1147959f288b01987011699913de71
[]
no_license
straga/micropython_littlefs_test
433c1ad11b7cfc0ffa1a3ae65ec78b68587a84a3
a1c8534a2d8af6288298c66a14d83a3825558110
refs/heads/master
2023-03-22T13:30:19.294328
2021-03-12T13:18:00
2021-03-12T13:18:00
347,066,755
0
0
null
null
null
null
UTF-8
Python
false
false
2,606
py
jsonrpc.py
try: import ujson as json except Exception: import json pass from core import logging log = logging.getLogger("JSONRPC") class JsonRpc: def __init__(self, core, mbus): self.core = core self.mbus = mbus @staticmethod def isgenerator(iterable): return hasattr(iterable,...
21cc8e00e92eb1330fed213352ce826b69f4c9f3
ed578750c69a988ca7608858d456abcd1bee52a2
/gameshapes.py
af757146e0cf272e441f6e4552399f2710d6cc7c
[]
no_license
OgJAkFy8/RPG
b27c9c407853f7226359e4167cd85ff575337cec
7dc72d0c01e459c7abc113832212ae2714529d5f
refs/heads/master
2021-06-08T07:12:05.201537
2019-03-09T02:00:02
2019-03-09T02:00:02
96,365,978
0
0
null
2017-07-05T23:07:29
2017-07-05T22:24:06
null
UTF-8
Python
false
false
1,197
py
gameshapes.py
import turtle from random import randint from randomColor import * #randname ## ## Funtions def equallines(size): t.backward(size) t.up() t.right(90) t.forward(20) t.left(90) t.down() t.forward(size) def dtriangle(size): t.down() for i in range(3): t.right(12...
fc899aef5185acde5b79011045e21b32436c2356
c1d93add2c7389da250afac4ec6bfdaf500fd8ef
/snippets/fcm.py
19936078143a86c81b7fbc7add0b70b9f89a897e
[]
no_license
darksv/garbage
89dad0331c70bf989fe3af6e75989a89a1825e9b
08fb9cfbd42d0d35d62b8d8625d60f4b45420d91
refs/heads/master
2020-03-19T05:30:33.946755
2018-06-03T21:29:57
2018-06-03T21:29:57
135,939,359
0
1
null
null
null
null
UTF-8
Python
false
false
364
py
fcm.py
import sys from pyfcm import FCMNotification push_service = FCMNotification(api_key="x:x-x-x") registration_id = "x:x-x-x" message_title = "Uber update" message_body = "Hi john, your customized news for today is ready" result = push_service.notify_single_device(registration_id=registration_id, message_title=message_tit...
9d19132325ceb5104364a20fcfef362b06b90ac9
68f2068cee93d287bc6f8444e51b6d2715599d37
/django_project/dashboard/views.py
09e480cd03b79c194024be56d4c0638145d130e7
[]
no_license
mark-locatechs/mark_demo
384413e427638861fe8e6e7dba89985292b8498c
63a83f7dbc5257c9e337d868e66acef04213ee46
refs/heads/master
2020-05-16T13:47:26.190440
2019-05-13T13:58:11
2019-05-13T13:58:22
183,082,588
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
views.py
from django.shortcuts import render from django.views.generic import TemplateView from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.views.decorators.csrf import ensure_csrf_cookie class DashboardView(TemplateView): template_name = 'index.htm...
908caca6e7b1dc60642133f7c41b8cae0a7b1f27
4622f2940001845a37b7699d7f2f83d16b026d52
/app/admin/filter.py
2c956365c518cb7450de674fd5eb5754c6e56ae6
[ "MIT" ]
permissive
jinxiu89/uwget
e6362a5c3243f123444af8ecb10543fc7012ebce
1827f882a091a68a77d00086968f695991e5278a
refs/heads/master
2022-12-12T11:28:45.453635
2020-05-30T15:15:07
2020-05-30T15:15:07
188,886,502
0
0
MIT
2022-12-08T06:14:19
2019-05-27T17:47:39
JavaScript
UTF-8
Python
false
false
350
py
filter.py
#!/usr/bin/env python # _*_ coding:utf-8_*_ # author:jinxiu89@163.com # create by thomas on 2019/8/31. from app.admin import admin @admin.app_template_filter('getParent') def get_parent(id): from app.modules.Category import Category category = Category.by_id(id) if category is None: return "根分类" ...
05e137ddc2635707bbb3bd463515efd4c7273728
f2a75143c352229ed2a07b93f012a5d411c0a547
/ERA_interim/download.py
df0c099f8ac64accd6352ea8c25bc3a28b7d19ee
[]
no_license
Sandy4321/wind-energy-forecasting
4edc7620532fd61efd0f5841f16e6cd8aa48dfdb
47c37d90a894cda40b8d3ce25832c1a635a26803
refs/heads/main
2023-03-15T16:45:39.650472
2020-12-07T15:17:52
2020-12-07T15:17:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,677
py
download.py
#!/usr/bin/env python # Download data from https://apps.ecmwf.int/datasets/data/interim-full-daily/levtype=sfc from ecmwfapi import ECMWFDataServer server = ECMWFDataServer() server.retrieve({ "class": "ei", "dataset": "interim", "date": "2018-01-01/to/2018-01-31", "expver": "1", "grid": "0.33/0.3...
5fb292a8d62eb351cffec3162c0894ffb7c0da33
6859451edc3c76e2ad383e983b9612481b3aec6b
/entertainment_center.py
f2ad24c866cfc49bf05ffd97261e2d283c304477
[]
no_license
yanyanwu0358/movie-site
e16d1eae84221e0a4bd32de68920b6ca15e03b2f
d824a2479b789d74d55e27c0fa6c5f4130e30d9f
refs/heads/master
2021-01-02T23:45:43.444520
2017-08-08T22:56:19
2017-08-08T22:56:19
99,506,827
0
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
entertainment_center.py
# -*- coding: cp1252 -*- import media import fresh_tomatoes """ This file specify the name of three moives, a link to movie poster and a link to trailor. It then dispalys the movie information on a webpage""" # specify the first movie's name, link to movie poster, link to movie trailer hunger_games2015 = media...
270a0b6a9b35ae5afe96364bbdb004dcfa920362
d3d61610d4447a5264bc279239b7daf73d4af4a3
/collectors/azure/common.py
8c311944b57316094f2ed64a22ef48746e6128d5
[ "Apache-2.0" ]
permissive
faheel/CloudFrontier
7a6fceac9562bf37c1f5cbf0998354a9a91f4805
ee153144834a369781c3523b216c1f4be3d9f60d
refs/heads/master
2022-11-29T10:10:23.327518
2020-08-10T15:27:12
2020-08-10T15:27:12
286,620,795
1
0
Apache-2.0
2020-08-11T01:58:39
2020-08-11T01:58:38
null
UTF-8
Python
false
false
274
py
common.py
from azure.common.credentials import ServicePrincipalCredentials def get_credentials(client, secret_key, tenant_id): credentials = ServicePrincipalCredentials( client_id=client, secret=secret_key, tenant=tenant_id, ) return credentials
6eb3032cdec6e093c3fc84c51d5b652434b81ceb
3b4255dae0aefa4f882bedaf37410d521906e058
/api/migrations/0010_auto_20201227_2048.py
1cb07323108a36991c4db8ec35ea80541da4db5b
[]
no_license
bpms-digikala/ldap
e703f3134f5d11850ea9b3dd48f9f9ac7de4e86d
6ef70db5b4ad076fdad90b6279005b7864b3f696
refs/heads/main
2023-02-14T02:39:23.674764
2021-01-09T15:23:05
2021-01-09T15:23:05
328,183,902
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
0010_auto_20201227_2048.py
# Generated by Django 3.1.4 on 2020-12-27 20:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0009_auto_20201227_2013'), ] operations = [ migrations.AlterField( model_name='reference', name='m_uuid', ...
9480efba1905917b93fc3f5dbfbd8530072a9603
771f4ff5ed55e9a858f1324840455b371ba9b8bb
/reverse_text.py
c4659ff134a4064861d455d2d905a8bd6cf74a71
[]
no_license
jacobsilv/Python
65ae659624bddf01ed81b71bceda62a37cda1080
332bcaf065be1eb37f0323bc21e8e10a01f68f48
refs/heads/master
2021-01-10T10:30:11.882734
2016-01-26T18:34:24
2016-01-26T18:34:24
48,925,850
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
reverse_text.py
import os, sys dir = './' ''' This is my reverse string method ''' def rev1(word): leng = len(word) string = "" for i in range(0, len(word)): #grab the end of the string and go to the beginnning string+=word[leng-i-1] return string #tester to make sure the correct chars were in place def rev(word): l...
fb78f19988b82a007688c7c87e93394f7af27b0b
d46ab57ab283b9f1613a10fcfb01c392a151ca85
/squares_scatter.py
d26ec3b4e5d6f46c396e9fd4a7a1eda4cd03414f
[]
no_license
ankitmaini/Data-Visualization
3500e509f8f215a5fb11304d9c0fbdcb22c8d96c
c5d3045fd3144eac32c823c331aa48d40a90cd64
refs/heads/master
2020-04-27T11:35:59.623113
2019-03-09T06:04:46
2019-03-09T06:04:46
174,301,070
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
squares_scatter.py
import matplotlib.pyplot as plt x_vals = list(range(1, 1001, 20)) y_vals = [x**2 for x in x_vals] plt.scatter(x_vals, y_vals, s = 4 , c =x_vals, edgecolor = 'none', cmap=plt.cm.Blues) # Setting the range for each axis plt.axis([0,1100, 0, 1100000]) plt.savefig('squares_plot.png', bbox_inches = 'tight') plt.show()
6c19ad36217912e5810e9dae8c2276a699d16dc2
b25ee647a293b10643cc69236ea8e4540319c838
/Tensorflow/DNN.py
bb0eee75eb5d767a64e73cdf6fb426b91e497ebe
[]
no_license
haks93/skku_2018_ai_team6
ac7011dc092573e47e9772a6a6536ec15af59e09
f508923cbabfe89cd70fd49e0129c8c08618c003
refs/heads/master
2020-04-08T10:56:51.655563
2018-11-30T14:43:50
2018-11-30T14:43:50
159,287,980
0
0
null
null
null
null
UTF-8
Python
false
false
7,087
py
DNN.py
import tensorflow as tf import numpy as np import pandas as pd import matplotlib.pyplot as plt train_df = pd.read_csv('../input/train.csv') test_df = pd.read_csv('../input/test.csv') train_df = train_df.drop(['Ticket', 'Cabin'], axis=1) test_df = test_df.drop(['Ticket', 'Cabin'], axis=1) combine = [train_df, test_df]...
dd215a61d2541570b37f7d228e3cfb713de67345
4ba2af7ba1a7de701e5c6aa8262fdecba797ad05
/SystemTests/tests/test_example2.py
24d9d96ecce83a4bf82050b5369da07028994916
[]
no_license
Betrezen/Projects
8d654ce15dde795421673b35d4afafbd34e3ff77
ebf8566c60bb5938f9b1bd4236a6dc187782116f
refs/heads/master
2020-04-16T02:30:14.697389
2016-10-13T20:21:52
2016-10-13T20:21:52
17,163,071
1
0
null
null
null
null
UTF-8
Python
false
false
784
py
test_example2.py
import unittest import time from optparse import OptionParser class TaggedFieldTest2(unittest.TestCase): def setUp(self): self.s = 2 self.verbosity=2 def test1(self): time.sleep(self.s) i=0 j=0 self.assertTrue(i == 0 and j == 0 or i != 0 and j != 0) def tes...
b0fd7275219bf6207d556b893bba1419c64abbb6
179ff8d4fa63db940c4d7512be1580333ab8c4a3
/ensemble_train3.py
e2b78646bf2413d1eb3281bc180542c0fb7aae26
[]
no_license
Madhu-balaji-01/dcase
6d8aa09e402b8ab454561acf8ce56c4a8cc49386
320b10aabe38757028609398d2d77ff87e6af1bc
refs/heads/main
2023-05-12T09:50:14.296256
2021-05-14T09:18:43
2021-05-14T09:18:43
370,585,871
0
0
null
2021-05-25T06:19:11
2021-05-25T06:19:10
null
UTF-8
Python
false
false
9,224
py
ensemble_train3.py
from os import name import sys import torch import torch.nn as nn import torch.optim as optim from data_engin import Data_Engin from models.model import ENSEMBLE, ENSEMBLE2, VGG_M, VGG_M2, DCASE_PAST, DCASE_PAST2 from fit_model import Fit_Model import argparse parser = argparse.ArgumentParser() parser.add_argument(...
994d7f5c5ad1a396e08910df7da646218291bde1
c515fd655492fea6a2eba5f56e0aab7b157c4745
/publicity/migrations/0029_auto_20200111_2306.py
df174d2ec69cc4bc2361e35f04714913855b5550
[]
no_license
aolkin/hrdc
9c817dd3d116c8d067c750056ae70e8eaea5a085
c673b5fce3817fd63a70f11b5f82848e39d34f18
refs/heads/master
2023-07-25T01:03:51.321896
2023-07-17T02:12:30
2023-07-17T02:12:30
96,379,907
0
1
null
2023-07-17T02:12:33
2017-07-06T02:28:13
Python
UTF-8
Python
false
false
386
py
0029_auto_20200111_2306.py
# Generated by Django 2.2.6 on 2020-01-12 04:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('publicity', '0028_auto_20200110_1856'), ] operations = [ migrations.AlterModelOptions( name='announcement', options={'orderi...
332365f844102dfb06573dd4ca328c00e22f9c26
c998927beb164707d472a787bcb585570535b476
/bot.py
bf91d6afb9f14bb813c73c770f8b558615d68685
[]
no_license
Dallas-Johnson-Dev/FaveQuotesBot
7acf1f238aa860acf92a2b293998d227d9483626
f51d808891ec3455d026952d7f868fb4c78c1568
refs/heads/master
2021-05-31T15:09:05.819996
2016-02-18T01:57:58
2016-02-18T01:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,998
py
bot.py
import requests import os import botcommand import pickle requrl = 'https://api.telegram.org/bot198568784:AAHPV1DGVN9HQagvR8z5r1kSHGd5JxtjS60/' commands = ['add', 'remove', 'help'] class bot: api_token = None requestUrl = 'https://api.telegram.org/bot{0}'.format(api_token) quotes = None def __init__...
4e6ce7f09996a15a3f5bbab98c992c6d7e565212
d91fd4d4539cb96b0a2b80360756821d5baef144
/alphabet/alphabet.py
7055d6bb1c701b9300b4b15d7a7c70da07ee4118
[]
no_license
FilipElander/Language_Detection
ea1c54acd443df9a105b5f6dd14e730a0f74b6ad
c76dc96c1f98a3c331a9bfd0bed23d60dba7787b
refs/heads/main
2023-08-18T16:50:13.575149
2021-10-12T16:02:28
2021-10-12T16:02:28
416,076,404
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
alphabet.py
#klass för alphabete class alphabet(object): def __init__(self): self.alphabet_i2w = {} self.alphabet_w2i = {} def alphabetBuilder(self): # bygger en dictionary i en klass med alphabetet with open('alphabet/alphabet.txt','r') as v: for i in v.readlines(): ...
1b1ea152aae154eb528428dd92ce81930267afdb
fe0e9ae50be9cd81701671ca7db9ba2a5211b949
/2D/bak/ising2D.py
fc4e5f6614b5403381cc85e42fe7b9900a0b106d
[]
no_license
koukl/revnet_mcmc
9621c2dd86cbf244e3bc08d8f25024471ca7de3f
4c7c0768cf95d8d9df336b59eddca24344d5c9ce
refs/heads/master
2021-01-25T12:49:07.484490
2018-03-05T00:03:52
2018-03-05T00:03:52
123,512,639
0
0
null
null
null
null
UTF-8
Python
false
false
1,841
py
ising2D.py
import tensorflow as tf import numpy as np class ising2D: # ======================================================= def __init__(self,L): f = -1 self.nspins = L*L self.L = L self.a = 0 self.su = f*np.eye(L, k=1) # add the peroidic condition self.su[L-1,0] = f self.sl = f*np.e...
e8a141ffc0e406c50d794ca34df59e6629519b37
64ab5b65afdf8d950c4b56ad2259133b95fc2fec
/zeus/db/types/__init__.py
a69884a4f3c27c0834f776bfa82a280aad2895c4
[ "Apache-2.0" ]
permissive
getsentry/zeus
3e88895443b23278fdb4c25121422ee214630512
6d4a490c19ebe406b551641a022ca08f26c21fcb
refs/heads/master
2023-09-01T14:20:11.396306
2021-04-30T17:08:33
2021-04-30T17:08:33
96,131,433
222
27
Apache-2.0
2022-06-01T03:17:16
2017-07-03T16:39:35
Python
UTF-8
Python
false
false
112
py
__init__.py
from .enum import * # NOQA from .file import * # NOQA from .guid import * # NOQA from .json import * # NOQA
387b7982e95ddfd5f96cbc05d4c895300a88935c
f6cdc0ed0bfbc1ab458a0dd872bd808183329544
/Lab2/main.py
d1485a0e6b4e73ebfed1891a6d175f4d30b52885
[]
no_license
Rayooo/DataMining
3e94ed84959ba5703e5bc61d559f8ab7cf0afeb1
750430d4917ad3e51f61aaf1b633541fa8e35f5a
refs/heads/master
2021-01-17T15:01:37.401273
2017-05-22T06:18:17
2017-05-22T06:18:17
83,306,453
0
0
null
null
null
null
UTF-8
Python
false
false
4,692
py
main.py
import twitter import os import json import ssl from sklearn.model_selection import cross_val_score ssl._create_default_https_context = ssl._create_unverified_context consumer_key = "" consumer_secret = "" access_token = "" access_token_secret = "" authorization = twitter.OAuth(access_token, access_token_secret, con...
8214b0fe5c54e55032f588ce06b495e0a2de3d1f
9cd0275d01f7b25aed5a3ebdcc462f02f32f587c
/challenges/tree-intersection/bst.py
1afdbf589b883b7f0ea9ef9922b23a1c3f24687e
[ "MIT" ]
permissive
tyler-fishbone/data-structures-and-algorithms
5f55f462cf6c01f4dc540b9e77170c92081ceff1
29790f2672d3ddb0aadf62725f28180b092f4568
refs/heads/master
2021-09-15T12:46:57.271428
2018-05-15T05:50:01
2018-05-15T05:50:01
126,125,425
0
0
MIT
2018-05-15T05:50:02
2018-03-21T04:59:42
Python
UTF-8
Python
false
false
3,195
py
bst.py
class Node: """ Creating nodes for use in data structures """ def __init__(self, val, next=None): """ method called upon creation of node """ self.val = val self.right = None self.left = None def __repr__(self): """ string representati...
2b8cb975c75a759f12a8bcad1e8f016de97af1b7
055a8a74ccd7640598c251c33b8cd7fce4586a08
/tests/vcf.py
57e75e36685edd0478c6608e139ddc33d33487af
[ "MIT" ]
permissive
alliance-genome/agr_file_generator
b43f31c5b4e68cae191e6db84a8bf24a75a745b3
9d9952a7f9acdff0a91e8808ed89c7fecca978f2
refs/heads/stage
2023-07-25T05:48:59.449026
2023-05-18T10:27:04
2023-05-18T10:27:04
187,093,481
1
3
MIT
2023-08-28T21:36:52
2019-05-16T20:01:17
Python
UTF-8
Python
false
false
4,412
py
vcf.py
from click.testing import CliRunner import logging import os import glob import sys from collections import OrderedDict from operator import itemgetter from itertools import groupby sys.path.append('../src') import app logger = logging.getLogger(name=__package__) OUTPUT_DIR = '../output' RELEASE_VERSION = '3.0.0' VC...
2d155af0aa2c4e51d7f1f84018849d5429eec9c7
9b685906de33d0e63af713bb9a8113c15fc2e4d3
/bud_activities.py
1e6a15193bc431a1cabef7016b912b10063cd073
[]
no_license
anthonychia/bud_scraping
5f5465a33f599d2ec7bf94a16df678874a9e9ec1
80b6754357bf56467ff4ce7958d37de52ac5e744
refs/heads/master
2020-06-24T19:48:34.510592
2020-01-20T21:41:54
2020-01-20T21:41:54
199,066,451
2
0
null
2020-01-20T16:34:36
2019-07-26T18:57:32
HTML
UTF-8
Python
false
false
1,243
py
bud_activities.py
from bud import * import pandas as pd import numpy as np import pprint import requests import time import json import os, sys, inspect import datetime as dt import slack import itertools #Start a Bud session and getting necessary access token bud_session = Bud() bud_session.login() bud_session.create_request_sessi...
b876d29fb05d49d2d1e62fa940b00796e1fe2c0a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2203/60772/281859.py
b8bfd03251eb1654f923d0f7e535cb6d5cb46c5c
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
65
py
281859.py
s = input() res = 0 for ele in s: res += ord(ele) print(res)
94f862feec5900045b13beaa3b735fbd37013b9c
cd601f1086f3c48073bce4335191c4c772ec172a
/onering/targets/es6/imputils.py
7865ed66e3891241c20997bf00c443fa8fcc5967
[ "Apache-2.0" ]
permissive
panyam/onering
dffa0d9cae8a8c82a27c430b56db3164c7b11f91
a17a0f6e29af54bd74f91558c2b70f02ef403a24
refs/heads/master
2020-04-12T06:17:11.367659
2018-09-24T06:37:51
2018-09-24T06:37:51
64,427,064
2
0
null
2017-05-21T21:25:44
2016-07-28T20:44:32
Python
UTF-8
Python
false
false
3,766
py
imputils.py
import os import fnmatch from ipdb import set_trace from onering.packaging.utils import is_type_entity, is_typeop_entity, is_fun_entity, is_function_mapping_entity def base_filename_for_fqn(package, fqn): for fqn_wildcard, filename in package.current_platform.exports: if fnmatch.fnmatch(fqn, fqn_wildcard)...
18e8745403e8528202d3e3904c9e20b0900ba690
286c553efa958558918c9055dc996f839b2b9911
/mpvrpc.py
af9af1379467da61d169e5eed5db178ba952c82a
[ "Apache-2.0" ]
permissive
goppacode/canito
201ce4b2e28a8838625aa1e8c19cc1ead8e216ba
ff321ba6c06aebcb0a0f5f879ba3330e20c20e20
refs/heads/master
2020-04-09T20:13:02.689960
2018-12-07T12:17:05
2018-12-07T12:17:05
160,567,373
1
1
Apache-2.0
2018-12-06T16:05:57
2018-12-05T19:23:18
Python
UTF-8
Python
false
false
3,369
py
mpvrpc.py
# Copyright 2018 goppacode (Michael Rosenthal) # # 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 applica...
45766bf515a817e23171e5254acaffa858fcd8da
a2b20597759990445081057d35d113434cfcf970
/stubs/typeshed/typeshed/stubs/google-cloud-ndb/google/cloud/ndb/key.pyi
5139ae1b7aca21ebd0ac936c9d4949e3a9cb8284
[ "Apache-2.0", "MIT" ]
permissive
facebook/pyre-check
34059599c02b65605c574f13555229f3b931fd4e
fe8ccedc572cc1faa1fd01e9138f65e982875002
refs/heads/main
2023-09-03T19:10:11.587028
2023-09-02T07:40:35
2023-09-02T07:40:35
110,274,488
6,703
575
MIT
2023-09-13T17:02:32
2017-11-10T17:31:36
OCaml
UTF-8
Python
false
false
3,635
pyi
key.pyi
from _typeshed import Incomplete from typing import Any UNDEFINED: Any class Key: def __new__(cls, *path_args, **kwargs): ... def __hash__(self) -> int: ... def __eq__(self, other): ... def __ne__(self, other): ... def __lt__(self, other): ... def __le__(self, other): ... def __gt__(self, ...
c12918b7b7901f43490d1473e955d37491932db8
abbfbbfac7d1a5827b3f68f91a8c28c02e3aff50
/linked_stack.py
eea083a4404e2cd68482a1e48a41c48bd906b0b2
[]
no_license
dummy11/caculator
c095f241527bb5c8a8c915e9b30a0187bb205433
6558200cf04ec5ed8b0d06ff3be85698dc9df253
refs/heads/master
2020-12-30T14:19:36.675115
2017-05-15T07:42:31
2017-05-15T07:42:31
91,306,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
linked_stack.py
#!/user/bin/env python # encoding: utf-8 """ @Version: python2.7 @Author: 'linyue.li' @License: personality reserved @Site: 'www.dummy11.com' @File_name: .py @Time : 2017/4/28 15:20 @Discription: ... """ class PyLinkedStack(object): def __init__(self): """first is the stack head pointer """ ...
ad1fecfa1a9262e8e01fad213a128e6cd04bb3dc
511931e4b03b4dc0ed8ec30c05156d9c99e11479
/Avaliacao_exercicio_1_conversor_segundos.py
82e3d57cad9769f26a6f64ae7741bf52538763ec
[]
no_license
a22007032/SIEH---Aldemar-Dias
993f2c3d9a0c576b5c0925dccbc6f98d88656852
ca0cca96d5df09685379661876ee9751a3ef1ed5
refs/heads/main
2023-01-23T10:21:56.837992
2020-11-28T19:28:48
2020-11-28T19:28:48
314,370,156
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
Avaliacao_exercicio_1_conversor_segundos.py
#!/usr/bin/python3.7 #coding=utf-8 # • Exercício 1: #Criar um programa para converter um valor em segundos em horas, minutos e segundos #Requisitos Exercício 1: #O programa deve pedir os segundos ao utilizador e guardar em uma variável #De seguida o programa deverá calcular o total de horas, minutos e segundos e im...
c50fd4e8070f820d050728bece63061f104cc0f4
71d6c8c4fe43f6d2cbfa0d2f9da38ef44f828650
/jheaps/_internals/_wrappers.py
8a04d3fb4b212cd0347b934048b8dfb4364306ea
[ "Apache-2.0" ]
permissive
d-michail/python-jheaps
41844e5c8610f350ebd344c0979719a0412c4d26
65e1f4036b125dc065dc4398bf2eac0e95726f7a
refs/heads/master
2023-03-25T01:29:14.107775
2021-03-21T19:56:58
2021-03-21T19:56:58
316,546,982
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
_wrappers.py
from .. import backend from collections import namedtuple from collections.abc import Iterator class _HandleWrapper: """A handle wrapper. Keeps a handle to a backend object and cleans up on deletion. """ def __init__(self, handle, **kwargs): self._handle = handle super().__init__()...
4163068eb399255fca6da1ce067fce726564ab07
7d758305c2362fa1a494e22839aff2a790fa015e
/carousell_poll.py
3b6b4160b42c3be8f58b780ae5a9241989bd8fdc
[]
no_license
dexterleng/carousell-telebot
9d52c375ca061516a30ffd9158535f41bfb78ed9
486d716edd7149bc01213df54a7b592a3c77088c
refs/heads/master
2022-12-15T01:58:40.128696
2019-03-30T17:03:08
2019-03-30T17:03:08
178,585,180
2
1
null
2022-12-08T04:55:36
2019-03-30T16:42:40
Python
UTF-8
Python
false
false
750
py
carousell_poll.py
from carousell_poll_worker import CarousellPollWorker import threading import time class CarousellPoll: def __init__(self, keyword, freq_seconds): self.keyword = keyword self.freq_seconds = freq_seconds self.listeners = [] self.started = False self.last_sent_product_id = None self.poll_thread...
9a0bd1ae6692a122776f17993819168b4a07af3d
c437c4705f6e87eef5af2f5de84f5278f22755ca
/at/demo_test.py
9cb4985f536eb9dec444b038794d86c8a6554d85
[]
no_license
zkmartin/Audio-Tagging
c7c837d43d3e6c2a38c37365bb53816e2cc14eb5
29556f11eb1c4bbb6c5081277e05e89ff7e59727
refs/heads/master
2020-03-19T03:00:38.191897
2018-07-10T11:35:14
2018-07-10T11:35:14
135,685,148
0
0
null
null
null
null
UTF-8
Python
false
false
5,129
py
demo_test.py
import numpy as np np.random.seed(1001) import os import shutil import pandas as pd from sklearn.cross_validation import StratifiedKFold import librosa import numpy as np import scipy from tensorflow.python.keras.utils import Sequence, to_categorical from tframe.data.dataset import DataSet COMPLETE_RUN = True trai...
a418d7b0fe61a488856e2df2817bf986ac1651d6
2014ef70e9bec01713bca60423b65a6a6b83765e
/car_detection/helper.py
8d1f2abf4d65a13c5fce10fc699c58253ef0a58f
[]
no_license
bofei5675/DS-GA-1008-SSL-Project
dc7cbbc9a844bb3e5a4479648e9196725f2cac65
4a94f1c756d4decac76bdeb4eb1cafa999e44535
refs/heads/master
2022-06-28T18:14:18.369261
2020-05-12T15:39:58
2020-05-12T15:39:58
256,166,198
4
0
null
2020-05-12T10:37:15
2020-04-16T09:16:55
Jupyter Notebook
UTF-8
Python
false
false
2,948
py
helper.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torchvision def gaussian_kernel(inp_size, xc, yc, w, h, direction): center = np.array([xc, yc]) direction_perp = np.array([-direction[1], direction[0]]) u = np.stack([direction, direction_perp]).T radius1 = m...
9949be322339cddecedf8ea55a0f24b5195d13b1
6b43721d5e4980c7f86c554568685392106fde5b
/plot_spectrum_bands/imshow_hueco.py
2f41a62a0c44d2052f996f40ba18a732ef28457b
[]
no_license
jrr1984/open_frame_XYStage
2108fbe003c8be6ff0194c8c5a230d36e7129732
0e362cfdb69913e1a38fccb959a0fd3fa5717c40
refs/heads/master
2022-10-31T04:29:51.713846
2020-06-17T23:27:13
2020-06-17T23:27:13
223,223,402
1
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
imshow_hueco.py
import numpy as np import pandas as pd from ciexyz import xyz_from_spectrum import csv from colormodels import irgb_from_xyz import matplotlib.pyplot as plt wavel_df = pd.read_pickle("wavel_df.pkl") wavel_array = wavel_df.iloc[0:].values inten_df = pd.read_csv('C:/Users/juanr/Documents/data_mediciones/simultaneidad/d...
c6dfcbf525912eaf565949e77f5a46ac03781226
c3477dc5c9c2886d3e7e0e33a3347ccde756c0b7
/Bit Manipulation/Chapter5_2.py
097ea6620f32ac70c012c17bc12cd822e5ca2134
[]
no_license
Nora-Wang/Leetcode_python3
b8d7b93b61faea6aacd31a0c357c661571f6695c
b4ce775f366ae096d90d2302199a75023b2dcc17
refs/heads/master
2023-09-04T07:09:30.162702
2023-08-28T13:41:48
2023-08-28T13:41:48
204,764,804
6
3
null
null
null
null
UTF-8
Python
false
false
183
py
Chapter5_2.py
Given a (decimal - e g 3 72) number that is passed in as a string, print the binary rep- resentation If the number can not be represented accurately in binary, print “ERROR”
523feee1374c6c736f18b19c6c8e51c5bc31c8bb
574779b39fae207d65516d904f7da1a894d14b1b
/number_order.py
b715fab04a912163a298b55428416596c5cee797
[]
no_license
LuisAponteLopez/Python
0e736dd0e26703253a1a81aef99f3af37fed7fad
a1f23462873b06b8cf145ec445e7deb387670679
refs/heads/master
2020-12-11T19:54:35.131806
2020-01-15T19:20:52
2020-01-15T19:20:52
233,944,020
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
number_order.py
def presentation(): print("*"*100) print("This program orders the numbers that the user enters") print("*"*100) def Enternumber(number): arrayNumber = [] for i in range(number): number = eval(input("Enter the number "+str(i+1)+": ")) arrayNumber.append(number) return arrayNumber...
26175b634be4106ab1c79985c1cc6f893ede2e40
102d1006bcd21f5c415f19c10b4f549515aa9d1a
/django/yxj/myyxj/migrations/0003_auto_20190113_2128.py
032b20739a37e51c8e136e0444ccf19fc93b836f
[]
no_license
xiaoxiaofeng999/my
1249a8a55b70a87c23a7f708d8456a84e3423889
73aa8b6bce268e48ee605b9e84dc18182ec4eac0
refs/heads/master
2020-06-05T15:02:42.183764
2019-06-18T05:05:11
2019-06-18T05:05:11
192,467,152
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
0003_auto_20190113_2128.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2019-01-13 21:28 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myyxj', '0002_minebtns'), ] operations = [ migrations.AlterModelOptions( ...
2d0052a1850e9a9cea1b4c5ba10739af356cb957
4bde75db8ded0f0a397117b4a85f795a7f7ea70f
/Pro/set2/prog-15.py
5bf21c1ab9c29119193267f179e3cc4d2f248ab1
[]
no_license
LUKARS3/G_code
5c27385d3f0f7954163ae2cab1d2536ce88a5c58
2572ac2933f7dfb13ad87064993ccbbba15dcde6
refs/heads/master
2020-06-15T01:36:24.908097
2019-07-13T15:37:10
2019-07-13T15:37:10
195,176,678
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
prog-15.py
def so(l): return l.count('1') n1 = input() lst1 = [int(x1) for x1 in input().split()] lst12 = [] lst1 = sorted(lst1) for i in lst1: lst12.append(bin(i)) # lst12 = sorted(lst12) lst12 = sorted(lst12, key=so) lst3 = lst12[::-1] for j in lst3: print(int(j, 2))
e65469198927283d69c8f12e2714d67d23137cf8
3fa8eead6e001c4d5a6dc5b1fd4c7b01d7693292
/Ros_Basic_in_5_days/src/unit_5_services/scripts/exercise_5_1.py
c8cdec486a7810acce5ed5ec0b98812912d6c1d7
[]
no_license
MarzanShuvo/Ros_from_the_construct
09261902841cdd832672658947790ec5fbba4cd3
4798234284d9d0bab3751e9d8ac2df95ae34a5bf
refs/heads/master
2023-08-24T17:28:09.182113
2021-10-23T07:57:02
2021-10-23T07:57:02
339,105,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
exercise_5_1.py
#! /usr/bin/env python import rospy # Import the service message used by the service /trajectory_by_name from iri_wam_reproduce_trajectory.srv import ExecTraj, ExecTrajRequest import sys import rospkg # Initialise a ROS node with the name service_client rospy.init_node('service_client_execute') # Wait for the service...
dc3af236c76bb6a2a777e339e81381192a623811
b04294cb2e2fd3a11c17821e151e2a2ccedeb548
/SES/verify_ses_email.py
f5049d0e4f3dc50d8812aefec0b07f2ae92f0763
[]
no_license
virenkapadia07/AWS-CheatSheet-Python
2098036f2b6e1ad7f4958d3127828c1feaf724a7
80e8468612b9a555a529fac82f19b557c2d7aa9e
refs/heads/master
2020-07-21T16:24:15.151886
2019-09-07T06:15:05
2019-09-07T06:15:05
206,920,027
3
0
null
null
null
null
UTF-8
Python
false
false
787
py
verify_ses_email.py
# Check Ses User Email Verification Status # Given a list of identities (email addresses and/or domains), # returns the verification status and (for domain identities) # the verification token for each identity. import boto3 ses = boto3.client('ses') def CheckUser(email): try: response = ses.get_identi...
8b010a7a97977e81e262912a21179b46868edef4
c1468b2478d6aa5d632fea9e91461327e3b33511
/Miscellanous/moveZeroes.py
8dbdb6cfefe34f05ebe41306e136554d970ab2fc
[]
no_license
AbdussamadYisau/ds-and-algos
d2d4e6dccc7ae91f0bcdfc99778efd2b6b48c5df
73c2d6a2416109807f31698a8ae508407fbb3996
refs/heads/master
2021-11-29T14:16:07.072987
2021-11-11T10:20:18
2021-11-11T10:20:18
220,220,927
3
0
null
null
null
null
UTF-8
Python
false
false
504
py
moveZeroes.py
# def moveZeroes(arr): # return ([nonZero for nonZero in arr if nonZero!=0] + [Zero for Zero in arr if Zero==0]) # print(moveZeroes([1,0,2,4,39,5,0,0,0]) def moveZeroes(arr): nonZeroList = [nonZero for nonZero in arr if nonZero != 0] zeroList = [zero for zero in arr if zero == 0] return(nonZeroList + zeroList)...
c506de91592ae8eba670c5d6e9196167cb6ed0db
f17ae2aef3f774c202a45a3487f1bd3304ee9117
/zenva/python_and_data_science_zenva/byte-sized-numpy/student_grades_example.py
7d0bd6f2849326987e2ddda379b1f367eba7db5e
[]
no_license
vchicor0d/courses
a95181232e008b726b1b79a352c77d15d800b48b
1d6e1600c06864a4e638faa5d4e5d5789b2d8f2e
refs/heads/master
2022-11-10T16:23:58.545574
2022-11-06T11:00:31
2022-11-06T11:00:31
248,992,314
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
student_grades_example.py
# Student Grades Example import numpy as np student_grades = np.array([56,78,98,90,58,64,67,72,93,51]) print(student_grades) class_average = np.average(student_grades) print(class_average) highest_grade = np.amax(student_grades) print(highest_grade) lowest_grade = np.amin(student_grades) print(lowest_grade) print(...
d528b4710e1ce17e76c7323bb78c70596eecab38
db6b475a62143865795ca7764c500af0d2223a95
/onboard/catkin_ws/src/task_planning/scripts/move_tasks.py
ae35c4af326ab4a478dd92dd23cf87a6184ec5f3
[]
no_license
muthuArivoli/robosub-ros
71507111522bd77694297cd315c383b0497ec897
53e9519a172ff1a844f7ee0e80df29704547ae21
refs/heads/master
2022-10-24T16:45:46.416628
2022-09-18T00:39:17
2022-09-18T00:39:17
266,213,148
0
0
null
2020-05-22T21:42:34
2020-05-22T21:42:33
null
UTF-8
Python
false
false
6,313
py
move_tasks.py
from task import Task from geometry_msgs.msg import Pose, Quaternion, Twist, Point, Vector3 from nav_msgs.msg import Odometry from tf.transformations import quaternion_from_euler import task_utils import rospy class MoveToPoseGlobalTask(Task): """Move to pose given in global coordinates.""" def __init__(self...
8bb46b76d030770b6ffff88df18b3db8c4877f20
4e3ac848f8033d204c8809a6798b0b9f5a594265
/web.py
5363110f440054c0ef0b87d7ca581942e6e76426
[]
no_license
itiinani/Detecting_Musical_Instruments
cf1f527d476b234c327dc23f750f6563289c52c7
46439a0755f7472753a53623f77f6b8213cdc9e6
refs/heads/master
2021-08-23T13:36:06.572894
2017-12-05T02:53:07
2017-12-05T02:53:07
110,907,923
1
0
null
null
null
null
UTF-8
Python
false
false
1,139
py
web.py
from flask import render_template from flask import Flask, request, redirect from Demo import fileDetection app = Flask(__name__) @app.route("/") def hello_world(): return render_template("/pages/charts/chartjs.html") @app.route("/results") def results(): return render_template("/pages/charts/results.html"...
4c1aa2ef9f76fb9c7b5c13c7bc6ddbab7d87ef32
9b9eb3e835160a917ca27ebe0d5cd508dcb90bae
/model_config2.py
c9a55d37f845fe4320d3c3e22fe63799111672b0
[ "MIT" ]
permissive
t-downing/nigeria_rice_model
48ab81bd89565c75e10dfd6b0ed14674698b7907
2454a8a8427226c8c70bc9f7297fa03f88e59a2b
refs/heads/master
2023-08-30T16:03:36.099237
2021-10-27T16:38:50
2021-10-27T16:38:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,406
py
model_config2.py
from BPTK_Py import Model from BPTK_Py import sd_functions as sd from import_data import * from general_functions import * class ModelActor: def __init__(self, model: Model, name: str): self.model = model self.name = name # list all possible actor variables self.stock = None ...
cfd1dc3d57008369562fb65117f70d90cfbea80a
b4e5ae9688b5f8e4145e3820c207ed4819547652
/operators.py
f422a81029155a77c6a40f87a47c9d8fd5ee4eea
[]
no_license
jaygaha/Python3
dc954727ec8e0d06bd2c9962ed4665e16ca84021
80a74941db33c10b76a9dab2ebe21f271b133861
refs/heads/master
2022-11-24T23:12:19.824199
2020-07-24T11:10:12
2020-07-24T11:10:12
282,193,946
0
0
null
null
null
null
UTF-8
Python
false
false
1,359
py
operators.py
#Arithmetic operator x = 15 y = 4 print("Arithmetic operator") # Output: x + y = 19 print('x + y =',x+y) # Output: x - y = 11 print('x - y =',x-y) # Output: x * y = 60 print('x * y =',x*y) # Output: x / y = 3.75 print('x / y =',x/y) # Output: x // y = 3 print('x // y =',x//y) # Output: x ** y = 50625 print('x ** ...
fe0d0fa7d07ddd8cd12c10a332cb02365bd99203
3f970c2eef82e22b8c35a2a1ab1f5cfe366d7c01
/Day 8/Day 8 challenge -1.py
9bd77d93f032abe5767bc303df6d24301f28c6ed
[]
no_license
BenMeehan/PythonChallenges
7c3773aa09058f6dd5f07df7e2b8c619fbfd966e
57a9a6052f562ff862dd89b719e44c2c9f98e674
refs/heads/main
2023-02-04T12:55:17.460665
2020-12-08T07:40:01
2020-12-08T07:40:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
Day 8 challenge -1.py
# Day 8 # Exercise 1 # import error : importing a module that does not exist from random import abc # index error : when index is out of range li = [1, 2, 3, 4] print(li[6]) # key error : when dictionary key is not found diction = {1: 'a', 2: 'b'} print(diction[4]) # unbound local error : when a variable is refere...
3bcc3308b3e1ba9294b8427fc113c3cf1d2c4cf7
00999702a22169a8dfd04533931dd98a7174576c
/bookstack/migrations/0003_auto_20180403_2325.py
ba46cecc8bb77d20d3063be2d05a0a49cda49e5f
[]
no_license
ebenpack/bookstack
6bf25619fa877f43c86ab3ba1d0afb40986bd9db
125cd95d3bd232512e5eee99b59c2438d86edb5c
refs/heads/master
2022-02-10T02:41:10.297182
2021-05-16T22:13:32
2021-05-16T22:13:32
35,189,211
0
0
null
2022-02-09T23:23:11
2015-05-07T00:03:01
TypeScript
UTF-8
Python
false
false
343
py
0003_auto_20180403_2325.py
# Generated by Django 2.0.3 on 2018-04-03 23:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("bookstack", "0002_auto_20180403_2324"), ] operations = [ migrations.AlterUniqueTogether( name="bookstack", unique_together=s...
9b98c8ebdbda0be9bc48979404339fae1d16427d
a74186b18a99ce644764a3d30a6a373b3f8e88ff
/api/api.py
236759dc2f47d86317fef4129b22cd773cbf39b8
[ "Apache-2.0" ]
permissive
Wal1d/MovieReview
a666d6c370c905ffbab98d2e74507c3d0e8ab30b
cedf8733a55600ff2ade90c105efa969ebbcdf59
refs/heads/main
2023-03-07T12:06:10.900417
2021-02-21T21:41:46
2021-02-21T21:41:46
340,383,967
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
api.py
import flask from flask import jsonify, request from utils import predictReview app = flask.Flask(__name__) app.config["DEBUG"] = True @app.route('/', methods=['GET']) def home(): return "<h1>mMvie review sentiment classification</h1><p>This is a test, call /predict.</p>" @app.route('/predict', methods=['GET...
e7cd8fc43a6ddc889987213c93cc4054647cd9aa
eb9385bf95a11376abd56f6b4ce8e8556be6e0d6
/CS106A/week4/ass3/blue_screen.py
fb0581e79411949b43e3382362e206522ea98be3
[]
no_license
sidtrip/hello_world
386111bc2eb010a0ccf84d4d5d5a05910f6612f3
388ad36725b2abe829cac4052f32617dd5425199
refs/heads/master
2023-07-03T15:45:40.781996
2021-08-12T07:13:35
2021-08-12T07:13:35
234,714,194
0
0
null
2020-01-21T05:19:50
2020-01-18T09:57:22
null
UTF-8
Python
false
false
817
py
blue_screen.py
""" File: bluescreen.py ---------------- Not part of the assignment. This was a lecture demo! This is a fun algorithm to implement. It is not in the assignment, but feel free to implement it as an extension. Put the smaller foreground picture into the background. Do not include any pixels that are sufficiently blue. ""...
457145e366910dd4fc557f134838f07dfa1f2c39
1fb7f7d6ec548ffe5903cc4e6b93c7f1967cc3ea
/problem1/mapper.py
9d5d60f4e7964c0dbf4a737f27d68752d21b3afd
[]
no_license
davestarling/Project-Euler---Hadoop
8fd315275e738a3969237d7dd5e169f6bd485853
81cdf0169130ae37bbe8346650bad142873f8a03
refs/heads/master
2021-01-01T18:28:44.469428
2011-12-20T14:23:04
2011-12-20T14:23:04
3,012,630
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
mapper.py
#!/usr/bin/env python """Project Euler - project 1 - Hadoop version (mapper) If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.""" import sys def read_input(file): for line in f...
69da6eb7804d78a580941d20288a85d815ce090a
08c76149ab9774eec2a12ee8066c32eb61536b96
/hr/utilities.py
395c24f016c4ed16b4d32edee10044a4c4073bf1
[]
no_license
atishn/Finance-Planner
278bb9bdcab8f5df1e092d515b15d3c0ddb798cd
401ff917a0346201c2e208cf1b6aab450cf26918
refs/heads/master
2021-01-10T21:12:05.127757
2015-03-21T11:14:31
2015-03-21T11:14:31
22,975,902
0
0
null
null
null
null
UTF-8
Python
false
false
11,135
py
utilities.py
from __future__ import division import locale, datetime, traceback # eventually make this more dynamic def convert_to_usd_money(currency, money): if currency == 'usd': return money if currency == 'eur': return money * 1.32 if currency == 'gdp': return money * 1.62 if currency ==...
6297fce789b5296816418558f0b8ca9c71ff59d3
c49df6df8094de1b66b7d1260f7f6db50b986a8d
/LabThree/nine.py
3bb4e190cebb4094b51c4b65163463727a27c085
[]
no_license
rupikarasaili/Exercise
5f6354b7d21b7e6c641f0122662f05dea43de8d1
2e85d2bbd1747ed27d5c608e3708f9f3fe2842c3
refs/heads/master
2023-06-29T23:53:24.470851
2021-07-04T16:54:38
2021-07-04T16:54:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
nine.py
''' Write a Python function that checks whether a passed string is palindrome or not. ''' string = input("Please enter your own String : ") str1 = "" for i in string: str1 = i + str1 print("String in reverse Order : ", str1) if(string == str1): print("This is a Palindrome string") else: print("This is Not...
4a0f7bb9e930fb8da1c99ece74d63656aa8e7f80
67291713e697283c1e0dbaf9fc1212e2a2d2d15f
/Airbnb web scraper code.py
ffdbe5ab75be6faaf58c056454e0c1649487a8da
[]
no_license
nickvantreuren/Airbnb-WebScraper
d4e590194ca629dcc50026170b2c692bfa4603b9
8fd4d07f251c5f8ac5c9f7deb9681585f17662a5
refs/heads/main
2023-04-11T08:03:30.446065
2021-04-14T07:41:48
2021-04-14T07:41:48
357,813,238
0
0
null
null
null
null
UTF-8
Python
false
false
52,514
py
Airbnb web scraper code.py
# -*- coding: utf-8 -*- """ Created on Wed Feb 3 17:04:45 2021 @author: YU337KM """ # -*- coding: utf-8 -*- """ @author: Nick van Treuren This script was created by Ruben Kerkhofs and enriched by Nick van Treuren for educational purposes and contains the code that was used to create the blogpost on webscr...
66c89ccf801972176daeb0dbbe900c80cd8739d5
706d02df73444827ad16de5c3c4bcb25494d1394
/src/main/python/analysis/binallBreakdancer.py
d8f165f4713ec17e83eb35b86f51860cc369f6c2
[]
no_license
IlyaLab/fastbreak
b8d4306bb69dca53d9ce07e9adf267519c2d5e98
f4bbacc5eb31d85b75aa32f780cb52dae5716c08
refs/heads/fastbreak
2020-05-29T11:33:49.428183
2015-03-12T17:58:08
2015-03-12T17:58:08
48,394,177
2
0
null
2015-12-21T21:06:43
2015-12-21T21:06:43
null
UTF-8
Python
false
false
1,430
py
binallBreakdancer.py
#!/usr/bin/python # # # Copyright (C) 2003-2010 Institute for Systems Biology # Seattle, Washington, USA. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Softwa...
4380e0d8170628044e09f4b25862988900290090
7efabf599aaf53728a681639bc57cadc3abe6bde
/python/cugraph-pyg/cugraph_pyg/tests/nn/test_gat_conv.py
ae5fd73c438c3dfc5f7cb47c59933ac9e530a3fd
[ "Apache-2.0" ]
permissive
rapidsai/cugraph
49b5378271c72c155f55d916a3c1cc1fbe05ceca
cafded113c9545e5e7211cc965f53c00939307c0
refs/heads/branch-23.10
2023-08-26T19:36:33.631587
2023-08-25T13:49:23
2023-08-25T13:49:23
157,752,451
1,403
310
Apache-2.0
2023-09-13T17:01:25
2018-11-15T18:07:11
Cuda
UTF-8
Python
false
false
4,342
py
test_gat_conv.py
# Copyright (c) 2023, NVIDIA 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 to i...
ffa8de95065f07efadac19130c8b5083523ed437
7bf287e00b35f50afa70e8585f41d1db543d98f2
/Medium/LongestUnivaluePath.py
bad015854b73ee2d465f6322e5cd4e20d723de16
[]
no_license
mangalagb/Leetcode
eac611453de07ffc635265e98c39b46255cf76c6
fcf6c3d5d60d13706950247d8a2327adc5faf17e
refs/heads/master
2022-05-14T23:16:28.007044
2022-04-29T19:33:24
2022-04-29T19:33:24
158,616,622
0
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
LongestUnivaluePath.py
# Given a binary tree, find the length of the longest path where each node in the # path has the same value. # This path may or may not pass through the root. # # The length of path between two nodes is represented by the number of edges between them. #SOLUTION #at the end of each recursive loop, return the longest le...
4e56461b72556e792d4351821f867a790a989ec8
6814bc028384fcf5d91b062536feb6648dba6c01
/hw1/testfile_generator.py
7510efdb93a9a6331a66a45c8ea20ce9adf41b15
[ "MIT" ]
permissive
the-archer/nlp-assignments
c2b88f71e8144f29994083e9bcf03481fbe0f809
9c23831e9bf6deae9aa3ad5c0db649f8179c6e1d
refs/heads/master
2021-03-16T10:05:07.920702
2016-02-03T08:06:31
2016-02-03T08:06:31
49,829,096
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
testfile_generator.py
with open("testfile.txt", "wb") as f1: for i in range(0, 65536): a = i//256 b = i%256 f1.write(bytes([a, b]))
d84322ec0c260415926c02a4f9597e07e1c903c9
9184e0f76c75bf58d1eee02f7b4320512aeba33c
/add-and-search-word-data-structure-design.py
ad8df5c9397ffc2eaba7562bb1acdfb7121aeba9
[]
no_license
guyao/leetcode
5aed0795f0c48c3d6d1a1b41af64711a2573abb7
48c5380f5f52d209dde53d997c6a23f769662d9e
refs/heads/master
2021-01-19T10:02:24.686189
2020-02-09T20:05:35
2020-02-09T20:05:35
86,541,332
0
0
null
null
null
null
UTF-8
Python
false
false
3,383
py
add-and-search-word-data-structure-design.py
""" Design a data structure that supports the following two operations: void addWord(word) bool search(word) search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any one letter. For example: addWord("bad") addWord("dad") addWord("mad") sea...
cdd788cdcf2c59bac0b7bd8197d4c9466a30e2cf
f9a8ee37334771f37edda863db08a7dcccc9522f
/AtCoder/Practice/ABC-C埋め/abc051C.py
4dd9bdfc4c477eae9a4360e4c9d97895f3c493fd
[]
no_license
shimmee/competitive-programming
25b008ee225858b7b208c3f3ca7681e33f6c0190
894f0b7d557d6997789af3fcf91fe65a33619080
refs/heads/master
2023-06-07T13:07:17.850769
2021-07-05T17:20:47
2021-07-05T17:20:47
331,076,780
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
abc051C.py
# ABC051C - Back and Forth # URL: https://atcoder.jp/contests/abc051/tasks/abc051_c # 日付: 2020/12/10 # ---------- 思ったこと / 気づいたこと ---------- # 入力例を一般化する # ------------------- 方針 -------------------- # step1: 上に行って右にいく # step2: 下に行って左にいく # step3: 左上から回り込む # step4: 右下から回り込む # ------------------- 解答 --------------------...
75b364f42b92655791144cbd8209491ffd9c3c4f
05d72256acdce7afa1506d02c9a0b54f7e44b312
/RandomizedSet.py
d3021f979652ed51a007027f185020cbe4e0dd20
[]
no_license
RanranYang1110/LEETCODE11
c49ffab28a2f909588a4e81458bf6be46d144c2d
70313493c750927c5662b419847926a52446c5c6
refs/heads/master
2022-03-16T17:59:49.318856
2019-11-12T07:19:03
2019-11-12T07:19:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
RandomizedSet.py
#-*- coding:utf-8 -*- # @author: qianli # @file: RandomizedSet.py # @time: 2019/11/12 class RandomizedSet: '''常数时间插入、删除和获取随机元素''' def __init__(self): """ Initialize your data structure here. """ self.data = {} self.index = 0 self.len = 0 def insert(self, val...
7bd3813dcb7ae50e6129f00abe6ed1c4188d1487
13598e96f32f1feecf5bfa321ee7117fd84c2d5d
/hackathon/product/models.py
c4efc49c9cda0ef3280772bcf87c59b907a6e237
[]
no_license
andrewchopko/hackathon-test
3b1a16a56af790e84956bcaab52a935d9049c40d
333fbecc6cb5f67d8b5cc19c259eaeb0a9ee3f0d
refs/heads/master
2016-08-12T05:08:47.745267
2016-03-06T13:28:09
2016-03-06T13:28:09
52,985,974
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
models.py
from __future__ import unicode_literals from django.db import models from django.core.urlresolvers import reverse # Create your models here. def upload_location(instance, filename): return "%s/%s" %(instance.id, filename) class Product(models.Model): title = models.CharField(max_length=255) description = models.C...
9a82d41f0d956a83d2d34aaab1bc8454b1b2a7f4
c6048165d5bd3dfb39c10abd970bca9059946f44
/SM_EMAIL_TAG.py
9e210f20230d9506b235c076b191f456be8cbb88
[]
no_license
undrwatr/SM_EMAIL_TAG
82a392a899b4c32b11fa953c66d9ac2cc5d56cb4
260958dc804ea3ba9470d5d7fa60d899b57cdfe9
refs/heads/master
2020-06-02T17:57:02.883899
2019-06-10T22:59:40
2019-06-10T22:59:40
191,256,848
1
0
null
null
null
null
UTF-8
Python
false
false
941
py
SM_EMAIL_TAG.py
#!/usr/bin/env python import requests import cred import sys import json #device_id = str(input("which serial?: ")) device_id = sys.argv[1] #custom variables for the program imported from the cred.py file located in the same directory key = cred.key #Main URL for the Meraki Platform dashboard = "https://api.meraki....
7d24bdd3136fec82ec4f07324a76926a81ec8c46
8317f4454b8df645f37fc7c3bd8887f37914c1b7
/cogs/react.py
40959742705ee47fa269e8c366f7cdb1ca0f1658
[]
no_license
Eakan-Git/Jenna
1fb98bcf4bd4afdd37c6fb38c99ea9d56ca91332
0dc333961d98ac71295ddcb0982faee6e8a9e81a
refs/heads/master
2022-11-28T06:57:16.907548
2020-07-28T14:40:17
2020-07-28T14:40:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,620
py
react.py
import discord import typing from discord.ext import commands from collections.abc import Iterable from .core import converter X = '❌' OK = '✅' class Reactable: def __init__(self, msg, user=[]): if not isinstance(user, Iterable): user = [user] self.msg = msg self.user = user ...
6f9b51aeedf003f8439d2ea3bb4db7fba285684a
b4ea052a5c9d9602ac7a3d7c3d341ef13c0f7b64
/flask/app/main/forms.py
af3034a7533c8453db97de533bd4a9d79eea28c9
[]
no_license
iehoshia/math
e74409d68ebd60d8deb1c4a41b0dc0dd96772b94
d9139fd7de15a10230fc3d76c0f57c5f66be66ef
refs/heads/master
2021-06-27T08:37:48.210371
2020-07-05T18:01:48
2020-07-05T18:01:48
221,271,881
0
0
null
2021-03-20T03:08:07
2019-11-12T17:16:35
Python
UTF-8
Python
false
false
486
py
forms.py
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField, SelectField, SelectMultipleField from wtforms.validators import ValidationError, DataRequired, Length, Email, EqualTo from flask_babel import _, lazy_gettext as _l class SearchForm(FlaskForm): value = StringField('', valida...
c8f35a0557e24750f93415cf991ebae139653c56
69abea02cf62f0ec14eff893e8d2c2de06f36018
/src/modules/VizFig.py
bfa6a6b374fb0c360fe93794547da0f0f60ebd35
[]
no_license
danvalen1/Corona-Employment
54e42142fd70c2af04c18d7e6dc82cebb600efd5
a45e57846f548586d3fd863921ffa10f0f2bc08b
refs/heads/main
2023-01-12T05:08:12.870429
2020-11-13T15:39:20
2020-11-13T15:39:20
310,681,667
0
0
null
null
null
null
UTF-8
Python
false
false
4,693
py
VizFig.py
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import matplotlib import numpy as np # Setting global variables dpi = 300 figsize = (7.5, 6) fontscale = 2 fontsize = 18 sns.set(font_scale = fontscale, style = 'whitegrid') markersize = 75 labels_dict = {'PESEX_x': 'Sex', 'PRE...
b9d25b7d682a27bf2192400c7261c1383462931d
0637d7a6482c0609528d0ac30a07406f31b060c2
/Invar_tasks/tast4.2.2.py
78637e109b21dd20a968e5608e662fc4827d0a7e
[]
no_license
python-advance/sem5-collections-Kseniaveh
86bca4d6c18832b913398caff92ee6e06f487c7d
43af512e32e56c8c599bc63d1e9c3a254143acf4
refs/heads/master
2020-04-09T04:59:20.991933
2018-12-05T13:14:55
2018-12-05T13:14:55
160,046,094
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
tast4.2.2.py
#4.2. Создание программы по распределению списка с случайными значениями на два списка #по определенному критерию четность/нечетность. import random array = [] for i in range(50): array.append(int(random.random() * 100)) array.sort() even_num = list(filter(lambda x: not x%2, array)) odd_num = list(filter(...
7b022ce15da584b2add8d3b9994c949b78c77952
616fb120637d00eb57dd47131275f2aba7fbf83c
/modules/models/ula.py
dad21436e1aa58869e09f67e951e6671713ef94e
[ "MIT" ]
permissive
SpaceLeft/FatesList
cd4ab07374f953973f705a0db3ec8018b2533296
b87edf432682df8ff6eab70ac0995f1293bfa4fd
refs/heads/master
2023-08-30T02:32:12.040812
2021-11-15T09:13:15
2021-11-15T09:13:15
428,213,924
1
0
MIT
2021-11-15T10:14:26
2021-11-15T10:14:25
null
UTF-8
Python
false
false
609
py
ula.py
import uuid from typing import Dict, ForwardRef, List, Optional from aenum import Enum, IntEnum from pydantic import BaseModel class ULAState(IntEnum): _init_ = "value __doc__" pending = 0, "Pending Verification" approved = 1, "Approved" class ULAMethod(IntEnum): _init_ = "value __doc__" get = 0...
a4a9aca28ae626bd9809a3e4fec311fd89fd4fd8
264c6f1a2202704bbd63b6aa7a658a80d8c6f1c3
/sanctum/client/initial_registration.py
5bae3d69c3b824484d9c7319dc9db5b7d5ebfcb2
[]
no_license
samiulla123/sanctum
9e3516ddfab7abce525196c8e376a96bbae24e6e
6d4ce505b51bfeff4157acdc9e73d78fff1e28ea
refs/heads/master
2021-08-22T10:30:50.281186
2018-12-22T12:39:55
2018-12-22T12:39:55
154,846,544
0
0
null
2021-06-10T20:56:42
2018-10-26T14:23:59
Python
UTF-8
Python
false
false
1,406
py
initial_registration.py
import requests import netifaces import socket import fcntl import struct import client_info REGISTRATION_URL='http://127.0.0.1:8000/display/clients/' CLIENTINFO_URL='http://127.0.0.1:8000/display/clientinfo/' def get_ip_address(): ifname=netifaces.gateways()['default'][netifaces.AF_INET][1] ifname=ifname.enc...
ad89151aa2e3f4e9f135c981b1cc500ff4ee8e5a
95232449f937bb2a291438850714da7520e62eec
/day16test/TestWithdraw.py
9e5bc681a2de8aad688a07802894c7e0d868b2f4
[]
no_license
zhangtianyu07/store
7db972b348aabb88dee0da1c029965532f1e3e50
00c9b0baa81f0953c5968df0329ee1295355f209
refs/heads/master
2023-05-31T02:44:49.673037
2021-06-07T01:13:31
2021-06-07T01:13:31
359,721,551
0
0
null
null
null
null
UTF-8
Python
false
false
1,703
py
TestWithdraw.py
import unittest from Bank_addUser import Bank from Address import Address from User import User class TestAddUser(unittest.TestCase): # 类就是单元测试的子类 bank = None user = None address = None def setUp(self) -> None: self.bank = Bank() self.user = User() self.address = Address() ...
f41ec7e2702e1710400f466941efe8d18d9c0e37
aa118ff4070642c9d50a3ddb489a0b1b1603a167
/1378.py
04eeb21da90f7264ee00c13056b4397443e95b1e
[]
no_license
anjgkwld/my_port
11990c7545064fa2736b7911157cb35b9bc9ccea
ab2dc8e56fa78e3c621281522d406c0aaf88f22f
refs/heads/main
2023-09-03T03:48:11.148987
2021-11-13T07:31:30
2021-11-13T07:31:30
417,511,118
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
1378.py
n=int(input()) s=0 sum=0 for i in range(1,n+1): for j in range(1,i+1): sum+=j print(sum)
26f757adc2bff510d8b55f14a17e0cb2838c6e10
ae06f90dee42f3f9473f4074d3afa3d98e6be713
/cry2/serveur/tp2_client_serveur.py
7fbe175e5c0af5ae7fbd10a13ec737620c6b108b
[]
no_license
zjxjohnxtlxb/Cryptographie
3f1de0f0460879e361c6837621fa8feb07b8f08d
90d309e1de198328e643d65eef26c5885a6f93ea
refs/heads/main
2023-06-01T22:18:20.569312
2021-06-24T06:28:43
2021-06-24T06:31:05
379,825,397
0
0
null
null
null
null
UTF-8
Python
false
false
5,567
py
tp2_client_serveur.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #@File : tp2_client_serveur.py #@auteur : Junxi ZHANG #@date : 08/11/2020 #@description : Affaire avec RSA import sys sys.path.append("..") import os import re from tp2_role import client def display(): print("{:-^20}".format("client_serveur")) print("1.obten...
ac2f5fa0218f2a89872785a9852fb07be9e1be31
fe00a1419dca786790962db63e3f8bf0adbe1e86
/app/tests.py
2f97c1f4ceedd6571aee81ad9b8e8ddf7cbf693b
[]
no_license
Neerajsinghtanwar/BookShop
008401752b160ff595adf8d53eb1bb09abf4ab02
1363526c7f43cce60b4a80de158d8c98825eb2e0
refs/heads/master
2023-07-19T17:04:49.891179
2021-08-30T03:02:15
2021-08-30T03:02:15
400,883,890
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
tests.py
from django.test import TestCase # Create your tests here. # {"studentname":"neeraj","rollno":"0001", "book_detail":"Maths"} # {"username":"neeraj","password":"0001"}
e1c7b6eed4fe962b46dfdd7c40a822671801c026
e5c1c70b2661fd74a365102f97358e7dd7fd40cf
/E/02.py
57d3dbe4199809d227b5a661359ad56cb679a404
[ "MIT" ]
permissive
Pouf/CodingCompetition
3f2a41900a5ea605e910964a5d5f6f3f1055ffbc
512fb1899b6ddcbbbb5c34e36088d0a673d599a9
refs/heads/master
2021-01-10T16:06:20.360400
2018-09-07T11:43:01
2018-09-07T11:43:01
43,887,058
1
1
null
null
null
null
UTF-8
Python
false
false
985
py
02.py
# Problem 02 - Even Fibonacci numbers # Each new term in the Fibonacci sequence is generated by adding the previous # two terms. By starting with 1 and 2, the first 10 terms will be: # 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... # By considering the terms in the Fibonacci sequence whose values do not exceed # four million, ...
0adc394a60241e2af545359bcdc07423787ce39a
abbc6406fa982df190ddc3bfd08b81a241e5add2
/2. code Web Interface as Backend n Frontend - core/bigdatadigitalent/task/apps.py
0f4fd2e879bdae0a143d6bf19dd49fc9dfca9399
[]
no_license
yusufrahadika/final-project-analisis-big-data
4a83a63531c5e0418ba17474960d7f7a203d999b
0613a77146a040485e645405baa3ae816e4b68e5
refs/heads/master
2023-02-04T04:18:56.660643
2020-12-22T17:45:13
2020-12-22T17:45:13
322,790,121
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
apps.py
from django.apps import AppConfig class Task1Config(AppConfig): name = 'task'
f3ffe69e412bb3125a9dae66409fe7c7e3758792
bacd3551060e12700fe58e9e14196df95d86e74d
/src/model.py
1afe79f5c97a798290217b3c1ae05d8c38bd1c51
[ "MIT" ]
permissive
chulhongsung/CorrTransformer
f85c9be943c3c02bc633f85576aa04c5649d9c3c
86b2c9bdf06050ac63d4eab3a37eec60fe817ca7
refs/heads/main
2023-08-11T00:00:21.610395
2021-09-30T06:18:12
2021-09-30T06:18:12
377,049,011
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
model.py
import os os.chdir('/Users/chulhongsung/Desktop/lab/xml/proposal') import numpy as np import tensorflow as tf from tensorflow import keras as K from module import * class CorrTransformer(K.models.Model): def __init__(self, num_labels, em_dim, dim_enc, dim_dec, m, d_model, num_heads): super(CorrTransformer...
c8be313c4b995db91f15dd8292ab20e7a2de815a
08ea6b6f4b99b5d7ddf3ea1cb5c8b68ca219d8c4
/app/web/documents/migrations/0006_auto_20200220_1535.py
347525b05fc3cd698b40149711c78cfc6cc67f58
[]
no_license
Amsterdam/omslagroute
3ffb7c2086b713f1b3f1433703ead05cb4f8d83d
b31738c5140a05f45670026f23044d22a9a9aacf
refs/heads/main
2023-08-09T21:52:03.970333
2023-08-09T21:20:42
2023-08-09T21:20:42
235,122,881
1
3
null
2022-03-16T08:22:59
2020-01-20T14:39:07
Python
UTF-8
Python
false
false
700
py
0006_auto_20200220_1535.py
# Generated by Django 2.2.9 on 2020-02-20 15:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('documents', '0005_document_document_type'), ] operations = [ migrations.AlterModelOptions( name='documenttype', opti...
ebe257701e4d2c66dde7beeb6f487354bb9c828d
faaf12ab18978082233c09628b815a69e73868e4
/leetcode/algorithms/easy/redistribute_characters_to_make_all_strings_equal.py
3b33fbcd4f9c2004fe29072a34983f487c9208fe
[ "WTFPL" ]
permissive
ferhatelmas/algo
6826bcf0be782cb102c1ee20dce8d4345e1fd6d2
7b867f6d2c8a9fb896f464168b50dfc115617e56
refs/heads/master
2023-08-18T19:59:58.435696
2023-08-14T10:16:00
2023-08-14T10:16:00
3,813,734
27
16
WTFPL
2020-10-25T23:00:16
2012-03-23T23:43:31
Java
UTF-8
Python
false
false
277
py
redistribute_characters_to_make_all_strings_equal.py
from typing import List class Solution: def makeEqual(self, words: List[str]) -> bool: d = {} for word in words: for w in word: d[w] = d.get(w, 0) + 1 l = len(words) return all(v % l == 0 for _, v in d.items())
e549619e4a2daf0ec8325784d564515c720850a1
4f387d46aea26c1b3b6ad3b203b1515b3af2c581
/_support/nbmd.py
1a46b34a112e7d40ebd6fc3525538ef7d8d370cb
[]
no_license
rahuldave/gpages
c4478da7b55c112c7596985e5ff1248b9c9c8238
a142edfaa870a3b855ba06c75fda00907afc7879
refs/heads/master
2022-05-01T14:54:49.994671
2022-03-31T04:06:21
2022-03-31T04:06:21
112,510,257
5
107
null
2018-11-29T22:14:40
2017-11-29T18:07:30
Jupyter Notebook
UTF-8
Python
false
false
649
py
nbmd.py
import sys import os SUMMARYSTUFF = """ ## Contents {:.no_toc} * {: toc} """ filetoread = sys.argv[1] fdtoread = open(filetoread) fileprefix = ".".join(filetoread.split('.')[:-1]) filetowrite = fileprefix+".newmd" buffer = "" for line in fdtoread: if line[0:2]=='# ':#assume title title = line.strip()[2:] ...
c638fea0f285a74ec4b0de123968788456952dc2
70bd8621b8cdccbbecbda6c8c1f6c4ca0ce5a2a9
/leet-coded/Arrays/88-MergeSorted.py
5f2c30e66b9e5edc28642a65bfd7792841fdd774
[]
no_license
ArunPrasad017/python-play
ddc5dfcf0f6ecd0b788c854aa40ab685ff2fd779
84eb279b9a2b6cfba682aefc1e83da012927db51
refs/heads/master
2023-03-10T10:56:22.583180
2023-02-17T07:34:11
2023-02-17T07:34:11
214,288,379
0
0
null
2023-02-26T22:04:12
2019-10-10T21:24:39
Python
UTF-8
Python
false
false
1,398
py
88-MergeSorted.py
# Modify to add to new array # def merge(nums1,nums2,m,n): # nums3 = [] # while m>0 and n>0: # if nums1[0]<=nums2[0]: # nums3.append(nums1.pop(0)) # m-=1 # else: # nums3.append(nums2.pop(0)) # n-=1 # if m==0: # return nums3+nums2[:n] #...
2e4e7fcb556bf098304f4ec3f9e246e6ed72ea90
2e69d0532aaed2bf3d37d2dc518ccbdc2e917ddf
/les 6/6.2.py
f7104f7d506ad6781c5d718922c5e0e539728596
[]
no_license
danieldejong117/programming1
0d44e2ba6017e590270fc1e17f02053acde35f2a
d7cf25ce592a35e18b80451c813edc267d24dd2d
refs/heads/master
2020-03-28T01:32:01.521206
2018-11-06T18:44:18
2018-11-06T18:44:18
147,511,621
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
6.2.py
def som (getallenlijst): res = sum(getallenlijst) return res getallenlijst = [1,2,3,4,5] print (som(getallenlijst))
a3c8e9d4a28f7a4544bfba76e7bdca6330b116a1
4a662129bfdbb9d221c3a2ac03663a42d3cdfa94
/conversations/save_password.py
0199aaf915d0f1f22c9ca852f354a3ffdb37b63f
[]
no_license
Prometheus1547/my_password_manager
2c40245581a4058de52a7bf0a90a2d06a33236c4
858c4025660b51062e65d347b996b68d4854b11e
refs/heads/master
2023-03-28T01:09:38.246471
2021-03-27T15:10:05
2021-03-27T15:10:05
352,162,276
0
0
null
null
null
null
UTF-8
Python
false
false
2,454
py
save_password.py
from telegram import ReplyKeyboardMarkup, Update, ReplyKeyboardRemove from telegram.ext import ConversationHandler, CommandHandler, MessageHandler, Filters import passwords_handlers as ph from conversations.basic_conver import basic_markup from statements import SAVING def save_password_question_2(update: Update, co...
5cf563ca2788f1ff4b450244ff666931d1ce0177
ee9910f736a28a229242247c15c8c3b53d0b4c04
/TimeTracky/src/timetrackylib/api/views.py
06401cce6ae45bad76ac674d1c4461cc1f104b9d
[]
no_license
toadesina1/TA-Soft-engin
85d3590fb8ed71fe6d9d2872af8f21fd9fcd30ae
94c76a99e09d233ce11829c37c6a43809d605229
refs/heads/main
2023-04-15T17:39:04.506827
2021-04-23T19:42:37
2021-04-23T19:42:37
332,826,398
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
views.py
from timetrackylib.services import unit_of_work def time_entry_view(id: int, uow: unit_of_work.SqlAlchemyUnitOfWork): with uow: results = uow.session.execute( """ SELECT id, projectname, task FROM time_entry WHERE id = :id """, dict(id=id), ...
16c302d300247956a4a3de53561cec9f4277ff9c
620ab8018231788b320f324e398c698fe82adf35
/docrootcms_blog/middleware.py
56dbedd9b78949aa64148b00876ed533129140c9
[ "MIT" ]
permissive
sstacha/django-docrootcms-blog
cf2fdeba591537cadc039e65c42fe421b95e23de
2140de9698706cfdaf55af203c9f4a17df27f4dc
refs/heads/master
2022-12-01T01:15:23.144615
2020-08-18T00:21:11
2020-08-18T00:21:11
286,611,105
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
middleware.py
from django.conf import settings from django.utils.timezone import activate # from django.core.exceptions import MiddlewareNotUsed import pytz class TZMiddleware(object): def __init__(self, get_response): self.get_response = get_response # NOTE: I decided not to auto load this since everyone may w...
8b1f3374d9d9acf43d9a065ca4b423869e1fffff
5ed58352c0db4485c2fe0ab4a17efd7e8e059604
/groundwork/patterns/gw_documents_pattern.py
d6cd10113505cd22191c051e941cdf4061498fb3
[ "MIT" ]
permissive
useblocks/groundwork
dae08df49cd1579f269cb780c1efd08d85052999
6f316969f089ab1c3abd316988aff897cd207d85
refs/heads/master
2020-05-22T04:40:41.766195
2019-05-16T06:28:01
2019-05-16T06:32:06
63,691,691
18
6
MIT
2019-05-16T06:20:42
2016-07-19T12:22:03
Python
UTF-8
Python
false
false
6,831
py
gw_documents_pattern.py
""" Groundwork documentation support module. """ import logging from groundwork.patterns.gw_base_pattern import GwBasePattern class GwDocumentsPattern(GwBasePattern): """ Documents can be collected by other Plugins to present their content inside user documentation, online help, console output or whatev...
ad313423d59b8b4865e9f7111a335d93ac3806f2
a7cd7285188c80c94a8f5689debb15a02a307f93
/scripts/gen.py
d9e7a7bbd4ec65f4652cb685138cbd57391e86b9
[]
no_license
SuperIzzo/ccgmon
0d0f194f01e76e7334e0e667c427fccfd9f1c10f
3aa4e379a5d51a858b78bb4b1d9202edf485d229
refs/heads/master
2021-06-26T12:17:25.970192
2021-02-20T12:18:59
2021-02-20T12:18:59
213,152,245
0
0
null
null
null
null
UTF-8
Python
false
false
11,218
py
gen.py
import json import textwrap from PIL import Image, ImageFilter, ImageDraw, ImageFont class Path: root = "" art = root + "art/" traits_art = art + "traits/" cards_art = art + "cards/" sets = root + "json/" out = root + "out/" #======================================= class Color: transparent = (0,0,...
ec32dbc2e046f52a3eab463d0197d0c14dfa24b8
f139a99d51cfa01a7892f0ac5bbb022c0cee0664
/Pythonlogy/ShareYourSystem/Standards/Itemizers/Teamer/05_ExampleDoc.py
1c7472fecfd47e9af336df452c83f86c40b3d56a
[ "MIT" ]
permissive
Ledoux/ShareYourSystem
90bb2e6be3088b458348afa37ace68c93c4b6a7a
3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2
refs/heads/master
2021-01-25T12:14:34.118295
2017-01-12T14:44:31
2017-01-12T14:44:31
29,198,670
0
1
null
null
null
null
UTF-8
Python
false
false
282
py
05_ExampleDoc.py
#ImportModules import ShareYourSystem as SYS #define class ChildrenClass(SYS.TeamerClass):pass #define MyTeamer=SYS.TeamerClass( ).team( 'Children', { 'MyInt':0 }, _ClassesDict={ 'Children':ChildrenClass } ) #print print("MyTeamer is ") SYS._print(MyTeamer)
0155c3736271ddddb30eedfb6159a38aa47e10fb
5785af631469b4749a6c7269a0f20219ba13893a
/bad-revision.py
2521ef63e1baa5bb3bb63a5c266bf16ec1fa488b
[]
no_license
city/Find-Bad-Revision
97c1200cbef2c60131f71f4a8c63b6a55337068c
c36a75a9aef80670dffdca8338cc56be466ecbfc
refs/heads/master
2021-01-22T18:14:47.816826
2015-06-11T00:17:18
2015-06-11T00:17:18
37,229,295
0
0
null
null
null
null
UTF-8
Python
false
false
1,291
py
bad-revision.py
#Find the Bad Version #Somewhere in our code one revision has broken our solution. #Our revisions are represented by an ordered list #versions = [1,2,3,4,5,6,7,8,9,10,11,12,13] #We are at the latest version ie 13. and we don't want to go backwards and check each version. #We instead want to split array of versions in h...
4bb829b5b1a9970c2e1a079aebd1316182dc887e
319444d6b02ac324b3285d3d98fd3a965ab48782
/system_status.py
6a4ddb195d950b063f1e53fb0e413599f2efcfed
[]
no_license
gkzz/mock_sample
4f67ff1b601573c7cdb343cf61308e175fa58635
cafbaf08184dd124774e94eb5d3a1f7f9ae697b8
refs/heads/master
2021-07-07T21:40:59.964463
2019-07-27T09:35:35
2019-07-27T09:35:35
195,540,613
0
0
null
2020-10-27T21:48:29
2019-07-06T13:08:18
Python
UTF-8
Python
false
false
3,488
py
system_status.py
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys import re import datetime import re import yaml import traceback from common import Common class Demo(): def __init__(self, service=None): self.common = Common() self.filename = 'input.yml' #self.category = 'localhost' ...