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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da950af0b280e9ce74f457b4709d05c82cde20ea | 4b21419efc8b289d9bfca98ded362f250898f0c7 | /method/feature.py | 5533c9612d027788c2ddda6cef03373d7f925fbe | [] | no_license | chonlei/3PNN | b9d9384800d46a1f8d1f4b343a075b0463036d6a | 72c960421a307b187368441256fa2068fe1d0c1a | refs/heads/master | 2023-04-17T19:06:40.959289 | 2021-11-24T08:09:20 | 2021-11-24T08:09:20 | 207,018,496 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | #
# This module contains functions to extract useful features of the EFI
# measurements.
#
from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
import numpy as np
def baseline(raw, method=1):
"""
# Get baseline of the EFI measurement.
#
# Input
#... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
da4d189ece1b23994ac8af011b0090758f1b2f8f | 009628e385aca8552dad5c1c5cba018ca6e5954d | /mtk/forcefield.py | 2b0ec0406f8aa4210738d6ee87e40924721dc84a | [] | no_license | csrocha/python-mtk | 565ebcfeb668a6409d48135bf081321d8121b263 | c3ba520f55c2e204feb6b98251abcb046e51c6cd | refs/heads/main | 2023-01-12T02:46:44.457520 | 2020-11-17T20:20:59 | 2020-11-17T20:20:59 | 313,939,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,500 | py | #!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-
# $Id:$
#
# Copyright (C) 2009 Cristian S. Rocha (crocha@dc.uba.ar)
# Licensed to PSF under a Contributor Agreement.
"""
.. module:: forcefield
:platform: Unix, Windows
:synopsis: This module help to resolve values of forcefield of a molecule.
.. moduleautho... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop |
9a3aa6a2bb0a7ea59ad39d7da3292808268f060d | 0f176d776b7d935320cc2d14db7e27fcdbab5bba | /train.py | 229281d2e5cb72c36cd14991e0e524ee6ba04050 | [] | no_license | MadgeLiu/Object_Detection_Research | 23caa1625235d6371334809a1ec6df2028aabe31 | ab75d265914c9dc5f2ec03b6eda175f2cfe890e1 | refs/heads/master | 2022-07-11T08:17:21.832895 | 2020-05-14T08:45:43 | 2020-05-14T08:45:43 | 262,205,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,630 | py | from keras.backend.tensorflow_backend import set_session
from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
from keras.models import Model
from keras.preprocessing import image
from Nets.ssd import SSD300
from Nets.ssd_training import MultiboxLoss,Generator
from Utils.utils... | [
"yrliu0915@outlook.com"
] | yrliu0915@outlook.com |
2873f6aa3f29c323e600e47db22b07a839f134ee | 32433810ef0421e98dcce1c8d6bd2f7a22cc12dc | /mtcnn/detect/cfg.py | e1d4793c6bc968aab26e23400976f999ec4fb894 | [] | no_license | stabling/projects | 927ba90868c49ededc41b540fde307b17302b9f3 | aefebf988a2b9652ab694cf5e9339fa12cdbd7cd | refs/heads/master | 2020-07-11T03:07:25.522426 | 2019-10-22T00:33:57 | 2019-10-22T00:33:57 | 204,432,604 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | """Configs for models training, saving, and loading.
- MODEL_DIR/saved: models saving and loading directory
- MODEL_DIR/model.info: information for models saved
- MODEL_DIR/train.log: model training log
"""
import os
from nets.BaseNet import PNet, RNet, ONet
CFG_DIR = "/home/yzs/myproject/mtcnn/model"
M... | [
"2387886339@qq.com"
] | 2387886339@qq.com |
0826faf2dead78fbad82cf922f0e563a1ba9f578 | 887d31c6b8b67877b3fb303ae4e1749b4dfbe6c6 | /app/models/user.py | d00a2b98004f1307823d87b73bf571ce9e6706a5 | [] | no_license | Cphayim/fisher | ddda4ac48bad734c3ced4ae9f06dea4e7e9924b8 | 48749221f6557689f1f085147952d8c9c09a6062 | refs/heads/master | 2022-12-09T10:00:30.450623 | 2018-07-04T09:35:08 | 2018-07-04T09:35:08 | 138,428,799 | 0 | 0 | null | 2021-03-19T23:25:04 | 2018-06-23T19:41:29 | Python | UTF-8 | Python | false | false | 5,204 | py | # -*- coding: utf-8 -*-
"""
Created by Cphayim at 2018/6/28 20:22
"""
from math import floor
from flask import current_app
from sqlalchemy import Column, Integer, String, Boolean, Float
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from itsdangerous impor... | [
"admin@cphayim.me"
] | admin@cphayim.me |
43a7f0a337c60c13d2a147ca520d7e115258fc32 | 2f876a9ad57d4da8666d6844aff070cc96b0767e | /app/middlewares/auth.py | 54c9c85c0d8d710240d60ed5972c4daa99c37a05 | [] | no_license | BiznetGIO/python-boilerplate | ff0b43b43b0124af29421e897b7d8961a27728b6 | 7b69b59218f83f2d20993f3aad4232a56d26d763 | refs/heads/master | 2023-06-12T01:51:24.865671 | 2021-06-10T12:02:30 | 2021-06-10T12:02:30 | 202,507,356 | 0 | 2 | null | 2023-05-22T22:29:54 | 2019-08-15T08:51:28 | Python | UTF-8 | Python | false | false | 892 | py | from flask import Flask, jsonify, request
from app.helpers.rest import response
from functools import wraps
from netaddr import IPNetwork, IPAddress
import os
def check_ip_range(ip, cidr):
return IPAddress(ip) in IPNetwork(cidr)
def check_admin_mode(ip):
whitelist_ip = os.environ.get("ACL", os.getenv('ACL','1... | [
"iank@localhost.localdomain"
] | iank@localhost.localdomain |
17ce0114f4e50b684b8a9a02446c14559878ce3a | 34a4fa7fb227a373627f056bf2a26aca6b0667be | /HW2_Jupyter.py | f6daa103cc760b00a44b3aa7f1715301384c8518 | [] | no_license | gauravmakin/Berekely_Learning | c4d905c610c20330c121e45e26a8267339ebb294 | 64d1892f77174f235882ae0c0f4b6c9129081928 | refs/heads/master | 2021-07-16T04:43:29.415296 | 2018-06-27T04:50:47 | 2018-06-27T04:50:47 | 135,085,536 | 0 | 3 | null | 2018-06-28T01:29:56 | 2018-05-27T22:16:58 | Python | UTF-8 | Python | false | false | 706 | py |
# coding: utf-8
# In[32]:
import numpy as np
A = (np.random.random(15)).reshape(3,5)
A.shape
# In[33]:
A.size
# In[34]:
len(A)
# In[63]:
A = A[:3,:4]
A.shape
# In[85]:
B = A.T
B.shape
# In[50]:
np.min(B,0)[0]
# In[51]:
B.min()
# In[52]:
B.max()
# In[56]:
X = np.random.random(4)
X
... | [
"makingaurav21@gmail.com"
] | makingaurav21@gmail.com |
1231074882fb43f204b03545fe472a823c8fb21d | 32b9f70578d7ac04e26953ac7194d87acbad594f | /HW1/basicIMserver.py | 6a310165ebf4a91a80b5761166e68750591d7b47 | [] | no_license | Jchaochao/Georgetown-Network-Security | d28d15dc57fe431d8d76ec9430dcff1e4cafe4d0 | cff56f664f4b5f7ef2e55db55f6d0a0f8ecb80ef | refs/heads/master | 2020-07-23T17:50:41.092680 | 2019-12-05T00:21:29 | 2019-12-05T00:21:29 | 207,655,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,655 | py | import sys
import socket
import argparse
import select
import threading
import mybuf_pb2 as mybuf
import struct
import signal
def handler(signum,frame):
print("Bye",flush=True)
s.close()
sys.exit(0)
def read_n_bytes(s,n):
result = b''
while n > 0:
part = s.recv(n)
result += part
n =... | [
"1500012718@pku.edu.cn"
] | 1500012718@pku.edu.cn |
bc38790630e442d849dc03f82ad8ee24613f2542 | 51e2efecb84f7f867c5da1fa086c0221f641b5b2 | /upload_hdfs.py | d8f6eed2d03dacbcb86c551d93fa7a8fbd614843 | [] | no_license | natbusa/art-analytics | 4ffee00c4c4da97a937f6c6be1342eb11aba0462 | c7e6113e27209aef5937e97b16031686c7fc743f | refs/heads/master | 2021-01-01T20:32:27.732947 | 2017-07-31T12:22:36 | 2017-07-31T12:22:36 | 98,885,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import os
import argparse
from hdfs import Config
class HdfsClient:
def __init__(self, profile):
self.client = Config().get_client(profile)
h = HdfsClient('hdfs')
# We can now upload the data
h.client.makedirs('/photos')
# write file
hdfs_path = h.client.upload('/photos/', 'sequencefiles/photos.hsf', overwri... | [
"natalino.busa@gmail.com"
] | natalino.busa@gmail.com |
e2bb020110362bb01e5f65539a79a049c913d067 | 3fa5d1f4f774db4751cbca51d2313a7a41e5985f | /examples/test_scripts/objdetect.py | 7c29e5006735cb802d092845c6db0b91dce5031e | [] | no_license | sudhargk/video-annotator | 60a8e14c75b26b93a9ece019e31eaa3a722c33cb | 22f423a167ca31186610957cb351faedd7968f91 | refs/heads/master | 2021-01-25T04:02:08.224861 | 2015-05-14T13:42:28 | 2015-05-14T13:42:28 | 24,286,103 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
def segment(path):
if path=='0':
path=0;
cap = cv2.VideoCapture(path)
#Background segmentation
while(cap.isOpened()):
_, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
ret, thresh = cv2.threshold(gray,0,255,cv2.THR... | [
"sudharpun90@gmail.com"
] | sudharpun90@gmail.com |
d1e7c1210563b2b5b89671b92edfb1b68f434f68 | ffa16609e29b5676c6f64f406762d9911013b56a | /rest_framework_jwk/management/commands/rotatejwk.py | ffde8d3057eb4c8df9d1d94cc93be38893dbb5d8 | [
"ISC"
] | permissive | Maronato/django-rest-framework-jwk | c4284b3cd36f0a8639850ee80d9820b66b0f6d0b | b2acf9c88fb14695ca20655e5395df7e71abea17 | refs/heads/main | 2023-02-01T23:47:49.668927 | 2020-12-19T06:17:15 | 2020-12-19T06:17:15 | 322,465,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.core.management.base import BaseCommand
from ...models import JWK
class Command(BaseCommand):
help = "Rotates the JWK"
def handle(self, *args, **kwargs):
JWK.rotate_keys()
| [
"gustavomaronato@gmail.com"
] | gustavomaronato@gmail.com |
0cba7929a5d89643551906628f0fc4c6d29275cf | 53f519b8ba9206cca17ec05fbf95d87d7e31bc26 | /downloader/migrations/0001_initial.py | b007ff5d9704f85fb37f6b5efc7ac1ebb66280f5 | [] | no_license | ScorpLanding/scorpdev.tech | 873f476a369a6adb974a06d7ab50a4e1f9a965d1 | 5b73766a60777640b8c7b823ad4f07de5d918877 | refs/heads/master | 2020-03-19T00:04:49.316144 | 2018-05-30T14:06:43 | 2018-05-30T14:06:43 | 135,448,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Generated by Django 2.0.5 on 2018-05-04 18:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lab',
fields=[
('id', models.AutoField(auto... | [
"scorpdev@ScorpDEv.scorpdev.tech"
] | scorpdev@ScorpDEv.scorpdev.tech |
8d089c42021febaa3d617172d971c2f1374d5203 | 3ab618da41c4ad11cbfba8de1ce0961dc0affcaa | /cnavg/flows/flows.py | c569113010cff6ad8d1782147da5f6bb2ba41d08 | [
"BSD-3-Clause"
] | permissive | dzerbino/cn-avg | 35ca23c225b548258ab07de64971cf7800247ae8 | 884e02aa8ba8ca643485d9969999be975a71b1df | refs/heads/master | 2021-01-21T21:48:53.438206 | 2015-09-11T08:09:45 | 2015-09-11T08:09:45 | 6,695,890 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,488 | py | # Copyright (c) 2012, Daniel Zerbino
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistributions of source code must retain the above copyright
# notice, this list of conditions an... | [
"dzerbino@soe.ucsc.edu"
] | dzerbino@soe.ucsc.edu |
ad9f0b10d87bc3d836c519dd27ddc995dccf5524 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/backends/arm/test_sequence_unpad_op.py | 18af987e0cba5d56160817aa3d430ed65a39538d | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 1,801 | py | # Copyright (c) 2021 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
0c4120ba2644375219c471bf2d00221660def04c | 3ed749cbbfa11dd1de66ad2e288b8ffabc6ea9d3 | /blog/models.py | 07f59a79fe5b1563d84d699cd749c8961d8c6444 | [] | no_license | nishantk2106/Blog_app | 2fb10a153101c2adbba40d89469c69387ba0f5b9 | b02af535476af7316ec799c134cf4a52645cd26d | refs/heads/master | 2022-10-24T09:02:13.609799 | 2020-06-09T16:13:13 | 2020-06-09T16:13:13 | 269,359,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Post(models.Model):
Title = models.CharField(max_length=100)
content = models.TextField()
Date_posted = models.DateTimeField(default=timezone.now)
Author = mo... | [
"57160912+nishantk2106@users.noreply.github.com"
] | 57160912+nishantk2106@users.noreply.github.com |
e77475180fca458ba19aca301a7ddf79cdbd66da | edd1d4bea4c52f9213e4ba8221c4657106d4d5a9 | /KeepEvolving/Alix1383/FastAPI.py | e40abe4261e9ae4279e4e12c462974161facef8f | [] | no_license | Evolution-X/Memory | 182bc981364d2cfd2566d990c83f74fd84a1dc1a | 6be32dc8af90cf1ff19a1f595f704a7f1e17d250 | refs/heads/KeepEvolving | 2023-02-06T06:17:50.080280 | 2023-01-28T19:23:18 | 2023-01-30T09:30:10 | 201,666,089 | 34 | 130 | null | 2023-01-30T09:30:11 | 2019-08-10T18:07:12 | Python | UTF-8 | Python | false | false | 159 | py | from fastapi import Body, FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Alix(SenPai) - With love from Kavar Shiraz, IRAN"}
| [
"joey@evolution-x.org"
] | joey@evolution-x.org |
7137c25df3b59f4e849f91941f3c9e9472cd58aa | fd08526c850deb61797e269c449c8d92faa6cbbe | /tests/test_energies.py | 0d23b2e3d0730034341081dfc7f6ff322159aced | [
"MIT"
] | permissive | dgasmith/torchani | 7cd2e937e5447e5086b8b1f87d265b52824635ca | 0f006b3b8dc54025ec12a06074760b6ee69463da | refs/heads/master | 2023-05-31T17:14:40.776201 | 2019-05-02T17:52:19 | 2019-05-02T17:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | import torch
import torchani
import unittest
import os
import pickle
import math
path = os.path.dirname(os.path.realpath(__file__))
N = 97
class TestEnergies(unittest.TestCase):
def setUp(self):
self.tolerance = 5e-5
builtins = torchani.neurochem.Builtins()
self.aev_computer = builtins.... | [
"noreply@github.com"
] | dgasmith.noreply@github.com |
d99881c9a4be2a611904cb620e0a783f09e34830 | ee41360ecd43ea02cca2c6f3ddda143be06b2172 | /master/migrations/0012_auto_20210427_0913.py | e10ff3d7a42aade84deb5426d9159500bc3137c1 | [
"MIT"
] | permissive | HilmiZul/epkl3 | 3cecd0ab0797bb79826434a0b11e068a93906e3a | 9ca95f0a05711b26ea6c06cf79a25fadb4dbba39 | refs/heads/master | 2023-02-18T04:30:59.312146 | 2023-01-23T12:56:49 | 2023-01-23T12:56:49 | 170,302,003 | 6 | 1 | MIT | 2023-02-15T19:09:23 | 2019-02-12T10:52:14 | Python | UTF-8 | Python | false | false | 465 | py | # Generated by Django 2.2.12 on 2021-04-27 09:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('master', '0011_auto_20210414_0756'),
]
operations = [
migrations.AlterField(
model_name='instansi',
name='program_k... | [
"netspytux@gmail.com"
] | netspytux@gmail.com |
f46fc47adc88183dd1802ab935bfed0aa00a8004 | b2ac1a869e8373e4f46a21e876b353791e1f0fbf | /oslo/vmware/vim_util.py | c9b022bec07d98ad9018b32050edf3744c73db2b | [
"Apache-2.0"
] | permissive | citrix-openstack-build/oslo.vmware | 7d7dee8692be5e393e3f6377ce3c3d4a5b08f27c | ceb716f58e4a8bcbf04c057d4b26e990194ac562 | refs/heads/master | 2021-01-22T14:01:51.818419 | 2014-02-28T08:00:41 | 2014-02-28T08:00:41 | 17,361,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,931 | py | # Copyright (c) 2014 VMware, Inc.
# 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... | [
"dims@linux.vnet.ibm.com"
] | dims@linux.vnet.ibm.com |
714c583d331a1368cf06462f88cee139fd43842a | 6eda79ad85a0c426fcf63babc862ccc37764cca6 | /mysite/settings.py | 6b525aee1e9947df586362f06b52e84562a0af50 | [] | no_license | nschlottman/music_composition_app | 0cdd7a79e1848c766045c64a7e5560fcaf0799f5 | 1cbd125d636777ed64010aa85e76e068494538dc | refs/heads/master | 2020-12-26T03:34:45.638658 | 2014-04-26T17:56:06 | 2014-04-26T17:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,028 | py | # Django settings for mysite project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | [
"tesmurphy@gmail.com"
] | tesmurphy@gmail.com |
6f2e886bf73e958db213d6b30a4dce071b27146a | 677fa07afada7bbb4018fb2d2c44cb9b8a1c34c3 | /climlab/radiation/rrtm/_rrtmg_lw/setup.py | 71f2274ff131f01e7125a71d6e17ee3d2e15934c | [
"MIT"
] | permissive | setiabudidaya/climlab | c3f560555eaf90f94ed64731700d528122d94722 | 547b510c6adf61e7a049bc3d0264f191704fcbee | refs/heads/master | 2021-05-11T18:24:00.473620 | 2018-01-03T03:44:31 | 2018-01-03T03:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | from __future__ import print_function
from os.path import join, abspath
def configuration(parent_package='', top_path=None):
global config
from numpy.distutils.misc_util import Configuration
from numpy.distutils.fcompiler import get_default_fcompiler, CompilerNotFound
build = True
try:
# ... | [
"brose@albany.edu"
] | brose@albany.edu |
0e35068c6491d74cf0f97d337df17e360007de3d | 2e2be2be0da51520a68362e8a83b2a1e19149371 | /Cryptopals/adityasohoni_jossonthoppil/challenge4 set1.py | 54b3061b25738df19dbbdd8e0e3e674e1d37f19d | [] | no_license | IEEE-NITK/SummerProjects19 | b28f3429891d4f2788c0317bc635b4fc29399aca | 214d8a3ffa99f39b406cca9692a4d62697598dd2 | refs/heads/master | 2020-05-19T00:17:37.408738 | 2019-08-13T16:45:37 | 2019-08-13T16:45:37 | 184,730,477 | 2 | 41 | null | 2019-08-13T16:45:39 | 2019-05-03T09:30:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,776 | py | f = open("file.txt", "r")
min_score=1000000
for l in range(1,328):
x=f.readline()
character_frequencies = {
'a': .08167, 'b': .01492, 'c': .02782, 'd': .04253,
'e': .12702, 'f': .02228, 'g': .02015, 'h': .06094,
'i': .06094, 'j': .00153, 'k': .00772, 'l': .04025,
... | [
"noreply@github.com"
] | IEEE-NITK.noreply@github.com |
cb05b71f7e6854d158e59a28ca3e1873d3845c92 | 8a009700c6d7c9482eb3552981d103dfcf9b1dc5 | /servicesWindow.py | bb1cf26f4aa378d7ea5a8aecb46ea54cde3951bf | [] | no_license | dariasultanova/DBOracle-coursework | 0e5c3cdb687908f75e9607a45363fbf626b329b2 | fbbcf7ed1dd44c4c59fba2b2119314040455bd71 | refs/heads/master | 2023-02-03T19:37:50.592245 | 2020-12-20T01:29:22 | 2020-12-20T01:29:22 | 266,420,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,952 | py | import PyQt5
from PyQt5.QtWidgets import QWidget, QPushButton, QLabel, QComboBox, QLineEdit, QTableWidget, QTableWidgetItem, \
QMessageBox, QCheckBox
from PyQt5.QtGui import *
class servicesWindow(QWidget):
def __init__(self, con):
super().__init__()
self.con = con
self.setGeometry(270... | [
"dariasultanova@MacBook-Air-Daria.local"
] | dariasultanova@MacBook-Air-Daria.local |
de068cda2651daef20744dbc88e4cd243fec90cb | 90b040104ecb2d6c288d213bb40a65e67ab977fe | /ClassificationMultiGpu.py | 476b3d2d5576984f35c736ec3a49aef92df3d438 | [] | no_license | JeanHoroma/ForesterieJacques | ce672161c926262ed561a0299d16c6a7a680b4bb | 9253113b138219b1148b1f3ed256f68994f82174 | refs/heads/master | 2021-05-24T09:21:31.491960 | 2020-04-17T15:34:53 | 2020-04-17T15:34:53 | 253,493,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,318 | py | import os
#os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID";
#os.environ["CUDA_VISIBLE_DEVICES"] = "0"; # select GPU : 1
import numpy as np
import time
from datetime import datetime
import resource
from keras.utils import multi_gpu_model
import tensorflow as tf
from PIL import Image, ImageOps
from keras.optimizers impo... | [
"noreply@github.com"
] | JeanHoroma.noreply@github.com |
9480ce0028cec89235410bf740f7d4052da279be | 798e8404ed166f494cca9f595adf1b0b9894f528 | /shoppinglyX/app/models.py | 7f405847b28e050c125f91a65784ca10d4cacf82 | [] | no_license | Kartik-sonawane/E-commerce-website-in-Django | 674f96055b1b975746d7e08eff4cd933810d5fb4 | 7187a8fac7456bbde4425a520522fb08407e0995 | refs/heads/master | 2023-05-31T22:56:10.312326 | 2021-06-24T06:47:06 | 2021-06-24T06:47:06 | 379,825,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.validators import MaxValueValidator, MinValueValidator
STATE_CHOICES =(
('Andhra Pradesh', 'Andhra Pradesh'),
('Arunachal Pradesh', 'Arunachal Pradesh'),
('Assam', 'Assam'),
('Bihar', 'Bihar'),
('Chhattisgarh'... | [
"kartiksonawane112@gmail.com"
] | kartiksonawane112@gmail.com |
dfd296bf82b66bc62a3951b62aee39a7ab86680b | 83a21f73c7dde468a12f68447ee836e9fef22c6a | /src/astrochem_embedding/models/models.py | 91e9794b4a338228015225d7298ad38903740eae | [
"MIT"
] | permissive | laserkelvin/astrochem_embedding | ed6aa211b478d742f1972e6d8ede6d8791e77c63 | d450d0cc0e722228998dd350e410cfadd18a8d88 | refs/heads/main | 2023-05-02T22:23:43.971526 | 2023-01-23T06:02:59 | 2023-01-23T06:02:59 | 428,858,963 | 1 | 2 | MIT | 2023-04-20T13:59:49 | 2021-11-17T00:36:32 | Python | UTF-8 | Python | false | false | 6,397 | py | """
models.py
This module is intended for *composed* models; i.e.
ready to training/usage, based off of layers defined in
either `torch`, other packages, or in `astrochem_embedding.layers`.
"""
from typing import Union, Iterable
from pathlib import Path
import torch
import joblib
from torch import Tensor # this is ... | [
"kin.long.kelvin.lee@gmail.com"
] | kin.long.kelvin.lee@gmail.com |
74a7759f32105ae40f22aef72fef8c6759acc746 | df42b0d05038a2940606591d548637bc51d6573d | /aid1907/leetcode_test/time.py | 40421448239bb1608d3fb2d93b1f0e9aaebaad87 | [] | no_license | ThreePointFive/aid1907_0814 | 440113f5ae2df28e53a088bd3ea420d5558214b4 | 99eea9aafdf8211278425c33aba2e64d5eb2500b | refs/heads/master | 2022-12-03T19:31:21.085608 | 2019-11-09T06:25:33 | 2019-11-09T06:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py |
import itertools
class Solution:
def findSubstring(self, s: str, words: list):
list2=[]
tmp_list = itertools.permutations(s)
for i in tmp_list:
str2=''.join(i)
len1=len(str2)
len2=len(words)
for i in range(len2-len1):
if words[... | [
"760373741@qq.com"
] | 760373741@qq.com |
5a7ad0af26e2dd86704dab2a1ca97e5dd6f518d7 | abac9893a1eb496ba25f7d9fb8f04b0e58adec68 | /archesproject/db/Deployment Scripts/DatabaseCleanup.py | f00477be808f3a0b4e76e012057acc752e3a3c7a | [] | no_license | govtmirror/arches_core | 6341f174a2dec63a75432d8cac72ef5000356ce6 | a36c67e5d2d363958fbcc978ea7541e49735f897 | refs/heads/master | 2021-01-13T03:04:55.537395 | 2014-09-18T13:53:17 | 2014-09-18T13:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import os
import inspect
from django.template import Template
from django.conf import settings
from django.template import Context
from archesproject.build.management.commands import utils
context = Context(settings.DATABASES['default'])
context['POSTGIS_TEMPLATE'] = settings.POSTGIS_TEMPLATE
t = Template(
"SELECT p... | [
"nathanhilbert@gmail.com"
] | nathanhilbert@gmail.com |
f91fd67e34f24c78ca8b8618b4c32d2095714772 | ff0175f14cf4faed35439fb9c0134ab490d2af9b | /decorators.py | dc794e15902abb60a5ccda24418bcd20518d91a8 | [] | no_license | baitcode/kickstarter-parser | c812cc1499b72999fca41a9c46be97895c67f44c | d872c17d865854c1ede5960e576da2157ab83146 | refs/heads/master | 2016-09-06T04:54:36.241623 | 2012-01-09T17:52:29 | 2012-01-09T17:52:29 | 3,135,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import json
from time import sleep
import os
from settings import *
def polite_caller(func):
''' Due to banning policies we must restrict downloading more then one page per POLITENESS period
'''
polite_caller.last_called = datetime.datetime.now()
def polite_wrapper(*args, **kwargs):
polite_int... | [
"batiyiv@gmail.com"
] | batiyiv@gmail.com |
135d180b93dcd1db44f1bff51190199da6ae1db1 | e1625a1d39821d993a93a025825f4942f472dacd | /dailyfresh/celery_tasks/tasks.py | 766fd76ec5424f8fb3ea3b7bce0168a557d08954 | [] | no_license | ndsgba3ds/vscode | a3c5b17089666d82fb879787e422451174fffae1 | 474d84f8576b46ad79a8de15d58a2d93b42e359b | refs/heads/master | 2022-12-13T14:16:13.740039 | 2020-05-01T10:21:06 | 2020-05-01T10:21:06 | 81,184,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | from celery import Celery
from django.core.mail import send_mail
from django.conf import settings
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dailyfresh.settings")
django.setup()
app = Celery('celery_tasks.tasks',
broker='redis://:cui123@39.107.116.79:6379/1')
# celery -A cel... | [
"ndsgbaqq@126.com"
] | ndsgbaqq@126.com |
e4069be6f2fdced2c6130af9dc1f3f30055983bd | 69bda3188860ac18390440ab3730b02006e3aa5f | /oop/chain_of_responsibility.py | 2269f232b3253eb919b8dd2365140f892126f0d5 | [] | no_license | arsentim45/python_practice | 36a25c8ea049eab683080637dddaa1b4e81e3f24 | 3a8c94f981606c8d5315e497b6b260a791d9c72a | refs/heads/master | 2020-08-05T13:08:20.646273 | 2019-10-03T10:59:26 | 2019-10-03T10:59:26 | 212,557,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py | class User:
def __init__(self):
self.username = None
self.mail = None
self.password = None
self.card = None
self.isAdmin = False
def register(self, username, mail, password):
self.username = username
self.mail = mail
self.password = password
... | [
"arsen.tymchyshyn@logivations.com"
] | arsen.tymchyshyn@logivations.com |
e6235f36b59df74e956f93231fa8d05fae64b59c | b29589f95734682663ae6cd40ab00eb0a94b6d87 | /longwave/lblnew_20160916/study__g1_threshold/h2o_1_co2_1_o3_0_n2o_0_ch4_0_o2_0/band09_wn_1900_3000/nv_200/dv_0.005/crd_cace93a/atmpro_mls/param.py | 082d19e77f63d8f69c2b1f2d2434e35fbd88847c | [] | no_license | qAp/offline_radiation_notebooks | 02c2b2414ef1410f235776001a668f7df0b9f1cf | 44fb62391c27e4e314ad68ae3e91f6111b3172c5 | refs/heads/master | 2020-04-15T14:31:34.675322 | 2019-07-08T04:45:54 | 2019-07-08T04:45:54 | 43,118,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | DIR_FORTRAN = '/chia_cluster/home/jackyu/radiation/crd/LW/examples/separate_g_groups/study__lblnew_g1_threshold/h2o_1_co2_1_o3_0_n2o_0_ch4_0_o2_0/band09_wn_1900_3000/nv_200/dv_0.005/crd_cace93a/atmpro_mls'
PARAM = {'molecule': ['h2o', 'co2'], 'band': '9', 'atmpro': 'mls', 'tsfc': 294, 'nv': 200, 'dv': 0.005, 'commitnum... | [
"llacque@gmail.com"
] | llacque@gmail.com |
f4cfb5ce88911438b70d9918d0fce25e76fe4d09 | a60e928100d78bc2f7a53514b77bdf5e0d502f3c | /section1/1.6.py | 87d4bdd7e4a60cabd36ccb31d68a3c1132d08a74 | [] | no_license | s-tajima/learn-deep-learning-from-scratch | f5603bcca1e2273ae27009afdecb8fc3f9acead0 | edbc2aacfd1da5e88a6b087e7f669a366eb0766c | refs/heads/master | 2021-01-20T07:20:28.452516 | 2017-09-21T11:47:14 | 2017-09-21T11:47:14 | 89,990,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from common import lib as l
from matplotlib.image import imread
x = l.np.arange(0, 6, 0.1)
y = l.np.sin(x)
l.plt.plot(x, y)
l.plt_show_alt(l.plt)
img = imread('datasets/lena.png')
l.plt.imshow(img)
l.plt_show_alt(l.plt)
| [
"tajima1989@gmail.com"
] | tajima1989@gmail.com |
1a0ebf0845a8ce730c691934318828bc0a33c952 | 0150d251132dcbfd9623e2dc31838427f5ed9f7c | /ManyRequests/__init__.py | 7718fbd904c5841f5c0bce201f6cb41f0c2bd2e0 | [
"Apache-2.0"
] | permissive | kbeauregard/ManyRequests | 73782a9e7a5a53c96feaa32eb3691e0fd3eb7213 | 5b252609f4e951a9bd11cda86435e02ca7e786f7 | refs/heads/master | 2020-03-31T15:18:46.428646 | 2019-09-24T17:45:42 | 2019-09-24T17:45:42 | 152,331,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | name = 'ManyRequests'
| [
"KBeauregard@markettrack.com"
] | KBeauregard@markettrack.com |
a86dfa7ee41ee299fa79637141c15a87996f7328 | 3e6c0e46a318fd8583f207103e96fff755e0e128 | /15. Typography/reference_textLeading_spacing/reference_textLeading_spacing.pyde | 4133dffded80b58da1401374d3780d9f4074cdf5 | [] | no_license | demikaiser/BeautifulCodingWithProcessingPyBasic | c16842df79671baa5282480b35989671c95738c1 | 69d82be9a183ba89598934ebd5de81ed0c83f52a | refs/heads/main | 2023-08-26T10:12:25.761523 | 2021-10-22T17:12:50 | 2021-10-22T17:12:50 | 387,465,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | pyde | def setup():
size(640, 360)
myFont = createFont("Roboto Bold", 48)
textFont(myFont)
def draw():
background(255)
lines = "Line1\nLine2\nLine3"
fill(200, 0, 0, 204)
textLeading(50)
text(lines, 30, 60)
textLeading(90)
text(lines, 230, 60)
textLeading(130)
text(lin... | [
"demikaiser13@gmail.com"
] | demikaiser13@gmail.com |
d0b55a0ea0ab48b27ed2e95b177909d4b09cd9f4 | 54bd7bfbddef72698728d6d758c6f4564ab05d11 | /core/exceptions.py | bad1ba53adfd83d114afa93c467d90e5beacae52 | [
"MIT"
] | permissive | SeasideRacoon/forklister | 543edcc134a5c2cf76aa25cf1aab3870c6552b67 | ef78911f4a7d2948578cb5a0e85a2cde7fad51de | refs/heads/master | 2022-12-23T11:54:57.092207 | 2020-09-14T06:59:19 | 2020-09-14T06:59:19 | 294,161,067 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | class AddressParsingError(Exception):
pass
class RateLimitError(Exception):
pass
| [
"sofia.klimentova@gmail.com"
] | sofia.klimentova@gmail.com |
88c7531202e562e4ac3430ed14dfac3c534fa18a | 0a2357ad0098bbb7b74528cb01d6decaab928ed8 | /paiza/s010.py | 3543044734b60e36d2232662007bc8201c45d808 | [] | no_license | touyou/CompetitiveProgramming | 12af9e18f4fe9ce9f08f0a0f2750bcb5d1fc9ce7 | 419f310ccb0f24ff08d3599e5147e5a614071926 | refs/heads/master | 2021-06-18T09:19:01.767323 | 2020-07-16T03:40:08 | 2020-07-16T03:40:08 | 90,118,147 | 0 | 0 | null | 2020-10-13T04:32:19 | 2017-05-03T06:57:58 | C++ | UTF-8 | Python | false | false | 906 | py | # coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ!!
import heapq
m, n = map(int, input().split())
mp = [input().split() for i in range(n)]
h = []
visited = [[0 for j in range(m)] for i in range(n)]
for i in range(n):
for j in range(m):
if mp[i][j] == 's':
heapq.heappush(h, (0, i, j))
dist = [(1, 0), (0,... | [
"fujiyou1121@gmail.com"
] | fujiyou1121@gmail.com |
bfab0e87d0ae6d07a0f937e7d3f25b8bf77d3b0c | a8792aa88c1bc643cdd7aa4a02f62d4ca8da5b6f | /vidlist.py | 4274e2186a3e87ab9c00e553edbc713892c1a751 | [] | no_license | peerhenry/vidtest | 7f278d16f203431475dd2ff8ecb8c6156616d621 | 163642d3857272c33d4a25d08927582337590ee6 | refs/heads/master | 2020-04-12T05:13:04.602726 | 2020-02-23T16:10:10 | 2020-02-23T16:10:10 | 162,318,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from os import listdir
from os.path import isfile, join
def getVidList(path):
return [join(path, f) for f in listdir(path) if isfile(join(path, f)) and isVid(f)]
def isVid(filename):
return filename.endswith('.mp4') or filename.endswith('.wmv') or filename.endswith('.flv') or filename.endswith('.avi') or filename... | [
"peerhenry@gmail.com"
] | peerhenry@gmail.com |
c3d6ab7831b7199e9ec542f33cbadcdfd319e9fe | 3f3aabb881b78fb2e606446eca07d0444bb0494d | /models/movie_seen.py | b92586ab42e04acfb99fba2fa00a8aab563b39f1 | [] | no_license | raul-cayo/cinephilio-api | ccc4d3f23e5266e701d86036f292c843504a8689 | f5072d230ce80dca211eb72879e6dbfcc8ac68c1 | refs/heads/master | 2022-11-10T03:35:57.609175 | 2020-06-13T00:24:32 | 2020-06-13T00:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | # Python libraries
from datetime import date
# Own libraries
from db import db
class MovieSeenModel(db.Model):
__tablename__ = "movies_seen"
user_id = db.Column(
db.Integer,
db.ForeignKey("users.user_id"),
primary_key=True
)
movie_id = db.Column(db.Integer, primary_key=True)
... | [
"raul.sanchez.cayo@gmail.com"
] | raul.sanchez.cayo@gmail.com |
6adb0a0834838cc928d3d1946f1267a29aeb040e | e8f271cc7db3fc7aa237ee6c86021b854cd85488 | /turtlebot_navigation_ws/devel/lib/python2.7/dist-packages/trajectory_control_msgs/msg/_PlanningGlobalPath.py | fb72a10c049c32b154eb9200956239d0e16f647a | [] | no_license | ElliWhite/turtlebot2_wss | e14caba73feae01b365dd367918ed3fa9089a531 | 48c1486d8b7450bea99acf4fc5de619a8c9c0188 | refs/heads/master | 2022-01-09T22:36:50.764256 | 2019-05-03T11:17:02 | 2019-05-03T11:17:02 | 177,111,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,196 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from trajectory_control_msgs/PlanningGlobalPath.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import nav_msgs.msg
import std_msgs.msg
class Pla... | [
"elliott.white@students.plymouth.ac.uk"
] | elliott.white@students.plymouth.ac.uk |
2c8ace4de4ca152f84e82eb5447d3fd3aaf358ea | 18f776553a59a89faf05144ed1a69dc563dc4e9e | /Algorithm/quick_sort.py | f239951b80a283b0effefd063806d3d6c2031467 | [] | no_license | g-lyc/LeetCode | 274feff3b6c61da0ec8726deac0b298baed5cf10 | fa45cd44c3d4e7b0205833efcdc708d1638cbbe4 | refs/heads/master | 2022-12-13T14:50:02.976951 | 2020-09-03T09:39:58 | 2020-09-03T09:39:58 | 259,212,315 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # coding:utf-8
def quick_sort(alist, first, last):
"""快速排序"""
if first >= last:
return
mid_value = alist[first]
low = first
high = last
while low < high:
# high 左移
while low < high and alist[high] >= mid_value:
high -= 1
alist[low] = alist[high]
... | [
"309080979@qq.com"
] | 309080979@qq.com |
12b2539114d5ab2bcaba036a6e748f0ecbb91513 | 43b23fd200b4efe2e864395b4a0244e201e8fbf2 | /oop/contacts/views.py | 72e3aaaab2bd334d7d2b184fd10f6358e3928aa4 | [] | no_license | Juuhyunn/Basic-python-tutorial-with-flask | b86909b431f44bbf816ba49e3563b6e9fddfcae1 | 3f1da1fc543434346e4456c62df80155ce4ca7d9 | refs/heads/main | 2023-08-11T16:01:06.340668 | 2021-10-15T05:11:49 | 2021-10-15T05:11:49 | 414,473,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from oop.contacts.models import Contacts
if __name__ == '__main__':
Contacts.main() | [
"ahnju96@gmail.com"
] | ahnju96@gmail.com |
65932b420ab101203b8b8a1c93a315b3293bac95 | e239a6751c2c17ced90edb98c8f47634fb008e75 | /local_tax_config/models/inherit_taxes.py | 77634623ffcf830b87fca4d9e94e3475194cba14 | [] | no_license | EshangAllion/cenmetrix_v12 | 5b6de45e075474947671620fb65090b8aa82842b | 9de7a2ce6a17d43107ee08085c9f83a525382798 | refs/heads/main | 2023-07-10T21:50:44.745450 | 2021-08-29T13:41:03 | 2021-08-29T13:41:03 | 401,048,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,190 | py | from odoo import fields, api, models
class InheritAccountTax(models.Model):
_inherit = 'account.tax'
vat_type = fields.Selection([('vat', 'VAT'), ('s_vat', 'SVAT'), ('other', 'Other')], string="Local Tax Type")
_sql_constraints = [
('name_company_uniq', 'unique(name, company_id, type_tax_use, va... | [
"eshang@alliontechnologies.com"
] | eshang@alliontechnologies.com |
f00882b6f9573d7d80167733954b29e662f3e1da | 52276ef01814e6238c154931f17ace1dae83f874 | /Multi y divi/divimovi.py | 89fd34f2c2cc49de44fa1716b88cb6afa95557a1 | [] | no_license | LuisVillanuevaFlores/COMPU-GRAFICA | 2ea43c9e53dd1b495d0a91f1225ab08b0151e9fc | 5100e9a87c34d8b732c6249a680f2f61a2020115 | refs/heads/master | 2023-04-23T19:52:52.334335 | 2021-05-05T03:45:39 | 2021-05-05T03:45:39 | 259,977,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import cv2
from matplotlib import pyplot as plt
import math as mt
import numpy as np
img = cv2.imread('uploads/original.jpg',0)
img2 = cv2.imread('uploads/suma.jpg',0)
img2=cv2.resize(img2,(img.shape[1],img.shape[0]))
#EJERCICIO 3
for i in range(img2.shape[0]):
for j in range(img2.shape[1]):
img[i,j]=int(... | [
"furiadorada@hotmail.com"
] | furiadorada@hotmail.com |
90b1ab64ad22afab6469075039ebbd3cd3dfbfa4 | b91bc0fbce1ca5052ccd21cd97a4354b3a7d14e2 | /covidtraveler/urls.py | 7f3f58a81bfc3e3580b9388c06fd6f087719c4fa | [] | no_license | ac30boy/covidtraveler | 0823ca23645b1605f81ccff7d82f61c2a740a0aa | 5a0633dbc7140c0a7d35b3fd1e8f21e8dfa82666 | refs/heads/master | 2022-12-17T00:38:11.846010 | 2020-09-11T00:30:03 | 2020-09-11T00:30:03 | 294,561,048 | 0 | 0 | null | 2020-09-11T01:18:51 | 2020-09-11T01:18:50 | null | UTF-8 | Python | false | false | 848 | py | """covidtraveler URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"zerega85@gmail.com"
] | zerega85@gmail.com |
5b86213e00ab9b3efe37fcb893b2d3f7afa247b4 | 83be24ad6f39b6888469abbccc99692ff61294c6 | /server/sms.py | 36bfdf0a504ab923e238da08838e8893a0241ad0 | [] | no_license | lukasszz/crows-nest | 1e3db90ad21c4c42a492231fa38a7d2b2e8647f6 | 844d04a3a0f29f82c9d04b04c2c367421fa53dd8 | refs/heads/master | 2022-12-10T09:06:12.659398 | 2020-08-27T11:43:35 | 2020-08-27T11:43:35 | 268,441,502 | 1 | 1 | null | 2020-08-27T11:43:37 | 2020-06-01T06:21:28 | Python | UTF-8 | Python | false | false | 458 | py | import urllib
import requests
xml = '<?xml version="1.0" encoding="UTF-8"?> ' \
'<request protocol="SmesX" version="2.2" user="" password=""> ' \
' <send_sms> ' \
' <msisdn>697762400</msisdn> ' \
' <body>[crow-nest] Test alertu sms</body> ' \
' </send_sms>... | [
"lukasz@lukaszherok.com"
] | lukasz@lukaszherok.com |
af24c2458fa973b351408f8e18cf0bbd83cc5e8d | 452a7cae77ac65d9221c624bebbc3a67c1f3af35 | /app.py | 5d0fa862ffdeea0d313d9c069114658774f83ed9 | [] | no_license | manasa884/reactPractice | 41cf7ba2857486903ddc0bd25c4a5e2f6d298b25 | b4b259c7d09e510c0071339d463eb4a5c7bf485b | refs/heads/master | 2021-08-11T11:15:42.154718 | 2017-11-13T16:14:51 | 2017-11-13T16:14:51 | 110,244,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # app.py
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def home(path):
return render_template('index.html')
if __name__ == '__main__':
app.run(debug=True)
| [
"manasa.tipparam@gmail.com"
] | manasa.tipparam@gmail.com |
1177681c4ab612b8090d0199c3cf68e6d5bb7c52 | b92aaa70dd9e734ffc63db21ccee5c4de2f9d86f | /Redballoon.py | 9359ea9a2f89548bf641d8a7d7656ea3e29797d3 | [] | no_license | ICS3U-Gallo/halloween-spooky-scary-skeletons | 2626a3d68ebaf5a4a3ec48bbf5136fbe42941af5 | dc97cd56eb9425363fe5ed7de7f918db166b032b | refs/heads/master | 2020-08-05T14:55:41.013230 | 2019-11-01T13:22:23 | 2019-11-01T13:22:23 | 212,587,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import arcade
WIDTH = 640
HEIGHT = 480
X1 = WIDTH // 2
Y1 = HEIGHT // 2
window = arcade.open_window(WIDTH, HEIGHT, "My Arcade Game")
def setup():
arcade.set_background_color(arcade.color.WHITE)
arcade.schedule(update, 1/60)
arcade.run()
def update(delta_time):
pass
@window.event
def on_draw():
... | [
"noreply@github.com"
] | ICS3U-Gallo.noreply@github.com |
93763851c12301b017ec9992626f372e47495815 | d2237941f11bbc14d5bffd286e266784167905d5 | /telemetry/telemetry/value/trace.py | 2d5cddfb69aade9dabaf299ae0234d594a95cbb5 | [
"BSD-3-Clause"
] | permissive | asdfghjjklllllaaa/catapult | c75a23370388948905da27fb6b6bf60e508ff5b3 | b9b1a486ae1e03e0ebb768e21036113bc6e9debf | refs/heads/master | 2023-01-09T16:25:38.899420 | 2019-06-28T17:52:35 | 2019-06-29T00:50:40 | 194,352,662 | 0 | 2 | BSD-3-Clause | 2022-12-03T23:11:43 | 2019-06-29T01:48:40 | HTML | UTF-8 | Python | false | false | 5,604 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
import shutil
import sys
import tempfile
from py_utils import cloud_storage # pylint: disable=import-error
from telemetry.interna... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ee354630d897e090e287d3701607a6ee1643f0fc | 198c3e5c84f6582d9352cd8f2d493a86a2728051 | /seanbin/views.py | 18d1f9be9683ee91ec9d34616b93d7b2812c7f0f | [] | no_license | montito99/SeanBin | a50f610c70619dbe025addbcda7edcc2c23153e4 | bf7ea8ecdcd7ad67121b190e1486e00dd80d6fdc | refs/heads/master | 2021-01-17T13:20:58.917730 | 2017-06-26T07:16:37 | 2017-06-26T07:16:37 | 50,585,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | from flask import *
from FLASK_CONFIG import EXPIRATIONS
from string import printable as printable_chars
from time import *
from seanbin import app, logging
import json
import os
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico', mimetype='ima... | [
"sean.wolmer@gmail.com"
] | sean.wolmer@gmail.com |
f33515fb02e2cc69d330ac6136e8ab13d5721657 | a5a4ca5301a70815b16666aa7f1d1428c53f0c66 | /list.py | f1fb0452d6cf9b3d238703ada6465a8db21580f2 | [] | no_license | nglbminh/python-practice | 9d4fde35b55af612c06795a138d9f9cbfb32a59f | 196b0f077690bdab2a8be0ed42950ab0219d79ef | refs/heads/master | 2023-07-30T01:28:12.909982 | 2021-09-28T03:32:17 | 2021-09-28T03:32:17 | 293,365,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | # a function to calculate sum of the even indices number in list ls
def sum_of_even_index(ls):
sum = 0
index = 0
while index < len(ls):
if index % 2 == 0:
sum += ls[index]
index += 1
return sum
apple = [5,3,2,10,1,4]
print (sum_of_even_index(apple))
apple.append(1)
print(app... | [
"equuss.minh@gmail.com"
] | equuss.minh@gmail.com |
6fbd7c598764427cf14035c25066bc6ebfaaa562 | 7aa99ab3bec828a140426c29263937441fbc6f8d | /vfp2py/__init__.py | f97971061aa4aa48e805915ab38e063263c56036 | [
"MIT"
] | permissive | mwisslead/vfp2py | 7e796f710c37a95826d5fcd67774a1f80cdf63cd | 7deff7b18950048b4341e7ffdbc063d0c4654a60 | refs/heads/master | 2023-02-09T02:46:33.824355 | 2023-02-08T21:25:46 | 2023-02-08T21:26:28 | 70,626,962 | 44 | 23 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | # coding=utf-8
from __future__ import absolute_import, division, print_function
from . import vfpfunc
from . import vfp2py
| [
"michael.wisslead@gmail.com"
] | michael.wisslead@gmail.com |
c365e140285724cd8c488eb3886d00aa0904c9e9 | f8dadfe2023cc3c7cbb5f927313f6fbe27c39804 | /site-packages/matplotlib/backends/backend_agg.py | 501988134418c904f4e3eaaa79b4de9075529f85 | [
"MIT"
] | permissive | ianormy/Pyto | 1d7311c7cd80801bf39f4c4850c30a59c83d3549 | e69a9ab57d5ef86675041f9e1f4427e9b79bb8e7 | refs/heads/master | 2022-08-11T03:56:41.508220 | 2020-05-12T16:34:44 | 2020-05-12T16:34:44 | 264,720,541 | 0 | 0 | MIT | 2020-05-17T17:28:58 | 2020-05-17T17:28:57 | null | UTF-8 | Python | false | false | 22,882 | py | """
An agg http://antigrain.com/ backend
Features that are implemented
* capstyles and join styles
* dashes
* linewidth
* lines, rectangles, ellipses
* clipping to a rectangle
* output to RGBA and PNG, optionally JPEG and TIFF
* alpha blending
* DPI scaling properly - everything scales properly (dashes, linew... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
339797dc9bdac2326eb94a3de4a9114dbba46a4b | 5600178b3efa23159b05fe0621c8d8aa91dcf16c | /samples/tf_trt_test2.py | 11aa483ae47040c8fbf377b1d0243a8d17cd051c | [] | no_license | ZWJ-here/maskrcnn-keypoint3d | 409cdcbe0d53a10a2121ce5906fb0cc01f3062af | 48ca3789be6210dfae361d6f6a3323f518a2445d | refs/heads/master | 2022-02-19T01:19:35.310696 | 2019-09-12T06:58:38 | 2019-09-12T06:58:38 | 220,231,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,644 | py | import time
import numpy as np
import tensorrt as trt
from PIL import Image
import sys
import tensorflow as tf
import common_utils
import onnx
import pycuda.driver as cuda
import os
sys.path.append('/data/ai/JF/pose_estimation/multi_pose_estimator')
import cv2
import ast
import numpy as np
import os
import shutil
imp... | [
"xixiaoyan@focuschina.com"
] | xixiaoyan@focuschina.com |
7079d3391627540ad375a8ff69c9dd0916803d85 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/478.py | fdc1d3263f41bed2903f5ea4b962fe26b6c8e7e2 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | for t in range(int(input())):
n = list(input())[::-1]
for i in range(0,len(n)-1):
if n[i] < n[i+1]:
n[i+1] = chr(ord(n[i+1])-1)
for j in range(0,i+1):
n[j] = '9'
print("Case #{}: {}".format(t+1,int(''.join(n[::-1])))) | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c020440f0b39dc02e6695ffa1e69b55054bfd53e | 2028efee4f90a7a2a614ae23775cc8d420166159 | /wordejavu/wsgi.py | c1ab64155dc04ee4c49b0797fd73e4b07bacebd1 | [] | no_license | peicheng/playground | 25a4a4c47b50109f640629ff3533ccbcd4a76a21 | c14cc1a84d7d1dc9b8a5a8d8f9c116879ca03673 | refs/heads/master | 2021-01-01T19:51:43.825673 | 2012-01-12T08:01:46 | 2012-01-12T08:01:46 | 3,288,274 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import web
from web.contrib.template import render_mako
render = render_mako(directories=['templates'],
input_encoding='utf-8',
output_encoding='utf-8')
urls = (
'/(.*)', 'index'
)
app = web.application(urls, globals())
class index:
def GET(self, name):
retu... | [
"amazingjxq@gmail.com"
] | amazingjxq@gmail.com |
b4d70b7d030971cf3cecac2f8f9bf312aaac4852 | dbe9f4b37b17a2dd35efce039a16d4ace481a1b0 | /main.py | 373e5119c0beda84888581379cbb0c73a61843af | [] | no_license | zach-b/openrover | 1daef22559c0a60fedcf03a3702d46d820782eab | 155cca6b604f48c80f0ee512dff36090300fb94b | refs/heads/master | 2021-05-31T01:19:50.181199 | 2016-04-06T15:22:50 | 2016-04-06T15:22:50 | 54,983,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import os
import logging
import signal
import threading
import time
log = logging.getLogger('openRoverApp')
import openRoverApp
import coapserver
# ======================== main ==========================================
import logging.config
logging.config.fileConfig('logging.conf')
# log
log.info('Initializing Op... | [
"zacharie.brodard@polytechnique.edu"
] | zacharie.brodard@polytechnique.edu |
6cb80912818e42da4efdc7ad75957bfe2578cbc6 | 76844cf1403722bc62fd83011fc1164c8143f7b2 | /backend/filler.py | 30acdbccdec139420c994904c5753cc9d50d79cf | [] | no_license | Rallkus/DjangoRestFrameworkReactMobX | 0d2851f808ba805f8b49d0059c2f56f1e6287173 | c0b8feafe0162f3d0af7e0bc70d372aa66258369 | refs/heads/master | 2020-04-19T05:38:13.770958 | 2019-02-05T16:08:52 | 2019-02-05T16:08:52 | 167,989,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','conduit.settings')
import django
django.setup()
from conduit.apps.articles.models import Article, Comment, Tag
from conduit.apps.profiles.models import Profile
from conduit.apps.authentication.models import User
from conduit.apps.card.models import Card
from c... | [
"serhuegi@gmail.com"
] | serhuegi@gmail.com |
b1dd0b2d557acd90aa1c226dbe41bf24785d746d | dc2a0c7e3b814aeac661006f24b16b4ea1bb6599 | /scatterplot.py | d5ead8a27a393b0f5584c3fdc770a1c8dcfe07e9 | [] | no_license | rrosasl/python_useful_code | fc007d60d5804298c49af358662a89f74edc6e77 | 01d3684e8f76bf4f33725a1a0be1b71a839f689f | refs/heads/master | 2020-04-09T17:45:57.849479 | 2019-03-11T13:03:38 | 2019-03-11T13:03:38 | 160,490,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #Creating Scatter plots
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
plt.scatter(data = df, x = 'independent_var', y ='dependent_var')
plt.xlabel('independent_var')
plt.ylabel('dependent_var')
plt.show().
#in seaborn
sns.regplot(data = df, x = 'independent_var', y ='depen... | [
"noreply@github.com"
] | rrosasl.noreply@github.com |
9cfbceafec8cdf4f55747590acc80c4cd508ef28 | bc09d9a828d2b8fdc17627fb33b3f30d15633c03 | /Demo/testCV.py | b3a283549963cd3d2b6ec4f11366af4984068bdd | [] | no_license | yusengo/PythonOpencv | 1ec2087262931dc38bb33e5d55e5bcf65acbe571 | 0335634d919383243d5d6376871b84d52a7719df | refs/heads/master | 2020-12-02T20:56:28.246646 | 2017-07-07T10:18:29 | 2017-07-07T10:18:29 | 96,232,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | """
from PIL import Image
from pylab import *
im = array(Image.open('wing.jpg'))
imshow(im)
x = [100,200,400,400]
y = [100,200,200,500]
plot(x,y,'r*')
plot(x[:2],y[:2],'w')
title('plotting:"wing.jpg"')
axis('off')
show()
"""
"""
from PIL import Image
from pylab import *
im = array(Image.open('wing.jpg').convert('L... | [
"yusengo@163.com"
] | yusengo@163.com |
206160d8d6c777c397b4c5d52d2bf72e109f6df3 | b7e5410387608dd27eab49d30e4e43ece0f8d4e1 | /djangoprojects/djMovieproject/djMovieproject/asgi.py | a143de952434c9a0ee9b4f86b998f607d832ab6d | [] | no_license | DhanaDhana/DhanaGit | cb0caab8a814649c4b8520f0553c1e01f76f9140 | 5eb58f11271a74ed4571e30e29470cf64e53c9ae | refs/heads/master | 2023-04-07T10:16:44.668810 | 2021-04-01T18:01:20 | 2021-04-01T18:01:20 | 264,395,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for djMovieproject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"dhanakondareddy825@gmail.com"
] | dhanakondareddy825@gmail.com |
1b140a9830143a089bec40df523e1f4f089c19a7 | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW3/hw3_339.py | eedb0f74e7a460bf572c15f50714e3a1caec7f61 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 713 | py |
def main():
temperature = float(input("Please enter the temperature: "))
temperatureScale = input("Please enter 'C' for Celsius or 'K' for Kelvin: ")
if temperatureScale == "C":
if temperature <= 0:
waterState = "solid"
elif temperature >= 100:
... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
ff364ba6506371f98d6f5f7d0dcec21ca9565570 | 6188f8ef474da80c9e407e8040de877273f6ce20 | /examples/with_airflow/with_airflow/__init__.py | 88b0b4dad123200786a6e16823e3f34ba1d771f5 | [
"Apache-2.0"
] | permissive | iKintosh/dagster | 99f2a1211de1f3b52f8bcf895dafaf832b999de2 | 932a5ba35263deb7d223750f211c2ddfa71e6f48 | refs/heads/master | 2023-01-24T15:58:28.497042 | 2023-01-20T21:51:35 | 2023-01-20T21:51:35 | 276,410,978 | 1 | 0 | Apache-2.0 | 2020-07-01T15:19:47 | 2020-07-01T15:13:56 | null | UTF-8 | Python | false | false | 162 | py | from .repository import (
airflow_examples_dags_repo as airflow_examples_dags_repo,
task_flow_repo as task_flow_repo,
with_airflow as with_airflow,
)
| [
"noreply@github.com"
] | iKintosh.noreply@github.com |
739b06b2799edb764125f650d3f52f0d0463c6e5 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/acupoints/xiajuxu441.py | 2ae84a816841cd3e228625ecab65016abe6ad1f7 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'xiàjùxū'
CN=u'下巨虚'
NAME=u'xiajuxu441'
CHANNEL='stomach'
CHANNEL_FULLNAME='StomachChannelofFoot-Yangming'
SEQ='ST39'
if __name__ == '__main__':
pass
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
42bbf18545f63e60b3f31c884ec13f1d9dfbe520 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/misc-experiments/_FIREBFIRE/grpc-SwiftPM/tools/run_tests/run_performance_tests.py | 0845a7123ec6f16277cabcc89622be55defe6924 | [
"MIT",
"Apache-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 29,492 | py | #!/usr/bin/env python
# Copyright 2016 gRPC authors.
#
# 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 applicable law o... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
c256969fda0a57846d0bf92f9a8f1a8c4b35a159 | d1a7899f6d7e791a9886a7b32d573263a45713ad | /apps/staff/migrations/0001_initial.py | 0c09ec50addf1f7a1df92f975eba1f94edfb19ac | [] | no_license | ranjitreonard/hospital_project | bac01437cb5ad6c4a18cfe78f8912f9210df2c18 | 10cdcac28d2c7add2c0878d80bfb90c91a2d5c2f | refs/heads/main | 2023-01-11T04:16:27.817128 | 2020-11-12T17:56:39 | 2020-11-12T17:56:39 | 303,461,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | # Generated by Django 3.1.2 on 2020-11-10 11:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"ranjitreonard@gmail.com"
] | ranjitreonard@gmail.com |
07d2ad5cfc53f884efa7c957cea1960619debae7 | 0680de1788c435dcb5d628bcc166d03663ad14c5 | /kinjector/__init__.py | 29ef6bd070fd8bfe0183f390ff9d25dc2e440dcd | [
"MIT"
] | permissive | sowbug/kinjector | c46238bd8a6bc8385195af526242607f17df4c48 | f4c2e0fd2dad6fca550484fd6de62a89f5a02886 | refs/heads/master | 2021-01-01T11:23:27.255146 | 2020-02-11T04:03:26 | 2020-02-11T04:03:26 | 239,257,605 | 0 | 0 | MIT | 2020-02-09T06:24:30 | 2020-02-09T06:24:29 | null | UTF-8 | Python | false | false | 197 | py | # -*- coding: utf-8 -*-
"""Top-level package for KinJector."""
from .kinjector import *
from .pckg_info import version, email, author
__author__ = author
__email__ = email
__version__ = version
| [
"devb@xess.com"
] | devb@xess.com |
f67674a80677df9bc3a595f1951d5f05b2e5f0ae | f4da8d731d43d63dd22606f74fb4c495598aee43 | /tests/test_ghp.py | 1968c18da20f819ffb1dadff6b831296cedfe5af | [
"MIT"
] | permissive | alissa-huskey/gh-pages-cli | 4edc00f666893b0e00d554338d05b58f6b1460c1 | fd413c24dfefd47c9c071e59141da6defcdd81d6 | refs/heads/master | 2023-02-12T05:50:45.222111 | 2020-12-23T20:42:58 | 2020-12-23T20:43:06 | 319,186,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from ghp import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"alissa.huskey@gmail.com"
] | alissa.huskey@gmail.com |
feaf1d04883fb9e0b7404fb760f96bf1f5b791bf | cd329424035732bf9041c9dfde1f277f8f4b09d6 | /Exam-Preparation/energy_booster.py | cf2157d9a09c2ab6d512b21826a400a932ee2518 | [] | no_license | zhyordanova/Python-Basics | 3e90e5bd8d78cdd7b36bfdb348c6b346813293b1 | d6b5e4737e67b26383a6b67606f9dc671f50c355 | refs/heads/main | 2023-03-20T06:15:55.358694 | 2021-03-15T07:52:31 | 2021-03-15T07:52:31 | 339,508,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | fruit = input()
size = input()
set_count = int(input())
pack = 0
price_pack=0
if size == "small":
pack = 2
if fruit == "Watermelon":
price_pack = pack * 56
elif fruit == "Mango":
price_pack = pack * 36.66
elif fruit == "Pineapple":
price_pack = pack * 42.10
elif fruit == "R... | [
"zhyordanova88@gmail.com"
] | zhyordanova88@gmail.com |
077f593164a5e8945e0789333483ca3a98802e88 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/diagnostic/migrations/0062_lab_is_live.py | 9bb9512bfeb7e8661fa758e11d9bf11c7504c7a0 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.0.5 on 2018-07-20 09:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('diagnostic', '0061_auto_20180716_2026'),
]
operations = [
migrations.AddField(
model_name='lab',
name='is_live',
... | [
"ronitd@policybazaar.com"
] | ronitd@policybazaar.com |
fcae62f0123e5b5c35c8bcba7b88b33e96996b17 | 5df5f3552d6268c498cd5e768e704f0f967c810e | /resnext_50.py | 9845882193fd90b7867aa3cc838714cdc04d3ed3 | [] | no_license | CVLab-CQUPT/oppo_face_vat | 1dee7b984b29c9c68dcbbc3dbec74e2c1bfede0b | 81acbc28b5f6d3108164aa7278ce13e0e754480d | refs/heads/main | 2023-06-21T01:40:33.028161 | 2021-07-24T09:33:42 | 2021-07-24T09:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import torchvision.models as models
import torch.nn as nn
import torch
class Resnext_50(nn.Module):
def __init__(self, num_class=10):
super(Resnext_50, self).__init__()
self.num_class = num_class
self.feature = nn.Sequential(*list(models.resnext50_32x4d(pretrained=True).children()... | [
"1821930891@qq.com"
] | 1821930891@qq.com |
d4f2f367afa34f3a2151235da03bdd611961b38a | 59061e3699f3a181cba344360ed3cf89db88763b | /sandbox/uTools/preproc_p/workflow_calc_data.py | 0ec4df64ede3b2f64429508d21fdc9a8b4b9b385 | [
"MIT"
] | permissive | giecli/unifloc | 4a4bb8cd0b37d5905eab5a367e6b5ccb324d4df8 | f1b97e144a0292d43e341cd3b3552ee8fd8713eb | refs/heads/master | 2022-06-27T10:40:47.821344 | 2020-05-11T16:47:20 | 2020-05-11T16:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,554 | py | import pandas as pd
#from sandbox.uTools.preproc_p import preproc_tool
import sys
import os
sys.path.append('../'*4)
import unifloc.sandbox.uTools.preproc_p.preproc_tool as preproc_tool
global_names = preproc_tool.GlobalNames()
columns_name_dict = {"Pline_atma": global_names.p_lin_atm,
"pbuf_atma... | [
"oleg.kobzarius@gmail.com"
] | oleg.kobzarius@gmail.com |
059771a8799c49c28224f54cfb3e69cb42175193 | 9efb44e55f680af647c27957fc70f877ac6c1562 | /Calculatrice.py | 589fd435777215f61b8e611eb28774816b9e7057 | [] | no_license | jrem09/AstonPython | 1f9ee772abdadcdf782368624392afd0fa72c605 | 5affe35897ea59baa39ed6e62f10dc6588c9da1a | refs/heads/master | 2021-01-01T03:45:13.200978 | 2016-04-25T14:23:39 | 2016-04-25T14:23:39 | 57,047,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | def additioner(a, b):
return a+b
def soustraire(a, b):
return a-b
def multiplier(a, b):
return a*b
def diviser(a, b):
return a/b
print("Menu Calculatrice\r\n1: Additioner\r\n2: Soustraire\r\n3: Multiplier\r\n4: Diviser")
id = input()
a = input("Saisir nombre 1:")
b = input("Saisir nombre 2:")
... | [
"nizou.jeremy@gmail.com"
] | nizou.jeremy@gmail.com |
ec979aed7ba7080c2e1ccfdb85acd79993ffab30 | 664eaaf3ce1329637966ee85752a4bf792f93d64 | /paypal/standard/ipn/models.py | 8e1e69bce39767e92f8c12eca78f498c081371cd | [] | no_license | rajinder-mohan/thelunchbox | 6fb9f7228490e22da58f59a29601aebec9c8fd35 | 54e3a14229fd72d24152671fb8f0bc13ae83be8c | refs/heads/master | 2021-05-04T16:25:33.015292 | 2018-02-05T03:43:34 | 2018-02-05T03:43:34 | 120,251,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import requests
from six import b
from django.dispatch import Signal
from paypal.standard.ipn.signals import (
invalid_ipn_received, payment_was_flagged, payment_was_refunded, payment_was_reversed, payment_was_successful,... | [
"rajinder_mohan@esferasoft.com"
] | rajinder_mohan@esferasoft.com |
3673bbc66376d6e086d0b6af4e5f09de4ae97cd4 | 38433574de70ccc0472daeabb614b491ac8526c0 | /sqlalchemy-stubs/orm/collections.pyi | 7733626873807699c23d37ad56eb90a108b8e616 | [
"MIT"
] | permissive | Parnassius/sqlalchemy2-stubs | 28fd7611a50b60415062fdb6d367da14c9a69462 | 68f8417888456588714fcced1c6799f3eb00ff2d | refs/heads/main | 2023-09-01T18:03:58.568139 | 2021-10-14T17:54:15 | 2021-10-14T17:54:15 | 363,415,451 | 0 | 0 | MIT | 2021-10-14T20:29:03 | 2021-05-01T13:22:32 | Python | UTF-8 | Python | false | false | 3,054 | pyi | from typing import Any
from typing import Optional
class _PlainColumnGetter:
cols: Any = ...
composite: Any = ...
def __init__(self, cols: Any) -> None: ...
def __reduce__(self): ...
def __call__(self, value: Any): ...
class _SerializableColumnGetter:
colkeys: Any = ...
composite: Any = ..... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
0ef7da73e03a903487f14b5e5c8a957efae4cdea | db28854002d589e7911fea497dfdfcf6382393b3 | /unit_tests/unit_gibbs.py | e040211bc7bb04e3f270a37ec11539563e6894d0 | [] | no_license | andreas-koukorinis/KS_iMGPE | 707f9d86e686e2471ec819047cd56cb726c4e86d | 57b38fa57913b274f4a5d16abe68b617658b5901 | refs/heads/master | 2020-08-31T05:28:17.491867 | 2017-11-08T15:25:19 | 2017-11-08T15:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,239 | py | from base_test import BaseTest
import unittest
import numpy as np
from context import iMGPE
class GibbsUnitTests(BaseTest):
def test_singleton_reassignment(self):
x, y, _ = BaseTest.get_data()
imgpe = iMGPE(x, y, initial_k=6)
BaseTest.divide_data(imgpe, singleton=True)
BaseTest.prepare_kernels(imgpe)
BaseTe... | [
"datsquall@gmail.com"
] | datsquall@gmail.com |
a134ce3f89b35d79f2a5958b70d64c980d7d14b2 | b62563d791382e75f65ec9cc281882c58baa1444 | /request/urls.py | cf275056349515158750cd9b5d31586bcbb56b01 | [] | no_license | moses-mugoya/Farmers-Machinery-Management-System | 4fda328f1813041c9a6ae64bf618a7eb0b23d78b | 0221c33e5b5936edee3c32baa98f486c9a4726a4 | refs/heads/master | 2020-05-19T03:59:05.148558 | 2019-05-03T20:06:04 | 2019-05-03T20:06:04 | 184,814,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.urls import re_path
from . import views
app_name = 'request'
urlpatterns = [
re_path(r'^create/$', views.create_order, name='create_order'),
]
| [
"mosesmugoya31@gmail.com"
] | mosesmugoya31@gmail.com |
e7c84a1e8d6b1a684d96b5bd16fa9d4214d3f7d2 | ef3f9995ae47a988cfd5bd61f3d5026ed2c77a9a | /distance_matrix/scripts/distance_matrix.py | dbc0333d23a55bff8a22873e9a74dd80c71638f2 | [] | no_license | NSSAC/SEA_IPM_SPREAD | dd8154803663587ff774d576a330a7580201c75d | b2cdaa3f0f8c21ea25e2a135503f05d0500ccc2a | refs/heads/master | 2022-02-27T03:32:02.210593 | 2019-10-15T23:00:20 | 2019-10-15T23:00:20 | 159,365,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,905 | py | #!/usr/bin/env python
# compute distances between locations in a list
# tags: code python distanceMatrix google googlemaps api distanceAPI except
# exception zip unzip
import argparse
import csv
import googlemaps
import pdb
import logging
import sys
import datetime
from math import ceil
KEY='AIzaSyBz5ut6cVwL-xNGGI0Cf... | [
"abhijin@virginia.edu"
] | abhijin@virginia.edu |
559492fd25ec35fd24d73741693c99158cdc85f6 | 19ed2de0427741be2e32b5d8dd616ae755cc9942 | /WINDOW1.py | 888ef5135945055b86093aeb0b4382f3097bb7c7 | [] | no_license | samirad123/PP_mini_proj | 6f8205d975446a691c027d942bf5faa26b1a6524 | 21abca7c6c47de1b30c66a4337e9aec5abc17b79 | refs/heads/master | 2023-08-18T17:20:38.634271 | 2021-10-21T06:16:24 | 2021-10-21T06:16:24 | 417,183,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from tkinter import*
from PIL import Image,ImageTk
root = Tk()
#window title
root.title("FOOD HUNTER")
root.geometry("600x500")
root["bg"] = "#310054"
#image
load= Image.open("/Users/samiradeepak/Desktop/food_hunter_RE.png")
render = ImageTk.PhotoImage(load)
img = Label(root, image=render)
img.place(x=159, y=100)
#o... | [
"samiradeepak@Sams-MacBook.local"
] | samiradeepak@Sams-MacBook.local |
d8e72dd0e5f7133d00d7beff8ddc0b16521a45b1 | df98db9d028d5aec125b534a914cc8b1b90433ea | /account/forms.py | 28ddedf97169c92a43b4f5321ef1511badd679a8 | [] | no_license | siumhossain/django_image_bookmark | d24c7b0df9c90ba6af166ce4bfbb84a653da5c65 | aed02908ac948751ee33ab1a2389f28a16f2f274 | refs/heads/main | 2023-01-02T16:04:53.296733 | 2020-11-01T17:49:30 | 2020-11-01T17:49:30 | 295,806,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from django import forms
from django.contrib.auth.models import User
from .models import Profile
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget=forms.PasswordInput)
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField(widget=forms.Password... | [
"sium.hossain@yahoo.com"
] | sium.hossain@yahoo.com |
6af4acb73a1b2477f9727b2cfb3af77a7b7113a2 | c04505a117b2480af2cdb0590b1f0d3754f662b0 | /l10/ml.py | 1475aecfde27074347efaba415a618d34f364631 | [] | no_license | Casyfill/liceum | b3e2778b93aaa7f9bf9c8508ea984ed89e862d9f | 3c81e75dbe94cdf23365822632d70f4ed39cd2a3 | refs/heads/master | 2020-04-15T01:19:43.578040 | 2019-05-24T13:01:37 | 2019-05-24T13:01:37 | 164,272,375 | 3 | 2 | null | 2019-05-24T13:34:26 | 2019-01-06T03:35:03 | Jupyter Notebook | UTF-8 | Python | false | false | 804 | py | import pandas as pd
from sklearn.metrics.pairwise import euclidean_distances
def _closest_N(X1, X2, N):
matrix = euclidean_distances(X1, X2)
ix = pd.np.argsort(matrix, axis=0)[-1:-1-N:-1].T
return ix
class KNN:
X, y = None, None
k = None
def __init__(self, k=5, mode='mean'):
... | [
"casyfill@gmail.com"
] | casyfill@gmail.com |
068df77da78d9f9c4d63d1297ed36939220c46db | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/MaximumXORWithElementFromArray.py | 8d3a6add849d9173bb8e6cc2be623cc92d901305 | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | class Trie:
def __init__(self):
self.bin = {}
def add(self, a):
p = self.bin
for i in range(31, -1, -1):
d = (a >> i) & 1
if d not in p:
p[d] = {}
p = p[d]
def find(self, a):
if not self.bin:
return -1
... | [
"denys@dasera.com"
] | denys@dasera.com |
7973f1494b36c6bd0548b48ed9930d0e681e7bb6 | 4869b7bfd9d0a2212238a07e950da889c7df1b97 | /pilamp_Arduino/pirobot/com.py | 4ad47be1278e4afa5c370a13b66e53d29354393e | [] | no_license | leebinjun/pilamp-robot | ebaa47515945eec802dabd71a9d78422d68c5109 | e6f5c80a25e70c56603ce23a721672f2a3610afc | refs/heads/master | 2022-07-12T17:04:39.047755 | 2020-08-17T10:26:49 | 2020-08-17T10:26:49 | 178,466,561 | 4 | 3 | null | 2022-06-21T22:36:15 | 2019-03-29T19:43:42 | PureBasic | UTF-8 | Python | false | false | 3,063 | py | '''
1 通信参数
USB转串口(TTL电平) COM3 波特率9600, 8位数据位, 1位停止位, 无校验位
2 命令格式
命令 功能 说明
#STOP\r\n | 停止当前动作 | 停止当前所有动作
#1P1500T100\r\n | 控制单个舵机 | 数据 1 是舵机的通道
数据 1500 是舵机的位置,范围是 500-2... | [
"296735774@qq.com"
] | 296735774@qq.com |
145907c6226e63690b6f6c02d9818264330f32e4 | db2b2726cb639417cefa3c7af05885a7eabdb3a3 | /srs_decision_making/src/test_client_get_milk.py | e30b291d71ff19966d6ce36083b60b512a7311c8 | [] | no_license | ZdenekM/srs_public | e6b6cc7bc60043ff2d041fa1e01aeca038bc99e1 | 7f9cb202edf4d268e889a8a28032d28d16632ae2 | refs/heads/master | 2021-01-18T01:39:43.309217 | 2013-06-13T14:23:56 | 2013-06-13T14:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | #! /usr/bin/env python
import roslib; roslib.load_manifest('srs_decision_making')
import rospy
# Brings in the SimpleActionClient
import actionlib
# Brings in the messages used by the SRS DM action, including the
# goal message and the result message.
import srs_decision_making.msg as xmsg
def DM_client():
# Cr... | [
"qiur@cardiff.ac.uk"
] | qiur@cardiff.ac.uk |
7aab484378082a7b2558f988803e247c7edd2276 | 4a1692d6d4e05d3644506ee9295edb9a14a73fab | /bushlog/apps/action/migrations/0002_auto__add_comment.py | 99484d1094695b28eb324c303e13609fef5a6349 | [] | no_license | mnbundle/bushlog | b9ffcfcaf6f9de8e7e69b57b175a30fc6bbdf237 | a8835ecd3e5283870ff7e99409f5f366d213ac6e | refs/heads/master | 2020-12-24T15:05:23.989005 | 2014-02-04T13:14:50 | 2014-02-04T13:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,391 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Comment'
db.create_table(u'action_comment', (
(u'id', self.gf('django.db.models.... | [
"jpbydendyk@gmail.com"
] | jpbydendyk@gmail.com |
2e7df6be0a51ff8a56f316e91ec19896d835c8fe | 54e295cffa0d2c3ec0e27bc11da3bed8b4711c5f | /test.py | d9e2788964aaa5a3a2bcfe34dcbd1c2aeed87bca | [] | no_license | JeremyRen95/calculator | a524ffd91eb7fc0b5e4eac2196a99f28eb3923f2 | 6b88916f4b2ceef004ea6c26a110c8680f9a964c | refs/heads/master | 2021-09-06T05:00:30.371109 | 2018-02-02T14:52:19 | 2018-02-02T14:52:19 | 118,345,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import re
# a = '(9+8+1-9+7)'
# num = re.findall('[^()]+',a)
# ret_neg = re.findall('-\d+',a)
# print(ret_neg)
# num = re.findall('[()]','1+4*2+10/2+2')
# if not num:
# print("ok")
# print(num)
aa = []
if not aa:
print("ok") | [
"398366373@qq.com"
] | 398366373@qq.com |
95e2208980e8f89d9cba786fbf38da6ce9445305 | 2e7858f4b262a2eab67b4ba33a8508e916a47803 | /apps/profiles/urls.py | cf6e97acefcbae43530ecdea131eb1f6ff4b4756 | [] | no_license | diegocmsantos/Sisquiropraxia | 9ffb546e150b9bb68b9de1b8b2a31527812d9481 | a746735ca904c1cc404f9b1565fd340acaa5ef1e | refs/heads/master | 2021-01-13T01:54:50.367537 | 2011-07-15T12:34:41 | 2011-07-15T12:34:41 | 1,937,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | from django.conf.urls.defaults import *
from views import *
from django.views.generic import ListView
from apps.profiles.models import Clinic
urlpatterns = patterns('',
# Clinic
url(r'^clinic/add/$', add_clinic, name="add_clinic"),
url(r'^clinic/list/$', ListView.as_view(
model=Clinic,
), name=... | [
"diegocmsantos@gmail.com"
] | diegocmsantos@gmail.com |
be5900df6812ff76af57a787545617e8727d006a | dd61d69d05deb1947b980e47f19e408c43064eaf | /WebScraping_BS4.py | 5ea1d45d989f55aec8ca145fab1a3efbf0c54a61 | [] | no_license | Przywek/pyscripts | 0671eeb8f6d9d41412fd25871a2a2fe062cefcad | 68dd86ae703593dff7e6a8a56846c32d3ee1a057 | refs/heads/master | 2022-12-03T23:45:36.105941 | 2020-08-31T10:47:32 | 2020-08-31T10:47:32 | 291,688,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | from bs4 import BeautifulSoup
import pandas as pd
from pandas import Series, DataFrame
import urllib.request
import urllib.parse
email = []
firma = []
telefon = []
opis = []
cat = []
url = 'https://www.pkt.pl/szukaj/wrocław/70'
url = urllib.parse.urlsplit(url)
url = list(url)
url[2] = urllib.parse.quote(url[2])
url = ... | [
"Karol.przywarty@gmail.com"
] | Karol.przywarty@gmail.com |
ac6f77c286c5a54737d0b499582781acbb4f6dd8 | f406d9c8d6ae158af5e7e4a992c2396abdd496bf | /category/models.py | 2adc06d2a9e547d83e0cd3ddade375705cf01134 | [] | no_license | eduardo99ja/ecommerce-django | 1217c401406f8f3df836f1597dfdc95d53b31359 | 5246a419646a8ad993aae9c1a5d30925e464189d | refs/heads/main | 2023-06-19T14:37:07.274889 | 2021-07-20T19:38:26 | 2021-07-20T19:38:26 | 368,293,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from django.db import models
from django.urls import reverse
class Category(models.Model):
"""Model definition for Category."""
category_name = models.CharField(unique=True, max_length=50)
slug = models.SlugField(unique=True, max_length=100)
description = models.TextField(max_length=255, blank=True)
... | [
"eduardo1ja99@gmail.com"
] | eduardo1ja99@gmail.com |
6274751a69678a3f7e7557d9f98b0dd37a693ccc | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i06-1-config/scripts/beam/xabsvalve.py | a0b2ffa078bcb7e017b5aab1010e5f0bdcd17b75 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | '''
Created on May 4, 2023
@author: fy65
'''
from gda.jython.commands.GeneralCommands import alias
from i06shared.constant import Close, Open
from __main__ import gv6j # @UnresolvedImport
print("-"*100)
print("create 'closebeam' and 'openbeam' commands - GVJ6")
def closebeam():
gv6j.moveTo(Close)
def openbea... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
e5bf1c05bb30a6a67b50fb4a73e126a6746764d5 | 78f39f26822a882da568c92b6a252fad92baef2f | /src/model.py | 1c86fbb890fd7dc336a569aed17d2b05fee084f9 | [] | no_license | mapleknight/NeurIPS-Education-Challenge-2020 | 7afab08cadd5fa9729299b5a04a9b99eaa9982a8 | db1e4fd5840875226484591b58bd3f3af6dfd72b | refs/heads/main | 2023-02-25T17:51:56.535919 | 2021-01-31T21:39:56 | 2021-01-31T21:39:56 | 332,868,374 | 0 | 0 | null | 2021-01-25T20:03:56 | 2021-01-25T20:03:55 | null | UTF-8 | Python | false | false | 3,895 | py | import torch
import torch.nn as nn
import numpy as np
from dataset import SimpleDataLoader
from utils_model import DNN, PredictionLayer, get_varlen_pooling_list
class DNN_multitask_v2(nn.Module):
def __init__(
self,
dnn_input, dnn_hidden_units, dnn_hidden_units_task, dnn_dropout,
activati... | [
"harada1262@gmail.com"
] | harada1262@gmail.com |
34a77eade82a79623a7df644f95929af9fc9a832 | 5a13b9ca352ed2f553d360723caea08ade879941 | /ee/clickhouse/client.py | 850b52f0270018106e4183d0649c225870f4daab | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | petethepig/posthog | 3f2b0228b4e6b28b115d20be05d7acf806aee682 | 9354b7ce641767c72a8b828d82232469d3532015 | refs/heads/master | 2023-02-17T19:09:11.848311 | 2021-01-20T03:16:42 | 2021-01-20T03:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,745 | py | import asyncio
import hashlib
import json
from time import time
from typing import Any, Dict, List, Tuple
import sqlparse
from aioch import Client
from asgiref.sync import async_to_sync
from clickhouse_driver import Client as SyncClient
from clickhouse_pool import ChPool
from django.conf import settings
from django.co... | [
"noreply@github.com"
] | petethepig.noreply@github.com |
7a2ec7064078a33c6c38b5e394fecf3c363d4a66 | 0d2031e4e64e6de026cb2b652fa0774de7a5fa93 | /Prelim_Split.py | 1649cd0e54c93b28bc0bce93bc1ed12eccccdf9b | [] | no_license | zoesyc/LabData | 2448da346fdfd1b1625d5ef15ebc3db34160076c | 75d35f7aaaeac5169b3631a1756a1917cc227ea5 | refs/heads/master | 2020-03-25T21:43:47.575658 | 2018-08-09T18:11:04 | 2018-08-09T18:11:04 | 144,187,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import pandas as pd
import datetime
import numpy as np
sample_data= pd.read_csv("LIWC_INFO_separated.csv")
#split first column into userID and date
sample_data['userID'], sample_data['date'] = sample_data['A'].str.split('_', 1).str
cols = sample_data.columns.tolist()
sample_data.pop('A')
print(sample_data['us... | [
"noreply@github.com"
] | zoesyc.noreply@github.com |
58296791641bfed262d38cf1549a1dcee419686c | f593e99820ae6303ca376ee8017d20612d0b56cc | /EEBO/plot/plot_timestamp.py | 7c831d9271970aca40759556d70772b97452b1d4 | [] | no_license | jinsuk3377/EEBO | f2af7ec9ff27508715677f7e3b975cb6373debd3 | 5668e66153cce01912747bee7aecdb58f266cac1 | refs/heads/master | 2021-01-10T09:09:49.086953 | 2017-06-01T08:59:09 | 2017-06-01T08:59:09 | 55,690,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py |
def dates_to_dayXmonth(self, df_in, z_in):
# http://stackoverflow.com/questions/31613018/datetime64ns-to-timestamp-string-in-pandas
dates = pd.DatetimeIndex(df_in['Date']).to_native_types()
# (1.1) List of months for all item in dates
months = np.array([datet... | [
"jinsu_000@172.25.231.165"
] | jinsu_000@172.25.231.165 |
74e194fc3e04fa5805a6b189358c39e4059dfa22 | 77c95bfc3ad20f97811bba81fd054085c6164283 | /api/photo_app/models.py | 56f83dcc7e11c446ca1e7a15ab3855be2330929b | [] | no_license | gabrielascalon/insta-ish | ff02d03d42665631db20d3df62b24b2eb7d8a68c | 8c4731a311450e04f31390618f220614dd3d4deb | refs/heads/master | 2020-04-02T16:03:34.632984 | 2018-12-07T14:01:27 | 2018-12-07T14:01:27 | 154,596,186 | 1 | 0 | null | 2018-12-07T14:01:29 | 2018-10-25T02:09:55 | Python | UTF-8 | Python | false | false | 1,990 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import AbstractUser
from rest_framework.authtoken.models import Token
class Post(models.Model):
user = models.ForeignKey('photo_app.CustomUser',
on_delete=models.CASCADE)
image = models.... | [
"gbscalon@gmail.com"
] | gbscalon@gmail.com |
f8127d18907ab72e9a9bcccad195d23048816dea | cb31b6014707c22be9dae9bea5616438db4cfdbe | /spark-python/2_pair_rdd/aggregation/reduceByKey/WordCount.py | d2e03d323f033e61520ef4a78821afed96c3b942 | [] | no_license | kanghuawu/SparkTutorial | ef67c877e2b6dccec79cc14b2eeeb14c96165fe5 | 7f7610e5eb9e0026005d329b80ab6fa63dfba05f | refs/heads/master | 2022-11-23T17:34:44.244839 | 2018-08-28T19:49:19 | 2018-08-28T19:49:19 | 117,383,252 | 0 | 1 | null | 2022-11-11T07:32:37 | 2018-01-13T22:24:41 | Jupyter Notebook | UTF-8 | Python | false | false | 540 | py | import findspark
from pyspark import SparkContext, SparkConf
findspark.init(python_path='/Users/khwu/.virtualenvs/spark/bin/python3')
if __name__ == '__main__':
conf = SparkConf().setAppName('word_count').setMaster('local[*]')
sc = SparkContext(conf=conf)
sc.setLogLevel('ERROR')
res = sc.textFile('../... | [
"kang-hua.wu@sjsu.edu"
] | kang-hua.wu@sjsu.edu |
0e3d2dff423336e512ecb9ecc638bacbfa8ad8f6 | 4c93477d6e0e7e4915c07801dee1f541d6b6978d | /Bluetooth_earphone.py | d04db5c46b9895017e7070062b46e280b1f9e916 | [] | no_license | holyrocklee/Automation | f70078d7bab76bc01582f05c43bbb0945ca80035 | 6f4d7381d74e81aa394b11670cdf5d4e398a9dd2 | refs/heads/master | 2020-05-22T03:08:55.662606 | 2019-06-02T03:18:14 | 2019-06-02T03:18:14 | 186,207,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | # -*- coding: utf-8 -*-
# Author :Rocklee
# Time :2019/5/25 12:24
from bs4 import BeautifulSoup
from offer.projects.Automation.requestutil import requestutil
import re
from offer.projects.Automation.excel_util import excelutil
requtil = requestutil()
def capture(url):
global requtil
requtil.setUrl(url)
... | [
"773802136@qq.com"
] | 773802136@qq.com |
37a13e54657ebdf83dba7df6f9561ca7c1e78f5f | 7ef06872757e36c700d314933d420a94a1e0f77b | /JPMC_pythonTest/decorator/inpOut.py | f9321111e65c331264b58bf5965ce3023a452c71 | [] | no_license | pallavipriya3009/Learning | 7228cd0ea629be9d98d332e31d59e32f402e6b82 | 3e87da690a3f1c04b101ad269a6dc3eda6d87851 | refs/heads/master | 2021-01-17T16:29:53.766768 | 2016-06-16T02:40:30 | 2016-06-16T02:40:30 | 61,256,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | __author__ = 'pallavipriya'
def d_decorator(func):
def foo(name):
print("Before call {}".format(name))
print("after call {}".format(func(name)))
#print "After decoration the return is {}".format(func(name))
return foo
@d_decorator
def fun(name):
return name + "bhagwan"
fun("kris... | [
"pallavipriya@MacBook-Air.home"
] | pallavipriya@MacBook-Air.home |
09372ea47acb594ecf2ce5423faaad41cc512a92 | 5df62a530078c60cfbce1f12620c6bc1842592ea | /preprocess-intersection-detail.py | 031c6d29de2e7fa1287ef159a5c92dd555d355c5 | [] | no_license | yuta-ubiquitous/traffic_mining | 2a2dd4e0dc5409af213e399509768a6b35188724 | f60a973d1ba7641d69d203af196bb60a5927442c | refs/heads/master | 2021-01-10T01:11:00.087110 | 2016-03-08T10:19:08 | 2016-03-08T10:19:08 | 48,402,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,915 | py | #-*- coding:utf-8 -*-
import os
import codecs
import json
import sys
# MAX_ROW = 8870
MAX_ROW = 0
if __name__ == "__main__":
print "*** preprocess-intersection-detail.py ***"
output_name = "./traffic_data/trafic_data_intersection_detail.json"
h22 = codecs.open("traffic_data/h22.csv", "r", "utf-8")
h23 = codec... | [
"yuta-ubiquitous@outlook.jp"
] | yuta-ubiquitous@outlook.jp |
8610253456d6ee76dbeb1d6b6516f2167307a36e | cbb3ff933ecd7c113eb5740d1206caf8e099c599 | /communityapp/communityapp/settings.py | b712c2ab17014192ae9e5081e1e364d267b654b1 | [] | no_license | userzeroc/communityapp | 1cbb2a0021d124f9cfb2f9eec9e30e5c1d40f04b | 9bc2300c18f74b03706896cf43d0d6d9bbdd0725 | refs/heads/master | 2021-01-15T04:55:08.625686 | 2020-02-25T01:38:03 | 2020-02-25T01:38:03 | 242,884,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | """
Django settings for communityapp project.
Generated by 'django-admin startproject' using Django 2.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"972763474@qq.com"
] | 972763474@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.