blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
128e3552fba11da5d11b9eed232b4459e42a308a | 215f92fc89aec2bcdb5e1c111da5dbd5d48375ce | /01demo练习/thdemotwo.py | 9ee992accebdb5b730f35c46b89e5ffa3ca28a0e | [] | no_license | dugzzuli/kerasDemo | 2d5f2d9397ee29a116227fcd53eaf9198c0a582e | 877b9b0654ba48d265d44a3921dcbacaa0da68ed | refs/heads/master | 2021-01-20T11:39:27.068016 | 2017-03-05T09:47:06 | 2017-03-05T09:47:06 | 83,959,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import tensorflow as tf
a=tf.placeholder(tf.float32)
b=tf.placeholder(tf.float32)
add=tf.add(a,b)
sess=tf.Session()
binding={a:1.5,b:2.5}
c=sess.run(add,feed_dict=binding)
print(c) | [
"bingwei2642@qq.com"
] | bingwei2642@qq.com |
c525825e7355610203d2e7630a60c974092775c3 | 84cdb06106bd3ab0d953cb449bbb7601e012f843 | /AN_setGlobalFrame.py | 944312dd0bbd33220a5fac9b6f944546378cc88a | [] | no_license | chibi-ta/nuke | 73b956548bb1b885ecddcc3473c983c5eb523f0e | 10f3f610c8559833dc2082b53d02c4c462ac299e | refs/heads/master | 2020-08-15T07:33:50.193365 | 2019-12-16T08:48:22 | 2019-12-16T08:48:22 | 215,301,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | ###############################
# set global frames
#
###############################
| [
"noreply@github.com"
] | noreply@github.com |
b840655eac84395212fa9eeaf096d52cc1716142 | f683b3f8fc87c831d17038d5aeb19811bd95838c | /model.py | 0f8639d8d2a3e5bc914824bb949500068287fd58 | [] | no_license | mpslxz/3d-mri-brain-tumor-segmentation-using-autoencoder-regularization | 530a03c84e1337e2421ea733519f46ffaa4a7b96 | 6d19dfbf1ba4a3bb620721c8c254355fa62e9db0 | refs/heads/master | 2020-05-25T17:13:51.568880 | 2019-05-15T15:35:10 | 2019-05-15T15:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,287 | py | # Keras implementation of the paper:
# 3D MRI Brain Tumor Segmentation Using Autoencoder Regularization
# by Myronenko A. (https://arxiv.org/pdf/1810.11654.pdf)
# Author of this code: Suyog Jadhav (https://github.com/IAmSUyogJadhav)
import keras.backend as K
from keras.losses import mse
from keras.layers import Conv3D... | [
"suyog.jadhav1@gmail.com"
] | suyog.jadhav1@gmail.com |
3731fec82bb9260c5221238d2534ad1e78cd1e48 | b06183c3dafd1632a7ac4ff2774f00df65952598 | /projectpages/migrations/0008_add_default_for_unused_title.py | 35713cf7c1e8db15bd2f5f9c952d73b56226a89f | [] | no_license | xinyil/cdh-web | 6fd85ec0787bd2bbfcebfe5e294b5241a247d0a2 | 1d999332411e08a7b1173fdb990625bdac4ba8cf | refs/heads/master | 2021-01-23T21:47:11.694494 | 2017-08-29T18:37:25 | 2017-08-29T18:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-01-31 18:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projectpages', '0007_project_app_remaining_verbose_names'),
]
operations = [
... | [
"benjamin.w.hicks@gmail.com"
] | benjamin.w.hicks@gmail.com |
00bab8ef4a3912126a0038c0f792df4ab9d600f2 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/ipv4_unicast/prefix_limit/state/__init__.py | 0c7bd21e99cb56313e90bd719a179419b589f0d2 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 30,854 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
08e32712de6dfc74682fa18f88f2835ce5668717 | 18b3ad3b0e1f7f10969738251e1201d01dfbc6bf | /backup_files/practice/gen.py | 661be7c0dbbedce50723d0e3a8dbccd475d5b3ee | [] | no_license | sahthi/backup2 | 11d509b980e731c73733b1399a8143780779e75a | 16bed38f0867fd7c766c2a008c8d43b0660f0cb0 | refs/heads/master | 2020-03-21T12:39:56.890129 | 2018-07-09T08:12:46 | 2018-07-09T08:12:46 | 138,565,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | def fruits():
yield 'mango'
yield 'apple'
yield 'banana'
a=fruits()
print next(a)
print next(a)
| [
"siddamsetty.sahithi@votarytech.com"
] | siddamsetty.sahithi@votarytech.com |
b6d8eb75dbd9e88603c435cc6ffd7e2e57ec9f3a | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/compute/claims.py | e9f0cfb779698b649b32e293be86a6086a17fee7 | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,496 | py | # Copyright (c) 2012 OpenStack Foundation
# 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 ... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
683f0fedb24262051c20c75fd23485ddd7391ca7 | d411108f449cd6f3d96e16ec5d6f53558f3cce92 | /api/model/list_model.py | eb7c8079943d4824c77f4a630327ca89c01ad41a | [] | no_license | lameay/mm-rest-api | 557a020977933e0f48a84cbcdfbc2095663a14f0 | 869e8165d08f658969a8cb115faf2f2a0405208c | refs/heads/master | 2020-03-19T05:36:13.681720 | 2018-06-05T20:20:57 | 2018-06-05T20:20:57 | 135,947,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | uploads = []
def add_upload_to_hist(file_details):
uploads.append(file_details)
def get_upload_history():
return uploads | [
"leimeih@gmail.com"
] | leimeih@gmail.com |
ca72386ff7abf199881fcdd9533553feadeba21e | 153fade36c325e603c20b4cadef330ff512d647e | /main.py | a1febf6a280484ad0a8e720c3d782f87bdbf0a8f | [] | no_license | jaideepmurkute/Multi-purpose-Disentangling-Variational-Autoencoders-for-ECG-data | cbed432ddc71824008d06967fc6290e40a029582 | 1411f68439136b478119ec97ec51b5be2f3b4247 | refs/heads/master | 2022-12-12T09:18:33.436800 | 2019-11-09T23:21:01 | 2019-11-09T23:21:01 | 220,714,205 | 2 | 0 | null | 2022-11-22T04:18:17 | 2019-11-09T22:56:23 | Python | UTF-8 | Python | false | false | 21,718 | py | import os
import time
import argparse
import numpy as np
import matplotlib.pyplot as plt
import torch.nn.init
import torch.optim as optim
from torch.optim.lr_scheduler import ExponentialLR
from gvae_ecg.trainingVAE import train, test, train_unsupervised_classifier
import sys
# from utils import get_data_loader, get_mod... | [
"noreply@github.com"
] | noreply@github.com |
5323b41765e2d837b833cbcbff34ca4b7956d4b6 | 2a03b71e74d61163df4963b59680779a894157d7 | /src/GUI/objectDel.py | 39f90dcb15b8ce8f3846ce43a7ecc9f327058010 | [] | no_license | flammer222222/surgutGAS | 72ceb003ebe65296767d234924ea8844ba0ffe20 | 9f308b94e91b68f2c76ef4e4ee982e73f3611120 | refs/heads/main | 2023-06-17T18:47:07.206945 | 2021-07-22T10:48:31 | 2021-07-22T10:48:31 | 369,439,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'g.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################... | [
"noreply@github.com"
] | noreply@github.com |
3c504eebb43342f64f0935276470ec1c675b95fe | 79c87411cc51a92c6a802dc0c058468f6e9ed0bf | /aptfinder/scraper/settings.py | e00e467fa9ca087da0c0e1072770e87cf59695e9 | [
"MIT"
] | permissive | steinitzu/aptfinder | 34920b27cc05730925016a39adb27f0b897cbd00 | bea9353a825478ab924fc5ffe1e8e2e4e4a3955c | refs/heads/master | 2021-05-04T09:04:37.373874 | 2016-11-15T14:43:34 | 2016-11-15T14:43:34 | 69,709,417 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | # -*- coding: utf-8 -*-
# Scrapy settings for aptscraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lat... | [
"steini90@gmail.com"
] | steini90@gmail.com |
9ad1dd7635bb00b203c18388b0dc6c26a88cfaae | cf8e81a3833f81565db7ebc23ca795ca769a0ecf | /task/migrations/0007_auto_20210210_2106.py | 0f3bfc0878cab62d58a01b663c6e2de5d30dc435 | [] | no_license | woozlic/EmailSender | 510f704aa5c00fa263eca87bb16fe29607d21ff7 | de2b12117f4c4410ffeeae6f8201a92edbdc2ade | refs/heads/master | 2023-03-02T00:59:31.229611 | 2021-02-14T17:10:51 | 2021-02-14T17:10:51 | 333,693,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Generated by Django 3.1.5 on 2021-02-10 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('task', '0006_auto_20210210_2023'),
]
operations = [
migrations.AlterField(
model_name='license',
name='date_end',
... | [
"sampaccs@mail.ru"
] | sampaccs@mail.ru |
f1d138b08723bdd45adf1f3d7addcc9c4f943b75 | 99fd07f6db5b564285c6bc5463801b0c7f3ae6d5 | /50 Pow(x, n).py | e03e629babb3fc0f9ad1a62e716d9a40aeb45cc2 | [] | no_license | Celiacaoyanan/LeetCode | 0ad3da059b6cb74d405ff4b349ec82682e963530 | 8ddd236d90e753cc91e3c08d9ea540d31041291e | refs/heads/master | 2020-04-16T09:32:02.209018 | 2019-02-27T04:45:32 | 2019-02-27T04:45:32 | 165,467,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | class Solution(object):
def myPow(self, x, n):
"""
:type x: float
:type n: int
:rtype: float
"""
if n==0:
return 1
if n<0:
return 1/self.myPow(x,-n)
if n%2==0:
return self.myPow(x*x, n//2)
if n%2==1:
... | [
"noreply@github.com"
] | noreply@github.com |
8e41ae56d4e3027e611d8039cedae09c60b3e69b | 1fb9909751f875a86bcf49a3f5ac9eb106fe7e6b | /Main.py | 008e03a200fb7c92e4f2183caaee4712bbe893d7 | [
"MIT"
] | permissive | madevelascom/MineSweeper | 38beec598efcb5d546902abffe57645f6319fecd | 8e2ad816c216df78c52ac1f28b4603ff04a85fdc | refs/heads/master | 2021-05-29T11:21:30.129749 | 2015-10-24T06:25:35 | 2015-10-24T06:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,241 | py | ################################################################
# -*- coding: utf-8 -*-
# Title: Buscaminas
# Developed by: Madelyne Velasco
# SavedVariables: board, match
# Notes: Minesweeper game that supports different size games.
# It can save game on files and load them later.
# TODO: Support several languages
##... | [
"mvelasco93@users.noreply.github.com"
] | mvelasco93@users.noreply.github.com |
4aaea11d748bd58774a48e24347a85f4a811c11d | 3369d14cabd82bcb1c889f5650adb8e73a23d5fa | /fileManager/migrations/0001_initial.py | e397f401bb5cf57a3b2eed2ae5b7ac234a93ed5b | [] | no_license | ckyle93/SlugChat | f371aeb7ba4eb6e53b3ba4951949e810333e61b7 | 5ca92ca322476a6384049be261d1f8dd1668c18f | refs/heads/master | 2021-01-15T15:37:19.259980 | 2016-06-06T19:30:28 | 2016-06-06T19:30:28 | 55,637,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-06 09:11
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0001_initial'),
... | [
"josephmfaulkner@gmail.com"
] | josephmfaulkner@gmail.com |
cf601c0ee15a68156018bb68a475e88866cae0dd | 52365d5de86c1ed716834b69b6f4f21ca486d8cb | /mainWin.py | 39f9c439f736e2a0b6e2675243d10223c9d31928 | [
"MIT"
] | permissive | ImTheSquid/Image-Duplicate-Detector | f03bf579cad0c0dfc5eb2a86aee35b1a2cc636b1 | de97b0b4003c6e92ca826c338e28dca04ca26e89 | refs/heads/master | 2020-08-22T00:52:29.655719 | 2019-11-29T17:04:38 | 2019-11-29T17:04:38 | 216,284,371 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import sys
from PyQt5.QtGui import QIcon, QPixmap, QImageReader
from PyQt5.QtWidgets import QApplication, QWidget, QTabWidget, QHBoxLayout
from albums.main import Albums
from date_sorter.main import DateSorter
from duplicate_finder.main import DuplicateFinder
class Runner(QWidget):
def __init__(self):
s... | [
"jackhogan11@gmail.com"
] | jackhogan11@gmail.com |
c6649a36faead5e54e1936c6f3778dc240ebcc15 | edd7d92bc969fc67cf9a453fb8765fc72c935841 | /DataManager/ibdtb_db.py | 1d7c0f6d9b4f46a4cad576a5b8d0a7ef078db217 | [] | no_license | ibd-zhe/tbcrawler | 31a924f4f51dbe789de9b8a885b019efe8c08e02 | a85f55331567c77ad511c5de1693d7b27b5a2704 | refs/heads/master | 2021-01-12T16:15:00.904735 | 2016-10-28T06:14:20 | 2016-10-28T06:14:20 | 71,960,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import psycopg2
ibd_dbinfo = "dbname='ibdtbdata' user='ec2-user' host='54.223.65.44' password='8326022'"
class IbdDB:
def __init__(self):
self.dbinfo = ibd_dbinfo
self.con = psycopg2.connect(self.dbinfo)
self.cur = self.con.cursor()
def insert_item(self, item):
self.cur.execu... | [
"172329313@qq.com"
] | 172329313@qq.com |
e675ecdd11aba2438113bae9622a34b521bfcb1d | 908f005cd9c6254a3c6a9bf2934f9321993f1891 | /w3schools/STOP PYTHON FUNCTIONS.py | 437ddf2de0668229574fd9e093f03c340723e470 | [] | no_license | AdrianoKim/ListaDeExerciciosPythonBrasilAdrianoKim | b08efc21fc349af19ca841ec05f335cbf93e0277 | dacb014d874af8ffb71d4b681e683acff58e6fa0 | refs/heads/master | 2023-04-30T05:24:45.616970 | 2021-05-18T17:58:16 | 2021-05-18T17:58:16 | 346,440,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,067 | py | # A function is a block of code which only runs when it is called.
# You can pass data, known as parameters, into a function.
# A function can return data as a result.
# Creating a Function
# In Python a function is defined using the def keyword:
# Example
def my_function():
print("Hello from a function")
# Ca... | [
"kimzerapqp@gmail.com"
] | kimzerapqp@gmail.com |
da61153658c1a1546d199a5ffc3fdae21b1a6eee | 6a95d5ae90dcf6533efbafd8d2262584f7edec2f | /eventsys/asgi.py | f4d3bfd62e339de481e6e0fa20044202d034e501 | [] | no_license | nischal7777/Event-Management-System | 2c255fdd2dc079726d4795094314d0417320c23e | aa94c21dea82313e1ca79aff381b99ca0ae583b9 | refs/heads/master | 2023-06-01T14:08:00.680481 | 2021-06-25T07:00:23 | 2021-06-25T07:00:23 | 380,153,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """
ASGI config for showtracker 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefa... | [
"nischalbasnet58@gmail.com"
] | nischalbasnet58@gmail.com |
aa988b8ce259daf5db64411098ac0f04dcfd25b1 | 1bedc95b9f3cd18d540f75920cbd9d1e70ce09be | /asset_management/migrations/0002_auto_20210318_2141.py | b2ae986c7a13de1182622c20d999edb37520db40 | [] | no_license | kchikweshe/mysite | 4d0538515695948212835e7dffc950295e90f4fc | 7e6e75a2ceb6d0458bb5913789da272774be3ea5 | refs/heads/main | 2023-04-16T13:50:37.590142 | 2021-04-02T15:51:28 | 2021-04-02T15:51:28 | 349,225,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # Generated by Django 3.1.5 on 2021-03-18 21:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('asset_management', '0001... | [
"kombogc@gmail.com"
] | kombogc@gmail.com |
15cc026caf92e686cd434e555486d7c738f54164 | bd2ddf9e3ed52bdc3e2f21a6d84efc05019cc6b0 | /Python/chapter2/2-6/while-simple.py | 1e243ce202db70161fe52b11ce142fc3044dba58 | [] | no_license | YosukeKira/main | c59bf564e8414ed2c33c914d4df8fb8ff4906c85 | f4331a18b2b7fc3f987dc8409e73485d2915e550 | refs/heads/master | 2023-01-09T19:16:57.641270 | 2020-11-09T03:56:23 | 2020-11-09T03:56:23 | 274,428,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | energy = 3
while energy > 0:
print("+ 走る")
print("| energy=" , energy)
energy -= 1
| [
"yosuke.kira.12.21@gmail.com"
] | yosuke.kira.12.21@gmail.com |
9c1daed847874624035b1c28f070d58f2460cf58 | 4a9c183aa131ccf6d06489f9ab217e7930c2fa04 | /Tarea Phyton/base.py | cd47c2f9810ee4931d1dfb63cb7f611376c9c894 | [] | no_license | compilador1980/tarea_phyton | 0a5ccdd87c0c1ed6c70394a0e155c272e1f5eea6 | 33d9acd04a3b9f9ec5f450c16b239e1b9a87ef09 | refs/heads/master | 2020-05-21T11:39:50.814671 | 2013-06-04T15:20:57 | 2013-06-04T15:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | from Elementos.funciones import *
print suma(5,5)
| [
"rafaelava@hotmail.com"
] | rafaelava@hotmail.com |
513f57e248f69bb6f41548255f8ac3f79b75b5c9 | 361ea993eabd156d08de7bba73590634a405799f | /worksheets/tasks/problem1.py | e2d01e1a8ff5352d71a6bc36753ea5b5d523c0ec | [] | no_license | mucahidyazar/python | 0237a974e3082ef44c5b596001dede5b0a08be57 | a3226b8d438f0f775b3150dc3ad1d35cc58bea15 | refs/heads/master | 2022-12-06T16:52:05.795931 | 2020-09-02T16:51:28 | 2020-09-02T16:51:28 | 289,234,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # Problem 1
# Kullanıcıdan aldığınız 3 tane sayıyı çarparak ekrana yazdırın. Ekrana yazdırma işlemini format metoduyla yapmaya çalışın.
x = int(input('x = '))
y = int(input('y = '))
z = int(input('z = '))
print("x+y+z'nin toplami = ", x+y+z) | [
"mucahidyazar@gmail.com"
] | mucahidyazar@gmail.com |
805f1d32454909b54dac3af8aaf26dbb5b664b24 | c3b7ec12befaefc91bcba7f73a10c885969ef39c | /africastalking/Service.py | 65d3ddb4e7c58a21542f3fa01b3b680e0bfbdd5f | [
"MIT"
] | permissive | Dickens-odera/africastalking-python | 02db5fa8b90be3becad335bee547d677f1feb147 | a4e43a89d879bd2892e0efed7f3299e9eb87065c | refs/heads/master | 2020-03-30T07:06:32.500469 | 2018-07-17T13:23:32 | 2018-07-17T13:23:32 | 150,915,743 | 1 | 0 | MIT | 2018-09-30T01:02:06 | 2018-09-30T01:02:06 | null | UTF-8 | Python | false | false | 4,120 | py | import re
import threading
import requests
def validate_amount(amount_str):
try:
parts = amount_str.split(' ')
return len(parts[0]) == 3 and float(parts[1])
except ValueError:
return False
def validate_phone(phone_str):
try:
return re.match('^\+\d{1,3}\d{3,}$', phone_str)... | [
"aksalj@aksalj.com"
] | aksalj@aksalj.com |
3dc6d25443509139669e6dbf8c8c93942bb0ab79 | d94aee0c3f625f2897e96d8bdc6c415085b8b28a | /zquery/zquery.py | 4de8c4ded7f358d1ca845bf973bf6cd70b5c4544 | [
"Apache-2.0"
] | permissive | scalershare/zquery | 947901ab8cb7f0861f8f0d1e9e8b61260a7062b0 | 8c27afe25c0e5282b39f678d18521ee7c3d06cef | refs/heads/master | 2021-01-16T18:38:06.734682 | 2016-11-12T14:05:04 | 2016-11-12T14:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | """query via command-line.
Usage:
zquery [(-q|-r|-a)] [--depth=<co>] <user>
zquery question <url>
zquery answer <url>
zquery column <url>
zquery post <url>
zquery collection <url>
Options:
-q 提问
-r 回答
-a 文章
--depth=<co> 显示的条数
Example:
... | [
"wisedoge@outlook.com"
] | wisedoge@outlook.com |
7646204379447b56955aa6b303fab717d7518a76 | 8c16f31749e45bc3ade4488e1d8cdd4dae38ee84 | /musicdb/songs/migrations/0004_auto_20201212_0545.py | 75ff2e7aec44c04f8e04c48ce4c2dca643c3d6c9 | [] | no_license | kcinesser/musicdb_rest_api | d4608ef726fc873440940b2a34a8c47b8cf472b3 | da1de4fe91452562cb8b68674d8668c1e994af96 | refs/heads/master | 2023-01-31T19:07:03.907157 | 2020-12-17T01:53:23 | 2020-12-17T01:53:23 | 322,148,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.1.4 on 2020-12-12 05:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('songs', '0003_auto_20201212_0535'),
]
operations = [
migrations.RenameField(
model_name='song',
old_name='difficult',
... | [
"nicolas@Nicolass-MacBook-Air.local"
] | nicolas@Nicolass-MacBook-Air.local |
f7edda16292b591d72e168d21f307677e7e9cd64 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/compute/azure-mgmt-vmwarecloudsimple/generated_samples/list_rg_virtual_machines.py | 3350eb2ce4267329d7b095ad8ffd006d48a546b2 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,585 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
7e6593ea570407037b2fff5467b21a19f35f5438 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2396/60686/288174.py | 2d7453bac84ec6803ea496e9177bc52bf1c47762 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | nums = int(input())
list_input = input().split(" ")
for i in range(nums):
list_input[i] = int(list_input[i])
res = []
for i in range(nums):
index = list_input.index(min(list_input[i:len(list_input)]))
list_temp = list_input[i:index + 1]
list_temp = list_temp[::-1]
for j in range(0, i):
list_... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8b924c4c2f536c2a4bd0c98da670d5f52b10d4be | 9dd54195eb65db228c3e3e7afad3f3031718262c | /cryptanalyzer/cryptanalyzer/wsgi.py | bdd565cda73ae64afff9d8a54561bbde519bfe9f | [
"ISC"
] | permissive | curioswati/crypt-analyzer | ffc22004d6424623922243d106263e2eb0558049 | 2ae73f58afdeaa6d01410b77bb995f2202eec2d9 | refs/heads/master | 2021-07-21T09:19:59.832497 | 2021-02-24T12:35:55 | 2021-02-24T12:35:55 | 98,267,603 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | """
WSGI config for cryptanalyzer project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import ... | [
"jaiswalswati94@gmail.com"
] | jaiswalswati94@gmail.com |
2d4c9254e4b6499f0dca587712dccea2c14e09bb | 39d79f3c6836e8d8db8f6a2350e9ae418fdeb8bb | /RecetarioApp/RecipesApp/migrations/0001_initial.py | 34b14d958f1f4e793949a7088cae47e286c5fa86 | [] | no_license | ValentinaAlvarezG/eomma-recipes | e43ec371f5201cf4821a3cc765d6c8e81f83858a | 45a6ebaca2487a2d11c8f2ec2ca46e7083ddbc2a | refs/heads/main | 2023-02-02T07:11:00.172602 | 2020-12-20T18:06:16 | 2020-12-20T18:06:16 | 323,133,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | # Generated by Django 3.1.2 on 2020-12-19 14:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"vjalvarez@uc.cl"
] | vjalvarez@uc.cl |
1c612e0688255c02261a66a580a34cbb8785ef5e | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_molecular_dipoles12.py | c946740f9db569853440eec47ddb4d64ed167222 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each490 import _each490
class _molecular_dipoles12(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Fil... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
246a7f0a4d97f481a539bf00d26b59aad288ed45 | bfed97badbe18122b95ca078b6a0275450f4c709 | /mysite/settings.py | b06e6258e2820abfdf66ca65448100a7acc01516 | [] | no_license | shimogapradeep/djangogirls-tutorial | 4ed54a00d9569e36b795c2b9ae325ad5554cd724 | 471e536da7b19caeff10a30eb18167007b24e3b6 | refs/heads/master | 2020-09-10T14:18:25.028378 | 2019-11-14T14:05:27 | 2019-11-14T14:05:27 | 221,713,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.7.
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 os
# ... | [
"shimogapradeep@gmail.com"
] | shimogapradeep@gmail.com |
c5f1a956ced0101d5d8e487eb64c882b5e31f804 | 962126ab3f110e9dc1753e09d2c23bcad5690069 | /src/cosmos_to_caaj/src/main.py | dfd465d6b70ad6628648b9a2649c7ad9762be7a2 | [] | no_license | shuremura/defiscan | 5d592402b80e5b2c33d7628d081a611037f9bee7 | e955cfe6e314690ab29df3164a1e99988e01aa8f | refs/heads/master | 2023-08-28T12:30:38.692797 | 2021-10-11T15:05:50 | 2021-10-11T15:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import requests
import time
import sys
import logging
from caaj_plugin.caaj_plugin import *
from cosmos_to_caaj.cosmos_plugin import *
from cosmos_to_caaj.transaction import *
from decimal import *
from datetime import datetime as dt
import pandas as pd
import os
logger = logging.getLogger(name=__name__)
logger.addHan... | [
"ywakimoto2s@gmail.com"
] | ywakimoto2s@gmail.com |
52870074aa71e5403e15d8242cf9e372287fba8d | 4f8e24a29f9e89d47b389ef4aa912789aec00419 | /app/views/search.py | 34fc0565cb30ee7601ecffb7e37f30202ad18d93 | [] | no_license | rahulrathod07/task | e770948c394b081632b31801e13a8781a2ea867c | 30f1575a3363ce07755d2f0ff8a92c3af7963e6c | refs/heads/master | 2023-04-01T21:42:56.124081 | 2021-04-04T16:35:41 | 2021-04-04T16:35:41 | 343,816,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | from app import app
from app.auth import token_required, admin_required
from app import db
from app.models import Movies
from flask import jsonify, request
# Search movies
@app.route('/search', methods=['GET'])
@token_required
def search_movie(current_user):
filters = []
name = request.args.get('name')
if... | [
"rrahulrathod07.com"
] | rrahulrathod07.com |
05cbf10f9f57b4968c60c2c9250f317ccae6996c | 2eb0f5cfbcbac633c7f052fc1c971c7bd0436779 | /查找/二分查找.py | c984a0a2df12dc1bdf3c24403cc533faff716d5e | [] | no_license | yukkiball/Python-Algorithm | 209781bddac91df6633e0211bed0a7c5a9ee9643 | 2d8fb53074d67d0d78d4e253cafeca1eaf0d4e88 | refs/heads/master | 2020-05-25T11:02:27.083976 | 2019-05-23T12:16:18 | 2019-05-23T12:16:18 | 187,771,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | def search_rec(list, x, lo, hi):
"""递归版二分查找返回小于等于该元素的最大秩"""
if lo > hi:
return lo - 1
mid = (lo + hi) // 2
# if list[mid] > x:
# return search_rec(list, x, lo, mid - 1)
# elif list[mid] < x:
# return search_rec(list, x, mid + 1, hi)
# else:
# return mid
if lis... | [
"dairuilin@126.com"
] | dairuilin@126.com |
27ef5b55f149267aaed782727e3bcb637e9e1835 | e6372d9ef1eb7c328a19e7119ef97dbc73916477 | /.configs/sway/status.py | b759f0c9f802d86b5139fa9d2441c8144e59a387 | [] | no_license | DOCgould/ChristiansConfigs | 02be8779fc71d60d039ee47aa5c9b96294b326f1 | 3cc279514a499307902e0026b0fc03a50402cac6 | refs/heads/master | 2022-09-15T06:01:51.093997 | 2022-09-05T23:03:30 | 2022-09-05T23:03:30 | 181,237,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #!/usr/bin/env python3
from datetime import datetime
from psutil import disk_usage, sensors_battery
from psutil._common import bytes2human
from socket import gethostname, gethostbyname
from subprocess import check_output
from sys import stdout
from time import sleep
def write(data):
stdout.write("%s\n" % data)
... | [
"noreply@github.com"
] | noreply@github.com |
02b2836472461122ca19ee0c6866835e1f5e0dba | 8131f0053b4a38e4c4769e7e143d51369b23cc95 | /scripts/analyse_dataset.py | 6e72eb45e5190e0663a99f96f8c6760d1160c504 | [] | no_license | yungsalami/linuxtest | 9af756038777c99a505b70f0f66adaa98cc32438 | 0d7442bd78f9899536a109e87a4c4639ade82a58 | refs/heads/master | 2023-06-07T23:42:39.301111 | 2021-07-03T08:06:14 | 2021-07-03T08:06:14 | 379,878,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | import click
from pathlib import Path
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm
import pandas as pd
from project_a5.io import read_particles
import pickle
def reconstruct_direction(features):
# This is a dummy reconstruction.
# Do not change.
return (
... | [
"rune.dominik@tu-dortmund.de"
] | rune.dominik@tu-dortmund.de |
811b79b6db9f4dacb0b1d77a35e3f002726487bd | 2cf9dc082fc1d61154d31c7e234e75c47ac85262 | /stayfresh/stayfresh/settings.py | b3d419d511aadcd4592d799bbbe5c056f3fb8af6 | [] | no_license | ianthpun/sfproject | dfdc86564effcca2fdf797a66d08853f536b223e | a44274b1a3de5a4e4668233852fb9f73044ee364 | refs/heads/master | 2021-04-06T20:47:18.939484 | 2018-03-14T20:31:21 | 2018-03-14T20:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | """
Django settings for stayfresh project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"itpun@sfu.ca"
] | itpun@sfu.ca |
9de897c9dcbfa33cbc463cd5adaa0f6fe4e75f18 | 195f6b6c52a27b307bc1b35d35f851bf06b45e1d | /papers/TSE_SI_2020/stage_1.py | 5c6ab250ff91d88f5926c8dc55dbb3d8af4ce0b0 | [] | no_license | SoapClancy/Wind | 2f3bf4648584ec0c5ff48fe255b1e9d6c1b9798a | 33bf7c91c3cc6e075026356d51d5a7c8de2de3df | refs/heads/master | 2023-06-12T01:35:21.736828 | 2021-07-04T11:56:10 | 2021-07-04T11:56:10 | 274,250,027 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,164 | py | import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
from Ploting.fast_plot_Func import *
from project_utils import *
from prepare_datasets import WF_RATED_POUT_MAPPER, NUMBER_OF_WT_MAPPER, CLUSTER_TO_WF_MAPPER, WF_TO_CLUSTER_MAPPER, \
Croatia_WF_LOCATION_MAPPER, AVAILABLE_WF_NAMES
import numpy as np
import datetim... | [
"soapclancy@hotmail.com"
] | soapclancy@hotmail.com |
958814c696552fc46be3946a897013745a3c075a | ab12a13973c6e106a1f7bfc1e0cca70a2616d96c | /04_CNN_model.py | 5187a68ee61830a497ea72bacbf3bec808662b93 | [] | no_license | marofmar/Udacity_ComputerVisionNanodegree | 6c91d25d878bd5450a68a049abce43f970b5cba1 | cd127d745ee412ac12f5d7ca548444bdc2352cd6 | refs/heads/master | 2022-03-31T04:44:21.665336 | 2019-12-31T07:36:32 | 2019-12-31T07:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | """
Tue 5 Nov 2019
CNN to detect facial keypoints
Things have updated
1. x.view(@@@, -1) to x.view(-1,@@@)
2. before two conv layers to five layers
3. before single fully connected layer to three fully connected ones
Hope this new architecture works better than before!
"""
import torch
import torch.nn a... | [
"noreply@github.com"
] | noreply@github.com |
493093fa3084036e66da729ce1cbca3bfa72e3c7 | b9cdb1dbdaa631c50551859e46beea3a4e157909 | /Priya_Notebooks/api_keys.py | 61f319f2dcbdf5421104173860455019e8452e80 | [
"MIT"
] | permissive | yash5OG/GamingVizs-PriyaYash | b6d10891cb61535c737cdee7a5245bedd45c7315 | 7c6ea4ac86c9825e3cfd59a39a7dc84adbebf27e | refs/heads/main | 2023-04-03T21:18:45.138458 | 2021-04-25T00:11:02 | 2021-04-25T00:11:02 | 357,759,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | client_id = "YOUR API KEY HERE"
| [
"75239249+shantipriya30@users.noreply.github.com"
] | 75239249+shantipriya30@users.noreply.github.com |
e959bdb95b50465a45e28ef3f71181d61ac8bbe5 | 5a24fe4c9efae9ebd98b530869696986714a8a9d | /pages/locators/MainPageLocators.py | f4e6dd5b5fb4f7ffcc0332dca9ec2f218f84f670 | [] | no_license | zhulanov-an/pythonQASelenium | 70cd6e7b3b388b82ce6e6c5ba88b919f00397a5d | 4383a357ef96ed3181c11b15d693ec2c338d6777 | refs/heads/master | 2023-05-05T09:03:17.533044 | 2021-05-20T19:27:19 | 2021-05-20T19:27:19 | 334,416,598 | 0 | 1 | null | 2021-03-02T22:07:16 | 2021-01-30T13:16:10 | Python | UTF-8 | Python | false | false | 349 | py | class MainPageLocators:
MAIN_SLIDER = {'css': '#slideshow0'}
IMAGES_IN_MAIN_SLIDER = {'xpath': '//*[@id="slideshow0"]//img'}
FEATURED_ITEMS = {'css': '#content > div.row > div'}
BRAND_PAGINATION_ITEMS = {'xpath': '//*[@id="content"]/div[3]/div[2]/span'}
MAIN_PAGINATION_ITEMS = {'xpath': '//*[@id="co... | [
"zhulanoff2007@gmail.com"
] | zhulanoff2007@gmail.com |
0c5606a551288fb8a6e2939ce75c87ff9f2d917d | 4d200e1f225455c58e0dd89db587a29411f86245 | /venv/Lib/site-packages/openmdao/drivers/tests/test_doe_driver.py | 1ae1a0bccf73a7e877a248c44b904cceb05dd455 | [] | no_license | ManojDjs/Heart-rate-estimation | df0be78edbc70cc75c006c6f87c8169200de84e0 | d9e89fe017f1131d554599c248247f73bb9b534d | refs/heads/main | 2023-05-09T10:58:37.614351 | 2021-06-01T11:12:45 | 2021-06-01T11:12:45 | 371,493,498 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,397 | py | """
Test DOE Driver and Generators.
"""
import unittest
import os
import shutil
import tempfile
import csv
import json
import numpy as np
import openmdao.api as om
from openmdao.test_suite.components.paraboloid import Paraboloid
from openmdao.test_suite.components.paraboloid_distributed import DistParab
from openmd... | [
"djsmanoj0000@gmail.com"
] | djsmanoj0000@gmail.com |
a008a2484cd85352027f8158be9a8d986d35cb96 | c5ec5d92c1b97cdebc24cfa2144d58e5455f3c1a | /Tasks/03_Improved_ANN/ann_utils.py | fb817f497c532d2a88145c025f5f9d6b48e6fbed | [] | no_license | Silver-Taurus/DeepLearning_at_FLT | f6f22635942e4436e5186bda5fc59be6f190f884 | 1ced64e62a360adfbde9cceb73de2139e16543c1 | refs/heads/master | 2020-04-30T22:33:40.741004 | 2019-08-26T04:08:46 | 2019-08-26T04:08:46 | 177,122,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,211 | py | ''' Utility funtions for Artificial Neural Network '''
import numpy as np
def function_dispatcher(default_fn):
''' Decorator for dispatching the function from the registry '''
registry = {}
registry['Default'] = default_fn
def decorated_function(fn):
''' function is decorated to give the... | [
"silvertaurus4869@gmail.com"
] | silvertaurus4869@gmail.com |
f94664ca4600fb82ec724d82af43ec97bca0c16f | 27bfd3bc212c3451e454ca9089d2e13625ce04e7 | /dynamic-programming/longest_palindrome_subsequence_DP.py | 3c52b9d141d6671993cd45714f4d1bec45c454f6 | [] | no_license | RobRcx/algorithm-design-techniques | de6e33891ca9ced725ebe2c24cbc160bd274b232 | 7f3526fe7d80bbb525daf58ac8f536eb4e8695ec | refs/heads/master | 2021-06-12T22:01:41.420464 | 2021-03-21T10:24:40 | 2021-03-21T10:24:40 | 164,210,600 | 0 | 0 | null | 2019-01-05T11:55:25 | 2019-01-05T11:55:24 | null | UTF-8 | Python | false | false | 979 | py | # Copyright (c) June 02, 2017 CareerMonk Publications and others.
# E-Mail : info@careermonk.com
# Creation Date : 2017-06-02 06:15:46
# Last modification : 2017-06-02
# Modified by : Narasimha Karumanchi
# Book Title : Algorithm Design Techniques
# Warranty : This software is pro... | [
"noreply@github.com"
] | noreply@github.com |
fa0472b95809dcfb8b5cd1a12645261c8e213dba | 71d463e7c263b53ab2909ea8b439092aec3161c1 | /HW2/hw2_p2_data/a.py | e7517d607c02718d74beca165a8f3b457301d434 | [] | no_license | RahulMaganti47/Learning-in-Robotics | 09c4a9f41b6eb26676d0e231e3842cb31aaf59be | 7e04c83ec23597c2ad6bea237101e0257cb1cb96 | refs/heads/main | 2023-06-23T12:09:00.407961 | 2021-07-23T17:51:58 | 2021-07-23T17:51:58 | 349,591,922 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,942 | py | import sys
import numpy as np
import math
import matplotlib.pyplot as plt
def sample_state_noise():
epsilon_k = np.random.normal(0, 1)
return epsilon_k
def sample_obs_noise():
nu_k = np.random.normal(0, math.sqrt(1/2))
return nu_k
def propagate_system_state(x):
return -1*x + sample_s... | [
"noreply@github.com"
] | noreply@github.com |
a04df4572c182738280b576591b01d087a4ddb20 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/iam/admin/v1/iam-admin-v1-py/google/iam/admin_v1/__init__.py | 5de06b42015db50300075194884fb9a7fce4ea19 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7d17bc3781d764fb67f047208d884d5c0ed93d71 | e949b67f3d8a5758817b4861783c6136e33d8c99 | /python/hello1.py | 1c3f8b5025ee568ef9c8f9da94bb5b92c1c8befa | [] | no_license | edt11x/edt-jnk | 1976c6b4cbb1cfe38db731bd520a3d1eb31995bf | e9ceb4fa645c2513b7699cea9fcb31944476efba | refs/heads/master | 2023-08-17T11:15:20.938437 | 2023-08-16T18:53:47 | 2023-08-16T18:53:47 | 20,622,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # File: hello1.py
from Tkinter import *
root = Tk()
w = Label(root, text="Hello World!")
w.pack()
root.mainloop()
| [
"edt11x@gmail.com"
] | edt11x@gmail.com |
ec250829ed80000d1b7ebf7e8e7e6777e2d66ffc | f91cd3d990349e88402aa67117dc3480468f96b2 | /test2/Applications/MonsterKeyboard/keyboardlight-gui.py | 533230a3fd690071c0188fe7fa15f237b4728699 | [
"MIT"
] | permissive | emartisoft/MonsterKeyboardLight | 3832cd495745dcc23bd3c9c5d99bcd44ff868bd3 | fb6e00dad854d541af766d821829cf56ad80b02e | refs/heads/main | 2023-04-20T17:25:13.240851 | 2021-05-10T15:45:01 | 2021-05-10T15:45:01 | 361,874,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py |
# pip install hidapi
"""
Distributed under the terms of the MIT License.
Created on Apr, 25, 2021
@author: emarti, Murat Ozdemir
@comment: Set mono color for Monster Laptop Keyboard Light
@usage: python3 keyboardlight.py <RED> <GREEN> <BLUE> <BRIGHTNESS>
<RED> <GREEN> <BLUE> 0...255
<BRIGHTNESS> 0...50
"""
import h... | [
"noreply@github.com"
] | noreply@github.com |
5499832ef749fd1db5ad1554b8f3cb177bfd27b1 | 96aa84a2a838ea4b7c19340db5483e05d1be533b | /gde/migrations/0001_initial.py | d4a4a3c326c757bf9de4adb5c590640a8a0ad874 | [] | no_license | sadj123/Ecommerce-Videogames | e4aa81066217152d1c6e431c6a7e5322fee3c2b4 | a18debd160e20a6aa36ecdcb6f36969b54120037 | refs/heads/master | 2023-01-27T23:30:46.766613 | 2020-12-04T05:05:25 | 2020-12-04T05:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,669 | py | # Generated by Django 3.1.2 on 2020-11-18 22:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('auth... | [
"santiago.d.j@hotmail.com"
] | santiago.d.j@hotmail.com |
da9a232684d1049a1740290d61218c564a143248 | 88c7f00aa5c92bcea2272de6ccd952d4fa428aa7 | /archived_material/lecture/6,7-Classes/wheel.py | 0c0936f56e29505aec6a9673e3561227e79968d9 | [] | no_license | XZeusJ/6.189_brief_intro_to_python_2011 | ee0f449fa133c13b5a0005a440249afa242ddddb | acde28fbddc780bab9cb2af46ffcf3bdc3f89d40 | refs/heads/master | 2020-05-26T11:58:54.426142 | 2019-05-23T12:18:22 | 2019-05-23T12:18:22 | 188,224,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | from graphics import *
class Wheel():
def __init__(self, center, wheel_radius, tire_radius):
self.tire_circle = Circle(center, tire_radius)
self.wheel_circle = Circle(center, wheel_radius)
def draw(self, win):
self.tire_circle.draw(win)
self.wheel_circle.draw(win)
def ... | [
"394386241@qq.com"
] | 394386241@qq.com |
072a29b2727e1ec364850d4fb199936c6ff2e08e | 2e553f34f8449b24c873ba7960bd28f3204d0884 | /beam/data2.py | 8715173dff69db3cf0d0e7bed132ed94adfae2a6 | [] | no_license | lambert8809/MSG_Machine_learning | d3b26b462192559e2d68aa1a1368bec5adb6b599 | 90f661a1fce06dedd2a71b887c019c59240c310c | refs/heads/master | 2020-04-25T04:37:56.569845 | 2019-03-21T22:17:40 | 2019-03-21T22:17:40 | 172,516,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | # Create database using LHS samlping.
# Usage: call load_data(parameter), parameter is the size of
# samples in one dimension (same size in two dimensions)
from pyDOE import *
import numpy as np
import matplotlib.pyplot as plt
def load_data(sample_size):
sampling = lhs(2,samples=sample_size,criterion='center')
... | [
"liu1512@arms2144pc3.ecn.purdue.edu"
] | liu1512@arms2144pc3.ecn.purdue.edu |
306fbeb749b5805bb67d154dbca42ba66c88db19 | a0159623c490437013a4896c4b77c73e2f836236 | /add-key-dictionary.py | 2dcf5aeb3b32bc66ee85c289368112e8d79bcf9b | [] | no_license | AjaiKumarMisra/DS_18_July_2021 | 53bcab99b5b40faef50849190de731038a9c707e | 688afa2a43d2e5672494c50f09620e85b2b1f550 | refs/heads/main | 2023-06-27T12:05:26.250838 | 2021-08-02T18:49:12 | 2021-08-02T18:49:12 | 389,232,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
distN={
"name":"Ajai Kumar Misra",
"age":"39",
"email":"phd.ajai@gmail.com"
}
distN["company"]="FICCI"
distN.update({"name":"Ajai k Misra"})
print(distN) | [
"phd.ajai@gmail.com"
] | phd.ajai@gmail.com |
fe88afb172d6cbadfd20c2a3bd761390bdd93769 | 5cfaabb4e3443b661401165991b3e5ab57606301 | /app.py | 848c4ee8e27d31e8fd751c89fd2b95b0b040154b | [] | no_license | subaquatic-pierre/azure-pieplines-exercise | 83cb5dcf6d135c1fc921758b738e0eae3ee36beb | 20064717eb1e4d2197e550d21fcfd27a12a5b738 | refs/heads/master | 2022-12-16T14:05:42.905439 | 2020-09-21T10:42:54 | 2020-09-21T10:42:54 | 297,267,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | from flask import Flask, request, jsonify
from flask.logging import create_logger
import logging
import pandas as pd
from sklearn.externals import joblib
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
LOG = create_logger(app)
LOG.setLevel(logging.INFO)
def scale(payload):
"""Scales Paylo... | [
"subaquatic.pierre@gmail.com"
] | subaquatic.pierre@gmail.com |
50f661a722b51db91632e8d66450621f803372c6 | 47586d7e5954e8dbdf2101cc3208e50c1fc80db5 | /TP7/productoServices.py | 2f48cc6c28b45c8ade2ff2229053bf768f2ac514 | [] | no_license | MatiasTomasRobbio/ComputacionMatiasRobbio | 124a1bd5d9c0148a7bf3664924a9b580a3bb189d | 0ce0a9a1796cfaaa0651a58867c71c6ac9f85402 | refs/heads/master | 2023-01-01T01:06:05.044894 | 2020-10-26T17:36:47 | 2020-10-26T17:36:47 | 274,050,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | from repositorios import Repositorios
class ProductoService:
# Devuelve repositorio productoList
def get_productosList(self):
return Repositorios.productosList
# parametros : Object producto
# return: Key id
def add_producto(self, producto):
lastKey = -1
for key in Reposi... | [
"matirobbio@hotmail.com"
] | matirobbio@hotmail.com |
5c0c9406f68e39173548029af6c2099576c9d1a3 | c3bd260d2525900843a6616a1ae4693c1c2a0aea | /can-you-get-the-loop.py | 00261747a50e41e221cc207ec9013cd1f7be51a5 | [] | no_license | kurtportelli/can-you-get-the-loop | 3534473a9d468e8ec7c4af596c5c80716336e8a3 | 5ccc8fcc736ccd5d21ee352a9d2e3ac7f55e4d2e | refs/heads/master | 2020-12-31T09:38:50.334988 | 2020-02-07T17:09:00 | 2020-02-07T17:09:00 | 238,981,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def loop_size(node):
index = 0
nodes = {}
while node not in nodes:
nodes[node] = index
node = node.next
index += 1
return index - nodes[node]
| [
"noreply@github.com"
] | noreply@github.com |
6ff94af8d40fd1672f612fbb0d90444bc127f82e | c1726886f451e793e8574f278d2ebb6e77829c68 | /users_auto.py | 8af41d73cc2b8b0e1617aca9e734d28aecbb3d0d | [] | no_license | Fernando-Devtrix/actividades | a0988d6664a12121b601b125509edfc9019194cc | 8bb5dca52a396cc02575a0a0c793d672fa1db1f0 | refs/heads/master | 2020-06-04T18:35:47.973083 | 2019-06-16T03:41:23 | 2019-06-16T03:41:23 | 192,146,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py |
import sqlite3
conexion = sqlite3.connect('usuarios_auto.db')
cursor = conexion.cursor()
# cursor.execute('''CREATE TABLE usuarios (
# id INTEGER PRIMARY KEY,
# dni VARCHAR(9) UNIQUE,
# nombre VARCHAR(100),
# edad INTEGER,
... | [
"fernando_0970@outlook.es"
] | fernando_0970@outlook.es |
47db460dd47e5a15b0838e9b4937338781832ff0 | 74abb79304446a740e5cee5d48293d1765b623b9 | /web/temple/wsgi.py | 671834cd5438e83a38a3e0012a4596a010858a1d | [] | no_license | jinji-liuhaoda/bigbang | eab19115656a7db6ac58426abfc85247c6c37e81 | b56a4bac47a4f6cf9a8a3165e362c48d18d4cfdd | refs/heads/master | 2021-01-20T19:05:24.528361 | 2016-06-02T04:13:28 | 2016-06-02T04:13:28 | 60,245,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for temple project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"liuhai@jinji-inc.com"
] | liuhai@jinji-inc.com |
98dc950bfe28aefc3283378dc7d8e3a624ba9b55 | 911e7b25961067339c31957ff41ebdb3c355d948 | /_utils/python/libs_my/version.py | ab61a1c831c80f48a5d6641192c416395f2946c8 | [] | no_license | qlong2012/notes-1 | c93efcc9a70f786929ef7e4c053e266e2bf354ad | 78913e8235845d4a94dd19f730d607df754da7fe | refs/heads/master | 2020-05-20T01:05:04.678662 | 2019-04-25T10:06:37 | 2019-04-25T10:06:53 | 185,303,355 | 1 | 0 | null | 2019-05-07T02:10:14 | 2019-05-07T02:10:14 | null | UTF-8 | Python | false | false | 3,812 | py | #!python
# -*- coding:utf-8 -*-
"""
Created on 2014/8/29
Updated on 2019/1/18
@author: Holemar
本模块专门供监控、调试用
"""
import os
import sys
import time
import types
import logging
from . import str_util, html_util
__all__=('init', 'get_version')
logger = logging.getLogger('libs_my.version')
# 请求默认值
CONFIG = {
'version... | [
"daillow@gmail.com"
] | daillow@gmail.com |
d08183227f9802ee80dd53b9c054887622ea54c2 | 56281839fc4602886d15020a808f34a7e09ca0f2 | /documentation/proposed-api/python.py | 92e69122496f90c0dc05d1852c8b530763b9c0ca | [
"MIT"
] | permissive | JonathanWilbur/wildboar-logging-protocol | 10e33927e5b9f34f68ad5dec1f57e4e4da65e0d8 | 3eda8ec8da9549d9b737f60ef25d111d880e00ac | refs/heads/master | 2020-05-01T13:35:35.826511 | 2019-03-25T01:53:08 | 2019-03-25T01:53:08 | 177,495,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #!/usr/bin/python
wl = WELP.WelpLog()
wl.log(
containsPasswords=True,
severity=WELP.MEDIUM,
urgency=WELP.PATIENT,
concerns=[ WELP.CONFIDENTIALITY, WELP.LEGALITY ],
message={
client: "test-client.domain.local",
authFailureReason: "PASSWORD",
username: "bob",
password:... | [
"jonathan@wilbur.space"
] | jonathan@wilbur.space |
93af6aa3c7d9823be507deb2296b8dbbc0b637b1 | e7bbaec2ad3fe63323c81a0a6fe92d0a6838aec5 | /annotation/__init__.py | 13a0eb1de348d6a39a10612bae3e869732e2b61c | [] | no_license | CleitonDeLima/hatedetector | f18b19e0d6e7a3f98824573e8d87e80e89d53cdb | 0127daf7291547c423b70a71c3090ef4543bda11 | refs/heads/master | 2020-03-27T09:20:46.589348 | 2018-08-27T18:49:27 | 2018-08-27T18:49:27 | 146,331,843 | 1 | 0 | null | 2018-08-27T17:33:02 | 2018-08-27T17:33:02 | null | UTF-8 | Python | false | false | 55 | py | default_app_config = 'annotation.apps.AnnotationConfig' | [
"rogersdepelle@gmail.com"
] | rogersdepelle@gmail.com |
55ca8c36c3bcf51394d3e8aa1301fde53694101c | 7af06a197e0a05750f15aab936de307337a37d2d | /venv/Scripts/easy_install-3.7-script.py | ba3ff659746e41869474bada634464119d33e86d | [] | no_license | SemikAlexander/Racer | ab83387d444e58668909ec134b1d8d675d55b4ab | 1c37cc6ead191de59ae734c0c78a2eb8fc83c17d | refs/heads/master | 2020-06-30T10:20:27.406719 | 2019-08-06T08:05:56 | 2019-08-06T08:05:56 | 200,800,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!C:\Users\Admin\Documents\Python\Project\MyFirstGame\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'... | [
"36263835+SemikAlexander@users.noreply.github.com"
] | 36263835+SemikAlexander@users.noreply.github.com |
3af05b1f21c8a6962e058ae733c46f9bbcb52dbf | 4a67ca308faab57797d2684e87aba8dffa9f09f8 | /GetIps/GetIps/items.py | 2aef12470a852aee47fb3a10550dfa63d285ed1c | [] | no_license | KeepCodeing/ScrapyProject | 827cf82b550d6ebdd6f088b1e20f74c8e8354e59 | 91b2be73bc44dc65cb588a39ade7dcf957ee4224 | refs/heads/master | 2020-05-27T06:05:20.174495 | 2019-07-29T12:38:24 | 2019-07-29T12:38:24 | 188,514,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class GetipsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"3350680655@qq.com"
] | 3350680655@qq.com |
970fe942fbd6d146bc70b89fc6dded2601906c84 | e079006d43a545baf2e63ef20dfefd6e778f42c2 | /venv/Scripts/pip3-script.py | 5f89c76539fae0a6888fd5dac4d72b3f0c6589eb | [] | no_license | wailaifeike/myAdmin | 34a41f1f8c7b04defa92d1ed3872888ff5295445 | 8f79f8232767bae73d0fd0c326232ca33203c7e2 | refs/heads/master | 2020-04-07T11:10:29.225049 | 2018-11-20T01:55:46 | 2018-11-20T01:55:46 | 158,315,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!E:\python_code\KingAdmin\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"you@example.com"
] | you@example.com |
cce5ba0b7220124f87ae4dac8555b8803462f6c1 | f0c4f7053853766d6b91f9c7fda810a0007b2694 | /comments/migrations/0001_initial.py | d017bf6a3c978ef19d3c047ec6a7f3dc565a9023 | [] | no_license | mrzhang0320/django-blog | bc146eb1fd815d5ed30be286ad3ad78823abbd0c | 8d760a51192fc3a01acfccceac1e6c024a99e227 | refs/heads/master | 2021-04-12T08:56:50.089791 | 2018-04-19T11:00:36 | 2018-04-19T11:00:36 | 126,841,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2018-03-26 13:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0003_auto_20180326_2133'),
... | [
"mr.zhang0320@gmail.com"
] | mr.zhang0320@gmail.com |
79c85f25e82618ee3cc74889b888b34cd05c7a0d | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_hostpool.py | a65bf56113a7255d2eb0c0c644b60eb76e096b90 | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 14,508 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
6da2b8053f343db28341456672ae46faaa81215e | 5275a2bb918731ec4ff7d2397f7892da3a5095b4 | /create_indices.py | bf319b488d922195e036ed81b8a75eec3b4f64f9 | [] | no_license | SinhaPrateek/ms_aichallenge | f632590d20af2f84de247aae50837f29bc01f00a | 9e90cfe7865a28d6eb2887312b8d18c69061bd3f | refs/heads/master | 2023-03-14T08:43:07.097282 | 2020-02-15T09:02:39 | 2020-02-15T09:02:39 | 346,091,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | test_df = pd.read_csv("/data/downloaded/eval2_unlabelled.tsv",sep = '\t', header = None)
test_df = test_df.rename(columns = {0:'index',3:4})
test_df.to_csv('data/test_eval2.tsv',sep = '\t',index = False)
query_series = test_df.loc[:,'index']
query_unique = query_series.unique()
query_unique_df = pd.Dataframe(query_uni... | [
"noreply@github.com"
] | noreply@github.com |
1c1e5812836bde266ae9d4377ad91980e1b3dbd8 | 893037fa36fc97cfb094eadc8bed90a97132ff78 | /0521/coin.py | fe14e4a6c87d1db4cdd24ad0185f262ff732aefd | [] | no_license | bobe7109/python | 7c001d86173b484a462a65d2c7bdc59d426ec1f3 | 5271caf24db4d2607612d75b82faf315e2f63c05 | refs/heads/main | 2023-05-14T22:08:51.900687 | 2021-06-04T04:56:23 | 2021-06-04T04:56:23 | 344,701,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 21 15:07:18 2021
@author: Mac_1
"""
import turtle as t
import random as r
screen = t.screen()
image1 = "fornt.gif"
image2 = "back.gif"
screen.addshape(image1)
screen.addshape(image2)
while True:
t.delay(500)
coin = r.randint(0,1)
if coi... | [
"noreply@github.com"
] | noreply@github.com |
e383855a70f56ea9ef0acb9a3d8922f2b7be822d | 9ef2facfe5824e18b3a15a536627ec2eae171a5b | /GUI.spec | ce2ba5660b3776ca8a6661b2ce1bd81c8e8b0fbb | [] | no_license | landonleighredline/AutomationGUI | c3137e24316d8980787990a89900c2076dc749c0 | a811cdd4a806ad631b17c0636d2cfb305374b336 | refs/heads/main | 2023-05-04T06:36:57.426406 | 2021-05-18T12:37:53 | 2021-05-18T12:37:53 | 365,245,210 | 0 | 0 | null | 2021-05-10T16:56:53 | 2021-05-07T13:38:25 | TeX | UTF-8 | Python | false | false | 878 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['GUI.py'],
pathex=['C:\\Users\\LandonLeigh\\Documents\\GitHub\\AutomationGUI'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
... | [
"lleigh@redlineforensic.studio"
] | lleigh@redlineforensic.studio |
8cebd2a1b7a7bf695c15249257baa0945a5c4da8 | 7779d11721b0f6df8620f28c32e33823a97ecf12 | /snapchat.py | eac377fec15e509795fe7acdea63b202b605f80c | [] | no_license | crepppy/snapchat-bot | 5a88a846b9af18829a6a5c242fd17e1c0cc42c07 | da3ed9c85e7ec1b853c5ea2499b8baa19bd94a19 | refs/heads/main | 2023-05-30T08:00:19.018777 | 2021-06-03T11:46:10 | 2021-06-03T11:46:10 | 329,726,288 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | import subprocess
import os
from discord.ext import commands
import discord
import asyncio
import time
import sys
FIRST_ITEM = ("680", "480")
SEARCH_BUTTON = ("225", "130")
CANCEL_BUTTON = ("1020", "120")
# OWNER_ID = 523177775901966358
messages = {}
owner = None
try:
owner = int(sys.argv[1])
except Exception as e... | [
"chapmanjack0777@gmail.com"
] | chapmanjack0777@gmail.com |
0cd2de579d8b629295187fd580a1749de33473e4 | b0eb135342b21ba1eea718453df7d10a146632d4 | /functionModules/fkRigTest.py | 932c6dd55be2200296b477c6fcb742c89be6d2f9 | [] | no_license | siamkiw/kiwToolModules | da6028d3c4379e1621ffca0c5d333957a05bc621 | c1c39691664526e024811cdde807893d3aa053da | refs/heads/master | 2022-03-11T06:47:00.150504 | 2019-10-22T11:16:53 | 2019-10-22T11:16:53 | 216,794,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | py | import maya.cmds as mc
def createFkZeroGrp(zGrpName='', ojName=''):
mc.group(em=True, n=str(zGrpName))
zGrpCon = mc.parentConstraint(ojName, zGrpName, mo=False)
mc.delete(zGrpCon)
mc.parent(ojName, zGrpName)
# mc.select( clear=True )
def stretchFk(nodeMultName, nodeAddName):
ctrl = mc.ls(sl=Tr... | [
"siam.kiw@gmail.com"
] | siam.kiw@gmail.com |
9fce81d8dab91750c3d26cc01884d02c3d8bca2e | 575e87d92d73dd08774a7fd3e5a3b08ebf50305f | /Python/Aulas/Nerps/Tecnicas/Busca_binaria/Ogros.py | fa2a141cbbf0c7df64f6cca5a9fe3f6a2e6105fa | [] | no_license | LuisAugusto0205/C-digos-python | d6f7e4744175ff6c1a679161cbde0b4a61809f01 | dd88c84e6b151e4cd0ccf38caa91b3c3a48fbc21 | refs/heads/master | 2023-01-14T17:03:59.212494 | 2020-11-19T21:09:07 | 2020-11-19T21:09:07 | 314,340,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | def main():
n, m = [int(x) for x in input().split()]
faixas = [int(x) for x in input().split()]
premio = [int(x) for x in input().split()]
st = ''
for x in input().split():
i = busca_bin(faixas, int(x))
st += str(premio[i]) + ' '
print(st[:-1])
def busca_bin(v, x):
s = len(v... | [
"gutopprado@gmail.com"
] | gutopprado@gmail.com |
adaf37aa02e07fed2e43f734bceb4f34c4c72df5 | aff11077baaa416ad6bb84f7d61afd1b8bc41854 | /DragDrop.py | fe0551a41418cfc4c2e2de1f0d216c8eaf45d340 | [] | no_license | afinapd/selenium-python | 7f93c43f0aeb31558efeb51b8a577477a06c9674 | ffa7b24f7c3f899e395f087cb1381b72e1f3e346 | refs/heads/master | 2023-04-19T14:12:49.163808 | 2021-05-16T16:47:59 | 2021-05-16T16:47:59 | 367,692,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from selenium import webdriver
from selenium.webdriver import ActionChains
from Locators.Constants import Constants
driver = webdriver.Chrome(executable_path=Constants.driver)
driver.get("http://testautomationpractice.blogspot.com/")
driver.maximize_window()
drag=driver.find_element_by_xpath("//*[@id='draggable']")
... | [
"afina.dayanti@sinarmasmining.com"
] | afina.dayanti@sinarmasmining.com |
7b0633d2e32725393f3108a89b86cb0c0c9b0f65 | d147e8cbe78b9e72cb64fbd1c0be9e8b728ae177 | /Exercise8/exercise08_challenge2.py | dc536a35417a1398f53e165cba6e27b8ec7d6fa5 | [] | no_license | luwangg/PythonScriptingForArcGIS | a77daeb50c78418849229464b87d9e8693031cf2 | 77a6676ba8572d2d2344b17e1e14f4e1532d574d | refs/heads/master | 2020-03-23T13:17:02.377691 | 2018-04-25T16:34:33 | 2018-04-25T16:34:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import arcpy
from arcpy import env
env.workspace = "C:/EsriPress/Python/Data/Exercise08"
fc = "Hawaii.shp"
newfc = "Results/Hawaii_single.shp"
arcpy.MultipartToSinglepart_management(fc, newfc)
spatialref = arcpy.Describe(newfc).spatialReference
unit = spatialref.linearUnitName
cursor = arcpy.da.SearchCursor(new... | [
"noreply@github.com"
] | noreply@github.com |
fe9feb76f91f26a7eadbd0136adb60c853b437a6 | b1e6e1e5789d302a9213bcbdf85887cfcf7f84a3 | /src/youtubeScraper.py | e43ca9f4d8793309fa18614b7327e46b29e4b1e6 | [] | no_license | rachidnajjar/youtube-scraper | cadbcc0d71a41ca75c4bb7f4bf112b78f559744b | 3e81764392d5bb4d33a89d43e86d2b257926e6dd | refs/heads/master | 2020-04-13T23:47:30.546641 | 2018-12-31T13:13:52 | 2018-12-31T13:13:52 | 163,515,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | '''
Created on 24/12/2018
@author: Rachid
'''
import requests
from bs4 import BeautifulSoup as bs
from pytube import YouTube
# query YouTube for a particular search string
base = "https://www.youtube.com/results?search_query="
qstring = "boddingtons+advert"
r = requests.get(base+qstring)
# extract the html of the se... | [
"rachid.najjar@sfr.fr"
] | rachid.najjar@sfr.fr |
26c35625b862f890f6996fd1bc85d70daa1ecac9 | 9410a94667c05f45761204a6210d334cd70426ec | /code/script/rq1-apfdc.py | 18a285b8b866ac73d86a886400771d421acecdda | [] | no_license | L2Pri/L2Pri | b0c7b1ecff5fdf8711f8081a9a080651f47390b9 | 458a467bea4489d4ca5b5adb944596ea4a35288d | refs/heads/main | 2023-04-03T21:19:54.119616 | 2021-04-20T15:12:44 | 2021-04-20T15:12:44 | 348,381,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import os
import numpy as np
def readFile(filepath):
f = open(filepath)
content = f.read()
f.close()
return content.splitlines()
APFDType = [
'APFDcL2RStatement-use',
'APFDcGTStatement',
'APFDcGAStatement',
'APFDcGEStatement',
'APFDcARPStatement',
'APFDcTTStatement',
'APFDcTAStatement',
'APFDcTGEState... | [
"l2pri_2021@163.com"
] | l2pri_2021@163.com |
f712e5c47ead3e9f58959f91e833df50b42d0301 | 0d47033b99c82492b3f46658db7f991a19513fe0 | /src/nm/__init__.py | ead65609cb42e3d1e714bcd1019ac456b67326ab | [] | no_license | abbbe/mitmer | 0b9e4bb6670964e4db5dbd2d25beb2c864baee17 | ac5905e7d19b3f014700b43fcbb9293da13d19f5 | refs/heads/master | 2021-05-27T08:56:16.259058 | 2012-05-27T03:52:36 | 2012-05-27T03:52:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | '''
This module gives access to the configuration of Linux network stack.
There is Stack singleton object containing other configuration elements.
'''
import os
import subprocess
import threading
OVS_CONTROLLER_URL = 'tcp:127.0.0.1:6633'
class Iface(object):
def __init__(self, up, loopback, carrier):
sel... | [
"abb@gremwell.com"
] | abb@gremwell.com |
8c01959fbe811f9a1269ca6a399e3ddb844a2c1f | 7ad5cf675dea79064a1ce7e54b718dd539ad5862 | /cms/management/commands/populate.py | 9c92bce781627aad0eadaf029c72a55de13ebb90 | [] | no_license | DanishKhakwani/csss-site | ee44f79d157c2726cb44d64e7b01a1ab8e3ecb44 | bb7ad7f5b359cf22259c495b01343297fcc6ef02 | refs/heads/master | 2020-12-31T03:35:24.855686 | 2016-03-15T00:24:29 | 2016-03-15T00:24:29 | 54,367,731 | 0 | 1 | null | 2016-03-21T07:19:04 | 2016-03-21T07:19:03 | null | UTF-8 | Python | false | false | 4,573 | py | #!/usr/bin/env python
from django.db.utils import IntegrityError
from django.core.management.base import BaseCommand, CommandError
from cms.models import Category, Post, Announcement
from datetime import datetime
class Command(BaseCommand):
help = "Populates database"
def handle(self, *args, **options):
... | [
"asabaya3@gmail.com"
] | asabaya3@gmail.com |
d1b7a24275f548220eaa9b251bac4b7993ba5ee7 | f18dc02a1ddd1b8c4296260ace86513c7eb9e895 | /main.py | 24674b3f2e60ff6c7c5f2d30a92a075084b012be | [] | no_license | petrarka/crossfair_server | 592dd4863002ea7d63c167d3000cb2b1088b06de | 50ebb06b4d9f1e112bd957e8e63697defea44d70 | refs/heads/master | 2022-04-17T10:05:18.376934 | 2020-04-12T12:40:41 | 2020-04-12T12:40:41 | 255,079,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,550 | py | import asyncio
import json
import logging
import websockets
import random
from collections import OrderedDict
logging.basicConfig()
USERPOSE = []
USERS = OrderedDict()
WINERS = []
LOSERS = []
async def win():
winers = set()
agents = set()
killers = set()
users = list(USERS.values())
for user in ... | [
"geonerus@mail.ru"
] | geonerus@mail.ru |
c1cb2957d5955231b1c957e0abc6fe10f6d92b25 | 08ee04ae665dcb930ed4b98ca7b91b2dac2cc3b0 | /src/rayoptics/mpl/interactivediagram.py | 734b65766acd2f9e4a84f1007991405bdb118570 | [
"BSD-3-Clause"
] | permissive | mjhoptics/ray-optics | 6bad622f7bb9b3485823b9cc511a6d2b679f7048 | 41ea6d618a93fe14f8bee45fb3efff6a6762bcce | refs/heads/master | 2023-07-09T18:03:36.621685 | 2023-05-08T22:46:36 | 2023-05-08T22:46:36 | 109,168,474 | 195 | 49 | BSD-3-Clause | 2023-08-10T16:53:28 | 2017-11-01T18:34:12 | Python | UTF-8 | Python | false | false | 2,904 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright © 2018 Michael J. Hayford
"""
.. Created on Thu Oct 10 22:02:44 2019
.. codeauthor: Michael J. Hayford
"""
from rayoptics.parax.diagram import Diagram
from rayoptics.mpl.interactivefigure import InteractiveFigure
class InteractiveDiagram(InteractiveFigure)... | [
"mjhoptics@gmail.com"
] | mjhoptics@gmail.com |
0c5f9e75ebcf98b94a95c2bffcdb4fa05329f144 | 38fa720d0f146f2fdc4498d796aa79838c0c00c0 | /proj/settings.py | a29fb808a2967b60cff6c50d95801fa3a60ea564 | [] | no_license | sundaramseth/djangotask | bb6418dc3e5e52086f2991fde0a425cd0f53a4f2 | 18d9dc52b527903ebda1da493f28ebb4e5599681 | refs/heads/master | 2020-05-30T11:40:47.030364 | 2019-06-01T09:49:09 | 2019-06-01T09:49:09 | 189,711,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
TEMPLATE_DIR = os.path.join(BASE_DIR,'templates')
STATIC_DIR = os.path.join(BASE_DIR,'static')
MEDIA_DIR = os.path.join(BASE_DIR,'media')
# Quick-start development ... | [
"sundaramseth.ucer@gmail.com"
] | sundaramseth.ucer@gmail.com |
6ba560b3c268c86924803f6409b63001606365dd | d4c720f93631097ee048940d669e0859e85eabcf | /testing/unexpected_passes_common/result_output_unittest.py | 5c4f738c001c555623403d219c23ea85c96d59c1 | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 3b920d87437d9293f654de1f22d3ea341e7a8b55 | refs/heads/webnn | 2023-03-21T03:20:15.377034 | 2023-01-25T21:19:44 | 2023-01-25T21:19:44 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 31,064 | py | #!/usr/bin/env vpython3
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import collections
import itertools
import sys
import tempfile
from typing import Iterable, Set
import unittest
imp... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
dbbd26e6813d379ee76fd9dead2b2a25694a3d5b | e0ace1f9534d6e9082d97d1ebddd0198669d0a89 | /thrift/compiler/test/fixtures/qualified/gen-py3/module1/types.pyi | 337e67bc6e14561e2a2c058754e9f9cf90ce61b0 | [
"Apache-2.0"
] | permissive | kulv2012/fbthrift | 20614a907c1f7ffb368a2ca3154569b781e64fec | 0ef9f7c09603a9c3f218ea79b1cd7509ec265085 | refs/heads/master | 2022-11-16T01:17:59.679426 | 2020-07-06T08:10:25 | 2020-07-06T08:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | pyi | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
# @generated
#
import folly.iobuf as __iobuf
import thrift.py3.types
import thrift.py3.exceptions
from thrift.py3.types import __NotSet, NOTSET
import typing as _typing
from typing_extensions import Final
import sys
impo... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a65c5e6f3d1028b77c6d9135de5a4beb064b9211 | 92035a9a1d2d55830f82d5e6f92a8e41feaef863 | /get screenshot in a video in frame.py | 35aad0f3fad645e76e9f88bf60354e4d592fcf93 | [] | no_license | Valarzz/make-picture-data-set | 5c7a87e11495d5d89ce53405fbfd3e4917e11f93 | 847a7ee52893b152e161fdf7f7a1eb586551603d | refs/heads/master | 2020-09-28T04:47:28.824686 | 2019-12-08T15:58:56 | 2019-12-08T15:58:56 | 226,688,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import cv2,os
# Use opencv to capture video frames at regular intervals and save them as images
vc = cv2.VideoCapture('C:\\Users\\10300\\robomaster.flv') # write your video address here
c = 0
print("------------")
if vc.isOpened(): # Determine if it is open properly
print("yes")
rval, frame = vc.read()
else... | [
"noreply@github.com"
] | noreply@github.com |
3355a52f9ba92cb9f46a0ba9de124ed9d3a31aa3 | b497be9a4c593e8397de96b70f6412b98094fa13 | /lib/odenvp_conditional_augment.py | a3d9bb4a20202eade0b318f62d7739947f42aacd | [
"MIT"
] | permissive | minhtannguyen/ffjord | 3804fdf76d05d90b88b1b612486eed8d0d354658 | f3418249eaa4647f4339aea8d814cf2ce33be141 | refs/heads/master | 2020-04-21T11:21:50.958015 | 2019-08-23T05:44:36 | 2019-08-23T05:44:36 | 169,522,404 | 0 | 0 | MIT | 2019-02-07T05:10:16 | 2019-02-07T05:10:16 | null | UTF-8 | Python | false | false | 7,251 | py | import torch
import torch.nn as nn
import lib.layers as layers
from lib.layers.odefunc import ODEnet
import numpy as np
from . import modules
from . import thops
class ODENVP(nn.Module):
"""
Real NVP for image data. Will downsample the input until one of the
dimensions is less than or equal to 4.
Arg... | [
"mn15@rice.edu"
] | mn15@rice.edu |
24608146b7c1a3e71d18422efbd1b700dcfe4aec | 95e6fa634946facb61e96124f994fdf8e24c48b9 | /Python_programming/Data_filtration_1_5.py | 09c40d7545fad54b7b3c8eef9daea548a7e1bb66 | [] | no_license | Accolyte42/Carpov_ML | f70da4fcd1c209c7e1e2e9e23e35687a0994885d | b04aa8a49613dcfd5b5ebf783a61e5004be6cc14 | refs/heads/master | 2023-08-11T12:25:21.952937 | 2021-10-03T21:25:21 | 2021-10-03T21:25:21 | 397,374,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | import pandas as pd
import numpy as np
# Подгрузим данные из степика (но этот же файл есть и в рабочей директории)
students_performanse = pd.read_csv('https://stepik.org/media/attachments/course/4852/StudentsPerformance.csv')
students_performanse_with_names = students_performanse.iloc[[0, 3, 4, 7, 8]]
students_perfor... | [
"70057185+Accolyte42@users.noreply.github.com"
] | 70057185+Accolyte42@users.noreply.github.com |
76177ac654854c18651a5090814bab3ad872a612 | 4daf54241d399522bf9f3a6cd235f87132ad3459 | /cifar/resnet.shared.no_share_bn.branchx0.01.deep/main.py | b729378353c0399de87978be959c19f83ad3d0b5 | [
"MIT"
] | permissive | zyclarkcheng/tensorpack-exp | f54b3d9ef2fee92e102f2abfcd72f0ccfeb121de | 863d3ce56a985c0ad291e55e673531c63e30b42d | refs/heads/master | 2020-04-27T00:39:55.822944 | 2017-07-17T15:09:38 | 2017-07-17T15:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,459 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: cifar10-resnet.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import numpy as np
import argparse
import os
from tensorpack import *
from tensorpack.tfutils.symbolic_functions import *
from tensorpack.tfutils.summary import *
import tensorflow as tf
from tensorflow.c... | [
"shuchang.zhou@gmail.com"
] | shuchang.zhou@gmail.com |
1c7580c59cef2404518a10ae5835349a1cb98e2e | fe6e0a2cfb00d34b58f64f164a747e3df08e8a9d | /client/application/controller/alterquyu.py | 61f40100ef80376d2038f953734fbe44e087f49d | [] | no_license | huboqiao/kmvip | c141814666631c35b8adeec3d3beb5aca0d2d1cd | 11ae7e1f78943c8425516c4f06acf043a99acdcc | refs/heads/master | 2020-02-26T14:58:31.573602 | 2016-08-03T06:29:41 | 2016-08-03T06:29:41 | 64,809,269 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | # -*- coding: utf-8 -*-
'''
Created on 2015年2月11日
@author: LiuXinwu
'''
from PyQt4 import QtGui
from application.lib.Commethods import *
from application.view.alterquyu import Ui_Dialog
from application.model.storagemodel import StorageModel
class AlterQuYuController(ControllerAction,Ui_Dialog):
def _... | [
"42320756@qq.com"
] | 42320756@qq.com |
3badef67a00af67ad02f5b54ef749b7f0db9b0e4 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv6/2018/SKIM5/aliases.py | f27631f33c008f438576a6b4452b5e73593fef9e | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 2,362 | py | import os
import copy
import inspect
##---WP2017---##
from WPandCut2018 import *
##-End WP--##
configurations = '%s/src/SNuAnalytics/Configurations/HWWSemiLepHighMass/' % os.getenv('CMSSW_BASE')
print configurations
mc = [skey for skey in samples if skey not in ('Fake', 'DATA')]
###---Btag SF---###
btagS... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
cf42b75b2efa1dec4f3180e98cefa5b25abe9359 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2O/2O-2L_MD_NVT_rerun/set_2.py | ecc0726685dd675f8bc7fe5a217d3d78a9435df4 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2O/MD_NVT_rerun/ti_one-step/2O_2L/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
65fbd86580aa9e043d9f0caef295d3ed684f3f1a | 396787df1b472ddfab7d934c149b150352342f03 | /python_fundemental/245_Maximum_Product_Subarray.py | a2757d13801609719dd8cbee8a3de7390dfeba2f | [] | no_license | Deanwinger/python_project | a47b50a9dfc88853a5557da090b0a2ac3f3ce191 | 8c0c2a8bcd51825e6902e4d03dabbaf6f303ba83 | refs/heads/master | 2022-07-10T16:41:56.853165 | 2019-07-21T13:08:48 | 2019-07-21T13:08:48 | 107,653,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | # leetcode 152. Maximum Product Subarray
# 程序员代码面试指南 P373 | [
"a541203951@163.com"
] | a541203951@163.com |
538613b4f26e7b13f1d2a94dcb67bc4b9d93c1f4 | df9aa3daa84aba377ca4006d8ec959c28088817a | /mobile/__init__.py | c172fea8eadc5f93e1e5c0c7083f55027f6cf3c5 | [] | no_license | wangyu190810/ufind | c9569137271a151836a16e6dbb5a52ee7d252311 | 8ed8bca8f2cf373d7ee45f1aec31671afac2a9aa | refs/heads/master | 2021-01-15T17:41:07.083036 | 2015-06-08T15:41:58 | 2015-06-08T15:41:58 | 29,869,833 | 1 | 2 | null | 2015-04-26T17:37:13 | 2015-01-26T16:26:58 | Python | UTF-8 | Python | false | false | 50 | py | # -*-coding:utf-8-*-
__author__ = 'Administrator'
| [
"190810401@qq.com"
] | 190810401@qq.com |
32bda72aae9ed518066316d040349215cfefd155 | fcabf294eb251f5d1c657aac8ae5a2affbabf5d2 | /logger/logger_helper.py | 2fc9f3d4b1f429b31fd0827388ce18d3c734cfb6 | [] | no_license | fubUmich/Daily-log-tool | decc87ed6729ef8f1d0de5c0ad0f01d7c1d2228e | 2f58883fb39244c796a4edc168bff4170b80d463 | refs/heads/master | 2020-12-24T11:52:42.555624 | 2016-11-07T19:32:20 | 2016-11-07T19:32:20 | 73,108,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | from datetime import date, datetime, timedelta
import os.path
NOW = datetime.now()
TODAY = date.today()
YESTERDAY = TODAY - timedelta(1)
def show_log(date):
print_log_file(get_log_file_name(date))
def print_log_file(filename):
if os.path.isfile(filename):
with open(filename) as log_file:
... | [
"binghong@indeed.com"
] | binghong@indeed.com |
88d91c837a9beaf7ec4dc6398b5189d91918d8e2 | 39cccf732927ffed8faa3d844c5cfac6f74a92c0 | /Effective Python Development for Biologists/testing/find_common_kmers_fast.py | b92f00d73038fccc76ed6393a6d636b9c630164c | [] | no_license | pjx1990/python_for_biologists | aca80be2adabbef277a97213716835802105b4ea | c86c1bcffdeea3f82c5b988775d177997437473c | refs/heads/master | 2021-05-18T13:26:41.197766 | 2020-03-30T10:01:24 | 2020-03-30T10:01:24 | 251,262,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def find_common_kmers(dna, k, threshold):
kmer2count = {}
for start in range(len(dna) + 1 - k):
kmer = dna[start:start+k]
old_count = kmer2count.get(kmer, 0)
kmer2count[kmer] = old_count + 1
result = []
for kmer, count in kmer2count.items():
if count >= threshold... | [
"269348077@qq.com"
] | 269348077@qq.com |
8ef3c2a5dab45535442ca11c46d8fac758790618 | ca55aadabae74fbc52fb07cb2156ba5e35fa7380 | /original_my_quiz.py | 52b20d28d12e1d56ac4d0a0eadbfcb1730682065 | [] | no_license | Metal-Whale/Udacity-IPND-Code-Your-Own-Quiz-Project | 3e6e63fb577da8922e09c5ea4436275a6153413e | 5635cec998d913f758f1f6ae9df450a5c1689dde | refs/heads/master | 2022-01-09T02:39:06.072167 | 2019-05-14T01:43:03 | 2019-05-14T01:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import time
sample = '''A ___1___ is created with the def keyword. You specify the inputs a ___1___ takes by
adding ___2___ separated by commas between the parentheses. ___1___s by default return ___3___ if you
don't specify the value to return. ___2___ can be standard data types such as string, number, dictionary... | [
"noreply@github.com"
] | noreply@github.com |
6577b9582d2bf65a5354e5d3a33283e27f69895f | 64b301791f73c37950ade855f43e3c6f98aa7492 | /regularexp/exampleTwo.py | 4beb6f89d5f4cf3bef0d89e590adb5361b4e8ceb | [] | no_license | nandansn/pythonlab | cf71dc6f894076d84c0bff3bd25b395fef37dfa2 | b3d6b49614631b621f52789ef20ed9f6d978feb0 | refs/heads/master | 2022-12-27T03:49:08.811610 | 2022-12-15T06:25:53 | 2022-12-15T06:25:53 | 95,769,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import re
myString ="nandakumar"
matchedPattern = re.findall(r'a|n|d|k|u|m|r',myString)
print(matchedPattern) | [
"geeknanda13@gmail.com"
] | geeknanda13@gmail.com |
3328c94f669787d0537128c0ce831c4590974225 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/Asian_Vorst.py | bfbf7cdde70cf2f3a964587cc08d48d3fda1e972 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,781 | py | """
Valuation of Asian Options using Vorst's method.
Only valid for fixed strike arithmetic average options.
Implementation closely based on Black-Scholes implementation
contained in FC/Eq/OptDiv. Mathematics provided by Dr Antonie Kotze.
Implementation relies on SEQ package being installed and updated daily i.r.o
... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
4e8f515df8c7dcaaf54cfd5914649b2aea7c15d9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/3135/codes/1679_1880.py | db0fd44f615b14c67d5ec39b46a5181316fd0db0 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | # Ao testar sua solução, não se limite ao caso de exemplo.
m= int(input("Insira o mes:"))
x1="janeiro"
x2="fevereiro"
x3="marco"
x4="abril"
x5="maio"
x6="junho"
x7="julho"
x8="agosto"
x9="setembro"
x10="outubro"
x11="novembro"
x12="dezembro"
if(1<=m and m<=12):
if(m==1):
print(x1.lower())
elif(m==2):
print(x2.low... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
50cc11aedb932282abe8ea24e603f8d0c932338b | 12902e18cc2c836d7407a2a9b9344396aed1c7dd | /log_parse/parse-local.py | baf95e899225b0872e4f9fa6953cce0b5f6f9c0c | [] | no_license | 1010kazu/ccf-log-analyzer | 9bf1bce11682a880e59d01fa614dbca4ca2a438e | 90b7b075ded1741d6276c20ff35231f5417d9ff8 | refs/heads/main | 2023-08-25T02:00:22.183292 | 2021-09-27T21:59:53 | 2021-09-27T21:59:53 | 409,393,092 | 0 | 0 | null | 2021-09-23T00:12:20 | 2021-09-23T00:12:19 | null | UTF-8 | Python | false | false | 1,351 | py | from types import ClassMethodDescriptorType
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import re
content = []
with open('log-dev-ver.txt') as f:
for line in f:
line = line.rstrip() # 改行文字削除
content.append(line)
content = [x for x in content if x != '' and 'ccb' in x]
c... | [
"kitsystemyou@gmail.com"
] | kitsystemyou@gmail.com |
5cd77e31d401a90641b8ad3d0e8e6e078b280814 | fa25d937309fea55ff5a33d30262012adedfaf19 | /04_LinkedLists/remove_duplicates_from_sorted_list.py | d39589b5b97447b5f621d948a8900800f05ed8a4 | [
"MIT"
] | permissive | alqamahjsr/InterviewBit-1 | 20d033a2feecb85a37b28f2ff178b8d85424a6ea | fe2ce1bd64814c3a5687bf9b827b46bdbcf9144f | refs/heads/master | 2020-09-16T18:31:10.326427 | 2018-12-09T11:13:14 | 2018-12-09T11:13:14 | 223,853,679 | 1 | 3 | MIT | 2019-11-25T03:31:24 | 2019-11-25T03:31:23 | null | UTF-8 | Python | false | false | 1,064 | py | # Remove Duplicates from Sorted List
# https://www.interviewbit.com/problems/remove-duplicates-from-sorted-list/
#
# Given a sorted linked list, delete all duplicates such that each element appear only once.
#
# For example,
# Given 1->1->2, return 1->2.
# Given 1->1->2->3->3, return 1->2->3.
#
# # # # # # # # # # # # ... | [
"sladjan.kantar@modoolar.com"
] | sladjan.kantar@modoolar.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.