blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
682de6a4f15064d60f1678610e503b2d3074a33e | ab704c85613bc430dfbb4e5d8ed139ba0a1da584 | /manage.py | d1fd55b64f4c533ec2620e28f4a0de4f7f967bb9 | [] | no_license | arthuroe/shopperholics | eb4b1257a32354bb2b71607719f61a3a098b7fcb | 6f941bf370a11d697c1577ca1e92bc1ba8ec4d3b | refs/heads/develop | 2022-12-09T23:16:17.235490 | 2018-08-14T20:39:21 | 2019-02-20T00:01:18 | 139,479,448 | 0 | 0 | null | 2022-12-08T02:21:51 | 2018-07-02T18:25:22 | Python | UTF-8 | Python | false | false | 283 | py | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from api import app
from api.models.model_mixin import db
manager = Manager(app)
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
| [
"arthur.orache@gmail.com"
] | arthur.orache@gmail.com |
d4127a83d67883f4e71d78a1908b7b0602ca00d0 | 349f966df536c805bf0843ad0b3cc4c7aeb75ad8 | /guia_valores.py | 19edd29621f0f9d1cad06861b86e53dd05cf52e1 | [] | no_license | santoaioros/Clases_AIEP | 5c8d35fd38e2e8dba115ded5d3fafcfebada53c9 | eb3db7ab162930d81f47fbd1cdcc10cbe0165360 | refs/heads/master | 2020-11-26T18:22:02.710757 | 2020-01-04T04:13:56 | 2020-01-04T04:13:56 | 229,171,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | valor1 = int(input('Ingrese 1er valor: '))
valor2 = int(input('Ingrese 2do valor: '))
print('El mayor valor es')
if (valor1 > valor2):
print(valor1)
else:
if (valor1 == valor2):
print('Los valores son iguales')
else:
print(valor2)
| [
"noreply@github.com"
] | noreply@github.com |
8ef154b4554eadb3e16b863445ab000515512dbc | e9e9eaf7563fa27c5e87eb8128951e754ac3f1de | /CherryDjango2/wsgi.py | 9c165b73863e769d6ab18fee84a6dba6b67e5046 | [] | no_license | tannercherry/CherryDjango2 | 94b6745bd4d28ee32d40721bc8da83a5abc75a24 | 3c26b92b9996154ecb8c35109e6408ad83210e29 | refs/heads/master | 2020-05-23T08:15:13.778810 | 2016-10-12T18:47:21 | 2016-10-12T18:47:21 | 70,273,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for CherryDjango2 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"tanner.cherry@my.uu.edu"
] | tanner.cherry@my.uu.edu |
c0f563f98b9dac022793ea044fcd750bb411e23c | 6db9f58f78869eb706303b325162a363fb9d3f2b | /themes/serializers.py | d0f66d88e11c0608836a87346a27925b544d314b | [] | no_license | pmutale/cakesandmore | 9677d0eb9417064299c2a0968483b131329e3f4a | ec48de269c5b061dbfb6da7f8fade3d2490481a6 | refs/heads/master | 2023-08-17T02:17:22.258158 | 2021-06-03T22:33:08 | 2021-06-03T22:33:08 | 71,902,531 | 0 | 0 | null | 2023-09-04T19:37:28 | 2016-10-25T13:59:29 | Python | UTF-8 | Python | false | false | 548 | py | from rest_framework import serializers
from .models import CustomDimension, Cake, ClassicIngredient
from django.contrib.auth.models import User
class CakeSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Cake
fields = '__all... | [
"peter@mutale.nl"
] | peter@mutale.nl |
4241623b2dd2fbf03bb229af6d675bed7e097ceb | 5c3ebc4a48b0b795b5f19f321ddf9145a1a1b03a | /Client/ExcelGUI.py | 2d84c157d16fcdfea0ec7b2b166fa2ca93ce54e2 | [] | no_license | sandjes1046/Grade-Visualization-System | fb228a550820ac0da321eee32e15ea9d88f0fd89 | d19a619f3bfcaeceebf72ec00472c43c98d9c4a1 | refs/heads/main | 2023-05-11T04:47:11.110555 | 2023-05-09T15:41:32 | 2023-05-09T15:41:32 | 365,847,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,426 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 25 16:11:19 2021
@author: Sandjes1046
"""
import tkinter as tk
from tkinter import *
from tkinter import ttk
class Excel():
def get_info(self):
return self.saving
def addAssignment(self):
self.grades =... | [
"noreply@github.com"
] | noreply@github.com |
3b930efc957d39d31bf14a6809cd0d94fe7d679d | 864b82804df8deae8733825a4d580e5ff0fcece3 | /profilee/views.py | 34455e3957d5a5247ec91057f0de1eb09a46556c | [] | no_license | nknik/employeemanagement | 410d1c991b69c86fa8d2cd93e43aea855b5f480b | 346bc2c9095019f0ab6055d051a53c44795d15fe | refs/heads/main | 2023-02-10T12:47:41.731930 | 2021-01-10T16:31:47 | 2021-01-10T16:31:47 | 324,298,824 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # from django.shortcuts import render,get_object_or_404
# from .models import Table
# from django.contrib import messages
# from django.contrib.auth.models import User
# from django.contrib.auth.decorators import login_required
| [
"nikhilchalikwar@gmail.com"
] | nikhilchalikwar@gmail.com |
9b700d4343ae56e6fdbbce31172704bf09ec50bd | 5412fd030d646769021efc8f4e0589e40c71938f | /backend/apps/functions.py | 8204df1ff3bc47408a6f1628b4c603643b61f58a | [] | no_license | 01Joseph-Hwang10/mypy | f992fe83741b11cf4b34c3a22d5dc8b9bf78342a | f65d0a8a0ef7b6943133f8e4f89e80261f255290 | refs/heads/master | 2023-08-16T12:43:52.667513 | 2023-08-13T18:12:48 | 2023-08-13T18:12:48 | 355,135,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,196 | py | import os
from os.path import split
import re
from django.core.exceptions import ValidationError
from apps.constants import BANNED_EXTENSIONS, JPG, MD, PNG, STATIC_PATH, TYPES
from config.settings import DEBUG, STATICFILES_DIRS, STATIC_ROOT
def upload_to(instance, filename):
return '%s/' % instance.created.user.i... | [
"joseph95501@gmail.com"
] | joseph95501@gmail.com |
99006480e5db6409610338fb55ee659443328d24 | 0367f1eab9e0f064577713c06659f454484b27b7 | /realtor/realtor/urls.py | ac228699b1ee1b99cd4959fe40a46fd7a70e91f9 | [] | no_license | Al-x-R/Real_estate_project | fb861d250392f92e63e95239ccd66ffbfea1b691 | 4ff5825ffe9142dbfe3ef4cdd778299b7b94f1dd | refs/heads/master | 2020-11-29T08:42:52.548063 | 2020-02-03T13:06:01 | 2020-02-03T13:06:01 | 230,072,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | """realtor URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"alexander.roshchin85@gmail.com"
] | alexander.roshchin85@gmail.com |
4b20434b8674ccfded74054b0a37ae33caa44811 | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/perfect_rectangle.py | adda3b9866b4f36c19ea7e24a53d4cded0ddd0ba | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region.
Each rectangle is represented as a bottom-left point and a top-right point.
For example, a unit square is represented as [1,1,2,2].
(coordinate ... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
95a9e288c4d96488d88ce163283d339b73a623ce | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/v2020_01_01/aio/operations/_firewall_rules_operations.py | b134643958a2adf39922a022db347bb3ac1b8102 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 21,790 | 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 may ... | [
"noreply@github.com"
] | noreply@github.com |
8a260e25bd83ccce39b5a93b94c5040dd8ba8ae0 | e1dcb223b8948927743e7408c08c143ffc69aaad | /server/app/migrations/0076_merge.py | dba96b63c5ed4f7db916f4c43b327a8cd1c2a289 | [
"MIT"
] | permissive | malaonline/Server | bc772f6b635db2eccb40c0065f3bb531cbd53251 | cf7a2bae0bdc4ee2cde1639e4c3537b3369f7e32 | refs/heads/master | 2021-01-09T09:34:57.996670 | 2017-07-03T11:05:22 | 2017-07-03T11:05:22 | 66,147,513 | 12 | 5 | null | 2017-07-03T11:05:23 | 2016-08-20T13:12:16 | Python | UTF-8 | Python | false | false | 316 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-17 09:05
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0075_merge'),
('app', '0075_auto_20160217_1657'),
]
operations = [
]
| [
"liumengjun@malalaoshi.com"
] | liumengjun@malalaoshi.com |
1704cf88cff6528dac5922019c09762bef2ede85 | 94ac854c18a911948443656ba8d862a9e304769f | /source/25/main.py | 5bb822b6c41175442d13e41c7976cd8967cc58e0 | [] | no_license | BryceMehring/EulerProblems | b2f73a108cb5ba690941bdfa355e17888108aa73 | 30a5b4e0c464ebd78146fae32aced3dede1d93c5 | refs/heads/master | 2016-09-06T11:30:20.945664 | 2015-11-23T15:44:14 | 2015-11-23T15:44:14 | 42,615,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def fibValue(length):
a = 1
b = 1
index = 0
while len(str(a)) != length:
b, a = a + b, b
index += 1
return (index + 1, a)
def main():
print fibValue(1000)
main()
| [
"brycemehring@gmail.com"
] | brycemehring@gmail.com |
365120dfa11bbbb2da619be2f26a4264aa3903c7 | 5f9e7b1c042f6fb6998b676880fb12ffc18a90cc | /PredictCharacters.py | 971d5c2ec4a4ccbcf7fbd48b25199db66759f1d4 | [] | no_license | Adreeta16/LicensePlateDetection | 0969d254b1ed40d49bd1d7fb0f16a16ec84de488 | 22f765d6d1bb48ce6a9602f2cfd4ae8065c1eb19 | refs/heads/main | 2023-01-21T09:52:05.565554 | 2020-12-02T14:07:48 | 2020-12-02T14:07:48 | 317,859,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import SegmentCharacters
import pickle
print("Loading model")
filename = './finalized_model.sav'
model = pickle.load(open(filename, 'rb'))
print('Model loaded. Predicting characters of number plate')
classification_result = []
for each_character in SegmentCharacters.characters:
# converts it to a 1D array... | [
"noreply@github.com"
] | noreply@github.com |
75375f2b0a1c113596793e9bea0c212b8406f687 | dc0a8f6116b328a13161823ecf23267afb3d9b55 | /week_6/cash/less/cash.py | 8936a678abc9e810a4307d35fcea2b4699263db6 | [] | no_license | lightkun10/cs50-problem-sets | 10fe1e5c65df3b8d5c34a558e494d9d7054f1399 | 559a71f44e3c905cadf2a613a55840ca5338e3f5 | refs/heads/master | 2021-01-04T10:59:42.548688 | 2020-03-24T04:22:19 | 2020-03-24T04:22:19 | 240,517,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | owed = 0
quarter = 25
dime = 10
nickel = 5
penny = 1
while True:
try:
dollars = float(input("Enter change owed: "))
except ValueError:
pass
else:
break
while dollars < 0.00:
dollars = float(input("Enter change owed: "))
coins = round(dollars * 100)
while coins >= quarter:
... | [
"lifeisubw@gmail.com"
] | lifeisubw@gmail.com |
a96ca6d5c92b2fc51fc0d3b59f98b4bc1f744613 | c4d8821132e694fd98c67c2d32643f9f0f2daa30 | /dashboard/migrations/0001_initial.py | 10c7d588563d7e53bf3872e8bd8ee14fac00ffe3 | [] | no_license | HansYolo43/Assigno | 66f588e18043ef5ac48fe497c772bfef627269d0 | 4438045e8e40aa7c2712a5bef4d03b366e14004b | refs/heads/master | 2023-07-20T13:46:09.836782 | 2021-06-27T17:02:36 | 2021-06-27T17:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,836 | py | # Generated by Django 3.2.4 on 2021-06-26 07:23
import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),... | [
"girik1105@gmail.com"
] | girik1105@gmail.com |
bd44d9a490e19447ce8554605dae7d017f2c7f32 | 5730110af5e4f0abe538ed7825ddd62c79bc3704 | /pacu/pacu/profile/log.py | 06bfe8e09aa791c5d2a2f92dc6686ea8b309b43d | [] | no_license | jzeitoun/pacu-v2 | bdbb81def96a2d87171ca20b89c878b2f66975e7 | 0ccb254a658263b4fe8c80ea623f860cb7dc1428 | refs/heads/master | 2021-06-03T18:50:50.890399 | 2020-04-27T16:31:59 | 2020-04-27T16:31:59 | 110,889,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from ..util import logging
def default(profile):
return logging.get_default()
| [
"jzeitoun@uci.edu"
] | jzeitoun@uci.edu |
e730aa1cca8018b68031134edea5b0257fa6eb0b | 17c10f0677db31713ac721845c8b2ead5d64d0fa | /_algorytmy/clustering/matrices/sparse_matrices.py | e9b5a66480f4a65016d0163b7cf1cfeb46b93f60 | [] | no_license | teamWSIZ/python1-2020 | 0a2e5f03d980082534e2032c3e9172ff23dbedb7 | cac1646c6c766aa96de5fc8c36d85d12ce0e7da2 | refs/heads/master | 2023-08-01T01:38:18.888641 | 2021-09-15T13:21:50 | 2021-09-15T13:21:50 | 302,949,303 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import numpy as np
from scipy.sparse import csr_matrix
# https://en.wikipedia.org/wiki/Sparse_matrix
a = [[1, 2, 0], [0, 0, 3], [4, 0, 5]]
A = csr_matrix(a) # Compressed Sparse Row matrix
"""
CSR format:
V = [ 10 20 30 40 50 60 70 80 ]
COL_INDEX = [ 0 1 1 3 2 3 4 5 ]
ROW_INDEX = [ 0 ... | [
"pmarecki.pro@gmail.com"
] | pmarecki.pro@gmail.com |
7d75e44516baa5f858a570cea176eb00cd9ad918 | f1c39d885743a7e79a3fd6277534e335b8b53d28 | /Generator003.py | 4de68a638128865f234e34e93e7a17916b1d79b0 | [] | no_license | Liang-WenYan/LiaoXueFengExercise | 3f6324234da42b4fe82365772207684565a423cd | bbabe36668405436a32198932da9b2e7b8d51a03 | refs/heads/master | 2020-04-12T13:43:50.032285 | 2018-12-20T05:19:05 | 2018-12-20T05:19:05 | 162,530,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def fib(max):
n, a, b = 0, 0, 1
while n < max:
yield b
a, b = b, a + b
n = n + 1
return 'done'
f = fib(6)
print(next(f))
print(next(f))
print(next(f))
print(next(f)) | [
"liang_wen_yan@163.com"
] | liang_wen_yan@163.com |
bfe54bf4a84bae770d8568d0e5d8d98a85bd6046 | f03e771eb4c1f300ae819179090efc388bcc6d32 | /src/pymine/metadata/MetadataValue.py | c155a8834298482b1fd2fe55b4228d4f4dd64f3c | [] | no_license | lacthan28/PyMine | d8d2365b0aabefcb056754260f67095dbcbe62ff | e7d4778f01181d45551c02fa0cef151327fa240a | refs/heads/master | 2021-01-21T19:50:48.417635 | 2017-06-30T05:38:46 | 2017-06-30T05:38:46 | 92,161,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # -*- coding: utf-8 -*-
from ..plugin.Plugin import *
class MetadataValue(metaclass = ABCMeta):
"""
:param Plugin owningPlugin:
"""
owningPlugin = None
def __init__(self, owningPlugin: Plugin):
self.owningPlugin = owningPlugin
def getOwningPlugin(self):
""" :return: Plugin """
return self.owningPlugin
... | [
"lacthan28@gmail.com"
] | lacthan28@gmail.com |
6655e2e7ec91b9d502ed16a3897061ec89ad941f | 5169cc5117e7ffc727e9dd13b6b7322b16c8e8bb | /其他_二叉树路径和.py | b4d3386c783d6df2a31a800c83ab812151a8bba1 | [] | no_license | ShenDeng75/LeetCode | 940318895b8cee54ee50c66c3eecc52485acb10b | 3152c908428cf6188e05e29836070526e37c4f1a | refs/heads/master | 2020-05-09T13:20:21.854626 | 2019-09-26T00:01:14 | 2019-09-26T00:01:14 | 181,148,198 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | import copy
class TreeNode:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
# 构造二叉树
def ls2tree(i: int, ls: list):
if str(ls[i]) == '#':
return
root = TreeNode(ls[i])
root.left = ls2tree(2*i+1, ls)
root.right = ls2tree(2*i+2, ls)
ret... | [
"xiaobinwu@skyworth.com"
] | xiaobinwu@skyworth.com |
4ab51e922f0d166bf104c7702b527ea22b190165 | 1638476bc35ccd6e7b19087d097b38cc03843e8b | /todo/migrations/0001_initial.py | 629c5c42eef55eabc08b48cd7cd877976c53321a | [] | no_license | kevincliffo/crud | d60f4b9d3a77dc3bd0d6e44aff0f46b023d9ab56 | 397f5b66f04ecb4fae7ddcb464d01cf4847b6a35 | refs/heads/master | 2021-03-01T09:24:46.633806 | 2020-03-08T07:45:03 | 2020-03-08T07:45:03 | 245,772,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # Generated by Django 2.2.7 on 2020-03-03 12:41
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', mode... | [
"kevincliffo@gmail.com"
] | kevincliffo@gmail.com |
ec5ed8cf24b9899c53f44bd209ab3eeb1c0dadb9 | a0242b8f62da69f6263c6c86e0225aafcb945181 | /src/NNT/Visualizer/Colors.py | d7c0476e15b9210489bcbe1999bf495b5eeaec84 | [] | no_license | hastern/NeuronalNetworkToolkit | 380d0cbf305c4adc8e2ca8675af0aad636ad6f3d | 6f3cac978154d05190f4d7a519f66beed1740b10 | refs/heads/master | 2021-01-10T19:38:10.850059 | 2012-06-01T09:10:31 | 2012-06-01T09:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | """
Color list for colored graphs
@author: Hanno Sternberg <hanno@almostintelligent.de>
@version: 1.0.0
"""
__package__ = "visualizer"
def getColor(index):
"""
Returns a color to a given index
@type index: int
@param index: color index
@rtype: string
@return: color
"""
colors =... | [
"hanno@almostintelligent.de"
] | hanno@almostintelligent.de |
cb609dc44f22d8dceb8c61401be4c62ca445e9d6 | 573d470c9fcb3799e8822e6953e1259b74e0672c | /Course/syntax/example_12.py | ba29a4c138e0d6a7ace344e04386e2ac5c48f214 | [
"Apache-2.0"
] | permissive | zevgenia/Python_shultais | e6f35773e54a72477ea5ee83520dbecfbee7ff48 | e51c31de221c5e7f36ede857a960138009ec8a05 | refs/heads/master | 2020-03-31T21:46:25.061571 | 2018-10-11T13:43:47 | 2018-10-11T13:43:47 | 152,593,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py |
age = 12
male = "f"
location = "Russia"
locations = ["Russia", "Ukraine", "Belarus"]
is_programmer = True
is_admin = False
if (age >= 12
and male == "f"
and location in locations
and (is_programmer or is_admin)):
print("Доступ открыт")
if age >= 12 \
and male == "m" \
and location in locations ... | [
"zatonskaya@yandex.ru"
] | zatonskaya@yandex.ru |
8b759f07090e27cb15f72da8b4c0b6be93f37dfe | dfdf57c374b3ad281fd9f86bda343b221efe0b55 | /calie/aux/matrices.py | d20fb335227728daa71d8a495c8fac0d260bcdc3 | [
"BSD-3-Clause"
] | permissive | SebastianoF/calie | e08d7d3302839e69b0e17b8c7f3233124fef9807 | 187318fa340b6d2fbf8c5dbc643304b66e9d1c44 | refs/heads/master | 2020-03-23T14:51:09.761126 | 2019-03-17T19:31:45 | 2019-03-17T19:31:45 | 141,703,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,030 | py | import numpy as np
def bch_right_jacobian(r):
"""
BCH_right_jacobian(r) \n
:param r: element of lie algebra so2_a in restricted form
:return: Jacobian (equation [57] Tom tech memo)
"""
theta = r[0]
dtx = r[1]
dty = r[2]
j = np.array([0.0] * 9).reshape(3, 3)
half_theta = theta *... | [
"sebastiano.ferraris@gmail.com"
] | sebastiano.ferraris@gmail.com |
cc027bd7be786b4efb3a35ffa0b38ac86dcdfbaf | b05aa69e3fa75eac48891c257b1e0e4c39f7abf0 | /accounts/migrations/0008_auto_20201124_1212.py | c3f21c1538820438f0d9163d8af3b6e7081278ee | [] | no_license | ulugbekabirov/djangoSRM | 289fe0bb431c903319ee4521705467be055f43b8 | 2bd8d0382dc698ac2111da0b2a7a5707841ca3e5 | refs/heads/master | 2023-02-03T10:05:25.521283 | 2020-12-18T06:54:58 | 2020-12-18T06:54:58 | 313,834,697 | 0 | 0 | null | 2020-12-18T06:55:00 | 2020-11-18T05:42:33 | Python | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.3 on 2020-11-24 07:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_auto_20201123_1334'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='name',
... | [
"ulugbekabirov@gmail.com"
] | ulugbekabirov@gmail.com |
96bbc121a2cb389b9e9f658b513aa8954c799154 | 656103169182858cc24d5e9c2bcfaff2a2d90560 | /src/caffe/pyutil/convert.py | 6bc76aef10a497d74c8a985f9c45e2195796372e | [] | no_license | liushuchun/caffe | 32cbdf523f0370b9c3f233f0c6aabeb66a389949 | 2024a80efb05d75fd61c70275d2b1df466d20862 | refs/heads/master | 2021-01-21T19:39:45.089042 | 2017-06-02T06:47:25 | 2017-06-02T06:47:25 | 92,147,605 | 0 | 0 | null | 2017-05-23T08:19:47 | 2017-05-23T08:19:47 | null | UTF-8 | Python | false | false | 802 | py | """This script converts blobproto instances to numpy arrays.
"""
from caffe.proto import caffe_pb2
import numpy as np
def blobproto_to_array(blob):
arr = np.array(blob.data).reshape(blob.num, blob.channels, blob.height,
blob.width)
return arr
def array_to_blobproto(arr):
if arr.ndim != 4:
raise Value... | [
"liuscgood@gmail.com"
] | liuscgood@gmail.com |
f3c43ee1835252f76fd54eda5698450062610ee9 | a0b92e3c768d3c96a33c1aabf6f933001d4cde2c | /zngm_scrn_brws_trans.py | be9213e3d258db6476fd79268510b05a187c2461 | [] | no_license | ses1430/vdiff2 | b6d53951b092b7d1c8c1b518b5e58fd40940ea5c | bcdc60d11ac1265be1c437b12d4049ce55e543bb | refs/heads/master | 2021-06-25T07:14:45.410450 | 2017-09-13T15:17:40 | 2017-09-13T15:17:40 | 103,415,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | #-*- coding: utf-8 -*-
from myparser import MyParser
'''
0 : PGM_ID
1 : BRWS_TRANS_ID
2 : BRWS_TRANS_NM
3 : NST_NUM
4 : BRWS_PRT_DLOAD_CL_CD
5 : ONLINE_BAT_CL_CD
6 : LOG_OP_CL_CD
7 : USE_YN
8 : AUDIT_ID
9 : AUDIT_DTM
10 : LOG_NAPLY_RSN_CTT
'''
class ZNGM_SCRN_BRWS_TRANS_Row():
pgm_id, brws_trans_id, brws_prt_dload... | [
"ses1430@gmail.com"
] | ses1430@gmail.com |
5e31fa88ecd6800137118045547784845a99d9ef | 02bf362b4f30aac421dae39600b4b8d363631ed6 | /gene_app/migrations/0007_auto_20180411_2034.py | a852e24d8f91256f94c92c621a787208a347c8db | [] | no_license | DarienDuong/Genes_search | fb2180f1ca9ee0cdfd66eb6ba05fe3ff5b240970 | 108426ee745d8951e95bcecfe5e9d833ab49b574 | refs/heads/master | 2020-03-09T21:39:17.567418 | 2018-04-15T19:33:46 | 2018-04-15T19:33:46 | 129,014,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Generated by Django 2.0.4 on 2018-04-11 20:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gene_app', '0006_auto_20180411_2034'),
]
operations = [
migrations.AlterField(
model_name='gene',
name='submitter_co... | [
"darienduong@gmail.com"
] | darienduong@gmail.com |
dbaf7c583e82742b17220b3b45bbabb630c64530 | 697fb11686110f569e7f4284045049d008688221 | /windows/nsist/tests/test_commands.py | 077ef0e8505a5a9f5e8aad17d9ce5190dcfc8f72 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | andredoumad/p3env | 433c9174899f0909b149f51c3243b6fe04e076bf | a8850d06755d53eb6fedd9995091dad34f1f9ccd | refs/heads/master | 2023-02-03T20:50:07.357255 | 2020-12-23T09:15:55 | 2020-12-23T09:15:55 | 317,041,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | import io
from testpath import assert_isfile, assert_not_path_exists
from zipfile import ZipFile
from nsist import commands, _assemble_launchers
def test_prepare_bin_dir(tmpdir):
cmds = {
'acommand': {
'entry_point': 'somemod:somefunc',
'extra_preamble': io.StringIO(u'import extra'... | [
"andre@stringkeeper.com"
] | andre@stringkeeper.com |
75029b8011306ea43fa6bcb6a6ffdb1267abca72 | bec4eede6212d021192064f65f355ad4cca964b9 | /run_main.py | 0d3b58d9761952dd3557ee3441c1b89abca4ee58 | [] | no_license | Karanpalshekhawat/hyperparameter-optimisation-gaussian-example | 2941d3cb0e8d74338c3a34fb35f002f473386169 | f656985cf3bee4977ea9b33b4590810205828c45 | refs/heads/main | 2023-01-11T22:55:39.235153 | 2020-11-11T18:01:38 | 2020-11-11T18:01:38 | 311,869,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | """
This script is the main file that calls all the other
scripts to run the ml project.
"""
import pandas as pd
import src.config as sc
from functools import partial
from skopt import gp_minimize
from src.param_grid import param_space, param_names
from src.optimize import opt_func
def run_output(df):
"""
S... | [
"karanpal609@gmail.com"
] | karanpal609@gmail.com |
71ded62f39c42c63d81f5fca134c23092901d1ac | f0e93445fc07c3dff72c66f5cb24cef8571f2907 | /LessonFourth/while.py | 991c32df4c57cb6a8fcfb025e945eb762134c90b | [] | no_license | 9zemel/python_course | 4347244c9df56f19eee635d02e13f0a1418677bc | 90e10d752140ed394699620358d4da3e6a63b475 | refs/heads/master | 2022-11-06T23:13:03.220251 | 2020-06-26T15:41:23 | 2020-06-26T15:41:23 | 256,525,383 | 0 | 0 | null | 2020-06-26T15:41:24 | 2020-04-17T14:27:57 | HTML | UTF-8 | Python | false | false | 438 | py |
unconfirmed_users = ['pavel', 'petr', 'semen']
confirmed_users = []
while unconfirmed_users:
current_user = unconfirmed_users.pop()
print(f"Verifying user: {current_user.title()}")
confirmed_users.append(current_user) # Показывваем всех подтвердивших пользователей
print("\nThe following users have been confirmed:... | [
"epolyakova@ozon.ru"
] | epolyakova@ozon.ru |
1cafbd4a08a17320ceeb2b9881da632edbe59691 | ca0dd1e396aa81363602e32aa4a3fa221fe4c058 | /main.py | 8c046fd680d2050ed2eb94dcae2a38bc3e8518e0 | [] | no_license | Hadegda/NetworkOSPFProtocol | be045fd5c776cf23a50546486cac8a80c49e922f | 99d3f754e9e5a80e0a51bf5f80199852cd69e5b9 | refs/heads/main | 2023-03-26T18:27:58.641886 | 2021-03-28T20:39:07 | 2021-03-28T20:39:07 | 352,432,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | from cmd_parser import cmd_parse
from commands import *
import multiprocessing as mp
from queue import Empty
import threading, time
from router import RouterStateType
baseNodeColor = (255, 255, 155)
WHITE = (255, 255, 255)
selectedNodeColor = (155, 250, 155)
routeNodeColor = (255, 100, 100)
ws = 700 # rend... | [
"noreply@github.com"
] | noreply@github.com |
ef72f3b184bba8de7108df9b0ba9079212eab48c | dafbe576d99cbb74f78d0ae413984d10ce303148 | /scanner/test_scanner.py | 922688ece412b23d47719c687feb9ce1b56270cc | [] | no_license | pmichali/openstack | 9d86c8cfc828c72e5a0c63b6e40f7f773489a2c7 | 11da8dc864ebbb3496c38b3a1d9705f892e8d96d | refs/heads/master | 2021-01-19T06:12:30.423120 | 2015-11-19T13:05:11 | 2015-11-19T13:05:11 | 11,979,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,477 | py | import os
import mock
from oslo_log import log as logging
from neutron_vpnaas.tests import base
from neutron_vpnaas import scanner
LOG = logging.getLogger(__name__)
# NOTE: This was created to run under the VPN repo. Placed the source in the
# neutron_vpnaas/ area, and this test file in neutron_vpnaas/tests/unit/... | [
"pc@michali.net"
] | pc@michali.net |
40aa393a2b50e3fee132f7cb6d130232ad51cdd1 | 68e584bf1af492066a8c993e5d05e5de5abaf40c | /server/firestore_storage_test.py | db308e59222b05715546fed3b273b06ce35e9965 | [
"MIT"
] | permissive | oinam/02books | 4e8c5b47e05d5de25fbe2d5649daba65d036b691 | 9eed066fee5503c88359958708dfb8eba56e465a | refs/heads/master | 2023-02-02T18:27:16.136020 | 2020-12-21T01:51:12 | 2020-12-21T01:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import unittest
import firestore_storage
import storage_test
@unittest.skip("Need GCP project setup for testing.")
class FileStorageTest(unittest.TestCase, storage_test.StorageTest):
def setUp(self):
self._store = firestore_storage.FirestoreStorage()
@property
def store(self):
return sel... | [
"sof.ignatova@gmail.com"
] | sof.ignatova@gmail.com |
cb1d05f3b6fb822a1a0bcd62923610b8dac2039d | 872f0a479883c25c0eadaff6623af18af1849f39 | /project/api/routes/partner_routes.py | bb74fe7751b33196d447721b7cb845cbf48b23ce | [] | no_license | talespadua/geojson-fastapi | 4e0ac16b2a3fc2a291b694983ae30be5a92f5cf9 | ed0c52b08af6610dbad6181605f6cb85fa108e49 | refs/heads/master | 2023-02-17T21:37:30.765294 | 2021-01-18T13:57:52 | 2021-01-18T13:57:52 | 320,397,305 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from typing import Optional
from fastapi import APIRouter, HTTPException
from pymongo.errors import DuplicateKeyError
from project.dal.partner_repository import PartnerRepository
from project.domain.partner.model import PartnerModel
from project.dal import mongo_connection
from project.domain.partner.partner_service ... | [
"talescpadua@gmail.com"
] | talescpadua@gmail.com |
e95820c6d76ddc12267583e43f16ccf0eabb4733 | f0290023a538c581965e38ce6bf09771c07aa2d1 | /DjangoProjects/mysite/pybo/views.py | e64fdc35077e41ebd4487313753356911cf2db83 | [] | no_license | kingchan223/Django-prac-web | bf320826016691d0327db66d110e2e2ed92f2109 | b65e4091149794a58533fd9c3f181ca36a48efde | refs/heads/master | 2023-02-28T15:20:24.211479 | 2021-02-10T15:45:57 | 2021-02-10T15:45:57 | 337,764,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Question
from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .forms import QuestionForm
# Create your views here.
def index(request):
"""
pybo 목록 출력
"""
questi... | [
"kokiyo97@naver.com"
] | kokiyo97@naver.com |
d28858998f0ab4af536d95c56340e7808b9262d8 | e21505d33a94aa542083afbcb618a455c3d31cbc | /env/Scripts/django-admin.py | b4a114c7ef1eb20974e7bd9e3b8474482a74a62d | [] | no_license | taylordye/web-dev-practice | 90ad0af2295972a33404fd5c44f8e067f1a32b79 | 9f5b2f20527878da766d0274bf2aba5b82f62d41 | refs/heads/master | 2023-04-20T12:09:15.681922 | 2021-04-30T02:59:04 | 2021-04-30T02:59:04 | 362,978,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #!c:\users\dyeta\desktop\webdev-practice\env\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py... | [
"dyetaylor@icloud.com"
] | dyetaylor@icloud.com |
c87d5afa14f70ed9c35d2b5894f71311df928142 | a904e99110721719d9ca493fdb91679d09577b8d | /month05/spider/day01_course/day01_code/10_novelSpiderMysql.py | f0fca531e47d09485d510041f8e19a4946197908 | [
"Apache-2.0"
] | permissive | chaofan-zheng/tedu-python-demo | 7c7c64a355e5380d1f8b6464affeddfde0d27be7 | abe983ddc52690f4726cf42cc6390cba815026d8 | refs/heads/main | 2023-03-12T05:17:34.596664 | 2021-02-27T08:33:31 | 2021-02-27T08:33:31 | 323,350,480 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | """
笔趣阁小说爬虫,所抓数据:href、title、author、comment
思路步骤:
1、确认数据来源(右键->查看网页源代码->搜索关键字)
2、确认静态:观察URL地址规律
3、写正则表达式
"""
import requests
import re
import time
import random
import pymysql
class NovelSpider:
def __init__(self):
self.url = 'https://www.biqukan.cc/fenlei1/{}.html'
self.... | [
"417355570@qq.com"
] | 417355570@qq.com |
606e40173bb24cbf9d4f95a5b261acd0d044934f | b5fbc01deb2060b2222f885fca0433844a9e7cd1 | /web/lib/python3.6/site-packages/daphne/server.py | fb70c6cdaefb1d92caf40231038ced1b11ffb355 | [] | no_license | Carlosdher/reposicao | 50973b15f8a2bd3a5a6b83b06efe0050f612bb83 | 71ef93e694888e54c79e98e8568c3417ee82ec96 | refs/heads/master | 2020-03-18T04:13:59.493126 | 2018-08-02T13:06:55 | 2018-08-02T13:06:55 | 134,277,105 | 2 | 0 | null | 2018-07-27T19:20:36 | 2018-05-21T14:01:26 | Python | UTF-8 | Python | false | false | 11,655 | py | # This has to be done first as Twisted is import-order-sensitive with reactors
import sys # isort:skip
import warnings # isort:skip
from twisted.internet import asyncioreactor # isort:skip
current_reactor = sys.modules.get("twisted.internet.reactor", None)
if current_reactor is not None:
if not isinstance(curren... | [
"carlosabc436@gmail.com"
] | carlosabc436@gmail.com |
d67586d5bfb9b26e06b4db388b99b011c3dd8d88 | 8503bc494de273541276de27f613cc0c2884afda | /runfile.py | 6cdecc85d9b583b9b82275bed55825d29b4a2320 | [] | no_license | 16bzwiener/REU_project | 37f4a0a7e6752211f9457ed4448d7c2f4625e564 | 1053763a6441bcd9cc22a9de84dc714aa1fa8b08 | refs/heads/master | 2020-03-18T23:59:05.241299 | 2018-07-26T20:15:41 | 2018-07-26T20:15:41 | 135,444,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 29 16:07:55 2018
@author: benz
"""
import HexagonalLattice as HL
import FiberWalks as FW
import numpy as np
import sys
# should be a string...will have ".xml.gz" added to the end of it
filename = sys.argv[1]
# branching probability
probability = ... | [
"16bzwiener@users.noreply.github.com"
] | 16bzwiener@users.noreply.github.com |
ba598b2a4806c1e23fccce4da7fd8384c4d562c6 | 7df4085f8671194bb5232722689a9df3de0a2035 | /models/AuthModel.py | 28f76cf1936ef525bf03b52e7bad24646e7a8d76 | [] | no_license | prithvirajkumar48/Text-Detection-on-Books | bf3f515d8309a5ec47d13292615de014f28af0e6 | 7ff622fae0deb8a721bbaaa1fcab680b6b753d86 | refs/heads/main | 2023-08-28T12:11:36.921577 | 2021-09-06T13:49:17 | 2021-09-06T13:49:17 | 355,205,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | from library.db import *
class AuthModel:
def __init__(self):
self.conn = connect('app.db')
def getUser(self,username,password):
query = f"SELECT * FROM users WHERE username='{username}' and password ='{password}' "
result = fetchone(self.conn, query)
return result
... | [
"noreply@github.com"
] | noreply@github.com |
bda3a281f014f07766ed3d12be20620f343d84f9 | 4e30d990963870478ed248567e432795f519e1cc | /tests/api/v3_1_1/test_radius_server_sequence.py | 06bc47193d83c29626dc73d020e1b4e717332858 | [
"MIT"
] | permissive | CiscoISE/ciscoisesdk | 84074a57bf1042a735e3fc6eb7876555150d2b51 | f468c54998ec1ad85435ea28988922f0573bfee8 | refs/heads/main | 2023-09-04T23:56:32.232035 | 2023-08-25T17:31:49 | 2023-08-25T17:31:49 | 365,359,531 | 48 | 9 | MIT | 2023-08-25T17:31:51 | 2021-05-07T21:43:52 | Python | UTF-8 | Python | false | false | 13,545 | py | # -*- coding: utf-8 -*-
"""IdentityServicesEngineAPI radius_server_sequence API fixtures and tests.
Copyright (c) 2021 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
1dcf5cc3678efcfe0eca0ef2997a30e20b9a2b59 | 9bd1cfefa867d09222b628f8abeb733fd8e5e161 | /xkcdTest/xkcdTest/middlewares.py | 450bb6cba7b7d8c3156f7b122f7d966f4eba5482 | [] | no_license | ChristineOscai/Scrape | 963668f3092d77fc4b533431ca1028cd75bb4410 | 7d33d2ef6b3dfa76bc5e16f56ae4b0ce23aad0e2 | refs/heads/master | 2021-01-19T13:40:02.011173 | 2017-02-20T18:55:04 | 2017-02-20T18:55:04 | 82,409,083 | 0 | 1 | null | 2017-02-20T18:55:05 | 2017-02-18T18:57:38 | null | UTF-8 | Python | false | false | 1,882 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class XkcdtestSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ... | [
"raymond.ehlers+git@gmail.com"
] | raymond.ehlers+git@gmail.com |
71ac139b02caeff0356eb0995e9ab02e98a78309 | 88061c078a687620e53f413d9cee0645891e1d40 | /pointlike/python/uw/like2/analyze/components.py | 4324376bdfd818890b34d0a4e67c627bf7eef100 | [] | no_license | fermi-lat/ScienceTools-scons-old | 2b80b24220433fc951c7e12cb2935a3b6d5690aa | 1bc4e2dc8db28e87c4b97afb998ff1ce2fd770b8 | refs/heads/master | 2021-06-29T02:10:35.524126 | 2017-08-23T23:40:25 | 2017-08-23T23:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | """
Description here
$Header$
"""
import numpy as np
from . import (roi_info, galactic, isotropic, limb, sunmoon, sourcetotal)
class Components(roi_info.ROIinfo):
def setup(self):
self.plotfolder='components'
self.title = 'All components'
self.plots_kw={}
self.components = [x() ... | [
""
] | |
550d9497f7c57dd82b617709a2304cd9d1d6fae2 | a2ce2580b9688d5c07357d3885ab1c27ed695a93 | /scripts/exportImages.py | 3eb33f342a6c13600ea22bdea7939c33706f891b | [] | no_license | simonsan/coh2ladders | a4706ce2712a5e1abf5eca3d7007ccc1cdf84796 | 14a80b607ed94b9ffc64729f312072ee91687b0d | refs/heads/master | 2023-08-27T09:04:04.977982 | 2021-11-12T22:43:51 | 2021-11-12T22:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,914 | py | import json
from PIL import Image
import os
from collections import defaultdict
# prepare data
# //////////////////////////////////////////////////
# read files
with open('subImageDict.json', 'r') as f:
raw=f.read()
# parse file
subImageDict = json.loads(raw)
with open('symbolClassDict.json', 'r') as f:
raw=f... | [
"noreply@github.com"
] | noreply@github.com |
27ca9334923d3129c7afbd9b44c77d90fb75f759 | 079c35dbcaadcaf12c5493e78f4632a7effc94eb | /Matplotlib_example_10.py | 48e357689108c175dfaeac3530af9423daee8a69 | [] | no_license | UW-ParksidePhysics/Kliger-Ryan | e418f40ed5a371dd307ee5efa257b11bb129776c | 0c960bd055f73f665240d45451c6dfe63c2a832c | refs/heads/master | 2020-12-28T11:04:09.333916 | 2020-05-15T02:55:24 | 2020-05-15T02:55:24 | 238,304,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #Basic Animation in Matplotlib
from matplotlib import animation
from numpy import linspace
import matplotlib.pyplot as plt
from numpy import sqrt, exp, pi
import numpy as np
plt.ion()
#Make first plot
fig = plt.figure
def frame(args):
frame_no, s, x, lines = args
y = f(x, m, s)
lines[0].set_data(x, y)
... | [
"klige001@rangers.uwp.edu"
] | klige001@rangers.uwp.edu |
f1171065a79e816e713b83f5876b78b8b5296740 | 8b0869095f5e6cc1071bed1bf07db12bf55b8cf7 | /util/excelutils.py | 4e77a1b49e4573692528be563660cbfd105df533 | [] | no_license | linjie98/JD_Comment_Spider | 1b711710ed5ad6e70eb84b6d1ce88e9d64e618d4 | 0e8c15f505c61a07f0b27e38f33c39841075d683 | refs/heads/master | 2021-09-27T01:37:51.981448 | 2018-11-05T12:16:36 | 2018-11-05T12:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : linjie
# @Des : py将MySQL数据导出到excel
import logging
import util as mysql_util
import xlwt
from util import mysql_util
from util.mysql_util import MySQLUtil
class ExcelUtils:
# 日志配置
logging.basicConfig(level=logging.DEBUG,
format='[... | [
"xulinjie0105@gmail.com"
] | xulinjie0105@gmail.com |
ec763772a7ad70034b527653c95532b1117ed21d | 0976c5fd1ae1a84c1a2799ad3ef242dd0c36f524 | /webhome/tmp_0x48_0x90.py | 74ef334ea496cd5f991653dfede56859f90c2766 | [] | no_license | quite-smart-stuff/smart-home | ec275b1878376b481df91a6abc79dc95db98f743 | 47034fc0ff2837e9fbfa407d2711b9e45ab2778e | refs/heads/master | 2021-01-11T10:22:35.229708 | 2017-02-16T13:07:11 | 2017-02-16T13:07:11 | 78,301,988 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #import smbus
#I2C_BUS = 1
#bus = smbus.SMBus(I2C_BUS)
#7 bit address (will be left shifted to add the read write bit)
#DEVICE_ADDRESS = 0x48
#Read the temp register
#temp_reg_12bit = bus.read_word_data(DEVICE_ADDRESS , 0 )
#temp_low = (temp_reg_12bit & 0xff00) >> 8
#temp_high = (temp_reg_12bit & 0x00ff)
#c... | [
"nikolay.g.raychev@gmail.com"
] | nikolay.g.raychev@gmail.com |
ecb1f88de692273696479a78d63266fb28e7ab08 | 128548b223a941c1570aba99c679a698dedb3e72 | /rename.py | 0b1a95e3d55d759c39a67fb810c8a247760c7484 | [] | no_license | hhk86/Barra | de3e8d715f6ead1b425e5b639538df370a4eb11f | ddcf50766bcbdecb602213cccc65cab01146f88b | refs/heads/master | 2020-07-26T18:04:44.006126 | 2019-09-26T07:36:48 | 2019-09-26T07:36:48 | 208,727,872 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import sys
from pymongo import MongoClient
from basicFunction import *
import sys
class MongoDB():
'''
Connect to local MongoDB
'''
def __init__(self):
self.host = "18.210.68.192"
self.port = 27017
self.db = "basicdb"
self.username = "user"
self.password = "user... | [
"hhk0@outlook.com"
] | hhk0@outlook.com |
24ae940898e40cd452fccf9a14a65f0d30687132 | c4b7399a10b7f963f625d8d15e0a8215ea35ef7d | /239.滑动窗口最大值.py | 28a32c944148c249efaaa64c9393453ee7122d3f | [] | no_license | kangkang59812/LeetCode-python | a29a9788aa36689d1f3ed0e8b668f79d9ca43d42 | 276d2137a929e41120c2e8a3a8e4d09023a2abd5 | refs/heads/master | 2022-12-05T02:49:14.554893 | 2020-08-30T08:22:16 | 2020-08-30T08:22:16 | 266,042,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | #
# @lc app=leetcode.cn id=239 lang=python3
#
# [239] 滑动窗口最大值
#
# https://leetcode-cn.com/problems/sliding-window-maximum/description/
#
# algorithms
# Hard (44.47%)
# Likes: 262
# Dislikes: 0
# Total Accepted: 33.6K
# Total Submissions: 75.5K
# Testcase Example: '[1,3,-1,-3,5,3,6,7]\n3'
#
# 给定一个数组 nums,有一个大小为 k... | [
"596286458@qq.com"
] | 596286458@qq.com |
e5aafc8df7b44ff0c83d49b3d4cab9e3ea94de56 | 240e7cbb46bf2a94b3fd337267c71c1db42e7ce1 | /examples/ad_manager/v202002/adjustment_service/get_all_traffic_adjustments.py | 7754fa8a3e02792791e992f180562cb4b0e174bc | [
"Apache-2.0"
] | permissive | andreferraro/googleads-python-lib | 2624fa84ca7064c3b15a7d9d48fc0f023316524d | a9ddeae56c5b9769f50c4e9d37eb32fd1eebe534 | refs/heads/master | 2022-11-13T03:38:38.300845 | 2020-07-03T13:17:59 | 2020-07-03T13:17:59 | 276,904,111 | 0 | 0 | Apache-2.0 | 2020-07-03T13:16:21 | 2020-07-03T13:16:20 | null | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/env python
#
# Copyright 2019 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 o... | [
"davidwihl@users.noreply.github.com"
] | davidwihl@users.noreply.github.com |
61109f2520040675af6b0001cb0b033d7f46f74f | 68728961294d360d26e8149e7e0a4816adf20842 | /src/build_seq2seq_transformer/train_helper.py | 847c17f886a834c2ab5cd5579e7cba3bd6108705 | [] | no_license | Dawn-Flying/text_summarization | d334fe884aa3a6341dd7bc381b03c1ab3e2c057e | ab68555c6f455c4f14fead5fc1c49420cdef8dc4 | refs/heads/master | 2023-07-17T07:49:21.995004 | 2021-08-26T15:46:19 | 2021-08-26T15:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | import time
import tensorflow as tf
from src.build_seq2seq_transformer.schedules.lr_schedules import CustomSchedule
from src.build_seq2seq_transformer.layers.transformer import create_masks
loss_object = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False, reduction='none')
def loss_function(real, pred)... | [
"184419810@qq.com"
] | 184419810@qq.com |
49c9db7ff4e5f5ffc2523e4aa28dd2e97fb75ece | 60c7932978e196ebc995f02f1c2b7f64e8112b5a | /Python/count_holes.py | 303d91a656a4f611593e3108d8338fd9fc6b336c | [] | no_license | lakr1m0za/lakr1m0za | 94ad66bb8c2722544bffbb1596d8b9b7c42f8a56 | e9c0aabf597daec04397d3ec9facd4355e35e939 | refs/heads/master | 2023-02-06T17:24:37.277734 | 2020-12-11T12:40:09 | 2020-12-11T12:40:09 | 298,211,172 | 0 | 0 | null | 2020-12-11T12:40:10 | 2020-09-24T08:07:37 | Python | UTF-8 | Python | false | false | 466 | py | while True:
value = input()
holes = ('0', '4', '6', '8', '9')
count_holes = 0
if value.isdigit(): #check for numbers
if value[0]=='0':
value = value[1:]
for i in value:
if i in holes:
if i == '8':
count_holes += 2
... | [
"mohax8romeo@gmail.com"
] | mohax8romeo@gmail.com |
7988554acc43c5ace0cce736acfb1ff0ed95ea52 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/drives/item/items/item/workbook/functions/xnpv/xnpv_post_request_body.py | e5053356c6bc3650a7b2d91c575229542476f146 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 2,775 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
from typing import Any, Callable, Dict, Lis... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
ab6f788cb60d27473802d56f09423dbd1eb7c21e | 43ed701ea8caa3b6bafa496130a8cf67238f1299 | /Backend/lib/pyd7a/d7a/sp/test/status.py | 65839aee07dcdf23b8a102bff5fbaf87e5b0b422 | [
"Apache-2.0",
"Unlicense"
] | permissive | ManuPepermans/I-LpIoT | 0374e906117818d262ecdd909abbd917a42869c8 | 7015a8df05e24c9b21372c961404b4d8e956e6c8 | refs/heads/master | 2021-09-04T03:29:04.076181 | 2018-01-15T08:01:22 | 2018-01-15T08:01:22 | 117,566,888 | 2 | 0 | null | 2018-01-15T16:10:16 | 2018-01-15T16:10:16 | null | UTF-8 | Python | false | false | 2,388 | py | # status.py
# author: Christophe VG <contact@christophe.vg>
# unit tests for the D7A SP Status information
import unittest
from d7a.phy.channel_header import ChannelHeader, ChannelClass, ChannelCoding, ChannelBand
from d7a.types.ct import CT
from d7a.d7anp.addressee import Addressee
from d7a.sp.session import ... | [
"lander@dellafaille.me"
] | lander@dellafaille.me |
8556f397bcf634e1267d30adf2b992386a90572e | 4994b1058a9709a4a9c8b2142aae8163b775f2e3 | /tests/profiles/test_profiles_io.py | 5a8430754ddb1cb63d495100100c58200d160cf4 | [
"CC-BY-4.0"
] | permissive | C2SM-RCM/emiproc | aaf2c63fdb7230f5690c04c33640eecd20089d1c | 25eddb42c425ead57f854ddd3dfe0dc782838c8f | refs/heads/master | 2023-08-07T13:49:00.626664 | 2023-08-03T11:58:51 | 2023-08-03T11:58:51 | 191,889,231 | 1 | 3 | CC-BY-4.0 | 2023-08-03T11:58:53 | 2019-06-14T06:37:44 | Python | UTF-8 | Python | false | false | 1,132 | py | import emiproc
from emiproc.profiles.temporal_profiles import (
TemporalProfile,
DailyProfile,
WeeklyProfile,
MounthsProfile,
from_csv,
from_yaml,
to_yaml
)
def test_saving_and_loading_yamls_temporal_profiles():
yaml_dir = emiproc.FILES_DIR / "profiles" / "yamls"
ya... | [
"lionel.constantin@empa.ch"
] | lionel.constantin@empa.ch |
f8d852307d4fb8a536f2fabc9a75a5ea57e546f3 | 8b21b77d4bcc7f57f8b4869642ad513bfb4aa839 | /27.py | 4149738676768e0d12a3f828133fb93fc8fab101 | [] | no_license | jpanda109/project-euler | bab9a3bdd46a73b21e720d4234271987cc419229 | cef902218c410254336f5e06fafc5bce2323b0de | refs/heads/master | 2021-01-17T08:31:54.578369 | 2016-09-12T16:41:12 | 2016-09-12T16:41:12 | 25,481,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from pemodule import *
maxPrimeAmount = 0
realA = 0
realB = 0
for a in range(-1000, 999):
for b in range(-1000, 999):
unfinished = True
n = 0
primeAmount = 0
while unfinished:
qformula = n**2 + a * n + b
if (qformula > 0 and isPrime(qformula)):
... | [
"jason.j.xiong@gmail.com"
] | jason.j.xiong@gmail.com |
f110c7f11fb057cd7fd0e3acdfc722611c64697b | 7a5d867c9f80661900ee711389e272dc2bfb47ab | /PubSub/__init__.py | 5923e3c045477479e75355e7ae544204bd89fd28 | [] | no_license | AliAbdelaal/pubsub-lib | 20478b75fa436402f966415db0a5c3da09e4a40c | a3a079abfe7164ecee9044e162897bf1301d3e13 | refs/heads/master | 2023-03-11T00:52:31.351791 | 2021-02-21T21:49:07 | 2021-02-21T21:49:07 | 340,931,014 | 1 | 0 | null | 2021-02-21T20:23:29 | 2021-02-21T15:13:26 | Python | UTF-8 | Python | false | false | 40 | py | from PubSub.factory import PubSubFactory | [
"aliabdelaal369@gmail.com"
] | aliabdelaal369@gmail.com |
d0091e5435aed599fe9e3ea10c6cdca0c7d14390 | 9de09405c62a3412f39efb86cae35eefa9836827 | /board/serializers.py | f862f17529aa53faad290456b395a0deb70ca7cf | [] | no_license | S121Pradhan/ScrumBoard | 802d59cac6f8934146b66fa72e16d51772e693f8 | f0ff9ebf038729bd4760b52774d6b723405e6b01 | refs/heads/master | 2020-06-17T13:41:24.821439 | 2017-01-11T16:39:36 | 2017-01-11T16:39:36 | 75,002,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,807 | py | from django.conf import settings
from django.contrib.auth import get_user_model
from rest_framework import serializers
from rest_framework.reverse import reverse
from django.utils.translation import ugettext_lazy as _
from datetime import date
from .models import Sprint, Task
User = get_user_model()
class UserSeria... | [
"Saurabh.Pradhan@makemytrip.com"
] | Saurabh.Pradhan@makemytrip.com |
7e4bcaf91aa924c3d239dae7a23bc250e26b7cac | ac132a96e6b0d3e1cc542b0ecba404c0485c7234 | /config/wsgi.py | b775ed458821fa027e3d3e3095b04a759a8c4148 | [
"MIT"
] | permissive | weihao306/TaskPublish | 260b530bc59089a12bf6cabb4ba7000c66fe0ddb | fa5fcfecafbaece5a74ee91ee8567e827171b5db | refs/heads/main | 2023-02-01T18:56:03.493394 | 2020-12-16T12:15:27 | 2020-12-16T12:15:27 | 311,708,453 | 1 | 0 | MIT | 2020-12-16T12:15:29 | 2020-11-10T15:52:08 | Vue | UTF-8 | Python | false | false | 394 | py | """
WSGI config for TaskPublish 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"39020578+weihao306@users.noreply.github.com"
] | 39020578+weihao306@users.noreply.github.com |
becf43a0b4dfb0ea436cf8140e0e35e4cfda4e6a | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/plugin/account_extend/__yuancloud__.py | 8db29a38062cd53a33ecab90e168d9cf7f69b8a1 | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # -*- coding: utf-8 -*-
{
'name': "财务模块扩展",
'summary': """
""",
'description': """
Long description of module's purpose
""",
'author': "zhangzs@sswyuan.com",
'website': "http://www.sswyuan.net/yuancloud",
# Categories can be used to filter modules in modules listing
#... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
8d39dafd82bf5392993848835b8c15606d059e30 | bee481c72f4c55c2c0368ce6ca6101411fe7e550 | /goldeni/core/operators.py | 3db34863da07bf1881898464e3a38ee081513fe1 | [] | no_license | taphi/Goldeneye | a0af451818ccc5e20fc8a581322314af68068f53 | 578310780672879d2ac163d9329011e6f737183e | refs/heads/master | 2021-01-17T21:29:39.195676 | 2011-12-06T23:48:50 | 2011-12-06T23:48:50 | 2,610,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,036 | py | import Image, time
# Convolve the kernels with the image to approximate the gradient
def convolve(pixels, width, height, k):
# Initialize the various kernels
dim = 2
if k == 'scharr':
xmask, ymask = get_scharr_masks()
if k == 'prewitt':
xmask, ymask = get_prewitt_masks()
if k == 'sobel':
xmask, ymask = get... | [
"matt@matt-VirtualBox.(none)"
] | matt@matt-VirtualBox.(none) |
6c3cb7f30b02e561d0319e7d84d658e642bd50ff | e4757c3089e900028d612a836cd714d32cdfc452 | /palindrome.py | d14c20d60b0862f44d93ae09242fa270104071cd | [] | no_license | nitin-rajesh/Py_Project | 9e0b2e69ad4833e8e096280c9c829147a90f2817 | ef5ff2d1e17349f17bd2b80d5ecb1119f24478fc | refs/heads/master | 2020-09-01T09:59:44.966853 | 2019-11-01T07:32:10 | 2019-11-01T07:32:10 | 218,935,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | def isPal(word):
flip: str = ''
for c in word:
flip = c + flip
#print(flip)
if flip == word:
return True
else:
return False
word = input("Enter a word\n")
if isPal(word):
print("It is a palindrome")
else:
print("Not a palindrome") | [
"nitinrajesh@Nitins-MacBook-Pro.local"
] | nitinrajesh@Nitins-MacBook-Pro.local |
1940add90f312361930bb368426e87235f4cb373 | 1926bad3a31b88fccf5042377a771de35671e42a | /webcore/migrations/0011_alter_contents_align.py | a625a350a802484d3e7c8dad9ee687469a6d8bb7 | [] | no_license | Apurva-Jyoti-paul/CMSclone | 8a1edd09d868c3f2534914a72484fc89bfd316e1 | 45cf2f03633e59f4f6b5ca15490f99bfece47629 | refs/heads/master | 2023-08-14T05:36:05.587893 | 2021-09-04T15:48:46 | 2021-09-04T15:48:46 | 370,381,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.2 on 2021-05-30 15:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webcore', '0010_media_resourcetype'),
]
operations = [
migrations.AlterField(
model_name='contents',
name='align',
... | [
"apurvajpaul@pop-os.localdomain"
] | apurvajpaul@pop-os.localdomain |
31a956f8d019c242bd3060fb688d7dff7ed20019 | ec695316fe78e21d2062559c65b4ab15f22fe72a | /day03/namespace_demo/retest/views.py | ffb0e6bedc0cc9b2e6700a8678275353a6f19210 | [] | no_license | nireng-git/curriculum_design | c453c0b6f6b81fd81d78f06830136713484e8b19 | cc0fc740f23b7ee1ae169661e5e29dabce553ca8 | refs/heads/master | 2020-06-10T20:06:54.709815 | 2019-06-25T15:13:54 | 2019-06-25T15:13:54 | 193,732,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from django.http import HttpResponse
def article(request):
return HttpResponse("文章首页")
def article_list(request,year):
text = '您输入的年份是:%s'%year
return HttpResponse(text)
def article_list_month(request,month):
text = '您输入的月份是:%s'%month
return HttpResponse(text) | [
"1406582853@qq.com"
] | 1406582853@qq.com |
ca522f6446943697c68630ba2867ef251c86a058 | 34088b8e82bc64a10678a08c03db2732d52f0c1a | /Pinbot/Brick/App/job_hunting/exception.py | 94e3248b2a1d740940ed0965550b67d613038491 | [] | no_license | winghou/myFirstProfile | 757d82f5391f3672e48db4aa5774e26a48a5ecc7 | 8fc5d16de7b6449cba058f4d2459bbb0c8438f77 | refs/heads/master | 2020-05-31T13:42:28.554703 | 2016-03-23T11:30:13 | 2016-03-23T11:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | # coding: utf-8
class CompanyCardInterestExeception(Exception):
'''
企业名片反馈异常
'''
pass
| [
"Newfarming@NewfarmingdeMacBook-Pro.local"
] | Newfarming@NewfarmingdeMacBook-Pro.local |
ff292a8e7bdbe12c098fce225112168453d3bbe1 | 42cc7878461893ab1609e623314d5821d906fa68 | /Py_Iterativ/Tort_Principal.py | 56f97c625963449fd0f109af1b736116986005dd | [] | no_license | GabrielNedianu/Hannoi_Tower_Application | e0d5993a70211eb59d1c204db593e5fb8860aaa8 | dff7fb9d33c08c29bc150abc4a33e6da5f5bbe3d | refs/heads/main | 2023-03-12T14:08:54.837274 | 2021-03-08T19:43:13 | 2021-03-08T19:43:13 | 345,771,845 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | from Tort_Functii import *
from Generator_Nr_Straturi import *
from time import time as t # Am importat functia time numind-o "t"
fisier_ajutor_bucatari = open("ajutor_bucatari.txt", "w")
platou_initial = []
platou_final = []
platou_ajutator = []
fisier_ajutor_bucatari.write("Acestea sunt mutarile care ... | [
"noreply@github.com"
] | noreply@github.com |
eab3d9d2b21f81da8cb0237d3763f8992b227e4a | e51867eb62ed8604fc887408d3f233b3274d34db | /django_file_upload/core/apps.py | bfd6cd47aa0d3915e4456961bbcbaf0954027d1a | [] | no_license | Alig1493/django_upload | 9885e916e7dce3604fe20d80d6939a2b7c25c578 | 5dd89a6c36bed4e9f0c87ce10fea33a4ffd26326 | refs/heads/master | 2022-12-10T10:33:15.618086 | 2018-12-24T08:20:46 | 2018-12-24T08:20:46 | 125,052,224 | 0 | 0 | null | 2022-12-08T02:54:59 | 2018-03-13T13:00:13 | JavaScript | UTF-8 | Python | false | false | 164 | py | from django.apps import AppConfig
class CoreConfig(AppConfig):
name = 'django_file_upload.core'
def ready(self):
from .signals import fire_tasks
| [
"mazg1493@gmail.com"
] | mazg1493@gmail.com |
1907f0a2e302c7cce5b97a3b25205bf778c10b6b | 5b85703aa0dd5a6944d99370a5dde2b6844517ec | /00.Algorithm/01.DayoftheProgrammer.py | 9463400876f2915f3668405862eb637fd3d8402f | [] | no_license | alda07/hackerrank | 255329196e6a4b9d598c3f51790caf4a99a755bc | a09091f859e87462c95ee856cbbd0ad9b5992159 | refs/heads/master | 2021-10-24T07:38:34.795632 | 2019-03-23T17:29:32 | 2019-03-23T17:29:32 | 90,329,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | def get_date(day,month):
str_day = ""
if day < 10 :
str_day = "0%d" %(day)
else:
str_day = day
#month
str_month = ""
if month < 10:
str_month = "0%d"%(month)
else:
str_month = month
return ("%s.%s.%s"%(str_day,str_month,year))
def solve(y):
# Complete... | [
"hanh.vo@sugar.sg"
] | hanh.vo@sugar.sg |
07fccf67a1e8f157cd3475218604638fde43eeab | 0931b32140ba932b3ba02f5109a087c6c70a244d | /frappe/utils/background_jobs.py | f6f35f3c8239acf3302486d691b210bc54e537ca | [
"MIT"
] | permissive | cstkyrilos/frappe | b60ed4e95ce929c74c2fc46000080d10b343190e | 27d9306bc5924c11c2749503454cc6d11a8cc654 | refs/heads/main | 2023-03-23T10:35:42.732385 | 2021-03-22T21:55:58 | 2021-03-22T21:55:58 | 350,292,784 | 0 | 0 | MIT | 2021-03-22T10:01:08 | 2021-03-22T10:01:07 | null | UTF-8 | Python | false | false | 5,097 | py | from __future__ import unicode_literals, print_function
import redis
from rq import Connection, Queue, Worker
from frappe.utils import cstr
from collections import defaultdict
import frappe
import MySQLdb
import os, socket, time
default_timeout = 300
queue_timeout = {
'long': 1500,
'default': 300,
'short': 300
}
d... | [
"cst.kyrilos@gmail.com"
] | cst.kyrilos@gmail.com |
c21a4e7d6c7d77a4815e288fc23e3d376ab00ae1 | 54a9cd5e7c1c4b0e4f3972f4dc99cb379193c7d8 | /shows/Bands.py | badea358ae546647e1038210f98ca5fa6757ceaa | [] | no_license | stevedudek/Roses | 4b27db97f674886a379f2de13f4c45dddb8e0f03 | 1da285801a6d7d2d2101342feeb95180105a1b9f | refs/heads/master | 2020-12-24T16:33:08.294514 | 2018-11-02T22:13:50 | 2018-11-02T22:13:50 | 37,356,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from random import random, randint, choice
from HelperFunctions import*
class Band(object):
def __init__(self, rosemodel, r, dist, dir):
self.rose = rosemodel
self.color = randColor()
self.r = r
self.p = 0
self.d = dist
self.dir = dir
self.grade = randint(5,20)
self.fade = randint(10,20)
self.speed... | [
"stevedudek@gmail.com"
] | stevedudek@gmail.com |
beb3941bbfc455c22a4ee8480f44419c8e57eb50 | 95658a028b56e4f4247d87c101677728b0a1e5ae | /Some_scripts/video_playback_final.py | 2581f40cc966fa36db843a83a13732e5ec28cf85 | [] | no_license | qdree/Raspberry-Pi | 95b4272fa71b31d46f1d864359d0a85157a13833 | a335fe2526d55fb0601838b141d9a18b08df73ef | refs/heads/master | 2021-01-21T05:36:42.625298 | 2016-12-02T10:12:14 | 2016-12-02T10:12:14 | 68,797,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | import RPi.GPIO as GPIO
import os
from time import sleep
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(18, GPIO.OUT) #LED pin
movie = ("/home/pi/Videos/movie.mp4")
GPIO.output(18, GPIO.HIGH) #turn LED on
start_button_state = Tr... | [
"ta4ckpih@gmail.com"
] | ta4ckpih@gmail.com |
d16d2199c66506ba5b3ed0085981db235753b2d8 | 0e7a0cda328bceeb55a4ac41250d88bf92903b5a | /chick_magnet_1023_final.py | e3b7e04dbca76c51eb5d54fce55d3a5ff3deb592 | [] | no_license | yurichalmers/chick-magnet | fe81da2c4db211969f8a2824f525f10a21a4bf0c | 61bf4922c318e74bd9069a1c2e8d1bf759792f2a | refs/heads/main | 2023-02-23T13:23:24.741780 | 2021-01-30T01:58:34 | 2021-01-30T01:58:34 | 334,306,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,785 | py | import arcade
import math
SCREEN_WIDTH = 1000
SCREEN_HEIGHT = 650
SCREEN_TITLE = "cHiCk mAgNeT game"
CHARACTER_SCALING = 1
TILE_SCALING = 1
PLAYER_MOVEMENT_SPEED = 6
ANGLE_SPEED = 2
LEFT_VIEWPORT_MARGIN = 250
RIGHT_VIEWPORT_MARGIN = 450
BOTTOM_VIEWPORT_MARGIN = 50
TOP_VIEWPORT_MARGIN = 100
view_left = 0
view_bottom... | [
"chalmers.yuri@gmail.com"
] | chalmers.yuri@gmail.com |
e94c596c64c6ccc1a803c4b03a4f95b17f57e886 | 88a736d9678652569c5b0527b42bdc7c6627cedd | /storage/management/commands/createsuperuser2.py | 97f3c141b2c5ebc91eb4fcfed30ba65450a8bfb0 | [] | no_license | dvenum/perx_testcase | 5fcec2e5b790efb99399732a9e7a4ea539fe63ff | 1f5558294876dccff6a2d876e4a254a67afe41a5 | refs/heads/master | 2022-12-03T21:56:23.188773 | 2020-08-30T15:08:31 | 2020-08-30T15:08:31 | 290,790,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from django.contrib.auth.management.commands import createsuperuser
from django.core.management import CommandError
class Command(createsuperuser.Command):
help = 'Crate a superuser, and allow password to be provided'
def add_arguments(self, parser):
super(Command, self).add_arguments(parser)
... | [
"dvenum.at@gmail.com"
] | dvenum.at@gmail.com |
cffac3e938b8f72f426447724e96e8a625dca2f2 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc027/D/4117422.py | 388be0989c70f290b2cd9f0347c18a27adb75478 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from itertools import accumulate
S = input()
N = len(S)
M_cnt = S.count('M')
cnt_plus = list(accumulate([(1 if s == '+' else 0) for s in S[::-1]]))[::-1]
cnt_minus = list(accumulate([(1 if s == '-' else 0) for s in S[::-1]]))[::-1]
p = []
for i, s in enumerate(S):
if s == 'M':
p.append(cnt_plus... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
6c4a7583a880b3ae04dea1f116f925845345fcbb | ed68653396b532a20325efedc16ac4a7affa708b | /cortex/blender.py | c35ae5d851e6a940ff11e4bf8cc2474de758797f | [
"BSD-2-Clause"
] | permissive | tnaselar/pycortex | d61fdd3379d1b0e92dd1ecabf36885518295dd5b | ca29b91cf80d78af0e41f32ab830a52e3fa135e5 | refs/heads/master | 2021-01-15T19:22:36.385697 | 2016-02-06T00:04:19 | 2016-02-06T00:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | import os
import struct
import numpy as np
from matplotlib import cm, colors
import bpy.ops
from bpy import context as C
from bpy import data as D
def make_object(pts, polys, name="mesh"):
mesh = D.meshes.new(name)
mesh.from_pydata(pts.tolist(), [], polys.tolist())
obj = D.objects.new(name, mesh)
C.sc... | [
"baladityay23@berkeley.edu"
] | baladityay23@berkeley.edu |
f0a045a5211ff683f0321b0fcc448cde9bb9a65e | 2d27ced3b3fb080481546a4430fd877fea13727c | /Restriction_analysis_module1.py | f5be1c7e008f3a4c83209671ce18759b6d9ea509 | [] | no_license | Josie-e/UoB-Data-Sci-Machine-Learning-Assessment | b90c18a3b63aab172a7153f559197f681f0de348 | d940f9fd64827f173b8fff40dbd2749e031e0cae | refs/heads/main | 2023-02-11T08:28:26.680662 | 2021-01-11T08:18:14 | 2021-01-11T08:18:14 | 326,288,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | from Bio.Restriction import *
def restriction_sites_analysis(seq1_rs_lib, seq2_rs_lib):
rs_dictionary_seq1 = seq1_rs_lib.full()
rs_count_seq1 = {}
for (enzyme_name, restriction_sites) in rs_dictionary_seq1.items():
rs_count_seq1[enzyme_name] = len(restriction_sites)
rs_dictionary_seq2 = seq2_r... | [
"noreply@github.com"
] | noreply@github.com |
7120fecc5a01eb334ce76ce26af4f3f846309602 | e3da7bf83d6ea95771a0f8769101fc3f481ab4b3 | /collection/forms.py | d6632015fe7a392540f2fee84df07dbce91a411a | [] | no_license | Kaeleigh/Webapp | aa4f196d23494c44153d4553b6ed60049b06d54b | 3fd08e45b93a396789fe87082a56b61a9346a536 | refs/heads/master | 2020-08-02T17:05:55.724061 | 2019-12-14T22:59:33 | 2019-12-14T22:59:33 | 211,438,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.forms import ModelForm
from collection.models import Word
class WordForm(ModelForm):
class Meta:
model = Word
fields = ('name', 'description',)
| [
"awh938@gmail.com"
] | awh938@gmail.com |
5b8233fa6ab657e6afff9c26e8395390e67b989f | 571737246882a8353c60e1ea10b1b034faf66609 | /src/events/migrations/0003_auto_20200103_2357.py | 66aacef406124d13daa589c16b0e2ee30c82c53b | [
"MIT"
] | permissive | kc97ble/icrew | a74167a90b28c1369a0557772b774b066f397c8d | 6a75848b9e9c38dda5b641b54298735d3a749454 | refs/heads/master | 2022-12-16T07:42:05.896646 | 2020-02-12T11:55:22 | 2020-02-12T11:55:22 | 230,885,034 | 0 | 0 | MIT | 2022-12-08T03:25:18 | 2019-12-30T09:14:55 | Python | UTF-8 | Python | false | false | 553 | py | # Generated by Django 3.0.1 on 2020-01-03 15:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0002_auto_20200103_2223'),
]
operations = [
migrations.AlterField(
model_name='reg',
name='status',
... | [
"kc97ble@gmail.com"
] | kc97ble@gmail.com |
61f41b97d9bc73d0e7ed88a2d81187216f5bfead | 108526c3fe43d98232d9c53b70c29465589be743 | /talleres/taller02/talller2.py | 13719ec7ca21148562145b5e9330595e8edd7721 | [] | no_license | dvergarap13/ST0245-032 | 14f09879b2a521c49a29936a552075d6c5cbea46 | 69fed2346292d53ae53874ecf16f9c9509ac8289 | refs/heads/master | 2020-12-18T12:41:33.957346 | 2020-02-16T22:53:53 | 2020-02-16T22:53:53 | 235,383,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | def gcd_euclid(p, q):
if (q==0):
return p
return gcd_euclid(q,p%q)
print(gcd_euclid(60, 48))
def Suma_grupo(start, nums, target):
if (start>=len(nums)):
return target==0;
return Suma_grupo(start+1,nums, target-nums[start]) or Suma_grupo(start+1,nums,target)
print(S... | [
"noreply@github.com"
] | noreply@github.com |
b2a3deaae28ce2efbd89fe01d8a2d2145f9946ff | c8ed5baad6ce8527f4b75a73d0f15b1207aa660e | /app/discourse/config.py | 41c134bf5724c4ec50aaeec6afe12e15213f4a81 | [] | no_license | GovLab/noi2 | f12aed284c11c743fff0286df4fe59bb8b894050 | 7fce89f0c4c437718916fc95ca4c6c4372cdf464 | refs/heads/master | 2021-04-15T15:10:20.713982 | 2016-10-06T23:27:05 | 2016-10-06T23:27:05 | 40,134,662 | 5 | 9 | null | 2016-06-30T06:37:33 | 2015-08-03T16:10:41 | Python | UTF-8 | Python | false | false | 593 | py | from werkzeug.local import LocalProxy
from flask import current_app
class DiscourseConfig(object):
def __init__(self, config):
self.api_key = config['api_key']
self.origin = config['origin']
self.sso_secret = config['sso_secret']
self.admin_username = 'system'
def url(self, pat... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
8350c84954382cacab9731e444e974b0cfe4fdbd | a558d8f75e6f7d3162797d13c8ef8c8c05557674 | /frames.py | f6bdd2b6f651e8ea4292a1e8831aa867fc9ac18c | [] | no_license | IagoMaker/Script-Extrator-de-Frames-de-Video | fa6a816d1ab1037451221ca3d1181c3ddfcae34a | b631f06e29feaf9a444fcd95e2af77c857348a6f | refs/heads/master | 2021-02-25T06:19:38.557592 | 2020-03-06T15:10:58 | 2020-03-06T15:10:58 | 245,449,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | import cv2
import sys
#Desenvolvedor: Iago Oliveira
#tempo_frame significa em quanto em quanto tempo um frame será capturado (variável numérica)
#video significa o nome do video (variável do tipo string)
#nome_frame significa o nome que o frame será salvo
tempo_frame = sys.argv[1:]
nome_video = sys.argv[2:]
nome_fra... | [
"noreply@github.com"
] | noreply@github.com |
bca1b155e8d8a8398ae64cf321dda0a3d5fe873e | f5600d999c308285d08867f07f9e777777de24a9 | /Extractor.py | f6d7f5fed2d8a7c388a7f4fa40cb40e33f889af9 | [] | no_license | origindot-WOod/DellFirmwareExtractor | 13dd73ceee674a873cd8df9e1138b7141a1396d2 | d590d32cea5075cf36f3c7e306f0aa6814026cf3 | refs/heads/main | 2023-02-22T06:31:56.012038 | 2021-01-25T22:48:52 | 2021-01-25T22:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py |
#This script finds the compressed data embedded in a Dell BIOS update program
#and decompresses it to an apparent HDR file. The main data seems to start
#at offset 0x58 in the HDR FWIW
import zlib
import sys
import re
import binascii
if(len(sys.argv) < 2 or sys.argv[1] == "-h"):
print("usage: python3 DecompNew... | [
"noreply@github.com"
] | noreply@github.com |
8069cb67fdddf22bc8c49bd3570f72fc8b8ff5a1 | 8a322a297b04eee4d2a3dc7c87cebc9c2cbf2477 | /SequencePrediction/SequencePrediction.py | 3245e39cbf9fe850e6d29428aa314685f120809c | [
"MIT"
] | permissive | mohyneenm/IntentPrediction | 47c401d3b59a597b68a749c0d9d71416a990b661 | cc07a8e6f197fed0e5ac23d3b9e2d708b20e0ede | refs/heads/master | 2020-03-26T21:06:10.591636 | 2018-11-25T07:20:02 | 2018-11-25T07:20:02 | 145,365,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py |
from CPT import *
model = CPT()
#data,target = model.load_files("./data/train_intents.csv","./data/test_intents.csv")
data,target = model.load_files("./data/train_extracols.csv","./data/test2.csv")
model.train(data)
predictions = model.predict(data,target,3,1)
print(predictions) | [
"noreply@github.com"
] | noreply@github.com |
8264ca59a3df1d1cab9130ca1e5c8c4a584641a8 | 1f7d7cd9704452ad237377ed33b4a89b09f0151c | /test/utest-offline/testlinkhelpertest.py | c129581d4f485736f7aa4a6199045b608405d910 | [
"Apache-2.0"
] | permissive | Maberi/TestLink-API-Python-client | e83b34cdd5655cfcbaad110a73e8a8529863d1e7 | 52256160c6c9a088332717cb2301a382cdf973c5 | refs/heads/master | 2021-01-12T19:51:23.017360 | 2014-11-25T15:51:02 | 2014-11-25T16:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,070 | py | #! /usr/bin/python
# -*- coding: UTF-8 -*-
# Copyright 2012-2014 Luiko Czub, TestLink-API-Python-client developers
#
# 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.ap... | [
"luiko.czub@liegkat-archiv.de"
] | luiko.czub@liegkat-archiv.de |
7fd5da0071852b150b6eb8f66d5ba49f88611d04 | e13a7c1b06e6e12c51dd3150e4f3796d1bba2a98 | /Multiprocessing.py | 9deecbbda68bb3ce0edb2ddb2214fb9b8b5b7465 | [
"MIT"
] | permissive | JohnniOstergaard/Python_examples | 655d4b2c49a80afa70ed9acbb8e8a96d414a4d59 | ec931f247868a2933c1313a1748dd8b69a848dd8 | refs/heads/master | 2021-06-15T00:29:49.633339 | 2017-03-16T19:37:06 | 2017-03-16T19:37:06 | 84,877,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Description ===================================================================
# This code was written following a tutorial* from PythonProgramming.net**
# then modified for used as example and reminder of how to run multi processing tasks.
# *Title: Multip... | [
"noreply@github.com"
] | noreply@github.com |
8f2f3d3dbd5b5c39a8234c4fdfbc43eb4fca85c0 | 82bd7c3360401f53591227fb11ac7b34095a8a81 | /node.py | a0df8e14282f290ea4a92dcf5878cac7c129dda3 | [] | no_license | himanshugupta005/hackerrankContests | 830ec1f260050f3a81ab355b72e10eb2089fdd07 | 58e1c86e3380296d7a4e8e98f121db1012ea0d04 | refs/heads/main | 2023-07-19T12:14:37.218238 | 2021-09-10T11:57:40 | 2021-09-10T11:57:40 | 405,062,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | st=input()
node=int(input())
rd=int(input())
out=(st[node:]+st[node:].replace(' ',''))*rd
print(*out) | [
"noreply@github.com"
] | noreply@github.com |
37e404f64eca8e5bade2c564711493c42105c5fd | 134c704e5eff684ff80527a4b6b08040e5f2bd16 | /api/wsgi.py | d3b14c1591bf067c90887d39dbe73a179ce417f2 | [] | no_license | 600tomatos/ae-test | 5dc38078ac0fd5eea583992c94760b7b98949d29 | 16794a8e07c1259de0ab8664cd044f369551e680 | refs/heads/master | 2023-02-28T15:47:50.925914 | 2021-02-11T02:37:40 | 2021-02-11T02:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import os
from api.app import app
app.debug = os.environ.get('DEBUG') in ('True', 'TRUE')
| [
"mikelytvynenko@gmail.com"
] | mikelytvynenko@gmail.com |
ccc852b952dcc77487f9a4619d8f303eef9be569 | 9955efb0371d530bd2d81886e6b600a52df0dc22 | /100-Exercises-Guanabara/Ex56-60.py | 4076d09719b425b6054584e9ecb9c8d34f698c31 | [
"MIT"
] | permissive | jaquelinegondim/Basic-Exercises-in-Python | b94c5af9693b144e28509493fa8ac5e31fae5ef7 | a7a185b0848e9fcbba90d45bdf5a291112817328 | refs/heads/main | 2023-06-24T20:00:25.371712 | 2021-07-23T02:30:02 | 2021-07-23T02:30:02 | 355,632,806 | 0 | 1 | MIT | 2021-07-14T00:53:17 | 2021-04-07T17:41:28 | Python | UTF-8 | Python | false | false | 5,191 | py | ''' Estes exercícios fazem parte do curso de Introdução a Algoritmos, ministrado pelo prof. Gustavo Guanabara e podem ser encontrados no site https://www.cursoemvideo.com/wp-content/uploads/2019/08/exercicios-algoritmos.pdf
56) Crie um programa que leia vários números pelo teclado e mostre no final o somatório en... | [
"62260213+jaquelinegondim@users.noreply.github.com"
] | 62260213+jaquelinegondim@users.noreply.github.com |
a5b8b9a16c565c6c9d50a3546563b0d01bfd8d8e | cc7dcbc2d2b85c4769ab4bfb5f92bbe6f158b1bc | /Demos/Demo2/wanderSMdemo.py | 81a6917f1e0d8a83e43f1b3973f6216d0f0be718 | [] | no_license | MandyMeindersma/Robotics | c091e5b248bb067db4631e2de481d18417996933 | f58916bb293d68c176847363a25eb7270a304965 | refs/heads/master | 2023-01-08T07:34:51.223767 | 2023-01-01T05:40:12 | 2023-01-01T05:40:12 | 118,049,272 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from sensor_msgs.msg import LaserScan
import smach
import smach_ros
import time
def scan_callback(msg):
global g_range_ahead
g_range_ahead = msg.ranges[len(msg.ranges)/2]
g_range_ahead = 1
class Forward(smach.State):
def __init__(self... | [
"meinders@ualberta.ca"
] | meinders@ualberta.ca |
c3f53788c7c206f0ab3a8f0ba3ef6c8ded275732 | ae96a0a9fd8e615e8cdb50b50c9b1695647df7be | /app/cloudtrail_ops.py | 5b50801d50e46b4ec1b5977c96e114eff8a5c767 | [] | no_license | otsu81/aws-parseley | d3d0220c2e790742561e4c78882ff8bdb66e77aa | 2de2d67fd76295210a313bdc35ee7f6686082d1c | refs/heads/master | 2022-12-13T10:00:17.486490 | 2020-07-24T09:44:20 | 2020-07-24T09:44:20 | 282,181,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import boto3
import logging
from app.boto_factory import BotoFactory
logging.basicConfig(level=logging.WARNING)
class CloudtrailOps():
def get_all_cloudtrails_list(self, session, account_id):
cloudtrail = BotoFactory().get_capability(
boto3.client, session, 'cloudtrail', account_id
)
... | [
"c@otsu.se"
] | c@otsu.se |
3196910a22db94d754b0b92e48654c9191005aca | 3b83dd92fc9091ed85441d737a8764d61d58ca6e | /LWTest/__main__.py | ac13dc4a7fba5daba8491b50874d435f71a8e496 | [] | no_license | FlyBoy8869/LWTest | 76ccbad77ccc7095b24871d0696e569e7cbe2f32 | df298e62b2fcf1773ef3b58310703af36fe6969e | refs/heads/master | 2022-07-17T17:04:36.104018 | 2022-06-25T12:10:16 | 2022-06-25T12:10:16 | 229,065,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import sys
from LWTest.gui.main_window.mainwindow import MainWindow
def main(app):
window = MainWindow()
window.show()
sys.exit(app.exec())
| [
"charlescognato@gmail.com"
] | charlescognato@gmail.com |
7e5e4741c551e2a333d353dd9d36b8a23af92ebb | 2762221d5376618203be90ec6a0c1c6abb1f600a | /worldcupapp/migrations/0004_auto_20180426_0451.py | ec183f638a44363f72376c33de686432fa6f07ed | [] | no_license | ronaldjaglal/FifaPlayers1 | d6b8bd5af1934783ec6e082d461d31b733f47c07 | d1fa5933156cc955faa54d0c29e8253fe0dbe810 | refs/heads/master | 2020-03-14T05:53:59.628703 | 2018-04-29T22:57:44 | 2018-04-29T22:57:44 | 131,473,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # Generated by Django 2.0.4 on 2018-04-26 04:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('worldcupapp', '0003_auto_20180426_0408'),
]
operations = [
migrations.AlterField(
model_name='player',
name='Club',
... | [
"noreply@github.com"
] | noreply@github.com |
921edbaea8ca1d0892376180e6138f8d9d974bdd | 4a72030b031495547c116ae34723192d4060a20f | /news_app/news_app/urls.py | 4ae0d73f9931b43cf04e51f3d064f2523401b6a8 | [] | no_license | nhutbp09/news_app | 49a1bb39f7c23efb39cf42f09015b0d0270c8f57 | c62f04db299ed56c1ef914d2df2f46e9f83ddf64 | refs/heads/master | 2023-02-27T09:33:54.915926 | 2021-02-08T16:55:40 | 2021-02-08T16:55:40 | 337,134,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """news_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"nhutbp09@gmail.com"
] | nhutbp09@gmail.com |
f3418b1bafbe5247d0d8759ce026f9c09fb54930 | 08ce51d6103e3d4e86d0d243818a52d8e41dd7ff | /pynncml/single_cml_methods/rain_estimation/os_dynamic.py | 3c19f3664f24e6f994505b87ce0e52d99a3a189a | [
"MIT"
] | permissive | haihabi/PyNNcml | 733db92ce959b4bf64186ac2d3af46964ccc9331 | 91cc382bbc3560f83a1f8a06dae66cf7a140e173 | refs/heads/master | 2023-04-14T01:17:33.345572 | 2023-04-01T14:42:06 | 2023-04-01T14:42:06 | 191,879,595 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | import torch
from torch import nn
from pynncml.datasets.link_data import handle_attenuation_input
from pynncml.datasets import MetaData
from pynncml.single_cml_methods.baseline import DynamicBaseLine
from pynncml.single_cml_methods.power_law import PowerLawType, PowerLaw
class OneStepDynamic(nn.Module):
def __ini... | [
"haihabi1986@gmail.com"
] | haihabi1986@gmail.com |
0f9d85d824772483f89d569f697b7dab4f7c42b0 | 1ee11da93b61d4a9fe5ddd06fd38807765951893 | /project/DDPG.py | e2b4f2e6c3280cab640b822d42ae1b873d618301 | [] | no_license | ChandhiniG/Neural-Networks | 04a51f3b53b8406aff180df45126445726810cf2 | a0220fec7faac3e88f212480ca5a5734f3139b4b | refs/heads/master | 2023-03-02T09:38:24.047434 | 2020-03-18T02:19:35 | 2020-03-18T02:19:35 | 238,379,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,958 | py | """ Learn a policy using DDPG for the reach task"""
import numpy as np
import torch
import time
import torch.nn as nn
import os
import gym
import pybullet
import pybulletgym.envs
import matplotlib.pyplot as plt
import torch.nn.functional as F
import torch.optim as optim
import random
from copy import deepcopy
seed ... | [
"spkulgod@gmail.com"
] | spkulgod@gmail.com |
ffd620b2509bcbd7a1f2550193464d87115400ae | 1a0a5c88d0a2e01bb6823b0d6e78f74c989b9f07 | /fileopen.py | 629d9edb4723028d13109da0c818941a38cb1b43 | [] | no_license | bsy167508/pythonPractice | 1de38a224cda6c8c964a7092f86165d1380d75c5 | 4b01a1db888948e0670876c1dab2d6f9e7029db6 | refs/heads/master | 2021-01-22T09:17:59.667598 | 2016-10-04T22:47:52 | 2016-10-04T22:47:52 | 68,295,799 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from sys import argv
script, filename = argv
txt = open(filename)
print "here's your file %r:" % filename
print txt.read()
print "type the filename again:"
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
| [
"ahm.rimer@gmail.com"
] | ahm.rimer@gmail.com |
6895f46c13fb5030133dddaadddb166a9401dd1a | 7cefab137e113a15270720d641ebdbf49be4dd42 | /main/models.py | ba4dcb646b0ec49f094e1bbff4f052dd0f58bb1b | [] | no_license | Diegonmen/StreamSurfer | f32c4aff93009034daafe98574b1646d08a0480f | 55a5a8a9de49d6ebada66595ab9a24922186657e | refs/heads/master | 2023-02-22T05:45:26.561764 | 2021-01-23T22:00:47 | 2021-01-23T22:00:47 | 327,365,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
class Genero(models.Model):
nombre = models.CharField(max_length=30, verbose_name='Género')
def __str__(self):
return self.nombre
class Stream(models.Model):
plataforma = models.CharField(max_leng... | [
"diegonmen98@gmail.com"
] | diegonmen98@gmail.com |
cbff5af4455de4fa262827e50362ba40b7f966b5 | 03d959683d48b2b773b385bd8965849a23d29595 | /RPG simple menu corrections.py | 877187898af038b96f601744ee1744a4f39cef5b | [] | no_license | rbqi/RPG-simple-menu | 5df9a027b78aae9d3857ba0a8b402b05740363c6 | d51d38420a12b540e5c81bcf5f7246888ddf2c87 | refs/heads/main | 2023-08-22T05:11:09.904419 | 2021-10-22T17:40:15 | 2021-10-22T17:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | # Coarse: CS 30
# Period:3
# Date created: 20/09/21
# Date las modified: 22/10/21
# Name: Rabi Jasteen Juancito
# Description: RPG simple menu corrections
import sys
# User’s lists
characters = ["kuro", "adachi"]
actions = ["attack", "explore", "quit"]
directions = ["up", "down", "left", "right"]
# User is ask if th... | [
"noreply@github.com"
] | noreply@github.com |
05c12e3fd6c9908b0722d658826eb9bfec2ee22b | a262f744753561462624a1d0a3bf273ab6e55e38 | /tests/unit/proxy/roundtrip/test_neptune_proxy.py | 8ce773d9db06ccfe2deb156614ba2272a4cd099a | [
"Apache-2.0"
] | permissive | Wonong/amundsenmetadatalibrary | c7f9c49cb762766fa7afe9c6c784f88d2444ed92 | cc3768fb3ae055f0f84958ee5c08560e9c63ffc4 | refs/heads/master | 2023-01-06T23:38:04.693566 | 2020-11-02T11:37:12 | 2020-11-02T11:37:12 | 298,180,514 | 0 | 0 | Apache-2.0 | 2020-09-24T05:46:27 | 2020-09-24T05:46:26 | null | UTF-8 | Python | false | false | 3,188 | py | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
import gremlin_python.driver.protocol
import json
from typing import Any, Mapping
import unittest
from metadata_service.proxy.neptune_proxy import NeptuneGremlinProxy
from amundsen_gremlin.gremlin_model import VertexTypes
from amu... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.