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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e9cb640caa292cf1e0dba0d93469495560e9db4 | 3144e03878ae363e4e13b9301e660eb037ac1194 | /classes.py | 032bb9d596ff7479a022e20fb20a94427f91a50d | [] | no_license | ManuelBerrueta/Python_Samples | 5360568672bb5c72d15c0d8ded6946f8cfbf5565 | 30a3d062d2b9739fc9144ea52392af393b4d1499 | refs/heads/master | 2021-05-10T10:06:10.366956 | 2018-01-25T17:57:12 | 2018-01-25T17:57:12 | 118,947,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class Person:
def __init__(self, name, hair_color, height):
self.name = name
self.hair_color = hair_color
self.height = height
def print_name(self):
print(self.name)
def print_height(self):
print(self.height)
def print_hair_color(self):
print(self.hair... | [
"manuelberrueta@gmail.com"
] | manuelberrueta@gmail.com |
16e7159ce168a3a5cfb1bcc18a569e443c8d1831 | cc5becbedc6cdf9d2f49ffa40855af44d01398ff | /tvae/data/imagenet.py | 7526676d918ab938c071934d78e6f3314892daad | [
"MIT"
] | permissive | akandykeller/CategorySelectiveTVAE | ad7f16beeed3a77886629fe74a393b0e32385522 | 30eb0a20ba1f0fbca6d58d642b84d4c025cf99ae | refs/heads/master | 2023-09-04T06:59:29.816738 | 2021-10-25T10:52:44 | 2021-10-25T10:52:44 | 420,985,525 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,451 | py | import os
import torch
from torch.utils.data import DataLoader
import torchvision.datasets as sets
import torchvision.transforms as transforms
import numpy as np
def get_mean_std(dir, ratio=0.01):
mean = [0.48300076, 0.45126104, 0.3998704]
std = [0.26990137, 0.26078254, 0.27288908]
return mean, std
class... | [
"akandykeller@gmail.com"
] | akandykeller@gmail.com |
94d1d05fb8d57d78464d457f6f5b3b559ec2ea52 | 93dc746360d718d25335a842c41835718314f15b | /Events/models.py | 42f076e48c63f1c903ff7e2071d64bf24e43cebf | [] | no_license | lindajoy/Django-admin | 9a56c102e0103fb71700f1718e57d6d43548c3fe | 4cc69c364ed4e9ee8235c113971791dc3095c833 | refs/heads/master | 2020-07-23T11:34:20.672332 | 2019-09-10T11:46:15 | 2019-09-10T11:46:15 | 207,544,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from django.db import models
# Create your models here.
from entities.models import Hero, Villain
class Epic(models.Model):
name = models.CharField(max_length=255)
participating_heroes = models.ManyToManyField(Hero)
participating_villains = models.ManyToManyField(Villain)
class Event(models.Model):
... | [
"wawirajoy98@gmail.com"
] | wawirajoy98@gmail.com |
de342328c767ebf5a39dcc39077019c9f9bffd9e | c61eb1a59f66d36ad0c2a3dffc172614d9259623 | /week6/github_crowler.py | b854b6a448bfb82d3dbfe299708f4802df929cab | [
"BSD-3-Clause"
] | permissive | sevgo/Programming101 | d8361a057f78bc91110082584c7d4cbc05746f10 | ac25c4d9695563b449a629c60ec77a739c9f5be3 | refs/heads/master | 2021-09-28T16:52:22.290888 | 2021-09-16T07:12:53 | 2021-09-16T07:12:53 | 30,528,205 | 0 | 0 | BSD-3-Clause | 2021-09-16T07:12:54 | 2015-02-09T09:28:31 | Python | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python3
from graf import Graph
import requests as _req
import json
def github_auth(path):
with open(path, 'r') as fd:
cred = json.load(fd)
return dict(cred)
def github_request(credentials, user):
_url = credentials['url']
_id = credentials['client_id']
_secret = credential... | [
"sevgin.mustafov@outlook.com"
] | sevgin.mustafov@outlook.com |
e9f3f9f51a547f3f2aa65e33127282f566ad08a5 | 39b8aa964883b2bde4349e0c9c38e3233c310548 | /src/Implement Queue using Stacks.py | 421724c0e798d0e25106167e09fd34fd1f92ff3e | [] | no_license | orifake/leetcode-python | 053b82491e0b8d6197dd12d92eec5883211285db | 8e375ebebe0a0285efefc33ed61afb22f41d0c75 | refs/heads/master | 2023-03-09T14:32:17.833456 | 2021-02-26T16:09:31 | 2021-02-26T16:09:31 | 264,466,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.queue = []
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
return self.queue.append(x)
def pop(self) -> int:
"""
... | [
"349758699@qq.com"
] | 349758699@qq.com |
a19c420591b67c5d8f0e3fdc69c2685ed23c4316 | dda21525f82e7f1fa877aba4ce4cffc5d861851e | /demos/demo_hermite_gaussian_modes.py | 0500e18d07277655cfca8e91e9d970bb996660bf | [] | no_license | Tektronica/laser_mode_locking | 8063a216ea3483b36eeaaca7e1fb7644465f3208 | d005278bc792c727211308090abdb1d0858df991 | refs/heads/master | 2023-05-28T23:32:43.278488 | 2021-06-11T18:22:15 | 2021-06-11T18:22:15 | 357,057,735 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import numpy as np
import matplotlib.pyplot as plt
# https://teaching.smp.uq.edu.au/scims/index.html#course=optics&lecture=hgbeam
n = 0 # Beam order
m = 3 # Beam order
w0 = 2.0 # Beam waist
k = 2 * np.pi / 532.0e-9 # Wavenumber of light
zR = k * w0 ** 2.0 / 2 # Calculate the Rayleigh range
# Setup the cartesi... | [
"ryalho@gmail.com"
] | ryalho@gmail.com |
6c3687ed1872a7666f251b57fb8272135f864c3d | 9ee08b2cd530fa2386a0e46d802b96a67d89a2c4 | /assignment-2/edit-distance.py | a115357d3f5371889dd5cea765762853edfbbf1b | [
"Apache-2.0"
] | permissive | snamburi3/bioinformatics-course-CSE5800 | 25bd78f026c70d790f4f87f57e30ebfd85f3afd8 | ff0257ed083c94b3b84e8a6c57801237c70b92bf | refs/heads/master | 2021-02-03T21:29:29.378425 | 2020-02-27T15:04:48 | 2020-02-27T15:04:48 | 243,544,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | #!/usr/bin/python
import random
from Bio import SeqIO
import sys
def create_matrix(i,j):
d = []
for row in range(0,i):
temp = []
for col in range(0,j):
temp.append(None)
d.append(temp)
return(d)
def levenshtein_formula(d,i, j, v,w):
gap1 = d[i-1][j] + 1
... | [
"sandeep.namburi@jax.org"
] | sandeep.namburi@jax.org |
800bfc292b541e358ca68c9e6c326a8a80714489 | 6581a1c0b04af75ab7d386597ec436bd4937b6df | /pystache/tests/main.py | 7342c91712b8528bdc016eb6c3da6dde4a999216 | [
"MIT"
] | permissive | trenchmortar/pystache | f3ab3263ca0e990176306d3a0de9a4fba441c78f | cc262abf19cd90e34390d5ddb5db30d6f04620fa | refs/heads/master | 2020-04-23T00:33:47.600879 | 2012-04-26T05:49:19 | 2012-04-26T05:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | # coding: utf-8
"""
Exposes a run_tests() function that runs all tests in the project.
This module is for our test console script.
"""
import os
import sys
import unittest
from unittest import TestProgram
import pystache
from pystache.tests.common import PACKAGE_DIR, PROJECT_DIR, SPEC_TEST_DIR, UNITTEST_FILE_PREFI... | [
"chris.jerdonek@gmail.com"
] | chris.jerdonek@gmail.com |
214794ac9668f54a24bb2111beec268967f44235 | 133ba85d1325a31d6644b0f4c6974f4263f76355 | /main.py | 118f4b491a6e38ef57073d321c534cd1ab5c1992 | [] | no_license | bedvision/Stones-and-dragon | 3cef512b107b70cc56fd8e92fbd6021a04e6ab3b | 7d069c3fd2ffc1889d28a2fc63192ddd4282df2e | refs/heads/main | 2023-08-12T02:47:09.339530 | 2021-10-08T08:08:13 | 2021-10-08T08:08:13 | 414,899,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import pygame
import random
from config import *
from Stone import *
from Hero import *
from Dragon import *
from res_sprit import *
random.seed(version = 2)
pygame.init()
pygame.mixer.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("My Game")
all_sprites = pygame.sprite.Group()
cl... | [
"noreply@github.com"
] | bedvision.noreply@github.com |
ba9d6a124953eeb29b7d71eda11e4a3f6f323d8f | 16e2cdd8ed03c08db86dc45d123031ccb73d667c | /room/admin.py | 9299567e64516639c68f35d0ca060367a6f40d12 | [] | no_license | morrismuturi/rentals | 743f1b42cd9b1ee8425f7c0d350847018d83a3ca | 01d40113a7896d9c407a4a901fe6394631511da4 | refs/heads/master | 2022-04-11T11:29:45.927682 | 2020-03-14T09:16:00 | 2020-03-14T09:16:00 | 241,281,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.contrib import admin
from .models import RoomType,Purpose,Location,Room
# Register your models here.
admin.site.register(RoomType)
admin.site.register(Purpose)
admin.site.register(Location)
admin.site.register(Room) | [
"morrismuturi54@gmail.com"
] | morrismuturi54@gmail.com |
56182e2ae37363049e066c6eb3d9b63ce9e57d1f | 22adce2d215077d6fbd68bfba6eb97c3ff01b154 | /TipPooling/djangoproject/tips/migrations/0007_auto_20180502_0603.py | f46ce555ccc631941ec92609a397281518c92c5f | [] | no_license | amaxama/TipPoolingPythonDjango | d46690efa8e98990beef4e99edaf6663cb7d3eb6 | 504ca37698e4a2271e9000baf98efc486d081fb1 | refs/heads/master | 2020-03-14T05:49:19.862886 | 2018-05-22T04:08:44 | 2018-05-22T04:08:44 | 131,471,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,198 | py | # Generated by Django 2.0.4 on 2018-05-02 06:03
from decimal import Decimal
from django.db import migrations, models
import django.db.models.deletion
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('tips', '0006_auto_20180501_0223'),
]
operations = [
... | [
"maxam.anna@gmail.com"
] | maxam.anna@gmail.com |
0455036ef8de11237b43f7dab845673f6387f1e3 | 2d66996672c75aa3edc4a66c298f29d78d475108 | /data/Eirik/NTG-plot.py | d79af9504c055b769ed70b18a1897029f1c1c228 | [
"MIT",
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | NordicESMhub/deep_python | 388c626e6eec7554faaf1c964ca4ba396b8590e8 | 17bceda486dbbb94a8fc4773bbfa716a6d7e6cae | refs/heads/gh-pages | 2020-04-21T12:11:57.897958 | 2019-04-13T16:11:16 | 2019-04-13T16:11:16 | 169,555,185 | 4 | 8 | NOASSERTION | 2019-04-04T09:15:55 | 2019-02-07T10:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 4,683 | py | import pandas as pd
import matplotlib.pyplot as plt #
import numpy as np
import matplotlib.gridspec as gridspec
from matplotlib.widgets import RectangleSelector
import csv
#===============================================================
#Files to read data from
MCD = np.array(pd.read_excel(r"C:\Users\embal... | [
"annefou@geo.uio.no"
] | annefou@geo.uio.no |
15f633e272b1b92e4d97a869ad3ba15c12d17163 | b1b86d8528df27d99ed56ed16f1ba15b5ae78661 | /build_isolated/velodyne_pcl/catkin_generated/generate_cached_setup.py | 4f904fedba7e034ad97a16d679350a13b75ec8ee | [] | no_license | gychen-n/match | 8754ac128b43f81e00faf3ab2af160af70a1d4a3 | ec91f19d104aa4a827c9f66d362f94fe44739cad | refs/heads/main | 2023-04-09T19:56:55.507118 | 2021-04-15T13:39:02 | 2021-04-15T13:39:02 | 358,268,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
74d53c2b672e5561fd977488a351b868c16f479d | e1202f950be0aa6f8531781bf23839eb1c2b54a8 | /DAY_10/20419_지정_헿.py | 1e81043df09e9189c6afd2a6d86733a37c4f6778 | [] | no_license | KingSpongebob/Python-Study | 2ea6f5b0782283a22be7be86b5dc2df361d1bf10 | 5ebed25efe7a471032b6b17e21352ea47d6077f8 | refs/heads/master | 2020-03-06T18:10:55.241874 | 2018-11-15T00:23:03 | 2018-11-15T00:23:03 | 127,002,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from selenium import webdriver
#from selenium.webdriver.common.keys import Keys
from openpyxl import Workbook
driver = webdriver.Chrome('chromedriver')
try:
driver.get('https://www.wemakeprice.com')
print(driver.title)
wmp = driver.find_element_by_id('wrap_main_best_area')
wmp_list = wmp.find_elements_by_tag_nam... | [
"kkingspongebob@gmail.com"
] | kkingspongebob@gmail.com |
b3e302c5006276acceef94c292f99ec6b3392d90 | b91461eade853a8e83d8d1148c416897391f50e9 | /0x07-python-classes/mains/4main.py | b654295f9d454cfcbcd706734faf1b0eb43ece63 | [] | no_license | rdsim8589/holbertonschool-higher_level_programming | 3234a5638d7810743ec8ba976303d03512bc3340 | 772837801f80dcb5e11cf16d3118501050b5f15b | refs/heads/master | 2021-04-29T10:01:19.097360 | 2017-05-04T23:01:39 | 2017-05-04T23:01:39 | 77,849,461 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/python3
Square = __import__('4-square').Square
my_square = Square(89)
print("Area: {} for size: {}".format(my_square.area(), my_square.size))
my_square.size = 3
print("Area: {} for size: {}".format(my_square.area(), my_square.size))
try:
my_square.size = "5 feet"
print("Area: {} for size: {}".form... | [
"rdsim8589@gmail.com"
] | rdsim8589@gmail.com |
668e81327764138e17dd182377c6261ac9586b50 | a8b7abd626c70cc5048be2247eba844639a0dd89 | /day11/bin/start.py | 551d1fc91b61a48511910b5edfafe9446ef5fa2d | [] | no_license | binhy/homework | cfc2309cd436ca59669175f52018c05c72d560f7 | f28c43d2dcc1346407a605509ce4c6f5d77fca12 | refs/heads/master | 2020-05-21T12:20:04.595993 | 2017-02-08T06:42:34 | 2017-02-08T06:42:34 | 49,244,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/python
#coding=utf-8
__author__ = 'yaobin'
import os,sys
BASE_DIR=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
from modules.main import main
if __name__ == '__main__':
main() | [
"qwerty0113250159@126.com"
] | qwerty0113250159@126.com |
d1b0a95e1fa3ea60aaa8fc930aa7961eb07c5aa2 | 242f7087b85ba57f203356e4594c37a590d7e6e1 | /post_multiple.py | 38caa145682fc7b446ff95ce5443cf3687c4f809 | [] | no_license | leoTlr/ctf_logserver | 0e2a8d5e9d8eaa9a105e76cdb392c9d835f70ecf | e9344c4e2254b8c267c84c92d1fdce4257aa3815 | refs/heads/master | 2020-04-24T03:58:59.946736 | 2019-06-09T18:38:21 | 2019-06-09T18:38:21 | 171,687,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | #!/usr/bin/python
# test script for ctf logserver
# sends POST with log entries, grabs JWT from response and sends another POST with JWT
import http.client
from sys import argv, exit
from itertools import count
def usage():
print("usage: {} user [times=2]".format(argv[0]))
print("make sure that there are no ... | [
"leo.teuchtler@hotmail.de"
] | leo.teuchtler@hotmail.de |
984ba6efbb718940964814e10c43ede110431199 | 505870b83e9d3abb2488d45ae04fd1a2d521e830 | /utils/apply_flipping.py | 0af1a6eafab4815c3eca1abba5e62e82db97b0ae | [] | no_license | tanakatsu/padock_photo_classifier | 8f2ebe792a4d2096640b674dd97e192aff551732 | fbe6b6ebd44769a21482d229925e3d3549c507a6 | refs/heads/master | 2021-01-19T22:01:47.296532 | 2017-06-25T10:34:34 | 2017-06-25T10:34:34 | 88,742,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | import os
import argparse
import re
from PIL import Image, ImageOps
parser = argparse.ArgumentParser()
parser.add_argument('directory', type=str, action='store', help='target directory')
parser.add_argument('--dryrun', action='store_true', default=False, help='dry-run flag')
args = parser.parse_args()
print('target d... | [
"tanakatsu1080@gmail.com"
] | tanakatsu1080@gmail.com |
413503c12f4dc6734628644e7c8b0fb1e3e15539 | aeec646a9a2feb6fbaac31d4548d9aa09ad125e3 | /peer_module.py | 879a6662404995a3a8da03457bae8f7f63f7be5e | [
"MIT"
] | permissive | hslee1539/p2p | c0a9798e6da54029373ddf3d2b74ff30dc27e567 | c472271eff409ef345f29ef32f562a5f5e00d3ba | refs/heads/master | 2020-07-18T14:45:33.260168 | 2019-09-10T07:45:45 | 2019-09-10T07:45:45 | 206,264,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,674 | py | import socket
import threading
import random
import p2p
class Peer:
""""""
ip : str
controlPort : int
connectionPorts : list
service : str
peerList : list
maxConnection : int
serverThreads : list
clientThreads : list
serverState : list
running : bool
controlSocket : s... | [
"qq1539@naver.com"
] | qq1539@naver.com |
20052d2c038c157c669de8aa585fdb6a35e0f7b4 | 8d369c853cea867976d2564511340e9992fa5a88 | /OpenImage.py | 8aca5c2418a55dceb7a322b4a419e82c9359cd34 | [] | no_license | danrustia11/rpi405x | b3d3b36aa5e1c45c48ba7fa9492a456d3c812507 | c1b321027b7839af9d022fc162e414fd4ee2d80d | refs/heads/master | 2020-06-11T14:10:09.097004 | 2017-12-17T09:18:34 | 2017-12-17T09:18:34 | 75,648,589 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import numpy as np
import cv2
cv2.__version__
img = cv2.imread('image.jpg',0)
cv2.imshow('display',img)
cv2.waitKey(0)
| [
"noreply@github.com"
] | danrustia11.noreply@github.com |
3798c53a543f4d4a473795e6dedf9fbb1e0ac10f | 0e9e948997a2d7c988ef72a3cece2eb926b5851c | /AS01.py | 0f7de663bd0fdd53a254574ee98e4c7cbbbdadff | [] | no_license | chloe-wong/pythonchallenges | c41ac6b2d3956a9d935b5023762a7c12000987bd | 9a4e7cbcc7de773c02f24be11f29b95918ad9dc7 | refs/heads/master | 2023-09-05T16:12:17.539434 | 2021-11-24T05:59:23 | 2021-11-24T05:59:23 | 287,415,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py |
numbers = input("Input your numbers with spaces inbetween")
nums = numbers.split()
digits = len(nums)
print(nums)
for x in range(len(nums)):
if x in range(len(nums)-1):
if int(nums[x])> int(nums[x+1]):
temp = nums[x]
nums[x] = nums[x+1]
nums[x+1] = temp
print(nums) | [
"noreply@github.com"
] | chloe-wong.noreply@github.com |
f9ece790eacbf46e95f1d3d07829381b2eea5b8c | 83fd29fba65cd87e0162217a28b2298aad959a63 | /venv/bin/easy_install-3.7 | 7d28bedd2ab1c7fb4902243f9f7ac3c2b2713d43 | [] | no_license | ckim42/django-docs-tutorial | 403feb792c29ff50d2c8d462511cdc6516b505a8 | e79c2210d87748fa977120a13b1163c7fb467818 | refs/heads/master | 2022-04-06T23:17:53.344576 | 2020-02-18T05:26:51 | 2020-02-18T05:26:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | 7 | #!/Users/cherishkim/Code/bew12/r-and-r/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cherish.kim@students.makeschool.com"
] | cherish.kim@students.makeschool.com |
5b3279dba995f3daa5e8f35938604fee1efaaadd | 6c9b3bce8889ff99c497c0904fb8f92fb3c1ab30 | /api/user/resources.py | 25f612f0b367d4ca3f6d9ba8910aafd1d1ad3336 | [] | no_license | longdt19/base-backend | 975f81ce00bbf6527aae8264505b60dbbaae3470 | e666cb099de4ef69258f297beb1d5b85b0c15dbc | refs/heads/master | 2022-12-22T02:12:14.437982 | 2018-11-08T10:16:11 | 2018-11-08T10:16:11 | 155,371,524 | 0 | 0 | null | 2022-12-08T01:15:52 | 2018-10-30T11:10:05 | Python | UTF-8 | Python | false | false | 547 | py | from api.common.base_resources import BaseResource
from .forms import ( CreateUserForm, UserListForm )
from .business_logics import user_bl
class UserResouce(BaseResource):
POST_INPUT_SCHEMA = CreateUserForm()
GET_INPUT_SCHEMA = UserListForm()
def get(self):
params = self.parse_request_param... | [
"longdt@vccloud.vn"
] | longdt@vccloud.vn |
d191b94824cb1322f4cb003a411743be6680c404 | 80eef13ae9bcf5116c0b40ff2c6eef5655b8ebd5 | /多线程/协程.py | dd78b97d34cd34152cb63d04f62fd671f378c343 | [] | no_license | shmily-xiao/python_study | 8c53ff4c8f4bf7cd4990a7dc08a65adb300e7683 | 5bd1f7cf0e11345e18938b8c4439cca578e7d7d6 | refs/heads/master | 2021-01-24T07:55:03.872890 | 2019-03-20T13:04:38 | 2019-03-20T13:04:38 | 93,362,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # from bs4 import Beautifulsoup
import requests
import gevent
from gevent import monkey, pool
monkey.patch_all()
jobs = []
links = []
p = pool.Pool(10)
urls = [
'http://www.google.com'
]
def get_links(url):
r = requests.get(url)
if r.status_code == 200:
print r.text
# soup = Beautifulsoup(r.... | [
"wangzaijun1234@126.com"
] | wangzaijun1234@126.com |
7f53a02ffe54ce6ac59ddf141ab26147d828a8de | c79779a1233e95858499143d717a41205932c53d | /pypi_practices/check_readme.py | 87c4304a51e43f77a2ba84c739eb4ed25c7ac8d5 | [
"MIT"
] | permissive | asottile-archive/pypi_practices | a8915fca09619f741f385c000bc98d84f9fd515f | a4da562c471198dd35806c52016fac44bb46c08d | refs/heads/master | 2021-09-15T02:01:34.023997 | 2018-05-24T00:46:27 | 2018-05-24T00:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from __future__ import print_function
import os.path
from pypi_practices.errors import FileValidationError
from pypi_practices.make_entry import make_entry
def check_readme(cwd):
readme_path = os.path.join(cwd, 'README.md')
if not os.path.exists(readme_path):
raise FileValidationError(
... | [
"asottile@umich.edu"
] | asottile@umich.edu |
a3f87fb4f1745c2bec79c37e553133ec433b77d5 | ecdc0460da3eb8597909dd07a19e47f98f07e530 | /backend/backend_managing_system/calendar_app/migrations/0012_auto_20201202_0105.py | b9d124413ffd3b962b4d7246a0d2e336a2845ccd | [] | no_license | AdouniH/management_system | 43c0e536012b648885d34fd0ece1fd054c36b753 | 12a50f574a90887aca9bdafe08492880041d9a1b | refs/heads/main | 2023-03-07T09:07:50.927291 | 2021-02-18T20:28:40 | 2021-02-18T20:28:40 | 310,494,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # Generated by Django 3.1.3 on 2020-12-02 01:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calendar_app', '0011_auto_20201127_0446'),
]
operations = [
migrations.AlterField(
model_name='rdv',
name='duree',
... | [
"houssemadouni11@gmail.com"
] | houssemadouni11@gmail.com |
8db867bdfebd058d6e7f1849e56ad1266a5f6e43 | 4ed184a588440d39cff1db54970cece84232d406 | /lotteplayer_rc.py | f54fed661647e2c9dfa87bffb932c63c8f533b85 | [] | no_license | jkjh8/lotteplayer | 56f9c5687eb1be608c2df2946e82ad027982ec47 | b0e3a2823efd091b266fbc8b6b1544a44033ca57 | refs/heads/main | 2023-02-17T11:30:25.595463 | 2021-01-19T11:14:07 | 2021-01-19T11:14:07 | 330,953,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789,643 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.14.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x01\xcf\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
... | [
"jkjh82@naver.com"
] | jkjh82@naver.com |
c563ed15ee01d2801876c5409a3057ce4e6d8304 | 9a157c032515e1fcc432a9335a9bea508bb73daa | /flask_service/src/service/utils/flask_utils.py | 98c0f4f8538e8476368bd1c7f160c12d951ec89d | [] | no_license | firbath/thinking_in_flask | 4dca7d4788539adb8dbd2c21e139f8502044b263 | 1f504a026a4eef4ab08c0afdd252959ca387a9ca | refs/heads/master | 2023-03-10T23:54:54.233774 | 2023-02-16T13:06:51 | 2023-02-16T13:06:51 | 159,033,983 | 0 | 0 | null | 2022-12-08T09:30:38 | 2018-11-25T13:23:30 | Python | UTF-8 | Python | false | false | 5,959 | py | # -*- coding:utf-8 -*-
"""
File: flask_utils.py
Author: YuFangHui
Date: 2019-05-06
Description:
"""
from datetime import date, time
from datetime import datetime as p_datetime # 有时候会返回datatime类型
from functools import wraps
from flask import current_app
from flask import jsonify
from flask import request
from flask_re... | [
"firbath@163.com"
] | firbath@163.com |
79e8b3e2b66f9a620f64b0138c328ca18b482edf | bcafc058770172fe3a150488421241162709fabc | /wibo1/contacts/migrations/0002_auto__add_field_contact_department.py | 0528106d5b84e7ea0a7734661e7794283317099a | [
"MIT"
] | permissive | connorbolick/wiboserver | 2c1b10a12edf6bc2e95d8dfd4268a924bb654d1c | a00b8d9517c841d9f77827ef9479fa347543b482 | refs/heads/master | 2021-01-19T12:11:49.691914 | 2016-09-23T18:15:24 | 2016-09-23T18:15:24 | 69,049,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Contact.department'
db.add_column('contacts_contact', 'department',
se... | [
"connor.bolick@gmail.com"
] | connor.bolick@gmail.com |
3a3682c5e9b8b2dc53a812f7aa493f976f6a00f4 | 3cd3b251381dc90b1f97d74e4bd6b0e79627ec79 | /subject_orm/orm_program/config.py | 3e486690881a21180e66df051b92d46b4abeac37 | [] | no_license | feieryouyiji/subject_share | 6b134d68deb3121b230b8ce6f551916f5de90cb5 | ff8bcc82b979314ee872014d3a82150ff8aca706 | refs/heads/master | 2020-03-21T07:45:40.074731 | 2018-08-16T00:05:48 | 2018-08-16T00:05:48 | 138,298,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | db_config = {
'host': 'localhost',
'port': 3306,
'user': 'dog',
'password': '123456',
'db': 'test_orm'
} | [
"799743243@qq.com"
] | 799743243@qq.com |
cbbc5c587d822ea7dfdc277e5b7947f4c318613c | 548b7af28025956076e0cff7a0422f29a61378ce | /theano/matrix_factorization.py | feddfb2ec2326e760531258ab3f00f45c3affd8d | [] | no_license | ramesh-tr/recommendation | 14caa0408e49267abaa58aef71b096a99d1c22bc | d44e0ca34eea16b23cffdc61444f04d21bc89ff3 | refs/heads/master | 2021-01-10T05:00:56.572307 | 2016-02-15T10:45:01 | 2016-02-15T10:45:01 | 51,748,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,907 | py | """
Matrix Factorization with Theano implementation
Theano: http://deeplearning.net/software/theano/
"""
import numpy as np
from base import Base
from load_data import load_ml_1m
from evaluation_metrics import RMSE
import time
#import theano
from theano import shared
import theano.tensor as T
class MatrixFactorizat... | [
"ramesh.ramakrishnan@oracle.com"
] | ramesh.ramakrishnan@oracle.com |
3bb9929d0299ef36d04e3b8b585591779c0806ce | 60f6e6314f250c1ccc0bed74bb8436bb79948734 | /pycheckers/ascii.py | 9c97188e8da3aedb2265546a37b9b9e75bc11e90 | [] | no_license | darka/pycheckers | 088bd061031b1fee2cdcba6740a0a687291c962f | 99cea1c03e3ac51de0cddc14b3334ef335179231 | refs/heads/master | 2023-06-30T20:59:45.911721 | 2021-08-01T13:08:56 | 2021-08-01T13:08:56 | 315,088,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from pycheckers.piece import CheckerColor, CheckerLevel, CheckerPiece
ASCII_SYMBOLS = {
CheckerColor.RED: {CheckerLevel.MAN: "m", CheckerLevel.KING: "k"},
CheckerColor.WHITE: {CheckerLevel.MAN: "M", CheckerLevel.KING: "K"},
}
def ascii_symbol(piece: CheckerPiece) -> str:
return ASCII_SYMBOLS[piece.color]... | [
"darius.scerb@gmail.com"
] | darius.scerb@gmail.com |
2ddc013527e286e3b9915689cdb29a47afcad47a | c4bb8335d4eb7beb78e218b1add28c26eaf6fb43 | /pyFiles/7.3_Emulating_switchcase.py | c8a1c3cb14a71c4365384f20b7cbcbbfb84d94f5 | [] | no_license | TimTheFiend/Python-Tricks | 0e66dc748768251ba5c0a50247993ebd6001a863 | a7ee9de637c29ef6a213684e6ef2d6a321ad86e7 | refs/heads/master | 2022-03-06T07:04:55.738362 | 2019-11-29T09:28:21 | 2019-11-29T09:28:21 | 217,983,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #region How store function in dictionary and how to call it
"""We can define a function and then store it in a list for later access:"""
def myfunc(a, b):
return a + b
funcs = [myfunc]
print(str(funcs[0])) # <function myfunc at 0x000001DF88DE2E50>
print(funcs[0](2, 3)) # 5
#endregion
#region Dictionary li... | [
"33222649+TimTheFiend@users.noreply.github.com"
] | 33222649+TimTheFiend@users.noreply.github.com |
48c88cb0a7efe65d9ddffb3d21a79346bd9641b7 | 8bdbd36d1cef4f4a3e4b11ad2369e8e244e96df9 | /modules/univention/office365/microsoft/jsonstorage.py | 320840c12781af464406740bc54c076e3076b778 | [] | no_license | univention/office365 | 2ef27b956476ee82bb14716e913a879c776d7662 | fc69682c1516eb9ca83c8f18dd3a663116fc740f | refs/heads/4.4 | 2023-06-11T12:54:45.308943 | 2023-05-25T15:41:01 | 2023-05-25T15:41:41 | 154,646,994 | 1 | 2 | null | 2020-08-19T06:06:07 | 2018-10-25T09:46:31 | Python | UTF-8 | Python | false | false | 2,496 | py | # -*- coding: utf-8 -*-
#
# Univention Office 365 - jsonstorage
#
# Copyright 2016-2022 Univention GmbH
#
# http://www.univention.de/
#
# All rights reserved.
#
# The source code of this program is made available
# under the terms of the GNU Affero General Public License version 3
# (GNU AGPL V3) as published by the Fr... | [
"delgado.extern@univention.de"
] | delgado.extern@univention.de |
6cef9ae7e0a2600c467a578aeb711fdf209a3328 | f72c9e46af5ce5ac738693daf65e67a0962a229a | /sdk/lusid/models/fx_option.py | 6f45a06959519c74da7262d99971e7531c3a0536 | [
"MIT"
] | permissive | finbourne/lusid-sdk-python | db8ce602f8408169f6583783c80ebbef83c77807 | 32fedc00ce5a37a6fe3bd9b9962570a8a9348e48 | refs/heads/master | 2023-08-29T18:22:49.488811 | 2023-08-29T15:57:26 | 2023-08-29T15:57:26 | 125,082,278 | 11 | 11 | NOASSERTION | 2023-04-28T07:16:48 | 2018-03-13T16:31:54 | Python | UTF-8 | Python | false | false | 28,291 | py | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 1.0.463
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getful... | [
"concourse@finbourne.com"
] | concourse@finbourne.com |
612a1943b2e44d5c298c6f1cc9756958d649bcfc | 3fa6edd22b4c826431d2b55d1aced446bf2755ac | /tests/blockchain/test_blockchain_transactions.py | 24838b3476029cfdc5243ac3ac25c6cbd7291240 | [
"Apache-2.0"
] | permissive | luzofex/plottingid-blockchain-1 | f3bca87316e93466b7512039f2c588a9baadd4a7 | d8a6bdfeb4474b4075e89c129853a606f55dd778 | refs/heads/main | 2023-06-11T12:32:36.690472 | 2021-07-06T19:23:19 | 2021-07-06T19:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,394 | py | import asyncio
import logging
import pytest
from clvm.casts import int_to_bytes
from plottingid.consensus.blockchain import ReceiveBlockResult
from plottingid.protocols import full_node_protocol
from plottingid.types.announcement import Announcement
from plottingid.types.condition_opcodes import ConditionOpcode
from ... | [
"cengndupak@gmail.com"
] | cengndupak@gmail.com |
fe08790f0a1ce9cb7efb4031c9bbf11adbbfcec9 | 6efdee46507c2f2d05e4986c963f189a1e754e9b | /ex15.py | 048204e2129b9aea9b9230e4d635d3eca03a682d | [] | no_license | SachinPitale/Python | b0d2d08f6f12bdce8a30ba9e9c370d3415721168 | 6889527b4b04e394feedcd6516e0298cccb6c5ee | refs/heads/master | 2020-07-26T05:59:46.325528 | 2019-09-15T07:26:24 | 2019-09-15T07:26:24 | 208,557,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r :" %filename
print txt.read()
print "type the file name again "
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
| [
"sachinpitale22@gmail.com"
] | sachinpitale22@gmail.com |
115cb5c22fa3171edd5d632980ac1d4012d05ea5 | 72d7c54e0de5793acf97ea457c43e48c5cf903eb | /src/model/train_model.py | 2e4272f9a7abd166a4eb378fe98e4fbf7f877976 | [
"MIT"
] | permissive | lucashsg77/CIFAR-10_keras_CNN_model | 59cf0e12d6a9648ab9c92a79a304c4c762d53170 | 4190f5941dcd490d7ea833d44eb415841370e190 | refs/heads/main | 2023-03-19T20:59:26.228680 | 2021-03-01T03:57:17 | 2021-03-01T03:57:17 | 342,723,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | from tensorflow.keras.datasets import cifar10
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D,MaxPool2D,Dense,Flatten,Dropout,Input, AveragePooling2D, Activation,Conv2D, MaxPooling2D, BatchNormalization,Concatenate
from tensorflow.keras.callbacks import EarlyStopping, TensorBoa... | [
"57928235+lucashsg77@users.noreply.github.com"
] | 57928235+lucashsg77@users.noreply.github.com |
59aa3074789e5ffda3af89a78300566f1fd5fb91 | fb39bd3505d6f129cbc5a823fd0f221ca645ad90 | /DAYS_001-010/Day - 003/Exercises/day-3-4-exercise.py | 4f64c811f7b0f42d5bdf60fb9a8e1ea60efc61d0 | [] | no_license | IacovColisnicenco/100-Days-Of-Code | 53c4038b3616d1313ae9ef17cd9e5b2abd910020 | 5ef420be9f1039018ae2763285a2564f9bca23fc | refs/heads/master | 2023-07-10T04:46:38.818348 | 2021-08-21T13:57:35 | 2021-08-21T13:57:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | print("Welcome to the Roller Coaster Ride !!! \n")
height = int(input("What is your height in CM : "))
bill = 0
if height >= 120:
print("You can Ride Roller Coaster...")
age = int(input("What is your Age ? "))
if age < 12:
bill = 5
print("Child Tickets are ₹5.")
elif age <= 18:
... | [
"sahasubhajitias59@gmail.com"
] | sahasubhajitias59@gmail.com |
121add35cc229a0a92e06d677ca8d13f14203b26 | e54c24d0c1ef77e7c6d39e0c579e641a3fe4747b | /stroy/pipelines.py | 765bea5e17475c3c9ed7b0c5a039ce770f1fe30e | [] | no_license | msp233/story | a126f72214a61cd05a53c92da0f8010244713572 | 4fb52e96a5c3fcb4b92aa4804bd3b34abb09e6e5 | refs/heads/master | 2021-08-24T10:41:00.974907 | 2017-12-09T08:23:54 | 2017-12-09T08:23:54 | 113,455,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from twisted.enterprise import adbapi
import MySQLdb
import MySQLdb.cursors
from scrapy.crawler import Settings as Settings
cl... | [
"937207392@qq.com"
] | 937207392@qq.com |
28550cd5ee495e649de93ef976fe0eff54728adb | a8c2246bc3d68f06175cfae843976dc1d2a0c7a0 | /polls/migrations/0001_initial.py | e2e8fbbfebe0c99b37cc8ab257261c306c10b840 | [] | no_license | PacoBahena/djangovotaciones | b56741ab3b42f44472d41f17dcad575386528832 | bf727e837ef099e5df2ccad28a2d15e1e6162e5e | refs/heads/master | 2021-01-11T23:22:52.960003 | 2017-01-20T06:38:29 | 2017-01-20T06:38:29 | 78,574,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-08 23:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"pbahena72@gmail.com"
] | pbahena72@gmail.com |
cd6c1dc9afe5512f1c67d8b3cdc41a75dd85e0d9 | 316ef315980e2329c0b0da72b50f1c35f276b21a | /googlenet_model/DownloadModel.py | 08d82139bb90ab86b7f90f2f60a007d26fdfbb03 | [] | no_license | JaggerYoung/Gesture_feature_lstm | 7b83d4208e085898bf62929c0e39fa5c411be96f | 5538c22521d69e6d9484ef8a62a6e9ef2b2c1a52 | refs/heads/master | 2021-01-09T06:00:21.065528 | 2017-02-10T07:49:43 | 2017-02-10T07:49:43 | 80,887,611 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | wget http://data.dmlc.ml/mxnet/models/imagenet/inception-v3.tar.gz
tar -zxvf inception-v3.tar.gz
| [
"854659608@qq.com"
] | 854659608@qq.com |
398d8e76ef2fe6964a65decd82b98aa723453cac | 0c5840c41baf4f0ad6306efab80499f4037ad905 | /MysqlDataDriven/DatabaseInit.py | b2d86e8ee100488e7a05d9fcaf9ef4acad837f49 | [] | no_license | Li-Guo-Fang/Auto_Design_PO | b89989660098ac3a3aadcfc0d425b11992dd5d27 | 8c7de33a7d1189c0c7be3ea923efee6c188acef5 | refs/heads/main | 2023-03-17T09:55:09.207732 | 2021-03-07T15:09:49 | 2021-03-07T15:09:49 | 259,357,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | import pymysql
from MysqlDataDriven.Sql import *
class DataBaseInit(object):
def __init__(self, host, port, dbName, username, password, charset):
self.host = host
self.port = port
self.db = dbName
self.user = username
self.passwd = password
self.charset = charset
... | [
"18301991450@163.com"
] | 18301991450@163.com |
00e2e61740c9928d57632befab111a3901457624 | ff2e7b01096bffaef341585a2ba39addb24ca667 | /Buzznauts/app/prepare_submission.py | bbf8015c96e274a88a1e4c27920a313e0741ef25 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | eduardojdiniz/Buzznauts | 5a1f55bc5d27b343fde7ff5618356bea1f728c54 | 8ac242a8d5309b4090a0f0b148ec275cac762bc0 | refs/heads/master | 2023-07-09T03:18:16.080419 | 2021-08-19T17:42:36 | 2021-08-19T17:42:36 | 392,039,524 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | #!/usr/bin/env python
# coding=utf-8
import numpy as np
import os
import os.path as op
import argparse
import zipfile
from Buzznauts.utils import save_dict
def prepare_results(results_dir, submission_dir=None, track="full_track"):
if track == 'full_track':
ROIs = ['WB']
else:
ROIs = ['LOC','F... | [
"edd32@pitt.edu"
] | edd32@pitt.edu |
689f182aaf2c3e12e5345b5f4029c3a84a26d873 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_unshakeable.py | e5580220c428d26267e79c308054751c325bd982 | [
"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 | 464 | py |
#calss header
class _UNSHAKEABLE():
def __init__(self,):
self.name = "UNSHAKEABLE"
self.definitions = [u"If someone's trust or belief is unshakeable, it is firm and cannot be made weaker or destroyed: "]
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adje... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
919e93118fc21b5f45a947257bee54a667752573 | 51240087b513a3f625806051e883fcbee6cb5dc5 | /Strings/Alternate_capitalize.py | 6fcedd9e5ae280353f1c644a7987dd73559ac69f | [] | no_license | dakshtrehan/Python-practice | af7fba2232dfa9d0f3593a4eebf8816a0bf86454 | 831501953daeb24d47bd78fba8b27c253ef08d72 | refs/heads/main | 2023-04-11T13:30:13.642509 | 2021-04-30T03:18:23 | 2021-04-30T03:18:23 | 347,295,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #Write a program that reads a string and print a string that capitalizes every other letter in the string
#e.g. passion becomes pAsSiOn
x=input("Enter the string: ")
str1= ""
for i in range(0, len(x)):
if i%2==0:
str1+=x[i]
else:
str1+=x[i].upper()
print(str1) | [
"noreply@github.com"
] | dakshtrehan.noreply@github.com |
64a735daccbccc34daae44e1bcd1fd7f5686d793 | cd8e4f88151a4fa3b39cf74f31d63371516259e5 | /Model1/experiments_run/sol_vis.py | 957e5c14d136ed31ed07225adef05c53dd77205f | [] | no_license | saintazunya/TSP-project | 4a3c2395e862ff446f3427ff3d89b8222ede0de3 | 46c2f77ca79c3354d11fd49f6f999a3dcb96fe2b | refs/heads/master | 2021-10-02T21:17:05.331595 | 2018-11-30T22:38:40 | 2018-11-30T22:38:40 | 116,619,303 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import sol_to_index
def animate(i):
line.set_xdata(solution[0:i,0])
line.set_ydata(solution[0:i,1])
return line
#result
path=''
file=r'100_distance_sol.xlsx'
ncities=np.load('datasave.npz')['arr_1']
... | [
"noreply@github.com"
] | saintazunya.noreply@github.com |
510e4a01cd856f71555cce0934d2241858363403 | 5060fce51bba586ec30667e1dc32fa996eeedd38 | /abali/testcases.py | f582f376cdf6c66c4771fa2d6ff9d03ad699715b | [] | no_license | knutsvk/fins | 398d67d54b1daf11934aa6c429c9722e72c466db | 8854749ba0aea3b9d3ebc25f2992eb78b539ecf5 | refs/heads/master | 2021-06-16T18:39:51.502888 | 2017-05-24T11:26:09 | 2017-05-24T11:26:09 | 89,158,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,683 | py | from fenics import *
class Poiseuille():
"""
"""
def __init__(self, nx, ny, limits=[0, 1, 0, 1], dp=1):
self.mesh = self.make_mesh(nx, ny, limits)
self.space = self.make_space()
self.bc = self.boundary_conditions(limits, dp)
self.ic = self.initial_conditions(limits, dp)
... | [
"ksk38@cam.ac.uk"
] | ksk38@cam.ac.uk |
7af33df27c68bca8c3a56d141bdc448c28f85369 | 4e88344be8aab80357d48eaaaa8fee321ede1b72 | /keras_sequential_example.py | b2b8cb2d165ff87cc74850abb57e4e35eb487c95 | [] | no_license | martynaut/datacamp-examples | 8a63bb6832fb5143b935ddb50ba5514272119a41 | a5e5cb87fd835caf094c2646e98c9bc9f0937a1b | refs/heads/master | 2021-03-31T00:10:29.853702 | 2018-09-30T06:03:49 | 2018-09-30T06:03:49 | 124,993,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | from keras.layers import Dense
from keras.models import Sequential
from keras.optimizers import SGD
from keras.callbacks import EarlyStopping
from keras.utils import to_categorical
import matplotlib.pyplot as plt
def get_new_model(input_shape=1):
model_i = Sequential()
model_i.add(Dense(100, activation='relu... | [
"scienceisthenewblack@gmail.com"
] | scienceisthenewblack@gmail.com |
198762cfe5c30a9b906981b180be25fe2d5ab55d | c7c9c0b634310a2df8d0be503abfe2279ab7e9c8 | /초보문제/1983.py | 690eb6e99e215cea6069e2ae6e504ae9ba005667 | [] | no_license | ubjhls/algorithms | f28e4ab7580056bbb1bce275cfe01bda56df31b2 | 820fb4a183971f3aa7c665ff2895fbdde6fea8f9 | refs/heads/master | 2020-06-26T23:52:25.333519 | 2020-04-14T13:53:48 | 2020-04-14T13:53:48 | 199,792,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | testcase = int(input())
for k in range(testcase):
test = list(map(int, input().split()))
score = [list(map(int, input().split())) for i in range(test[0])]
result = []
for i in range(test[0]):
tmp = 0
tmp = score[i][0]*35 + score[i][1]*45 + score[i][2]*20
result.append(tmp)
... | [
"ubjhls@naver.com"
] | ubjhls@naver.com |
cc5ec499a2477185f01d8d99f857f8efd74c7e8d | 352457b4ce9e0cb66c2bc1a2bc461d6a48626cf2 | /opengl_support/tilesets.py | c0f7a21e53bd44b80093265f2faaf237f18d14ac | [
"MIT"
] | permissive | michaelbradley91/sokoban | 78c73041d7ef528354f4572238f49ce00a1c4cc5 | 9a425df01ea68285922edc1c5053376e822db94d | refs/heads/master | 2021-07-05T03:25:54.130222 | 2020-01-01T17:38:26 | 2020-01-01T17:38:26 | 230,138,176 | 0 | 0 | MIT | 2021-04-20T19:06:53 | 2019-12-25T18:12:57 | Python | UTF-8 | Python | false | false | 2,857 | py | from typing import Tuple, Optional
import pygame
from pygame.rect import Rect
from coordinate import Coordinate
from opengl_support.drawable import Drawable
from opengl_support.texture import Texture
class TileSet(Texture):
"""
Represents a tile set in OpenGL
"""
def __init__(self, surface: pygame.S... | [
"michael.bradley@hotmail.co.uk"
] | michael.bradley@hotmail.co.uk |
1fb2df762dd45f6aa9845f161da2ee0c3e55bf03 | 77f5a8d34aadc697e95671f1c9b17ca547e2b4c1 | /xierpa3/contributions/filibuster/content/creditcard.py | 3038f19db04632a24c976e6344a1a4cf9dd30217 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dungmv56/Xierpa3 | ef9f37a62a5b739e6e41f8bbe683820771a2f22e | 1e5fecaee84204401f3cc7ccea10092cb31029bf | refs/heads/master | 2020-12-24T11:17:31.945821 | 2016-02-25T11:39:08 | 2016-02-25T11:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
# xierpa server
# Copyright (c) 2014+ buro@petr.com, www.petr.com, www.xierpa.com
#
# X I E R P A 3
# Distribution by the MIT License.
#
# ---------------------------------------------------------------... | [
"michiel@concretejungle.nl"
] | michiel@concretejungle.nl |
9fe1c000fbf3c51c00c02803c972800561a72a51 | 27be037ad76d666cc02619d0a326d59e0871954c | /kiribo/tarot.py | 93532cb8489176739dea770d4c134b4d6cd38c8a | [
"MIT"
] | permissive | kiritan-pop/kiri_bot | b2f76209e12fd1e2dda02b76396a7daccb59334b | decc93e8271e558c24082c18c712979b319bd302 | refs/heads/master | 2023-03-07T05:23:12.456450 | 2023-02-27T06:20:20 | 2023-02-27T06:20:20 | 114,524,444 | 20 | 6 | MIT | 2020-08-19T10:27:57 | 2017-12-17T09:30:08 | Python | UTF-8 | Python | false | false | 4,040 | py | # coding: utf-8
import random,json
import sys,io,re,os
from pytz import timezone
from datetime import datetime, timedelta
from pprint import pprint as pp
from PIL import Image, ImageFont, ImageDraw
from kiribo import util
from kiribo.config import TAROT_DATA_PATH, TAROT_IMG_PATH, TAROT_CHK_PATH, TAROT_IMGMAP_PATH, FON... | [
"kiritan.pop@gmail.com"
] | kiritan.pop@gmail.com |
53279d87f3e8a1742110292cdccdc3fa7018b3c1 | 7a82203a813ca75af560dd67adaa6edf7a62f562 | /04_Dueling_Deep_Q_Network.py | 3d4eeb97f1e628cc4df7820bdea7c7557b5a8793 | [] | no_license | mrlightman5/DRL | 68b6a4b0bb50ca684b53c0dc21351824c6f2317e | 5aaedcc855c06979abb31989b3faec467dd99b89 | refs/heads/master | 2020-03-31T16:34:02.401503 | 2018-10-08T01:37:23 | 2018-10-08T01:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,123 | py | # Deep Q-Network Algorithm
# Import modules
import tensorflow as tf
import pygame
import random
import numpy as np
import matplotlib.pyplot as plt
import datetime
import time
import cv2
import os
# Import game
import sys
sys.path.append("DQN_GAMES/")
import Deep_Parameters
game = Deep_Parameters.game
class Dueling_... | [
"kyushikmin@gmail.com"
] | kyushikmin@gmail.com |
a629492186aa2978b196c9518c8c7318a5a90f30 | 9460c89936efb1043564b22eb538d25cce566806 | /exercise_15.py | 6e16ab60133ddf6da6024bfc762b2a80d8908d97 | [] | no_license | foreverloop/python_pre_exercises | e350daf1c9bb6c7a91d4b4a22823770eb4c241bd | 5c5bb1db1115d62fc8d0e3f4deb8d5c60956d601 | refs/heads/master | 2020-07-26T22:45:58.784142 | 2019-10-24T19:16:10 | 2019-10-24T19:16:10 | 208,787,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | """
Exercise 15 (and Solution)
Write a program (using functions!) that asks the user for a long string containing multiple words.
Print back to the user the same string, except with the words in backwards order.
For example, say I type the string:
My name is Michele
Then I would see the string:
Michele is name My
sho... | [
"cjones5709@gmail.com"
] | cjones5709@gmail.com |
fcf1b5c103056d89f112ff912f52f55eb2e6668f | 7b2aac8782c3bde5fb4561fd6189c2e25108239c | /analyse/app/screens/login.py | 6eb1bf73304a1c8f73b2056a750e36d589724cee | [] | no_license | tiago-clementino/QVAP | 31c6a4a7ae414533a5000d280e9811cc85870d6b | c259677c91e666a2a7aff4be0331ca4bd32f9627 | refs/heads/master | 2020-06-22T05:48:43.787976 | 2020-06-12T22:48:12 | 2020-06-12T22:48:12 | 197,649,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | from kivy.uix.screenmanager import Screen
from controler.connect_sqlite import Connection
from controler.sql_utils import SqlUtils
from pathlib import Path
class Login(Screen):
conn = None
email = None
def build(self):
super(Login, self)
def __init__(self, datapath = None):
super(Log... | [
"tiago.luks@gmail.com"
] | tiago.luks@gmail.com |
e752b17e0e4d0bf11f9ed7ffe876182729c4680c | 801e7af482fe1c8c3fa02d13a281a010f0140061 | /events/djangoenv/lib/python2.6/site-packages/pip/exceptions.py | f7079b56c6dc94da6a3fc5148cf132f674ca7f6c | [] | no_license | ratikbhat1/acmwebsite | baff2d97fc5672aeadb38ebc19db37f22144c368 | 98b6492fa5af01339c6867af906827bd440553f9 | refs/heads/master | 2021-01-22T02:53:33.255297 | 2017-09-03T10:26:28 | 2017-09-03T10:26:28 | 102,256,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """Exceptions used throughout package"""
class PipError(Exception):
"""Base pip exception"""
class InstallationError(PipError):
"""General exception during installation"""
class UninstallationError(PipError):
"""General exception during uninstallation"""
class DistributionNotFound(Ins... | [
"ratik.bhatt12@gmail.com"
] | ratik.bhatt12@gmail.com |
433e31060105d7ec183dd664229e9c5fe4ee45af | 0fa0cb75ecebb32a2f9f2f8f78a17a65e2304d9e | /project/migrations/0002_auto_20200801_1306.py | c813f327e1ada89e50842edb038b168d9ddbb771 | [] | no_license | Rupeshyadav9783/DBMS_project_Action_Bid-master | 1f309a70d512f6c7aac04504e81815e2b95dc165 | 58c4681d065dc2dfcd178e9322307b512ce75aa9 | refs/heads/master | 2023-02-23T00:28:10.286399 | 2021-01-27T19:20:12 | 2021-01-27T19:20:12 | 333,533,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # Generated by Django 3.0.6 on 2020-08-01 13:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='item',
name='end_interval',
... | [
"Rupeshyadav9783@gmail.com"
] | Rupeshyadav9783@gmail.com |
de8214dd5f2792bdca5eccdda107e72222c30130 | 58115fa94a81b02a8b194fe7f1c1cd4ff996df97 | /src/anyconfig/schema/__init__.py | 1437437066cf8b3c7b6580abe489d66ce4816ad7 | [
"MIT"
] | permissive | Terrance-forks/python-anyconfig | 9f77de334c162e1c2334a749c29f63bd0294a09b | 21d7c0e30287569b394972557b5a54fab03bcd5c | refs/heads/master | 2021-06-19T09:11:18.697637 | 2021-05-17T04:35:10 | 2021-05-17T04:35:10 | 202,930,334 | 0 | 0 | MIT | 2019-08-17T20:52:23 | 2019-08-17T20:52:22 | null | UTF-8 | Python | false | false | 451 | py | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# SPDX-License-Identifier: MIT
#
r"""misc global constants, variables, classes and so on.
"""
try:
from .jsonschema import validate, is_valid, gen_schema
SUPPORTED: bool = True
except ImportError:
from .default import validate, is_valid, gen_schem... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
9a6b0bbca87ab02e5f0e4e68b7d4480a2be472b1 | 281c73dc12641f942693fed9a2f04dd0f1a397d8 | /api/urls.py | 798fa41da1851954c8de23b4af677e7de7f7e582 | [] | no_license | francoCosimo95/django-contact | 7adfc45982aff94cf1d01bfba9f6e309f85034b6 | fa08e22dead7b4f070bbece900983f6b49196a21 | refs/heads/master | 2022-09-18T10:31:11.147232 | 2020-05-26T20:42:13 | 2020-05-26T20:42:13 | 267,089,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.urls import path
from . import views
urlpatterns = [
path('send-email', views.send_email, name='send-email'),
]
| [
"franco.cosimo95@gmail.com"
] | franco.cosimo95@gmail.com |
2200e5d00b4e7f55f91d675065d55986d3c55397 | cc85680b699f902af901a8177dc1e6ac97def4d5 | /6.py | 2869067d8b631fb03205c228757aaaf1cca337d9 | [] | no_license | 976Evill/day1 | 3c1f8453cf00f3568bae31d16f7dd2988359603b | fe37b58e613b2a1291498a05d1dffc2e78bc52e8 | refs/heads/master | 2020-12-20T06:41:42.598168 | 2020-01-24T13:23:33 | 2020-01-24T13:23:33 | 235,990,626 | 0 | 0 | null | 2020-02-17T21:42:03 | 2020-01-24T11:29:08 | Python | UTF-8 | Python | false | false | 882 | py | # Спортсмен занимается ежедневными пробежками. В первый день его результат составил a километров. Каждый день спортсмен
# увеличивал результат на 10 % относительно предыдущего.Требуется определить номер дня, на который общий результат
# спортсмена составить не менее b километров. Программа должна принимать значения пар... | [
"an.lebedev@mail.ru"
] | an.lebedev@mail.ru |
20762903e5aa9cba8a459c9c72a1e7edc2afca51 | c2ede0c8510f607ffd33798104ba30a79771399b | /CL3.py | cc4ba366c9cde70e573809b1b5577d484962c155 | [] | no_license | MohammadMohsinKhan/Computing-labs | d147eb1043bed042d78c921641daa2858f1d577a | 6d8e14c6dd8da9edab1077d09d5a3eb94c66646a | refs/heads/main | 2023-05-14T11:17:44.853432 | 2021-06-09T02:24:14 | 2021-06-09T02:24:14 | 375,201,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,839 | py | #!/usr/bin/env python
# coding: utf-8
# # Computing 3 Assignment
#
# ---
# ## Background
#
# Generating statistics from a set of data is a task that computers love. In this assignment, you and your team will be implementing a grade processing system that will generate the mean and standard deviation for a set of fi... | [
"noreply@github.com"
] | MohammadMohsinKhan.noreply@github.com |
ba0ed28a5efed4abea8f4891d8edfa39bce5a61f | 879f7b9a266aabe8b0ed0c48892d5374ecea120d | /www/testing/get_headers.py | d39317ee998eb33db8c48200b04257db0fd6ce65 | [
"MIT"
] | permissive | kingslair/WebServer | 3bfef5c420b5a4c5c3855cc68bd2c82300a4762d | b72cfdaabc1aaf1d319b7f12f697d224f6fafc69 | refs/heads/master | 2020-12-03T00:27:30.751312 | 2018-02-03T13:07:46 | 2018-02-03T13:07:46 | 96,032,411 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | import pycurl
import re
try:
from io import BytesIO
except ImportError:
from StringIO import StringIO as BytesIO
headers = {}
def header_function(header_line):
# Header lines include the first status line (HTTP/1.1)
# split on multiple lines
if ':' not in header_line:
return
# Break th... | [
"noreply@github.com"
] | kingslair.noreply@github.com |
eb9dbdab539ebde689048650bd5d4420b714e74b | 7eae4b6cda54d295fd24314115aa92036c4e717f | /treewidget/apps.py | 8cb3090a0b5aa1e46df2caed62141f092da258d0 | [
"MIT"
] | permissive | jphilip/django-treewidget | 98ef6179d2befddb735a5516559ef9c26d8811e5 | e2eff61f98ea7a520f29a4ed7395ec75d134246b | refs/heads/master | 2022-11-14T09:54:41.424408 | 2020-06-29T00:59:31 | 2020-06-29T00:59:31 | 275,692,793 | 0 | 0 | MIT | 2020-06-29T00:25:31 | 2020-06-29T00:25:31 | null | UTF-8 | Python | false | false | 160 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class TreewidgetConfig(AppConfig):
name = 'treewidget'
| [
"jerch@rockborn.de"
] | jerch@rockborn.de |
8c2f0b050b1fca1bf2bd0e8619d03e16d3f3c9a6 | 0e0ef4223d12714949709939166fa225ceec7204 | /tyler_github/ETL_hiyd.py | 538838a25ad01a82190301f43c00f85908b89ce0 | [] | no_license | Chris12081/recipe_recommender | 9c5695f7541b67a7b6c99432e0394ec297e158f8 | 1fb7aa45f6f81e470e93c990c53c823138361f24 | refs/heads/master | 2022-12-23T00:31:47.037269 | 2020-09-27T06:59:45 | 2020-09-27T06:59:45 | 295,070,601 | 0 | 0 | null | 2020-09-13T03:28:07 | 2020-09-13T03:28:06 | null | UTF-8 | Python | false | false | 6,766 | py | # hiyd
import requests
from bs4 import BeautifulSoup
import os
import csv
import json
import time
import random
from opencc import OpenCC
import math
from urllib.parse import urlparse
# 將簡轉繁
str =OpenCC('s2t')
#print(str.convert(file))
#目標網址
url = 'https://www.hiyd.com/bb/?page=%s'
headers={}
ua = '''User-Agent: Mo... | [
"42105981+Chris12081@users.noreply.github.com"
] | 42105981+Chris12081@users.noreply.github.com |
85eda3f8b38bed558d438173297d47a8f3824eb1 | f0b4cbec08d6989a4fa4f03f2525dce41ab25e48 | /docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE/tertiary/pandas-lmm.py | 1e9875ad6ff9e0922b6436bb81e2de35f22f1c7e | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | lanastazia/glow | 8f6e3406d57969b0459e8057f69cbc7755e11bbb | a0b1dd6846e0449360d74adbe882ca70948a9343 | refs/heads/master | 2023-01-10T02:54:45.529724 | 2020-11-17T22:26:05 | 2020-11-17T22:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | # Databricks notebook source
# MAGIC %md
# MAGIC # Using Pandas UDFs with Genomic Data
# MAGIC [Pandas UDFs](https://databricks.com/blog/2017/10/30/introducing-vectorized-udfs-for-pyspark.html) provide a fast way to use Python libraries with Apache Spark™ DataFrames.
# MAGIC
# MAGIC In this notebook, we demonstrate h... | [
"noreply@github.com"
] | lanastazia.noreply@github.com |
89018a833caf16c361c788be55349a65e85782d1 | 30e58b930c31526a1e226a928bc77e23f232080e | /mapfunctions/plotMaker.py | e04deb5fbb17956d5e7c3e0ca08b53359a0972c8 | [] | no_license | bbw7561135/anisotropy | c8688f9d705234c6a90f607acb3e8cc28ea5be28 | a21f85788c16d8aa14fc5934f476def4c8954f34 | refs/heads/master | 2021-06-01T05:35:48.727845 | 2016-05-13T00:27:37 | 2016-05-13T00:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,679 | py | #!/usr/bin/env python
import subprocess, glob, math, os, argparse
import myGlobals as my
from anisotropy.icesim.analysis import readDist as readDist_IC
from anisotropy.topsim.analysis import readDist as readDist_IT
from anisotropy.mapfunctions.energyCuts import getEbins, getEnergyMaps
def medianLabel(config, emin, e... | [
"jrbourbeau@gmail.com"
] | jrbourbeau@gmail.com |
09f998de7dcca8599e073172fe53fca8fc5bb7b8 | 146b91445ee91a1f02b551e9075b584165aec9f9 | /software-assignment-3-master/software-assignment-3-master/todo/forms.py | c4a95bc994f25ecf1b6dadc9e60e9f92065bd326 | [] | no_license | SeldaEmir/Django_Blog_Practises | 39f8f666f35a54eda28011b89c1ba573783793d7 | ac095fd366366f0532b5c8ea4faf55e85bb22d06 | refs/heads/master | 2021-09-08T22:45:59.078688 | 2018-03-12T15:50:02 | 2018-03-12T15:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | __author__ = 'seldaemir'
| [
"noreply@github.com"
] | SeldaEmir.noreply@github.com |
98730ea9cabba62f347e29709bcad21695798feb | b6dce5523115d7e51ce1c5bf11ca963f9a17f04c | /shift/utils/timer.py | 4be249aeb97ad182f8bf6179f4a88b92a227a55e | [
"MIT"
] | permissive | fyabc/Py2016 | 1fcb345df6bcd89348686e13337158aa4325a8e0 | a7e2b4ad11c96be97107821defef379d6e6f7595 | refs/heads/master | 2020-12-29T02:37:17.580568 | 2017-02-27T16:18:02 | 2017-02-27T16:18:02 | 54,388,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # -*- coding: utf-8 -*-
__author__ = 'fyabc'
import pygame
import time
class ShiftTimer:
"""The Timer of this game. Copied from pgu.timer.
This is a singleton class. Do NOT have two ShiftTimer object at the same time.
"""
# The game time when one of the clock parameters was last changed
lastGame... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
2db6b9d03d9ffa6ad05fa7db612b7e2db5364dd6 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/02_preprocessing/merraLagScripts/443-tideGauge.py | 1cfa0de339d2f9659ec80f2176dd2e40a6ad8413 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
64411eeed18edf4d09de5cf319c24119d1bea4e2 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/443-tideGauge.py | 00c7b277a09c1bb696c020bb8ff48ee0b7724626 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
8f57299beb40db7fc9f5beef5454e07a4da6a9f9 | 4082ed3200c7540c472257fb6f2901b3038075c5 | /Ta3bi2a/setup.py | a9dcd8ad9635baee9e7a0cfc302607b67917e553 | [] | no_license | rachid-amk/ta3bi2a | fd4dceb91dda50c3a63c5ef4b0e318b2909af62e | bdb13662845a86b03a6841208b501c4089d0d00f | refs/heads/master | 2020-06-17T07:14:22.281396 | 2019-07-08T15:50:14 | 2019-07-08T15:50:14 | 195,842,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': '',
'author': 'rachid_amk',
'url': '',
'download_url': '',
'author_email': 'rachid.drid@gmail.com',
'version': '0.1',
'install_requires': ['random'],
'packages': ['']... | [
"noreply@github.com"
] | rachid-amk.noreply@github.com |
cc2d537eadcb3cc36f164433e109a74ebf20d1dc | 606550f7223314db257ca4bf18a091da9235f90d | /demo/poll/migrations/0003_auto_20190801_1004.py | 92ad239b8ab529c8748582c3d046cac6c3e54af3 | [] | no_license | akshaySkyllord/ems | aab22a748805bebd70edf32a9db276307fe38ff8 | 02e4f9c964300d9d98e371d1c5bd59b352b6ec51 | refs/heads/master | 2020-07-03T11:44:17.644705 | 2019-08-12T09:17:28 | 2019-08-12T09:17:28 | 201,894,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.3 on 2019-08-01 04:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('poll', '0002_auto_20190731_1730'),
]
operations = [
migrations.AlterField(... | [
"GS-2219@GSLAB.COM"
] | GS-2219@GSLAB.COM |
f5c65c37b451bb7845cec225a79a12aa20bfce04 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KPicBthv6WhHFGapg_17.py | 7aa3aa5f1a8fb508597b2d6bcee51885d1d6d0bd | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | """
Create a function that returns the **number of syllables** in a simple string.
The string is made up of _short repeated words_ like `"Lalalalalalala"` (which
would have _7 syllables_ ).
### Examples
count_syllables("Hehehehehehe") ➞ 6
count_syllables("bobobobobobobobo") ➞ 8
count_syllable... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4f6222ce8ad34730fa480688d609ff7eb8a21008 | d09b9a4755a0c2a5162392c3d59ae9d15c8395c2 | /API/baidu_translate.py | d876205038e83385fb50640edfccd45b2ca86db7 | [] | no_license | lenfranky/tools_lz | f0cb8189c15a650bfc1d582eaad40f2c044ddaa5 | 9ec5af2491a64500a1be4f28f09946895a46e0e6 | refs/heads/master | 2020-03-28T20:55:46.962365 | 2018-11-14T05:32:25 | 2018-11-14T05:32:25 | 149,114,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | # /usr/bin/env python
# coding=utf8
import httplib
import md5
import urllib
import random
import json
def translate_baidu(text='apple'):
appid = '20180827000199175' # 你的appid
secretKey = 'eJoHgtPn_304EdwhyueZ' # 你的密钥
httpClient = None
myurl = '/api/trans/vip/translate'
fromLang = 'en'
toLan... | [
"327792549@qq.com"
] | 327792549@qq.com |
f066cea6f931f46a65d678f695ba5d46150afd2f | 75402b6c851a12ae41359fdd83e89d2160c308af | /zentral/core/stores/backends/kinesis.py | a5c04ab974baab80ac23fec6e49719b18ff53a28 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-commercial-license"
] | permissive | neocode12/zentral | 7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71 | 9ecc8d8334148627fcccaa875f100adacd7a018b | refs/heads/main | 2023-04-09T12:06:45.355559 | 2023-03-15T14:05:05 | 2023-03-15T14:05:05 | 327,651,549 | 0 | 0 | Apache-2.0 | 2021-01-07T15:30:00 | 2021-01-07T15:30:00 | null | UTF-8 | Python | false | false | 4,096 | py | import logging
import boto3
from kombu.utils import json
from zentral.core.exceptions import ImproperlyConfigured
from zentral.core.stores.backends.base import BaseEventStore
from zentral.utils.boto3 import make_refreshable_assume_role_session
logger = logging.getLogger('zentral.core.stores.backends.kinesis')
class... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
af646b7ff78e8c9fcdc8fbc2cb08695b04778a24 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/218/35224/submittedfiles/ex11.py | 4cdc5c3d13ba6d1d5401867a17bcaa65083f3520 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # -*- coding: utf-8 -*-
D1=int(input('digite o dia da data 1:'))
D2=int(input('digite o dia da data 2:'))
M1=int(input('digite o mês da data 1:'))
M2=int(input('digite o mês da data 2:'))
A1=int(input('digite o ano da data 1:'))
A2=int(input('digite o ano da data 2:'))
if A1>A2:
print(data1)
elif A2>A1:
print(d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
02f68212891d84c6678997ae7e3a4cef84abe702 | 909b254075156f52d04475156283184ef08725f6 | /qkdImplementation2.py | de4662be312130bcaced9d6003cd55797d5b4999 | [] | no_license | vexandmore/QKDproject | b4c07b5ff0d557d0f404ab46435ed888edc016a3 | a90921d0945e89d18aa40c3818c2e395d433e52a | refs/heads/master | 2023-09-06T07:44:29.172061 | 2021-11-12T16:30:39 | 2021-11-12T16:30:39 | 341,966,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,977 | py | # -*- coding: utf-8 -*-
"""
This script provides the Alice with her circuits (based on the number of bits
, the bits, and the bases.)
Input format: number of bits bits bases
[Bits and bases are passed to stdin as bistrings, number of bits is passed as
an integer]
Circuits are returned as a json-wrapped list of ... | [
"Marc@MARC-PC"
] | Marc@MARC-PC |
65e10a0a7012828e97029f713526a8b45a7a15b5 | 86f145e6a4e964fad05a4d319b28854b5b14a241 | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 6d319ce041feb3e69eb07add25a795bc69a3ab13 | [
"MIT",
"Apache-2.0"
] | permissive | Scrumpus/intapps2 | 21a11592f2efc96fa1dceafbfc2b764eb7959d91 | 6a8de928f6b397903c372fc1f1a8e84e80110c41 | refs/heads/master | 2020-05-18T01:36:10.518024 | 2015-07-24T17:02:02 | 2015-07-24T17:02:02 | 39,644,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | 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": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"scottschwalbe@Scott-Schwalbe.local"
] | scottschwalbe@Scott-Schwalbe.local |
b4a0555eec110566518aa3feabc38351ea50a5ad | bc6cd3b0525e25ed37923adb011b74702db135d7 | /tweetcheck/core/views.py | 93485a13baa221eb74d892a8b37dc50847446df8 | [] | no_license | atbaker/tweetcheck | 7dd52efe05a34612075b84d7e75d814bdbc6a2a2 | 10e010576c6fbccae16ac470850c97ed952882db | refs/heads/master | 2021-01-15T13:43:33.940895 | 2015-05-14T03:39:14 | 2015-05-14T03:39:14 | 25,584,812 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,812 | py | from django.db import transaction, IntegrityError
from django.http import HttpResponse, JsonResponse
from django.shortcuts import redirect
from django.utils.crypto import get_random_string
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_http_methods
from rest_framew... | [
"andrew.tork.baker@gmail.com"
] | andrew.tork.baker@gmail.com |
0fc2541411dcb465d061d206bdbd4ed4a27b5913 | ea97a6d0d5ffc5ec2730b63a20b1f4de0bd8112d | /scurgen/test/axes_demo.py | a74c934af8fb6965cae2a134495e19057c3db58d | [] | no_license | daler/scurgen | 35d5ee35243a41b75c444f5bb71380ba80ba72c6 | ca0e4f30e9573684b90a8123e31982490b5fe473 | refs/heads/master | 2020-12-24T19:18:19.587609 | 2013-03-11T16:35:33 | 2013-03-11T16:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
import matplotlib.gridspec as gs
import numpy as np
fig = plt.figure(figsize=(10,10))
nchroms = 21
nrows = int(np.round(np.sqrt(nchroms)))
ncols = nrows
nfiles = 3
CHROM = dict(
left= 0.05,
right=0.8,
top=0.9,
bo... | [
"dalerr@niddk.nih.gov"
] | dalerr@niddk.nih.gov |
474fc47857f2141824d51ee7e2eb4c7d9dcb842a | b05dde785f2bb083ef28de7a1e4dd2868d2d3e1a | /project/models/elmo.py | 20fe1f58c08ed41f223e37ce1f1e892cdd571cd7 | [] | no_license | I-am-Bot/nlp-homework | fe9cd9a9a87c12bd32acf8080413988570425cc4 | daa734983ddfa973f29dfe8402b0dc206ec2ab48 | refs/heads/master | 2020-12-12T14:22:23.733731 | 2020-04-07T02:23:35 | 2020-04-07T02:23:35 | 234,149,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,348 | py | import tensorflow_hub as hub
import numpy as np
import pandas as pd
import tensorflow as tf
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import... | [
"joe.weijin@gmail.com"
] | joe.weijin@gmail.com |
9854d7859fa4e053576c83e5b67de5d52be02adc | ae646229187ab11607e4889e1cf0e380b26fae5c | /experiment_code/loadtensor_runfactorization_printphenotypes.py | 7733aba7df01dbc0f8b66758c204b1db20dc5dc9 | [] | no_license | aschein/tensor_analysis | cb60caf56713cfb7191c46d3cc20c32ea591d382 | 155754be7fa8cfb97432997cb66aa37b1a7b582b | refs/heads/master | 2021-01-17T07:44:00.657311 | 2014-09-11T20:45:14 | 2014-09-11T20:45:14 | 34,183,143 | 1 | 2 | null | 2018-08-25T20:15:18 | 2015-04-18T21:19:08 | Python | UTF-8 | Python | false | false | 9,319 | py | ## this combines the 2 scripts into one comprehensive one:
##
## last modified aug 28, 2014
##
## 1. run_factorization_localadmin.py
## 2. analyze_tensor_factors_withGamma.py
##
## INPUT:
## R
## alpha
## gammaForTF: numbers separated by commas, ex: '0.001, 0.1, 0.1'
## tensor_filename
## sav... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
6fbab4480a4dbe295810065fd70027aba431136e | 65fcf07ea6d6dfe0c5a4090343b098807e075010 | /app/send_sms.py | ddf1616e9f2939a4869869007f444ac64bf91988 | [] | no_license | parkhongbeen/study_selenium | 0e7e0bc23809c57c29d5352e2ee81b9a74060026 | f1bdfd3c3aa3299791cc53363eea0a811c6dcedc | refs/heads/master | 2021-04-20T11:27:39.522904 | 2020-03-26T12:54:59 | 2020-03-26T12:54:59 | 249,679,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from sdk.api.message import Message
api_key = "NCSGLMHSQ2FTVZUA"
api_secret = "LCSOKSWPDNLZF971PMZ4XAQPZPYD60EW"
params = dict()
params['type'] = 'sms'
params['to'] = '01082128997'
params['from'] = '01050022354'
params['text'] = '야 홍빈아 내가 내일 커피사줄께'
cool = Message(api_key, api_secret)
try:
response = cool.send(pa... | [
"pack122@naver.com"
] | pack122@naver.com |
e3597b3fc31b024bf27d519c69f8f7f7e9e8eed9 | 79417cee319cba603819da7d1dadf341c8947977 | /image_cutter.py | ea84bcbd5bab6bd82e94c30dd5dca8af5d59cbfc | [] | no_license | saveliyshatrov/Cut_Image_3x3 | ef8eb7fc6c46994be58e10bac40253df2e9adbfc | e058865a175d4cf6245dc3b09759965cdfbae1b6 | refs/heads/master | 2022-05-28T17:55:13.536884 | 2020-04-29T14:56:19 | 2020-04-29T14:56:19 | 259,951,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from PIL import Image
im = Image.open('CAR.JPG')
width, height = im.size #show size of Image
print('height:', height)
print('width:', width)
left = [0,1008,2016]
top = [0,1008,2016]
right = [1008,2016,3024]
bottom = [1008,2016,3024]
counter = 1
if __name__ == "__main__":
for u in range(len(left)):
for z... | [
"noreply@github.com"
] | saveliyshatrov.noreply@github.com |
7734622e41048306a547129450508bf4c50e9f13 | 094627e84a63cdeb97c8917cc6581cc55fa8f583 | /brl_baselines/deepq/models.py | 4309da5e793c8494de2fd8a12a042c7a978427f7 | [
"BSD-3-Clause"
] | permissive | gilwoolee/brl_baselines | 844f23b31f53648796325d13cb3c252cda0fc55d | c85df28c0f2dfbd69d3d27928bcbabf36a3663bb | refs/heads/master | 2022-11-28T22:31:31.195138 | 2020-08-04T02:17:28 | 2020-08-04T02:17:28 | 278,916,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
def _mlp(hiddens, input_, num_actions, scope, reuse=False, layer_norm=False):
with tf.variable_scope(scope, reuse=reuse):
out = input_
for hidden in hiddens:
out = layers.fully_connected(out, num_outputs=hidden, activat... | [
"gilwoo301@gmail.com"
] | gilwoo301@gmail.com |
88fcdc9396f21d80fa9f728c4ba17beefaf239ba | caba236d32e5bde8d41aec9044fe830f2f7ac190 | /portfolio/views.py | 77921c901d5c8450f5b7c334cd0e796d3936545c | [] | no_license | nasirnupt/djangoproject-companyweb | d54656afe596c27d072621afcace461ffe8e112e | e79ae38c62eb1a818b642a893c2102678e8b9e03 | refs/heads/master | 2023-02-13T19:50:24.569607 | 2021-01-18T11:52:29 | 2021-01-18T11:52:29 | 330,647,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.shortcuts import render
# Create your views here.
def portfolio(request):
return render(request, 'portfolio/portfolio.html')
def portfoliodetails(request):
return render(request, 'portfolio/portfolio-details.html')
| [
"nasirbd04@gmail.com"
] | nasirbd04@gmail.com |
b844b38427f2e9c4f4144a00823d138d344fcdc4 | 563127b7364394236f1ab9e9136cd8eea25f7d8a | /Firebase database_Python script/python-firebase.py | 748f185d96859048d38e8c0e20d9c7863ef1526b | [] | no_license | WeHacks/GlobalAI | ee5eaae819416dd8854ffa42adb9860bdb18574f | edc26135953126ab148ce0b5b97bde0d9565d07e | refs/heads/master | 2021-01-17T14:46:44.321068 | 2017-10-02T20:06:04 | 2017-10-02T20:06:04 | 95,269,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | import pyrebase
# Firebase DB Connection
config = {
"apiKey": "AIzaSyDaj_0mZZ09cATbWtzQ7cK3VnxNpbwpbWc",
"authDomain": "ai-hackathon-4edf3.firebaseapp.com",
"databaseURL": "https://ai-hackathon-4edf3.firebaseio.com",
"projectId": "ai-hackathon-4edf3",
"storageBucket": "ai-hackathon-4edf3.appspot.com",
"me... | [
"swaption2009@gmail.com"
] | swaption2009@gmail.com |
b4d08603e8aef4931696a9d7174078edf019fd21 | 18b5aa9cef8ce3f349e9dce137d41d7328f53a14 | /__init__.py | 9efffaa76d4cfd6d1d65c0026a9e6b5f1efa3e26 | [] | no_license | yibaiershikexin/studygit | 2539c3a1ad7ceb2d08bc64048fa7641883a26745 | 5cdc506600476c8f425060f49eeecce38066794f | refs/heads/master | 2021-01-10T01:06:22.457286 | 2016-02-29T14:33:39 | 2016-02-29T14:33:39 | 48,268,362 | 0 | 0 | null | 2016-03-13T17:25:26 | 2015-12-19T04:27:16 | Python | UTF-8 | Python | false | false | 41 | py | __author__ = 'xinx'
import os
import sys | [
"xinxin521125@hotmail.com"
] | xinxin521125@hotmail.com |
6fbb18db3cd059dff8da41f2ab08161885d82908 | d83c981aab3c299e2a0e5c4329550acbaaa5e031 | /Week 4/venv/Scripts/easy_install-3.7-script.py | ee894aa010fd468300cf761e5e34add7825a2c5e | [] | no_license | Adit-COCO-Garg/Computer-Science-Intro-at-RIT | 1570a24b12962bad50a436f5252b563173271fb7 | 04af43edd559163ac01e20f6b62a3c2711740acd | refs/heads/master | 2020-04-16T22:36:45.146161 | 2020-01-02T07:08:46 | 2020-01-02T07:08:46 | 165,975,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #!"Z:\IGMProfile\Desktop\SEM 3\CSCI-141\Week 4\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scri... | [
"ag9126@ad.rit.edu"
] | ag9126@ad.rit.edu |
8aff43e82dcac4fabbd01e653ddb046a6e1ccec7 | 71c5926a4e69931bce8e74472a2499dc67e1b7ed | /SX127x/LoRa.py | 22144cadde54cac49ed5dee2b9c7625ffe834b68 | [] | no_license | qualitywow/Wireless-Lab4 | 16e7b974a8242a20eeea96d00d68c22b28873a17 | 4a4c61d642f2e8a5aae27ffbba094731f80c9273 | refs/heads/master | 2022-11-07T06:43:12.693068 | 2020-06-19T12:36:54 | 2020-06-19T12:36:54 | 273,489,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,190 | py | """ Defines the SX127x class and a few utility functions. """
# Copyright 2015 Mayer Analytics Ltd.
#
# This file is part of pySX127x.
#
# pySX127x is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
# License as published by the Free Software Foundation, either ... | [
"noreply@github.com"
] | qualitywow.noreply@github.com |
8da47a5ba82adab92c31ba2af81ee90577238534 | c54719e0c6552a9fffaa7dc9874752e0572f48bb | /install | e4c83ecc1eaf76dd5808a4f1ebcf2c4974e2662a | [] | no_license | peecky/yandere-trace | 27fc8c5dabcee0f3f62ace6df62e7905ea7d01cb | 739954a6202d3941e254f9526f4850f6fdd67f72 | refs/heads/master | 2023-07-12T16:37:45.875933 | 2023-06-14T08:21:58 | 2023-06-14T08:21:58 | 11,084,649 | 0 | 0 | null | 2023-07-12T14:01:52 | 2013-07-01T04:43:32 | PHP | UTF-8 | Python | false | false | 1,833 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb
from defines import *
con = MySQLdb.connect(DB_HOST, DB_USER_NAME, DB_PASSWORD, DB_DB_NAME)
with con:
cur = con.cursor()
cur.execute("""create table if not exists %s (
postId INT not null,
postInfo MEDIUMBLOB not null,
addedDate datetime not null,
mem... | [
"crimsonpi@gmail.com"
] | crimsonpi@gmail.com | |
c991ede68b1981bd70aaaa75733cea077f39f178 | 13a31481b19cdc419d17e9c7f8437b6655e3198b | /Maze_1.py | 83ebaff0aacb09a72250d89f5e16c37e53b3cbb6 | [] | no_license | m8gr75/pygame | 2bf619e3c96c3eef400a1647b74f58da128828cb | b1b5a8fcdf02581e62303b93d47db2d7e7a2ac26 | refs/heads/master | 2021-01-20T09:26:11.889185 | 2017-05-16T16:55:00 | 2017-05-16T16:55:00 | 90,252,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | import pygame
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
BLUE = (50, 50, 255)
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
class Player(pygame.sprite.Sprite):
def __init__(self, x, y):
super(Player, self).__init__()
self.image = pygame.Surface([15, 15])
self.image.fill(WHITE)
#Make our top-left corner the passed-... | [
"noreply@github.com"
] | m8gr75.noreply@github.com |
3dcd85c38401d06af2e66326a9b522210cb53cf9 | 1f006f0c7871fcde10986c4f5cec916f545afc9f | /apps/ice/plugins/oxml/oxml2xhtml_basic_states.py | aa5a0c3fb0c927117618d8300e5a12d3ff58f720 | [] | no_license | ptsefton/integrated-content-environment | 248b8cd29b29e8989ec1a154dd373814742a38c1 | c1d6b5a1bea3df4dde10cb582fb0da361dd747bc | refs/heads/master | 2021-01-10T04:46:09.319989 | 2011-05-05T01:42:52 | 2011-05-05T01:42:52 | 36,273,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,587 | py | # Copyright (C) 2010 Distance and e-Learning Centre,
# University of Southern Queensland
#
# 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 of the License, or
# ... | [
"raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05"
] | raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05 |
2d5854de4bf9e90ce484cc45109322c53f5a8080 | a7206de39ac114c1a3f81d9085f93e101373d96d | /bcw_classifier.py | 3075da247fbee00891929249e33c93e601a3639f | [] | no_license | jlsalmon/sga | 99f4d9f618aeb60bd249725c645c5889b6d313b6 | 88064ec5324cc6848ba6bfb55ddbfe422f418508 | refs/heads/master | 2016-09-06T16:35:57.084735 | 2014-03-19T16:00:01 | 2014-03-19T16:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,304 | py | import random
from classifier.BcwClassifier import BcwClassifier
from classifier.gene import Gene
from sga.population import Population
def main():
data_file = 'classifier/data/bcw/breast-cancer-wisconsin.data.txt'
data = list()
#---------------------------------------------------------------------------... | [
"justin2.salmon@live.uwe.ac.uk"
] | justin2.salmon@live.uwe.ac.uk |
8d6dcc134eeea4c7b3c88b01cc1ac7379c754755 | 8ddce82f28b9806d9dec1396989c09e46e141b56 | /favoriteBooks/favoriteBooks/settings.py | 8394b978b2301701fb7ccb35d0a8706029d73630 | [] | no_license | achan9528/coding_dojo_django_django_intro | e2cdbf4a02093f93ab802221b557f59643e892d3 | 8af4d7f3d2ae215f563f6b2f9b6be9e19c6bbb6e | refs/heads/master | 2023-02-20T22:00:50.141254 | 2021-01-22T22:43:23 | 2021-01-22T22:43:23 | 327,133,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | """
Django settings for favoriteBooks project.
Generated by 'django-admin startproject' using Django 2.2.4.
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... | [
"achan@achans-MacBook-Pro.local"
] | achan@achans-MacBook-Pro.local |
2e4599fcb12e9bafa55557645064f7af3f12c9e1 | b085268320500f2aa3e2ba50b17f9a612ba8a409 | /apps/organization/__init__.py | 8f8089a4be6535f6597729edf6bd3583ad235e7e | [] | no_license | ribribrib2/Mxonline | 31395f3a4aa47e60d2fd303b1f57bdeb8e56ddfb | 7d5121f632365917e7fedb14493cf1705af83535 | refs/heads/master | 2020-03-25T02:44:39.296512 | 2018-08-18T17:10:55 | 2018-08-18T17:10:55 | 143,305,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | # organization/__init__.py
default_app_config = 'organization.apps.OrganizationConfig' | [
"1045602705@qq.com"
] | 1045602705@qq.com |
083fe6c984275123e90a1436370f4cbe136b03a6 | c2ab9e30edc66bfd68e8d98e0dc41a67819f0e2c | /test_multinn.py | 2b8cef5fdcfc4dee9543928748bb46691bb1863e | [] | no_license | Nair08/NeuralNetworks | e1c79d8adea2d1e9a10a7e1414b96eeb089fca7d | 13f9495a4a508ea36d8160e31c4a48fd6da2d6d2 | refs/heads/main | 2023-02-03T06:05:35.494991 | 2020-12-25T01:24:53 | 2020-12-25T01:24:53 | 324,264,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,356 | py | # Nair, Siddhi
# 1001-713-489
# 2020_10_25
# Assignment-03-01
import numpy as np
import pytest
from multinn import MultiNN
import tensorflow as tf
def test_weight_and_biases_dimensions():
input_dimension = 4
number_of_layers = 3
number_of_nodes_in_layers_list = list(np.random.randint(3, hig... | [
"noreply@github.com"
] | Nair08.noreply@github.com |
a28750d60b8ec5ca5296f66052472828b084a86a | 293763954ad29020d68d17bb20b2ac8ce09b2412 | /Learning & Documentation/Create Models in Tensorflow/linear_regression.py | de2ef0001bad013224eaa176c22b37be896378d2 | [
"MIT"
] | permissive | grebtsew/Object-and-facial-detection-in-python | b4371d86ca1b997c310c961b4eeb975af42a8f78 | 4ef987f1de7509876ca1e3588b2d6f4afaef2a75 | refs/heads/master | 2023-03-30T16:52:07.192025 | 2022-07-29T16:00:50 | 2022-07-29T16:00:50 | 122,378,661 | 17 | 5 | MIT | 2023-03-25T01:49:15 | 2018-02-21T18:52:07 | Python | UTF-8 | Python | false | false | 3,681 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"danwe980@student.liu.se"
] | danwe980@student.liu.se |
4e0dade735408ec02614201f3dce6b1d129075a7 | a518141ca3ba2b6fa63a7961b51936d9438ff022 | /10812 - Beat the Spread!.py | 5d9944100b2a7760d5decf4054a94f3decb2b9c7 | [] | no_license | jlhung/UVA-Python | ec93b2c98e04c753e8356f3e4825584fae4a8663 | 7a0db4fecffd7ac4f377f93da41291a8e998ee9b | refs/heads/master | 2022-11-28T04:47:49.270187 | 2020-08-10T13:19:58 | 2020-08-10T13:19:58 | 116,969,745 | 19 | 9 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | n = int(input())
while n:
x, y = map(int, input().split())
if (x+y) % 2 or (x+y) < 0 or (x-y) < 0:
print("impossible")
else:
print(int((x+y) / 2), int((x-y) / 2))
n -= 1 | [
"35291112+jlhung@users.noreply.github.com"
] | 35291112+jlhung@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.