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
e612e6964342b88fc13654239c44f23131c9e69f
fcc955fd5b3fc997f5b1651c5c8b9032a6b9b177
/bqskit/passes/util/record.py
f9650f9e190bfdb3caadf0cebc5c365f29e0c858
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
BQSKit/bqskit
cf393d75b26349f7258e9caf9d5c8fa37d0c8de6
c89112d15072e8ffffb68cf1757b184e2aeb3dc8
refs/heads/main
2023-09-01T04:11:18.212722
2023-08-29T17:34:38
2023-08-29T17:34:38
331,370,483
54
18
NOASSERTION
2023-09-14T14:33:26
2021-01-20T16:49:36
OpenQASM
UTF-8
Python
false
false
1,403
py
record.py
"""This module implements the RecordStatsPass class.""" from __future__ import annotations import logging from typing import Any from bqskit.compiler.basepass import BasePass from bqskit.compiler.passdata import PassData from bqskit.ir.circuit import Circuit _logger = logging.getLogger(__name__) class RecordStatsP...
dbf73f3e45fb49983413dad8991e2e0cc9396b7f
ff7f0245f0eb2b402ed861b9e626f2ceed342158
/image processing/contours/contour_properties.py
20bcaa6285e34cc8789bf40fed0b0c4e78c24efa
[]
no_license
LinhTT46/learning_opencv
9c78453a6402968282f7719147d2c03bd7a4d105
e1fb910b5aa01abc2c3c696859e437d2cd7c6149
refs/heads/master
2020-04-08T18:12:52.590871
2018-12-03T03:14:46
2018-12-03T03:14:46
159,598,258
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
contour_properties.py
import cv2 import numpy as np img = cv2.imread('pen.png') imgray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) mask = np.zeros(imgray.shape, np.uint8) _, thresh = cv2.threshold(imgray, 127, 255, cv2.THRESH_BINARY) _, contours, _ = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) for contour in contours: ...
4749bf247886db0ca0dfacdd102d02b74a296f84
3ed2b05057174f7e4cfa521ba137e91091e123d5
/models/BAT.py
9c40595747f4d3a4fa89734cf17ab9b12450f439
[ "MIT" ]
permissive
ioxuy/iptv-analyzer
2939b425da8c4d30529683eece8e4b08925ec999
9348d38da2c52204244fd7abc22f67b9ddc425b5
refs/heads/master
2022-12-08T05:29:08.778279
2020-08-19T13:22:02
2020-08-19T13:22:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
BAT.py
class BAT: """ Bouquet Association Table (BAT) provides information regarding bouquets. A bouquet is a collection of services, which may traverse the boundary of a network. """ def __init__(self): self.table_id = 0 # Table ID self.bouquet_id = 0 # Bouquet ID...
82369e64af54aaead6f4e51f4aaa51b530fb0890
f4b378fff4b99c56f1603dfe7f117d32ec561298
/guessinggame.py
69a01ac99519a817c2571528e95574abf745371b
[]
no_license
coles2hartwick/GuessingGame
c526dbf3172b4fee4116020ec54c6a966b92ec6c
e9cffee9e0bec0dea71e37310c8011723b28919f
refs/heads/master
2020-09-03T17:00:24.265179
2019-11-04T17:35:30
2019-11-04T17:35:30
219,515,290
0
0
null
null
null
null
UTF-8
Python
false
false
1,770
py
guessinggame.py
# Ben and Sam # 11/4/19 # Guessing game where you select the difficulty and try and guess the number as # the program tells you if you are too high or low import random def max_num_select(): answer = int(input("Please enter the level of difficulty you would like to play.\nPress 1 to play on Easy.\nPress 2 t...
6376b571810642a735df21246ebdd5253575495b
0f1baaee310c63a6733135c6f8164bf9c115ab2b
/monitoring_adapter/models.py
facfd2adbd17b0a221b5419653801a7c65703fd5
[]
no_license
jochenvdv/integration-monitoring-adapter
50227be6f18b819d7b68d7a9d7c0aa271a0fd20a
86bc09ab88ff4ef8284546e0fda72ea3666c9959
refs/heads/master
2022-11-08T21:33:04.984871
2020-06-25T07:04:02
2020-06-25T07:04:02
253,768,807
0
0
null
null
null
null
UTF-8
Python
false
false
3,084
py
models.py
from datetime import datetime from monitoring_adapter.elasticsearch import ( persist_error, persist_event, persist_log, persist_status_change) class Event: def __init__(self, event_type, source_application): self.event_type = event_type self.source_application = source_application...
6a03d37c3033bc2a9ac36ae7391350d4fbe10e99
a68b933c166d32967fbb0bcf8f99fd1da1628782
/src/resolver.py
0112c5bb8e56413211315a8d451f0fb63f3169d6
[]
no_license
berenm/gentulu
4fc144b00f582b32a631bf1f5e4b4de3eb5c3e6e
6835efee74cadfea2cbb7e8df4699bf2c1bc73e7
refs/heads/master
2016-09-05T16:53:43.164782
2012-03-26T20:05:37
2012-03-26T20:05:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,660
py
resolver.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE or copy at http://www.boost.org/LICENSE # Contains code from Alexandre Fournier's gl-spec-parser # https://github.com/AlexandreFournier/gl-spec-parser import os from lxml import etre...
731c23858b943419ef933e48e5e5dc2bbb304f34
b059c2cf1e19932abb179ca3de74ced2759f6754
/S20/day30/大文件夹上传/client.py
7fcd7a0a82351b45780372f85de8a40b908ef258
[]
no_license
Lwk1071373366/zdh
a16e9cad478a64c36227419d324454dfb9c43fd9
d41032b0edd7d96e147573a26d0e70f3d209dd84
refs/heads/master
2020-06-18T02:11:22.740239
2019-07-10T08:55:14
2019-07-10T08:55:14
196,130,277
0
0
null
null
null
null
UTF-8
Python
false
false
1,295
py
client.py
import os import struct import socket import json sk = socket.socket() sk.connect(('127.0.0.1',9005)) filepath = input('>>>') filename = os.path.basename(filepath) filesize = os.path.getsize(filepath) dic = {'filename':filename,'filesize':filesize} str_dic = json.dumps(dic) bytes_dic = str_dic.encode('utf-8') len_dic ...
db84557911006e7f79fd28a4e3a5eb7cafd162ed
5ef75e6b96c2e911ab8bd3f04f7a97885c172e5e
/sample/numpy/np_random_n_counting.py
62c9d84fe7408d374e6446cbaf09047f23b5fa76
[]
no_license
rannrunn/py35
d9c9d85128f66decdb69773192ab2a9301defd9d
33399e8d08db1aeb24a4154ca3f6ba4d5391842e
refs/heads/master
2021-07-09T22:22:11.552519
2018-11-03T07:57:32
2018-11-03T07:57:32
103,027,645
0
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
np_random_n_counting.py
import numpy as np # 시드 설정하기 # seed : pseudo random 상태 설정 np.random.seed(0) # seed에 따라 0과 1사이의 난수를 생성 print(np.random.rand(5)) # 기존 데이터의 순서 바꾸기 x = np.arange(10) np.random.shuffle(x) print(x) # 기존 데이터에서 샘플링하기 # numpy.random.choice(a, size=None, replace=True, p=None) # a : 배열이면 원래의 데이터, 정수이면 range(a) 명령으로 데이터 생...
a559334ab54370a6e48c65110e0636db2dfca726
1e21d3df4e899231fb6d0378ba6467110af4e5ad
/mdingestion/community/textgrid.py
fe7bb50e96c45c9583b629e6b9ded0aec80bfc8c
[ "Apache-2.0" ]
permissive
EUDAT-B2FIND/md-ingestion
5683323af86d5161c33c1025439b0f0b7fb959b1
44c73d57a3eb5f4acaccc8d44b8e132306c5106a
refs/heads/master
2023-09-04T02:57:04.611128
2023-08-31T12:21:29
2023-08-31T12:21:29
17,866,760
7
9
Apache-2.0
2023-08-31T12:21:31
2014-03-18T13:30:20
Python
UTF-8
Python
false
false
1,732
py
textgrid.py
from .base import Repository from ..service_types import SchemaType, ServiceType class TextGrid(Repository): IDENTIFIER = 'textgrid' URL = 'https://textgridlab.org/1.0/tgoaipmh/oai' SCHEMA = SchemaType.DublinCore SERVICE_TYPE = ServiceType.OAI OAI_METADATA_PREFIX = 'oai_dc' OAI_SET = None ...
912300cd79864a542b1e045160a18fa2f281f376
f7aa42f7f1677a5db519449c6ffc03f46398f485
/homepage/migrations/0019_faculty_interests.py
fe5126e3b279829fefe7bf4864af4dcff25d655b
[ "MIT" ]
permissive
abmishra1/IntelligentFacultyPortal
7ee0c7397221f49f6007998d8c2fd24347b83fe1
4aae3a3024c10233acfa19f024fd723fb6ef1336
refs/heads/master
2020-07-15T13:29:54.978990
2018-05-18T18:51:43
2018-05-18T18:51:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
0019_faculty_interests.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-17 17:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('homepage', '0018_auto_20171117_2241'), ] operations = [ migrations.AddField...
de376ccbd1248e86cc9666b17768ce1085ce16ca
cbf91ac35b0552b1a86a2410e29f56760cf1a631
/question/migrations/0006_auto_20210612_0545.py
af4d946c6a88dc2620524556cb01b221cbc957b4
[ "MIT" ]
permissive
JayRebuilds/Stackoverflow-Clone
a05509a3a66bee83705f93953070616b9ebc53a9
ac51d173ddb67649ae0ccdcab46caf946c1f052e
refs/heads/main
2023-06-13T03:05:30.689299
2021-07-04T11:16:33
2021-07-04T11:16:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
0006_auto_20210612_0545.py
# Generated by Django 3.2.4 on 2021-06-12 05:45 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('question', '0005_auto_20210609_1056'), ] operations = [ migrations.AlterModelOptions( name='tags', ...
b19922841bff9bca4d9e13cb92a2cfe9c6397d85
f988205d845f2d49ad78cdfde4508a3ea2fcda5e
/Sent_LSTM_DeepLearning_Keras.py
5d51a6a831084b96c8667ec2826d3ff15255a57a
[]
no_license
ashishibmark/Data-Science
633f609577e3a0d411457704dd41771900796123
7bf69c37e9aea1c2944572224e5493618d5c2f62
refs/heads/master
2020-03-09T21:17:10.583252
2018-04-10T23:14:10
2018-04-10T23:14:10
128,990,706
0
0
null
null
null
null
UTF-8
Python
false
false
3,324
py
Sent_LSTM_DeepLearning_Keras.py
# coding: utf-8 # In[1]: # LSTM for sequence classification in the IMDB dataset import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from nltk.stem import SnowballStemmer from sklearn.fe...
2639a444caa93cfbf96070cf2d0073ef0449a531
39905d3588eba5338a9b8a1b03d8e21a6e9c8c66
/E2E_ASR/nets/decoders.py
5aa32beb78b61941398fce4abb112f726ece28a4
[]
no_license
seas2nada/personal-seq2seq
da8497ad70766250c3e86dfa834474bf743d1a01
1b9b02c24557728d0dad4714627c32ba687de0d1
refs/heads/master
2020-12-13T16:41:43.334098
2020-03-11T08:16:41
2020-03-11T08:16:41
234,474,355
2
0
null
null
null
null
UTF-8
Python
false
false
16,323
py
decoders.py
import torch from torch import nn import torch.nn.functional as F import random import numpy as np from utils.mask import make_pad_mask, mask_by_length from utils.nets_utils import to_device from nets.attention import * from nets.ctc_prefix_score import CTCPrefixScoreTH sos = 0 eos = 1 blank = 2 CTC_SCORING_RATIO = ...
d3b61d23617264335d10df2a95826309bc4dd969
6f097812440f1cf728d9a0c2706b66e706de0824
/lib/opal-tb/tb/migrations/0002_auto_20160608_2157.py
bf83625d907cff07a5ea8b589e736e7b7bc9b95a
[]
no_license
medical-projects/uclp-tb
105f915c3042c53b769681fb30d7f06fb21fd60a
ef9dbdb22846be1a0d38e63b34532f7ff414762d
refs/heads/master
2021-06-22T01:30:55.287491
2016-07-05T16:45:20
2016-07-05T16:45:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
0002_auto_20160608_2157.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('tb', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='environmentaltbriskfactors', ...
3bd7a76e5e5922f4a7511c9fd37963f6d82f0bdc
87a8e7f49ae0d8166290f0ef204a88c16f9eef55
/plat_egresados/app/migrations/0001_initial.py
3741f3f0b22818ee5f2af979b7bcdc22eeab2dfc
[]
no_license
JjVera96/SoftLab
438206418e6a823425876e9a1cc9c8e161d64001
95c7ab77c9c5cbb561c5813e8c26b0a4e066d87c
refs/heads/master
2021-03-24T11:47:37.275354
2018-02-08T04:50:40
2018-02-08T04:50:40
107,741,837
0
0
null
null
null
null
UTF-8
Python
false
false
6,393
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-05 22:07 from __future__ import unicode_literals import app.managers from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies ...
ba4bba45a2c6dbdc019d0fef4b1d4f2f817c7d69
a52e57d05d3a55da3a4840bb23a2e4cb64d06d57
/project-103_dv.py
9d8ba28b792398c5e5ec1f8c76cbbb46b8c30a83
[]
no_license
Vivek451ctrl/data-visualization
7353a9f18b93c56a25fe788230b387c5d0a9e091
d5d4d4df596d0ff06cce03482c187a28d3ae3285
refs/heads/main
2023-05-18T04:34:25.841209
2021-06-04T11:26:17
2021-06-04T11:26:17
373,818,787
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
project-103_dv.py
import pandas as pd import plotly.express as px df = pd.read_csv("project-data-1.csv") scatterGraph = px.scatter(df, x= "cases", y = "country", color="country", size_max = 60) scatterGraph.show()
833cf5030ee493e344534b833df1ab72126da9f2
05c529d3706c0ea9f53fd6a02b26e54bc1ec70dc
/src/22_merge_eval.py
44e378d11aae731c86ed300838a6f43f72c4b8e5
[ "MIT" ]
permissive
haiantyz/pcc_attr_folding
806a85ff85f9b7de7a3fbcdea0512d41339ccde4
2fc37de7fb146a724ebada2e39df51de272fa01a
refs/heads/master
2023-01-31T02:46:38.149466
2020-12-13T10:55:54
2020-12-13T10:55:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,588
py
22_merge_eval.py
import os import argparse import logging import numpy as np import pandas as pd import json from tqdm import tqdm from pyntcloud import PyntCloud logging.basicConfig( level=logging.INFO, format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', datefmt="%Y-%m-%d %H:%M:%S") logg...
1b558132c11a93eb36a6f4f59e115c59813427ec
b7eed26cf8a0042a61f555eed1e9bf0a3227d490
/students/swietczak_monika/lesson_02_flow_control/chocolate_bar.py
6d6268220a70d67393529721289028258234acd0
[]
no_license
jedzej/tietopythontraining-basic
e8f1ac5bee5094c608a2584ab19ba14060c36dbe
a68fa29ce11942cd7de9c6bbea08fef5541afa0f
refs/heads/master
2021-05-11T11:10:05.110242
2018-08-20T12:34:55
2018-08-20T12:34:55
118,122,178
14
84
null
2018-08-24T15:53:04
2018-01-19T12:23:02
Python
UTF-8
Python
false
false
303
py
chocolate_bar.py
# Read an integer: n = int(input("Length of the chocolate bar: ")) m = int(input("Width of the chocolate bar: ")) k = int(input("How many squares should be after breaking the bar: ")) # Print a value: # print(a) if ((k % m == 0) or (k % n == 0)) and (k < m * n): print("YES") else: print("NO")
eb50568e066a2700f8043b17d1896d1c123f37ab
5157bebc00d600893d287e855ce08e0f3dd9a132
/yates/Results/Model/TestDetails.py
a13dd8784f37cd4267260ace1ffcd42773d7d0a4
[]
no_license
smokedice/YATES
dc00e3d2f35efc86b7af30baf8f49f15eae380c6
7c3dd790a01e48a55afdb20e951641a9a36b6278
refs/heads/master
2016-09-11T12:46:48.697698
2013-03-14T13:56:57
2013-03-14T13:56:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
TestDetails.py
from yates.Results.Model.ModelUtils import ResultBaseModel from peewee import PrimaryKeyField, TextField, BooleanField, \ BigIntegerField class TestDetails(ResultBaseModel): testDetailsId = PrimaryKeyField(db_column = "id") testId = TextField() module = TextField() testName = TextField() inval...
d93d1a760e750738f05df4a6f1fd1e22f1756ca0
04904265a95a0f7af8c2d496d3790b1e33803299
/mainProject/SFAnalytics/migrations/0005_auto_20170611_1512.py
898e9d3fb31b32947066c15a424532b5210cafb3
[]
no_license
lucascarvalhoroncoroni/MalwareAnalysis
915c40171b07842dc89272683e56965f007af4b1
c43ec3099610393c2c848cd89acf3d4c6f309904
refs/heads/master
2021-01-19T10:45:56.371766
2017-12-11T00:33:53
2017-12-11T00:33:53
82,222,619
1
0
null
null
null
null
UTF-8
Python
false
false
907
py
0005_auto_20170611_1512.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-11 18:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('SFAnalytics', '0004_stringlist'), ] operations = [ migrations.RemoveField( ...
bf5422792533f85967a5573d9e6f370a7967a914
96e64877f4e224f9f5bf6c3f791c2a9c31238afd
/Python/Sieve.py
c545ade4082826b0d80f5d8f0c44d126298cff0c
[]
no_license
jasminecronin/code-step-by-step
35bc95f199b44882a4e612a3bfe41621159b7578
7b0eef5a9e8205ab4c39ea6a94aea19795e9831c
refs/heads/master
2021-09-14T23:40:16.574286
2018-05-22T12:40:15
2018-05-22T12:40:15
131,312,043
1
1
null
null
null
null
UTF-8
Python
false
false
278
py
Sieve.py
N = int(input("Max value N? ")) s = set() for i in range(2, N + 1): s.add(i) for num in sorted(s): k = num + num while k <= N: if k in s: s.remove(k) k += num print("Primes:", end = " ") for num in sorted(s): print(num, end = " ")
9c4676edbeef3748a4947f827fefa29e95674bfa
9d08835f7970fe68c73f5a01d246e923553fcac5
/Implementation/div_proj_2 - Modified.py
8ff2c5e68be5471a1c89c4b21794b7ca8838fdd3
[]
no_license
rajatsharma369007/Stock-Forecast
9c623f92507f4cd01084022a534312b67f72980f
f1adc878e1f8eaea01b42062fe84fe94a740af4b
refs/heads/master
2020-04-30T12:08:09.270008
2019-03-20T21:26:43
2019-03-20T21:26:43
176,818,697
0
0
null
2019-03-20T21:19:09
2019-03-20T21:19:08
null
UTF-8
Python
false
false
4,430
py
div_proj_2 - Modified.py
#https://www.youtube.com/watch?v=CQ5kc_j4RjA import pandas as pd #import quandl import math, datetime import time import numpy as np from pandas.tools.plotting import scatter_matrix import matplotlib.pyplot as plt from sklearn import cross_validation, preprocessing, svm from sklearn.metrics import accuracy_s...
4e61f9fefe8e6b5203ba05ac9bd626db1102df36
9816b85b5677d7dce27b24b72f002cd6467ea6fa
/open_fire/scripts/callback.py
d25efba74bf333547fc0b16b9fefa72ca1ca288a
[]
no_license
lnnx2006/DJI_robomaster
f5a4921648c6726846d3799d39145e7f39c98c2a
b4692ac6c53023b0d17684af62c2661424a04bb8
refs/heads/master
2020-06-30T12:08:21.703923
2016-11-21T15:06:42
2016-11-21T15:06:42
74,370,868
2
0
null
null
null
null
UTF-8
Python
false
false
265
py
callback.py
#!/usr/bin/python """ Created on Aug 1 2014 """ import rospy def my_callback(event): print 'Timer called at ' + str(event.current_real) if __name__ == '__main__': rospy.init_node('timer') rospy.Timer(rospy.Duration(2), my_callback) rospy.spin()
53573a21364e9dfef9ed1164185ab441dbc29601
49eb09264895628c681736115241f2ac80446b10
/main/views.py
ec02fb0ec8821a7ea9a3a5222a407dea24780da1
[]
no_license
osaatcioglu/booliwood
6adee9f7e4fc8ee520115b82bb6a324e98369a7c
8e0a4ef096bcb9d495d3e3225bc627dcef8ddc04
refs/heads/master
2016-09-06T16:59:54.883605
2013-09-22T22:48:34
2013-09-22T22:48:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,245
py
views.py
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse, Http404, HttpResponseNotAllowed from booli import booliwood from models import add_bosta, get_all_bostas, Bosta from django import forms import time class BostaForm(forms.Form): maxPrice = forms.IntegerField() livin...
4642537f8af1f060f5ee43cc9e98bd07be6a558c
8d00adea8ee7ed46c481166f1548d6a8bf9d8285
/data/data/process_data.py
43feb7bcad370601089e658e66c32623c3de0be0
[]
no_license
Abhijeetv007/Disaster_Pipeline_Project
2f136181bec031d1e0e0df6cf5f645be4de06744
9112e7a091ff33cba25b3ddba42daf154f3dea52
refs/heads/master
2022-11-09T12:19:54.952997
2020-06-26T03:35:41
2020-06-26T03:35:41
274,596,313
1
0
null
null
null
null
UTF-8
Python
false
false
2,896
py
process_data.py
# import libraries import sys import pandas as pd import numpy as n from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): """ This function loads the message and categories files and merge them and return the new dataframe for the project """ # Read messages an...
a57059927a7bd3311c1d104bfc80877912c7d995
12a7aad95cb053fc9773bbbaddb17c17777abcd3
/jpg2rename_bmp.py
1897b56405edec741a0abfa09aa2c9814ee0c935
[]
no_license
hfujikawa/Keras_test
ff0f9ae77537dc61b3d7bf634df645fa01080006
1b4c5beb5cec7b82eb072e8dccfd15321da61070
refs/heads/master
2020-03-28T18:10:00.088801
2019-06-20T21:20:14
2019-06-20T21:20:14
148,857,540
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
jpg2rename_bmp.py
# -*- coding: utf-8 -*- """ Created on Sat Oct 20 07:48:47 2018 @author: hfuji """ import os from PIL import Image import glob import shutil src_jpg_dir = 'D:/Develop/data/VOCdevkit/VOC2007/JPEGImages/' dst_bmp_dir = 'D:/Temp/' jpg_files = glob.glob(src_jpg_dir + '*.jpg') cnt = 0 for jpg_file in ...
7dc99d33023dbb13938ac413af7d3e9471fdbc3d
b971e156d4a45439f8cbbbb75c10efba4fa0a055
/Restriction fragment lengths.py
4b5542959b1ff4af248291d2b71d0c3e3c605a69
[]
no_license
18bmartin/HelloWorld
7f3aae8c275d70fde7025cec27145ccadd1e0d23
67cebd5de3ed8311f03e2811303a39951f34b1b8
refs/heads/master
2021-05-07T04:52:24.571879
2018-01-31T04:10:30
2018-01-31T04:10:30
111,480,675
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
Restriction fragment lengths.py
#the initial DNA sequence dnaSequence = 'ACTGATCGATTACGTATAGTAGAATTCTATCATACATATATATCGATGCGTTCAT' #seperating the DNA sequence at the specified location firstFragment = 'ACTGATCGATTACGTATAGTAGAATTCTATCATACATATATATCGATGCGTTCAT' [0:22] secondFragment = 'ACTGATCGATTACGTATAGTAGAATTCTATCATACATATATATCGATGCGTTCAT' [23:100] ...
000dd63089fd0c6184fd032fe75ccc920beee7a8
1f3544e4910569766cabfacfd3834cf4205ca265
/Neural Network & Image classification & Audio Clustering/clustering.py
f70f4d67968fd773fee5685c6a8bab8bd3a645de
[]
no_license
CabbageUVa/Machine-Learning-course-project
24ba6c1a9fb258d74544feffcd7616ff2f536e84
88327d4f9e17faf768bbe5023c55ad10f4fe594b
refs/heads/master
2020-12-31T00:00:15.738023
2017-02-01T05:25:48
2017-02-01T05:25:48
80,591,454
0
0
null
null
null
null
UTF-8
Python
false
false
5,979
py
clustering.py
#!/usr/bin/python import sys import numpy as np import random import matplotlib.pyplot as plt #Your code here def loadData(fileDj): data = [] fid = open(fileDj) for line in fid: line = line.strip() m = [float(x) for x in line.split(' ')] data.append(m) return data ## K-means...
1980fb4d6e7d3c6fe51f4a242610b5489e553859
b9f0f1644464a89ad9d2c7cc4c888fa18ef035a9
/page/page_zaojiao.py
82234c59883ab8b3c4986b300045387d3308e6c9
[]
no_license
lixiaofeng1993/UIAutomation
004cfa3a6d3149dec112a51a471ffef3ba2cf7e5
6381b5b7698ecbe9e92094f0e46a72f9b7e13e76
refs/heads/master
2020-04-14T20:28:13.284923
2019-11-22T05:11:16
2019-11-22T05:11:16
164,094,808
3
0
null
null
null
null
UTF-8
Python
false
false
24,084
py
page_zaojiao.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/4/14 14:31 # @Author : lixiaofeng # @File : page_zaojiao.py # @Software: PyCharm # @desc : from common.basics import Crazy class Zaojiaopage(Crazy): """早教小程序""" zao_btn_loc = ('xpath', '//*[@resource-id="com.tencent.mm:id/cx" and @text="...
fa8d603fbea287161d31499f96a7fe7e56e8eaa1
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_62/241.py
75040acc86dccc17a044354dfbd2fd9b5fd09d93
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
241.py
def filtra_acima(wires, origem): return [wire for wire in wires if wire[0] > origem ] def filtra_abaixo(wires, destino): return [wire for wire in wires if wire[1] < destino ] def calculate(wires): count = 0 for i in xrange(len(wires)): wires_acima = filtra_acima(wires, wires[i][0]) wir...
cf60fd47af01b737b66d1518d36588e1e0b581da
7b8a7e7dbd24a3f94650f9b94ba865055450859d
/local_code_to_run_sagemaker.py
ba020e8a9e931d952ff1c57a8aaa3ff81c00f90c
[ "MIT" ]
permissive
YanaiA/deep-yanai
316d09fe261f96e15cf4da29f49aa33d94408fb7
a9a4988a0b52d272d87ab270b1659d21cfcbfe72
refs/heads/master
2023-07-20T03:56:44.115623
2023-05-17T19:59:00
2023-05-17T19:59:00
239,272,081
0
0
MIT
2023-07-06T22:02:08
2020-02-09T08:40:41
Jupyter Notebook
UTF-8
Python
false
false
2,575
py
local_code_to_run_sagemaker.py
import sagemaker from os.path import expanduser, join from sagemaker.tensorflow import TensorFlow import wandb import os import boto3 import posixpath os.environ['WANDB_DISABLE_CODE'] = '*.patch' aws_role = os.environ['AWS_IAM_ROLE'] def get_data_to_s3(): pass def run_sagemaker(): experiment_folder = r's3:...
7bf92c64a85edb49aa3e63489cff177a5d3c28b3
1b36425f798f484eda964b10a5ad72b37b4da916
/posthog/models/prompt/__init__.py
e93a2091875d93180c7bba436e033d29a77044f0
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dorucioclea/posthog
0408baa2a7ae98e5bea352c516f741ddc17c0a3e
8848981baf237117fb22d28af0770a0165881423
refs/heads/master
2023-01-23T11:01:57.942146
2023-01-13T09:03:00
2023-01-13T09:03:00
241,222,000
0
0
MIT
2020-02-17T22:34:37
2020-02-17T22:34:36
null
UTF-8
Python
false
false
47
py
__init__.py
from .constants import * from .prompt import *
1bed5d118e43194dfae5000a5046ace3c1ea2c17
3fbf4071a74637feb3f2cf06e3f3f63d5d590efa
/feincms_mailchimp/apps.py
59712d44b2c9e75843aff02bf2a5e07970de8998
[ "MIT" ]
permissive
paramono/feincms_mailchimp
87172f80e9b5635ab85bb01dace347953a54021b
429ae3b9a6a10934eef430516a008b4cf185d411
refs/heads/master
2023-01-07T04:52:21.598174
2017-03-01T17:38:08
2017-03-01T17:38:08
83,561,619
0
0
MIT
2022-12-26T20:29:23
2017-03-01T14:10:07
Python
UTF-8
Python
false
false
128
py
apps.py
# -*- coding: utf-8 from django.apps import AppConfig class FeincmsMailchimpConfig(AppConfig): name = 'feincms_mailchimp'
de2b15d835bc3024b1663d36ff19a82d9602cb91
ea6dce44777d55ebae0eaf90ae38e726dfbf9f9e
/Assignment1/cs11731-assignment1-template/nmt.py
134ec4fa9d284668e6128a80026b23290f20e264
[]
no_license
chejmadi/cs11731
8924c6680eb33713e9dad43555c494413d7364dd
f66241ce3ea1b27c8e21e8ca0fbc0e1f3adf3d87
refs/heads/master
2020-07-26T02:20:24.397887
2019-11-06T03:38:06
2019-11-06T03:38:06
208,490,598
0
0
null
null
null
null
UTF-8
Python
false
false
33,483
py
nmt.py
# coding=utf-8 """ A very basic implementation of neural machine translation Usage: nmt.py train --train-src=<file> --train-tgt=<file> --dev-src=<file> --dev-tgt=<file> --vocab=<file> [options] nmt.py decode [options] MODEL_PATH TEST_SOURCE_FILE OUTPUT_FILE nmt.py decode [options] MODEL_PATH TEST_SOURCE_F...
e644fc3c4d676829390041a73052daaa926370e7
72e80a7dd01a5885ce4b1f92e888ac0129439694
/src/SSIRegret.py
1ace7a33c433213ae051ed8dd129b27787441851
[]
no_license
ThibautSF/COCOMA_Miniprojet_Coordination
0b014d6eaf0a1b4390baeb38c3403d7ab7b3a946
1f120f3616813af07816350cb1c247712cb076b5
refs/heads/master
2020-12-10T08:14:03.828736
2020-01-24T20:41:00
2020-01-24T20:41:00
233,543,387
0
0
null
null
null
null
UTF-8
Python
false
false
8,924
py
SSIRegret.py
#!/usr/bin/env python3.6 import random as rand import math as math class Environment: def __init__(self, agent_lst=None, res_lst=None, envsize=8): if agent_lst is None: agent_lst = [] if res_lst is None: res_lst = [] self.envsize = envsize self.agent_lst = a...
357aa92e57374a18a3de21e4cf4c2f086a847302
73f90204568c06e4d7cf608ae955d48e5bb0d279
/learnOpenCV/pixelsRead.py
f200acbceb6c4c040ec860cb72a81026b3322845
[]
no_license
RobinXYuanBlog/Python-Exercise
d72fb30d4fd9e79e44b05aedcb97f163a3dfeaed
f46173fcf7a9df9af45d6c3f923a771473cafd49
refs/heads/master
2021-04-30T08:52:00.468891
2018-02-14T14:38:55
2018-02-14T14:38:55
121,385,891
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
pixelsRead.py
import cv2 import numpy as np ###################################### # Create the phenomenon on the image # # img: image path # # n: the number of snow flower # ###################################### def snow(img, n): for k in range(n): i = int(np.random.random() * img.shape[0]) ...
2646908eca3494530326eca1c3dd02a89708bf05
a5461b5e4a3f46f3079710215bc0265cd17b0c16
/app/schemas/people.py
2f107fad61876ad949f396bc2023319d7f6c2d14
[]
no_license
sergiobrr/bepeople
44e9e92ac993d5174a5752ada0497452a5a61a5e
7e4dfcc7535a745213fbe0d6446637e37a502e2e
refs/heads/master
2022-12-11T15:05:48.210326
2020-08-29T16:07:58
2020-08-29T16:07:58
290,962,763
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
people.py
PeopleSchema = { 'first_name': { 'type': 'string', 'required': True }, 'last_name': { 'type': 'string', 'required': True }, 'address': { 'type': 'string', 'required': True }, 'location': { 'type': 'point', 'required': True ...
de6d3ac3b8be8a53a1123e43fe9212caf58a07dd
f12ff97c5d34eb0dc17d24e87cfeebaf788029b4
/ros/src/darknet_ros/darknet_ros_class.py
1f3f8ed41bff4f0f04082128b6ba2970963f8cbe
[]
no_license
socrob/mbot_darknet_ros_py
b9966d0410a65557f133bfae9adf25c947e7656a
1d85e4727f6dada39be1d8d867f87d1697009a0e
refs/heads/master
2020-06-16T04:08:53.943310
2019-07-05T23:17:02
2019-07-05T23:17:02
195,475,974
0
0
null
null
null
null
UTF-8
Python
false
false
10,713
py
darknet_ros_class.py
#!/usr/bin/env python import rospy import yaml import os import sys import subprocess import numpy as np import cv2 from copy import deepcopy from cv_bridge import CvBridge, CvBridgeError # ROS Messages from sensor_msgs.msg import Image, CompressedImage, RegionOfInterest from darknet_ros_py.msg import RecognizedObjec...
9947ffd9209bdece1804d5418feac4679235d7d0
7040c41f4228f77cc85801e130a185ea173c1d31
/WatchCartoonOnline.io/AnimeList.py
39b3f14a8763d8344b37fa6782a2333e8dd40b06
[]
no_license
DalekRenegade/anime-download
4dee5d9b44e7f290d889b5ec1230d80521ea515c
f843ee290c76e921b3ba3b7d51a30b879fb357f1
refs/heads/master
2020-03-30T06:18:55.516775
2019-07-11T23:59:30
2019-07-11T23:59:30
150,851,849
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
AnimeList.py
FAIRY_TAIL = 'https://www.watchcartoononline.io/anime/fairy-tail-2018-english-subbed' BLACK_CLOVER = 'https://www.watchcartoononline.io/anime/black-clover-tv-english-subbed' BORUTO = 'https://www.watchcartoononline.io/anime/boruto-naruto-next-generations-english-subbed' AKAME_GA_KILL = 'https://www.watchcartoononline.i...
9b87ff060fd2c2abf2659e11d3d691d7ed947cd4
619aa0735739546dadc90792da01c0b2d3badd97
/prettyprinter/textractprettyprinter/t_pretty_print.py
7f656fa96b6e61a67f185a70336312cb02cbade7
[ "Apache-2.0" ]
permissive
der-ofenmeister/amazon-textract-textractor
0221293ce91373736d7aca73cef70de5a3e075e1
9b72da89c425c3da562ff244d11409dccfe01350
refs/heads/master
2023-09-03T00:48:53.104073
2021-11-15T19:48:13
2021-11-15T19:48:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,888
py
t_pretty_print.py
import trp from typing import List, Optional from tabulate import tabulate from enum import Enum from io import StringIO import csv import logging logger = logging.getLogger(__name__) Textract_Pretty_Print = Enum('Textract_Pretty_Print', ["WORDS", "LINES", "FORMS", "TABLES"], start=0) Pretty_Print_Table_Format = Enum...
143e6e167e5c28d6d17ef82556eb1361f373f73e
13919b708404ddf5610fad4f9715adb7d6a5aba5
/main.py
971a19ccaee55af5dae3b1a62dde9d1e64615e48
[]
no_license
MHaurel/Cron
883a51a99ca1157eb9f33591acf84b76b94843ca
1246e9cf8eefb611d49ee9dc7185f9dc6c50f7ed
refs/heads/master
2022-04-09T10:03:23.748350
2020-03-24T22:03:37
2020-03-24T22:03:37
249,822,424
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
main.py
import schedule import time from package.job import news # Will be scheduled to 20:00 schedule.every().days.at("20:00").do(news) while 1: # Make the program always running schedule.run_pending() time.sleep(1)
d652db47c204f3dffaf033dcdf58cb19f80d0dd5
4f103618e2924fcd5c3a973b74618d9944c473e0
/AST/AstForStatement.py
f726349390620a222310b6bfc02ed63d92a310bc
[]
no_license
gannagoodkevich/antlr_compiler_relation_lang
d1b2175a6e430e43a9e92a2801df9104c9350cd2
39a29266017da1862003d30d696bc3d53ec25ee0
refs/heads/master
2022-09-14T03:03:17.426029
2020-05-22T16:57:45
2020-05-22T16:57:45
254,913,285
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
AstForStatement.py
class AstForStatement: def __init__(self): self.var = "" self.start_value = [] self.end_value = [] self.expressions = [] def print_info(self): print("Var iterator:") print(self.var) print("Start:") print(self.start_value) print("End:") ...
1c9dc6ed91a583328aab2cfe887a1d8fce2ea0dc
cdeb2c9fa10884fca5a14d41db3181c02ccf0bc9
/Code Workspace/Algorithms/5.1 HeapSort.py
3a651fccda2e5fd507165e74a2e1aa69c6e3c844
[]
no_license
yashdevilking/Data-Structure-and-Algorithm
9bf4a204713e9a7fd415614e6f2db096466c037d
fca7d5262998b19476d3300fe46843ed94a8a291
refs/heads/master
2022-12-01T12:06:04.018791
2020-08-13T06:04:40
2020-08-13T06:04:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,275
py
5.1 HeapSort.py
class MaxHeap(): #we receive a list of items def __init__(self,items = []): self.heap = [0] # we create a heap list and store 0 at first Index # we will not use first Index for i in items: # we will store the items received in items[] in heap self.heap.append(i) #now we will float...
bf960e1ae26174d05ecaa6b1ae81e9ac72a7933a
46465396ac77bc9274b83a89c99943f35636d0cc
/python/pacsign/tests/test_pkcs11_manager.py
cdcbaf1aab6d5fa1aa9d293ad32d49046bdacd9a
[ "BSD-3-Clause", "MIT" ]
permissive
gwencasey96/opae-sdk
350780a1e13453cb5c7013aaecbcd592ddcb2ab7
16d1b2fd0b6396c78766a802aaf7af332ffb5a85
refs/heads/master
2023-02-01T14:13:50.267390
2022-07-06T03:31:34
2022-07-06T03:31:34
510,972,715
0
0
BSD-3-Clause
2022-07-06T03:31:35
2022-07-06T03:21:08
null
UTF-8
Python
false
false
1,919
py
test_pkcs11_manager.py
import unittest from unittest import mock from pacsign.hsm_managers.pkcs11.pkcs11_manager import (HSM_MANAGER, _PUBLIC_KEY) '''test_clean''' def test_clean(): init_cfg_file = mock.MagicMock() HSM_MANAGER_test = HSM_MANAGER(init_cfg_file) HSM_MANAGER_t...
c0590f56b9931aed1cc7324bbc5d5f2bb10af260
0a0f14e3334d5489a133d90757007de2630ff1aa
/289N_Protein_SS_Prediction/src/model_tester.py
84f081722b62fa071e301d015f3703a65f8ee292
[]
no_license
ghov/289N---ProteinSSP
e2e3a055ee37dd1997baee1cff947b02cc95eb0d
fb2e8d05f1f0ad54b7ca8b5b63a43188fde317e7
refs/heads/master
2021-01-24T16:34:17.306020
2019-04-12T05:44:51
2019-04-12T05:44:51
123,205,226
0
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
model_tester.py
from keras.models import load_model import numpy as np import csv number_of_examples = 100 report_number_list = list() Fc_model = load_model(model_save_path + 'full_model_new_no_floats2_val_0.04737289249897003.h5') X_train = np.load(numpy_array_save_path + 'X_train_new_no_floats.npy') Y_train = np.load(numpy_array_...
dd89428c4a2d67b4838b343fb79c06a7d9b07132
3216bc3aead531c1f8fe832a4e9aac02c452fb50
/PythonSolution/146.lru-缓存机制.py
21290f3aab8a2ae1521ad0724c1f23141cec43c1
[]
no_license
Gordon-Deng/happyLeetCode
77cb0b96c26c9b71bc841450df0353bef5889484
79b88107ecd30831f85d053cb60020c69b55aac8
refs/heads/master
2023-05-25T04:43:04.316774
2023-05-17T16:00:25
2023-05-17T16:00:25
225,955,902
2
1
null
null
null
null
UTF-8
Python
false
false
3,299
py
146.lru-缓存机制.py
# # @lc app=leetcode.cn id=146 lang=python3 # # [146] LRU缓存机制 # # https://leetcode-cn.com/problems/lru-cache/description/ # # algorithms # Medium (44.89%) # Likes: 382 # Dislikes: 0 # Total Accepted: 30.1K # Total Submissions: 66.9K # Testcase Example: '["LRUCache","put","put","get","put","get","put","get","get"...
7ec4619169e7e1cc8be620af74a5070dcd651f1b
1ba73ea036739639c03b6ddf286cda3622ba8641
/Deploy/camera.py
c05e44e0a591d5727c2c5c50425876608552f6b9
[]
no_license
joshrands/SBHacks-VI
6641a8d90e313212cb0ca0c1f54e7b78701ca605
c8a35c09405ce777ad4225c562677b487faa9fb5
refs/heads/master
2020-12-09T03:00:58.835058
2020-02-02T16:33:21
2020-02-02T16:33:21
233,170,739
1
1
null
null
null
null
UTF-8
Python
false
false
283
py
camera.py
import cv2 import numpy as np print(cv2.__version__) cap = cv2.VideoCapture(0) ret, frame = cap.read() while True: # cv2.imshow('img1', frame) # if (cv2.waitKey(1) & 0xFF == ord('y')): cv2.imwrite('frame.png',frame) cv2.destroyAllWindows() break cap.release()
3b1e648659dafd481aba7e9eac6d7b4f95cd4be6
cdcb4a9ddfb6f8cab531374fbe87c8a46c9371b3
/Class/world.py
4b7de63251a3b645f34bea1d84fc09678b8f586a
[]
no_license
Kazetheroth/DinoWorms
d898263913d070767e8ad8e3f3a9466bdc15ca84
77d4e391b208910c4282c1c42955fcf7e9f2bae7
refs/heads/master
2020-04-15T13:17:56.086890
2019-02-18T13:48:32
2019-02-18T13:48:32
164,711,180
0
0
null
null
null
null
UTF-8
Python
false
false
4,677
py
world.py
import pygame import random import math import constants from pygame import gfxdraw class World: def __init__(self, screenHeight, screenWidth): self.backgroundSkyImgPath = "Imgs/backgroundSky.jpg" self.backgroundGroundImgPath = "Imgs/bg_ship.png" self.backgroundMaskImgPath = "Imgs/bg_ship.j...
09ac8abf955b9c2ecb5a8c63c53437211807cae3
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2897/58610/282092.py
424e63172cb719d43b90f4edd39db4a3f6e7731e
[]
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
297
py
282092.py
words = eval(input()) def no_common(word_a: str, word_b: str): return len(set(word_a) & set(word_b)) == 0 res = 0 for i in range(len(words)): for j in range(i + 1, len(words)): if no_common(words[i], words[j]): res = max(res, len(words[i]) * len(words[j])) print(res)
6a1fe9bed3a1990f879f48857dd4431a001a65f2
4026f83f309a2cdb5236e937e606dc24510aebd0
/django_research/urls.py
9b41fd39d6eb407acf3d416b0ade8ee1ccf9f470
[]
no_license
th1209/django_research
a05efbc3540ae48aa2674533a7c69802ce9ac016
c201351574d8bf95efeadb91c3962bc308406875
refs/heads/master
2021-01-19T08:09:10.389554
2017-05-08T00:22:05
2017-05-08T00:22:05
87,605,048
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
urls.py
# -*- coding: utf-8 -*- """プロジェクト全体のURL設定用モジュール。""" from django.conf import settings from django.conf.urls import include from django.conf.urls import url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^model_sample/', include('model_sample.urls', namespace='model_sam...
a3cfbce0c09795c30d0da0348a3273daaf1a936f
2f0b0aa64eefe2706183a9553f5983cdc84bf3fd
/entities/experiment.py
3ce12d7ece967b6ff51fed7f4934e37ff341af23
[ "MIT" ]
permissive
stlemme/python-dokuwiki-export
7b917dcec5b1a8db0e3419779bf3df05cb46cb57
de3ba9d85a3cce4fb9bba4881adff688ea8ee801
HEAD
2016-09-06T03:20:27.229946
2016-01-12T21:33:45
2016-01-12T21:33:45
12,728,647
1
1
null
null
null
null
UTF-8
Python
false
false
920
py
experiment.py
from . import Entity class Experiment(Entity): def __init__(self, site, date, conductor, place = None): self.site = site self.date = date self.conductor = conductor self.place = place self.scenario = None self.application = None self.deployments = {} def set_scenario(self, scenario, application): ...
d980069f3c9ebc8550adecb404b373f89177314f
6c46a26a07e79c13283e7c3cc0c928ecbe19c5c9
/get_ip2mac.py
e205682e851e23abc49e0d5aa5da39a9d42d4e40
[]
no_license
luoluoxiaoqiang163/IPSET_INTERFACE
f2a1f5c8b5f5958eda9c1b0a350178d8446f889b
436a8d019a7448ebc2c14ba02966c3b1251932e3
refs/heads/main
2023-04-20T23:32:02.626635
2021-05-06T02:26:25
2021-05-06T02:26:25
361,586,905
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
get_ip2mac.py
from psutil import net_if_addrs ip2maclist = [] for k, v in net_if_addrs().items(): if len(v) >= 2: ip_address = v[1][1] mac_address = v[0][1] if '-' in mac_address and len(mac_address) == 17: ip2maclist.append([ip_address, mac_address]) print(ip2maclist)
f5c7ff042c81fdf9e0495e0bd473c0c33d811e74
221045ad5827db8c44de1315a295cfd7865610c2
/experiments/snort/colors.py
ed7a500de4fd4a6115c1fcf3ba67e7eac4f777c1
[]
no_license
sn0wr0b0t/cs590-nfv
107c5e6e1f1c790d513d63616a3342c208ffd164
dc37c13f59421f201531db47fc8c176d275550e7
refs/heads/master
2021-08-30T05:26:50.703033
2017-12-03T08:35:17
2017-12-03T08:35:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
21
py
colors.py
../suricata/colors.py
45110aab578b711f5617071154426ba92b2d42cc
1b5fb42b9caa8d4e8d684336c3d476cebf31ed3a
/fps_measurement.py
d767bfda24574ce5811d70e6824994bc945cc71f
[ "MIT" ]
permissive
Italy-Navy/Lyceum2
2702579d8ec2cbb1cd17d97c8c936ce0eed48ee8
6ef3581ccc4f24afdc7bd843c608f90a109c5a6f
refs/heads/master
2023-03-20T18:25:43.928097
2021-03-11T19:20:46
2021-03-11T19:20:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
fps_measurement.py
import sys import pygame from pygame import * import os MOVE_SPEED = 1 WIDTH = 120 HEIGHT = 15 COLOR = "#888888" ICON_DIR = os.path.dirname(__file__) # Полный путь к каталогу с файлами class fps_measure(sprite.Sprite): def __init__(self, x, y): sprite.Sprite.__init__(self) self.image = Surface(...
e4fba30063b9d961839862118dcdb3ee36a559db
e3f0cdffa8e53c466f88e118c0ee3fbca0ca0cb7
/picT/migrations/0002_img2.py
536f6e7b910c6b7bbd73599dacc9839ab5c80521
[]
no_license
disanda/a-Django-Project
ce6fb34545c6b30ba63a7ee8d6dc7684e7346647
401342cb646d60be11533df372ca4acf819230a8
refs/heads/master
2022-02-27T06:18:11.453886
2019-11-10T10:45:43
2019-11-10T10:45:43
99,684,051
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
0002_img2.py
# Generated by Django 2.1.1 on 2019-04-23 08:05 from django.db import migrations, models import picT.models class Migration(migrations.Migration): dependencies = [ ('picT', '0001_initial'), ] operations = [ migrations.CreateModel( name='Img2', fields=[ ...
54bdb8ed13402717484913942035392590fd65e9
426971e99e55c9a0594fdde68000c9a391cd40ff
/calendarprocessor.py
3e5a231a7d8d0391a3447e0c0896a6f7756b36a0
[ "MIT" ]
permissive
ticky/kinproxy
241c97d537179bb63000546ea36be0ddf506d8f5
68b955a7bea999dd1aa56f32d8ef55e7a22ddf32
refs/heads/master
2021-01-01T04:26:32.313131
2015-11-03T07:04:50
2015-11-03T07:05:50
58,078,446
1
0
null
null
null
null
UTF-8
Python
false
false
1,253
py
calendarprocessor.py
from icalendar import Calendar, vDate import datetime from pytz import timezone def process_calendar(calendarFile): calendar = Calendar.from_ical(calendarFile.read()) calendarName = calendar.decoded('X-WR-CALNAME') print 'Processing Calendar "%s"' % calendarName tzinfo = timezone(calendar.decoded('tzid')) ...
daa2cff25942156975e8c010a96f34683ab552a2
49da443f8eb89fa52e5114cde1bc319a2857eb6a
/01_paivanelja/index.py
a9f9a9324e26bf2aed9868f2d79650c98a8a4716
[]
no_license
niikari/python-webpalvelinohjelmointi
1b5a5eff29244686d58811a2c98472829f411903
ceda41556d2a7f0b0cb057312eea2ffc24591eae
refs/heads/main
2023-05-08T07:07:02.747247
2021-05-30T09:31:12
2021-05-30T09:31:12
370,275,693
0
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
index.py
from flask import Flask, render_template, redirect, flash from flask_sqlalchemy import SQLAlchemy from flask_wtf import FlaskForm from wtforms.ext.sqlalchemy.orm import model_form app = Flask(__name__) app.secret_key = "eeraep5ien2EH7MaeZahyei9phuthe" db = SQLAlchemy(app) class Tweet(db.Model): id = db.Column(db....
1366741a2234d1d02dbfbaaebc123ff605157579
9a0b84ea1ddf08b4d0cb9d1030e202d4bd86a645
/articleapp/migrations/0004_auto_20210626_1255.py
e4c6a6f74fbdbe735f9a28abf1796834904c93b4
[]
no_license
subham3140/StartUpArticle
145034bcdcb564343d1f396566a958494f85224b
782f12a34153a0f532b1fac8c2a53c8cc30eac74
refs/heads/master
2023-06-17T16:38:04.779880
2021-06-30T12:42:16
2021-06-30T12:42:16
380,130,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
0004_auto_20210626_1255.py
# Generated by Django 3.2 on 2021-06-26 07:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articleapp', '0003_alter_interview_video'), ] operations = [ migrations.CreateModel( name='MediaArticle', fields=[ ...
2c18f64b20b20a4083ea4745f3f405fe222c2207
16e16c00df22aea089398a4680c8c8c0b86251b8
/molFlash-master/molflash/models/vs_cnn.py
07e76115d1fd24c2f8105958f7ead1e5a8e040b6
[]
no_license
xLeviackermanX/intern-bayeslab
f5af6215ee8d97cb2fc9187d5dd61c2c957903f1
75dab7a39cb122c37d617ee0170b9fb781efa23a
refs/heads/master
2023-07-01T16:44:37.353640
2021-08-12T06:59:10
2021-08-12T06:59:10
391,811,711
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
vs_cnn.py
import torch import requests from tqdm.auto import tqdm from torch import nn from torch.autograd import Variable import torch.nn.functional as F from utils import * class CNN(nn.Module): def __init__(self, encoding): super(CNN, self).__init__() cnn_target_filters = [32, 64, 96], # cnn_targe...
d486a1ed8822c2099223337930214b449f1aca39
1a67163211ab43f81009dbe60f114dec086aa9db
/setup.py
4287ca7cdc540f647477e3005058153d9b949d5d
[]
no_license
PaulBreugnot/GraphGitHub
e0a5076e284e1990497ee8100d5e50c79e3a0325
7b78b598565a026d30cfc82ec96cd07e513f5e42
refs/heads/master
2020-04-10T14:05:06.710916
2018-12-15T10:33:54
2018-12-15T10:33:54
161,067,039
1
0
null
null
null
null
UTF-8
Python
false
false
508
py
setup.py
from setuptools import setup, find_packages setup(name='graphGitHub', version='0.1', url='https://github.com/PaulBreugnot/GraphGitHub', author="Paul Breugnot", author_email='breugnot.paul@gmail.com', description="Data fetching from GitHub using REST or GraphQL", packages=find_packag...
a02eda54df3f0e06d7e3da3dd7669e6f86759a3d
cdf04d9ac98e8b9c47f68e18d2b9488c6873faca
/apps/ideas/migrations/0009_move_jurystatement.py
f07742489d7ae900155d736404e4057c0effd45c
[]
no_license
liqd/a4-advocate-europe
62f7bde0fba7b708132b2583abce25a6315b1770
e1a019c8fdf5c9ff6a384a45b56bffef128b78c1
refs/heads/master
2021-07-09T06:52:38.055763
2020-03-05T02:04:37
2020-03-05T03:49:27
85,058,880
8
1
null
2021-05-05T13:08:26
2017-03-15T10:22:10
Python
UTF-8
Python
false
false
1,116
py
0009_move_jurystatement.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-16 12:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): def copy_jurystatement(apps, schema_editor): Proposal = apps.get_model('advocate_europe_ideas', 'proposal') ...
5e1817fe951b2080004f4bf1d59058b6640e9e01
b0675ed261ff01fe050e8bacd05e692851e087b8
/no03正则/03neihan.py
613827d5eb5dc20716d022db8add1ba2988bc891
[]
no_license
likunhong01/SpiderStudy
dafd6df0525f7ffa5c855c5213710c3bc37dc709
78288d3429e7ed2ae175c0009f6c5c85b408c436
refs/heads/master
2020-05-09T12:38:15.065593
2019-04-28T09:12:18
2019-04-28T09:12:18
181,118,325
1
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
03neihan.py
#coding=utf-8 #Version:python3.6.0 #Tools:Pycharm 2017.3.2 # Author:LIKUNHONG __date__ = '2019/4/16 13:13' __author__ = 'likunkun' import re import requests import json url = '' headers = {} # 爬取内涵段子(由于内涵被封了,只看思路) # 1.找到starturl # 2.发送请求,获取响应 str = requests.get(url,headers).content.decode() # 3.提取数据:content_list是数据...
1df5d570d004803df7766618e76c4c2a60d18aef
476c8698839cb76bd135528a88b49f8bc6f79a41
/CSC121Lab01_Lab08_Misc/CSC121Lab2Problem4_PizzaSoda.py
b2d3d53d72a3682743d49711abb75c06ab131994
[]
no_license
mischelay2001/WTCSC121
643135e3f30f63feccb4f33a762bcaf2dca6a697
37d8f5ef954bf8717a7eb7fd58bfa5607e339265
refs/heads/master
2020-04-07T13:50:54.502271
2018-11-20T18:10:07
2018-11-20T18:10:07
158,424,179
1
0
null
null
null
null
UTF-8
Python
false
false
924
py
CSC121Lab2Problem4_PizzaSoda.py
__author__ = 'Michele Johnson' # Program Requirements # A group of high school students are selling pizza and soda during a basketball game to raise fund for a field trip. # Pizza is $3.50 per slice and soda is $1.25 per cup. Design a program to do the following. # Ask the user to enter number of cups of soda ...
b7a1389280ac52bd05bd91faffbf2b71f8b7ad39
207fa9b8e324506575899a1a4c53d9f60d7020b6
/my_carwash/urls_api.py
051d7674d92758aa125c77218ef4ec76398a479b
[]
no_license
diegomjasso/MyWashCar
fa11ec6a84ae17a112ed8a5c191bc85a9c21109c
570317aa8cbe0672f336eee01bcac0c5bfa7ae1b
refs/heads/master
2021-01-19T10:23:02.389550
2017-06-16T03:08:42
2017-06-16T03:08:42
87,857,582
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
urls_api.py
from rest_framework import routers from django.conf.urls import url, include from negocios.viewsets import CarwashViewSet from perfiles.viewsets import PerfilViewSet router = routers.DefaultRouter() router.register(r'carwash', CarwashViewSet) router.register(r'perfil_usuarios', PerfilViewSet) urlpatterns =...
98d95a04ff882eb03748b5347a2761f6988b0a78
e509c0de6eea219e0a4e402c8057c22727ad903b
/reservoircomputing/reservoir.py
d58e78e1fdcc744d5987df8d53b524685bb97d71
[]
no_license
robertpfeiffer/reservoircomputing
b4cfac3f890395ff09249a46f99f03a4db16cbba
621c650d1624e7aac6703d3b6f266065660ed9c6
refs/heads/master
2020-05-20T13:20:11.832928
2013-05-26T10:34:31
2013-05-26T10:34:31
4,370,990
2
0
null
null
null
null
UTF-8
Python
false
false
22,679
py
reservoir.py
import numpy,math,random import numpy.linalg as linalg import itertools import collections import scipy.sparse as sparse import scipy import activations import copy class LowPassFitler(object): def __init__(self, gammas): self.gammas = gammas def filter(self, x_t_1, fx): result = (1 - ...
e5b7c6289a8170c49f59490038b471d28a698223
33f9056de72ea429774cdf42d3f813a4cd33a255
/backend/takeout/admin/views.py
c63cbc7a7f3580c129f4752ad0bd37f38f7fd932
[ "MIT" ]
permissive
alex159s/Take-out
a566e35d5c05c6e8456beb449c08b6c6479f4e79
27c66dcc4f0e045ae060255679a2aa68c0f744d2
refs/heads/master
2020-04-06T06:36:51.806309
2016-07-15T14:27:06
2016-07-15T14:27:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,092
py
views.py
# coding: utf-8 from rest_framework.views import APIView from models.admin import Admin from lib.utils.response import JsonResponse, JsonErrorResponse from lib.utils.misc import get_update_dict_by_list from lib.utils.token_tools import get_token class AdminList(APIView): def get(self, request): # 获取管理员列表 ...
e882bdb7c5be17a80117e27a7e87273d6f7770b7
18b9b77d7edc121a007d671e28eb52de3daf4653
/python/django/services/web/app/api/views.py
2ea4ec96fa957fef9a877e37a2b04acfb7556946
[]
no_license
swipswaps/dd-environments
93b79ca942c76e277f6ff96400acaefa21f6bb25
68c1a938fd8ddc1dfa2f13f3ac61658df5b7028c
refs/heads/main
2023-08-27T23:42:32.274581
2020-12-23T18:10:48
2020-12-23T18:10:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
views.py
import logging from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound # Get an instance of a logger logger = logging.getLogger(__name__) # Create your views here. def index(request): logger.info("Processing GET /api") return HttpResponse("Hello, world. You're at the po...
9e1187688e85e3700cd7742ca09396aef9815107
092bcd56d9823c8b4ba56c56f1ffc4901fa4655e
/webappn/data_app/migrations/0002_auto_20210602_1008.py
f514d3946063f9ca7e3113ec84b322ffd7193db0
[]
no_license
Praja-SS/Data-Portal
f0e8cf21b25f3d3ab31e27c6ed738cefedae12ed
c0caca050ae5ce88c1c49c612ceb59ea8696ce6f
refs/heads/main
2023-06-13T23:07:58.091793
2021-07-15T14:29:31
2021-07-15T14:29:31
386,255,656
1
0
null
null
null
null
UTF-8
Python
false
false
775
py
0002_auto_20210602_1008.py
# Generated by Django 3.2.3 on 2021-06-02 04:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('data_app', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='DataModels', new_name='Algorith...
82c9b4482152f82075ee12c3a66bdb05e28d7a74
efb333992b1fa8e93be3af515da92f2ab34c048a
/project.py
9542bee7a20e5cfed8e551de29d0580d5088b384
[]
no_license
ThejasNU/Rock-Paper-Scissor-game
ead401701001ce23d528cf765b462d9b874fa5f4
4fc2841ba1c8d01c06a5fc906334056dfecdb52a
refs/heads/main
2023-04-08T18:56:39.153417
2021-04-17T19:43:27
2021-04-17T19:43:27
358,964,985
2
0
null
null
null
null
UTF-8
Python
false
false
4,156
py
project.py
from tkinter import * from PIL import Image,ImageTk from random import randint def reset(): playerScore["text"] = '0' computerScore["text"] = '0' reset_button["text"]="reset" updateMessage("") enable_button() def enable_button(): rock['state']='normal' paper['state']='...
999bae0de7a7f4ae8ecbddf1e0e44aae336bf796
b30453d6d2d45484a4c511ac3a5fd689b9f41168
/affine/model/secondary_tables.py
6f1e97c92a18e65a06c2301b8446ea6e1698d71a
[]
no_license
winkash/image-classification
517acab98b5dcb886a363eed22813aa71cff8801
2f9c33c4e1a26b3e9e699210ac974047936f49e1
refs/heads/master
2022-12-11T05:49:21.942375
2020-08-31T05:58:37
2020-08-31T05:58:37
291,627,813
0
0
null
null
null
null
UTF-8
Python
false
false
3,265
py
secondary_tables.py
from affine.model.base import metadata from affine.model._sqla_imports import * bundle_keywords_table = Table('bundle_keywords', metadata, Column('bundle_id', Integer, ForeignKey('keyword_bundles.id'), nullable=False), Column('user_keyword_id', Integer, ForeignKey('user_keywords.id'), nullable=False), Uniq...
f24394e7457b5bd3b51d61ea6f0e6f06be29d626
e0282d00937d8f4c9557b4f9091f577637b8fd55
/src/root/nested/main.py
364147505325a6cc7febb87b827df1bf12db309c
[]
no_license
HeimratHL/dk_automatisierung
2154a5b5a75314923dbd052e98635a3803057ce8
ab836a5d47aaf38f7cb13bc49e480be430847a7a
refs/heads/master
2020-04-08T09:30:40.444790
2019-01-24T17:53:29
2019-01-24T17:53:29
159,227,490
1
1
null
null
null
null
UTF-8
Python
false
false
1,712
py
main.py
import tkinter import argparse import globalVars from pages.home import Home from pages.load import Load from pages.create import Create class Main(tkinter.Frame): def __init__(self, *args, **kwargs): tkinter.Frame.__init__(self, *args, **kwargs) ## Pages ## loadPage = Load(self) cr...
a2a54e5c5f2f284dcddb00059e941f82d5c8808c
13a7ff9cbcf3aae4f744fa1c52bf1d23f84ea981
/webhook/admin.py
75a90f93fa354316933cfd59fda0eacc3accf4ca
[]
no_license
patchcom/webhook-example-web
14ef40a52f176d2b96a4293d2ac8e64d0076b863
cbfb20bbb8cd86f78ef03a23a5047d8bb03b58fd
refs/heads/master
2022-05-27T15:45:42.271020
2022-05-18T18:09:39
2022-05-18T18:10:05
175,617,879
0
0
null
2022-05-18T18:10:06
2019-03-14T12:30:02
Python
UTF-8
Python
false
false
719
py
admin.py
# -*- coding: utf-8 -*- # @Author: Aniket Maithani # @Date: 2019-03-14 13:24:06 # @Last Modified by: Aniket Maithani # @Last Modified time: 2019-03-14 14:22:11 from django.contrib import admin from .models import WebhookData class WebhookDataAdmin(admin.ModelAdmin): ''' Admin View for WebhookData ''...
6970d02c4a56b495968b74e38fe10cf62286a7c8
2950dffeea0e90232513e278f8af89dcc0ac18ee
/video_flow.py
9ae169fbfe563b0c7666613b71a7b356b289c72a
[]
no_license
chensheng1/IDS_detection
872e77605c7c15f871de26c9e7e3a4a9ae235c01
918cc031e975df72281bf4170cc5004ec4634337
refs/heads/master
2023-03-15T19:34:35.522430
2021-03-08T07:54:02
2021-03-08T07:54:02
345,572,743
1
0
null
null
null
null
UTF-8
Python
false
false
5,129
py
video_flow.py
#coding:utf-8 #!usr/bin/env python ''' 1.http取数据[1,12] 2.得到所需的文件id 3.对应conn.log取得流量大小 ''' from fileTraff import file_path from fileTraff import read_file from fileTraff import file_name import numpy as np import pandas as pd import MySQLdb import time from DBTraff import db_base from DBTraff import db_config im...
21c63b7f762e6ac2ecaea1dbd8bdaa4cec894096
426fc18fba40f427cb66761a5b66481f651cb514
/mysite/polls/views.py
ad91c8d8974a6f856a2d2e1d3101859dbd7c3256
[]
no_license
shadhin-int/django-poll-app
0109b2051eae368dd6532c108e950dfabf14a71f
3b70c94c2d23d55ae628604f1280dec87a03c6ee
refs/heads/master
2023-03-28T10:32:32.244088
2021-03-07T21:16:25
2021-03-07T21:16:25
340,157,652
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
views.py
from django.http import HttpResponse def index(request): return HttpResponse("Hello, This is poll app index")
f9092547b3b2a8f3cfd661619315f126522538e7
5bb7a90e385bff7952431d8e36c351a3a11ee211
/herencia_multiple.py
9f0291040dbcd1f708a23a3322c5895611db1c0a
[]
no_license
dampython/PythonGit
7e7a0ba9d3defad2c1efb295691c6200126c639a
e70a0e6d50519d7a7da5e4e2034d66234ba0da0a
refs/heads/main
2023-07-26T03:46:24.471568
2021-09-02T01:45:37
2021-09-02T01:45:37
401,942,458
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
herencia_multiple.py
class Mascota:#clase padre def comer(self): print('la mascota come') def dormir(self): print('la mascota duerme') class Felino: def cazar(self): print('El felino caza') class Gato(Mascota,Felino):#Clase hija pass #Si no pongo el PASS me da error y no deja guardar, m...
430431121fc102f0759153a3ef76a8d90225db9f
2a709241f80fcbaf8e79bf6ca539573cfb0b7d3b
/detection/cherry/train.py
a436df6b6d19e06e8930908107db655f8ec1a380
[]
no_license
Nordkaffee/vision
edcb1adfd91101ee6eeb557b958ae9d5d2b0f74f
e8e273b908670742471f1e4c03f10f1cb4d85a6d
refs/heads/main
2023-03-21T09:25:48.489363
2021-03-20T17:05:54
2021-03-20T17:05:54
349,777,587
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
train.py
import torch from dataset import Dataset, collate_fn from model import CoffeAI from vision_utils import utils from vision_utils.engine import train_one_epoch, evaluate if __name__ == '__main__': # params input_dir = '../../data/datasets/initial-dataset-labeled' checkpoint = 'checkpoints/pretrained.pt' ...
4f9c50b52ad35da0e0c5335864ed6b9ac195740d
45ea73115f79affcd5d3770fc49b8f94dee7e903
/python/palindrome.py
01323ba7cc85f0c10f4d891ebd3040a1bdab55cc
[]
no_license
Gamertoc/University-precourse
85033037a4536c7ee9974db2d26c78cd13f08d5e
feeaec10c45f2bfb4c72d8c5f3f1a77887f37641
refs/heads/master
2020-08-15T08:30:42.124899
2019-10-15T14:11:03
2019-10-15T14:11:03
215,309,320
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
palindrome.py
def palindrome_it(x): x=x.lower() for i in range(len(x)): if x[i] == x[-i-1]: continue else: return False return True def palindrome_rec(x): x=x.lower() if not x: return True else: if x[0] == x[-1]: x = x[1:(-1)]...
d7f33cd05a3b9fafa4d05f69975c7a909e2bb8db
26d6c34df00a229dc85ad7326de6cb5672be7acc
/msgraph-cli-extensions/v1_0/identitysignins_v1_0/azext_identitysignins_v1_0/vendored_sdks/identitysignins/_identity_sign_ins.py
f744a24c64bb2d9716917d8814d998dd0eff2899
[ "MIT" ]
permissive
BrianTJackett/msgraph-cli
87f92471f68f85e44872939d876b9ff5f0ae6b2c
78a4b1c73a23b85c070fed2fbca93758733f620e
refs/heads/main
2023-06-23T21:31:53.306655
2021-07-09T07:58:56
2021-07-09T07:58:56
386,993,555
0
0
NOASSERTION
2021-07-17T16:56:05
2021-07-17T16:56:05
null
UTF-8
Python
false
false
8,834
py
_identity_sign_ins.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
03e87d64e801d99063da2b502fb6265d8e86c035
affdb6b5c7ce610e1b18fbecbf9eb2a18f048525
/cmd/main.py
048450c541d4e2ec1a334946a42e34574465fbc1
[]
no_license
noelmaxime/homemade_cmds
8d9e3422af27a95aca6bb7d170c1fd7814e19f8d
8b1d8e8daeeec6d8e7a18763cdc8b7170e1a15e5
refs/heads/main
2023-04-08T13:51:49.482864
2021-04-28T15:59:00
2021-04-28T15:59:00
296,061,320
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
main.py
import os from funcs import * cmd_line = list((os.environ['cmd_line']).split(" ")) val_args=["status" , "rm" , "push" , "def" , "init", "add"] param=cmd_line[0] args=cmd_line[1:-1] if param not in val_args: print(param + " is not a valid argument." + "\n" + "Type 'cmd --help' for help") else: if param=="add": ...
5322901d30161357ffe640ed29b6a12ec69b631a
e923973353c751df199233a78a9ae8542dd4d539
/bitbots_body_behaviour/src/bitbots_body_behaviour/actions/align_on_ball.py
c4626864aeb99627e05f6f3f221218cd21572376
[ "BSD-3-Clause" ]
permissive
TAMS-Group/bitbots_behaviour
0a55f0dbc929349fd657d5f03d9c51dbcaaadb60
84f713060e6be0803dff1bc3df1bdef49bef02e3
refs/heads/master
2020-03-29T12:24:13.302877
2018-09-21T14:51:03
2018-09-21T14:51:03
149,897,895
0
0
BSD-3-Clause
2018-09-22T17:02:23
2018-09-22T17:02:22
null
UTF-8
Python
false
false
810
py
align_on_ball.py
# -*- coding:utf-8 -*- """ AlignOnBall ^^^^^^^^^^^ .. moduleauthor:: Martin Poppinga <1popping@informatik.uni-hamburg.de> """ from bitbots_stackmachine.abstract_action_element import AbstractActionElement from bitbots_body_behaviour.actions.go_to import GoToRelativePosition from humanoid_league_msgs.msg import HeadMo...
fa3cec0781b9ca5c1d99a7500748104d7cdce631
a5d9a214fb862a6146032aaf879c0a2f7b0c489f
/Song.py
fe5fc5b77c764e14a8d543b889ff54e041437bcd
[]
no_license
huyan0/lyricbreak
06195fe9c859fea8e3a2fe67f4de2178191b85b4
e0fb5dae21e695a45ab3bdceefbea6dcbda0f59c
refs/heads/master
2022-11-08T18:28:50.413863
2020-06-17T14:50:37
2020-06-17T14:50:37
272,995,356
1
0
null
null
null
null
UTF-8
Python
false
false
909
py
Song.py
import json import jieba import util from pypinyin import pinyin, Style class Song: def __init__(self, songName, artistName, lyric): self.songName = songName self.artistName = artistName self.lyric = lyric self.phrasePinyinDict = util.lyricToPinYi(self.lyric) def getSongName(se...
089bdd6d68a69aff6f3c11f7f5ffb75aed73cd24
9b54d522406dedd753d0581eb3d7195ec5ea0d47
/DrawShape.py
b1086bba955e3f0c0b35eccf5267edd7f8c737ca
[]
no_license
yinzanxia/dna_info_process
c65b4029ecbf08732fe3feeb34bf2ab9de1bae90
f344a67de6b12a80920611355f7e396375728cb8
refs/heads/master
2020-03-22T20:01:57.735775
2018-08-06T08:49:04
2018-08-06T08:49:04
140,568,564
0
0
null
null
null
null
UTF-8
Python
false
false
5,370
py
DrawShape.py
# -*- coding: utf-8 -*- """ Created on Fri Jul 13 14:52:03 2018 @author: mayn """ import matplotlib.pyplot as plt import DNA_Object import json def draw_area(dna, room): area_center, area = DNA_Object.get_room_area(room) plt.plot(area['x'], area['y'], linewidth='0.5', color='k',) plt.xlim((-15000, 20000...
50a4084dd3028acc2e6788e77794c100efcb3fac
85d842e97c9d998ea12d12b7174ad34412254a0b
/DQN/agent.py
973896aae56325ffe590835b1f8cc1c8631b27f0
[ "MIT" ]
permissive
mahkons/RL-algorithms
e9d6699f829fb9fd0273c03b301106b21cd095e4
bc5da6734263184e6229d34cd68f092feb94e9a3
refs/heads/master
2023-03-28T22:38:52.069917
2021-04-08T19:20:29
2021-04-08T19:20:29
334,914,488
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
agent.py
import random import numpy as np import os import torch class Agent: def __init__(self): self.model = torch.load(__file__[:-8] + "/agent.pkl") def act(self, state): state = torch.tensor(state) with torch.no_grad(): return self.model(state.unsqueeze(0)).max(1)[1].it...
de704bffe2e23a8a83d34204e325b7fb2454ef66
57256100d1995ae937ca0cf289125f5994b27bc1
/networking_vsphere/utils/vim_util.py
9b5f6fe36af46b0d2f135400b43f7bf1c0b4479f
[ "Apache-2.0" ]
permissive
Mirantis/vmware-dvs
940d48b3b0fa368d4820e773dbaaf2f7b2dbba97
37b874f9bf40b47d0de231c640367275fb3afb9b
refs/heads/master
2021-01-23T19:26:10.589379
2016-10-04T12:14:48
2016-10-04T12:14:48
34,460,746
8
19
Apache-2.0
2020-02-26T11:50:56
2015-04-23T14:19:25
Python
UTF-8
Python
false
false
14,899
py
vim_util.py
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # 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/LICEN...
0b0eebd31d822ff5c1b951c3ee213f58a3a13aa0
6df78dad28118623d5281cf25470240712d82834
/mixly_arduino/mixpyBuild/my_common.py
1d4fbeae9211a141c68e115f02365e7ac9cc12ef
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
HackEduca/Mixly_Arduino
b2289941584c8abf7db5d8380d27837eb736b159
e19d59561f2729a6767731c0ad6b03a6f8086b53
refs/heads/master
2020-09-07T05:04:01.601407
2019-11-09T06:35:58
2019-11-09T06:35:58
182,799,795
1
0
Apache-2.0
2019-04-22T14:05:03
2019-04-22T14:02:40
C
UTF-8
Python
false
false
830
py
my_common.py
#coding=utf-8 # """ my custom common module """ import json import base64 # sdk账号信息 APP_ID = '10676432' API_KEY = 'Hy1D1urUTdXzTOzqr9LeN3gc' SECRET_KEY = 'foS4GMg2w3QZtO9XNoSQF17Kkk007xWk' def print_json(obj): """json格式打印信息 Args: obj 待打印的对象信息 """ print(json.dumps(obj, ensure_ascii=False)) ...
68e09f72e8338efbef108ffd0c93eff067bf7b07
2177cad4601dff84ce9e9f6ccd59051a5c4fc5dd
/test/testMusic.py
a414940c4c96bb5752fb9ce31406f2734ba5a6de
[]
no_license
kirina001/musicPytest
4eaaae63547fe7e48d5040f3202bb6a2ab2cd6ce
cb3e488be7fa7b7036a169029eb095866773eb48
refs/heads/master
2020-07-12T17:09:04.260323
2019-08-28T07:32:55
2019-08-28T07:32:55
204,869,970
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
testMusic.py
# -*- coding: UTF-8 -*- from keywords.httpkeys1 import HTTP http1 = HTTP() # ip = '10.68.170.184:8080' ip = '10.68.170.184:8080' http1.post('http://'+ip+'/music_download/api/login','username=admin&password=123456') # http1.savejson('result','id') # http1.get('http://47.101.197.102:8080/music/api/user','{id}') # dat...
2af8677e76b77b9bfa579012a85ea331c0c7f390
d0227639cbe42193209ed83bbadd58fc344e5a5c
/SUTD_IEEE_Kivy_Workshop/Kivy_workshop_1/floatlayout.py
bf96f60d74f22081d92e62616557ef1867c41ddf
[]
no_license
SUTD-IEEE/workshop-resources
de438ab85c71b51ef0f8ca68b3ebcf1f1c920b66
e2131672880351b446b2edcbaea33f6e381917a8
refs/heads/master
2023-05-11T19:55:31.219026
2019-10-16T14:34:33
2019-10-16T14:34:33
158,399,332
0
1
null
2023-05-01T21:16:16
2018-11-20T14:07:58
Python
UTF-8
Python
false
false
270
py
floatlayout.py
from kivy.app import App from kivy.uix.floatlayout import FloatLayout class LayoutWindow(FloatLayout): pass class floatlayoutApp(App): def build(self): return LayoutWindow() if __name__== "__main__": display = floatlayoutApp() display.run()
0d20b75bcc87db8f3e4bdd9d6448cc44c979de1d
3eda8f0935196ec6fbf9aac4e4507de277df211c
/3-多重背包问题/划分.py
9f88f9bcf7cb3f2871c818e4576f3fc92d30f397
[]
no_license
my-xh/KnapsackProblem
b125c1aff05f7009886f8bb1e3ae717e64ef6aa6
833286daced0ee70a1704d0030673ed9e97b08a9
refs/heads/master
2023-05-08T07:30:51.099397
2021-05-31T15:32:15
2021-05-31T15:32:15
371,337,696
3
1
null
null
null
null
UTF-8
Python
false
false
2,475
py
划分.py
""" 问题描述 玛莎(Marsha)和比尔(Bill)拥有一系列大理石。他们希望将藏品分开,以使两者获得相等的份额。如果所有的大理石都具有相同的价值,这将很容易,因为那样他们就可以将收藏品分成两半。 但不幸的是,有些大理石比其他大理石更大或更漂亮。因此,玛莎(Marsha)和比尔(Bill)首先为每个大理石分配一个值,即一个介于1到6之间的自然数。 现在,他们希望对大理石进行分割,以使每个大理石都获得相同的总价值。不幸的是,他们意识到以这种方式分割大理石可能是不可能的(即使所有大理石的总价值是均匀的)。 例如,如果存在一个值为1的大理石,值为3的一个,值为4的两个,则不能将它们拆分为相等值的集合。因此,他们要求您编写一个程序来检查...
264896da4d92797b9f31e28c19a2e315efff815a
c59d1104ea8f74b1a0fb51efc592584e21b33cc8
/exchange/migrations/0005_auto_20170826_2131.py
b508b6f27ec211db9891acd80b53e0dfe9ec7332
[]
no_license
whitemaster/adhack_2017
fc163f1b4d45351ad3847e6ef5e00d26e915339b
ec035b21860e44bf5c7fc8f46386395b8a9df4d1
refs/heads/master
2021-01-20T06:14:56.702435
2017-08-27T11:57:13
2017-08-27T11:57:13
101,494,722
0
0
null
null
null
null
UTF-8
Python
false
false
1,918
py
0005_auto_20170826_2131.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-08-26 21:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('exchange', '0004_auto_20170826_2120'), ] operations = [ migrations.AlterMod...
63a2258bf0ed779254b68a683e3d30e9fb356b1f
28c415365baea6e6879cdb82b42646a8e4ff4c1f
/controle/admin.py
16a84ec91cc20ca4e655e1038a698780669b2a8a
[]
no_license
Francislley/farmacia01
16a45f28d1a49fd58081d4c7eeba91812c01d3e3
2f2a2d8cd504e3dd60905f0cd5ddf9ae8cbfbb51
refs/heads/master
2021-05-05T10:25:09.348031
2017-07-01T15:05:59
2017-07-01T15:05:59
117,964,577
0
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
admin.py
from django.contrib import admin # from .models import Usuario # from .models import Lote # from .models import Fornecedor # from .models import Cliente # from .models import Medicamento # from .models import Medicamento_Entrada # from .models import Medicamento_Saida # Register your models here. # # class UsuarioAdmin...
1abaa7b7873e0e5cbc26d5b5f038fba6b047fd72
f0433c0bf669e1131d42df100e86843d50b4d568
/soundboard.py
456f293051300c09794038efb0fea20349143755
[]
no_license
Dylan7675/soundboard
a590e8e7de029bab98fb887a96ab065578e4445e
54194a0723ccc7afec3a6c0947eae517fb589d54
refs/heads/master
2020-09-07T18:48:19.861423
2020-07-23T06:15:57
2020-07-23T06:15:57
220,881,985
0
0
null
null
null
null
UTF-8
Python
false
false
16,522
py
soundboard.py
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QWidget, QVBoxLayout from playsound import playsound import sip from pathlib import Path import os.path import json import glob from collections import OrderedDict class Ui_Soundboard(QWidget): def setupUi(self, Soundboard): Soundboard....
019507c24fe734780b65660022cec82e44ce9791
f41309da5e0d26b24d974a009fa309a02fcaa20c
/aws_ec2_policies/aws_ec2_ami_approved_tenancy.py
05b3efc41d90ef5911cb78e0d84df40500cf4728
[ "Apache-2.0" ]
permissive
georgeSkoumas/panther-analysis
2e1e87f83c6533cb6d62ecb62e3f61b2ff4b5ed4
30b21c270504bf7c84f99207c9c6c2f6110843ae
refs/heads/master
2022-09-14T13:22:31.786275
2020-05-26T16:18:58
2020-05-26T16:18:58
267,569,230
1
0
Apache-2.0
2020-05-28T11:15:05
2020-05-28T11:15:04
null
UTF-8
Python
false
false
469
py
aws_ec2_ami_approved_tenancy.py
# APPROVED_TENANCIES maps AMI IDs to a list of approved tenancy states for that AMI. # The possible tenancy states are dedicated, host, and default APPROVED_TENANCIES = { 'EXAMPLE-AMI-ID': ['default'], } def policy(resource): # Check if this Instance's AMI has a required tenancy setting if resource['Image...
cd6e529e650afa79d279237f652ac13e44afebf5
6da54b1b4644c66a49d4c7cc50502cd5e871f431
/jupyter_notebook/Logic_gate.py
198dd8b4ea5a233a5cd02309e4477000b30b844e
[]
no_license
nuaajc-lab107/xilinx_Digital_circuit_experiment
9c1bd7361fc4561b2d2a32decd82f7637f651d36
d229ff2ded2f69dce525f9be0486f0db980e7493
refs/heads/master
2023-01-30T09:37:09.109695
2019-07-17T06:42:55
2019-07-17T06:42:55
319,534,430
0
0
null
null
null
null
UTF-8
Python
false
false
4,419
py
Logic_gate.py
import time def not_gate(ledbar,buttons,leds): done = False led_state0 = False led_state1 = False ledbar.reset() while not done: if (buttons[0].read()==1): led_state0 = not led_state0 leds[0].toggle() time.sleep(.3) if (led_state0 == True): ...
ffe2b96410421eb592f349d82612f90af66b022f
694d57c3e512ce916269411b51adef23532420cd
/interview_qa/snapchat/44wildcard_matching.py
bd126bb5c6bc95b809d5a14e58687dae45ddd8e4
[]
no_license
clovery410/mycode
5541c3a99962d7949832a0859f18819f118edfba
e12025e754547d18d5bb50a9dbe5e725fd03fd9c
refs/heads/master
2021-05-16T02:46:47.996748
2017-05-10T23:43:50
2017-05-10T23:43:50
39,235,141
1
1
null
null
null
null
UTF-8
Python
false
false
1,699
py
44wildcard_matching.py
class Solution(object): # solution1, recursive solution def isMatch(self, s, p): def check(s_i, p_i): if s_i == len(s) and p_i == len(p): return True elif s_i < len(s) and p_i == len(p): return False elif s_i == len(s): ...
5097b01f15c9d79d6117f446983f5ad763d36431
41a62adf525e04c50ff2f1461ab74f3eefe45bb3
/tests/test_imgproc.py
d44943e48a05875475e8683f6bf901f254be5c20
[]
no_license
jameslee98331/METIIB-CUH-LP
6b009aa52131d78574c85f907be2b3b2279d2b54
7d7baaad9162cc07ced3eb7b4530cda2e113a183
refs/heads/master
2022-07-22T10:57:19.945109
2020-06-05T17:45:12
2020-06-05T17:45:12
246,642,846
0
0
null
2022-06-22T01:58:36
2020-03-11T17:55:34
Jupyter Notebook
UTF-8
Python
false
false
881
py
test_imgproc.py
import numpy as np from collections import namedtuple from data_processing import imgproc def test_crop(): test_img = np.asarray([[(1, 2, 3), (2, 3, 4), (3, 4, 5), (4, 5, 6), (1, 2, 3)], [(2, 3, 4), (5, 6, 7), (1, 2, 3), (1, 2, 3), (4, 5, 6)], [(4, 5, 6), (7, ...
8b32647159c9cb288a03355b0ecd0272d309f660
3496f9d6ab2c87b03023fbce36e32d4f409238ed
/commander/management/commands/fetch_new_or_modified_requirements.py
071a7fc94401593c0d6246456bfb876794be8b23
[]
no_license
msthakkar121/SmartAI
b029c78d4817b7bae0b3217de7812c5b7c33495b
c52a89a7c27a5aa3f770119405573f125303dd30
refs/heads/master
2023-01-06T10:54:08.615206
2020-11-06T09:08:21
2020-11-06T09:08:21
275,309,733
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
fetch_new_or_modified_requirements.py
__author__ = "Mohit Thakkar" from django.core.management.base import BaseCommand from knight.py_scripts.fetch_new_or_modified_requirements import FetchNewOrModifiedRequirements from datetime import datetime # python manage.py fetch_new_or_modified_requirements class Command(BaseCommand): help = """ Command ...
3cfc304b627b1eb17b34e7e2971cb540a2afef5a
b10fd92ec137e324974d90e54eec8790e3944214
/stanCode_Projects/hangman_game/hangman.py
9f67f436dc19cee43dff7f2a08610c2bf622cdc2
[ "MIT" ]
permissive
kunyi1022/sc-projects
da1d8476106373f98b26e086c1aea20158f4b6f9
0ab0019b2cdc86c434a0acff39b862263dcbc970
refs/heads/main
2023-04-05T22:28:47.287581
2021-05-04T12:32:15
2021-05-04T12:32:15
364,222,637
0
0
null
null
null
null
UTF-8
Python
false
false
4,513
py
hangman.py
""" File: hangman.py Name: 林坤毅 Jordan ----------------------------- This program plays hangman game. Users sees a dashed word, trying to correctly figure the un-dashed word out by inputting one character each round. If the user input is correct, show the updated word on console. Players have N_TURNS chances to try and ...
b968d69208437826d93b472585a0e5811c63db01
29addfb01892932ed3c03fc46b3c7b1417d33d74
/题32.2-分行从上到下打印二叉树.py
2013f774b9c01d02196d66b75eb8f6bc7d0dca40
[]
no_license
Mapleleaff/Sword-refers-to-offer
17410fa63f10f906a66adbffbdd021f6d37930d5
e744c3388762e9bb6f7a826af00fd64916e1ab3f
refs/heads/master
2020-07-12T04:00:09.119028
2019-12-19T15:19:02
2019-12-19T15:19:02
204,712,335
2
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
题32.2-分行从上到下打印二叉树.py
""" 题32.2-分行从上到下打印二叉树 从上到下按层打印二叉树,同一层的节点按从左到右的顺序打印, 每一层打印到一行 """ class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def levelOrder(self, root): if root==None: return root result=[] queue = [root] ...
8460c31c5f19f99364e7a5f936009d30c59cdef5
c1d402858ebefd401ea626e87fea561db2dfe1ae
/opdrachten/Tkinter NS API.py
7c34d521e3dea51272bfe0e7cf960ebdecf438e7
[]
no_license
janpaul1999/Prog_V1P_jan_paulvanderMoolen
5dc68ea0a8e1aa4979961eae8261e13aa024211c
d3a3447d44838e38e5ec8461da3307e7e9f61471
refs/heads/master
2020-03-29T05:10:16.121193
2018-10-20T16:23:25
2018-10-20T16:23:25
149,570,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
Tkinter NS API.py
from tkinter import * import math import requests import xmltodict def station(): Gebruiker_station = entry.get() auth_details = ('janpaulmoolen99@gmail.com', 'BL03juvmVIkzP65x1p8F4iTokVclbRUFv04Icuejr3GW45fGPLsnEA') api_url = 'http://webservices.ns.nl/ns-api-avt?station={}'.format(Gebruiker_station) r...
3b6ad85d9ec524e4d897228ce877278a1666e639
8a8b0267c4db8847a898ac73ccb6e78e1744e24c
/fundamentals/ppf-ex04/even.py
aa25d61844d7e473e89cc8138032249b35c80f58
[]
no_license
entirelymagic/Link_Academy
41ba890df6793924d186ea94dc8d13b0636c6679
844c39ff1281fae8406cd1a0dc06afd357f0bef3
refs/heads/master
2023-06-07T03:17:00.527924
2021-07-03T09:59:25
2021-07-03T09:59:25
314,755,255
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
even.py
print("Enter number?") num = int(input()) result = num % 2 while True: if result == 0: print("Numarul este par.") else: print("Numarul este impar.")