blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8fabceeddc2b61478c44dea26c0ddf05b5aae87e | b8201106380eeecf95f20fc26fb5bdbf43e38680 | /synthesiser/script-src.py | aaaf0e00baeef8329d318bb017d7c93a4bbfb7ac | [] | no_license | ericwang0701/SYDAMO | 4bc3d4d55e50dc1718dc0c23df27ff828b9208ff | e2285ecb75f1f7e04d2cc918304bc3c431b73f82 | refs/heads/master | 2021-02-21T11:42:45.147685 | 2020-03-05T23:22:22 | 2020-03-05T23:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,323 | py | import logging
import math
import os
import pickle
import random
import shutil
import statistics
import subprocess
import sys
import time
import uuid
from datetime import datetime
from glob import glob
from os import getcwd, getenv, remove
from os.path import dirname, exists, join, realpath
from pickle import load
from... | [
"oli4jansen.nl@gmail.com"
] | oli4jansen.nl@gmail.com |
947a32e74b228a2939732969ff1b57e7dc5e68cc | 364edc98a05ddecf5ad7b7614d2a35a95d19705b | /os_bitcoin/Bithumb_20170412_RESTFulAPI-python3/xcoin_api_client.py | bccc8fe928a3987f5073f8daa14df026d9ad127e | [] | no_license | as950118/outsource | f7f10b5ba62487da8ccddd894aaedc8af48e9d50 | 05a9f654aa222f4da4ce9c4902dde094c9d158d0 | refs/heads/master | 2022-12-21T00:18:45.405708 | 2020-02-03T15:53:16 | 2020-02-03T15:53:16 | 193,331,277 | 0 | 0 | null | 2022-12-06T22:38:00 | 2019-06-23T09:50:33 | HTML | UTF-8 | Python | false | false | 2,400 | py | #
# XCoin API-call related functions
#
# @author btckorea
# @date 2017-04-12
#
# Compatible with python3 version.
import sys
import time
import math
import base64
import hmac, hashlib
import urllib.parse
import pycurl
import json
import certifi
class XCoinAPI:
api_url = "https://api.bithumb.com";
api_key = "b023e33... | [
"na_qa@icloud.com"
] | na_qa@icloud.com |
a1f7eb3fc8f3ad6f0d4b519fcfdcf2d84d9a07f6 | 530209b9c8765c5a971ba4e515b26214f957bf86 | /calc.verificador.py | 63347a7ed34fffd939992daa66f34cf7801f5e4b | [] | no_license | juandaniel0419/trabajo-nro5 | 5e55522235e7c22d7bf4ed80974f6654afa908f8 | b0a6b4dcd4167b751c351c2fae45d4727a60050e | refs/heads/master | 2020-09-05T11:45:14.179636 | 2019-11-09T02:40:30 | 2019-11-09T02:40:30 | 220,093,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # promedio de notas
nota_1=0
nota_2=0
nota_3=0
promdedio=0.0
# asigancion de valores
nota_1=15
nota_2=11
nota_3=16
# calculo
promedio=(nota_1+nota_2+nota_3)/3
print("nota 1 ",nota_1)
print("nota 2",nota_2)
print("nota 3",nota_3)
print("promedio es",promedio)
# verificador
capacidad=(promedio>10)
print("aprobaran el ... | [
"jramosfl@unprg.edu.com"
] | jramosfl@unprg.edu.com |
1b33af3a911fd2485b4068bbfe372c4a23fcad37 | 9541d7524d86c4babd67f8ee3fc4dd3bcba37d8e | /data/make_ply_files.py | f4bb345797fac4c26b983d35dd189179fe01ba11 | [] | no_license | pisalore/Archaeological-Textures-Segmentation | 340eec90c4189afc62e0befca9e3a5a59467b643 | cad016c943596c73fd0887081154a04dbd0071d8 | refs/heads/master | 2020-07-26T19:46:33.168802 | 2019-10-09T16:15:17 | 2019-10-09T16:15:17 | 208,748,869 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | import scipy.io
import os
import glob
DATA_PROCESSED = 'Dataset_processed'
PLY_DIR = 'all_ply_dir'
# VERTEX_NUM = 6144
print('Converting .mat files to .ply file for pointClouds compatibility in Pointnet...', '\n')
if not os.path.exists(PLY_DIR):
os.mkdir(PLY_DIR)
for mat_path_file in glob.glob(os.pa... | [
"noreply@github.com"
] | noreply@github.com |
65dbab533adf94003f42eb92a3b6ade332e41cf6 | e14a07fc1b2bc660f299802ecdcf3f48ca43d006 | /server/WeHelpServer/migrations/0002_auto_20201201_0620.py | af506713f13c0dcdce084e53a080cbddedc1bfd0 | [] | no_license | jaxlin12/WeHelp | 7aa412b3cf074fe741d286368187c325dfd813de | ada49436c0547f79d1aa0e07613977072107317d | refs/heads/master | 2023-01-27T21:42:14.234986 | 2020-12-07T03:12:48 | 2020-12-07T03:12:48 | 319,771,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # Generated by Django 3.0.5 on 2020-12-01 06:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('WeHelpServer', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='task',
old_name='activate',
... | [
"yao090222@ucla.edu"
] | yao090222@ucla.edu |
04cbfe0de3ddbfe772c4bbd73d34db0545aa193a | 74c4f1ba4f2870116c47d6934c4b9136ec7fd94e | /elasticache_pyclient/memcache_client.py | 114a428124349c468a566938c3b0d466b6dd0fc8 | [] | no_license | watchamcb/elasticache_pyclient | b386cdf8fa312f82794a993b549f9fddf33ec6ab | 3df7eabfbbf736bceff7ae8cffdb34ff6391f781 | refs/heads/master | 2021-01-18T01:35:38.810693 | 2013-11-14T16:29:17 | 2013-11-14T16:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,706 | py | #! /usr/bin/env python
import telnetlib
import re
import inspect
import new
import threading
import time
import logging
import hash_ring
from distutils.version import StrictVersion
class InvalidTelentReplyError(Exception):
"""
receive configuration from endpoint is invalide
"""
def __init__(self, msg)... | [
"penyu@amazon.com"
] | penyu@amazon.com |
3381f548bbfad75fbeb08e50c0769df83dd078b6 | a38b27d0eac787ca453c0ef06f1a819305b2f648 | /varappx/main/view_tools/main_views_tools.py | 6368bb5d40f33d9ebd93088403443fe118f06682 | [
"MIT"
] | permissive | 444thLiao/VarappX-flask | 9417b84167c31276c9342b23ab56cbcc4b71fa1f | 9a59f4eb5897a1ecf90978e9f357954cdd7d410a | refs/heads/master | 2021-01-19T05:00:05.575501 | 2017-05-16T07:04:59 | 2017-05-16T07:04:59 | 87,406,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | # import logging
# import re
# from varapp.samples.samples_factory import *
#
#
# def samples_selection_from_request(request, db, from_ped=True):
# """Parse a GET request to make the samples groups and return a SamplesSelection.
# :param from_ped: read groups info based on 'phenotype' attribute in the Samples t... | [
"l0404th@gmail.com"
] | l0404th@gmail.com |
72bb38c05d5baf036e540a01e859aad184ca1856 | 213d9bfcb3a2fd5caf97ab4ae65cdcddf7751fb0 | /utils/feature_extraction.py | 29e62ed12225bbc6023a497b8dc221e4dc93e0a0 | [
"MIT"
] | permissive | zengxiao1028/speech_enhacement_spectral_domain | 37aee0d6d7d585f90ba81f43f5441c5fa0351f5b | 5ddc52f6d46b268923ac13f68b83a89671a7e88c | refs/heads/master | 2021-01-21T08:51:58.533084 | 2017-05-18T22:44:23 | 2017-05-18T22:44:23 | 91,642,712 | 0 | 0 | null | 2017-05-18T03:02:36 | 2017-05-18T03:02:36 | null | UTF-8 | Python | false | false | 3,680 | py | import numpy as np
import math
import h5py
import pdb
from scipy.signal import butter, lfilter
def butter_bandpass(lowcut, highcut, fs, order=5):
nyq = 0.5 * fs
low = lowcut / nyq
high = highcut / nyq
b, a = butter(order, [low, high], btype='band')
return b, a
def butter_bandpass_filter(data, low... | [
"noreply@github.com"
] | noreply@github.com |
0b366513abc63c575a1277c9f920b3a68fc75072 | 2d4d41e809b81b24f717c46fa2aeb5c3ec9a631b | /build/lib/pymusepipe/util_pipe.py | a7df878ccc41b54dafd79cf7183feae57eb2000b | [
"MIT"
] | permissive | oegorov/pymusepipe | 11c13eae9a00700395e0f5aad3d30af3d558d93f | 39f72448c5cbd74bab3307878eb011c75e55f6fa | refs/heads/master | 2023-08-19T01:25:50.009908 | 2021-10-15T12:01:30 | 2021-10-15T12:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,872 | py | # Licensed under a MIT license - see LICENSE
"""MUSE-PHANGS utility functions for pymusepipe
"""
__authors__ = "Eric Emsellem"
__copyright__ = "(c) 2017, ESO + CRAL"
__license__ = "MIT License"
__contact__ = " <eric.emsellem@eso.org>"
# Importing modules
import os
import time
# Numpy
import numpy as np
from ... | [
"eric.emsellem@eso.org"
] | eric.emsellem@eso.org |
84e7109ba57750a9364197a36f681a0588c88541 | 086c53e5b72697b0603e40f3f6d1f8b93c36014d | /Part 2/util.py | 8cae0573dd6cbebeb872ab534de9df3f37679dac | [] | no_license | zWarMob/SiteCore-Technical-Consultant-Exam | 8306052a556efe4c98b039d648c7123479f18b36 | f643d181e224db05cc66e644bcf42ee65a3a6f79 | refs/heads/main | 2023-06-18T03:27:01.312003 | 2021-07-18T14:03:00 | 2021-07-18T14:03:00 | 386,600,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | import csv
import json
from dataclasses import dataclass
from json import JSONEncoder
def getdata(filename):
with open(filename, "r") as csvfile:
datareader = csv.reader(csvfile, delimiter=";")
yield next(datareader)
for row in datareader:
yield row
def gettransformeddata(filen... | [
"petyozh@yahoo.com"
] | petyozh@yahoo.com |
39c4bd2b4ff7d583fcaa44284619474e6bb734c6 | 33016ba184ccc2724ba10598871b2c8cbfec7ea4 | /SlackBot/.ipynb_checkpoints/app-checkpoint.py | 5837236b32805645ff70a68a5fb001df34a24170 | [] | no_license | georgiobitar/Python | eb1bc5cc3df1b9e29c80e0d42f0460d010a65d43 | b8931b8d2b4365fa624bac1092a56d3b788ffc67 | refs/heads/main | 2023-04-27T16:56:19.510484 | 2021-05-21T05:58:12 | 2021-05-21T05:58:12 | 354,021,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | import os
from flask import Flask
from slack import WebClient
import os
from slackeventsapi import SlackEventAdapter
app = Flask(__name__)
slack_events_adapter = SlackEventAdapter(os.environ.get("SLACK_EVENTS_TOKEN"), "/slack/events")
slack_web_client = WebClient(token=os.environ.get("SLACKBOT_TOKEN"))
MESSAGE_BLOC... | [
"georgiobitar1@hotmail.com"
] | georgiobitar1@hotmail.com |
51afae63483640f17bac4bc8fdab101f242beafd | b52200a3212bf59ee93842e8f7f95a0d707c3415 | /docs/conf.py | 0faa0f9d513634f26a667774a8a5fb38b763525d | [] | no_license | dispensable/myserver | c9b31e1ea7e4bac67dc931b977a96b3a0ee8544b | f25195d3223bc52d49739b12b028a22fd6d90b92 | refs/heads/master | 2021-01-22T23:58:26.031489 | 2017-05-13T11:14:27 | 2017-05-13T11:14:27 | 85,684,554 | 0 | 0 | null | 2017-05-09T19:44:13 | 2017-03-21T09:46:06 | Python | UTF-8 | Python | false | false | 5,050 | py | # -*- coding: utf-8 -*-
#
# MyServer documentation build configuration file, created by
# sphinx-quickstart on Fri May 5 16:31:58 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"sunsetmask@gmail.com"
] | sunsetmask@gmail.com |
29979a50eb97f8b2cada8a8494ed4955d6c30c59 | f76d249ad729ed41a15cf7ee1811072cf331e2b6 | /Task3/lib/layers/coverage_classification.py | 4f4ca88e26eb27c8f9dbc492a0f3b25aaa232d48 | [] | no_license | abelyaev-vmk/NDL | 6b65c449f7feba41bc04a3154d7dfd59864af8fa | 0b48a94f753e7d38e500bd9875db44cf233734df | refs/heads/master | 2021-01-22T04:05:15.702883 | 2017-05-29T22:05:35 | 2017-05-29T22:05:35 | 92,429,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,550 | py | # --------------------------------------------------------
# Deep CNN Detector with Pretrained Models
# Copyright (c) 2016 Graphics & Media Lab
# Licensed under The MIT License [see LICENSE for details]
# Written by Konstantin Sofiyuk
# Modified by Andrey Belyaev
# ------------------------------------------------------... | [
"abelyaev.vmk@gmail.com"
] | abelyaev.vmk@gmail.com |
fa84cea57d1aa145d4bdbfedfe887f28778bda13 | 228afeeb4187d65ee4edbf90565eadf5f6c425ef | /movie/fastcampus_pythonstart_project/movie/models.py | 4ee040df43ea0c7e611276599e2a3f091c8a82be | [] | no_license | Raymund1978/Python_FinalProject | 2e9cf7eb29d4f0e97501284c42c22af9021bd1c2 | 91c3bfbf0215ffade435a24d867fa54d0b4e162e | refs/heads/master | 2020-04-07T03:00:01.297963 | 2018-11-17T17:22:02 | 2018-11-17T17:22:02 | 157,998,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from django.db import models
# Create your models here.
class SearchResult(models.Model):
keyword = models.CharField(max_length=50)
search_date = models.DateTimeField(auto_now_add=True)
def __str__(self):
return '{}({})'.format(self.keyword, self.search_date)
class Movie(models.Model)... | [
"noreply@github.com"
] | noreply@github.com |
f6358d1f3caaaa40742d27202142abe3148d4c89 | d91498fd99bec6033aa4fdf9f063b530331c1f28 | /python/basic/color_trans/cv2_trans_1.py | 6bdd8b6b7f86f851640f21e23f9cea5de77da4b0 | [] | no_license | webstorage119/cv_study | 47ec6b12f966a4ccaeccd8696f5e3a5a2765f1f7 | 2873863ce050accf756af560a910bc362c64f4ec | refs/heads/master | 2022-09-22T12:36:48.778720 | 2020-06-05T09:46:53 | 2020-06-05T09:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import cv2
import numpy as np
# BGR <> Gray
# BGR <> HSV
# For HSV
# H(色彩/色度)的取值范围是 [0,179]
# S(饱和度)的取值范围 [0,255]
# V(亮度)的取值范围 [0,255]
img_rd = cv2.imread("../../photos/test_1.jpg")
img_rd = cv2.cvtColor(img_rd, cv2.COLOR_BGR2HSV)
print(type(img_rd))
print(img_rd.shape)
lower_blue = np.array([110,50... | [
"zhengtian.xie@intel.com"
] | zhengtian.xie@intel.com |
0ba2c4dcd129f091f8500171adb217795eddb06e | 4b97719fee50025b0a03a91cc85052f086453b05 | /IA/tema2/run_check.py | 6264e35c34aaa24434c2f46c645694609038d0cc | [] | no_license | adrianaT10/facultate | c62743a892b87669a643d9ccd1383818b89518d7 | 03d843ea9ae7d55f4d776aae4c88f91433486998 | refs/heads/master | 2020-03-21T21:20:36.143479 | 2018-12-29T14:08:23 | 2018-12-29T14:08:23 | 139,058,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import sys
import check
FILENAMES = [
'tests/sample.in',
'tests/test1.in',
'tests/test2.in',
'tests/test3.in',
'tests/test4.in',
]
SCORES = [
10,
625,
595,
710,
950,
]
def main(argv):
verbose = False
if len(argv) > 1:
if argv[1] == '-v':
ver... | [
"noreply@github.com"
] | noreply@github.com |
f56a9204edae0a8e5ae7804f8df7bac02054d760 | a0c3336b43f950e98b6123358052dfaa16a89aa9 | /backend/src/articles/migrations/0001_initial.py | a73283a17a5a41ac9debfdb574799be756ca3293 | [] | no_license | SuLTaNFoRStuDy/djreact_ | 04dadc305366915c9c434ef53e69b6eb455f80ed | 2a28a68c6f264f916dd4b4800ab9e7c52474c294 | refs/heads/master | 2023-01-08T09:40:52.793325 | 2020-11-05T17:22:26 | 2020-11-05T17:22:26 | 310,362,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.1.3 on 2020-11-03 16:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(... | [
"sirlikoinot@gmail.com"
] | sirlikoinot@gmail.com |
258404ba8cab80181f63afef94e3fca9954d5423 | d71c4fb89e498be4ec956efd86a88f498066bbe6 | /setup.py | 44d37f9c21b6e85127d5d0c750ab9e7eb36aa244 | [] | no_license | djondb/djondb_python | 801e84a94d9d09a6c96f4e09785115aec3c945a2 | 7a5fe4eb836fd579e5760eead26b7bc4eb44ad33 | refs/heads/master | 2021-01-17T11:17:19.617082 | 2017-05-20T17:44:07 | 2017-05-20T17:44:07 | 16,453,773 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python
"""
setup.py file for djondb python driver
"""
from distutils.core import setup, Extension
setup (name = 'pydjondb',
version = '3.5.705200',
author = "Cross",
author_email = "cross@djondb.com",
license = "GPL",
description = """Python driver for djondb""",
packages = ["pydjond... | [
"cross@djondb.com"
] | cross@djondb.com |
e43dad7b1f4e4cc1de756507b51b9a63a5969a07 | 0ef4a02f4e47ac66917ce5ec6c2bd0553dffa567 | /算法笔试/VIPKID/1.py | 9b11fc386c4c59ac0df484061f2aa8886036d603 | [] | no_license | Raymond0620/Interview | 3ea6d88bed9e99f921a8244cf48c0a09d17f5ab9 | e604dbb29f251a267ba45673f0ad25b930de5fb6 | refs/heads/master | 2020-12-11T13:22:50.529794 | 2019-11-06T06:48:51 | 2019-11-06T06:48:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | '''
@Descripttion: 二进制表示1的个数
@Author: daxiong
@Date: 2019-09-03 15:55:46
@LastEditors: daxiong
@LastEditTime: 2019-09-03 16:41:56
'''
a = int(input().strip())
resNum = 0
while a != 0:
a &= a - 1
resNum += 1
print(resNum) | [
"2434309156@qq.com"
] | 2434309156@qq.com |
7fbc73e5ec2813e173abf26af761fb41140f80fc | 3ee11751f966425142499cf8cc19cdc1b07c3409 | /Week 0/Degrees/degrees.py | 9d9514584fdb88901266953f02bde314fc3c3ebb | [] | no_license | KingVova07/cs50x-ai | 6e4eae777779c34face0e482b7a510efea9f4e87 | 0c12f747d337b9aedd56ea5cf8fd0a1c169d7e49 | refs/heads/main | 2023-03-01T04:51:36.001934 | 2021-02-09T08:49:41 | 2021-02-09T08:49:41 | 315,293,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,448 | py | import csv
import sys
from util import Node, StackFrontier, QueueFrontier
# Maps names to a set of corresponding person_ids
names = {}
# Maps person_ids to a dictionary of: name, birth, movies (a set of movie_ids)
people = {}
# Maps movie_ids to a dictionary of: title, year, stars (a set of person_ids)
movies = {}
... | [
"noreply@github.com"
] | noreply@github.com |
bed19f27d6f253501d358fdb00bec88092c7f937 | 97507a2e349f6aee37bf851ccf3184893c97c621 | /Python/2019_05_28_Problem_133_Inorder_Successor.py | 1a15de43ab0140c37e6f03e1fb1a2f5478e58e17 | [] | no_license | BaoCaiH/Daily_Coding_Problem | 935d581f3ac9cb5b72e871191c4d5f93413ab294 | 97eae3ee806756f4d646d600f434b1e68164ad34 | refs/heads/master | 2020-04-17T04:04:45.630222 | 2020-03-10T11:46:49 | 2020-03-10T11:46:49 | 166,213,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | #!/usr/bin/env python
# coding: utf-8
"""2019 May 28th - Daily_Coding_Problem #133."""
# <markdown>
# ## 2019 May 28th - Daily_Coding_Problem #133
#
# Problem: Given a node in a binary search tree,
# return the next bigger element, also known as the inorder successor.
#
# For example, the inorder successor of 22 is 30.... | [
"caihongbao280996@gmail.com"
] | caihongbao280996@gmail.com |
07839232ee0c112c071e4a14b5992c38aecb6fb2 | 23ebde7d912b95f29ddd962f54470735832e460a | /blackjack/0.02.py | 0234c80f52bc3afb9b26478ec6d6361eb97d737f | [] | no_license | JerkyTreats/blackjack | bf0742c5558c8b4091f638b582947d91b821acbd | 4bc4ac5c415f8b898d14389e63769790b08f0169 | refs/heads/master | 2021-01-02T08:52:13.539286 | 2012-01-30T00:22:41 | 2012-01-30T00:22:41 | 3,176,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,561 | py | from random import randint
#First hack - exploring data structure
#0.01 - 13/01/12
#The class "Deal" not called for now, trying to figure out where my logic should go.
#Not knowing from the start how I want this system to work is a killer.
#Need to investigate how to visualize the whole system first, and fill in t... | [
"mistanearing@gmail.com"
] | mistanearing@gmail.com |
f5f0e84fee58154912e9277900571cd400a9a6e6 | 4a291f814f40bfb9cb44ba785bc18d45ec1a1fcd | /Other/Code Exemples/Python/hwk8prob3.py | 594004fe1ee9cb944a11db72eabfc6a685a034ee | [] | no_license | mlquadri/mlquadri.github.io | 9d56a9b8b3bd75cf6348a9029b1ff6919a7f92c0 | fb2a511515dd0617e75a35fccd8c8238e61e1a6e | refs/heads/master | 2021-12-30T19:02:25.258443 | 2021-12-22T19:55:52 | 2021-12-22T19:55:52 | 169,101,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # hwk8 prob3
# mquadr8 661351305
import os
import json
import csv
lectureFiles = []
for file in os.listdir():
if(file[-3]+file[-2]+file[-1] == ".py"):
readFile = open(file, "r")
fileData = readFile.read()
readFile.close()
if("Lecture" in fileData):
lectureFiles.append(f... | [
"mslhquadri@gmail.com"
] | mslhquadri@gmail.com |
e5781cbf7662925a7190d3d6ba6a5518da1e8020 | 382f0d5513ffc78da14db32812109033fc3d81be | /Introduction to Python/01 Python Basics/The Python Interface.py | 39d7ade1b0e130410e27d339dc285da4ae1d8936 | [] | no_license | Mu-C00L/DataCamp | 677335f9c51e3b137c46082ddf0bd41b9471b4ae | 226e6389c74dbbbfc4543bba364f5dc74d214b9e | refs/heads/master | 2022-12-07T07:12:51.071363 | 2020-08-29T12:28:19 | 2020-08-29T12:28:19 | 285,858,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | #In the Python script on the right, you can type Python code to solve the exercises. If you hit Run Code or Submit Answer, your python script (script.py) is executed and the output is shown in the IPython Shell. Submit Answer checks whether your submission is correct and gives you feedback.
#
#You can hit Run Code an... | [
"noreply@github.com"
] | noreply@github.com |
1d1d388dc92c4951218f998ff55d49271e4c0274 | 85fbf6bf6d5ddf01821da29939365a083d8cf275 | /project1/app1/migrations/0001_initial.py | f53c2c7856c75a2ff5369448b46a1e44f5d1b490 | [] | no_license | 33vamshi33/django-deployment | 1882514ed5639a52555c878148c92d63ddbeeb2b | 29182fe4534b8fc4ea9e6cb9cbb192bf230a4bfa | refs/heads/main | 2023-01-13T21:24:34.428554 | 2020-11-15T12:54:59 | 2020-11-15T12:54:59 | 313,027,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # Generated by Django 3.0 on 2020-11-13 13:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Topic',
fields=[
... | [
"61841078+33vamshi33@users.noreply.github.com"
] | 61841078+33vamshi33@users.noreply.github.com |
3e22a23344d77df8142474286486d6f659bc9cf4 | 9a4171094d4e67482d3fa52d3c0db9284fe8c858 | /game_objects/grass.py | a4dfa475196e96d514a0265838bef33bdcd66902 | [] | no_license | bkmz1840/BattleCity | dbcd941551dc2b644e09818c9df4e06456c8d03a | 9a40af624098894d306052a186367120cf43a72d | refs/heads/master | 2023-04-11T10:59:51.808130 | 2021-04-27T15:57:59 | 2021-04-27T15:57:59 | 362,165,964 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from engine.game_object import GameObject
class Grass(GameObject):
def __init__(self, x, y, size):
super().__init__(x, y, size, "Grass",
"./textures/sprites/grass.png", 1, 0)
| [
"bkmz1840@gmail.com"
] | bkmz1840@gmail.com |
c882f194b49dd0f8cc55937db484206a13878200 | 1411c13a7cad6fb5682f5a4f0d20fc0f01c99304 | /markdown_text.py | 0b560124df6e47101edc1e40890898437e844bc6 | [
"Apache-2.0"
] | permissive | dhudsmith/WatsonWattDashDemo | 02318c53e2e31bd54861002cdee9d52d84ae663d | 9b7ad09114f343c8c70f27dd9e0ef9cafaadd2f3 | refs/heads/master | 2020-03-31T01:52:03.442732 | 2018-10-08T01:30:38 | 2018-10-08T01:30:38 | 151,798,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | # coding=utf-8
mrk_title = '''
## A visual exploration of nearly 10,000 tweets about Clemson Football
This brief demo uses AI tools including IBM Watson to create a visual representation of a sample of tweets
about Clemson Football collected in September and October 2018.
Human concepts of _topic_ (like Kelly Bryant... | [
"dhudsmith@gmail.com"
] | dhudsmith@gmail.com |
b675b567f1ca8b19f71f13a481b2c1f48fed4a7a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02991/s309121406.py | e6af09084c5db2471cde62c6c8b5d88d68d8a2e5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | import sys
input = sys.stdin.readline
N,M = map(int,input().split())
UV = [tuple(map(int,input().split())) for i in range(M)]
S,T = map(int,input().split())
S,T = S-1,T-1
es = [[] for _ in range(N*3)]
for u,v in UV:
u,v = u-1,v-1
es[u].append(v+N)
es[u+N].append(v+N+N)
es[u+N+N].append(v)
from collect... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
649e4f47dcae9f434914056a0715cbc94ff19f04 | e2a96b7335412d8a17db8770da9bc1c5fb9b5f20 | /manage.py | d03ba1930985c73c63fca527ff3d55485208ee66 | [] | no_license | Nastia6347/Progect | 12336d33052de3097f77fe9df5147e51e2f67938 | 45b321d3847fb43e646d46c704702514b06b3667 | refs/heads/master | 2016-09-05T23:51:39.327692 | 2015-02-02T17:43:32 | 2015-02-02T17:43:32 | 30,196,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Progect.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"gnue@inbox.ru"
] | gnue@inbox.ru |
39b018b9a1d68ced54d678753cfc8e29b08ac96d | 23dbeeac1eef59390dbadb3a83cb41df6d1ff16e | /flask-hello-world/app.py | af67584133a1786aa4be36d0a479487bd25f42ab | [] | no_license | PetarGeorgi/RealPython | 5651f560960cdbe778a9ff9a852552627506bfea | fa059bf84e44e06c18f5c2fb66019947289f797e | refs/heads/master | 2022-12-22T05:09:59.293139 | 2020-09-19T06:28:27 | 2020-09-19T06:28:27 | 293,229,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | #-----Flask Hello World ---------#
# import the FLask class from the Flask package
from flask import Flask
# create the application object
app = Flask(__name__)
# use decorator pattern to lunk
#view function to a URL
@app.route('/')
@app.route('/hello')
#error handling
#app.config["DEBUG"] = True
# define a view ... | [
"penet@abv.bg"
] | penet@abv.bg |
5714add236d67edc73e36e49df3c5afcec41863f | 7d3d3d1f509ba0d2ac19dcf7525fafff0ac33cfb | /neural/engines/classification.py | 333b7f8ea8af3e08cf9d2cde16007e7d6ead92be | [
"BSD-3-Clause"
] | permissive | rubendfcosta/neural | 5d7a6ca98cb084ce22c599276cc711c9aa496bf1 | 14def6bebe620c68f0d3970554f48d23d2de64c7 | refs/heads/master | 2022-10-22T05:28:33.636017 | 2020-06-15T16:43:43 | 2020-06-15T16:43:43 | 272,482,314 | 0 | 0 | BSD-3-Clause | 2020-06-15T15:57:10 | 2020-06-15T15:57:10 | null | UTF-8 | Python | false | false | 746 | py | from ignite.engine import Engine, Events
def create_classification_evaluator(
model,
device,
non_blocking=True,
):
from ignite.metrics import Accuracy, TopKCategoricalAccuracy
from ignite.engine import create_supervised_evaluator
def _prepare_batch(batch, device, non_blocking):
image ... | [
"bernardo.lourenco@ua.pt"
] | bernardo.lourenco@ua.pt |
30625d3065955e2c4ea5702693413c0c18620eeb | cf60c15e9df925446b91a7ed60e073c627690774 | /src/simulate.py | 84bb0cdd609c1c4f414d5909b145886a1e64d318 | [] | no_license | chaochenBSU/Workshop_Material | eebd35b072bbbd35f365d475fbf8671c849bd0d3 | 5f60e2552d1fa09bf5bcad37a6e48ec03bb78208 | refs/heads/master | 2020-07-25T16:10:42.939526 | 2019-09-12T16:44:34 | 2019-09-12T16:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | # -*- coding: utf-8 -*-
"""
simulate
~~~~~~~~
Random simulation of the images for classification.
"""
import numpy as np
import utils
def simulate_images(image_shape, class_sizes):
"""generate data used for logistic regression"""
rectangles = generate_rectangles(image_shape, class_sizes[0])
c... | [
"zhengp@uw.edu"
] | zhengp@uw.edu |
ae7f12952f1b16f9a54b0c881fa92120c72709c2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FJk4mJwRk2TYZhkeQ_16.py | 9e35fdec6941c741373d0760b5d1ed5dc67a750f | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py |
def accum(txt):
return '-'.join([(n * ch).title() for n, ch in enumerate(txt, 1)])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
34b2cea2323742a141247d26971b9a37e871f015 | 527ad06058737ba4d53b688ce9ab4b79c91ae7cc | /MediaSpace/content/migrations/0003_auto_20200109_1314.py | a17f1aa02eff4ef0d5f4d3a06a865d57e9716e5a | [] | no_license | DomenRok/MediaSpace | 214b69d02b77b69d992648d9f63dbd54642d9a01 | 0cd99d51f10c77ba693dad86c8868dc4c31028e0 | refs/heads/master | 2021-06-21T23:21:35.341965 | 2020-01-20T17:07:15 | 2020-01-20T17:07:15 | 225,830,370 | 0 | 0 | null | 2021-05-10T12:51:00 | 2019-12-04T09:36:04 | HTML | UTF-8 | Python | false | false | 1,332 | py | # Generated by Django 3.0 on 2020-01-09 12:14
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"domen@arvio.si"
] | domen@arvio.si |
21ad33c5eb5721c65d72a1a2723d2527b938d33c | 1833d12882a9725d7e75494951ce64bb50dccc1f | /algo/heap/python/merge_k_sorted_list.py | 841955c346f7981b168fc75f019eb43436fd99ab | [] | no_license | vivekkumark/BigO | c1c4c194a3568e66c6c494d4dfc6c6eb36af3f94 | 0d7ae294588aec1da1590bbb1abae2e8a96d7e3a | refs/heads/master | 2021-09-24T04:36:00.016018 | 2018-10-03T04:10:48 | 2018-10-03T04:10:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import random
import heapq
def merge(lists):
merged_list = []
heap = [(lst[0], li, 0) for li, lst in enumerate(lists) if lst]
heapq.heapify(heap)
while heap:
val, li, ei = heapq.heappop(heap)
merged_list.append(val)
if ei < len(lists[li]) - 1:
heapq.heappush(heap,... | [
"vivekkumar1987@gmail.com"
] | vivekkumar1987@gmail.com |
5da679469b7a02c780bb56dd36b62595fddd6bc0 | b7f377f96f3fba8d7c42735a2327251ce290ee58 | /ranger/colorschemes/solarized.py | 8cdfb5cee42ef90ad0d9ea80e29c57a568188e49 | [
"MIT"
] | permissive | rampage644/dotfiles | 5f0540323bf710f4d18ff5c544fcdf26c773a1c9 | c352e6fca0167afc5dea97b445fa22da8170cc1a | refs/heads/master | 2020-03-31T20:18:03.279587 | 2018-10-15T10:08:15 | 2018-10-15T10:08:15 | 152,534,030 | 1 | 0 | MIT | 2018-10-15T10:08:17 | 2018-10-11T05:06:30 | Python | UTF-8 | Python | false | false | 4,143 | py | # This file is part of ranger, the console file manager.
# License: GNU GPL version 3, see the file "AUTHORS" for details.
# Author: Joseph Tannhuber <sepp.tannhuber@yahoo.de>, 2013
# Solarized like colorscheme, similar to solarized-dircolors
# from https://github.com/seebi/dircolors-solarized.
# This is a modification... | [
"sergei.turukin@coins.ph"
] | sergei.turukin@coins.ph |
7a42ecf1a8eab62cc0f4bc523990a42d2af42ba4 | 47a0a373fad3ade222680b7a0ccc834a9befbffd | /old_django_malliva/mallivaPages/urls.py | 44908211199e83eceee7da13beabcb14348d723a | [
"MIT"
] | permissive | olubiyiontheweb/malliva | e3d62966e547f017dd8a1368a880963956b4f46d | b212e6b359eed54c92533f0a02afe3c0042150e2 | refs/heads/master | 2023-08-24T04:03:00.422832 | 2021-10-27T08:33:10 | 2021-10-27T08:33:10 | 387,452,872 | 0 | 0 | MIT | 2021-07-19T12:15:52 | 2021-07-19T12:15:51 | null | UTF-8 | Python | false | false | 217 | py | from django.urls import path, re_path
from .views import index
from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title="Pastebin API")
urlpatterns = [re_path("", schema_view)]
| [
"olubiyiontheweb@gmail.com"
] | olubiyiontheweb@gmail.com |
b5d535e8782dd9ac54bfe2ebf4659d82a5fe3ddc | 6e4a9ffc8376b9117012e344f0da26e521666798 | /BasicModule/Module_logging.py | 2bd1efd53ec1f3e413741badb9a189c44e0932e1 | [] | no_license | blueswhy/PythonBasic | e5cf0ba000fe733f981fd496b6af105c5521076e | 45536d4710172ab48e9ba9f6496347780c9d5539 | refs/heads/master | 2022-12-03T13:36:33.579528 | 2020-08-23T03:14:15 | 2020-08-23T03:14:15 | 288,459,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | # 日志文件
# 默认情况下, python的logging模块将日志文件打印到标准输出中, 并且仅仅显示大于等于warning级别的日志,
# 日志文件等级为Critical>Error>Warning>Info>Debug. 默认日志格式: 日志级别-LoggerName--用户输出消息
import os
import logging
from logging import handlers
import time
# 1. 改变日志格式, 级别, 输出位置
# 日志格式规定查找python中的logging模块文件有对应说明
filename1 = '../demo' + os.sep +... | [
"noreply@github.com"
] | noreply@github.com |
604c94d7f552d901a4915750812eb44e3d95e775 | fafd9e1c2e0affee8417d31295a03b6c112c078b | /migrations/versions/78c38e381718_构建表结构.py | d2341ee6047f2f93c54555d6b16213b98646a483 | [] | no_license | xiaofeifeiglp/flask_house | 66553d69f0c87b18b2e60d64eecedddbbc2dc70c | f4423e2b31f18476fa54e992ba47566c6ac17176 | refs/heads/master | 2020-04-08T08:01:37.229573 | 2018-11-26T12:03:44 | 2018-11-26T12:03:44 | 159,161,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,298 | py | """构建表结构
Revision ID: 78c38e381718
Revises:
Create Date: 2018-11-26 19:44:41.140690
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '78c38e381718'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by... | [
"1010676900@qq.com"
] | 1010676900@qq.com |
df7b3721323b21582f9291b5bf8fb7c8398c5d28 | 1b743297fc8a8f5dee72fb41ab58f6261bf5c447 | /traffic_monitoring/deep_sort/deep/train.py | e118c5e9fb6cc3332411720b3748210972c79bb3 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jul095/TrafficMonitoring | 1da2037a2c2e9477477cbe043fa1ae66376e16ee | f5123d867bbf675e01a648300f5a5cca1792b10d | refs/heads/master | 2023-05-22T12:48:59.597345 | 2022-01-21T15:40:27 | 2022-01-21T15:40:27 | 420,131,926 | 11 | 3 | Apache-2.0 | 2022-03-30T11:51:29 | 2021-10-22T14:34:04 | Python | UTF-8 | Python | false | false | 6,402 | py | import argparse
import os
import time
import matplotlib.pyplot as plt
import torch
import torch.backends.cudnn as cudnn
import torchvision
from model import Net
parser = argparse.ArgumentParser(description="Train on market1501")
parser.add_argument("--data-dir",default='data',type=str)
parser.add_argume... | [
"julian.strosahl@live.de"
] | julian.strosahl@live.de |
9cabf89a78497da2c6d7362d2868f48227e72c2d | efb676474f2c6086cd64ae413c00513d9d04fd19 | /network.py | d1c8d62fd8cbd02a264988dc883f159b05393e91 | [] | no_license | TheNonexistent/Obsidian | 4fd66a1e74d87aa74080d0f4af8cc193c6f0c9cf | 1462039084d059ccbdc50874b9a54ae520d2f734 | refs/heads/master | 2020-08-17T23:09:18.449919 | 2019-10-17T06:46:54 | 2019-10-17T06:46:54 | 215,722,053 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from socket import *
import json
def listen():
chains_socket=socket(AF_INET, SOCK_DGRAM)
chains_socket.bind(('',2446))
while True:
chains_data=chains_socket.recvfrom(1024)
try:
new_chains = json.loads(chain_data)
for new_chain in new_chains:
chain = Chain(new_chain['name'])
... | [
"thenonexistent666@gmail.com"
] | thenonexistent666@gmail.com |
34652f4aad1b490ecb2754425506ab9f05ec1ea2 | cb98c87977cd4716207a21227a8dc21a91bfc2df | /plugins/add_uids_plugin/setup.py | f99a2c0507295186fe91688ece012c6f4b211e78 | [] | no_license | szpotona/cloudify-add-uids-workflow | a481676c2ad3ba8b41d145ae495752787b7daa9a | a9c2c5ba3f1d9c06e5bce318c5de8767890179e6 | refs/heads/master | 2021-01-10T02:47:17.559708 | 2016-03-02T16:28:00 | 2016-03-02T16:28:23 | 52,977,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #########
# Copyright (c) 2013 GigaSpaces Technologies Ltd. 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... | [
"anna.szpoton@gmail.com"
] | anna.szpoton@gmail.com |
468386242a704b03e35fc4bc7008e900e8922053 | f69c2768c7bcc3c20f3c58c593d51a2ba82931f5 | /src/check_s3 | d02488d6b115fd8e50a6c37feafd184be281ad59 | [
"Apache-2.0"
] | permissive | rochaporto/ceph-nagios-plugins | 5a3d42c74dc7638e5fd9c5da04094c7d0208541f | a49e1c577a54f350cfcd0a1ce50bdb0fcbff51f6 | refs/heads/master | 2020-05-29T11:00:08.680301 | 2014-07-28T03:15:34 | 2014-07-28T03:15:34 | 15,096,249 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | #!/usr/bin/env python
#
# Copyright (c) 2014 Catalyst IT http://www.catalyst.net.nz
#
# 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
#
#... | [
"rocha.porto@gmail.com"
] | rocha.porto@gmail.com | |
e4fbb621ec72e6862ec035397d611aae3c88d242 | b8d16686cb1255722d891f861e952b3a7d754e3a | /data/preprocess.py | 33464a6c2997532e0837e6a22ae50f05fa3c108e | [] | no_license | tinder-brextonpham/auto-complete | 7b983647f2db1e31d1c7346b8032cec265a4b04f | 75ae7b84813435e0352bc1bae6441d9b846b9efa | refs/heads/master | 2020-04-11T09:25:21.182018 | 2018-12-13T18:08:06 | 2018-12-13T18:08:06 | 161,676,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | import csv
import sys
import talon
from talon import quotations
from talon.signature.bruteforce import extract_signature
def extract_text(message):
extracted_text = []
unnecessary_fields = {"Message-ID:", "Date:", "From:", "To:", "Subject:", "Mime-Version:", "Content-Type:", "Content-Transfer-Encoding:", "X-From:", ... | [
"brexton.pham+github@gotinder.com"
] | brexton.pham+github@gotinder.com |
b4ea3200526f125eed544cfff5869d1a94fb3e17 | d17f1223cf7c1a63f16234153cfbde80a463f06a | /client_rpc.py | a58154846428e02141075a453fff5390ef7bd25d | [] | no_license | eugenejw/TCSS558-Project3-Replica-Distributed-DB | 539a45b3e55fc36defaa480c597726a94eec0414 | 2a1af8d407b7ded700f6fc75ac922decb8adc24d | refs/heads/master | 2016-09-06T13:14:08.924091 | 2014-12-01T04:50:51 | 2014-12-01T04:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | import io
import random
import traceback
import logging
import sys
from datetime import datetime
import Pyro4
#
# TCSS 558 - Fall 2014
# Project 3B replica distributed DB
# File: client_rcp.py
# Authors Wiehan Jiang
# Date: 11/04/2014
#
logging.basicConfig(filename='client_rpc.log', level=logging.INFO)
#logging.info(... | [
"root@li200-71.members.linode.com"
] | root@li200-71.members.linode.com |
23ffec84dce0763a5cf356a887e69c278f9ab72b | ddbe3e7edc710be897f5cc77db0dbff45d824395 | /Python_07/ps7q6.py | 6c6acc6ad1333025e2023c77e1b49a1909807f80 | [] | no_license | mrwaas/PFB_problem_sets | 2a440805b384699a6695ce5e855cd9496499bd66 | 254c595f1dad9b556016c918351b1ecdaa4e2e37 | refs/heads/master | 2020-04-01T11:30:26.799141 | 2018-10-29T22:10:35 | 2018-10-29T22:10:35 | 153,165,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!/usr/bin/env python3
import re
with open('Python_07_ApoI.fasta.txt', 'r') as myFile:
file = myFile.read()
mySites = re.findall(r'([AG]AATT[CT])', file)
print(mySites)
| [
"mwa@pfb03.cshl.edu"
] | mwa@pfb03.cshl.edu |
ceceb00082eb6fd10a0838176c1c358775ae0068 | bb3f4da868e4a443406f1f13b1210c264d01f973 | /TestMain/wetest/wetest.py | 0d014e3cebdd1d55ce096265c1595003c15dbadc | [] | no_license | P79N6A/workstation | f27ba5c8c22423ea5e006ba71f8a0f47fcccb181 | 56cc5216a42a044729c325f45e2bd0d6b00e7817 | refs/heads/master | 2021-07-02T13:26:42.763469 | 2017-09-24T08:25:03 | 2017-09-24T08:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | #encoding:utf8
import sys
import time
from selenium import webdriver
driver = webdriver.Chrome()#executable_path="路径"
driver.get("http://wetest.qq.com/auth/login/?next=/")
time.sleep(3)
driver.switch_to_frame("qq_frame")
driver.find_element_by_xpath("//a[@id='switcher_plogin']").click()
time.sleep(1)
driver.find_ele... | [
"3071388565@qq.com"
] | 3071388565@qq.com |
de0f73823b013b93b8f6437e8b02887ff3bdceac | ff641ed9dc21d446724857c37c2d7d29c9daa4c5 | /44.py | a7b949ccbaba60daac8a157444c37992f0fea6ac | [] | no_license | ArturoBlazquez/Project-Euler | 70d1fe416d0e15435c3789737aa4117ba5051e49 | 851ef84182032817da75ae57040311fd9ed353c4 | refs/heads/master | 2021-01-24T12:56:36.674138 | 2018-02-27T16:54:35 | 2018-02-27T16:54:35 | 123,157,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from math import sqrt
pentags=[]
max=10000
def isPentag(num):
doub=(sqrt(24*num+1.0)+1)/6.0
return doub==int(doub)
for i in range(1,max*2):
pentags.append((i*(3*i-1))/2)
for i in range(0,max):
for j in range(0,max):
if isPentag(pentags[i]+pentags[j]) and isPentag(abs(pentags[i]-pentags[j])... | [
"arturo.blazquezperez@gmail.com"
] | arturo.blazquezperez@gmail.com |
deb97f79158dad95e29030e083d12abf5eb6d1d4 | 1eaf69357dfca66e4dc6651da2b93db8665164f9 | /2022/06/test_code.py | 11832d889e5e26ee9deaddc92f34934c444b4cd3 | [
"MIT"
] | permissive | Akumatic/Advent-of-Code | deb89b9a5302999ffb344766bb3f1b0dd5272445 | 5377d8d653092246a7a35c7fa2a3e22cc74ebb0b | refs/heads/master | 2022-12-21T20:32:05.978675 | 2022-12-16T14:41:23 | 2022-12-16T14:41:23 | 221,700,755 | 24 | 13 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # SPDX-License-Identifier: MIT
# Copyright (c) 2022 Akumatic
from code import part1, part2
def test():
inputs = ["mjqjpqmgbljsphdztnvjfqwrcgsmlb", "bvwbjplbgvbhsrlpgdmjqwftvncz",
"nppdvjthqldpwncqszvftbrmjlhg", "nznrnfrfntjfmvfwmzdfjlvtqnbhcprsg", "zcfzfwzzqfrljwzlrfnpqdbhtmscgvjw"]
expected_values = [(7... | [
"ugp@hotmail.de"
] | ugp@hotmail.de |
22c71eed3e5259cb4410bc0d9cc780c521a6d383 | 95807ecbf50d65d54eb3c2a91250ab0aedd72af0 | /Day054/intro-backend-web-dev/Theory/name_and_main/second_module.py | 1dd1b9e4bf91eab673ddc3b70be8e3d6212f75be | [] | no_license | priyanka-111-droid/100daysofcode | 9bf713599a566de59833a76e68e55962efc4566b | 70ca40724174c12e80c3afe7e61ce11e9e0a681a | refs/heads/main | 2023-08-09T17:13:43.430843 | 2023-08-06T19:16:49 | 2023-08-06T19:16:49 | 367,617,360 | 7 | 5 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | #Now if you run this,output will be:
#First module's name:first_module
#Run from import
#This is because file is not being directly run,it is being imported.
import first_module
#This will be __main__ as python is running this file directly.
print(f"Second module's name:{__name__}")
| [
"77121296+priyanka-111-droid@users.noreply.github.com"
] | 77121296+priyanka-111-droid@users.noreply.github.com |
d75ea5402700fb689e5320bfabb7cd1d36f9eb9a | dd3a596789c4485b02afd1af0ccf5a8279802a77 | /patients/migrations/0030_auto_20180401_2248.py | bb82e0b97d54ce42dad658802cf9e5c5704b5ea5 | [] | no_license | xytry/Medical-Data-Analysis | 935660154a1e7dfdc27622a795265e68cf13af98 | 894d4fb2492f2d377c5ed313581f2f19784e4b40 | refs/heads/master | 2022-12-16T10:03:02.322970 | 2018-04-02T17:53:15 | 2018-04-02T17:53:15 | 128,398,178 | 0 | 0 | null | 2022-12-08T00:43:14 | 2018-04-06T13:26:34 | Python | UTF-8 | Python | false | false | 617 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-04-01 14:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patients', '0029_auto_20180401_2145'),
]
operations = [
migrations.AlterFie... | [
"xiongyue@u.nus.edu"
] | xiongyue@u.nus.edu |
8384c58d74daedb0e579241902fe89914974b152 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_shibboleths.py | 479b492df20a757071eeea8dcfd92915bc99a468 | [
"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 | 266 | py |
from xai.brain.wordbase.nouns._shibboleth import _SHIBBOLETH
#calss header
class _SHIBBOLETHS(_SHIBBOLETH, ):
def __init__(self,):
_SHIBBOLETH.__init__(self)
self.name = "SHIBBOLETHS"
self.specie = 'nouns'
self.basic = "shibboleth"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5c73a4c79358607c89919016dffd555a1657bb04 | eb3575b7e408fd1fe66d4faa8496707bf9c49b00 | /courses/migrations/0001_initial.py | 6c6a777afbb92b312750207ccba6985c0d0d9825 | [] | no_license | Aristod-coder/eng4all | aa1b26914ed755d0132b138842ca8c40405a14c0 | 8c6d0a04fedc21d946ca0deaed4f4fddeeb6a1d6 | refs/heads/master | 2023-04-20T01:11:14.065678 | 2021-05-16T02:50:27 | 2021-05-16T02:50:27 | 367,085,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | # Generated by Django 3.1.6 on 2021-04-09 12:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"aristodiojorge@outlook.pt"
] | aristodiojorge@outlook.pt |
768a2a5c7278d85bd76952185e3424421687ef8e | cb7804c9de1a4354295010cf8aef1efd1b713e42 | /project_dajngo/wsgi.py | b58f23d988fec984e440b443feb9a0a5aa139215 | [] | no_license | Elroy-Smith/my_django_project | 8f25a97e8acbb1a0f2f1eef4b45d48059a4a58c8 | 5949b0a7c7254a8a98a14ba42ade398a37aaaee6 | refs/heads/master | 2021-01-24T08:41:23.246307 | 2018-02-26T15:19:38 | 2018-02-26T15:19:38 | 122,987,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for project_dajngo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"elroysmith@test.pl"
] | elroysmith@test.pl |
0ee4b1f629f10089a33bd6119d6964d0b041ed3d | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/DescribeDohSubDomainStatisticsSummaryRequest.py | f21d8c0c0b01b28d6156cd3ef3b28b308f708744 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,588 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
38e0e7959be85f1bf808ca224987676c8e583657 | a4bd2fb48c405be3682855d798ebb01935c3f246 | /apps/user_app/urls.py | 58e38efa31f3d7468f3d76413deb43bc08809c4a | [] | no_license | shannonmlance/algo_riffic | f5e8521023173eeda99552c4a566dca1ba4f6c7c | cf3f8698110c4ba3a5018a099e7d735936a98bc1 | refs/heads/master | 2020-03-30T00:18:51.689384 | 2018-09-28T18:15:59 | 2018-09-28T18:15:59 | 150,515,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^welcome$', views.welcome),
url(r'^user_profile$', views.user_profile),
url(r'^belt_details$', views.belt_details),
url(r'^destroy/(?P<id>\d+)$', views.destroy)
] | [
"shannonmlance@gmail.com"
] | shannonmlance@gmail.com |
e5299c20968e752104f0449de499bbe428978cba | bbdde24dfbdc43eec821d7b4ad17481891fe1cee | /abhinav/for_fun/python/pygame/Genaral/Text.py | e012f66b4669f08fbb0d3e6e329e79a83dd65601 | [] | no_license | Abhinav-Kamatamu/Abhi | 9e5880a4b6631102d0560b66aad60a4146f1673d | 97984db4a801f8527192214e9be54d0284039f1d | refs/heads/master | 2023-07-05T20:35:41.747085 | 2023-06-29T16:15:05 | 2023-06-29T16:15:05 | 248,689,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # if u find this file, delete it
n = int(input("Enter a number:- "))
def check_prime(x):
factors = []
i = 1
product = 1
while product != x:
product = 1
while x % i == 0:
factors.append(i)
if i == 1:
break
i += 1
if i > x:
... | [
"abhinav.kamatamu@gmail.com"
] | abhinav.kamatamu@gmail.com |
7c1ec033e0eb0b26fa8f3164d0bb57c80c8372ee | 60420d06a62b5a1bd1df4fdb9868c6b72ca42844 | /backend/src/articles/api/serializers.py | f9da209125f2ca2cf591e58a9ba89a2bae4c6203 | [] | no_license | evans123456/reactJS_and_django | 65995154a31042bee4ec4bbbfc965708719a8e17 | 9519ea924a768444aaf706f17dd7b1ea7dd25d1d | refs/heads/master | 2023-01-08T01:00:34.186939 | 2019-11-04T16:41:56 | 2019-11-04T16:41:56 | 219,350,969 | 0 | 0 | null | 2023-01-05T00:04:04 | 2019-11-03T19:04:32 | JavaScript | UTF-8 | Python | false | false | 280 | py | from rest_framework import serializers
from articles.models import Article
#serializers are just a way of converting json data into a model
class ArticleSerializer(serializers.ModelSerializer):
class Meta:
model = Article
fields = ('id','title', 'content') | [
"evanpersie3@gmail.com"
] | evanpersie3@gmail.com |
d7b1a1f35dcc2fa4dc762f9a93dbed1d0e9b8ef1 | 0d0b0d697ef1593c47fb6491626b4568bd8a4fd9 | /test/test_citations.py | d358fe34858c4160bc0705f53ad1e745b1a19eae | [] | no_license | PyDrummer/web-scraper | 27b3653510352162a4253a440a080aa9432c7c10 | 20dcba7bebf44de03b90fb2ac58715f37446e9f4 | refs/heads/master | 2023-02-25T22:26:15.205819 | 2021-02-05T01:41:16 | 2021-02-05T01:41:16 | 335,518,219 | 0 | 0 | null | 2021-02-05T01:41:17 | 2021-02-03T05:31:42 | Python | UTF-8 | Python | false | false | 1,001 | py | from scraper import get_citations_needed_count, get_citations_needed_report
def test_live():
actual = 'test'
expected = 'test'
assert actual == expected
url = 'https://en.wikipedia.org/wiki/List_of_Roman_deities'
def test_count():
actual = get_citations_needed_count(url)
expected = "The total cit... | [
"anthonybeavermusic@gmail.com"
] | anthonybeavermusic@gmail.com |
61f054e3403cddfc18699f9dbed3e1dd25b2ef0d | 5596e688b958ca47873d0a6ac8e6042c0fc78b74 | /home/views.py | 513442df9610ae80b1af1fbefd8d9d298cb9868a | [
"MIT"
] | permissive | technicaldwiti/Project-Certificate | 0e8ced11c450b9b9121bcd8cb06c2709ae1646e9 | cf08c23e8f158e54f1a84f47b76a05c2fd17d115 | refs/heads/main | 2023-03-06T07:06:42.965818 | 2021-02-19T07:07:53 | 2021-02-19T07:07:53 | 340,262,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Student
# from django.core.files import File
# Create your views here.
# def getCertificate(request):
# return render(request,"home.html")
def getCertificate(request,roll_no=None):
if request.method=="GET":
... | [
"noreply@github.com"
] | noreply@github.com |
b9a8e41aacf7a8c994118473101a6bbb46ed96ef | 3c4450ccd471f7720ef32cce3b5f5221981547ec | /openapi_client/api/5_queues_api.py | 599d0d80e0e81887694d1f6b0e45255fcfaa65e3 | [] | no_license | ContatoGrupoOptimus/python-client | eb21d88a5725294609d589474e09463ab659d45b | f84ee64f741c096aadefc1088d1da88e97663fb1 | refs/heads/master | 2022-12-14T10:57:45.041040 | 2020-09-10T21:28:19 | 2020-09-10T21:28:19 | 294,526,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,780 | py | # coding: utf-8
"""
Chat API SDK
The SDK allows you to receive and send messages through your WhatsApp account. [Sign up now](https://app.chat-api.com/) The Chat API is based on the WhatsApp WEB protocol and excludes the ban both when using libraries from mgp25 and the like. Despite this, your account can be... | [
"71100986+ContatoGrupoOptimus@users.noreply.github.com"
] | 71100986+ContatoGrupoOptimus@users.noreply.github.com |
4d25ffc530eb7cc39c0e88c029a599f30da26ed4 | d94dec7514661f1c7fd0aa0e8677644c4abe72e1 | /myproject/myproject/urls.py | 44ec531e984b1c558fae665e850e39a73e581958 | [] | no_license | peiwang245/django-tutorial | 674cf18132a7d328f37158829394c283830f5fd7 | 6a553f19fac53f73ad253956c57eadd1be83359f | refs/heads/master | 2023-04-29T12:21:10.121501 | 2019-11-08T02:43:46 | 2019-11-08T02:43:46 | 220,363,690 | 1 | 0 | null | 2023-04-21T20:39:52 | 2019-11-08T01:43:10 | Python | UTF-8 | Python | false | false | 1,326 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"w3c@w3cschool.cn"
] | w3c@w3cschool.cn |
e1fbe69b2d37602f63a4c540900884fbd367e06b | ea4d03e76de802d22a1e179d4ae5840af9ade62b | /venv/bin/python-config | ad91ea9e8695a18ddb561f3242705b66b54a877c | [] | no_license | phil7394/MSApriori---Data-Mining | a5d7d0735859e48bc3fb917e076eca0bff22dc6d | 66aab3877f664e7788575e49e691107592420163 | refs/heads/master | 2021-09-07T12:34:20.167395 | 2018-02-23T00:39:12 | 2018-02-23T00:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | #!/home/philip/PycharmProjects/MSApriori/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sy... | [
"philipthomas7394@gmail.com"
] | philipthomas7394@gmail.com | |
ede606e53ef0dee3370270e44c9008c7fcf19f06 | eda48a0bb8322bb5bb107cea8324aafaf105bf46 | /SVNDev/uploads/configs/db.py | 3515e39d63ad50df7462e9a26a6e9bb40ab4ee55 | [] | no_license | sougannkyou/pyWorks | c171dfc2c213bd7d75dc168b987eb96cbcbfd7e1 | 2402b3da4521a17d7f828504c0745ff55cb031be | refs/heads/master | 2020-04-04T06:23:28.678959 | 2017-05-02T09:06:04 | 2017-05-02T09:06:19 | 48,786,947 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | #filename:db.py
#encoding=utf8
'''
用于数据库相关的一些方法
delete
update
find
支持连贯操作
创建时间:2013-10-24,作者:贺伟刚
'''
import ConfigParser
import log
import util
import urlparse
from abc import ABCMeta, abstractmethod
class DbOpt():
'''抽象框架'''
__metaclass__ = ABCMeta
def __init__(self, setting_dict):
self.set... | [
"syq314159"
] | syq314159 |
4ed3623f36912cd2dc4c4ff50be6720f66385f2c | 5acf26581e294c6f8bfbd958e34f13e78137622c | /courses/migrations/0016_auto_20210729_0955.py | 55d791349ce7399d7e5ad0e00a232ae623a8fb04 | [] | no_license | Adna-19/e-learning | 6ba8ea81998ff96fc4e549a93f0997aaccbe0e7f | f77745ac79fc82520af8d3abb49ab35a7de78e51 | refs/heads/main | 2023-07-09T03:47:24.507777 | 2021-08-11T05:00:51 | 2021-08-11T05:00:51 | 385,112,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # Generated by Django 3.2.4 on 2021-07-29 04:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0015_alter_notification_status'),
]
operations = [
migrations.RemoveField(
model_name='notification',
nam... | [
"adilsaleem1398@gmail.com"
] | adilsaleem1398@gmail.com |
4ffe154ae09d914ec41a73c73ade746067f8f795 | ee7c22aabab2229f4340adbe505ba47b2eb27a5a | /yurtle.py | ba4c9c70a4d841a5967ea76841bc6cd0976b630e | [] | no_license | ShiYK-0517/UAV-assisted-MEC | 65b3b35b31981d6cf6c052f67e256ff4aae3e77a | 71cd1c1035dff7845e503c1cde46881e1999b9d8 | refs/heads/main | 2023-06-27T09:31:38.873352 | 2021-07-31T16:55:44 | 2021-07-31T16:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 24 21:20:33 2021
@author: Gobinda
"""
import turtle
# turtle.setup(100,100)
u = turtle.Screen()
u = turtle.getscreen()
# t = turtle.speed(-4000)
t = turtle.Turtle()
s = turtle.Turtle()
# s.title('Canvas')
s.speed(1)
x = [27,63,22]
y = [26,17,... | [
"noreply@github.com"
] | noreply@github.com |
592cadd47da7a6dd5847a29b2b174d613af8959c | 1eb99619f016fdea0be643674cdb4deb9b1b626e | /ParkingLot_full_stack/parking_lot/HyperLPR/demo.py | 80c18f20da18a6afe015d06b37cc580d6a838e4b | [
"Apache-2.0",
"MIT"
] | permissive | Eduardo95/ParkingLot | 0ebee78eba0834d46879c1acbc1d978f4dd80f99 | bce9fd06694b0e16bcd57a175347f381f56a8089 | refs/heads/master | 2023-08-08T00:27:27.736079 | 2021-04-27T07:12:31 | 2021-04-27T07:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #!/bin/env python3
import time
import os
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw
import HyperLPRLite as pr
import cv2
import numpy as np
BASE_PATH = os.path.dirname(os.path.realpath(__file__))
def SpeedTest(image_path):
grr = cv2.imread(image_path)
model = pr.LPR(os.path.joi... | [
"xwt97294597@gmail.com"
] | xwt97294597@gmail.com |
894a7aeaca08cdc16128d1ff84e9a52dce9a4009 | b218a4c5cd0cb88f60e091de98084624c8a5116c | /capitulo_8/exercicio_pg207.py | 2c0790f121030980b7ec8e7f018a5e46fee7dce8 | [] | no_license | GustavoGuke/py | c98dc7add59f1c1db8e8b7b56aac3f7e817675a3 | eafeb179931ff5e2810490e4aaa652994c36d466 | refs/heads/master | 2022-11-19T01:16:40.105703 | 2020-07-20T18:49:16 | 2020-07-20T18:49:16 | 266,141,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | print('Exercicio 8.9')
print('Make a list and pass it to function')
# Listas que servirao de parametro
magic = ['cris angel', 'dynamo', 'lance burton', 'david blaine']
show_news = []
# função para mostar a lista
def show_magic(show):
for i in show:
print('Magic famous: ' + i)
# chamando função
show_magic... | [
"gustavo.lima@poleoduto.msft"
] | gustavo.lima@poleoduto.msft |
42ea8d6ae7c8458930b285f153a84e3ec28bfd2e | 95d6bbcfcee48cd5163c3383118d1ad018d3dc4f | /fitness.py | d50c10b920a0a09648d8b6ad292fd383bf7655ab | [] | no_license | gifoo/omega | 380c25205873961a195bd8c26f72d2fe59977924 | 875e83e5f9c6dcb01623d145618bb0699dba371e | refs/heads/master | 2021-01-10T11:22:03.907569 | 2016-04-03T16:28:14 | 2016-04-03T16:28:14 | 53,721,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,268 | py | # coding=utf-8
"""doc"""
class FitnessCalculator(object):
"""
Class for calculation of fitness of a generation. Sort the result by
fittest at the top. Also can be used for static data creation about
persons.
"""
def __init__(self, persons, group_size, criteria):
"""
:type pers... | [
"gifoo.eu@gmail.com"
] | gifoo.eu@gmail.com |
f90cf6b197dbac258b3d5873fe11dc588b81f0d7 | ace646b4f4d391c3af9457f6e1fdf434ec554b60 | /Dona_web/dona/models.py | 3d1c04a24f517989247653500420a55d71db168a | [] | no_license | harry595/Dona | 585ec1bad7d53f77f6dd1186f6324cf383f604cd | fbcd875db9043ad2713232ac501cecdf56095be2 | refs/heads/master | 2023-01-22T03:42:10.668993 | 2020-12-02T04:28:17 | 2020-12-02T04:28:17 | 311,393,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | from django.conf import settings
from django.db import models
from django.contrib.auth.models import AbstractUser
from uuid import uuid4
from django.utils import timezone
from datetime import datetime
from django.conf import settings
class User(AbstractUser):
Nickname=models.CharField(max_length=6,null=True)
h... | [
"harry595@naver.com"
] | harry595@naver.com |
6283874e36871927e729444b08ee4230d19951a1 | a1ef0f1334f51114107ed037f0eb173f44664ef5 | /HumanBodyWiki/urls.py | 4c1d9d7e11767bf4d4115e1f2c00bba9d24e23ea | [] | no_license | StuPeter/HumanBodyWiki | ba2b0ca40ea39d22cc2c986b496cb4f0be8c96a7 | 7edd37f8607d73f3d3ea13af1febbb4f09d9c570 | refs/heads/master | 2021-03-14T15:26:05.913794 | 2020-03-31T01:40:20 | 2020-03-31T01:40:20 | 246,773,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """HumanBodyWiki 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')
Class... | [
"quanquanting@qq.com"
] | quanquanting@qq.com |
6492cc2d2373ee4d169a4c0d74cb9596b8e65449 | 22cb1522e60abceab86feb7fe201f813075a629c | /src/__init__.py | c0f747289dd8751fe19102055171638aee5ca0f2 | [] | no_license | sidharthpatel/Restaurant-Chat-Bot | 257ff8729f01541bcae8e27dfd08a2166ed16794 | c7a53eb557d9c73326a1078965341b9b4fc8643d | refs/heads/master | 2023-05-17T17:33:27.663455 | 2020-02-16T04:47:51 | 2020-02-16T04:47:51 | 240,643,793 | 0 | 1 | null | 2023-05-01T20:38:10 | 2020-02-15T04:20:03 | Python | UTF-8 | Python | false | false | 214 | py | from random import randint
cuisines = ['Indonesian', 'Turkish', 'Thai', 'Spanish', 'Moroccan', 'Japanese', 'Indian', 'Italian', 'French', 'Chinese']
value = randint(0, cuisines.__len__() - 1)
print(cuisines[value]) | [
"spsid1711@gmail.com"
] | spsid1711@gmail.com |
beb43841f80cb8d57bed2312467150bc80ba1284 | 4cc50636228d2fd07693f9c8d29f0a99f8bcfc59 | /starnavi_test/social_network/api.py | 3f864a6a2735cfffd7a2be3efe9025e2d3acc7eb | [] | no_license | anfimovdm/starnavi_test | f4eb6b9f4616a8ddea98c2068fdee4e52277c0d3 | 46ee838455ff64bb54baede6eadd767f3163d2ac | refs/heads/main | 2023-05-31T01:23:02.752294 | 2021-06-21T01:26:13 | 2021-06-21T09:43:58 | 378,773,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from django.contrib.contenttypes.models import (
ContentType,
)
from django.db.models import (
Count,
DateField,
)
from django.db.models.functions import (
TruncDay,
)
from .models import (
Like,
UserProfile,
)
def get_obj_type(obj):
return ContentType.objects.get_for_model(obj)
def add... | [
"anfimovdan@gmail.com"
] | anfimovdan@gmail.com |
4760e12f50f430f69646a269f29b748e657341a2 | 6ab852a8acb6adf317eeffb98871d6adae18b1a0 | /venv/lib/python3.8/site-packages/play_sounds/bell.py | 9bd71c78ab41372f866b62405ba4bfdff8a1072e | [] | no_license | DwarkeshAhuja/KahootIt | dae7931743bd1628b4ae9055f945e5b8f07fb323 | e5523b8fb2329df04debf1e418ebf792b6a0077b | refs/heads/master | 2023-04-16T02:35:53.448382 | 2021-04-26T05:58:47 | 2021-04-26T05:58:47 | 359,279,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from contextlib import contextmanager
from typing import ContextManager
BELL_CHAR = '\a'
NO_NEWLINE = ''
def bell():
print(BELL_CHAR, end=NO_NEWLINE)
@contextmanager
def bell_after(play_bell: bool = True) -> ContextManager:
try:
yield
finally:
if play_bell:
bell()
| [
"dwarkeshahuja994@gmail.com"
] | dwarkeshahuja994@gmail.com |
fe571d9228f8af32f8a9a7a08823068266ff1ca7 | 45681ad3bc1459b1fcf45c5836edc564c3782184 | /Challenge.1.7.py | a52f4ba028fc76e3fc8a47d3d6b2d5fa1bf5b118 | [] | no_license | in6days/MySolutions-to-Harmash.DSA.Challenges | 54112eccc8c4cd07194910e9a1ba3255927f44c4 | c5cfe3a08dbb8395d635131fa962dacffb911441 | refs/heads/master | 2023-04-25T10:50:45.918213 | 2021-05-18T16:13:17 | 2021-05-18T16:13:17 | 257,868,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | # رسم أشكال هندسية - التحدي السابع
# أكتب برنامج مهمته رسم الشكل التالي بواسطة الحلقات و حاول كتابة أصغر كود ممكن.
# عند تشغيل البرنامج, يجب أن يطلب من المستخدم إدخال عدد أسطر الشكل الذي سيتم رسمه.
# إنتبه: يجب أن يدخل المستخدم عدد مفرد و أكبر من صفر, لأن عدد الأسطر لا يمكن أن يكون مزدوجاً أو قيمته تساوي صفر أو أق... | [
"noreply@github.com"
] | noreply@github.com |
5a49002378e2ad00bdeed78f79306bab0828650a | dd12cf4730d4120a970177d4d4faf2a76151c43f | /surrogate_ea.py | fcb6dba321876521395111b1efbbfd871bc91b7b | [] | no_license | DriesVerstraete/samolib | 189491302f707b0fa231f4ac20f2f7301c904314 | fafe6d84458fcab840d9018b8dea3bdcd3f05cd3 | refs/heads/master | 2021-09-23T03:35:27.056037 | 2018-09-20T12:54:42 | 2018-09-20T12:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,119 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu June 21 09:42:07 2018
@author: niko
"""
import numpy as np
import copy as cp
from surrogates import NeuralNet, Kriging, RBFN
from sklearn.svm import NuSVR, SVR
from sklearn.tree import DecisionTreeRegressor
from _utils import calc_cwd_dist, remove_dupl... | [
"huanyu.zhai@etu.unice.fr"
] | huanyu.zhai@etu.unice.fr |
eb6e327944cbc63a28f6744e79a24841cf289c7b | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/payrolluk/models/leave_type_object.py | a3951dbe79d8171aed1d4532a1909c00f97b9355 | [
"MIT"
] | permissive | liseekeralbert/xero-python | dfd1076344f763d74f81f701e32600cf88bcc7b2 | d27ab1894ecd84d2a9af0ca91583593756b21ab3 | refs/heads/master | 2022-12-16T07:41:14.331308 | 2020-09-18T17:12:35 | 2020-09-18T17:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class LeaveTypeObject(... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
a0a636dd1aaf47c3b8b20d61ef35980706c7cc74 | 39e03684081b27311385a0ab31afcc2e09883e5c | /tools/train_saliency.py | 99a78842aca4431f7cdfd83729401f8bcf65db99 | [
"MIT",
"Python-2.0"
] | permissive | witnessai/MMSceneGraph | 8d0b2011a946ddcced95fbe15445b7f4da818509 | bc5e0f3385205404c712ae9f702a61a3191da0a1 | refs/heads/master | 2023-08-12T06:54:00.551237 | 2021-10-12T03:04:21 | 2021-10-12T03:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | from __future__ import division
import argparse
import copy
import os
import os.path as osp
import time
import mmcv
import torch
from mmcv import Config
from mmcv.runner import init_dist
from mmdet import __version__
from mmdet.apis import set_random_seed, train_detector
from mmdet.datasets import build... | [
"23736866+Kenneth-Wong@users.noreply.github.com"
] | 23736866+Kenneth-Wong@users.noreply.github.com |
6d21884713b5187e9f1dbb95b2baac03be64366d | 71955b0db5a468b4bdde1efad4ef1f33aead949c | /billy_shared.py | d0dd225ecaaa91453877f7c24435e37890e0ae29 | [] | no_license | d33tah/BillyMays | f4cdfc7bce3bd5be4a746d88a1f4354927ca7589 | bfbbf623ec1ebc3fb213fe5be0b0b50a85d6ffc4 | refs/heads/master | 2020-08-26T21:31:41.396661 | 2019-10-15T02:03:01 | 2019-10-15T02:03:01 | 217,154,739 | 0 | 0 | null | 2019-10-23T21:14:11 | 2019-10-23T21:14:10 | null | UTF-8 | Python | false | false | 2,877 | py | import os
import re
import random
testing = False
def debug(msg, obj=False):
if testing:
if obj != False:
print(msg + " [author: {}; channel: {}; time: {}]".format(str(obj.author), str(obj.channel), str(obj.timestamp)))
else:
print(msg)
def check_dest(msg):
if str(msg.channel).startswith("Direct Message"... | [
"yojo2@o2.pl"
] | yojo2@o2.pl |
8f436fd55a4a3cb924fcf951eecdd1aec41559a7 | efa87ca56d83e2e40015c4578c8774f5606d09f3 | /src/part_2.py | ea042d2b3dfabf37cc7e43cfed447537919e4180 | [] | no_license | dev2033/vk_api_pars_group | ea4eed70b5dabedf41a1f18252094314bba45593 | f6589d4447a3b45578f18d42966e6a659910b1b6 | refs/heads/master | 2023-02-03T12:16:20.105976 | 2020-12-26T20:36:18 | 2020-12-26T20:36:18 | 324,630,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,311 | py | import json
import youtube_dl
import requests
import os
from auth_data import token
def get_wall_posts(group_name):
"""
Функция для парсинга групп в социальной сети ВК,
Если в url - не указывать domain=, а сразу после ?=,
то будет парситься ваша стена в ВК, все посты и фото
"""
url = f"https... | [
"dev.elop.02@mail.ru"
] | dev.elop.02@mail.ru |
fe3eb19bbe1dcefd18cfb2e7ed6bdb2ed2ae570c | d2be5705c55199f3d55c1c07b06dbe8fea26461e | /ABC149/B.py | 27a25691e08d61ed9bf24576cf3f18b10e5d5cbc | [] | no_license | hsuetsugu/atc | 6ad1a2f06e528c4f96bf7ebd2eb9ab33c49eeea7 | ad2a4dcf392f66ad8bf0349c0bf8b8a3413567aa | refs/heads/master | 2021-05-19T09:08:06.143811 | 2020-06-28T23:51:50 | 2020-06-28T23:51:50 | 251,620,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # -*- coding: utf-8 -*-
# B
import sys
# 再起回数上限変更
# sys.setrecursionlimit(1000000)
A, B, K = map(int, input().split())
print(max(0, A-K), max(B-(max(0, K-A)), 0))
| [
"la_80kk@hotmail.com"
] | la_80kk@hotmail.com |
582de7ed09a169b6a9b2c36966a739d5db1101c4 | 3dd90506414c56a94617b10aef29642f97dc7145 | /main.py | a2ab1dbebec4a8959ac5a902ec998f18b4ea388a | [] | no_license | TotalChest/Flask-practice | e1ac840b3f52987bd800410b61543666e5d4ea9d | 47f36a79b202276ef6279ac4b506dccaaff895db | refs/heads/master | 2023-03-11T23:17:40.597543 | 2021-02-21T18:19:56 | 2021-02-21T18:19:56 | 340,970,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from website import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True, port=8000)
| [
"13sergey78@mail.ru"
] | 13sergey78@mail.ru |
637d3ba264881f339406372b681ccc21ba03d9cf | aa11b79621c266d4a699f43ddf4da11125ad4d58 | /venv/Scripts/django-admin.py | ad3aadb9583ef228adc79eba2279e72831c362de | [] | no_license | katupitiya/ss | 8668b33e64df0e08e869d74393aa6cfbeb14cfb6 | a78a66c1b82c0ed1fa74e928cc86e9bae79e5fd4 | refs/heads/main | 2022-12-24T12:09:17.412614 | 2020-10-07T10:49:03 | 2020-10-07T10:49:03 | 301,987,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #!C:\Users\User\PycharmProjects\testhost\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"jananisarada3@gmail.com"
] | jananisarada3@gmail.com |
39a2021917c5dde60aa524b7cbb26acc63c7d2a7 | 2c490782f44cad861cebbefc9bbdc8744c0f1b0d | /db.py | 7a3dc01f4bd5495f994caf5cfd039e1153daa081 | [] | no_license | ovidiumiron/prototype-web-app | ab7691efb47bbb41857258454bf1372f1eeec0b9 | c34abae6dd2c3eb9eeb74a8c7d571f496c28a002 | refs/heads/master | 2022-12-21T05:03:10.455499 | 2017-06-28T19:26:45 | 2017-06-28T19:26:45 | 95,578,487 | 1 | 0 | null | 2022-11-22T01:46:42 | 2017-06-27T16:24:28 | Python | UTF-8 | Python | false | false | 272 | py | """
This files represents just a chuck of the work related with DB implementation.
The implementation is not done.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object("config.DevConfig")
db = SQLAlchemy(app)
| [
"ovidiu.miron@ammeon.com"
] | ovidiu.miron@ammeon.com |
0d66a06d0e11ab83727e3d79d2c71c45463dd61f | 392ecba13a2c28568415b2f53c6fa763bc97b831 | /Prac02/exceptionsToComplete.py | 5ec3b51a1bde8ee0da2a3409fbb8fed656e48a99 | [] | no_license | jc444921/workshops | f56dc7ad8c81fe684ff70c38f589b8577f637f25 | dfa911651507cf942f96d3f9ce55c54e6e6b5be1 | refs/heads/master | 2020-06-11T02:18:52.063274 | 2017-01-13T10:33:05 | 2017-01-13T10:33:05 | 76,025,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | __author__ = 'jc444921'
"""
CP1404/CP5632 - Practical
Fill in the TODOs to complete the task
"""
finished = False
integer = 0
while not finished:
try:
integer = int(input("Enter the integer: "))
finished=True
except ValueError:
print("Please enter a valid integer.")
print("Valid result ... | [
"xiting.jia@my.jcu.edu.au"
] | xiting.jia@my.jcu.edu.au |
6a69c9acae0eeb7eebb99e787b6f22fc7b8c97e0 | 5f9043d79c91c5a54917300ff84f32b881adb818 | /Snakefile | 0b7dcae59fd854a986981ecedfa82963b06e54e9 | [] | no_license | npdeloss/multi_species_multi-seq_pipeline | bdc3b28dddbcfb2ab3716d7a787a925920ee8f40 | a220bad22ed2606140d4c7be4ec63a52028fe8a3 | refs/heads/master | 2020-03-26T15:33:39.944742 | 2019-02-12T17:57:01 | 2019-02-12T17:57:01 | 145,050,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | import os
configfile: 'configs/wildcard_constraints.yaml'
wildcard_constraints:
**config['wildcard_constraints']
# Import naming convention for reads
configfile: 'configs/reads.yaml'
# Import naming conventions for reads as variables
## Basename pattern contains wildcards in curly brace format that are reference... | [
"npdeloss@ucsd.edu"
] | npdeloss@ucsd.edu | |
365d586dc3831f949adddbbc46760e57f00f16f4 | 5685305faf2b4830cf1588544ab38016971e70c9 | /apps/quotes/urls.py | ee45fbb718d1cddbfc0a5e6151880d82df99aad7 | [] | no_license | chezmatt/quotes2 | 6b90f70a591d3c7ea9fb3a77456459e037bcbc5b | 9f945bc6f55e2b86923c3f4220ff299bcbeee653 | refs/heads/master | 2020-05-23T07:54:16.723307 | 2017-01-30T22:14:56 | 2017-01-30T22:14:56 | 80,462,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from . import views
from django.conf.urls import url, include
urlpatterns = [
url(r'^', views.index),
url(r'^login/$', views.login),
url(r'^logout/$', views.logout),
url(r'^register/$', views.logout),
url(r'^postreview/$', views.logout),
# url(r'^/en/(?P<id>\d+)$', views.show),
# url(r'^$',... | [
"wilkinson.matthew@gmail.com"
] | wilkinson.matthew@gmail.com |
7d46a3c03f454b754fa61c3e0e1d7de1318b7ccf | b65579608346bc08895589cc6e16595f2016bb6b | /itc/conf/conf.py | 4b29af050b4eec1d49f1d2801a082eca9fb2e4cf | [
"MIT"
] | permissive | sburavtsov/itc.cli | f89cecee1cc14c673a283bb105100586b3f9ac47 | 27a79c7247c63995d914f834d2c9c476a6879f44 | refs/heads/master | 2021-01-18T12:17:04.094836 | 2013-04-26T11:40:31 | 2013-04-26T11:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | import os
from tempfile import gettempdir
from cookielib import LWPCookieJar
ITUNESCONNECT_URL = 'https://itunesconnect.apple.com'
ITUNESCONNECT_MAIN_PAGE_URL = '/WebObjects/iTunesConnect.woa'
class DEVICE_TYPE:
iPad = 0
iPhone = 1
iPhone5 = 2
deviceStrings = ['iPad', 'iPhone', 'iPhone 5']
temp_dir =... | [
"kovpas@gmail.com"
] | kovpas@gmail.com |
fc7a978cdca9b14608013239456e0f1fea702e7b | f57529f95a0fd10676f46063fdcd273fb5a81427 | /boj/03001-04000/3181.py | 0cf1f7d1f5d5af6ca60a5dd002df336fe82466ba | [] | no_license | hoyasmh/PS | a9b83b0044e483586590c9b7c6bf8a77236b67e7 | 6bbaa0ce77b2726f6af782af049d73720820f761 | refs/heads/master | 2023-04-23T10:43:27.349785 | 2021-05-17T13:43:53 | 2021-05-17T13:43:53 | 311,239,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | l=['i','pa','te','ni','niti','a','ali','nego','no','ili']
s=input().split()
for i in range(len(s)):
if i==0 or s[i] not in l:
print(s[i][0].upper(),end='')
| [
"hoyasmh@gmail.com"
] | hoyasmh@gmail.com |
69fb8b031c503edd5b722a9f16cd04d09d5f11c8 | f2cfc7a5b392ee5fe4d53c2506d71fb4d13e4790 | /Assignment 3/Dep_to_Con.py | 1e061e5f06ebfe3fec62ecb38da114ddafddec15 | [] | no_license | jinga-lala/NLP-assignments | 703753308e41dcdf9b874a03b9207122cf3a310b | 023eb0f7ec3322b38d2656242419cb82108ec53f | refs/heads/master | 2023-01-30T01:38:35.793172 | 2020-12-12T17:47:44 | 2020-12-12T17:47:44 | 291,737,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,965 | py | import spacy
from anytree import Node, RenderTree
def punct_subtree(tree):
PUNCT = Node(tree.text+" "+tree.tag_)
return PUNCT
def appos_subtree(tree):
return NP_subtree(tree)
def advmod_subtree(tree):
ADVP = Node("ADVP")
Head_ADV = Node(tree.text+" "+tree.tag_,parent=ADVP)
if tree.n_rights > 0:
... | [
"adityasharma.2000.as@gmail.com"
] | adityasharma.2000.as@gmail.com |
eda7057bb4a064142794dc4168db8c4c3d7075ef | 18825807a4cf373f00419e46ac70566d17115e9e | /problems/algo/convert_a_number_to_hexadecimal.py | b8d4588cc5bd2a0833c3299792178830a61a9c56 | [] | no_license | StefanRankovic/leetcode | 51154d7297b4674c62e481c6c13016097207b4d0 | bbed81b50acaef025186648c61110dbf65e5f6cb | refs/heads/master | 2023-02-20T06:16:02.913457 | 2021-01-24T09:42:50 | 2021-01-24T09:42:50 | 266,200,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | class Solution:
def toHex(self, num: int) -> str:
if num < 0:
num += 2 ** 32
elif num == 0:
return '0'
mapping = { 0:'0', 1:'1', 2:'2', 3:'3', 4:'4', 5:'5', 6:'6', 7:'7', 8:'8', 9:'9', 10:'a', 11:'b', 12:'c', 13:'d', 14:'e', 15:'f' }
res = []
while num... | [
"stefan.rankovic.89@gmail.com"
] | stefan.rankovic.89@gmail.com |
7d6be13bab5964c9b2912c439b6e5c5af8959dac | 15b2fc5aa4b9a518056337037b244705e7ab438a | /emotion_src/train_CK_classifier.py | 58519ca584395058160f7ae996ad077902cd5ad0 | [] | no_license | Tony1Q84/FER | 4af893ad42c2f8f9e9c165a696d3997c24152411 | 3fe7b8f5c15963c766226c734a8a4483b960ce57 | refs/heads/master | 2020-04-30T06:08:45.906779 | 2019-03-20T03:19:02 | 2019-03-20T03:19:02 | 176,643,451 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | """
File: train_CK_classifier.py
Author: Tony
Email:
Github:
Description: Train CK+ emotion classification model
"""
import numpy as np
from keras.callbacks import CSVLogger, ModelCheckpoint, EarlyStopping
from keras.callbacks import ReduceLROnPlateau
from keras.preprocessing.image import ImageDataGenerator
from model... | [
"1099227835@qq.com"
] | 1099227835@qq.com |
b6e50f0069a0ad20140650a86266d623d882464d | 167eb71c690e43e06b943a04a031f9e662ac7521 | /acq4/devices/Scanner/scan_program/step.py | 78e088f79c49f0e555d3506b82810b3513d8e648 | [
"MIT"
] | permissive | histed/acq4 | 8e0a5dedc74c2ea063477e4b0027fbade3a72e61 | ea0242d49245b81ab218d8d3e0187138b136ded5 | refs/heads/develop | 2021-01-19T23:46:54.999081 | 2017-03-24T22:48:52 | 2017-03-24T22:48:52 | 89,023,143 | 0 | 6 | null | 2017-04-21T20:58:33 | 2017-04-21T20:58:32 | null | UTF-8 | Python | false | false | 589 | py | import numpy as np
import acq4.pyqtgraph as pg
from .component import ScanProgramComponent
#class StepScanComponent(ScanProgramComponent):
#"""
#Steps the laser once to a specific position.
#"""
#name = 'step'
#def generateVoltageArray(self, arr, startInd, stopInd):
#pos = cmd['p... | [
"luke.campagnola@gmail.com"
] | luke.campagnola@gmail.com |
9053ae0beb0e9ac8e8458493cabaa45ed49935bc | 2cccbbbbbb12e09c38195bfebc0f6f3333c35d32 | /Employee.py | 52ee2013eccd5dad705d16d9a5e13042bf079b09 | [] | no_license | devjackcat/Python_demo | 00184b7cf2af8e0983d69eaac58801351cf56c71 | 76cda88999be0cd96794cd618e5c99d1d5e718b3 | refs/heads/master | 2020-03-07T10:53:06.613193 | 2018-03-30T15:18:56 | 2018-03-30T15:18:56 | 127,442,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #coding=utf-8
class JustCounter:
__secretCount = 0
publicCount = 0
def count(self):
self.__secretCount += 1
self.publicCount += 1
print self.__secretCount
counter = JustCounter()
counter.count()
counter.count()
print counter.publicCount
print counter._JustCou... | [
"devjackcat@163.com"
] | devjackcat@163.com |
c3c7b6fb3a91bf201c1f47c46e8ef8c9c88da558 | 0175f01ac3e797179a7bc3e1a4b9a94710afbce4 | /startpage.py | f56d628a607a41aca289b1233e2787a553754740 | [] | no_license | Niranjan2048/Inventory-managament-system | d255772b39b0c44254e7b55e398d3b2361954404 | cec1d5c0bd2fe59d129d90af20956177b699efb3 | refs/heads/main | 2023-02-02T14:35:19.518338 | 2020-12-22T06:51:10 | 2020-12-22T06:51:10 | 323,544,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,305 | py | from tkinter import *
from tkinter import messagebox
from tkinter import ttk
from PIL import ImageTk, Image
import mysql.connector
import pymysql
class User_Login:
def __init__(self,root):
self.root = root
self.root.title('Inventory Management')
self.root.geometry("1600x800+0+0... | [
"noreply@github.com"
] | noreply@github.com |
3cbcda790de2b6c5a651d06a746749e3f8e8002c | 1eb6d4302fd74f783018524ba23cc46bd40c9fcf | /otto6gridSearchRF.py | 67092d3cb30f2fe3f0266f98e8c796a55dac21a2 | [] | no_license | LiYan1988/otto | 03f3c4fd7c24efd0396f54839ce6f54a2b9bdbdb | dfab4a066c59420557d9ca312a82ca7487ea79ef | refs/heads/master | 2021-01-11T01:09:36.243654 | 2016-11-05T17:55:43 | 2016-11-05T17:55:43 | 71,056,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 22 12:58:56 2016
@author: lyaa
Transform data and save results
"""
from ottoStart import *
if __name__=='__main__':
x_train, y_train, x_test = load_data()
x_train_tfidf, x_test_tfidf, x_train_log, x_test_log = \
add_features(x_train, x_test)
... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
8cd607a5225acf52962c2783bdec729506b999e3 | 8b517a8a4b9a978641d73d0a971984374b3ac805 | /messaging/node_modules/zmq/build/config.gypi | 0c8e79c4145aca85c017ce51c9e23ed4386a8e11 | [
"MIT"
] | permissive | loveboat/node-the-right-way | 20d7fc1850e15aa81562a934379666dd281a7c09 | 03c24ed8e955bab13c87b04791bd5d7cbea92476 | refs/heads/master | 2021-01-10T19:26:03.858539 | 2014-04-16T19:53:23 | 2014-04-16T19:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | 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",
"node_install_npm": "true",
"node_prefi... | [
"lusbyd@gmail.com"
] | lusbyd@gmail.com |
7f3d653ac4697f36cdce09028abd0b0b2d5d702f | 0fa06d7be1a0230fdbea88ffa6ec11c8872ec262 | /blog/views.py | 1af2d27b282532ce4cb1c30def37dcd7d2375954 | [] | no_license | afr-ops/Gestion_Pedidos | 9c97a24ce06a70b5f42ee15aa1b22a03ce4accf6 | e7354e8bb127c5dec005c3a0932b64d74309719b | refs/heads/main | 2023-01-12T21:43:23.591142 | 2020-11-21T03:47:20 | 2020-11-21T03:47:20 | 314,725,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.shortcuts import render
from blog.models import Categorias, Post
# Create your views here.
def blog(request):
posts=Post.objects.all()
return render(request, 'blog/blog.html', {"posts": posts}) | [
"ruizflavio@gmail.com"
] | ruizflavio@gmail.com |
6e6b65d7bec957febdf0f2f7b46b430a3c6e4956 | 10feb1b277edfb45acb57ca8d4824bd7814a48e3 | /process.py | d14f9ca9804a9a3356d6be25a5cd992767cd3402 | [] | no_license | mrmonkington/podgy | 34119aa765557025e7b66f284229333132796812 | 6d062c3d1caf01a5e6d1567642fae04d35ade0ed | refs/heads/master | 2016-09-06T12:16:15.881984 | 2014-03-11T14:00:08 | 2014-03-11T14:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | import sys
import re
import optparse
# this package
from analysis import parse, robots, classifier, tracker, config
import pprint
import operator
import time
# global podgy config
#podge = False
class Error( Exception ):
pass
class ConfigError( Error ):
pass
class Processor( object ):
# input stream for log... | [
"mark@eurogamer.net"
] | mark@eurogamer.net |
7b881d3fd3b5a0506e690102189326ec26164212 | 46bd3e3ba590785cbffed5f044e69f1f9bafbce5 | /env/lib/python3.8/site-packages/pip/_internal/operations/freeze.py | 4173161009fc9748ecc149d7cd925afb5657aad9 | [] | no_license | adamkluk/casper-getstarted | a6a6263f1547354de0e49ba2f1d57049a5fdec2b | 01e846621b33f54ed3ec9b369e9de3872a97780d | refs/heads/master | 2023-08-13T11:04:05.778228 | 2021-09-19T22:56:59 | 2021-09-19T22:56:59 | 408,036,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4f22ef5d3e19aa9222f31f17fd34ec80127be881b9e0289d265c4620705b9813
size 10556
| [
"a.klukowski@live.com"
] | a.klukowski@live.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.