blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8e898c797f3ea91916d23af426d66afe175ce8f | 6952e830c95a766cbcd92aa263cfebb94d0296cd | /FeelTheGraph/Test6.py | 9f484d71b0a9cbe212cd8633bd35c38cd22c61ff | [] | no_license | skianzad/MagicPen | b0b3bdb2a68f70ce53aac31feb1b86f5e82177e6 | 360cd956b972f9257851e89fafc0c7183f131c55 | refs/heads/master | 2021-10-20T10:53:30.118353 | 2021-10-13T21:17:37 | 2021-10-13T21:17:37 | 95,934,955 | 2 | 2 | null | 2021-06-16T22:33:03 | 2017-07-01T01:33:34 | Java | UTF-8 | Python | false | false | 4,520 | py | import numpy as np
import parser
import serial
import time
from threading import Thread,Event
from time import sleep
from bokeh.io import curdoc
from bokeh.layouts import row, widgetbox
from bokeh.models import ColumnDataSource,Div,CustomJS, Circle
from bokeh.models.widgets import Slider, TextInput
from bokeh.plott... | [
"skianzad@cs.ubc.ca"
] | skianzad@cs.ubc.ca |
8dfb340638288546bff11413b78f1e901f158e1d | 496e05014492b4bbecf9f15c40ae416c21e27a46 | /src/outpost/django/campusonline/migrations/0013_course_group_term.py | f48c4ba82d8ab1981cb8ca052bd05218d9ba72cf | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost_deprecated | b1ff802054c04cf989b3b660e132fa6a1c2a078c | bc88eaa3bb504d394fdf13f1131e40db27759c89 | refs/heads/master | 2022-01-23T15:46:34.859095 | 2019-05-21T08:38:11 | 2019-05-21T08:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,374 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-15 15:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
forward = [
'''
DROP INDEX IF EXISTS campusonline_coursegroupterm_selection_id... | [
"michael@fladi.at"
] | michael@fladi.at |
93e61bee22e5b5f112cdee09a24953ca0a9a1b57 | cf3f8ed240aac2076cac2940f9821775e3ee09c0 | /env.py | bdbaacf799cbd20b6df893866b2b4fa3b33ea9ee | [] | no_license | IceFlameWorm/home_credit_default | 37f4959aee8ff01606dfab8d3ca6a1faee4d6ef1 | a84631efa643aa48113d8875d76023b104448a42 | refs/heads/master | 2020-03-23T05:00:12.254364 | 2018-07-25T01:53:25 | 2018-07-25T01:53:25 | 141,118,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | import os
PROJECT_PATH = os.path.dirname(__file__)
DATA_PATH = os.path.join(PROJECT_PATH, 'data')
ORIGINAL_DATA_PATH = os.path.join(DATA_PATH, 'original')
APPLICATION_TRAIN_CSV = os.path.join(ORIGINAL_DATA_PATH, 'application_train.csv')
APPLICATION_TEST_CSV = os.path.join(ORIGINAL_DATA_PATH, 'application_test.csv')
B... | [
"empty@email.com"
] | empty@email.com |
0669027bc64f9d1711ba58806db266d9ff983c81 | 7ec4ace3e19307329291bff17b190769d15ff4f6 | /habitica/migrations/0002_auto_20200617_1521.py | 3b2273df4c28d4cca9f1a8ac6d4fe6f8f7785dfb | [] | no_license | suhaibakram/task-application | 33aa0afd9bfcff733f47242c11cea77c6ada086a | b82e7d4175ef164fa96f281de8fff8e716b28715 | refs/heads/master | 2022-11-05T20:17:02.988726 | 2020-06-19T12:42:07 | 2020-06-19T12:42:07 | 273,490,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.0.7 on 2020-06-17 09:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('habitica', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='datecompleted',
... | [
"suhaibakram@gmail.com"
] | suhaibakram@gmail.com |
bacc3db01b5989422ee6634f4042279b4e3cf782 | 8b829db4c81e032ce488924302cf40a6028dd3c5 | /Kernal/wsgi.py | 6bd87853c385125f6d8e1f72054dd3f2ed9dfc1a | [] | no_license | diamondlx/Ruaaaaaa | 65081ea1f61fbe0c411299fffad695b8c78b7b3d | b89f1fcbcccf5ae2857d668436a748bb443556b2 | refs/heads/master | 2021-01-11T00:44:50.270601 | 2016-10-10T21:53:51 | 2016-10-10T21:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for SoftEngi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"l-mh@qq.com"
] | l-mh@qq.com |
54665c086c321548e228c9b8028aae095b3792ff | 36f820a085179dca152bdd27a2e6ec2b5b5da9e8 | /f-string practice 1.py | 49158bf14e04d0c76acb447eda168e4de5103e73 | [] | no_license | ThePergament/kyh-practice | 43a53882511f42468555462b594195f84dfcfa08 | 679f6af5337b88d86eff823086edb565f3cc6fbb | refs/heads/master | 2022-12-30T15:36:15.997292 | 2020-10-22T08:58:33 | 2020-10-22T08:58:33 | 291,672,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print(f"{5 * 5}") | [
"david.pergament@student.kyh.se"
] | david.pergament@student.kyh.se |
dff0f20dcd47ac1830b20ac7218335a2cdb76fa0 | c73657ff5b091b46f06584a578323c9fc93caf07 | /src/harrastuspassi/harrastuspassi/migrations/0011_create_promotion_model.py | e5c459eb754a9ce0fc2a915ae990d0cfe0ea7dda | [
"MIT"
] | permissive | City-of-Helsinki/harrastuspassi-backend | d91e291e9e153e900d5893c527a03e7c18bc1cb5 | b9812f1b3169e6d0c7da20224fd66d0d74ff5255 | refs/heads/master | 2023-04-30T11:57:51.067772 | 2022-06-06T12:17:42 | 2022-06-06T12:17:42 | 198,590,780 | 2 | 6 | MIT | 2023-03-31T14:35:17 | 2019-07-24T08:20:44 | Python | UTF-8 | Python | false | false | 1,411 | py | # Generated by Django 2.2.4 on 2019-11-08 06:33
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('harrastuspassi', '0010_category_name_not_unique'),
]
operations = [
migrations... | [
"oskari.tiala@haltu.fi"
] | oskari.tiala@haltu.fi |
7fae0b39fa9d2a48694f8401cc02bf46a12360c2 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/models/group_result.py | 5902d1d3e8c52dadc9ec67bfb1c4f19174a5209c | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,281 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
e59e1e28d923ae25dfe4cffdc7fce23e4c048e0a | 2e07f6c0545164b350b39cb0c0aca12c66794c0f | /brain_games/scripts/brain_progression.py | 937eee7e38dd88d161668eb9d603fb770ca57b15 | [] | no_license | nightdentist/python-project-lvl1 | d9575c274a8c5afd17a7e6687fcdd832da5ae5c4 | af77e68acdb670d9499a094b8534d92c5d84d89d | refs/heads/master | 2023-09-03T21:36:35.325294 | 2023-09-03T13:13:11 | 2023-09-03T13:13:11 | 274,198,698 | 0 | 1 | null | 2021-07-11T14:22:12 | 2020-06-22T17:14:51 | null | UTF-8 | Python | false | false | 149 | py | #!/usr/bin/env python3
from brain_games.games.brain_progression import run_game
def main():
run_game()
if __name__ == "__main__":
main()
| [
"sasha_2014@mail.ru"
] | sasha_2014@mail.ru |
b68fdf5ed28f9776e107e9fb139a9a61db938a29 | 9e4b28953346211906663006e43508ee86cfcf84 | /hello_flask.py | ed90fcf50b2436243fefbed4339581b7daf8ceed | [
"MIT"
] | permissive | Kimblebrook/hello_bears | 3d8825d59d1db15344b337d4ef80e9b1fa888542 | 15a1ddc3a67885689ed23507a930266b4e0ae666 | refs/heads/master | 2021-05-04T10:11:47.468446 | 2018-02-06T21:28:02 | 2018-02-06T21:28:02 | 52,266,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | from flask import Flask, render_template, request, redirect
from snowplow_tracker import Emitter, Tracker
from snowplow_tracker import SelfDescribingJson
app = Flask(__name__)
email_addresses = []
e = Emitter("localhost:8080")
t = Tracker(e, namespace="python", app_id="hello_bears")
@app.route('/emails', methods=['... | [
"stewart.duncan@simplybusiness.co.uk"
] | stewart.duncan@simplybusiness.co.uk |
583004daaa7b7a7ef88a665bbefb063dfe271824 | 94677e1d12cf07307c59eba4a82c9deebbbcb2f6 | /currencyAtlas.py | 09a27417f30795b363b5c8cb20d87a1de9a89644 | [] | no_license | jonnyf89/AirlineManagementSystem | aa244f9257f69e0fcd7be5c6c877b9068680685f | 1c54d0b833bc05008e8d6aa784e7967cfd901584 | refs/heads/master | 2021-05-15T03:14:07.178179 | 2017-10-04T16:37:10 | 2017-10-04T16:37:10 | 105,790,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | '''CurrencyAtlas class holds information on currencies'''
'''it takes a csv file as an input and uses this to populate a dictionary object with relevant data about each currency'''
import csv
from currency import Currency
class CurrencyAtlas:
__currencyDict = {} #this is the currency ... | [
"jonathan.gorselodge@gmail.com"
] | jonathan.gorselodge@gmail.com |
df623888c31304f5867fa8b6f810794da0acaf65 | 00f51ffb9cfe1785871269aee5b12be0b692763a | /neuralnetwork/models.py | f992c6f56b22c1cd7381a9bbd421f97fee61943b | [] | no_license | ailiasi/Drafter | c46445ea250f8d8c21a85b8ea0afdf13e53a3e0c | 821d2c8b4b8896d61c745faf1c2b998254ddc300 | refs/heads/master | 2020-04-22T21:09:23.943553 | 2019-03-04T12:33:15 | 2019-03-04T12:33:15 | 170,664,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | import keras
from keras.layers import Input, Dense, Dropout
from keras.models import Model
from keras import regularizers
def siamese_model(input1_shape, input2_shape,
output_nodes,
num_siam_layers, num_siam_nodes,
num_hid_layers, num_hid_nodes,
... | [
"aili.asikainen92@gmail.com"
] | aili.asikainen92@gmail.com |
87575ea8f47f2baef66edf756f50578d54f9d9b1 | 03969015ab882f4751dc0e91beeda1212babca48 | /robot_code/Nimbus_ws/build/kinova-ros/kinova_moveit/robot_configs/j2s7s300_moveit_config/catkin_generated/pkg.develspace.context.pc.py | 6e682d56813b11fdfaeba0a3081955bd2437a094 | [] | no_license | lnairGT/Thesis_code | f3ad57f4344691227dcd128a741eb9c0e937738e | 6f5dbfc2510272f294a0e9bb4273beceeacbff2a | refs/heads/master | 2023-03-17T21:43:56.320553 | 2020-09-26T16:05:31 | 2020-09-26T16:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "j2s7s300_moveit_config"
PROJECT_SPACE... | [
"lnair3@gatech.edu"
] | lnair3@gatech.edu |
b36e5ba6704b5848181977ee4ee4422bac400451 | fb377465aaf1fa4e90bd659e58fdc71ad19a5b45 | /scripts/ROS Simulation/test/input.py | 6c988fab059445b415ae36a38815d30a4e5251bd | [] | no_license | MohamedAlaaEldinFarghaly/DeepRL-Autonomous-Vehicle-ROS | 1a469b3086804a7d8dbf50856fa32d5fb7a24315 | ab9baf0454122b8058340a291fe2c030b02e159f | refs/heads/master | 2021-05-21T22:44:03.434289 | 2020-04-03T20:56:28 | 2020-04-03T20:56:28 | 252,839,624 | 0 | 0 | null | 2020-04-03T20:54:31 | 2020-04-03T20:54:31 | null | UTF-8 | Python | false | false | 370 | py | import numpy as np
with open('W9.txt', "r") as ins:
for line in ins:
items = line.split(",")
tmp=np.asarray(items)
ttmp = tmp.astype(np.float)
W7_txt = ttmp.reshape(1, 10)
with open('W1.txt', "r") as ins:
for line in ins:
items = line.split(",")
tmp=np.asarray(items)
ttmp = tmp.astype(np.float)
W1_txt = ttmp... | [
"noreply@github.com"
] | MohamedAlaaEldinFarghaly.noreply@github.com |
dc9b9f5a1b09050d49ef8368e52933489708309b | 0c575380b862ef3b7e06b57bd923cae589c042a6 | /python/problem11.py | e6ed18f07536b0cdfc8c936506195e581e0a81a6 | [] | no_license | mawaldne/projecteuler | 9e6bbef2b49fd7a37b1f33c6e4a9868f37606fe5 | b9f158abd9dec4d54e6c0f17ca5e554a0a31c6c4 | refs/heads/master | 2020-08-05T00:58:27.950931 | 2015-05-23T21:03:26 | 2015-05-23T21:03:26 | 1,083,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from operator import mul
from functools import reduce
data = open('problem11.input').readlines()
maxnums = [];
#horizontal
for n in data:
n = n.split(" ");
nos = [int(c) for c in n];
maxnum = max([reduce(mul, nos[i:i+4]) for i in range(len(nos)+1-4)])
maxnums.append(maxnum)
#vertical
rows = 20
a = [[] for j in... | [
"mike.waldner@gmail.com"
] | mike.waldner@gmail.com |
d7d7fdfe8c4897c3966327426b5d757e48d83d63 | a39a06bd11832e1d8fda45e3905042a2a230f17c | /user/migrations/0007_publishersettings.py | 10b054dfd1a45322750bbf20aab59c6298784821 | [] | no_license | yugeshk/event-notifications | a33abf3d643857b02a8d5d932a693843a58c90d6 | 6879d796b9e1865fdd45a823f2f732aaa0789816 | refs/heads/master | 2021-07-24T14:01:19.253174 | 2017-11-06T18:32:02 | 2017-11-06T18:32:02 | 105,417,889 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-09 15:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user', '0006_usersettings'),
]
operations = [
... | [
"yugesh.kothari@gmail.com"
] | yugesh.kothari@gmail.com |
d3d6a6dd4e5a0e01011c19d53eb94ff46405d565 | 2b7122d25339155f33efb2f742c1ed8c0f324e4d | /fifo_return_and_transfer/models/transfer_over_locations_lot_lines.py | 79dba89835332ecc3b0cf44e021089fc7b134ba8 | [] | no_license | mohamed-helmy/business_land | 4534678883aae0b4ba713e0a3253264310f76585 | 0dfad1783183fe52e603dc1cd168241f62d97dd2 | refs/heads/master | 2022-04-15T17:25:16.661766 | 2020-04-15T12:29:50 | 2020-04-15T12:29:50 | 255,908,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | # -*- coding: utf-8 -*-
import os
import base64
import logging
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError, UserError
_logger = logging.getLogger(__name__)
class TransferOverLocationsLines(models.Model):
_name = 'transfer.over.locations.lines'
product_id = fields.Many... | [
"helmy419@gmail.com"
] | helmy419@gmail.com |
6875ed7f1a4016c5bfb9400aa55a125b509c46ec | 692eceac2533150b86aa173b451698b7a12ff735 | /PycharmProjects/AutoPackageForiOS/venv/bin/pyrcc5 | 5c54f39fda0bbb0eac69a225525e8372d8500495 | [] | no_license | linlufeng/LufengLearnPython | cb74f34926663dc9b7d4d6789e6e7e044dd73db3 | bedcbf4fea6d048a3903a623a4386ac5d484a70d | refs/heads/master | 2022-09-12T22:14:19.243757 | 2022-08-25T02:54:13 | 2022-08-25T02:54:13 | 200,183,327 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | #!/Users/lufenglin/Documents/git/LufengLearnPython/PycharmProjects/AutoPackageForiOS/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from PyQt5.pyrcc_main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yuzhibo_8486@qq.com"
] | yuzhibo_8486@qq.com | |
5b0ac47bd8ea13361467fd9f3835b9eaa5426b9a | 6547262baa89554b8e98a697302c74e84852f88a | /server/openslides/assignments/migrations/0023_assignmentpoll_change_fields_2.py | 492ac18ce6907eea05b544a75f769a90a0dec5c3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | FinnStutzenstein/OpenSlides | f957ec63fd5224e9fce1a3ea0ea24a0cf5cf7454 | 7dc35dce404339b41c7729eb3de29010ca63f9a0 | refs/heads/master | 2021-11-26T21:19:42.408206 | 2021-07-15T08:38:26 | 2021-07-15T08:38:26 | 64,663,189 | 0 | 0 | MIT | 2020-08-18T10:52:58 | 2016-08-01T11:58:39 | TypeScript | UTF-8 | Python | false | false | 529 | py | # Generated by jsangmeister on 2021-03-22 12:44
from django.db import migrations
from ...poll.migrations.poll_migration_helper import (
calculate_vote_fields,
set_is_pseudoanonymized,
)
class Migration(migrations.Migration):
dependencies = [
("assignments", "0022_assignmentpoll_change_fields_1"... | [
"joshua.sangmeister@gmail.com"
] | joshua.sangmeister@gmail.com |
06bd436df6b2f75483f574c29f1c39df8fbfe3c1 | 9d07c1343412a6e426724e92b451c4313a6f729b | /ranker/ESLinearRanker.py | a3d350b0db5c51b91a802b1f151b83a3c16d8dcb | [] | no_license | hscells/OLTR | 793f3879fbecd5072e157ad875346c0a4e4fccec | 1a305ab7a4219737b673aca597a70fd4f634e8d8 | refs/heads/master | 2020-11-25T17:22:12.503247 | 2019-12-18T07:17:16 | 2019-12-18T07:17:16 | 228,771,699 | 0 | 0 | null | 2019-12-18T06:17:46 | 2019-12-18T06:17:45 | null | UTF-8 | Python | false | false | 1,702 | py | from ranker.COLTRLinearRanker import COLTRLinearRanker
import numpy as np
class ESLinearRanker(COLTRLinearRanker):
def __init__(self, num_features, learning_rate, sigma, tau, gamma,
learning_rate_decay=1, random_initial=True):
super().__init__(num_features, learning_rate, 1, tau, gamma, l... | [
"s4416495@gs640-7539.eait.uq.edu.au"
] | s4416495@gs640-7539.eait.uq.edu.au |
f315d6ed32378aad77511b5cccf9a2e5ba9196d9 | 2b494a59a440ffd9254ce5123a19c6b530e05046 | /FileGen.py | ef000e40399c39fcdb8a8cf056a722830fe0ba63 | [] | no_license | doofusdavid/CSC507_PortfolioProject | 23ced3ed7a749183f0c3c1ef7d59ae9bc1ed41e2 | 96e4b32f741224cc1188f2e68acc5783264c5477 | refs/heads/main | 2023-06-11T12:35:07.792653 | 2021-07-04T05:47:04 | 2021-07-04T05:47:04 | 381,175,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import random
def createFile(file_name, filesize):
with open(file_name, 'w') as file:
for i in range(filesize):
if i == filesize - 1:
file.write(str(random.randint(0, 32767)))
else:
file.write(str(random.randint(0, 32767)) + '\n')
filesize = 100000... | [
"david.edwards@gmail.com"
] | david.edwards@gmail.com |
e4696b685242ca20a4308f4347f3e862d92b0812 | 83092db43b4c9d814d7b7703fcf4ff8118197eef | /Extracao_de_pico.py | f469b9cc4776bc36eb0b2b3b45f94edb917332ad | [] | no_license | AnaFrozza/TCC | 4d3237feb35bdb5c67e1c18e6c3027c057ffde3e | e014addf65737b580fa00e59429b017ecb7246d6 | refs/heads/master | 2020-03-17T12:09:04.811103 | 2019-05-15T06:18:53 | 2019-05-15T06:18:53 | 133,576,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | # -*- coding: utf-8 -*-
import matplotlib
import seaborn
import numpy, scipy, IPython.display as ipd, matplotlib.pyplot as plt
import librosa, librosa.display
plt.rcParams['figure.figsize'] = (14, 8)
# Exibe sinal CQT
def exibe_cqt(x, sr):
cqt = librosa.cqt(x, sr=sr, n_bins=(n_octaves * bins_per_octave), bins_per... | [
"annafrozza@gmail.com"
] | annafrozza@gmail.com |
da40d2299ca6a29dba2c1bd7aa94ff0fe0103f3b | 824e4f31870c3efb7620dba94889dd80f84dbd5d | /personalizacion/__manifest__.py | cc9cf10ee9008e5385a6246faca395e694f9bd8d | [] | no_license | sistemasedy/test-odoo | a7f018da34c00fa34454fcb33506f88cd3c99ff4 | 1d04a405b446b64e3bdbf2bdb18e1cd48ebde450 | refs/heads/master | 2020-03-28T03:50:48.453973 | 2018-11-21T18:18:28 | 2018-11-21T18:18:28 | 147,675,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # -*- coding: utf-8 -*-
{
'name': "Personalizacion",
'summary': """Personalizacion a medida para sistemas""",
'description': """
Desarrollo a medida
""",
'author': "Em Software",
'website': "http://www.emsoftware.com",
# Categories can be used to filter modules in modules listing... | [
"serviciosedy@gmail.com"
] | serviciosedy@gmail.com |
5880c0827ea66934508a726be8872889a8a495b6 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_ipsec_policy.py | 6465a35577db1b7ad970a373ef3d7dce243d5781 | [
"MIT",
"GPL-3.0-only"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 24,128 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2018, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
---
module: bigip_ipsec_policy
shor... | [
"sifang@cisco.com"
] | sifang@cisco.com |
872ffcf5cc8c83fe7aeff360d306dbbe97d015b3 | 7661c9f14a749f7ffd4e78299ded5dd72b46553e | /keras_DQNdrone.py | 3a3ba2734df60059e96d1ffb8dd46e082fa3499f | [
"MIT"
] | permissive | ysbsb/dqn | 8ae4edff0f900fd1efcda6d0378d1f313d88b673 | e1b9175a5c9dc2fb7b633b4df54c33fbba7e1e15 | refs/heads/master | 2020-05-22T14:35:43.135505 | 2019-05-14T04:48:59 | 2019-05-14T04:48:59 | 186,390,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,499 | py | from keras.layers import Input, Dense, Reshape, Flatten, Dropout, Activation
from keras import regularizers
from keras.models import Model
from keras.optimizers import Adam
import numpy as np
# from collections import deque
import random
import gym
# from typing import List
import argparse
class DQN():
def __init_... | [
"subinlab.yang@gmail.com"
] | subinlab.yang@gmail.com |
c731a0422743b260fba8416847e5a1c79428c958 | bc21702676592039ec1adda986a1dabe8f26ac7f | /lemonade_stand.py | 7a6d5d1053af06ed267602289384111bfb618c47 | [] | no_license | rhvonlehe/KidsPrograms-LemonadeStand | 8c96f0653f0ce567f636493aad85c981eeb949f5 | 134465ce25f15956dd30a0abac2e4fa24e7fd9ea | refs/heads/master | 2021-01-19T00:25:03.980929 | 2016-05-31T22:49:40 | 2016-05-31T22:49:40 | 60,126,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | py | #!/usr/bin/env python
""" Simple version of classic lemonade stand game. Written in Python 2.7
"""
__author__ = 'Rich von Lehe'
import random
class Day:
""" Day responsible for things that change daily
"""
def __init__(self):
self.day = 0
self.weather = 0
self.lemonade_price = ... | [
"rhvonlehe@gmail.com"
] | rhvonlehe@gmail.com |
db7dec2273d99297a4fd13152de5bb4dd61f6195 | d390393d52bb3b73a94bfa0094c089d94ce17b40 | /10_multiprocessing/class_.py | e0c7c98126165c434637299fd9d51a19be320513 | [] | no_license | bunbunjin/exercise | b975eff5ecd0c778a24f02bcf7c675d3920ca2db | 101b112ce27691edda5c73179498f4da81681188 | refs/heads/main | 2023-06-06T07:17:58.719902 | 2021-06-23T12:59:34 | 2021-06-23T12:59:34 | 345,110,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from concurrent.futures import (ThreadPoolExecutor, Future)
def func():
return 1
future = ThreadPoolExecutor().submit(func)
a = isinstance(future, Future)
print(a)
aa = future.done()
print(aa)
aaa = future.running()
print(aaa)
aaaa = future.cancelled()
print(aaaa)
| [
"bunbunjin.aisu@gmail.com"
] | bunbunjin.aisu@gmail.com |
14d0bb0192ee02c572986075e83149d437e63705 | f69fbe895fe05725a5a146d69963d47d3b512514 | /Python/Tutorial/raw_input.py | f01bd676b326f8041320bc7c5f9c40f7770a43ad | [] | no_license | mcmullan0/scripts | f17e333d72161728c9bd05732a9cedc570fbb0b4 | 30ed75b6523c6b1506d38590e01f7f51e3a943b9 | refs/heads/master | 2021-01-17T01:25:49.251510 | 2020-12-04T21:51:43 | 2020-12-04T21:51:43 | 16,819,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # This line makes 'a' equal to whatever yoo type in
a=raw_input("Type in something, and it will be repeated on screes:")
# This line prints what 'a' is now worth
print a
| [
"mcmullan0@gmail.com"
] | mcmullan0@gmail.com |
e2832281c1aa8ca77772d77f40f3b977505f4801 | 1b5598ff8ebe75af6abded38e38072fb7592ef5a | /Homework2Prob2FeysFunction.py | c94da14d19e0cc09e65975528f98e8770048877f | [] | no_license | TheTony/CompMeth_Tony | 34ac2b1e7f552c32c6f14a15ca4aa54e35321d84 | 8a6097ce2ca5ec9f5c68e94b6ec1d099222fbbbe | refs/heads/master | 2021-01-23T17:05:37.044560 | 2017-10-02T22:10:19 | 2017-10-02T22:10:19 | 102,759,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 18 10:57:13 2017
@author: Le
"""
import matplotlib.pyplot as plt
import numpy as np
from math import sqrt,sin,cos,pi
from numpy import empty,zeros
from pylab import imshow,gray,show
theta=np.arange(0,24*np.pi,0.01)
r=np.e**(np.cos(theta))-2*np.cos(4*theta... | [
"noreply@github.com"
] | TheTony.noreply@github.com |
0ac8818db9722f646577afd3742934b3f89c1e33 | caa6dced49f2d03d4fed4c0e9c6f09d0d374e7ce | /Python/2631.py | ee325c0fec1547f03f350ba8ee03a5739e889670 | [] | no_license | hooong/baekjoon | 72e70cea5769467609150416be6f075f9d4c136a | 541f67859de0871ecfa134f8e5c6a8f399d17a1e | refs/heads/master | 2022-04-06T09:21:26.761766 | 2022-03-02T12:57:21 | 2022-03-02T12:57:21 | 180,535,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # 2631번 줄세우기
# main
n = int(input())
children = []
for _ in range(n):
children.append(int(input()))
# LIS
dp = [0 for _ in range(n)]
for i in range(n):
dp[i] = 1
for j in range(i):
if children[j] < children[i]:
dp[i] = max(dp[i], dp[j] + 1)
print(n - max(dp)) | [
"tjrwns0529@gmail.com"
] | tjrwns0529@gmail.com |
978c325e392f017cfe2d09bf32c63c7858502254 | 4501366d68af6a083f3c97bc97ceed0491b9412a | /Karaoke/tests/songs_test.py | 4f7d949ef9a18a0132f1889df4db8669bc213f9e | [] | no_license | klamb95/Karaoke_weekend_homework | ea0dc0dad4e56edeb2b34f2c6b55c717f3044055 | 6666dacae729ead64c4c477b12490168a883691b | refs/heads/main | 2023-04-09T17:00:42.640367 | 2021-04-11T15:30:05 | 2021-04-11T15:30:05 | 356,241,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import unittest
from src.songs import Songs
class TestSongs(unittest.TestCase):
def setUp(self):
self.songs = Songs("Dive", "Ed Sheeran")
def test_songs_has_title(self):
self.assertEqual("Dive", self.songs.title)
def test_songs_has_artist(self):
self.assertEqual("Ed Sheeran", se... | [
"klamb1995@gmail.com"
] | klamb1995@gmail.com |
1f9f53bb94e996fa539cdb01e1239003135843b5 | 7ca55428503fc915fcffb8059d30654b625a6b26 | /144-move_x_recursion.py | e1e65a31d6f019b14ca4a2d00c47464002378b39 | [] | no_license | Akshata2704/APS-2020 | 453e9eafb511e3e5fc73d939180c3402eb93134e | 8f095ae1af9653499f1dedcdfe12b60b1ad1f65c | refs/heads/master | 2020-12-21T03:10:52.043400 | 2020-05-15T18:51:48 | 2020-05-15T18:51:48 | 236,286,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 15 21:53:42 2020
@author: AKSHATA
"""
def mov(s,l,h):
if(l>=h):
return
sw=s[l]
if(sw!='x'):
print(s[l],end="")
mov(s,l+1,h)
if(sw=='x'):
print('x',end="")
return
s=input()
mov(s,0,len(s)) | [
"noreply@github.com"
] | Akshata2704.noreply@github.com |
0c0c9aaffa49dbc21bd275216e833c1d48c321ed | b187b3775c8eeda62a868be93ea67defc0f27187 | /raycom/migrations/0002_auto_20190426_1142.py | 2769740baf9ea799697222e02d707c954eb391ac | [] | no_license | azizcruz/reviews_api | 598f040c276273a8e918fc215e087faeddb46158 | 73966e6be7138d885fa8378db284e0aa26226a5b | refs/heads/master | 2020-05-16T12:28:49.032994 | 2019-05-14T11:36:20 | 2019-05-14T11:36:20 | 183,046,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # Generated by Django 2.2 on 2019-04-26 11:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('raycom', '0001_initial'),
migrations.swappable_dependency(setting... | [
"edu@localhost.localdomain"
] | edu@localhost.localdomain |
0f6b9a29f695d6a12f1e4b962dc13b9b1785e7da | b06e79c15b9d635e61de5e48dcb820e4a45033bb | /python/Django学习模板/HelloWorld/HelloWorld/settings.py | f2e0a84f5415c9af338372c420e9e28ba3094550 | [] | no_license | pangdoh/code | 370fc5dd6d0ab4726f2740a6149ee61b7ed6ccff | 4f7713fa509b4dd677dcef8fccef09e260c8713a | refs/heads/master | 2021-06-30T12:25:31.314372 | 2020-12-24T14:46:07 | 2020-12-24T14:46:07 | 205,757,203 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | """
Django settings for HelloWorld project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"pang_doh@163.com"
] | pang_doh@163.com |
c5ec7693c4d1ad50eb2488ac5e263064011ac2d7 | 70b6d3cedcc698cd6aae5b4885db2c1b6c71e77b | /source/maizi_website/wsgi.py | 320998cfcadd42f22b0b11821e6d63e31134737f | [] | no_license | maizi-stu-000/maizi-stu-000-project | f1ed81b8f72cc23f83855a9893f5b177fcc850da | ce2d1ff792bf72d83567067ec95660d38bdff6bb | refs/heads/master | 2021-01-10T07:48:43.673528 | 2015-11-05T02:45:33 | 2015-11-05T02:45:33 | 45,023,078 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for maizi_website project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"yopoing@maiziedu.com"
] | yopoing@maiziedu.com |
3a5b6bb4c201130db6a6a0af3e6eb8c0618ff697 | 23b9fab50737e95c36ede555d9fefa8a680b128e | /LCS.py | 26051b28878328caa0d862eeea408093a913e25c | [] | no_license | jagjeetsian/LCS | 10facf5d879ee29dcc975f59c1cdad6c5d052065 | 4b193e82254c305fda1e76b4a8a32c3775566e47 | refs/heads/main | 2023-03-26T14:08:34.639864 | 2021-03-29T18:15:01 | 2021-03-29T18:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | s1=input('enter a string:')
s2=input('enter another string:')
if len(s2)>len(s1):
s2,s1=s1,s2
#Creating lcs matrix with inputted sting in one row and one column and filling rest with zero
lcs=[]
for i in range(len(s2)+2):
l=[]
for j in range(len(s1)+2):
if i>1 and j==0:
l.append(s2[i-2... | [
"noreply@github.com"
] | jagjeetsian.noreply@github.com |
1489885199041c12c3297d9bafcb5cc695676b17 | fe2b59b2e7129b8b0a1ed57f889f21aa096c19f5 | /usr/lib/enigma2/python/Components/Converter/mFlashInfo.py | 52c6550c5e32a6e6691a2fc68b921f873de18b58 | [] | no_license | linuxbox10/Pingu-NavyBlueFHD | 07ebca1526327e29da457710abafb5d07226943d | 0c16228e1a585a78967d4162f390132450a2d9b8 | refs/heads/master | 2020-06-10T12:43:15.468096 | 2019-06-25T06:20:00 | 2019-06-25T06:20:00 | 193,646,776 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | #
# FlashInfo - Converter
#
# Coded by Dr.Best (c) 2012
# Support: www.dreambox-tools.info
#
# This plugin is licensed under the Creative Commons
# Attribution-NonCommercial-ShareAlike 3.0 Unported
# License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a le... | [
"jaysmith940@hotmail.co.uk"
] | jaysmith940@hotmail.co.uk |
4db551610f08a55f29d87a232830e544a60278d3 | 6a25ea6835d8c3d9e0411449afc5a1af6fc2cba6 | /server/webapp/modules/home/__init__.py | 69f43e5d4da6e00d6d91a15551b27fddb007a676 | [] | no_license | igorgoncalves/NutriData | 8887be76c84e92de2a21bab28cbd7aeb61eeba2f | a77e6645f2ae3cba8aabdea3bb41b4e26218abc4 | refs/heads/master | 2022-12-25T14:24:17.302174 | 2020-06-03T00:31:54 | 2020-06-03T00:31:54 | 161,583,550 | 1 | 1 | null | 2022-12-10T16:46:43 | 2018-12-13T04:23:58 | Vue | UTF-8 | Python | false | false | 282 | py | from webapp import app
from flask import Blueprint, render_template
home = Blueprint('home', __name__)
@home.route('/', defaults={'path': ''})
@home.route('/<path:path>')
def catch_all(path):
return render_template("index.html")
app.register_blueprint(home, url_prefix='/')
| [
"igor_goncalves@live.com"
] | igor_goncalves@live.com |
63af706648e3f2b92f0a1eb0b10519cd555073f1 | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /20_solo/lib/configs/solo/decoupled_solo_light_dcn_r50_fpn_8gpu_3x.py | e72d112ae51c3f5d2d8cf88daa74e455f89cabdd | [
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 4,074 | py | # model settings
model = dict(
type='SOLO',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3), # C2, C3, C4, C5
frozen_stages=1,
style='pytorch',
dcn=dict(
type='DCN',
... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
726ad21fb2c8792f6d02e80696dde219bd3e0c22 | 5444932fdae48c5ff82f78eaa42052d7e86e90df | /PyOIO/OIOCommon/virkning.py | ac90ee63202c01700d2aebc77d255e43a054ae69 | [] | no_license | JosefAssad/SeMaWi-LoRA-early-sketch | 3755849080bf3dfc91b489fe7d05b4906c521f15 | 8f92f5a8cdcc9e10c6653d0aeed944569687800f | refs/heads/master | 2016-08-12T19:58:18.461900 | 2016-03-02T12:11:32 | 2016-03-02T12:11:32 | 52,959,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | #!/usr/bin/env python
class Virkning(object):
""" Virkning is a fairly broadly used class. Its purpose when attached to
metadata is to lend the metadata bitemporality.
"""
def __init__(self, json):
"""Args:
json: (dictionary) data containing the attributes of the Virkning object
... | [
"josef@josefassad.com"
] | josef@josefassad.com |
2decb4dea21e871bd38fac9f23ba7ba24c87a289 | 19cec240505e27546cb9b10104ecb16cc2454702 | /moin/lib/python2.4/site-packages/MoinMoin/parser/java.py | be48f35eda7775b57a712423514394173cbb7be3 | [] | no_license | imosts/flume | 1a9b746c5f080c826c1f316a8008d8ea1b145a89 | a17b987c5adaa13befb0fd74ac400c8edbe62ef5 | refs/heads/master | 2021-01-10T09:43:03.931167 | 2016-03-09T12:09:53 | 2016-03-09T12:09:53 | 53,101,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - Java Source Parser
@copyright: 2002 by Taesu Pyo <bigflood@hitel.net>
@license: GNU GPL, see COPYING for details.
"""
from MoinMoin.util.ParserBase import ParserBase
Dependencies = []
class Parser(ParserBase):
parsername = "ColorizedJava"
extensions = [... | [
"imosts"
] | imosts |
b28df3062054851c0a69f512b1e9f1efc9e316a7 | 8a24da4ee92c64e0f18af2aa42486d4666b4f0d4 | /django_login_registration/urls.py | 7d8a8be8b5b2bf67f4b07a106874516384824ec3 | [] | no_license | gnsaddy/django_login_registration | 515b8b1532ca90aa416313726c5766ae374a35a2 | 746ce7230496680ad1ca2912a7b50ee2b7f7df15 | refs/heads/master | 2022-11-07T02:58:14.811221 | 2020-06-23T10:58:02 | 2020-06-23T10:58:02 | 270,728,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | """django_login_registration URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"aditya.x510@gmail.com"
] | aditya.x510@gmail.com |
76de45ae4a4b157e710bf791c0d171343a64eb72 | 56c85ae9a4e43c6c67ade51c117b1f774d941d17 | /blog/migrations/0001_initial.py | 1105267166f832a5daf3f4c4d725026f6df006d9 | [
"MIT"
] | permissive | v1k45/blogghar | d367b41ad4ff30378826d454df398cb43c0f971b | ec0d2f633880af7f78cfb3412325301a5976b90c | refs/heads/master | 2020-12-24T20:52:20.585477 | 2016-05-15T05:29:00 | 2016-05-15T05:29:00 | 58,632,622 | 17 | 11 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-07 11:06
from __future__ import unicode_literals
import autoslug.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencie... | [
"v1k45@users.noreply.github.com"
] | v1k45@users.noreply.github.com |
13051baba28a9db18301bf2d6fc526c6dd2a6f3c | f02a312e15006672fdf82edc8970ed310f40b9e2 | /app.py | 968cb414ed802599852837e79451b5a1efb76e48 | [] | no_license | gattimiswarnaravali/CNN_Cat_vs_Dog | c6f6a6887f51d53436747a3296e36b52b1a6bcc0 | 7a1f6bac4f7af5de9723c4d676106eac5305dd11 | refs/heads/main | 2023-07-11T15:37:14.831809 | 2021-08-31T16:23:59 | 2021-08-31T16:23:59 | 401,061,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | # application file
from flask import Flask, render_template, request
from werkzeug.utils import secure_filename
import tensorflow
from tensorflow.keras.preprocessing import image
import cv2
import numpy
import os
#insitalize the app
app = Flask(__name__)
#load the model
model = None
#tensorflow.keras.mo... | [
"noreply@github.com"
] | gattimiswarnaravali.noreply@github.com |
d2199dbdc489870654093364b7aa874db921cf2c | 614187662fa96bc1ea41cfec46ec15fb346dae4e | /PSF_TP/psf_python_tp/py_mod3.py | f42e2e2691b7ed926094e3a657338aa433f46b04 | [] | no_license | damf618/PSF_TF | 6b8e21eb891f4ddcc34a8d4ced7e8eda36f1ed58 | 42cf820e60227db2af5e6d00bd46cfb3990a89b4 | refs/heads/master | 2023-07-17T05:16:53.244341 | 2021-09-03T12:06:57 | 2021-09-03T12:06:57 | 390,943,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,367 | py | import numpy as np
import scipy.signal as sc
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
# Configuracion de las Seniales
#--------------------------------------
fs = 8000
N = 8000
M = 550
cutFrec = [200,400,800,1600,3200,fs]
f1 = 100
f2 =... | [
"damf618@gmail.com"
] | damf618@gmail.com |
d48f15e50dc1a339fcf4479a824f50b05d54cc8e | 1415fa90c4d86e76d76ead544206d73dd2617f8b | /venv/Lib/site-packages/direct/leveleditor/LayerEditorUI.py | d77f8779bb6d51e938dbd433de3cace14d3e9688 | [
"MIT"
] | permissive | Darpra27/Juego-senales | 84ea55aea7c61308ec1821dac9f5a29d2e0d75de | e94bc819e05eff1e0126c094d21ae1ec2a1ef46d | refs/heads/main | 2023-04-04T07:27:53.878785 | 2021-04-09T00:00:44 | 2021-04-09T00:00:44 | 353,472,016 | 0 | 1 | MIT | 2021-04-09T00:04:31 | 2021-03-31T19:46:14 | Python | UTF-8 | Python | false | false | 9,507 | py | """
Defines Layer UI
"""
import wx
from pandac.PandaModules import *
from . import ObjectGlobals as OG
class LayerEditorUI(wx.Panel):
def __init__(self, parent, editor):
wx.Panel.__init__(self, parent)
self.editor = editor
self.editorTxt = "Layer Editor"
self.saveData = []
... | [
"daviricado08@gmail.com"
] | daviricado08@gmail.com |
d2e128c4caf17377cb2158dc6a4f3971f2be5d87 | 0bcdf50443ce11216b2ca7651e18bba1fb27542d | /algorithm/BAEKJOON/14889스타트와링크.py | 582433a58ac3dbf2f37ed4dfd1bf752b9464e5fb | [] | no_license | qqyurr/TIL | d4bdf75bbec8c4140d8d898dfba4823de3bf3ce0 | efb689c2dcaaf1cfc1ff429e29fdb7294a770d2a | refs/heads/master | 2023-07-19T11:48:56.732651 | 2021-09-07T09:10:29 | 2021-09-07T09:10:29 | 280,100,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from itertools import combinations
import sys
sys.stdin = open('14889.txt')
N = int(input())
BRD = [list(map(int, input().split())) for _ in range(N)]
members = [i for i in range(N)]
team = []
# n명을 2팀으로 나눈다 -> 조합 필요
for i in list(combinations(members, N//2)):
team.append(i)
# print(team)
min_num = 10000000
for i ... | [
"byyulli16@gmail.com"
] | byyulli16@gmail.com |
b2d9331b42f37ba0e758f1c0f3d3289f23cad210 | 6cd1ee8d95ad5b99d3c41c31235bd1a2b5fa6741 | /REST/views.py | cce0a822eb6bea1ab7f024289bf2ee23ab6f7973 | [] | no_license | ZohanHo/bloodhound | bd21ae1d167385d67234bc161d169e5920b5a72e | 475d17bc3d86cc9a730038300b9133d743288298 | refs/heads/master | 2022-12-14T00:10:20.151756 | 2019-04-21T21:58:45 | 2019-04-21T21:58:45 | 176,072,576 | 0 | 0 | null | 2022-12-08T01:44:30 | 2019-03-17T08:02:04 | Python | UTF-8 | Python | false | false | 1,008 | py | from django.contrib.auth.models import User
from base.models import Contact
from .serializers import UserSerializer, ContactSerializer
from rest_framework.response import Response
from rest_framework import status, viewsets
from rest_framework.decorators import action
#Для доступа и авторизации
from rest_framework.pe... | [
"serdik.evgeniy@gmail.com"
] | serdik.evgeniy@gmail.com |
9d06f72217ec2d55e28afe9e7463b706f9083af0 | d96890324d0b8f78cea54e473b9916d2f1eb7265 | /setup.py | 1a31a7b9c208ad57b7b1fc2048bb070f2e2b7bae | [
"MIT",
"Apache-2.0"
] | permissive | jonasrk/spock | 55720311ca557ae8b25d38cf29c7af8ab46c117a | b50a5843fe8b91baf0fe34f944c9a7c478207532 | refs/heads/master | 2021-01-18T08:34:26.267485 | 2013-08-03T13:36:37 | 2013-08-03T13:36:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from distutils.core import setup
setup (
name='spock',
version='0.20',
packages=['spock', 'spock.mcp', 'spock.net',],
) | [
"nickelpro@gmail.com"
] | nickelpro@gmail.com |
a86211de4ee94a929e61f93a9d1f3b2c9942315c | 22161b04bbae0336f472513bbe0954d0f00ecc47 | /setup.py | ffe8f6fef18d688b72d4d4f47359ffe700c486ea | [
"MIT"
] | permissive | aleosd/confj | fc642e454be78d5fa19acae4ef5774b98c7e3b9b | d4d5bdc4a0c616fcebf5280503e74d8fdbd4b859 | refs/heads/develop | 2020-05-16T01:26:04.128098 | 2020-04-12T12:12:24 | 2020-04-12T12:12:24 | 182,602,068 | 1 | 1 | MIT | 2019-08-03T03:27:35 | 2019-04-22T01:27:09 | Python | UTF-8 | Python | false | false | 1,583 | py | from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='confj',
version='0.2.4',
description='L... | [
"osdalex@gmail.com"
] | osdalex@gmail.com |
79a05ceea872187af239174ca0489743e3de39ff | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/histogram_20200120000147.py | 72a6faadf900ceb40b16a8138e79bdf8aa3c6d00 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 311 | py |
def list_histo(source):
histo = []
text = source.split()
for word in text:
if word in histo:
word[0] += 1
else:
histo.append([1, word])
return histo
if __name__ == '__main__'
source = 'one fish two fish red fish blue fish'
histogram(source) | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
1a95fedf8e6f2af300f9dad269b4c9acdf8206d5 | 9be6b980d3d1c3cddcef3a16c196c2d868f83434 | /dummy/mysite/tutor4u/apps.py | 738608ac4c711c8b80588f017a8352b9762d95ed | [] | no_license | davidhzheng1996/Tutor4u | 8e55a3418e68ba53c48de21cd2a9aaeae7d04b27 | 797d8dccc5fbfd922b20198d51a27f8626d61435 | refs/heads/master | 2021-05-03T11:03:32.242287 | 2018-02-07T00:49:18 | 2018-02-07T00:49:18 | 120,542,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class Tutor4UConfig(AppConfig):
name = 'tutor4u'
| [
"31869047+davidhzheng1996@users.noreply.github.com"
] | 31869047+davidhzheng1996@users.noreply.github.com |
28db67f9597fe79f0b28b3f9da2ec34ad2a65175 | 123cff743e613412524e43d1207c6689a8b0a6d4 | /tests/test_user_facing.py | 2ca2b5d9b1e3ed6645b7f815adc4604e2ad65e7f | [
"Apache-2.0"
] | permissive | FrailLeon/CTFd | fbed8e028609abe98fb655d33ecc64731a31bace | 967129a00982b9a983559c63188f8ccca0f54ff3 | refs/heads/master | 2020-05-20T22:28:17.079017 | 2017-03-10T06:17:17 | 2017-03-10T06:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,111 | py | from helpers import create_ctfd, register_user, login_as_user
from CTFd.models import Teams
def test_index():
"""Does the index page return a 200 by default"""
app = create_ctfd()
with app.app_context():
with app.test_client() as client:
r = client.get('/')
assert r.status_... | [
"noreply@github.com"
] | FrailLeon.noreply@github.com |
e761790d3403a3377f68042fe6454043160d8708 | c3e1b190e59f4939a8effc10f10e46db3b945050 | /scripts/get-store-json.py | 02aeaf09f08b7b970cca81e502ecdf75aeae7c4e | [] | no_license | fwindpeak/oculus-quest-store-query | 6411ce76f3c897c8de2e6bcab2a2f255da185e20 | 97d68538b54617d765f1492227654baee2edb34c | refs/heads/master | 2023-03-03T03:53:40.868192 | 2020-12-24T02:04:26 | 2020-12-24T02:04:26 | 324,071,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import requests
import json
JSON_FILE_PATH="../public/oculus-quest-store.json"
url = "https://graph.oculus.com/graphql?forced_locale=zh_CN"
formData={
"access_token":"OC|1317831034909742|",
'variables':'{"sectionId":"1888816384764129","sortOrder":null,"sectionItemCount":999,"sectionCursor":null,"hmdType":"MON... | [
"fwindpeak@gmail.com"
] | fwindpeak@gmail.com |
4b56d99ab078dc5174cc5cdaa165aa30466c71d2 | bd2ddf9e3ed52bdc3e2f21a6d84efc05019cc6b0 | /Python/chapter2/2-3/hello-str.py | 7a56f95da7b9a9f42161950cfc0386a5e607b5f4 | [] | no_license | YosukeKira/main | c59bf564e8414ed2c33c914d4df8fb8ff4906c85 | f4331a18b2b7fc3f987dc8409e73485d2915e550 | refs/heads/master | 2023-01-09T19:16:57.641270 | 2020-11-09T03:56:23 | 2020-11-09T03:56:23 | 274,428,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # ダブルクォートで文字列を表現
print("hello, Python")
# シングルクォートで文字列を表現
print('Hello, Python') | [
"yosuke.kira.12.21@gmail.com"
] | yosuke.kira.12.21@gmail.com |
4f5c895c1d3811c30173849dadfd82fac9b9fbfb | 70c100bb0caf8c97cc18b37cee2e5fa118675c90 | /sparx/bin/sxgui_cter.py | b32feeb7984c2b8a9a882947dd65736f6fe05472 | [] | no_license | cpsemmens/eman2 | f45af91a99843eecc1cd8cd098bde4dda62353e1 | 2ea29af857fec774c27ab88b1c325ce7f9d3e491 | refs/heads/master | 2021-01-14T11:23:09.838327 | 2016-03-06T19:49:56 | 2016-03-06T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95,077 | py | #!/usr/bin/env python
#
# Author: Toshio Moriya, 12/21/2015 (toshio.moriya@mpi-dortmund.mpg.de)
#
# This software is issued under a joint BSD/GNU license. You may use the
# source code in this file under either license. However, note that the
# complete EMAN2 and SPARX software packages have some GPL dependencies,
# so... | [
"moriya@m14081a.client.mpi-dortmund.mpg.de"
] | moriya@m14081a.client.mpi-dortmund.mpg.de |
469d32d1dde946bd9338717e45a700cd2e19a8da | f6033ffeeef233e719f0dfdf246ab351c1f2e0be | /final_webspider.py | 342ad4c59097cd7f43df90a7cebabc5ee7f53a76 | [] | no_license | aoiheaven/pixiv_webspider | d8161216d1308bd3b0cceb07c92fc213cfc3c659 | 56da366f2a72c1ed918ab75b5306d45e06978830 | refs/heads/master | 2022-04-01T15:56:44.221228 | 2020-02-05T09:25:58 | 2020-02-05T09:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,167 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
#----------------------------------------------------------------------------------------------
# Title: WebSpiderForPixivTargetOnly
# Version: 0.98
# Author: AoiHeaven(MINGJIAN WANG)
# Date: 12/16/17
# ... | [
"devilqmcq@gmail.com"
] | devilqmcq@gmail.com |
08181b9dd59d9758e825019d3f9602d76e20b20e | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/HRnet-OCR/loss/rmi_utils.py | e66da6bac3e74361bc03788f446191958bbbb517 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,900 | py | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 th... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
6c5014f6f02fdf02d6ce5f1d6903a83d55880334 | 1a8e56f3de28e36ba6af1d2f5a17169af5e2576c | /learners/a2c.py | 4ed7e329ed25bed015b09e3fa0b221cac403d158 | [] | no_license | talolard/rlstocks | 71b57c53a93ee0bf05716f19064ced7653ab4b24 | 8ed7893aeb4ba3dc4491fb89fcbab9630f2f99f7 | refs/heads/master | 2020-04-16T13:58:47.298611 | 2019-01-14T11:42:08 | 2019-01-14T11:42:08 | 165,650,018 | 21 | 14 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | import tensorflow as tf
import tensorflow_probability as tfp
import numpy as np
class PolicyEstimator():
"""
Policy Function approximator. Actions are weightings over a portfolio of n stocks + cash
"""
def __init__(self, learning_rate=0.01, scope="policy_estimator",num_stocks=2,period=10):
with... | [
"talolard@gmail.com"
] | talolard@gmail.com |
1627febc64096a819a2aec1aae029007383fd203 | d55aeffe163ac7b3c4f4e43979e15c03ef34f61e | /stdlib/python2.5/compileall.py | b21d95f82c94ac092444ce6e930a753d1b81aebd | [
"MIT",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"Python-2.0",
"GPL-1.0-or-later"
] | permissive | kmod/icbd | ed7487d41ad2089b3cb1e1f2212f419d868cb8bd | 9636564eb3993afa07c6220d589bbd1991923d74 | refs/heads/master | 2022-11-24T01:33:14.831751 | 2016-11-13T00:40:55 | 2016-11-13T00:40:55 | 18,765,115 | 7 | 5 | MIT | 2022-11-21T17:11:18 | 2014-04-14T15:09:36 | Python | UTF-8 | Python | false | false | 5,283 | py | """Module/script to "compile" all .py files to .pyc (or .pyo) file.
When called as a script with arguments, this compiles the directories
given as arguments recursively; the -l option prevents it from
recursing into directories.
Without arguments, if compiles all modules on sys.path, without
recursing into subdirecto... | [
"kevmod@gmail.com"
] | kevmod@gmail.com |
1545e96bbe9cf81b0d127a0adf253cf60d3d651f | 4771e0beace4a7ba40b3135f749a9cef176291d3 | /mozio_app/migrations/0004_alter_provider_email.py | 172f782ecd9760ff53d889de70d4aebb9bf4956d | [] | no_license | Olamidun/mozio | 8b0b0151ee873684ab7fc7e50a887198945225ce | fd8dfb19e2dae1db116d0e183e5e6b24e18263ab | refs/heads/master | 2023-06-21T09:10:31.629210 | 2021-07-22T17:22:12 | 2021-07-22T17:22:12 | 388,116,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.2.5 on 2021-07-21 22:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mozio_app', '0003_provider_email'),
]
operations = [
migrations.AlterField(
model_name='provider',
name='email',
... | [
"kolapoolamidun@gmail.com"
] | kolapoolamidun@gmail.com |
7b9b67436fd2a69964c80526b776d635c6a16e01 | b133ca39198761fd0f6e6e13da0bdd563a223f2e | /orderspot/migrations/0002_auto_20200601_1612.py | 196d7df3eae47e2cf8d15987d467d18fabd2f46f | [] | no_license | Niko24x/OrderSpot-web | d75534f0d0f499238ec3d91f374ea5d6bb1e4cee | f49241760391a389b0bc222ee8aa3e3b91a6adb8 | refs/heads/master | 2023-05-06T00:34:53.531544 | 2021-05-13T04:46:42 | 2021-05-13T04:46:42 | 268,131,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # Generated by Django 3.0.3 on 2020-06-01 22:12
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),
('orde... | [
"jcojom@udv.edu.gt"
] | jcojom@udv.edu.gt |
5aaa95303a3f1a04d3034effc3cb95d6d7066b04 | c16edb928fe1cef190f48a8a82a7bbf14b96fac8 | /venv/Scripts/pip3-script.py | 5a264ab2d63c6a7a4d209b4e3c3b5399c534dcd6 | [] | no_license | jjkim01/flask-RF-thread-TempAlerter | fb284ce858af249c2f00c57de339453ae9473c6b | 5aff34ff4b331e6c0980cf7600392c035a80be69 | refs/heads/master | 2022-07-15T03:44:40.772126 | 2020-05-09T06:16:41 | 2020-05-09T06:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!C:\Users\LGUser\PycharmProjects\embadded\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"girls9759@naver.com"
] | girls9759@naver.com |
a9e2f8acd0bcfeb442ac861559e8fb1159104383 | 8cbb4ad2eea115cf227274700ddb768a02a91117 | /armorDetect.py | d76ee2014f3d633be2eda0eaf56190fb8a5e0d2a | [] | no_license | zzhtg/robovirsual | 7670d8d7de463c1b00f9062a15ab224a33e365de | b19d0f1afac4657b54319c9c841ea16e65e1b0bd | refs/heads/master | 2020-04-08T04:08:58.271725 | 2019-05-19T05:00:52 | 2019-05-19T05:00:52 | 159,004,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,237 | py | # coding=utf-8
import cv2
import numpy as np
import math
import SvmTrain as st
from scipy.spatial.distance import pdist
from scipy.spatial.distance import squareform
length_threshold = 1.0
width_threshold = 1.0
aspect_threshold = [0.9, 7.0]
ortho_threshold = [0.2, 0.2, 0.9]
target_num = None
ortho_mode = Fa... | [
"593153252@qq.com"
] | 593153252@qq.com |
8ff86885f156741487b3bd1a808969caad6e73fb | 126066f8a66bd9281e4d8b842ca00e7adcaebe3f | /blog/urls.py | a432bb7def16dddd342fcd1211d6611c33519550 | [] | no_license | aboro72/django-cms | ac0b5dd6af30a86ee89b2ef588c7c2b20976f2e2 | d3efce7e41b8428b1a0185198fec1c028d797b47 | refs/heads/master | 2022-12-04T09:31:41.878657 | 2020-08-29T09:03:26 | 2020-08-29T09:03:26 | 291,138,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
path('post/new/', views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
] | [
"andreas.borowczak@gmail.com"
] | andreas.borowczak@gmail.com |
9973e17b9c37f8a72cfc896fa87a85e051bb9684 | dc6c0579965531c894a5fe3d63dccd59d44c6322 | /app/forms.py | d9b876aabca5d694ce06e1853a802c2b32a1487d | [] | no_license | oknono/microblog | 70b4000e224de9a8220e13616ab1f5b97a7f78a1 | 2e0f075159c503044711aab6bb4d0172818cf356 | refs/heads/master | 2016-09-11T02:57:02.614572 | 2015-07-14T20:03:12 | 2015-07-14T20:03:12 | 38,762,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, TextAreaField
from wtforms.validators import DataRequired, Length
class LoginForm(Form):
openid = StringField('openid', validators=[DataRequired()])
remember_me = BooleanField('remember_me', default=False)
class EditForm(Form):
nickname ... | [
"kirsten@eml.cc"
] | kirsten@eml.cc |
c0298ed8bf93683a929611355e7be53e13e7e1ab | af8a486282ec7cc56da81c35bd72b6cd23762f58 | /morse_run.py | b42a01f5a632955bafc5a6b9745384b82b4f6a9f | [] | no_license | niharvaidya0212/Eye-Tracking | 48f9b214618018082059c52623e7af101df00e8f | d4b3dba27e121ca3825b3fafb1b59b0d9bb3ff67 | refs/heads/main | 2023-05-06T07:21:57.817730 | 2021-05-25T17:07:14 | 2021-05-25T17:07:14 | 370,769,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,025 | py | # USAGE
# python detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat --video blink_detection_demo.mp4
# python detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat
# import the necessary packages
from scipy.spatial import distance as dist
from imutils.video import FileVid... | [
"noreply@github.com"
] | niharvaidya0212.noreply@github.com |
a5361bba467087d19174d8f5e8a1dc0982168167 | 0549ab5794c5b71b239abf73434cf0ab20ca52a4 | /Lists Advanced/4_Even_Numbers.py | 6dc7d919a3052d63dd13d476c97c2a7decf51036 | [] | no_license | Mishakaveli1994/Python_Fundamentals_Jan | 14bea38c1e331694070ecc35a563f624c07084b8 | 2351adf1aea643f77cb36b465ea7bc4e5ea1674b | refs/heads/master | 2022-07-20T01:32:51.088136 | 2020-05-26T07:05:28 | 2020-05-26T07:05:28 | 262,810,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | string_input = input().split(', ')
indices_list = []
for i, x in enumerate(string_input):
if int(x) % 2 == 0:
indices_list.append(int(i))
print(indices_list) | [
"mihata1994@yahoo.com"
] | mihata1994@yahoo.com |
81429ec17764429c8af3907584cecd63eec53166 | da7c3c350c44c7d540aa1072b1c332e150ed2506 | /server.py | 9fa6e49d0786d888a92cb2e5a1491f803cfe361a | [] | no_license | Alansdjn/secure-robotic-delivery-system-pub | 507f1ff853df1aa4cd7fc90dbff75b974681f229 | 9f957625c3534db50ddbd4c00b6841b4da441fa4 | refs/heads/main | 2023-08-13T22:12:37.793893 | 2021-09-19T23:04:35 | 2021-09-19T23:04:35 | 394,980,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import os
import time
import random
import socket
random.seed(200207124)
def generate_pins(length=4):
digits = []
for i in range(length):
digits += [str(random.randint(0, 9))]
return digits
print('Server start ...')
time.sleep(1)
pins = generate_pins()
customer_pins = {}
s = socket.socket()
ipa... | [
"alanwangw@gmail.com"
] | alanwangw@gmail.com |
0007c9eb296160763d9d7c0a89ddf096c3f2b126 | 4c86881bd200e9a15b71b733174b3abc1924bf0d | /libSBML/src/bindings/python/test/annotation/TestCVTerms_newSetters.py | 27c791d2ae94184f5d79ada5f41f29b4a33e8ffe | [] | no_license | mgaldzic/copasi_api | 500f0d6da8349c611bafb8d8301af61fc07bb1b2 | 51b284295c2238da9c346999ff277c6883b8ca52 | refs/heads/master | 2021-01-01T06:04:39.888201 | 2011-09-16T05:29:21 | 2011-09-16T05:29:21 | 2,281,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,094 | py | #
# @file TestCVTerms_newSetters.py
# @brief CVTerms unit tests
#
# @author Akiya Jouraku (Python conversion)
# @author Sarah Keating
#
# $Id$
# $HeadURL$
#
# ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ======
#
# DO NOT EDIT THIS FILE.
#
# This file was generated automatically by con... | [
"mgaldzic@gmail.com"
] | mgaldzic@gmail.com |
dc3d839fb29269db0f2106bb1c64efaf106fe075 | 78562b018ca08f6dd2e1f58db9033a297e3e017a | /main.py | bf5fb62179f6c5049039dea7ef526c999cb2f362 | [
"MIT"
] | permissive | et84121/fju-information-capability-test | ea008bbb4c74d325fb290031c120048ad7a325ac | c309b85c98f51e20e90a405d9dcfa863bb067b73 | refs/heads/master | 2020-09-03T01:35:13.800206 | 2017-06-15T06:19:35 | 2017-06-15T06:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | import pyexcel as pe
import pyexcel_xlsx
import random
class question:
def __init__(self,number,type,difficulty,q,ans,option1,option2,option3,option4):
self.q_number = number
self.q_type = type
self.q_difficulty = difficulty
self.q = str(q)
self.ans = str(ans)
... | [
"noreply@github.com"
] | et84121.noreply@github.com |
5b2c32574721768279af3a674ce286f505f76ebf | 6105cc72335915319cce696a7da86ed9b2da04dd | /geocode.py | 3613ed95430dc87a3d98ffe7ef386d6f3a9e6721 | [] | no_license | maxerickson/mischools | 744111d5cb61123b88d093d786143e38ed56d96c | 1ebd099fa202b17fb2e6fea2a2569cd79aa5632b | refs/heads/master | 2020-04-19T13:08:28.373502 | 2019-09-14T17:41:51 | 2019-09-14T17:41:51 | 168,210,400 | 1 | 1 | null | 2019-08-22T15:30:36 | 2019-01-29T18:59:06 | Python | UTF-8 | Python | false | false | 1,791 | py | import shutil
import csv
import time
import datetime
import requests
stamp=datetime.datetime.now().strftime("%Y-%m-%d_%H:%M:%S")
shutil.copy('geocodes.csv', './.backups/geocodes-{}.csv'.format(stamp))
TIMEOUT=300
nominatim_endpoint='https://nominatim.openstreetmap.org/search'
session=requests.Session()
se... | [
"maxerickson@gmail.com"
] | maxerickson@gmail.com |
3c6c435679cbf0d98cd600c3a9cea763b4465dc3 | 2467bf4a059f4b138889af7392f546acf625eafb | /venv/Scripts/pip-script.py | 8c8f36db5dba408019aecfb8063e1e8ed370f300 | [] | no_license | hyummys/clockalarm | ba9305143648f5f41268720af2bedebb3e3091cc | 7024e683bc94705de74e0e009e9838673dbb8405 | refs/heads/master | 2022-11-27T04:12:39.621108 | 2020-07-29T01:01:06 | 2020-07-29T01:01:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #!C:\Users\ajpuo\PycharmProjects\clockalarm\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"44600736+LeBronJames4me@users.noreply.github.com"
] | 44600736+LeBronJames4me@users.noreply.github.com |
3c11b9466efc2e88f6efce29c65362048f3bb3dc | 27f8a580d333d36d3ac5178763160ab54d190e53 | /app.py | e58eba624115378c973799b8d5ab025101b63ba1 | [] | no_license | Rishabh-Pagaria/Score-Predictor | f2b3708351239b58f5b5ae0500763b5c55b22b9f | 1e2129025ca747e26c754a25573a9407cbb418c1 | refs/heads/master | 2023-01-09T08:48:03.464050 | 2020-11-07T03:49:57 | 2020-11-07T03:49:57 | 299,893,583 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 30 15:31:48 2020
@author: Rishabh Pagaria
"""
import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl','rb'))
@app.route('/')
def home():
return render_t... | [
"noreply@github.com"
] | Rishabh-Pagaria.noreply@github.com |
5bd522f752bbd68f27eb3d5f9909445338b3c0e0 | 66736ddadc48a1550d202e96f492dd08d80da6bd | /Patterns/Downward_Half-Pyramid_Pattern.py | eaae1e0df0b7e98b009a466f678164f068b5b44d | [
"MIT"
] | permissive | Kushal997-das/HackPython-21 | ab410deb06a2c8056497aa70139d9f184f834409 | d67054cd69c22f212a6ab7bef10673cff8cd065b | refs/heads/main | 2023-08-10T20:15:23.571729 | 2021-10-03T05:07:15 | 2021-10-03T05:07:15 | 412,979,692 | 1 | 0 | null | 2021-10-03T04:57:36 | 2021-10-03T04:57:36 | null | UTF-8 | Python | false | false | 160 | py | def pattern(n):
for i in range(n, -1, -1):
for j in range(0, i + 1):
print("* ", end="")
print("\r")
pattern(5)
| [
"noreply@github.com"
] | Kushal997-das.noreply@github.com |
634ba8b435ddcce30c0ce671e3ddcf758b881414 | a7c4d7d0a47bd0e61311cf45f885a82a2000408f | /bigtop-packages/src/charm/spark/layer-spark/lib/charms/layer/bigtop_spark.py | 52f5e97d4a582fe8fd0fa1a1bfbd596ffe661562 | [
"Apache-2.0",
"FreeBSD-DOC",
"MIT",
"DOC"
] | permissive | aatibudhi/bigtop | 6b9c4ee2ca209930bdf91d31083a2333191117bb | dfd47eb51f4b642c6e39446d0d63a903a925eb9e | refs/heads/master | 2021-01-13T13:30:47.066157 | 2016-11-01T20:36:51 | 2016-11-01T20:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,270 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"kevin.monroe@canonical.com"
] | kevin.monroe@canonical.com |
5cd8606acfee773d4a34b6d741b22bbaa7f43f75 | 982aaf33b8b45d192fc0900a00dd4c329c1fcd99 | /mss/friendship/models.py | 3e126627879a1c2ba343a4b2a0fe5fd92c19d365 | [] | no_license | victorpantoja/mobile-social-share-admin | be988e7984d076faeea620fdb21941a3b07f617f | ceac41a39d4b5dc32a5c04cedfe0e7609495130f | refs/heads/master | 2021-03-12T23:33:41.349778 | 2012-05-19T18:50:22 | 2012-05-19T18:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #-*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
class Friendship(models.Model):
id = models.AutoField(primary_key=True, db_column="friendship_id")
user = models.ForeignKey(User, related_name='user_user', null=False, blank=False)
friend = models.ForeignKey(... | [
"victor.pantoja@gmail.com"
] | victor.pantoja@gmail.com |
85f77195381837733f1fbd659a7799c97930f6c7 | 09d6bd535070fdfb68848e773091dc666fa8e1df | /gonculator/settings.py | 1c0121adcabc80e1bcbcae68a06be8670f35417e | [] | no_license | mjlabe/gonculator | 2c82d0bc0e1fe2a952f5ca3711c58e4c49b430f2 | 36ab36cc4aec86a4fb8747514ea19c5da2fe301a | refs/heads/master | 2022-12-15T01:48:50.161041 | 2020-04-06T12:02:27 | 2020-04-06T12:02:27 | 211,941,318 | 0 | 0 | null | 2022-12-04T14:06:44 | 2019-09-30T19:40:21 | CSS | UTF-8 | Python | false | false | 3,503 | py | """
Django settings for gonculator project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"mjlabe@gmail.com"
] | mjlabe@gmail.com |
b0fd7c05a79ffe61a92a4c4bcb8650c855e18931 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_cloud_endpoints_operations.py | 76ded61339946dff0fc8965f5fe95829851395f6 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 103,532 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
0be0b50ef79793d99ee6b5a39593e6029f1ee82f | b81fe5fdc3267af0648d665b9a855e9f6852af21 | /wallp/source/comic/xkcd.py | be62555ff34ca481a4cffd49349358e49081539b | [
"MIT"
] | permissive | amol9/wallp | 724bad747fdfaccba2d3069ce1f8959d68c5d879 | 14211492f0ab9247f67c92be4d3ef680c309eddf | refs/heads/master | 2022-12-14T23:00:28.248726 | 2022-12-01T15:39:27 | 2022-12-01T15:39:27 | 32,454,219 | 18 | 6 | null | 2016-11-06T14:50:15 | 2015-03-18T11:11:07 | Python | UTF-8 | Python | false | false | 3,390 | py | from datetime import datetime
import json
from redlib.api.web import HtmlParser
from redlib.api.net import AbsUrl, RelUrl
from asq.initiators import query
from ...util.printer import printer
from ..base import SourceError, SourceParams, Source
from ..images import Images
from ..http_helper import HttpHelper
from ..ht... | [
"babaiscool@gmail.com"
] | babaiscool@gmail.com |
c722ea117d7c6e8cf87b128587c55242f651a4af | 0327452b1087a936798f40df10410fca9ac72c16 | /Laba_6/2.py | d48a56b0302b222ea797dc61f6ba2ed406d7eb27 | [] | no_license | yKuzmenko740/KNUTE-lb-works- | 2dfc39f372678ea3145eb2c2ba1658b8976d3bf1 | 412ea96d20b37efb4226af037c665caa802aa330 | refs/heads/master | 2022-11-14T00:13:06.475410 | 2020-07-03T12:34:36 | 2020-07-03T12:34:36 | 276,895,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class Human:
def __init__(self, name, gender, mood):
self.name = name
self.gender = gender
self.mood = mood
def __del__(self):
print(f"{self.name, self.gender, self.mood}:видалено ")
def show(self):
return f"Мене звати {self.name}. Я - прикольна {self.gender}.У мене... | [
"y.kuzmenko740@gmail.com"
] | y.kuzmenko740@gmail.com |
fd745b61c71cd6c80f86c414007d5443b06143e2 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/spanner/instance_configs/describe.py | 9c3fd6587dfd4ef2d4fc0bc77a9723840ee6f1f7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,300 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
51d19387e090a5f98a802f829b266d0eaced5be0 | 2cb7a232129f597498ee7ebea016bc9dcf6c4552 | /string_operations.py | 8443db9b245d4d34b52fc242212eaf158f05457a | [] | no_license | TaneliEDRM/GIT_demo | 09106d875cd2e0d0970b9e662d5a2330f3dc4c6c | 5da80bc8de9ca33aeab2e766e1d17759027a9181 | refs/heads/master | 2020-12-13T21:33:51.995323 | 2020-08-11T07:46:34 | 2020-08-11T07:46:34 | 234,537,314 | 0 | 0 | null | 2020-08-11T07:46:36 | 2020-01-17T11:45:03 | Python | UTF-8 | Python | false | false | 152 | py | def split_string(string, separator):
l = string.split(separator)
l = [float(i) for i in l]
return l
s = split_string("1,3", ",")
print(s)
| [
"taneli.leppanen@edrmedeso.com"
] | taneli.leppanen@edrmedeso.com |
7b175df0883dd0db8ddd52398f902f330a381f89 | 01b6608e96022e1d0a56c6d84b7c50ee6cf97a85 | /mpdnp2.py | d1d5207d38a60483e27b84fdd5daeddd43d55754 | [] | no_license | quasarj/mpdnp2 | d660b702d7b7d3e0ce76d3067e6b40dd49f8ecb5 | a591d44343180fc955be7b396cc3c2139be05212 | refs/heads/master | 2021-01-17T05:56:39.956055 | 2013-10-20T23:08:53 | 2013-10-20T23:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,491 | py | """
:Author: Henning Hasemann <hhasemann [at] web [dot] de>
30-01-2009 -- Adapted for Weechat 0.3.0 By Bonzodog
(bonzodog01 [at] gmail [dot] com)
:What it does:
This plugin lets you inform all users in the current
channel about the song which music-player-daemon (MPD)
is currently playing.
:Usa... | [
"quasar@ja.rosz.org"
] | quasar@ja.rosz.org |
cb5c7e5cf8cbbcc5852550d50725c8865eb0097b | 38bbbfb8259f40406ec9072b19f03e03e6508855 | /13.py | 128d6ffae7020f1c608b88d018b65b67dfab54f4 | [] | no_license | heinerud/aoc20 | e05bce78263fa8a70386fd85e137eda663df794d | 3b051ccc42a1876b2dd9e82002ed1f6f2c86abbb | refs/heads/master | 2023-02-18T19:15:24.470610 | 2020-12-22T21:16:02 | 2020-12-22T21:16:02 | 317,550,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import math
import itertools
def next_departure(time, buses):
bus = None
t_min = float("inf")
for b in buses:
t = b * math.ceil(time / b)
if t < t_min:
t_min = t
bus = b
return bus, t_min
def match_series(series):
series.sort(key=lambda x: x[0], reverse=T... | [
"joel.heinerud@gmail.com"
] | joel.heinerud@gmail.com |
b19c3297f18041ce61a0f0c8c250f5fe332a8085 | 228fdf044c9e4aabec7b4929e8f99bd6e49369aa | /app.py | ba062f51dbf871b178f8f687a9c6ebc3194378be | [
"MIT"
] | permissive | deepchatterjeevns/sports_animation | fd5ccfc8cd48ff6f55be896ddae09682b408ab5e | c47e3b904582a1cf6e51f6a7fd352e6c5fadc499 | refs/heads/master | 2022-12-30T12:49:51.240072 | 2020-08-13T20:18:44 | 2020-08-13T20:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,549 | py | from flask import Flask, flash, redirect, render_template, request, session, abort, g
import os
import json
import pandas as pd
import ngs_player_tracking
app = Flask(__name__)
ext_file_path = 'D:/Sports Analytics/sportradar/'
'''
@app.route('/player-tracking-animation?playselection', methods=['POST', 'GET'])
def re... | [
"hatfield_michael@bah.com"
] | hatfield_michael@bah.com |
50d0146ae1eae8f489545a3c0b7061aae97a78bb | 6bb400e3bf0715b2cbea7cc76fcfcad018630a32 | /fblldbviewcontrollerhelpers.py | 506405601298dcd927a8af96fca36f867d13d6bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dev-life/chisel | ca48dfa7d96a674e1c4e11444e34dbc81e7c7f3b | 74f9eb2d1cdb22920d3260489a6a289a49ab58d8 | refs/heads/master | 2020-04-05T18:32:29.507149 | 2014-03-06T17:53:03 | 2014-03-06T17:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | #!/usr/bin/python
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import lldb
i... | [
"arig@fb.com"
] | arig@fb.com |
38b268ad2ff334be23697235d64253db9da4ff6a | a26c16eb649002567d90b3af8343ebb32e0e9ce7 | /serve/predict.py | e472c77d0fdb4eeb92b55c2082a51c32035dfe64 | [] | no_license | klay-liu/Sentiment-Analysis-Sagemaker-deployment | 2b97f5855378b5bc8182d1fcd654ddde7482d168 | 9ac281d4b753ff1073073e1b77a7734f9afea3bb | refs/heads/master | 2022-07-05T11:05:44.838060 | 2020-05-14T09:25:13 | 2020-05-14T09:25:13 | 263,692,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
from utils import review_to_words, convert_and_pad
def model_fn(mod... | [
"dwliuliu@126.com"
] | dwliuliu@126.com |
9342b0f4620e379698e57385a85f36e40db743b8 | a4a0d063407900474680987a61f771083478f783 | /src/python/quik/connector.py | 546d2b85b746e8605ae85b2ffb9265ee1fc9757f | [] | no_license | euvgub/Polygon | 389cf612f94705b80bc043cef29f440eae017892 | cf16797f862525599ac2f8b0d6095a86a57b459f | refs/heads/master | 2020-04-17T18:15:18.647719 | 2018-05-28T19:43:42 | 2018-05-28T19:43:42 | 166,818,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,013 | py | import socket
import sys
import time
import threading
import queue
import logging
from .messages import *
class QuikConnector:
def __init__(self):
"""
Конструктор
"""
self.callbacks = []
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.receivedQueue =... | [
"koryakin@itglobal.ru"
] | koryakin@itglobal.ru |
245db76f639f8cbd13210f1280cf7920a2898639 | 786696ec14c2e1ddda9f0ddfddaf88205e1f5763 | /Bomberman/groupNN/scenario1/variant5.py | 31e4c5abb6d80e64baf0204cae66006b73089e1d | [] | no_license | jacorse/CS4341-projects | 6ed95188c25fae16cb4db374d80a54eb47b069cb | 08a1fdadd3842dff67f23791f3f119b020b1a882 | refs/heads/master | 2020-04-22T06:14:10.174478 | 2019-03-01T22:55:11 | 2019-03-01T22:55:11 | 170,183,636 | 0 | 0 | null | 2019-02-11T18:56:31 | 2019-02-11T18:56:31 | null | UTF-8 | Python | false | false | 1,089 | py | # This is necessary to find the main code
import sys
sys.path.insert(0, '../../bomberman')
sys.path.insert(1, '..')
# Import necessary stuff
import random
from game import Game
from monsters.stupid_monster import StupidMonster
from monsters.selfpreserving_monster import SelfPreservingMonster
# TODO This is your code!... | [
"hdunphy15@gmail.com"
] | hdunphy15@gmail.com |
54df10233f2dc2743f093b4f63bf781a6ba8215e | eb301f61f9a6c0fbe5e250b28cc71ee96aed2d6d | /initat/snmp_relay/schemes/instances/schemes.py | a3b5c56ed58395b2fdac62e459f901c326aae5ac | [] | no_license | walong365/icsw | 615a89e3df668594492b3a3a54107308d1bb868e | 0d070bdb9ec64e38acaf5d5cf78ca9b5128b199c | refs/heads/master | 2020-05-21T18:39:21.103759 | 2017-03-11T10:48:17 | 2017-03-11T10:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,306 | py | # Copyright (C) 2009-2015,2017 Andreas Lang-Nevyjel
#
# Send feedback to: <lang-nevyjel@init.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License Version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in th... | [
"lang-nevyjel@init.at"
] | lang-nevyjel@init.at |
5e84459c53c425352fa3cc790723ee48d0608eab | fb4ed5b9061e835aebf81325ea5ba98a78ba1ff0 | /chest_xray_challenge/logger.py | 1c1e865b6cbfac9afd911600b5e7516a14d03045 | [
"Apache-2.0"
] | permissive | guruprasaad123/all_dl_projects | 999a65b396b4a9c94c8051b5918bfb1947317d08 | 04c869f7f001ef94c467740260663d91a34815e0 | refs/heads/main | 2023-06-29T16:45:16.745286 | 2021-08-03T07:19:44 | 2021-08-03T07:19:44 | 389,979,504 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import logging
from logging.handlers import RotatingFileHandler
import os
def get_logger(name, log_path=os.path.join(os.path.dirname(__file__), "main.log"), console=False):
"""
Simple logging wrapper that returns logger
configured to log into file and console.
Args:
name (str): name of logger... | [
"jiiva116@live.com"
] | jiiva116@live.com |
26b7587e4a47c5bbf04e8676576f861e76678d09 | 92dea7bc7cdd9738a6c6ffe2c1c545097dc1c521 | /service/ValidationService.py | 3728ec280e3453e1f6f2262cd8220b8857bee761 | [] | no_license | mehedithedue/web-scrapper-with-python | 5823c0223e2b5bd98fcd326fe40b96a783007493 | 0640f7a5dbeb8f261619489aea7c71e411302367 | refs/heads/main | 2023-07-04T08:18:03.343945 | 2021-08-05T16:41:48 | 2021-08-05T16:41:48 | 393,109,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | class ValidationService:
def productValidate(self, productData):
'''
to check validation of product data before
insert to the db
'''
for element in productData:
if (element.get('product') is None) or (element.get('amount') is None):
raise Value... | [
"mehedi.thedue@gmail.com"
] | mehedi.thedue@gmail.com |
48a80c3566d244ce8cc1b67302502c84d45ea9bd | 5a281cb78335e06c631181720546f6876005d4e5 | /cloudkitty-9.0.0/cloudkitty/writer/csv_base.py | 95524cc77fbc7f1ab8b31537f676100b288c060c | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 8,262 | py | # -*- coding: utf-8 -*-
# Copyright 2014 Objectif Libre
#
# 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 ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
dccea37e778c3555ab4fe16fdf907963027530a6 | bfb9ccb48891e882cbbdce6fc164ee1abf8f8c5d | /PythonDynamoDB/alpha/CreateTable.py | c87b3e7ad42e88d999ff0266d75601097f53f81c | [] | no_license | mwduncan2018/AWS_Practice | 5f88a5de3d17ae222e716a20fdc8bc41041a8bec | 04b16a8e7f68e5897be0be33155e27a9a199ed8c | refs/heads/master | 2022-04-25T14:18:04.639496 | 2020-04-25T18:27:00 | 2020-04-25T18:27:00 | 254,909,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py |
#
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# Thi... | [
"ec2-user@ip-10-0-0-75.ec2.internal"
] | ec2-user@ip-10-0-0-75.ec2.internal |
1832becbc37d3f749a808823b4235f0525ddf89f | 4be2f655d1b450e233912091d6f570d72b161305 | /blogdown/__init__.py | 7610ea584bb2ce6601bc1e2ea3ee8b4543290515 | [
"BSD-3-Clause"
] | permissive | rodricios/blogdown | 1468d980d634bcf35835f7b4f98fe52c52f92a31 | 112ee6d6b9d89fbcad4dd706bda505e3739c04f7 | refs/heads/master | 2021-01-18T16:55:56.362308 | 2015-05-22T02:59:02 | 2015-05-22T02:59:02 | 35,073,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | #from blogdown import *
import gen
| [
"rodrigopala91@gmail.com"
] | rodrigopala91@gmail.com |
13a19ab37a9793a63821b1a0c0eb50a87231119c | 485e11308711e36ff15427d9b34cfa50f4321b77 | /moviebase-project/showtimes/tests/conftest.py | 0ab8c4f9ba1a60f15b5b40cffe618bf61378912d | [] | no_license | Swierad/REST_API | 4a1839ef805470f7c7875f70f8a3eba1acf74687 | b87114719046e56534ae83de784d70d30ef7c7b2 | refs/heads/main | 2023-01-11T01:08:33.963009 | 2020-11-11T15:18:42 | 2020-11-11T15:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import pytest
from showtimes.models import Cinema, Screening
@pytest.fixture
def fake_cinema_data():
a = Cinema()
a.name = 'example1'
a.city = 'example1a'
a.save()
return a
| [
"swierad@gmail.com"
] | swierad@gmail.com |
3cf54681e3c98c6274ddba5600320cbd95ecbf77 | 16d22787f345a467ddd57b6a45261788954e4691 | /LeetCode/14.py | 906118793cecff03fb2177b6e5e1d54d77c30418 | [
"MIT"
] | permissive | dynamoh/Interview-solved | 6b6f5680ad9235188c26942671e788d254d1950f | cf13af0cc9db6e851d26677877647e6121c6ec30 | refs/heads/master | 2021-07-11T03:50:09.112220 | 2020-10-18T07:57:30 | 2020-10-18T07:57:30 | 303,154,831 | 0 | 0 | MIT | 2020-10-11T15:43:57 | 2020-10-11T15:43:56 | null | UTF-8 | Python | false | false | 1,244 | py | """
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string "".
Example 1:
Input: ["flower","flow","flight"]
Output: "fl"
Example 2:
Input: ["dog","racecar","car"]
Output: ""
Explanation: There is no common pr... | [
"aarakeri@apple.com"
] | aarakeri@apple.com |
69e2067b42c75a595b9836d9dfff546555d5bb54 | feb06ec473a0550692d56c5fdd34bdf4ba42a12c | /core-py/server.py | ba17df3a0e1ab7de8b2fcafe15a13ef1fedc0b2c | [] | no_license | altafsubhan/python-xsa-setup | c473ae4ea1f073e971e10d2b2a5c29097ec28ab7 | 30ca6684f2a9bcf9c76c04e9e9fd46bfb704019e | refs/heads/master | 2020-03-20T20:22:40.048240 | 2018-06-14T18:32:51 | 2018-06-14T18:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import os
import logging
from flask import Flask
from cfenv import AppEnv
from flask import request
from flask import abort
from sap import xssec
from hdbcli import dbapi
from cf_logging import flask_logging
app = Flask(__name__)
env = AppEnv()
flask_logging.init(app, logging.INFO)
port = int(os.environ.get('PORT', ... | [
"muhammad.altaf@sap.com"
] | muhammad.altaf@sap.com |
938371c2d74f6821b018e1157bb4b991c1116cf2 | 02bdcaf3816cba8f75559c692bf8e1bb01986700 | /venv/main.py | 883d22d1a9a774a741ce9b705b0dbb4050f92194 | [] | no_license | kobg/WD2020 | 74d3148402e0f093e78ebae63c21c0fb77bc305f | d5148be5db4f0230e6aecdbcebaf8518677d09e5 | refs/heads/master | 2021-02-25T22:40:30.517694 | 2020-04-21T20:51:01 | 2020-04-21T20:51:01 | 245,473,436 | 0 | 0 | null | 2020-04-03T16:24:33 | 2020-03-06T16:56:03 | null | UTF-8 | Python | false | false | 2,376 | py | #JAKUB GOŚCINIAK IO GR I/2
from akcje import *
from screen import *
from plik import *
import random
import os
map = []
def addstep(x,y,i):
if i<1:
map.append(funkcje.move(point={"pozx": x, "pozy": y}, vector={"pozx": x, "pozy": y}))
map.append(funkcje.move(point={"pozx":map[i][0],"pozy":map[i][1]},v... | [
"kubapoland1@gmail.com"
] | kubapoland1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.