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
54f78f476176d4baf8a09e783661e494dedfd65a
c0f5fa7a08b5987050ec984e640cce7d1da196c9
/workflows/align_QC/Snakefile
fafb311d483ff636ffcf874e7e204fd0c6da9c84
[]
no_license
kkchau/RNAseq_Pipeline
30d6113ba520eb96d0a559b561943069f09d7fca
6195bf838a8be1078ca0723f0550e88a9e1aca08
refs/heads/master
2020-04-27T09:12:21.765573
2019-06-14T23:48:32
2019-06-14T23:48:32
174,204,882
3
2
null
2019-06-14T23:48:33
2019-03-06T19:11:34
Python
UTF-8
Python
false
false
6,394
Snakefile
""" __authors__: Kevin Chau, Hanqing Zhao __date__: 2019-04-17 __description__: This file contains rules for RNA-Seq quality control of the BAM files after alignment, using picard tools, featureCounts, and samtools. """ import os configfile: "../../config.yaml" # Sub-Workflows subworkflow alignment: workdir: "../a...
2a34a36bfc7cbde3e72726c5c5570b813a940e76
51b7b81cce1e8943926c531ad8763af8fd4074dc
/4963_4.py
aff5f26ca6cb0e0112cec6cf6a79966af2ad1efc
[]
no_license
goodsosbva/BOJ_Graph
f65598591b07ea2f637cba2644bdc81386afb36e
34fe8bfec0543d9884869fe5ebbb536c6fcc3fbf
refs/heads/main
2023-03-22T08:14:53.735351
2021-03-07T09:22:39
2021-03-07T09:22:39
338,587,428
1
0
null
null
null
null
UTF-8
Python
false
false
917
py
4963_4.py
# import sys # input = sys.stdin.readline # 오, 왼, 아래, 위, 대각 위(오), 대각 아래(좌), 대각 위(좌), 대각 아래(오) dx = [1, -1, 0, 0, 1, -1, -1, 1] dy = [0, 0, -1, 1, 1, -1, 1, -1] while True: r, t = map(int, input().split()) if r == 0: break rectangle = [list(map(int, input().split())) for _ in range(t)] ...
ccc12898b45e29d969bde3d1a41a92a5b58f3ed1
3178d266e41ed87ed0de65154e211ec582bda0af
/save_files.py
9cd35da816bb91c38e0f774ebaf629232f8a4873
[]
no_license
PythonBotz/PythonCodeBot
9ed5579dc7fbd02f7020167f00dea5508868a822
c3c7db8c86143296d21676ea0b9182c1e569672a
refs/heads/master
2022-04-22T00:25:45.094386
2020-03-29T16:27:47
2020-03-29T16:27:47
163,767,389
0
0
null
null
null
null
UTF-8
Python
false
false
4,821
py
save_files.py
import discord from discord.ext import commands import asyncio import inspect import os bot = commands.Bot(command_prefix=("p!")) @bot.event async def on_ready(): await bot.change_presence(game=discord.Game(name="p!help")) print("Logged in as") print(bot.user.name) print(bot.user.id) @bot.event async def on_mem...
56d7574cd1113c69facb2016612562812a25e736
b4b59f8aaaeac2b84d2c96866e66166d330b9923
/yandex/cloud/billing/v1/sku_service_pb2.py
632a95a862e7964168a4fb047592451cc6bbda2c
[ "MIT" ]
permissive
yandex-cloud/python-sdk
fd6d78dbbc0871edaa7b694ddb283f86d8d94546
b906a014dd893e2697864e1e48e814a8d9fbc48c
refs/heads/master
2023-09-01T08:51:07.230913
2023-08-29T04:03:42
2023-08-29T04:03:42
151,569,903
63
27
MIT
2023-08-17T12:32:25
2018-10-04T12:43:07
Python
UTF-8
Python
false
true
4,207
py
sku_service_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/billing/v1/sku_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import s...
1f0902b7e481932814416026ef54d0249d5c06a0
ab9e902876d4174c0daeffe033e63256673e4d58
/syst/views.py
c24f182083cd426a8fab17ef05156c97cca7fd9d
[]
no_license
byteioo/raspi
108cef0e56841060b413c4f7013c15d8955f21dc
c2d8714ccab890e4491f646ab79da6239afa5a36
refs/heads/master
2020-05-23T04:59:57.350769
2019-05-24T14:52:15
2019-05-24T14:52:15
186,643,893
0
1
null
null
null
null
UTF-8
Python
false
false
337
py
views.py
from flask import Blueprint, jsonify,render_template from syst.pkg import sys_util sys=Blueprint('sys',__name__) @sys.route('/api',methods=['GET']) def sys_api(): return jsonify(sys_util.sysInfo()) @sys.route('/',methods=['GET']) def sys_index(): params = sys_util.sysInfo() return render_template('syst....
58092a7dd2889f37585c33125b50481ebd479840
1c30540301f3997ec2c1774548e55f4d0fa097eb
/ch5/osm-revgeo.py
f7015c060d9f8fba80dffc2b101b4bd605da76e6
[]
no_license
tamumisa/map
e935f85889f5d58d0bfbb4e1e2794712cf3dc2f7
181803e89171ff2bb81760f363ddd341a7ab60ec
refs/heads/master
2023-07-14T23:41:18.282486
2021-08-06T00:29:13
2021-08-06T00:29:13
392,900,351
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
osm-revgeo.py
import geocoder #緯度経度を指定 #pos = (35.46383,139.513031) pos = (35.659025,139.745025) #OpenStreetMapを使って逆ジオコーディング g = geocoder.osm(pos,method='reverse') print('Country:',g.country) print('State:',g.state) print('City:',g.city) print('Street:',g.street)
389d08c8e2bb6c8c964ced86cfde689a0b212bd6
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/OpenMetadata/ingestion/src/metadata/cli/openmetadata_imports_migration.py
5ea85621f8593d9008520037515db8109f8fadc2
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
2,806
py
openmetadata_imports_migration.py
# Copyright 2021 Collate # 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 writing, software...
0fbdff53820af89f9ecc3491dc93274c7809fc75
ff1940870191d56ea2d260dd117e7165449bb143
/solution/check_answers.py
7a3e3819a4ab9f1b47b693b07c9ab46ef06dedba
[ "MIT" ]
permissive
dikshya98/Python_self_assesment
840cf957d1395fa9feb73037868f6d803108f2da
550326e17cd639426548f9132a7130a1bd1629d1
refs/heads/main
2023-03-25T21:08:20.217393
2021-03-24T23:32:03
2021-03-24T23:32:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,424
py
check_answers.py
import os import contextlib from inspect import isfunction from io import StringIO def calculate_score(variables): """ Takes a dictionary of variables, most easily obtained with globals(). Checks answers to questions from variable values. Prints out percent correct and if the student passed. Also p...
1e59e0504860eebe6822a7680af37ce94e20b407
fbb5cb5a6ea6170b3cd2b9c86cb05e122edb629a
/matplotcheck/tests/test_timeseries_module.py
e8179bf53261551bf3e0bb825d5ef6060a5c1f96
[ "BSD-3-Clause" ]
permissive
nkorinek/matplotcheck
1df619ab23e201891e149fd0bda79f07da16f26c
2fd1273003cabe7f87ceb7dd6f5f9cc02e62b323
refs/heads/master
2021-07-15T16:31:50.921957
2020-09-08T18:15:59
2020-09-08T18:15:59
238,785,356
1
0
BSD-3-Clause
2020-05-14T19:32:43
2020-02-06T21:10:03
Python
UTF-8
Python
false
false
2,455
py
test_timeseries_module.py
import matplotlib.pyplot as plt import numpy as np import pandas as pd import pytest from matplotcheck.timeseries import TimeSeriesTester @pytest.fixture def pd_df_timeseries(): """Create a pandas dataframe for testing, with timeseries in one column""" return pd.DataFrame( { "time": pd.dat...
c6e1f400d2c100c728abd6cbbf63c6c59030e87d
f02bf676e5fea7a94814b5afaf46e762f1781489
/tests/test_queue.py
f1039d3ae79ccb955aa616862ca4ca40fefa878c
[]
no_license
PASTAplus/pastaplus_adapter
b514a0274eada7543fc742fbd7757b13c0e58940
369688ea41bf87dd27e50eb89376ce894dc828b1
refs/heads/master
2020-04-02T01:51:52.549760
2017-08-12T19:47:07
2017-08-12T19:47:07
83,488,157
0
0
null
null
null
null
UTF-8
Python
false
false
4,876
py
test_queue.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function """:Mod: test_adapter_db :Synopsis: :Author: servilla :Created: 3/3/17 """ from datetime import datetime import logging import unittest from event import Event from package import Package from queue_manager import Queue...
aadaa725d9f8b7104a4181fd9dc540afea3e0a1d
4cf9446350bc86ac277a4d130b9792ed82b896db
/17.py
fc3a033228f7820cec762fef564fc6756614c8ff
[]
no_license
tomeeeS/Advent2020python
e841c6d8992e8af493a590e6e85f90ea1d5001c8
3cb6cbc7764c00efd2bf3d64a197197b5b285999
refs/heads/main
2023-05-29T18:34:35.205733
2023-05-16T14:30:55
2023-05-16T14:30:55
351,878,898
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
17.py
# https://adventofcode.com/2020/day/17 # Conway cubes with open('17.txt') as f: # noinspection PyTypeChecker inputs = [ x for x in f.readlines() ] cycles = 6 input_size = len(inputs) xy_dim = input_size + (cycles + 1) * 2 # '+ 1': we need to index one farther for the calculation...
d7379ac92f287bdd28408912ff312936b8872924
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/202/202.happy-number.273421174.Accepted.leetcode.py
a6335a0a6e57bfe0bc509920e2a3438a7eda20fe
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
465
py
202.happy-number.273421174.Accepted.leetcode.py
class Solution(object): def isHappy(self, n): def calculateSum(n): sum = 0 while(n): tmp = n % 10 sum += tmp * tmp n //= 10 return sum slow = fast = n while True: slow = calculateSum(slow) ...
1682976c81aac14bfd16275b91c594f4020f62d6
20874841355a20ca99f3b8a3ebddd5a5bf1008d2
/bin/autocontrol_power.py
22cc239e3e33b3ab01ff41333fab4e7965a20136
[]
no_license
stefanthurnherr/sms-temperature-control
534d5d0ee8325d67327b16179166eb5089a5f19a
d11fc5c1c6569d03b23647de474c020b233f2ec8
refs/heads/master
2021-06-06T03:51:38.171721
2017-11-12T01:06:38
2017-11-12T01:06:38
19,188,134
0
0
null
null
null
null
UTF-8
Python
false
false
1,752
py
autocontrol_power.py
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import ConfigParser from systemutil import systeminfo from relay import PowerAutocontroller from temp import temperaturereader CONFIG_FILEPATH = '/home/pi/sms-temperature-control/my.cfg' # --------------------------------------------------------------...
9e724e354e165ea503d286e17b953a2ad9849663
f3bff02ad41fdcf1ba940e4c715d9db1adb0476b
/.python-environments/default/lib/python3.6/copyreg.py
57cdd5a33f695ac1ba1b3aacec62802d9f3fbe1b
[]
no_license
chongchonghe/my.emacs.d
f3517f1a829d5d7a3a37c4b7e227d966471d03b9
88ceb15e23e76be63a5805121ed0455c04f239d1
refs/heads/master
2021-07-11T17:28:55.207445
2021-03-06T05:06:46
2021-03-06T05:06:46
236,096,662
1
0
null
null
null
null
UTF-8
Python
false
false
54
py
copyreg.py
/Users/chongchonghe/anaconda3/lib/python3.6/copyreg.py
ea49b01f12d3af9d3e21d002a412af2a31f5eba1
d5390dfe1455480a1514c76ffebc501908298850
/nekmocom/settings/production.py
f8cac5d543b583898e19ec1edbea50d916ab8a5b
[]
no_license
Nekmo/nekmo.com
e3fd8b5cc50a9e49217367157ad44e74abf55e59
cf5b5b490f9a98f7a9617ce0d1b285b0635ccedd
refs/heads/master
2022-12-10T07:16:12.944057
2020-03-08T14:12:08
2020-03-08T14:12:08
58,417,550
0
1
null
2022-11-22T01:08:56
2016-05-10T00:37:58
CSS
UTF-8
Python
false
false
2,049
py
production.py
from .defaults import * SECRET_KEY = os.getenv('SECRET_KEY', SECRET_KEY) DATABASES = { 'default': { 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'nekmocom_postgres_1', 'NAME': os.getenv("POSTGRES_DB"), 'USER': os.getenv("POSTGRES_USER"), ...
42971260dd3535a3970ef4038c528f0a828b9860
f0ba9f91412fa01289ed44cfe2458572faa01646
/demo16.py
adc9839133c983055a9c03bdd758a3278858cf35
[]
no_license
leviliangtw/PYKT-MLLab
525525a831c816e124054110fba901b7fdf72aef
a217c23a9f743478e4d9b74e975087512b1ac3b0
refs/heads/master
2022-04-03T11:19:09.241260
2019-11-06T08:14:47
2019-11-06T08:14:47
219,650,431
2
0
null
null
null
null
UTF-8
Python
false
false
185
py
demo16.py
from sklearn import tree X = [[0, 0], [1, 1]] y = [0, 1] clf = tree.DecisionTreeClassifier() clf.fit(X, y) print(clf) print(clf.predict([[2, 2], [2, -2], [-2, -2], [3, 5], [5, -3]]))
4684594bb03f0a03a93cf683dd49eaa91b5d4c5b
48263fd96d1358ccebc4b691d62ebab1c2ac70d7
/backend-server/1.py
57769962f415037fcce89ae8594b792bc10dd5e6
[]
no_license
BaiqingL/Tech4Good-Hackathon
37bd2d6a9228aa0f72a4904322cd939282ccd1fa
5b83aaab53493d1840cd4b9c165d0c184dbfbbbc
refs/heads/main
2023-02-18T22:55:21.634002
2021-01-20T11:59:56
2021-01-20T11:59:56
324,498,441
0
1
null
2020-12-26T15:43:12
2020-12-26T06:45:33
Python
UTF-8
Python
false
false
123
py
1.py
from gtts import gTTS i = 0 while i<=9: tts = gTTS(str(i), lang='zh-tw') tts.save(str(i)+'.mp3') i = i+1
5b533554d17b9919a1531e94f57174ad2c70534b
af4aa2e443abaa39b802b57919e9d0c418d17cdd
/2017/Helpers/day_22.py
c98c501833cfd056f1a7fae08af4cf1a2b6c7cd0
[]
no_license
daverayment/aoc
902d414b15a2746bdec1bb40e9029891ca800066
c7e9b6249b4e9d95b9b0d14192818e9a1841f3fd
refs/heads/master
2023-02-08T10:48:23.103729
2020-12-26T05:26:02
2020-12-26T05:26:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,919
py
day_22.py
#!/usr/bin/env python3 def get_desc(): return 22, 'Day 22: Sporifica Virus' class Infinity: def __init__(self, default="."): self.default = default self.grid = [[default]] self.x = 0 self.y = 0 def get(self, x, y): x += self.x y += self.y if x < 0 ...
50c5d5099f916009c3b38a5443aeef274441a171
90f47c4cea4a5104fe1f67bb6c72306786ad03b5
/backend/users/tests/test_users_models.py
fde85b066d21eff15c907d42c2a480758b2cab1a
[]
no_license
jdlee6/Archivum
e4055d7cfcc60a90ea2591ae0f057bcb6354497b
d7631f78e1cac864d3574a8eb003faf7a590fff5
refs/heads/master
2023-01-05T19:23:27.432747
2020-02-18T16:58:28
2020-02-18T16:58:28
229,500,495
2
0
null
2023-01-05T04:51:37
2019-12-22T00:39:39
JavaScript
UTF-8
Python
false
false
762
py
test_users_models.py
import os from users.models import Profile from django.test import TestCase from django.contrib.auth.models import User from django.core.files.storage import default_storage as storage from PIL import Image class TestUsersModels(TestCase): def setUp(self): self.user = User.objects.create(username='new_tes...
be8a80e35459a56d90522e9ba04ebe5792b5f51e
1114f05eb8ccc2a8ffdb0867435d9e83c994f221
/utils/trace_utils.py
6cb1a29f8962e5b87fdb63f193d42181bf830782
[]
no_license
GCGWCP/fschk
aae6fe864a9863e37ecdc142141cc7dc257bf1bf
f8faf8a864e02c1b00d900a23419462528e96900
refs/heads/master
2021-07-16T02:26:27.571118
2017-10-20T22:26:06
2017-10-20T22:26:06
107,732,301
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
trace_utils.py
#!/usr/bin/env python import psutil import socket import os from ctypes import struct def ip2int(addr): return struct.unpack("!I", socket.inet_aton(addr))[0] def int2ip(addr): return socket.inet_ntoa(struct.pack("!I", addr)) def get_listening_conxns(): conxns = psutil.net_connections() listening_...
02126a1866d453e45279bef9cb69967fe5a6e74e
0957af54805c2e89d0d5c82514d2241edac5c273
/alembic/versions/7d62ca2376df_add_data_analysis_field.py
e67fc2a963adff329bf4f109d2f99f43d80e3eca
[ "MIT" ]
permissive
Clinical-Genomics/trailblazer
9e41855e1a1fe08b6d398539a3999057ae1df583
cfb78a5fa273db47ea8f88a31daf6cf559b46fce
refs/heads/master
2023-08-22T21:02:27.477990
2023-08-21T08:37:09
2023-08-21T08:37:09
64,742,531
5
6
MIT
2023-09-14T12:18:19
2016-08-02T09:15:13
Python
UTF-8
Python
false
false
890
py
7d62ca2376df_add_data_analysis_field.py
"""empty message Revision ID: 7d62ca2376df Revises: 0829dd9c54d7 Create Date: 2020-10-22 11:33:34.572234 """ # revision identifiers, used by Alembic. revision = "7d62ca2376df" down_revision = "84079287ee2f" branch_labels = None depends_on = None import sqlalchemy as sa from sqlalchemy import types from alembic imp...
8c220a0ef28e15149393816512e55df11ed723c8
38565f8a6ae2bb1639f2a503aad2996e4b9c8a05
/w08/d1/intro-to-django-models/instructor/catcollector/main_app/migrations/0003_delete_dog.py
1d10573f1d8d10cc4ac6b88376e600b385515f6c
[]
no_license
rashmika13/sei
aa252a6ce50158fd76bbad9bfcaaea7ca5cb0b5a
ff182ab6de640341c6ed65d595033b9f52e4ed3a
refs/heads/master
2022-12-08T14:40:18.171980
2020-09-04T02:30:52
2020-09-04T02:30:52
292,730,798
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
0003_delete_dog.py
# Generated by Django 3.0.5 on 2020-06-29 14:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main_app', '0002_dog'), ] operations = [ migrations.DeleteModel( name='Dog', ), ]
6e847747522155dbb39d6e1341c0d2583165b55d
21cc08e20707d146e49c30ac2715c3c73111e56b
/src/afm_data_correction.py
d881399f728807bb8c626d8f52583f60f61cb7ef
[]
no_license
HarmonyBaby/Python_stm32f4_control
7d30c67d6e3a3b7944708a5cb66ff73ef9d55da2
b43c0c1efeccab45dc70df781700030f99143fcf
refs/heads/master
2021-07-21T21:02:57.614200
2014-07-01T12:48:37
2014-07-01T12:48:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
afm_data_correction.py
#!/usr/bin/env python import sys import os import string import numpy as np num_err=10 def str_to_array(dataline): str_array=dataline.split() size=len(str_array) num_array=np.zeros(size,dtype=np.int32) i=0 while i<size: num_array[i]=string.atoi(str_array[i]) i=i+1 return num_array def array_to_str(array): ...
874f5f65d1788eb32618f2f793cdc987d5259a66
69f6aa4a6e24d292035fb08842f63e153e26c178
/1.py
538aca6782ec1f8033fe720c7be3e9d2c989e6b8
[]
no_license
metawise/Exported-bookmark-convert-to-JSON
e7498cbcfb217d8d0ab8b28fa349d8a64daf3e4a
51c0d7b98d3f0f5865eba4eec31028ba61c8ea07
refs/heads/main
2022-12-29T13:47:20.607964
2020-10-20T02:50:50
2020-10-20T02:50:50
303,787,238
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
1.py
from bs4 import BeautifulSoup def parentLinks(): content = {} with open("favorites_9_1_20.html", "r", encoding="utf-8") as file: soup = BeautifulSoup(file, "lxml") # clearing empty p tags for x in soup.findAll(): if len(x.get_text(strip=True)) == 0: x.extract() body = ...
809c022b0865bef19d26dc48c916a2294359a323
1e500d80b65f11344eb4c33ad91f678601a195c2
/manual_drive_mode.py
0fefbb74035bb918893b51419eafe01f45208aee
[]
no_license
calzzone/goto-diy
2aca761116cd9c8c8d3a597335db4535f9ec82b3
3c9cd5640a9be187d0d0e7f234411b1067738611
refs/heads/master
2023-03-20T21:53:08.767889
2021-03-20T08:07:34
2021-03-20T08:07:34
284,269,471
2
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
manual_drive_mode.py
from time import sleep from getkey import getkey, keys from datetime import datetime import os #print (os.path.abspath(os.getcwd())) import signal import sys from threading import Timer from readchar import readkey import string import math import ephem from ephem import * from print_functions import * from backu...
ba98f99cc530ebe345fa465ad902fa0ea100e2c9
414deeddfe6b67833b4dcfc77b943297102bde5b
/redes.chat/src/conection/conection_tcp.py
cacb3d0e93ca387e4dc3e2edd9bdccc6c5474bce
[]
no_license
S1lv10Fr4gn4n1/college-works
5298d5b21f0135ab63cf7ea78af015022679e579
a94f783c1e4c88b7d0ac39f2714be5d48321ab10
refs/heads/master
2021-05-27T14:02:11.090729
2012-08-03T14:40:04
2012-08-03T14:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
conection_tcp.py
#!/usr/bin/env python #-*- encoding: iso-8859-1 -*- import socket class conection_tcp: # padroes do python # - Colocado "_" para indicar variavel privada # porem nao existe nivel privado no escopo do python # - Nao é feito set's # - Separador de palavras _host = None _port = None _tcp = None def __ini...
bd568ae7af1b61884a0735c76751d92973baa073
efa68ef6b84be46be70912b91906eb3eb3df37a4
/cleaner.py
715acd908bd31b4ec8a67509d1cbaaae9fc57696
[]
no_license
aman-cpu/Automatic-File-Separator
7bff46e8f892cd44ce96a746fa41aaee46b48a11
6857bdd46b703eeea52a1ac95d26610d58bb8994
refs/heads/main
2023-03-12T07:18:24.461198
2021-03-01T04:56:50
2021-03-01T04:56:50
343,294,928
0
0
null
null
null
null
UTF-8
Python
false
false
2,881
py
cleaner.py
from tkinter import * from tkinter import messagebox, filedialog import os from tkinter.scrolledtext import ScrolledText root = Tk() root.title("Welcome to Python Automatic Cleaner") root.geometry("500x500") def browse_button(): global folder_path currdir = os.getcwd() tempdir = filedialog.ask...
f3b07b1bf1fd4c400f9882b1c0fa64b980b30e9a
54a7eb767e90c0100b9f34da23248018f62fcee0
/examples/moon/moon_application.py
a7022c5a37351439e9b0ffb122c8fd4142a85c79
[ "MIT" ]
permissive
tfqKR/prevision-quantum
631868e387edefa9a633949870d42abb31c3fe39
93287afa48486ccfaf175bf9449fd507d99759c0
refs/heads/master
2023-03-13T22:07:49.342457
2021-03-04T08:54:02
2021-03-04T08:54:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
moon_application.py
from sklearn import datasets from sklearn.model_selection import train_test_split import prevision_quantum_nn as qnn if __name__ == "__main__": # prepare data X, y = datasets.make_moons(n_samples=200, noise=0.05, random_state=0) x_train, x_val, y_train, y_test = train_test_split(X, y, test_...
bb8c28f58149eef7dd26524a698481b9f7e68827
4d08daa8990b81c4adabfd6faa5c18d1ba257e99
/apps/app/migrations/0001_initial.py
355e7e69e138f99eea4e334f9512640d845b3623
[]
no_license
kshitijrajsharma/linkedinScrapper
32645daf6bd895666a467ba5f8384e4f70c0293e
a0addbed79252dce7ef2d061f2c6d292ab970d8b
refs/heads/master
2023-08-14T16:27:23.189051
2021-09-20T14:38:08
2021-09-20T14:38:08
405,268,997
0
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
0001_initial.py
# Generated by Django 3.2.6 on 2021-09-10 06:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
085a0bc03ca20765315c247a6bcd5dd1e39f296f
17e60f61fc82e7369802a1c597b58b0206ad9bec
/lib/poolVirtual.py
3a2baa85de4e8a88b77e10daf66be7012a03636d
[]
no_license
SLB-DeN/opensvc
5e06d42947f51662fa16203a00670a88b9e1fea9
75baeb19e0d26d5e150e770aef4d615c2327f32e
refs/heads/master
2021-05-17T05:35:18.585791
2020-03-19T15:20:05
2020-03-19T15:20:05
250,651,667
1
0
null
2020-03-27T21:29:22
2020-03-27T21:29:22
null
UTF-8
Python
false
false
2,160
py
poolVirtual.py
from __future__ import print_function import os import pool import rcExceptions as ex from rcUtilities import lazy, justcall from rcGlobalEnv import rcEnv from rcUtilities import is_service, split_path, factory class Pool(pool.Pool): type = "virtual" capabilities = [] def __init__(self, *args, **kwargs)...
f47f545de38172e33a2b2ed5add5bdff3c9385b0
7b83957965c51781e997d2cdbcf0bd26a7059982
/oz/oz_database.py
744f837fafae38899fe2115e109a5fa53f9283ca
[]
no_license
drJabber/ozbot
7cd309546b684496594adcdffa90325bed1fddbe
eca1943e6dab5fcf08b099fb24beab3057138f50
refs/heads/master
2021-01-13T16:53:40.844299
2019-02-10T14:15:29
2019-02-10T14:15:29
80,359,082
2
0
null
null
null
null
UTF-8
Python
false
false
131
py
oz_database.py
from flask_sqlalchemy import SQLAlchemy from .oz_application import app db=SQLAlchemy(app) from .models import rzd_codes_class
9f354bc699f2de747424e1bb5a6524f9079142ad
077a29e7e9238397184280eb6c38ce22f6214b1c
/DictionariesAssignment5.py
e8eb1de140f706eb0a5338ef640819cd3dc8da9d
[]
no_license
Sounav201/itworkshop
8bcac69698e81e63be9b44d1f0bfc3b8f7ee2481
f039c0284c6b716cbd462dd5b96c4d87ad580b2c
refs/heads/master
2023-03-02T08:24:14.302486
2021-02-10T11:20:50
2021-02-10T11:20:50
288,989,337
0
1
null
null
null
null
UTF-8
Python
false
false
132
py
DictionariesAssignment5.py
d1={'d':10 , 'b':20 , 'g':24 , 'e':16, 'a':15 , 'c':7 , 'f':8} #d2=sorted(d1) for key in sorted(d1): print(key,d1[key])
4a2bfa49e7a67d35ce0cfdd3f768805d1651198e
e39696d6aa6027161480a5a74a87c4a9fea1e019
/tests/rule_induction/trxf/pmml_export/test_nyoka_serialize_ruleset.py
97ae4394261ed162fe5493d9f50a45095033abc1
[ "Apache-2.0" ]
permissive
vijay-arya/AIX360
bcc16721df87ca588299ecc25e2038e0804261a5
65e94f6c6a807912140a43e3d8a094f268c09ede
refs/heads/master
2023-08-08T19:44:55.047243
2023-08-01T01:44:58
2023-08-01T01:44:58
196,568,070
0
0
Apache-2.0
2019-07-12T11:30:31
2019-07-12T11:30:30
null
UTF-8
Python
false
false
4,713
py
test_nyoka_serialize_ruleset.py
from unittest import TestCase import xmltodict import aix360.algorithms.rule_induction.trxf.pmml_export.models as models import aix360.algorithms.rule_induction.trxf.pmml_export.serializer as serializer class TestNyokaSerializer(TestCase): def test_serialize_rule_set(self): # arrange srz = seria...
aadb3fdeeec2c21ea125e8cffb7c15fa5ef6676e
9e56eca61f5a769cc9442fb08d462b8d32e68091
/odnoklassniki_api/exceptions.py
8a015b92a389141df141e538ae21e6084b6365f0
[ "BSD-3-Clause" ]
permissive
gsdu8g9/django-odnoklassniki-api
3b86dd7c0937458e464d625e30fc6a94ad41d37f
ad713e0ef715f61e89668a869900b7435f372e46
refs/heads/master
2021-01-22T20:44:43.380309
2016-02-11T16:26:26
2016-02-11T16:26:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
exceptions.py
class OdnoklassnikiDeniedAccessError(Exception): pass class OdnoklassnikiContentError(Exception): pass class OdnoklassnikiParseError(Exception): pass
bc4e9648691962938d762124ed0a8bedce9dbb5b
36aa5ac600a6ef4dcab8486b8783833bc1e10846
/departments/urls.py
7dd9e50c40a8108088e52f5c6329a589e68e49b3
[]
no_license
ziad-fahim/hrms3
e9574a27c5d422958bc9ecd93c64cf21fce5dfbe
c4ac8a34861b06340f5d89be0487751d8c61fc70
refs/heads/main
2023-03-14T10:17:41.824870
2021-03-02T08:28:29
2021-03-02T08:28:29
343,696,038
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
urls.py
from django.urls import path from . import views urlpatterns = [ path("", views.departments, name="all_departments"), path("add/", views.create_department, name="create-department"), ]
93a1db50305698c7e5051998cb88fecbba1f6ad5
ac634d2fb727ca3ad0826f265b2123fc784196b0
/leetcode/editor/en/[1590]Make Sum Divisible by P.py
58ae776d8674dcedd00389dcf7cc8abb1561326c
[]
no_license
shelyao/LeetCode2020
ac433831d0a937bd8d1f516326d0477b5e50801b
e45c4ef9c5202dce9e9dcdc3259fdc03deaba320
refs/heads/master
2023-05-07T00:08:58.623114
2021-05-30T20:54:20
2021-05-30T20:54:20
308,785,506
0
0
null
null
null
null
UTF-8
Python
false
false
2,816
py
[1590]Make Sum Divisible by P.py
# Given an array of positive integers nums, remove the smallest subarray (possib # ly empty) such that the sum of the remaining elements is divisible by p. It is n # ot allowed to remove the whole array. # # Return the length of the smallest subarray that you need to remove, or -1 if # it's impossible. # # A sub...
9951282524be0a487b717f27a9b5344440476b7f
929dc83ba4dbecd759b526583cd96a7067c0986f
/aiMath/2018125084_week11.py
95e9d9d80e706f5477b70363821f756cf51d51e9
[]
no_license
limyer/KAUJuniorFirstSemester
528d46964da8526db9ad91bb60fca3ae211e543a
75ea9adcb074b9f2262dd5b19c2e4f6a688fd80c
refs/heads/master
2021-03-22T18:44:28.379233
2020-06-15T15:15:18
2020-06-15T15:15:18
247,392,858
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
2018125084_week11.py
# 인공지능기초수학 # 소프트웨어학과 2018125084 임예랑 # 20200601 11주차 실습 import numpy as np #Array는 8, 16, 8 의 shape 을 가진다 1 에서 1024 까지의 수를 가진 1d array 를 만들고 # np.reshape 을 사용하여 [8, 16, 8] 의 shape 을 가진 array 로 변환하시오 # 1.1. 노란색 에 해당하는 부분 출력 # 1.2. 초록색 에 해당하는 부분 출력 # 1.3. 회색 에 해당하는 부분 출력 array = np.arange(1024) newshape = (8, 16, 8) a...
a0fe1e46b71af4f2a893db9dee3332c6ac47f93d
2e1d58211df020426d196dafaa095cce4593878f
/app/models.py
4969866d4452fd3228c23fef738615ede8d8722f
[]
no_license
souveekp/Library_App
75826b81df9a7d701cf863d31ea80f2f7fe4e75c
72d0398b5a922fcf0836025e5c0111a0559ae245
refs/heads/master
2022-06-09T04:57:07.751739
2020-04-30T17:38:02
2020-04-30T17:38:02
260,142,918
0
0
null
2020-04-30T07:29:37
2020-04-30T07:29:36
null
UTF-8
Python
false
false
3,653
py
models.py
from app import app, db, login_manager from flask_login import UserMixin from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from datetime import datetime, timedelta, date from marshmallow_sqlalchemy import ModelSchema class Books(db.Model): id = db.Column(db.Integer, primary_key=True) title...
d8360762579fc7241b975f55e3bc3e296f809631
9843985289f7c351dfe7f607a1e513844748a939
/app/extension/bitbucket/extension_ui.py
77421dbf89651d87657573cb64469d11e735d873
[ "Apache-2.0" ]
permissive
mohamicorp/pages-dc-app-performance-toolkit
e5bb447e04e51788a076851fae3da5b51d1ac88b
14d4032ff99193417e6ae5ded81fe458f9fc063e
refs/heads/master
2023-02-28T06:05:02.181793
2021-01-27T23:14:27
2021-01-27T23:14:27
332,924,819
0
0
null
null
null
null
UTF-8
Python
false
false
2,033
py
extension_ui.py
import random from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium_ui.base_page import BasePage from selenium_ui.conftest import print_timing from util.conf import BITBUCKET_SETTINGS def app...
fedafaf4225373dd899c42507d956f581143927b
ee114e0d69827abe82cfc27bb6e1525a7be8f8da
/informatics/3/3-m.py
139553dfea6211639b8bf49b3d4e2e1c70567859
[]
no_license
nurtai00/WebDevPython
7f5f4aa4be29af35b2a74248ad255146024dc90e
4738a58565eb403a0b8b326fb536767aca290c4d
refs/heads/main
2023-04-01T12:38:06.920620
2021-04-05T09:48:12
2021-04-05T09:48:12
354,773,289
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
3-m.py
n = int(input()) cnt = int(0) for i in range(n): m = int(input()) if m == int(0): cnt = cnt + 1 print(cnt)
0e146edd7224d41e26b4281119727e74f7b8c032
075fcfc9d5cb83e3fd7146d4c625fcc4278de62e
/app/logparser/migrations/0001_initial.py
1b891eb546e03f4faf31e80b4c12d9a2ab58c412
[]
no_license
molodoj88/apache_log_viewer
9b3ada08b58adcb31cf0de395f761c0376850694
16a508c870e1fc66ddee8df367c137a1ff7aba0c
refs/heads/master
2021-06-28T18:12:35.491701
2021-04-09T08:18:14
2021-04-09T08:18:14
235,625,828
0
0
null
2021-06-10T19:43:46
2020-01-22T17:23:55
Python
UTF-8
Python
false
false
789
py
0001_initial.py
# Generated by Django 2.2.1 on 2019-05-03 16:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='LogRecord', fields=[ ('id', models.AutoFiel...
f465e638b50c578622b695927e571c5865b55ab3
765642cf522c0e38d6b82a40c735de253791fbf0
/accounts/migrations/0001_initial.py
79953fb308856def57607e643a197a12c4f1b76a
[]
no_license
ragrag/Waqahah
5f217afce4689b24abad468b29f036d734927869
1c28326c2512b4514869b5f41316f6aae4886bb6
refs/heads/master
2021-03-24T10:10:59.566868
2019-04-26T23:56:23
2019-04-26T23:56:23
121,859,366
0
0
null
null
null
null
UTF-8
Python
false
false
3,535
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-19 05:54 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
b34d92836b24f31d9e6d6ad0bcd5019116d951df
2616b7ca738c287d6e466c439558137edbc3cb2d
/Code Part/rl-framework-687-public-master/homeworks/rl687/policies/tabular_softmax_continuous.py
59592d4505f2c7db4a91ef34d4dda570d006a11c
[ "MIT" ]
permissive
aditya-vikram-agarwal/Black-Box-Optimization-Algorithms-to-solve-problems-in-Reinforcement-Learning-GA-FCHC-CEM-
c56447f1c73133499431ad575416b22b71adeda3
963e56fbf59c85105af26641fd53e922cb899e33
refs/heads/master
2020-12-04T07:54:05.395736
2020-01-04T00:29:04
2020-01-04T00:29:04
231,685,583
1
1
null
null
null
null
UTF-8
Python
false
false
3,081
py
tabular_softmax_continuous.py
import numpy as np from .skeleton import Policy from typing import Union from itertools import product class TabularSoftmaxContinuous(Policy): """ A Tabular Softmax Policy (bs) Parameters ---------- numStates (int): the number of states the tabular softmax policy has numActions (int): the num...
a34574be2bbb66880b082f9c3c19db763d995c5d
9a6b124ff362e1a571c4d6b04445a95d6d8f8488
/Aulas/Ex 4/desafio20.py
23f4f971a3c9af8cdb51fc4a80086b041f875703
[]
no_license
Athilas-Silva/curso-em-video-python
935ff599c996f502529c3d32e3b9e66eb8f57c2b
e10a48355d2294538d38893311d4e739ba1e086f
refs/heads/main
2023-03-04T05:25:35.951879
2021-02-17T00:58:58
2021-02-17T00:58:58
339,574,720
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
desafio20.py
import random nome1 = str(input("Informe o 1º nome: ")) nome2 = str(input("Informe o 2º nome: ")) nome3 = str(input("Informe o 3º nome: ")) nome4 = str(input("Informe o 4º nome: ")) nome5 = str(input("Informe o 5º nome: ")) nome6 = str(input("Informe o 6º nome: ")) nome7 = str(input("Informe o 7º nome: ")) nome...
78476dffad796f7b2be053c627e93de9cad9af7a
c4c18f1c7577f4f008d255fd84ee82c7890c9523
/models.py
83a028d4d23a79c5738c6a1aef9ab9242d326bd1
[]
no_license
sauravtom/lonelyIsland
adee562b603345006df52e0362cabe22f5dec957
4787525024459a8e15d4669f24c160ef779f639b
refs/heads/master
2020-04-30T03:35:01.045633
2015-01-29T10:09:09
2015-01-29T10:09:09
28,915,176
3
4
null
2019-01-23T05:56:24
2015-01-07T13:17:30
Python
UTF-8
Python
false
false
3,198
py
models.py
from flask.ext.sqlalchemy import SQLAlchemy from flask import Flask from settings import app, db import sys class TimeStampedModel(db.Model): __abstract__ = True created = db.Column(db.DateTime, default=db.func.now()) modified = db.Column(db.DateTime, default=db.func.now(), onupdate=db.func.now()) class User(TimeS...
bb208fac7e95cfac20ff559f6817dcbfa9c4a759
605a375e43c3f00696d9334cafd3cb2d09630a5c
/templates/text_classification/_sidebar.py
b0a5aa5c4d8bcb0e00c61b64d5cf175485c4ee99
[ "BSD-3-Clause" ]
permissive
0xDeus/code-generator
894d7eb82a8009aa21dce2ed3987d1c2c26fccb7
a2ed5f771e7cf8a57c6f68b5a3797792f4676433
refs/heads/master
2023-07-03T10:12:41.302671
2021-07-10T19:29:32
2021-07-10T19:29:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,511
py
_sidebar.py
import sys import streamlit as st sys.path.append("./templates") from _base._sidebar import ( default_none_options, distributed_options, ignite_handlers_options, ignite_loggers_options, test_all_options, ) def get_configs() -> dict: config = {} config["train_epoch_length"] = None co...
65b3557f8559bbd285b5e73b9969078d4459fba1
2f723eba08256c8dbe23c11902626b4b6ed05088
/HillCipher/check.py
95ceb3417be46efe1cbe5ec59a2a6dc941bb8afd
[]
no_license
hryxna/Java-Algos
0b4b4cf882a77dc6a2e177efb02905407a9a84dc
06b9a49cea1b84771ae8402321db0465f518659a
refs/heads/master
2023-06-28T09:08:51.481235
2021-08-07T13:13:54
2021-08-07T13:13:54
292,758,564
0
2
null
2020-10-23T07:49:29
2020-09-04T05:33:21
Java
UTF-8
Python
false
false
1,555
py
check.py
j = {'a':0,'b':1,'c':2,'d':3,'e':4,'f':5,'g':6,'h':7,'i':8,'j':9,'k':10,'l':11,'m':12,'n':13,'o':14,'p':15,'q':16,'r':17,'s':18,'t':19,'u':20,'v':21,'w':22,'x':23,'y':24,'z':25} e = {0:'a',1:'b',2:'c',3:'d',4:'e',5:'f',6:'g',7:'h',8:'i',9:'j',10:'k',11:'l',12:'m',13:'n',14:'o',15:'p',16:'q',17:'r',18:'s',19:'t',20:'u'...
acada99a6424fa46e551e2a573f7165f3b6000f8
4b1fa3b292d6f81da8abc7003cc3f1f8b75693a8
/第7章/test.py
d996b0e197adb38ca44275a446f05f6e3d61e079
[]
no_license
oursoul/python-demo
15965aa3a3a86ac2a86c99859e6aaacdb174adb5
eccffc561b5541cf56acaef9b88cb434b1e38abb
refs/heads/master
2020-08-07T06:15:05.671873
2019-10-07T09:21:05
2019-10-07T09:21:05
213,329,641
1
0
null
null
null
null
UTF-8
Python
false
false
184
py
test.py
def minimal(x, y): #自定义计算较小值函数 if x > y: #如果x>y成立,返回y的值 return y else: #否则返回x的值 return x
9cd24cbd1a3a37bab6ca5fcff329f464425cebb7
285de5496a7e1b22e5c18e0c4395911ea6d28505
/src/python/bayesian_computation/basic_functions.py
e2643daee88aa2968084d4d08721821a8fbf7e07
[]
no_license
copr/diplomka
0004482a8822c6dd6c57d49d6b1595e4096471b8
791a34968cfff5f9d90f0cb245dfc3eb86d20f17
refs/heads/master
2020-03-19T10:14:45.817623
2018-08-01T08:01:36
2018-08-01T08:01:36
136,354,539
1
0
null
null
null
null
UTF-8
Python
false
false
806
py
basic_functions.py
import numpy as np def sd_pooled(xs, ys): # computes pooled standar deviation of xs, ys # xs and ys are np.arrays sx = np.std(xs, ddof=1) sy = np.std(ys, ddof=1) m = xs.size n = ys.size return np.sqrt(((m-1)*sx**2 + (n-1)*sy**2)/(m+n-2)) def ttest(xs, ys): # computes t statistic betwe...
7ac713c9646ceda35ad00e0e116f716daccf6e16
daaf7bf2a4357e39f9f2fb911eb25cd871f8d0f0
/reps/migrations/0001_initial.py
c9fec0635ef8cc73f6b087be5d39aea0afe656ad
[]
no_license
markng/theyworkforaz
dca693ffb629231e026083135b4571f9cdf7beb1
580fef29cefef9a24e0938e54fb976f55268e6a2
refs/heads/master
2021-01-24T06:04:48.718846
2011-10-13T01:23:43
2011-10-13T01:23:43
489,759
3
2
null
null
null
null
UTF-8
Python
false
false
3,587
py
0001_initial.py
from south.db import db from django.db import models from reps.models import * class Migration: def forwards(self, orm): # Adding model 'Party' db.create_table('reps_party', ( ('id', orm['reps.Party:id']), ('name', orm['reps.Party:name']), )) d...
d8a2eca546dc8091784a0eb0c2d41bbe828e8623
8e972498411875efc773db16d6a6c34063935014
/Progress/Question Answering System/qasModel2.py
a8c663b584175acb36ce9c47b6c824296159a7bb
[]
no_license
hieuchi911/ExploringNLP
e67f6067c4ce88357ecfbbf74faa6966f3193652
458fb9992d7ab7f2945982ecb041fa95fe718ccf
refs/heads/master
2020-09-13T20:28:59.993901
2020-09-06T15:26:07
2020-09-06T15:26:07
222,894,707
0
0
null
null
null
null
UTF-8
Python
false
false
20,302
py
qasModel2.py
# -*- coding: utf-8 -*- """ Created on Tue Feb 25 21:40:27 2020 @author: Admin """ # -*- coding: utf-8 -*- """ Created on Tue Feb 11 13:34:14 2020 @author: Admin path to train file: "/content/drive/My Drive/QaSModel/Question Answering System/Training and testing data/light-training-data.json" """ import numpy as n...
cc7f5965f30e47db2a9ed1dd449e2790c4e3a00f
59b0b5d4f08a9f2b2ef313aad995962ea6309efc
/CNNMnist.py
597a0a15b975177f12d5390ffbaa4deca7c67e0c
[]
no_license
zhangwenchi/TensorFlowTraining
1fef0ee9935b179e7ca09045d88b8e30c76031a0
886cd81d1d66c797c283a6bb1f3623f94885a5a3
refs/heads/master
2020-09-05T05:39:28.367952
2017-07-22T07:53:36
2017-07-22T07:53:36
94,413,657
0
0
null
null
null
null
UTF-8
Python
false
false
2,126
py
CNNMnist.py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data", one_hot=True) sess = tf.InteractiveSession() x = tf.placeholder('float', [None, 784]) y_ = tf.placeholder('float', [None, 10]) x_image = tf.reshape(x, [-1, 28, 28, 1]) def weight_varia...
c4a89dca8bdcba2affa50cc12685b5127936ae4a
5cc6fe0056c1b7f8f4cd61c31dfdd91aed2231ca
/python_lesson.py
f1f4dacdc6f01a0c234cb1bcf6d0429b8be48479
[]
no_license
ayogeb/PythonclassZuriv1
19600a09f4d6f8b751d244912581b856b79c40b6
bf6f9af2f1eba0f1ce30c1af794e57c57e16b523
refs/heads/main
2023-04-12T18:00:38.712648
2021-04-15T14:36:22
2021-04-15T14:36:22
357,947,790
0
0
null
null
null
null
UTF-8
Python
false
false
7,386
py
python_lesson.py
#Variable. A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing. This memory location can handle only one item (for e.g., a single number or word- a single data type) OR multiple items at the same time (as in lists, arr...
5232d4a1227fc700d539119b5886361c4b0b29a6
614b338485e100517c4c8aadd2f8a82363aa0d1f
/backend/config/local_settings.py
b3623e7b71c8a2bf1cd164dfddeb78b7c1e78ca6
[]
no_license
SocialMediaExchange/muhal-deployment
427be75b85b795c1292481e884ef4a706f3cb612
d85a400f166f70e1b6dee52cf7de86a56f68dcab
refs/heads/master
2021-01-16T07:16:00.284905
2020-12-02T15:50:32
2020-12-02T15:50:32
243,021,182
0
0
null
2020-12-02T15:50:33
2020-02-25T14:34:06
Python
UTF-8
Python
false
false
920
py
local_settings.py
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. import os from distutils.util import strtobool DEBUG = bool(strtobool(os.environ.get('DJANGO_DEBUG', "False"))) # Make these unique, and don't share it with anybody. SECRET_KEY = os.environ['SECRET_KEY'] NEV...
acb4c600b6f6ec70afc38cc039b0e897f1169893
a6a99afa70fa68601cafea2f1baaa4d7e9445493
/fileslibrary/migrations/0001_initial.py
74d9b6533ac567db6aac397b40d91a79d2fb3af2
[ "Apache-2.0" ]
permissive
AlexGolovaschenko/OPSI-Wiki
ae6e47de7a05a7ccec417364fff042a40a968303
b530da99c746d93484e42399cf6ecaf945fcc2fe
refs/heads/master
2022-11-22T21:28:17.138632
2020-03-11T15:36:51
2020-03-11T15:36:51
229,896,417
0
0
Apache-2.0
2022-11-22T04:55:38
2019-12-24T07:45:18
HTML
UTF-8
Python
false
false
1,418
py
0001_initial.py
# Generated by Django 3.0.1 on 2020-01-28 09:58 from django.db import migrations, models import django.db.models.deletion import fileslibrary.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Topic', ...
5b61f47db01a42db61520fe241139568976ca0f3
92c71d96baa3957c36e8899c681ddcd2f53ad3d2
/octoflex/cfg/OctoFlex.cfg
ccddd5b8ca068735cf28e010c5cdef6f1606a5e4
[]
no_license
ablasdel/smart_wheelchair
bf2a0f73821811b05396a4785ae2ab759108bc27
396449033b9cd9ca1543ff2068a744d67182591f
refs/heads/master
2020-12-25T05:02:22.943285
2011-06-09T06:04:29
2011-06-09T06:04:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,158
cfg
OctoFlex.cfg
#! /usr/bin/env python PACKAGE='octoflex' import roslib; roslib.load_manifest(PACKAGE) from math import pi from driver_base.msg import SensorLevels from dynamic_reconfigure.parameter_generator import * gen = ParameterGenerator() # Name Type Reconfiguration level Description...
368d69b707faf0377ecf479f5ed576ddeeed9882
54aa35931f67ec5b1122818dd477489dbfbfb332
/scripts/alerts/emails.py
c0ee106288f923a66eae43080308c9d9fb6a9438
[]
no_license
pedro2016645/DataPre
aed863e66c2ee0d4e3bca4657ff17883c853acf1
9f8b7252b6c22433db6bfcde81836b6447f9a557
refs/heads/main
2023-07-10T06:20:43.901000
2021-08-15T21:36:32
2021-08-15T21:36:32
396,502,257
0
0
null
null
null
null
UTF-8
Python
false
false
4,299
py
emails.py
""" Script to send alerts by email """ import win32com.client as win32 import psutil import os import subprocess import logging logger = logging.getLogger(__name__) class OutlookApp: """ Class to control local outlook app to send emails """ def __init__(self, subject: str, html_data...
54fed36bdf27aac20c0679ba71e0485b5500b609
54751fb7590dd174ee078060062c9ca24332fc1a
/bdt.py
f907c52e61bfa6b5e99ab6328727e9ce9c545f58
[]
no_license
bhoh/DecisionTreeScratch
a5a0a02624ae2436a815d741aa354d2d82890fd6
4fa6a3be41b09af428eb1d35eab009942d73f771
refs/heads/master
2023-01-06T00:18:10.641599
2020-11-08T08:32:43
2020-11-08T08:32:43
311,003,010
0
0
null
null
null
null
UTF-8
Python
false
false
9,064
py
bdt.py
from functions import MSE, gini_index, weighted_gini_index, print_tree, scale_tree, accuracy_ratio, scan_WP, roc_integral from tree_base import TreeBase import random from math import exp, log # SimpleTree # RandomForest class BoostedDecisionTree(TreeBase): def __init__(self): pass # Override # Create a ...
fd28642d80e9c120ac447a234ff0674ae80328c5
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2749486_0/Python/changyuheng/B.py
39826ee9089de5405629675c33bc54b5df20ac72
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
713
py
B.py
#!/usr/bin/env python # -*- coding: utf-8 -*- LINES_PER_CASE = 1 def solve(prob_num, content): X, Y = map(int, content[0].split(' ')) x, y = map(abs, [X, Y]) steps = '' go_east = 'WE' go_west = 'EW' go_north = 'SN' go_south = 'NS' steps += go_east * x if X > 0 else go_west * x st...
6fda4d2982a89d7ad0f172a959c280a6da5019ca
5431a8b15d3e173e076c6a5f1fd26f2e316c75f1
/src/Solver.py
9b261a59754c5c2388950bb62be89c0378a5d58a
[]
no_license
rosalind210/TurtleBot_MazeSolver
615b963f6334589e9d8ffba8af5eb1342f1b5d1a
94800b5e06d89bf2145f1bc76b2b8f059ab3483f
refs/heads/master
2021-07-11T17:43:55.668059
2017-10-15T03:44:00
2017-10-15T03:44:00
105,311,995
2
1
null
null
null
null
UTF-8
Python
false
false
3,993
py
Solver.py
#!/usr/bin/env python # Author(s): Rosalind Ellis (rnellis@brandeis.edu) # Melanie Kaplan-Cohen (melaniek@brandeis.edu) # Jonas Tjahjadi (jtjahjad15@brandeis.edu) # # Algorithm idea: # Follow the left most wall until completion # #When creating robot on simulator: Add Laser (laser_1), edit to make number of rays, an...
68bc4519d4986f9a998be203d5408715068d8993
24b02f3387f32277f521e37bee4cd6e21d1d8985
/python/convert.py
5eb037313d9ffb32dfbae70d382a2f52bc86e521
[]
no_license
mamanzano/ejerciciospython
e212e202feeb14a39f73fa3c947cf1ea60c41b06
892bbf395450eb71273bc0a2adb1b835ea03d1f3
refs/heads/master
2021-02-14T15:19:04.436461
2020-03-04T05:30:31
2020-03-04T05:30:31
244,815,002
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
convert.py
# -*- coding: utf-8 -*- one_colombian_money = 179.18 def run(): print('Calculadora de divisas') print('Convierte pesos méxicanos a pesos colombianos') print('') ammoutn = float(input('Pesos Méxicanos: ')) result = foreign_exchange_calculator(ammoutn) print('${} pesos méxicanos son ${} pesos ...
40ba53d340f4aaf15bf2107c9fe8da69a50343d9
07b1d3208c579418c07574ac8517c6a0e7325a2d
/src/config.py
dea154edb135923352ae94b88870314cd3e8bb6f
[]
no_license
hglman/vehicleFetch
50f8769be4415cf55d778eb775af9d452f837a13
b12397ef0cceb1997351167c26537c8150217c9a
refs/heads/master
2022-11-28T14:29:53.320501
2020-08-07T15:12:42
2020-08-07T15:12:42
285,858,142
0
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
config.py
from copy import deepcopy from fetch import BaseConfig from fetch.connectors.elasticsearch import build_es_config from fetch.connectors.eureka import build_eureka_config, register_eureka from fetch.fetch_config import build_gateway, build_auth_config class Config(BaseConfig): APP_NAME = "VehicleFetch" def _...
9df88fac70c8e44425ea169dffcc5f80c6504cfe
1fc0f219123dfe4c7b4e008c9b69c0d86e33589a
/instance/config.py
ad2580cf9e499c9ce07323654cf45463452b68de
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kathy254/StackOverflow-V2
9ceaf8f8adf80067358d8fcb2caeab846d4f3f08
48d73a06b821ba212a8b98823ed8fff6db239158
refs/heads/develop
2022-12-15T11:29:42.023047
2018-12-31T13:11:03
2018-12-31T13:11:03
163,584,339
0
0
MIT
2022-12-08T01:30:25
2018-12-30T12:05:28
Python
UTF-8
Python
false
false
843
py
config.py
class Config(object): '''parent configuration file''' DEBUG = True SECRET_KEY = 'hardtoguess' ENV = 'development' TESTING = False class DevelopmentConfig(Config): DEBUG = True url = "dbname = 'stackoverflow_db' user = 'postgres' host = 'localhost' port = '5432' password = 'admin'" clas...
7efd9c22c8a4e7820e981c5cd647b94b3693e2f1
fffef3bec5b078469612410ac3bc41510247a305
/tests/ops/test_misc.py
646e0ab1b3179a260c8b25acc4ae66dd50e40ce8
[ "MIT" ]
permissive
haowen-xu/tfsnippet
73f28d1ae66fba94b25a9feab3e5999a12aa9c2e
63adaf04d2ffff8dec299623627d55d4bacac598
refs/heads/develop
2023-04-12T21:03:31.119446
2019-09-10T18:47:52
2019-09-10T18:47:52
91,044,738
69
39
MIT
2023-03-25T00:41:36
2017-05-12T02:54:06
Python
UTF-8
Python
false
false
4,047
py
test_misc.py
import pytest import numpy as np import tensorflow as tf from tfsnippet.ops import * class AddNBroadcastTestCase(tf.test.TestCase): def test_add_n_broadcast(self): # test zero input with pytest.raises(ValueError, match='`tensors` must not be empty'): _ = add_n_broadcast([]) ...
db774db9de918442bace8da9aaf2b0992d2c54ef
6149718d78b7fc62c7d69a274cec8df562ae26d2
/users/serializers.py
df3a9c897b51ab1a940b040b64b5670cf93b16bf
[]
no_license
iecmemberadmin/crispy-computing-machine
418adf630187bdd5e6f867292b4fd65708f9dbc1
883082a7564a4762b1d42b5733798061cd5fce0e
refs/heads/master
2021-06-12T06:28:49.033144
2019-06-02T11:11:10
2019-06-02T11:11:10
154,259,161
0
0
null
2021-06-10T20:56:12
2018-10-23T03:54:30
Python
UTF-8
Python
false
false
2,457
py
serializers.py
from rest_framework import serializers from .models import Clubber, Authentication, Announcement, ActiveProcess, ReaffedClubber, Pending, Event, AttendanceNew, Admin class ClubberSerializer(serializers.ModelSerializer): class Meta: model = Clubber fields = ('student_number', 'first_name', 'middle_n...
944b097ff11c85a82b95787ee16a3d2553d7dafa
fc481acf3235c46d278dcaf8d984b05df4935a7f
/9.py
74fcebdc23db4fb3a2d196d3ebe01f7d4b257424
[ "MIT" ]
permissive
juandarr/ProjectEuler
2c1627fcfd6f68dd8125ff769056499e00e17b9f
5fc43662dcc6ca2a24fb207f959d02c6e9921712
refs/heads/master
2022-09-04T14:13:32.155745
2022-08-22T21:09:54
2022-08-22T21:09:54
233,132,828
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
9.py
""" Finds the product of the Pytagorean triplet for which a+b+c=1000 Author: Juan Rios """ import math # Finds the product of the pythagorean triplet for which a+b+c=1000 def triplet_product(): for b in range(498,2,-1): for a in range(b-1,1,-1): if ((1000*(a+b)-a*b)==(1000**2)/2): ...
f0c5aa0362a5bde4c7761c7774ba10366d178e8a
2fca52a068853eb47469757fcce2a365fe834cd9
/GinaTech02/Usstock_dao.py
80b85372c0901aca5f913a232adc609072aa9781
[]
no_license
wanghan7678/GinaTech02
59cb181eb62e043ba62f647d541c5cab3e261446
968550c87980be7a850b3cbc5517118eb2b496f4
refs/heads/master
2020-06-18T10:54:02.396887
2019-08-19T08:09:54
2019-08-19T08:09:54
196,277,914
0
0
null
null
null
null
UTF-8
Python
false
false
5,154
py
Usstock_dao.py
import sqlalchemy from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import func import GinaTech02.Config as cf import GinaTech02.Usstock_bean as stock class dao_base(object): def get_session(self): engine = sqlalchemy.create_engine(cf.CONSTANT.Database_Url2, poolclass=sqlalchemy.pool.NullPool,e...
e4c7f715d375ff160839accd8cec045e72444ec9
83b1eb54b99283a2d4946fb00ee69283c48e937a
/python-workbook/exercise002.py
2b759058c838583b0f2110be03d41607febb5c04
[]
no_license
DinaKarimi/Classwork
d051b67b1963404be3d8a6794fe9c6f48dcbca6c
fab3bdccac1faa717ea5721ed2d6bd59c689e4a5
refs/heads/master
2020-04-22T17:58:51.602816
2019-03-19T17:19:02
2019-03-19T17:19:02
170,560,816
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
exercise002.py
print('what is your name?') name= input() print(f'Hello,{name}.Nice to meet you!')
500270f6f4e0413d425972095f92a7442e24dd9e
82bcf8eb6510a7e5b0e725451e6fd804cb17cf5a
/axelrod/strategies/axelrod_second.py
0b414e20292a4830d0048e19a20ae2213b952f5d
[ "MIT" ]
permissive
marcharper/Axelrod
ab4b86a81e6939fd36114026cc182251accf75ca
5ee9658ae6202aa83c5c67d7bb5f531e47fd1afe
refs/heads/master
2020-04-05T05:43:36.396662
2016-04-14T18:12:16
2016-04-14T18:12:16
31,346,719
4
0
null
2016-08-10T15:30:21
2015-02-26T02:24:00
Python
UTF-8
Python
false
false
3,354
py
axelrod_second.py
""" Additional strategies from Axelrod's second tournament. """ import random from axelrod import Actions, Player, flip_action, random_choice C, D = Actions.C, Actions.D class Champion(Player): """ Strategy submitted to Axelrod's second tournament by Danny Champion. """ name = "Champion" class...
4ee90b89be422bac3be61025460560b12e83e24a
fad004d2f3d363419cb08410594f41bfb6b29db2
/taca/testing/__init__.py
81bb94883dbe3cf4bd33f1a34f7584f90a7ae64e
[ "MIT" ]
permissive
SciLifeLab/TACA
7684ffb7a3685ce87b82f8ea3d8bdd9813591856
3d26ae96f767bf2c9a1eb8da2ec7fb8b8cf6869d
refs/heads/master
2023-09-01T08:51:25.391389
2023-08-24T06:36:46
2023-08-24T06:36:46
25,529,822
12
17
MIT
2023-09-13T09:02:45
2014-10-21T15:23:34
Python
UTF-8
Python
false
false
81
py
__init__.py
""" Tools to create a test enviorment as close as possible to the uppmax one """
e5d9ed10159673b72efa5cb6b0d8f2be9414eb4c
b69a9e2dbf6e7bc611b60582443fce73b95e77ec
/day2/day2-2.py
9b99cd89736f052c0e29a086a131308f6b2b5865
[]
no_license
EricKim987/adventOfCode2018
98aa67709ed012856ab2a4447af23f3109256852
c9e302e270eda33a5b3b845bbe42434384f9b660
refs/heads/master
2021-10-09T14:02:25.566014
2018-12-29T04:54:07
2018-12-29T04:54:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
day2-2.py
import os from itertools import combinations with open(os.path.join(os.path.dirname(__file__), 'day2-1.in')) as file: ids = [x.strip() for x in file] for a,b in combinations(ids,2): diff = 0 for index, value in enumerate(a): if b[index] != value: diff += 1 if ...
6fa35db463b16bbda785f643654784261d5d6ceb
ff31b33851a5841a3e62d7c31a96cc47670a9ed6
/Shazam/3.py
165ceb4c22515a26a3faf2bccdffac32e2e3bc3e
[]
no_license
Syndorik/CV
1afb36b1b32ef124726a5036be21f1799d3d1e61
989efade6490a65f194d31efafa69b549b163cc3
refs/heads/master
2021-08-14T13:29:52.851718
2017-11-15T20:37:19
2017-11-15T20:37:19
110,879,041
0
0
null
null
null
null
UTF-8
Python
false
false
2,547
py
3.py
import os import wave import numpy as np os.chdir("C:/Prog tipe") def wave2array(nchan,largech,data): #nchan = 1 (mono) 2 (stéréo) largech nb d'octet sur lequel un echantillon est codé, data retourne un tableau où chaque élément est 1 octet de donnée(hexadecimal). Sachant qu'il y largech octet pour une donné et si o...
4834d8a39cf02e27de71aa4b2f5a2da354639b22
274205377017f0434453b69670b5416ddbad9461
/Homeworks/HW2/Problem_1/utilities.py
4125aacc23f95e1404bd29c37e6d4b80911b7cb4
[]
no_license
jfantell/Computer_Vision_Visual_Effects
b5b255d894732218ec7bab2d66906764b62a3d99
84c975e2f2a2ac131ff07f23a928076b96e12b77
refs/heads/master
2020-07-24T16:56:07.610916
2020-02-02T05:42:25
2020-02-02T05:42:25
207,973,313
3
0
null
null
null
null
UTF-8
Python
false
false
416
py
utilities.py
import os import shutil import glob # Source: https://stackoverflow.com/questions/6489663/find-file-in-folder-without-knowing-the-extension def get_file_path(input_dir,filename): for file in glob.glob( os.path.join(input_dir, f'{filename}.*') ): if(file.endswith(('png','jpg','jpeg'))): return file else: ret...
14b00ee375bd3964865c66b27b7af714c0a8fbde
36274dabc814eadf07d154464970ee0dd60ddebd
/senticle50/brexit/classifiers/ClassifierRegistry.py
5dfb3b3378ff82f3f9c25e36e740cf08a84cc492
[ "MIT" ]
permissive
bmjr/senticle50
3049e7fbb78dec405df3ee7c33615ef57a926dae
041e1e82861a5657c309db71a08457cd0ae62387
refs/heads/master
2022-12-09T10:40:58.813056
2020-03-29T12:29:36
2020-03-29T12:29:36
250,932,018
2
0
MIT
2022-12-08T01:06:40
2020-03-29T01:44:09
Python
UTF-8
Python
false
false
2,188
py
ClassifierRegistry.py
from classifiers.Singleton import Singleton class ClassifierRegistry(Singleton): """ A registry layer class used to register classifier class implementations which are available in the system. The classifier registry upon launch of the system is called to register all the available classi...
656e3d30d3ccf75a6b9148fcd8a076465a61792d
811b18a20476c48db2003bf32b75b94d4ff849ca
/hw1/tests/rdb_table_tests.py
22a9e0ceea3c7c8797959387c40f63a783221005
[]
no_license
NarakuF/w4111-Databases
d5aedbab7d5ef45934dcce0917d1b8957780bfd4
b6ba411f74ef7ec192dbdacc700403f033279cff
refs/heads/master
2020-07-26T12:58:26.535668
2019-12-08T01:33:35
2019-12-08T01:33:35
208,651,915
0
0
null
null
null
null
UTF-8
Python
false
false
13,219
py
rdb_table_tests.py
from src.RDBDataTable import RDBDataTable import logging import json # The logging level to use should be an environment variable, not hard coded. logging.basicConfig(level=logging.ERROR) # Also, the 'name' of the logger to use should be an environment variable. logger = logging.getLogger() logger.setLevel(logging.ER...
470bac8d31257b47117417239e00306d2cecbc00
4dd1e0175305984250db115048bb7284ebee256e
/nyc_station_map.py
2be174a1611ddd5c05e0b8422954f45a60138222
[]
no_license
vickieLchan/MTA_eda_project
b80a0e748468cc89c8c4eda52c1afb980b7ca12d
46949809b3cfb7894da3b457ccd1df152db00c5c
refs/heads/master
2020-06-14T20:18:53.330988
2019-07-08T20:09:20
2019-07-08T20:09:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,690
py
nyc_station_map.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from geopy.geocoders import Nominatim from geopy.exc import GeocoderTimedOut import geopandas as gpd import descartes from shapely.geometry import Point, Polygon working_directory = '.../MTA-Project/' top_9_income_stations = ...
e711ce49dcc86bc1cb4324568bffc674154b1d18
fa35e2fe75053980af0d65f1fd564c5af342ae8a
/xkeysnail.config.py
23fe3563a53934b95c8aad7956055e37488adc7b
[]
no_license
blahgeek/i3config
ccbd463da76012ffd15aa81dc0c62cea5f49713b
076fe53e97cabe8abb86bf0ec65580f74f10ac7d
refs/heads/master
2023-08-10T00:15:40.840530
2023-07-27T02:02:23
2023-07-27T02:02:23
74,536,579
2
2
null
null
null
null
UTF-8
Python
false
false
467
py
xkeysnail.config.py
#! /usr/bin/env python # -*- coding: utf-8 -*- import re from xkeysnail.transform import (define_keymap, K, Key, define_multipurpose_modmap, define_modmap) define_modmap({ Key.LEFT_CTRL: Key.LEFT_ALT, Key.LEFT_ALT: Key.LEFT_CTRL, Key.LEFT_...
6e0db1bd5aeff6c3f3b738957d667bd1c599025c
be270707aaf6305f03dfe56f84eb948713e640d5
/uploadfirebase.py
9f484ccad6bc12d00d89b247789f973dcd17e5bd
[]
no_license
Nishant-Ramakuru/asimov
78e644b6c58e6299289ec557fa2ec9a537f183c6
b0d6366b6a67b528d57304da9b01f43e9513a9a9
refs/heads/master
2021-05-19T12:41:53.613934
2020-03-31T19:06:45
2020-03-31T19:06:45
251,704,172
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
uploadfirebase.py
def main(): from firebase import firebase # your variables are already assigned before this firebase = firebase.FirebaseApplication('https://octapod-a5186.firebaseio.com',None) result = firebase.post('Distance',{'Direction':'1'}) exit()
10b011d51dbd3b139a0ee6c2943028ab80019fff
a678f6efeed7185a86d47c45e59ad96143486469
/examples/scan.py
91320fdb2052c30654730711f085ff4c0119812b
[ "Apache-2.0" ]
permissive
informatics-isi-edu/chisel
0830643ca812fd93d9c33c3e273042b73c592558
3746b31a8aa4a6e15d2ad9e52b02b0be289da56c
refs/heads/master
2022-11-27T14:03:18.614927
2022-09-29T23:24:20
2022-09-29T23:24:20
176,620,191
0
0
Apache-2.0
2022-09-29T23:24:21
2019-03-20T00:26:48
Python
UTF-8
Python
false
false
735
py
scan.py
"""Example of using the 'scan' operator. """ import os from deriva.core import DerivaServer from deriva.chisel import Model from deriva.chisel.catalog.semistructured import csv_reader __dry_run__ = os.getenv('CHISEL_EXAMPLE_DRY_RUN', True) __host__ = os.getenv('CHISEL_EXAMPLES_HOSTNAME', 'localhost') __catalog_id__ = ...
1075197b05ebe84114e5d89a359f56b75b756b5c
5f466d8a25ad6266e21d19be307a4c870da1fc6c
/thetetris/constants.py
47adb46a5e6cf59ba9c8d31a81244a66030904c7
[]
no_license
dongkun0904/thetetris
1067d5fb5047fcc7b7be54113608243a4b17dfba
a0c8381d0fb8730d6d8c2868001221435ce90d88
refs/heads/master
2021-06-26T15:34:54.067759
2021-04-18T13:18:16
2021-04-18T13:18:16
221,592,161
0
0
null
2021-03-05T10:43:15
2019-11-14T02:15:29
Python
UTF-8
Python
false
false
2,148
py
constants.py
# Pieces S = [['.....', '..00.', '.00..', '.....', '.....'], ['..0..', '..00.', '...0.', '.....', '.....']] Z = [['.....', '.00..', '..00.', '.....', '.....'], ['..0..', '.00..', '.0...', '.....', '.....']] I = [...
8f35ffda8f28684ffe1c45ba7bee4d19951b24fa
d4f4175709f6a7f03dede4e56397911c5299c612
/primitiva.py
e3da16de32602ee6024eda4b494c98216ea670b1
[]
no_license
hcosta/primitiva-python
b94a3a76281221e5ad818f85f0687d340b7ecd07
69d5d9c0e8cc419fba014d08da64225692ba1d44
refs/heads/master
2023-02-08T23:09:31.152219
2020-12-26T18:31:12
2020-12-26T18:31:12
4,236,513
1
0
null
null
null
null
ISO-8859-1
Python
false
false
20,237
py
primitiva.py
#!/usr/bin/python # -*- coding: latin-1 -*- """ Clase Primitiva para el simulador del Sorteo de la Primitiva Interfaz creada con wxFormBuilder :author: Hector Costa Guzman :version: 0.1 """ ########################################################################### ## Python code generated with wxFor...
645aa6507caca35f3831bca0d114d4a0689ec860
2e5de69df92665c7b692c2a6c119441a8fb1d771
/SNI/urls.py
036975cf9cbf4234962f3246c9f1f376da8bae79
[ "MIT" ]
permissive
r0kym/SNI-frontend
c00afebc39b4f38f9912b017c8d4c06434fdc5a6
5fdc25df21846fadb313d439acba73782a6248c3
refs/heads/master
2023-01-29T02:20:14.149325
2020-12-15T00:02:59
2020-12-15T00:02:59
273,928,491
1
2
MIT
2020-08-26T13:06:45
2020-06-21T15:11:10
HTML
UTF-8
Python
false
false
1,156
py
urls.py
"""SNI URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
f2f8d2e2c0c9d99c080d2c69fea6d698f91e34f3
cfd9bb46a3905258d0858455cd24a8f7733ca2f4
/testTextPy/test_TextPy.py
5bd6c8797c4cf96ed127b4e28e008a3db4e88d59
[ "MIT", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "AGPL-3.0-or-later" ]
permissive
davidjamesbeck/slexil
ac99cf5210fa93c1da2c01a83adcde92880c9f4e
38edd2de814de65a263ac96f10c0ce65674606ca
refs/heads/master
2023-08-17T10:29:47.651436
2023-08-04T21:09:14
2023-08-04T21:09:14
239,220,969
1
0
MIT
2020-02-08T23:47:47
2020-02-08T23:47:47
null
UTF-8
Python
false
false
25,544
py
test_TextPy.py
import re import sys sys.path.append("..") from text import * import importlib import os import pdb from ijalLine import * from errors import * import logging from audioExtractor import AudioExtractor from bs4 import BeautifulSoup # -------------------------------------------------------------------------------------...
26a516a59b607232b793f9854da5b2a126198d0a
c5842948354c75a8d08fb70ce1feef9d7c37a4f5
/src_gen/doc/pyopencv_epydoc_cfg_gen.py
35a499e657e05d5bf52c02cf03d88a622d37961f
[]
no_license
BackupGGCode/pyopencv
25502bb134ed0a2fac197879dd7d7e44d27908dc
6d7127aaff356b25e92239f9a81b7f89f1f70514
refs/heads/master
2021-01-15T20:48:34.459164
2015-04-30T11:25:06
2015-04-30T11:25:06
34,757,283
1
0
null
null
null
null
UTF-8
Python
false
false
914
py
pyopencv_epydoc_cfg_gen.py
import pyopencv as cv ofs = open('pyopencv_epydoc.cfg','wt') ofs.write(''' [epydoc] # Epydoc section marker (required by ConfigParser) # Information about the project. name: PyOpenCV url: http://code.google.com/p/pyopencv/ # The list of modules to document. Modules can be named using # dotted names, mo...
a12ed74381f13c78d369351ffa8aeb526f8d6177
a37105fb7af3d6e29c407702db2b43066c0abd1a
/icc_pt2/week6/busca_binaria.py
ea357fdd0878a47099dc810c22ab7ea6b90ad8f8
[]
no_license
roque-brito/ICC-USP-Coursera
19bc0c6eb03ee6a1671eb9ceb104453bb8554cfc
628383080fd44606c7ab1927b3dc3062b47c0c88
refs/heads/master
2023-05-09T21:42:35.786829
2021-06-11T00:37:14
2021-06-11T00:37:14
363,147,051
1
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
busca_binaria.py
def busca_binaria(lista, elemento, min=0, max=None): if max == None: max = len(lista) - 1 if max < min: return False else: meio = min + ((max - min) // 2) if lista[meio] > elemento: return busca_binaria(lista, elemento, min, (meio-1)) elif lista[meio] < ele...
0474d664da38ee6733609e4545c4eb375ab45811
56c07896a9990804ecc82b92e7c73bb4d660b9d7
/geo/migrations/0001_initial.py
a958e29ef5f74577d9ba9fea47159e1fbecea243
[]
no_license
Dulalet/djangoProject1
603f29355ff5655c8e6ed4b6b0ff645be2cd7751
f5837abfd486c1a4355ba37198fa5416a6bc4382
refs/heads/master
2023-02-24T19:35:40.316869
2021-02-01T10:58:40
2021-02-01T10:58:40
332,218,848
0
0
null
null
null
null
UTF-8
Python
false
false
4,083
py
0001_initial.py
# Generated by Django 2.2.9 on 2021-02-01 10:41 import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Building', field...
32ab588969a32170f05d65e27d43cf160617b083
a153d803a727d05a0ae49ddbdfa7dec093c4265d
/AdminCreateUser.py
0d06a2fe4b73d28ad4ed71c316d1fdbf94e1a18c
[]
no_license
salahdev8/Students-application-Python
ec07dc908e4e9723eff96c08300d9cb1771edde5
720a8c3eee8125c9662398796eb68b4584cf4ca6
refs/heads/master
2020-09-09T19:29:06.213224
2019-11-13T20:15:37
2019-11-13T20:15:37
221,543,254
1
1
null
null
null
null
UTF-8
Python
false
false
3,175
py
AdminCreateUser.py
import tkinter as tk from tkinter import ttk import locale import StudentApp from utils import database class AdminCreateUser(ttk.Frame): def __init__(self, parent, controller): tk.Frame.__init__(self, parent) self.UserAccountType = tk.StringVar() self.UserFirstName = tk.StringVar() ...
f66d9c0a49378513d85e3ccabdbb602c062e195f
9cbe3ca6311d78beb7d25f4196add6c81a38fbc2
/common/xmindTool.py
c8a76027702ffe26f342d087aaf93d155ead478f
[]
no_license
wangluyan128/AutomationTest
78cf18ead65a632e73ee45b415b1c5affeaeaba1
94c0160ddd304b8edbba5faa03e5fa918e7c196d
refs/heads/master
2023-02-20T22:33:53.216912
2021-01-25T02:41:32
2021-01-25T02:41:32
326,410,874
1
0
null
null
null
null
UTF-8
Python
false
false
4,835
py
xmindTool.py
# 作者 yanchunhuo # 创建时间 2018/01/19 22:36 # github https://github.com/yanchunhuo from pojo.xmind.xmindData import XmindData from pojo.xmind.sheet import Sheet from pojo.xmind.rootTopic import RootTopic from pojo.xmind.secondTopic import SecondTopic from common.strTool import StrTool import xmind import os class XmindToo...
9be39685ddad8440058924a59518b0f746dc0020
2825bf6479e08dfead428ff9f29f28d5c23d953e
/12easy/12_4.py
f07cfa05180203f372afbece8588a13bc84c66f7
[]
no_license
zedaster/ImaevIntensive
bc459187dace7946d8ad75a04e058748134aeac4
b91760fa23f25ce2d19778781f35416c177ab881
refs/heads/main
2023-06-22T00:24:47.039208
2021-07-20T10:40:54
2021-07-20T10:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
12_4.py
s = '1' * 82 while '1'*5 in s or '888' in s: if '1'*5 in s: s = s.replace('1'*5, '88', 1) elif '888' in s: s = s.replace('888', '8', 1) print(s, len(s)) print(s)
d7602576d78e1407310cbe40cf04a9b04868d8dc
5dfc1eda668dc18bb745e4bb5964a70bf6289a86
/2.OddOrEven.py
15337c45b154d28f8f85b79459311b22af365f77
[]
no_license
Andromalios/practicepython.org
fd472f260c880de1ef4d27c743cb711a274f8bbf
30f20bace7f8dda8ea103a3e02f0385f1ebe3a0c
refs/heads/master
2020-05-15T19:39:15.232961
2019-04-20T23:43:30
2019-04-20T23:43:30
182,461,047
0
0
null
null
null
null
UTF-8
Python
false
false
1,291
py
2.OddOrEven.py
# Practicepython.org Exercise 2 - Odd or Even # Ask the user for a number. #Depending on whether the number is even or odd, print out an appropriate message to the user. #Hint: how does an even / odd number react differently when divided by 2? # Extras: # 1.If the number is a multiple of 4, print out a diffe...
60de0979ad8fa0542effadbc9d3413c167f7de73
60f32e7a596ec1057b60b4c68d163b18839ebfb7
/mod/addends.py
9c90591678e289fd516c70cc4afe252e20d6a3bf
[]
no_license
H3rm1tR3b0rn/WordlistEditor
54a1a14fbed00c7ebabc9a2cfc37172c378012fa
1d5c3426ac809cd263e35fb8af5102777f50f7f8
refs/heads/master
2023-08-17T03:33:55.062638
2020-06-25T21:06:17
2020-06-25T21:06:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,031
py
addends.py
import getopt global debugbool debugbool = False global verbose verbose = False global ends ends = ['', '123', "!@#", "12", "12345", '!@!'] global bool_common bool_common = False #Set if option -c is used, to write common_ends, the list above global numbers_string numbers_string = "" global Ends_string Ends_string = "...
efdc99fcb1bddba0fd2da869876f89bde999ace6
12c13b82d683189442b71a9c64bf3a451a7dc8b3
/satellite/routes/loaders.py
c428f5379a1a909665b5c322db6609f321273ad5
[ "Apache-2.0" ]
permissive
aslepakurov/vgs-satellite
baad5cfef67d2505dd518e5f7874bfd289347a2a
fd4b72127058e6a89456a3f7fbed80a1d3bfd217
refs/heads/master
2022-10-26T21:47:35.465019
2022-09-08T15:55:16
2022-09-08T15:55:16
249,564,624
0
0
null
2020-03-23T23:12:43
2020-03-23T23:12:43
null
UTF-8
Python
false
false
1,389
py
loaders.py
from typing import TextIO from marshmallow import Schema, fields, validate from ruamel.yaml import YAML from sqlalchemy.exc import DatabaseError from satellite.schemas.route import CreateRouteSchema from . import manager as route_manager class YAMLSchema(Schema): class Route(Schema): id = fields.Str(req...
e05ec432f8a073a9f41281fa7cd24d33b4ced7c6
d7539b2f4de5c7c86530b8b50add90b2364b302f
/LeetCode/Tree/PreOrder/112. Path Sum.py
96118215ecc43878d44c55cb1e43d9c86ee67f9e
[ "MIT" ]
permissive
thehanemperor/LeetCode
21db93a6f7f776b08bafc9a4ce7a569c4a482088
8d120162657a1e29c3e821b51ac4121300fc7a12
refs/heads/master
2022-12-10T13:53:54.547653
2020-09-21T07:20:58
2020-09-21T07:20:58
284,467,416
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
112. Path Sum.py
class Solution: def hasPathSum(self, root: TreeNode, sum: int) -> bool: return self.preOrder(root,sum) def preOrder(self,root,total): if root and not root.left and not root.right: #print(total,root.val) if total - root.val == 0: ...
f11f6aa416bb02708a0c3016cfce34353ba653bd
22c725c9327e3ba13f3752587d742475f54dd347
/codes/vmall.py
9b746611999459e20c3fa42e3ef3ba1d814fd308
[]
no_license
wiki-wang/Selenium
312047e5b9e82a95ef2452cbc33fe8fd64f3fce9
1f48274fe1ec3e83822559ce324b06d077b082d3
refs/heads/master
2020-04-17T21:14:57.582062
2019-04-30T15:23:49
2019-04-30T15:23:49
166,941,177
0
0
null
null
null
null
UTF-8
Python
false
false
2,599
py
vmall.py
from selenium import webdriver from selenium.webdriver import ActionChains driver = webdriver.Chrome('c:\\wyy\\webdrivers\\chromedriver.exe') driver.implicitly_wait(10) # 窗口最大化,否则页面显示不完全 driver.maximize_window() driver.get('https://www.vmall.com/') # 保存主窗口handle mainHandle = driver.current_window_handle ...
ee998230a98470c5f02aaa37edf089bd4da93bec
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/8HxYSzxMyN9pJb23g_7.py
b4300b127ee799fc747263fe0333add93b7b8fc5
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
8HxYSzxMyN9pJb23g_7.py
def split_n_cases(txt, cases): if len(txt)%cases==0: n=int(len(txt)/cases) return [txt[i:i+n] for i in range(0,len(txt), n)] else: return [ "Error" ]
c8acde39545f80f85a483154e7747cacbc0d4217
b885eaf4df374d41c5a790e7635726a4a45413ca
/LeetCode/Session3/QueriesWithKey.py
89d64a4939353654ff7933922f8bee1facfa51e4
[ "MIT" ]
permissive
shobhitmishra/CodingProblems
2a5de0850478c3c2889ddac40c4ed73e652cf65f
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
refs/heads/master
2021-01-17T23:22:42.442018
2020-04-17T18:25:24
2020-04-17T18:25:24
84,218,320
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
QueriesWithKey.py
from typing import List class Solution: def processQueries(self, queries: List[int], m: int) -> List[int]: permutation = list(range(1, m+1)) result = [] for i in queries: index = permutation.index(i) result.append(index) permutation = [i] + permutation[:in...
07e0f01bc64803d37cb5334d28a2dd1980e662c1
e5a0a77a66563511c72feda18229712f109ab16d
/code/Chapter 8 - Working with Files/read_in_chunks.py
ee61380a5f39151c85fd947466b04a8cf303f90f
[]
no_license
driscollis/Python-101-Russian
0136b3fe3edee025e4408a89c0461bb79ab4be07
28ce6727ef56dee8b6966526c5f80d8323ec9d73
refs/heads/master
2021-10-20T23:31:05.413934
2018-10-23T06:54:30
2018-10-23T06:54:30
149,648,717
0
2
null
2018-10-23T06:54:31
2018-09-20T17:53:06
Python
UTF-8
Python
false
false
118
py
read_in_chunks.py
handle = open("test.txt", "r") while True: data = handle.read(1024) print(data) if not data: break
82ce72e82dfbb89ae03868d0d6d707f5aa663016
69bba1b02a44957d2ca715cdc86426c6e0abe956
/cms/test_utils/project/placeholderapp/admin.py
4ee8e87bf1420b9d247dc98d2b476ba28ecddc66
[ "BSD-3-Clause" ]
permissive
Aiky30/django-cms
38ab6abe9f52a3485d5592908e03abedad0d5c15
5fccf9d8b256fe9f2fc593418b9caebb8e027a54
refs/heads/develop
2023-06-09T18:00:56.237071
2021-04-01T13:47:35
2021-04-01T13:47:35
137,197,834
0
1
BSD-3-Clause
2018-06-26T15:15:13
2018-06-13T10:04:13
Python
UTF-8
Python
false
false
766
py
admin.py
from cms.admin.placeholderadmin import PlaceholderAdminMixin, FrontendEditableAdminMixin from cms.test_utils.project.placeholderapp.models import ( Example1, TwoPlaceholderExample, CharPksExample ) from django.contrib import admin class ExampleAdmin(FrontendEditableAdminMixin, PlaceholderAdminMixin, admin.ModelA...
118fcd614e702a5dcbe6ac65a13770b0484ddd68
446ebbd78cfccb319b0447645b1fc9e18c9c27d6
/healthapp/apps/aid/migrations/0006_drugdetail_price.py
8558f81f8cd3a4c5fdf947880b5c1e4f97e4a562
[]
no_license
xilousonw/healthapp
b26057cc3c4c35bea37f42fb8125c110878487e8
dfbc2182ec61832231a85bef1e37fb2a2aa33564
refs/heads/master
2022-11-27T23:53:39.769766
2020-08-15T13:33:54
2020-08-15T13:33:54
286,454,046
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
0006_drugdetail_price.py
# Generated by Django 2.0.7 on 2020-08-13 12:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aid', '0005_auto_20200813_1209'), ] operations = [ migrations.AddField( model_name='drugdetail', name='price', ...
f041b9940bb86b33b49faebc24dfc04cdd932f37
f625fed0c0f6cbdcef144cbf2cefe6fced35d811
/teresa/__main__.py
4b40b7383aed98ef2e156febd788af20c3eae70d
[ "MIT" ]
permissive
meng89/ipodshuffle
409388adca6a0886f2306bb490050ef54cd24c0f
c9093dbb5cdac609376ebd3b4ef1b0fc58107d96
refs/heads/master
2020-12-03T10:31:01.024528
2016-04-24T15:16:35
2016-04-24T15:16:35
49,576,057
4
0
null
null
null
null
UTF-8
Python
false
false
1,343
py
__main__.py
#!/usr/bin/env python3 # encoding=utf-8 import argparse import ipodshuffle.version from . import version as self_version from . import translate as _ from .utils import add_optional_group, add_args_help def main(): parser = argparse.ArgumentParser( formatter_class=argparse.RawTextHelpFormatter, ...