blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a04c2dd37578c83c5d70a4f932d23003925d731 | e9165ab1ae366130e313a9e748499a672e60fa31 | /setup.py | 7b5446a0eedc212adc3730d566e3c7bd26edbef3 | [
"MIT"
] | permissive | ciaron/stroppy | dfa97320332a0f99aacb0130594322c2c8d989ea | 081f14d50917bd7669b6554719791ceee538b96e | refs/heads/master | 2020-08-27T06:49:39.974647 | 2020-05-25T11:27:04 | 2020-05-25T11:27:04 | 217,275,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="stroppy-ciaron", # Replace with your own username
version="0.0.1",
author="Ciaron Linstead",
author_email="c@ciaron.net",
description="A static site generator for image galleries",
lon... | [
"ciaron.linstead@gmail.com"
] | ciaron.linstead@gmail.com |
43db2fc680aca832dc48793399f15ccd286de043 | 53fc3f163a02b0f06df05ad385ad175cc057e10a | /tests/renderer/cartographer/image/test_factory.py | 3d863ae4fe02f7da5b56d608b9f12cbcbd3412af | [
"MIT"
] | permissive | Kotaimen/stonemason | 15284d7ca800186b9972d176ff1232ef7f0372e8 | ebbfab294a9e412cc7d04ea1dcb163e45c0de5d2 | refs/heads/develop | 2021-12-10T09:57:46.453283 | 2018-02-15T10:21:35 | 2018-02-15T10:21:35 | 28,327,740 | 5 | 1 | null | 2015-11-10T02:25:45 | 2014-12-22T06:44:58 | Python | UTF-8 | Python | false | false | 1,427 | py | # -*- encoding: utf-8 -*-
__author__ = 'ray'
__date__ = '4/21/15'
import unittest
from stonemason.renderer.cartographer.image import ImageNodeFactory
from stonemason.renderer.cartographer.image.terminal import Color
from stonemason.renderer.cartographer.image.transform import MinFilter
from stonemason.renderer.carto... | [
"gliese.q@gmail.com"
] | gliese.q@gmail.com |
d220286422890246a7bfe05a56449454d42fa1d7 | 156d6f2187d875429482dd39b0daff7870b5b716 | /data/csv_to_json.py | 25c4f16b0b749b3f0d0504723000253414ae1219 | [] | no_license | ahardjasa/code2015 | 57ce282821ef9e3671022eaaae01941b8016d9ab | 1d2ab48698b259beb4d461e31c4b0db49b871363 | refs/heads/master | 2020-04-11T04:28:01.454528 | 2016-01-04T06:30:45 | 2016-01-04T06:30:45 | 31,090,410 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/env python3
import sys
import codecs
import csv
import json
def clean(text):
text = text.strip()
try:
return float(text)
except Exception:
return text
def main(filename):
with codecs.open(filename, encoding='latin_1') as ifh:
reader = csv.reader(ifh)
for ... | [
"ngentleman@gmail.com"
] | ngentleman@gmail.com |
3f27767e32d95a71d36747e6db0b0d8e9bfabfc9 | f0a65d21d5ba16888f131fe99ed8baf0a85cf7dd | /pygmsh/volume_base.py | d3a22878fde32ff32a8b8924022e7a8096963a9b | [
"MIT"
] | permissive | mjredmond/pygmsh | d4a1e4e418af931eccbe73db01813a70efc2924a | 972e1164d77ecbf6c2b50b93fec9dc48c8d913e6 | refs/heads/master | 2021-01-19T07:52:53.057151 | 2017-04-06T09:48:21 | 2017-04-06T09:48:21 | 87,581,937 | 0 | 0 | null | 2017-04-07T19:52:56 | 2017-04-07T19:52:56 | null | UTF-8 | Python | false | false | 246 | py | # -*- coding: utf-8 -*-
#
class VolumeBase(object):
_ID = 0
def __init__(self, id=None):
if id:
self.id = id
else:
self.id = 'v%d' % VolumeBase._ID
VolumeBase._ID += 1
return
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
24bfed80ab1caa8cbdcf840494dd356d0bacce80 | 6bca587e888ad96062e7d74f96e28e05f2da51a6 | /android/device/actions/common/hardware/libcamera/tests/camerahal_test_scripts/camera_smoketest/camera_smoketest_0011.py | d158fa5ccec3b848d9ec519d7db1d050f485d942 | [] | no_license | ChrisP-Android/android-actions | 07a3bd732cb731ac6176b768b1ce19e5f520a303 | ac57ff55fbca5f4e3cf8851b17c42dafa2f9f46c | refs/heads/master | 2020-12-14T18:51:47.340113 | 2015-10-28T17:42:12 | 2015-10-28T17:42:12 | 44,614,459 | 1 | 0 | null | 2015-10-20T15:07:25 | 2015-10-20T15:07:25 | null | UTF-8 | Python | false | false | 772 | py |
import time
from time import sleep
import random
import sys
from config import *
from camera_smoketest_config import *
############################################################
print '*******************************************************************'
print 'recording %d times'% TestIterTimes
print '***********... | [
"lee.li@lemaker.com"
] | lee.li@lemaker.com |
a100678014c55766c07b94ae81cf67b691c11c59 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=6/sched.py | 3605875026286563e51a9292de1d94125c66f6dc | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | -S 1 -X RUN -Q 0 -L 2 106 400
-S 0 -X RUN -Q 0 -L 2 86 400
-S 0 -X RUN -Q 0 -L 2 74 250
-S 0 -X RUN -Q 0 -L 2 59 250
-S 2 -X RUN -Q 1 -L 1 54 200
-S 3 -X RUN -Q 1 -L 1 44 175
-S 2 -X RUN -Q 1 -L 1 40 200
-S 2 -X RUN -Q 1 -L 1 37 125
-S 4 -X RUN -Q 2 -L 1 35 125
-S 4 -X RUN -Q 2 -L ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
c1396ab21dabc56b8319ae076980db2b18e388c6 | e2e7b6ae6f8897a75aaa960ed36bd90aa0743710 | /swagger_client/models/post_deployment.py | 2e5931f02a8d25c5931c6afa88ad097e5ca01832 | [
"Apache-2.0"
] | permissive | radon-h2020/radon-ctt-cli | 36912822bc8d76d52b00ea657ed01b8bfcc5056f | 3120b748c73e99d81d0cac5037e393229577d640 | refs/heads/master | 2023-08-19T10:54:01.517243 | 2021-09-15T15:38:51 | 2021-09-15T15:38:51 | 299,571,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | # coding: utf-8
"""
RADON CTT Server API
This is API of the RADON Continuous Testing Tool (CTT) Server: <a href=\"https://github.com/radon-h2020/radon-ctt\">https://github.com/radon-h2020/radon-ctt<a/> # noqa: E501
OpenAPI spec version: 1.0.0-oas3
Generated by: https://github.com/swagger-api/sw... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
e9e739c00119abf72ad26943f9ddfdbcd2dc0696 | db56c00e7ab30329bd53d8ee35caad94dc13efb6 | /src/hex_control/hex_control/spi_bridge.py | 486926daf1031295e05dc8237bf32899adebed0a | [] | no_license | Wojcik98/hexapod | a7bbdedba3eec6f662c52671956408d74fee3a2b | dc6d01dfd27b4a31f3abeabb9acfe202640cb6d8 | refs/heads/master | 2023-06-09T00:28:43.015250 | 2021-06-30T10:11:24 | 2021-06-30T10:11:24 | 321,147,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | import spidev
import rclpy
from std_msgs.msg import UInt8MultiArray
from rclpy.node import Node
SPI_SPEED = 2000000
class SpiBridge(Node):
def __init__(self):
super().__init__('spi_bridge')
self.spi = spidev.SpiDev()
self.spi.open(0, 0)
self.spi.max_speed_hz = SPI_SPEED
... | [
"wojcikmichal98@gmail.com"
] | wojcikmichal98@gmail.com |
47853c7c8e53ba4da18af09b6ac41b9c19b4f302 | 579385cc730ddcdd4b96d616c92caace15ac3d58 | /article/migrations/0018_auto_20170715_1051.py | 92429e1f3a578d1fab4b3d49561c8364c4a52406 | [] | no_license | exctac/vedansha.com | f852892fc36ae1b0086b2e836335c8ad6dded962 | 994a116d177192cf4d473c57332df1c6429e97b8 | refs/heads/master | 2020-07-09T18:58:54.171045 | 2018-02-04T21:58:19 | 2018-02-04T21:58:19 | 94,260,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-15 10:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0017_auto_20170715_0828'),
]
operations = [
migrations.AddField(
... | [
"exctac@yandex.ru"
] | exctac@yandex.ru |
7aa3b4ca0b62347e16f42050d1394ef9da533dca | 93179ac11ded2454149ece61c51f2ef8227d3999 | /Profile/migrations/0001_initial.py | ae67e05ec494d69a3c633d64b168811ff31f9848 | [] | no_license | Hloni253/HloniSite | 9f14e51854f3dc5b411ef9e771e2fbfbe0227bad | dca7d335687ee8c9fc46b7a61143f8219961873d | refs/heads/main | 2023-06-26T01:22:58.318594 | 2021-07-28T13:47:56 | 2021-07-28T13:47:56 | 390,359,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | # Generated by Django 3.1.7 on 2021-06-14 10:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Notes', '0001_initial'),
('Videos', '0001_initial'),
('... | [
"lehlohonolomotloung407@gmail.com"
] | lehlohonolomotloung407@gmail.com |
797a8815744350425e025a5f0309849676b9691c | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/IR_engine_20210728213929.py | ddcc939eb070ba750cc5357a2d6a5aa401fe3e9a | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
from nltk.stem import PorterStemmer
from nltk.tok... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
3bcd8c0c02adfd97e228048b85313243c62ab2ef | 3167e46c75cda7fe5b4550347631b172763fc175 | /test_train.py | 0db583c8df5620c605638499d1c3a2df6a45f4c2 | [] | no_license | SuhaasBhat/CC_DATA | d85e89dbb7451a016787190986158d8c3290dda9 | 96deceddc465fb774380a1bb14673260e9483fd7 | refs/heads/main | 2023-01-23T18:47:13.416663 | 2020-11-09T20:47:27 | 2020-11-09T20:47:27 | 311,454,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | from transformers import GPT2LMHeadModel, GPT2Config, GPT2Tokenizer, LineByLineTextDataset, DataCollatorForLanguageModeling, Trainer, TrainingArguments
from transformers import RobertaTokenizerFast, RobertaForMaskedLM, RobertaConfig
import process_txt_data as ptd
#import torch
tokenizer = GPT2Tokenizer.from_pretrained... | [
"ubuntu@ip-10-160-198-158.ec2.internal"
] | ubuntu@ip-10-160-198-158.ec2.internal |
8906dc16d16c453861174bea5e4c2e7b79fdd5f7 | 2730d3aedc279f4cafed721cceacc6afe1f7d18d | /zjh/mccfr_zjh.py | 937a01350490f6bfd1a0ab3ed2b7e58dfbcc9ede | [] | no_license | AIMan-Zzx/zhajinhua | 9e2db235f045b49cd5a72b28a0c8f9a74e8e7982 | 17fa23afc97ad154b48972af9bd206a0c8df87ca | refs/heads/main | 2023-04-20T17:09:28.344371 | 2021-05-06T17:23:56 | 2021-05-06T17:23:56 | 364,983,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,173 | py | import numpy as np
import random
from itertools import permutations
from tqdm import tqdm
from typing import Dict, List, Union
import multiprocessing as mp
from collections import defaultdict
from node import MNode as Node
from state import State,Pair
import json
import sys
import os
sys.setrecursionlimit(1000000)
# re... | [
"noreply@github.com"
] | AIMan-Zzx.noreply@github.com |
d1520e9ff57b17017f0d8fbb25972e618c4716d7 | 294b75c805c5528fd6c6ff3d0d820afcafcff1bb | /Py_File/OS_Demo.py | df4ae6f8b49d06f28197d4ce57391a0dff094c5f | [] | no_license | kishansinghverma/C_Python | 7b679730c522c2f566a27540491912670eb0ffae | a96408f6a15e267f716a431d836f704eba9c13dc | refs/heads/master | 2020-06-15T12:29:10.750073 | 2019-12-24T15:51:19 | 2019-12-24T15:51:19 | 195,279,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import os
import time
f1=open('local.txt', 'r')
current=list(map(float, f1.read().strip().split('/')))
while(True):
f2=open('remote.txt', 'r')
rmt=list(map(float, f2.read().strip().split('/')))
if(current[0] != rmt[0]):
current[0] = rmt[0]
if(current[0]==1):
print('Fan Is Turne... | [
"kishansinghverma@gmail.com"
] | kishansinghverma@gmail.com |
ec9388dc3dd1fce8c32eb599783e32c21d108f8a | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/combinatorics/coset_table.py | 9e9b2b0f7ecf107a58a2d1ab311db0f412135e86 | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 42,977 | py | from sympy.combinatorics.free_groups import free_group
from sympy.printing.defaults import DefaultPrinting
from itertools import chain, product
from bisect import bisect_left
###############################################################################
# COSET TABLE ... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
049caefa2add1ff042074b59e8aa6f1d1253ec07 | b236cc8f8cb1551467fd7bfdfafd35b760e1beeb | /00-Scanner/01-RemoteFileScanner/01-CodeLeak/SourceLeakHacker/lib/core/dispatcher.py | 2a797bee0b02b44e0877d5be1dae1794d5cb169a | [] | no_license | LANVNAL/MyPentestToolsBox | d3e8fbe78d84878996f9bab663568045dba20f29 | b88c8bc711eb21fb14a06bcf816629477b5604cb | refs/heads/master | 2023-07-24T18:25:28.538528 | 2021-09-07T11:20:27 | 2021-09-07T11:20:27 | 403,949,673 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,176 | py | import sys
import queue
import threading
import time
import requests
from colorama import Style
from lib.util import color
from lib.util import terminal
from lib.context import context
def check(url, foldername, filename, backup, timeout=4):
try:
start_time = time.time()
response = requests.head(u... | [
"lanvnal@foxmail.com"
] | lanvnal@foxmail.com |
a4e16aa3029986e19186a08d10ba6756a749ef85 | 865bd5e42a4299f78c5e23b5db2bdba2d848ab1d | /Python/75.sort-colors.132268888.ac.python3.py | 420999a7c4e65d780fb46607f6690cc3de47a52b | [] | no_license | zhiymatt/Leetcode | 53f02834fc636bfe559393e9d98c2202b52528e1 | 3a965faee2c9b0ae507991b4d9b81ed0e4912f05 | refs/heads/master | 2020-03-09T08:57:01.796799 | 2018-05-08T22:01:38 | 2018-05-08T22:01:38 | 128,700,683 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #
# [75] Sort Colors
#
# https://leetcode.com/problems/sort-colors/description/
#
# algorithms
# Medium (38.90%)
# Total Accepted: 217.5K
# Total Submissions: 559.1K
# Testcase Example: '[0]'
#
#
# Given an array with n objects colored red, white or blue, sort them so that
# objects of the same color are adjacent,... | [
"miylolmiy@gmail.com"
] | miylolmiy@gmail.com |
c7ee79f81e71c46a87d58a9599bef995068c3961 | 5c956c53f4fd9d98a94abf0d8c378a45eb0476b1 | /home/forms.py | 4e1d29850b57766e715f709702292f09e84d68b8 | [] | no_license | PrarthiVyas/Hotelina | 7d3535998784d51201662d1b4460abb57f33ba95 | b865971b3c9abea7d7bea8347a729782a9ed8870 | refs/heads/main | 2023-06-17T04:07:55.413608 | 2021-07-17T11:00:13 | 2021-07-17T11:00:13 | 381,929,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from django import forms
from .models import *
# Create your forms here.
class AvailableForm(forms.Form):
ROOM_CATEGORIES={
('AC','AC'),
('NON_AC','NON-AC'),
('DELUX','DELUX')
}
room_category=forms.ChoiceField(choices=ROOM_CATEGORIES,required=True)
check_in=forms.DateTimeField(required=... | [
"prarthivyas218@gmail.com"
] | prarthivyas218@gmail.com |
b3f84d79385b2e8fd9a8f9a72177eabb2b44ec3c | f846aad1778d33ff59a8c931a9107bb7819a8a7a | /Fern-Wifi-Cracker-Py3/core/toolbox/MITM_Core.py | 40844758ae482711fe731c4ddef071fc895ee535 | [] | no_license | kimocoder/fern-wifi-cracker | f170f397bd34c5ab04849fb935c0f50856ef70b3 | 04818cb97bf2068e3015c954dbeaa510b95caa29 | refs/heads/master | 2023-04-27T07:29:00.385430 | 2019-06-01T09:58:46 | 2019-06-01T09:58:46 | 91,082,900 | 2 | 0 | null | 2019-06-01T09:59:12 | 2017-05-12T11:03:19 | Python | UTF-8 | Python | false | false | 11,507 | py | #-------------------------------------------------------------------------------
# Name: MITM Core (Man In The Middle)
# Purpose: Redirecting Network traffic to attack host by various MITM engines
#
# Author: Saviour Emmanuel Ekiko
#
# Created: 15/08/2012
# Copyright: (c) Fern Wifi Cracker ... | [
"simone.mione1@gmail.com"
] | simone.mione1@gmail.com |
acc6e458d0eed26bbf21d9f29e8da48301241569 | 995447d49ea0b6f78ea70fac64959bf39f28556a | /datasets/__init__.py | e6230fde23e7922291a414c79e408227b603e894 | [
"MIT"
] | permissive | hhjung1202/DAtoN | ffcfe389292f8f3429ffc6b04d016bdf40506ee5 | 9d1beff544e695caa3149d6304415889e091cafd | refs/heads/master | 2020-05-18T07:51:43.489041 | 2019-05-03T03:11:44 | 2019-05-03T03:11:44 | 184,278,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from .mnist import get_mnist
from .usps import get_usps
from .svhn import get_svhn
__all__ = (get_usps, get_mnist, get_svhn)
| [
"hhjung1202@naver.com"
] | hhjung1202@naver.com |
f284deeabab19ea1adbc370ff61a3d7bf21a0ee6 | 99052370591eadf44264dbe09022d4aa5cd9687d | /install/lib/python2.7/dist-packages/cartesian_planner/msg/_cart_moveGoal.py | f245dd6ac0ba90eb7cf6a28424f7787009277745 | [] | no_license | brucemingxinliu/ros_ws | 11b1a3e142132925d35b3adf929f1000392c5bdc | 45f7e553ea20b79e3e93af5f77a1b14b64184875 | refs/heads/master | 2021-01-24T03:36:47.043040 | 2018-02-26T00:53:37 | 2018-02-26T00:53:37 | 122,892,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,447 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cartesian_planner/cart_moveGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class cart_moveGoal(genpy.Message):
_m... | [
"mxl592@case.edu"
] | mxl592@case.edu |
f55df027f5a380a2302722b0a432c76857f85315 | a1a43879a2da109d9fe8d9a75f4fda73f0d7166b | /api/tests/equal_all.py | 1f1a1f3cf9a2c23dd214b96ee1e53b5c0fc00069 | [] | no_license | PaddlePaddle/benchmark | a3ed62841598d079529c7440367385fc883835aa | f0e0a303e9af29abb2e86e8918c102b152a37883 | refs/heads/master | 2023-09-01T13:11:09.892877 | 2023-08-21T09:32:49 | 2023-08-21T09:32:49 | 173,032,424 | 78 | 352 | null | 2023-09-14T05:13:08 | 2019-02-28T03:14:16 | Python | UTF-8 | Python | false | false | 1,661 | py | # Copyright (c) 2022 PaddlePaddle 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
470680c22dc232542067bccb9341ef99207ae529 | 2b476ebcd5e2b4fdd153b438003c5e2b61d0e9bd | /multiRequests.py | 1b7625147c8e4b11eb90b93a7faa080efb1c535d | [
"MIT"
] | permissive | coolkingcole/py3_multithread_requests | 24b103e3d44c214ce747522619b64cad5ece5605 | f22e445210e7d1b377f5fb4525dd8826525ec791 | refs/heads/main | 2023-02-12T14:05:08.672951 | 2021-01-03T19:50:19 | 2021-01-03T19:50:19 | 324,894,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import queue
import threading
import time
import sys
import requests
class ThreadUrl(threading.Thread):
"""Threaded Url Grab"""
def __init__(self, inqueue, outqueue, kwargs):
threading.Thread.__init__(self)
self.in_queue = inqueue
self.out_queue = outqueue
#self.method = method
... | [
"noreply@github.com"
] | coolkingcole.noreply@github.com |
a0d92a8d6c46aa5a0eb9efd323e336c5e8815128 | 9b64080dac6e4bc586f5af9404a0ea338ce00559 | /tests/test_menu.py | 84404f4bf6d7616f58f57c43d9a4da5de942768c | [] | no_license | KrzysztoPy/tic_tac_toe_simple | 1c7dc183c0e099324b3b5b18f90f281742d19a8c | fff7e02cc654cee5c92b7e828b85fec650274222 | refs/heads/master | 2023-08-07T18:13:48.126489 | 2021-10-01T13:46:55 | 2021-10-01T13:46:55 | 395,326,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | from main_menu.main_menu.menu_options import *
from unittest.mock import patch
@patch('xyz.xyz.checking_the_correctness_of_the_selection')
def test_processing_of_external_data_first_is_false(mock_checking_the_correctness_of_the_selection):
mock_checking_the_correctness_of_the_selection.return_value = None
res... | [
"geraltrivia19@gmail.com"
] | geraltrivia19@gmail.com |
dfde88d376bff11e0d3d19554790b4b6966a9654 | 7d1c9017a7744deb1681b2d646feb4212e65d0ec | /lib/build_pack_utils/runner.py | e01a3d634f79465b5be021da57008185de88dbff | [
"Apache-2.0"
] | permissive | puteulanus/cf-php-build-pack | db8fe5623f329b3c44006fd695e0214621f85cfe | 3e125a7819bcf36c5c71fd4458bb567b6eb327ff | refs/heads/master | 2020-05-23T11:16:11.797222 | 2014-10-15T04:13:52 | 2014-10-15T04:13:52 | 25,183,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | import os
import os.path
import tempfile
import subprocess
import logging
# This and check_output are shims to support features of Python 2.7
# on Python 2.6.
#
# This code was borrowed from PyPy 2.7.
# bitbucket.org/pypy/pypy/src/9d88b4875d6e/lib-python/2.7/subprocess.py
#
# This can be removed when the CloudFou... | [
"dmikusa@gopivotal.com"
] | dmikusa@gopivotal.com |
6153ed244acbd1deac19c433cbd01c43350d4ff4 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2gFkEsAqNZrs4yeck_13.py | 0e96182a63f5aad185cacd1b5bcad33ff13d32f2 | [] | 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 | 696 | py | """
Write a function that returns all the elements in an array that are **strictly
greater** than their adjacent left and right neighbors.
### Examples
mini_peaks([4, 5, 2, 1, 4, 9, 7, 2]) ➞ [5, 9]
# 5 has neighbours 4 and 2, both are less than 5.
mini_peaks([1, 2, 1, 1, 3, 2, 5, 4, 4]) ➞ [2, 3, 5... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2049346c2d9e4a956951a4fa5b7244e5b807fbb8 | aff98325082a912c84471b7a505ab565175b0289 | /tests/test_progress.py | 2d3bd9a9fdaeb394b7f7af6b7cb5d68b7695ec3e | [
"MIT"
] | permissive | dbazhal/kopf | a10dde232095eaf7104f1623a1f6bfc33cb80363 | ac772f2d7ce1272f47f10ebff784f54a6ec8dcfa | refs/heads/master | 2020-06-15T03:51:57.055815 | 2020-01-13T14:23:29 | 2020-01-13T14:23:29 | 195,031,097 | 0 | 0 | MIT | 2019-07-03T10:21:51 | 2019-07-03T10:21:50 | null | UTF-8 | Python | false | false | 15,676 | py | import copy
import datetime
from unittest.mock import Mock
import freezegun
import pytest
from kopf.structs.status import (
is_started,
is_sleeping,
is_awakened,
is_finished,
get_start_time,
get_awake_time,
get_retry_count,
set_start_time,
set_awake_time,
set_retry_time,
st... | [
"sergey.vasilyev@zalando.de"
] | sergey.vasilyev@zalando.de |
71235e6cef2af20b7446f10bffc9e56fb288f23a | b1a93e393d94e493234e8c9ed00142cf692206a5 | /test_country_sorting.py | f6da434692d40d742476a3b57c132b02d8e7a0ce | [
"Apache-2.0"
] | permissive | mmarcikk/selenium_training | 2a0c811995c62793e623c61e569c247f853b6af9 | ff57a0498866a1aba0b484c79218bce494dfe218 | refs/heads/master | 2021-05-05T05:05:43.661873 | 2018-03-01T09:31:22 | 2018-03-01T09:31:22 | 118,660,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import pytest
from selenium import webdriver
@pytest.fixture
def driver(request):
wd = webdriver.Chrome()
wd.implicitly_wait(2)
request.addfinalizer(wd.quit)
return wd
def test_country_alphabetical_order(driver):
driver.get("http://localhost:8084/admin/?app=countries&doc=countries")
driver.f... | [
"marta.chimiak@stxnext.pl"
] | marta.chimiak@stxnext.pl |
879b1c3f764e6498f9a7a553de77fbb731b85af3 | 83fbcbcc674ade1ee920b6fdc6ebc472b3833c76 | /SpinalCord/GANUNet/data0/zgan_dataset.py | 65248e3aa55a3b4ea42832496dc8b37632ed087e | [] | no_license | mulanshine/GitHubResearch | 35b12da7311e7e6c21a613ed20a33e0cada24610 | 95b5b24857a0766ed327baf1ab89715e748ddf89 | refs/heads/master | 2020-05-02T20:27:09.455603 | 2019-04-03T11:07:40 | 2019-04-03T11:07:40 | 175,150,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,816 | py | import os.path
from data.base_dataset import BaseDataset
from data.image_folder import make_dataset
from PIL import Image
import numpy as np
import torch
import torchvision.transforms as transforms
import math
# anisotropic diffusion
def f(lam,b):
return np.exp(-1* (np.power(lam,2))/(np.power(b,2)))
... | [
"1952221507@qq.com"
] | 1952221507@qq.com |
6d6553258075a28f63b269f8f5e0ee499ae45d71 | 37ae8b0ecafd03bae01786b3fe7fc05b83f522a3 | /condicionais_finished.py | ad5c4cdf75df320b56124c5b3e19c48b6a690609 | [] | no_license | leocoelhodev/descobrindopython | a5d6b860ab05d9bf9e6840c660dbace39c8f20bf | f46da632347dd80fc52e1987b5cd69a992fe039e | refs/heads/main | 2023-05-27T04:25:30.535286 | 2021-06-15T10:28:45 | 2021-06-15T10:28:45 | 377,123,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #
# Arquivo de exemplo das estruturas condicionais
#
def Condicionais():
x, y = 1000, 1000
if(x < y):
print("x é menor do que y")
elif (x == y):
print ("x é igual a y")
else:
print("x é maior do que y")
Condicionais() | [
"noreply@github.com"
] | leocoelhodev.noreply@github.com |
4e27f85e6e44ae509d32786234d293e24fc8af61 | 7862625fabc748a5a44ff99b6ad5af53c973795f | /solsapp/urls.py | 9a25ba4f1c9dc0ec1d174ae91531bdc941d3d7e3 | [] | no_license | RakeshThirunahari/sols | 81eefcca9aab8552ac43a0a9bc3ab2a018443e8c | 0cd0d15d5d8d8c04e9cd8f197a0f71cd63e1c5b0 | refs/heads/main | 2023-02-26T03:02:05.246958 | 2021-02-02T16:39:00 | 2021-02-02T16:39:00 | 335,319,465 | 0 | 0 | null | 2021-02-03T08:28:59 | 2021-02-02T14:39:20 | HTML | UTF-8 | Python | false | false | 472 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name = 'SolsHome'),
path('List', views.listview, name = 'SolsList'),
path('GetTableMeta', views.tablemeta, name = 'tablemeta'),
path('GetTableData', views.tabledata, name = 'tabledata'),
path('CreateList', views.... | [
"rakesh.thirunahari@dhl.com"
] | rakesh.thirunahari@dhl.com |
a8e763a04f78152641c42acfb6f4274a34e67f6f | a9555d0e7417db4ea68ab73a46ffe5d6fd7b631a | /chapter2/int_fun.py | 2e74b87088a1f32a9629d9e8e032b87355ff7347 | [] | no_license | bindalraghav/Pythoncodes | ade74f2a8709e609b51ce2c754c4de204cafbf87 | 1d6d11c88ef9ef36826729e557ea95d32dc47b9d | refs/heads/master | 2021-01-03T11:13:25.300928 | 2020-03-18T15:07:20 | 2020-03-18T15:07:20 | 240,052,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | num1=int(input("enter 1st num"))
num2=int(input("enter 2nd num"))
num3=num1+num2
print(num3) | [
"bindalraghav10@gmail.com"
] | bindalraghav10@gmail.com |
e1c6b945316596e701607f76ce9c27b844005759 | 83a4ff375458206a06e8e9bd029ed2a50eb3fa4f | /green/iMetricalCouch/src/imetricalcouch.py | 208722974e9a7822f59095436273ed7b811df1eb | [] | no_license | daneroo/snookr-gcode | fdb4977b2ea2ddb70a3e6cd085a0f7925aabd63c | a30f7910a08dfaa5812dbc8a2989c553da1ad353 | refs/heads/master | 2021-01-25T07:33:58.205388 | 2017-07-27T19:36:32 | 2017-07-27T19:36:32 | 32,338,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # populate couch instance with imetrical data
#
#import simplejson as json
import json
import urllib2
import datetime
import couchdb
__author__="daniel"
__date__ ="$Oct 31, 2010 6:57:01 PM$"
JSONURL = "http://cantor/iMetrical/getJSON.php";
COUCHDBNAME = "imetricaltest"
couch = couchdb.Server()
#couch = couchdb.Server... | [
"daneroo@users.noreply.github.com"
] | daneroo@users.noreply.github.com |
945d6816e65ddcd5afe591b18b6347226f66c943 | bd1e0d03a0b7f07a1b6154df96fe7b52653845a6 | /Elementary/Find Message.py | 0de03555a90025aab2bccbab86e9b7d80474e3a3 | [] | no_license | thuan06/checkio.org-solution | cb43a97f1e7f43c2f0051bf4c5bca7b2dd330aac | 5e6d1be80b5faaf1a19370a5f32e8bd82bf38f9b | refs/heads/master | 2016-09-06T03:40:24.899368 | 2014-12-18T13:46:35 | 2014-12-18T13:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | __author__ = 'Thuan'
def find_message(text):
s=''.join([i for i in text if i.isupper()])
return str(s)
print find_message("How are you? Eh, ok. Low or Lower? Ohhh.")
| [
"thuan0610@gmail.com"
] | thuan0610@gmail.com |
d667cd2f95e0010147408d1bee42456d1f50ab10 | 8a155ccffb7d10c394bfff752d2c3c33892940ea | /KnowledgeProblem/models.py | af4605b6021e39add4382fcf23586b194cfad4c9 | [] | no_license | TONG404/WHUTravler | b5ba041db1d61878565c9553ffdae419074997ef | d57a2bd9a627af7a1a6c5373b95f489ca87bd2d3 | refs/heads/master | 2023-03-18T20:33:27.462230 | 2021-03-05T16:25:34 | 2021-03-05T16:25:34 | 344,848,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.db import models
# Create your models here.
class Knowledge(models.Model):
id = models.IntegerField(primary_key=True)
problem = models.CharField(max_length=320)
selA = models.CharField(max_length=40)
selB = models.CharField(max_length=40)
selC = models.CharField(max_length=40)
selD = models.CharField... | [
"15809477910@163.com"
] | 15809477910@163.com |
2f132d128561ac039be320bd5174c2847e302c7c | 659b66f248173fb99d6d1f43978064b576a9da6f | /check_mail.py | 3dfaf0909b488340ba23ccc586345ecdc3b716d0 | [] | no_license | tuanpx9184-cowell/learn-python | 25981ab0d27b4afa764a3990decc5911ba525d1f | aa0fbce15677e6d58b824ddb4d133e4e59b152db | refs/heads/master | 2022-04-05T17:08:07.225789 | 2019-12-09T07:59:38 | 2019-12-09T07:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import re
def isValidEmail(email):
if len(email) > 7:
if re.match("^.+@(\[?)[a-zA-Z0-9-.]+.([a-zA-Z]{2,3}|[0-9]{1,3})(]?)$", email) is not None:
return True
return False
if isValidEmail("my.email@gmail.com"):
print("This is a valid email address")
else:
print("This is not a vali... | [
"tuanpx.dev@gmail.com"
] | tuanpx.dev@gmail.com |
2f2a1743222841ff34512aa1889a1587bd61b5ce | c759ca98768dd8fd47621e3aeda9069d4e0726c6 | /codewof/users/forms.py | 211e37a2e4797d3fa23af236d3215009c7f787c4 | [
"MIT"
] | permissive | lucyturn3r/codewof | 50fc504c3a539c376b3d19906e92839cadabb012 | acb2860c4b216013ffbba5476d5fac1616c78454 | refs/heads/develop | 2020-06-24T08:25:28.788099 | 2019-08-12T02:50:35 | 2019-08-12T02:50:35 | 198,912,987 | 0 | 0 | MIT | 2019-08-07T03:22:21 | 2019-07-25T23:17:17 | Python | UTF-8 | Python | false | false | 1,132 | py | """Forms for user application."""
from django.forms import ModelForm
from django.contrib.auth import get_user_model, forms
User = get_user_model()
class SignupForm(ModelForm):
"""Sign up for user registration."""
class Meta:
"""Metadata for SignupForm class."""
model = get_user_model()
... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
20fb226181a168dd6671f5f065e241134074e33a | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /route53_write_f/dns-answer_test.py | f8d48671d2f746eca041962279f310374a54a8cc | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
3b08fd39d483dd905b289f19b47dcc45bbbd0504 | c35eaed6e8d6a6e7b3e1194c79f77c04540c6fc6 | /Clone_14/Evaluation/toy_problem.py | 03f32b4db9d8a56623b97613f059000d09498075 | [] | no_license | vishwesh5/OpenMLCPython_v-0.0.5 | 847a48da1f4140398d285cd809590411905260db | 1e690133e2dc70358d89927d95d6ccf81df0af3b | refs/heads/master | 2021-01-21T11:01:01.717518 | 2017-08-24T15:38:10 | 2017-08-24T15:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,774 | py | # -*- coding: utf-8 -*-
# MLC (Machine Learning Control): A genetic algorithm library to solve chaotic problems
# Copyright (C) 2015-2017, Thomas Duriez (thomas.duriez@gmail.com)
# Copyright (C) 2015, Adrian Durán (adrianmdu@gmail.com)
# Copyright (C) 2015-2017, Ezequiel Torres Feyuk (ezequiel.torresfeyuk@gmail.com)
# ... | [
"tomar.gatech@gmail.com"
] | tomar.gatech@gmail.com |
b19de6f92104daeabffb2649ab270d6ee55856fd | d5023f951158275b97fc0794aa04427a5258858b | /main.py | 05841bce35b5db81442f021868d89804d347d80b | [] | no_license | AakashBudhera/Minemapper | a7342f33917ea61ddbaa020fba8cebe2e3aff008 | a61efffd3709d98308e38fb93d2bd454acf2c81d | refs/heads/master | 2022-11-04T21:59:12.292582 | 2020-06-18T03:17:22 | 2020-06-18T03:17:22 | 273,130,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | from ipywidgets.embed import embed_minimal_html
from PIL import ImageFilter
import gmaps
gmaps.configure(api_key="AIzaSyCo99awBRG0JvRCoJC8M12-3EiAoLfElSM")
fig = gmaps.figure()
from PIL import Image
im = Image.open("/Users/Aakash/36.070403, 68.629560, 68.673354.png")
inputim=im.filter(ImageFilter.ModeFilter(8))
inputim... | [
"noreply@github.com"
] | AakashBudhera.noreply@github.com |
4bc6b2ded7a42b226ac3a04ee7c6be4878dd796e | 8ca4992e5c7f009147875549cee21c0efb7c03eb | /mmseg/models/decode_heads/nl_head.py | bbbe70b5fb7233fd840941678657950119fda43e | [
"Apache-2.0"
] | permissive | JiayuZou2020/DiffBEV | 0ada3f505fc5106d8b0068c319f0b80ed366b673 | 527acdb82ac028061893d9d1bbe69e589efae2a0 | refs/heads/main | 2023-05-23T07:25:39.465813 | 2023-04-04T02:53:05 | 2023-04-04T02:53:05 | 613,895,691 | 181 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmcv.cnn import NonLocal2d
from ..builder import HEADS
from .fcn_head import FCNHead
@HEADS.register_module()
class NLHead(FCNHead):
"""Non-local Neural Networks.
This head is the implementation of `NLNet
<https://arxiv.org/a... | [
"noreply@github.com"
] | JiayuZou2020.noreply@github.com |
c1b26cced7bf736c91ff5349abd7750a5eefa8d8 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/numPy/updateNumpy.py | 764b3af48fbc0778e1b980e0ca73c7c9f9fe3f14 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import numpy as np
x=np.array([12,34,56,78,99])
y=np.array([[1,2,3],[4,5,6],[7,8,9]])
print(f"Orginal array{x}")
# access
print(x[0],x[len(x)-1],x[-1],x[-2])
# Modify
for i in range(len(x)):
x[i]=x[i]*2
# delete first and last element
x=np.delete(x,[0,4])
print(x)
print(y)
# delete first row (x axis)
y=np.delete(y... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
284ce95f34b4a10c66e71f2e3477dda5167fac94 | b6d2354b06732b42d3de49d3054cb02eb30298c4 | /finance/models/score.py | df2c1a647c8480e32ca35a6f81dc0cb04266d188 | [] | no_license | trivvet/finplanner | 52ad276839bfae67821b9684f7db549334ef0a59 | 1d82d1a09da6f04fced6f71b53aeb784af00f758 | refs/heads/master | 2020-03-17T23:24:25.071311 | 2018-10-28T10:12:07 | 2018-10-28T10:12:07 | 134,043,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class ScorePrototype(models.Model):
class Meta:
abstract=True
month = models.ForeignKey(
'Month',
on_delete=models.CASCADE,
blank=False,
null=False... | [
"trivvet@gmail.com"
] | trivvet@gmail.com |
45fa2dbee61e221e1175c00b267661e423d7a2be | 757facc4046b40664b6b679f7e3a58c1da48845a | /ex19.py | 0072fad8ad8c91b1dc3d859d289b283a3763b5fa | [] | no_license | Samkelo-Kinetic/Kinetics | 2990e6740df8b1ce2768ce2243872f8407895c3c | 963b1df057559a395f7b61eea32552c8fd917c84 | refs/heads/master | 2020-03-27T23:53:33.330280 | 2018-10-12T12:28:19 | 2018-10-12T12:28:19 | 147,355,885 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #Functions and Variables
def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You Have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's not enough for party!"
print "Get a blanket.\n"
print "we can just give the function numbers directly:"
cheese_... | [
"samkelo@kineticskunk.com"
] | samkelo@kineticskunk.com |
256bb7942ddc5136f4fa22e73823cc34bb46d2c0 | 0156514d371c04da404b50994804ede8d264042a | /rest_batteries/exception_handlers.py | 15824e0dd41058bf34e5dd42c73220ed016ef552 | [
"MIT"
] | permissive | defineimpossible/django-rest-batteries | 68b074f18fcae304b9bac4a242f9a9eea98c6e9c | 951cc7ec153d1342a861d7f6468862000d5ea9f3 | refs/heads/master | 2023-07-21T10:45:18.133691 | 2023-07-11T02:52:45 | 2023-07-11T02:52:45 | 284,420,681 | 21 | 0 | MIT | 2023-07-11T02:34:06 | 2020-08-02T08:19:39 | Python | UTF-8 | Python | false | false | 397 | py | from rest_framework.views import exception_handler
from .errors_formatter import ErrorsFormatter
def errors_formatter_exception_handler(exc, context):
response = exception_handler(exc, context)
# If unexpected error occurs (server error, etc.)
if response is None:
return response
formatter ... | [
"denis.orehovsky@gmail.com"
] | denis.orehovsky@gmail.com |
da4a6176bb44dd1e86e92d95b07eb36559743ae1 | 0c329252674b5d17f0b7f0685cb1ee3d06493475 | /email_classifier/email.py | 538bfdd72a1cba8b6895d512cedf317e53c29fc3 | [] | no_license | griffy/cs1573 | 56f12db035e8206ad3ac92aac38e4731b6edff13 | 52094dd9a7ef1cfc2abf4d87a7d494076cfe23c5 | refs/heads/master | 2021-01-10T11:00:12.347510 | 2013-04-14T21:17:41 | 2013-04-14T21:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,992 | py | import re
import os
to_regex_obj = re.compile(r"^X-To:.*", flags=re.UNICODE)
cc_regex_obj = re.compile(r"^X-cc:.*", flags=re.UNICODE)
bcc_regex_obj = re.compile(r"^X-bcc:.*", flags=re.UNICODE)
body_regex_obj = re.compile(r"^X-FileName:.*", flags=re.UNICODE)
from_regex_obj = re.compile(r"^X-From:.*", flags=re.UNICODE)
... | [
"joel@joel-griffith.com"
] | joel@joel-griffith.com |
1483f821c0627d6b8a82c9014eb08f848bc8b71b | 97a5c3db7ee6dbd42c3594311fc37ac9a933dc2b | /user/forms.py | 181a19a22ed17552ba2e214f089d86cb4243e70a | [] | no_license | abhi877/Instagram_Clone | 0f972d48b1e43173f7a005845d579c4f99800931 | 77817165003e2f3c67aeee009ed5cd0e3febace2 | refs/heads/main | 2023-08-25T08:40:49.507770 | 2021-09-23T15:29:14 | 2021-09-23T15:29:14 | 409,145,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import password_validation
from django.contrib.auth.models import User
from django.utils.translation import gettext_lazy as _
from .models import Profile
from django.contrib.auth.forms import Pas... | [
"kumar.abhina5670@gmail.com"
] | kumar.abhina5670@gmail.com |
b73f63a73d88ec21769484c20ab36f41349fb58a | f294b061203f82e2d38a0aa32c489c63cb7bcc9c | /scripts/get_pose_from_base_camera.py~ | 71fded60ace0752abcec698f06f24d2cf8a975d7 | [] | no_license | birlrobotics/birl_baxter_marker_vision | b2d6916ce8c9493cafe94be8404c1b77fbc25890 | 1bf40837b01122e99c7de891863717ccf1723555 | refs/heads/master | 2021-09-06T13:58:22.842886 | 2018-02-07T08:22:57 | 2018-02-07T08:22:57 | 119,490,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | #!/usr/bin/env python
import tf
import numpy as np
import rospy
from geometry_msgs.msg import Pose
import ipdb
from birl_baxter_vision import get_pose
pose_sum = []
listener = None
def cb(req):
global listener
marker_pose = []
if req.flag is True:
global pose_sum
rospy.loginfo("get ... | [
"470963660@qq.com"
] | 470963660@qq.com | |
0a9e46657142adcba4376c195fd5c89f84670629 | 85ed63e6ae798cc26bb7db989912405c2675dbb2 | /simpleTest04Client_.py | 0c4cdf64475499e51798185a532224a138493103 | [
"MIT"
] | permissive | LaplaceKorea/APIClient | 3608011f81e432237ed8c047b28e6323db3121fa | e772482c3d9cbedee98f46a3529dca5acc254f3c | refs/heads/main | 2023-07-20T06:33:37.141537 | 2021-08-26T15:48:42 | 2021-08-26T15:48:42 | 380,518,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from LaplaceWSAPIClient import *
from MarkowitzSerde import *
from TargetSerde import *
from Operators import *
from TargetOperators import *
from RLStructure import *
from ClientConfig import client_config
query = RLQuery("default", datetime(2021,1,1), datetime(2021,1,21), {
"BankAccount": 100000.0,
... | [
"renoir42@yahoo.com"
] | renoir42@yahoo.com |
524a0e10cc960c05791d380963683f0e8e163f49 | 545ab856301e0c6c3bfded93e3f1ef3eab9611b7 | /closends/views/main_page.py | cc47f688a0172e0f6b00a7017bbf9b7ee51f7f54 | [] | no_license | HITXYZ/Closends | bd64994c6e9acc514f8dcc43000521b52a66353f | b68461fc4bc8fc24738ecd65b3387a63af1f91f7 | refs/heads/master | 2021-08-30T01:36:16.142129 | 2017-12-13T06:26:54 | 2017-12-13T06:26:54 | 106,384,430 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,285 | py | from django.shortcuts import render
from django.core.cache import cache
from django.core.paginator import Paginator
from django.core.paginator import EmptyPage
from django.core.paginator import PageNotAnInteger
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_require... | [
"zg_hit2015@163.com"
] | zg_hit2015@163.com |
b8b5c514ebde33ad84487fe3b16f60eed66ee18c | 85f844fa1197f5d296ed3736a2f0754deb094e00 | /pipeline/functions/LessonsClustering/main.py | d05520007e5728e3c63f15ec72b5d06d89e28ae5 | [] | no_license | chainesanbuenaventura/ml-search | eb49b552312992402656e395b39760e6429252d0 | 5f6461d3e173c65650342e27a6822afd3a996d1c | refs/heads/master | 2023-01-14T06:58:18.918785 | 2020-11-25T11:14:16 | 2020-11-25T11:14:16 | 287,909,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | from argparse import ArgumentParser
import LessonsClustering
import sys
sys.path.append("pipeline/functions/DataFunctions")
sys.path.append("../DataFunctions")
from utils import *
if __name__ == "__main__":
tracking_uri = get_tracking_uri()
# Arguments
parser = ArgumentParser()
parser.add_argument("--mod... | [
"chainesanbuenaventura@yahoo.com"
] | chainesanbuenaventura@yahoo.com |
939bbd7bf7728c85e4103fe291379ff7cc85c868 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /K9w9hEd9Pn7DtMzjs_19.py | 2d21f26206d7f537dd96e25ad0563a243041c849 | [] | 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 | 113 | py |
def high_low(txt):
lst = [int(char) for char in txt.split(" ")]
return str(max(lst)) + " " + str(min(lst))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
720b4dcd7ceb3b6dcfe8bd266a64baaada1a0d6b | 8ee4b695683038b6387bc806f654739753fbce11 | /Rock paper scissors game in python.py | 6fd5eb936330a9823643b584e8fed6784302afbf | [] | no_license | nikhilgajam/Python-Programs | 535bc30a1fdf7861e5a2a3cb364fc7acc741cb93 | 0426553d904e8e734cafc1b7fcd627ea3a5c33a4 | refs/heads/master | 2023-05-23T22:18:33.379631 | 2021-06-13T05:54:39 | 2021-06-13T05:54:39 | 262,720,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | import random
print("Rock Paper Scissors Game\n")
items = ["Rock", "Paper", "Scissors"]
print("Enter r: Rock")
print("Enter p: Paper")
print("Enter s: Scissors")
print("Enter q: Quit")
user_points = 0
comp_points = 0
count = 0
while True:
count += 1
user = input("\nIteration " + str(coun... | [
"noreply@github.com"
] | nikhilgajam.noreply@github.com |
2aca7809500d412cbb00feadb849529834481c51 | 3beaaf786f8cda63a120c9e9c1591fd5a77a087e | /4-matplotlib/py_chart.py | f0bc32734ebe81b46dad8896cd969d302b8de434 | [] | no_license | masun77/02-DataVis-5Ways | f9859626eea735305409e313fe5b857dfd4b8708 | e01df27782f2a7c5c69132a03b8c4b57367a5f80 | refs/heads/main | 2023-03-01T00:10:02.257639 | 2021-02-13T04:39:21 | 2021-02-13T04:39:21 | 338,385,284 | 0 | 0 | null | 2021-02-13T04:40:52 | 2021-02-12T17:22:58 | HTML | UTF-8 | Python | false | false | 579 | py | import pandas as pd
import matplotlib.pyplot as plt
cars = pd.read_csv('cars-py.csv', sep=',')
colors = {'bmw': 'red', 'ford':'green','honda':'brown','mercedes':'blue','toyota':'purple'}
fig, ax = plt.subplots()
plt.xticks([2000,3000,4000,5000],['2000','3000','4000','5000'])
plt.yticks([10,20,30,40],['10','20','30','... | [
"masun@wpi.edu"
] | masun@wpi.edu |
f0305eec604f96a1c795b04494e5e2bd3d1ca417 | 14df5d90af993150634e596c28cecf74dffe611f | /imghdr_test.py | 2c67ccbd0946c5e2ff7d38098fb675ccc446307d | [] | no_license | mamaker/IntroPy | 7a0614905b95ab5c15ac94b1245278c3ae5d4ce0 | dfea20eb465077e3512c878c549529a4b9282297 | refs/heads/master | 2020-05-09T18:26:16.681103 | 2019-04-23T01:05:31 | 2019-04-23T01:05:31 | 181,342,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
"""
imghdr_test.py
Created on Sat Apr 20 11:19:17 2019
@author: madhu
"""
import imghdr
file_name = 'oreilly.png'
print('File', file_name,'is a:', imghdr.what(file_name))
| [
"madhuvasudevan@yahoo.com"
] | madhuvasudevan@yahoo.com |
69bc2b87b4e297ce71f450a7c46c546972fa3449 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /PSg77AZJGACk4a7gt_6.py | 5bcd00492613d502e7d26232c6bfe6cf615fc660 | [] | 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 | 737 | py | """
For this challenge, forget how to add two numbers together. The best
explanation on what to do for this function is this meme:

### Examples
meme_sum(26, 39) ➞ 515
# 2+3 = 5, 6+9 = 15
# 26 + 39 = 515
meme_sum(122, 81) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
22b6b99e057bfb747edf85ca484cae0b8799622f | 5c4e935199d80413a60410043cbf368608ff1e57 | /bankaccount.py | a4382d10347ae1f2d47af9d2f0e9b199a90498d1 | [] | no_license | meullah/Bank-System----Tkinter | 7ca17ea9d34e2cdaf08db43470411d2ba4830343 | 1782b8eaeaecf914629b9e5dc52123d88689e60c | refs/heads/master | 2023-01-22T22:32:55.252966 | 2020-12-04T17:35:00 | 2020-12-04T17:35:00 | 318,590,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | import os
import fileinput
import datetime
class BankAccount(object):
"""
ACME Bank
"""
def __init__(self):
try:
open('users.txt','x')
except :
pass
if not os.path.exists('transactions'):
os.makedirs('transactions')
def accountExists(self... | [
"mehsanullah24@gmail.com"
] | mehsanullah24@gmail.com |
61b289a049925e33c432f9de32552768370f1765 | 0db42f51da16217e1436e8b2a25c2105e6807370 | /scrapy/enterprise/utils/__init__.py | d0861ddfc140ae92f26d18ff74941ca17b75dc99 | [
"Apache-2.0"
] | permissive | parker-pu/enterprise | b863e1d4625dd6cdc6d555bedd47ce7511b345b8 | 386f4f05948e17589e84263b5451b0f3b958135f | refs/heads/master | 2023-01-13T15:09:28.944845 | 2019-02-02T10:23:40 | 2019-02-02T10:23:40 | 167,884,746 | 1 | 0 | Apache-2.0 | 2023-01-03T16:17:19 | 2019-01-28T02:15:45 | Python | UTF-8 | Python | false | false | 89 | py | # encoding: utf-8
"""
@version: v1.0
@author: pu_yongjun
@license: Apache Licence
"""
| [
"i54605@outlook.com"
] | i54605@outlook.com |
c65169c0f5d5ad182a0cbbbc52473534b1556c20 | 41385183a5e2bc980eaf6d3c8620b05324f1cdfb | /app.py | d25389583961b06fde3fa24befa98485fc5d7919 | [] | no_license | lanru2001/Flask_MongoDB_User_Login | 84b6654b6519a2924d7dd05105dc0943337e83ac | 15693abed930c1f50a0a039d2753da0d713499cb | refs/heads/main | 2023-09-04T00:20:12.160065 | 2021-10-02T13:45:50 | 2021-10-02T13:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,106 | py | from flask import Flask, render_template, request, url_for, redirect, session
import pymongo
import bcrypt
#set app as a Flask instance
app = Flask(__name__)
#encryption relies on secret keys so they could be run
app.secret_key = "testing"
#connoct to your Mongo DB database
# client = pymongo.MongoClient("mongodb+srv:... | [
"noreply@github.com"
] | lanru2001.noreply@github.com |
bf4a47174593f4b7bd04435e3ac6c004011aa50c | e0a0385f142ca60cc931395736fcf1674163a79a | /Validation/Validate_MNIST.py | 9c1ec82caea8bd9e32dbcc2bb84987e184ea7ffd | [] | no_license | Erwin-rella/DeepDetector | 6e5d7055d6056f9bfb1b5a6479ba4454012421d8 | 3f427037b1a78c99231e776a3b6c8758101ede48 | refs/heads/master | 2023-03-16T06:27:04.057765 | 2018-06-03T16:12:28 | 2018-06-03T16:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,039 | py |
# coding: utf-8
# In[1]:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import keras
from keras import backend
import tensorflow as tf
from tensorflow.python.platform import flags
from cleverha... | [
"noreply@github.com"
] | Erwin-rella.noreply@github.com |
406cb7135c83701c74464890857e900fa021691b | 3a60de7ac2ae35a7de6df41870da9157383c75b2 | /Webapp_v_2_4/index.py | 652c78a5943691f8df233b20d7454cab7e4febbe | [] | no_license | UniteIdeas/linksSDGs-Tagger | 454be9b4b2fe364b04e3995a41865a7c9a1c48e4 | c6bb1de8362195f75238cc7864e6272c236e9314 | refs/heads/master | 2016-08-12T10:39:05.721352 | 2016-02-29T22:10:01 | 2016-02-29T22:10:01 | 52,827,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | # -*- coding: utf-8 -*-
#### Version includes network viz and links to text and pdf originals
from flask import Flask
from flask import render_template
from flask import request
import os
import json
#import time
#import urllib2
import solr
#### Configuring this app and its associated servers
search_host = 'http://loc... | [
"uniteideas@un.org"
] | uniteideas@un.org |
ea903c783288555a020424311efe615d58374292 | b21d95e53d6ace067f6b8118c3e09113978b16ac | /lib/passlib/registry.py | 8f42a8521fd167c559c897f08567298071e329c6 | [] | no_license | makahmad/Joobali | e7293027ab19ffda530419b05952425325b1882e | 6e4e5f5dbec2ecfb4dc2cb677635309e5820affe | refs/heads/master | 2023-01-28T23:04:42.886376 | 2020-12-07T17:32:00 | 2020-12-07T17:32:00 | 58,698,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,298 | py | """passlib.registry - registry for password hash handlers"""
#=============================================================================
# imports
#=============================================================================
# core
import re
import logging; log = logging.getLogger(__name__)
from warnings import war... | [
"rongjian.lan@gmail.com"
] | rongjian.lan@gmail.com |
fe67feca053463568fa8d800a270e350be30e94d | 0042c37405a7865c50b7bfa19ca531ec36070318 | /new_selenium/tech_singelmodel/singel_config.py | f8378ef130aefcd4a7dfb737f7add632fdc2dde0 | [] | no_license | lu-judong/untitled1 | b7d6e1ad86168673283917976ef0f5c2ad97d9e0 | aa158e7541bae96332633079d67b5ab19ea29e71 | refs/heads/master | 2022-05-23T18:55:45.272216 | 2020-04-28T09:55:38 | 2020-04-28T09:55:38 | 257,822,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # contents = ['运营数据统计分析系统','单一模型指标分析']
contents = ['RAMS运营数据分析','单一模型指标分析'] | [
"ljd_python@163.com"
] | ljd_python@163.com |
ef20bd88e4759476dcc75c3f6b7922cfabf9032f | 1e7ce1c56f3030aa6df1e928bab559f50c59bad5 | /helper/bot_manager.py | e3e802244de0a4ed2bbaeaf01f2ee440f75652ae | [] | no_license | AIRob/WxRobot | f7fe37331c399a9d7fb467c7e913f10cc981f8eb | b27a48edb44694d4faa349d68d9b753fe4063276 | refs/heads/master | 2020-06-05T04:53:11.310909 | 2019-05-17T06:46:30 | 2019-05-17T06:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,571 | py | import json
import base64
from threading import Thread
from multiprocessing import Process
import time
from wxpy import *
from databases import models
from . import plugs_manager
import re
import requests
from multiprocessing import Pipe
import os
import threading
from helper.channels_manager import cm
from .plugs_m... | [
"1194681498@qq.com"
] | 1194681498@qq.com |
c0fc7599a4f5f31cd68b27f1dde95262902cb7a4 | d2dee1e5b7b159bdbb41530c1652077f66f67e00 | /manage.py | 924142eda8915f20f0153558d41286928ab87fb4 | [] | no_license | Synkied/shcloud_exercise | ca0f11cd53879c8fcca7c4b2375f29e2084abaf7 | 66e3173ae0fca1fc585391f695539278eb70c3c3 | refs/heads/master | 2023-04-25T02:35:55.625780 | 2021-04-26T20:03:09 | 2021-04-26T20:03:09 | 361,878,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shcloud.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"synkx@hotmail.fr"
] | synkx@hotmail.fr |
4f48a8ed86212b4798e38875b2970b4d6d92420d | 7e9b15d1793aaee5873d0047ed7dd0f47f01d905 | /series_tiempo_ar_api/apps/analytics/elasticsearch/constants.py | 0626fc0e4cfa298137da7d090e046ca718473e69 | [
"MIT"
] | permissive | SantiagoPalay/series-tiempo-ar-api | 9822b7eac5714c1ed07ee11664b3608f1fc3e9cf | c0c665fe4caf8ce43a5eb12962ee36a3dd6c2aa4 | refs/heads/master | 2020-04-24T19:41:02.857554 | 2019-02-21T14:43:23 | 2019-02-21T14:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from series_tiempo_ar_api.libs.indexing.constants import \
VALUE, CHANGE, PCT_CHANGE, CHANGE_YEAR_AGO, PCT_CHANGE_YEAR_AGO
SERIES_QUERY_INDEX_NAME = 'query'
REP_MODES = [
VALUE,
CHANGE,
PCT_CHANGE,
CHANGE_YEAR_AGO,
PCT_CHANGE_YEAR_AGO,
]
AGG_DEFAULT = 'avg'
AGG_SUM = 'sum'
AGG_END_OF_PERIOD... | [
"19612265+lucaslavandeira@users.noreply.github.com"
] | 19612265+lucaslavandeira@users.noreply.github.com |
d3dc0e7def2e33d7435887fb84898395ae5bf901 | f7d2e661d35267e64fa2790931958f59db503e0c | /hashtables/ex2/hashtable.py | 373172d760a3d979c81f8bf537a0d35b26dd8349 | [] | no_license | PercivalN/Sprint-Challenge--Hash | aa0b6abae7ffbe9c48a49e802a7356e25c44709e | e6f59089621e623586e202760ba0afd83e129148 | refs/heads/master | 2022-06-11T10:37:22.518070 | 2020-05-08T21:29:14 | 2020-05-08T21:29:14 | 262,352,102 | 0 | 0 | null | 2020-05-08T14:57:51 | 2020-05-08T14:57:51 | null | UTF-8 | Python | false | false | 6,910 | py | class HashTableEntry:
"""
Hash Table entry, as a linked list node.
"""
def __init__(self, key, value):
self.key = key
self.value = value
self.next = None
class HashTable:
"""
A hash table that with `capacity` buckets
that accepts string keys
Implement t... | [
"percival.ngan@gmail.com"
] | percival.ngan@gmail.com |
7869596e6a636baa7c30ae9a60439ea1836e1a19 | 32ecc35fa7ceb01965e7f94c34a386a847cb4b93 | /cnn.py | fc1418136a0eea31ce4014f37d4457d37e9a87dc | [] | no_license | wenshiqi0/mxnet | f0a8c58d76992d8918bedb5f7e8cef0dd8e78c78 | 44464d199c2a1bfd926d6e59fe87b4ca2918467f | refs/heads/master | 2021-09-09T15:15:08.403455 | 2018-03-17T11:01:07 | 2018-03-17T11:01:07 | 124,996,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,315 | py | from __future__ import print_function
import mxnet as mx
import numpy as np
from mxnet import nd, autograd, gluon
ctx = mx.gpu()
mx.random.seed(1)
batch_size = 64
num_inputs = 784
num_outputs = 10
def transform(data, label):
return nd.transpose(data.astype(np.float32), (2, 0, 1)) / 255, label.astype(np.float32)
... | [
"shiqi.wsq@alipay.com"
] | shiqi.wsq@alipay.com |
943610c3817b120f676b87e3cbd7e064f2385257 | e5bf65908b04192d4ea540f8bf49f887d06c1195 | /Python_BootCamp_CE/ForLoop.py | 59dfba69479b57cd052bbd80dda1c6d59669a6c8 | [] | no_license | druplall/Python_BootCamp_CE | 06ac2b2721fbd21446b82d315f2e0c0438119d53 | 56fa82567ba364302ed350c15e30e5652e8deab2 | refs/heads/master | 2022-02-21T12:09:55.987315 | 2019-08-28T17:55:42 | 2019-08-28T17:55:42 | 197,800,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # For Loop
mylist = [1,2,3,4,5,6,7,8,9,10]
for i in mylist:
if (i % 2 == 0):
print(i)
x = 0
while x < 5:
print(f'The Current value of x is {x}')
x = x+1
else:
print('X is not less than 5')
# What is the 'continue' statement ?
# Goes to the top of the closest enclosing loop
mystring = 'Deoda... | [
"RUPLALLD@coned.com"
] | RUPLALLD@coned.com |
11b96266483b3e7939e1aeb6c29df9ca08fa6764 | f89fa59bcf723a66f06bff8ef75e802332c1ac07 | /tests.py | 93782563a13e8c2ec45310e4fc61a3b9ddb0d144 | [] | no_license | mccutchen/chirp | cbf1fd4fb79d83ecceafcf28a90fc67f53f25c82 | 0754feaeb8e04a08cd412c17a4ce55dbd76389bd | refs/heads/master | 2020-05-05T04:09:20.506439 | 2011-03-04T18:29:09 | 2011-03-04T18:29:09 | 1,440,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | import logging
import os
import sys
import unittest
import chirp
class ChirpTests(unittest.TestCase):
def setUp(self):
self.api = chirp.TwitterAPI()
def test_attr_access(self):
new_api = self.api.a.b.c.d.e.f
self.assertEqual(len(new_api.paths), 6)
def test_call_access(self):
... | [
"mccutchen@gmail.com"
] | mccutchen@gmail.com |
e914fd2dad05b2f9beae9516cd3e87c48c168c6f | 2eb8659df54a83f3c0f7ade1ca12fa23d289cdf2 | /musixmatch/test.py | c890a48e172cadb48dcca2d3a807e2ae24a89207 | [] | no_license | zmbush/mp-complete | 910c67c8e1ca83c549fb88a9b52e65ff8feba8bd | a590a03aa3afbd80d960e54581f6fd704d31d232 | refs/heads/master | 2023-05-10T21:52:30.568201 | 2012-08-27T18:06:54 | 2012-08-27T18:06:54 | 3,475,577 | 0 | 0 | null | 2023-05-01T20:13:49 | 2012-02-18T02:03:42 | JavaScript | UTF-8 | Python | false | false | 3,238 | py | #!/usr/bin/env python
"""
test.py
by Amelie Anglade and Thierry Bertin-Mahieux
amelie.anglade@gmail.com & tb2332@columbia.edu
Testing code for the pyMusixMatch wrapper.
Can serve as a demo.
(c) 2011, A. Anglade and T. Bertin-Mahieux
This program is free software: you can redistribute it and/or modify
it und... | [
"crabb.andre@gmail.com"
] | crabb.andre@gmail.com |
cf3f7d4b603af16a1a425ff974ad35b791f632d2 | dadf439ca3d004fe2794aff7be637b0864b670a4 | /app.py | 37fcf91437ae864db2e138f9f7e80b8eee6dd97b | [] | no_license | GlobalMediaBridge/cosmetic-server | 47803a5367544cb26c6edaff0535b98d8df52a66 | 8b46ad4d90a064aacd603539ab131858b377d566 | refs/heads/master | 2022-06-29T02:56:12.175285 | 2020-05-13T08:09:57 | 2020-05-13T08:09:57 | 237,736,639 | 0 | 2 | null | 2020-03-10T04:13:52 | 2020-02-02T07:45:06 | Python | UTF-8 | Python | false | false | 48 | py | from flaskr import app
app.run(host='0.0.0.0')
| [
"dmsdn960@gmail.com"
] | dmsdn960@gmail.com |
bc5454dd5411448ab82a301cfd2fe7ed486cdfaa | 135773b18ab8e957ac61466a4eeb6f974ad795e7 | /venv/Scripts/futurize-script.py | 4d617d215f65e092ce3072c1be334b6217910269 | [] | no_license | ihinojos/Sheets | fd81f57bb4c713016f37e850baf09b24c8b6da1d | 549b76b5b61bfaddd45934abe6d1b1f77b12aa4e | refs/heads/master | 2022-07-20T05:43:12.999853 | 2020-05-21T18:48:45 | 2020-05-21T18:48:45 | 259,423,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!c:\users\dev3\pycharmprojects\sheets\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"antdraws13@gmail.com"
] | antdraws13@gmail.com |
c40982d331906201733f34caceac7c488ca33a41 | a5486f0330a55340cf94c919019434ea0112c0f7 | /viewer/app/__init__.py | 3af0746464e3e75a22223a7c1958c4f77e2981e8 | [] | no_license | CPJKU/audio-tagger | a0194e8faa57ea16a298f35428c614a097d29671 | 08c12af04d887f6a671e7019f83274b360489722 | refs/heads/master | 2020-05-20T03:09:37.010832 | 2019-09-04T06:14:51 | 2019-09-04T06:14:51 | 185,350,579 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | """This package contains the functional component
of the kivy app which covers event functions, initializations
and periodic updates of visualization and view via
clocking mechanism.
""" | [
"alex@jku.at"
] | alex@jku.at |
9eceb655ca509682b537f2575d2cb58e16c98206 | 9991754529fdb40390c0fe3220c7c9093ec516b4 | /rigging/setupOcc/setupOcc.py | 049ce5ac91c5cebd67a556aac8b36401e72f8751 | [] | no_license | skarone/PipeL | daa2e4b5fa8a0760f5959d3cd4b420345efe62cf | 53ddcaffd66ebe16a91c40ff5cab0ae2ba58b04e | refs/heads/master | 2020-05-22T11:55:15.281250 | 2016-03-21T16:51:22 | 2016-03-21T16:51:22 | 8,676,637 | 13 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import os
import general.ui.pySideHelper as uiH
reload( uiH )
from Qt import QtGui,QtCore
#load UI FILE
PYFILEDIR = os.path.dirname( os.path.abspath( __file__ ) )
uifile = PYFILEDIR + '/setupOcc.ui'
fom, base = uiH.loadUiType( uifile )
import general.mayaNode.mayaNode as mn
import maya.cmds as mc
class SetupOccU... | [
"iurruty@ARTE-03.bittanimation.com"
] | iurruty@ARTE-03.bittanimation.com |
48d70c3eed035084cc535a73b7e1c60aaf418000 | c36ffaf0b4004a0b6722095433b04cc07cac802c | /U4/src/A2.py | 9ba1644cb050540a23eb2cbfb56a31c9e00bf89b | [] | no_license | maqnius/oops17 | f6fac2270c99e99f4a69c6063d0b6dca5c738447 | 2b9e9dec7e54ce3f382148c73c6bed91311fcb3f | refs/heads/master | 2021-01-20T02:46:39.612547 | 2017-07-11T15:35:46 | 2017-07-11T15:35:46 | 89,450,560 | 0 | 0 | null | 2017-06-29T11:07:31 | 2017-04-26T07:19:42 | TeX | UTF-8 | Python | false | false | 1,490 | py | """
Aufgabe 2
Hessmann, Niehues, Pedersen
Demonstrates the Towers of Hanoi using a recursive algorithm.
Similar to solution:
http://www.python-kurs.eu/tuerme_von_hanoi.php
"""
def hanoi(n, source, helper, target, rekursionstiefe = 0):
if n > 0:
# move tower of size n - 1 to helper:
hanoi(n - 1, s... | [
"niehues.mark@gmail.com"
] | niehues.mark@gmail.com |
be96602ccb3fb8939c250900b97e89fa6f24ed7f | 8771a872ca186b33086de185501e04d8937f5630 | /LSTM_MDN_HAND_S1.py | 6ad76eb2ec373fc6aec5b98be31ad43caf753846 | [] | no_license | johnlarkin1/handwriting-synthesis-e90 | 39a73a8c87fdcf7e63215fb92f0edf314df53e60 | 1e96c7e2a523b871120280fef1a5685107743b95 | refs/heads/master | 2021-01-11T17:54:34.560564 | 2017-05-13T13:00:46 | 2017-05-13T13:00:46 | 79,867,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,708 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from collections import namedtuple
import sys
import os
from MDNClass import MDN
from DataLoader import DataLoader
from g... | [
"john@johnjlarkin.com"
] | john@johnjlarkin.com |
a665bef85088b02f9afefbab6d33cec9c86181e8 | b7cfdeb15b109220017a66ed6094ce890c234b74 | /AI/deep_learning_from_scratch/numpy_prac/multidimensional_array.py | f4bcc03331c3e16239389b8444d40b2f660af3db | [] | no_license | voidsatisfaction/TIL | 5bcde7eadc913bdf6f5432a30dc9c486f986f837 | 43f0df9f8e9dcb440dbf79da5706b34356498e01 | refs/heads/master | 2023-09-01T09:32:04.986276 | 2023-08-18T11:04:08 | 2023-08-18T11:04:08 | 80,825,105 | 24 | 2 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import numpy as np
B = np.array([[1, 2], [3, 4], [5, 6]])
B
np.ndim(B) # 2
B.shape # (3,2) 3x2 행렬
A = np.array([[1,2,3], [4,5,6]])
B = np.array([[1,2], [3,4], [5,6]])
np.dot(A, B)
| [
"lourie@naver.com"
] | lourie@naver.com |
6b52ad8453b36735d8731816f36404c955c16449 | 0a06d43477d8080493b28b98e5a2df56cff6ae1f | /lesson_1/test.py | 3db28e509163dfe048aad274380169fc59845a43 | [] | no_license | mpaolini/python-course-IAL-TSID | 51623476f7dd7cd249adc0956df2c71fa966629b | 071468c5fc7754385aef16e97b12ef273536b433 | refs/heads/master | 2016-09-05T09:45:57.629103 | 2015-06-04T12:34:59 | 2015-06-04T12:34:59 | 31,312,626 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def ciao():
print('Hello!!!!')
ciao()
| [
"marco@credra.com"
] | marco@credra.com |
1e89afd9a83db8cd06e1c65eddbaa5eba67c16bd | 082bb9ec05031022a7779afc3a819c857b3e582a | /routes/reply.py | e7be4d61f75502db2e292ec88d203e86d88d35ea | [] | no_license | yuanzhw/forum-server | 43e0357aeaa7796ebb669d854cc87e04e02a0072 | 863da7590da66f422258d3b03baa7927b3dc8409 | refs/heads/master | 2020-04-16T23:36:27.688666 | 2020-01-29T15:59:40 | 2020-01-29T15:59:40 | 166,018,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | from flask import (
request,
redirect,
url_for,
Blueprint,
)
from utils import response
import status
from models.reply import Reply
from routes.helper import current_user, login_required, csrf_required, new_csrf_token
main = Blueprint('reply', __name__)
@main.route('/new', methods=['POST'])
@login_r... | [
"yuanzhw@vip.qq.com"
] | yuanzhw@vip.qq.com |
dcf74ea766343e742bb5de34be500e993c65f899 | 9233cb6e005a45b54096ab784b1b42af5de6b7b5 | /Simulator.py | 2ac333f3d0938080eb360795a92adff4407189b1 | [] | no_license | josvinjohn/Linear-Regression-Simulator | 8bdcb297501443371a272c4abbf5ec23e5a6d5d8 | 3ef1d5a7140584df66d80f95098a80ffdbe12265 | refs/heads/master | 2022-12-01T23:14:22.040065 | 2020-08-14T19:18:36 | 2020-08-14T19:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.animation as animation
dataset = pd.read_csv('dataset.txt',sep='\t',header=None)
dataset.columns = ["X","y"]
print(dataset.iloc[:, 0].values)
print(dataset.iloc[:,1].values)
x = dataset.iloc[:, 0].values
y = dataset.iloc... | [
"noreply@github.com"
] | josvinjohn.noreply@github.com |
544ca010b5e55048830c590e8cc544464701b734 | 72d18e69d2885136fabc91bb754373cbbcb299f6 | /Functions_Intro/fizzbuzz.py | 616122561289aa97e040c6dfce131d9c2f9c6650 | [] | no_license | adam-xiao/PythonMasterclass | eaf2528c6e2546f6ff3cab83589c2a8ac9bcc36d | 63e6420fc2bd7ee511baae6ecb39faeadc228abe | refs/heads/master | 2023-01-04T13:55:40.138174 | 2020-11-01T07:10:59 | 2020-11-01T07:10:59 | 292,721,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | def fizz_buzz(n: int) -> str:
"""
Returns a different string depending on the divisiblity of `n`
3: fizz
5: buzz
3 & 5: fizz buzz
:param n: A positive integer `n`
:return: A string
"""
if (n % 3 == 0) and (n % 5 == 0):
return "fizz buzz"
elif n % 5 == 0:
return "b... | [
"42500628+adam-xiao@users.noreply.github.com"
] | 42500628+adam-xiao@users.noreply.github.com |
99ad59c775b63230f25d7993be8b872c6b228962 | 101597749f454c69c1e58c9b162e70e4aece48a4 | /migrations/versions/b80821e6bdb4_.py | 5ebff4530ebfa76ed008789f5983eec3a13eac5a | [] | no_license | williamle92/DivvyChallenge | 86faf99c6227816291cebffc6efb891ec4773d6a | 3e71dfe36566a6e9f48565c3cb1fab9d36247907 | refs/heads/main | 2023-07-13T12:41:01.042602 | 2021-08-20T10:30:08 | 2021-08-20T10:30:08 | 377,760,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | """empty message
Revision ID: b80821e6bdb4
Revises:
Create Date: 2021-06-16 20:29:08.531109
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b80821e6bdb4'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"william1992le@gmail.com"
] | william1992le@gmail.com |
ae91760c4985aeba9d571a6564528f4b4efec575 | f474177a0a233e24ef0f1e2e703c0bd8cbc5275c | /produce_html.py | d35e062b1699c415a7357c9886b9caff74b97f73 | [] | no_license | GeekSi/PythonAndroidPresureTest | ad27ea6643fd83fb623a0f5eccb2a250b41917ca | e350b6558e7577c3dccfb5c8be811fa831605af5 | refs/heads/master | 2023-03-23T16:38:46.070071 | 2021-03-15T07:47:43 | 2021-03-15T07:47:43 | 293,988,312 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import create_chars
from utils import utils
from constant import constants
create_chars.createChars()
utils.open("file://" + constants.PATH_CHARS) | [
"siqing@baidu.com"
] | siqing@baidu.com |
d4bb2b3d28352b9927a2b1a2b8a2706afba0981f | fcddb64166f5ba89f5014e1413af6b4f8a8a3ac3 | /qed/navbar.py | 07fc69b87aa5b876bb573003d4bd6060cf2df9d6 | [] | no_license | FBOBecker/qed | e93e831b1f53a381caa3bdc13922132b9af55134 | 6a63a5c45c36d2e4f2b482465306416e51462e65 | refs/heads/master | 2021-01-24T21:49:18.565133 | 2016-07-17T23:22:38 | 2016-07-17T23:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,403 | py | from dominate.tags import a, button, div, form, input_, li, nav, span, ul
from flask import url_for
from flask_login import current_user
from flask_nav.elements import Navbar as Navbar_, NavigationItem, Subgroup, View
from flask_nav.renderers import Renderer
from flask_wtf.csrf import generate_csrf
class Input(Na... | [
"buwen@stud.uni-heidelberg.de"
] | buwen@stud.uni-heidelberg.de |
0481df519f330fc8063968e7d91da735c221868c | 7a38ae563ff3ab0496a7b2df8ff809170a26b88d | /Data_cuation_and_publiction_application/data_curation_correlation/models/correlation_analysis_model.py | 741f7653f35053e1e5022457155a886950b65263 | [] | no_license | walkerzjs/COMP9321_Group_Project_TwoTier_DataAnalysis_Platform | 8e83b109387caa9ba02614e560413357dbf1d43f | 22e0802ebbc44824ca70df9ca25b460ba1900f64 | refs/heads/master | 2022-12-10T07:06:35.978480 | 2019-09-24T11:56:39 | 2019-09-24T11:56:39 | 210,589,702 | 0 | 0 | null | 2022-12-08T02:35:01 | 2019-09-24T11:48:44 | Python | UTF-8 | Python | false | false | 268 | py | class CorrelationAnalytics:
def __init__(self, data_list, cols, pr, p_value, features, year):
self.data_list = data_list
self.cols = cols
self.pr = pr
self.p_value = p_value
self.features = features
self.year = year
| [
"jacobjszha"
] | jacobjszha |
543d885088808f62594479bc296f3be23612b33d | 42fdf741bf64ea2e63d1546bb08356286f994505 | /test_20160921_macroblk_generation/rasp30_vmm_gen7.py | 5a540d9b8d4bc1419081b28fb7ceb4a4349b1771 | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | self.dev_types =['fgota']*2 + ['ota_buf']*1 + ['ota']*1 + ['ota_vmm']*1 + ['cap']*4+ ['nfet']*2 + ['pfet']*2 + ['tgate']*4 + ['nmirror_vmm']*2+['ladder_blk']*1+ ['c4_blk']*1+ ['speech']*1+ ['INFneuron']*1+ ['lpf']*1+['nfet_i2v']*1+['pfet_i2v']*1+['nmirror_w_bias']*1+['fgswc_nmirror_w_bias']*1+['i2v_pfet_gatefgota']*1+... | [
"ubuntu@ubuntu-VirtualBox.(none)"
] | ubuntu@ubuntu-VirtualBox.(none) |
1b42aa6b93abad9f4afde19580c025c5be9f9167 | b792116b8f9b48b53464f55996338dcb451d6af9 | /tests/functional/services/transfer/endpoint_manager/test_endpoint_manager_task_successful_transfers.py | 528a2977c8d5f7dc1f356bd8dd042e1683c3e73c | [
"Apache-2.0"
] | permissive | globus/globus-sdk-python | 7884084dbe889300604d2ef1bb0a9ee351046fc2 | a5d7c02ede2b9cb794444305f3039a0cd82bab3a | refs/heads/main | 2023-09-01T15:15:17.499197 | 2023-08-30T21:47:08 | 2023-08-30T21:47:08 | 53,344,710 | 61 | 44 | Apache-2.0 | 2023-09-12T01:59:30 | 2016-03-07T17:26:28 | Python | UTF-8 | Python | false | false | 376 | py | from globus_sdk._testing import load_response
def test_endpoint_manager_task_successful_transfers(client):
meta = load_response(client.endpoint_manager_task_successful_transfers).metadata
response = client.endpoint_manager_task_successful_transfers(meta["task_id"])
assert response.http_status == 200
... | [
"noreply@github.com"
] | globus.noreply@github.com |
7f01a5a3e8fa25cb87fb0996c7a9b9c9c659ec35 | accf13fe9fe93f7bac349ab787f126ad2f31ceba | /Exercise Files/02_01/begin/readInData-1.py | 208198243c853e5bdda36e9b63e74bb13e3c7df2 | [] | no_license | BB-AMarcelo/python_automation_learning | ef4097d3cae51d4b29d542a6f5dfc313a5ce482d | f83f6daaf2c801b5a6887bc494d6372af1173e19 | refs/heads/master | 2020-09-05T09:46:42.749986 | 2019-11-14T20:31:07 | 2019-11-14T20:31:07 | 220,062,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import csv
#final desired format
# - Charts [["Test Name",<diff from avg>]]
# - spreadsheet [["Test Name",<current run time>]]
timing_data = []
with open('TestTimingData.csv') as csv_file:
file_reader = csv.reader(csv_file)
for row in file_reader:
timing_data.append(row)
column_chart_data =... | [
"tester@MBP11.local"
] | tester@MBP11.local |
1457243d3f4ccfa460915b008bfdd848f9970fe5 | cf7b0ab779e273c3a553fa7e6ca4e98c524ec8f9 | /JKDatabaseSystem/predict.py | d55f3908698c089bdba163affcb10aea25be2673 | [] | no_license | zenmeder/JKDatabaseSystem | 369a40172420eb1f783467b5884e6e94f6fa9a71 | 146a552e549c9a1ef131bb475ecf5e8947696a6c | refs/heads/master | 2020-03-19T09:12:41.774587 | 2018-06-12T03:04:56 | 2018-06-12T03:04:56 | 136,268,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,410 | py | #!/usr/local/bin/ python3
# -*- coding:utf-8 -*-
# __author__ = "zenmeder"
from django.shortcuts import render
from django.http import HttpRequest, JsonResponse
from JKDatabaseSystem.TimeSeriesData import TimeSeriesData
from fbprophet import Prophet
import datetime
import pandas as pd
TEST_DATA = {0: {'2014-03-07 12... | [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
d1151a3774182955baa6a2bb9d92711c09ca72db | dc5876f4f26bca276253985e5aadaaddafe476a7 | /books/models.py | ee6ec46f3b15a20409ff9add61de6ae5b4ee9086 | [] | no_license | SidAhmed01/Library-Management-System-With-Python-Django | 2805b01ad701869ca8a4ced8aa0e0865614f3533 | c0ec4da5dcca2300ee32f68674b7ee410b9be19b | refs/heads/main | 2023-07-07T16:10:19.661261 | 2021-07-31T10:34:52 | 2021-07-31T10:34:52 | 387,015,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from django.db import models
# Create your models here.
class category(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
return self.name
class Book(models.Model):
status_book = [
('availble','availble'),
('rental','rental'),
('sold','sold'),
]... | [
"aitalisidou@gmail.com"
] | aitalisidou@gmail.com |
bf6038797d7302d368104f829deeb64bcbc334af | 5a34aff166990d6bc0a17ce15a123122b28844af | /highestProd3Ele.py | ce59746d6e5980f0f28d06454e6323cac0846837 | [] | no_license | monkeydunkey/interviewCakeProblems | 6ba01f5a54309b4af87c35314441b59734401e75 | a4b17026a812e88ae6888c997a254353de4980c1 | refs/heads/master | 2021-04-26T23:50:45.668819 | 2018-05-28T06:57:22 | 2018-05-28T06:57:22 | 123,868,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import heapq
def highestProd(li):
h1, h2 = [], []
for i, l in enumerate(li):
if l < 0:
if len(h2) < 2:
heapq.heappush(h2, abs(l))
elif h2[0] < abs(l):
heapq.heappop(h2)
heapq.heappush(h2, abs(l))
if len(h1) < 3:
... | [
"bhushan.shashank93@gmail.com"
] | bhushan.shashank93@gmail.com |
05665fcf64d3a5dce47280b02e07942c49888a5f | 065483e0cf041897f155cfe2b0de3e33bd55388a | /cellseg_models_pytorch/decoders/long_skips/merging/sum.py | ff2bc8791ce74453acd644cdca6e59dc330f499e | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | okunator/cellseg_models.pytorch | 234d2a66d2eebda8348487bcd26f4083a09f5dcc | 7f79405012eb934b419bbdba8de23f35e840ca85 | refs/heads/main | 2023-09-04T11:38:58.802570 | 2023-08-29T13:07:38 | 2023-08-29T13:07:38 | 450,787,123 | 43 | 0 | MIT | 2023-03-27T09:23:26 | 2022-01-22T10:39:50 | Python | UTF-8 | Python | false | false | 2,877 | py | from typing import Tuple
import torch
import torch.nn as nn
from cellseg_models_pytorch.modules import Conv, Norm
__all__ = ["SumBlock"]
class SumBlock(nn.ModuleDict):
def __init__(
self,
in_channels: int,
skip_channels: Tuple[int, ...],
convolution: str = "conv",
normal... | [
"noreply@github.com"
] | okunator.noreply@github.com |
f940e17f31240e7c8c9de2238a058a19ddc44b9f | 3e622c2428ef8ccf8b8e16a7f2dfeb5f5d1b4c09 | /meiduo_mall/apps/areas/urls.py | d11b42b1bc351d90748479a576309e3a7ce95cbc | [] | no_license | Frankie379350068/meiduo_project_0417 | 24a0b8ec2972f50bff87ee77ddc91519020a4207 | f4b52ae623ce03fc2b91f1dfeaa75c5245a51742 | refs/heads/master | 2022-10-11T23:27:43.940643 | 2020-06-04T13:39:44 | 2020-06-04T13:39:44 | 266,492,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django.urls import path
from . import views
urlpatterns = [
# 查询省份地址: http://www.meiduo.site:8000/areas/
path('areas/', views.ProvinceAreasView.as_view()),
# 查询父级下属地址: http://www.meiduo.site:8000/areas/(?P<pk>[1-9]\d+)/
path('areas/<int:parentid>/', views.SubsAreasView.as_view()),
] | [
"379350068@qq.com"
] | 379350068@qq.com |
0474fa45198217580e510aa508fb250d4bbf4922 | 9d346f2981c8cf4cfc21abb73e14278faa9b0e12 | /leetcode/leetcode2.py | 95eff1f96f94b26dd6f2fabad86d7a9b64b86ad3 | [] | no_license | wwwzhangshenzecn/code | c13caf013f780642d47b23a3ed67f58cfcb13f95 | acac4ed98a14c4d2f3636c766ba5fda17896a676 | refs/heads/master | 2020-11-29T09:11:49.555287 | 2020-05-20T14:39:24 | 2020-05-20T14:39:24 | 230,077,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,626 | py | # Definition for a binary tree node.
# -*- coding: utf-8 -*-
# @Time : 2018/11/11 14:55
# @Author : zz
# @Project : workspace2
# @FileName: leetcode2.py
# 著作权归作者所有(随便拷)。
'''
.-~~~~~~~~~-._ _.-~~~~~~~~~-.
__.' ~. .~ `.__
.'// ... | [
"2511695680@qq.com"
] | 2511695680@qq.com |
847306585ef3a46f500482752ba79115adf8c449 | 9d454ae0d5dd1d7e96e904ced80ca502019bb659 | /1550_threeConsecutiveOdds.py | 94c3d3a5aabfa1262828a5bafb4860615440bd8a | [] | no_license | zzz686970/leetcode-2018 | dad2c3db3b6360662a90ea709e58d7facec5c797 | 16e4343922041929bc3021e152093425066620bb | refs/heads/master | 2021-08-18T08:11:10.153394 | 2021-07-22T15:58:52 | 2021-07-22T15:58:52 | 135,581,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def threeConsecutiveOdds(arr):
return any([False if i < 2 else arr[i-2] & arr[i-1] & arr[i] & 1 for i in range(len(arr))]) | [
"1564256031@qq.com"
] | 1564256031@qq.com |
ac2b2da7079dfa4652f071d55af373cacb3c74b6 | d09ca00f6618ce6f93f64565cc41e0e524d54e06 | /图像处理/读取图片.py | f7c6224ef328b98d7d15ff64945e482e785f4dea | [] | no_license | hzhhs/repoStudy | a1dab1058b5d6407188b1cbb9e01d95a6341b992 | 8784b824e214afa37e661501b0f68eea896c5970 | refs/heads/main | 2023-02-24T08:56:54.955313 | 2021-01-29T01:01:33 | 2021-01-29T01:01:33 | 333,996,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | from PIL import Image
# pic_Im=Image.open("校园.jpg")
# pic_Im.show()
# 生成新的125*125的黑色图片
# newIm=Image.new('RGB',(125,125))
# newIm.show()
# newIm2=Image.new('RGB',(125,125),"red")
# newIm2=Image.new('RGB',(125,125),(255, 255, 0))
# newIm2.show()
# from PIL import Image
# im = Image.open("校园.jpg")
# print(im.format) ##... | [
"32220021@qq.com"
] | 32220021@qq.com |
09f59f6939f829eb7698d0e10156b86e1d594a15 | 1c829b9f786a544f4cd715072af49b05f2aca545 | /test/candleIterator.py | 364c5af80257d81dbde53eb8e76686c23b70ddc3 | [] | no_license | Colman/Trading | 05f5a32b85ee927151b6a1948e5cac61021c48ac | 71cd5da318d3c56b763605b91a456b3cfaacd479 | refs/heads/master | 2020-12-26T23:50:30.702411 | 2020-02-01T23:56:50 | 2020-02-01T23:56:50 | 237,694,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from .tools import getNested
from trading import Chart
import math
import copy
import time
class CandleIterator:
_section = None
_startIndex = 0
_endIndex = -1
_index = 0
_offsets = None
_factors = None
def __init__(self, section):
self._section = section
self._startIndex = getNested(sect... | [
"noreply@github.com"
] | Colman.noreply@github.com |
5d2d82c183cdb19c50d16e09693e41fbb6537d84 | 29ff276739ccb2af3a2c19f811d8d45a4cbf7ce9 | /ConditionalProcessing2/conditionalProcessing2.py | 66ab96e7926d80cbcbb12d18873735461a730148 | [] | no_license | eruditehassan/fundamentals-of-programming-python-practice | 02fd11ec49b152e8b4d09dcf06e51a90e1b9d65c | e57a5bb631c7cfd73d3d4459b1000c008dfd972e | refs/heads/master | 2022-01-10T06:31:47.793646 | 2019-06-11T18:43:34 | 2019-06-11T18:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | def starHalfTriangle():
"""A program that prints half star triangle"""
no_of_stars = 0
for stars in range(1,13):
no_of_stars+=1
print(no_of_stars * '*')
def customStarFormat():
"""A program that reads a number (between 1 and 30) and print a line containing that number of adjacent asterisks using for loop... | [
"51364060+eruditehassan@users.noreply.github.com"
] | 51364060+eruditehassan@users.noreply.github.com |
3aee28344db5bb9ef5e6a6c277e7f3977ee8a468 | 48bdb4a2981e61b81bd64b9fb8489a6623cfe7f8 | /020_evaluate.py | 0064c2ced3c687f16e1a891111ed919374371f26 | [] | no_license | makama-md/Predict-Lung-Disease | 2a83eaab6d2ed70bf899f41638f75252fe857e01 | 5adb6862f5ffdc7c3bc31d245bd896736e3c35fb | refs/heads/master | 2022-01-06T06:17:41.412768 | 2019-05-16T03:18:50 | 2019-05-16T03:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | import sys, os
import azure_chestxray_utils
import azure_chestxray_keras_utils
from keras.models import load_model
import os
import pickle
import cv2
import numpy as np
import pandas as pd
from keras.models import load_model
from keras.utils import Sequence
from sklearn import metrics
from tensorflow.python.client impo... | [
"yht18801169870@gmail.com"
] | yht18801169870@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.