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
68f3d3fce52d08381adc522ee032ef3181aec82a
5414f5815d0d2ca4705f0a4681a82d91033487c0
/beerFriends/migrations/0007_auto_20190727_1041.py
065a3a6b35d07d581042315b54917e8253ae9190
[]
no_license
thailore/beerFriends
74afbdc12b74e806d287d91a34f5692d4ef75345
15c8c90a25a7f68285d86d178d5283511a134a52
refs/heads/master
2020-07-29T12:49:38.220718
2019-09-20T14:27:12
2019-09-20T14:27:12
209,809,376
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
0007_auto_20190727_1041.py
# Generated by Django 2.2.3 on 2019-07-27 10:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('beerFriends', '0006_auto_20190726_1504'), ] operations = [ migrations.AlterField( model_name='beer', name='rating', ...
4775bef3623497e9bbe79ca2d4e9e9da0422c450
ec8e21fa770e39cc7bee8d66a94e715313402d03
/start_simulation.py
47384f6c594477314dd49f31241d3bbedbc50d62
[]
no_license
hamednoori/PB-ITL
fad638097e164734a00045fba92324ac22c54f02
5bf86e0345c49f0f6f1fe9c59e97964f019df532
refs/heads/master
2020-03-18T16:44:32.547437
2018-11-05T08:29:10
2018-11-05T08:29:10
134,983,934
1
1
null
null
null
null
UTF-8
Python
false
false
2,115
py
start_simulation.py
# # # # ------------------------------------------------------------------------------------------------------------------------------ # # This program have been developed by Hamed Noori and with citiation of the related publicaitons # can be used without permission. # This program is for a novel architecture f...
8102bdf4d29d2d3a1bdddbcfb6045b0660693996
e86f5fefe697721d6d847be364e27153ed8ad636
/processing/OiePreprocessor.py
122924cd0baa00c9219cdf826d7910ac4e1c9bf0
[ "Apache-2.0" ]
permissive
boromir674/relation-autoencoder
beab6df854cf53cc000ef61aa57842272dd5f69a
7750c16d5c01bb047d82e16d6005b20f3c920576
refs/heads/master
2020-06-13T23:02:25.692779
2017-06-15T11:47:32
2017-06-15T11:47:32
75,534,689
0
0
null
2017-03-22T13:28:08
2016-12-04T12:00:22
Python
UTF-8
Python
false
false
22,227
py
OiePreprocessor.py
import os import time import argparse import cPickle as pickle from definitions import OieFeatures from definitions.OieExample import OieExample class FeatureLexicon: """ A wrapper around various dictionaries storing the mined data. It holds 5 dictionaries in total. Two of them store mappings\n - str ...
d82412055affc96d634957c953a35ea69b7e702f
54e0e03147fb614f145a68a94afc0fa506b4ed3f
/RaspberryPi/Relay Extension Board Projects/test_led.py
190f46e06a50abefca9578c7006b7d430bd7ca11
[]
no_license
valemichelleee/Portfolio
5b0e907b1160b91843038723a76e3f1487d1daa4
f5c0cd642bd69a3f7ece8678b34758a877b33004
refs/heads/main
2023-06-21T19:18:30.334457
2021-07-15T14:20:47
2021-07-15T14:20:47
385,492,530
0
0
null
null
null
null
UTF-8
Python
false
false
2,227
py
test_led.py
'''Turning on or off, toggling and checking the status' of a specific relay''' #!/bin/env python3 from time import sleep from gpiozero import LED RELAYS = [ LED(23), LED(24), LED(25), LED(8), LED(7), LED(1), LED(12), LED(16) ] def on_action(relay_option, number): '''To turn on t...
862b529741d9c3e6cf7ca50272c8af724c56ac62
15a1cc4b3097038966c0e70af24a90cc46505858
/wasserstoff/__init__.py
08e674a428a8ce1968eceb6541d1077471cb0291
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
py-crash/wasserstoff
3e1305e21c497e7901020d9f0a6769acb7c5fa4f
b497898ab6f2882cee05bf471039b5609d03e2ba
refs/heads/master
2021-07-22T03:33:47.492493
2017-10-31T02:56:11
2017-10-31T02:56:11
107,029,330
0
0
null
2017-10-15T16:33:18
2017-10-15T16:33:18
null
UTF-8
Python
false
false
93
py
__init__.py
from wasserstoff.wasserstoff import Config, Environment __all__ = ['Config', 'Environment']
6d25b0fedf0d5081a3a0a93ddacc49748464d9d0
7ee4bba7bf74eb62be56cb7dd0eb0d54e1e1583b
/remoteexploits/Malware_Engines/Python_Mirai_Project/Mirai_Python_Project/mirai/bot/checksum.py
bfe19dc13b843fbd8fbbe56816abdd13b4d4d32b
[]
no_license
Buzzkillhardball667/arms.commander
4be16fcee2502b5cf0f7ac7c3aa5ad1ef6daf604
4ff0d6561708ffbcbe1e07ad9d26152f89440d72
refs/heads/master
2021-05-01T17:05:33.547504
2018-01-19T06:45:44
2018-01-19T06:45:44
120,993,279
1
1
null
null
null
null
UTF-8
Python
false
false
579
py
checksum.py
# Required python libraries for attack.py import socket import os import sys from termcolor import colored import StringIO import time # need to find Python equivalent libraries for these import stdio import stdlib import unistd # need to find Python equivalent libraries for these import includes import killer impor...
e57b30a7a1cf987918abfb3cb7d612bdead2ddcd
053bbe78bac35ac6ce5037e9827a2859b14dd79f
/airlines/first/models.py
d63d4a5042b54ebc890660e4756bd955352be6a9
[]
no_license
sanchay007/django-airlinesmanagement-project
80a32830c2ea5fcdb86da1a6b074c4da8365231b
cd6ef21fe030a24b2d53ea135f06e3fea0882f5a
refs/heads/master
2020-03-22T19:19:14.083276
2018-07-11T04:18:11
2018-07-11T04:18:11
140,520,468
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
models.py
from django.db import models # Create your models here. class Airlines(models.Model): flight_number=models.CharField(max_length=8,unique=True) airlines_id=models.CharField(max_length=10) source=models.CharField(max_length=20) destination=models.CharField(max_length=20) departure=models.TimeField() arrival=models...
2827a56c12c1e15a6fe26ce182aa07d76735d77f
4b615c2658d018fcc4b224c51e931f4f3a4c8643
/setup.py
9531105c0f0f16be5b6ad4be98a8fa454168e15c
[ "MIT" ]
permissive
mdsanima/mdsanima
3777e4ac0ed44755e1356c2226c0489aadafcd94
c64207f82ef9f612f9c36497657bd1a240790fbb
refs/heads/master
2023-05-05T14:37:21.110426
2021-05-25T01:13:15
2021-05-25T01:13:15
302,442,830
1
0
null
null
null
null
UTF-8
Python
false
false
2,852
py
setup.py
''' MDSANIMA Setup ''' import sys import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent CURRENT_PYTHON = sys.version_info[:2] REQUIRED_PYTHON = (3, 6) # This check and everything above must remain compatible with Python 2.7. if CURRENT_PYTHON < REQUIRED_PYTHON: sys.stde...
d4ac5c6f08e9baa458fbe0ca7aa90c4d9372844f
c98532338759852d4ac4181f802506b26e5e9a0d
/h5_storage.py
77cff357f3278c46f7d780b7cc50f732ecb39935
[]
no_license
pdijksta/WakefieldAnalysis
0e08b1a8bef054f16f7b7c543da529ec4c2eb336
96e68bab74768c6006e9ff5f5cd7ffe27ebc92e6
refs/heads/master
2021-12-09T21:06:39.374457
2021-12-04T23:54:22
2021-12-04T23:54:22
250,505,657
0
0
null
null
null
null
UTF-8
Python
false
false
8,931
py
h5_storage.py
import h5py import numpy as np #import tracking dt = h5py.special_dtype(vlen=bytes) def stringDataset(group, name, data, system=None): dset = group.create_dataset(name, (1,), dtype=dt, data=data) if system: addSystemAttribute(dset, system) return dset def addStringAttribute(dset_or_group, name, d...
4d388c912915c3f1f9e433f1342289f0864b3a11
2f9533d2f993b45f44a11fff04a5fda2bd138e82
/tests/UdpClient.py
7884654ea02cd01c8965d24f61c89830af600726
[]
no_license
DavidZemon/CS365_Project
f2c9e99daba1fec6f9e3593181cb23f8fc99be0a
bc283179ce3eebd23b9bd0ef031acd7bcafa3f23
refs/heads/master
2021-01-19T05:39:43.120684
2013-12-04T20:55:50
2013-12-04T20:55:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
UdpClient.py
#/usr/bin/python # File: UdpClient.py # Author: David Zemon # Project: Project1 # # Created with: PyCharm Community Edition """ @description: """ __author__ = 'david' import logging from src.UDP import UDPClient logging.basicConfig(level="DEBUG") serverName = '127.0.0.1' serverPort = 12000 client = UDPClient()...
80d46aa75e3c7accde07961b7cd927956234c21b
9acd1c9283aac7c484cc04deda03d61e3aab6f3a
/iridauploader/tests_integration/tests_integration.py
d2dcc3b72f5ec9008b58e719419e25641ecd2da3
[ "Apache-2.0" ]
permissive
phac-nml/irida-uploader
45a636bf06d1342b8771315dda0b142b4dd60973
b42bfc1f0324ace8347154b076e9db3e9284a02e
refs/heads/development
2023-06-18T00:28:42.654863
2023-05-16T14:27:47
2023-05-16T14:27:47
167,581,091
10
10
Apache-2.0
2023-06-06T17:04:20
2019-01-25T16:51:17
Python
UTF-8
Python
false
false
2,898
py
tests_integration.py
""" This file is responsible for managing the execution of an IRIDA instance and Test Suites """ import unittest from iridauploader.tests_integration.integration_data_setup import SetupIridaData from iridauploader.tests_integration.test_api_integration import TestApiIntegration from iridauploader.tests_integration.tes...
dc3a85c1ac874b68486994abf0ab05a85bfb7b50
bcc199a7e71b97af6fbfd916d5a0e537369c04d9
/leetcode/solved/1961_Maximum_Ice_Cream_Bars/solution.py
aac372881bb3ca889e95954f61cfbee4c0ce7584
[]
no_license
sungminoh/algorithms
9c647e82472905a2c4e505c810b622b734d9d20d
1389a009a02e90e8700a7a00e0b7f797c129cdf4
refs/heads/master
2023-05-01T23:12:53.372060
2023-04-24T06:34:12
2023-04-24T06:34:12
87,406,513
0
0
null
null
null
null
UTF-8
Python
false
false
6,815
py
solution.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2020 sungminoh <smoh2044@gmail.com> # # Distributed under terms of the MIT license. """ It is a sweltering summer day, and a boy wants to buy some ice cream bars. At the store, there are n ice cream bars. You are given an array costs of l...
a7a9e6d783277dc0063c438b575a2a24f6e4bf60
c3304d5c4f0532b842358edaf2f950936162ea50
/zstacklib/zstacklib/utils/drbd.py
c3cf35c93df9b5bccfe9f0c9b411226c2ded5202
[ "Apache-2.0" ]
permissive
zstackio/zstack-utility
2380dff882db9c7143730e218d43f852222e2f3e
765442c7453cf8ae1e723309116bf0d91f4c5e37
refs/heads/master
2023-02-28T08:09:00.161568
2022-09-27T05:25:03
2022-09-27T05:25:03
33,421,279
57
72
Apache-2.0
2023-02-15T15:59:11
2015-04-04T21:38:40
Python
UTF-8
Python
false
false
17,830
py
drbd.py
import os import platform import time from zstacklib.utils import linux from zstacklib.utils import bash from zstacklib.utils import lvm from zstacklib.utils import log from jinja2 import Template logger = log.get_logger(__name__) class RetryException(Exception): pass class DrbdRole(object): Primary = "P...
09a0d5ea4eb5116b2f1861ec69ff555bd3be8400
e70b9788020bfe376d8e5d1f735665e61898d873
/Supervised/Classification/RandomForest_v2.py
7643e88a8e72f180ddf8a17826fbc78e09627a19
[]
no_license
jieuhyl/Machine_Learning
a991e0e5339c443f91c2ea713a4acb9afed0a3d8
cc7da936c8f1c1643392df5c25e8d51865906459
refs/heads/master
2023-01-13T20:08:57.294196
2020-11-19T06:40:15
2020-11-19T06:40:15
247,412,685
0
0
null
null
null
null
UTF-8
Python
false
false
7,878
py
RandomForest_v2.py
# -*- coding: utf-8 -*- """ Created on Thu May 14 00:46:28 2020 @author: Jie.Hu """ # Suppressing warnings because of skopt verbosity import warnings warnings.filterwarnings("ignore") import numpy as np import pandas as pd from sklearn.datasets import make_classification from imblearn.metrics impor...
30672195a7824b58467606776a2aa49939f4f757
8b9695d35adb727cf7c153604a752a7d7be97373
/Abgaben/HelloWorld/Helloworld_Kilian.py
65b07704cad5473a82ada243b4115400e6141384
[]
no_license
Chia-vie/CodeRoemerland
103dca9028291c7ba9f0be4abbec4c54fe366316
099ea5f3adf3eb83f151559a96756dcaa168a9f0
refs/heads/main
2023-06-18T18:57:32.582203
2021-07-21T15:24:42
2021-07-21T15:24:42
385,320,194
1
1
null
null
null
null
UTF-8
Python
false
false
77
py
Helloworld_Kilian.py
print('Hello World') # dies ist ein Kommentar welcher nicht ausgeführt wird
5043d6e2c0df40b8c6cf7acc8794448b2373de3d
7ad1fcb65d5252b053d9e8fd0ea9bd83ac7cd528
/effects/runner.py
faa36cb1a78769bbf73924c75c6307e638e7aee7
[ "Apache-2.0" ]
permissive
fernandoeng/OmegaLed
299708581866ddd207f91e59a3862292d7a0973f
b5cc2fb036d283b4ebd975ed6ba0df98bb6b5169
refs/heads/master
2022-07-17T21:16:16.367719
2020-05-18T20:48:59
2020-05-18T20:48:59
262,811,677
0
0
null
null
null
null
UTF-8
Python
false
false
5,427
py
runner.py
"""Runner Effect""" from generic import GenericEffect from models.color import Color from models.led_strip import LedStrip class RunnerEffect(GenericEffect): """DocString""" def __init__(self, **kwargs): """DocString""" self.name = "runner" self.options = { "speed": "spee...
f341a07b50b45fa59ae5066846d3ea11a5a48724
73336f5337b2efd0228988d3a0f1e365c0c850a2
/Django/Pandora/Pandora/urls.py
937ab08f7df2c9e4d3957c639fbd99b0e9ab7657
[]
no_license
PercySpecter/Tryouts
b32e20162bdda5aaa4affc7400140db1cd75f422
f9a44a41f3e9d51460b9f1e937ca3cae37282a5b
refs/heads/master
2020-03-18T17:29:20.256436
2018-10-26T05:18:08
2018-10-26T05:18:08
135,031,833
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
urls.py
from django.contrib import admin from django.conf.urls import include , url from . import views urlpatterns = [ url(r"^$", views.index, name = "index"), url(r'^admin/', admin.site.urls), url(r'^movies/', include("movies.urls")), ]
191eee544f06fe7e432a857e80302609d627c8b6
779ddbb4e117e7be24bfc0fb972617b080e8fe9d
/firstSite/mainApp/views.py
f9f690c98f141d4797d371655f6dee9f39b513a3
[]
no_license
Serg-sh/MyDJango
0d0f5a3589e6d1aea9540cf5ff225baea93c932f
e13c5f704e2222f7c918c96a82221f31ed8957b2
refs/heads/master
2020-04-30T17:04:37.036409
2019-04-04T14:39:40
2019-04-04T14:39:40
176,967,954
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
views.py
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'mainApp/homePage.html') def contact(request): return render(request, 'mainApp/basic.html', {'values': ['Номер тел.', '(000)111 22 33', 'mail@mail.mail']})
2be24dbe84a66448bdb2c956fac7c52fc7bf5d25
b04cc98a746d1df457183bc14908094a8be00ba1
/tests/test_quant_post.py
bba40215b3373769a664b18d98cbef7f7001a358
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleSlim
a3bcaef0c92016b7f6946d58787f87c7db8ff3f8
bb02b103a89a09635941bc0bbbd38506d7412468
refs/heads/develop
2023-08-31T01:47:27.824722
2023-08-25T08:06:08
2023-08-25T08:06:08
228,290,594
1,534
402
Apache-2.0
2023-08-29T09:37:55
2019-12-16T02:56:50
Python
UTF-8
Python
false
false
5,461
py
test_quant_post.py
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
d1ae44da49fef9979873275aab17c6ebcb995397
0409d28367f993e9d106dd4526e7aa5f48738936
/Unflow/src/e2eflow/kitti/input.py
f8369484dcfab3504d144a77f6f5bafa14f55b14
[]
no_license
zhangqiuhao/Unsupervised_flow
512ce7d543878da0712a663d885a22c8f28e3883
cf3342b8cd8796014ab3d4b335f83b441683c472
refs/heads/master
2021-07-06T00:25:11.407221
2020-09-07T07:56:41
2020-09-07T07:56:41
168,321,461
0
0
null
null
null
null
UTF-8
Python
false
false
2,235
py
input.py
import os import sys import numpy as np import tensorflow as tf import random from ..core.input import read_png_image, Input from ..core.augment import random_crop class KITTIInput(Input): def __init__(self, data, batch_size, dims, layers, num_layers, mask_layers, *, num_threads=1, normalize=Tr...
6e9f43404c1597642539f2c45861e86041fae915
ffe7b7243551673c2562cc8d934af59631a9fa07
/ros/src/tl_detector/tl_detector.py
ba1d463a9652fa8466661606d8ded638182b8562
[]
no_license
HoijanLai/Node-matter
00df695523dbb6834dcb8ac249873be9ccc8440e
bf11132552192c745151dc87d0adcfd78acf377c
refs/heads/master
2021-08-14T20:15:41.692964
2017-11-16T17:39:21
2017-11-16T17:39:21
107,624,626
0
0
null
null
null
null
UTF-8
Python
false
false
9,247
py
tl_detector.py
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane, Waypoint from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier im...
cbfef3124861c4e1dcb6fa1ac0ffd88a4d84ef55
88a1eb9e038fed34617cde04a3b526600fa311b4
/data_structures/binary-search.py
0771054066531b33be060bde81294785fa74650f
[ "MIT" ]
permissive
Jian-jobs/leetcode-notes
7ceacc6eff1b3b56e33fd005c038dd8337ba366b
c7dc3ead0f4fc660d7b59f90eb61ba9721280132
refs/heads/master
2020-05-15T01:00:39.825128
2019-02-12T16:39:27
2019-02-12T16:39:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,063
py
binary-search.py
""" ATTENTION - 避免溢出,可使用mid = l + (r-l)//2 - 有时候需要考虑item > nums[-1]的情况!!!!!!! - 更要考虑只有一个item的array时使用if l == r-1作为break条件是有问题的!!!! - 可以改成 `l>=r-1` """ def binarySearch(nums, item, cmp_fn): """ Input: - nums: ordered list - item: the number to search of - cmp_fn: compare function Output: - the index of...
e7b4405de04667e4bfac82e07797083ed19c7771
c1c7d69feec21b429ffd89b3fc95881e28c3fbcc
/BinarySeparation.py
2addad97038239b3a299b3048b496e7a7744e0bd
[]
no_license
fseiffarth/MaxMarginSeparations
07ce2c9707d635cd1faa2756d94438ab515ff570
6360c0b3fb191d5aea54a9a71e16ffa10eb196ea
refs/heads/master
2023-01-27T20:53:37.567431
2020-12-11T11:46:41
2020-12-11T11:46:41
273,482,541
0
1
null
null
null
null
UTF-8
Python
false
false
44,253
py
BinarySeparation.py
''' Created on 10.08.2018 @author: florian ''' import sys import time import random import math from collections import OrderedDict from scipy.spatial import ConvexHull import numpy as np import matplotlib.pyplot as plt import tikzplotlib from Algos import get_points_inside_convex_hull, intersect, get_inside_points,...
bdce3b748af6cefb9c3f886b3f17d9a2c72b4cb0
9deb1edc14deb3d7ccdf046e2ab45e03285ba845
/processing/goldenRatio/CheckGolden.py
a9b801eeac895695ca7604b401bc5c1cef58cb3a
[]
no_license
amandasongmm/attractiveness_datamining
58029a2038f24cd6cc6d3108d91b4658d06109d7
99dccccc383bf01227fa677715c4ec88023aa41a
refs/heads/master
2021-01-23T19:36:34.778737
2017-01-31T22:47:41
2017-01-31T22:47:41
49,614,261
3
0
null
null
null
null
UTF-8
Python
false
false
3,374
py
CheckGolden.py
# # CheckGolden.py # # The purpose of this script is to determine the ratios of face positions # from this video: https://www.youtube.com/watch?v=kKWV-uU_SoI # # Built for Python2 in order to work best with machine learning libraries. # # Author: Chad Atalla # Date: 2/3/2016 # import pandas as pd import numpy as ...
2b24138d8320598ad06827a7db35621e04db890e
904537ded5004eb9d3dcbab9b54232be3f63b3b2
/leetcode/Other/189_rotateArray.py
d2e6b9c939059447a5999d139fac273d302a7cbb
[ "MIT" ]
permissive
montukv/Coding-problem-solutions
6fd6554173433808647b2719a13096da5f400f81
f6eca27151b37955a446747629f2f39ea51536ed
refs/heads/master
2023-05-14T02:37:15.576951
2023-05-11T14:08:17
2023-05-11T14:08:17
252,090,276
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
189_rotateArray.py
'''189. Rotate Array Easy 2526 779 Add to List Share Given an array, rotate the array to the right by k steps, where k is non-negative. Follow up: Try to come up as many solutions as you can, there are at least 3 different ways to solve this problem. Could you do it in-place with O(1) extra space? ...
be62b6cf5429053f1ca170fc91eadb766370ffbb
6c1d651f3b011edffd846bf30fb0de9f2c70cecd
/week03/week_03_05.py
3e575462c7820349f3468407aa6e29bdc16c50d9
[]
no_license
photoindra/lessons
fdcd0ef2dcf4487af66a02efbb19a9a9eb3b082e
a5a13f53c288d5cce083da5a696d8b8d2602cabc
refs/heads/master
2021-01-19T14:05:17.998507
2014-09-06T01:14:21
2014-09-06T01:14:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,511
py
week_03_05.py
# Задание 3.5.Для работы со всеми перечислимыми объектами Python предлагает функции map и filter. Прочитайте про эти функции и реализуйте сами собственные функции my_map и my_filter, которые работают точно так же как map и filter. def foo(x): x *= 2 return x testList = list(range(1, 14)) print("Original list is:"...
797d0df6c30b6a426a45157f41c2ab60e1977b37
b7db2e9fd551dec29b62559de70ac40e13556eb1
/src/bkp/main_edu_char.py
dfbcd541d41742add279aa5699b8a7b8eb66e391
[]
no_license
gabuvns/signature-generator-verifier
38a79055fbc97ecedab4e66c59be4d688804d943
4077f4bb23dd547ded31884fc5f73b579f7eb9b8
refs/heads/main
2023-04-30T22:37:51.406113
2021-05-10T15:19:41
2021-05-10T15:19:41
362,607,609
0
0
null
null
null
null
UTF-8
Python
false
false
3,664
py
main_edu_char.py
import sys import random import libnum # mod import Crypto from Crypto.Util.number import * import base64 # encode/decode from math import log import hashlib # hash if sys.version_info < (3, 6): import sha3 def bytes_needed(n): if n == 0: return 1 return int(log(n, 256)) + 1 initial_primes = ...
04aaa6369f3f35daeb4a10a71cbafb43f1923cb2
32bba10ca6ab550dd22bb0f5c5859f9c557325a2
/main.py
4d88b55f14f414469c2b608bc134b5e1ca0dadf2
[]
no_license
emrizal/MAASurvey
b77014c9203e461a1323cf3f622b825f02801442
4725480cb3ed2bec6b8a4a294f7210c63289d88d
refs/heads/master
2022-11-22T00:48:34.513266
2020-07-28T12:20:15
2020-07-28T12:20:15
282,656,739
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
main.py
from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput from kivy.uix.checkbox import CheckBox from kivy.uix.button import Button from kivy.uix.widget import Widget import json import requests class MyGrid(GridLayout): ...
6e4ae8bdd4166a644558d9a299d204d26decd29a
2716c3c7b36389a9f86226dc316d226687f94807
/Banahaw_app/BanahawApp/Member01/controller.py
a6b1cfc916ed7329cce5f135bd2ec331c6e7670f
[]
no_license
razenmarling/BanahawProject
896cfb89c05c4e4f3aa461d3141a5a5be562e08e
9bfcff5c1c2cd91b8bb0d710496cfd9f7cb3981e
refs/heads/master
2021-01-01T20:18:47.817804
2017-10-06T15:55:30
2017-10-06T15:55:30
98,808,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
controller.py
from flask_restful import Resource,reqparse from .model import Member01_data class Member01(Resource): def __init__(self): self.__reqparser = reqparse.RequestParser() self.__args = dict() def get(self, char=None): retval = dict() status = 200 args_list = [('member00id',str,'args',None,False...
d5061f3354a6da6bc16302c61279da5da651b9b2
70ebabdcebe28a0278a37a3cb1fd1d3aba48f285
/src/Springer and Taylor and Francis/scrape_journals.py
dfd785f7fa461390b43a26590b11ecbd923eb2bd
[]
no_license
aaronnorrish/CITS3200_Project
90091e3b6e99f892fd4ee1c9a159e69ec0fdab9d
4c7cead0c28fa42a7ae2e02b57960df01453f50b
refs/heads/master
2020-03-26T08:08:07.114834
2018-10-22T14:28:38
2018-10-22T14:28:38
144,687,310
2
0
null
null
null
null
UTF-8
Python
false
false
9,525
py
scrape_journals.py
from journal_frequency import * from taylor_and_francis import * from springer import * from helper_functions import * from os.path import isfile from sys import argv # Main program which first tries to obtain the journal publishing frequencies as # listed on the Clarivate website, then obtains the instructions for au...
1373b569012aca3fd0bba75d7810e1260893ab13
bc34d476ff61fbfbeb3516ca9bfc15ed1083c8ff
/telegerrit/gerrit/listener.py
d00e79a6be1111fae33efc422129b09b0384510e
[]
no_license
inhumanitas/telegerrit
58d5f3cc4f7ec2cdc359abdb018be8d5bfbc8ce6
600de02399f089962e80f74c1dd20617b44b6ff8
refs/heads/master
2020-05-21T14:52:56.153145
2016-10-22T18:56:59
2016-10-22T18:56:59
64,246,612
2
1
null
null
null
null
UTF-8
Python
false
false
4,109
py
listener.py
import logging import sys from time import sleep from pygerrit.client import GerritClient from pygerrit.error import GerritError from pygerrit.events import ( CommentAddedEvent, PatchsetCreatedEvent, ChangeMergedEvent) from telegerrit.gerrit.models import UserMap, CommentsWriter from telegerrit.settings import ss...
31336e9eb226df19840e74c14071973a91196866
2b7c4e2ba544b93c4b3997c92e10cfac13fc55bb
/geometricDataLoader.py
712c3be5215bfae36a641fd3d24381b960e50871
[]
no_license
orionnight/Graph-Neural-Network
4b2334482f7593a0617fc5b1e622f3b493b7c1b4
c1185e7dad8f9a9a2466c1486f1856045b742174
refs/heads/master
2022-02-19T18:18:15.755413
2019-08-08T23:25:15
2019-08-08T23:25:15
201,281,335
0
0
null
null
null
null
UTF-8
Python
false
false
1,915
py
geometricDataLoader.py
#!/usr/env/bin python3.6 import os from random import random from torch.utils.data import Dataset from torch_geometric.data import Data import pdb import torch # Ignore warnings # import warnings # warnings.filterwarnings("ignore") def make_dataset(root, mode): assert mode in ['train', 'val', 'test'] items =...
fd6296775b9ebc05dc55f47fe8e8c6d60df7b459
d4815437d99dabb0ba8bd5bf4a26bb3f91adae7e
/accounts/models.py
3f60149d6b7b5ab62518129b69603b635329d7bb
[]
no_license
tushhr/Jagrati
68529a720834e16312738d8e92b831264f57ed9a
ee062a577cc31e8c8697bdd611aec56e3a011fdf
refs/heads/master
2023-06-17T08:18:06.995375
2021-07-21T06:22:57
2021-07-21T06:22:57
318,965,297
0
1
null
2021-07-21T04:07:33
2020-12-06T06:13:31
HTML
UTF-8
Python
false
false
1,798
py
models.py
from django.db import models from django.contrib.auth.models import User from django.conf import settings from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token from imagekit.models import ProcessedImageField from imagekit.processors import...
1db2d2ea404dffe5af37481d47a499a26b3ac5ac
455a3e302d47a70de0e2ba6d160596223f38fa46
/settings.py
bf29fc103454cd1abe6cce6c0eb1835517f2a34a
[]
no_license
xuongtrantrieu/backend_mongo
9194f0e86e4f3717dd473c5e1d4f03ba7c0bd044
7299372e97e8f3b5a5b0d55312a3990a27db5d98
refs/heads/master
2020-06-06T09:07:00.528987
2019-07-02T10:19:23
2019-07-02T10:26:52
192,696,908
0
0
null
2019-07-03T09:31:23
2019-06-19T09:00:42
Python
UTF-8
Python
false
false
2,801
py
settings.py
from flask import Flask from dotenv import load_dotenv from os import getenv, getcwd as get_current_directory from os.path import join as join_path from flask_pymongo import PyMongo from flask_jwt_extended import JWTManager from datetime import timedelta from logging import handlers import logging load_dotenv() SECRE...
cd65f286721944a741d5f697609a1a213c17de26
ef86e52d77c0d76f69eeca7132c1019add8dfaa8
/LDDImport.pyp
7bc2082b84ed08dc1ef6019ee65fc939d7c361c7
[ "MIT" ]
permissive
gemvfx/LDDImport
845cff1b2f2a7814abb25cd49f88caaa70dc8bea
07179ce7feb474a78df46e204a9d7589fd140811
refs/heads/master
2016-09-06T14:07:36.211323
2015-05-25T19:06:07
2015-05-25T19:06:07
35,781,817
1
0
null
null
null
null
UTF-8
Python
false
false
821
pyp
LDDImport.pyp
""" Lego Digital Designer C4D Importer Copyright: Gerhard Messer Written for CINEMA 4D R16+ Version History 0.1 - 2015-05-18 - initial plugin """ import c4d from c4d import gui, plugins, utils, bitmaps, storage import os, sys #1033677 LDDImport -- registered 25.09.2014 PLUGIN_ID = 1033677 class Olddimporter(...
16da508f62ddb353409ef723a4e6a6a3360ae592
f6dc21cf7eae399e4cc5c5e1124c45eaaa55eaf5
/2-First LAB/L01M1.py
ddd39c9d8b0728e8837162658ac7dee1e3d42566
[]
no_license
Shayennn/ComPro-HW
23a49a843cd1790d58800b2625583c0784e91258
6303dd0023ac830deb2f4b457e0c2eebe053916a
refs/heads/master
2021-08-04T16:58:48.463867
2018-11-22T09:31:06
2018-11-22T09:31:06
143,449,084
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
L01M1.py
# -*- coding: utf-8 -*- #std25: Phitchawat Lukkanathiti 6110503371 #date: 09AUG2018 #program: L01M1.py #description: hello name and lastname name = input("What is your name? ") lastname = input("What is your lastname? ") print("Hello",name,lastname) print("Welcome to Python!")
5f84ed0606f527bfa7859b02875a104c999d8f82
2dc952c439dfa0fe1ae6b48f8af6f5fd3aaed9fd
/azine/azine_main/models.py
b92dcb9446ca6fc08b2d8ac22b80823a6fff1e10
[]
no_license
dubacher/azine
ffdca0606e9fe5ce46c4d3cf1f30b06287543ccf
d4904c4d340443661e6f9abd425edaebbd6445f2
refs/heads/master
2020-12-24T13:43:53.935718
2011-02-28T22:09:22
2011-02-28T22:09:22
579,693
0
0
null
null
null
null
UTF-8
Python
false
false
6,225
py
models.py
# coding=utf-8 from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _, ugettext from django.core.validators import RegexValidator from user_profiles.models import UserProfileBase from random_id import random_id from mptt.models import MPTTModel i...
3f7edc2ebde9c927506afb928870b4abd586ca08
9a7558dd050bb1015ae0cf0528bbcc221754c0fd
/AMOS31.py
f9da67aaea36ef3910248f088cb3ba48d0e354ba
[]
no_license
jobaamos/gap-year-club-code
14ea6665283c3a46f78fe18ffcbc479e90e0f77d
0934ed81c71216bc32ef83acdd8ad9762dce8488
refs/heads/master
2020-08-26T15:50:08.075386
2019-11-27T11:09:39
2019-11-27T11:09:39
217,061,712
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
AMOS31.py
#python program to print a str with a loop a=('amos') for i in range(20): print('joba '+ a)
c2849e99fa5c6e8627c26f67062642fc6eb9f441
dd007e0e00a8d83e93a355165b4bafde6e888e5b
/documents/app.py
02b2d7a1a9b6da77493f40a6c50f51454ca398f4
[]
no_license
PopckovS/telegram_bot
b50be281dbda28416ac38e50020d483a9b9e7744
84bef68d76252e7996f4ba56f5399eca516f57c1
refs/heads/master
2023-02-06T23:46:26.038396
2020-12-29T18:01:28
2020-12-29T18:01:28
270,351,723
6
1
null
2020-06-11T21:48:49
2020-06-07T15:40:41
Python
UTF-8
Python
false
false
227
py
app.py
import telebot import config # Создаем экземпляр класса для работы с библиотекой pyTelegramBotAPI, и передаем ему API токена. bot = telebot.TeleBot(config.API_KEY)
13308fcee33c285c17837d24fcaaebb133051c92
5fcfc8c4fb8d157d5c41e99a9592e9b2240c7cfc
/26_50/26.py
c4bc19492e7799a4b95971aea9fcf30e69790680
[]
no_license
mygit20031984/py100exercises
7fe7dbc49a6d3511d0a713f7d74a3aa59c35d0d1
5b29f1a7aadb25dc4b3824dd55841f0793ecc8f8
refs/heads/master
2022-08-01T03:01:55.952644
2020-05-23T14:31:21
2020-05-23T14:31:21
259,541,157
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
26.py
lst = range(1,11) for e in lst: print(e)
e47808ad02c07e8ae9c4fc7d5a0dc840c4681bad
2a8abd5d6acdc260aff3639bce35ca1e688869e9
/telestream_cloud_notifications_sdk/telestream_cloud_notifications/models/__init__.py
afc3282d92eeeead0f5296548c9bdd8088b108dc
[ "MIT" ]
permissive
Telestream/telestream-cloud-python-sdk
57dd2f0422c83531e213f48d87bc0c71f58b5872
ce0ad503299661a0f622661359367173c06889fc
refs/heads/master
2021-01-18T02:17:44.258254
2020-04-09T11:36:07
2020-04-09T11:36:07
49,494,916
0
0
MIT
2018-01-22T10:07:49
2016-01-12T11:10:56
Python
UTF-8
Python
false
false
660
py
__init__.py
# coding: utf-8 # flake8: noqa """ Notifications API Notifications # noqa: E501 The version of the OpenAPI document: 2.1.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ from __future__ import absolute_import # import models into model package from teles...
a1b381370f5c74e9b03c279cc5bcfd6e71226be4
359e768df0aa85a7fc8a119d1a304d93f2e04452
/seiichi/tutorial01/test-unigram.py
6bf3d1c377f6fba2948345348f4b0c7c6ec8e14d
[]
no_license
tmu-nlp/NLPtutorial2020
5694650d365b836ceefc822a4ee33fae8ec7d72b
51c84c7a7280b62fa11c5893987eeba7d7fad3d6
refs/heads/master
2021-05-19T11:40:05.325180
2020-08-12T04:55:41
2020-08-12T04:55:41
251,679,127
0
1
null
2020-08-12T04:55:00
2020-03-31T17:26:14
Python
UTF-8
Python
false
false
579
py
test-unigram.py
import os, sys import math import pickle import numpy as np if not os.path.exists("./model"): os.mkdir("./model") from unigram import UnigramModel if __name__ == "__main__": # train_path = sys.argv[1] # train_path = "../../test/01-train-input.txt" # test_path = "../../test/01-test-input.txt" # train_...
02c66e904a4853237592603c734c77064600491a
7623e3fff683783eda4a674693158788d40d4f45
/btot.py
143e9cc6d0b88f47334923bd9890c6b5661bb954
[ "MIT" ]
permissive
Indra2009/Google-cloud-dataflow
70387e4974915a4fb9a4a3cddc8227868c0647fb
b7aa2db087081a12adc06c55268012160ed4d46c
refs/heads/master
2021-04-03T08:35:10.712253
2018-03-14T18:01:58
2018-03-14T18:01:58
125,025,615
1
0
null
null
null
null
UTF-8
Python
false
false
2,382
py
btot.py
from __future__ import absolute_import import argparse import logging import re import apache_beam as beam from apache_beam.io import ReadFromText from apache_beam.io import WriteToText from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import SetupOpt...
fea8656bd6c26c64af9f5b395f8c81cbef952fb7
274d099df5e08c56de00fe7fade47854a056ab4c
/CI/src/integration_tests/test_command_rmi.py
f7f6e51caa7e5b6341d10ace32f575aaf21d9ffb
[ "BSD-3-Clause" ]
permissive
eth-cscs/sarus
95e36bf21c77f2bb822ea0a97dfd7d64a71f6971
9c01d76736940feb360175c515e5778e408e631e
refs/heads/master
2023-08-31T02:33:19.008492
2023-05-05T12:09:57
2023-05-05T12:09:57
160,826,280
116
11
BSD-3-Clause
2023-03-01T13:11:28
2018-12-07T13:19:07
C++
UTF-8
Python
false
false
2,171
py
test_command_rmi.py
# Sarus # # Copyright (c) 2018-2023, ETH Zurich. All rights reserved. # # Please, refer to the LICENSE file in the root directory. # SPDX-License-Identifier: BSD-3-Clause import unittest import common.util as util class TestCommandRmi(unittest.TestCase): """ These tests verify that the images are correctly ...
1ca212c14a0cd5df3cfc28d0d17881ef0da74be5
b3fa799fdcd2ae54eaa242cc4f8d641996aef62d
/followgic/mensajes/migrations/0004_auto_20210205_1858.py
bda453879519f454a5ff1ff122881af63fdc5425
[]
no_license
Followgic/Followgic-Back
1519d5bae84a0eb594626d61f3cff359c7e7dc40
6140ec3607021a7ef5cae60cc67503aa7ef5c7ed
refs/heads/main
2023-05-30T20:28:48.732451
2021-06-17T19:36:09
2021-06-17T19:36:09
314,599,979
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
0004_auto_20210205_1858.py
# Generated by Django 3.1.3 on 2021-02-05 17:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mensajes', '0003_auto_20210131_1323'), ] operations = [ migrations.AlterModelOptions( name='mensaje', options={'orde...
b019109fe7dea0cf682e7f5342753144faea43fc
7cf547c662c5cf19938c1684eb8f2f641a0e5aa8
/SeriesDownloaderLinux/pb.py~
848e500ac6315f3596c8ea4a5a9bd1548cf98e06
[ "MIT" ]
permissive
melvin0008/SeriesDownloaderLinux
1d99e4bd599024e5d13a0ed4e2ccabdefaad7181
2245c947834ccedee8e7737312332150c3816716
refs/heads/master
2020-05-18T17:19:01.427423
2014-11-15T13:18:46
2014-11-15T13:18:46
19,524,344
2
1
null
null
null
null
UTF-8
Python
false
false
10,475
pb.py~
# -*- coding: utf-8 -*- from Tkinter import * import tkMessageBox from tpb import TPB from tpb import CATEGORIES, ORDERS import webbrowser import urllib import json import datetime top = Tk() top.geometry("700x700+30+30") top.title('Series Downloader') top['bg']="#D3D8E8" seasonno=0 class season: ...
0f19c6d594b3f5be9a000913b90d3738e07e335b
3916f78a6885b998ca57b3ed2950cfeda970f673
/statistical-learning-for-scientific-data-processing/unsupervised-learning/independent-component-analysis.py
b0c8f9c3f8eafed6f6d796630d5f4269ad3bfd0b
[ "BSD-3-Clause" ]
permissive
samcervantes/scikit-learn-tutorials
9a85a91139d26bd99e7bf68fbf23739097a1bf0e
a528ceb50de382ef791c15e231e69f4708706e94
refs/heads/master
2021-07-06T09:52:03.082869
2017-09-29T17:19:22
2017-09-29T17:19:22
103,851,381
0
0
null
2017-09-27T21:23:23
2017-09-17T18:18:46
Python
UTF-8
Python
false
false
779
py
independent-component-analysis.py
# Generate sample data import numpy as np from scipy import signal from sklearn import decomposition time = np.linspace(0, 10, 2000) s1 = np.sin(2 * time) # Signal 1: sinusoidal signal s2 = np.sign(np.sin(3 * time)) # Signal 2: squre signal s3 = signal.sawtooth(2 * np.pi * time) # Signal3: saw tooth signal S = np.c_[...
f515d7c73d306085991f79f8e4bc8538cca791a4
716092565856b9f00530d8367962f3b032bade89
/core/SpiderRetCode.py
d6c3bd1ced5923a8b1fe9db30d89fe7e102638ba
[]
no_license
huangpd/formalAccount
f19d4b819e5f0b7f5d5466e2324775d788fe03e6
939374d372c9f415b524a5c0327836c77d8ac3d7
refs/heads/master
2023-08-30T04:42:30.995792
2021-10-29T01:03:24
2021-10-29T01:03:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
SpiderRetCode.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 7/12/21 4:54 PM # @Author: kevin # @File: FBInfoDef.py # @Software: PyCharm from enum import Enum # 浏览器状态 class BrowserState(Enum): """Browser state code.""" TYPE_ONLINE = 0 # 账号在线 TYPE_OFFLINE = 1 # 账号离线 TYPE_INVALID = 2 # 账号无效 TYP...
e8d76cfbedd6fa8c2415e47bf0672bf72888eb3a
2d48a9dddcb625f1f9ceeb49fa81b82f411ce58c
/module/dream2015/code-with-inputdata/pydream2015/model/ch1a_mxdrg_post/test_match_user.py
c98691d2dfe28486493908c1cf6eacdcb9840dfb
[]
no_license
jehoons/sbie_weinberg
3e629509fb77e624f620786a8e323bfb1216b0c4
af543867f4429be4ffc797dd390de443d0febec9
refs/heads/master
2020-11-29T14:52:17.316745
2018-01-09T03:40:24
2018-01-09T03:40:24
67,468,035
1
1
null
null
null
null
UTF-8
Python
false
false
3,191
py
test_match_user.py
# -*- coding: utf-8 -*- #!/usr/bin/python #************************************************************************* # Author: Je-Hoon Song, <song.je-hoon@kaist.ac.kr> # # This file is part of Pydream2015. #************************************************************************* import os, sys, cPickle as pickle, re...
6c6fda1a2ba313af71349772699602c863477dbb
3ede36028c5cdce88fb010ffd0d8c6e1bb551628
/Section_10/10_7 Using Linters/my_bad_script.py
e7277aaa0c8d2e9f3fc8dccdca34c7fe05cd0b89
[ "MIT" ]
permissive
PacktPublishing/Software-Engineering-with-Python-3.x
6baa85ec673fc2e826e195969929523811b0f439
056e4c89e4f8d7fc4a4095ee0671d6944a86630e
refs/heads/master
2022-07-15T04:43:02.702704
2021-01-21T08:54:54
2021-01-21T08:54:54
237,384,674
2
2
MIT
2022-06-22T01:23:19
2020-01-31T07:56:26
Jupyter Notebook
UTF-8
Python
false
false
211
py
my_bad_script.py
def Some_func(arg1, arg2, arg3, arg4): return sum([arg1, arg2]) - arg3 * arg4 class some_class: pass some_CONST = 10 my_complex_some = Some_func(10, 20, 30, 40) print(my_complex_some * some_CONST)
143aa97ffd86ea9760eb5f2729499fcc883bf95d
deb7ebee7bc933505d28f57efd67ea47f99ec670
/test.py
a3ce13579227be8c2c40f0e43e0d3a55e0732255
[]
no_license
khayashi04/tlib
8eca98785b8586455e88dac3e54d9bc9ce22a765
c7f6a953ee880650bfd8f97fa3030c41636aedfc
refs/heads/master
2023-04-27T12:50:57.958066
2023-04-21T07:47:18
2023-04-21T07:47:18
196,106,184
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
test.py
from StatLi import StatLi li1 = [19,765,76,3,456,7,75,5,465,4,754,754,6,2,523,3,543] li2 = [19,765,76,3,456,4,75,5,465,4,754,754,6,2,523,3,543] a = 1234 b = 5678 data1 = StatLi(li1, li2) data2 = StatLi(a, b) data3 = StatLi("いいよこいよいくいく", "いいくにつくろうかまくらばくふ") print(data2.collatz()) print(data2.monte())
01b9796f22e72fd546d024c06542abe54b769f08
656518890a5cf6d7c662d16872ba508124b00de8
/lianjia/pipelines.py
9769a2020664bc475ae46b21cf7311a47977358f
[]
no_license
livan123/lianjia_sell_second
824a6fc3c30ee31162545f6cb774f6f57d5d3835
e383a9759e3e661ee7d9f526e2382cb7a25e087c
refs/heads/master
2021-01-25T13:25:12.340353
2018-03-02T11:38:00
2018-03-02T11:38:00
123,571,784
0
0
null
null
null
null
UTF-8
Python
false
false
907
py
pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import csv class LianjiaPipeline(object): def __init__(self): self.csvwriter = csv.writer(open('lianjia_houses.csv',...
bc5ec38ebc9ba3cd097edb5fa1fea1aaad44a55d
65c55292fd3237d6fba247068c5d51c11ef2bcdb
/leet code/Stack/1614. Maximum Nesting Depth of the Parentheses.py
79dfd57a4f413e93aa8352b475983283b2368504
[]
no_license
omertasgithub/data-structures-and-algorithms
b9275347b3f8e931f064302a29dd3c52aa420a10
50365187d2913a0fcffebc889b47f12614a86a47
refs/heads/main
2023-07-14T21:40:28.246982
2021-08-28T15:27:26
2021-08-28T15:27:26
350,371,430
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
1614. Maximum Nesting Depth of the Parentheses.py
#1614. Maximum Nesting Depth of the Parentheses #related topics #stack s = "(1+(2*3)+((8)/4))+1" s = "(1)+((2))+(((3)))" #s = "1+(2*3)/(2-1)" s = "1" def maxDepth(self, s): """ :type s: str :rtype: int """ r = 0 t=0 for i in s: if i == "(": r+=1 t = max(...
27317cfbca69d1e9746fa2547ec2de56b38a74c2
eacd10ce4474cbb70ff0c7d1448dab76bcfa9dc7
/scripts/databases/pythonMysql.py
9d7d084c582d481211c7e9cfd9a02e8617131955
[]
no_license
andre-aion/various_foods_on_a_blanket
d4ab92e0aa9692b44240aff63bc6973a12158e38
21caf4a4f9f8e2e0c0fb3fc36b375e30f249f5d5
refs/heads/master
2020-07-24T11:39:46.068245
2019-10-11T17:42:26
2019-10-11T17:42:26
207,910,970
0
0
null
null
null
null
UTF-8
Python
false
false
5,561
py
pythonMysql.py
import datetime from tornado.gen import coroutine from scripts.utils.mylogger import mylogger from concurrent.futures import ThreadPoolExecutor from clickhouse_driver import Client as Clickhouse_Client import pandas as pd import dask as dd import numpy as np from datetime import datetime import sqlalchemy as sa impo...
a8d9c41ade442aa65045fc9ffc7bdbf6ecf77f15
34e0a3d374a6c900a3af2b2838efaabd62c5e2dd
/tumblrtokens/__init__.py
79fd23714dc77eaf3d63487a9e2d29033381eb4b
[ "MIT" ]
permissive
mkell43/tumblrtokens
8fa7cecabc422d4c7aef84e9536cf9fc2a1af064
d754f027363538c2ef272db61f485efbefbb301b
refs/heads/master
2021-01-19T11:02:45.225988
2014-04-24T01:05:15
2014-04-24T01:05:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
__init__.py
import oauth2 import urlparse def consumer(consumer_key, consumer_secret): """ Creates a new consumer for authentication with Tumblr. """ return oauth2.Consumer(consumer_key, consumer_secret) def request_token(consumer): """ Creates a new request token for gaining credentials to a...
79b52b1d0f1530fd24888bba2ffe0fd79153838d
62918c4b26483cbe61e904ab7d53c17316e4b57e
/blog/models.py
a7fe952c1328d39cbbbbbe59dcc3bc13be8d2779
[]
no_license
tmoynandy/django-blog
e036dac05e91ffc8dcb3bdbfc96771746a364c28
c4a59239402d4f82d92a18400ce527282f016bce
refs/heads/master
2020-05-18T01:04:14.499314
2019-05-01T23:02:52
2019-05-01T23:02:52
184,079,572
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
models.py
from django.db import models from django.utils import timezone ##user is imported from the already created user model that shows in admin from django.contrib.auth.models import User #for getting url of a post as a string from django.urls import reverse # Create your models here. #each class will be a table in the db #...
0e8a8864e1f782b3d1d8b4347f182717ab19264b
cd793c211d3bcfec02471b7d7b6ee854cdb38b6e
/uvc/layout/slots/menus.py
04a06a7e0f869737eb4fb40f7eff180b1e199f1c
[]
no_license
novareto/uvc.layout_old
9f9770568692535f1574d80aba254d014ed98651
599441c402434c799ed4455fd3fcd4cad9ddf40b
refs/heads/master
2020-04-15T01:04:38.678353
2015-10-07T08:16:13
2015-10-07T08:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
menus.py
# -*- coding: utf-8 -*- # Copyright (c) 2007-2011 NovaReto GmbH # cklinger@novareto.de import grokcore.component as grok from uvc.layout.interfaces import * from uvc.layout.slots.components import Menu from zope.interface import Interface class GlobalMenu(Menu): grok.implements(IGlobalMenu) grok.name('globa...
50fda88df3ed86cbcaf54f946d35d42c47518cd0
076a83619e03fc9f9123b3f02f51aadbc4715669
/server/api.py
0ce1e974a461688c7a6f94a9e93b911d1cb06bfd
[]
no_license
lphk92/JapaneseVocabExtension
802ef5e99a0a1b3f3ed72c73664cb60e9ff328c1
da1536d00e521e71470612ee131f197333770f93
refs/heads/master
2020-03-31T03:00:54.572771
2017-07-15T21:49:54
2017-07-15T21:49:54
6,542,618
2
0
null
null
null
null
UTF-8
Python
false
false
1,979
py
api.py
import codecs import json import os import re #from crossdomain import crossdomain from server import app def natural_key(string_): """See http://www.codinghorror.com/blog/archives/001018.html""" return [int(s) if s.isdigit() else s for s in re.split(r'(\d+)', string_)] list_dir = "./server/lists" lists = ...
fa92648c007260e5d6913b7ec995d2e7718c2815
2a2f867c4e034498ec1eadee9407fc0e77ba6a17
/azure_api.py
a238503708a7870b5122e680294175af7baca571
[]
no_license
vladbataev/fashinder
873f064a019b46090ecfb44d0aac841470337f8e
1c9c9e9a5bd210b19149d549418dbe075aea3944
refs/heads/master
2021-04-12T10:05:02.441200
2018-03-25T08:00:34
2018-03-25T08:00:34
126,652,298
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
azure_api.py
import requests import codecs from IPython.display import HTML face_key = 'f0c8fa92e85040138b4bad7e01767aa0' headers = { #'Content-Type': 'application/json', 'Content-Type': 'application/octet-stream', 'Ocp-Apim-Subscription-Key': face_key } params = { 'returnFaceId': 'true', 'returnFaceLandmark...
9bb9a649f82765ccc98fd1d5115a90b9a96719a9
d2e80a7f2d93e9a38f37e70e12ff564986e76ede
/Python-cookbook-2nd/cb2_13/cb2_13_16_sol_1.py
7f3247e3b6797d1fe524a068e725324f58d82b2c
[]
no_license
mahavivo/Python
ceff3d173948df241b4a1de5249fd1c82637a765
42d2ade2d47917ece0759ad83153baba1119cfa1
refs/heads/master
2020-05-21T10:01:31.076383
2018-02-04T13:35:07
2018-02-04T13:35:07
54,322,949
5
0
null
null
null
null
UTF-8
Python
false
false
592
py
cb2_13_16_sol_1.py
from twisted.internet import reactor, protocol from twisted.protocols import irc class LoggingIRCClient(irc.IRCClient): logfile = file('/tmp/msg.txt', 'a+') nickname = 'logging_bot' def signedOn(self): self.join('#test_py') def privmsg(self, user, channel, message): self.logfile.write(us...
cd5945631a9dd505bf67089bab8c5a37ad375129
be544d136e944694776ba94fa57a48a8a8cc3358
/DataAfterprocessing/concatdf.py
4957221cb24a4596c798ce2ad27f5c605965b6aa
[]
no_license
meongeun/MeshGeo
6dda3c16057457e697379e33f24c270f4b282ae6
31fa1c65dbcae6088a5275ee953097e6cd0e422b
refs/heads/master
2022-04-07T07:16:09.039297
2020-02-16T13:47:42
2020-02-16T13:47:42
239,677,886
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
concatdf.py
import pandas as pd df1 = pd.read_csv("../final/your_no.tsv", '\t') df2 = pd.read_csv("../../Downloads/me.csv", '\t') final = pd.concat([df1, df2]) final.to_csv('../../Downloads/final_con_final.tsv', sep='\t', index=False)
16b425d7b8cde1aabe038ccae6922091afb84415
39f64fba0ca95de79dccd962a36a5996dede530f
/원내약품사용량월별통계.py
c5e3a3df4953098ac61a66af9eeb34e63d4ca319
[]
no_license
zwolf21/MonthlyUseAmountInHos
b9b4074551a40f8bc588615adce9ec45ee28bc35
8d884a3e10fd119614e838d629c69bd7564c4cea
refs/heads/master
2021-01-19T19:10:11.984744
2017-06-07T03:42:39
2017-06-07T03:42:39
88,402,446
0
0
null
null
null
null
UTF-8
Python
false
false
3,169
py
원내약품사용량월별통계.py
# coding: utf-8 # In[1]: import matplotlib.pyplot as plt import matplotlib import pandas as pd import numpy as np from pandas import DataFrame, Series import os, re # In[2]: OUTPUT_EXCEL = '월별원내약품사용현황.xlsx' # In[3]: # 데이타셋 준비 data_source_dir = '사용량월별통계/원내' dfs = [] for fname in os.listdir(data_source_dir): ...
0eaaa81d3c8bc61368701e1916b42ede88b90d04
86bb09bd43e65c261d0d6fa1091316cdbdb434cd
/C12_Introduction_to_Data_Visualization_with_Python/Ch3_Ex12_Plotting_distributions_pairwise_2.py
7f7db54642765389c88b573736eb1f3dd2cd8687
[]
no_license
jsolano28/Data_Scientist_with_Python_Career_Track
d6d59b20847c9a7e288dd21e0276294c65f49e28
001b6474ef3b50c81db7f1d73ca200dac97947fc
refs/heads/master
2023-04-12T20:00:19.906006
2019-02-06T09:53:21
2019-02-06T09:53:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
Ch3_Ex12_Plotting_distributions_pairwise_2.py
# EXERCISE: # Plotting distributions pairwise (2) # In this exercise, you will generate pairwise joint distributions again. This time, you will make two particular # additions: # - You will display regressions as well as scatter plots in the off-diagonal subplots. You will do this with the # argument kind='reg' (whe...
27e9635adf6109f3ab13b9d8dd5809973b61ca03
fd5cd3ebf7bfeacd031c515f9ebe698bc1569d78
/Web Scraping Ex.py
f8284d00c3aee31e7a24288356849e9701f7dce1
[]
no_license
justicesithole/webscrapping1
5cc2ea5c75eacd254f779dcc0f94aad2e6ee89f0
8587302fe110f1a37189be9060d2a49c0ec15ec6
refs/heads/main
2023-06-01T12:44:11.322766
2021-06-15T09:10:10
2021-06-15T09:10:10
377,101,984
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
Web Scraping Ex.py
#Web Scraping #Make sure you have bs4, webbrowser and request installed as your third party modules import bs4, webbrowser, requests try: data = requests.get("http://en.wikipedia.org/wiki/Python") data.raise_for_status() my_data = bs4.BeautifulSoup(data.text, "lxml") print("List o...
f5f26819be4b98fab3d46e57e1a5431e54342aed
2b64390d27030c2844d559ad5f19b754fbc2cbd8
/EmoClassifier.py
540b45efb17f0a05829353807ae7169eec54a079
[]
no_license
vsquared10/Emo2Vec
a918732938cdd22304e28aa35b4ae1e7cfe67796
7a27969ab1d1f6e07aff12500da64672528dee09
refs/heads/master
2021-01-11T11:56:29.332876
2016-12-20T03:35:43
2016-12-20T03:35:43
76,696,407
0
0
null
null
null
null
UTF-8
Python
false
false
4,831
py
EmoClassifier.py
# coding: utf-8 """Supporting model logic for predicting emotional content of user input. """ import pandas as pd import gensim from sklearn.model_selection import train_test_split from sklearn.multiclass import OneVsRestClassifier from sklearn.svm import LinearSVC #load data for emo2vec loc = 'https://s3-us-west-1.a...
d2e46944ab05c5e8c1979101728b7b25900be342
5f1a3d7f36425a52049f3bf14f7a8cee66fb23d5
/test/helpers/test_background.py
bdac2774a13667ab1f7b36f235e3fd3765603fc8
[ "MIT" ]
permissive
timeflux/timeflux
1d6fdae7ec6e26f6a07c36efa068f57f713c13e2
55ccae74b5eb99504b3aa715ffa394b7716884b2
refs/heads/master
2023-06-07T16:42:35.337451
2023-06-01T15:04:27
2023-06-01T15:04:27
164,121,626
163
23
MIT
2023-02-23T05:12:57
2019-01-04T15:09:03
Python
UTF-8
Python
false
false
1,497
py
test_background.py
import pytest from time import sleep from timeflux.helpers.background import Task class DummyWorker(): def echo(self, message='hello', delay=0, fail=False): sleep(delay) if fail: raise Exception('failed') self.message = message return(self.message) def test_default(working_path): ...
b2f2f1e4b7070ac867b71e538f759e527eb1ffb9
2615c9f498a2e70af9652226c092fafe12516b6f
/controller/c1.py
61f4acdbe845c8981e6cb5b596c9a8ce4a2c7ea1
[]
no_license
Zeta-qixi/Hand-controller
285da9c3186501ee8bf91be37ae520e17996155d
c0354c2c488e84ab1d817af4b259c51c514e15b2
refs/heads/main
2023-04-29T12:30:21.314122
2021-05-23T10:23:16
2021-05-23T10:23:16
355,833,027
0
0
null
2021-05-20T15:20:22
2021-04-08T08:58:04
Jupyter Notebook
UTF-8
Python
false
false
983
py
c1.py
from pymouse import PyMouse m = PyMouse() w,h = m.screen_size() class base_controller: def __init__(self): pass def move(self,xy:list): ''' 移动 ''' m.move(xy[0]*w,xy[1]*h) def click(self, xy:list): ''' 点击 ''' m.click(xy[0]*w,xy...
ec9efeca7eef7b8ee25c1e089e675bdb1e53413b
36de14c6b188886df6a284ee9ce4a464a5ded433
/Solutions/0668/0668.py
cdef5b0b2543172ebd132c97cbded834936b728d
[]
no_license
washing1127/LeetCode
0dca0f3caa5fddd72b299e6e8f59b5f2bf76ddd8
b910ddf32c7e727373449266c9e3167c21485167
refs/heads/main
2023-03-04T23:46:40.617866
2023-02-21T03:00:04
2023-02-21T03:00:04
319,191,720
3
0
null
null
null
null
UTF-8
Python
false
false
306
py
0668.py
# -*- coding:utf-8 -*- # Author: washing # DateTime: 2022/5/18 10:28 # File: 0668.py # Desc: CV class Solution: def findKthNumber(self, m: int, n: int, k: int) -> int: return bisect_left(range(m * n), k, key=lambda x: x // n * n + sum(x // i for i in range(x // n + 1, m + 1)))
13342922022f0a0e8928c81c1c4716125af0b2c4
0c1d79a26a017bff67fd5c4c4888019356ea9c0a
/实验图/MAE.py
16b49a7e70ff62852c1f07914f0a0d6e0b353c4b
[]
no_license
zhouhaosame/leetcode_zh
2d6978d15f9863af6188ce94f7f12c1b83b10a46
56232c275ccea354c3944191454ebc7902bb15c8
refs/heads/master
2020-04-08T04:51:51.893507
2019-06-17T07:09:29
2019-06-17T07:09:29
159,035,337
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
MAE.py
import matplotlib.pyplot as plt import numpy as np plt.rcParams['savefig.dpi'] = 300 #图片像素 plt.rcParams['figure.dpi'] = 300 #分辨率 plt.rcParams['font.sans-serif']=['SimHei'] plt.rcParams['axes.unicode_minus'] = False x_axis = [20,40,60,80,100] rf = [184,174,166,159,157.5] anns = [186,179,170,164,161] adaboost = [187.5,1...
cb08b95e3b9c80fb74d4415b3798ddbb36cd76e7
6c8f7f5c3e8a61d3d1c63e7c3f19953df496ae8f
/problems/unsolved_problems/test_170_find_the_largest_0_to_9_pandigital_that_can_be_formed_by_concatenating_products.py
aed442941d10c7c63b2727711b71fef472c64902
[]
no_license
KristofferFJ/PE
a5b5f8dabbd0ee6e61506899eabf070ae0cad619
4715da077fac3bb8f061f6d773166c575c9c7813
refs/heads/master
2022-08-07T03:57:54.712661
2022-07-24T20:28:24
2022-07-24T20:28:24
118,385,527
1
0
null
null
null
null
UTF-8
Python
false
false
768
py
test_170_find_the_largest_0_to_9_pandigital_that_can_be_formed_by_concatenating_products.py
import unittest """ Find the largest 0 to 9 pandigital that can be formed by concatenating products Take the number 6 and multiply it by each of 1273 and 9854: 6 × 1273 = 7638 6 × 9854 = 59124 By concatenating these products we get the 1 to 9 pandigital 763859124. We will call 763859124 the "concatenated product of ...
b931b181b216572b223f55ef113a49e17f2bc93e
b88fd88cf424a82b5997409a0db54e2728581b7c
/docs/conf_theme/sphinxbootstrap4theme/conf.py
6c5014f478691e1049863cffc004e21651e4a393
[ "BSD-3-Clause" ]
permissive
TaiSakuma/urbanoctowaddle
99c6f1e2e056747c758120ffacca3a2e1032f859
0d297f0c47c97cc34d8816c78121b555efd79e7c
refs/heads/master
2021-05-09T04:42:23.597914
2018-02-12T11:51:24
2018-02-12T11:51:24
119,283,757
0
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
conf.py
# -*- coding: utf-8 -*- import sphinxbootstrap4theme html_theme = 'sphinxbootstrap4theme' html_theme_path = [sphinxbootstrap4theme.get_path()] # https://github.com/myyasuda/sphinxbootstrap4theme # http://myyasuda.github.io/sphinxbootstrap4theme/setup.html#instllation html_theme_options = { # Navbar style. # V...
aeba34e28a22db4a36b1b7b04c27676a31489a97
ee09692b9fff973aa2c95d7a5d59925d62109137
/cython_pi.py
a14934ee045bd542e9decff50cbf053424208745
[]
no_license
antocuni/djit
9e2062cff27567b5dfb4f76ac10af7791a7ba9d5
5f0c293ce2b9dfd95f62e5cfd8e36c6d80791e09
refs/heads/master
2022-07-05T08:00:28.110921
2020-05-09T23:00:27
2020-05-09T23:00:27
262,993,778
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
cython_pi.py
def compute_pi(iterations): delta = 1.0 / iterations inside = 0.0 x = 0.0 while x < 1: y = 0.0 while y < 1: if x*x + y*y < 1: inside = inside + 1 y = y + delta x = x + delta total = iterations * iterations return inside / total * 4
dd006d38f40ff5779b6cdcb55c2976193fc01533
ce2b4ad9679b41371c0c02d03725d97d37a6d448
/build/lib/yyam/tomrw.py
92408fe25207481e3f7089f52f78f7b3b3a20d44
[ "MIT" ]
permissive
include-yy/account-manager
b4fc9348516b6993e22b61409dddd13f5dd20cf0
ae28433909d0f6580693d1a5b65e40dfbb9d5f57
refs/heads/master
2022-11-24T05:33:54.957554
2020-07-28T07:15:24
2020-07-28T07:15:24
282,758,755
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
tomrw.py
from tomlkit import parse, dumps from toml import loads def tom_parse(in_str): return loads(in_str) def tom_dump(in_dic): return dumps(in_dic)
fcd26ed9e330a9dad7800ef87c0ba56e629de7f3
1084f6e49cb5bc119e269074abeb19892936ced0
/1_primeiro_programa/exercicios_comparadores/ex_comparadores.py
be94467348200d7e13539abf59688f1ad2bb9a0c
[ "MIT" ]
permissive
ericsporto/Logica_com_Python
b14c68856156d20e54451064bc2854636a724740
6036de44776c69da1381d4b4e05abbfd7523c9f5
refs/heads/main
2023-09-04T13:25:14.591405
2021-10-22T10:44:16
2021-10-22T10:44:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
ex_comparadores.py
a = 5 b = 3 c = 10 d = 2 print(a > b) print(c == a) print(d != a) print(a <= c) print(a != c) print(d >= a) print(d != b) print(d < c) print(b >= a)
04d8ba3a40eb2e581b15c2eb6e2d9d8e7abc2222
5331f08db7499a67d12988cf785931e258442591
/units/si_convert.py
ec692df7f35aebb2c37c7e15068d65d48fead584
[ "MIT" ]
permissive
teekennedy/si-converter
02ccaaae938721ad42637d35df85b624bda279d7
238509cf89ec6adb0db6c669291c21cb7a5daa3f
refs/heads/master
2022-01-05T04:26:42.212060
2018-11-06T03:19:06
2018-11-06T03:19:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,283
py
si_convert.py
#!/usr/bin/env python3 from collections import deque, namedtuple from enum import Enum import re from units.units import UNITS, si_unit_lookup_table TokenType = Enum('TokenType', 'LPAREN RPAREN UNIT MUL DIV') Token = namedtuple('Token', 'type text coefficient') Token.__new__.__defaults__ = (None,) TOKEN_REGEXES = { ...
27395d6b31d49aa7c6e3278d6a99011f530f2a89
b9ef71ae28d743da43393aaa00e971e8ffabf225
/revue_description_generator.py
3446a9003c52bbaeb9bdda628dcc2ca67b6eb6fe
[]
no_license
dabomb2654/google-zuka
011f1f3364338a90b7cb15c26be4745524e6db3f
fb70b99148a02b2576f92403f5d3ccfb8d4c50eb
refs/heads/master
2021-07-07T04:30:31.195464
2020-03-22T12:47:05
2020-03-22T12:47:05
228,945,061
0
1
null
2021-03-20T02:27:45
2019-12-19T00:37:18
Python
UTF-8
Python
false
false
924
py
revue_description_generator.py
from textblob import TextBlob from textblob import Word import sys import pprint #text = sys.stdin.read().lower() #blob = TextBlob(text) ''' print(type(blob.tags)) print(len(blob.tags)) NN_dict = {} JJ_dict = {} for word_type in blob.tags: #check type if 'NN' in word_type[1]: #print("got a noun") if word_type[0]...
18bc7d7ddc1c84e423e63e465287fc7577fc3f28
a7d9acce28f9277d6a75d9d7bb03ce493d6614b0
/app.py
e2374838996422609364a296fd9f4b837daa0484
[]
no_license
joao-fernandes-99/squid_api
6f7759e73018876623fd4103e310523136b8df36
023a8972bfa397886c44e5d5bc61fd2d17001fe3
refs/heads/master
2023-01-12T21:09:49.161057
2020-11-09T01:42:22
2020-11-09T01:42:22
311,192,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,062
py
app.py
from flask import Flask, jsonify from flask_restful import Api from flask_cors import CORS from resources.arquivos import Arquivos, Arquivo,Arquinobloq from resources.palavras import Palavras, Palavra, Palavrasbloq from resources.tipos_site import TiposSites from resources.sites import Sites, Site, SitesBloqu app = Fla...
cbe7bf156e81de0bba5688eb1cb8e5da94170b85
18239675471703198cd3c359cd3873dce8818210
/examples/search.py
ebd3e4ace24aa8f8da790e6d6996f6815fbe792d
[]
no_license
novag/spotify.py
e8700e4ac371a539d87bb3d6127afa1457163e7b
23deff70de784d162710dc98027855aa58fa4fd6
refs/heads/master
2021-01-18T07:34:25.269075
2016-08-02T14:34:57
2016-08-02T14:34:57
22,550,326
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
search.py
from spotify.client import Spotify import logging import os log = logging.getLogger(__name__) class App(object): def __init__(self): self.sp = Spotify() def run(self): @self.sp.login(os.environ['USERNAME'], os.environ['PASSWORD']) def on_login(): self.sp.search('daft pun...
651183422940f9c4e4eeb082dae8afa7dfe103b5
e268ba68094e9724887a66697d8bb2b80a4b59fb
/Python35/淘宝/taobao_jd.py
a83435dc58ee218c2e4f37776abcf921db4ab32e
[ "MIT" ]
permissive
smujm/MyProjects
a91f1b9b5e474a2fda15c6b4a2e765dd01e758f1
057da8137ffc0eff0b8d94e4f45494961d523385
refs/heads/master
2022-12-06T19:22:25.866294
2020-09-08T09:34:19
2020-09-08T09:34:19
289,204,320
1
1
null
null
null
null
UTF-8
Python
false
false
12,022
py
taobao_jd.py
# coding=utf-8 import base64 import os import random import sys import time import datetime import parsel from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait # 等待浏览器加载数据 import re import requ...
0c92d43a3b6ecd9141c517d7341c9451af69b426
3c68259b9bc80b31614eff66a53cebdb7a720449
/Webmodule/Session4/Homework/testdes2.py
f67ee3245a1402e683acf0d99e0191bbafe1169e
[]
no_license
leducanh300795/c4e17-New-Cause-old-one-got-retk-so-bad-
5eb21f43e70e15b92dd4e4601ba46f512c307652
472273500be64a5bc3adb8bade5e63b65730cd15
refs/heads/master
2021-06-06T01:55:41.608985
2020-06-16T04:07:03
2020-06-16T04:07:03
134,132,513
0
0
null
null
null
null
UTF-8
Python
false
false
5,267
py
testdes2.py
from random import choice,randint def tp(): tps=['An Giang','Bà Rịa-Vũng Tàu','Bạc Liêu','Bắc Kạn','Bắc Giang','Bắc Ninh','Bến Tre','Bình Dương','Bình Định','Bình Phước','Bình Thuận','Cà Mau','Cao Bằng','Cần Thơ (TP)','Đà Nẵng (TP)','Đắk Lắk','Đắk Nông','Điện Biên','Đồng Nai','Đồng Tháp','Gia Lai','Hà Giang','Hà N...
523eb0ce42f4c1ad448c765b7b869a5b81235d92
52ece7acc902c570a8981ed8e3104cad80f4c80d
/Random/q66.py
729f5f21b49125cc553603570616fff27bba5ff2
[]
no_license
its-sachin/LeetCode
fa1b4c30672bd82bd777001553f6e06c191ba6e3
44b79d3d55b383e74d4c9cd7a3da7d659f3f36d5
refs/heads/master
2023-06-19T11:24:58.473110
2021-07-18T19:02:57
2021-07-18T19:02:57
380,414,089
2
0
null
null
null
null
UTF-8
Python
false
false
401
py
q66.py
import math; inf= 1e18; mod =10**9+7 class Solution: def plusOne(self, digits): carry =1 i=len(digits)-1 while(carry ==1 and i>=0): digits[i]+=1 if(digits[i]==10): digits[i]=0 carry=1 else: carry=0 ...
0d0ed37bd9d50e7e637c29a908b810a280515e7a
924cb8d454b21f0db5eceda6b775cce19d566ed9
/src/14th/partTwo.py
6801a273c6a82b548adb3f94b17d5522cf6cab00
[]
no_license
RaczeQ/AdventOfCode2017
4946b887bc7a924bc8667b9686e3938f6a0825fb
3cf363029f9c2cd374dee91746228bef42486da2
refs/heads/master
2021-05-06T22:11:30.818733
2017-12-22T13:43:59
2017-12-22T13:43:59
112,725,877
3
1
null
null
null
null
UTF-8
Python
false
false
869
py
partTwo.py
# -*- coding: utf-8 -*- ''' Created on 15.12.2017 @author: RaczeQ ''' INPUT = '''Generator A starts with 618 Generator B starts with 814''' def main(): rows = INPUT.split('\n') a_factor = 16807 b_factor = 48271 divider = 2147483647 gen_a = int(rows[0].split(' ')[-1]) * a_factor gen_b = int(ro...
a8a7ceafc6e219fcbd6786359b85e072c8c96659
28618dd0ee7b19f49a9a79aa9520a7b03c5c31e5
/app.py
b553fc95b7e04f22d73ec784a2fa9ab721c8715c
[]
no_license
SibinThomasQuad/App-Password-Cracker
dbd62cf38a0ba4c62bde6d130399e76f0d0ee116
d80d7f8c8fdb52ee034ddae008f56661c07fc4c1
refs/heads/master
2023-06-21T15:24:55.629994
2021-08-04T05:57:11
2021-08-04T05:57:11
392,567,275
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
app.py
import time from pyautogui import press, typewrite, hotkey time.sleep(10) #press('a') typewrite('quick brown fox') press('enter') typewrite('hacker') press('enter') typewrite('SIBI1996') press('enter')
99511dfdc5050c0d0f5f7fde2ffe930a6c816ddc
1f52d7a35cab46635ca36e233c926eba9321f7c7
/SumedhaAPI/app/migrations/0006_auto_20201228_1718.py
1acbdd130e97babbd0143f109d53fbc5a8e7afba
[]
no_license
aryankul97/SabertoothCode
54536b10e88f9d4888bff6b937070fa8dd7b1e3d
46b9b16f8d170c8c525e69c70cec692898b63753
refs/heads/master
2023-04-29T19:09:40.041106
2021-05-13T08:43:37
2021-05-13T08:43:37
366,980,725
0
0
null
null
null
null
UTF-8
Python
false
false
2,930
py
0006_auto_20201228_1718.py
# Generated by Django 3.1.1 on 2020-12-28 11:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0005_businessdata_stafftypedata'), ] operations = [ migrations.RenameField( model_name='staffdata', old_name=...
ab0b6505f488f1ae525586eb3439c60d7dec5a2a
dacaa9c2f56e48674accd7a381b510d08d3f91a6
/wavenet_varied_width.py
0baba71dc5c0c053a16e983a1242d2c0c8f57844
[]
no_license
njmch03/KDD2018_OurSolution_Top2
edd45cf7d45c085bbe3e291d851e04043d6ee03a
d5d04752d4c05c66fa645e98a587b2cf31280b97
refs/heads/master
2022-07-06T20:36:06.120860
2020-05-13T06:10:36
2020-05-13T06:10:36
263,042,994
0
0
null
null
null
null
UTF-8
Python
false
false
29,818
py
wavenet_varied_width.py
import tensorflow as tf import pandas as pd import numpy as np import os.path import os, sys import argparse from datetime import datetime from helper import erfinv_rank_transform, log100p, expm100 from data_frame import DataFrameKDD class DataReader(object): def __init__(self, data_dir, x_encode_len=24*14): ...
e9d12415958355710f51a2d426ec58860d54f908
ca643843b38f6bd88fbdf4fc905fb0168af4c80a
/topicmodel/run_lda.py
c3af4fa772f0b4ee2121304447732b5e1c72b49b
[]
no_license
pvt2345/KMS_IDRec
8fe5ed9a29f02d89f8ac07707d6e9aa63aa7cc5f
90dc00c81bf5a9635e833beef24f24caec394ff9
refs/heads/master
2020-07-18T17:47:49.704696
2019-09-04T09:52:11
2019-09-04T09:52:11
206,286,871
0
0
null
null
null
null
UTF-8
Python
false
false
4,310
py
run_lda.py
from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.decomposition import LatentDirichletAllocation import numpy as np from database.mysql_utils import DataAccess import pickle import os from preprocess.preprocess import clean_doc path = os.path.dirname(__file__) model_path = os.path.join(path,'lda...
8a997b4bb04b7a63907fd0eb6529256b81c84534
bea0e4806236daff2a07df2f0949fe046ef76c03
/apps/op/controllers/mock/__init__.py
1dd4e006e196f7d8b47f580bb3b1847b7294f8fd
[]
no_license
xutaoding/osp_autumn
68903f7acf78d7572777a500172e2f8c09afed48
daf260ecd5adf553490a8ac6b389a74439234b6a
refs/heads/master
2021-01-09T21:51:51.248630
2015-11-23T08:20:00
2015-11-23T08:20:00
46,706,177
0
2
null
null
null
null
UTF-8
Python
false
false
809
py
__init__.py
# -*- coding: utf-8 -*- from .. import BaseHandler from .. import require import urllib import tornado.gen from tornado.httpclient import AsyncHTTPClient, HTTPRequest class Index(BaseHandler): @require('developer') def get(self): self.render('mock/index.html') class TaobaoCouponAPI(BaseHandler): ...
b41e464e4fac9da53495c16fc02b7af3c3692d9d
ab0b8ea5f2346166d47165159379a92d68816cde
/src/main/python/users.py
8d5b69ef87efb4ca0f6ed58b3af565ec6540513b
[ "MIT" ]
permissive
FurmanSK/codeSample
4679bdc81001ebeb3a82024c2aa8ee7d56a39467
f2e3191e1b636ba0ec59b8a52d3af4d6ead6b7db
refs/heads/master
2020-07-07T23:36:58.424004
2019-08-26T02:07:15
2019-08-26T02:07:15
203,506,074
0
0
null
null
null
null
UTF-8
Python
false
false
2,628
py
users.py
import re # Class User class User(): Name = "John Doe" # Default name is John Doe starting out email = "name@something.com" # email address of user Nickname = "Slick" # Nickname of user # constructor of the Character object. def __init__(self, name, email, ni...
27aa8b65ddae2151296ceba0f951f75ec0adefea
d6560cbc7ca75d73427283638e6f919729f4d8b3
/addons/bt_project/models/bt_work_hours.py
01dbff86825f06ab8517dfbc69d8d82ca4ce2732
[]
no_license
zzlhym/odoo
752744d9f342fae1864475bc70d4d163121bb426
bcd45fafd7fd438e3b67904a750251d5d92036c3
refs/heads/master
2020-04-06T21:15:37.845115
2018-11-20T06:26:20
2018-11-20T06:26:20
157,798,059
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
bt_work_hours.py
# -*- coding: utf-8 -*- from openerp import models, fields, api, osv from datetime import datetime import openerp.addons.decimal_precision as dp from openerp.addons.stock import stock class BtWorkHours(models.Model): _name = 'bt.work.hours' _description = "bt work hours" plan_hours = fields.Float("计划工时...
fa7e43e160c7c103aa917fe8c587eace799097a8
b0774f7e8e360ae635e25093b0a7d0fd4de7c72a
/Consultar_Usuario_Fallido/addons/string_utils/__init__.py
a6bdb1f14c2594159040d1f22ef94bbd48178a97
[]
no_license
dacorread05/Scripts_Pruebas
af8ccfb92d57f8db2c6224b41a432bd5c48b7d93
0f028213b356e3dc6edffb8b9d7184c031fada01
refs/heads/master
2023-08-20T00:48:37.157545
2021-10-14T00:10:08
2021-10-14T00:10:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
__init__.py
from .string_utils import StringUtils
af0978643878c56c8fbc7ec3c75707176b55ac59
a8f5ab7d9fbc6e15676be5414f8de803910fe8b6
/palindrome/minim/__init__.py
1e842836095554e997eba969c6e459b66d3a51f1
[]
no_license
davidpettersson/palindrome
893919829ecf8419233cc1f50d29830b1e3d32ce
18ca679264c6f62db075668f32bcfc4a9a9ff30f
refs/heads/master
2020-06-09T04:40:32.613564
2019-06-26T15:42:40
2019-06-26T15:42:40
193,372,014
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
__init__.py
default_app_config = 'minim.apps.MinimConfig'
7ece0418ce3e183ddd67d0bc4de8577980799b14
9984f94093625ca66e9d6e0abe73eabe6ed5892c
/week07_seq2seq/basic_model_tf.py
2d70901240919b62898c27434bce885f02c11482
[ "Unlicense" ]
permissive
yandexdataschool/Practical_RL
1d8c0ed6db4780b423be7aa51b560b2ad1fbecef
c598c63c16dba57639013a90086735377a2562b1
refs/heads/master
2023-08-30T10:44:01.620442
2023-08-13T22:58:35
2023-08-13T22:58:35
79,821,807
5,932
1,902
Unlicense
2023-09-10T19:47:35
2017-01-23T16:18:00
Jupyter Notebook
UTF-8
Python
false
false
9,656
py
basic_model_tf.py
import tensorflow as tf import keras.layers as L # This code implements a single-GRU seq2seq model. You will have to improve it later in the assignment. # Note 1: when using several recurrent layers TF can mixed up the weights of different recurrent layers. # In that case, make sure you both create AND use each rnn/gr...
68c97f906ef3b15a5ce9427a9ea4c0f1bb6212ef
7ef3c4db1af11e6fb69eae0f2511b89a2fc9c665
/20210705/py07_ML_kNN_aircon.py
f8399635ec4ae187433ace5a5827cbd7de5c02dd
[]
no_license
mooniny/workOut
b1aa89e236b329634a7fab5a4627992c63a431a3
34d1bd1107c47f4ed364f3c435e5990a4058bb6a
refs/heads/main
2023-06-25T15:00:38.344035
2021-08-02T05:11:57
2021-08-02T05:11:57
383,686,870
0
0
null
null
null
null
UTF-8
Python
false
false
1,455
py
py07_ML_kNN_aircon.py
# -*- coding:utf-8 -*- import pandas as pd from sklearn.neighbors._classification import KNeighborsClassifier from http.client import HTTPSConnection from bson.json_util import loads from sklearn.preprocessing._data import MinMaxScaler airconDF = pd.read_csv("C:\\Users\\sdedu\\Desktop\\test\\owmWeather/owmWeather.csv"...
4e5c99e8ee98d8347216be5b7b5d72ee8a07f715
59a5b68830a02be3ffa03179be24f97e12021d6d
/api/models/group.py
820241e98b451bdf3777d7f9f348cfe1756cf45d
[]
no_license
suryateja94/blue
fe498134212541fb884a0c190ad58847bf8e5d51
a20bef81b537fc3017749669d96367256fda6b4e
refs/heads/master
2023-08-18T12:53:06.060590
2019-12-17T19:59:39
2019-12-17T19:59:39
228,691,503
0
0
null
2023-08-14T22:07:45
2019-12-17T19:57:13
Python
UTF-8
Python
false
false
2,743
py
group.py
from tornado.gen import coroutine, Return from api.stores.group import Group, GroupType from api.stores.user import GroupMapping, SupportedRoles, User, StatusType from db import QueryConstants from tornado.gen import * import bcrypt import jwt import base64 from api.stores.user import User, LinkedAccount, LinkedAccount...
fbf1d21ceaa3f6c8da583140e4a7aea19276a2e3
85182092cec705b6b6eec8f900c038ebc0adaeef
/tests/test_json.py
c35718737b865c024a699d8a36d9f05350d34091
[ "MIT" ]
permissive
vlasovskikh/funcparserlib
8ee8837554d4ba7d16037bb90b23a09cc32e503f
343a65d074bb1105381a619a6352b24a6c1b3ac0
refs/heads/master
2023-03-16T02:48:19.616867
2023-03-07T22:50:45
2023-03-07T22:51:52
34,477,477
343
52
MIT
2023-03-07T23:41:33
2015-04-23T19:38:11
Python
UTF-8
Python
false
false
3,554
py
test_json.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest from typing import Text, Optional from funcparserlib.parser import NoParseError from funcparserlib.lexer import LexerError from . import json class JsonTest(unittest.TestCase): def t(self, data, expected=None): # type: (Tex...
823b0380e75c0a09581efea5a30e7d8ac0dd4448
79c9e498fd0b455f5535e2041dc49f7bc37d1f49
/parser_update.py
b732007ee296d1211070e176ce06ca6d3c1c9426
[ "Apache-2.0" ]
permissive
Valloric/nailgun
6fdcb20a7b5f22ce2dde9f0f6345988c5360a25e
b327a0934de6ebc4e3ae4f1b54a9941ead20e9e8
refs/heads/master
2021-01-16T19:31:47.560300
2016-10-01T22:30:13
2016-10-01T22:30:13
19,653,480
8
0
null
null
null
null
UTF-8
Python
false
false
6,416
py
parser_update.py
#!/usr/bin/env python # # Copyright 2014 Strahinja Val Markovic # # 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 appli...
94d53edd0800f8b4ebe2cd5241f896a651ab691f
3d9494c994cec29d684d0e56b4d09dce150999a2
/Student_Database.py
855dcd3d6dc85a0f0c95bb99d76d13148ec9d383
[]
no_license
yeshwanth2812/Python-week4
d564906968c561b929d1c7fd76b455dfbf7766bb
6a94715fc61aadefa6a7dd17987bced054f765a8
refs/heads/main
2023-03-27T17:48:00.480168
2021-04-02T05:43:44
2021-04-02T05:43:44
353,914,733
0
0
null
2021-04-02T05:43:45
2021-04-02T05:25:28
null
UTF-8
Python
false
false
474
py
Student_Database.py
import mysql.connector as mysql #try: mydb = mysql.connect(user ="Yesh", password="Pass@123", host='127.0.0.1', database='college') mycursor = mydb.cursor() print(mycursor) #mycursor.execute("Show tables;") #myresult = mycursor.fetchall() #for x in myresult: # print(x) sql = "INSERT INTO CLASS1 (ROLLNO) VALUES...
2810696d723f7a1d0db85b90bc3d60c05d044db9
ad6f56c612732c6b65d84633f0127735731b2395
/tg_ui/pmod_bot.py
e8872999daf15f58f8b341bccfed20a0399087ac
[]
no_license
DanilPestryakov/population-modeling
3cc85b3654d467c0bd853498d2b96be464ac3b83
b1b49758fb44ec3f50c21b3c6a63bb8e2c7a56bf
refs/heads/main
2023-06-03T03:35:38.498425
2021-06-18T13:38:35
2021-06-18T13:38:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,189
py
pmod_bot.py
from telebot import types import json import requests from tg_ui.token import TOKEN import telebot bot = telebot.TeleBot(TOKEN) population_id = None global host_url with open('config.json') as file: global host_url path = json.load(file) host_url = path['host_url'] @bot.message_handler(content_types=['te...
045e99ea6ec28417f8c7a98cd69216e263182a11
8109f9115b368083cba453d1ae0716f3bbb3941d
/setup.py
633eb330f3b24754e53e8e80e13667c19e394451
[]
no_license
sukhbinder/kanada
b333be141c9dea032210ad1c02cbcaaad833c886
509f6e306777b5f2a02afa58a168a87e6d23011f
refs/heads/master
2022-06-26T19:18:45.399235
2020-05-10T12:38:15
2020-05-10T12:38:15
262,742,905
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
setup.py
import os import json from setuptools import find_packages, setup setup( name="learnkanada", version="1.0", packages=find_packages(), license="Private", description="Learn Kanada one word a day", author="sukhbinder", author_email="sukh2010@yahoo.com", entry_points={ 'gui_scripts...
a6ceafb6615997cffc5ecbb52603722c573c9987
2797e8402d2559b38921200e0012f2b4a596b2ce
/031-chatbot/advanced/utils/file_helper.py
7eaf15c8ecaa70bfbb45e04df598fd55947302c2
[ "Apache-2.0" ]
permissive
AbdullaElshourbagy/deeplearning
6a64bd5984f4ed1aa752562f83f45a8bcedfd6c3
e6004da4df5d8d066f637dc471f4a0f590f3af1e
refs/heads/master
2021-09-22T21:03:23.030885
2018-07-09T11:34:28
2018-07-09T11:34:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
file_helper.py
import os def file_exists(path): """Test whether a path exists. Returns False for broken symbolic links""" try: st = os.stat(path) except os.error: return False return True def try_create_dir(directory): if not os.path.exists(directory): os.makedirs(directory)