blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84db0181e20181efd215f949334ac894d10b60d7 | b3854f84e3761c5a31347e6dbd4a5aba1ca625c3 | /parv/token.py | 1ecab8d0deddf6d89ab6ac85f3f46e50e98a4909 | [
"MIT"
] | permissive | GeeTransit/parv | 7c67cfa537f8260644582750fb2ce3a59141f4cd | 98e6ae16465ed02ac7beb4b2bba349c6daa3ac53 | refs/heads/master | 2020-08-29T07:07:28.439766 | 2019-10-30T20:46:20 | 2019-10-30T20:46:20 | 217,962,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | # parv/token.py
#
# Token for use in Parser, Creator, and Visitor
# PEP 585 (Consistent with original program style)
from __future__ import annotations
# --- Token class to store CST ---
class Token:
"""
Simple token that holds a name and its children tokens.
"""
def __init__(self, name: str, *item... | [
"geetransit@gmail.com"
] | geetransit@gmail.com |
322d5e489beb5d227dd5233036bb18093f1d2902 | c96ffce4aee1cb732ba93944ebf698b90602c57d | /src/test/make_data.py | 54dd3477fc13258e6e3d5fdc105b564c4f83a5f7 | [] | no_license | dnephin/Find-Similar-Documents | ae319419e8c02fdbcd2f285a14cc8c3317e9a3da | 229f7e22780376a4d2997003cb2e3cc250de8dd8 | refs/heads/master | 2021-01-01T17:48:10.730662 | 2011-05-11T05:03:47 | 2011-05-11T05:03:47 | 1,716,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,853 | py | # -*- coding: utf8 -*-
"""
Generate some bogus city data.
"""
import csv
import random
import sys
city = ['Abbotsford', 'Armstrong', 'Burnaby', 'Campbell River', 'Castlegar', 'Chilliwack', 'Colwood', 'Coquitlam', 'Courtenay', 'Cranbrook', 'Dawson Creek', 'Duncan', 'Enderby', 'Fernie', 'Fort St. John', 'Grand Forks', ... | [
"daniel@gmail.com"
] | daniel@gmail.com |
0cce5cd7fa23b3e6ee31892be317fe7e92f042ed | 33ec778311faef50182e48cd1d23389b0cb6f40a | /TEXT TO SPEECH/tts.py | fa61424d7a1626cc6ca5d7d761d57cad41c12b85 | [] | no_license | aayush2508/TEXT-TO-SPEECH | 063f17be335470437b2dbc66fde0391cbba1d050 | 92cfdcccb4bdbbfdd3f52307528f992168bfd8b7 | refs/heads/main | 2023-05-04T10:18:35.504817 | 2021-05-25T05:58:19 | 2021-05-25T05:58:19 | 370,580,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import tkinter as tk
import pyttsx3
engine = pyttsx3.init()
class Widget():
def __init__(self):
self.root = tk.Tk()
self.root.title('TTS')
self.root.resizable(0,0)
self.root.configure(background="blue")
self.label = tk.Label(self.root,bg="pink",fg="brown",font="Ar... | [
"noreply@github.com"
] | aayush2508.noreply@github.com |
3714e802f9b550e5cf890605b5b6484ea29ee6ef | 2fd32040076245a18c7de203dde182d01085247d | /DataStructures/Deque.py | 1ef763460ec787232df29e9fce72b56f7acd029c | [] | no_license | Zoxas/Test | d6c0e60915cef1be99b5571ffa2f9c4476c94a25 | 2098f42ccd16f2562fb70d669f92668a0790243a | refs/heads/master | 2021-01-17T14:25:44.751314 | 2019-08-01T07:51:23 | 2019-08-01T07:51:23 | 49,070,520 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | # -*- coding: utf-8 -*-
"""
Deque() creates a new deque that is empty. It needs no parameters and returns an empty deque.
addFront(item) adds a new item to the front of the deque. It needs the item and returns nothing.
addRear(item) adds a new item to the rear of the deque. It needs the item and returns nothing.
rem... | [
"tgbv41@gmil.com"
] | tgbv41@gmil.com |
aea5fc9607f3f9b87efbf7cf19f4f67fee7529db | 09db6c4ff70cca176f2fbc667e66266a31fa440e | /apps/projects/admin.py | b3fd575fb9582b782634ff4b82e90089d68cf6a2 | [
"MIT"
] | permissive | myhumankit/mytimetracker | e99c006edb06d5b10ce908049ded5bb8d3ffa55c | b9bdf5af2e7f85758d43f37b36c10884f0412d43 | refs/heads/master | 2023-04-29T23:50:27.606367 | 2019-11-19T14:51:57 | 2019-11-19T14:51:57 | 209,867,791 | 0 | 0 | MIT | 2023-04-21T20:38:20 | 2019-09-20T19:37:41 | Python | UTF-8 | Python | false | false | 4,008 | py | from django.contrib import admin
from mptt.admin import DraggableMPTTAdmin
from simple_history.admin import SimpleHistoryAdmin
from projects.models import Location, Project, Activity, Leave, Resource, Capacity
class LocationAdmin(SimpleHistoryAdmin):
list_display = ("title", "comment", "id")
class LeaveAdmin(Si... | [
"julien@lebunetel.com"
] | julien@lebunetel.com |
988751cd616e8344006aa9b0d81861a9967d3aa8 | 31323a4f117efee15b2d05e9e39178c5ffee8096 | /01c330d12e751276ca/scratch.py | 32c4a792dd70a14859b9745e639f380737dec2bb | [] | no_license | JonPenny/samples | 6475e4205a61455c96db5577b4ee89346a2cb2a7 | e6fbfee6d6e15a026b0ece4f56ef06ddd26f185b | refs/heads/master | 2022-07-03T16:59:10.339736 | 2020-05-14T21:54:10 | 2020-05-14T21:54:10 | 264,006,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | import datetime
import numpy as np
import pandas as pd
def futures_rollover_weights(start_date, expiry_dates, contracts, rollover_days=5):
"""This constructs a pandas DataFrame that contains weights (between 0.0 and 1.0)
of contract positions to hold in order to carry out a rollover of rollover_days
prior... | [
"jonpenny@Jons-MacBook-Pro.local"
] | jonpenny@Jons-MacBook-Pro.local |
5dfa0b16686ac344b47f96ef5e61a53a83fcf481 | 4b72a8cd9c439b2254b44bcc9e45ef72fb0e0bbd | /src/product/models.py | bc6a1d286ea8682047215dab22b40d87336b94be | [] | no_license | khkoyani/ecommerce | 4b144427bb0f077d900cdc5dce93b2dbc86248c9 | 28851b7b536487654b3f74ae9b02a287ff44e8c7 | refs/heads/master | 2023-04-27T15:55:18.284393 | 2019-08-13T06:32:25 | 2019-08-13T06:32:25 | 200,451,948 | 0 | 0 | null | 2023-04-21T20:35:39 | 2019-08-04T05:03:25 | JavaScript | UTF-8 | Python | false | false | 2,816 | py | from django.db import models
from django.urls import reverse
from django.utils.text import slugify
from django.http import Http404
from .utils import unique_slug_generator, upload_image_path
from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
from django.db.models import Q
from... | [
"khkoyani@gmail.com"
] | khkoyani@gmail.com |
6ff8f443778aed9542341c107724cf759d0887d1 | 63db3d61afa68328a5021c72bc5788863255ad92 | /app/tests/utils.py | d1434396e4d3b3d5c270ae4e4a0fc53a9a7160fd | [
"MIT"
] | permissive | madussault/FlaskyPress | f79999e3f8c1a1a820453f547c797e51f7b366b2 | 677bfbb3473a239c08d9e120e959d3e31c456964 | refs/heads/master | 2022-12-12T08:15:07.675667 | 2021-02-05T18:40:47 | 2021-02-05T18:40:47 | 249,275,387 | 0 | 0 | MIT | 2021-03-29T22:28:03 | 2020-03-22T21:26:19 | Python | UTF-8 | Python | false | false | 7,573 | py | """Contains helper functions for our tests.
"""
from app import db
from app.models import (Post, User, ContentWidget, CategoriesControls, Social,
SearchBarControls, WidgetOrder, Category)
from app.categories.utils import set_categories
def dummy_post(title='Dummy post', content="Dummy Content... | [
"admin@madussault.dev"
] | admin@madussault.dev |
3c21fd685a10be0c0910b3b61a7f8beb96e36b5d | ac0ca8de12e1b78f75de9cc1f4adf1d6bc45377a | /app/dao/config/GConfigDao.py | a014b0fae1f81cadc0c9d0bcc9247417fb669304 | [
"Apache-2.0"
] | permissive | xiaogui16/pity | ea72718b1f07e68ad523af4c4eee7bd258553b2d | 490d0ac32a212c17cb03e52db5c3759cca9be282 | refs/heads/main | 2023-07-07T06:07:23.617404 | 2021-08-07T12:44:49 | 2021-08-07T12:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | from datetime import datetime
from sqlalchemy import desc
from app.models import Session, update_model
from app.models.gconfig import GConfig
from app.models.schema.gconfig import GConfigForm
from app.utils.logger import Log
class GConfigDao(object):
log = Log("GConfigDao")
@staticmethod
def insert_gco... | [
"wuranxu@126.com"
] | wuranxu@126.com |
db6c1fcc7c2e9399cbd6deaa8ee2d112b0cb898c | 15afc6a3270d9b42cc84a788853ce46456be01f2 | /section_ii/project_b/example/example_15/mpl_squares.py | 45bc81e546238abb1e2d8a87e45e48bd12383f85 | [] | no_license | xieqing0428/python_helloworld | 161c90564638dc49e3a82a00607a762b36a39212 | e08f63616aabe609ff1ac53b8e0ab32eaf2a472b | refs/heads/master | 2020-04-16T11:01:37.918248 | 2019-02-14T07:19:09 | 2019-02-14T07:19:09 | 165,521,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding:utf-8 -*-
"""
@author: Alessa0
@file: example_15.py
@time: 2019-01-22 20:48
"""
import matplotlib.pyplot as plt
input_values = [1, 2, 3, 4, 5]
squares = [1, 4, 9, 16, 25]
plt.plot(input_values, squares, linewidth=5)
# 设置图表标题,并给坐标轴加上标签
plt.title("Square Numbers", fontsize=24)
plt.xlabel("Value", fontsi... | [
"849565690@qq.com"
] | 849565690@qq.com |
0eab21dc7c490173cd227e20a09375e40c6b4349 | 988fc913d87c32b7bae5da2e0d6fdb3227bee1d3 | /media.py | 8d14942e4b81ec29440a8b7b9d45fe1ef0001558 | [] | no_license | vikas12396/MovieWebsite | f3b20729ff7f27db12b41107db18dd83e854def0 | 4f116f4060caf2b59437b30693c1690a02871b9d | refs/heads/master | 2021-06-18T04:50:17.468191 | 2017-06-04T18:50:58 | 2017-06-04T18:50:58 | 93,333,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import webbrowser
class Movie():
def __init__(self,movie_title,movie_storyline,poster_image,trailer_youtube):
self.title=movie_title
self.storyline=movie_storyline
self.poster_image_url=poster_image
self.trailer_youtube_url=trailer_youtube
def show_trailer(self):
webbrow... | [
"rpsvikash96@gmail.com"
] | rpsvikash96@gmail.com |
64d2262538e35204ec52e784cd9fffe6542d9b9c | a844ccc676caaf75326acf33168d72e5c25c09a6 | /aoc2021/input_helpers.py | bb1c23105520a5163bc55c52cc3cd5e7e7b62784 | [] | no_license | rakitaj/daily-programmer | 65fc6f3e3fea153c5911eca40c3e90afd5fd341b | e226e63671116a2e0318816e92f04184b58f0f5e | refs/heads/master | 2023-05-15T04:44:03.961103 | 2021-12-24T00:52:35 | 2021-12-24T00:52:35 | 102,878,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from os.path import abspath, dirname
def puzzle_input_to_str(day: int, strip: bool = False) -> list[str]:
day_number = str(day).zfill(2)
dir_name = dirname(__file__)
file_path = abspath(f"{dir_name}/puzzleinput/day{day_number}.txt")
with open(file_path, encoding="utf8") as f:
lines = f.readlin... | [
"joshuarakita@gmail.com"
] | joshuarakita@gmail.com |
9ac0f02a82eef6628f4229af2b726135e8012d50 | 60b48df762a515a734cfbedd7ca101df43f04824 | /python/ray/data/impl/pipeline_executor.py | 8fdaed897bb30c088d238f2afa41bdc8ad830696 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | LuBingtan/ray | a02b13c4dceab2b0d54870fd3abae5c11bae916e | 298742d7241681ee1f307ec0dd3cd7e9713a3c7d | refs/heads/master | 2023-03-05T16:32:35.596725 | 2022-06-05T23:21:53 | 2022-06-05T23:21:53 | 223,334,544 | 0 | 1 | Apache-2.0 | 2023-03-04T08:56:53 | 2019-11-22T06:01:51 | Python | UTF-8 | Python | false | false | 5,793 | py | from typing import Any, Callable, List, Optional, TYPE_CHECKING
import time
import concurrent.futures
import logging
import ray
from ray.data.context import DatasetContext
from ray.data.dataset import Dataset, T
from ray.data.impl.progress_bar import ProgressBar
from ray.data.impl import progress_bar
logger = logging... | [
"noreply@github.com"
] | LuBingtan.noreply@github.com |
9456cc5b56eee40d4b5e6eae8d4d8f4ad7cdfe35 | e86c8d6c58a1e10c80f32ee1e1c795f8d2e3200e | /examples/sample.py | 19cab31360e694e3c25b1adee2a46c0293752b19 | [
"MIT"
] | permissive | akimach/tfgraphviz | 14532284c3e7ecd1e4bade391ec5955cfa2cec50 | e56a312f71b78e0ec7166c7f0ff84acb77d25766 | refs/heads/master | 2021-07-04T01:32:12.923008 | 2021-06-06T10:55:01 | 2021-06-06T10:55:01 | 82,122,043 | 52 | 15 | MIT | 2021-06-06T10:55:02 | 2017-02-16T00:43:50 | Python | UTF-8 | Python | false | false | 205 | py | #!/usr/bin/env python
import tensorflow as tf
import tfgraphviz as tfg
a = tf.constant(1, name="a")
b = tf.constant(2, name="b")
c = tf.add(a, b, name="add")
g = tfg.board(tf.get_default_graph())
g.view() | [
"kimura.akim.asa@gmail.com"
] | kimura.akim.asa@gmail.com |
920dfa794e9ee8d916bd99629982e8902848ab1c | bbea9b1f64284c9ca95d9f72f35e06aa39522c67 | /Scripts/ANN_AllAnalysis_ClimateModels_v4-RandomNoise-TestingDataSets.py | 9b15f07bb925579eb322c14b61bba9952efca5af | [
"MIT"
] | permissive | zmlabe/ModelBiasesANN | 1e70c150bd8897fa5fb822daf8ffad0ee581c5f1 | cece4a4b01ca1950f73c4d23fb379458778c221e | refs/heads/main | 2023-05-23T06:05:23.826345 | 2022-07-22T18:36:27 | 2022-07-22T18:36:27 | 339,145,668 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,029 | py | """
ANN for evaluating model biases, differences, and other thresholds using
explainable AI (then tests different data)
Reference : Barnes et al. [2020, JAMES]
Author : Zachary M. Labe
Date : 21 June 2021
Version : 4 - subsamples random weight class (#8), but tries different noise
"""
### Import packag... | [
"zmlabe@rams.colostate.edu"
] | zmlabe@rams.colostate.edu |
a4d17cf658398bf0e01dfc2b2d1025ac973d23a0 | 607825970795fc2dc762514d0c072bbb0146f1af | /BarcodeDetection/detect_barcode.py | 7e1dd0cbfa2606fd1f02e05799a5b79fadf2a093 | [] | no_license | Umesh27/OpenCV_Learning | 5098ef95ef21fc86d4b617c167c4fd0ea4322ed6 | adac07f8228bf0b5ba754423a5a2cfbcf4693187 | refs/heads/master | 2020-04-11T08:20:35.007033 | 2019-01-10T09:11:18 | 2019-01-10T09:11:18 | 161,639,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,891 | py | # Import the necessary packages
import numpy as np
import argparse
import imutils
import cv2
from imutils import paths
import matplotlib.pyplot as plt
# construct the argument parse and parse the arguments
# ap = argparse.ArgumentParser()
# ap.add_argument("-i", "--image", required = True, help = "path to the image f... | [
"noreply@github.com"
] | Umesh27.noreply@github.com |
c9d6f1cbddc96366448edd0c1e9a678b44dcc803 | dcdff4e7fd525e4e31a2227903f80c76339ff8cf | /lab/lab3/cs120_lab3_ctr_df.py | 7b781e54dffb1232e5bdfe23f0dcef9a16062a1c | [] | no_license | williamcs/cs120 | dfdaac80477559ade8d058ee0b9f80372977a4bf | 4b0a7b8445a0bfcb6ca323d3a9ce632dede294c8 | refs/heads/master | 2020-04-06T07:10:50.835383 | 2016-09-15T03:15:30 | 2016-09-15T03:15:30 | 65,379,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,863 | py | # Databricks notebook source exported at Wed, 10 Aug 2016 12:08:49 UTC
# MAGIC %md
# MAGIC <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"> <img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png"/> </a> <br/> This work is licensed... | [
"solobird00@hotmail.com"
] | solobird00@hotmail.com |
825bb8d2372f489f9368507af5f591f69517f001 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2378/60668/302915.py | d3fbbd4909e841f89709063f794ddfe1b79c3b81 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | def tree_17_local(m,n,s,k):
if s=="1 2 8":
print(8,end='')
elif s=="1 2 13":
print(32,end='')
elif s=="1 2 5":
print(15,end='')
elif s=="1 3 3":
if k=="1 6 1":
print(25,end='')
else:print(k)
else:
print(s)
if __name__=='__main__':
m,n =... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8ec0a8595f63d22f53cf6d3ff9b89ed623934f82 | 7d521d7541ae3470790c2045b8ea5fe12fd57b3a | /dash/migrations/0009_auto_20210625_0254.py | d8a5a40a31791482c27a73e890ae07ad38685f62 | [] | no_license | AmbroTall/admindashboard | ffaf754572549da5a5768c59e31314a7a66534a3 | af74045a2d59f601675b8e4a9f595e8a192c5eab | refs/heads/master | 2023-06-04T21:22:34.898923 | 2021-06-27T11:27:55 | 2021-06-27T11:27:55 | 380,715,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # Generated by Django 3.2.2 on 2021-06-24 23:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dash', '0008_auto_202106... | [
"wamaplotytall@gmail.com"
] | wamaplotytall@gmail.com |
4a3c7a1e00a5444bcf0a10b868406de4c76ff58f | 6df3e84690c401a117af4b7cc141e5e4bbaa2403 | /numpy/five.py | 61144d0f4152f57b07eaf461fbd27ad36c99736c | [] | no_license | shreyasbh/IntroToAI | 61f74d148da2bab7990e9508bf95d04739ef68af | c87de4f30b22a2c1b28c966f1661c431cd3012c1 | refs/heads/master | 2020-05-03T07:30:59.451302 | 2019-05-16T17:50:36 | 2019-05-16T17:50:36 | 178,500,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import numpy as np
X = np.arange(25).reshape(5,5)
print(X)
print(X[X>10])
x = np.array([1,2,3,4,5])
y = np.array([6,7,8,9,10])
print(np.intersect1d(x,y))
print(np.setdiff1d(x,y))
print(np.union1d(x,y))
| [
"shreyas.bh@gmail.com"
] | shreyas.bh@gmail.com |
5ed36769bd3ccf0d644322e5073503071335e49f | f7c8fb8958956cfeac918a7ad7858756bea3d83d | /Solar radiation prediction using ANN ARIMA HYBRID/annarima.py | 9fcb4f0a8c4c34dd79f94cd531878a3bd753c883 | [] | no_license | aparajitverma/MACHINE-LEARNING | 4d2826a66aab6ef2f2aa00cae8123b04a153d6cf | e84b6a9e4df807126ee0c6bace92beceffd610c2 | refs/heads/master | 2022-12-04T02:20:51.983589 | 2020-08-24T15:27:23 | 2020-08-24T15:27:23 | 260,461,811 | 0 | 0 | null | 2020-05-01T17:10:56 | 2020-05-01T13:09:36 | null | UTF-8 | Python | false | false | 8,777 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 1 19:24:25 2019
@author: HYDRA
"""
import warnings
import itertools
import numpy as np
import matplotlib.pyplot as plt
warnings.filterwarnings("ignore")
plt.style.use('fivethirtyeight')
import pandas as pd
import statsmodels.api as sm
import matplotlib
mat... | [
"noreply@github.com"
] | aparajitverma.noreply@github.com |
6666e0d25dae1c4e078f060d5683fd6eb3ae965d | 208cd2d41dc9c6acc883399cf1b981ce42c38b82 | /django4/mainsite/mainsite/urls.py | d42879874b2dabeffb869298842f846fe4955eb4 | [] | no_license | hafiz-hafijul/DjangoProject | e0038e0eaf8cd5283b092bed4a0da7f3cf7d8224 | 650ae67eb42c103c527926bc0f35a10a46fe20d3 | refs/heads/main | 2023-01-23T00:13:37.749431 | 2020-11-05T13:51:40 | 2020-11-05T13:51:40 | 310,284,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """mainsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"hafijulpust5@gmail.com"
] | hafijulpust5@gmail.com |
85745777d24514c61da17c453cfd742adca6b9eb | 58bb600d75a04f7d5f7a20037933f859633e3ac7 | /bin/django-admin.py | 48a804919a5598ec4182f0b22a33add68ce4a62a | [] | no_license | johannesdulberg/musicWebsite | 98e432eff2abf58d2bbe0cfb63f8ce39a6337a00 | 2bfae02f96120a808bb47197685440996f06cbf4 | refs/heads/master | 2023-07-07T02:10:37.828650 | 2021-08-04T21:35:36 | 2021-08-04T21:35:36 | 392,821,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/Users/johannesdulberg/musikWebseite/venv/bin/python3
# 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 was dep... | [
"johannesduelberg@web.de"
] | johannesduelberg@web.de |
4c5a259e529aaf7a1ed0a82cfeaaad1a43b3f1d5 | 4eac163db49222cd2222ccb152599289d677420d | /AutoRendering.py | 0a17a5d02b82d2f04fcd857ac88d403207432370 | [] | no_license | hcwong37/try | ba3ab60d19c1acdff33a1d66b718be2155341f2b | acab6a497fb3b6880db8df3824665112f1ff5438 | refs/heads/master | 2020-04-23T14:23:40.035945 | 2019-02-18T06:53:35 | 2019-02-18T06:53:35 | 171,230,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,935 | py | import re
from tkinter import filedialog
from tkinter import *
import shutil, os
def get_inital_filepath():
root=Tk()
initial_filepath = filedialog.askdirectory(initialdir = "/",title = "Please select a directory")
root.destroy()
return initial_filepath
def find_fdsfile(initial_filepath):
... | [
"noreply@github.com"
] | hcwong37.noreply@github.com |
1040e6369db3f4da3f4e4c1ad45ce2acb9e5d1cb | 9556cae863a7c23bac41e1e84cb07cc344ffd68d | /ta/test.py | 64d18ad9b68dabda10d9b5507374840a9d4acd90 | [] | no_license | poohcid/class | ce1534ed02842707add5bb483dccc55acc6ae5e0 | 0dcbdabf24fcb59215b78674be85afc8b4331938 | refs/heads/master | 2020-04-18T10:33:14.735748 | 2020-02-27T14:47:47 | 2020-02-27T14:47:47 | 167,470,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | """doc"""
def main():
"""doc"""
text = input()
lisnum = []
listext = []
text1 = ""
num = ""
for i in text:
if i.isdigit():
num += i
elif i == "%":
listext.extend([text1, i])
lisnum.append(num)
text1, num = "", ""
elif n... | [
"38640424+poohcid@users.noreply.github.com"
] | 38640424+poohcid@users.noreply.github.com |
4df13176dbf249e6cef42f2f6f03bd91198f8fa9 | 04c5d750d957820436535af12e847ca05e7c73c3 | /Problem5.py | 2dbe5c5c3cbfe7f7020166250516c42d627c11b8 | [] | no_license | tieuguy/Project-Euler | 6f757dc928778e25547638f6cc0c622b33fe7727 | bef95148722ab3c07eaf3277c657ddffd8d3157d | refs/heads/master | 2020-05-04T21:14:30.354948 | 2015-10-01T17:29:29 | 2015-10-01T17:29:29 | 11,179,787 | 0 | 2 | null | 2015-10-01T17:29:29 | 2013-07-04T14:50:16 | Python | UTF-8 | Python | false | false | 576 | py | '''
Created on 2013-06-27
@author: tieuph
Smallest multiple
Problem 5
Published on Friday, 30th November 2001, 06:00 pm;
Solved by 180966
2520 is the smallest number that can be divided by each of the numbers
from 1 to 10 without any remainder.
What is the smallest positive number that is evenly divisible by
all ... | [
"gauryuuki@hotmail.com"
] | gauryuuki@hotmail.com |
b026fc3852bfb4259249d05ce3ec04f6b8652bc9 | c4326a39768970c236de01651f56b729c4fc6ed8 | /lisa/plugins/Meteo/__init__.py | 02582f0812a700d7348d358e50a2684ca984c74e | [] | no_license | Seraf/LISA-PLUGINS-Meteo | eab2b8dd0818e7c7759bf76ac252e001cfe53f5e | 8f13758f2d27c79a7faf4dd77ab77b3c3a239c8b | refs/heads/master | 2016-09-06T17:45:32.263142 | 2014-09-07T21:04:42 | 2014-09-07T21:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | __author__ = 'julien'
from lisa.plugins.Meteo.web import *
from lisa.plugins.Meteo.modules import *
| [
"julien.syx@gmail.com"
] | julien.syx@gmail.com |
eb6dc34d5e55e9a40b0dee05f1549c2adb7a5e0a | f4d249fb0a62e68eba1ff042dad3f90066cd12f7 | /onig/_onig_cffi/__init__.py | 5313fcd6c1c958a5dd6c80fcebfa8b7cb0cfdced | [] | no_license | koehlma/python-onig | 2138064f2957e2742ded7b8a96f9216afb49d619 | 220e9e371d19858e8409aa4f9b54a2396705f008 | refs/heads/master | 2021-02-10T17:11:51.025184 | 2020-03-02T21:11:04 | 2020-03-02T21:11:04 | 244,402,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # -*- coding:utf-8 -*-
#
# Copyright (C) 2020, Maximilian Köhl <mkoehl@cs.uni-saarland.de>
from __future__ import annotations
try:
from ._onig_cffi import ffi, lib
except ImportError:
from .build import builder
builder.compile()
from ._onig_cffi import ffi, lib
__all__ = ["ffi", "lib"]
| [
"mkoehl@cs.uni-saarland.de"
] | mkoehl@cs.uni-saarland.de |
eac61dbcf23e927d2e19a9010a360a1d24b06a8a | 52ddbf21991415c3a567881f128b8ef477f54d10 | /DataAnalysis/day02_StatisticAnalysis/pd_05.py | c1153ca4073710f5e34256fe149790193825cb1d | [] | no_license | happy5205205/PythonProjects | 265074198c3e6d09af25a50b601bd78fa8d367e1 | a78845ef30cfc0c680dded336ce9e85e3970b771 | refs/heads/master | 2021-07-15T21:48:24.472616 | 2021-06-25T03:41:44 | 2021-06-25T03:41:44 | 160,160,103 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | # 使用Python进行假设检验
import pandas as pd
grades_df = pd.read_csv('..//data//grades.csv')
# print(grades_df.tail(3))
# print(grades_df.info())
early_submission = grades_df[grades_df['assignment1_submission'] <= '2015-12-31']
# print(type(early_submission))
# print(early_submission.head())
later_submisson = grades_df... | [
"30718405+happy5205205@users.noreply.github.com"
] | 30718405+happy5205205@users.noreply.github.com |
216b3317de3e2928c534ce693b4693e0864b369d | 4bd4f19a8ec327ef38155981b049f08af45b5b65 | /setup.py | 1b52c804866930c9d0eaf48200dd4271ec2e62f3 | [] | no_license | twined/imgin | d6b47eb91f75aeea9741c921fedfa16ee59cfa59 | b6f57246663f635d27f24129a62eeb81fe10ffae | refs/heads/master | 2021-01-19T08:03:19.892210 | 2017-04-28T09:45:52 | 2017-04-28T09:45:52 | 9,169,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='imgin',
version='1.0.1',
author=u'Twined',
author_email='www.twined.net',
packages=find_packages(),
include_package_data=True,
url='http://github.com/twined/imgin',
license='Do wha... | [
"trond@twined.net"
] | trond@twined.net |
8eda5ec5410f3fbd05334a9373b1bcbc7f2371f3 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/plugins/attack/payloads/payloads/hostname.py | 102ad20b04e92b675013d7442960f156788aea8e | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | import re
from w3af.plugins.attack.payloads.base_payload import Payload
from w3af.core.ui.console.tables import table
class hostname(Payload):
"""
This payload shows the server hostname
"""
def api_read(self):
result = {}
result['hostname'] = []
values = []
values.app... | [
"everping@outlook.com"
] | everping@outlook.com |
8d13eb85444fa0c4285baef021d68b112762bddb | 068d6a0c20328dc34aa2278d42a265a6858c660a | /Hashcode_Online_Qualification Round2020/run.py | 9ca7c9c2e20df56519da60c44ab6f4615b35b016 | [] | no_license | IButskhrikidze/programming_competitions | f6c5d5e8ecca1c05265b74551915bc6fecd5dd2a | 72ebbcf1de644c5423f01360bb475a8cdf277136 | refs/heads/master | 2020-04-26T04:41:32.976495 | 2020-02-21T08:47:28 | 2020-02-21T08:47:28 | 173,310,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import os
os.system("g++ -std=c++17 -o compiled.out main.cpp")
if not os.path.exists('output'):
os.makedirs('output')
files = os.listdir('input')
for file in files:
input_file = os.path.join('input', file)
output_file = os.path.join('output', file)
os.system(f"./compiled.out {input_file} {output_fil... | [
"alekoxanta@gmail.com"
] | alekoxanta@gmail.com |
1f8add9bf8c7b5d9e859ffd6d3f42dbcc6ffaead | e58625a039201d3b1b588175e90ad5f960ab7a1d | /examples/SI_model.py | 1a1a685aba21b5b129c2c570a8c5610ea985f26e | [] | no_license | ee08b397/graphism | 451bbc7580a873151e5ffc4860ae5373a2d60139 | 010023d8d261fade8c1664c379622eb2666bc5ca | refs/heads/master | 2020-12-25T09:47:11.792898 | 2013-06-01T15:35:29 | 2013-06-01T15:35:29 | 40,366,217 | 1 | 0 | null | 2015-08-07T15:07:00 | 2015-08-07T15:07:00 | null | UTF-8 | Python | false | false | 1,001 | py | import graphism.graph as gg
import graphism.generators.uniform as ug
"""
This is an example of how to simulate an SIR model using the
graph_generators.uniform_graph module along with the cascade functionality of
the graphism.Graph object. The output, to stdout, is the I curve. The time
units are arbitrary,... | [
"akellehe@gmail.com"
] | akellehe@gmail.com |
9a3579d4f1230bcc149f55ac248b2691ab544c25 | ef355c873e68f27e60d5fe83a29110df7e6bdce8 | /ahr/ahr/doctype/leave_block_list/test_leave_block_list.py | 3fa71b2fb7356f315599fd400bb62159028679c1 | [] | no_license | Shakir73/ahr | 5c7b9090c6b6271b7e88641fde0ade3ec4fa1dad | 93078b2218552b9d9e6f90f1b3d18f56b822e92b | refs/heads/master | 2022-03-30T11:36:01.834666 | 2020-02-06T11:24:23 | 2020-02-06T11:24:23 | 238,662,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, AFS and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestLeaveBlockList(unittest.TestCase):
pass
| [
"engr.abdul.bari.ansari@gmail.com"
] | engr.abdul.bari.ansari@gmail.com |
ad14adf6d06a381b56dbed4933f77e2d167fe623 | b5e8cb4102965199b0c35c995591a0eca1b589f2 | /프로그레머스/Level1/두개 뽑아서더하기.py | a8659d10b25ac3e6895e1be22edec8593c79cf61 | [] | no_license | smilejakdu/leetcode_with_silva_mento | 36af4d8242e700f8f47567c6fdc8eb116c44c0b1 | 09a2fe53befe3fa3b23eb7f14059b8d897fd53b5 | refs/heads/master | 2022-12-20T01:11:27.691518 | 2020-10-04T15:16:31 | 2020-10-04T15:16:31 | 283,961,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | ''':arg
정수 배열 numbers가 주어집니다.
numbers에서 서로 다른 인덱스에 있는 두 개의 수를 뽑아 더해서
만들 수 있는 모든 수를 배열에 오름차순으로 담아 return 하도록 solution 함수를 완성해주세요.
numbers의 길이는 2 이상 100 이하입니다.
numbers의 모든 수는 0 이상 100 이하입니다.
numbers result
[2,1,3,4,1] [2,3,4,5,6,7]
[5,0,2,7] [2,5,7,9,12]
'''
# numbers = [2, 1, 3, 4, 1]
numbers = [5, 0, 2, 7]
def so... | [
"ash982416@gmail.com"
] | ash982416@gmail.com |
001921a2386878b316b50376d0083b94d26c6a66 | bee689a9b18b8763641822bfe074bf9490ccd80f | /blog/migrations/0001_initial.py | 216c61a1cb8c5778ab624f9fc18e78ad933150d1 | [] | no_license | forefore/myfirstblog | c408a81ed470f26a32e65054a74d8a7f627d4c13 | f2d6613346c8e1114623e17c949dd15f6e26aeb6 | refs/heads/master | 2021-01-11T08:25:39.146685 | 2016-12-18T16:03:47 | 2016-12-18T16:03:47 | 76,792,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-18 15:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"hellocin@naver.com"
] | hellocin@naver.com |
437ef66dc3ac0f7cf2e9efffac97408be8c83276 | 35109088e79989e8b0ca9d9ddadad1546eebc8e3 | /AB/linux2/day20/code/03_mylist.py | 1d6725b8fc9f0dfd48f26baa85172076a58f52d0 | [] | no_license | ABCmoxun/AA | d0f8e18186325bfd832b26f3b71027d1dc8255b2 | c2c4a5b6683555b5d6200730b789d6e655f64c7f | refs/heads/master | 2020-03-25T11:11:54.882204 | 2020-03-03T05:19:07 | 2020-03-03T05:19:07 | 143,722,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # 02_mylist.py
# 此示例示意复合赋值算术运算符的重载
class MyList:
def __init__(self, iterable):
self.data = [x for x in iterable]
def __repr__(self):
return 'MyList(%r)' % self.data
def __add__(self, rhs):
print("__add__方法被调用")
return MyList(self.data + rhs.data)
def __iadd__(self, r... | [
"1945568441@qq.com"
] | 1945568441@qq.com |
f153f8b04595965bdd671292cb2ba6d75667583b | ae0e54ef5b812f33d3b508eb41f8d17d9ff1cd6c | /venv/Scripts/pip3-script.py | 13428876f339a5729f6ac9f9fa06aa311d0d42c5 | [] | no_license | YANHongHu/Museum | ff86c366fc91d738ab3f81c71a0d3941acb2165b | b3b6c959913fb210dc8074d5cc7c90aea0a2346a | refs/heads/master | 2020-08-12T10:30:22.588888 | 2020-06-20T06:29:48 | 2020-06-20T06:29:48 | 214,750,729 | 0 | 0 | null | 2020-07-07T11:16:05 | 2019-10-13T02:49:24 | Python | UTF-8 | Python | false | false | 412 | py | #!C:\Users\10783\PycharmProjects\Museum\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"49400532+YANHongHu@users.noreply.github.com"
] | 49400532+YANHongHu@users.noreply.github.com |
110149fbbfe85f55d1a687d001ab8e149c0ad2cb | 2eb0782b9e509144df6c3ff2c3139c595fb10f93 | /genutiv/analysis/compare.py | 1ae52e6663354f7f43c1561c7ba23bc40703b2bf | [] | no_license | pamolloy/Genutiv | 07bccfbabf012e57b167d280301844dee1cba012 | 9055fc829a431c4c56d3723db307e8352b2adf79 | refs/heads/master | 2020-04-02T15:05:39.178620 | 2013-08-07T19:45:31 | 2013-08-07T19:45:31 | 2,419,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | # -*- coding: utf-8 -*-
#
# art.py
#
# PURPOSE:
# Create a data structure with nouns matched to patterns and assess whether
# pattern could accurately guess gender of each matched noun.
#
# TODO(PM) There are numerous data structures in this script. Is it better to
# build them like pattern_dict or rever... | [
"philip.a.molloy@gmail.com"
] | philip.a.molloy@gmail.com |
2efa37dc9c262a28dbac42705bb7457067a8f29a | 40d978aa02335dd0cbab732dc4c8129aaf8590df | /term_sheet_generator_1173/settings.py | 8ae02a9064ae45703b98df27ec4632a848e41df7 | [] | no_license | crowdbotics-apps/term-sheet-generator-1173 | ab35fa1798295c7d8a1ada395cd875bb9a351b99 | 86c2995f7dfa1bfbe3f1a90e04f1ea23bbca105c | refs/heads/master | 2022-12-09T11:05:41.405844 | 2019-03-03T23:41:55 | 2019-03-03T23:41:55 | 173,643,543 | 0 | 0 | null | 2022-12-08T01:42:56 | 2019-03-03T23:40:17 | Python | UTF-8 | Python | false | false | 4,612 | py | """
Django settings for term_sheet_generator_1173 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/setti... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
743358a83967e139371240beada4662fc3db7711 | 9aa2d9a83a281e7a412a7fb06017211e637d6ac1 | /specialTools/GatedGraphConv.py | edf6d00413aefddec0819b2e7cb47829fe0bf99e | [] | no_license | qq563902455/Metro_road_map | a9356ab53ca08b3dc4ce6da23d33fffc981f5951 | 29ea80c233c9a187473a188971ab04c3d6dc780b | refs/heads/master | 2020-05-01T05:17:18.840867 | 2019-04-14T15:04:24 | 2019-04-14T15:04:24 | 177,297,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | import torch
from torch import Tensor
from torch.nn import Parameter as Param
from torch_geometric.nn.conv import MessagePassing
from torch_geometric.nn.inits import uniform
class GatedGraphConv(MessagePassing):
r"""The gated graph convolution operator from the `"Gated Graph Sequence
Neural Networks" <https... | [
"563902455@qq.com"
] | 563902455@qq.com |
6a2e8e98c0cbf7ccddabb9664edf9965ccc63e1f | 359e8fc72fb0c092dfd29ee952262e06b129eeaf | /export/text.py | aa1b4b040cf255ac8fdf57942d274866577ab784 | [] | no_license | BitBitcode/Toolbox | 2bce5eb7714c557e18f440280a7f9f9c0f09f2e4 | c42b73fb657df4065030d19b2e8e012c94620b44 | refs/heads/master | 2022-12-02T10:31:35.456242 | 2020-08-18T03:55:21 | 2020-08-18T03:55:21 | 287,693,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | import datetime
# INS_input_file = open("./PPI/configuration.ascfg", "r+", encoding="utf-8")
# # INS_input_file.seek(2)
# # with open("file.txt") as f:
# num = reversed(INS_input_file.readlines())
# # for line in a:
# # print(line.strip())
# file_num = INS_input_file.read(1)
# # print("[", file_num, "]")
# pri... | [
"1378028451@qq.com"
] | 1378028451@qq.com |
0c5a0e9bb4bb4d248540a7e112f80b3d665d4eb8 | dca5b42e443ab5c7b3035bfe0ede0a82c3fbe1c9 | /captioning_generation/mm_train.py | beab05976aa8980b4d46c503f7e02121b2e66c55 | [] | no_license | hduwbf/WSDVC | 5409a3c8b5da5024b89bf7534554c0a8e6280dfe | 7e29bd5af38c7221bd1b49472769c6a024b27c0e | refs/heads/master | 2023-07-29T01:01:53.053648 | 2021-09-15T04:05:10 | 2021-09-15T04:05:10 | 405,909,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,332 | py | import torch
# import time
from mm_dataset import *
from mm_lstm_model import *
import argparse
import torch.utils.data as data
import time
def train(model, data_loader, epoch, optimizer):
print('Train Phase...')
model.train()
_start_time = time.time()
accumulate_loss = 0
for idx, batch_data in enu... | [
"wubofeng@baidu.com"
] | wubofeng@baidu.com |
439f85ede51fa57f7232cd941df10dfe8ca12043 | 70feb280ddc7b74eb1197f6f317c6d395d8759cf | /predict.py | 47c2dfc951f274af09d14c00b1e49ada6f16d57d | [] | no_license | bdwinter10/Udacity-DSNN-Project-2 | 57f3e23f52b817d490d0220cf5d10c723e076b85 | 3cf001a80c98eadec664606ddd0a4b8546913d08 | refs/heads/master | 2020-05-17T04:47:34.993982 | 2019-05-09T07:09:15 | 2019-05-09T07:09:15 | 183,517,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import os
import torch
from torch import nn
from torch import optim
import torch.nn.functional as F
from torchvision import transforms, datasets,models
import PIL
import json
import argparse
import functions_for_predict
parser=argparse.ArgumentParser(description='Specify file path for model')
parser.add_argument('path... | [
"noreply@github.com"
] | bdwinter10.noreply@github.com |
689af6ea35199c964a9ea2a94f271c7e8d336d4d | 4b4d59cef7f30aeab3ab8798dcbb28c8abbab8e5 | /queues.py | d44e90e00d462ccf8b53eff111f62e6a14f2c480 | [
"Unlicense"
] | permissive | pelegm/qpyscript | 6fe83c0513aa2add0b4a838eeb3fbf43ffaf57b7 | 6e6c72f89e77d0e3d60a7cc701060dcda6340a39 | refs/heads/master | 2021-01-18T21:14:36.929753 | 2016-04-27T08:43:38 | 2016-04-27T08:43:38 | 35,080,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | """
.. queues.py
"""
## Framework
import Queue
class PushQueue(Queue.Queue):
def push(self, item, block=True, timeout=None):
""" Push an *item* into the queue.
If optional args *block* is ``True`` and *timeout* is None (the
default), block if necessary until a free slot is available. If
... | [
"freepeleg@gmail.com"
] | freepeleg@gmail.com |
801fb648eeb0220cbcf1e0899d78adadd46889f3 | 954e8fa001e9cdde5cd7a3e9fa95f27357c09957 | /stack&queue.py | 645744180548dd02a2b262e7304a815c35b0ebc4 | [] | no_license | Mutan0105/func2 | 2b7600e1ed4a8011ae0694cb3cc453553c639a78 | c2fb72c16b3b4388e1a84aa84bd7067caf7e993b | refs/heads/master | 2020-03-09T18:35:39.982909 | 2018-04-26T08:52:39 | 2018-04-26T08:52:39 | 128,919,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/env python
# encoding: utf-8
class sq(object):
def __init__(self,list_a):
self.list_a = list_a
def shift(self):
value = self.list_a.pop(0)
print '被移除的值为:%s' % value
print self.list_a
def unshift(self,val):
a = []
a.append(val) #采用insert()方法可... | [
"1290453107@qq.com"
] | 1290453107@qq.com |
099c4e2af0ac551a0ae579ae294358ef5b0e82a3 | 2dc8c387de8bf7a6bd7506bd128b9dfa2bc8a3e2 | /0x05-python-exceptions/6-main.py~ | df03a1652e5a941660b8acdf869fdf3a7c3c3f5a | [] | no_license | yasmineholb/holbertonschool-higher_level_programming | ab57f9aa718ad8ebeb927a49c007e0232b0125e6 | ee66c781e9421a0dbf03795707572d9d1183e42e | refs/heads/master | 2020-09-28T19:35:52.740417 | 2020-06-15T09:45:18 | 2020-06-15T09:45:18 | 226,847,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | #!/usr/bin/python3
raise_exception_msg = __import__('6-raise_exception_msg').raise_exception_msg
try:
raise_exception_msg("C is fun")
except NameErr
| [
"1055@holbertonschool.com"
] | 1055@holbertonschool.com | |
ef6c9c786cc9e75980d742ed1f9040a9e53bff10 | 560f1b715bd3999556db5ba4a3d6781e95315279 | /benchmark_3d/case4/export_grid.py | d0eece4cef7639bbd3e3be1b681bfeab03cedbc0 | [] | no_license | rbe051/fracture_benchmark_grids | 779d0724e2404110643f59fbb14b1b9b14a667e7 | c412526f01702fc743e9dd8480eefba5becb983a | refs/heads/main | 2023-02-16T04:51:25.704727 | 2021-01-11T13:49:39 | 2021-01-11T13:49:39 | 328,632,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import os
import porepy.io.gridWriter as ioWriter
import case4.data as problem_data
def export_grid(path):
gb, domain = problem_data.create_grid(False, False)
gb = ioWriter.mergeGridsOfEqualDim(gb)
ioWriter.dumpGridBucketToFile(gb, os.path.join(path, "benchmark3d_4.txt"))
| [
"rube@norceresearch.no"
] | rube@norceresearch.no |
d0f27be1520e913b4c21d352643bf4d0bee5431f | 4a06132735e43664225f69625764a235efdd2f11 | /zips/script.module.python.twitch/resources/lib/twitch/scraper.py | 125270ed93c385acb7a7abfc681e0bed95134233 | [] | no_license | vbprofi/kodi-repo | 2da2b65054a2cd625ca5ff3a59e7d263fa567a94 | 767b47ca91c168c733ba2bf1f0f4fce22705dfde | refs/heads/master | 2023-05-30T12:51:43.071176 | 2021-01-15T04:54:32 | 2021-01-15T04:54:32 | 129,613,694 | 0 | 1 | null | 2023-05-22T20:47:22 | 2018-04-15T13:38:21 | Python | UTF-8 | Python | false | false | 4,491 | py | # -*- encoding: utf-8 -*-
"""
Copyright (C) 2012-2016 python-twitch (https://github.com/ingwinlu/python-twitch)
Copyright (C) 2016-2018 script.module.python.twitch
This file is part of script.module.python.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information... | [
"vb-profi@mail.ru"
] | vb-profi@mail.ru |
8fb3ba787987e58eb99b7a6a9a6bc9a3bec09ac7 | b7dac787533bf79dec4c891555a7b5bc1d8efc72 | /Crypto-Suite/utils.py | f3dc7a199dea7821fc836e5b0d58e1ff2f9611ac | [] | no_license | haricotVerts/Python-Scripts1 | 4132ce2a685e3b7f37203a29320ba0bd129a0381 | 8a1f51edb86ffdfc1ef1550b728f55d17ab592a7 | refs/heads/master | 2021-06-14T06:10:57.639055 | 2017-04-12T02:58:08 | 2017-04-12T02:58:08 | 64,714,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | #!/usr/bin/env python3 -tt
import random
class BinaryConversionException(Exception):
"""Custom exception for invalid binary conversions"""
pass
def is_superincreasing(seq):
"""Returns True iff `seq` is a superincreasing sequence"""
ct = 0 # Total so far
for n in seq:
if n <= ct:
... | [
"noreply@github.com"
] | haricotVerts.noreply@github.com |
76b445e86257dbf756b4d3bf681844c0e89e459e | 60c02f59d51b2ada2e9cf72846e1d403cd13e227 | /daima/bowen1.py | c5f0030eef9a95b67834782520d8426395777711 | [] | no_license | bingruoxin/bowen | e1e0c292515422bf3cc56048701570c9580bab8b | 5a2da1830d0e6291191cd8d59f8d8897b73fcba4 | refs/heads/master | 2020-09-16T09:13:38.512010 | 2019-11-24T10:34:43 | 2019-11-24T10:34:43 | 223,723,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | #!/usr/bin/python
# -*-coding:utf8-*-
# b = input('请输入:')
# if "a" in b:
# print(123)
# else:
# print(456)
# b = input('请输入:')
# if "a" == b:
# print(123)
# else:
# print(456)
# while 1:
# i = (input("输入5个字符:"))
# if i[0] == '1' or i[-1] == '3':
# print(type(i))
# a ='asdfqb'
# print(a[:... | [
"bingruoxin0320@163.com"
] | bingruoxin0320@163.com |
9f74addcc487053f798f9c7eb0880637f06f1718 | 39b27d4e6057a0f13306fc189ce028e659171daf | /admin/routes.py | 5e7108e52b6ab4b88aac02e2abcc528c278cd44a | [] | no_license | abhisheksahanii/HDPS-heroku | 475c62b0f186db5337c8a6ead4343651e5ff1cd0 | f48fab8c1f9fe6fdb565e43dbfd70ab705460ed9 | refs/heads/main | 2023-04-24T23:32:27.265375 | 2021-05-14T09:04:09 | 2021-05-14T09:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from flask import Blueprint
from flask import render_template, redirect, url_for
routes = Blueprint('routes',__name__,url_prefix='',template_folder='templates',static_folder='static')
@routes.route('/patregis')
def patregis():
return render_template('patregis.html')
@routes.route('/docregis')
d... | [
"noreply@github.com"
] | abhisheksahanii.noreply@github.com |
824098a238b49fa0de929e84ad06beda341fe072 | d2b6f0ff11e8c0cc22cc7a1a8b2d0d46e84e4337 | /sport_sessions_crawling/run.py | 9a13992be1aabd20e3448cd1c2ba46e20a260d72 | [] | no_license | Korriliam/sport_sessions_crawling | b98767a0feaff17a3b5f840969910129a393fd66 | 6bdd03d2d86c2afd7f742fe2f0672bc946b786ab | refs/heads/master | 2021-01-11T21:18:22.010064 | 2017-01-14T23:36:13 | 2017-01-14T23:36:13 | 78,759,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | #!../bin/python
from sport_sessions_crawling.app import app
app.run(debug=True)
| [
"rainrider37@gmail.com"
] | rainrider37@gmail.com |
45ca5e64e0f74f7394b9a7b9f91f4ae3ceb07e3f | 842b426e4a088c8473f4d1f4c13f50b96893cc13 | /6_pytestTutorial/tut1/myApp/sample.py | 7902f47ce738a4cc14e40ba60274302179e4daee | [] | no_license | ziejaCode/Testing-with-Python-Practice | 4b6395ab33ae8ae1edc3b4ceb7778c2d65af37e6 | a4044740dda98c812316755dbecc81ead26a31c5 | refs/heads/main | 2023-05-29T23:44:31.723220 | 2021-06-10T18:16:42 | 2021-06-10T18:16:42 | 322,858,892 | 0 | 1 | null | 2020-12-19T16:13:10 | 2020-12-19T13:53:31 | Python | UTF-8 | Python | false | false | 41 | py | # sample
def add(a, b):
return a + b | [
"ziejaCode@gmail.com"
] | ziejaCode@gmail.com |
e0964a465a87da00c114055f9cc183b44a647069 | f8f3bf36b3d207588a986e912c5a878e3e358ed3 | /responsive_CV/wsgi.py | 3fb9ef74a4d21d7b2e98d2eae87670d001094980 | [] | no_license | marchounto/responsive_CV | 913ee3ffad8da241d6b9f9c2b18039afa845b5ab | a44f24e8f822b5c4f5be198ee750b347033aa689 | refs/heads/main | 2023-01-24T21:36:32.274053 | 2020-11-27T05:44:20 | 2020-11-27T05:44:20 | 314,924,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for responsive_CV 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... | [
"mghounto@gmail.com"
] | mghounto@gmail.com |
ea051e975794e5012b42a19cfaccd3612ac4cf26 | 5bc3e960f7153e5d970f507c4d063eed0c4dc679 | /pages/urls.py | a1730dd9471dc83b1ae08a1335e0220c7622a6bc | [] | no_license | mantseoko/carzone-gitproject | 8a32a3ef46d254916f54ab0fdd65a0e047ca5496 | 7e19a2dbfa84a5fc9ea06fe443d7887b03a414f9 | refs/heads/master | 2023-01-19T03:10:33.767314 | 2020-11-27T19:13:43 | 2020-11-27T19:13:43 | 316,019,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('about', views.about, name='about'),
path('services', views.services, name='services'),
path('contact', views.contact, name='contact'),
] | [
"lampteydan025@gmail.com"
] | lampteydan025@gmail.com |
f5ffe173d80f584f827211c6c21f5bd0fc87581b | eb6fd32a4286121bba412874b2f79552aeb03e24 | /test_boundary_errors.py | ee03ccc406bdec63888f510a84430867bd6acd13 | [] | no_license | ScottHull/bilinear-interpolation | b8b259cc4150212ecf85333b1c69eb8a0dded193 | 68ef72cbe313121863e9b6ab232913c1c664598c | refs/heads/master | 2021-10-25T05:33:42.776010 | 2021-10-19T20:35:49 | 2021-10-19T20:35:49 | 213,478,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,552 | py | from interpolation import GenericTrilinearInterpolation, BilinearInterpolation
import pandas as pd
from random import randint
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# df = pd.read_fwf("granite.rho_u.txt", header=None)
# df = pd.read_fwf("dunite.rho_u.txt", header=None)
df = pd.read_fwf... | [
"scottdhull21@gmail.com"
] | scottdhull21@gmail.com |
3130d1075d4d7ed976baaacb584e5376d73913ad | 898255366819faa4c08f7d636189ff76ea2d8faf | /ParkingLot.py | eae5dfceb6e40b2010141bd968dbaf07625e186e | [] | no_license | MayaGalili/ParkingLot | 65218adcf855a2cc84503834bc61c26222226edb | f1a79bc2760ea723db7f470d2eda2e3b0d3edf0e | refs/heads/master | 2020-03-22T08:19:26.892511 | 2018-07-04T19:31:16 | 2018-07-04T19:31:16 | 139,759,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | # -*- coding: utf-8 -*-
"""
Design a parking lot using object-oriented principles.
Created on Wed Jul 4 09:14:28 2018
@author: Maya Galili
"""
#%% vehicle
from random import shuffle
class Vehicle:
def __init__(self,wheel_num,car_type):
self._car_type = car_type
self.... | [
"noreply@github.com"
] | MayaGalili.noreply@github.com |
bbe533bcb2be40db148e13594cf674deb089b8fc | 1f1afe32453a13dbaa7aa54175cb9c218e212593 | /LinearRegression/venv/Scripts/easy_install-3.7-script.py | 8708dd9a4447874ad120379ce116b2a5abfce666 | [] | no_license | etuna/ai-playground | 69719e0d7040c16091c0550d3aa76b3037baca8f | c685a1285fdba3b9f448e8814f97e7932e8f2f4e | refs/heads/master | 2020-03-31T14:38:01.823894 | 2018-10-09T18:51:32 | 2018-10-09T18:51:32 | 152,303,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!C:\Users\etuna\PycharmProjects\LinearRegression\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"etuna@ku.edu.tr"
] | etuna@ku.edu.tr |
11cbf7a4bddd29395320ad62046747cc7fb6a4fb | cc0efebc589aab1e93590ffdc419e8db22bf805d | /GUI/scripts/Lin_Keringhan/Lin_Keringhan_bakend.py | 950dce97a5273ccce85ae0f034c9d875677fc543 | [
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | medbenchohra/TSP_Heuristics | 13e602cc08b7373b582ab861cfad412c26fd982b | 1ab0d6af1e51f6648e2514e6133a0a9c9fe3c163 | refs/heads/master | 2023-01-10T01:25:48.728790 | 2019-08-30T09:19:14 | 2019-08-30T09:19:14 | 194,944,710 | 0 | 0 | null | 2022-12-30T18:17:01 | 2019-07-02T22:47:41 | Python | UTF-8 | Python | false | false | 19,505 | py | import warnings
import csv
import random
import argparse
import time
#from city import City
#from tour import Tour
# from matplotlib import pyplot as plt
import math
#import TsplibParser
# ------------------------------------
class Roads(dict):
""" A collection of roads with
* no duplicates
* n... | [
"fm_merouani@esi.dz"
] | fm_merouani@esi.dz |
d55801ffc1176cb79ce7df1a7013114e2de1a4a3 | b6515a691c57cbad1bfb515a4f2f5eb0313e7069 | /blockchain.py | cb48d1ec954bd2cb3d9045469883b12c5dbd2c11 | [] | no_license | uddeshyatyagi/Python-Projects | 0a0c418e0f20bc76f153f9a1ed25d7d93662a941 | 9b3219147f4d55052d1ebb9a0d76dbf53124b99e | refs/heads/master | 2022-12-29T10:01:46.859917 | 2020-10-17T14:45:22 | 2020-10-17T14:45:22 | 295,388,633 | 1 | 1 | null | 2020-10-17T14:45:23 | 2020-09-14T11:01:10 | Python | UTF-8 | Python | false | false | 1,801 | py |
import datetime
import hashlib
class Block:
blockNo=0
data=None
next=None
hash=None
nonce=0
previous_hash=0x0
#in hash(var)=0x0 when var is 0
timestamp=datetime.datetime.now()
def __init__(self,data):
self.data=data
def hash(self):
h=hashlib.sha256()
... | [
"noreply@github.com"
] | uddeshyatyagi.noreply@github.com |
04f8b062650b5798b5593f2da2345014e4f3e125 | 9e6c8354443df13dcbb85e33f6d9a2c25cd5440c | /botI/src/botI/msg/_control_msg.py | d6c53da1e7c1564528833a0fc40e0227ade293da | [] | no_license | paddington33/FRS2012-5 | 13a81c479373867bfbf37e6da48ba742158b17e5 | b71588c6c89e397f77c641d2fe5f0f4c5e0a5db1 | refs/heads/master | 2021-04-12T04:32:25.336412 | 2012-08-25T16:28:51 | 2012-08-25T16:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,618 | py | """autogenerated by genpy from botI/control_msg.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class control_msg(genpy.Message):
_md5sum = "350a205356bb53a7be0acfcec31d01c3"
_type = "botI/control_msg"
_has_header = True #fl... | [
"paddington33@gmail.com"
] | paddington33@gmail.com |
a178ce9cd539dac2e2fdc991ca2c461544facb07 | f49bb97d69f3e4e674ee8cca25e2eabb94a4bfee | /PiCamera/continous_feed.py | b4be31fdb59ba127b13cf823378ec6983e33a018 | [] | no_license | PapaSilverback/PiCode | 010d6454f9ccb77679e00bcdddb9282102a5552f | 19dfd7500464f9c5d08506f2186b8568838fc958 | refs/heads/master | 2021-01-12T12:14:09.747286 | 2016-11-05T21:39:31 | 2016-11-05T21:39:31 | 72,377,601 | 0 | 0 | null | 2016-11-05T21:39:31 | 2016-10-30T21:48:51 | Python | UTF-8 | Python | false | false | 501 | py | import cv2
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
camera = PiCamera()
camera.resolution = (500, 500)
camera.framerate = 32
rawCapture = PiRGBArray(camera, size = (500, 500))
time.sleep(0.1)
for frame in camera.capture_continuous(rawCapture, format="bgr", use_video_port = True)... | [
"will.black1992@gmail.com"
] | will.black1992@gmail.com |
c2b193156cca784bd4e2fa529c93c12ef1efb16b | 4a32707cbb9ac0c0d8e5226ff1119ba7b01b1a59 | /plot.py | 959d4fc440f26d5256e1bcbbf3ad609ac2f8b43f | [] | no_license | sikeda107/MachineLearning | 99aab32eea8f330eb3508a16505da72f412eda89 | 08e6e1f7b48f217e8b8a3261aa26812d30517413 | refs/heads/master | 2020-12-25T18:32:12.476954 | 2017-06-11T09:28:01 | 2017-06-11T09:28:01 | 93,956,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn import svm
from sklearn.neural_network import MLPClassifier
from sklearn.linear_model import Perceptron
def main():
#load_iris method load and return the iris dataset
iris = datasets.load_iris(... | [
"s.ikeda107@gmail.com"
] | s.ikeda107@gmail.com |
f99cd85c7ac6dab4495aa1d24a0da46ad310a018 | 4494d8b45191f4e323d35ea5e1a65533db41a3b8 | /chatbot/urls.py | e3e865410dd2e28e311cc6fd0e83c7bf106e4905 | [] | no_license | AVKashtanov/chatbot | 18dd104cd3a477a91befc1306adab6dc6a5a1875 | e111e54e6c4129ab08558b410b11e1c3cd74edd2 | refs/heads/master | 2023-08-16T20:31:34.713813 | 2021-08-23T01:14:15 | 2021-08-23T01:14:15 | 397,475,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """chatbot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"tema.nkkav@mail.ru"
] | tema.nkkav@mail.ru |
3560a717abe426c359c92bc4e8d4e473a52f28df | 5a3a55976247a1c319a00c269b28b39e91715839 | /app/networkapi/utility/templatetags/settings_value.py | da3e5cd3625ab96b0432541b60a07f6a9f0478cd | [
"MIT"
] | permissive | mozilla/network-api | 8d54ac92bd0566b6fa417efe0787f439ac5245f7 | 7feb8ed9bded22ec77c11f930e11f1bb1c93646a | refs/heads/master | 2023-08-29T20:31:18.385950 | 2017-08-08T21:53:16 | 2017-08-08T21:53:16 | 82,714,251 | 3 | 3 | null | 2017-08-24T18:17:24 | 2017-02-21T18:41:20 | Python | UTF-8 | Python | false | false | 208 | py | from django import template
from mezzanine.conf import settings
register = template.Library()
@register.simple_tag(name='settings_value')
def settings_value(key):
return settings.__getattr__(str(key))
| [
"pomax@nihongoresources.com"
] | pomax@nihongoresources.com |
894e94b103e884a179439744e06b6b66ed7c8528 | 1d43c6a15d112ff16ed36da8d5269b87c6a50b8c | /constants.py | 3a662dbe3f775c9fdfde5ee4e49143910d084292 | [] | no_license | mondwan/py-iems5718-asg2 | cd5f49148e5ecdc96929d1583e82cc1011ada947 | a4db0680a8fa10d1ad625d1996861b796ad46cef | refs/heads/master | 2021-01-18T08:13:00.852027 | 2016-02-28T16:39:04 | 2016-02-28T16:39:13 | 52,731,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | """
- `File`: constants.py
- `Author`: Mond WAN
- `Email`: mondwan.1015@gmail.com
- `Github`: https://github.com/mondwan
- `Description`: Keep project's constant
"""
import os
PROJECT_DIR = os.path.dirname(__file__)
TPL_DIR = os.path.join(PROJECT_DIR, 'tpl')
| [
"mondwan.1015@gmail.com"
] | mondwan.1015@gmail.com |
fca38b0972f451fc1e1547209cc330ca88b8d125 | f14a1181b273de29dd07f3aba4ffa099633fbfcc | /indiapets/pets/templatetags/extra.py | 0dcdb7a17cd27e5b3ed857f1a04436aa7efab297 | [] | no_license | sanjaysupanch/indiapets | 9ed866a4240a53b01133087729051ad4ed6004f8 | 1ccfda2a355842d360095a876d323262b71155f1 | refs/heads/master | 2021-01-26T09:18:54.099520 | 2020-07-25T06:01:22 | 2020-07-25T06:01:22 | 243,397,755 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django import template
register=template.Library()
@register.filter
def add(arg1,arg2):
#print(str(arg1) + str(arg2))
return str(arg1) + str(arg2)
| [
"deepesh.b17@iiits.in"
] | deepesh.b17@iiits.in |
e1a5df95d6a7e0693efa254af2daa09d4db06a79 | a1e019f6427828fe7c2b0bdea7d4723ddb7c0734 | /src/model/keras_base_lstm_span_v2.py | 47504d6ccc27418ab5bbb12a0e9671e56cf128f3 | [] | no_license | wenjie-p/pitch_range | 0ecf7edef6bd1eb746d4bdad82814c4922b7bb73 | b1aa30a9434ab1dffbd3b5e1a172fd7cd44277ca | refs/heads/master | 2020-04-15T10:25:41.157383 | 2019-04-11T02:54:47 | 2019-04-11T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,620 | py | #!/usr/bin/env python
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
import sys
from datetime import datetime
import numpy as np
from keras.models import Sequential, load_model
from keras.layers import Dense, Activation, Dropout, TimeDistributed, LSTM, Bidirectional
from keras.optimizers import Adam
from sklearn.p... | [
"thisispwj@outlook.com"
] | thisispwj@outlook.com |
d3f6e09c409e5822f9cc03317a91def5d40649bd | 17b8918cdb3ab5bfde232b332874656c92472e0e | /Ejemplos_Parser/Estructura.py | c4218a8b0dcc630f5bf8c69233a65fb721cad9aa | [] | no_license | xelop/Compilador-mypy | 7ab956eaba76eb62a42bedd20cf3401f077afe3e | f9c3db3098568a8f98168023549a0d3fc3cb8c7b | refs/heads/master | 2021-01-09T20:52:39.087906 | 2016-06-22T01:26:26 | 2016-06-22T01:26:26 | 59,395,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
int x
x = X + c
int y # error porque ya habia empezado el codigo
w = a+ v + b
def funcion (int y): # funcion fuera de lugar
w = a+ v + b
;
| [
"josuearrietasalas@gmail.com"
] | josuearrietasalas@gmail.com |
6ace4545ff4e86921e6fef66bb00a43e5b3cc24e | 92df79eff5206a0bb8346032324aff4949c1e857 | /MDS_Script.py | a6a8f0fd28e7d13514e96de117a7115d50d8e2d5 | [] | no_license | ysriram1/Model-Space-Waldo | 56d72629cd1bce76bfbee58690d8ceff0ca020bc | 523b065afed76082430c366f85a93525c140a0fd | refs/heads/master | 2020-04-17T03:09:52.314086 | 2016-09-14T20:07:44 | 2016-09-14T20:07:44 | 67,007,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 31 00:14:21 2016
@author: SYARLAG1
"""
import arff
import numpy as np
import os
os.chdir('C:/Users/SYARLAG1/Desktop/Model-Space-Waldo')
temp_fulldataSet = arff.load(open('./data/70s.arff', 'rb')) #just to test
fullDataDict = {}
dataInfoDict = {}
for fileName in os.l... | [
"SYARLAG1@cstcis.cti.depaul.edu"
] | SYARLAG1@cstcis.cti.depaul.edu |
c1c011df31ae0c941a9eb37d0c9964d3c7b34acf | c2b880dadeaebc0099c1c659db5b5925e0317de4 | /myenv/lib/python3.8/site-packages/ellipticcurve/ecdsa.py | 24e44f737227368e79f119b51fa3f782810248ec | [] | no_license | nikhilkumily/beinex | 6cc1527b2c277a1541e11f5546f20f1c17eab246 | daefe3e2040de169fa2a3f762d687279ec30bd61 | refs/heads/main | 2023-08-16T09:57:32.587488 | 2021-10-20T13:28:37 | 2021-10-20T13:28:37 | 419,336,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | from hashlib import sha256
from .signature import Signature
from .math import Math
from .utils.integer import RandomInteger
from .utils.binary import numberFromByteString
from .utils.compatibility import *
class Ecdsa:
@classmethod
def sign(cls, message, privateKey, hashfunc=sha256):
byteMessage = ha... | [
"nikhil@farmersfz.com"
] | nikhil@farmersfz.com |
bd88913cd00fdc48287ff7dcb6dbaaf41c91ef03 | 706d7b8df4881df0660fb73d07736cf29689e99f | /planner/planner.py | 44557b923644d1035fa5b8ffcd170e83df375830 | [] | no_license | moezubair/autonomic-manager | 95fb5745c9948796c7d98f65ad965badd1b65174 | 3f7dd442683e31ee5d5ac036e09852998ee65ba5 | refs/heads/master | 2021-05-01T15:32:14.361656 | 2015-07-11T07:16:16 | 2015-07-11T07:16:16 | 38,545,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | __author__ = 'Sparwood'
__author__ = 'Muhammad Zubair'
import sys
import time
sys.path.insert(0, '../')
from KnowledgeBase import *
from types import NoneType
##Planner needs to do the following tasks
## 1. Read latest item from the analyzer tables
## 2. Read the policy table
## 3. Calculate the new volume
## 4. Send t... | [
"mzubair@uvic.ca"
] | mzubair@uvic.ca |
4e0edaf1cd36c0f931aac8d2103253e56aa72e17 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200524142534.py | 267e8eb35d054308ed642c67fdebaceeb181260e | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | def solution(N):
print(N)
maximumCount = 0
number = format(9,"b")
print("wow",number)
s = [str(i) for i in number]
binary = int("".join(s))
intialNumber = None
lastNumber = None
totalCount = 0
print("binary",number)
for i in range(len(str(number... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1618a4032e5a8a01ad167263f6fa500ebec6f8bf | ec6befe8126abf2bdb0b4df045ae162c26d9edc9 | /network_util.py | f76121a41b632971c69ccbd0c09617ad8221cec9 | [
"MIT"
] | permissive | ainaracatgirl/full-body-aruco | 74da6660b8da749b3bf032ba6e21e7de3047379c | bf15e3274fc55d7ea6c51772d138933cdc0e00ac | refs/heads/main | 2023-08-03T02:07:33.678919 | 2021-05-26T15:38:17 | 2021-05-26T15:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import socket
import struct
from datetime import timezone, datetime
UDP_IP = "127.0.0.1"
UDP_PORT = 3869
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Setup the communication using "timestamp = 0"
smsg = struct.pack('<Qcffffff', 0, b'h', 0, 0, 0, 0, 0, 0)
sock.sendto(smsg, (UDP_IP, UDP_PORT))
smsg = struc... | [
"jancraft888@gmail.com"
] | jancraft888@gmail.com |
d1c765784884bb01fd24afc01ef171c6c03dad97 | 4fdafad1dbc7b964e65ca69256477384b415b7b8 | /增删改查/project/urls.py | b2af8329b683d0b6ed033816396189f28e4bee2b | [] | no_license | langjiliang/lang | 7926e73aa73416623ad02090542b8183e3bddf56 | 77c9a610f32c712f53f11681f0ec6ec5f26b85e4 | refs/heads/master | 2020-04-04T10:11:07.360297 | 2018-11-02T15:06:23 | 2018-11-02T15:06:23 | 155,845,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Cla... | [
"1466816779@qq.com"
] | 1466816779@qq.com |
045960da4e96bdcbe17228f8e006f6bfdd2723eb | 649185c9b064998420b157c12d34436571b6f8e8 | /app/migrations/0003_userprofile_self_introduction.py | 2cfdf35650c7329b910e52746be11985f46c1ff0 | [] | no_license | JackyCafe/GoodVillages | 2bc22000ec81507af72f587d0def85f1b9e4ebc5 | 8871b2f6a920aa861ea7ed0d728817c16bae1cfe | refs/heads/master | 2023-03-02T16:48:57.125788 | 2021-02-15T03:57:18 | 2021-02-15T03:57:18 | 304,577,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 3.0.8 on 2021-02-09 23:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0002_auto_20210128_1600'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='self_introdu... | [
"powerworker1234@gmail.com"
] | powerworker1234@gmail.com |
65fdd3c7cd2348c198158cba773f5c5844ee4597 | 4ca0b9d8beec6d4ac2ac64b53429b298b7819311 | /pick_up_and_delivery_2modes.py | b211c4c41808b7fe389dc6c11e872fbaead9c243 | [] | no_license | lisarah/mdp | 36097040f7b6d80d9eddb044c644cd0d6ab005e0 | fc6915aad79e6f9525d485c6fe00bf0d98ca8f53 | refs/heads/master | 2022-06-09T15:46:48.335282 | 2022-06-02T02:56:30 | 2022-06-02T02:56:30 | 207,250,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 31 14:24:02 2022
Pick up drop off 2 modes
@author: Sarah Li
"""
import numpy as np
import visualization as vs
import util as ut
import matplotlib.pyplot as plt
import pandas as pd
import MDP_algorithms.mdp_state_action as st
import MDP_algorithms.value_iteration as dp
im... | [
"crab.apples00@gmail.com"
] | crab.apples00@gmail.com |
5192d3118f9993873073dd8a149ce2ddad6c2762 | 79f3131d823061a267c93d0d1972e683366ef464 | /app/models.py | c25388b85977bb0ee27e846a96317072bfbc3449 | [] | no_license | MeteoR-OI/bd-climato | 3a8fba36e2671e405bc8611ca9aaac49fed32263 | 5c5afbacd8db22b19fcebdd7303c91313280ba64 | refs/heads/master | 2023-08-19T14:05:45.737907 | 2023-05-04T09:51:31 | 2023-05-04T09:51:31 | 146,564,543 | 1 | 0 | null | 2023-02-22T18:17:59 | 2018-08-29T07:48:52 | Python | UTF-8 | Python | false | false | 16,243 | py | from django.db import models
from django.db.models import Index, UniqueConstraint, Q
class DateTimeFieldNoTZ(models.Field):
def db_type(self, connection):
return 'timestamp'
# class Poste(ExportModelOperationsMixin('poste'), models.Model):
class Poste(models.Model):
# mandatory fields
id = model... | [
"nicolas@cuvillier.net"
] | nicolas@cuvillier.net |
f5bf1d970d4fabb61a8831149bb32d29440852eb | a6ae216a1a5ed36562a7c25c63ff83dd7c146f70 | /vndk/tools/definition-tool/tests/test_elf_linker.py | dbdd95eef7d8f3979916964688112b3ba8cddb57 | [
"Apache-2.0"
] | permissive | cuizaixi/platform_development | 32dc08f7e403c82e3c74bfe0d9f0b7564d53047b | 68b3022d17d55c3b377a43e8c3023d6139e3ef5d | refs/heads/master | 2021-01-24T18:25:37.359722 | 2017-03-09T07:03:15 | 2017-03-09T07:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,219 | py | #!/usr/bin/env python3
from __future__ import print_function
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import unittest
from compat import StringIO
from vndk_definition_tool import ELF, ELFLinker, PT_SYSTEM, PT_VENDOR
class GraphBuilder(object):
_PARTITIO... | [
"loganchien@google.com"
] | loganchien@google.com |
6dae4ee2bf1505ab711c664164bcacf2754fe3a3 | 6335ba0b47a1a20e7773f274e21a4d3699ba5793 | /ex25.py | 0b38863470b971fe95ef17dfbeb3ca94373c9b61 | [] | no_license | Hanxiaorong/Python-exercises | 666f3474c47a5b1295a4de8bf51314979a285e64 | a70919f794fdd6e4ed73946cb23a1225dacdcb21 | refs/heads/master | 2021-01-02T08:10:46.952228 | 2017-08-13T14:30:03 | 2017-08-13T14:30:03 | 98,953,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | def break_words(stuff):
"""This function will break up words for us."""
words = stuff.split(' ')
return words
def sort_words(words):
"""Sorts the words."""
return sorted(words)
def print_first_word(words):
"""Prints the first word after poping it off."""
word = words.pop(0)
... | [
"noreply@github.com"
] | Hanxiaorong.noreply@github.com |
7fd767a822a34cdfb416767d5d16dcc885db8e5b | 5674db7fd901359b6b0e05525133cbf27fb612d7 | /routes.py | 31f53f3ea3bebea0ccebacd585aaadbce11aeb48 | [] | no_license | ZiadAbass/DayTripper | 66c6dbbc9c6447258159d4d5af9e79252c798462 | 8e717185b04f4c839cd4a3fdfa49d2d0b3d77c53 | refs/heads/master | 2023-01-14T01:38:02.501160 | 2020-02-12T20:34:54 | 2020-02-12T20:34:54 | 240,102,428 | 0 | 1 | null | 2023-01-07T14:46:48 | 2020-02-12T19:56:46 | TypeScript | UTF-8 | Python | false | false | 1,402 | py | #
import numpy as np
import matplotlib.pyplot as plt
N=20
np.random.seed(46)
points_original = np.random.normal(loc=0.5, scale=0.5, size=(N, 2))
points = list(points_original)
A = [0,0]
B = [1, 1]
path = []
def insert(arr, index, el):
a = arr.copy()
a.insert(index, el)
return a
... | [
"el16za@leeds.ac.uk"
] | el16za@leeds.ac.uk |
721e9268d352f8c85508d0063c8e61cf288831b9 | feda93b7c67b60759bbff2ffd7f7bb2b71ed4bde | /convertToBase7.py | 07bdb887ce8e9d15534b6541dbd7db599ef03175 | [] | no_license | unsortedtosorted/codeChallenges | fcc8d92cc568922f2eb3b492c530e2e93d0e95ab | de8f9e7a7c45e325ac0de43a4e1f711a7c6a0a0c | refs/heads/master | 2020-04-04T14:38:43.538723 | 2019-03-14T03:24:49 | 2019-03-14T03:24:49 | 156,006,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | """
7 : 10
7/7 --> div=1, rem=0
14 : 20
14/7 --> div=2, rem=0
100: 202
100/7 --> div=14, rem=2
14/7 --> div=2 , rem=0
151:304
152/7 --> div=22, rem=4
22 --> div=3, rem=2
"""
class Solution(object):
def convertToBase7(self, num):
"""
:type num: int
:rtype: str
"""
if... | [
"noreply@github.com"
] | unsortedtosorted.noreply@github.com |
78ffed87f713d3a8dc3b7f88d12dd15354d53019 | 11587d450eb274a4684a393bd1073ea7cf6e28bf | /codingtest/week13/sequential_sum.py | b370fa4b7d8f1ec52c12b19dc448e31e15d193df | [] | no_license | Greek-and-Roman-God/Athena | 3b45869806ea06812e3d26661b159294fb49593b | 73a3a24df9667402258bff038325fd31cca36cf1 | refs/heads/main | 2023-05-28T23:04:10.760717 | 2021-06-13T04:39:31 | 2021-06-13T04:39:31 | 308,242,740 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # 소수의 연속합
n=int(input())
temp=[True]*(n+1)
end=round(n**0.5)+1
for i in range(2,end):
if temp[i]:
for j in range(i+i, n+1, i):
temp[j]=False
prime=[i for i in range(2, n+1) if temp[i]]
cnt=0
for i in range(len(prime)):
seq_sum=0
idx=i
while seq_sum<=n and idx<=len(prime):
if seq_sum==n:
... | [
"yelin1106@naver.com"
] | yelin1106@naver.com |
9fc63b6c43092db4d81396b60fb0b2da13b59178 | d6d4e2b41c6f780899b615023923c63100f6151a | /models/experimental.py | bf71f69ddf9bbd090a76af248919447179c58752 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | godspeed1989/yolov5-pytorch-coco128 | c60363bbfc372b9e33617c5fbc137bb523d2f86c | 41032eee2d89ce29323a209cc8a714d12d8b82f3 | refs/heads/master | 2022-11-28T06:19:59.063991 | 2020-08-07T05:01:52 | 2020-08-07T05:01:52 | 285,306,039 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,621 | py | # This file contains experimental modules
import numpy as np
import torch
import torch.nn as nn
from models.common import Conv, DWConv
from utils.google_utils import attempt_download
class CrossConv(nn.Module):
# Cross Convolution Downsample
def __init__(self, c1, c2, k=3, s=1, g=1, e=1.0, shortcut=False):
... | [
"tongxinjichu@gmail.com"
] | tongxinjichu@gmail.com |
c9f03ee17516a0084b56d702c831e0fc3a4e2fef | bfde55ae87b0070918211b941177854facbc4bbe | /software/python/test_speed.py | fa5e92e8c2f5a5ee639f65295a41e7041bdfd524 | [] | no_license | huangqi412/LCSDR | 1160dc839da79b4154ea51572b2039a33eef9f75 | 576114d3fee97106431b5672fb7774b7bd366579 | refs/heads/master | 2020-04-08T23:03:27.816857 | 2018-01-17T02:03:11 | 2018-01-17T02:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | #!/usr/bin/env python
#
# Copyright 2012 Jared Boone
#
# This file is part of HackRF.
#
# 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 2, or (at your option)
# any later version.... | [
"llu@phytec.cn"
] | llu@phytec.cn |
72464cd7d94755a7b3eb3218024a22bab06422ee | a4f6ba6243c951323b2a3810b4ec85713c65ab97 | /Python/Basic/Lab22.py | 0f6e964fbf2a3a0fe874da11f07c2b6d4e681a3e | [] | no_license | DreamingDataScientist/Learnning_R_Python | d405a8cca4651bdf65207f906b2549b543b12c18 | 46007e3683ef937957aa24bc0d7a91b0bb7da509 | refs/heads/master | 2021-04-06T02:49:18.167985 | 2018-03-18T04:17:34 | 2018-03-18T04:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py |
#리스트가 주어지면 이것의 가운데에 있는 요소값을 출력
a = [1,2,6,8,4]
b = [1,2,6,8,4,10]
print(a[2])
print(b[2],b[3])
size = len(a)
mid = float(size/2)
print(mid)
# 함수를 완성해서 매개변수 list의 평균값을 return하도록 만들어 보세요.
list10 = [1,2,3,4,5,6,7,8,9,10]
def average(list10):
for i in range(len(list10)):
tot = list10[i]
return tot
pri... | [
"icanyoucanwecan24@gmail.com"
] | icanyoucanwecan24@gmail.com |
188e8842ff8d6334b522001ad8eb576bab60a34c | 32b3a91ef1ffa2649074542dd85e7196b0a63d26 | /Fibonacci(input)/fib.py | 64c73e9a0d05f2c9858a1ceeb735212da1d0ea98 | [
"MIT"
] | permissive | HtooHunn/myprojects | 4d8d7102604898dfec6ed525b5741ce24c551ad3 | 2890f761255dc4305891de33434e93b54e1861e6 | refs/heads/master | 2022-11-06T15:26:52.421568 | 2020-06-25T13:36:18 | 2020-06-25T13:36:18 | 274,924,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | fib.py
import fibonacci
f = fibonacci.fib
f (200)
fibonacci.fib(10000)
--------------------
from fibonacci import fib, fib2
f = fib2(500)
print(f)
----------------
from fibonacci import *
fib(500)
print(fib2(500))
---------------
import fibonacci as fi
fi.fib(500)
---------------------
from fibonacci import... | [
"htetmyetnaing433@gmail.com"
] | htetmyetnaing433@gmail.com |
08051d4ff69fe47828e0a1e1eec07cd1c8a755b5 | 643ee0df8382ed729f73338aa807dc9334a47161 | /EstruturaDeRepetição.py | ffdfdfad9947e2c3518ded898f2be1af52f5e497 | [] | no_license | enzomaneira/Python | a4e595c189e01e627f61b82be67714ef3f725593 | 634d282ab3d33bf5065f7a14c124d92b2aa48ad8 | refs/heads/main | 2023-05-31T01:44:33.056480 | 2021-06-24T20:30:43 | 2021-06-24T20:30:43 | 380,040,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,618 | py | """"
user = input('Insira o nome usuário: ')
print(f'Userário: {user}')
senha = input('Insira a senha: ')
confsenha = input('Insira senha novamente: ')
while senha != confsenha:
print('senhas incompativeis')
confsenha = input('Insira senha novamente: ')
else:
print('Cadastrado com sucesso')
print('Cadast... | [
"noreply@github.com"
] | enzomaneira.noreply@github.com |
c69d0fb5e9231f73a68c2e7cb1e4dbd1d6a71f8d | 31f37ed1a3f75250ce65e841688202617dc52e6e | /07.-Ejercicios/ejercicio9.py | 6cbcdc903ebeb248e39f4d6a9b757de852d7f29b | [] | no_license | MiguelAngel11-web/MasterInPython | 1f08e4d74a637355dc64b35b0be5d8aca35d28bf | 31837c07729ea32cecba826e7bfe33b0cef28041 | refs/heads/master | 2023-03-14T15:16:06.567115 | 2021-03-07T22:08:50 | 2021-03-07T22:08:50 | 344,953,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | """
Hacer un programa que pida numeros indefinidamente
hasta que matere el numero 111
"""
num_indefinido = int(input("Teclea un número: "))
while(num_indefinido != 111):
num_indefinido = int(input("Teclea un número: "))
else:
print(f"Has escogido el número maestro {num_indefinido}")
| [
"miguel_asc11@hotmail.com"
] | miguel_asc11@hotmail.com |
8addd8263c38093fc2cbab1e0e73d7dc7a046067 | 06d6090050ea348578eb4f26255b609463a34529 | /ex9.py | 30916092d64cee962a57b807b45ea3e78fcf4f47 | [] | no_license | loospan/LPHW | 5796a0983a0f13d0e664da738338b74e6cb6fa7e | b9727b2b457cc78fd4af3b0ba2ae8f572b5a1e81 | refs/heads/master | 2020-06-14T16:30:31.014919 | 2016-12-08T03:45:08 | 2016-12-08T03:45:08 | 75,159,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Here's some new strange stuff, remember type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan/nFeb/nMar/nApr/nMay/nJun/nJul/nAug"
print "Here are the days: ", days
print "Here are the months: ", months
print """
There's something going on here.
With the three double-quotes.
We'll be able to type as m... | [
"mckaiaspan@gmail.com"
] | mckaiaspan@gmail.com |
8e468254ec7056e5741b4eaf411219f4ce1c40f1 | fc4a6d3658a182e9654e9e67016bf06c9095891f | /plugins/commands.py | 37df74a9bc38c48c060a0914413defe480dbaf10 | [
"MIT"
] | permissive | TamilBots/instagram | 43eba7c56f16f66f37763af22985c04edf93754f | 51ee6548398ca9dd5c7d026ffa2ad9aac543506f | refs/heads/main | 2023-07-21T11:45:43.418831 | 2021-09-04T10:56:30 | 2021-09-04T10:56:30 | 403,024,497 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,131 | py | #MIT License
#Copyright (c) 2021 Sathishzus
#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 without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, ... | [
"noreply@github.com"
] | TamilBots.noreply@github.com |
8483392f85338b9ab4a9e0aa3e6925ca401d927a | 256fbfbc34952d60ebb1ce5cf92ba107f8d3e905 | /backend/agalot_app_23898/urls.py | 1479158011d81c28eeb290da27286e3ffb93a350 | [] | no_license | crowdbotics-apps/agalot-app-23898 | 8a337647047d79589bd2533cf13dda168a776f8a | 1fd14f5a1dc70a8c436e8a19c45164a3407d4a9d | refs/heads/master | 2023-02-17T13:43:56.206704 | 2021-01-17T17:12:07 | 2021-01-17T17:12:07 | 330,443,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | """agalot_app_23898 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')
Cl... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
091f508887b571ce10e54a0c0cf8a31e340abee2 | d9e60e1066c06fddb331febb1c739f81a0bf86d2 | /src/epicjs/serializers/koans.py | e42a6c7fd2651c34301604865782fb4993378fd8 | [] | no_license | karolmajta/epicjs-api | 2a482f5b9bcb4ab04d89f9c01b08f4a61f569352 | fc966b1b7549a7a610b7f6da5f921b7a62f7567f | refs/heads/master | 2020-04-05T08:05:28.009940 | 2013-12-31T00:37:28 | 2013-12-31T00:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | '''
Created on 6 lis 2013
@author: karol
'''
from flask.ext.restful import fields # @UnresolvedImport
from epicjs.fields import Unicode
meditation_list_fields = {
'name': Unicode,
'slug': Unicode,
}
meditation_detail_fields = {
'name': Unicode,
'slug': Unicode,
'koans': fields.List(fields.Nested... | [
"karolmajta@gmail.com"
] | karolmajta@gmail.com |
ea0d128316446efb65340c7e099e53c08c2cd31a | a8eff877b1c88c6779b9c83899830ba7fa130314 | /LottoGen.py | 25b11de8da7ed71771047ada851e118caea492dc | [] | no_license | GolanSho/pyscripts | 240f5a72fc10c9bee4d44a7b32e39417a2dfd8a9 | a6f47f7debcd93b61cfee67e11882ac9e65b799c | refs/heads/master | 2023-07-10T22:26:30.733634 | 2023-06-25T14:14:26 | 2023-06-25T14:14:26 | 180,607,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py |
import random
num_gen = []
def random_gen():
n = random.randint(1, 37)
if n in num_gen:
while n in num_gen:
n = random.randint(1, 37)
return n
ans = input('how many times? ')
for x in range(int(ans)):
num_gen.clear()
for i in range(6):
to_add = ran... | [
"noreply@github.com"
] | GolanSho.noreply@github.com |
cf3fa470d2b26fc8e8e1b52f221ae9c7cef9a3ae | d839706f957492d402987f9af0f59903861877c3 | /User_app/migrations/0001_initial.py | 0b709f2b10e5a42b0f09d11f4ce75ebb6411fd2c | [] | no_license | AlokVeerChauhan/Elite_news | 4d5ee577828774ce4ba7401a514195d4b338c3ce | aece8c64472765e8fd7422ec19118b6fff6d1a21 | refs/heads/master | 2020-05-05T13:49:34.964335 | 2019-04-08T07:34:27 | 2019-04-08T07:34:27 | 180,094,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | # Generated by Django 2.0.6 on 2019-04-08 05:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User_Login',
fields=[
... | [
"alok.lucky.chauhan@gmail.com"
] | alok.lucky.chauhan@gmail.com |
ccc266faf22b9a3e4014b84973c350f72d9a50ef | cd80309cea94bddc598e21e5f80bb494d6663aae | /consumers/faust_stream.py | 770080522616e7c84dfb42947c9075d0bc185ab3 | [] | no_license | darioxz/optimizing-public-transport | 122781babc69129edf5e6961fba00ddb5b58a601 | 371460a75a1613211e25cde9b1ade618464afdf0 | refs/heads/master | 2023-06-20T13:17:10.358902 | 2021-07-14T14:08:40 | 2021-07-14T14:08:40 | 370,229,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | """Defines trends calculations for stations"""
import logging
import faust
logger = logging.getLogger(__name__)
# Faust will ingest records from Kafka in this format
class Station(faust.Record):
stop_id: int
direction_id: str
stop_name: str
station_name: str
station_descriptive_name: str
st... | [
"dario.roethlisberger@gmail.com"
] | dario.roethlisberger@gmail.com |
d9f32911e4181a8fb5ecb20899a76a48f610160a | f90753ac1e6e80d19e3d85198556501bd4d85565 | /WaterCalTracking.py | 09421fb18c6bf48d95ceb07a4cb674ab57eb6ece | [] | no_license | minakian/WaterLevelTracking | 06f5c7ce301d410128b06bb78136cafb0d246420 | a61a6e2fa97eda7f7da088142acd98c549c1f94e | refs/heads/master | 2020-04-13T17:08:41.796050 | 2019-01-14T18:48:04 | 2019-01-14T18:48:04 | 163,339,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | import sys
import glob
import serial
import time
import csv
import argparse
from datetime import datetime
flag_print = 0
def serial_ports():
""" Opens a port with the H1 Humidifier
Reads the water tank information every X seconds
Writes that data to a .csv file
"""
if sys.platform.startswith('win'):... | [
"stephenminakian@gmail.com"
] | stephenminakian@gmail.com |
a7b1c3fb9c93bfc092c70e662458f1edfcb3034d | 6dde9d7cbab3ccd30baebe85ab2f7b8d3734b3e3 | /board_functions.py | c39730ef07619e0342b55a8018c6e1978a45a947 | [] | no_license | bonarl/Flex-Tester | a33413091d0d85466e22a5e34134ff1a8fb2a40e | 9eed2220823c69e1e88c3975fc4e202001ef1411 | refs/heads/master | 2020-05-24T11:42:30.778317 | 2017-03-21T15:21:43 | 2017-03-21T15:21:43 | 84,852,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,660 | py | import sys
import glob
import serial
import string
class Del:
def __init__(self, keep=string.digits):
self.comp = dict((ord(c),c) for c in keep)
def __getitem__(self, k):
return self.comp.get(k)
DD = Del()
def listSerialPorts():
""" Lists serial port names
:raises EnvironmentError:
... | [
"bonarrobb@hotmail.co.uk"
] | bonarrobb@hotmail.co.uk |
ad69e12979db906d8d65bf568e8987344c009603 | 436bdc7ba4879be8640bda0378c1d7b4a4552956 | /Recommenders/SLIM_BPR/Base/Evaluation/Evaluator.py | c4608fa9e7c322206a8f3587d2f92cdf9360a6e3 | [
"MIT"
] | permissive | GiorgioPolla/recommender_systems_challenge | 391fa7d260a77ad804db443bbbcf5dc316b96243 | ad55f843df98ca93b02211cb050190a24165853e | refs/heads/master | 2020-08-06T13:08:29.803683 | 2019-10-03T01:46:17 | 2019-10-03T01:46:17 | 212,986,864 | 1 | 0 | MIT | 2019-10-05T11:18:23 | 2019-10-05T11:18:23 | null | UTF-8 | Python | false | false | 35,902 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 26/06/18
@author: Maurizio Ferrari Dacrema
"""
import numpy as np
import scipy.sparse as sps
import time, sys, copy
from enum import Enum
from SLIM_BPR.Base.Evaluation.metrics import roc_auc, precision, recall, recall_min_test_len, map, ndcg, rr, arhr, \... | [
"paolo1.romeo@mail.polimi.it"
] | paolo1.romeo@mail.polimi.it |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.