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
359e5b59011cd396d6d5c29018b1279aae83525a
d08f36f616ea6c7408aecc7888b9a01cbc4a21b3
/src/maccabipediabot/simple_flows/donation_flow.py
31152f3b051460abee3b440973b0042e8d7c03e6
[]
no_license
Maccabipedia/maccabipedia_telegram_bot
f7d593c6f12921ff044a63775115c1f77509ea3a
776604ede16319efc24f5e7cacf17d2dcc6b3a51
refs/heads/master
2023-06-23T11:09:11.463525
2023-01-08T00:03:49
2023-01-08T00:03:49
246,893,843
1
0
null
2023-02-08T05:16:20
2020-03-12T17:31:13
Python
UTF-8
Python
false
false
1,293
py
donation_flow.py
from telegram import ParseMode from telegram.ext import CommandHandler, MessageHandler, Filters from maccabipediabot.common import get_donation_link_html_text from maccabipediabot.handlers_utils import log_user_request, send_typing_action from maccabipediabot.main_user_keyboard import MainKeyboardOptions @log_user_r...
ce477ea087331f258c77ec7481289643db39abff
63b7ee84ff33ad60a9102033bb6b549b79fe4b85
/profiles/migrations/0012_level_percentage.py
2332d95a0962725d82b1c3a760affb7a9279a681
[]
no_license
OmiGitProjects/Course-Referrals-using-django
e6f81efeee2e6f05ee68b9d5015b445e5ee0a397
02049cbdfdbadaa482e986ce1173b0aa4ecd3c52
refs/heads/master
2023-03-09T13:44:25.317746
2021-02-22T11:56:51
2021-02-22T11:56:51
341,184,356
1
1
null
null
null
null
UTF-8
Python
false
false
612
py
0012_level_percentage.py
# Generated by Django 3.0.8 on 2021-02-16 18:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0011_profile_recommanded_to'), ] operations = [ migrations.CreateModel( name='level_Percentage', fields=...
7cad66830c08affde4b02a97f8e2d2ea0ee93c20
3cabbbd807c3a6a319842d420402a0abae1be51c
/apps/projectManager/models.py
738c12374a6529da38cafb7cbe503315682bc382
[ "MIT" ]
permissive
yhkl-dev/turtle-dove
cf61cf3946f5a0bffccb13c8aede10829e0e05b2
074ed03396d603a920bc382ee916fc0f3adab6ea
refs/heads/master
2022-04-08T06:39:37.760000
2019-09-30T06:27:50
2019-09-30T06:27:50
204,445,225
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
models.py
from django.db import models # Create your models here. class Project(models.Model): DELETE_PROJECT_STATUS = ( (0, '否'), (1, '是') ) project_name_en = models.CharField('项目名称(english)', max_length=100, help_text='项目名称(english)') project_name_zh = models.CharField('项目名称(chinese)', max_l...
5a8dee5c99a67240b2259523d139db727fdbe764
6c5e93164af628bfc65c96fd436535d1f36d3bda
/model/gcn.py
25b2948bd1ae0b3afcfb2d9129eaffdc19523c04
[]
no_license
Jeff1995/pLocNet
d1a5e66aeca65fc0ca43fbf4d03543dd8ca0c1ec
c72087cf10b06de4abb55ceecdbbfac4283c7a38
refs/heads/master
2020-03-26T21:27:47.127089
2018-08-31T16:48:48
2018-08-31T16:48:48
145,389,812
1
0
null
null
null
null
UTF-8
Python
false
false
10,100
py
gcn.py
import os import time import traceback import numpy as np import scipy.sparse as sp import tensorflow as tf import ipdb import model import utils class GCNPredictor(model.Model): def _init_graph( self, input_dim, graph, gc_depth=1, gc_dim=100, class_num=1, class_weights=None, drop...
f6773075919f5cffd3876c6066346c4c28e125c7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03705/s976693156.py
608cf439317480c4b018bb538c547ad9144bcce1
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
s976693156.py
n,a,b = map(int,input().split()) minA = a*(n-1)+b maxA = b*(n-1)+a print(max(maxA-minA+1,0))
af8c36216882add8513bbb4fe0eb51d43875df16
a3554085572afef7419fca6c24b8239da42de245
/ggworks/ggworks_api/migrations/0007_auto_20181118_0105.py
4eea68460a35d2402dbf5f8c6bf43c0298b4e6e0
[]
no_license
taehyongi/ggworks-back
7a00a6aa7b62f612238b5a31b0bb16b777df1eaf
dc297268ea957d40aca64761bc52b501764486b9
refs/heads/master
2020-04-10T23:28:10.926288
2018-12-11T15:20:30
2018-12-11T15:20:30
161,351,537
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
0007_auto_20181118_0105.py
# Generated by Django 2.1.2 on 2018-11-17 16:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ggworks_api', '0006_auto_20181113_2159'), ] operations = [ migrations.RenameField( model_name='userprofile', old_name='compa...
8e0d545f54ee64dcd0a864072dbe84c4d8cf4ad7
8bf7d1a0b1dec4b6807a02deeea1de7d1a8e1960
/setup.py
0f4be40aaf27d0af11baba6f44865a3c47962c8a
[ "MIT" ]
permissive
mcflugen/hog
ff3a1c7525d1a75efcc437105c247dfb84cad821
937d8b81a8fe1a8bf50e5346f281e25c72ec6816
refs/heads/master
2020-05-17T10:39:23.195225
2015-01-31T21:47:36
2015-01-31T21:47:36
30,127,491
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
setup.py
from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup(name='hogs', version='0.1', py_modules=['hog'], entry_points={ 'console_scripts': [ 'hog = hog:main', ] }, )
13006cf94ae1a9346e4f4ad9ba78c29787f33d59
a311d05b62490a31a3722841ca690acef67da75c
/mstats/views.py
483af7698c743aeb58427f4f36c6f9462dc5faa7
[]
no_license
knightsss/mylog_mstats
c0c76840ca8801de4c57027938c595b7404e072e
08690466526daacbff83f22fbd51c64af4a21bc3
refs/heads/master
2021-01-09T20:39:50.234622
2016-07-12T09:52:16
2016-07-12T09:52:16
63,147,042
0
0
null
null
null
null
UTF-8
Python
false
false
2,113
py
views.py
#coding=utf-8 from django.shortcuts import render # Create your views here. import time,datetime import json import simplejson from json import loads, dumps from django.shortcuts import render_to_response,HttpResponse from mstats.models import Info def mstats(request): return render_to_response('mstats.html') def...
6b1750ce587c355f019dfa5c4d0e8cf3e26b95f2
90822b5ff025ebe6c1d772c1cfbd0b0ad367f760
/flaskcma/utils.py
da9783c7c0666e8d242d9f4f66fcb5bb7514b635
[ "BSD-2-Clause" ]
permissive
ericmoritz/flaskcma
8d8caeeb18b715441a330541c261b5c025e1f5f1
a5c233145ca06dab26ccf93dbac306d5da8d804a
refs/heads/master
2021-01-01T16:26:36.197486
2010-09-18T03:16:24
2010-09-18T03:16:24
873,050
4
0
null
null
null
null
UTF-8
Python
false
false
379
py
utils.py
def content_types(app): def gen(): for mod in app.modules.values(): if hasattr(mod, "flaskcma") and "content_list" in mod.flaskcma: for doc in mod.flaskcma['content_list']: yield (doc._class_name, doc) return dict(gen()) def content_type(app, content_ty...
01e1f009af39b5ecb9d5e0a3c675f6d9f2022cd9
86c850e5ec2671d9e2b447d10b607d18948aaf34
/find_replace.py
2aedfff51e2320650e4039b1013c8dfebd739316
[]
no_license
peaceout01/legendary-regex
7c54c554e6282601d22fd1d9f354464114d297d0
88579780b1a0c2994a4b38286b92f1f84e1ec5ba
refs/heads/master
2023-03-16T22:06:15.739962
2016-09-10T18:05:23
2016-09-10T18:05:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
find_replace.py
import re # Lets try and reverse the order of the day and month in a date # string. Notice how the replacement string also contains metacharacters # (the back references to the captured groups) so we use a raw # string for that as well. regex = r"([a-zA-Z]+) (\d+)" # This will reorder the string and print: # 16 of J...
602929bd593758038876b57f71175b50d98e8e16
c4605272a86cd2d0ae18162b888f75df843bbb27
/services/post_flight/post_flight_test.py
45beac60344e3cffd186c68ca899ac9f8b889e78
[]
no_license
UAS-Bachelor/uas-administration
ed5fd8fbb15c2dfece872771053e32b47bcf9105
2aa6b1c8170c87443ac36b81eaa0d6958687d2d1
refs/heads/master
2021-04-29T22:00:14.945620
2018-06-01T07:37:47
2018-06-01T07:37:47
121,629,833
0
0
null
2018-05-20T16:26:35
2018-02-15T12:55:21
JavaScript
UTF-8
Python
false
false
1,495
py
post_flight_test.py
import unittest from base64 import b64encode import database_manager from post_flight import app class PostFlightTest(unittest.TestCase): def setUp(self): app.config['TESTING'] = True self.app = app.test_client() database_manager.database = "uas-administration-dev" def test_view_mis...
0d209055cc685c72a587358a3df096307f45aee9
44badce6303eb8df34707edf27c5f8f2d2bc2697
/redfoot-1.0/core/redfoot/server/dispatcher.py
8e969fa40fc5ddc2845f5c79c39140ee87fae932
[]
no_license
jtauber/redfoot-orig
d371456f79e8b584f8e58037a5ab33011027484a
a5c26c53ba94c6d8970578bfcbc637aafaad1e11
refs/heads/master
2021-01-13T01:13:24.072000
2014-06-22T14:58:45
2014-06-22T14:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,194
py
dispatcher.py
__version__ = "$Revision$" from threading import Thread from redfoot.server.error import BadRequestError import socket class Dispatcher: def __init__(self, connection_queue): self.connection_queue = connection_queue self.running = 0 def set_handle_connection(self, handle_connection)...
fd1218381125a91f0863d84ad5363e7c031f3ea4
45e7fc0c586729a9fbff0cd5ec036db292264bad
/siena/rerun_siena_noresample.py
baaf9762a45f225f9e6e3f02f5e13cf248eae715
[]
no_license
ginakirkish/henrylab_scripts
5a11dc96ed03f85e00b7330d26ee776b6f93ac63
5e3009180a731ccd10c851668b00234e6e6728a5
refs/heads/master
2020-12-12T17:48:48.280077
2020-02-10T19:22:42
2020-02-10T19:22:42
234,189,521
0
0
null
null
null
null
UTF-8
Python
false
false
4,349
py
rerun_siena_noresample.py
import argparse import pbr import os from glob import glob from pbr.base import _get_output import json from subprocess import Popen, PIPE from getpass import getpass #from subprocess import check_output, check_call import json #import pandas as pd from nipype.utils.filemanip import load_json heuristic = load_json(os....
0d0bf153498daf4d684a13574c35d3f958fcda58
e37eddfb8242ad8ba85e166508519fc8a2500908
/tracking.py
4e4e0864372914313d1dec33e926da6b50a8e899
[]
no_license
JeongYeonSeong/Smart_Parking_Lot
45c774f0b5c2ee72547582d1462e8f5452041476
d41b0202fb3516d6a70527b192729f6bfe5dd6af
refs/heads/main
2023-06-22T17:55:03.974904
2021-07-18T08:28:57
2021-07-18T08:28:57
343,100,528
0
0
null
null
null
null
UTF-8
Python
false
false
6,913
py
tracking.py
import cv2 import numpy as np import time as t from configs.sockets import Clients as Clients from configs.cars import Car as Car from configs.cars import Car_List as Car_List import configs.config as cf import requests ######################## # settings ######################## print('start system') # 허용 ...
42fe9ba9b96be6261ae9750cd92837b66668f8ee
03292fbb2b9a019492c9a74351c5570706bd86c4
/hackmit/migrations/0002_book.py
66d9324ea8536c01e007a647b0138a44c20acc72
[]
no_license
RishamArora/HackMIT21
1ca66adbd547e4507e6d1e89b9e4c95f4f270d64
8daab1e5dbd5f2256006e95dca36b275d6f8a38d
refs/heads/main
2023-08-04T05:58:17.156510
2021-09-19T13:19:28
2021-09-19T13:19:28
408,133,267
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
0002_book.py
# Generated by Django 3.2.7 on 2021-09-19 05:46 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('hackmit', '0001_initial'), ] operations = [ migrations.CreateModel( name='Book', fields=[ ...
ee312a26f6fbf96023999bbaa44138d24d027e0b
fd6d3b32c0313c894fec1d23f7ade408696efa11
/simplify_polygon.py
b56a063c7038d36f59d4e63ec439fd9d8cb4f6ca
[ "MIT" ]
permissive
david-crespo/py-super-hexagon
985b240f3e3382dd718b859dd345ddb63352f5c9
cfbcf6d696a2dd8d29d392615027b92c4ea54368
refs/heads/master
2021-01-17T15:08:18.428512
2016-06-24T22:04:53
2016-06-24T22:04:53
26,061,948
0
0
null
null
null
null
UTF-8
Python
false
false
4,498
py
simplify_polygon.py
""" Utility for reducing a polygon's vertices by creating a simpler approximation. """ from heap import Heap import math def vector_len(v): """Get length of 2D vector.""" x,y = v return math.sqrt(x*x + y*y) def vector_area(v0,v1): """Get area of the triangle created by two 2D vectors.""" cross = ...
3b9296d947cb7f1408ea8cb2bad7c8284085ad04
7b9ff956eab649d717359549de59d6de6a863076
/open-hackathon-server/src/hackathon/hazure/utils.py
3b05092c8d3e2fc519ca8cf2c25864a1c7c029e1
[ "MIT" ]
permissive
pcwl/open-hackathon
25915e998c12f134342b40aadc8dbc2aabaac45e
cbd0afbbf0b4047af17086a0d9c0a9c031bd3595
refs/heads/master
2020-04-07T20:34:53.462185
2019-06-03T09:01:14
2019-06-03T09:01:14
158,694,690
0
0
MIT
2019-06-03T09:01:15
2018-11-22T12:16:19
Python
UTF-8
Python
false
false
5,658
py
utils.py
# -*- coding: utf-8 -*- """ This file is covered by the LICENSING file in the root of this project. """ __author__ = "rapidhere" __all__ = ["get_network_config", "get_remote_parameters", "add_endpoint_to_network_config", "find_unassigned_endpoints"] from azure.servicemanagement import ConfigurationSet, ConfigurationS...
c6bd21efa44d6e2ebc3db6e2f92a4267afc98487
06089f13996e39e64619695719140c85da8575d9
/drizzlepac/drizCR.py
a87223d149fc6bdfb9661dbc6028b29ebd7be8fd
[ "BSD-3-Clause" ]
permissive
drdavella/drizzlepac
02dd3763afadd8c5f63bd597e6b6b0cf50e66c2c
036364e3c2f554eabccea5f2942172cee6da4458
refs/heads/master
2020-03-23T10:46:20.793779
2018-06-28T14:36:33
2018-06-28T14:36:33
141,461,704
0
0
BSD-3-Clause
2018-07-18T16:31:27
2018-07-18T16:31:26
null
UTF-8
Python
false
false
18,214
py
drizCR.py
""" Mask blemishes in dithered data by comparison of an image with a model image and the derivative of the model image. :Authors: Warren Hack :License: :doc:`LICENSE` """ from __future__ import absolute_import, division, print_function # confidence medium import numpy as np import stsci.convolve as NC from astropy....
cc8120189d17d75e96620344f38b01fa34726a05
0b6208d90602a312665b4b5542fac0520851f0fe
/prag_generation-master/e2e-incre/recs_data.py
5b0df34225c738ef7355e5099320c453c461cf80
[ "Apache-2.0" ]
permissive
gauravkc2794/NLG-model
6bc1c6bdc53ffe993aa01f714b8806255f5b766a
37979347d64888481e38cdd82583c51b5c350c0e
refs/heads/master
2022-04-24T03:31:05.319569
2020-04-26T22:34:41
2020-04-26T22:34:41
258,628,451
0
0
null
null
null
null
UTF-8
Python
false
false
6,172
py
recs_data.py
import importlib import os import sys from os.path import join, exists import numpy as np import pickle as pk from components.utils.config import load_config, fix_seed from components.utils.log import set_logger from components.utils.serialization import load_model, make_model_dir from components.utils.serialization im...
1f090e7e9a4fbb02c908d680f7bd6af24e320aa9
ef9d148816a3d5dc23ff07c67667010c49a7d098
/autoprep/column.py
ccd5bcf4f141ed9e4436b5b188548c43a1d2098f
[ "Apache-2.0" ]
permissive
haginot/auto-prep
eb0f16e02c04475764708e927df65a2f0231cf42
b1de3eceba5b82432e7042e7e62270df467ed828
refs/heads/master
2020-04-15T04:25:07.660647
2019-02-28T06:31:55
2019-02-28T06:31:55
164,382,329
0
0
Apache-2.0
2019-01-29T03:03:07
2019-01-07T05:25:24
Python
UTF-8
Python
false
false
880
py
column.py
import pandas as pd from autoprep.encoder_provider import EncoderProvider from autoprep.profiler import Profiler class Column: def __init__(self, title: str, data: pd.Series): self.__data = data self.__profiler = Profiler(data=self.__data) self.__dtype = ...
833ccacdfdfe3a63f4e09b44cb3f995080900f2e
466912406272829982f75854cf0104c6ce8c9814
/data/spider2/aggregator/collection/timeline.py
6913e5df9bc575e6933ed566064493f171b28480
[]
no_license
logonmy/Codes
9631fa103fc499663361fa7eeccd7cedb9bb08e4
92723efdeccfc193f9ee5d0ab77203c254f34bc2
refs/heads/master
2021-09-21T18:07:22.985184
2018-08-30T05:53:26
2018-08-30T05:53:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,202
py
timeline.py
# -*- coding: utf-8 -*- import os, sys reload(sys) sys.setdefaultencoding("utf-8") sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../../util')) sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../support')) import loghelper import db import collection_newp...
13a8f8c3578a464d4cd9d7228265ae66dac31706
81480cb4819ba22c5c9a48c816d9a2e67cefed82
/apps/street_lighting/viewsets.py
a8be784bebe686176469dd340d64dd5cb3cd8a4a
[]
no_license
diego1996/SAP
b9dd81cc6fbf3118b20f56f69d8912c4ee3b0523
c829096d550ff56a637139a4e5247ee1ca344390
refs/heads/master
2023-05-06T21:36:27.744439
2021-05-31T16:10:12
2021-05-31T16:10:12
368,312,194
0
0
null
null
null
null
UTF-8
Python
false
false
8,670
py
viewsets.py
import json from django.contrib.auth.models import User from django.db.models import Q from rest_framework import viewsets, mixins from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response from django.http import JsonResponse from collections import namedtuple # ViewSets ...
b5667e667233f9751bd621c4fda977e6173b0a1d
3b7c252010f568bd61f70984c1a5ea34f82cf597
/test.py
0be439628d1cf6e4a9fbbe2906a218f2bb82eccc
[]
no_license
esgl/RL_ESGL
b61f8bd0e597caf2f712f98215cde16feee72046
202085024f9c6eb58fdfb21557a099753b14184e
refs/heads/master
2021-05-06T06:17:11.531778
2017-12-12T13:06:56
2017-12-12T13:06:56
113,824,514
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
test.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division a = range(1, 10) print(a) print(a[1])
66082e4352ae7e5a484ff5210ed29597b94f5ac9
a9594c6ef8049171029d1994be5cd3bf3d209812
/Python/src/com/masopust/ondra/python/motors/Motors.py
34bac495e4b7afaec8853a31172f5aac7beacbfd
[ "MIT" ]
permissive
OndrejMasopust/Rover
4ab3ab2c2e84aaebc1378ac77b9e5cef19dbb850
cd393ac72afa5d8a50d7cfd00b1be134d34acfc4
refs/heads/master
2023-04-08T10:13:40.856878
2021-04-13T08:04:41
2021-04-13T08:04:41
100,511,827
0
0
null
null
null
null
UTF-8
Python
false
false
6,338
py
Motors.py
#!/usr/bin/env python3.6 ''' Created on Jan 27, 2018 This module contains only the Motor class. MIT License Copyright (c) 2018 Ondřej Masopust; Gymnázium Praha 6, Nad Alejí 1952 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Sof...
9de237b68e93532c1ce902ba9cb0b0345572796f
25dda94672497e3287a7403e283fb279ad171b79
/boj/2193 이친수.py
df6ffadc19a428228174a0e17e75d2d78dd95c64
[]
no_license
woorud/Algorithm
c94b844e8c96a446c5fdee5c0abb159bfee384d7
f5b8e3cf0aea7fc4400e6f5bb0c1531fad93e541
refs/heads/master
2023-02-23T13:53:28.645036
2021-01-29T12:24:23
2021-01-29T12:24:23
230,908,288
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
2193 이친수.py
import sys n = int(sys.stdin.readline()) dp = [0 for i in range(91)] dp[1], dp[2] = 1, 1 for i in range(3, 91): dp[i] = dp[i-2] + dp[i-1] print(dp[n])
9ee8d4f9c999f8f493bbd30ddefecc8df8788c87
641f76328bfeb7e54f0793a18c5b7c00595b98fd
/apps/trade/migrations/0028_auto_20190107_2119.py
e1fc1a6d4ac358e0c86c0293d60459df7e0b295d
[ "Apache-2.0" ]
permissive
lianxiaopang/camel-store-api
1d16060af92eb01607757c0423377a8c94c3a726
b8021250bf3d8cf7adc566deebdba55225148316
refs/heads/master
2020-12-29T13:23:18.118617
2020-02-09T08:38:53
2020-02-09T08:38:53
238,621,246
0
0
Apache-2.0
2020-02-07T14:28:35
2020-02-06T06:17:47
Python
UTF-8
Python
false
false
717
py
0028_auto_20190107_2119.py
# Generated by Django 2.1.4 on 2019-01-07 13:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('trade', '0027_auto_20190103_1419'), ] operations = [ migrations.RemoveField( model_name='orderinfo', name='address', ...
3e34810bd592d61d988a711fad18ebfc8751c2fb
80563d6e83fa6cd4b592be412f7cd447aed75647
/day2.py
44da9589e64095f346ad6ff93ae767bbf69ff001
[]
no_license
happiness11/day2stream2
175de1f1780494371fd74cbdb850cde58b933eea
1369c31a31210514546f1c67a07771250f2590e5
refs/heads/master
2021-05-15T12:19:26.475505
2017-10-10T21:37:50
2017-10-10T21:37:50
106,474,283
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
day2.py
def count_upper_case(message): count = 0 for c in message: if c.isupper(): count += 1 return count assert count_upper_case("") == 0, "Empty String" assert count_upper_case("A") == 1, "One upper case" assert count_upper_case("a") == 3, "One lower case" assert count_uppe...
5289f076ea079c793295943e01c2065b838249d2
8bafc95d6051679e9cdb28f830efa27cfc23eb06
/ebanca/core/migrations/0001_initial.py
fe52b0138f9a21510c27b9b9324300543fada839
[]
no_license
adcha17/ebanca
b2705ac4fa3c208b1bcb6717b08fbc58ed2ddd4a
f1669816800865f0605b809668616f41e54d9dfc
refs/heads/master
2021-08-30T03:17:51.876660
2017-12-15T21:01:01
2017-12-15T21:01:01
112,810,856
0
0
null
null
null
null
UTF-8
Python
false
false
5,334
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-10 01:08 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0...
9b613e3400d4fd4491e1e3e679ce5040316fd2cc
b6ba60291ad018ae95ab511144c50a81dedaa8bd
/src/apps/apuser/migrations/0046_click_offer.py
fd88bbacb8d90fc19e8a36ec3d6b97424669ea75
[]
no_license
BlackPie/alterprice
183251c6ab4043af866b4bb8b05f7beb0a63d1f8
941dd4d82dea2c644697aff30b6c79983f0fe3df
refs/heads/master
2021-01-16T21:29:17.746221
2015-09-29T14:03:32
2015-09-29T14:03:32
60,237,321
2
1
null
null
null
null
UTF-8
Python
false
false
519
py
0046_click_offer.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('apuser', '0045_remove_click_productshop'), ('product', '0035_auto_20150727_1358'), ] operations = [ migrations.AddFi...
4ffed364b6eda1732b06f49eebfee11605ef9db5
6f69fbcd94091e517a7d2df3daa084c920b21a77
/0.스타트캠프/181220_summary/check_lotto.py
3ccd0a25ed834175c318f8c46d4904d3635b270f
[]
no_license
leesangju92/TIL
b1088a498e4dd4131b44bbd5d999fe25e972e395
bb030343f127f726bb7ae6ef9982eac4ae162a91
refs/heads/master
2020-04-12T02:53:09.356997
2019-09-24T08:57:32
2019-09-24T08:57:32
162,255,914
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
check_lotto.py
# import lotto_functions # lotto_functions.am_i_lucky(lotto_functions.pick_lotto(),lotto_functions.get_lotto() ) from lotto_functions import am_i_lucky,get_lotto,pick_lotto result = am_i_lucky(pick_lotto(),get_lotto(812)) print(result)
4fe4c92e33d43030ac5a7405992a27d8af37b52a
d572da0961e76ac7fdd7444883ef850eb4be5718
/PycharmProjects/CursoExercicios/ex022.py
dd0145ac41c82893a0adcaf332fec17c863c114a
[]
no_license
Ryctorius/Curso-de-Python
47d70dd3e37c3ed2882a3b730adcf8b1d2e6e1ef
0f9995bfa910d5612e1104c524a430b4792f3671
refs/heads/main
2023-06-05T07:44:08.141512
2021-06-28T22:04:08
2021-06-28T22:04:08
381,170,793
1
0
null
null
null
null
UTF-8
Python
false
false
264
py
ex022.py
NOME =str(input('Digite seu nome completo:')) print(NOME.upper()) print(NOME.lower()) Q = len(NOME) T = NOME.count(' ') print('Há um total de {} letras no seu nome completo'.format(Q-T)) F = NOME.split() print('Seu primeiro nome tem {} letras'.format(len(F[0])))
d104ee08c09720a7295e83914d3aa7fe77103dcf
8c6bb368d6e9139dcb11852925fc7515990be412
/code/Transportation/Roadways.py
dc7eff085958a4f6ef4643ba5fece58cd600c418
[]
no_license
IDS6145-18Spring/assignment-1-practice-designing-models-tiffanimarlowe
5db7806a90a5d89cf4660e495bce298fba988ddb
723768e650fc9539e03e11c9142445c4ee34d465
refs/heads/master
2021-05-12T04:20:52.561992
2018-01-19T04:59:33
2018-01-19T04:59:33
117,159,362
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
Roadways.py
from Transportation import Transportation class Roadway(): #Roadways Section def __init_(self, l, s): self.lanes = l self.sensor = s class Lanes(): # Lanes Section def __init_(self, t, lo, sz, o, n): self.type = t self.location = lo self.size = sz ...
a69566cc871b13c7e75d6c1f2d1365da7cf7f254
a447a91c6ce973155004781e32d1efae36b54bc3
/Sucharita_my_movie_association.py
6bdeb9e8e3d96a9aeaa27319b016754755ea0b13
[]
no_license
Sucharita87/Association-Rules
82e458eeafed73d25f24d144cdd1dba42cffb586
1ca632bd73d94d45d81cd7385d262f70cee46e0b
refs/heads/master
2023-01-08T13:10:24.753873
2020-11-05T06:37:01
2020-11-05T06:37:01
284,990,320
0
0
null
null
null
null
UTF-8
Python
false
false
4,672
py
Sucharita_my_movie_association.py
import pandas as pd import numpy as np from mlxtend.frequent_patterns import apriori, association_rules import matplotlib.pyplot as plt movie= pd.read_csv("F:\\ExcelR\\Assignment\\Association rules\\my_movies.csv") movie.head(5) movie.columns # give column names in the dataframe movie= movie.iloc[:,6:15] # remov...
605e012c88978c4d9f91c71c8bf317ef30c6f909
6a1c8856819acf5f72970763d6fec78d7266d9f7
/model.py
912b4a5cc72efb1ac49ff444093285b2f130b3c3
[]
no_license
ayushshivani/Handwritten-Form-Recognition
d79a6cba74a7da028ad068308b20c618b77db1de
e07bae8ff40f060d83eb3b02a4eb23d6a5fe595e
refs/heads/master
2022-03-23T22:57:17.415710
2019-11-08T23:04:18
2019-11-08T23:04:18
189,737,587
1
2
null
null
null
null
UTF-8
Python
false
false
2,167
py
model.py
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship from flask import * from sqlalchemy import * Base = declarative_base() engine = create_engine('sqlite:///user.db',connect_args={'check_same_thread': False}) engine.connect() Session = sessionmaker(bind=engine)...
edcdfa5c1c1575e13cbaabbba7b30d5a959a135a
d06c613028f08a54d3144d90603dd4c6e3e0d497
/docs/conf.py
a82963d4711c81871120c2d619fe852fa8e5ab17
[ "MIT" ]
permissive
daveloyall/corvus
65e4ff76c1632fa05925a89ec5f384f8b694df42
360cf1e646facaeae067e1350c7e5345ac881d50
refs/heads/master
2020-12-26T11:13:44.523388
2014-08-26T22:30:20
2014-08-26T22:30:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
conf.py
import sys import os extensions = [ 'sphinx.ext.pngmath', 'sphinx.ext.graphviz' ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = 'Corvus' copyright = '2014, Fernando Borretti' version = '0.1' release = '0.1' exclude_patterns = ['_build'] pygments_style = 'sphinx' hig...
d768a37f33590f3e8e30248e812d3fc806ac878c
77caad79ab8b90a281c8eedbf21894ee0dc0c7cf
/exercise 5_cat/ex5.py
8250c9e2a37a951ec859122783b3eb70b25c0985
[]
no_license
gdesilva/Learn-More-Python-The-Hard-Way
5f171ab153b8ef25e0ff0e4df30e06579565f929
27f1b87ee8ff37e773f6bd8c8128a3f4d3fb65e5
refs/heads/master
2021-04-30T06:11:14.406205
2018-09-05T21:34:47
2018-09-05T21:34:47
121,436,118
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
ex5.py
import argparse parser = argparse.ArgumentParser() parser.add_argument("files", nargs='*', type=str, help="first file to print or concatenate") args = parser.parse_args() print("Your parsed args: ", args) file_one_open = open(args.files[0], "r") #TODO: make this optional and make it so it can take an arbitrary am...
2ffe2411d678de85e8426653678857c839fbbe3a
0cd0906fe0ea1f6f0f274378a0915d1db88ca26c
/Lesson VII/annotations.py
2f7fdd8be995d8be6eadadc3af8c038fa2ced0ed
[]
no_license
fiskirton/Artezio-Academy
5991f2e5f4527b7d69f2d7ecc25ce95e82d07157
1bad2610225d6118c2359853f590ef561e60022c
refs/heads/master
2023-05-29T19:21:26.979289
2020-02-23T16:27:36
2020-02-23T16:27:36
235,590,882
0
0
null
2023-05-22T22:39:46
2020-01-22T14:28:24
Python
UTF-8
Python
false
false
1,036
py
annotations.py
""" This module contains decorator for checking annotations """ from functools import wraps def check_annotations(func): """ Checks annotations of func arguments. If func has no annotations or has partial annotations, will raise TypeError. If annotation do not match, will print warning message. ...
025e95374e21e35ffc15c36b0a444a74f2c56dd6
d47bfce3feb61b4eae6d479c647561683a52b7d0
/old/maps.py
c990175a0d23cbad965524a168802d4d22e3a029
[]
no_license
raggy/peteship
6465ab5dddedc48196c5bbf215e7160414e39e0b
74a9410b2667364c62ec019e711d5f39f1349826
refs/heads/master
2021-01-10T21:35:47.799164
2009-03-09T11:09:15
2009-03-09T11:09:15
32,121,590
0
0
null
null
null
null
UTF-8
Python
false
false
4,256
py
maps.py
import pygame, resources, random, misc, players, math try: import psyco psyco.full() except ImportError: pass class StartPoint(): def __init__(self, x, y): self.x, self.y = x, y #simple but makes code more readable. meh. def __call__(self): return (self.x, self.y) class Map(): ...
348ad4373f6f896d1f97c0979979f40ed1e8ea93
985267e31099fd72d7f6bcc52435e266bec41c2b
/mikaponics/foundation/models/crop_substrate.py
61aecaaac2728d9efb5eedecbb3c286b4514af5f
[ "BSD-3-Clause" ]
permissive
mikaponics/mikaponics-back
32d2e9a159876592b1c437bc3118165b12478995
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
refs/heads/master
2022-12-09T23:59:11.612473
2019-07-13T01:16:32
2019-07-13T01:16:32
175,534,652
4
1
BSD-3-Clause
2022-11-22T03:45:09
2019-03-14T02:35:19
Python
UTF-8
Python
false
false
2,595
py
crop_substrate.py
# -*- coding: utf-8 -*- import uuid from django.db import models from django.utils.translation import ugettext_lazy as _ from djmoney.models.fields import MoneyField class CropSubstrateManager(models.Manager): def delete_all(self): items = CropSubstrate.objects.all() for item in items.all(): ...
ed65b9a13ea282bc3ab8dfb54dd77ed459827404
98a868a3df5865e0da622232619f43b920884845
/grid_layout.py
55a37b28a16aa975d43914b9366248c809ebed2d
[]
no_license
Manpreet1398/Mr.Perfecto
fe11d5325e630aae291ab9e50b67ca43baa2ea87
6b06c67c54bdc28d87a686bca48037491d9d8cbb
refs/heads/master
2020-04-29T00:00:15.060062
2019-07-02T06:58:32
2019-07-02T06:58:32
175,677,723
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
grid_layout.py
from tkinter import * root=Tk() name=Label(root,text="Email") password=Label(root,text="Password") entry1=Entry(root) entry2=Entry(root) # by default column =0 and grid helps in putting label # on window and sticky takes values as North/South/West/East name.grid(row=0,column=0,sticky=E) password.grid(r...
81dec10686b521dc9400a209caabc1601efd2a88
cd38e017e2c65835028f2e0e25bf8992926469ac
/hal/hal.py
8164aa8c6327924d3bb37ffa6d6ad6c291f9f3f8
[ "MIT" ]
permissive
virtualanup/hal
46d30dc9a583d2554ffa393d07f453a07fb24c1c
c45757ee2d0661b6f1a5141fc67ebe94cf3ab673
refs/heads/master
2022-07-18T04:21:15.308629
2017-07-01T23:09:14
2017-07-01T23:09:14
77,967,326
3
0
MIT
2022-06-17T21:06:13
2017-01-04T01:12:21
Python
UTF-8
Python
false
false
3,618
py
hal.py
# -*- coding: utf-8 -*- import abc import datetime import importlib import inspect import os import re import six from .library import HalLibrary @six.add_metaclass(abc.ABCMeta) class Hal(): def __init__(self, configpath): self.configpath = configpath # Find libraries inside the lib directory ...
66edf0d2f7e25e166563bdb1063a1ed45ecda0e6
0b345451daf3ae12c9c6ffb9a2d138d55657268a
/gambler/MathQuiz.py
e6bf91faa9676db1cf8bb23cc3b35877feec296a
[]
no_license
bahadir60/udacity_intro_programming
d9bb2da798d27b2a8ed6f0356c500e71b4d5da69
81fa51bc50ab16eb996fec61cd831a95a295fbd2
refs/heads/master
2021-01-02T22:55:27.268003
2017-08-05T13:29:58
2017-08-05T13:29:58
99,423,785
0
1
null
null
null
null
UTF-8
Python
false
false
2,924
py
MathQuiz.py
Easy = [["4 + 12 = ?", 16], ["45 -34 = ?", 11], ["27 + 12 -18 = ?", 21], ['25 - 5 * 4 = ?', 5], ["18 + 45 / 5 - 3 * 2 = ?", 21], ["5! = ?", 120], ["3! + 2! = ?", 8], ["7 + 5! / 4! - 6 / 3 = ?", 10], ["(25 + 5) / 6 * 4 = ?", 20], ["4(3+c)...
7d099012584b84e9767bf0ce9d9df1596ca3bbab
b58ce9d0d99220bba4a0cdb49d515fbf1ae5744e
/webapplication/app.py
15e4d559ee26adc40d6f53c8b9aaf7b597d4d768
[]
no_license
paulttt/SARS-CoV-2
47d427db20b4b82afa80d2395e3864fa2c850692
d9d659bc9a1763ec4a8819191d327d643a494386
refs/heads/master
2023-05-15T04:23:14.556964
2020-04-03T17:23:58
2020-04-03T17:23:58
248,238,048
3
3
null
2023-05-01T21:22:42
2020-03-18T13:23:53
Jupyter Notebook
UTF-8
Python
false
false
2,969
py
app.py
# Set up path references and dependencies. import os, sys, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) sys.path.append(os.path.join(parentdir, "utils")) # Import important helper libraries. from fla...
169ad888e7629faff9509399ac7ead7a149a9602
89ef5c4024a921c107294e816e2c9a59b0e02694
/Ch9 - Classes/Run_9_8.py
e5ec314e2925b0b4513a5e8938e6d49808241095
[]
no_license
MelvinCC10/Python_Carsh_Course
cbe21d8a8142a5333b44e7eb8cf29954159888e8
10529d0a71c0ac7ef117b60ca03c2e6e16bb9649
refs/heads/master
2020-12-04T16:32:22.145351
2020-01-14T03:04:19
2020-01-14T03:04:19
231,837,075
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
Run_9_8.py
import TryItYourSelf_9_8 as userObj print('\n\n\n\n') admin1 = userObj.Admin('john','deer',30) admin1.describe_user() print('\n') admin1.set_user_name('Reven10') print('\n') admin1.describe_user() admin1.privileges.show_privileges()
eb246beb05249f5dfde019b773698ba3bb1b1118
e948247fdf66cf67f73e90e17b5dd78be78afb28
/mycoin.py
28c4618e7f586c0f7d7c8768539cd74499123059
[]
no_license
sirarpikasabyan/SQL
54ec79fe93630c5dcf9ad2af399c1414bc8435e9
3399057dfa6a6c4b2ad8f54b1c1662111894076a
refs/heads/master
2016-09-06T13:21:59.608922
2014-07-05T09:31:23
2014-07-05T09:31:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
mycoin.py
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: Nirvana # # Created: 07/06/2014 # Copyright: (c) Nirvana 2014 # Licence: <your licence> #------------------------------------------------------------------------------- import r...
bcc4276ea240247519cabbf5fc5646a9147ee3be
031e12eb607d58ff6d77e88a81701e999e84c2e1
/surrounder.py
bc181f1f322501b1af44ba25f35d2c5ce5e7f3fa
[]
no_license
Andreasrn/Surround
a63504426f11a609b9b571ded5f979f1533e1ebe
b64ebfdcdde0f847c0e9c189e07abd6cac335854
refs/heads/master
2020-03-10T08:15:28.172858
2018-10-10T12:03:16
2018-10-10T12:03:16
129,281,105
1
0
null
null
null
null
UTF-8
Python
false
false
645
py
surrounder.py
import sublime import sublime_plugin class PromptSurrounderCommand(sublime_plugin.WindowCommand): def run(self): self.window.show_input_panel("Surround by:", "", self.on_done, None, None) def on_done(self, tag): try: if self.window.active_view(): self.window.active_...
07783921da2fb4ae9452324f833b08b3f92ba294
b34cd59ed6944c5a73b031436408bdb48d7d27e3
/lib/commands/map.py
f01b84903f526a5df17fd428203aa428fe002b63
[]
no_license
juwilliams/pymy
7fc70739a3cf16744160d90cb8f05974cf0baafb
d04c52d9096d100a24deb6bc5dc8c28ef4f57ef6
refs/heads/master
2020-12-11T03:33:54.350791
2016-06-08T15:26:54
2016-06-08T15:26:54
58,769,319
1
0
null
null
null
null
UTF-8
Python
false
false
429
py
map.py
""" commands/map.py description: Generates a blank configuration file in the current directory """ from json import dumps from .base_command import BaseCommand class Map(BaseCommand): def run(self): from lib.models import Mapping from lib.models import Migration migration = Migration.load(self.options['MI...
2f8dff78f5bc5ed18df97e2574b47f0a7711d372
19b9a377d53d4b9f8b6606866aba86e1def6abce
/start/demo.py
58439adba9716d006901e39a83c0f98cf8ce43b3
[]
no_license
RockJohnson503/panicbuying
bf9148a7e28618ff8883888985c9ffd875dd9087
f9bbfd7a8a846c0b3c39a189948c7259f4e006d1
refs/heads/master
2020-06-03T19:10:29.753902
2020-04-10T04:46:05
2020-04-10T04:46:05
191,696,914
1
1
null
null
null
null
UTF-8
Python
false
false
1,142
py
demo.py
# encoding: utf-8 """ File: demo.py Author: Rock Johnson Description: 此文件为案例文件 """ import sys sys.path.append('../') try: from panicbuying.panic import Panic except: from panicbuying.panicbuying.panic import Panic def main(): ''' 公共参数: store: 商城或书店名称(小米|文泉), browser: 浏览器(目前只支持Chrome), versio...
03dd37346ed12bbd66cbebc46fadc37be319b986
c675ff5fcd3b13fa39352bb8cac11d75262659a8
/tests/test_observable/test_switchmapindexed.py
5d5b3d15ed497e654ba2454e7419ac02148b250b
[ "MIT" ]
permissive
ReactiveX/RxPY
469eb714996c205989e99899a6f1ab1ae2f42dd0
af1663d35810fdcd4c25a3ed2e8f0d71b55c341d
refs/heads/master
2023-08-14T19:27:40.086304
2023-01-08T10:02:08
2023-03-04T15:33:19
8,946,089
4,764
467
MIT
2023-09-05T02:53:16
2013-03-22T06:16:54
Python
UTF-8
Python
false
false
6,413
py
test_switchmapindexed.py
import unittest from reactivex import interval from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler from reactivex.testing.marbles import marbles_testing from reactivex.testing.subscription import Subscription on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_co...
e8a36bd7826c5d71cf8012ea82df6c127dd858fc
35d8385d3bd2ab282209fdac05d24a25a4ad4471
/vanilla_gan_mnist/gan/utils.py
f8533f042e97a66896ba15a781d89cc071563908
[]
no_license
bobylbohdan/GANs
71691c9d70773fb99997d27452036ad2814c78a8
2bbff9e971755d2a4ccbee3f33b8f5e9e291de0e
refs/heads/master
2020-04-14T16:45:42.011694
2019-01-03T11:01:17
2019-01-03T11:01:17
162,911,538
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
utils.py
from typing import Dict, Optional from collections import OrderedDict import torch import torch.nn as nn import torch.optim as optim import yaml def get_device() -> torch.device: if torch.cuda.is_available(): return torch.device("cuda") return torch.device("cpu") def load_yaml_config(config_path: s...
15b4a7fd2f27b2b5f0b29b3123739fb6658a60a9
4c041f8b7e31e124ed22847084f50215f5cf0859
/perceptron_and.py
3400feb4b95fe2e8a80104723256bc98614c3544
[]
no_license
dmarcus-wire/pythonProject
57725fbbc9a518f65d1e11807cac52e3c1da9612
b45b38a8f917bbb93175fe22e421cb20cedf38a1
refs/heads/master
2023-04-21T02:32:58.966693
2021-05-16T14:49:33
2021-05-16T14:49:33
367,908,842
0
0
null
null
null
null
UTF-8
Python
false
false
921
py
perceptron_and.py
# USAGE # python perceptron_and.py # this does our training # import the necessary packages from submodules.nn import Perceptron import numpy as np # construct the AND dataset # 4 possible bitwise outputs # 0 and 0 = 0 # 0 and 1 = 0 # 1 and 0 = 0 # 1 and 1 = 1 X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]]) y = np.ar...
96313d26ecd01cb724bdf1047a8c780fb07c57a8
0d0c13d80924b6e5cfc74a623eb250a5fd2e2cca
/Stacks/n intergers containing 1,2,3.py
1912eec098b2d9f4187ff45abb80158fde4df41a
[ "Apache-2.0" ]
permissive
Akashdeep-Patra/problemSolving
54e2fc3c3a9587b8c976921f6fc45364af1dfcac
c278e5d090af7370e56789e68b7bb73dc37165f8
refs/heads/master
2022-11-15T19:20:54.585886
2020-06-29T10:47:39
2020-06-29T10:47:39
258,956,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
n intergers containing 1,2,3.py
from collections import deque class Solution: # @param A : integer # @return a list of integers def solve(self, n): a=deque([[""]]) counter=0 ans=[] while(counter<n): x=a.popleft() for i in range(1,4): a.append(x+[str(i)]) ...
77e28c8e7ee1944a1e6432cf95824a9d4722f1fb
d96f43712a6824d8f8efd59bb0fa91dc2baccf23
/BeautifulSoapDemo.py
3fab3f92187c6511a54562ce74f1820351538afc
[]
no_license
Root9512/Practise
fd5023493d2b0c4f877865f47030874a41a09049
ce37738c2afafeded0f2ee693c0ce306f9bab23a
refs/heads/master
2020-03-25T20:00:58.593616
2018-08-13T03:12:40
2018-08-13T03:12:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
BeautifulSoapDemo.py
# coding:utf-8 from bs4 import BeautifulSoup import requests r = requests.get("http://www.cnblogs.com/yoyoketang/mvc/blog/sidecolumn.aspx?blogApp=yoyoketang") blog = r.content soup = BeautifulSoup(blog, "html.parser") tag_soup = soup.find(class_="catListTag") # print body.prettify() ul_soup = tag_soup.find_all("a"...
03ed97783a5bdb6cb9c37b63645e002c421896dc
4edce868635f29dcfbbff02e7fc7d857f19f9c23
/start16-open file_exercise.py
16c973fb47e080a110e4262c0f43b950fdafa17f
[]
no_license
chiao3bb33/Python
17371b4e742d7aff8ea4a7e46e08b31393d74d96
a9bce2ac82fd4ea653851e526d18ea4bb036f9ad
refs/heads/master
2020-09-29T00:57:38.952356
2019-12-10T14:41:28
2019-12-10T14:41:28
226,907,583
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
start16-open file_exercise.py
# 儲存檔案 """ file=open('data.txt',mode='w',encoding='utf-8') #開啟 file.write('測試中文\n好棒棒 \nHello File\nSecond Line') #操作 file.close #關閉 """ """ with open('data.txt',mode='w',encoding='utf-8')as file: file.write('測試中文\n好棒棒') """ # 讀取檔案 # 把檔案中的數字資料,一行一行的讀取出來並計算總合 """ with open('data.txt', mode='r', en...
e4983c6fa447276479b0d69b602265d167185961
a22d62c4d0796c5adcb413569fcbb1871dc9ecbf
/Code.py
cd226d69546ffbe098bf9e73c82db28ad3ca4f09
[]
no_license
AleSeima/Sistemi
1ee28206040f5c6855cbd56a054bc7bf1ecc5ef3
50a1a8ae3eb6f95326b2ad0a5554da3dcf0935e0
refs/heads/main
2023-05-06T20:36:39.382083
2021-06-03T14:57:04
2021-06-03T14:57:04
307,128,326
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
Code.py
def dequeque(): return queque.pop(0) def enqueque(queue, elemnt): queue.append(elemnt) def main(): coda = ["a", "b", "c", "d"] enqueque(coda, "z") print(coda) x = dequeque( ) #toglie il primo elemento della coda, quindi a print(x) print(coda) if __name__ == "__main__": main()
045e8dc60ee87126fe99d3189a207a3270d114de
17079988dedef6f830633a7a54b181355231fe3e
/player_rotation/draw_map.py
6b392228285cbe4a756b6b4f6913ecfaca4ef101
[]
no_license
sum008/python-backup
cdf6eaff60d882c36fe86b47ad311955d5869b02
729fbe2a5220941f9ba085c693c871592a529da8
refs/heads/master
2022-12-12T21:21:48.259680
2020-09-12T15:36:05
2020-09-12T15:36:05
285,461,845
0
0
null
null
null
null
UTF-8
Python
false
false
2,987
py
draw_map.py
import pygame as p import vector_ import particle import math p.init() green=(50, 168, 82) blue=(79, 179, 196) brown=(97, 81, 41) tile_color={1:green, 2:blue, 3:brown} tile_width=30 tile_height=30 map_=[[3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3], [3,1,1,1,1,1,1,1,1,1,...
1510c56f2cf6465bb35c22103ba9bff913887f71
03abd82ed813393fe1db6f7728e6c7207f74aaf5
/stats/urls.py
8c8bcf347ec13f646dee77372184d57963c7e608
[]
no_license
SecroLoL/statsgg
d98158d5dd9a3f5d75f706a1ae9de884ae02d054
3b1dba5f3c19b4dc4d6d8550f251e86ee4a82eab
refs/heads/main
2023-07-30T23:14:07.718744
2021-09-07T04:21:45
2021-09-07T04:21:45
399,688,383
2
1
null
null
null
null
UTF-8
Python
false
false
123
py
urls.py
from django.urls import path from .views import PlayerView urlpatterns = [ path('players', PlayerView.as_view()), ]
1162b463b2fc0b1db67dcaa87025f27c8de4c048
2ce66d7cc32e3f96903d4354bbdaf0b29aa3defd
/pra3_composite/Bicho.py
40754ef4a4bfb6cf427f8a5b98ecec062e0aa8e2
[]
no_license
yasinmunoz/design-patterns
de1be2765c2a167f201a14bc9f7ec0735681ec67
8ef16f255245b70f6cdcfc361fd1b04a69dbe9da
refs/heads/main
2023-04-26T00:37:37.769950
2021-06-08T08:19:32
2021-06-08T08:19:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
Bicho.py
class Bicho: #Construye el bicho def __init__ (self): #El modo es null por defecto self.modo = None self.localizacion = None #get y set de modo def get_modo (self): return self.modo def set_modo (self, modo): self.modo = modo #...
d1fa383bec8931da135381f5dd904943d11d89e4
6058bc5f604feade3e864685ee194146a217486a
/devel/lib/python2.7/dist-packages/rain_unity/msg/_Human_orion.py
83cc0432645597479f755d9e374ab341f0c84c8a
[]
no_license
30Siddharth/DingoBackup
79df86dbca9c81991da6843960ec70712912a146
f7befa6606ddebde3efd87764791226ceff90b60
refs/heads/main
2023-03-01T22:46:18.996675
2021-02-05T18:16:55
2021-02-05T18:16:55
336,352,597
0
1
null
null
null
null
UTF-8
Python
false
false
30,359
py
_Human_orion.py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from rain_unity/Human_orion.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import rain_unity.msg import std_msgs.msg class Human_orion(genpy.Mes...
60957b2012af791268ca1499b473f8b853ef3464
5a25c3311d374b6d1e783316340dddaeacea0df2
/dfs_permutation.py
aa16d8d7b27ab1f38f41996b9c5932716ae78a62
[]
no_license
oustella/coding-exercises
3444691f56eb0ccdefa3947082ded7de967acf46
2cc17784be2cd3755dd19a8764f1447b86f0a6c0
refs/heads/master
2022-06-05T17:21:07.474422
2022-05-06T18:10:43
2022-05-06T18:10:43
216,883,492
0
4
null
null
null
null
UTF-8
Python
false
false
609
py
dfs_permutation.py
# dfs with state # backtracking # this may be a more readable approach to some def permutation(s): def dfs(path, visited, res): if len(path) == len(s): res.append(path[:]) return for i, element in enumerate(s): if visited[i] == True: continue ...
43e41a920baac1c50ad236d2a8cf85740ff14f61
a23adb6443a222e2b31880ae53cc46318d08816f
/python/taichi/main.py
640ea3ec8ce5f1ff0151479e068ae1d27e7e0a2e
[ "MIT" ]
permissive
jgfuchs/taichi
d917340faa2bdd4dfc3591355ade4f99813c4ca7
f1d640d3a531a353c5b6edc5fc06cf75f2a2c806
refs/heads/master
2021-08-29T11:12:32.105016
2017-12-13T20:48:19
2017-12-13T20:48:19
114,166,536
0
0
null
2017-12-13T20:38:44
2017-12-13T20:38:44
null
UTF-8
Python
false
false
1,158
py
main.py
from taichi import Task import sys def main(): lines = [] print() lines.append(u'{:^43}'.format(u' '.join([u'\u262f'] * 8))) lines.append(u' ******************************************') lines.append(u' ** Taichi - A Computer Graphics Library **') lines.append(u' ******************************************'...
3abdbcf9139337e5be41c4a17a56b1dfccffec1c
ab8187626aa68c1f92301db78e9f8b0c4b088554
/CodingTest/2021naver/ad/2.py
2b0299457f8bfe0e3cbb21586776ebdce7ca460b
[]
no_license
khj68/algorithm
2818f87671019f9f2305ec761fd226e737f12025
efebe142b9b52e966e0436be3b87fb32b4f7ea32
refs/heads/master
2023-04-25T02:33:13.403943
2021-05-04T03:09:38
2021-05-04T03:09:38
287,733,041
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
2.py
def solution(nums): def solve(isOne): cnt = 0 for num in nums: if isOne and num != isOne: cnt += 1 if not isOne and num != 0: cnt += 1 isOne = 0 if isOne else 1 return cnt return min(solve(1), solve(0)) print(solution([1,0,1,0,1,1])) print(solution([...
6089e374d07f4f3855901dd2a129fd7c2bcb1c1a
2ea521dcb481ccde8888616ba352de01f492641a
/leap.py
53486e71234a71960bf9d29d1eceb1596fdbaf9a
[]
no_license
Saurabh9520/python-programs
b2b25f632418eacb6613cfff503c86520172ed86
29358508f68f5d422dd5da33cb3d0556091c5bab
refs/heads/master
2021-07-21T02:25:50.993565
2020-08-26T08:31:28
2020-08-26T08:31:28
207,867,824
0
0
null
2020-06-17T07:22:10
2019-09-11T17:23:40
Python
UTF-8
Python
false
false
1,062
py
leap.py
year=int(input()) if((year%400 == 0)) or ((year%4 == 0) and (year%100 != 0)): print(year) else: print("not",year) #gcd x=int(input("enter the no")) y=int(input("enter the no")) if x > y: smaller = y else: smaller = x for i in range(1,smaller+1): if((x % i == 0) and (y % i == 0)): ...
d49f84ca69bb08d7ad81603c654a0657aa5735f0
5acc7308c5a5458013816db1adf114c4261d40bf
/2.Working with strings.py
6730933a0a353594e1cce3705925c5f697ff2a08
[]
no_license
Yoginder-code/Python-practice
de5e8ff9b9eaa820c732f8b43622a1c95c1f3c40
2a08581692dc8a6f2a3f356de5d1365c2e275614
refs/heads/main
2023-06-12T15:13:13.812559
2021-07-08T04:31:29
2021-07-08T04:31:29
384,000,816
1
0
null
null
null
null
UTF-8
Python
false
false
451
py
2.Working with strings.py
#strings are basially just plain text print("Yoginder \n syal") #\n or \! used to enter to another line #making the variable name = "Yoginder syal" print(name) #concatenation ie. adding variables and string print(name + " is amazing person. ") #using functions print(name.lower()) #lower case prin...
f587ab8930417c6b2c1a92501d336010ea95df80
140cd0a59abe6bc4fff4e740c4b336ce1c1ea6c5
/small_crm/app.py
f4b0713358bb5473c4838c84a72fd60d54578ef8
[ "MIT" ]
permissive
cyy0523xc/small-crm
a9e00c7d29283f6e7a582c1d33e01bac605e5005
d301be6fedfe95c51224e675f308f92e03c8652e
refs/heads/master
2020-04-06T18:38:13.606105
2018-11-17T11:58:06
2018-11-17T11:58:06
157,706,201
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
app.py
# -*- coding: utf-8 -*- # # # Author: alex # Created Time: 2018年11月15日 星期四 21时09分26秒 from flask import Flask from .settings import DBConfig app = Flask(__name__) app.config['JSON_AS_ASCII'] = False app.config['SQLALCHEMY_DATABASE_URI'] = DBConfig.URI app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True # 上传文件大小限制: 25M ...
0f828d71a58bdf51a326dd523b08e24dc615e67f
c99101cb0495ac9a1c9f263998c40a4ffd72154c
/lib/Qphase_matrix_element.py
1a2b60e711834d1a25ad5aca24fd15f95a35781f
[]
no_license
ckallidonis/Q-PHaSe
ca1f4e0dacdddc87f0ab2ed35a6302e4980baf69
877e1dfc79edfa80b76a10515563f3739e7c62bc
refs/heads/master
2020-06-10T15:01:43.959577
2019-12-19T18:52:04
2019-12-19T18:52:04
75,947,038
0
0
null
null
null
null
UTF-8
Python
false
false
3,142
py
Qphase_matrix_element.py
# # lib/Qphase_matrix_element.py # # Set of functions for extracting # matrix elements from three-point functions # # Copyright (C) Christos Kallidonis, 2016 # This file is part of Q-PHaSe package #---------------------------------------- import sys import numpy as np sys.path.insert(len(sys.path), '../include/') fro...
420c8277279191bb351f40754c442369c0c7dddd
57260d02fa456d3387c886907448c01996de74cd
/calc_mean.py
4a01e992b005536d80ab8675a1b10e2ac2bcf7e5
[]
no_license
jramacha/python
55880ab3e52c20b8179442639dc59b6d466f3634
a938e86b799bfa4a7fcf06cdb627733c4fbd97ce
refs/heads/master
2021-01-01T15:48:16.252604
2018-03-21T19:15:28
2018-03-21T19:15:28
97,705,949
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
calc_mean.py
#!/usr/local/bin/python3.6 class allfiles: def __init__(self): self._files = [] def pop_fl(self): if not self.isempty(): return self._files.pop() else: print ('No more files') def push_fl(self, name): self._files.append(name) def isempty(self): return len(self._files) == 0 class median: ...
24d42270be5cc377bc235694fc46cb6d49d34406
09cc53ebea64b1c73763ee3ddc561996c61ba531
/sur/migrations/0002_auto_20141208_2321.py
033d96f3c951a44b2eb958e209fb74a54bd54538
[]
no_license
phasety/sur
a06e5c629f5b4e79f117fe722d70f11a4a2f7a0d
0e4ceba33cde686f91e28de92eadeb1a1d5b7b34
refs/heads/develop
2021-01-21T14:40:16.370011
2016-05-22T16:35:32
2016-05-22T16:35:32
59,416,879
4
1
null
2016-07-25T22:50:38
2016-05-22T14:34:50
Python
UTF-8
Python
false
false
1,393
py
0002_auto_20141208_2321.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('sur', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='eosflash', name='beta', ...
923afa0a33f0c3b77cab456a68b07fe63eab2c37
3d07dca49cc0e47b14c24cd2a64dd5f3d62afce5
/py/word2vec_play.py
abdfc57c965f344efed55bd00543baf741f49c9c
[ "MIT" ]
permissive
memo/ofxMSAWord2Vec
1fe7819befa1719e9f4d804be0ecd6eb85d34cc8
8717424ec5a69c3d73e6f1cf9f7b6a2dae045b7e
refs/heads/master
2020-04-10T14:13:55.173782
2019-01-14T08:58:08
2019-01-14T08:58:08
61,167,566
46
7
null
null
null
null
UTF-8
Python
false
false
3,246
py
word2vec_play.py
# coding: utf-8 """ @author: memo """ import os from word2vec_utils import * # handy vars to link directly to the different models to compare data_path = './data' # root of data path relative to python working folder vec_path = os.path.join(data_path, 'vec') # location of pretrained vector models gorig_path = os....
501c7d93aef1303e902bab2ace324deb55448b9f
9d6a03b1540dbbf7fa6879b5aff867ac10932640
/jupyterhub_files/jupyterhub_config.py
09e22b930e8d99555b3a265e6b20b6c743582614
[ "BSD-3-Clause" ]
permissive
harvard/cloudJHub
eeee6e0c7a1f5c954da1f4ff318dccb3b11e646f
67168f264331f6e9cfc877797b607248b8d69018
refs/heads/master
2022-05-07T10:25:16.105073
2020-01-06T15:14:05
2020-01-06T15:14:05
76,972,592
134
22
BSD-3-Clause
2022-03-29T21:54:04
2016-12-20T16:25:19
Python
UTF-8
Python
false
false
3,837
py
jupyterhub_config.py
import os import sys import socket import binascii # Inserts location of local code into jupyterhub at runtime. sys.path.insert(1, '/etc/jupyterhub') # Configuration file for Jupyter Hub c = get_config() c.JupyterHub.cookie_secret_file = '/etc/jupyterhub/cookie_secret' c.JupyterHub.db_url = '/etc/jupyterhub/jupyte...
070ef8919d9d8856cf4baa3a9ec8bf19a05d0a17
ee56bdefdf3b34d598c200b20c6245c31a589afb
/HandTrackingModule.py
f38ccfc7f2b9de83d1f851b84283c08cc71e1590
[]
no_license
Vamsi75/HandTracking
e8061ddda3152a90b48c02613b7ad82dc976e537
9cdf6897d5b5b26cb32ca790af032e8f5553d243
refs/heads/main
2023-09-03T17:18:49.737110
2021-10-24T04:06:08
2021-10-24T04:06:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,027
py
HandTrackingModule.py
import cv2 import mediapipe as mp import time class HandDetector(): def __init__(self,mode=False, maxHands=2, detconf=0.5, trackconf=0.5): self.mode = mode self.maxHands = maxHands self.detconf = detconf self.trackconf = trackconf self.mpHands = mp.solutions.hands ...
7cfe42767bffda49e891825460325e253fbb0139
d1a92889b07206ad165f5db782c20ffcc956d052
/tests/settings.py
bfdcd6b7255b63cf87c2170057ed34c6b8dfcaf3
[ "BSD-2-Clause" ]
permissive
VanilleBid/weekly-saleor
2c724b68c79176056c9fc16fd18f8ff0b05776cf
e776e86ee7ce710929ef33878d936e2a8367a217
refs/heads/master
2021-09-14T12:13:33.941498
2018-03-20T02:35:23
2018-03-20T02:35:23
121,043,922
0
2
null
2018-05-12T14:32:45
2018-02-10T18:50:03
Python
UTF-8
Python
false
false
787
py
settings.py
# pylint: disable=W0401, W0614 from saleor.settings import * # noqa import dj_database_url SECRET_KEY = 'NOTREALLY' DEFAULT_CURRENCY = 'USD' LANGUAGE_CODE = 'en-us' if 'sqlite' in DATABASES['default']['ENGINE']: # noqa DATABASES['default']['TEST'] = { # noqa 'SERIALIZE': False, 'NAME': ':memo...
c0c867a88ccf8fa65da2306ad76d8537afd03e30
0e4f76fc3f9aae8b00a67806dffcfc6360e310d1
/classes/ifcresource.py
b8be73406c493afec34cff445489b9e4f538e9ec
[]
no_license
HassanEmam/PyoIFC
e11f3b330d3e758aaae47ee9e70b2ae5b5847432
c2ec4e017ce366b07686491dbe22827aec2711c0
refs/heads/master
2020-07-31T14:27:53.305768
2019-09-24T15:41:28
2019-09-24T15:41:28
210,630,850
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
ifcresource.py
class IFCRESOURCE(IFCOBJECT): def __init__(self):
47dfa20ff02a90cd343d38207f3836d9f60195bb
574392983a5fa424e4002baea5d8d523c62ee0ca
/setup.py
c5718121fd9458fc8e7bba6cbe4af9df6a655b2a
[ "MIT" ]
permissive
knyar/urconf
e593a1e2a761f7ae064e78602f6bc8db5a27e7fc
6a132d0596e5bbfb80733964e77233b620053afe
refs/heads/master
2023-06-28T03:49:50.250697
2023-06-17T14:33:01
2023-06-17T14:33:01
49,820,101
8
2
null
2023-06-17T14:33:02
2016-01-17T14:16:35
Python
UTF-8
Python
false
false
464
py
setup.py
from setuptools import setup, find_packages setup( name="urconf", version="2021.1", url="http://github.com/knyar/urconf", license="MIT", author="Anton Tolchanov", description="Declarative configuration library for Uptime Robot", long_description=open("README.rst", "r").read(), packages=...
3a1c590883da0fd96deae0c6795c11436e8067f9
52a5a6a7f7ff2f9d8ee29284843150fe223fdb9f
/deal_analyzer/utils.py
9a6ebefe3df3562afded6f71086edea4291e5cf9
[ "MIT" ]
permissive
bclark86/deal-analyzer
89198e735b5174a9b47917ea9d8b276fc955b4d1
e899badaf80c7867c14a0c0983fab547aedde331
refs/heads/main
2023-03-29T22:12:04.144677
2021-04-13T03:26:46
2021-04-13T03:26:46
352,205,901
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
utils.py
import yaml def parse_yaml(file): """ :param file: :return: """ with open(file, "r") as stream: try: config = yaml.safe_load(stream) return config except yaml.YAMLError as exc: print(exc)
e93c44d2f84d1eafba4928b80d0a1a7ebb7b033c
135f7ff73cd34f8701e42f5136cc3b465f53a1d2
/api/users/user.py
d5c8c55536b648b74132f929f7b7c9e2522e6710
[ "Apache-2.0" ]
permissive
ugfly1210/fund
1105a6cd98144f2b7a58afaab938ca4775109411
93c1ef21651d0b4e61f68639372322eb4ea50b46
refs/heads/master
2023-01-01T15:44:17.912913
2020-10-19T08:10:59
2020-10-19T08:10:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
user.py
#!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = Lyon from api.status import Code, Message from base.auth import login_required from docs import RequestHandler, define_api, Param from apps.users.user import FundUser class UserRegister(RequestHandler): @define_api('/fund/user/register', [ Para...
4799d7dea77bec38bc9fe100766f1233e351e4cb
5715f4cef4344d2a6dccacfb84737b618326ef15
/udp_client.py
c39859a34206ac2c1b84c13675fdeec83d211eef
[]
no_license
jijihhhhhh/TCP-UDP
8753f829628abcd575b62c8cdbb560987dec67df
f45d656c9faa3991632e3b955c1bff457b8867a1
refs/heads/master
2021-06-19T21:49:52.707352
2017-08-03T07:43:21
2017-08-03T07:43:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
udp_client.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import socket, threading, time s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for data in [b'Ji', b'Xu', b'Sa']: # 发送数据 s.sendto(data, ('127.0.0.1', 9999)) # 接收数据 print(s.recv(1024).decode('utf-8')) s.close()
a395416e4924faa4857b4e71925d6f3d5a3eb29e
795541679f88c80ef932b4a8670d1baf1e6bcfad
/排程檔案/run.py
3808db3c0e282320a1fcb05e4a5d6117c0b50210
[]
no_license
jell0720/20190420-PythonCrawler
a8307d540fa5a0c205fb42be122d14df8db2e36d
8059543a49a15a8deb1db8a19f4af45b60e0e62f
refs/heads/master
2022-04-15T20:45:18.933116
2020-04-10T07:15:07
2020-04-10T07:15:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
run.py
import time, os s = time.strftime("%Y%m%d%H%M%S", time.localtime()) desktoppath = os.path.join(os.path.expanduser("~"), 'Desktop') filepath = os.path.join(desktoppath, s+".text") with open(filepath, "w+") as f: f.write("Hello crontab!!!!")
fd019565ec8723807121c1b3f50bfef1361a9a10
8c434ecc40a0a3c9cc92a7f15b77ae1b5d7ffb43
/code/new_Analyst_Report_Chinese/step4_sentiment_analysis/train_predict_function.py
9f69bf9c272c9bfd2b9e98c6fad884f7958df9d6
[]
no_license
yutiansut/4EBaseMetal
1033aa19114a53d4c871c6296760aa4d66ce4b77
c7a5d74dd1ab954043595c3f9bce99b5ac163779
refs/heads/master
2023-03-08T10:54:48.496620
2020-11-11T08:37:54
2020-11-11T08:37:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,482
py
train_predict_function.py
# -*- coding: utf-8 -*- """ Created on Wed Dec 18 21:29:23 2019 @author: Kwoks """ import sys import datetime import pandas as pd import sqlalchemy as sq import model_function as mf from configparser import ConfigParser sys.path.append('../other_function/') import other_function #this function will help to locate t...
59418e6c295e8a90818c7672bb1766c36b1e757d
dd7c22891de26e4c90c3ba7e71c0dd2b65e83740
/nestjson.py
1aaefc8ae23df9a1ddba380b50953fed34c7a4f8
[]
no_license
Leogaogithub/pythonUtils
572dbdf45bfa18d5b2ad258ab045918a32dc56ce
464877f9b2a50434587fe0abfdf4b5218368047c
refs/heads/master
2021-07-03T03:20:10.812998
2019-03-31T22:55:18
2019-03-31T22:55:18
146,221,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
nestjson.py
import json class Class1: def __init__(self): self.a = 'this' self.b = 33 #def reprJSON(self): #return dict(a=self.a, b=self.b) class Class2: def __init__(self): self.x = 'hello' self.y = Class1() self.z = 'world' #def reprJSON(self): #return...
33cbb5e4f66e8314f2f81e09134376bec27626fa
30e76fef68fc2e2818acaf2123a8b81fa9b430e0
/Claire/main.py
07da811e710fc71101aa71eb896000f1a1b0691f
[]
no_license
Clarissa-Bot/clarissa_apps_sample
af5b2f1bd1728386bfa4a839d2221c1422510e91
c37bea5fb7bb56b59963ca9e9cf3565c09ed868a
refs/heads/master
2021-04-26T22:46:03.249249
2018-03-06T22:36:33
2018-03-06T22:36:33
124,144,426
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
main.py
import sys import os import appinfo from App import App app = App(os.path.dirname(os.path.realpath(__file__))) def main(args=sys.argv): print(app.get_name()) main()
1382e76a8710500a2793618cbbdaa849ec778647
afdb796a37d9a3872fe2fcc2940f62c3f275a977
/seeding/seed.py
d5b5323988dcbee57a2da6cce797ae30155aaf8e
[]
no_license
datastax-demos/Ticker
76c115dba1362c39272820866f7c73dc9afbcde6
67ff24398a45bb3797f19f3499c01c1825dcf132
refs/heads/master
2021-05-04T11:16:55.946203
2016-08-20T20:23:31
2016-08-20T20:23:31
48,772,476
0
2
null
null
null
null
UTF-8
Python
false
false
8,849
py
seed.py
#!/usr/bin/env python import csv import itertools import time import random import uuid from cassandra.cluster import Cluster from cassandra.query import ordered_dict_factory ip_addresses = '127.0.0.1' ip_addresses = ip_addresses.split(',') cluster = Cluster(ip_addresses) session = cluster.connect() session.row_fact...
6eb4025a92d2acf7ea7f9f19636459f11ed547f7
e9685ccea3211895e4cc1eb639f4c87d1d787a7a
/app/soc/modules/gci/models/task.py
015bd80df9d2833e96e8e29f04c8956b369903a3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pombredanne/Melange-1
e153ac586aac21181ac3bec968af8e797dfcfcd9
9bd45c168f8ddb5c0e6c04eacdcaeafd61908be7
refs/heads/master
2020-12-25T22:07:51.725032
2013-04-29T23:38:40
2013-04-29T23:38:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,127
py
task.py
#!/usr/bin/env python2.5 # # Copyright 2009 the Melange authors. # # 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...
0788915181abf6ddb0717eb8998de8e81ef0f2f5
e87d793b3a5facc6e54e0263fbd67703e1fbb382
/duckietown-world-venv/lib/python3.6/site-packages/duckietown_serialization_ds1/builtin_dt.py
cbe741c9ecabac577ea47e0195b825d59af72cf1
[]
no_license
llingg/behaviour-benchmarking
a860bbe709309e13f3e1133d916944882199a40f
85bbf1a9c2c628ba74480fe7abac3804d6afdac4
refs/heads/v1
2022-10-06T08:21:29.068329
2020-06-11T07:02:46
2020-06-11T07:02:46
259,622,704
0
0
null
2020-06-02T17:52:46
2020-04-28T11:52:08
C++
UTF-8
Python
false
false
1,442
py
builtin_dt.py
# coding=utf-8 import base64 import base58 import six from .serialization1 import Serializable __all__ = [ 'GenericData', ] class GenericData(Serializable): prefer_base58 = False def __init__(self, bytes_contents, content_type): if six.PY3: assert isinstance(bytes_contents, bytes), ...
49b98856095fb0ba030a2e620c0965d26ffe6644
1b9c6ef09bd5062ed79103ee527d55f3c87fd4ce
/results/anaResults.py
07e1a99ebb5fecb2ffd407519a541a2bce12ff61
[]
no_license
gavalian/language-benchmarks
c9fc949138837ce95b9831451ebd6005ad1edba7
68177399cbdca5ca53f0f54fb23efaf7245cc214
refs/heads/master
2023-01-07T00:35:13.732679
2020-11-09T18:16:20
2020-11-09T18:16:20
290,274,242
1
0
null
null
null
null
UTF-8
Python
false
false
449
py
anaResults.py
import numpy as np import matplotlib.pyplot as plt xaxis = ["C++","C++O2","Java","JShell","Groovy"] #data2 = [42.8, 10.22, 11.29, 27.0] data2 = [5, 4.68, 6.50, 8.42, 9.5] data1 = [37.8, 5.54, 4.78, 5.33, 17.5] #plt.ylim(0.0, 50) plt.figure(figsize=(9,4)) plt.xlabel("Languages") plt.ylabel("Execution Time (seconds)") p...
1ca7dd34b5293805aa8d67a6fcc711bb8037200a
3aa425db91e64c45a730e632181658f5490a0b54
/GameObjects.py
89d0be1354a0cee3fac50159ff4303d45d95e653
[]
no_license
aapman55/ArrowMaster
0a9df10f94b2acc6a9874ace4d18196c0524c612
a81fd0729e703cfefb17015b8c569ebeac01da8e
refs/heads/master
2021-11-10T11:22:43.551596
2016-05-31T09:10:43
2016-05-31T09:10:43
60,074,324
0
0
null
null
null
null
UTF-8
Python
false
false
5,287
py
GameObjects.py
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * from numpy import * from AapUtils import * class GameObject: def __init__(self,locX, locY, locZ): self.locX = locX self.locY = locY self.locZ = locZ class Player(GameObject,object): def __init__(sel...
dddf34cff4d0d410e386f174d47f643e763e3560
d8b9a65de2f68cad4d1fbe14290157cea3083ed0
/dataset/__init__.py
08c9d87b241d5877cb040934464808ddf56302f6
[ "MIT" ]
permissive
geonsangyoo/DeepLearning
c4a434ef8ceb210d91987331e628699e6222d9a3
ae4b3fe2b671bf425ab111a9093a2a2aaf056e21
refs/heads/master
2020-09-28T01:53:32.426510
2019-12-30T08:08:01
2019-12-30T08:08:01
226,661,025
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
__init__.py
import sys # print('----') # print(sys.path[0]) # print(__file__) # print(__package__) # print(__name__) # import dataset.mnist
8b7f71b79607ad4d34799734f226c48d57ec4d64
fe910871cb8c0f37b2482c5de28c1d460de16a6b
/code/pipeline/download_archive.py
b79a2856edd34e7cafc7f3e1b859e0c905ece520
[]
no_license
jnhunsberger/requex
08e43fe2909b2dcbe5d39569061db959182865e6
184518942c175d82e06e42de3bae72665b62fc2e
refs/heads/master
2020-07-30T11:08:59.828671
2019-09-22T20:17:53
2019-09-22T20:17:53
150,914,098
0
0
null
null
null
null
UTF-8
Python
false
false
13,528
py
download_archive.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- '''download.py - Downloads RequeX data sources from the Requex GCP archives to ../data/local/downloads/ ''' # Libraries import os import shlex import re import subprocess import argparse import json import pandas as pd # for its handy date range functions import date...
ab76226bfc2a5bfcee8ff8a9d8b024e628554b75
faa84a83a3d347ac8b17cab2fa0599c65652a85d
/uliweb/utils/date.py
e3e0ac92e3d5b560c85f7ed788170acfc312c55f
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
limodou/uliweb
4d829568cb6bab4a807fb80adb84b6aa1d0e76ab
8bc827fa6bf7bf58aa8136b6c920fe2650c52422
refs/heads/master
2023-08-22T09:10:34.609797
2021-07-04T01:20:33
2021-07-04T01:20:33
283,042
230
65
BSD-2-Clause
2019-07-29T11:17:01
2009-08-20T13:50:46
Python
UTF-8
Python
false
false
8,543
py
date.py
import time, re from datetime import tzinfo, timedelta, datetime, date, time as time_ from sorteddict import SortedDict __timezone__ = None __local_timezone__ = None __timezones__ = SortedDict() class DateError(Exception):pass class TimeFormatError(Exception):pass DEFAULT_DATETIME_INPUT_FORMATS = ( '%Y-%m-%d %H:...
8cf354c89218d516ba0e032d051bff7ee874d621
afb7006e47e70c1deb2ddb205f06eaf67de3df72
/third_party/libwebrtc/build/android/PRESUBMIT.py
d095f42a2b870944d9d855451cd6ccdd77ce508e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
marco-c/gecko-dev-wordified
a66383f85db33911b6312dd094c36f88c55d2e2c
3509ec45ecc9e536d04a3f6a43a82ec09c08dff6
refs/heads/master
2023-08-10T16:37:56.660204
2023-08-01T00:39:54
2023-08-01T00:39:54
211,297,590
1
0
null
null
null
null
UTF-8
Python
false
false
5,683
py
PRESUBMIT.py
# Copyright ( c ) 2013 The Chromium Authors . All rights reserved . # Use of this source code is governed by a BSD - style license that can be # found in the LICENSE file . " " " Presubmit script for android buildbot . See http : / / dev . chromium . org / developers / how - tos / depottools / presubmit - scripts for d...
0d728255d379ed0671227088a700fab08c8806d4
026bd5955f45c0ab49556ff93d75b5df388c27ce
/bin/join.py
079eabaa59da12661e682f51ab574acfbef18306
[]
no_license
adgaudio/Bin
44a3d335afd700351a4548d3b1737d24de08ef85
7f448fc4b9d993d0a189193adea18e273b445d3e
refs/heads/master
2021-01-01T19:07:33.602031
2015-08-07T00:37:56
2015-08-07T00:37:56
2,091,542
0
0
null
null
null
null
UTF-8
Python
false
false
1,656
py
join.py
import csv from os.path import basename from collections import defaultdict def maybe(f): def tryer(*args, **kwargs): try: f(*args, **kwargs) except Exception, e: print "%s:%s" % (e.__class__.__name__, e) print "args: %s %s" % (args, kwargs) print '...
aa39242118a120f5bdf6e7ce7fb55df86db9fe22
50fbb276dbe31d9dd7b3df82ee453ede3c1726e7
/HP3/dat_basic_assembly.py
7fe38062222a9aa046417e425f5f835c609c7245
[]
no_license
elizabethgallmeister/cs-cm-122
2d727b494ad55b3bc4c24d4fcfcb4f5117d99440
b7c1d264e8125f7657f4f678ebef4772799f51d7
refs/heads/master
2023-02-19T18:30:37.735331
2021-01-21T06:24:04
2021-01-21T06:24:04
331,534,712
0
0
null
null
null
null
UTF-8
Python
false
false
5,227
py
dat_basic_assembly.py
#python3 basic_assembly.py -r spectrum_A_1/reads_spectrum_A_1_chr_1.txt -o spectrum_A_1_output.txt -t spectrum_A_1_chr_1 #python3 basic_assembly.py -r practice_A_2/reads_practice_A_2_chr_1.txt -o practice_A_2_output.txt -t practice_A_2_chr_1 #python3 basic_assembly.py -r reads_hw3all_A_3_chr_1.txt -o hw3all_A_3_chr...
e64106b050bc7550080b9fea1170c1a03f868a1b
ad1c8fa7571172fe76c249219184aa9c171e1cc1
/generate_car_write_geojson.py
0e009a9b3341c7f4cc8fa064355ac60fd2053780
[]
no_license
fusion-research/Map_Mapping_SZ
2e7716c43374496858e4c509a19dd990a0b57330
25c07c4e80c9eab0eabab3dba52f9f21fcf5b0dc
refs/heads/master
2021-09-18T06:49:31.752721
2018-07-11T06:04:01
2018-07-11T06:04:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,039
py
generate_car_write_geojson.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- __author__ = 'yzhu7, Julie the big circle' import csv import os import datetime from gen_traffic_layer.proc_gps import proc from gen_traffic_layer.road_matching import parse_csv_gps from gen_traffic_layer.cal_speed_with_geojson import calculate_speed_with_geojson from g...
d566917e4b93b03abd774d8a8ed22678cf7ee17c
f22ef51aa60bc4ca06df569b9060002cbc5646ec
/SemanticVersion2.py
c1d09d34496689b7b25dba0cc3d0be098a459838
[]
no_license
TakeruNishimi/Kadai-D
886096ad038bbddb3a0ec393c243a1439ab42c12
84d33fa9ee1f626d5eb0c998417d56707ff5ff8d
refs/heads/master
2020-08-01T12:56:36.288019
2019-09-25T08:09:33
2019-09-25T08:09:33
211,004,087
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
SemanticVersion2.py
class SemanticVersion: def __init__(self, major, minor, patch): self.major = major self.minor = minor self.patch = patch def __str__(self): self.version = f'{self.major}.{self.minor}.{self.patch}' return self.version def main(): py370 = SemanticVersion(3, 7, 0) ...
6722810993d017fefebbc8f675e9067e5ca7679c
5d1e9e2eb45962732f7a3e57f3b321e59f1c8e78
/interview/TREE/Heap.py
e3112abfaf2156f47e777bfa6cc541109e04b2c1
[]
no_license
nguyenngochuy91/programming
b4824d6b900f382263cf6c8ab59e0afe9682cac9
875d4702b435133dcd7a7c9d93d3edfe64963a60
refs/heads/master
2020-05-20T07:26:53.985023
2019-10-08T17:24:46
2019-10-08T17:24:46
185,427,624
0
0
null
null
null
null
UTF-8
Python
false
false
1,620
py
Heap.py
# -*- coding: utf-8 -*- """ Created on Mon Oct 7 20:21:41 2019 @author: Huy Nguyen """ import random class Heap: def __init__(self,arr): self.arr =arr self.size = len(arr) def heapify(self,index): # print (index) if index*2+1<self.size: left = index*2+1 ...
4c9b7906b920dfe53fbb9d81420caea736b35e65
00529b938e53092b03207e7fabd6c0ebf4cfceea
/test_items.py
dd4b3153af33f47c7aaf296443a3d6f3deda8796
[]
no_license
Ken760/conftest_stepik
e02b427c71c4757623b9ef388992dfaefdf6981d
cb8430f44847bcf0bd14a9d74380431776158ef9
refs/heads/main
2023-01-16T02:37:38.421912
2020-11-30T10:32:44
2020-11-30T10:32:44
317,188,930
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
test_items.py
import time link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/" def test_should_see_add_to_busket_button(browser): browser.get(link) # time.sleep(30) button = browser.find_element_by_css_selector("#add_to_basket_form") assert button, f"There is no button {button}"
3c837845f49e1ba52078628043755cac7592b72f
06b7db571fb1b7307c7acc8f546f789286cc0be4
/cogs/Tracker.py
17466c2e570f61cf0d801c2aa67d311980737068
[ "MIT" ]
permissive
Andr3as07/cassandra
c0d722de72c8ace4b15faa497640505679844277
448dc0b44ba407086d7e08f84f5717b11e66af32
refs/heads/master
2023-04-18T21:31:49.537233
2021-05-05T12:17:59
2021-05-05T12:17:59
289,685,766
0
0
null
2020-09-17T14:33:47
2020-08-23T12:54:23
Python
UTF-8
Python
false
false
4,649
py
Tracker.py
import discord from discord.ext import commands, tasks from lib import libcassandra as cassandra from lib.logging import Logger UPDATE_TIMEOUT = 3600 class Tracker(commands.Cog): def __init__(self, client): self.client = client self._logger = Logger(self) def get_nicknames(self, u): ...
fa03911df17575e3454b6fcd970c8c37bc309c3c
79a5518e541e3fd4626d11b6786fc44d5ff7d00a
/discretize/utils/__init__.py
5f4da7b9c34e2e68ae27aeea4dc0cb78116d36ff
[ "MIT" ]
permissive
simpeg/discretize
5608dff11247d9fb15884fa3bf3d95455d84364c
794c2d6677e3a8ee20d67d5e68fb04c8c56c72de
refs/heads/main
2023-07-24T00:11:04.063552
2023-07-18T23:34:20
2023-07-18T23:34:20
74,694,616
152
35
MIT
2023-09-11T20:38:02
2016-11-24T17:52:16
Python
UTF-8
Python
false
false
3,560
py
__init__.py
""" ======================================================== Utility Classes and Functions (:mod:`discretize.utils`) ======================================================== .. currentmodule:: discretize.utils The ``utils`` package contains utilities for helping with common operations involving discrete meshes Utilit...
04825f5dd3c999cd09ca0c99c9d9c7563c92ac85
e7af5a3e76e674be0a85628067fa494348d45123
/Python-for-Finance-Second-Edition-master/Chapter11/c11_05_VaR_left_1percentTail.py
55e8f75a7b07addbed057a0b12ac78e1ed134fe3
[ "MIT" ]
permissive
SeyedShobeiri/Work
8321ead6f11de8297fa18d70a450602f700f26fb
f758e758106fbd53236a7fadae42e4ec6a4e8244
refs/heads/master
2022-07-25T02:33:25.852521
2020-05-17T16:11:27
2020-05-17T16:11:27
264,706,380
0
1
null
null
null
null
UTF-8
Python
false
false
907
py
c11_05_VaR_left_1percentTail.py
""" Name : c11_05_VaR_left_1percentTail.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 6/6/2017 email : yany@canisius.edu paulyxy@hotmail.com """ import scipy as sp from matplotlib import pyplot as plt z=-2.325 # user...
a5c3afc9a3a1c69767813d6d06e9fb98c8ff2171
f585d66ed2adb2a9cd0fd4d05dc8c75696f96885
/env/lib/python3.4/site-packages/rlextra/utils/zipapp_33o.py
2e73a94ac823e7a98abc7754c393a196901112dd
[]
no_license
AndyKovv/hostel
ed99034de6aa8b87f1a429ab4125205f67ac8722
34ed91b8b5c07fa3c9ef9c3bab7b53dcd0a0c14d
refs/heads/master
2021-01-13T00:52:32.823355
2016-05-09T11:42:23
2016-05-09T11:42:23
53,940,195
0
0
null
null
null
null
UTF-8
Python
false
false
26,826
py
zipapp_33o.py
__code__='Gb"07CMXt^RMZlE<@j<PiqoijM@s-hR\\\\G2^SXNd*k"U^CIY&.,.f;/7jo0(P@RP`@V1ooG*@"5;0u[>g$fLoCh)q<^0*"+]<E+FlsUC1[UJq7ggP&lcZdA0[XlC9]8&K:mF_^3Hk3FJmh$-LR?^`q;jt\\,ceTe5&K)/ucS*$,<t`N&mI9]Vq!iDS+WMZViV/:5[tN3WS?/Zb`-P$=Vo<sc4_M]Z7Qn5;oeuK5($f"KDASR];=+q\\*MV7:eiQ;X-e<@5g*P=^6o?XKo:jqjf"4AY8$)H@C9Lb.("GLQhC#?%@_H,J#...