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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5398a563c0de1db0f5989219d0edd118e020b7df | c1e4c88f57baf3b316fcf9379c318347fea63c33 | /working files/win64/setup.py | b17bed60bad4a1ae1e8abcb40dd7002092b436dd | [] | no_license | finmonster-research/midasmlpy | 7bee72e23f964f173a7876cd0355276966349e7d | 80c1e69eb5e6e3667afe899228df64f0c9e13bb4 | refs/heads/master | 2023-02-07T08:07:20.049709 | 2020-12-23T15:25:20 | 2020-12-23T15:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from setuptools import Extension,setup
from Cython.Build import cythonize
import numpy as np
setup(
ext_modules=cythonize(Extension(
name="midasml2",
sources=[
'pyx/midasml2.pyx',
'src/wrapper1.cpp',
'src/wrapper2.cpp',
'src/fit_sgl.cpp',
'... | [
"jonas.striaukas@gmail.com"
] | jonas.striaukas@gmail.com |
c85b350ed4a297e47599a3bc232f94b2306625ad | 03991a66fcea0d6cfc6055210ca99dd17b2e9e51 | /app/seeds/__init__.py | 4e5106d555a2bc5ca9118f6f9cce79e1e0ebc34f | [] | no_license | LifeJunkieRaj/FullstackSoloProjectGuruud | 5830e59741ecd499daf2e9669679222c47ab0f13 | 8d7f4a14d895874239a0e7c53bc1c72cec461848 | refs/heads/main | 2023-06-12T04:42:30.642473 | 2021-07-06T13:30:54 | 2021-07-06T13:30:54 | 352,735,156 | 0 | 0 | null | 2021-05-29T12:27:07 | 2021-03-29T17:52:28 | Python | UTF-8 | Python | false | false | 930 | py | from flask.cli import AppGroup
from .users import seed_users, undo_users, seed_second_user
from .ask_a_guru import seed_ask_a_guru, undo_ask_a_guru
from .categories import seed_categories, undo_categories
from .responses import seed_responses, undo_responses
from .comments import seed_comments, undo_comments
from .vote... | [
"quadruplestak@gmail.com"
] | quadruplestak@gmail.com |
3f917518c79491dab54ba311e1e3639b00858968 | 0b1199679245d8d39fb41b3bd1b86405d8e6f281 | /locallibrary/catalog/migrations/0004_alter_bookinstance_options.py | b6f508481c52dbdf144947e2e3c606a171b750f0 | [
"MIT"
] | permissive | waltermaina/local-library-website | 68460ac1dbc88414e9772ac463f83faa81201a32 | ac0f6d9c6cd79f891d196c707327717282fcc9cb | refs/heads/main | 2023-07-13T18:08:41.942090 | 2021-08-26T15:16:09 | 2021-08-26T15:16:09 | 398,514,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Generated by Django 3.2.6 on 2021-08-26 14:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_bookinstance_borrower'),
]
operations = [
migrations.AlterModelOptions(
name='bookinstance',
options={'order... | [
"waltermaina@yahoo.com"
] | waltermaina@yahoo.com |
ca62342c43c23dfc47000c1aae015fc88579da3b | f0194c40b3e5c8b9e06eb1d70af862b6e465c9ef | /448-Find All Numbers Disappeared in an Array.py | 616ae2c65c2c73616b35eff000b90511868fd712 | [] | no_license | ElijahYG/Leetcode_Python | 842ae9db71e7f70f7398aeec427ba51706fc2b26 | 79148047b27b19f1b581dd350fb9de849877bf73 | refs/heads/master | 2021-01-11T17:59:45.779227 | 2017-03-21T16:07:18 | 2017-03-21T16:07:18 | 79,895,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | '''
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Find all the elements of [1, n] inclusive that do not appear in this array.
Could you do it without extra space and in O(n) runtime? You may assume the returned list does not count as extra space.... | [
"627471266@qq.com"
] | 627471266@qq.com |
21d778e71520d07497ba9ff44ddf5c37293cb89b | 22b6b1d4089c85164519507152828126967194a5 | /videoanalyst/evaluation/vot_benchmark/pysot/datasets/vot.py | 6765ad9d8353c0aeb3e46b9658897de697af4763 | [] | no_license | Zacks-Zhang/SiamTrans | 6c761a3d91df8454d894c7024a935adef300a90d | 263bff18cca05d1326e41ece0915f025951dea9d | refs/heads/main | 2023-08-02T07:23:51.527593 | 2021-08-26T03:14:41 | 2021-08-26T03:14:41 | 398,796,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,775 | py | import os
from glob import glob
import cv2
import numpy as np
from PIL import Image
from loguru import logger
from tqdm import tqdm
from ...benchmark_helper import get_json
from .dataset import Dataset
from .video import Video
class VOTVideo(Video):
"""
Args:
name: video name
root: dataset r... | [
"ggg1000111@gmail.com"
] | ggg1000111@gmail.com |
b476476e5bf5569b7c3e403e153af7d0eea3ebe0 | b27e687b8666573702f5970301558718d02f7d4a | /retrain-models/utils/silence_removal.py | 6e0dc0e36dce83efd5c15ab4755d1e2f2ab1a5c8 | [] | no_license | hexoance/LPI_PROJ | 270cda80c68b00b3ae167034ec8b4a614c3a1854 | 26ec62ae84948d48a56df69e5f38e17b62f1bc2b | refs/heads/master | 2023-05-31T00:27:29.453527 | 2021-06-15T21:12:10 | 2021-06-15T21:12:10 | 345,213,794 | 2 | 0 | null | 2021-05-10T23:24:02 | 2021-03-06T23:03:21 | Python | UTF-8 | Python | false | false | 1,149 | py | from pydub import AudioSegment
# Iterate over chunks until you find the first one with sound, where sound is a pydub.AudioSegment
def detect_leading_silence(sound):
silence_threshold = -50.0 # dB
chunk_size = 10 # ms
trim_ms = 0 # ms
while sound[trim_ms:trim_ms+chunk_size].dBFS < silence_threshold... | [
"38148@ufp.edu.pt"
] | 38148@ufp.edu.pt |
ea3e3e20813dd7c814e974b5e7d3ee59754282cd | 80c315a21e1b1edeab236a6f19ec06cdfc81873d | /scripts/download_mggg.py | 639054e3239bf0cb2579796c344a17b9ed819a88 | [
"MIT"
] | permissive | mcullan-redistricting/redistricting-postgis | 0bf99787decf66d19a6d41cf26f3896c4da5f62d | 7adef1c1e2060122004ad050eea3b1e89565ef45 | refs/heads/master | 2022-04-06T03:19:52.730698 | 2020-02-17T11:11:16 | 2020-02-17T11:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | from io import BytesIO
from bs4 import BeautifulSoup
import requests
import os
import pandas as pd
from constants import STATES
from zipfile import ZipFile
data_path = os.environ.get('DATA_PATH', '../data')
def download_mggg_state_zip(state_abbreviation, filepath, overwrite = False):
url = f'https://github.com/... | [
"mjcullan@gmail.com"
] | mjcullan@gmail.com |
310dcb908e8a2335caf82c31f7477f87ba3f3bbc | 3f40317a3ec5a6347402bfe4a010a2dbc727f519 | /applications/stm32-nucleo743/blinky/wscript | db14be6fcdf089d3b32a9502b931f80b593da11a | [
"BSD-2-Clause"
] | permissive | trigrass2/rtems-demo | 0af45709f5889aa5e8526b0c7240ce07752b81aa | cdd6c760ab5e026efb3fb940e3097599241ec656 | refs/heads/master | 2023-04-09T16:46:42.102875 | 2021-04-19T15:24:39 | 2021-04-19T15:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | #
# LED blink Waf script
#
from __future__ import print_function
import sys
sys.path.append('../../..')
rtems_version = "6"
try:
# from ...rtems_waf import rtems as rtems
import rtems_waf.rtems as rtems
except ImportError:
print('error: no rtems_waf git submodule')
import sys
sys.exit(1)
def init(ctx):
rtems.... | [
"robin.mueller.m@gmail.com"
] | robin.mueller.m@gmail.com | |
77dddd35f973d46c1f2015c164c3cd6218db3ecc | 8b37017853acfe108d0a06bc946f4f4e6ed8fe15 | /apps/gas_app/views.py | 47f14353f6e9a123babc5fe30569c42e956ef3a3 | [] | no_license | mkemper31/gas_tracker | e7b313d2c554b45d785c2390fa08dd42a5e1a24f | 40d50b63cac82cbae703d8d7eee81413e19e667b | refs/heads/master | 2020-06-23T17:45:48.978787 | 2019-07-28T03:38:52 | 2019-07-28T03:38:52 | 198,703,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,782 | py | """
Define functions for each URL route
"""
from datetime import datetime
from django.shortcuts import render, redirect, reverse
from django.contrib import messages
from django.db.models import Sum, F
from apps.users.views import logged_in, cur_usr_id
from apps.users.models import User
from .models import Car, Entry
#... | [
"michaelkemper31@gmail.com"
] | michaelkemper31@gmail.com |
6c043811b2da3f373efa06bc8156705996b15ee9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_never.py | d9002c9003bf7b8c0007df237bda667fddc3bf4d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py |
#calss header
class _NEVER():
def __init__(self,):
self.name = "NEVER"
self.definitions = [u'not at any time or not on any occasion: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adverbs'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9f281fc9d686425e97b54cdc34eb570c1fe19b42 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02709/s208022099.py | 7c3413420f8ed9fc0b8a40a4b007da745e363f1f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from sys import stdin
def main():
n = int(stdin.readline())
a = list(map(int, stdin.readline().split()))
a2 = [[a[i], i] for i in range(n)]
a2.sort(reverse=True)
dp = [[0 for _ in range(n + 1)] for _ in range(n + 1)]
ans = 0
for i in range(n + 1):
for j in range(n + 1 - i):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d13ea298a8c4814de41ef50e5ca2ebf16d19711 | c9b5a2cd00764ee4a0b889b5b602eb28fd08e989 | /python/238-Product of Array Except Self.py | 600d5102cd52a0453255a55f78ed445ca39932d5 | [] | no_license | cwza/leetcode | 39799a6730185fa06913e3beebebd3e7b2e5d31a | 72136e3487d239f5b37e2d6393e034262a6bf599 | refs/heads/master | 2023-04-05T16:19:08.243139 | 2021-04-22T04:46:45 | 2021-04-22T04:46:45 | 344,026,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from typing import List
class Solution:
# def productExceptSelf(self, nums: List[int]) -> List[int]:
# "Precompute L, R product, Time: O(n), Space: O(n)"
# n = len(nums)
# # L[i]: product of nums[0, i-1]
# L = [1]*n
# for i in range(1, n):
# L[i] = L[i-1] * nums[... | [
"cwz0205a@gmail.com"
] | cwz0205a@gmail.com |
9643919ae1a5dc615ce744d74202bb1f561257c6 | 01e4b8866f86791767013fb59e2eb02a73c1c923 | /blog/migrations/0035_auto_20210504_2141.py | 420b68338a37e00e4884c2098052f03fb3a712a2 | [] | no_license | shiv958277/Blog-Website | c4feb6cbdca1eefbf20de9d4dc6f32fa9f8e2204 | 57dd54b37d7ecc9485eb9b760ab9566e63683d62 | refs/heads/master | 2023-05-04T04:13:17.223621 | 2021-05-29T11:06:38 | 2021-05-29T11:06:38 | 366,366,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # Generated by Django 3.0.8 on 2021-05-04 16:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0034_auto_20210504_2132'),
]
operations = [
migrations.AddField(
model_name='post',
name='dislikes',
... | [
"vshiv1479@gmail.com"
] | vshiv1479@gmail.com |
239de711038d222c388248ee584d39770975bd23 | d53bc632503254ca0d5099fe457c02c07212a131 | /middleware1/testApp/middleware.py | acbf1c0c7c41b9e5d9f591e64615887737e2f158 | [] | no_license | srikar1993/django | ba8428f6e1162cc40f2d034126e7baf29eb62edc | 2199d5d94accc7bce5b3fac4a4b7b1444e39b35f | refs/heads/master | 2023-07-14T21:10:52.654992 | 2021-08-26T06:37:04 | 2021-08-26T06:37:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | from django.http import HttpResponse
class ExecutionFlowMiddleware(object):
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
# Pre processing of request
print('This line is printed at pre-processing of request...')
# Forwarding... | [
"32321399+srikar.madhavapeddy@users.noreply.github.com"
] | 32321399+srikar.madhavapeddy@users.noreply.github.com |
12d4e303ec37dc162f5cd4b655c882bf2ae8429b | 0b77f11bfb68d465e99fdfcea8bef63013409df8 | /reports/views.py | e7046593d76822fccfcdfe0b0bab740325b0bb42 | [] | no_license | dbsiavichay/furb | dea1de7d3085bd41a668a6581a4997ff50a58afe | 36dea81c23d614bceaf35b38a5861a2ca095ea98 | refs/heads/master | 2020-06-28T06:05:42.313533 | 2019-03-14T15:37:20 | 2019-03-14T15:37:20 | 74,506,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,486 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse
from django.views.generic import ListView, TemplateView
from wildlife.models import Animal, Kind
from location.models import Parish
from django.conf import settings
from os.path import isfile, join
f... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
a23647b52f355989359adaa6265a6bedbe23c029 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_replacemsg_image.py | f4603def9e807083a0568dc573aa96c96a7409b3 | [
"MIT"
] | 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 | 9,507 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"sifang@cisco.com"
] | sifang@cisco.com |
008c2410559f5c90fba341e155a2373e0d7ed56d | f6d0779fa4dc7f2d15f6b6e8c5e8f58788d4ea68 | /cornerHarris/cornerHarris.py | 862fee2bfc19501f666ec81d502e1d6c9ff7c099 | [] | no_license | jjmmll0727/Graphics2 | b49a4bc1370fa0bf3c79fdc4a4c3068740ccdf20 | 6685affe24f91814c3a92ee775e7001e2150a20c | refs/heads/master | 2023-04-21T20:55:54.363003 | 2021-05-11T01:05:38 | 2021-05-11T01:05:38 | 262,746,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import cv2
import numpy as np
filename = 'chess2.jpg'
img = cv2.imread(filename)
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
gray = np.float32(gray)
dst = cv2.cornerHarris(gray,7,11,0.01)
# ksize 가 클수록 특징점으로 추출되는 값이 많아져
# k가 작을수록 더 많이 추출된다
# block size가 클수록 더 많이 추출된다
# --> 더 많이 추출된다는 의미는 정해진 임계값보다 큰 특징 가능성 값이 많다는 뜻 +... | [
"48875473+jjmmll0727@users.noreply.github.com"
] | 48875473+jjmmll0727@users.noreply.github.com |
01f55eaa1dce56a464b611a1c9d81f93a1b1b74f | 6f1f5bb1d495dcc9e3a3a8a9b333813c88d01704 | /lbfgsb.py | c0d4b907a8cb8e0e89379cf5b784e997547a93e5 | [] | no_license | mwhoffman/mogmdp | f9a7a954f7672bfb8c739c5519ddba5b336941a5 | d45958d2c874c67c13b056f530d84dcf5f158d7c | refs/heads/master | 2021-01-22T23:48:05.714520 | 2012-05-23T23:48:02 | 2012-05-23T23:48:02 | 4,611,353 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | ## Copyright (c) 2004 David M. Cooke <cookedm@physics.mcmaster.ca>
## Modifications by Travis Oliphant and Enthought, Inc. for inclusion in SciPy
## Further modifications by M. Hoffman.
## Permission is hereby granted, free of charge, to any person obtaining a copy of
## this software and associated documentation file... | [
"hoffmanm@cs.ubc.ca"
] | hoffmanm@cs.ubc.ca |
7fb23836dea8df7c484419d39675673ff83ad1f1 | 2b3bed35a29bfd46d660e0c7ccad84416c76e5a2 | /python/Activity_8.py | a561a351665c5d8661db11834c9644e8b16a4d9d | [] | no_license | Sreevara-lab/sdet | 76a738dbeb91df6e2bff659ac6e8e2955517758e | e9bcfba1509b3cfa4ca64dd8c3846c9b0faefefd | refs/heads/main | 2023-03-13T08:47:51.836330 | 2021-02-28T13:51:54 | 2021-02-28T13:51:54 | 336,749,624 | 0 | 0 | null | 2021-02-07T09:33:34 | 2021-02-07T09:33:34 | null | UTF-8 | Python | false | false | 199 | py | numList = [10, 20, 30, 40, 30]
print("Given list is ", numList)
firstElement = numList[0]
lastElement = numList[-1]
if (firstElement == lastElement):
print(True)
else:
print(False) | [
"noreply@github.com"
] | noreply@github.com |
81c308f3ade80af4440ab54a616b1b51236893cf | d7b3a0ae3b10f652459d9924771eda36a760b710 | /apps/account/models.py | 07ac8cdca386d8106c71241e9da8be62ba487351 | [] | no_license | pooyamoini/web-project-backend | f81c0439b286b8b863ddfd074001dc859c8c921e | 047edec3489bd2dbe9d3b9a06427941c1b055a12 | refs/heads/master | 2020-12-15T01:38:46.262769 | 2020-02-11T13:42:56 | 2020-02-11T13:42:56 | 234,946,642 | 1 | 0 | null | 2020-02-03T11:51:36 | 2020-01-19T18:37:01 | Python | UTF-8 | Python | false | false | 1,075 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.db import models
class AccountBasic(models.Model):
username = models.CharField(
max_length=15, null=False, primary_key=True, default="")
name = models.CharField(max_length=40, null=False, default="")
email ... | [
"pooyamoini2000@gmail.com"
] | pooyamoini2000@gmail.com |
e920f9b21c0903e46af65c35a389422f3de893e0 | bda65504f30285ee7c2edfef789f19d6b0a4da25 | /src/spell checker/statefulRNNCell.py | e1dea2b54407b88d29f6165e9c0d5a1ee3d3d1ac | [] | no_license | RNN-Test/RNN-Test | c18fa8c584095096d64218a6ad0dd64b5d11a534 | a7731d668d29e32c03a4c3bdd92a977145d6ac44 | refs/heads/master | 2022-04-07T18:14:21.561752 | 2022-03-29T12:43:06 | 2022-03-29T12:43:06 | 245,039,708 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import tensorflow as tf
class StatefulRNNCell(tf.nn.rnn_cell.RNNCell):
def __init__(self, inner_cell):
super(StatefulRNNCell, self).__init__()
self._inner_cell = inner_cell
@property
def state_size(self):
return self._inner_cell.state_size
@property
def output_size(self):... | [
"jianminnn@gmail.com"
] | jianminnn@gmail.com |
4c6c5d18a00823a83ef35c263e076351815ec55a | 98591a80b7881385dc15a7aee3298aed68efbc32 | /MODEL1302010025/model.py | 7776531980fb768cf4985182c7a6bdc908a3c3e7 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | biomodels/MODEL1302010025 | 9f49612839a3c29dd8034bf17a58a6caa3e1a8eb | 852113c7356661180c266a701e56dc8bc789a898 | refs/heads/master | 2020-12-24T14:44:47.764710 | 2014-10-16T05:57:03 | 2014-10-16T05:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'MODEL1302010025.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
b614b1cddfff224c044d48a2c548725eaceab370 | c6a053873e7936744f06fb739210c1d0e5bdaf3e | /Credicoop_dashboard/funciones_para_dashboard/pagina_inicio.py | 5d86496bfe0326d544cdf6c4fc5eb98e6badaebd | [] | no_license | sebasur90/Dashboard-Banco-Credicoop | e35c48ffc9aa8601ec4c18c4f33f9da06c2e2704 | 04f2445712d08bae688b3091b577f14de0a05a30 | refs/heads/main | 2023-07-08T02:43:31.764893 | 2021-08-12T00:19:38 | 2021-08-12T00:19:38 | 395,142,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,458 | py | from funciones_para_dashboard import clases
import dash_html_components as html
import pathlib
import dash_bootstrap_components as dbc
from datetime import datetime
mov = clases.Movimientos()
mov = mov.datos
def total_dias():
fecha_inicio = mov.sort_values(
by=['fecha']).reset_index(drop=Tr... | [
"noreply@github.com"
] | noreply@github.com |
f4b252b91213c7a7b29801bbe7e8c5abe9637ff7 | 954cf0306f6b321519e25527d60f3901c40bf9a8 | /test.py | bf5f4c4e948080e708e249e576396742a74df19e | [] | no_license | Lijer/self_rep_od | 8e1c12f2f3b46a7c37267d2e183e7687832ad7e4 | 14da7dc7f304f9e9d65f66dce0c934baf96acd30 | refs/heads/master | 2022-12-17T10:35:58.584909 | 2020-09-22T07:59:16 | 2020-09-22T07:59:16 | 295,289,057 | 0 | 0 | null | 2020-09-22T07:59:17 | 2020-09-14T03:02:45 | null | UTF-8 | Python | false | false | 3,750 | py | """
Author: Bill Wang
"""
import argparse
import numpy as np
import torch
from rdp_tree import RDPTree
from util import dataLoading, aucPerformance, tic_time
def arg_parse(verbose=True):
parser = argparse.ArgumentParser()
parser.add_argument('--data-path', dest='data_path', type=str, default="data/apascal... | [
"larryshaw0079@live.com"
] | larryshaw0079@live.com |
9e413afbb346364226c83f487e7d7eb9c8140cad | 051c349298163f3ffd623e50baeea4efa14c89dd | /Pacman/searchAgents.py | 187801b323c83b60fbf47053bfce0c82eb6f9f1f | [] | no_license | lewislin3/AI-Pacman | 23ea6d75f55f3f70c2df913aad2890e04deac480 | b95350b473e002eab8fc4656ba914305f69132ce | refs/heads/master | 2021-01-20T01:43:59.528273 | 2017-04-25T05:51:32 | 2017-04-25T05:51:32 | 89,322,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,030 | py | # searchAgents.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley... | [
"lewis0816@lewis0816deMacBook-Pro.local"
] | lewis0816@lewis0816deMacBook-Pro.local |
28d162b11564b44d04ca3f74ad9d17a49e06da3d | 3edbad578df95971280e9e4e1bf44abe7aa99426 | /scripts/balAPinc_multi_test.py | 36459a592a7244553ee73c6f5972f005517ef8b4 | [] | no_license | yogarshi/bisparse-dep | f7c655b4cf8af2cafad2b48e16bd5fbd7af783f6 | 21e4e3952afa311c3ee51067605e833bf39bde49 | refs/heads/master | 2021-03-24T10:18:40.542415 | 2018-04-23T20:16:25 | 2018-04-23T20:16:25 | 122,494,868 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,671 | py | __author__ = 'yogarshi'
import sys
import os
import math
import numpy as np
import argparse
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from mono_nnse_analysis import load_vectors, read_word_file, vector_reps, get_top_words
#from scipy.spatial.distance import cosine
"""
Implementation of the balAPin... | [
"shyamupa@gmail.com"
] | shyamupa@gmail.com |
6eb93f1d511aaafd0e657c97367dabfad01aad66 | ec2f55e8aa5f68988110c09cb73faad10db10b38 | /blockbuster/tests/computeFrameTimesFromVerboseOutput.py | 58ffedfd4bb61a84ad402b3f35ee3aec89090209 | [] | no_license | LLNL/blockbuster | 97270481ac2623eb06db57b5d03be4cc73ecddf2 | f9b8532150f2a75c99ffc05109d803d43f523550 | refs/heads/master | 2023-06-03T19:46:12.480437 | 2016-02-04T19:24:08 | 2016-02-04T19:24:08 | 32,134,210 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | #!/usr/bin/env python
import sys, re
startTime = endTime = None
previousEnd = None
frame=0
oldframe = 0
loop = 0
times={}
totalrendertime = 0.0
totalinterframe = 0.0
totaltime = 0.0
frames = 0
highframetime = 20
highinterframe = 10
if len(sys.argv) < 2:
print "Error: need a logfile name"
sys.exit(1)
files =... | [
"rcook@llnl.gov"
] | rcook@llnl.gov |
40125cfd752c5de08af72a21e324f89b505db21d | 2603f28e3dc17ae2409554ee6e1cbd315a28b732 | /ABC38/prob_c.py | f33438f7f66d9238ccdeb20f211ec805df4b4225 | [] | no_license | steinstadt/AtCoder | 69f172280e89f4249e673cae9beab9428e2a4369 | cd6c7f577fcf0cb4c57ff184afdc163f7501acf5 | refs/heads/master | 2020-12-23T12:03:29.124134 | 2020-11-22T10:47:40 | 2020-11-22T10:47:40 | 237,144,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Problem C - 単調増加
# input
N = int(input())
a_list = list(map(int, input().split()))
# initialization
ans = 0
# shakutori count
right = 0
for left in range(N):
while (right<N and a_list[right-1]<a_list[right]) or left==right:
right += 1
ans += right - left
if left==right:
right += 1
# ... | [
"steinstadt@keio.jp"
] | steinstadt@keio.jp |
05099d08b0153e6bc6ae06b6a81f2a9c98b9d394 | ab00a1f8a8576f21f5f7d75ef212773e4c750473 | /racetime/admin.py | 9bdb5a8cac06c4cebd2bd6525ffe86778bfd51f1 | [] | no_license | DragonAX/racetime | 90e3cefd11bcdf8c5b7e7c3f30324dc88b5f05d0 | f5fd26fe9709e1287ab6363052ec7bb81dfe7f0b | refs/heads/master | 2016-09-05T19:25:24.531558 | 2014-07-30T00:27:58 | 2014-07-30T00:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from mysite.racetime.models import *
from django.contrib import admin
admin.site.register(RaceEvent)
admin.site.register(Qualification)
admin.site.register(Final)
admin.site.register(Car)
admin.site.register(Transponder)
| [
"drewmatic@gmail.com"
] | drewmatic@gmail.com |
400b0ef45722986cf93750d299ddc0a2b9206853 | 693a129a17d879266a5ea933ec8e646d0d49db6c | /GroupContainer.py | 291b4560ae5e15ba1297019d1fa79e4dec933d94 | [] | no_license | coleTitze/PyRecipes | 28d41fffaeb2f2a78e2f3cdfb55e72b1d006544d | 497d4615f07978ac7189fd9925f5172d26dda135 | refs/heads/master | 2023-02-21T08:56:13.786443 | 2021-01-07T07:59:22 | 2021-01-07T07:59:22 | 327,200,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from Group import *
class GroupContainer:
def __init__(self):
self.__groupList = []
self.__groupNameList = []
generalGroup = Group("General")
self.addGroup(generalGroup)
def getGroupList(self):
return self.__groupList
def getGroupNameList(self):
return sel... | [
"cole.titze@outlook.com"
] | cole.titze@outlook.com |
e743e7599f4f34e6d2cb001d03d0ac09161cc32e | 8862e98bce6d938ed07ce670cf48af9d3f660362 | /sdk/coolsms.py | c07d975e6e973933005fa03c8021dcd7c385ee74 | [
"BSD-4.3TAHOE",
"BSD-3-Clause"
] | permissive | coolsms/python-sdk | c63ed29d88199623f38d9355c687957d66e770d1 | 9fb1b89ea5a498f05b63d658ed64feea4a0abbf8 | refs/heads/master | 2020-05-21T13:59:39.073644 | 2019-12-26T00:32:19 | 2019-12-26T00:32:19 | 38,469,744 | 8 | 9 | null | 2017-04-20T00:11:29 | 2015-07-03T03:23:31 | Python | UTF-8 | Python | false | false | 9,388 | py | # vi:set sw=4 ts=4 expandtab:
# -*- coding: utf8 -*-
import sys
import hmac
import mimetypes
import uuid
import json
import time
import platform
from hashlib import md5
from sdk.exceptions import CoolsmsException
from sdk.exceptions import CoolsmsSDKException
from sdk.exceptions import CoolsmsSystemException
from sdk... | [
"hosy@nurigo.net"
] | hosy@nurigo.net |
ecbf91b09ce1d8762e531cb46dfd5fb182eac4b6 | 99b9530aad90fb2f3d775e247480650ea146cb8a | /Python Fundamentals/dojo_ninja/djnj/migrations/0001_initial.py | d211e87f04b92419bd6b7dd3ea345eb330dbfea3 | [] | no_license | Marvin-Gerodias/PYTHON | 713c5908485a03c002d2c30d64e83d7b84d56cfb | 65f75c3180cf16171f7176555c53ab9a73f55c21 | refs/heads/main | 2023-04-25T16:53:17.043818 | 2021-05-02T13:15:25 | 2021-05-02T13:15:25 | 345,864,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | # Generated by Django 2.2 on 2020-11-04 16:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dojo',
fields=[
('id', models.AutoField(auto_... | [
"marvin.gabriel@gmail.com"
] | marvin.gabriel@gmail.com |
d006fc415b4fe1c51b8845692542c12bc729eb38 | 9e14489270b26edbdafe7c168eb3cfa014df36a4 | /tests/test_integration/test_smartcontract_event.py | 73b0eda2ffb4171a8142b4404517d5461f850de4 | [
"MIT"
] | permissive | aergoio/herapy | 7b62a04bf9becb0b701594f7bfcb5530c8d477ab | cf8a6ab0fd50c12b0f5f3ca85ff015eda5108863 | refs/heads/develop | 2023-08-10T09:40:47.529167 | 2020-03-25T06:58:30 | 2020-03-25T06:58:30 | 148,101,359 | 7 | 4 | MIT | 2023-09-01T15:00:48 | 2018-09-10T05:00:38 | Python | UTF-8 | Python | false | false | 6,108 | py | import aergo.herapy as herapy
def test_sc_event(aergo) -> None:
print("------ Payload -----------")
"""
function constructor(name)
contract.event("movie", "robocop", 1, "I'll be back")
end
function movie_event(name)
contract.event("movie", "arnold", 2, "It's mine")
contract.event("mo... | [
"noreply@github.com"
] | noreply@github.com |
53ef131a0b9babc5af8fa15c91c4fca6cc7de93c | 69c882c678103b182988fb60d3e898d569980f1c | /Day 4/day4prog4.py | 5f6224da0ba42f841f9b5541f0a3d0a63e87733b | [] | no_license | gittygupta/stcet-python | 44be9d91cdd6215879d9f04497214819228821be | e77456172746ee76b6e2a901ddb0c3dbe457f82a | refs/heads/master | 2022-03-05T11:37:08.720226 | 2019-12-01T00:56:03 | 2019-12-01T00:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | n=2
while n<1000:
flag=1
for i in range (2,n):
if n%i==0:
flag=0
if flag==1:
print(n)
n+=1
| [
"noreply@github.com"
] | noreply@github.com |
87066daea6b025f1f57bef0bebc6300a22a86811 | ccd94d87e16876ae1df22cc790043a516bb60735 | /Utility.py | e2cd8eb1626a442bbad302f0f6cfb59ff56914dc | [] | no_license | baixiaobest/modern_robotics | d1028300bb74086884a63ad87f50192189d72104 | 4578f87608c946442ee28cb365944dba7ff83be8 | refs/heads/master | 2021-03-24T21:03:24.600215 | 2020-04-07T01:15:30 | 2020-04-07T01:15:30 | 247,564,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,673 | py | import modern_robotics as mr
'''
M: Configuration of end effector.
Slist: A list of screw axes.
thetas: A list of theta vales.
'''
import numpy as np
def forward_kinematics_space(M, Slist, thetas):
T = np.array(M).copy().astype(np.float)
for i in range(len(thetas)-1, -1, -1):
T = mr.MatrixExp6(mr.VecT... | [
"baixiao@flyvoly.com"
] | baixiao@flyvoly.com |
c729e3879f9d4d6d10dc2a19f15ce87f3e3c45ad | 95ed61745cdbfd0382cf2227262f6d8db7907e58 | /parkingmanagement/apps/parkings/models.py | df18e31d76e1519e8e0682f36a98af5063da0701 | [
"Apache-2.0"
] | permissive | vivek-at-work/ridecell-code | 4a856028fbb8df4d7cd14e1f860575e17618c008 | 93965a1437197102eca6cf6313ba3dbb4c3f5c3c | refs/heads/main | 2022-12-31T22:16:16.902614 | 2020-10-21T05:42:02 | 2020-10-21T05:42:02 | 305,413,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | from django.contrib.auth import get_user_model
from django.contrib.gis.db import models as geo_models
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from parkings.exceptions import (NotAvailableToCancelError,
Parking... | [
"developer.viveksrivastava@gmail.com"
] | developer.viveksrivastava@gmail.com |
7d338e5a8b5dc51316b80554dabd0cadfd5c5310 | fc63292a3c809681b5befdcf222862865f7d8b48 | /src/scripts/references/plotingMotion.py | 96091bb18fd6bb55465214cf9a7e83d5e31ade04 | [] | no_license | fbeltranmillalen/SimulacionRobot | 94a979e2e69551f827c2bf5b882bcc88c7783284 | cb6eb08b24ed8e31ee0c0388899dd2f1f28b53d0 | refs/heads/master | 2020-06-19T06:00:56.524304 | 2019-08-19T21:36:11 | 2019-08-19T21:36:11 | 196,590,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | import math
import matplotlib.pyplot as plt
import numpy as np
pathFile = "D:/Fun things/datosMecanicaPython/fallingtennisball02.d"
time, position = np.loadtxt(pathFile, usecols=[0, 1], unpack=True)
velocity = []
acceleration = []
for i in range(len(position) - 1):
velocity.append((position[i+1] - position[i]) / (... | [
"fbeltranmillalen@gmail.com"
] | fbeltranmillalen@gmail.com |
8395dfb10cc1f95b066ed45e0d94250331d4a1be | d3ae798467818b0bc860e0cc6827037e0493e1b7 | /djstripe/safe_settings.py | 72e22957502ab0a01929b273e4357d5dc120ac3b | [] | no_license | 7WebPages/dj-stripe | 7abc94e7a0d90b9e073b5a1f6c76ccc1dff946cd | 7f7b97095f3899df7a92b19a9ac4d0ec88dd29c3 | refs/heads/master | 2021-01-15T21:49:04.639392 | 2015-08-03T04:52:42 | 2015-08-03T04:52:42 | 41,661,706 | 0 | 0 | null | 2015-08-31T07:23:51 | 2015-08-31T07:23:50 | null | UTF-8 | Python | false | false | 848 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
STRIPE_PUBLIC_KEY = settings.STRIPE_PUBLIC_KEY
INVOICE_FROM_EMAIL = getattr(
settings,
"DJSTRIPE_INVOICE_FROM_EMAIL",
"billing@example.com"
)
PASSWORD_INPUT_RENDER_VALUE = getattr(
settings, 'DJSTRIPE_PAS... | [
"shamkir@gmail.com"
] | shamkir@gmail.com |
f530eb6a522913bea01696af029e4d6e9f51c865 | cc103af2a562e636c0da80fb48c43178e5820bc5 | /tensor/bin/pbr | 2822693968f1d1487eb59f95eae35b658783b7a6 | [] | no_license | refcell/FractalTreeModels | 8cb9112c652fe4faeb0554ebd68f707191aceed6 | d7bcb1c9942f52f98c49526c6e4aee3359e7ed68 | refs/heads/master | 2023-07-01T23:18:24.073965 | 2019-04-28T05:54:05 | 2019-04-28T05:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/andreasbigger/Desktop/FractalTreeModels/tensor/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pbr.cmd.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"abigger87@gmail.com"
] | abigger87@gmail.com | |
d5d44ca8acb60603aaa8f3eeb48c46474f89f745 | ced798ec435423dcb06cec6bd998a19cba6ba4c8 | /flask项目/home/lghome/tasks/sms/tasks.py | 2182360a0c639803990a9aa0f2c120794b1453ce | [] | no_license | gengsini12345678/house-renting | bb58c2259c6f41e84affda30a6904aedc0be7b6e | d5c8ed9f5812774ede0a0385c13d25f90c1b17f6 | refs/heads/master | 2023-03-07T15:13:38.295423 | 2021-02-21T12:38:47 | 2021-02-21T12:38:47 | 340,880,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py |
from lghome.tasks.main import celery_app
from lghome.libs.ronglianyun.ccp_sms import CCP
@celery_app.task
def send_sms(mobile, datas, tid):
"""
发送短信的异步任务
:return:
"""
ccp = CCP()
ccp.send_message(mobile, datas, tid) | [
"1842837856@qq.com"
] | 1842837856@qq.com |
32406acc6653cdc29f431537283b1d45072e9a56 | e89b15c6d2592f9c905e277c746e71d5100f8d8c | /_tests/test_permute_columns.py | abb2d80690576788c51726bbb153b052e20309fe | [
"Apache-2.0"
] | permissive | allison-cy-wu/utility_functions | 92880e7427391621da1c1e29f0ebd28adb1289c0 | d2c6246c96b9cd5e8c01292dd38ab0d572971698 | refs/heads/master | 2021-07-24T05:29:16.985318 | 2020-07-22T19:47:17 | 2020-07-22T19:47:17 | 201,665,640 | 0 | 0 | Apache-2.0 | 2020-07-22T19:47:18 | 2019-08-10T18:02:58 | Python | UTF-8 | Python | false | false | 1,464 | py | import unittest
from unittest import TestCase
from utility_functions.stats_functions import permute_columns
from utility_functions.databricks_uf import has_column
from connect2Databricks.spark_init import spark_init
if 'spark' not in locals():
spark, sqlContext, setting = spark_init()
sc = spark.sparkContext
cla... | [
"allison.wu@thermofisher.com"
] | allison.wu@thermofisher.com |
2ffa3ff0ebf51a6f97b81338b4f1005ebcb68abd | 302d239446b5493a0349130e20c6164df5691698 | /node_modules/socket.io-client/node_modules/ws/build/config.gypi | c5412f841a5d806f243e18b929292cff0f752b9c | [
"MIT"
] | permissive | xgrommx/twitterbot | 7097d91c3c5d0efac9efea45784608326032835c | ab91d003f42f18677d5a716a1aacd71e0992c6c6 | refs/heads/master | 2021-01-10T18:40:32.450473 | 2013-11-27T01:26:04 | 2013-11-27T01:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"host_arch": "ia32",
"node_install_npm": "true",
"node_pref... | [
"stoyanov.gr@gmail.com"
] | stoyanov.gr@gmail.com |
316df07ff41eee45ba42637cebf15b17bbac0999 | 2cfe5a514f5ef0bb7a0803479fa280c6172953fc | /python3/koans/about_control_statements.py | a59c20fc13112a8d990109c909d4ed0633dc7d5d | [
"MIT"
] | permissive | sturivny/koans | 34d99e8c14a5e04528964ad0240dba26a684fb20 | 67f093a55a38b470eb85428c9c26f206037825fc | refs/heads/master | 2022-08-31T21:45:14.168819 | 2020-05-29T09:53:29 | 2020-05-29T09:53:29 | 263,155,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutControlStatements(Koan):
def test_if_then_else_statements(self):
if True:
result = 'true value'
else:
result = 'false value'
self.assertEqual('true value', result)
def test_if_t... | [
"sturivniy@gmail.com"
] | sturivniy@gmail.com |
ffdb5e9647923638ccfc7eb70b3d82fb1b8568ef | 0099d15ea2291bf0a5d5ce31fbb6315009841221 | /mysite/settings.py | 0c9c63524595a1ebc5f6436d081daae5981a74eb | [] | no_license | kartiklucky9n/my-first-blog | 0599621a44bbe1f8bf7cbbf94013777879d7bedf | 43d46c600abbf209be244a707404d6afe992cf1a | refs/heads/master | 2020-09-02T12:32:59.194048 | 2019-11-09T10:46:34 | 2019-11-09T10:46:34 | 219,213,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for mysite 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
# ... | [
"kartikrai.cse18@iitbhu.ac.in"
] | kartikrai.cse18@iitbhu.ac.in |
e4f4c72c30322bb1881acb9b3893855462f80aca | bc784ed4db8ce628a13fa6d1a6606078f53ae7dc | /coincollector_mazes/refine_maze.py | b58f9ffdd0085773105d19a561bc4bc0e220ee0a | [] | no_license | AdeeshKolluru/TextWorld-Neural-Algorithmic-Reasoning | 3daee4454567118dde3df526b2cdf8d206f4b445 | 6df5bc8f4e9df3a0e465dc9b042c0b1f83a2ff94 | refs/heads/master | 2023-06-24T17:16:16.503737 | 2021-07-21T11:17:10 | 2021-07-21T11:17:10 | 384,444,258 | 1 | 1 | null | 2021-07-20T21:46:17 | 2021-07-09T13:23:51 | Jupyter Notebook | UTF-8 | Python | false | false | 6,194 | py | import networkx as nx
import random
from coincollector_mazes.get_maze import get_maze, print_maze_info, add_shortest_path_info
def identify_dangling_rooms(G: nx.DiGraph) -> dict:
'''
Identifies rooms which have exactly one adjacent room.
Args:
G: A network-x DiGraph
Returns:
A dicti... | [
"d.platt@web.de"
] | d.platt@web.de |
339308d7c30e727a44370671bee1062867716538 | 8daf2ec35abfff6ccaedc5abbe9f25d03e4b5739 | /get-clients.py | a5b62a7ccc30cb8b144253834e85a7d477d615a8 | [] | no_license | 5antoshernandez/Housekeeping-Service-Estimate | 3cffcbec3d153b2683a245fddcc3a74357b31b7a | 9b097148c5cd465e1a618584dcfa054fe3327abe | refs/heads/master | 2020-04-13T21:01:14.136633 | 2019-01-19T23:38:54 | 2019-01-19T23:38:54 | 163,445,832 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import sqlite3
conn = sqlite3.connect('housekeeping.db')
curr = conn.cursor()
clientList = curr.execute('SELECT name FROM Clients')
for client in clientList:
print(client[0])
| [
"santos.d.hernandez@gmail.com"
] | santos.d.hernandez@gmail.com |
f5b323edda211f6994625eb9f7b4a4f34eaa4abc | 349c9829279a9e99d18d1572d7aa9a31ec4e048c | /Topics/Time module/Easy convert/main.py | 69179e696eb022d47901aed90bce5e6f36e9317e | [] | no_license | Helen-Sk-2020/JtBr_Arithmetic_Exam_Application | 2b0eb871a89f3e4370f21e11c0c83b1885a8f4ae | a7e1b4a4c09df159c98da1a151db55848ba4d8a4 | refs/heads/master | 2023-08-18T22:42:11.809697 | 2021-10-14T10:07:36 | 2021-10-14T10:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | import time
current_time = time.ctime(time.time())
print(current_time)
| [
"88376047+Helen-Sk-2020@users.noreply.github.com"
] | 88376047+Helen-Sk-2020@users.noreply.github.com |
1e79fc8bd4c805d93043855b0299b73d0aee8363 | fe53320ceb5d6b127f2514c4083d06e45aa5c4b1 | /01_Jump_to_python/5_APP/1_Class/2_clac_class.py | 16f37c63c8af4ddfadbfd5b4751b86627d816c36 | [] | no_license | sss6391/iot_python2019 | 938100cb6a767259324309f0854f33452e2fa248 | 872cc2b2bc6ead6e67b6d158f71ab9537a9a2789 | refs/heads/master | 2020-06-14T22:17:43.160582 | 2019-10-04T07:01:01 | 2019-10-04T07:01:01 | 195,142,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | class Calculator:
def __init__(self):
self.result = 0
def add(self, num):
self.result += num
return self.result
cal1 = Calculator()
cal2 = Calculator()
cal3 = Calculator()
print(cal1.add(3))
print(cal1.add(2))
print(cal2.add(3))
print(cal2.add(4))
print(cal3.add(3))
print(cal3.add(6... | [
"byungChan Son@test.com"
] | byungChan Son@test.com |
6ab3a3c94a7787898acdc75cf997647c58e352a1 | ef133e95e89e6e956421d47b25ea789557fe4620 | /In-Class-Activities/Python/Day 9/Dictionaries.py | 5a6b1c2e1d61a62f76420511280b8917df52a313 | [] | no_license | pgupta321/Data-Analytics-Course | 67c1c1dab8ed47c2f03869b0d1791d931da66fcc | 43da35a7fb94dbec7bf80ab942a1756c794d23ad | refs/heads/master | 2022-12-12T18:11:35.566436 | 2019-08-24T15:02:55 | 2019-08-24T15:02:55 | 192,400,471 | 0 | 0 | null | 2022-12-04T08:24:39 | 2019-06-17T18:43:38 | Jupyter Notebook | UTF-8 | Python | false | false | 110 | py | dictionary = {"name": "Toby",
"age": 7,
"gender": "male"}
print(dictionary['gender']) | [
"prernaguptausa@gmail.com"
] | prernaguptausa@gmail.com |
c73896b41397d024ffcb55baeaa9f677221d9361 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /eggs/Cheetah-2.2.2-py2.6-linux-x86_64-ucs4.egg/Cheetah/Tools/MondoReport.py | d0fada29f11cec17ce7def984ffabddd6bbf15ad | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 12,935 | py | """
@@TR: This code is pretty much unsupported.
MondoReport.py -- Batching module for Python and Cheetah.
Version 2001-Nov-18. Doesn't do much practical yet, but the companion
testMondoReport.py passes all its tests.
-Mike Orr (Iron)
TODO: BatchRecord.prev/next/prev_batches/next_batches/query, prev.query,
next.quer... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
3457d5a9fc1cb829b5810e28cb19b670b4a2c408 | 79f42fd0de70f0fea931af610faeca3205fd54d4 | /base_lib/ChartDirector/pythondemo_cgi/finance2.py | d21cccb185021c83f32e480286c061357e3302a6 | [
"IJG"
] | permissive | fanwen390922198/ceph_pressure_test | a900a6dc20473ae3ff1241188ed012d22de2eace | b6a5b6d324e935915090e791d9722d921f659b26 | refs/heads/main | 2021-08-27T16:26:57.500359 | 2021-06-02T05:18:39 | 2021-06-02T05:18:39 | 115,672,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | #!/usr/bin/python
from FinanceChart import *
# Create a finance chart demo containing 100 days of data
noOfDays = 100
# To compute moving averages starting from the first day, we need to get extra data points before
# the first day
extraDays = 30
# In this exammple, we use a random number generator utility to simula... | [
"fanwen@sscc.com"
] | fanwen@sscc.com |
b2ff512a0df75117ebd57c2d358a5b6aadc8575c | d55df3ef17af53557c3492eb3c88457b0317e2d4 | /88.两个大数的总和.py | f107635a6d1aa650a9e5e5b8ac4d029f8dd2dcc6 | [] | no_license | maryyang1234/hello-world | 3b5e1aa0149089ccf171b0555a11b9f8b1c2575f | 055ba2ee4f373b4abed1bf5d03860fd2e2d3b3f5 | refs/heads/master | 2020-05-03T23:28:34.367561 | 2019-05-26T10:02:26 | 2019-05-26T10:02:26 | 178,866,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
def sumofTwo(str1,str2):
return int(str1)+int(str2)
str1 ="7777555511111111"
str2 ="3332222221111"
print(sumofTwo(str1, str2))
| [
"noreply@github.com"
] | noreply@github.com |
a36d8c6e12a0ca906a9ff8760fe9ccd1862fb318 | cbf8deaf49aa264b9dfd1d5451d5ea89c579d10f | /remind_parse.py | cf18f81bbaf9703199538811b2e09053934d990c | [
"MIT"
] | permissive | crazyhubox/ChaoXin | fc770afb9e882355cc43152c8f08c77df7efd44c | 8885d85081f79a5a2338958a308a76b3f64595f8 | refs/heads/main | 2023-05-05T07:51:29.400076 | 2021-05-13T01:21:53 | 2021-05-13T01:21:53 | 365,950,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | from deadline.tasks import get_works
from deadline import get_score_from_time
from sign import get_params
from Login import refresh_cookies, login_cookies
from redis import Redis
from datetime import datetime
from time import sleep
from Logger import Logger,Handler
COURSES = [
('/visit/stucoursemiddle?courseid=21... | [
"tomjack@xiaoxiao.local"
] | tomjack@xiaoxiao.local |
670d093c5b40381c943145d32272491af454d9ac | 61812e6e652746f83c753daf8a73a2b1bb17ce96 | /profiles_api/models.py | d04b7e5a960efbda0bcc2388fa50ded165e5bf26 | [
"MIT"
] | permissive | walidkm/profiles-rest-api | c6e56390046a9745788f2b417c85cbca29b2d435 | 1c71495c4877ee7e418002ba7d957e02e3dedea7 | refs/heads/master | 2021-09-28T22:40:59.561051 | 2020-04-26T16:19:48 | 2020-04-26T16:19:48 | 246,568,554 | 0 | 0 | MIT | 2021-09-22T18:43:40 | 2020-03-11T12:44:53 | Python | UTF-8 | Python | false | false | 2,068 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.models import BaseUserManager
from django.conf import settings
class UserProfileManager(BaseUserManager):
"""manager for user profiles"""
def c... | [
"whatsoffman@gmail.com"
] | whatsoffman@gmail.com |
e10e22fe44f9af66f5922def28199ad6d3a04b8b | 300e6ec81e11f449979597eeda9c01f4677741a4 | /Project03/django_project/django_project/settings.py | e4777d48f1b1296911616a5c7690116e8b245410 | [] | no_license | tapsonte/CS1XA3 | c3ef9cc23755badfea4ded9bdfe6342315c6a7fd | 07e8c2e6593426cc2a0b76a03632ffe197be52d6 | refs/heads/master | 2023-05-03T17:38:57.496915 | 2019-09-23T04:02:46 | 2019-09-23T04:02:46 | 167,879,609 | 0 | 1 | null | 2023-04-21T20:31:42 | 2019-01-28T01:24:20 | Python | UTF-8 | Python | false | false | 3,340 | py | """
Django settings for django_project project.
Generated by 'django-admin startproject' using Django 2.2.
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 ... | [
"tapsonte@mcmaster.ca"
] | tapsonte@mcmaster.ca |
cac0a5abf2773fcc99ea11ffa95ee477d3e645bb | 3436a32fc9ddaaf600ccd29a9a52c78a580a15bc | /async_rx/observable/rx_list.py | 6d7a1f07a010b3a7c1b92d2e145d36bb8300a7ad | [
"MIT"
] | permissive | geronimo-iia/async-rx | 01c07a36bc1c06ff1bc9bcfad13dc0b06159b5d4 | 366a2fc5e4e717a0441f1ee8522ef6d5e857566c | refs/heads/master | 2021-08-04T02:20:19.816225 | 2021-07-27T23:42:11 | 2021-07-27T23:42:11 | 193,953,979 | 4 | 0 | NOASSERTION | 2021-07-27T23:37:15 | 2019-06-26T17:59:37 | Python | UTF-8 | Python | false | false | 3,295 | py | from collections import UserList
from typing import List, Optional, Union
import curio
from ..protocol import Observable, Observer, Subscription
__all__ = ["rx_list"]
class _RxList(UserList):
def __init__(self, initlist: Optional[Union[List, "_RxList"]] = None):
self._event = curio.UniversalEvent()
... | [
"jguibert@gmail.com"
] | jguibert@gmail.com |
25c724ee779ec1d3fdd96581b62e411fcba9cf2a | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/app/merchant/statistics/transactionStatisticsHandler.py | 92e2b4165084bb877b87f18d86d5ef2703436b58 | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,042 | py | # -*- coding: utf-8 -*-
from __future__ import division
from collections import defaultdict
from datetime import datetime, timedelta
from tornado import gen
from tornado.web import (
authenticated
)
from uline.handlers.baseHandlers import MchAdminHandler
from uline.public import log
from uline.public import common
... | [
"36821277@qq.com"
] | 36821277@qq.com |
2c8a23982a2e3e37be1a57598f6aa1a20e31fe0d | 45a2b3b08bdb343e645c7afde833b256fd25f6ef | /density_grid_formatter.py | ac843fb6284f2611a6e0d3c3bf2fcff5d50cdb5e | [] | no_license | iainkirkpatrick/SCIE441Code | ac49bb273921615716b3864c3dbc421e33cd7c11 | 3441d244fd80ffb1ff97aae2ff3e76f0f8b3506e | refs/heads/master | 2020-05-26T09:18:56.298002 | 2012-10-26T02:13:53 | 2012-10-26T02:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | '''Utility program to convert from a prepared ASCII density grid, exported from Arc, to a density grid suitable for CART'''
# Opening target ASCII grid, and creating output file x.dat with write permissions
dgrid = open('europop')
f = open('europop.dat', 'w')
s = ''
final = ''
previousValue = ''
for line in dgrid.rea... | [
"kirkpatrick.iain@gmail.com"
] | kirkpatrick.iain@gmail.com |
ce7373e5f2d9c30b4958356208d0130ebc49cf20 | aba65f60a0e8b97290b014740456ba53a46dc400 | /UniqueAI2021SummerCampMission-main/Bayes/Gaussian_Bayes.py | a0cb6822fd11f077c1a0fd48ba461e5f4d4c665b | [
"MIT"
] | permissive | MeteoricShower/UniqueAISummerCampMission--lxy | 749576697a789ebb4915026b305efbcc48916502 | 86fef35961e49efdbe03d5433e055cef58cd2617 | refs/heads/main | 2023-06-30T13:50:09.064513 | 2021-07-24T02:04:05 | 2021-07-24T02:04:05 | 384,844,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | # -*- coding=utf-8 -*-
# @Time :2021/6/17 11:45
# @Author :LiZeKai
# @Site :
# @File : Gaussian_Bayes.py
# @Software : PyCharm
"""
对于连续性数据, 使用GaussBayes
以乳腺癌数据集为例
"""
from collections import Counter
import numpy as np
import pandas as pd
import sklearn.model_selection as sml
import math
from numpy import ndar... | [
"noreply@github.com"
] | noreply@github.com |
49982cbda6186d5804468863bfc7a8d00d46ef96 | cac155c4a39b902213fe9efe39dbe761afb00a40 | /回溯法/leetcode/排列问题/leetcode_46_permute.py | 068c120de650f947bde4374dd12e8327b69c7a1c | [] | no_license | songyingxin/python-algorithm | 51c8d2fc785ba5bc5c3c98a17dce33cbced8cb99 | 4b1bebb7d8eb22516119acc921dfc69a72420722 | refs/heads/master | 2022-06-29T05:04:14.300542 | 2022-05-22T10:11:34 | 2022-05-22T10:11:34 | 164,998,626 | 331 | 72 | null | null | null | null | UTF-8 | Python | false | false | 696 | py |
# permute(nums[0...n-1]) = (取出一个数字) + permute(nums[0...n-1] - 这个数字)
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
def backtracking(nums, item):
if not nums:
result.append(item)
return
for index... | [
"18310523922@163.com"
] | 18310523922@163.com |
eafc50663b8684bf03e900b31157f7dcd8da4a7c | 4eb7cd8b80efd7c11c2871b45d7e0db0c6e0ba81 | /canteen/migrations/0004_auto_20190401_1209.py | d3a77c134acb9f9fcd4d288692cc10c04efb9fa7 | [] | no_license | AmanPatwa/Canteen-Management | 6d6a14126d08f4e061adaaa32c23ee75331c794a | 3f2f2cd160a61f87e2bb06d421f18b0e73648058 | refs/heads/master | 2020-05-04T06:10:06.496347 | 2019-04-02T04:49:25 | 2019-04-02T04:49:25 | 178,999,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.5 on 2019-04-01 06:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('canteen', '0003_auto_20190401_0005'),
]
operations = [
migrations.AlterField(
model_name='foodname',
name='image',
... | [
"amanpatwa999@gmail.com"
] | amanpatwa999@gmail.com |
a9ad672ca4dd8238fa346abbe949dbfff210252c | c3a90aee09b35388bb3a45dc332738486abb96ff | /listen.1/core/test.py | 7ae4af1834aba3ca16f36f18d646ae696bb0051d | [] | no_license | abobodyyj/code_practice | 0588fae5f51a2b71da4c6cc9c66b5d8dd5e9a536 | 04808f6769a95675e26250cbef0bab08600360f8 | refs/heads/master | 2021-05-13T19:57:59.324466 | 2018-01-10T04:23:05 | 2018-01-10T04:23:05 | 116,904,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
# Author:Dong Ye
import time,datetime
import os,sys
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_PATH)
from conf import config
#ATM用户交易事物:
def tran(tran_log,acc_data,tran_type,tran_amount,*args):
tran_tag = config.TRA... | [
"87006009@qq.com"
] | 87006009@qq.com |
e8260f00d26c3348cc6276437be51441e4c6c23d | 63556137b4e0d590b6cc542bc97bac1ba9fbb1b0 | /A06.Q005.py | 3a1f816a0899cedd2ec38b0f4c2496cb2164088e | [] | no_license | BrennoBernardoDeAraujo/ALGORITMOS-2019.2 | 3217109d1258b23ce4f8ef5f65091803c249415f | f9f5ff7f47991a8998329eaeb80b83dfbef8058e | refs/heads/master | 2020-07-10T07:57:29.052167 | 2019-11-29T04:23:11 | 2019-11-29T04:23:11 | 204,211,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | """
A06.Q005 - Leia uma matriz de ordem n, informada pelo usuário. Calcule a soma dos elementos que estão acima da diagonal principal."""
ordem = int(input('Digite a ordem da matriz: '))
def cria_matriz():
matriz = []
for i in range(ordem):
matriz.append([0]*ordem)
return matriz
... | [
"noreply@github.com"
] | noreply@github.com |
8bde39144d8acee2bd36c7ff65890ffec18fda58 | f5f781ef988d4fa2868c923597a132018eb14041 | /build/ROBOTIS-OP3-msgs/op3_offset_tuner_msgs/cmake/op3_offset_tuner_msgs-genmsg-context.py | 9e14c02a4f494952599bc5018c54c563cbb5ddc4 | [] | no_license | greenechang/christmann_ws_2019fira | 701374a30059ee63faf62cfc8dae8ea783f6c078 | a1ba2846fe1326e54366627d8812fa1bf90c70e1 | refs/heads/master | 2022-11-15T20:55:15.891128 | 2020-07-15T09:52:17 | 2020-07-15T09:52:17 | 279,816,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/robotis/christmann_ws/src/ROBOTIS-OP3-msgs/op3_offset_tuner_msgs/msg/JointOffsetData.msg;/home/robotis/christmann_ws/src/ROBOTIS-OP3-msgs/op3_offset_tuner_msgs/msg/JointOffsetPositionData.msg;/home/robotis/christmann_ws/src/ROBOTIS-OP3-msgs/op3_... | [
"60875012h@ntnu.edu.tw"
] | 60875012h@ntnu.edu.tw |
4872c9f499225b41609f8f51dd238b18e51fe7d8 | e079006d43a545baf2e63ef20dfefd6e778f42c2 | /Stark/urls.py | d2264c2278b9bed2c799e1f8f8b6ca59594e745d | [] | no_license | wailaifeike/myAdmin | 34a41f1f8c7b04defa92d1ed3872888ff5295445 | 8f79f8232767bae73d0fd0c326232ca33203c7e2 | refs/heads/master | 2020-04-07T11:10:29.225049 | 2018-11-20T01:55:46 | 2018-11-20T01:55:46 | 158,315,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.conf.urls import url,include
from Stark import views
urlpatterns = [
url(r'',views.acc_login)
] | [
"you@example.com"
] | you@example.com |
b251b03e61f2ffd2c4af1727b8d399b439ad87c4 | 1d20782060308f5e3830d0ae1312cd8a6d221b9b | /Lesson17.py | 31f18dfa7a4f4944dd951e4b9849750267107d2a | [] | no_license | KeetonMartin/HomemadeProgrammingIntro | dd4d61786ba2dfd83964e7acbb8f0e8fd39e2b7e | cc71f81b159264a7a4f9addf3ade1f6559d35c44 | refs/heads/master | 2022-07-04T07:11:23.783851 | 2020-05-07T02:53:37 | 2020-05-07T02:53:37 | 261,406,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | #Lesson 17
#Student Name:
"""
Today's lesson will be mostly work on anticipating the actions of a program.
"""
teams = ["Warriors", "76ers", "Celtics", "Lakers", "Clippers"]
print("Problem 1")
for i in range(0, len(teams)):
print(i)
print(teams[i])
#Group:
"""
0
Warriors
1
76ers
2
Celtics
3 Lakers
4 Clippe... | [
"klmartin@haverford.edu"
] | klmartin@haverford.edu |
5f7b311eb6289634e225a37a30b074d8e8d0c557 | da3753e6d93a260442502c89a0dbc1718fed58a1 | /apps/courses/adminx.py | 20d7421e319df3b219c4cfc56d669174a2470d9f | [] | no_license | stepbystep999/OnlineCourse | 64e44bf84cd630155bde68c7e8e846f6bba4ac66 | 769afec34a0f1d5d7a3875ce95967506eaec2b46 | refs/heads/master | 2021-05-08T05:18:14.614831 | 2017-11-02T23:13:19 | 2017-11-02T23:13:19 | 108,440,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | # -*- coding:utf-8 -*-
__author__ = 'stepbystep999'
__date__ = '2017/10/27 17:16'
import xadmin
from .models import Course, Lesson, Video, CourseResource
class CourseAdmin(object):
list_display = ['name', 'desc', 'detail', 'degree', 'learn_times', 'students', 'fav_nums', 'image', 'click_nums', 'add_time']
s... | [
"stepbystep6037@163.com"
] | stepbystep6037@163.com |
83298552792fcfd14d4e95bcb86b7696d0c29cb8 | e1c6b71ec2db74f5324d96094eb43beba1af78f6 | /source/controle/models.py | 2656fbbc5bce64d8074b6f9a68a3b0982540b5f4 | [] | no_license | ItaloAbreu/estacionamento_django_rest | 3a2675223535a75247b8bc802010ab0746f65972 | 39136858044737cd9968adf2909ec6eaffa62806 | refs/heads/master | 2021-09-25T09:38:24.762026 | 2020-03-21T21:49:43 | 2020-03-21T21:49:43 | 237,626,670 | 0 | 0 | null | 2021-09-22T18:30:31 | 2020-02-01T14:29:10 | Python | UTF-8 | Python | false | false | 1,300 | py | from django.db import models
from django.utils import timezone
from .validators import validate_plate
# Create your models here.
class Parking(models.Model):
plate = models.CharField(
max_length=8, validators=[validate_plate], verbose_name='Placa do Veículo')
reservation = models.CharField(
max_length=9, editab... | [
"italodw@gmail.com"
] | italodw@gmail.com |
c7a74b2f4908196f9e25fc6b23dbfddc606efd1e | 859bff7114adf87d741e9060f7464d4b3faf47a6 | /practice/dfs, bfs/dfs,bfs.py | 4bbbefc17c1f087e61c7d9ab0121b4089088f323 | [] | no_license | psy1088/Algorithm | 3047b517e8ba9d6ea460b2d3217db75c638e8207 | 15d82d564d32cd422716c6396d6f2cfa09b0c8cd | refs/heads/main | 2023-06-09T14:27:38.531995 | 2021-07-08T05:53:10 | 2021-07-08T05:53:10 | 318,183,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | # # p151 음료수 얼려먹기 DFS 풀이
# N, M = map(int, input().split()) # N=행의 수, M=열의 수
# graph = []
# for i in range(N):
# graph.append(list(map(int, input().split())))
#
#
# def dfs(row, col):
# # 그래프 범위 내에 있고, 칸막이 부분이 0이라면 => 1로 바꿔주고, 상하좌우 재귀탐색
# if 0 <= row < N and 0 <= col < M and graph[row][col] == 0:
# ... | [
"psy6190@gmail.com"
] | psy6190@gmail.com |
6f83f7dc50cbc2028bf2c6b1e578b94c2a593cb0 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Quantization/trend_Lag1Trend/cycle_12/ar_/test_artificial_1024_Quantization_Lag1Trend_12__100.py | 009dead988ececca3e907ac0f1dc2250b82392ff | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 275 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
91435fe0101353d14673c598094ce8d75d7b6780 | 26c019f7dadceaf773cd292d7364582bc2a278d2 | /user_app/tests/interactors/raw_inputs.py | 0b9d1fcc1eb22362432905c8446daa399ba983be | [] | no_license | DilLip-Chowdary-Codes/Backend_Mini_Projects | 289d5213a1c62d5b2ab26397e0d684632b139ad1 | f69dc6e9de4d621b782b703f2aa41cd126d8a58b | refs/heads/master | 2022-11-12T02:09:36.600636 | 2020-07-09T15:05:21 | 2020-07-09T15:05:21 | 272,417,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,638 | py | from user_app.dtos\
import TaskDetailsDto, ProjectDto,\
StateDto, UserDto, ProjectDetailsDto,\
TaskDto, TransitionDetailsDto, ChecklistDetailsDto,\
UpdateTransitionInputDto, ChecklistStatusDto
project_data = {
"name": "projectManagement",
"description": "it's a blaw blaw blaw blaw blaw b... | [
"CoderDil.DilLip@gmail.com"
] | CoderDil.DilLip@gmail.com |
8c2ff070a10e8771592850db1c845a53ec43629c | 17c01c40b1324553dd44aa34a47481add27853e5 | /main.py | 6dbd2ff83121298ecd0f5f687d6109020dbad318 | [
"MIT"
] | permissive | finn102/Python-Basics | 691f156a9e40115cb9d64cbd75667ca514759aed | d36301f7ca9123fa46f1cd75c55eca0a369c522d | refs/heads/master | 2020-04-14T15:38:12.151650 | 2019-01-03T06:53:36 | 2019-01-03T06:53:36 | 163,933,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | import os
import sys
print("OK") | [
"finn.campbell102@gmail.com"
] | finn.campbell102@gmail.com |
92476a49a95a1903850e0fff124bebc181d4136e | 32f61223ae8818f64922d69dc8d279428cd568e3 | /AlphaTwirl/AlphaTwirl/Loop/NullCollector.py | 212e63c87a8b257d129830e32131f74f42176eca | [
"BSD-3-Clause"
] | permissive | eshwen/cutflowirl | 959fdead7cc1f58e77e68074a9ee491c3259c6d6 | e20372dc3ce276c1db4e684b8e9f1e719b9e8e7d | refs/heads/master | 2020-04-05T11:20:49.000726 | 2017-11-23T16:15:10 | 2017-11-23T16:15:10 | 81,349,000 | 0 | 0 | null | 2017-11-23T16:15:11 | 2017-02-08T16:15:59 | Python | UTF-8 | Python | false | false | 382 | py | # Tai Sakuma <tai.sakuma@cern.ch>
##__________________________________________________________________||
class NullCollector(object):
def __repr__(self):
return '{}()'.format(self.__class__.__name__)
def addReader(self, datasetName, reader):
pass
def collect(self):
pass
##_______... | [
"eshwen.bhal@bristol.ac.uk"
] | eshwen.bhal@bristol.ac.uk |
fae7d19d653a4b12515cdbcd3f1631d31fd95118 | 247db0fd637c6eb357f4be4eb8440e80ab50c323 | /captureandupload.py | e7966b68e6d8816cb183704cb979243e189ce2d0 | [] | no_license | Akshitha296/Class102 | 40db773267a1773451da4360e353bdb10f89b5ad | 127f32396daf4bb1d68c63da9b45b92acd09fb2e | refs/heads/main | 2023-04-04T16:08:32.079047 | 2021-04-05T02:06:24 | 2021-04-05T02:06:24 | 354,690,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | import cv2
import time
import random
import dropbox
startTime = time.time()
def take_snapshot():
rand = random.randint(1, 1000000)
videoCaptureObject = cv2.VideoCapture(0)
result = True
while(result):
ret, frame = videoCaptureObject.read()
print(ret)
img_name = "i... | [
"noreply@github.com"
] | noreply@github.com |
42217171feee863b0a0ff726b49a6e2c87bbddba | 792018368b650d418933cde15944feec4d8f2e30 | /testdata/sss_sume_metadata.py | 1acb81f853e3464e25bbedc718b9111ec1fd040d | [] | no_license | sibanez12/perc-p4 | a67e0c287e1a9269ee0154e09e77810771540960 | aa8721523b171dbbd9d5b77cb42091298f270e04 | refs/heads/master | 2020-09-04T09:59:47.826784 | 2019-11-05T09:28:34 | 2019-11-05T09:28:34 | 219,704,657 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | #!/usr/bin/env python
#
# Copyright (c) 2017 Stephen Ibanez
# All rights reserved.
#
# This software was developed by Stanford University and the University of Cambridge Computer Laboratory
# under National Science Foundation under Grant No. CNS-0855268,
# the University of Cambridge Computer Laboratory under EPSRC I... | [
"sibanez@g.hmc.edu"
] | sibanez@g.hmc.edu |
91cbe9968b893032488177046dec7f4b360d210c | 81a7055d0c48ca1d1e79c0f8b3f15a1393b10037 | /src/ch03/sec22_category_name.py | ead4bce7211b9f475ebde60be141df3e767a9a9a | [] | no_license | struuuuggle/NLP100 | 4584c09e57f0ac1966af75588bb28cef7c1fcfe8 | e2452ccfc01acb4af520ae262c2840b608198cd5 | refs/heads/master | 2021-05-10T18:44:22.926741 | 2018-12-02T13:49:12 | 2018-12-02T13:49:12 | 118,134,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
import re
def category_name(filename):
category_name_regex = re.compile(r'(?<=\[\[Category:).*(?=\]\])')
with open(filename, 'r') as f:
categories = category_name_regex.findall(f.read())
result = '\n'.join(categories)
print(result)
return result
def mai... | [
"s15ti032@gmail.com"
] | s15ti032@gmail.com |
d2cdceb7e15f8dc3a77542ed4221fa9098f904fe | 8bf1228e9ec1211d3680b31b2e529d2035dc4bd6 | /actions/spice.py | fa7331533c08a5cac42f56ff5d9d968126fbec1c | [
"MIT"
] | permissive | thomasrstorey/recipesfordisaster | 061bf5e24b2fd3acc1b3b8ed665c849bf7ed19ba | 7f8282e056a0d6351b88672e817dceb7b399cbd9 | refs/heads/master | 2021-01-10T02:34:48.222821 | 2016-03-11T18:37:30 | 2016-03-11T18:37:30 | 49,224,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,373 | py | '''
add.py
Takes a list of input ingredient names. Imports each if not already present.
If already present, duplicates and rotates the ingredient.
Thomas Storey
2016
'''
import sys
import argparse
import bpy
import numpy as np
import os
import bmesh
from math import *
from mathutils import *
import random
def getO... | [
"storey.thomas@gmail.com"
] | storey.thomas@gmail.com |
ddb052d3917074619f88e5c250e223b616556c1b | 906c6abf6721303449a86c842a97193e86f1e88a | /sm/backup/NTCIR-Evaluation/src/GenerateXml.py | 30fa4354df107cf7417f11691a505ef644d9dd60 | [] | no_license | luochengleo/thuirwork | a5b5bedaa59dd94fde6c58d6c2ddba75fb99d374 | 2bf230949757401c15dee50249a0fa8aded595ad | refs/heads/master | 2020-04-13T12:49:03.752647 | 2014-08-31T08:37:52 | 2014-08-31T08:37:52 | 22,720,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | #coding=utf8
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import Element
from collections import defaultdict
import sys,csv
import codecs
from bs4 import BeautifulSoup
reload(sys)
sys.setdefaultencoding("utf8")
def loadcsv(filename):
return csv.reader(open(filename))
id2topic = dict()
for l in ... | [
"luochengleo@gmail.com"
] | luochengleo@gmail.com |
81735e35f02edc6bdacfd5c3832912d8cc1b5775 | 04abbae690a8e2a2dc9bfe54313d40703d06ec5b | /bookReview/api/views.py | 5b65f5dc6dead09ba6acee116c658f1de8331719 | [] | no_license | shivamsy/Django-Rest-Framework | b30a83d65cda38e01452e9be3a3f5a28498b7fd1 | 8cc3bb95a4b12e95bb28fed881b575660ac26bf9 | refs/heads/master | 2021-06-16T17:04:13.724630 | 2019-06-15T05:59:38 | 2019-06-15T05:59:38 | 177,078,803 | 0 | 0 | null | 2021-06-10T21:23:23 | 2019-03-22T05:46:02 | Python | UTF-8 | Python | false | false | 762 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from . import models
from . import serializers
# Create your vie... | [
"shivamsingh.y16@iiits.in"
] | shivamsingh.y16@iiits.in |
dd79f3465eec12b32953867a5708350596ad71c1 | 98d44c4e958bb4c6b053201e1918e785445c15ba | /bzt/modules/ab.py | 6064be3085acca80e3b7515a88a2207fd860f2b1 | [
"Apache-2.0"
] | permissive | mukteshkrmishra/taurus | 472309a829e525ba06d76c3eac2dff2219322af2 | cf891118b1f2cb3395e1b494a5344bfc3039b9af | refs/heads/master | 2021-01-20T17:47:39.104580 | 2016-04-17T13:43:42 | 2016-04-17T13:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,234 | py | """
Module holds all stuff regarding usage of Apache Benchmark
Copyright 2016 BlazeMeter Inc.
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 ... | [
"dmand@yandex.ru"
] | dmand@yandex.ru |
b330c7104d1f54f45acc711c95ac2a54cc1f740e | b83d59b6dcb847daad2265b04b75aeae3aded52e | /sad.py | d5a8861df40b30d89d742335b5583d67ae7f50db | [] | no_license | fmorisan/amaurascripts | 9ce23f8cdda86b98289c6c915ad53a1192b405f0 | 3c1e0470a3a2942525bfda9088b8f0b6ba6dae32 | refs/heads/master | 2021-01-10T11:42:50.755458 | 2015-10-12T17:40:49 | 2015-10-12T17:40:49 | 43,343,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A simple sample module with Skype smileys
"""
import os
print "dBot loves %s (hug)" % os.environ["SKYPE_FULLNAME"]
| [
"f.morisan@gmail.com"
] | f.morisan@gmail.com |
2c0baaccf388dbd4752cbe1e24dc4789986eda13 | c7ed6ec9c49f54b6463d76a3d71d59e548f2283b | /backend/src/manage.py | 72b64711362dd05b67802560f0eb9bc4a296a819 | [] | no_license | dakotarudzik/oldmak | a3855bf798debefe2bf2b555983f5908c6c346fd | 5a17342250349cbe6df4671e170e132be121f244 | refs/heads/master | 2022-06-09T06:21:42.871769 | 2020-05-08T00:21:51 | 2020-05-08T00:21:51 | 262,187,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'makenzie.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"dakotarudzik@gmail.com"
] | dakotarudzik@gmail.com |
0c387477bf0f53b6d72288128e556464fcafa9e5 | 49d28b05f29cbf11c6ee826b539cb90e4858daac | /examples/actors/time/actor.py | cd88266739e3f0a890523c94033fbe8d758d8411 | [
"MIT"
] | permissive | the01/python-alexander | 2814c8879ff488145ec6ed5bbf87b38129d7b603 | 4ca0d0715c943cc8310e577857b20f76504e8633 | refs/heads/master | 2023-06-24T09:46:37.879699 | 2019-04-17T00:00:02 | 2019-04-17T00:00:02 | 88,805,948 | 0 | 0 | MIT | 2018-01-05T07:36:01 | 2017-04-20T01:12:21 | Python | UTF-8 | Python | false | false | 1,518 | py | # -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
__author__ = "d01"
__email__ = "jungflor@gmail.com"
__copyright__ = "Copyright (C) 2017, Florian JUNG"
__license__ = "MIT"
__version__ = "0.1.1"
_... | [
"jungflor@gmail.com"
] | jungflor@gmail.com |
e13db41af418a2896e05121c9e2d591d24eaa882 | 9b6b3f4b30e9bd8a821d8df16bd71e62b9c6eb98 | /day2/data_structs/conversion_4.py | eedfdf0af2d6d721cb076e44d17b34e8eb93b27a | [] | no_license | shobhit-nigam/snape_mar | b7f2155cfcd83482230c339fe45f9ea851061318 | b7b33a767cc00d35a22e40c940b4331e4898c8d5 | refs/heads/main | 2023-03-25T05:44:21.244078 | 2021-03-26T05:27:28 | 2021-03-26T05:27:28 | 350,555,721 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # sorted
avengers = {'captain':'shield', 'ironman':'suit', 'hulk':['smash', 'science'], 'black widow':'energy'}
xmen = ['mystique', 'magneto', 'wolverine']
dc = ('wonder woman', 'batman', 'flash')
stra = "hello"
print(list(stra))
print(sorted(stra))
print(sorted(dc))
print(sorted(xmen))
print(sorted(av... | [
"noreply@github.com"
] | noreply@github.com |
066c37e93a1c10c1dba403835de6856cbfc5ff06 | 2cd20d64e85d88aef32ed5376ca5b0e1505bbda6 | /gama/__version__.py | 06097df6d52a5146c5d78381f22cbde1692271d9 | [
"Apache-2.0"
] | permissive | learsi1911/GAMA_pygmo_v12 | 996232936abe11cf7d5ec7017cddd646bbe1185b | f27838bfff9a5f1fcda9f3117ba8d1e0c640cf42 | refs/heads/master | 2023-08-18T21:27:22.368967 | 2021-10-19T08:14:03 | 2021-10-19T08:14:03 | 408,051,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | # format: YY.minor.micro
__version__ = "21.0.1.dev"
| [
"learsi1911@gmail.com"
] | learsi1911@gmail.com |
543bf879509906b36ef6b8b9af0b54794af05af1 | 5ae88a0a197a52086edffe9c031bc424634b55d4 | /AizuOnlineJudge/ITP1/7/B.py | aedc1507f808064d4233dc41b670f6f0eec59703 | [] | no_license | muck0120/contest | 1b1226f62e0fd4cf3bd483e40ad6559a6f5401cb | de3877822def9e0fe91d21fef0fecbf025bb1583 | refs/heads/master | 2022-07-17T17:31:50.934829 | 2020-05-18T09:55:30 | 2020-05-18T09:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | while True:
n, x = map(int, input().split())
if n == x == 0:
break
cnt = 0
for i in range(1, n + 1):
for j in range(i + 1, n + 1):
for k in range(j + 1, n + 1):
if i + j + k == x:
cnt += 1
print(cnt) | [
"mutsuki.s.0120@gmail.com"
] | mutsuki.s.0120@gmail.com |
6ee9319386bee693895d2bbf8679a879cc4eb14a | 9090a487059bf72163d6fe06db2c7c6653b82495 | /website/canary/admin.py | f9d7b7cfd205658233cb1b394058c843eced5337 | [] | no_license | frankcarey/canary-challenge | cb6d83cfa30324afcdc85e3408ae59d251378580 | 81cec6273d9eaba4edfedfa33a2b26149f08b06b | refs/heads/master | 2020-05-17T00:51:14.812757 | 2013-08-31T03:14:45 | 2013-08-31T03:14:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.contrib import admin
from canary.models import Customer, Device, Temperature
class TemperatureInline(admin.TabularInline):
model = Temperature
class DeviceInline(admin.TabularInline):
model = Device
class CustomerAdmin(admin.ModelAdmin):
inlines = [DeviceInline]
class DeviceAdmin(admin.ModelAdm... | [
"fcarey@gmail.com"
] | fcarey@gmail.com |
7c28b71c606eb42adee5d5964c7085ee7823649b | 680220a091061b5e74f55ade4e4826d27ce1c500 | /PythonTEST.pyw | b324c03811960cd573fba7ece092198db666c088 | [] | no_license | Proklinius897/Projet-BDD | 5094f06db52e00dde82daa3ce34ee0cc68b98119 | fe7f32dd5a6bacadb22fe03c54dd48ee0a3b393d | refs/heads/master | 2022-09-17T06:20:10.435090 | 2020-06-01T21:43:05 | 2020-06-01T21:43:05 | 268,081,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,868 | pyw | #############PROJET BBD2 MARC TRAVERSO ---- SIMON TANCEV ###########################
##############SI il y a une erreur veuilliez lire le readme.txt ou le rapport###############
#####################IL FAUT CONFIGURER votre root ou admin###########################""
##################Il faut aussi créer un user =user##... | [
"37267266+Proklinius897@users.noreply.github.com"
] | 37267266+Proklinius897@users.noreply.github.com |
2a8a2fea5ef6b27e5ad95edd93fb19dddb4b601a | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005222.py | 554f9ec93f4279524a546fb6081ae0f1d20c7b74 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
e11ebbf2f6b0f930bc6b9d4fbea99d7fa00e2abc | 87b4f84d9642994626aba66ec4dafdb1799c5f52 | /Console/consoleControler.py | c9401cfd13e30d499975bc1a380618c7d93e6963 | [] | no_license | leopaixaoneto/LeagueOfLegendsAutoBot | 5de4ef7f4c2ce058889557ad55f9bbba7eefe480 | bc6643752b0435cf35b52a14681619fe900e1f0d | refs/heads/master | 2023-08-24T15:18:19.696487 | 2021-10-22T22:41:16 | 2021-10-22T22:41:16 | 420,259,140 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | import pyfiglet
import datetime
from clint.arguments import Args
from clint.textui import puts, colored, indent
from Console.infoLine import InfoLine
import os
import ctypes
class ConsoleControler:
BOLD = '\033[1m'
ENDC = '\033[0m'
version = ""
infoVector = []
botTitle = " ... | [
"leopaixaoneto@gmail.com"
] | leopaixaoneto@gmail.com |
4bf7b0860054cb16f805325b58829ae3231735aa | 5a8bc4219384d11645f96baf54c7d50e65962ca3 | /main.py | e641694713e55e86b92f475468127839727ec541 | [] | no_license | ajaydev17/Ping-Pong | d21b1076b2c302a81e70fb9a53f5bd99fc8491cd | ec143c121f64c082e28d3d89515f457505febf9e | refs/heads/main | 2023-03-26T14:12:05.539624 | 2021-03-16T19:16:36 | 2021-03-16T19:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from turtle import Screen
from paddle import Paddle
from ball import Ball
from scoreboard import Scoreboard
import time
screen = Screen()
screen.title("Ping Pong")
screen.bgcolor("black")
screen.setup(width=800, height=600)
screen.tracer(0)
right_paddle = Paddle(350, 0)
left_paddle = Paddle(-350, 0)
ball = Ball()... | [
"rogerthat1729@gmail.com"
] | rogerthat1729@gmail.com |
4315721aacce6974be0f706628bdf91f2a2ca8ae | 0e1bcbc109e028849b3767c71a4fed4508488c33 | /youtube/migrations/0021_auto_20210121_1958.py | 0e8d5e8e5e1355255169d181de24906484bd5fa7 | [] | no_license | seunghyun1003/youtube | 7dbc631d14556c15a767429caac45f7fc706c44c | 59b88325693682a56f633bb68d7b4a78aaea0921 | refs/heads/main | 2023-03-24T03:39:04.300111 | 2021-03-24T06:48:32 | 2021-03-24T06:48:32 | 328,170,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.1.5 on 2021-01-21 10:58
from django.db import migrations
import private_storage.fields
import private_storage.storage.files
class Migration(migrations.Migration):
dependencies = [
('youtube', '0020_auto_20210121_1949'),
]
operations = [
migrations.AlterField(
... | [
"s961003-@naver.com"
] | s961003-@naver.com |
64d38f74718207d2ab1c1007df15e6ad86065323 | c89baaaad3ed687439449ac31ff73f36e94aaa24 | /exercises and examples/ch8_dicts/examples/nonzero_dinucleotide_dict.py | c2b49234a32f7356ad92a2facaa82ec531212a16 | [] | no_license | MovmntR/PythonForBiologists | 1b34d8e9e45d9a225acbbe7071f28f416eedf102 | 28c727ef5500927d974c8caf1671aef958eaf7e3 | refs/heads/master | 2023-02-07T12:02:26.102268 | 2020-12-30T13:19:21 | 2020-12-30T13:19:21 | 321,356,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | dna = "AATGATGAACGAC"
dinucleotides = ['AA','AT','AG','AC',
'TA','TT','TG','TC',
'GA','GT','GG','GC',
'CA','CT','CG','CT']
all_counts = {}
for dinucleotide in dinucleotides:
count = dna.count(dinucleotide)
if count > 0:
all_counts[dinucleotide] = count... | [
"mo@monicaui-MacBook-Air.local"
] | mo@monicaui-MacBook-Air.local |
86f7502496929d1b837e4f7b9179086b9df7597c | 2de9871c2bfdb181fa58fd2ac92774747b554cac | /trainmodel.py | 47288396a26ea62dedb0c556bb061be7c4d54e85 | [] | no_license | Evangelio99/PubBaybayinConvrtr75 | 816eb84d2d9e982527d027b4a5cdd23b62df2390 | c6e171d1501c911c622ccc90b83f92b90085ede4 | refs/heads/master | 2023-06-15T05:21:59.900783 | 2021-07-02T07:46:14 | 2021-07-02T07:46:14 | 384,072,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,567 | py | #contains all of the methods used, from creating the ML model and the functions for image processing of input
from PIL import Image
import cv2
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow.keras as tfk
from sklearn.preprocessing import OneHot... | [
"santosronen@gmail.com"
] | santosronen@gmail.com |
f20916f8c9c13c2a31dbcb18a07523b3185ae3d5 | aca8fc8c2a2de84e94f120e9ca8b12d152bc7cfa | /tests/test_fields_email.py | b9787d20611a2eea1172b40efdcc788bb790da58 | [] | no_license | habibutsu/yadm | de30b364edd40917b2b25457f76cec908f2ffd3d | b3b9f2fdd5987c718b9db600fd7881630bfef944 | refs/heads/master | 2022-12-14T22:14:57.190430 | 2019-03-20T15:52:13 | 2019-04-04T15:52:29 | 296,621,139 | 0 | 0 | null | 2020-09-18T12:55:49 | 2020-09-18T12:55:48 | null | UTF-8 | Python | false | false | 417 | py | import pytest
from yadm.documents import Document
from yadm.fields.email import EmailField, InvalidEmail
class Doc(Document):
e = EmailField()
def test_ok():
doc = Doc()
doc.e = 'E@mA.iL'
assert doc.e == 'e@ma.il'
@pytest.mark.parametrize('bad_email', ['EmA.iL', 'E@mA@iL', 'EmAiL@'])
def test_er... | [
"zzz.sochi@gmail.com"
] | zzz.sochi@gmail.com |
33fef298af439b6372958c4e1983f746e78a8c69 | fceca4480813b9025ffaa9a6f0cebfc056e8dc3a | /market/graphcalcu.py | 49810676a0a92b56f72e426e2e6f53852db51be7 | [] | no_license | Abel-Moremi/Financial-Analytics-Botswana | c80997ad4833f3256d2879ce279f099aa95602e8 | 1a709c121e3ecea420a9c0f310e7ade9c427752f | refs/heads/master | 2022-05-10T23:52:43.969357 | 2020-02-13T02:58:06 | 2020-02-13T02:58:06 | 176,990,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | import market.resource as res
import pandas as pd
import json
def barclays_df():
return data_to_df(pd.read_json(res.BarclaysDailyResource().export().json, dtype={
"date": str, "price": int}))
def bihl_df():
return data_to_df(pd.read_json(res.BihlDailyResource().export().json, dtype={
"date":... | [
"abelmoremiz@gmail.com"
] | abelmoremiz@gmail.com |
27b325ded01930a0aff78f6d3fb830b585851030 | 98ee0c5a481c37769ccf744ad1709569119507b1 | /notes/forms.py | 2ef34076979bb33b9eb8194ac6afe92d60267703 | [] | no_license | hussainsajib/django_notebook_server | 2b500040882041d312f381db2afef1e8817ad9f2 | 375edf5c752b7ed7b60e1a250ae41c7008fe635f | refs/heads/master | 2023-08-07T20:57:56.901180 | 2020-08-19T05:28:36 | 2020-08-19T05:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from django.forms import ModelForm, Textarea
from .models import Note
class NoteForm(ModelForm):
class Meta:
model = Note
fields = ['title', 'category', 'sub_category', 'priority', 'body', ]
widgets = {
'body': Textarea(attrs={'id': 'mytextarea', 'novalidate': 'true'}),
... | [
"m.hussainul.islam@gmail.com"
] | m.hussainul.islam@gmail.com |
a97f507d20a0aa26e54224831227833026e7eac6 | b7fab13642988c0e6535fb75ef6cb3548671d338 | /tools/ydk-py-master/cisco-ios-xr/ydk/models/cisco_ios_xr/openconfig_vlan.py | ef926795da3091805a43802d719560c409548218 | [
"Apache-2.0"
] | permissive | juancsosap/yangtraining | 6ad1b8cf89ecdebeef094e4238d1ee95f8eb0824 | 09d8bcc3827575a45cb8d5d27186042bf13ea451 | refs/heads/master | 2022-08-05T01:59:22.007845 | 2019-08-01T15:53:08 | 2019-08-01T15:53:08 | 200,079,665 | 0 | 1 | null | 2021-12-13T20:06:17 | 2019-08-01T15:54:15 | Python | UTF-8 | Python | false | false | 41,152 | py | """ openconfig_vlan
This module defines configuration and state variables for VLANs,
in addition to VLAN parameters associated with interfaces
"""
from ydk.entity_utils import get_relative_entity_path as _get_relative_entity_path
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YLis... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
af2cb68ec3da39fbb3dd682fd47add56b2af8dc8 | c5256bd3b675b65805eef504df508274d26f37a7 | /cirtorch/datasets/landmarks_downloader.py | e9b36e4c80b861290645719b1c6469f09c0c68ef | [] | no_license | peternara/Google-Landmarks-Retrieval-and-Recognition-2019-19h-Place-Solution | e5547fd91352c81fd6eb06db8080383abf8ababb | d0a1d42635779facca0c1c36f9e52e8cd76fb4e4 | refs/heads/master | 2023-03-16T05:32:36.136369 | 2019-08-14T05:30:49 | 2019-08-14T05:30:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | #!/usr/bin/python
# Note to Kagglers: This script will not run directly in Kaggle kernels. You
# need to download it and run it on your local machine.
# Downloads images from the Google Landmarks dataset using multiple threads.
# Images that already exist will not be downloaded again, so the script can
# resume a par... | [
"32595277+HuangXiaoquan127@users.noreply.github.com"
] | 32595277+HuangXiaoquan127@users.noreply.github.com |
bf0b68b1a9dcd5ee671f47a1a2abb6d4f54d7744 | d02b5fa06d6c37a977599019fb58b5d62760a6fa | /models/ctpn_tf.py | 223f409ba7b1157fb32ebdc423c3392a0ff50041 | [] | no_license | xinsuinizhuan/paddle.ctpn | ba4d45318ab1271e88316e251ee85b43ef0fbbf6 | 7bef0a8e4855cc88d0e56a4337a0eee9679ed3ff | refs/heads/main | 2023-07-05T22:13:27.970056 | 2021-08-16T12:11:34 | 2021-08-16T12:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | import paddle
import paddle.nn as nn
from models.vgg import vgg16
from models.vggmy import vgg16_bn
import paddle.nn.functional as F
class BasicConv(nn.Layer):
def __init__(self,
in_planes,
out_planes,
kernel_size,
stride=1,
paddi... | [
"15671628547@163.COM"
] | 15671628547@163.COM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.