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
ba72af921a9562d748bcd65f1837ea8eb5da5697
9d2cf43d3acc37feedad17fe59ff34af894245b5
/HTSOHM/bin/mat17.py
ab73569145cfa8095bf62fb71fdd55a77f7b82e3
[]
no_license
akaija/pseudo-mat
4afcc8df12458b1b95cc500027e55bb1a056e9a1
7e94175d67ca6d27035727f9d518ca2e5140174e
refs/heads/master
2021-01-16T18:45:27.437969
2015-08-26T00:56:03
2015-08-26T00:56:03
28,607,689
0
2
null
2020-10-14T21:37:34
2014-12-29T21:49:48
Python
UTF-8
Python
false
false
15,599
py
mat17.py
from random import choice, random, randrange from math import fsum import os import numpy as np def mat17(N, ATOM_TYPES, ndenmax=0.04302, ndenmin=0.0000013905, xmax=51.2, xmin=25.6, ymax=51.2, ymin=25.6, zmax=51.2, zmin=25.6, epmax=513.264, epmin=1.2580, sigmax=6.549291, sigmin=1.052342, qmax=0.0, qmin=0.0): #epmax DE...
dab1adcd185092fc425b5d87150f27e7b67bff6c
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba0563.pngMap.py
f953f0bab46a2f38301e4164c6bf04149fda7205
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba0563.pngMap.py
ba0563.pngMap = [ '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '0000000000000000000000000000000000000...
924fd89a835528fa28e1226912a2e4be9c4e1d5d
f908538808a9cc447522d391f8c1ae74cdb2fefc
/google_product_feeder/tests.py
057e020a72a89a74f7819764cd2293e989e0e1aa
[]
no_license
willv/django-google-product-feeder
48739470cec4dc20f8946af4d52207a44fdde7b7
2c98851030102e82cff0f334191b8127441042c8
refs/heads/master
2020-08-03T10:48:44.904865
2016-12-27T10:19:00
2016-12-27T10:19:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,219
py
tests.py
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.test import TestCase from django.core.urlresolvers import reverse from google_product_feeder.feed import CSVMerchantFeed, MERCHANT_FEED_COLUMNS CSV_HEADINGS = ','.join(MERCHANT_FEED_COLUMNS) + '\r\n' class AttrNameF...
99a6b450792d434e18b8f9ff350c72abe5366d95
da348f525a4256c95bee7c71358fd3441e5189ca
/Python 第八周作业/20171029 4.4.3.3.py
6d0e1ff628bbecaf569d43e341cf4134d3661d7a
[]
no_license
bwz3891923/LearningLog
5c7aa4a0f08fc5523f8642af41e4cf56ad3f83ec
742cff9dfac50aa5266a4996ea65e980f8c66282
refs/heads/master
2020-04-23T13:39:26.123005
2019-02-20T07:32:02
2019-02-20T07:32:02
171,204,390
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
20171029 4.4.3.3.py
try: alp="ABCDEFGHIJKLMNOPQRSTUVWXYZ" idx=eval(input("请输入一个整数")) print(alp[idx]) except NameError: print("输入错误,请输入一个整数") except: print("其他错误") else: print("没有发生错误") finally: print("程序执行完毕,不知道是否发生了异常")
3c9302b5cb92e5103ed16ec56e1b349f0662950c
ddcd6959ae7fdbf15f71a63fc0c8ec4c3d3edcea
/finish/wall/admin.py
d4826c4db114cb078177ce94d6b505fe7713ad38
[]
no_license
Jhyrus/score
40d768f5eeaebb115901431b4680d3be35480384
cb8eff9a8f4fa55922994837482f286884913f5c
refs/heads/master
2020-06-07T03:07:34.420463
2013-12-09T18:20:37
2013-12-09T18:20:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
admin.py
# -*- encoding: utf-8 -*- from django.contrib import admin from finish.wall.models import (Autor, Category, Announcement, Banner, Caricatura, Video, TypePost, Post, Phrase, TypeGalery, ImageGalery, Sponsor) class AutorAdmin(admin.ModelAdmin): pass ...
ab352c9431fda19bc21a9f7ffa075303641cca45
2734b77a68f6d7e22e8b823418ad1c59fe1a34af
/opengever/api/listing_custom_fields.py
41fd79902fff008f4d80addc1dc49b16a7bf5c46
[]
no_license
4teamwork/opengever.core
5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1
a01bec6c00d203c21a1b0449f8d489d0033c02b7
refs/heads/master
2023-08-30T23:11:27.914905
2023-08-25T14:27:15
2023-08-25T14:27:15
9,788,097
19
8
null
2023-09-14T13:28:56
2013-05-01T08:28:16
Python
UTF-8
Python
false
false
1,695
py
listing_custom_fields.py
from opengever.propertysheets.assignment import get_document_assignment_slots from opengever.propertysheets.assignment import get_dossier_assignment_slots from opengever.propertysheets.storage import PropertySheetSchemaStorage from plone.restapi.services import Service LISTING_TO_SLOTS = { u'dossiers': get_dossie...
43e721ac45570e4f9ab9c1970abee3da6db40afa
0d7853380c124b7509893d3e3bbad3af3da14e58
/zone_migration/strategy.py
d29f86fc7618ef48b66709f3838e49a5ed85fdff
[ "Apache-2.0" ]
permissive
nec-openstack/watcher-zone-migration-plugin
a0724b4b0f21ba22ea5ca564eebdb16bd6e4a46d
9437d08a4e36e03d673308ce8bc410438997d8d8
refs/heads/master
2020-06-11T10:50:36.789280
2017-02-09T09:37:56
2017-02-09T09:37:56
75,684,621
0
0
null
null
null
null
UTF-8
Python
false
false
5,489
py
strategy.py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
07ac061d7d1eaf23b6c95fbcbf6753f25e568188
762490e55473ecc78f823068fb869707ef5d21fc
/audio_loader/load_single.py
9916b86902d8532259bb22d632453ba5c2f1eded
[]
no_license
vpurush/speech-reco-partial-dataset
8bdf6c8a65900838dbd9342d8e40a90875a13920
3ded8d5b32e5bb73cb2c5c16548f376725ef6ac4
refs/heads/master
2021-07-10T17:14:30.938446
2019-11-11T04:58:44
2019-11-11T04:58:44
200,060,630
0
0
null
2020-09-26T00:02:17
2019-08-01T13:58:02
Python
UTF-8
Python
false
false
1,578
py
load_single.py
from scipy.io import wavfile import numpy from matplotlib import pyplot as plt import librosa import noisereduce def loadWavFile(fileName, filePath, savePlot, maxAudioLength, reduceNoise = True): # Read file # rate, data = wavfile.read(filePath) # print(filePath, rate, data.shape, "audio length", data.shap...
bb481fa038835abc6d61a4985b1e30c7c00bff96
6e88b7c4be352b849ee52f5127477f899862760d
/glitchfx2/util/generators.py
f87a291168569148cbe35c67ad108983240ae170
[ "MIT" ]
permissive
anartisticengineer/GlitchFX2
1be3ced4e2c36384c3f40152a043a809056d4073
fa2ea9e4e04edb324832586e92f9c4962a6a786c
refs/heads/main
2023-08-27T16:16:20.381035
2021-10-19T01:52:54
2021-10-19T01:52:54
334,165,713
1
0
null
null
null
null
UTF-8
Python
false
false
106
py
generators.py
def pixels_generator(w, h): i = 0 while i < (w * h): yield divmod(i, w) i = i + 1
b6824251b1165ca6c66049d40c79fccee6bc7d3a
320f541194d58cd2b18f2bef34af883a84fd3a8b
/yphapp/models/user.py
d22f8b9c3850be49b67f66f8483318b686ed0dd3
[]
no_license
mgx307113628/yunpeihuo
e0c0272a4699336b4d5340f6f577d78146973c34
f93298cc0906e2765dc93c34a2dceafbb6eee130
refs/heads/master
2021-08-14T12:01:06.176003
2017-11-15T16:36:14
2017-11-15T16:36:14
107,109,291
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
user.py
from .. import db class Account(db.Model): id = db.Column(db.Integer, primary_key=True) acc = db.Column(db.String(50), unique=True)#TODO 调整长度 pwd = db.Column(db.String(50))#TODO 调整长度 name = db.Column(db.String(20)) sex = db.Column(db.SmallInteger) idno = db.Column(db.String(20)) phone = db...
38fd1390879079964636a6b5757e8767cb222d3a
df0ba328fd5888cbe4107abfc4d8844528856952
/schoolmanage/app01/migrations/0003_auto_20171103_2005.py
5b43a18458eeb8302da261ecb9d71d55c521ac35
[]
no_license
TakeMeHigher/python
adc722f27666b3e84598467d4463ad2fe76803be
4dd67cbf821646ae350e9372dc79a6d21b2f0675
refs/heads/master
2021-08-23T20:27:33.355951
2017-12-06T11:59:16
2017-12-06T11:59:16
108,710,843
0
1
null
null
null
null
UTF-8
Python
false
false
691
py
0003_auto_20171103_2005.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-03 12:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app01', '0002_auto_20171103_1637'), ] operations = [ migrations.AlterField(...
fc5c46fc3bfdebdbf4e2980b4fc9ff53c6e8b730
cfb5afe81701fa29c45c3fd759b0ebd46e2eb076
/onmt/modules/sparse_losses.py
ea21b2e3bfba8b3fc6c9cd6a857e2f27c612640f
[ "MIT" ]
permissive
OpenNMT/OpenNMT-py
00b533d451d6a2b907a41f531898c3d70830f16e
2b13ed1a0f50d4555d2e1d8729a2de42940be5e4
refs/heads/master
2023-09-03T17:44:52.635771
2023-08-29T13:18:14
2023-08-29T13:18:14
82,841,862
6,680
2,749
MIT
2023-09-13T14:00:30
2017-02-22T19:01:50
Python
UTF-8
Python
false
false
2,747
py
sparse_losses.py
import torch import torch.nn as nn from torch.autograd import Function from torch.cuda.amp import custom_fwd, custom_bwd from onmt.modules.sparse_activations import _threshold_and_support class SparsemaxLossFunction(Function): @staticmethod @custom_fwd def forward(ctx, input, target): """ ...
dd93ae12fd9513b65856da495edde1b91e07d3b6
351ec2615e24fcb9715c84a15e732cfe1adcbdb9
/OGameAPIStorage.py
22d93d58ec042735c17ade02684d8bb0b5017ea0
[]
no_license
btx78000/Python-OGame-Bot
ec3a292812a6afc47fc169eb2daa3b195b1cae66
6ec5a17b96ec71deb49bf7212a7e876e841b099d
refs/heads/master
2021-01-01T19:38:17.388038
2015-06-21T21:38:23
2015-06-21T21:38:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
OGameAPIStorage.py
from OGameAPI import _Entity class _Storage(_Entity): def __init__(self, browser, cost_increase_factor, base_costs, id, link): _Entity.__init__(self, browser, cost_increase_factor, base_costs, id, link) self.storage_capacity = int(2.5 * pow(2.7182818284590451,(20 * self.level/33)) * 5000)
36ce98e583be1bca98061a8e8ecd85ef286055a8
63dfb7ebdf76acbf503e9cfd54e982f0afb7e5dd
/dashboard/migrations/0001_initial.py
0fb0d787ccd8afbaaaaa42b2cee2b6551a20a0ab
[]
no_license
shaik101/elixir
94947eec333beb4c2d4eab77cc6fe1c2c24fd37e
80526f5f26fc66ef200e487f8d33d1e34cc60b33
refs/heads/master
2020-11-30T19:17:18.342280
2019-12-27T15:06:24
2019-12-27T15:06:24
230,461,495
0
0
null
null
null
null
UTF-8
Python
false
false
4,500
py
0001_initial.py
# Generated by Django 2.2 on 2019-12-26 19:21 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('beautyapp', '0001_initial'), ] operations = [ migrations....
70045f921c59446f18a40970c47052142edea351
ad55d5ce3b838bacb564eeed01b51b44e06ae82f
/src/event.py
f6c3286ae52c171649b48d3cba3469b2a5cdf7b7
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jedestep/atlantic
fd082cb12b61a5bb959a5e0124303dbb6ff98542
516466eb74bb8f13dc0433d968a9e13e8c43fd9e
refs/heads/master
2021-05-27T16:17:58.496779
2013-12-25T16:22:33
2013-12-25T16:22:33
15,437,592
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
event.py
class Event(object): ''' Represents an event, eg, a collision taking place ''' def __init__(self, name, reporter, target): self.name = name self.reporter = reporter self.target = target
0fc798c49700c5321b0811d15923a3c97e100865
f49701d875b097f10d54454ffc5bbe53f3a14f46
/apps/account/search_indexes.py
b7953fca2570e1983aa1ef6352fa8d5f7e29bf5a
[]
no_license
B1aZer/Lionface
b2f8f298abb8a128c89e81677981006707a4db62
fbcdd6e5c1b4f477e10348be516b90e76990e9eb
refs/heads/master
2021-01-23T13:23:07.539625
2014-09-17T13:20:10
2014-09-17T13:20:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
search_indexes.py
import datetime from haystack.indexes import * from haystack import site from django.contrib.auth.models import User from .models import UserProfile class UserIndex(SearchIndex): text = CharField(document=True, use_template=True) username = CharField(model_attr='username') email = CharField(model_attr='ema...
73bba7396c9f090cb21b9a0bf22efa3ff91a321e
48efca400fb7019ada2879056edff330692ec555
/batch_analysis/batch_comparison.py
6112bcbb7fb6de92da2216f2c98e78fabff11e25
[ "BSD-2-Clause" ]
permissive
jskinn/robot-vision-experiment-framework
06549fd6724b00e39578d249c151a5d860de1754
42f1e9830893cd46eb27d5c5b72c4caea858430b
refs/heads/master
2020-12-03T05:12:34.679298
2018-01-08T01:00:24
2018-01-08T01:00:24
95,743,497
0
2
null
null
null
null
UTF-8
Python
false
false
4,360
py
batch_comparison.py
# Copyright (c) 2017, John Skinner import copy import database.client import core.trial_comparison import util.dict_utils as du import util.database_helpers as dbutil def compare_results(benchmark, database_client, config=None, trained_state_id=None): if (not isinstance(benchmark, core.trial_comparison.TrialCompa...
4e34ad1df0a1f9b8f0c3062a4b0feefc91a4b1b1
eb65a0230a13bce36b8124b21a4b8d01bb852ef3
/keras_tensorflow/models.py
c0221600fd98d8f57ad69cbb2a1eabe9d89e20a3
[]
no_license
Diegone93/EyeStatus
cd603382dba9bbd6e58a9bdf838f7a07f3301644
c6085989f26d7513742ddc330dd359689c924f68
refs/heads/master
2021-07-16T02:49:16.333698
2017-10-17T12:44:08
2017-10-17T12:44:08
107,266,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,271
py
models.py
from keras.models import * from keras.layers import * from keras.optimizers import Adam def EyesStatusNet(input_shape=None, weights_path=None): if input_shape == None: input_shape = (1, None, None) input_image = Input(shape=input_shape, name='input') x = Conv2D(64, (3, 3), activation='relu', nam...
a8ed0d8df9cf72be5ecfb2aaf53d601054aa4b40
3c11a00a17d7e9c9a013f9f0d6e1bb248981cf15
/proj_euler_13.py
e4072f4fcda2fcc9224cc7893ff938e93402aa34
[]
no_license
CarleneL/Project-Euler
babf112b1c193eb25c7fa7dee5e88b31b2dbe7f8
e8b296be08d15c12ef8c7d1324dd917e2d253582
refs/heads/master
2021-01-10T18:13:31.441061
2016-02-16T03:34:04
2016-02-16T03:34:04
50,974,201
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
proj_euler_13.py
''' Project Euler 13 Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. ''' long_numbers = [] with open("proj_euler_13.txt", "r") as f: long_numbers=f.readlines() print str(reduce(lambda x, y: x+y,[int(i) for i in long_numbers]))[0:10]
a7951fdf9491b0ea63285e81919e509829475df8
63686391eafb108fc84e28a1ad464cf44aa5bfaa
/handler/SubjectReReRe.py
b4c81e699d726fef872eafeb021da9016eb2ec2c
[]
no_license
fumiyas/mailman-hack
63bb7c736fcab674445e95da34a75a276c810230
994ab39183528503bc773ebc41cfe26f716b3ed4
refs/heads/main
2023-07-26T22:09:03.194828
2023-07-24T07:12:22
2023-07-24T07:12:22
11,339,253
6
1
null
null
null
null
UTF-8
Python
false
false
2,266
py
SubjectReReRe.py
## Mailman 2.1: Fix "Subject: Re: Re: Re[2]: ..." to "Subject: Re: ..." ## Copyright (C) 2014-2022 SATOH Fumiyasu @ OSSTech Corp., Japan ## <https://GitHub.com/fumiyas/mailman-hack> ## <https://www.OSSTech.co.jp/> ## ## This program is free software; you can redistribute it and/or ## modify ...
c9eb324b606fd5bdfba5c42bcb4f2858cd7efe2c
66d93d764bc58432e821d1b24c19ebe1ec4a0b02
/acq4/devices/SutterMP285/SutterMP285.py
e2094624512a63d3686d14b9255fc4e199b1be52
[ "MIT" ]
permissive
acq4/acq4
954d1169ab8d7c0851d2e0c9ad2c8f98ad0185e7
e5ffd699549df96d6ac32a7fe4fe5869e0dcb2af
refs/heads/main
2023-07-11T16:16:11.034274
2023-06-30T14:32:14
2023-06-30T14:32:14
14,591,961
57
39
MIT
2023-06-03T15:40:28
2013-11-21T15:50:34
Python
UTF-8
Python
false
false
17,658
py
SutterMP285.py
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import with_statement import os import time from copy import deepcopy import numpy as np import six import pyqtgraph as pg import acq4.util.debug as debug from acq4.devices.Device import Device from acq4.devices.OptomechDevice import Optom...
5cd2987782b4121115db5b46d3ef7b4e9f4d697a
66cf704739d2b65ce109cf141eb8ed354197011a
/python/photred/photred.py
a8b82426053d097acf2b776e168b940e40427780
[ "MIT" ]
permissive
dnidever/PHOTRED
6c3bf30445ccecf5c156e8aca57fa83c04bf78f8
acfd431c4e7081137c6aaf43c0520394ca5649f6
refs/heads/master
2023-06-09T19:28:55.177877
2023-06-07T21:09:45
2023-06-07T21:09:45
29,029,236
8
6
MIT
2018-08-03T09:27:30
2015-01-09T18:22:36
IDL
UTF-8
Python
false
false
1,302
py
photred.py
# This is the main PHOTRED python program # Need something that checks what "mode" we are in. # Need a parser # We are actually running something # Load the list of stages # Load the setup file # Make sure that all of the stages actually exist and work # Stages Loop stagelist = [] for stagename in stagelist: ...
6988e129bc855e90af7dbe6d4cc2e0843a6a39d8
ee7f5e91e5d0fd83cc37f405a67f655038061cbe
/delivery/delivery/ext/auth/admin.py
47e11a578d1edfdb472c0458478261a86c93d632
[]
no_license
gabrielsgradinar/curso-flask
6f2b64df20214c10b623ddc8cb906d95bed6ca94
696baf7d9fcc1f6b9156b9b75637a36c411a5689
refs/heads/master
2022-11-30T21:33:10.929087
2020-08-13T23:39:09
2020-08-13T23:39:09
270,052,153
0
0
null
null
null
null
UTF-8
Python
false
false
1,467
py
admin.py
from flask_admin.contrib.sqla import ModelView from flask_admin.actions import action from flask_admin.contrib.sqla import filters from delivery.ext.auth.models import User from delivery.ext.db import db from flask import flash, Markup # self - propria instancia do admin def format_user(self, request, user, *args): ...
f8f3af9f8e37477dbd39822635bd480a4bd976fc
c5d6cdee95b3a897d05b38a15c3a6a4b0d1e9462
/analyser/main.py
eaf1f823a86676e31f1476841832c3a008bcffb8
[]
no_license
kevinhartyanyi/BSC-Thesis
7191b52a4702714eebed62672b027410f0f0ea28
0a3f7f8ba9db9bf9bba6ed24bd9a996de62cf915
refs/heads/master
2022-07-12T23:04:02.486002
2020-04-28T13:51:54
2020-04-28T13:51:54
240,210,520
0
0
null
null
null
null
UTF-8
Python
false
false
11,721
py
main.py
from fbs_runtime.application_context.PyQt5 import ApplicationContext from PyQt5.QtWidgets import QMainWindow from PyQt5 import QtCore, QtGui, QtWidgets, QtMultimedia from PyQt5.QtCore import QThread, pyqtSignal, pyqtSlot, QObject # https://github.com/pypa/setuptools/issues/1963 from mywindow import Ui_MainWindow from ...
4e95b2b9150180fd83da5b4eea5a896ef942f9b9
9f70931c6c49beb4ae73287f5fb216ec77bef048
/meraki_2.py
213be2ca96c85d13d62db77831d74d4307e28123
[]
no_license
Gulnaaznasrin21/File-naaz
e31129cf3eb9b807c0c783ca048fee5147b73dfd
3db675ee6813708f315dadd23e9bec422fa68c50
refs/heads/main
2023-07-18T04:09:56.809570
2021-09-05T09:43:53
2021-09-05T09:43:53
403,269,184
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
meraki_2.py
f=open("exercise.txt") file_data=f.readlines() print(file_data) f.close()
bf6a0da59a1c314f7aae85f9ea53419ddd1ed0cf
304367e02e25cc1d40878ca0fccb8273a2da4301
/baseA/app/services/finance_personal_service.py
718ee0959ac353e5d2b77d130200c3a713c68470
[]
no_license
lucasmcast/finance-api
04da088ed508ed7e18bf9e50cd7f3e057a9eeb0f
e03bc886d6bb8001620b1947a4cb922605ec441d
refs/heads/master
2022-12-09T11:31:13.537287
2020-09-22T03:57:13
2020-09-22T03:57:13
297,144,670
0
1
null
null
null
null
UTF-8
Python
false
false
656
py
finance_personal_service.py
import requests """ TODO: Classe precissa refatorada para obter a conexão do eureka server e os dados de login da variavel de ambiente """ class FinancePersonalService: """Classe responsável por fazer as requisições para a base b""" def __init__(self): self.login = "lucas@lucas.com" self.p...
ee1e2d4f5c2c7f6167c411e307e97371c0c7c60b
7cc340b69f95dff83e446082e88a9e3c90ccfab7
/init_ubuntu.sh
4bbdeda6136e9b4f7474af79140148a61a735f21
[]
no_license
ahua/bash
39091c42f01917c1c90500ed54184d6ecb8fd1b9
af2fd324337d64410a2950024966f634dc055f1e
refs/heads/master
2021-01-17T13:42:25.031638
2016-06-23T11:05:18
2016-06-23T11:05:18
5,204,517
2
0
null
null
null
null
UTF-8
Python
false
false
403
sh
init_ubuntu.sh
#!/usr/bin/env python sudo apt-get install redis-server sudo apt-get install -y ipython python-pip sudo apt-get install -y build-essential tree terminator emacs23-nox vim sudo apt-get install python-dev sudo pip install tornado pymongo pyredis SQLAlchemy sudo apt-get install libmysqlclient-dev sudo pip install thrift...
24c5f5a7252d2c13ab7d4dfc8974ca4867f8325a
623a16d322e26add39ee25d09f0fadb88543a811
/pancakes.py
a8eda52806633c8f86f1d1b1638c3c8b102c9096
[ "MIT" ]
permissive
jmnel/combinatorial-optimization
27d26d0a114bb00e663c8999dc8b134db26e4fea
c921dee6cb0febc47a8a791f8220b02b35caf0cf
refs/heads/master
2020-12-28T10:48:36.617605
2020-04-14T09:43:25
2020-04-14T09:43:25
238,296,504
0
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
pancakes.py
#!/usr/bin/env python3 import astar import numpy as np def solve_pancakes_problem(): """ Sets up and solves the Pancake Sorting problem. Problem state is encoded by labeling pancakes from smallest to largest. Profiling metrics are returned to caller. """ # Initialize initial state for A* al...
0301dfd1aab8bbddfc2481b4b8d3e0ad7bbe896c
98b7fb3bcd9c7e6c2ca8f6061287490f42bbb492
/flamingo_proj/profiles/views.py
649ebbdf783e0c03ad34da7df4836d310890224f
[]
no_license
gitter-badger/project-flamingo
2dae28589cb59c2bef6e83f983f6abd98fee6bdc
0c32cb34cab1698756e311e41e6cdba35bff61ea
refs/heads/master
2021-01-24T09:01:08.449912
2016-09-26T10:26:26
2016-09-26T10:26:26
69,245,465
0
0
null
2016-09-26T11:57:35
2016-09-26T11:57:35
null
UTF-8
Python
false
false
2,132
py
views.py
from django.views import generic from django.contrib.auth.mixins import LoginRequiredMixin from django.http import JsonResponse from models import Profile from posts.models import Post class ProfileView(LoginRequiredMixin, generic.DetailView): model = Profile template_name = 'profiles/profile.html' def ...
0c3173143313c400967ee9b8c743d720e2ca1f86
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_algos/gbm/pyunit_calibration_isotonic_gbm.py
c58cf11f2594c7cd5428843790098fc9e41bf8d9
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
2,259
py
pyunit_calibration_isotonic_gbm.py
import sys sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator from h2o.estimators.isotonicregression import H2OIsotonicRegressionEstimator import numpy as np from pandas.testing import assert_frame_equal def calibration_test(): df ...
220ae789b4ad24b16f6bce9709abd879ec03cc8b
c0c38e9f36739a53023e9955961e5087a3162c4a
/p079.py
945d311cc423c6164f4317cec0d8a5050c4f77c8
[]
no_license
henrywallace/project-euler
c8fd299d2f4475f13349bd305dda69203c291220
70d2b7e7f3a1919ca491dfb9d33f76a38b1bfa26
refs/heads/master
2021-01-10T10:43:16.120227
2017-05-07T20:24:24
2017-05-07T20:24:24
51,086,868
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
p079.py
from collections import defaultdict from functools import reduce graph = defaultdict(set) unique = set() with open('p079_keylog.txt') as f: for a, b, c in map(str.strip, f.readlines()): graph[a].add(b) graph[a].add(c) graph[b].add(c) unique.update([a, b, c]) def find_path(graph):...
7cd591e772b44b2b9e3dd39f005850bf6d033ebf
ad764f62b49a6ae2c93783dfc5ae9b639b0994e5
/Python-handson/basic/function_scope.py
74dbc3a34484def16d4495981c262506ed5b3a78
[]
no_license
shionit/til
a5bc9470b25dad061cc3a62b02860e0ae4c879cd
b0c173459e79782ff32702043c76ef8f39d42497
refs/heads/main
2023-09-03T20:41:35.453993
2023-08-17T14:12:14
2023-08-17T14:12:14
54,536,865
2
1
null
2023-08-17T14:12:16
2016-03-23T06:38:56
Java
UTF-8
Python
false
false
134
py
function_scope.py
# coding: UTF-8 # 関数のスコープ name = "dotinstall" def hello(): name = "taguchi" print(name) print(name) hello()
bc699596d3faffa3672becdd6588bbae4b55726d
7638882c43d99abe5783c76547e4ee4cf9239ac6
/GreenStand/Accounts/models.py
8d26a04d2d6fcfe430a63dc2a015af5ebf0ffa09
[ "MIT" ]
permissive
elenatuparova/Hack-for-Sustainability
83faeb7e7a00cadf52993595d8d14847e3c22312
b58ac49fb9541d56f1a59ac1c0849701ee1f59ad
refs/heads/master
2020-06-11T19:51:05.160713
2019-06-07T08:51:17
2019-06-07T08:51:17
194,066,422
1
0
MIT
2019-06-27T09:33:20
2019-06-27T09:33:20
null
UTF-8
Python
false
false
615
py
models.py
from django.db import models class Account(models.Model): customer_id = models.AutoField(primary_key=True) username = models.CharField(max_length=50) password = models.CharField(max_length=200) first_name = models.CharField(max_length=20) last_name = models.CharField(max_length=20) address = mo...
9569bf7f851b467d9917b833c896eeeb90cecfaa
f0ce4bb0c6e137e593bacef40a3eb410b6809730
/idioma/main.py
a3a13f633c8c59d4977c69762867e2e050982ba6
[]
no_license
lopezdavid79/ISA-convert-texto-a-voz
553aac940a7d94fc6ee4f9adc3826ba76a7248a4
c7c1ca2263592378df06225a2e4b061da98cdf2c
refs/heads/main
2023-09-03T04:33:10.307765
2021-11-08T01:25:21
2021-11-08T01:25:21
425,657,972
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
main.py
from lang import LANGS code = input("escriba un codigo de idioma") print("su idioma es: {}.".format(LANGS[code]))
1fbc309b5b2cc5f8936d392cb63abef8cb813eee
fb70374229c00d0d38c465c0ccb3f79ca04ec7a1
/35-Counter.py
0ebbf9e0e56a1bc7f4ffff90e2a6a5c9d3bf02da
[]
no_license
shakorj/PracticeProjects
1895a0aa0c4fdc51870483ed2c4ab645f61b302f
c9d78170771c8910e290fab8b3cc716d7650d2ac
refs/heads/master
2020-12-01T01:56:45.465395
2020-08-20T18:27:52
2020-08-20T18:27:52
230,535,860
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
35-Counter.py
from collections import Counter # Counter takes a list and counts how many of each element were in the list. fruits = ["apples", 'oranges', "apples", 'grapes', 'apples', 'oranges', 'grapes'] c = Counter(fruits) print(c)
32950b8cb51fddd95321827926b971765fd7c793
556e752f81070a5ce97022e0e8a93b08de3a5ce9
/tests/godfather_tests/test_gf_main.py
ea803a2f159da85fc667206e6c9356eed0056540
[]
no_license
StefanPushkov/Minvid_parking
c6e35cd93d7605697d54d06e4079b01443dfebe9
dd8f8b338533ebd4a348748cb0b8097a7b9873ac
refs/heads/master
2020-07-31T10:03:59.109332
2019-09-24T09:55:41
2019-09-24T09:55:41
210,568,465
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
test_gf_main.py
import unittest import os import cv2 import sys print(os.getcwd()) sys.path.append(os.getcwd()) from godfather.gf_main import GFMain from pentagon.pg_http_client import make_request from config import CONFIG class GFMainTest(unittest.TestCase): @unittest.skip('Image recognition is computationally costly') d...
8bdd325815c7b958aa1c50530b5107bc9baec3a1
fdbc9b0fd9b5d9a0d1bccdefedfb9a0d14f92e0c
/__init__.py
98fd0fc83aa3f1a645de1d6955a6899111a84bde
[ "MIT" ]
permissive
sauvikbiswas/vectorlib
2bdfbc1953e0f84a414b611246bedf1f410207e0
6282621302a308e1123103547443c1be45c59daa
refs/heads/master
2021-01-21T14:01:46.681205
2016-04-01T02:03:54
2016-04-01T02:03:54
34,209,567
0
1
null
2015-04-20T16:14:21
2015-04-19T14:22:10
Python
UTF-8
Python
false
false
332
py
__init__.py
__author__ = 'Sauvik Biswas' __revision__ = '1' __rel_status__ = 'dev' __version__ = '1.0.%s-%s' % (__revision__, __rel_status__) __licence__ = 'MIT' __email__ = 'sauvik.biswas@gmail.com' __desc__ = 'Vector operations in nD space but primarily for usage in \ 3D space.' from vector import vector from quaterni...
82c0fbce2b2f2dc49e3ebb3bc7658b4a6446cdce
92f7318f638a72fddcb40397ac0ec60af4235277
/map/views.py
fbba83dbdea9f429248f31a74c892a406a1215db
[]
no_license
hy2632/project_final
5ec90b819d2293d89b37c8b11a01a432ef0da367
ab66cfa2db92c554de7a2d96804288fc68e49896
refs/heads/master
2021-09-23T07:46:19.784601
2019-12-09T22:28:00
2019-12-09T22:28:00
226,751,615
0
1
null
2021-09-22T18:05:55
2019-12-09T00:16:19
Python
UTF-8
Python
false
false
309
py
views.py
from django.shortcuts import render # Create your views here. from sightings.models import Squirrel # from sightings.forms import SquirrelForm #Build a Form def index(request): sightings = Squirrel.objects.order_by('?')[0:99] context={'sightings':sightings} return render(request, 'map/map.html',context)
056f394ee7c255797a318b8c93e90c6e0bdf1629
40d4fe69e217119314157556f505ff491c06a42b
/listMaker.py
dda99299de2a2d28678b838c355dd4e0a0c113cc
[]
no_license
DM2350/Test
decfde5d3cf0cd41ca6ec40526a60cab1db047da
c5ec47cdda4078f6954924371941f23cc149fe8f
refs/heads/master
2020-03-28T20:59:46.280078
2018-10-02T10:53:44
2018-10-02T10:53:44
149,120,926
0
1
null
2018-09-26T13:11:28
2018-09-17T12:20:37
JavaScript
UTF-8
Python
false
false
1,149
py
listMaker.py
_auth_ = "Per Jaakonantti" _year_ = 2018 from random import randint import csv strings = 6 #CHANGE WHEN NECESSARY capitalLetters = "BCDFGHJKLMNPQRSTVXZ" capLength = len(capitalLetters) longList = [] for i in range(0,100): tempList = list() tempString = str() while len(''.join(set(tempString))) != strings: temp...
80f62c10fe7582c531bfe511e997ba14bdc4dc59
67ac354a3c380980161598acff3665c99c799f0c
/envergo/evaluations/migrations/0007_remove_evaluation_contact_email_and_more.py
ac9f7ad5591a765a9c24f14870008bcaa0a8fd19
[ "MIT" ]
permissive
MTES-MCT/envergo
0c03eef60d22a6910b407064b8bc32a672041edd
3a08f780e149e900c9031f47e5e0aa983707e384
refs/heads/main
2023-08-31T04:43:56.731868
2023-08-25T09:49:44
2023-08-25T09:49:44
383,059,680
3
1
MIT
2023-09-11T12:55:49
2021-07-05T07:55:49
Python
UTF-8
Python
false
false
458
py
0007_remove_evaluation_contact_email_and_more.py
# Generated by Django 4.2 on 2023-08-22 08:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("evaluations", "0006_set_contact_emails_values"), ] operations = [ migrations.RemoveField( model_name="evaluation", name="contac...
0d745a8e37edb643c42e6d2289828b2b79651e4f
08d5f8e8cb6b729d22732cbfe9556ddec67b8b85
/learning_python/fileServer/fileClient.py
152c6a91a195c0d91b82242227765c8b7c00c0d5
[]
no_license
bilbija/hello-world
25943a2390c49765483216f1028fdbb7618e2c0c
0c192f9923cc6a6fb6781e466bf6eef3644fae33
refs/heads/master
2021-01-19T12:22:04.896091
2018-08-24T08:58:15
2018-08-24T08:58:15
69,262,271
0
0
null
2016-09-26T15:19:25
2016-09-26T15:06:38
null
UTF-8
Python
false
false
3,501
py
fileClient.py
#!/usr/bin/env python # Copyright 2018 ... # #++ # Name # fileClient.py # # Purpose # Simple script on the client side for FilelServer # # References # https://www.youtube.com/watch?v=LJTaPaFGmM4 # # Revision Dates # 22-Aug-2018 (ABI) Creation #-- # #- imports import socket import time import sys import os ...
78659d07b67265214eb0799a84052937d558e5de
bd5461be1117b6616a96482a10be6924039293a4
/pdf/models.py
9d6fcece164a793cfc9c336158b829e21bd60c1b
[]
no_license
haider000/CV-generator
1095a93cc13a5fcee03adb0046d37782007e2716
8ee20e63e4aacad3354c58054bf51c3886832e31
refs/heads/master
2022-12-22T12:05:19.509652
2020-09-25T15:54:05
2020-09-25T15:54:05
278,126,597
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
models.py
from django.db import models # Create your models here. class Profile(models.Model): name = models.CharField(max_length=200) career_objective = models.TextField(max_length=2000) address = models.TextField(max_length=2000) email = models.CharField(max_length=200) phone = models.CharField(max_lengt...
86ee311428b6a3997bc5235c5f50af0442a66ff8
7053e3d427f40f0c09dfddcafec95034b4f06d51
/timeStamp.py
6d534dffe5a22b2b9500f0c213cee78fac210517
[]
no_license
draupner1/TimeStampTools
f31f51867a59b91af0c02779455454daa8759537
591fadb14db6e172e19a5ea5638f107b6d476171
refs/heads/master
2020-07-03T03:15:25.543489
2019-08-11T13:29:55
2019-08-11T13:29:55
201,767,144
0
0
null
null
null
null
UTF-8
Python
false
false
2,274
py
timeStamp.py
#!/usr/bin/env python2 import argparse import csv from datetime import datetime # DraupnerData Python TimeStamp postProcessing # example execution: # ./timeStamp.py --hide Play CurrentFile20190731.cvs # ============================================================ def print_it(args, pa, pd, pt): if args.hide != ...
ac7e16b61d87f811918976efe30d07345c6808e6
64b289da0520737025432adf56bc50bdfaf6459f
/Car/migrations/0002_auto_20170203_1308.py
d96cd254b678d94b9663fc541f3397342a12d56b
[]
no_license
yajmliecah/src
390fac55992bd9698cf8ffe72103bd6bb575ce81
387aeffa52c63f05da88ad8610e6327f01c5ff95
refs/heads/master
2021-01-11T18:30:53.148738
2017-02-21T15:41:50
2017-02-21T15:41:50
79,559,338
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
0002_auto_20170203_1308.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-03 13:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Car', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
23d501db11557ee75e3b53db38c192823c420d38
029eccd843e7403503bed731867fa9cf27c0b240
/FaceDetectionMTCNNV2/Tools/utils.py
6d6106a2c703da57eb8a971927270e50b2843f4b
[]
no_license
Aliceyins-dev/MTCNN
3b8c2a8cedcda4b7041c6af85960cb5c30b2a651
ff8c05d431c83ebeda4950b61a4a4b98c373ea1c
refs/heads/master
2021-05-22T02:25:34.272176
2021-04-16T02:32:08
2021-04-16T02:32:08
252,927,469
0
0
null
null
null
null
UTF-8
Python
false
false
2,664
py
utils.py
import numpy as np def iou(box, boxes, isMin=False): """ 计算iou :param box: :param boxes: :param isMin: 是否是嵌套框 :return: """ box_area = (box[2] - box[0]) * (box[3] - box[1]) boxes_areas = (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1]) xx1 = np.maximum(box[0], boxes[:,...
9b0de5edc6bf36e97d2f600ced4eaa17f1bb538c
f082573b4527b36f8fe58ea5b189775b6f699ba1
/utils/cc/tests/primitives/run.py
9bd0ffcd95adc91ebd71e2d82ee1b50d09e37081
[]
no_license
BenJilks/SucklessTools
582704fc97db9e9748d915211472cdacd6968453
d8e97b4c78d7dff9f7ed8b0ae775a5b6c61c59ab
refs/heads/master
2023-03-05T06:04:49.609040
2021-02-13T22:58:09
2021-02-13T22:59:00
250,108,355
1
0
null
null
null
null
UTF-8
Python
false
false
94
py
run.py
#!/usr/bin/python program = cc('program.c') program.no_errors() program.outputs('expected')
2110c16657a2d5e84b20cef978fc4ccfb6450c7f
65a6d8ac4b1355492d882ee14c02dfcf9c0977dc
/3B.py
d2c94a2e1f2a5d6076ab47671ea5c3e8d6a73f8c
[]
no_license
tommytiv/HPM573S18_Thornhill_HW3
4960976c56945d66ce865f231984d4d0513e7d04
50b58c6252df6b4b3d6d1f32d83e6a76c89de0d0
refs/heads/master
2021-05-04T12:56:26.011024
2018-02-06T19:44:10
2018-02-06T19:44:10
120,302,843
1
0
null
null
null
null
UTF-8
Python
false
false
3,436
py
3B.py
class Node: """ base class """ def __init__(self, name, cost, utility): """ :param name: :param cost: :param utility: """ self.name = name self.cost = cost self.utility = utility def get_expected_cost(self): """ abstract method to be ...
98ff2b9894fa272b74b5a6fd1bcb7acb259ec123
ba5e31922c77b99b743b089a99178d7622840a6d
/auction_store/models.py
0c45b9aa01aba3bd30bea6b2a6e4e28fd881a870
[]
no_license
Code-Institute-Submissions/Code-Institute-Project-4
dd5c65f6374eda95f78603e91babc92d0006a9dc
d84a60c846a9dc9034e46da8518bc3b08452da22
refs/heads/master
2021-02-07T06:45:02.568589
2020-02-29T14:46:54
2020-02-29T14:46:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,001
py
models.py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from users.models import Account, Cart from django.urls import reverse from PIL import Image from django.utils import timezone import datetime import pytz class Item(models.Model): image = models.ImageField(...
ba1a265bd3f5360a0e20b07342a6a5dacfdfd781
8d892ed56bf5361bc30fa49e681d770fbf4e3190
/core/nlu.py
82bf7899bd40f21f77c24f4695fc0b0b087fe71e
[]
no_license
dobarco/civic-hackers
41932e9251066008cc5e76f95acbdff5c859686f
f1ee60a6686bcf7d96f9b09d4a81a0e22ea17e9f
refs/heads/master
2023-01-14T04:16:44.703435
2018-06-18T14:16:56
2018-06-18T14:16:56
137,605,483
0
0
null
2023-01-04T05:48:37
2018-06-16T19:30:31
TypeScript
UTF-8
Python
false
false
836
py
nlu.py
from watson_developer_cloud import NaturalLanguageUnderstandingV1 from watson_developer_cloud.natural_language_understanding_v1 \ import Features, EntitiesOptions, KeywordsOptions, CategoriesOptions, MetadataOptions, RelationsOptions, \ SemanticRolesOptions def insights(text): natural_language_understanding = N...
d6b285050d6afe90f5a4158973231257038ce33f
9657137623c998e5267344fa4ba309be4529bb0e
/pyapinizer/tornado.py
8f07d3f7152ac13289d3f6befccf2db3fbce0ef6
[ "MIT" ]
permissive
osoken/pyapinizer
386a086307cec294053f1634345a86614d405a78
785f57ff80be239f91a66dfec3ba9ce4a78a9a50
refs/heads/master
2021-01-12T09:22:46.837366
2016-12-11T15:05:57
2016-12-11T15:05:57
76,154,718
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
tornado.py
# -*- coding: utf-8 -*- import json from tornado.web import RequestHandler def generate_handler(func): class Handler(RequestHandler): def get(self, *args, **kwargs): argdict = dict(kwargs, **self.request.arguments) json.dump(func(*args, **argdict), self) return Handler
240f4af547e209604b6825792a2f0b1cc0cb35b3
efb0ae75d9e0f0099b091d23b8af89bfa90c4e12
/quiz/pslist.py
80f7ddef31eee5cb02624e8eaa4b85ddc0d27346
[]
no_license
kang9693/pybasic5
acb7972584ca13fb5b3ba39c1aedddbdc85bdae6
8dccf13e17c1b83e7f88347ed37d3873e3ba8512
refs/heads/master
2020-12-30T16:59:17.808777
2017-06-11T09:21:30
2017-06-11T09:21:30
91,048,568
0
0
null
null
null
null
UTF-8
Python
false
false
2,771
py
pslist.py
import os import sys import re ### 정규식 이라는것 이용해서 할꺼입니다. #pid 가 값이 정상적으로 체크 되도록 보안하세요. #pslist=os.system("tasklist | findstr 현금인출기.exe") pslist=os.popen("tasklist | findstr 현금인출기.exe") ## command 명령어이용해 실행 결과를 파일로 기록할수 있어요. print(type(pslist)) while True: line = pslist.readline() #if not line:break #f=open("p...
da7568c6b10d9e12e21b69013ab82932d716b7d3
68d22c537557d3b8369c3ef3f4e88cea04fa1209
/old/learn/Learn8.py
ae4ee5655afd4a4e5349b048be6d1308993dc1ce
[]
no_license
clwater/lesson_python
3d245be3b235ced4f40555049c3e695d18f97054
3753427e64dd445c4e8a147a298dea28317a6bd2
refs/heads/master
2021-01-20T18:10:01.770512
2017-01-10T11:16:15
2017-01-10T11:16:15
61,725,068
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
Learn8.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # self.name = name # self.score = score # class Student(object): # # def __init__(self,name,score): # self.__name = name # self.__score = score # # def pr(self): # print('%s : %s' % (self.__name , self.__score) ) # # # list1 = Stu...
d00082b9d952290823f31d6614763614c28c25d5
1c1961f8ed56c6852fd2a43a5c47283eb930767c
/Python/RanjanPaudel/task1/store_result.py
55ec2305ec033417dea7c74084cb465bd897bbeb
[]
no_license
leapfrogtechnology/lf-training
4a2c22d06519c4b49638e5f7519268c9e8f2347a
6d18c6d152a1dddfa6e5711c91321a4d7a745517
refs/heads/master
2023-01-28T16:00:52.805472
2020-09-14T11:40:02
2020-09-14T11:40:02
283,126,079
1
15
null
2020-11-30T07:55:02
2020-07-28T06:48:44
Python
UTF-8
Python
false
false
3,554
py
store_result.py
#!/usr/bin/env python import csv import argparse import datetime import pathlib from text_constants import ( STORE_RESULT_USAGE_EXAMPLE, STORE_RESULT_NAME_HELP, STORE_RESULT_DOB_HELP, STORE_RESULT_SUBJECT_HELP, STORE_RESULT_TOTAL_HELP, STORE_RESULT_SCORE_HELP, STORE_RESULT_STORE_HELP...
124ea3d467c0f77ce527397c742aa2b59144a85b
d1ea426d87f68e512df00a555ea10518372cc300
/google/cloud/bigquery_storage_v1/types/__init__.py
3f1f0498e119fce21eaa71f1c2e0862f5eb35dd0
[ "Apache-2.0" ]
permissive
googleapis/python-bigquery-storage
a3e1f21c926a2230700c00121ece087576d72b57
9550ea666721f5dac5b708e2537de29a9bef7cd9
refs/heads/main
2023-08-27T22:51:32.069495
2023-08-23T22:56:41
2023-08-23T22:56:41
226,992,483
89
40
Apache-2.0
2023-09-14T13:41:24
2019-12-10T00:09:08
Python
UTF-8
Python
false
false
2,406
py
__init__.py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
0395c1d527eeb26ed958fff1c58065bf88c6eb47
81f59ce6af8c11037d4efc8662800d1d63417931
/tensorflow edge OP.py
17051f23f146c52f08b3f9adb7d322a0d096ea40
[]
no_license
m-L-0/18a-LiZelu-2016-363
e9fa7f77ca4146b6892452249340bf9a7e670859
ace2f19bdeaa4f15acf7a56cdbc2e7d1485f652f
refs/heads/master
2020-04-01T16:11:45.176601
2018-12-10T02:29:05
2018-12-10T02:29:05
153,370,069
0
0
null
null
null
null
UTF-8
Python
false
false
5,242
py
tensorflow edge OP.py
import tensorflow as tf import numpy as np #1.边edge #数据依赖 a = tf.constant([[1.0,2.0,3.0],[4.0,5.0,6.0]],name = 'a') b = tf.constant([[1.0,2.0],[3.0,4.0],[5.0,6.0]],name = 'b') c = tf.matmul(a,b) d = tf.add(c,5) with tf.Session() as sess: print(sess.run(d)) #控制依赖 # g = tf.get_default_graph() with tf.control_dep...
d5dd784137bdd57c6f7eee7a94bbbc21065e8218
0a7711063b30b1566ade3cc07f105292e32fe6d6
/scrapy_test/aggregates/result/constants.py
59c6e0660713633fb2572ab4ef62a0b861324c81
[]
no_license
huokedu/dynamic-scrapy
e150a1fc6894e39d6bae37c602a592d57cd22c51
31a47e9810f2039cfe33653e09d7d03242764723
refs/heads/master
2021-01-17T21:33:17.810250
2013-10-05T17:28:19
2013-10-05T17:28:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
constants.py
NEXT_RESPONSE_SEP = u'\n\n==== Next Message ====\n\n'
8159f1164567379b715edcb6d30520a6feda6ffc
6a61667e176b06ccdef07e84d79b382b2fb491bb
/app/skills/views.py
67fda31274915e97898858c44411c6a16e57f068
[]
no_license
vsokoltsov/Interview360Server
333f08f13b33ef88928b3e4b844f60e72ebec809
252b0ebd77eefbcc945a0efc3068cc3421f46d5f
refs/heads/master
2022-12-11T05:38:01.310133
2019-03-24T17:47:09
2019-03-24T17:47:09
95,320,167
2
3
null
2022-12-08T04:54:08
2017-06-24T20:09:08
Python
UTF-8
Python
false
false
1,176
py
views.py
from django.shortcuts import render from rest_framework import viewsets, status from rest_framework.decorators import detail_route, list_route from .models import Skill from .serializers import SkillSerializer from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import TokenAuthenti...
976b452adb483bf893ea15a7b2ae7239b16aa89b
72015ffa94d0748a12b6308b1b9a4d81272fbcbc
/interpretacao_gaussSeidel.py
9553247d3f5837a89c549c1d2a0f70431c2d8ff1
[]
no_license
wagnernegrao/Math-Computational
ba6e633e1ff68c07669462affab43a466d9554ef
9622898a9af86369b30169f164ecbcfc92d804bb
refs/heads/master
2020-04-13T06:32:23.346862
2018-12-29T00:51:27
2018-12-29T00:51:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
interpretacao_gaussSeidel.py
import numpy as np import matplotlib.pyplot as plt def iteracao_GaussSeidel(new_array): x = new_array new_x= np.zeros(2) new_x[0] = 3 - x[1] new_x[1] =(3 + new_x[0])/3 return(new_x) def eq1_Seidel(): limite = np.arange(-5, 6) eq1 = np.array([], dtype=float) for i in limite: ...
636b73d1b2ef68533c1c08580be56ac5d8a3774c
4a759d54f436b2e69d3b4801d2fcad81e48c179b
/qualipy/filters/whole_blur.py
35b0a4714729af3a11f7fdcc73eaf0aa37d6f8d8
[ "MIT" ]
permissive
vismantic-ohtuprojekti/qualipy
6417e3882d633b7efdaccf6261cfd06fafd6875b
ef863fc762cf881af7700df83fa9ca0807a41fbd
refs/heads/master
2021-01-18T12:41:32.526165
2015-08-28T14:48:30
2015-08-28T14:48:30
35,488,757
26
7
MIT
2020-02-16T15:14:30
2015-05-12T13:15:31
Python
UTF-8
Python
false
false
5,129
py
whole_blur.py
""" Filter for detecting blurred images. Four focus measure algorithms that are described in "Analysis of focus measure operators for shape-from-focus" (Pattern recognition, 2012) by Pertuz et al are applied to the whole image. Focus measures measure the relative degree of focus of an image, and the implementations ar...
a5457620c67a4785d7cea54676026e5f2d9d093f
bcf412c53cd746af56c6e6942639110ce6b37c3b
/adv_lib/distances/lp_norms.py
6fb853a53afa50f17845835136779e9c863f3686
[ "BSD-3-Clause" ]
permissive
jeromerony/adversarial-library
92472f41727343bca56b5f87398cba744b667bd8
949a960e185fe2aed964a49d27258c7f638b13f8
refs/heads/main
2023-05-24T16:14:08.943833
2023-05-19T00:22:48
2023-05-19T00:22:48
315,504,148
112
17
BSD-3-Clause
2021-08-06T00:10:50
2020-11-24T03:07:47
Python
UTF-8
Python
false
false
539
py
lp_norms.py
from functools import partial from typing import Union from torch import Tensor def lp_distances(x1: Tensor, x2: Tensor, p: Union[float, int] = 2, dim: int = 1) -> Tensor: return (x1 - x2).flatten(dim).norm(p=p, dim=dim) l0_distances = partial(lp_distances, p=0) l1_distances = partial(lp_distances, p=1) l2_dis...
485f85ec5e3f38148978453ea5e7f9a54eb310e1
dbd188cdba5ad847e5a78d5faf1a47a37b92040f
/src/main/python/oop/Components/Table.py
47be845bde70c2bb84bfbb2c7334c8da0eb2fd47
[]
no_license
shossains/Interactive-Data-Visualization
1035848ecc715d484cefda24b88298a3a427dc80
f96e471a848e193562e2887735ca31177f9a00f5
refs/heads/master
2023-06-25T05:42:13.466608
2021-06-17T22:31:06
2021-06-17T22:31:06
388,196,090
1
1
null
null
null
null
UTF-8
Python
false
false
2,509
py
Table.py
import dash_table import pandas as pd import dash_html_components as html import dash_core_components as dcc from dash.dependencies import Input, Output from dash_oop_components import DashComponent import dash_table import dash_bootstrap_components as dbc from dash.dependencies import Input, Output, State from dash_oo...
bdc9856bfc61127d6bca31658b1faf3da09f5b86
114836ee4f3564ff29d88cd0dd62159487d133dc
/aci_demo_create_subnets.py
fbe14fb5e75638fabafbb3cc60ee627dc01fdcc8
[]
no_license
mikewiegering/bdmigration
57ac2574a507873b03baf4b4d2ef1f10854a659e
242cbe0ee6bfdd00009cbc75d0bca3d65d392d96
refs/heads/master
2022-10-05T11:26:34.526339
2020-05-29T17:57:36
2020-05-29T17:57:36
263,749,850
1
0
null
null
null
null
UTF-8
Python
false
false
2,773
py
aci_demo_create_subnets.py
#! /user/bin/env python import requests from getpass import getpass import csv # Set up the variables with open("ACI PostMan Variable Values.csv", encoding='utf-8-sig') as csvfile: reader = csv.DictReader(csvfile) for row in reader: print(row) print("Let's configure the subnets...
debd51b923a6fc3b278a5083478bfb271a5913a8
51d5fc0a8ff2e50e2f0feb1e9de8644675d853e5
/tests/test_i18n.py
b6c5a14725b10f4a52c980d7ba861e7499a42abd
[ "Apache-2.0" ]
permissive
romainkotarba/shellbot
d645dc4e44b4fc6e646d7b76d9692d47810542cf
daf64fbab4085d1591bf9a1aecd06b4fc615d132
refs/heads/master
2021-05-06T16:31:04.458831
2017-10-22T22:57:50
2017-10-22T22:57:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,914
py
test_i18n.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import gc import logging import os import mock import sys import time from shellbot import Context, Engine from shellbot.i18n import Localization, localization as l10n, _ class LocalizationTests(unittest.TestCase): def test_default(self): lo...
5917c891d2885f779dc33f189f1a875efbd0c302
7ba9459b8545035f475a4742ae72b174ed107777
/models/v1/model_base.py
2f630013f02a4c2041fb7c8b5b0e69ad9c55cdbd
[]
no_license
silencezhao90/gree-server
91d7f06c6e7e196d1565386d96cfe7eafb8d1416
b453ef4dbd6a01e693f8ee19a515e48895c929e9
refs/heads/master
2021-06-22T20:44:26.448266
2019-10-23T06:49:00
2019-10-23T06:49:00
216,986,748
0
0
null
2021-05-06T19:48:21
2019-10-23T06:44:07
Python
UTF-8
Python
false
false
3,517
py
model_base.py
from abc import ABCMeta, abstractmethod from datetime import datetime from enum import Enum from application.response import ResponseError class ModelBase: __metaclass__ = ABCMeta @classmethod @abstractmethod def _get_cls_schema(cls): pass def __new__(cls, schema): if schema is ...
41417e3ce52edf6aee432886bbab6d16ec5bc88d
7610dc33304c1a848bc448c200f44489068d8a74
/models/model_rnn_torch.py
ffeb712767dc52ed8ab27343bf0fcfb116a38230
[]
no_license
lcaamtb/text_classification_pytorch
a5aeb57c5cbaa0d7e7257353584b32f9a0ab18a2
e4c1b35e6103900d78c7af4779637d4574d6249d
refs/heads/master
2020-03-30T10:47:46.143848
2018-10-01T19:19:46
2018-10-01T19:19:46
151,136,611
0
0
null
null
null
null
UTF-8
Python
false
false
2,342
py
model_rnn_torch.py
""" Created on 01/10/18. Author: morgan Copyright defined in text_classification/LICENSE.txt """ import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F class RNNClassifier(nn.Module): def __init__(self, batch_size, num_classes, hidden_size, vocab_size, embed_size, w...
9a55ccf758b4b2cc440153ab3b1f97823863a848
9db2421c724cc4ad547b0d9b697689c2c13d613c
/tsmt-master/tsmt/models.py
8a2915df7c3ae96221c2b4c923f615615fa3048f
[]
no_license
navneetpathania374/Aunthony
b6b68164544c223825c7cad898224b61dffaf16e
6fca2281d3299eda5001deee73d70855bf593ac0
refs/heads/master
2022-11-26T04:44:16.551855
2019-10-16T13:17:42
2019-10-16T13:17:42
215,467,487
0
1
null
2022-11-22T04:17:38
2019-10-16T05:51:39
Python
UTF-8
Python
false
false
235
py
models.py
from django.db import models # Create your models here. class Logins(models.Model): created = models.DateTimeField(auto_now_add=True) login_addr = models.GenericIPAddressField() hostname = models.CharField(max_length=200)
6c0b2fa8166bb21a514dc188858e1de285ad9b0a
e58e349b1e7899c23ebee143cd7fed9a079c3fcf
/src/Products/urban/content/licence/PatrimonyCertificate.py
84ed0ab658dc058545765703f61b36be7d6ad796
[]
no_license
IMIO/Products.urban
8ebfe1ae2166c36823e7b64d49ee42bccca80567
4d1cc1ab86fbf5e18d745b9297f0c6326c0f4811
refs/heads/urban2.6.x
2023-08-15T10:34:52.761734
2023-08-14T09:51:16
2023-08-14T09:51:16
125,059,498
1
1
null
2023-09-11T12:08:15
2018-03-13T13:54:30
Python
UTF-8
Python
false
false
3,857
py
PatrimonyCertificate.py
# -*- coding: utf-8 -*- # # File: PatrimonyCertificate.py # # Copyright (c) 2015 by CommunesPlone # Generator: ArchGenXML Version 2.7 # http://plone.org/products/archgenxml # # GNU General Public License (GPL) # __author__ = """Gauthier BASTIEN <gbastien@commune.sambreville.be>, Stephan GEULETTE <stephan.ge...
d327151c9659078e12e4aca46631de33e7ca4dcf
8223eeb4920f6c2d93f357e46df6988c974760b3
/tcrpower/powercalc.py
dad45b96dba78d73c392a0c93af525e06e50ce6a
[ "CC-BY-4.0" ]
permissive
GabrielBalabanResearch/TCRpower
cfa0cde5a031e76b959a6b0ccf33d0554f8ea6f8
9b128fa6253e49e7190279dbda219f60874b9da4
refs/heads/master
2023-04-14T00:12:19.946953
2022-02-04T13:31:26
2022-02-04T13:31:26
304,367,367
4
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
powercalc.py
import numpy as np import numdifftools as nd from scipy import stats from scipy import optimize from functools import partial class TCRPowerCalculator: def __init__(self, pcmodel): self.pcmodel = pcmodel self.predict_variance = self.pcmodel.predict_variance self.predict_mean = self.pcmodel.predict_mean self....
704b3c57ca080862bed7a4caa65d1c8d5a32fa0b
80f78b8ec268af8936a50363a22904fdae5a949c
/onmt/modules/CopyGenerator.py
eecb0894421d73bb6fb881a18d5b05fcda927caa
[ "MIT" ]
permissive
ixaxaar/OpenNMT-memnets
5045ce5d9f8112208bd3e5abe08ea5b1e433a7d1
1bfe9f94d2422cd4d8dde7987159d650855becde
refs/heads/master
2021-08-26T09:25:59.033164
2017-11-22T21:19:31
2017-11-22T21:19:31
100,709,163
0
0
NOASSERTION
2022-08-18T07:59:51
2017-08-18T12:19:49
Python
UTF-8
Python
false
false
2,362
py
CopyGenerator.py
import onmt import torch.nn as nn import torch.nn.functional as F import torch import torch.cuda from torch.autograd import Variable class CopyGenerator(nn.Module): """ Generator module that additionally considers copying words directly from the source. """ def __init__(self, opt, src_dict, tgt_d...
630011b188548df9e55b6f1ddbefa08e322b9cba
4b329716101b13be4bbd2642320576045e3070ad
/features_builder.py
09c8cabf676bba01978a4c2ad22947ebe15b08c2
[]
no_license
tf369/Img_Retriveler
8d24c7ef58345a418ffb3de9f420fbc7b8351453
0ba051cb15b027ab6f144abeeaab9a8afa6a179b
refs/heads/master
2022-09-18T17:23:15.650628
2020-05-30T12:30:02
2020-05-30T12:30:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,801
py
features_builder.py
from datetime import datetime import cv2 import numpy as np from sklearn.cluster import KMeans,MiniBatchKMeans class FeatureGetter(object): def __init__(self): self.sift_det = cv2.xfeatures2d.SIFT_create() def get_img(self, img_path): img = cv2.imread(img_path) return img def get_fe...
b3fe84d36d03670f472a652bf76a77b2b8e065e8
d77da1ebecc6fbf4e43eebd924012f27c5ed33c8
/src/models/utils.py
b22a99a0d51b6f1373112e487856f0828fb4c715
[]
no_license
Ksyula/churn_prediction
570ceaf424ffe948ea3c81b1497c2674ea0dc902
5978c21636f0a1af97994b437aabcf817edaafd0
refs/heads/master
2023-06-25T06:05:58.725218
2021-07-31T17:07:09
2021-07-31T17:07:09
388,353,622
1
0
null
null
null
null
UTF-8
Python
false
false
565
py
utils.py
import numpy as np from sklearn import utils import sklearn import pandas as pd def normalize_data(dataset: np.ndarray, scaler: sklearn.preprocessing._data.StandardScaler) -> np.ndarray: dataset_scaled = scaler.fit_transform(dataset) dataset_scaled = np.expand_dims(dataset_scaled, axis=2) return dataset_s...
24d77d87ca610bffcdf8ae182138c7a02a4c6514
506cbfa9a32b4262e0a2f011e2142bc94d5631b5
/Python/Palindromecheck.py
a65bc536c6d28d7f079839f2453b2bbf6a40bebd
[]
no_license
Rajath-55/DS-A
cdf68a86a9c989e70c2c68154fab76e424240342
208fbe58a83efb4093e69dfdc45a6c24fba8981f
refs/heads/master
2023-03-26T13:47:41.228501
2021-03-27T11:02:20
2021-03-27T11:02:20
255,015,132
0
2
null
2020-09-30T18:49:29
2020-04-12T05:26:50
Python
UTF-8
Python
false
false
178
py
Palindromecheck.py
def isPalindrome(string): # Write your code here. reversedstring="" for i in reversed(range(len(string))): reversedstring +=string[i] return reversedstring==string
c4f6ff65db5e65d694e2a4662313fe62978c39de
5ad39578330e30d378f889ead1a2ff528fa646df
/python-package/src/nichtparasoup/__init__.py
d2c80ec420da5427cb9b32d8da4ea450a218ba6a
[ "MIT", "CC-BY-3.0" ]
permissive
k4cg/nichtparasoup
515572362e3f141fbdd24b05ba6a1e8594721734
595ff90bc8c89a6b5835fed1c1639110783cde63
refs/heads/3.0-dev
2023-06-07T23:59:29.327662
2021-12-04T09:36:18
2021-12-04T09:36:18
18,908,431
37
16
null
2023-01-21T09:14:26
2014-04-18T09:08:17
Python
UTF-8
Python
false
false
151
py
__init__.py
# use SemVer -- https://semver.org/ # be compatible with https://www.python.org/dev/peps/pep-0440/#public-version-identifiers __version__ = '3.0.0a2'
d2f6b541a356a3a7666eea3fc4219e79b61221b2
146e4e5360be87c027dda379dfa0988c2ddb4a35
/hiver.py
5f8dbd62ebccf0a3f9e6ff9a71c4666afa7c1e06
[]
no_license
dataspider99/websiteclassifier
10469a058530b1de31b729e627a5928e7a4444ad
49c3d3281e4d4f385363a13182d09daf9e30960c
refs/heads/master
2020-04-13T15:29:07.149107
2019-10-31T07:39:18
2019-10-31T07:39:18
163,292,818
0
0
null
null
null
null
UTF-8
Python
false
false
2,953
py
hiver.py
import requests from lxml import html import re from urllib.parse import urljoin import string from nltk.stem.wordnet import WordNetLemmatizer from nltk.corpus import stopwords import os,sys import nltk path = os.path.dirname(os.path.realpath(sys.argv[0])) nltk.data.path.append(path+'/nltk_data') site_url = "https://...
3059d0e8ee142af3ffaf48f55b325fb16cba56de
38c704f2c769652eab64b03219153b3442563063
/sechigh.py
508c1fee36ffb9c4a67e5036aab97f77e88a4217
[]
no_license
ameymahadik1997/amudi97
86d1e52d1257855c6404579c2c20fcd39a09d15e
893402454527b9c69b1b5e6c873142a1bcc5a189
refs/heads/master
2020-09-05T03:31:12.724561
2019-11-13T13:57:13
2019-11-13T13:57:13
219,969,759
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
sechigh.py
#To print the second highest number in the given list ch=[] c=0 nums = [-1 , 14 , 23 , 0 , 2 , -9 , 19 , -8 , 3 ] for i in nums: if i>0: ch.append(i) print(nums) ch.sort() l=len(ch) c=ch[l-2]#because range starts from 0 so 'l-1' gives an error of IndexError print('The second highest number in the given list =>',c) ...
1f0d06635ab0432bd8084008d8cbe6d3cb51fa7e
20cb1105a6aec65415e5d5458dfa2f5033cc07fb
/yangjie/123.py
28c090f5759e13acbf68e93b566c2bacc8314ad4
[]
no_license
sunnyding602/bia660
d2f8894c6444ab345cb7984485d47550744d1b13
0ee639a10fa3269b5132559aa9ef25e9b65478fa
refs/heads/master
2021-01-10T03:06:08.759462
2016-01-18T16:16:01
2016-01-18T16:16:01
49,888,406
0
1
null
null
null
null
UTF-8
Python
false
false
1,472
py
123.py
# -*- coding: utf-8 -*- """ Created on Thu Dec 3 15:11:59 2015 @author: yangjie """ import re import string #import urllib2 fileReader = open('data.txt') fileWriter = open('out.txt','w') def inNormalRange(num): if(string.atof(num) >=0 and string.atof(num) <=17): return True else: return Fals...
d8c748d94fe3aeef5c2327db6948fd0011c402b1
29b327d64b0e346c0a54f8321c2c95ffa17eb4aa
/main.py
019dcc783895d4d237a09e884d3a29e48e221ad8
[ "Apache-2.0" ]
permissive
ReanGD/py-invest
a2b3cf29a143415c253691be1f1b3aa9ea4703b4
61964e3dae1bfccce02552ca1d3f1850c8658828
refs/heads/master
2023-05-31T14:23:49.861489
2020-04-12T22:12:26
2020-04-18T22:13:02
254,889,150
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
main.py
import os import logging import pandas as pd from storage import FStruct, FStorage, MARKETDATA from website_api.load import Loader def load(): engine = "stock" market = "shares" board = "TQBR" root_dir = os.path.dirname(os.path.abspath(__file__)) fstruct = FStruct(root_dir) fstorage = FStorage...
3b682f83bcbf1e813ed1f68d22edd227b8c1e22b
6b5c466d250a53d63de039fbf4ee7da9f176b2dd
/Codeforces Problems/Games/Games.py
ee8ce97ac7c6560fc8d41e4961bb998414085986
[ "MIT" ]
permissive
Social-CodePlat/Comptt-Coding-Solutions
d57e59e71a176612905f3d40adf86d8a2221f9c4
240732e6c1a69e1124064bff4a27a5785a14b021
refs/heads/master
2023-04-21T09:23:52.073090
2021-05-27T18:20:55
2021-05-27T18:20:55
303,801,412
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
Games.py
n=int(input()) list1=[] list2=[] c=0 for i in range(n): a,b=[int(x) for x in input().split()] list1.append(a) list2.append(b) for i in range(len(list1)): for j in range(len(list2)): if list1[i]==list2[j]: c+=1 print(c)
14ed293a73e99b75fc8a5d825b7c9f8cdf87abf4
150fe2f30305ebaa369b4de12ca497e52d4c63f2
/lpl.py
fdef85dcb958cdfe7c51ea63b86241b4a7dc4963
[]
no_license
nickboot/selenium
16932709bb7bd6aadea609ebb5f0ddd2366beeeb
191683ad1cfc4de9a128ed2f61e13bc4e36c4721
refs/heads/master
2021-09-20T19:16:36.912083
2018-08-14T09:33:03
2018-08-14T09:33:03
106,889,428
0
0
null
null
null
null
UTF-8
Python
false
false
1,171
py
lpl.py
# coding:utf-8 # coding:cp936 from selenium import webdriver from time import sleep browser = webdriver.Chrome() #调用谷歌浏览器 #options = webdriver.ChromeOptions() #调用谷歌浏览器设置 #options.add_argument("--start-maximized") # 启动时最大化,Mac不能最大化 #options.add_argument("--kiosk") # 启用kiosk模式。(一种类似于全屏的浏览模式) #browser = we...
2ea012d44c348cad142cc1d3d9d22ac78bb7e307
78e6c64920a65f1605f2368d4b0a47e25f0b28c5
/agc037/a/main.py
42772eb09af57ee65d6921a795e8896d8b9d9409
[]
no_license
melank/atCoder
b8dce4f30ffbfd930e0f0c4fa7579228baae8d2a
606b0c84f2f4864869868e948f702f5833a6a062
refs/heads/master
2023-08-05T06:08:39.209811
2021-09-24T14:10:29
2021-09-24T14:10:29
328,083,168
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
main.py
s = input() line = list(s) cnt = 0 current = '' first = True for c in s: if first and current != c: cnt += 1 current = c # print(current) # 2連続で続いた場合 else: if first: first = False current += c else: # print(current + c) ...
4a031d42ff004516106daabd51b8c07ca9b45159
1b2927e05dfd826c17aa4acda0ac43c39195d1ab
/gameplay.py
1626755a5d3d491234360128f923850bbf5118aa
[]
no_license
xiuxiuer/deep_q-learning
7900ec286cc934665b60bb603d417994ffcdbd6e
c1fde77861e7a4465b121d221bacd7fd9d5dd3fe
refs/heads/master
2020-03-19T14:31:30.960075
2018-06-08T14:52:12
2018-06-08T14:52:12
136,626,936
0
0
null
null
null
null
UTF-8
Python
false
false
9,322
py
gameplay.py
import numpy as np import matplotlib as plot from copy import deepcopy import dqn_gameplay as dqn dqn_gp = dqn.DQN_gameplay() class Fight_battle: '战场过程' step_try_best = 10 dict_RStatus = {} action_base = [[20,-1,-1,-1],[-10,5,-1,-1],[-10,-1,5,-1],[-10,-1,-1,2]] #init def __init__(self,dict_r...
f1827a1a1568a25e34e5d17e6043b19bd5f47ae9
78c6e0cae433880a53f728d4ab4b5ac9edfd842d
/Data/NMR/nmr_loader.py
6c0294047a7cc15ef7d154bee77599c42549460c
[]
no_license
jaak-s/graphinformer
6ea5e475d46b1a9da100374f66160039c2731ac8
35ab05285b4274ca10f3794227dc29eb67501773
refs/heads/master
2023-03-25T19:07:18.154091
2021-03-13T13:58:29
2021-03-13T13:58:29
347,383,419
4
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
nmr_loader.py
import graphinformer as gi import numpy as np from torch.utils.data import DataLoader def loaders(data_file="./nmr_webo.npy", folding_file="./folding0.npy", batch_size=128, add_adj = False): nmr = gi.MolDataset.from_npy(data_file) folding = np.load(folding_file, allow_pickle=True).item() data_tr =...
97502f2e1aec3097cf85defebfdf3e369fb235f0
d746413ce59f57875f6a74903123774ad3965969
/app/views.py
d77e3e4cb3099046b794792862b3825f2bcf6d2c
[]
no_license
kunato/traffic
8bd7450dc3c8c4597076903a82b16fd5a1b60faf
578d84ff4ed61bf2a979e04769ceee492f60a9d2
refs/heads/master
2016-09-02T16:29:39.067498
2015-05-25T08:20:28
2015-05-25T08:20:28
32,980,500
0
0
null
null
null
null
UTF-8
Python
false
false
5,066
py
views.py
#view.py #Author Kunat Pipatanakul from django.shortcuts import render,redirect from django.http import HttpResponse,JsonResponse from models import * from app.tasks import * import json import helper import datetime import simplejson from django.core import serializers from django.contrib.auth import authenticate, log...
1ecc94e23596b7cf068482e62ee6b89bf851e3a2
5e9cafd03d313c043944d5c05675d2a253ea4888
/homework6.py
d2c9221eb47ac7b2afcc0f2997a6b0d0af9b7a32
[]
no_license
pamgluss/introToPython
e57cbefb2d389b8c5e090302fca51a76730ee16d
c78f6c9c618750bdd35f2bf11dfd7ea6be1b0b8a
refs/heads/master
2021-01-11T14:16:13.605278
2017-03-29T00:21:35
2017-03-29T00:21:35
81,277,351
0
0
null
null
null
null
UTF-8
Python
false
false
9,388
py
homework6.py
# Intro to Python homework 6 # Pamela Gluss class Card(): counter = 0 # init takes in rank and suit, and assigns self.rank and so on to the inputs def __init__(self, rank, suit): # First, we'll set parameters for error throwing if type(rank) is not int: raise TypeError(...
1ffc89c19cc1c90c61ea871c9f6f6eee732e3769
4d8e8a8b9a67057abc8fe4da03f063aa902f5388
/app.py
c727b42c395eaf0e68da1fbd21a32a141b1b8bb8
[]
no_license
leojossa/Flask-FrontEnd
23f3a25d6a46a80eb62e930bbfbefe8d95923011
4ff74c75765aa0cc8c5e609508013f0cb2442b95
refs/heads/master
2022-12-31T14:06:13.265610
2020-10-14T13:22:08
2020-10-14T13:22:08
282,077,342
0
0
null
null
null
null
UTF-8
Python
false
false
8,414
py
app.py
from flask import Flask, jsonify, render_template, url_for, request, session, logging, redirect, flash, Blueprint, make_response, Response from flask_restplus import Api, Resource, static from sqlalchemy.orm import scoped_session, sessionmaker from passlib.hash import sha256_crypt from functools import wraps from datet...
a0c0a78c1745505403a0515bd4f870f609ed343b
480b0cbf81c3bda6ebdf40d6e4afdcc28e74bc3b
/__init__.py
0e3e7c5edb089e95f00e0c74b875e44aca5745da
[ "MIT" ]
permissive
mahar/pyMie
b34763f3a80fbb55c13abc6ebd87b9b7a6d90142
16232d54d2b0f686b733478a8fc3e13126a387b9
refs/heads/master
2021-01-19T19:14:55.327835
2017-03-30T00:12:05
2017-03-30T00:12:05
86,640,601
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
__init__.py
# file: __init__.py from pyMie_core import * __version__ = '2.0.0'
3b1e319ee9058fabc1b296f8a030bf5b679bd3b4
f9bcdd1c8567d015d958e9d5aee48cd540c32d03
/gui_grid.py
5a03af15ee3c5410c1331284cab435730ae0bd30
[]
no_license
JaehoonKang/GUI_Python_CS110
c280b433c38eda3433518468d1892694757b4ce0
f06c8f76bcd26ef355e2a6749501311ef87477e7
refs/heads/master
2020-04-08T03:24:17.060815
2018-11-25T22:01:16
2018-11-25T22:01:16
158,974,414
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
gui_grid.py
from tkinter import * root = Tk() def checkState(): #print(var.get()) if var.get() == 1: print("Checkbox is changed") else: print("Not changed") label_1 = Label(root, text = "Name") label_2 = Label(root, text = "Password") entry_1 = Entry(root) entry_2 = Entry(root) label_1.grid(row=0, ...
130c38278cbfd161996835bb9d1c312131b4f948
7d370c367725b7d7bcb6e3b74ebd94c83177df53
/housingbook/migrations/0001_initial.py
4cd28dc9277e622cdf94d3440174956237f1c03d
[]
no_license
leroyjenkins66/GreenHB
4c7f22572946f557b244f272fe8151d35dda425d
23387f502b9406c55e93ea65bb9383da6fa7fc28
refs/heads/master
2020-09-14T15:05:09.089958
2019-11-21T22:59:43
2019-11-21T22:59:43
223,163,873
0
0
null
2019-11-21T11:58:50
2019-11-21T11:58:49
null
UTF-8
Python
false
false
2,197
py
0001_initial.py
# Generated by Django 2.2.7 on 2019-11-20 11:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Apartment', fields=[ ...
8b591ed8f23208c310ff27e20060bff9969339ba
05083971e043bfaae82b4300bf27142027885605
/Project4/rawhttpget-old
7e4a2d6dc36fedb9d0636ed065bf9915e941947d
[]
no_license
pranav/cs5700
8552f56877453a39002c8a3d2b03e5e2a9c1dd2d
121c152aa83cb97dd894888882267efcebd96516
refs/heads/master
2021-05-01T00:16:57.870134
2013-04-16T01:56:52
2013-04-16T01:56:52
7,615,316
0
0
null
null
null
null
UTF-8
Python
false
false
2,461
rawhttpget-old
#!/usr/bin/python import sys import socket import time import struct # import tcp hostname = "www.ccs.neu.edu" port = 80; """ Goals 1. Work on getting TCP to work over normal sockets. "SOCK_RAW/IPPROTO_TCP" - choose a valid local port - manage sequence and acknowledgement numbers - perform connection setup ...
1a2ef6b25b0e7907841d854d7600e59bba95bb2a
400a2fea6fd38716b56f12c8e31940584cfb9aca
/plotting.py
11a676e7a9083846fb049335f35707446ca8b3b4
[]
no_license
paulsef/Stephen_Capstone_Project
165d5dce82870b4e89f0efea45cb3798419c4cca
eb1e8447d4f4b25a2be7225d6cda773d0daa01a2
refs/heads/master
2020-12-25T10:14:23.277969
2014-07-28T02:50:13
2014-07-28T02:50:13
22,325,358
1
0
null
null
null
null
UTF-8
Python
false
false
2,633
py
plotting.py
import pandas as pd import numpy as np import sys, getopt import matplotlib.pyplot as plt import cPickle as pickle def plot_survival_rates(kmf_values, bucket_names, sav_name): for jj, surv in enumerate(kmf_values): if jj==0: ax = plt.plot(surv.index,surv.iloc[:,0], label = bucket_names[jj]) plt.title('Surviv...
96cab5c0d07fcb9caced1b771c4d88b5f81bf2fe
16256017a56f7c31d58c5820d8cbe51167e139a2
/handler.py
d2648e403624700a36bd2b9c01e6006a29ee00bc
[]
no_license
dkozlov/openfaas-style-transfer
55cfbd70179abfb3dd864142c462d0571faa52fd
90ac828a733c1366a0640b2828600b97a94beade
refs/heads/master
2020-03-19T16:44:29.500304
2018-06-09T19:04:57
2018-06-09T19:04:57
136,728,117
2
0
null
null
null
null
UTF-8
Python
false
false
4,051
py
handler.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings warnings.filterwarnings('ignore', '.*issubdtype.*',) #just to filter a h5py warning message with numpy 1.14.3. import sys import os import io import time import scipy.misc import nu...
869b77c51c81d3a4aa44e84a27879384ca6c5311
bd8bc7abe0f774f84d8275c43b2b8c223d757865
/950_RevealCardsInIncreasingOrder/deckRevealedIncreasing.py
dfc73fa8f119b27ae75d533a16219e14d9349f19
[ "MIT" ]
permissive
excaliburnan/SolutionsOnLeetcodeForZZW
bde33ab9aebe9c80d9f16f9a62df72d269c5e187
64018a9ead8731ef98d48ab3bbd9d1dd6410c6e7
refs/heads/master
2023-04-07T03:00:06.315574
2021-04-21T02:12:39
2021-04-21T02:12:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
deckRevealedIncreasing.py
""" 将所有操作反向进行有可以了 1. 从牌组顶部抽一张牌,显示它,然后将其从牌组中移出。 (逆操作: 将牌放到牌组顶部) 2. 如果牌组中仍有牌,则将下一张处于牌组顶部的牌放在牌组的底部。(逆操作: 如果牌组中有牌,将牌组底部的牌放在牌组的顶部) 3. 如果仍有未显示的牌,那么返回步骤 1。否则,停止行动。(逆操作: 先步骤2, 再步骤1) 所以最终操作步骤: 0. 将牌组倒序排序,放到手上 1. 如果结果牌组中有牌,将牌组底部的牌放在牌组的顶部 2. 将牌放到牌组顶部 3. 如果手上还有牌,那么返回步骤 1。否则,停止行动。 """ class Solution: def deckRevealedIncre...
d5838f29e8b96e8ef944be5b1a12a61d8a53a269
c76077130bf2c68d45053b00c9bdbf4fbf40910a
/googlesheets.py
fd8ce58c49af4ea48e6ecf1d6e745924f4eb04bb
[]
no_license
JuneyBoy/Movie-Watchlist
1da59609b3ae2a61e47ff8c11a0c55001106baf3
1b627387cc5e240acc091dc73836d7a4a44578eb
refs/heads/master
2022-12-18T08:17:56.817531
2020-09-25T01:38:27
2020-09-25T01:38:27
280,952,169
0
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
googlesheets.py
from pprint import pprint from googleapiclient import discovery credentials = jeffrey_credentials.json service = discovery.build('sheets', 'v4', credentials=credentials) spreadsheet_ID = 1AGTCXVC_9h3LnF8GJaE-MJj978AVoBnl4kV4Z9a4r7I # How the input data should be interpreted. value_input_option = 'USER-ENTERED' # T...
186e47d13361f9b08bd61c691ee083a87ac5c502
540f12daa9f311685258c6453cb23838fd79329c
/domintell/modules/dism0x.py
1fb2b18c6793220ba1f4c1f7ea87de0d5038c5aa
[ "MIT" ]
permissive
dnouls/python-domintell
5dccf54fe0ad622219f086b9b639ee99442a2315
f2626e7f8339ab8004fa51e9d1cc59653271febb
refs/heads/master
2023-03-24T15:09:27.634942
2021-03-19T09:13:38
2021-03-19T09:13:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,554
py
dism0x.py
""" Dimmer control module DDIM01 Controlls: DISM04 DISM08 DMOV01 VAR - Binary version only :author: Zilvinas Binisevicius <zilvinas@binis.me> """ import domintell import domintell.messages class GenericDISM0xModule(domintell.Module): """ Abstract DISM control module """ COMMAND_CODE = 'U...
4e725ba011289ea0e37e23f8b47c536f75d5813f
a20c3a6ffd343445b533867da22fce97dca2c472
/main.py
304ee035ab7b3c897d12cf13c0f7f651def6af24
[]
no_license
antoninabondarchuk/pyspark
df75f6b05f25dc8ccf62584b1dca2ec5fb6dfec1
8afb11bbe962e9c779a2b7a0de6af9382fe476fa
refs/heads/master
2022-06-05T12:39:08.744138
2020-05-01T16:25:22
2020-05-01T16:25:22
260,505,124
0
0
null
null
null
null
UTF-8
Python
false
false
1,901
py
main.py
from pyspark import SparkConf from pyspark.sql import SparkSession from PCA import apply_pca from dataprep import dataprep from oja import apply_oja from reading import read_to_df, to_vectors WINE_PATH = r'C:\Users\Tonya\PycharmProjects\research\resourсes\wine\wine.data' WINE_NAMES = ('id', 'alcohol', 'malicAcid', 'as...
b0b01ae90bccfcdfd59a7cdaedf296f228e72810
0d49b6596af961ba3a45fb325e0cf00a63846de3
/knapsach_greedy.py
46c988266f010732a9f89c38b999ca1989e811f8
[ "MIT" ]
permissive
Dreemsuncho/Introduction-to-Computational-Thinking-and-Data-Science
52a921969f400a17e908dc842f4e676d296d6170
4ffc0dd19c838694d441a56e95c86c69b2b3e4f0
refs/heads/master
2021-10-10T23:44:47.621569
2019-01-19T08:17:02
2019-01-19T08:17:02
115,497,462
0
2
null
null
null
null
UTF-8
Python
false
false
1,968
py
knapsach_greedy.py
class Item(object): def __init__(self, n, v, w): self.name = n self.value = v self.weight = w def getName(self): return self.name def getValue(self): return self.value def getWeight(self): return self.weight def __str__(self): return self...
dba1506c070a7d5e749763cd315367026b01524c
d6f03deba472e50ecac1c58ad3c9ef5c45800b28
/src/hyper_parameters_search.py
074b376905c7048cd92bff0707f824b6ced381a3
[]
no_license
antoineeudes/MLWorkflowWithAirflow
dca7dfb1c0ab086caa2574275e591126ea011123
af1ed4d6b921b770d6c1c0acbc91033e1f5578a8
refs/heads/master
2022-12-12T10:38:10.410582
2020-06-16T21:05:00
2020-06-16T21:05:00
249,789,780
0
0
null
2022-12-08T03:52:53
2020-03-24T18:42:30
Python
UTF-8
Python
false
false
457
py
hyper_parameters_search.py
from sklearn.model_selection import GridSearchCV from sklearn.ensemble import GradientBoostingClassifier from utils import get_cleaned_training_dataframe def hyper_parameters_search(parameters, **kwargs): dataframe = get_cleaned_training_dataframe() X = dataframe.drop('SeriousDlqin2yrs', axis=1) y = datafr...
fe35974e0fa59bf4a844300aedba516958c39f68
ac8c787ea372674f1decbe77273d6a739bc44a92
/08_Loop/152_multiples_of_three.py
5304cc308fd7a78cced24db74be507a343ed1a58
[]
no_license
LeeAhYeong/Python_300_For_Beginner
8f805c804d2b2a4ab64bde4fdd7a72719e322cdf
6c5ad581b99b103deadc7450927711ce6601d393
refs/heads/master
2023-05-10T01:14:54.894000
2021-05-29T09:37:04
2021-05-29T09:37:04
316,015,906
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
152_multiples_of_three.py
리스트 = [3, 100, 23, 44] for su in 리스트: if su % 3 == 0: print(su)
d428a768c671eea0fe33a9f239e06ab8abbb72bd
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02899/s426720032.py
505803398ff1816f5f270b6e15606c0249d0441d
[]
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
142
py
s426720032.py
n = int(input()) A = list(map(int, input().split())) B = [(a, i + 1) for i, a in enumerate(A)] B.sort() ans = [j for _, j in B] print(*ans)
8b5d07989d6f48ec3798ae55cd76a32a4484bd5b
b6d6062570f02cb278d6189ab4135cc17e2cc4d4
/django_tctip/templatetags/__init__.py
827c34cd7fc2547db1dc7e836958db405ec330bd
[ "MIT" ]
permissive
mooremok/django-tctip
92fb190cb059d8cb2dfc56231fb250914b414978
d15a47aab0f9f3e18d407df38fbd81f296cc4bfe
refs/heads/master
2022-11-23T10:20:06.830429
2020-07-20T02:25:17
2020-07-20T02:25:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
__init__.py
# -*- coding:utf-8 -*- # Author: https://github.com/Hopetree # Date: 2020/7/11