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
298b9c092516199fc579f96433f59e35c2eaccca
9f9d950866197427d6f7efba851755cb9c5749c0
/app.py
892bb9be65742f1f95d4616f06d3562c0c2cedeb
[]
no_license
huahuawong/Movie-Recommender-System
967dc4b90b94e3d812f05d00f20e35f9b4da5115
9e74d3030b5b7ab1a29ad80ab6f9c56163fdf729
refs/heads/master
2023-04-02T00:50:31.420055
2021-04-05T02:59:41
2021-04-05T02:59:41
274,008,516
4
1
null
null
null
null
UTF-8
Python
false
false
5,039
py
app.py
import flask import difflib import pandas as pd from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity import os import matplotlib.pyplot as plt import pandas as pd from wordcloud import WordCloud, STOPWORDS import seaborn as sns from sklearn.feature...
5f69b3cab2b20bfa7d61404875db807715e52d88
e88f217e06e69a2738bf52f3f825d3490d07f3f9
/TNSAgent/tns/temperature_forecast_model.py
06a57c44265aae9cc9772e19a8421dd1a57cf6e4
[ "BSD-3-Clause" ]
permissive
VOLTTRON/volttron-GS
dff675be4b1cfe0346a8971fb8c305f45bfeac64
c7d3766bffddcd651e11297e1c46fc95eb308494
refs/heads/main
2022-01-18T23:25:51.650389
2022-01-14T00:17:21
2022-01-14T00:17:21
159,219,417
4
13
BSD-3-Clause
2021-04-15T23:56:53
2018-11-26T19:09:42
Python
UTF-8
Python
false
false
10,908
py
temperature_forecast_model.py
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2017, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
efe606252fb5a4b5e0d460fa5476f1e72eb6e5fa
de79facbdba336b9eba48d2bf39f71f95736c238
/PHY_423/bisection2.py
a27631483c1e9e238897b46adf7136232332f84c
[]
no_license
Vineeth-97/iiser
a2228a36406d07ad4f3f37ff0777e05ab65ebde6
2fa61305812500152f9ec0cae5550b8d0a1627b8
refs/heads/master
2021-05-08T19:38:01.704192
2020-03-03T18:01:34
2020-03-03T18:01:34
119,575,583
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
bisection2.py
#!/usr/bin/env python3 """ Program to find root of a function using bisection method """ import sys import math def is_equal(a,b): return abs(b-a) < sys.float_info.epsilon def bisection(f,a,b,TOL=0.001,MAX_ITER=100): """ f is the cost function, [a,b] is the initial bracket, TOL is tolerance, MAX_ITER is maximum ...
28c89a0092d89b9826d21e58fa55b407fe19ca6f
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Tools/RunTimeTester/testsuite/run/testsuitetest.py
75046478bb97c4f6273bd2c7df23501d86efea32
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
1,483
py
testsuitetest.py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from summaryFile import RTTSummaryFile from stats import TestStatistics class Test: def __init__(self, tester): self.tester = tester self.summaryFile = RTTSummaryFile(tester.xmlConverter.RTTSummary) self.stats ...
cbfaf1ec834f1222fc531aaa09ab2192c7a95938
8613ec7f381a6683ae24b54fb2fb2ac24556ad0b
/160~169/ABC165/d.py
09a52d455cec0ad5b4e91440f18c3e06f1ae6c54
[]
no_license
Forest-Y/AtCoder
787aa3c7dc4d999a71661465349428ba60eb2f16
f97209da3743026920fb4a89fc0e4d42b3d5e277
refs/heads/master
2023-08-25T13:31:46.062197
2021-10-29T12:54:24
2021-10-29T12:54:24
301,642,072
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
d.py
a, b, n = map(int, input().split()) print(a * min(b - 1, n) // b)
18b6147ffdc17ac99157a93151e352a414743505
55fac9f54067b5b33ade681ba70e07b1d07cf82b
/grid_score_base_project/multi_agent_dispatching/MAGPPO/buffers.py
2e6efd72b1aefa72ab5d3239a034d8a96da69e41
[]
no_license
eecqupt/mobile_crowd_sensing
4593f085eedd11baca5fdfe8210ac445a31a9314
606a4820b4597949967de4363a13657b58c2ef12
refs/heads/main
2023-08-14T23:01:01.801401
2021-09-30T14:01:58
2021-09-30T14:01:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,441
py
buffers.py
import numpy as np import torch from torch_geometric.data import Data class RolloutBuffer(): """ Rollout buffer used in on-policy algorithms like A2C/PPO. It corresponds to ``buffer_size`` transitions collected using the current policy. This experience will be discarded after the policy update. ...
9033f2051de33fc365046003261c52a4d2a934f4
54bc6c1d7572149f01e32a1281ae3139b4264830
/_ExtMaker/includes/glad_related.py
1c9b752033db2219002c4bf0c238d58cf92b53c7
[ "MIT" ]
permissive
Alderrden/Glaze
9e19315112d028be838bbf8964feb145f21e468c
7b1a013739002786ca161214afdb551dfcbd1e40
refs/heads/master
2021-09-05T07:21:39.532530
2018-01-25T06:02:40
2018-01-25T06:02:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
glad_related.py
GLADstrings = {'GL': """ def {version}_loadGL(): cdef bint res with nogil: res = <bint>({prefix}.gladLoad{api}()) return res """} GLAD_RELATED_PXD = """ cdef struct gladGLversionStruct: int major int minor ctypedef void* (* GLADloadproc)(const char *name) cdef gladG...
8a142d3f6647728ca113a3ca9e82fd82154d2285
dce09129e1f784de54a92447cd1f1d27d8c1fd93
/behaviors/keeper.py
4599be4da07cb72157a771417b8c974b70408042
[ "BSD-2-Clause" ]
permissive
AbheekG/nao
37d1c931cfe283ce8b7c80e65285100ea7e9b212
560f5f672298b8dc18df8f766966d69f19188b61
refs/heads/master
2020-03-28T00:46:47.262697
2018-11-29T22:30:38
2018-11-29T22:30:38
147,448,970
0
1
null
null
null
null
UTF-8
Python
false
false
3,259
py
keeper.py
"""hw4 behavior.""" from __future__ import print_function from __future__ import division from __future__ import absolute_import import memory import mem_objects import core import commands import cfgstiff from task import Task from state_machine import Node, S, C, T, LoopingStateMachine import UTdebug # Added in as...
9c1aa087c06820c7a10d6054a92c230ade74b27a
dcceddfe33ff76eb7854952d3cc8c0e3f554e04f
/Eyetracking/eyetracking/eyetracking.py
3a8c91ae120e509f79638dfe9bdf9fa9f28609e1
[]
no_license
bdludwig/MMI-19-20
25d86c76be4d0fa4718cf48838fc00dcf8a4d95b
988c7958a6581b7a7c1d674e47ea7704ab899a7c
refs/heads/master
2020-08-23T01:37:17.446363
2020-02-13T11:00:49
2020-02-13T11:00:49
216,516,662
2
1
null
2019-11-28T11:08:32
2019-10-21T08:30:22
Python
UTF-8
Python
false
false
2,749
py
eyetracking.py
import json import subprocess import threading import ast import pylsl from GazeDetection import GazeDetection import time def startSingelCam(name, device, callback): print('start:' + name + ' ' + device) proc = subprocess.Popen('/Users/mmi/Desktop/Eyetracking/OpenFace/build/bin/FeatureExtraction ' + device, ...
aa362c5dc70695ba1c194a6128cc6162e737f928
8667647ef8df7f8dc4adba16532a1559d6ee8116
/canvas/cursor_moving.py
701201345e8941ab1f9102d153459b5f24caabe8
[]
no_license
muchlist/reportlab
c469259d4af12e856bc283d2b83b6d73eaf79faf
aae7c7872297b55687a76815b9dfd36d712fec01
refs/heads/master
2021-03-11T13:49:42.671522
2020-03-17T08:13:02
2020-03-17T08:13:02
246,533,908
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
cursor_moving.py
from reportlab.lib.pagesizes import letter from reportlab.pdfgen import canvas def textobject_cursor(): canvas_obj = canvas.Canvas("textobj_cursor.pdf", pagesize=letter) # Create text object textobject = canvas_obj.beginText() # set text location textobject.setTextOrigin(10, 730) for indent...
c9d627e2ec0c7d88bad5405730ef9d80b0b5b43b
194876dfba87097a3c080acd412fcc74d790fb31
/pretrain.py
b0e2a22026f7fec2a0f99709c34f19a64e404654
[]
no_license
Y-P-Zhang/3D-GANs-pytorch
060c7f4168027a6ba544770db62a521a82213f74
f6c040888f5f4d71651a441d5a78cab8e591dab4
refs/heads/master
2022-04-22T15:26:16.036008
2020-04-24T02:30:21
2020-04-24T02:30:21
258,384,604
7
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
pretrain.py
import sys import torch import torch.optim as optim import torch.nn as nn from torch.nn.functional import interpolate from models.build_model import build_netG from data.customdataset import CustomDataset from models.losses import gdloss from options import Options """Pre-Training Generator""" opt = Options().parse...
92db651240293333de017bb0bc3397d59415fe39
b47ccc59e79d0191625f5a75930f2e4416e9fa7d
/爬虫例子/weixin/weixin/spiders/run.py
30e4540e65892b15630addc586dd28a429da2ef9
[]
no_license
zhanghan0511/scrapy_python
aac130cc677b2dd3af7f4f9639619b541d633775
f07368f41e19bdd70da7b83b0fb61f29e4f44b33
refs/heads/master
2021-01-21T09:43:23.800529
2017-05-18T08:02:19
2017-05-18T08:02:19
91,666,578
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
run.py
from scrapy import cmdline cmdline.execute("scrapy crawl weixin".split())
1657d041db8567d93b386f416f3f0d985193958a
4fa04896481ae39eeebcc718c70f79a4bf79bc91
/backend/app.py
cf961f2b9b0fc0fdc0fddfda9f8d4247a7a79b8e
[]
no_license
Selliott456/project-5
92cf41f75438b82b76df2f377fe6b716833b5684
c5de3acc028c2a11b627b9ceb089169884559f0e
refs/heads/master
2023-02-01T20:07:09.839481
2020-12-14T20:06:32
2020-12-14T20:06:32
320,908,156
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
app.py
from flask import Flask from environment.config import db_URI from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow from flask_bcrypt import Bcrypt app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = db_URI app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app)...
57835e0eb9861defbb6456ba123ec235631065ab
ebfe3f49204a0b296381c866beedc83900fc1c88
/cdp_backend/tests/utils/test_file_utils.py
d7bcad775f7a9bc133ae256486f9c314813662be
[ "MIT" ]
permissive
rkiddy/cdp-backend
54e0d56959bb5c9d28ba9a84c28275ba662018e7
0af72da86673cbe91aed97813c330d360abdbaa0
refs/heads/main
2023-06-03T20:46:15.382334
2021-06-15T02:56:26
2021-06-15T02:56:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,638
py
test_file_utils.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import annotations from pathlib import Path from typing import BinaryIO, Generator, List, Optional from unittest import mock import pytest from py._path.local import LocalPath from cdp_backend.utils import file_utils from cdp_backend.utils.file_utils imp...
8993d4bdb556b61f06691dc3c80cb2f7eee58c87
c6430536a712368834ce7947c898e7a7799afa73
/TheKnottyChat/tkc_server_gui.py
fa347bcad71a8fdf0a09b1266340b5ec958dacf3
[]
no_license
kevinsashimi/Final-Year-Project
5883d6945abd4460a0a19384c35ab2771e7c7d77
3ddbd17b6bd0a375b26f63a53d687a8179b20278
refs/heads/main
2023-05-03T15:51:02.538261
2021-05-23T19:21:50
2021-05-23T19:21:50
325,194,906
1
0
null
null
null
null
UTF-8
Python
false
false
26,683
py
tkc_server_gui.py
import threading import socket import netifaces import os import time import tkc_database as db from aes_ecb import ElectronicCodeBookAES from aes_cbc import CipherBlockChainingAES from random import randint, seed from prettytable import PrettyTable HEADER_LENGTH = 32 FORMAT = "utf-8" """ An empty string in SERVER_I...
d0102ccc34969549b7b0f2130dc447432103474d
df68e2f5a86c6647393b01641400e5a4b679e9f3
/inventory/admin.py
3fc04113edd40d0ca0c080ffce1e3a862bb8ef00
[]
no_license
Sri-V/grow-app-project
f66346ab14d98d3712c260fc82669238b1e31150
283a7912c858dbd8aa7d68941a706e9dc39b7120
refs/heads/master
2020-08-20T18:49:22.285857
2019-10-18T13:45:20
2019-10-18T13:45:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
admin.py
from django.contrib import admin from inventory.models import Variety, SanitationRecord, WeekdayRequirement, InventoryAction, KillReason, CropGroup from orders.models import TrayType, MicrogreenSize, Order, Product, LiveCropProduct, HarvestedCropProduct admin.site.register(Variety) admin.site.register(SanitationRecord...
73d989971cc63b47693e4fff38e870aedc8f2e70
dcc7dd6c65cb13d3619689b2c794b450e503b100
/src/poetry/plugins/__init__.py
bf62b4e31900ad5bffcef40724c7b3d1eec8232f
[ "MIT" ]
permissive
python-poetry/poetry
6b83f8db6a15b132fd252b68ed3bbee51b4e64f0
02448cf7f184dea204156f7dcb620a4f01a0068e
refs/heads/master
2023-09-04T12:23:02.700442
2023-09-02T10:46:06
2023-09-02T10:46:06
123,303,402
20,127
2,081
MIT
2023-09-12T09:41:09
2018-02-28T15:23:47
Python
UTF-8
Python
false
false
185
py
__init__.py
from __future__ import annotations from poetry.plugins.application_plugin import ApplicationPlugin from poetry.plugins.plugin import Plugin __all__ = ["ApplicationPlugin", "Plugin"]
6086740db284e6beb3a4490cfacae715090c52d1
86451d98a8a8d203a9d0f89f5ed859e62b4eab4c
/site/ebtest/settings_prod.py
9adbc054d0bc8a418537029ea3d2af24e4ab81de
[]
no_license
radzhome/django-elastic-beanstalk-demo
ca6952bbd7e53f3257241a05232e1a662f9ae419
91e1544026e6f566b06d9a829981d4519cb549c0
refs/heads/master
2020-12-07T05:25:31.173580
2015-01-03T19:45:54
2015-01-03T19:45:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,694
py
settings_prod.py
# Django AWS Elastic Beanstalk Site Specific Project file # All non site specific settings should go into the settings.py file # For local dev, use settings_local.py. When doing a deploy to beanstalk, set the DJANGO_SETTINGS_MODULE to this file: (settings_beanstalk) # This file relies on your settings as defined in y...
c4ee874bd4dadcd7fb9e8e4b8d9290d4686ebbd5
ae9642af90a7489b19af17b7d62ce2096b1c2b09
/assignment3/rabbit-producer/pq/__init__.py
4143b961eed5080739badfc5e7ef65df33724965
[]
no_license
rimrakhimov/total-virt-docker-k8b-lab
32709166e71a8f184a329e2f89c1e7f59e0a208e
4ebd06d5973f012571be37a6fca36e24bd2528e9
refs/heads/master
2022-04-18T15:14:17.260094
2020-04-12T18:05:39
2020-04-12T18:05:39
254,857,875
0
0
null
2020-04-12T18:06:10
2020-04-11T11:58:02
Python
UTF-8
Python
false
false
38
py
__init__.py
from .rmq_producer import RMQProducer
adf959455dff580f027517b4197bfa6735ecc3fa
b9abd4974a7c9df3c597736333032f9152f6468a
/library/migrations/0005_remove_student_name.py
01639a68d19b2b404ce81bd2a93c3d67e9b164d9
[]
no_license
adarshpakala/Library-Management-System
7b0e740344dc9395ea68b9d17d31a084f151db2d
e0183da0b8eb12053a424c4b0729fe1a36c16934
refs/heads/main
2023-07-18T18:02:55.439043
2021-09-25T15:10:00
2021-09-25T15:10:00
410,302,511
1
0
null
null
null
null
UTF-8
Python
false
false
328
py
0005_remove_student_name.py
# Generated by Django 2.2.2 on 2019-11-22 06:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('library', '0004_student_expiry_date'), ] operations = [ migrations.RemoveField( model_name='student', name='name', )...
d84c623389df3e438b32054e1681d4014a325410
416ff0af6156841535a76e9aa788907d9dcbb85a
/flask-server/server.py
3a156d2caf089181232ff4c330b527991760875b
[]
no_license
ZackJorquera/Vido
c69ade4cc206b0e7f992e440352b80cecdb97bf5
ef387729c35dcf93c685320eee7488b0aceccd17
refs/heads/master
2023-07-19T18:05:38.984165
2021-03-23T22:32:01
2021-03-23T22:32:01
242,391,588
6
0
null
2023-07-11T02:31:20
2020-02-22T18:31:34
JavaScript
UTF-8
Python
false
false
3,486
py
server.py
# The server written in flask # I'm going to start and get something like this working: # https://blog.learningdollars.com/2019/11/29/how-to-serve-a-reactapp-with-a-flask-server/ # and the post get stuff import os import asyncio import time from video_stuff import * from runner import run_vidoizer ...
167d78571961e222d272afa3d942ee375a1ea66d
9332963bf327280597f36f335142d5d6407cfad9
/drqa/retriever/elastic_doc_ranker.py
41d1bddd7bc07558aff0ffb7781df46978511129
[ "BSD-3-Clause" ]
permissive
hoangvuduyanh33/QA
4929f9c1f0c3db2220604e088f12b5ac13a0d9be
aacef26bfb17beabe8bfaa907a9560a37e00e7fa
refs/heads/main
2023-05-30T19:26:40.849210
2021-06-11T07:48:16
2021-06-11T07:48:16
362,140,183
1
1
NOASSERTION
2021-05-27T14:33:47
2021-04-27T14:24:11
Python
UTF-8
Python
false
false
4,346
py
elastic_doc_ranker.py
#!/usr/bin/env python3 # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """Rank documents with an ElasticSearch index""" import logging import scipy.sparse as sp from multiprocessin...
751e7ce81253b578d9daba12bac60893aa964a6d
63e5654930b7d15ad8f8f9d236bd9e0d0810c5dc
/help/Fit2d-3.py
bc82237cfeeb0a22461b4688d6c75e81e911b97a
[]
no_license
maxburian/SAXS_py3
7f92a1f340900bc9ef175346fa893f22ba84973f
d421ef549b29435706a629618dcaf93cea235db4
refs/heads/master
2021-12-26T12:42:19.238345
2021-12-13T13:04:34
2021-12-13T13:04:34
180,623,325
2
1
null
null
null
null
UTF-8
Python
false
false
241
py
Fit2d-3.py
import SAXS arg=["../doc/data/fit2d","../doc/data/saxsdog"] o={} o=SAXS.AttrDict(o) o.yax='linear' o.xax='linear' o['compare']=False o.log=False o.title="From the middle" o.legend=True o.plotfile="" o.skip=350 o.clip=480 SAXS.makeplot(o,arg)
9c5872e5877314413778e0044f10a32942bb81dd
74c81c1a9a8ff0ca5e2daef04da36c71d344f010
/cp1/meta.py
1015c88dd82671610a7e753e0715bb67feab0a2f
[]
no_license
hkon123/modviscp1
c39f3d83e63535fcfdddfa906deccbe8445365bf
93c0834affbcaba9ec3bbe4643028a1291d97ee7
refs/heads/master
2020-04-21T18:32:52.428074
2019-02-08T17:37:05
2019-02-08T17:37:05
169,773,769
0
0
null
null
null
null
UTF-8
Python
false
false
1,865
py
meta.py
import numpy as np import matplotlib.pyplot as plt temperatures = np.array(()) mag = np.array(()) sus = np.array(()) en = np.array(()) hc = np.array(()) hce = np.array(()) f = open('result.txt', 'r') for i in f: if i[0]==' ': continue elif i[0]=='t': count = 0 num = '' for...
d115774a7fb31bd50d5f57a65a4b1d959a7892e3
a48af61e00af9f60795490ef35bcadf8ddadaeba
/math/linear_algebra/coding_the_matrix-klein/ch_1/tasks.py
4f58a228afd1c258fc625c79f921c8b66f1fa02d
[]
no_license
HatlessFox/self-study
3fcc8a559d5dad389ef1617fda5f86e70a8fe9f6
0246781ecccf946e697e0b077d9c80d287cd33b9
refs/heads/master
2022-03-23T14:48:24.679273
2019-11-17T16:26:58
2019-11-17T16:26:58
44,395,118
1
0
null
null
null
null
UTF-8
Python
false
false
2,189
py
tasks.py
### NB: task numeration is burded with def/quiz ect. numeration in the book from plotting import plot ## 1.4.1 s = {2+2j, 3+2j, 1.75+1j, 2+1j, 2.25+1j, 2.75+1j, 3+1j, 3.25+1j} #plot(s, 4) ## 1.4.3 #plot({1+2j + z for z in s}, 4) ## 1.4.7 #plot({.5 * z for z in s}, 4) ## 1.4.8 #plot({ .5j * z for z in s},...
0f344fa31a1d9849bb789bf1e72bafa1bbde084a
96dc1680b212c6862d96cc785d94875f98376162
/po_hermite_decomp.py
4deedd3dfe273b8dc2b3f868559914fc795c6d17
[]
no_license
tnakaicode/PlotDemo
ab9e944db78ecc75c364f4855db8ccf4f6659312
93665312717c584ca111533a7e1fe533f485aa3c
refs/heads/master
2022-05-25T10:50:39.125551
2022-05-18T14:22:44
2022-05-18T14:22:44
216,541,665
1
1
null
null
null
null
UTF-8
Python
false
false
2,422
py
po_hermite_decomp.py
""" po_hermite_modes.py: calculates Gauss-Schell modes see e.g. https://commons.wikimedia.org/wiki/File:Hermite-gaussian.png """ import numpy as np import matplotlib.pyplot as plt import sys import os import time import argparse from mpl_toolkits.axes_grid1 import make_axes_locatable from scipy.special import hermit...
97a20eb2e5ca58777dcf2bb439831982e3350437
c9e6bfe8ab50826ce0cf03c510297f09b8bb1d2a
/helper-programs/api-to-sthlp.py
20a700257514fd7a94c379795596ef9277dca684
[ "MIT" ]
permissive
UrbanInstitute/education-data-package-stata
bf51fe39bec2471c5e39c077978eca0e0afedacf
af63949ea10dcdc1be8411c138cd23c182aceee2
refs/heads/master
2022-10-07T09:09:43.103293
2022-09-26T13:46:09
2022-09-26T13:46:09
123,978,988
16
5
MIT
2022-09-25T12:00:39
2018-03-05T21:07:59
Stata
UTF-8
Python
false
false
3,124
py
api-to-sthlp.py
import requests import json import re from operator import itemgetter # Python program to convert API endpoint to Stata help document url = 'https://educationdata-stg.urban.org/api/v1/api-endpoints/' res = requests.get(url).text data = json.loads(res) keep_str = [] # Temporarily hide endpoints hide = ["college-univer...
7658e37a7c8bde1bc5cd85f7e05d74a00e40cf19
46e2808d0ba920b967671d372933d05dbf6bd26f
/numbersfromaccounts.py
6c014abf8504e518b24c647a96f11bbc920232c1
[]
no_license
Anouksha/TwitterFeed
0a1e145be939aad2281d362a3f21e9203fbe825c
16242caff9b6bf5964172d6a27c7df4e18a37427
refs/heads/master
2021-01-01T16:25:55.784294
2014-07-21T09:28:53
2014-07-21T09:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
numbersfromaccounts.py
__author__ = 'anouksha' import pymongo import sys db = pymongo.MongoClient().Twitter users = db.numbers.distinct("screen_name") for u in users: try: numbers = db.numbers.find({"screen_name":u}).distinct("number") print u+"\tNumbers: "+str(len(numbers)) except: print sys.exc_info()
e3152bb092f3b2abd264897d302f5b52722b2036
9efca95a55cb4df52d895d42f1ec10331516a734
/c7n/resources/storagegw.py
ef081845595c0bfd2707731c1b7a132c2d2a65d1
[ "Apache-2.0" ]
permissive
cloud-custodian/cloud-custodian
519e602abe00c642786441b64cc40857ef5bc9de
27563cf4571040f923124e1acb2463f11e372225
refs/heads/main
2023-09-04T10:54:55.963703
2023-09-01T17:40:17
2023-09-01T17:40:17
52,837,350
3,327
1,096
Apache-2.0
2023-09-14T14:03:30
2016-03-01T01:11:20
Python
UTF-8
Python
false
false
577
py
storagegw.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from c7n.manager import resources from c7n.query import QueryResourceManager, TypeInfo from c7n.tags import universal_augment @resources.register('storage-gateway') class StorageGateway(QueryResourceManager): class resource_type(TypeI...
19a8adb9769668cc5b3cca5a1c3fddc2ed96c891
1118c55ad2c5d1f6e1875fe5c2e5d365769937bf
/Melpakkam_Pradeep_CH20B064/SS_Week_1_Q1.py
6436f1a367d522b113c8921c9ea0f0530ce560ac
[]
no_license
sarank21/SummerSchool-Assignment
89338ae16b1317b231ea58f5789576c58be732b4
87926156ccf5083281242f5030fce147d95bf500
refs/heads/main
2023-06-15T23:49:44.519136
2021-07-13T12:57:11
2021-07-13T12:57:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
SS_Week_1_Q1.py
import numpy as np import math as math n = 100 y = np.random.randint(0,2,size = n) y_hat = np.random.rand(100,) temp = 0 for i in range(n): temp += (y[i] * math.log(y_hat[i], 2)) + ((1 - y[i]) * math.log((1 - y_hat[i]), 2)) O = (0 - temp)/n print(O)
f3f2aabcaaa1fcad75368bd7b17487880817863f
ba200341c9d4a6bc86b0d48432669884cf46b0de
/code/ndcg_python.py
bd87f1dd1a5700f3621cdbb3415261f50c222350
[]
no_license
ashu11168/cs224w
7f052675a5dbb600b782fe68660eedca81b98ebc
0b32bb4231b6017352720317e41349ea2e35d779
refs/heads/master
2021-01-18T14:48:53.167300
2013-12-10T22:52:34
2013-12-10T22:52:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,044
py
ndcg_python.py
### Net cumulative discount gain for SO python graph ### ncdg_python.py import sys import snap import csv import math import random def LoadGraph(pFilename): ### Initialization vGraph = snap.TNEANet.New() vQuestionTags = {} ### Load graph data with open(pFilename,'r') as f: vReader = ...
10687245da58b3760d9e439c221ec0f9210522b4
692e80831b669248db90a05f91d94cea48985348
/frames.py
697c94764ad774da1a61e0831c89649ffa18ab47
[]
no_license
migaweb/py_selenium
b00b02093d239b87c8128492e896f39c4e3522e8
95db7d8a711da21dee0d7eb3602f01a24a7b33aa
refs/heads/master
2023-03-13T13:20:37.692131
2021-03-31T13:41:52
2021-03-31T13:41:52
296,885,000
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
frames.py
from selenium import webdriver browser = webdriver.Chrome() browser.get('http://techstepacademy.com/iframe-training') iframe = browser.find_element_by_css_selector('iframe') browser.switch_to_frame(iframe) element = browser.find_element_by_css_selector( 'div#block-ec928cee802cf918d26c div p') print(element.text...
5d6576000c26e8039464824bb5d60b7471eda995
5d82435b0835bf351536b58489b50921d73f3622
/Flow_NN.py
23c50710bef3d8cd761a9714ebb57c44c569c752
[]
no_license
vishwesh-vishwesh/Tensorflow-practice-problems
442b1c8d4ec3d3dd37303f18e259d63f78ebdbe6
011669f59ba3ccaf4daa167d5f203593fad2c438
refs/heads/main
2023-04-13T06:41:25.713342
2021-04-28T15:05:16
2021-04-28T15:05:16
362,511,150
0
0
null
null
null
null
UTF-8
Python
false
false
3,329
py
Flow_NN.py
# -*- coding: utf-8 -*- """ Created on Tue Nov 24 17:39:02 2020 @author: VISHWESH """ import tensorflow as tf from tensorflow import keras import datetime # Helper libraries import numpy as np import matplotlib.pyplot as plt tf.keras.backend.clear_session() import shutil shutil.rmtree('log_dir', ig...
72eb96fafa3d73a220506e84ce560121cdcea2f4
f70e1d263aa926fb3f2462b32962ec199b2e74d5
/app/components/header.py
c30e6a8df17d9d0e64474a02ad2963f895e3c840
[ "MIT" ]
permissive
shantanugoel/dash-example
980602eaa71c5f5ac3499908c5f9bdf87675b7ac
905fde1781b1e93296375b69276c1ad432757936
refs/heads/master
2020-05-17T10:55:05.887324
2019-04-27T21:18:01
2019-04-27T21:18:01
183,670,821
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
header.py
import dash_bootstrap_components as dbc import dash_html_components as html def make_header(): return dbc.Nav( html.A( "Dashboard", href="/", className="navbar-brand col-sm-3 col-md-2 mr-0" ), className="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow" )
a5e86e817cf95818084684aea892c2e51ac4159e
2398860e270609fab10c032b61c62d4d68926d30
/tests/test_config_migrator.py
dcfe1799daed4f0f2466f1a8b083a47d8ee9eaa0
[ "BSD-3-Clause" ]
permissive
ron-huberfeld/lms
7133fbb98a932331fb4e5fc7099e0c7bdc238aa7
a0737d2c68c2cd52e55e73c9d6d31c3aa6d11012
refs/heads/master
2023-08-25T03:36:00.865575
2021-10-25T17:50:19
2021-10-25T17:50:19
297,610,825
0
0
BSD-3-Clause
2020-09-22T10:12:37
2020-09-22T10:12:36
null
UTF-8
Python
false
false
851
py
test_config_migrator.py
import os import pathlib import shutil from lms.utils import config_migrator from tests import conftest CONFIG_EXAMPLE_FILE = pathlib.Path(conftest.SAMPLES_DIR) / 'config.py.example' CONFIG_COPY_FILE = pathlib.Path(conftest.SAMPLES_DIR) / 'config_copy.py' CONFIG_FILE = pathlib.Path(conftest.SAMPLES_DIR) / 'config.py...
e9166ced5b690d70d7b5cecd03f5b38d89e2259b
93ef980afbeae670d6a423317106ed28517eacb7
/main.py
74a9913a0839e90b67e06811929b00927e7782fa
[]
no_license
saurabhkharde/Flask-Login-System
a589591b7267e71005b1a9cf787eba580932f72a
fddf7c7750f478b28e9432ee7af906a694ff14e7
refs/heads/main
2023-01-22T10:34:22.351948
2020-12-07T06:51:30
2020-12-07T06:51:30
319,043,654
0
0
null
null
null
null
UTF-8
Python
false
false
3,952
py
main.py
#!/usr/bin/python3 # latin-1 from flask import Flask, render_template, request, redirect, url_for, session import pymysql import re conn = pymysql.connect(host="localhost", user="root", passwd="", db="login") cursor = conn.cursor() app = Flask(__name__) app.secret_key = "123456789" #@app.route('/') #def index(): # ...
b99b923ca27b645f9215f937b759153799875c83
35eb5131bbc7b956da55a28b30f03f07bc74eedd
/appcrawler/appcrawler.py
0b59fc9b7cac2c1774bb416d6bf8581adfd3fc36
[]
no_license
viola8888/HogwartsSDET15
3b59c85879a45c227b14a83c07f956d10bc2697f
e5307fba1206a13104904562e1ac4704c48d54a7
refs/heads/master
2023-03-27T16:44:10.532131
2021-03-14T14:59:29
2021-03-14T14:59:29
305,028,012
1
0
null
null
null
null
UTF-8
Python
false
false
570
py
appcrawler.py
class Appium: def page_source(self): pass def find(self): pass def action(self): pass def start(self): pass class Crawler: def find_selected_list(self): pass def sort(self): pass if __name__ == '__main__': appium = Appium() crawler = ...
316d14bca251c64cb2c9095d6d91916491712437
3e48fcb83b74c9dfc38ebb64024b95d219a4e44e
/test1/python_webserver.py
d515095685cff86f786a02f241d8ffe7fe7475cc
[ "CC0-1.0" ]
permissive
imanelaa/test1
82b18872b8e4f3a63a5e29406087e7e63d111bfa
e08646e3658b8d073f1add3a69d61673d2b42a68
refs/heads/main
2023-03-30T01:52:28.173576
2021-03-31T06:54:12
2021-03-31T06:54:12
353,254,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,652
py
python_webserver.py
#!/usr/bin/env python3 from http.server import BaseHTTPRequestHandler, SimpleHTTPRequestHandler, HTTPServer from socketserver import ThreadingMixIn # import mon_module import json # globals listcmd=["bouton1","bouton2"] class GetHandler(BaseHTTPRequestHandler): def do_GET(self): cmd=self.path[1:8] # HERE...
ba610182e8eea0c4181575accc89114765278681
e8bfb49627b890c5174359898c48274ac3d822b5
/Text and ASCII conversation.py
67c85af5dc4d55f9ba53228a1fa14cf73a4a8fd8
[]
no_license
Indi44137/Theory-Programs
bfe80effb71f8135dbe1c2576b72759228593f33
cec37b5baf53138becf614045cb572d248cc3392
refs/heads/master
2020-05-18T03:50:45.554049
2014-09-30T14:23:21
2014-09-30T14:23:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
Text and ASCII conversation.py
#Indi Knighton #30/09/2014 #Conversion of text characters into ASCII code ASCII_code = int(input("Please enter a code in ASCII here: ")) Text_code = input("Please enter your text here: ") ASCII_conversion = chr(ASCII_code) Text_conversion = ord(Text_code) print("Your ASCII code in text is {0}".format(ASCII...
356bf44dd531085db4ad884ba4cffe2144b10162
19048f0a2d5e31402bd791b2dd594362de44afe3
/python/PythonCrashCourse/PartII/alien_invasion/settings.py
cf668ceb568c14fabbd9cb89e764133ef47431be
[]
no_license
humbertoperdomo/practices
f5f2288f4375cbc507f5d9c5ebf80064b4e946a0
ddc8dd587015e450858e851a2879026c7534f665
refs/heads/master
2021-01-24T06:30:00.405750
2018-11-11T01:57:30
2018-11-11T01:57:30
29,109,838
0
0
null
null
null
null
UTF-8
Python
false
false
2,095
py
settings.py
#!/usr/bin/python3 """Settings class.""" class Settings(): """A class to store all settings for Alien Invasion.""" def __init__(self): """Initialize the game's settings.""" # Screen settings self._screen_width = 1200 self._screen_height = 700 self._bg_color = (230, 230,...
0e37777892a91ce93d8074b1cb226261cd72ff2d
24dc59cf648e96a68ecf076d9151d341d9af8bdd
/gripeA_2020/misc/misc.py
d78f4697da540d2cac626ea9cc6dda6050835068
[]
no_license
JLZ-coder/TFG
4879b55faa06f80dd32a7c468b8ee6cb01657a08
4fae80260438a27f51c6c500b7546d34d154e3a9
refs/heads/master
2023-07-17T22:45:52.194719
2021-09-03T10:47:57
2021-09-03T10:47:57
240,018,745
1
1
null
2020-10-03T15:32:42
2020-02-12T13:24:19
HTML
UTF-8
Python
false
false
438
py
misc.py
# Saca geohash de 3 digitos que caen en espana def geohashEsp(): cursor = com.find({}) geoESP = set() geoComar = {} for it in cursor: geo = geohash.encode(float(it['Latitud']), float(it['Longitud'])) geoESP.add(geo[0:3]) if geo[0:4] not in geoComar: geoComar[geo[0:4...
d3d9fee2df51cfd6f6ecaccd6a65571b969c4759
f5c0b940dd70b6093702798f97108280b7e58cfb
/classes/aws_eb_log_retrieval_service.py
c6c67196ddcc825e31453d232e6a66563a853286
[ "MIT" ]
permissive
remyh1369/aws-eb-log-retrieval
ca958513163a7be0e48b6227929d4e848e81fcd4
677c13194c4d5738644732c620e56b7bcff159a3
refs/heads/master
2021-01-21T06:39:01.296065
2017-03-09T03:48:30
2017-03-09T03:48:30
82,868,078
1
0
null
null
null
null
UTF-8
Python
false
false
9,864
py
aws_eb_log_retrieval_service.py
import boto3 import json import os import signal import time from ebcli.lib.aws import set_region, set_session_creds from classes.tail_eb_environment import TailEBEnvironment from util.aws_util import AWSConfig class EBLogRetrievalService(object): def __init__(self, config, config_relative_dir_name, logger): ...
756a69f19a905f8c91191ce640b947898e8caad3
545e06c0119f5a511b11b4e6e2aff0a16c61d82c
/scribdl/downloader.py
6560dd47e76299314582f056f993fc3f9b521d72
[ "MIT" ]
permissive
Phoenix124/scribd-downloader
497a53a2b723cd9c65e2ac1db83458a5bca750b7
aea2b7cb764963cd98f0cc329287c3d8fc168521
refs/heads/master
2023-08-30T22:47:30.555508
2023-04-02T15:27:39
2023-04-02T15:27:39
207,278,230
283
99
null
2023-08-23T17:57:57
2019-09-09T09:54:45
Python
UTF-8
Python
false
false
3,346
py
downloader.py
from bs4 import BeautifulSoup import requests from .content.document import ScribdTextualDocument from .content.document import ScribdImageDocument from .content.book import ScribdBook from .content.audiobook import ScribdAudioBook from .pdf_converter import ConvertToPDF class Downloader: """ A helper class...
d0062188d2b6d456f1d709ebb999aef253069e7c
f0c4da6f40437540c75160db10ef8ded91d98fbe
/ops_tools/submodules/tmp_res_gen/src/scripts/stop_all.py
6575686e14b8712ce349eba6e3ebecb5164ee9ef
[ "MIT" ]
permissive
dlf412/thunderCopyright
e064a394e68998712f03f54fe102f7118ca799ea
c736c9eefc7c934cc830d9d6f27a00cf147e02aa
refs/heads/master
2021-01-20T15:36:54.985348
2016-06-27T02:59:53
2016-06-27T02:59:53
61,878,514
1
1
null
null
null
null
UTF-8
Python
false
false
337
py
stop_all.py
#!/usr/bin/env python #coding: utf-8 import os import signal import commands cmd = 'ps aux | grep worker.yaml' output = commands.getoutput(cmd) for line in output.splitlines(): pid = int(line.split()[1]) try: os.kill(pid, signal.SIGKILL) except OSError: pass output = commands.getoutput(c...
3bc893df31249d54fd5e83c11a68dbe3daaf5ea9
f87ab3f49b8e741b4d590fc3507f17262d832423
/Scraper/Connector/ConnectorType.py
7e19f43ae038208931c73c032129b204a689d4b3
[]
no_license
pimvanoerle/AccommodationScraper
e2d4a3281d4d3c544e5fe712c9e2cd85d47f2061
3c7cda0f3a3d1bba01208936f0b504777d5149cc
refs/heads/master
2020-03-14T08:06:05.378055
2018-05-07T10:01:44
2018-05-07T10:01:44
131,517,750
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
ConnectorType.py
from enum import Enum class ConnectorTypes(Enum): """enum representing possible connector types. this is suboptimal as types need to be added to this list when a new connector is made, better to use reflection or the like. It will do for this specific case though, and keeping it simple saves on not-yet-nee...
30632b042796de0db7a263f07807d50f508921b9
e651eff7fea4fe9de42db9212a3f42fc331fc597
/DataProcessingHelper/lung_audio_data/views.py
580824d109f13e6e591bf67afd2b642a3d7963ae
[]
no_license
hienhopham/Spiro-System-based-IOT
d568ab411015f904835c79a3710a845fb98b094e
273c5e44793dea123bcd15d0ac0754926a849062
refs/heads/master
2023-01-18T21:39:07.461382
2018-06-10T03:45:54
2018-06-10T03:45:54
130,983,310
0
0
null
2023-01-04T03:01:39
2018-04-25T09:31:44
JavaScript
UTF-8
Python
false
false
1,696
py
views.py
import datetime import base64 import os from django.http import JsonResponse from rest_framework.views import APIView from rest_framework.response import Response from lung_audio_data.serializers import OutputValuesSeralizer from lung_audio_data.objects import OutputValues import baseFunctions as bfs import computati...
bc2459a61ba2aa129e3d4e20285621b04974e2bc
7a793abeb12144995f5de39210e19793cc3e334a
/tool/collect_mu.py
457c78a3906ab1b3cc4c17e14a013ae6557fbce9
[]
no_license
weiweichu/charged-polymer-with-LJ-potential
71f20f9ad4295a68c90a0667f6dbe65815f17b77
b259df4d5448ee3fae89c1ed18b24647562389de
refs/heads/master
2021-04-29T17:40:24.096986
2018-02-16T21:59:24
2018-02-16T21:59:24
121,675,046
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
collect_mu.py
#!/usr/bin/env python ''' PURPOSE Parse the files param & mu.out and find salt concentration and chemical potential. ''' import sys for fld in [ str(i) + '/' for i in xrange(6 if len(sys.argv) < 2 else int(sys.argv[1])) ]: nSalts, nSolvents = [ int(x.strip().split()[0]) for x in open(fld + 'param', 'r').readlines...
dbf0d12673866abecd39b61508b993ebbbb0aca3
4ce5022078c53b3bd75493b12a38237618b52fc8
/prodsys/migrations/0101_auto_20191030_1505.py
a9857951f65df5d22f589720c1a0b0931122cb04
[]
no_license
virthead/COMPASS-ProdSys
90180e32c3a23d9fd05b252a6f8ded234525a780
6dfaa3e9ca40845282d3004ac61f386db5abdbe9
refs/heads/master
2023-02-23T18:16:02.789709
2022-09-28T09:37:59
2022-09-28T09:37:59
144,685,667
0
1
null
2018-10-13T10:07:42
2018-08-14T07:38:34
Python
UTF-8
Python
false
false
558
py
0101_auto_20191030_1505.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-10-30 15:05 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('prodsys', '0100_auto_20191030_1502'), ] operations =...
14d51f8b46db289d46755d1580c9885b70888191
73b9be91889bf32a9ba988179a970f7495789d36
/plot_individual_figure_2.py
515148fe68f532d06f02e8065dd2f36d31a60a09
[ "BSD-2-Clause" ]
permissive
benjaminhgood/microbiome_evolution
f366c7eb8b004be8ae61efcce78ed1428133110e
4015ec03e2cbdbfb7d062415fb6a8c869f37a32e
refs/heads/master
2020-04-09T06:26:50.224944
2019-01-25T20:09:40
2019-01-25T20:09:40
160,112,852
3
8
null
null
null
null
UTF-8
Python
false
false
20,198
py
plot_individual_figure_2.py
import matplotlib matplotlib.use('Agg') import config import parse_midas_data import parse_HMP_data import pylab import sys import numpy import diversity_utils import gene_diversity_utils import calculate_substitution_rates import clade_utils import stats_utils import matplotlib.colors as colors import matplotl...
45bbbfb7766fa0e9a5a14b6dd1c557501b6b817d
b126ebfec67ff31021638ccca04d9140e3b13e4f
/form_test/urls.py
02b940f814172ad472dbe839f2108328fd1909b6
[]
no_license
xuhaibo2017/form_kf
3c6b807e4f217710fe5ed61d05927f8b18233e7a
f905421ea3e68d0536ca77284a8f79d15a83e4fd
refs/heads/master
2020-07-05T03:48:41.391062
2019-08-16T02:17:15
2019-08-16T02:21:59
202,512,462
0
0
null
null
null
null
UTF-8
Python
false
false
3,516
py
urls.py
"""form_test URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
3212a0e92ed9ee871a0196cf209902a0c338392c
4175c20f89fc408696d22a488a29b46836e15cbf
/travelly/trips/migrations/0001_initial.py
aa1fab411c2369ff3c0fca0cf87829fccde529d4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
UPstartDeveloper/fiercely-souvenir
47df7885a153b8df9e6af1aac72579da4af85e63
65d933c64a3bf830f51ac237f5781ddfb69f342c
refs/heads/master
2022-12-09T21:37:19.810414
2021-04-30T23:47:39
2021-04-30T23:47:39
228,493,146
0
0
MIT
2022-12-08T03:24:23
2019-12-16T23:20:11
JavaScript
UTF-8
Python
false
false
1,615
py
0001_initial.py
# Generated by Django 3.0 on 2019-12-24 01:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
5fa71030daee2559be72f3e4e8e558efacf61e63
c41ca5d69573a4ab5499f65854b121cbce77dda0
/release/stubs.min/Rhino/Geometry/__init___parts/Ray3d.py
8ff469f60e5a3c1d4489b6703203509f2601c604
[ "MIT" ]
permissive
YKato521/ironpython-stubs
cc836153f86417c0244995c33d06183ad5e8a574
b1f7c580de48528490b3ee5791b04898be95a9ae
refs/heads/master
2022-04-23T06:45:53.546236
2020-04-15T13:37:01
2020-04-15T13:37:01
255,927,517
0
0
NOASSERTION
2020-04-15T13:37:09
2020-04-15T13:37:08
null
UTF-8
Python
false
false
2,790
py
Ray3d.py
class Ray3d(object, ISerializable, IEquatable[Ray3d], IEpsilonComparable[Ray3d]): """ Represents an immutable ray in three dimensions,using position and direction. Ray3d(position: Point3d,direction: Vector3d) """ def EpsilonEquals(self, other, epsilon): """ EpsilonEquals(self: Ray3d...
3ae6658d929c51a49c824dfa780dd148e538cf33
e01f02008ef86f309d7f8509025555fb0bd7bed9
/PC/src/ExtractFeatures.py
c888f521f9d593e4b1157da85cbbf3bf4b1b8c5a
[]
no_license
RaffaDNDM/AcCAPPCHA
7c907d1c24004b75f04a577a5b6c5c6917268798
bbd6a79759b776b196067c60f554265b668174b1
refs/heads/master
2023-05-07T10:48:20.944155
2021-03-25T09:01:31
2021-03-25T09:01:31
279,687,777
0
0
null
null
null
null
UTF-8
Python
false
false
9,016
py
ExtractFeatures.py
import numpy as np import math import utility class ExtractFeatures: #Time step = 0.5 ms STEP_PEAKS = 5e-4 #Width of press peak = 20 STEP_PEAKS (10 ms) WIDTH_PRESS_PEAK = 20 #TRY 30 #Start of touch peak = 3 STEP_PEAKS (1.5 ms) before touch peak (max of wave) START_TOUCH_PEAK = 3 #Width of t...
7358dfd78a25c9965fa764e0663e5dadf5f6342d
f93dca9aac69604b42d49dccb1470a904951ed31
/src/main.py
7b6ee65487994b5e1e2ac43b735b66b40df062f4
[]
no_license
wangchong6808/PythonSample
a027e056e3a80ebadb7f5a8a85a66eba8aead81f
a7982ad8d9a41d804efe23f4e684313c083f3620
refs/heads/master
2021-01-11T01:01:18.259578
2016-10-12T12:54:46
2016-10-12T12:54:46
70,443,155
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
main.py
# python main.py 50 import sys def execute(n): a,b = 0,1 while b < n: print(b, end=" ") a, b = b, a+b print() print('execute...') sys.path.append(sys.path[0]+"/com/thoughtworks/daimler/otr/leads") print(sys.path) if __name__ == "__main__": import sys print(len(sys.argv)) print(s...
e980d8d35cce00202008511789a5cbaa3d7cbe2b
919ee7a4aa9b9005a95302c99f9f3a31f089d2c6
/multi_crossword.py
b0ba014b61e6e68bec1cb137ba0611fbd8e81690
[]
no_license
farhadkpx/Python_Short_Programms
8a3eec765da9b03ed32752ff9e0b3bbe47779b4a
56a07c880d1124cef060e307ccc12e7c88675043
refs/heads/master
2021-06-01T05:52:21.858448
2016-07-23T09:49:28
2016-07-23T09:49:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
multi_crossword.py
def _find_word_horizontal(crosswords,word): if not crosswords or not word : # if empty then return None return None for index,row in enumerate(crosswords): temp_str=''.join(row) if temp_str.find(word)>=0: return [index,temp_str.find(word)] return None
b9b5a49303971063528c650887978fe10a8d00e4
ef5300622db5b458f4f00dfab8c6cea5ac9585d1
/duckhunter.gyp
8777248a86aeda5b973b444cd95458b7615a5b71
[ "Apache-2.0" ]
permissive
asimihsan/duckhunter
394b5a51f474071dde80d913f950410065a8ce00
d26fb010b5b1658a8723f82d19b8547ea84be96a
refs/heads/master
2021-01-16T00:12:17.505490
2013-09-27T14:58:16
2013-09-27T14:58:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
gyp
duckhunter.gyp
{ 'include': [ 'common.gypi', ], 'targets': [ { 'target_name': 'duckhunter', 'product_name': 'duckhunter', 'type': 'executable', 'cflags': [ '-pedantic', '-Wall', '-std=c11', '-flt...
8c55f09b1c8f2dd97d062bb6ddbe8dd4280ab206
a115d1ea106a890a877d902efc70e3f806525de8
/maskrcnn_benchmark/modeling/roi_heads/relation_head/roi_relation_feature_extractors.py
dc115c6338dfab2ec9772c62114d6d38810417a7
[ "Python-2.0", "MIT" ]
permissive
KaihuaTang/Scene-Graph-Benchmark.pytorch
7b59051e78d566f1b94836280ca91a61e2503bb4
4b6b71a90d4198d9dae574d42b062a5e534da291
refs/heads/master
2023-08-04T18:32:27.979660
2022-07-29T06:16:23
2022-07-29T06:16:23
241,830,209
1,002
261
MIT
2023-07-30T08:37:14
2020-02-20T08:23:54
Jupyter Notebook
UTF-8
Python
false
false
6,535
py
roi_relation_feature_extractors.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn from torch.nn import functional as F from maskrcnn_benchmark.modeling import registry from maskrcnn_benchmark.modeling.backbone import resnet from maskrcnn_benchmark.modeling.poolers import Pooler from maskrcnn_be...
d55e4165283042366443f2ded2259fdaea713825
f8f4e12969eb4acfbe9796a42fa37b859066aef8
/os_migrate/plugins/module_utils/project.py
8961f149cb931e73726442763d2538d31c502cfc
[ "Apache-2.0" ]
permissive
jfrancoa/os-migrate
8c533f2383f9218c5a1a53cb21de8c2875376121
163ac71e660f6f12b4825a62a3e278a29da94c48
refs/heads/master
2021-07-17T21:17:23.414031
2021-01-25T11:57:25
2021-01-25T11:57:25
233,061,517
0
0
Apache-2.0
2020-01-10T14:15:11
2020-01-10T14:15:10
null
UTF-8
Python
false
false
1,127
py
project.py
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import openstack from ansible_collections.os_migrate.os_migrate.plugins.module_utils \ import const, resource class Project(resource.Resource): resource_type = const.RES_TYPE_PROJECT sdk_class = openstack.identity.v3...
fd7a0432b1942ff157731ac0b2c12afe59afdc54
94741588c193edac60cf67a22d245f3d7ab75b96
/tests/test_docker_crs.py
ea72f486812d2d25554435bbd5ad6a34eaa4dbae
[ "Apache-2.0" ]
permissive
voytekio/voytek-salt
bb9d20a52bbc7351713e2fc262c4c8ef9fdad26f
1bbc9ef28c615bde726301bcf4f2d6e91acc0e25
refs/heads/master
2021-06-18T09:51:46.086865
2020-12-20T20:19:10
2020-12-20T20:19:10
130,498,749
0
0
Apache-2.0
2020-12-20T20:19:11
2018-04-21T17:54:53
SaltStack
UTF-8
Python
false
false
401
py
test_docker_crs.py
def _v_print(text_string): print(dir(text_string)) text_list = text_string.stdout.split('\n') for one_line in text_list: print(one_line) def test_with_container(docker_cr): #assert docker_cr.check_output('pwd') == '/' create_log_message = docker_cr.run('date > /var/log/voytek.log') res1...
659ddc1cf2e9f1df913b690e28dc311b29ddafd0
8ffaa91681ab828e950b71c62c9d4a0b10a6cd63
/csv_Manager.py
326320d8b5388d19a7d1e9ba0b00fca9bc3d0647
[]
no_license
moscamortal/Genetic_Algorithm
b2f53eb094ddedb12a6baa1b598cb3ca5028d1a8
599788e5f01b393a98c7183366d2dd206f31778f
refs/heads/master
2020-06-17T23:02:55.042698
2019-07-12T14:02:11
2019-07-12T14:02:11
196,091,816
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
csv_Manager.py
import csv class Csv_Manager(): def write_list_to_file(guest_list, filename): """Write the list to csv file.""" with open(filename, "w") as outfile: for entries in guest_list: outfile.write(str(entries)) outfile.write("\n") print("Resultado salv...
8919b08e3807fcf11742cbc45db7e4a5823106f4
d63b1b36634b68070f6f3c017c0250a7ea646e6f
/SMC/GEM5/gem5/src/cpu/testers/networktest/NetworkTest.py
25b2bb6906fe8d400d736e7236a74cb047bd952a
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later" ]
permissive
jiwon-choe/Brown-SMCSim
ccf506d34d85fb3d085bf50ed47de8b4eeaee474
ff3d9334c1d5c8d6a00421848c0d51e50e6b67f8
refs/heads/master
2021-06-30T00:15:57.128209
2020-11-24T03:11:41
2020-11-24T03:11:41
192,596,189
15
8
MIT
2019-06-20T15:43:00
2019-06-18T18:53:40
C++
UTF-8
Python
false
false
2,481
py
NetworkTest.py
# Copyright (c) 2009 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions...
c5464c972beec5d39cc6b34d398198cd8240c39e
6e4f493329341661d869d9c5a8dd21c1baa6a621
/science/KineticTheoryOfGases/pvt/pvt.py
5b5e60dcfd1dabab741da51f063bd61f3ed5d4d7
[]
no_license
yujinee/scimat2
8dd03e1ba003715dd910d7e6a086b6f596a7f23b
98712c061b9ce5337b3da5b421926de4aaefbe67
refs/heads/main
2023-08-28T01:57:53.482632
2021-10-22T17:30:10
2021-10-22T17:30:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
pvt.py
import random # An air bubble of volume v cm3 rises from the bottom of a lake h m deep at a temperature of t1 degree C. To what volume does it grow when it reaches the surface, which is at a temperature of 35 °C. qns = open('./questions.txt', 'w') ans = open('./answers.txt','w') no_of_samples = 1000000 def cal1(v,h...
53bc54a031ff4894d38ac2d8aa5888d7d55ecaec
689177cb4a7fdc3b34063f8ae6eb3bb5d9a03917
/app/views.py
9d8dde6c06295d86f9e76da2262db2e180b2007e
[]
no_license
khvilaboa/Sentinel
ba9c19c87f423207212fc33c0e6eff09a3f7f2e2
bfe8022db2954f38c305d0e8545f9f80c29c07b3
refs/heads/master
2021-03-27T11:04:08.034268
2018-02-25T20:16:20
2018-02-25T20:16:20
122,678,554
0
0
null
null
null
null
UTF-8
Python
false
false
4,310
py
views.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import HttpResponseRedirect, HttpResponse, Http404, JsonResponse from django.shortcuts import get_object_or_404, render from django.urls import reverse from .models import Question, Camera import xml.etree.cElementTree as ET import urll...
a1d9810f1b3313120e427af6ce6ac446b509c7dd
19ba3be1b8b86c69f0674a8e9953374eebb516a3
/Régression/regression.py
8da0221b623f15cfc2be8c92157702f2150fda30
[]
no_license
guerinj/APA
713f393d2fb7385d6c8e331ba7909eb0cd260b1a
1acf5c9fa322f0a4f7709d28cb6d50fbb802e5ff
refs/heads/master
2021-01-23T19:45:57.513977
2014-03-03T14:59:20
2014-03-03T14:59:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,101
py
regression.py
import numpy as np import matplotlib.pyplot as plt def computeAndPlotRegression(x, y_matrix, N): x_lin = np.vander(x, N+1) print x_lin coeff, residuals, rank, singulars = np.linalg.lstsq(x_lin, y_matrix) plt.plot( np.transpose(x_lin).tolist()[0], np.transpose(x_lin*coeff).tolist()[0] ...
8f0844b38bd13dcc99eb6c59f55e29387108eb87
3e02f0b60ddf8149a6f7f9b1a825c00e1f275540
/Chapter07/function_with_default_argument.py
6446760d535a2a1997fe0c19618bba2ac4302e84
[ "MIT" ]
permissive
chimbilimadhav/Learn-Python-in-7-Days
5e69835773e8e9c5248df58f107021dc4a7d829f
b871ed388f853a91c574e4fd7a11fe3f024ad4bf
refs/heads/master
2023-03-19T21:57:24.839993
2020-12-16T06:32:57
2020-12-16T06:32:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
function_with_default_argument.py
def info(name, age=50): print "Name", name print "age", age info("John", age=28) info("James")
d0559b9e98b11afe32b9e1eece0369825343e052
c48a8e479733f72e558feb5a33ad7265f9e447b5
/boards/game.py
f10958860d392bda7b622e570a9e67910e0f4125
[ "MIT" ]
permissive
gcmac16/deeptoe
a223c0c99c4595faf1919fb1c026c7c86e5b0a32
d92ffef553a03640479fb0dcd5e6fa1f4e6d1cd1
refs/heads/master
2022-07-22T01:32:41.200839
2020-04-11T19:14:18
2020-04-11T19:14:18
253,095,543
0
0
MIT
2022-06-22T01:38:03
2020-04-04T20:45:54
Python
UTF-8
Python
false
false
1,754
py
game.py
from typing import ( List, Tuple, ) from numpy.random import choice from .ultimate_board import UltimateBoard class Game(object): def __init__(self, cpu_mode: str = 'random'): self.board = UltimateBoard() self.cpu_mode = cpu_mode self.n_moves = 0 def player_move(...
5e3c8f368abe99c6dcc567761d8063d20ff01c7f
3d30cf9c7837f0570dec13da02564fad0671f7ae
/src/simple_method/numpyGradients.py
efe0ebbc3c3b4a938790e4f07c11735c9c522770
[]
no_license
phil-shenk/erosion
6045cb902698aa89ff472ae1d0253a320b93a3fc
e8bf8580aa5452b20b93b4513dd73e5c074bfd7c
refs/heads/master
2023-02-16T18:56:53.582280
2021-01-11T06:49:03
2021-01-11T06:49:03
287,793,223
0
0
null
null
null
null
UTF-8
Python
false
false
5,350
py
numpyGradients.py
import numpy as np import matplotlib.pyplot as plt import voronoi as v import time #TODO: make mavavi optional with cmd line flag from mayavi import mlab def calculateGradient(grid): grad = np.gradient(grid) return grad width = 200 length = 200 gravity = 10.0 xs = np.linspace(-np.pi/2,np.pi/2,width) ys = ...
2e32c26b2d43eb32a5044ee85f5856541dd50755
dc97f457ebcc98ecbfa17266a82029f998854edc
/data_cleaning.py
603f8e9fa3ca6716990cce6070acad57d3f929eb
[]
no_license
slothpunch/ds_salary_proj
227db3d968c8033884b111a548a1456b87360d66
4cc72e7250209f44bcc1131bbb68f578096bf2fd
refs/heads/master
2022-12-17T15:08:57.547049
2020-09-06T11:04:21
2020-09-06T11:04:21
266,295,355
0
0
null
null
null
null
UTF-8
Python
false
false
3,399
py
data_cleaning.py
# -*- coding: utf-8 -*- """ Created on Sun Sep 6 15:00:37 2020 @author: GIS """ import pandas as pd df = pd.read_csv('glassdoor_jobs.csv') # 1. salary parsing # 2. Company name text only # 3. state field # 4. age of company # 5. parsing of job description (Python, etc.) # 1. salary parsing # One line if statemen...
993d5cbb886bf9c5ace9d6c9668152f3ac8de637
ad9a1711ec2d36b57576b30a5550a481bc07452a
/Pickle module/a.py
71ab0c0ae127685c65f244b72234c841d5cd6f7b
[]
no_license
Harshad06/Python_programs
5ca0ba3ba8cbccbd39215efec96fb7b68307aa5a
ad908e59425b41c1bed032aaf9a115e123fd46c4
refs/heads/master
2023-06-22T07:44:45.435258
2021-07-26T08:16:22
2021-07-26T08:16:22
347,367,223
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
a.py
import pickle cars = ["AUDI", "BMW", "KIA"] file = "mycars.pkl" fileObj = open(file, 'wb') pickle.dump(cars, fileObj) fileObj.close()
cb9c39a0bfda2b5bda236fda1d69c4ab612c1075
0193833e4b38c288aa6e9e9ee88ed46cde1c470b
/Files/image_process.py
ad2d7a430497e61064a578b899eaa9f368c99c8a
[ "MIT" ]
permissive
user2745/BeeFanningDetector
afd5a297efa52d49844e3942f1ef18c2d602d614
52d562c3c2a40179386ae3e04b02631e92c5747b
refs/heads/master
2020-12-15T07:13:09.030566
2020-06-20T00:52:21
2020-06-20T00:52:21
235,029,297
0
0
MIT
2020-06-20T00:52:22
2020-01-20T05:57:38
null
UTF-8
Python
false
false
1,583
py
image_process.py
import cv2 import numpy as np import sys #initialize video stream reader vs=cv2.VideoCapture("/Users/aidanobrien/Documents/GitHub/BeeFanningDetector/Assets/test_vid1.mp4") #initialize video stream writer fourcc=cv2.VideoWriter_fourcc(*'mp4v') vout=cv2.VideoWriter() frame_width = int(vs.get(3)) frame_height = int(vs.get...
f5c433312ba485d2ed66b4bd7ac82913035209a2
0cd96b4fa0f2a44aaa419573fddfde5e260eac29
/components/utils/SintelThreadProvider.py
3f076411d73064329ad8bc00afec864488322f13
[]
no_license
nathan-michel/FYP_PUBLIC
7d77650a30d2d89387216f684f1672fd133033d3
d2a1d160430143513340059be41f0c091b090bb7
refs/heads/master
2023-05-29T08:49:44.638575
2021-05-09T21:02:21
2021-05-09T21:02:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,416
py
SintelThreadProvider.py
from threading import Thread #from multiprocessing import Process import numpy as np import logging import pickle import time class SintelThreadProvider(Thread): def __init__(self, group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None, queue = None, fileList=None, scene_step = 1)...
2d4660e2c0191f6a5d510a1085917c72e8127576
a01514253a6aa5d8758bc09482a9fcfe301310ca
/hw1/309511044.py
3753d69456a61c968b2020e4bc42cd1d950af44a
[]
no_license
JustinRaina/data-science
58c9c9b6af5041fdabf81f521cd8d8e107f4473b
368263ec9640148ddb06a09b08454f4fc9570d37
refs/heads/main
2023-01-06T22:15:37.912638
2020-11-02T12:39:15
2020-11-02T12:39:15
309,358,324
0
0
null
2020-11-02T12:29:16
2020-11-02T12:05:44
null
UTF-8
Python
false
false
9,957
py
309511044.py
import requests from bs4 import BeautifulSoup import time import sys #cookie資料 payload = { "yes" : "yes" } rs = requests.session() #save information in one cookie rs.post("https://www.ptt.cc/ask/over18", data = payload) #crawl if (sys.argv[1] == "crawl"): file_all = open("all_articles.txt", "w",...
cfd74a66057e9e787acf4f7e13210ce458c94c40
150a7b11cb531f8bc2a045aefcf2ebe1d151efa3
/tests/e2e/workloads/ocp/registry/test_registry_by_increasing_num_of_image_registry_pods.py
21d0e90179cf17b5ac9c32fe88ad9a9310ca809b
[ "MIT" ]
permissive
red-hat-storage/ocs-ci
c7ac414e1b86552da0439223dfa9bca39977f31a
5e9e504957403148e413326f65c3769bf9d8eb39
refs/heads/master
2023-08-17T16:19:51.154403
2023-08-17T13:27:12
2023-08-17T13:27:12
179,558,938
146
210
MIT
2023-09-14T16:38:44
2019-04-04T19:00:02
Python
UTF-8
Python
false
false
3,900
py
test_registry_by_increasing_num_of_image_registry_pods.py
import pytest import logging from ocs_ci.ocs import ocp, constants from ocs_ci.ocs.registry import ( validate_registry_pod_status, image_pull_and_push, validate_image_exists, modify_registry_pod_count, validate_pvc_mount_on_registry_pod, get_registry_pod_obj, ) from ocs_ci.framework.testlib imp...
666dbe5156d14e8eaa86f3aeef07153d58b0a55f
e1566eef934ba283b809d34abf0bf176d257af06
/historial/forms.py
30867edc35a00500e814133e70f4a6a3c26ebafd
[]
no_license
chinoh7/HistorialMedico
08d6e585da707960860373b667ed84d8f856832a
6de0f88d662c8c43a4ff2148ef0a6c0e1dd20b68
refs/heads/master
2021-01-12T13:42:59.441583
2016-11-23T16:12:55
2016-11-23T16:12:55
72,221,983
0
0
null
null
null
null
UTF-8
Python
false
false
4,380
py
forms.py
from django import forms from .models import Paciente, Doctor, Enfermedad, Consulta from django.contrib.admin import widgets from django.forms import extras class Form_NuevoDoctor(forms.ModelForm): def __init__(self, *args, **kwargs): #este codigo hace que el codigo de producto no sea necesario, así no se tiene u...
22e118cf9637cdfd721239ac0af32d9903cb133f
c6759b857e55991fea3ef0b465dbcee53fa38714
/libs/frame_streamer/examples/wifi_jpeg_streamer/streamer
f7ec1ebc32575ff52b2c3effe96e609bd3e08d04
[ "Apache-2.0" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
447
streamer
#!/usr/bin/env python3 import pmsis_tools as pt streamer = pt.Frame_streamer(transport=pt.Transport_socket(port=3333), show=True) camera = streamer.get_stream('filtered') for frame in camera.get_frames(): result = 0.0 for i in range(camera.width): for j in range(camera.height): for k in range(camera.depth...
0736fcf0a279b04dbff9f8469beaa6906376ab52
f41140b3b535153688ec44fc33bbac85926de2b4
/apply_threaded_config.py
21058bec91566af276c40dfb525cb047caddd698
[]
no_license
irfankhan552/junos_automation
938278cc7a606d48028d6c636babb00212966b6f
ba0f35cf4596b5647bc938fa2a13a1b63ef4a4ef
refs/heads/master
2020-03-31T01:23:44.195363
2018-08-01T16:03:03
2018-08-01T16:03:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,482
py
apply_threaded_config.py
# Script reads device(s) information from csv file, reads config (set format) from a file stored in current directory # Applies config to devices uing threads from jnpr.junos import Device from jnpr.junos.utils.config import Config from threading import Thread import csv import os from subprocess import call import ti...
55157b58c31198a7cd08600b1affce1074141dab
d8827171d10841813868e70f9ee0034d43a84b35
/preprocess.py
63da29e32e8851e894ff24285b442cd0bea35c8e
[]
no_license
sanjyotUM/latcom
71f3e624e2ccb0db77c3f025d1be31198f58859a
61722011363506073b0392c0b568c42189c79893
refs/heads/master
2023-04-24T06:50:06.953957
2021-05-18T06:09:07
2021-05-18T06:09:07
299,798,728
0
0
null
null
null
null
UTF-8
Python
false
false
4,141
py
preprocess.py
from datetime import datetime from pathlib import Path import tensorflow as tf # import tensorflow_addons as tfa def get_fname(path): """ Extract filename from string ``path`` Parameters ---------- path : str Absolute file path Returns ------- str """ return path.s...
e234a7b4f2e49e4ab762b3e15124b6c37b9ac38f
3edda7d3525f507bc05df2b59d2471902750087b
/project2/Project/audit_phone.py
cffc55970aadb23b29e129eeabc00bb0efde2c4e
[]
no_license
annaaha/nanodegree-ds
a30c176dbe3a439612e28fa1b1d147e42894b920
19958bfbf5c8f8d64ee5f0ca5f9c9bcaf0210f02
refs/heads/master
2021-01-18T21:37:02.303184
2017-07-24T17:49:34
2017-07-24T17:49:34
31,866,770
0
0
null
null
null
null
UTF-8
Python
false
false
2,125
py
audit_phone.py
import xml.etree.cElementTree as ET import re import codecs import pprint import json OSMFILE = "mobile_alabama.osm" def is_phone(elem): return (elem.attrib['k'] == "phone") def audit_phone(osmfile): """Find all phone numbers and return them in a list """ phone_list = [] osm_file = open(osmfile, "r")...
e2c3410bf1f34c35dc8cd98754efe9d15cb90a89
4d9204164815ac69f5cb2c11c4fd68bfe6374e2b
/mymodel/migrations/0012_auto_20190403_1853.py
3b4fdedadcc11ce8ea3ca6831544eb2f4c298b97
[]
no_license
supriadi-yusuf/mysite-django
569412469f52c520be7426b06935f669afbba4c2
f398b6e72609ed2d392991e0d18765d4240e252a
refs/heads/master
2020-08-04T11:41:07.923999
2019-10-01T15:08:06
2019-10-01T15:08:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
0012_auto_20190403_1853.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-04-03 18:53 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mymodel', '0011_auto_20190403_1848'), ] operations = [ migrations.AlterModelOptions( ...
ebe8cb25a79a19334fde9a689f29da17e94bfb17
069b6ebf1a0721e1f204d35f779064d9b1d7d872
/python算法/7.7如何判断还有几盏灯泡亮着.py
0a72cedf9d60730064af1b8d8656cb88035b002f
[ "MIT" ]
permissive
pipjiang/Python-CommonCode
dbaa59dd8e05b3b4d1c0b3db2eb5e29c3a4fa764
9607219b8d057ab896ecae5326daadd7dcfb6112
refs/heads/master
2023-09-03T01:06:11.102392
2021-11-10T11:40:07
2021-11-10T11:40:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
7.7如何判断还有几盏灯泡亮着.py
# -*- coding: utf-8 -*- """ Created on Fri Feb 28 11:48:33 2020 @author: Administrator """ """ 100个灯泡排成一排,第一轮将所有灯泡打开,第二轮每隔一个灯泡关掉一个,即排在偶数的灯泡被关掉,第三轮每隔两个灯泡, 将开着的灯泡关掉,关掉的灯泡打开.依次类推,第100轮结束的时候,还有几盏灯泡亮着. """ def Albumon(): sta = [1 for i in range(100)] for i in range(100): j = 0 whil...
bb91c3eef63051607fb9e74e8bd4a7abf3da3a57
d5e795f9b61cbbcdc75215ecdcaf03159cd1f820
/handler.py
8956776ade3743caecfdfe954ae30be992eb8c89
[]
no_license
asyks/dashqy
c7cefae9b6d0ceb73984b2886aa9815fa8e6f6d8
a3389ffebcf0cd5f634f6f1a4804cd2fb29d9fdc
refs/heads/master
2020-04-12T13:01:45.719845
2013-07-19T18:50:36
2013-07-19T18:50:36
8,993,243
2
1
null
null
null
null
UTF-8
Python
false
false
12,828
py
handler.py
## standard python library imports import os, sys, inspect, webapp2, jinja2, logging from datetime import date from datetime import timedelta ## adding ./lib to python path to allow module mports from that dir libPath = os.path.split(inspect.getfile(inspect.currentframe())) libPath = os.path.join(libPath[0],"lib") l...
36d78556a420e282d2640619f2a99877bd4e1bee
a7ba8a167c9860ce47621fd1e9c40e5a11db73b8
/string/addStrings.py
eef26ef09435ed52a076a3998ccc2d4d91936996
[]
no_license
qchj20131252/Leetcode
b8c55c0e2a5b6f27a85f7be7badfa937cd0b4a45
9546273eebe9e06fef1f98d2423b5abd48ca524d
refs/heads/master
2022-11-13T23:29:10.668222
2018-03-31T05:31:57
2018-03-31T05:31:57
124,391,360
0
1
null
2022-10-31T05:31:17
2018-03-08T12:54:52
Python
UTF-8
Python
false
false
1,407
py
addStrings.py
''' 给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。 注意: num1 和num2 的长度都小于 5100. num1 和num2 都只包含数字 0-9. num1 和num2 都不包含任何前导零。 你不能使用任何內建 BigInteger 库, 也不能直接将输入的字符串转换为整数形式。 ''' class Solution: def addStrings(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ num ...
a6130169d219f9510883470e7c0cc38d7cc9e781
7eee94df78e707647bee76f6043f68c6928db805
/b_17.py
b55849e51cb5ccc957f9a80279664288054f1d28
[]
no_license
drstrange11/code
d158d76bdd05beecce3c27bf2cbf06dea3a2046d
c733e65df1866c5fcec5b95034a9542efbf76406
refs/heads/master
2020-06-14T09:59:42.254915
2019-08-17T14:10:51
2019-08-17T14:10:51
194,975,316
0
2
null
null
null
null
UTF-8
Python
false
false
162
py
b_17.py
#AJ_17 x=int(input()) sum=0 temp=x while(temp>0): c=temp%10 sum=sum+c**3 temp=temp//10 if(x==sum): print("yes") else: print("no")
044c0d31d8d19bbd799707995cc4b11ec28888cb
2ba7072b5ddd7dff5a1936b83ffa295639377bea
/Compiled standard test results/Dynamics/oscillating plate/oscillating_plate_strand.py
c454186c6b77a4740b11fc00568c9388f6f2b1d3
[]
no_license
peterjwilson/Thesis
dd39792a34782c609fecf3f7695f5402ed0397ab
f5ebab4d64a78b3d1b90499be08581bcc05b6307
refs/heads/master
2021-01-22T19:44:55.519492
2017-09-06T19:16:38
2017-09-06T19:16:38
85,234,230
0
0
null
null
null
null
UTF-8
Python
false
false
4,772
py
oscillating_plate_strand.py
# -*- coding: utf-8 -*- """ Created on Fri Mar 17 18:37:12 2017 @author: Peter """ #=============================================== # # swinging plate # #=============================================== import matplotlib.pyplot as plt import numpy as np myfontsize = 20 labelfontsize = 14 #===================...
3f081075ce2e56c786934bd653dbbaca7b8c1448
217a6c88943e75c79929b69657179f59cd6969c4
/Auth/serializers/user_my_interest.py
776fb1c028afc8916cee1b881bf7e7355a0fc411
[]
no_license
manish86510/testapi
15109428ffb91f434368cb810dfeb790aa45d1d6
e2cc0f5cb2369e7ad5392773942d642a01bb9f80
refs/heads/master
2022-12-11T03:03:57.132046
2020-02-25T16:55:23
2020-02-25T16:55:23
243,049,848
0
0
null
2022-12-08T07:12:56
2020-02-25T16:51:39
Python
UTF-8
Python
false
false
432
py
user_my_interest.py
from rest_framework import serializers from Auth.models import MyInterest class MyInterestSerializer(serializers.ModelSerializer): class Meta: model = MyInterest # fields = ["id", "interest_code", 'user'] fields = "__all__" class MyInterestCreateSerializer(serializers.ModelSerializer): ...
3e211aee8280b43014256570bca001b728c4de37
24443f1c2bcea7595bf1ba807bdf0b07fbca4b39
/pyspark-ml-taxis/terraform/scripts/setup-reverse-proxy.py
31bd94a5c1b2ed2b5c54de66da25d1643098e095
[ "Apache-2.0", "MIT" ]
permissive
kryvokhyzha/examples-and-courses
488e8ba2d12728897822283d0d1bb6e7a7c0a7f4
f6e42dfdf69e63c02331ee0f8d6f0d302506189e
refs/heads/master
2023-05-23T08:16:46.698814
2023-02-25T20:51:06
2023-02-25T20:51:06
226,865,952
7
6
MIT
2023-02-23T16:04:52
2019-12-09T12:27:59
Jupyter Notebook
UTF-8
Python
false
false
4,115
py
setup-reverse-proxy.py
import urllib2 import socket import json import pystache import os import os.path import sys import argparse import htpasswd import time from OpenSSL import crypto, SSL curdir = os.path.abspath(os.path.dirname(__file__)) HTTPD_CONF_DIR = '/etc/httpd/conf.d' CERT_DIR = '/etc/httpd/ssl' def wait_hadoop(): hostname...
d734b2e3e37016ce922ed242cd709a3297b22c92
58b8debd05c6af2d1b30b034935fbf59b016bd94
/exercises/pig-latin/pig_latin_test.py
71e965c6d3795c2b60c3945f8257e3085f467374
[ "MIT" ]
permissive
nithin-vijayan/xpython
7fa2b72896f9c449f28afaf12bb181e68d478575
e060c50b3dfb71683843a708b1cd3d0cddae6fb7
refs/heads/master
2021-01-23T04:39:48.529276
2017-03-30T12:23:46
2017-03-30T12:23:46
86,233,959
1
0
null
2017-03-26T13:18:48
2017-03-26T13:18:48
null
UTF-8
Python
false
false
1,659
py
pig_latin_test.py
import unittest from pig_latin import translate class PigLatinTests(unittest.TestCase): def test_word_beginning_with_a(self): self.assertEqual(translate("apple"), "appleay") def test_word_beginning_with_e(self): self.assertEqual(translate("ear"), "earay") def test_word_beginning_with_p(...
0bc1b81f54946dd6f9998b99322d57b01158e59d
95da9d256c7fa6218bab54b5879c0b26433e721c
/check/check.py.example
87dfb8203274897be8030545efa8fb6c4305a5f3
[]
no_license
g1556/Hoshino-plugin-transplant
09ee7fe2bc62d92cb042d331052af9787bb6dffe
7229d6744dc61235bf969195cb5dc814735b44aa
refs/heads/master
2023-04-28T23:40:34.984895
2021-05-15T12:50:03
2021-05-15T12:50:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
265
example
check.py.example
from typing import List, Set MAX_PERFORMANCE_PERCENT: List[int] = [92,92,92] # 自检功能中的服务器占用比率最高值,顺序分别对应CPU、内存和硬盘 PROCESS_NAME_LIST: Set[str] = {} # 自检功能里需要提供的格外检查的进程名
d73a2f652708f8929a8beda205101a262e8d22be
bb16c314c315f55791838ccec2dc481487bf0e83
/EmployEase/Employ/models.py
c8959bca36ab8467e6cf5a2ad10c8aebff2fb1fa
[]
no_license
HarshiShah/my-first-blog
b857a8b541a3a7056982dc8dc8d9d51eb2025ac3
926ea63d3c52b35095635825843f01274cf444de
refs/heads/master
2021-01-19T02:30:19.695915
2016-07-31T23:24:12
2016-07-31T23:24:12
64,611,523
0
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
models.py
from __future__ import unicode_literals # Create your models here. from django.db import models from django.contrib.auth.models import User # Create your models here. TIME=( ('MORNING','MORNING'), ('AFTERNOON','AFTERNOON'), ('EVENING','EVENING'), ('NIGHT','NIGHT'), ('ANYTIME','ANYTIME') ) QUALI...
5354b70685bf9632ba51e8a3f7982771f4aa0e31
2e374d2e51ec4edee4a67b96f3a7c5cb0bd65751
/csv2tabular/app/models.py
c68c1b08cd9d29db005c66fab4d291be786d09d0
[ "Apache-2.0" ]
permissive
hnmpatel/csv2tabular
b98a78e81714cd478c029eb4836d15725dcc2a86
820d806103fdda0a89f0df9082a9a5945f6de84b
refs/heads/master
2016-09-06T21:42:30.344000
2015-06-15T08:30:47
2015-06-15T08:30:47
36,002,367
0
0
null
2015-05-21T09:00:00
2015-05-21T08:59:59
null
UTF-8
Python
false
false
883
py
models.py
""" Definition of models. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from django.db.models.signals import post_save from model_utils.fields import StatusField from model_utils.choices import Choices #from app.signals import save_csv_data class Files(models.Model): ti...
5720852edc46def4157bdc2d99d6dc4e71ea6c0d
7793efd217543190d0b626702ab9693efbcf3f39
/mileage/levels/opening_level.py
4cc67517c2d54ebd00b68340ba15a1477756accf
[]
no_license
chrisortman/mileage-tracker
7b42c710818b6441cd5f48ba3d075461490acb9f
330d7f3545cd1a25d3198cfb2f1f8630d414d833
refs/heads/master
2023-01-07T07:33:03.977173
2016-12-01T14:17:40
2016-12-01T14:17:40
70,156,070
0
0
null
2022-12-26T19:59:27
2016-10-06T13:22:51
Python
UTF-8
Python
false
false
73
py
opening_level.py
class OpeningLevel(object): def enter(self): return "You win"
2324a6cf4d3165e5f56113c3cd2646681038ec01
e2caf82823df9f0b5b4631a791ae5a6c8948d8ce
/cplxmodule/nn/masked/__init__.py
430347f76f7aa01519ddfd6a52e8a99fc6831cd9
[ "MIT" ]
permissive
joerenner/cplxmodule
0b451e0d246e0220f8afca654f143d44b278c7ff
b21b8355460b5a08819271ae17afb96cee8a5064
refs/heads/master
2020-12-07T12:16:55.684430
2019-12-26T09:17:29
2019-12-26T09:17:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
__init__.py
from .real import LinearMasked from .complex import CplxLinearMasked from .real import BilinearMasked from .complex import CplxBilinearMasked from .real import Conv1dMasked, Conv2dMasked from .complex import CplxConv1dMasked, CplxConv2dMasked from .base import is_sparse, named_masks from .base import deploy_masks, bin...
7581ef504a70954474a56a71735cbb2d67b45b3e
bd5d0c48ed686dd833207e1e1b9d1d04ef454c08
/DJangoProject/MySite/Main/forms.py
f5afc2072a5a4cb6e0b0f61934d9c5be26e6977e
[]
no_license
SoongMoo/DJangTest
9f5a12e1dfdcb9d94c7b4cec84aefd7c1bae6f35
33bafd593107aaf8071a554a164a5b85e131f677
refs/heads/master
2021-03-06T03:23:28.754341
2020-03-10T01:11:17
2020-03-10T01:11:17
246,176,686
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
forms.py
from django.forms import ModelForm from member.models import Member from django import forms from django.utils.translation import gettext as _ class SigninForm(ModelForm): #로그인을 제공하는 class이다. class Meta: model = Member widgets = {'USER_PW':forms.PasswordInput} fields = ['USER_ID','...
90fcd38a817c479601cde2e37cf44833abde77f5
e3ef57df647d944304831e6dd3cfbcc54c5a5de0
/services/get_histories/src/endpoint/get_histories_flow.py
0704733dd1e49787fe3aa11f3ebf67b0c3129f7d
[]
no_license
Maurck/clinicHistoryAPI-lambda
82ee62615ff80312b5eb16c6a4a1e2ed6e975ecb
ae089cfa1a19be421bd38ad91be022670a7b5560
refs/heads/master
2023-08-11T14:36:46.609390
2021-10-02T02:39:32
2021-10-02T02:39:32
411,919,725
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
get_histories_flow.py
from models.history import History from flask import jsonify class GetHistoriesFlow: def __call__(self): histories_list = History.objects() if len(histories_list) > 0: users_jsons_list = [] users_jsons_list = list(map(lambda history_obj: history_obj.to_json(), histories_l...
be599db2384b3345d598fa01c9439172f5333cf4
b0551041d019a7a8703e26eda2f81a0a404a4e78
/y01053f.py
6e2fa6148b2e20d118ed1defffcad40191952369
[]
no_license
shiyushui5/python_py
be1a9e8d2825ec9fab658ce5f9fd3fbb0c785028
c5fa09cdd134d01f397fdbe21180599f1535426f
refs/heads/master
2021-01-12T01:02:08.756523
2017-01-12T11:44:44
2017-01-12T11:44:44
78,334,949
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
y01053f.py
#前提条件是 函数(以.py格式存取)和主程序在同一个文件下 import y01053 #定义函数的文件名 y01053.make_pizza(13,'pepperoni') #定义函数的文件名加上函数名 y01053.make_pizza(250,'mushrooms','green pepers','extra cheese') y01053.make_bing('blue','sugar','tasty','delicious') from y01053 import make_pizza make_pizza(250,'mushrooms','green pepers','extra cheese') from y...
65e5ecad63ecc457a760a1f5b508af1ee93d3cd1
4c6704a4c03a67e45a10454387f6be45ff834255
/smoosh/smoosh.py
44565b0fd0adee63a8dc1c0589e8b159e6d6cf20
[ "MIT" ]
permissive
wcarhart/smoosh
f33a649e22ad1a4b3a21148eecde24ad377de373
85a61f5394456e4f045184dedacc81a1075a8a06
refs/heads/master
2022-12-11T05:05:27.029580
2020-10-29T16:56:21
2020-10-29T16:56:21
136,751,021
2
0
MIT
2021-06-02T03:19:46
2018-06-09T19:15:08
Python
UTF-8
Python
false
false
11,871
py
smoosh.py
import argparse import bs4 import os import re import requests import signal import sys import unidecode # determine if text is processed or not PROCESSED_TEXT = False # we can't split sentences on abbreviations that end in a '.' ABB = [ 'etc', 'mr', 'mrs', 'ms', 'dr', 'sr', 'jr', 'gen', 'rep', 'sen', 'st', '...
170d384a1f8032e280b8f2942691064bd9f3e093
4973c3173f8f35de8a2ee56a85712255acd9ba8e
/misc/trainingSeqs2SVMlightIterative.py
cf42e8831abf5d79c125312a5a2d6fd0850c1d98
[]
no_license
hellowangqian/freeIbis
0081ca807e5be08b0ebf7fc64f9de3a9e71a927a
2dcf022bf40793c12d226c17d68583683e74e057
refs/heads/master
2021-01-21T07:53:37.548690
2015-02-05T14:58:30
2015-02-05T14:58:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,414
py
trainingSeqs2SVMlightIterative.py
#!/usr/bin/env python # -*- coding: ASCII -*- """ :Author: Martin Kircher :Contact: Martin.Kircher@eva.mpg.de :Date: *23.02.2009 """ import sys,os import shelve from optparse import OptionParser from optparse import OptionGroup import gzip import time import subprocess import math import random if (len(sys.argv[0]...
4adeeb82f6d721211229db1676e192ad8af71efa
6deafbf6257a5c30f084c3678712235c2c31a686
/Exploitz/AsVezesSim_exploit.py
bcf947ba8d967800ac74ad7d2da3c71f42fbac87
[ "Unlicense" ]
permissive
thezakman/CTF-Heaven
53fcb4a72afa821ad05d8cc3b309fb388f958163
4b52a2178922f1502ab00fa8fc156d35e1dc653f
refs/heads/master
2023-04-05T18:20:54.680378
2023-03-21T13:47:45
2023-03-21T13:47:45
167,290,879
182
24
Unlicense
2022-11-29T21:41:30
2019-01-24T02:44:24
Python
UTF-8
Python
false
false
248
py
AsVezesSim_exploit.py
import urllib2 import requests URL = "http://158.69.155.190:1337" r = requests.get(URL + "/console?__debugger__=yes&cmd=resource&f=flag") print r.content r4 = requests.put(URL+'/_getFlag?__debugger__=yes&amp;cmd=print"ls"') d = r4.text #print d
1a57b7d6d79c32cdaa82fcaea9b54098ddf9be39
59e48e9bea3127a3dbc7ee004b69345a81bcc83e
/submit_orders.py
31ec3c5fba2d7e5a99f462106b3178f719835d00
[]
no_license
PaulGommard/Trading_Algo_Project
8fc5ce3433638b0794cbb5802c0dd23ab1f3d87e
60c4b1e60a0355cb25b068d41854a398ce609337
refs/heads/master
2023-03-04T23:01:00.782175
2021-02-14T19:50:14
2021-02-14T19:50:14
331,703,981
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
submit_orders.py
import alpaca_trade_api as tradeapi import sqlite3, config connection = sqlite3.connect(config.DATA_BASE) connection.row_factory = sqlite3.Row cursor = connection.cursor() api = tradeapi.REST(config.API_KEY, config.SECRET_KEY, base_url=config.BASE_URL) def Buy(symbol): api.submit_order( symbol=symbol, ...
5bc703cb5a87094216e1231e9663046e1f6e89c7
25e3e355af50ca416277c0b96a81bba01de777db
/sysLog/models.py
1e80a4fd7e396fa3e33e50b9dac64b7a1677e7bd
[]
no_license
JANATI-IDRISSI-Imad/logs
1395462ce3b8e1d550d268fe20b543397ab8238a
f201b69cc681afcf07d27107944b117654948743
refs/heads/master
2022-10-19T06:57:20.485025
2020-06-14T11:24:51
2020-06-14T11:24:51
267,449,053
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
models.py
from django.db import models from mongoengine import * from datetime import datetime # Create your models here. class syslog(EmbeddedDocument): local = StringField(required=True) date = StringField(required=True) service = StringField(required=True) message = StringField(required=True)