blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44c9b9b86cd6eaf6d79ee96831b7c9820294d832 | a94d55cbc23c43febe97cc0e72cdc296f4579656 | /DATA/scripts/areas/updatetable_areas.py | acf8554e8e888cc2f553c8d99efb95eb205a43b4 | [] | no_license | SergioCardenasS/Control-de-Contratos | 383a80889aab797d3881941b88f24ad32a5d3ed7 | 339699cc93b77193372ad8ec09ca25ed938b0c49 | refs/heads/master | 2020-05-21T14:07:54.178386 | 2019-04-26T17:25:10 | 2019-04-26T17:25:10 | 54,640,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Import de Librerias
import sys
from PyQt4 import QtGui
#Import de Modulos
BASE_DIR='../..'
sys.path.insert(0,BASE_DIR)
from constants import *
from models import area
db=get_connection()
cursor=db.cursor()
NEW_AREA_CONTROL_PASS = ""
NEW_AREA_COMERCIAL_PASS = ""
ARE... | [
"christian.benavides@ucsp.edu.pe"
] | christian.benavides@ucsp.edu.pe |
74db189a08942b3b8203106539c834233266f656 | fffecbc273ebe498437f743d4295dd963471b20e | /apps/travelApp/apps.py | 5459849f73efd21df4ff16b7016b7ab542bed208 | [] | no_license | currbear91/TravelApp | a1efe57d0243fc3e288cd71576ea8c67a36b5080 | c92d950a5e51b5a7dc48f641737f86bd96f35011 | refs/heads/master | 2021-01-20T20:27:55.794098 | 2016-07-29T22:26:30 | 2016-07-29T22:26:30 | 64,174,837 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class TravelappConfig(AppConfig):
name = 'travelApp'
| [
"Currbear@Currans-MBP.hsd1.wa.comcast.net"
] | Currbear@Currans-MBP.hsd1.wa.comcast.net |
3d64de308e279de8404995dae364cfe5ff14d58b | 9e36ca3d308a21a485bcc3bf752ee4a82ecc6e7d | /Lista1.py | 62303743c622ec9404940ebda3b704f5b6d08b96 | [] | no_license | Jelowis/DEBER15 | e507c89d52d449af4f8592d407fba163f699e691 | 140cfec44011980e882d518d0e4e561fb7908822 | refs/heads/main | 2023-08-19T04:01:20.508645 | 2021-09-13T03:55:54 | 2021-09-13T03:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # Leonardo Altamirano Retto
# 3 Semestre Software
class Lista:
def __init__(self,tamanio=4):
self.lista = []
self.longuitud = 0
self.size = tamanio
def insertar(self,valor):
i=0
enc = False
while i < len(self.lista) and enc:
if self.lista[i]==val... | [
"noreply@github.com"
] | Jelowis.noreply@github.com |
26726fa6fa874f79a109c4fc897e9f4671bd5ca7 | 439386f9097632d44d31d1f599df76ec2820d072 | /性能项目/统一大厅常规checklist/1601/DFQP/src/uilib/exchange_page.py | 100b9e01ac952280dbe97665969e45d263c46165 | [] | no_license | YiFeng0755/testcase | 33693f0940a6497aa40e2e51a0535c9eb6c12b29 | edc19480c3e94cbcbf004aa9d20099ec6d1b9304 | refs/heads/master | 2020-04-28T04:34:28.232022 | 2019-03-11T11:13:25 | 2019-03-11T11:13:25 | 146,287,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#Author: MindyZhang
'''
兑换奖品场景
'''
from appiumcenter.element import Element
class Exchange_Page(Element):
pass | [
"YoungLiu@boyaa.com"
] | YoungLiu@boyaa.com |
e62cbb42232b3721884213d58342e6477fa8faa9 | 3a1dec7cb8d6da7779580f3ada03d1f7d035656e | /pubsub/monitor/monitor.py | 7d956933bfc6cb0d95782fd7ff4bf1545c997d21 | [] | no_license | tekulvw/modularsecurity | 37b4d91c1696a3930cf1c00765243f51d1bd5d58 | b812d1dd3dc45f78ebcc141b6823d5ee5b2330bd | refs/heads/master | 2020-07-22T06:22:54.249803 | 2017-07-24T00:59:32 | 2017-07-24T00:59:32 | 94,344,902 | 0 | 0 | null | 2017-07-25T17:13:17 | 2017-06-14T15:17:14 | JavaScript | UTF-8 | Python | false | false | 1,781 | py | import json
import base64
from typing import List
from urllib.parse import urlparse
from flask import current_app, request
from storage.getter import get_data
from datastore import devicedatatype
from twilio_util import notify_number
from datastore.device import maybe_update_is_connected
def data_event_handler():
... | [
"tekulve.will@gmail.com"
] | tekulve.will@gmail.com |
fc08ad8ba2843ed878a2b2c386ad9a4e9801aef1 | 97fff6d80c7c3689ef1859d4928a0575a827d7f6 | /Python/5-DIP/DIP-Solucao/interfaces/IClienteRepository.py | cfbc3235c30f9d802738234d7820381cac669462 | [] | no_license | thiagomsilvestre/SOLID | db61fcc63e1ad135a451a8f372cbc442ee0ff71d | 8ac9448851d2d792ace3f986346272a6ff889b94 | refs/heads/master | 2021-07-02T21:36:29.304848 | 2020-09-21T21:12:00 | 2020-09-21T21:12:00 | 171,590,025 | 3 | 3 | null | 2020-09-21T21:12:02 | 2019-02-20T02:56:36 | null | UTF-8 | Python | false | false | 501 | py | import abc
import sys
from os import path
sys.path.append(path.join(path.dirname(__file__), '..'))
from ..Cliente import Cliente
class IClienteRepository(metaclass=abc.ABCMeta):
@classmethod
def __subclasshook__(cls, subclass):
return (hasattr(subclass, 'adicionarCliente') and
callable... | [
"mateusfiori@Mateuss-MacBook-Pro.local"
] | mateusfiori@Mateuss-MacBook-Pro.local |
2860ff4b77c74263c721195210a5b83c94a501b9 | f3917b41c8549175dd72490a409bfaaadedc397d | /TelegramSection/Tg_Bot_Client.py | 2eb1a828e9b15f90f45e428db2a7b1c4467d709e | [] | no_license | 320Jackson/Telegram_LINE_Adapter | fedf5dcf16d355ccb9b8b43db3f2b351d5e307e5 | d7638eed27528337d113539ae11b9ce4fa8acc5f | refs/heads/master | 2023-01-28T01:18:02.252298 | 2020-12-14T13:24:18 | 2020-12-14T13:24:18 | 320,486,086 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | py | import time
import Global_Element
from linebot.models import TextSendMessage
from FileControl import FileControl
from datetime import datetime
class Telegram_MessageHandler:
#Telegram接收器
@staticmethod
def Telegram_MessageReceive(msg):
try:
ContentType = msg['entities'][0]['type']
... | [
"jackson8963@outlook.com"
] | jackson8963@outlook.com |
40f202b1dcfd707e76b11e0586df3eb6fb079f7f | a80e45b5a5b2a8ff95cb7df0165ee2b52aa1dae2 | /plot.py | 7586b17f2f14c758e2df11c83d7372e5ee71780b | [] | no_license | bctvu/103 | fb940808fa0e5b7d8651dae5a4838e8c12663556 | 4971a3e1294eb610f8a81207be99cd539b545448 | refs/heads/main | 2023-07-05T06:15:05.191941 | 2021-08-26T08:21:37 | 2021-08-26T08:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import pandas as pd
import plotly.express as px
df=pd.read_csv("line_chart.csv")
fig=px.line(df,x="Year",y="Per capita income",color="Country",title="Per capita income")
fig.show() | [
"noreply@github.com"
] | bctvu.noreply@github.com |
e77d7299c13314f6e3cff061509e833052882337 | 46a3607edf8ee6462ab995674a22e73a79d0c0e6 | /imageOp.py | a900c0c693c13bf65e1dd03da33af6448f12b677 | [] | no_license | abhinav2188/MCA-Linear-Algebra | b365fc2b9d8d66726abd537a0e88677931542e84 | 659f9fd5b1de0f73cfd14fa4cb7ec21b0364f34e | refs/heads/master | 2020-09-12T00:04:27.122319 | 2019-11-18T17:35:43 | 2019-11-18T17:35:43 | 222,235,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 17 01:49:44 2019
@author: abhi
"""
import numpy as np
import matplotlib.pyplot as plt
import cv2
#reading image in grayscale
img = cv2.imread('img1.jpg',0)
#to autosize the image window
cv2.namedWindow('image',cv2.WINDOW_NORMAL)
cv2.imshow('image',img)
#to wait for a... | [
"39943422+abhinavchmod777@users.noreply.github.com"
] | 39943422+abhinavchmod777@users.noreply.github.com |
05f8bfab1be5b15e506641a43fb50fda749653eb | 6fd8d4d92e22365d9ad277379292b390aaf7d39b | /{{cookiecutter.app_name}}-nfusz-ms/main.py | 17d1bb89b5ba33774d23f4373990910c75019b67 | [
"MIT"
] | permissive | anthony-munoz/python-serverless-template-py34 | 996c3306ba0e02823d34e94f1a294f76589b3e50 | 810d5eac08b036bfcf9523f848117b1bbf198f6e | refs/heads/master | 2020-03-22T22:50:15.707295 | 2018-07-14T21:24:21 | 2018-07-14T21:24:21 | 140,773,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
from app.flask_factory import app
from app.router import configure_api
configure_api(app)
if __name__ == '__main__':
app.run(debug=True)
| [
"anthony.munoz@lantern.tech"
] | anthony.munoz@lantern.tech |
a88ddeb23230460854ea57da3cde2263d05896a9 | ee28d9f80fccfed6512398231c3781d8d5ef8772 | /Banner Grabber/CODE bannerGrabber EXE.py | 50ea0bb52a65fcbbe358b51043fd821732771350 | [] | no_license | AnshVaid4/Python | 660adcde1643c59fa4def75c33624e69881eab0e | b5b76f8ff2015085ba1f9d50d673a98523684ad4 | refs/heads/master | 2022-05-21T11:47:09.749497 | 2022-03-31T10:47:36 | 2022-03-31T10:47:36 | 390,971,555 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | import sys
import json
import time
from socket import *
import requests
flag=1
def grabber(host):
try:
req=requests.get("https://"+host)
print("[+] "+str(req.headers))
ip=gethostbyname(host)
print("[+] IP address is "+ip)
details=requests.get("https://ipinfo.io/"+ip+"/json")
... | [
"anshvaid4@gmail.com"
] | anshvaid4@gmail.com |
a5a75d90679c6ca3fd506ea8dfbafd949dc61360 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/lib/googlecloudsdk/core/updater/release_notes.py | 977fe1c29e08b001c9d41029efce76a4f5bf998e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 7,835 | py | # Copyright 2015 Google 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 by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
c540d7ac236c5eeeef6665e051608f1b1df3d8d8 | eb5bb62b7ad8fb2cdbbe21d377b3d880765a31af | /src/multilabel/classifiers/classifier.py | 4e9103d5f6987c6b7f5ea8ff98c345ba0b868563 | [] | no_license | TANG16/multilabel-feature-selection-temp | 6d3df5114fb361907131b128f1967607d36fdae8 | 176f8c7d947a3e4515eb2b71848344291a142141 | refs/heads/master | 2022-11-20T20:11:16.645033 | 2020-07-27T07:53:14 | 2020-07-27T07:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 14 20:27:16 2020
@author: Mustehssun
"""
import abc
class Classifier(abc.ABC):
@abc.abstractmethod
def fit(self, multilabel_dataset):
pass
@abc.abstractmethod
def classify(self, multilabel_dataset):
pass
| [
"mustehssun@gmail.com"
] | mustehssun@gmail.com |
8e0f636497884cd06984efbb34ba743a1c4e4c8a | 8dd65dbc240320854c778e0c77197f0d8db417ca | /rus/migrations/0001_initial.py | bc6c22fd1bc88a611d11abb29401e8a6b9da7f6c | [] | no_license | AnimaDei326/rus | 15cc67f6e41d408fc37b5abce5928fd9479bd3ed | 990da269bc40d0ad574205feb8e4c2dd450476cf | refs/heads/master | 2022-11-30T16:11:40.574440 | 2020-08-14T22:18:51 | 2020-08-14T22:18:51 | 253,126,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,919 | py | # Generated by Django 3.0.8 on 2020-07-28 21:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
... | [
"support@beget.ru"
] | support@beget.ru |
66fe303cec467a54e9a1f2fcd4801199a0e49b7f | 15cb0acb86968e34593fa4cbd7a3616fbb659b1d | /morzeovka.py | 56e65505c2ab5265f7748778f8ea5900173edbdc | [] | no_license | TerezaMertlova/intenzivnikurz | a9bedd6eb87144516798240acb2dbfc4640bf887 | 7e8b27ab48a350a9b53a3c4bf36396e87e2715d4 | refs/heads/master | 2023-07-01T18:38:16.520836 | 2021-08-03T07:48:37 | 2021-08-03T07:48:37 | 392,232,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # Ve slovníku níže vidíš Morseovu abecedu, kde jako klíč slouží znak v klasické abecedě a
# jako hodnota zápis znaku v Morseově abecedě.
#
# Napiš program, který se uživatele zeptá na text, který chce zapsat v Morseově abecedě.
# Uvažuj disciplinovaného uživatele, který zadává pouze znaky bez diakritiky, malá písmena a... | [
"terik.mertl@gmail.com"
] | terik.mertl@gmail.com |
220261aae88fefcf2727065cc283d0315a9050a2 | bc405651d83f34143d57b20d5567f86f7e04e44e | /kanna/model/user.py | ee6988220e06d920cc4e854ddf45569d9ea41e08 | [] | no_license | tylertreat/Kanna | dc94c0d0bc0b4327bf66c1a07d014787ea186a33 | f7c64742a8af43cbb9d28f05fa2452dc2a598856 | refs/heads/master | 2016-09-06T02:00:28.920423 | 2014-01-26T00:30:55 | 2014-01-26T00:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from google.appengine.ext import ndb
from kanna.model.photo import Album
from kanna.model.photo import Photo
class User(ndb.Model):
email = ndb.StringProperty()
name = ndb.StringProperty(indexed=False)
created = ndb.DateTimeProperty(required=True, auto_now_add=True)
@property
def photos(self):
... | [
"ttreat31@gmail.com"
] | ttreat31@gmail.com |
aaa070c00c120f1a573c1960808df255e6b566f1 | 157f3abb797e038d8ac76a7c14e9db94247dc942 | /fluentcheck/tests/test_dicts.py | 3abce25bdd17c3c071fa9d8046e80025c7c5d8ef | [
"MIT"
] | permissive | deanagan/fluentcheck | 525ef4bc8ed760b02d8b2fa519e42d2d1ebf093e | 514d648a5dcfcdd6c8a2e10197064a465d4924fb | refs/heads/master | 2021-01-04T04:41:37.919768 | 2020-03-08T07:02:21 | 2020-03-08T07:11:23 | 240,392,048 | 1 | 0 | MIT | 2020-03-08T06:35:28 | 2020-02-13T23:56:32 | Python | UTF-8 | Python | false | false | 1,107 | py | import unittest
from fluentcheck.check import Check, CheckError
class TestDictsAssertions(unittest.TestCase):
def test_is_dict(self):
res = Check(dict()).is_dict()
self.assertIsInstance(res, Check)
try:
Check(123).is_dict()
self.fail()
except CheckError:
... | [
"agandfr@gmail.com"
] | agandfr@gmail.com |
dae5e73951268b5b40e35f9c4495effe9cfdb2a3 | 86f110457ab43bd1b9a8e2b37f8a8a909c719477 | /bin/python-config | c9cd1d25010c17c46cf4c52dec2df77fe1e6f196 | [] | no_license | jicowan/ENIConfig-Node-Annotator | 858ccbf8abae904b2af07f3537bea4c49b73b866 | 65af66da7fdaed1d845f13dd0fee58bcdc4adfa4 | refs/heads/master | 2020-04-18T10:27:59.609669 | 2019-10-11T18:02:53 | 2019-10-11T18:02:53 | 167,468,618 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | #!/Users/jicowan/PycharmProjects/pykube/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys... | [
"jicowan@hotmail.com"
] | jicowan@hotmail.com | |
f0b1e7cdc6dd10b0060104cf2fa37847c9fece9e | 33b75d77c3eb526594e7f4ee767c635141409187 | /server/tests/conftest.py | 913501ada5f2befa3ac99ce8a310cf0950094aa3 | [
"Apache-2.0"
] | permissive | triplekill/patton | e3a3489abca74291effe62aa177e1960c60c30cc | 5401b68b54938647ef8b5d6eaea38fa97217a36b | refs/heads/master | 2020-07-06T19:23:48.024295 | 2019-07-19T12:34:23 | 2019-07-19T12:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | # Remove it under your own responsibility.
# It is used in order to pytest find the correct python test files.%
| [
"enrique@iknite.com"
] | enrique@iknite.com |
49a618fbd6ab7ca187b9bd478ae66d933454a3c7 | d323c6d0d026c435ce9512e3658620a10b1b242d | /tensorflow/opencl-matmul/gen_model.py | 4978d9553274ddf2dc4cd266ca0443e04dfe3675 | [
"Apache-2.0"
] | permissive | ShabbirHasan1/TensorflowOpenCL-GPU | 2408d6490566812e67c557e66f92620e909757a8 | 8d443c9afb49064c4bdf68fc0c5217986077d24c | refs/heads/master | 2023-03-15T21:27:11.227808 | 2018-05-28T12:53:27 | 2018-05-28T12:53:27 | 546,891,912 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import tensorflow as tf
with tf.Session() as sess:
x = tf.placeholder(tf.float32, [None, 1024], name="x")
y = tf.placeholder(tf.float32, [1024 , None], name="y")
result = tf.matmul( x, y , name="matmul", transpose_a=False, transpose_b=False)
tf.train.write_graph(sess.graph_def,
... | [
"michael1996623@gmail.com"
] | michael1996623@gmail.com |
7fb1875f38bea1f34af5aeda8ad2d2616caa2bc1 | 52ea21f0b6a2a994539bc900fa7b7d9c2278a3c4 | /RoboticFrameworkTest/RobotController/Event/test_NewPositionEvent.py | 8d4a011c89df40046bbb2c3fa17b2d90e3d9a605 | [] | no_license | dheerendra1/RobotNaturalLearning | 1b485a47a0deddaef55a6d8aa7bf0a4962478dcd | 036070f713008950f07c9e42a52fc55868b0c544 | refs/heads/master | 2020-12-24T18:13:04.871143 | 2011-10-23T14:59:21 | 2011-10-23T14:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #Testing new position event
#Author: Witold Wasilewski
from RoboticFramework.RobotController.Event.NewPositionEvent import NewPositionEvent
import pytest
class TestNewPositionEvent:
def setup_method(self, method):
pass
def test_construction_simple(self):
event = NewPositionEvent("posi... | [
"vitotao@gmail.com"
] | vitotao@gmail.com |
5614c386ee967c7ba8824677d3456bbbdb412140 | a384d0781c8e0bf38dcc9f5b21b79fa2c30ff324 | /3in1cafe/bin/rst2pseudoxml.py | 798cd7a59667447980b58d9feb057f37a60cab7d | [
"MIT"
] | permissive | Backend-Staging/3in1cafe | 90c3443942986e5595b3cb2c5cab43e6dc90e446 | 89f85dbff207244081a1ecf419398a8858556078 | refs/heads/master | 2022-12-22T21:06:26.211790 | 2019-08-09T17:18:16 | 2019-08-09T17:18:16 | 201,094,660 | 0 | 0 | MIT | 2022-11-22T03:15:40 | 2019-08-07T17:21:12 | Python | UTF-8 | Python | false | false | 658 | py | #!/Users/jmgc/Documents/workspace/cafeBackEnd/3in1cafe/3in1cafe/bin/python3
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"... | [
"jmgc@JMGCs-MacBook-Pro.local"
] | jmgc@JMGCs-MacBook-Pro.local |
5ae862e9d518c2f20efcded062ee983747e72c04 | 4778bb52672e5bfd3bc227fd46bd3e2262146788 | /check_pickle_data.py | 77936b0793afdc053427dfe6f921049916de9d4f | [] | no_license | vyshor/NTU_timetable_generator | cf5d2914a52d41ca1087259fafe215d3298cfd3d | e7223fd98da718232af85e960bddc9e88ee02e5d | refs/heads/master | 2021-06-02T09:12:44.419674 | 2021-05-20T14:25:04 | 2021-05-20T14:25:04 | 135,579,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import pandas as pd
import pickle
import os.path
if os.path.isfile('database.p'):
with open('database.p', 'rb') as f:
store = pickle.load(f)
print(store.keys())
print([x for x in store.keys() if 'CZ' in x])
print(store['HE9091']) | [
"vyshornehc@gmail.com"
] | vyshornehc@gmail.com |
804f1bfe9ba0390779b244358dd71dc070a80fda | ea2c81374a549afd647dfdb745d9b97e34d4cac7 | /tools/torch_model_process.py | d2c23a94fe801de46880826e29f381236944f6c5 | [
"Apache-2.0"
] | permissive | Shanshan7/easy_anomaly_detection | 768adf743fcb08c2148ad62f888903a1e43e14d9 | af10f0b26597d9d28c660730e17006c2bceaddc6 | refs/heads/main | 2023-07-14T07:35:41.823634 | 2021-08-19T10:33:39 | 2021-08-19T10:33:39 | 397,079,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | import os
import torch
from collections import OrderedDict
class TorchModelProcess():
def convert_state_dict(self, state_dict):
"""Converts a state dict saved from a dataParallel module to normal
module state_dict inplace
:param state_dict is the loaded DataParallel model_state
... | [
"1336946993@qq.com"
] | 1336946993@qq.com |
b19037708f139c7478fbb1b7a79a91f72523998d | 9a24444fda749f39ba448d5015c591b8f53d076b | /2-1-Task3.py | 5528040180e739cf2b172ca6d68e3f5316ee1a22 | [] | no_license | Anri19/Testing-Stepik | 2626c8d9c5d037f475a0e93f53b465312b139062 | 1f59bfe07c442aa2363a30d8b2f578bab2750bcb | refs/heads/main | 2023-06-19T22:40:32.514728 | 2021-07-07T21:14:33 | 2021-07-07T21:14:33 | 383,914,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import math
import time
from selenium import webdriver
link = ' http://suninjuly.github.io/math.html'
browser = webdriver.Chrome()
browser.get(link)
def calc(x):
return str(math.log(abs(12*math.sin(int(x)))))
x_element = browser.find_element_by_id("input_value")
x = x_element.text
y = calc(x)
#print(y)
input1 = ... | [
"an_zakharov@mail.ru"
] | an_zakharov@mail.ru |
45e93a3719f442de1c11065445d26e92ab6c6281 | 9ec2695ac982c47ea277d56027d617ebf9aece77 | /reverse_a_string.py | 0e61a7702e206a4d8f307ac8505bcb2c39af6e2d | [] | no_license | visaxin/InterviewQuestion | 91cc1cc3635af582da7190d52bf74a2c0d02afb0 | 792f363519d25b04a5f15fb2d0bb7c4ad99f756c | refs/heads/master | 2020-04-25T08:08:46.881667 | 2015-04-24T14:51:44 | 2015-04-24T14:51:44 | 34,447,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | #solution_1
my_string = "abandon"
my_reversed_string = my_string[::-1]
print my_reversed_string
#solution_2
def reverse(text):
if len(text)<=1:
return text
return reverse(text[1:])+text[0]
#test
my_string_two = "abandon"
print reverse(my_string_two)
#solution_3
def reverse_two(text):
reversed_string = ""
... | [
"visaxin@gmail.com"
] | visaxin@gmail.com |
12cd15f963adfecba72c94e9f3361a291ddf3fda | 935d780103b43846d7ed5426a4d458152016ca4d | /Content/Scripts/NNDriveCar.py | 6ceb1e13786735aec17b8b1b229d5c7a91788bd1 | [] | no_license | pikumb94/UE4_TF_DLDriving | 04451d782b361b3a6019756f8552f5e6a502592a | d62694ca97c21e6a2c4f712dc9dc245efffdc752 | refs/heads/master | 2023-07-27T19:20:25.852547 | 2023-07-17T16:16:47 | 2023-07-17T16:16:47 | 362,065,737 | 14 | 1 | null | 2021-07-31T09:45:13 | 2021-04-27T10:05:14 | C++ | UTF-8 | Python | false | false | 3,209 | py | import unreal_engine as ue
import tensorflow as tf
from tensorflow.python.keras import backend as ks #to ensure things work well with multi-threading
import numpy as np #for reshaping input
import json
import operator #used for getting max prediction from 1x10 output array
from collections.abc import Iterable... | [
"pikumb94@gmail.com"
] | pikumb94@gmail.com |
3f6c2cacc5c56ce83ddf0c6243c142943e9cee26 | be48c0c7f070738e97981e116539c3e4a64b0f51 | /ps0a/syllabus.py | 52fa7dcf3c9bd4b28b5519021fba68930aa076ed | [] | no_license | timflannagan/COMP.4200 | 0ce3a365d2d42b970858a8d737c2e3b8fd7869ae | 45e2a621fe684ea84722bab9dad579e22804fd75 | refs/heads/master | 2021-10-01T18:10:13.628904 | 2018-11-27T22:03:12 | 2018-11-27T22:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # syllabus.py
# -----------
# (C) 2018 J Mwaura, jonathan_mwaura@uml.edu
# for use only at University of Massachusetts Lowell
# DO NOT REDISTRIBUTE
"""
Run python autograder.py
"""
# instructions:
# read the course syllabus to find the answers to the below questions.
# then, modify the return values of each of the n... | [
"timflannagan@gmail.com"
] | timflannagan@gmail.com |
ef09d8327ae8054139beaf60f224bb8565136e3e | 9fe9a586e9c0ae659e2dfe091d4ad0795d92fb7e | /front/mvreviews/views.py | 93fdf426545e397fd34c987c8f321c861ecc6a68 | [] | no_license | JaeInK/Deep-Learning-Projects_Django-API | bd2ed34bd2212b83411c2b4d7b30f1731ecc38c3 | 87c98f8ef32594e080ddfb3ca3dc3be6fa74fe77 | refs/heads/master | 2020-03-09T19:34:58.323235 | 2018-04-10T16:18:38 | 2018-04-10T16:18:38 | 128,961,315 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import TemplateView
from .forms import MvreviewsForm
from . import forms
# Create your views here.
import requests
import json
class Mvreviews(Templat... | [
"gjames5809@gmail.com"
] | gjames5809@gmail.com |
d1fb3a7e3169ec76a6ac4cb1cd3f6548d9308c44 | fb0d394bb9d69dfcdee123864dbcaf812b873848 | /calculate_num_of_pattern.py | b8ba5701cb409e90c1ab705cf1de761a17510a66 | [] | no_license | cali-in-cau/auto-ta-ml | e767661abf6c1342601109c2327aef0d727faf0c | 0b32b5350120001b3eb31fcb9043b66c088a2a6f | refs/heads/master | 2023-03-03T14:28:10.289077 | 2021-02-15T14:44:04 | 2021-02-15T14:44:04 | 331,219,558 | 5 | 4 | null | 2021-02-15T14:44:05 | 2021-01-20T06:54:58 | Jupyter Notebook | UTF-8 | Python | false | false | 1,339 | py | '''
각 패턴별로 나온 폴더에서 각 패턴별로 몇개의 이미지가 수집되었는지 알려주는 script입니다.
각 패턴의 개수를 조절하기위해서는 pattern_dict_sort[:x] 의 x값을 조절하세요. 상위 x개의 패턴을 출력해줍니다.
이 파일을 패턴들이 모아져 있는 집합을 모든 폴더(예)2018-nasdaq-top100 과 같은 위치에 두세요. random_select_item.py와 같은 위치에 있어야 합니다.
아니면 os.getcwd()위치에 경로를 조작하세요.
'''
import os
import random
import sys
def run(folder_na... | [
"ksl970330@naver.com"
] | ksl970330@naver.com |
9d2088838424734104abac49d03bc31bad104416 | ca48bab2e2ffca8bb351050791f3b94bccc886b9 | /final report/interpreter2.py | 95afe2a50ddc908c1b87ab7b75229f75451ed525 | [] | no_license | haaksmash/QUI | ff394205bd3c3c089d23c0de66bcc4de6bc4e65b | f1cc2b3e999bebc7811598bde0f3ffddba216e65 | refs/heads/master | 2020-04-06T03:35:15.499196 | 2011-12-10T09:21:55 | 2011-12-10T09:21:55 | 2,872,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | $ python -i FileModel.py
>>> f = FileModel()
>>> f.size = "really big"
Traceback (most recent call last):
...
...
fields.ValidationError: Could not convert to int: really big
>>> f.size = 100
>>> f.size
100
>>> | [
"haak.erling@gmail.com"
] | haak.erling@gmail.com |
312b66c5eacb2a78cdd83ede287b252ff061e671 | abd311803ab191ca5100e67d2dcefd6bd78cf07e | /news/views.py | eb589c1472f3e1bc9acf2241f255aa49c5b24b63 | [] | no_license | function2-llx/mysite | 980f6272f3db8c622e744e6782235d028e9f7aef | 1f8280fa50b8dd2a8c8b1c0cd6fd0a22454a36b1 | refs/heads/master | 2020-03-28T18:43:12.097530 | 2018-09-15T13:24:13 | 2018-09-15T13:24:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from django.shortcuts import render
newsDirectory = '../news/'
def displayNews(request, newsId: int):
context = {}
with open(newsDirectory + str(newsId) + '.txt', 'r') as f:
context['title'] = f.readline()
context['pubtime'] = f.readline()
context['body'] = f.read()
return render(request, 'news.html', cont... | [
"function2@qq.com"
] | function2@qq.com |
a16437348d97977bbebb92079774c3fe85c27609 | f306e08639d697b2c3f704906ccb087cf7a8db34 | /Image classification_birds/pipeline components/pytorch_model/pyt.py | 6f4f8f9602f99bf7be852385fa51513806f00d0d | [] | no_license | Soot3/ml_usecases | 80a896b711baa747c037737e25d6b06eeea4d254 | 1130ce703a55add9fafc1f59c82f74588b296c6a | refs/heads/main | 2023-09-03T15:53:26.453781 | 2021-11-09T07:28:43 | 2021-11-09T07:28:43 | 426,128,978 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,031 | py | import argparse
def pyt(img_folder):
import torch
import torchvision
import torch.nn as nn
from tqdm.notebook import tqdm
import torch.nn.functional as F
import torchvision.transforms as T
import torchvision.models as models
from torch.utils.data import DataLoader
from torchvision.utils import make_gr... | [
"sootersaalu@gmail.com"
] | sootersaalu@gmail.com |
dddf73a1ab73efc1e40f3649f0968ad51992f15e | 58893b353ac929689f0fdd1c18c12050312483e6 | /examples/mini_batch_trainer.py | f388260f6696297fdecf88810f4cddee1f3f4a29 | [] | no_license | cuhk-mobitec/E-Payment-Transaction | 5bc7d992a3207496435d1ecbe89df92ddc2b923a | eb55ef917d715b1b81c0edeab409db1e9835437e | refs/heads/master | 2020-05-21T03:54:46.991648 | 2019-04-26T06:13:24 | 2019-04-26T06:13:24 | 185,900,553 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,418 | py | from .utils.metrics import accuracy
from .utils.torch_utils import EarlyStopping
import torch
try:
from tensorboardX import SummaryWriter
use_tensorboardx = True
except:
use_tensorboardx = False
import numpy as np
import time
import logging
import matplotlib.pyplot as plt
import os
from dgl.contrib.sampling... | [
"handasontam@gmail.com"
] | handasontam@gmail.com |
21c63146676fd30217432916e59f7094633339a4 | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/05-Working_with_Dates_and_Times/e23_march_29_throughout_a_decade.py | f8a0f897b1922372263e9afbb7bb4c04be5da9a8 | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """
For example, in the United Kingdom, as of the time this lesson was written, Daylight Saving begins on the last Sunday
in March. Let's look at the UTC offset for March 29, at midnight, for the years 2000 to 2010.
Using tz, set the timezone for dt to be 'Europe/London'.
Within the for loop:
Use the .repl... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
984881e82d2ab32e230a2ebdc14c0a2bbab910cf | e7a0edf2c948f4897e369d235d7477b982640a74 | /eape/migrations/0003_pagamento_valor.py | 7e386ed271f7275ad4e73107113fb3e5271263a5 | [] | no_license | jhussyelleReis/eape | 4199582d6a80a9a88769c14c4fbb30f543b5948b | 16da312ce227a86541133c9ba9d290c861cca1e0 | refs/heads/master | 2021-01-20T05:00:54.051449 | 2017-08-25T15:14:44 | 2017-08-25T15:14:44 | 101,407,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-25 12:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('eape', '0002_auto_20170825_0913'),
]
operations = [
migrations.AddField(
... | [
"jhussyelle.reis@gmail.com"
] | jhussyelle.reis@gmail.com |
f021bb102cc87eb011524a21ba749fcfa70d2ffc | 66320714c6e020a8c546c0a74949039b1cc95403 | /T2.py | 69dd116432df20bed1a77a99d008e02598564c8e | [] | no_license | sb17027/ORS-PA-18-Homework06 | 372c783f47d924499fe94094a26b7b3d1e438861 | fd8fde4acb8c355881d143acd1dc507bd0ef9295 | refs/heads/master | 2020-05-05T03:08:28.171623 | 2019-04-08T12:14:08 | 2019-04-08T12:14:08 | 179,662,273 | 0 | 0 | null | 2019-04-05T10:29:27 | 2019-04-05T10:29:27 | null | UTF-8 | Python | false | false | 640 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the compareTriplets function below.
def compareTriplets(a, b):
aPoints = 0
bPoints = 0
i = 0
while i < 3:
if (a[i] > b[i]):
aPoints = aPoints + 1;
if (a[i] < b[i]):
bPoints = bPoi... | [
"sanela.becovic@udg.edu.me"
] | sanela.becovic@udg.edu.me |
fa469309fe18cbe3e77032ace895be4cfa02963f | aa7049506e929693941436f93e22b13ff3122650 | /clubs/migrations/0002_club_club_picture.py | 95e50125132ee8e4eda71cd2d4fd2b4b1f9cfa77 | [] | no_license | austinbrovick/bellevue_college_hackathon | 24aa5f1ef64c4a4b85dd50e1f6dd628be15f3817 | 2ad9fa6c5ea79e8a34d55df8e21838aeb8fd044f | refs/heads/master | 2021-05-31T16:08:32.770057 | 2016-05-21T16:54:46 | 2016-05-21T16:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-20 07:24
from __future__ import unicode_literals
import clubs.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clubs', '0001_initial'),
]
operations = [
migrations.Add... | [
"austinbrovick@gmail.com"
] | austinbrovick@gmail.com |
9475e978727f421d6640b6c19aa2463bef419be8 | e9e717e8dd8d05ccf39170492721559076312a50 | /{{ cookiecutter.repo_name }}/src/transform.py | 37973295657a02ee98c67018a41f22b4433f8016 | [
"MIT"
] | permissive | alexkyllo/workbench-py | bf9ca182eb86ddfb828887ee459a63212373c79d | c0f56450a416fda6905b2f8ee087d414bcc0dd95 | refs/heads/master | 2022-12-08T12:02:01.038914 | 2020-09-04T05:28:33 | 2020-09-04T05:28:33 | 291,903,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | """transform.py
fit a transformer on test data to transform
test and training data.
"""
import os
import logging
import dotenv
import click
import joblib
from sklearn import preprocessing, impute, pipeline, compose
@click.command()
@click.argument("input_file", type=click.Path(exists=True))
@click.argument("output_fil... | [
"alex.kyllo@gmail.com"
] | alex.kyllo@gmail.com |
6f60238beba04799dafc1a104a259109b9dd1f8c | d4e85150b5ffbedfd9fbbdb3ad7663d3df4a71e4 | /doc_templates/handing_schedule.py | d6fb3fe90e33481e88802c3ca713fedc25549a39 | [] | no_license | ChubChubs/SecretaryDEK | c050dc4a14104c45eb9455275af5d0eacc8ef85f | 78ed2c621fc103e225a84d8678788ac7cc151684 | refs/heads/master | 2021-01-17T15:13:54.006393 | 2017-08-28T19:52:01 | 2017-08-28T19:52:01 | 43,775,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | __author__ = 'masterbob'
#from secretary.models import Diploma, Reviewer, User, UserProfile
def context():
return {'dates':[
{'date':'02.12.2014', 'students':
[
{'full_name':'Пупкін Василь Петрович', 'theme':'Типу темка1',
'guide_name': 'Батюк А.Є.', 'guide_level':'доцент'... | [
"bonduell@cyberdude.com"
] | bonduell@cyberdude.com |
1ee0156823b58b95c7391287b15e9d32dd2f218a | d93159d0784fc489a5066d3ee592e6c9563b228b | /Calibration/TkAlCaRecoProducers/python/ALCARECOSiStripCalMinBiasAfterAbortGap_cff.py | 80230ca8fcf180ce0466e854077ef3236b5e77fd | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 2,411 | py | import FWCore.ParameterSet.Config as cms
# Set the HLT paths
import HLTrigger.HLTfilters.hltHighLevel_cfi
ALCARECOSiStripCalMinBiasAfterAbortGapHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
andOr = True, ## choose logical OR between Triggerbits
## HLTPaths = [
## #Minimum Bias
## "HLT... | [
"dimattia@cern.ch"
] | dimattia@cern.ch |
4240df00eb5010e26f95c087f229324170c9f756 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/examples/Sutton_RL_Intro/ch4_DP/value_iteration.py | 60e7e8461ec89060fd9007c1bb8e4dffbb0be478 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 854 | py | # Following the algo in section 4.4 Value Iteration
from policy_evaluation import Policy_Evaluation
import sys
import numpy as np
if "../" not in sys.path:
sys.path.append("../")
from utils.envs.grid_world import GridworldEnv
def Value_Iteration(env, policy, state_value, gamma, theta):
state_value = Policy... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
ae317d3819b06f5de71f3da6f88fc4df21141864 | b593247a2bf162819eea6820b6a25c7a659d2f76 | /Unit 07 Lists and Functions/01 Lists and Functions/1 List Recap/4-Removing elements from lists.py | 8f667b9e1e80ddb0e19190278409ab25d8eb16c0 | [] | no_license | Angelpacman/codecademy-py3 | d4d727857a8894fec5dd3d78c00f3f25f31979dc | 729d232a8732e53bdf0131246b043354ed933614 | refs/heads/master | 2020-03-28T02:50:31.431167 | 2019-01-26T01:07:01 | 2019-01-26T01:07:01 | 147,601,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | n = [1, 3, 5]
# Removes 1 from the list,
# NOT the item at index 1
n.remove(1)
# Another possible solution, will remove the item at the given index:
del(n[0])
# Another possible solution will remove the item at index from the list and return it to you:
n.pop(0)
print (n)
| [
"angelr4a1@gmail.com"
] | angelr4a1@gmail.com |
6cf0154e33520dc042d50a3f03c9ef013abaeca8 | 1e5c6f4b08d9470fce248cf39e6dccce40e90a41 | /codes/11/vpython_mouse.py | 1dfa5be57b729a6fc2531903cb36ec3f2576e212 | [] | no_license | misaiya99/scipybook2 | 1529cfb7f800df2ef7ce024a86281af16e343a37 | 734ba177b4705cc25da695d42a8cbada7cd22bd9 | refs/heads/master | 2020-03-10T21:26:23.595494 | 2017-08-25T09:48:07 | 2017-08-25T09:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # -*- coding: utf-8 -*-
from visual import *
text = label(pos=(0, -2, 0))
sphere(pos=(0,2,0))
box(pos = (2, 0, 0))
ray = arrow(pos=(0,0,0), color=(1,0,0))
while True:
rate(30)
texts = []
for attrname in ["pos", "pick", "pickpos", "camera", "ray"]:
texts.append("%s=%s" % (attrname, getat... | [
"qytang326@gmail.com"
] | qytang326@gmail.com |
0f148fc9b8e79d34efa1a849ff1c6060148fa7d6 | 14a792c64600796272a6ad02e9553b2ecffc175b | /Functions.py | 7ab2e75df567509e8324121bb0832b7b15cbc8b5 | [] | no_license | MrRa1n/Python-Learning | 497c2ed0f6e8bf24d16eacf18a604ff72b117ba6 | a910d66b09d86774374c0aebb4fd9e90ed332545 | refs/heads/master | 2020-03-22T16:27:03.787423 | 2018-07-17T14:35:24 | 2018-07-17T14:35:24 | 140,327,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # Simple number squaring function
def square(x):
return(x*x)
print(square(3))
# Function parameters
def multiply(x,y):
print("You called multiply(x,y) with the value x = " + str(x) + " and y = " + str(y))
print("x * y = " + str(x*y))
multiply(3,2)
| [
"tobycookni@gmail.com"
] | tobycookni@gmail.com |
4bcd800c07e4277b3973998a8b7011e197ab5888 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/UpdateTableThemeRequest.py | 4d6f11d6dc5e74a7089425fa39c49b429212d945 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,746 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
4d53d7f73ebb9720864f89da0c2327cfa136e2c2 | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_05_data_structure/practice/zip_1_common.py | 4236c882354be343b387f643ccd4d9be6d9b4296 | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | """
Функция zip_common.
Принимает 3 аргумента: список, строку и кортеж.
Возвращает список (list) с тройками значений из каждого аргумента.
ВНИМАНИЕ: для строки один элемент = один символ
(Порядок проверки именно такой:)
Если вместо list передано что-то другое, то возвращать строку 'First arg must be list!'.
Если вм... | [
"ryndovaira@gmail.com"
] | ryndovaira@gmail.com |
ada60d2e8fc354bdf8b960331d4a2c3dd3495c84 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/shared/actions/__init__.py | dd15a0c04bdd65ad5d78e61ce0b7c7d736212659 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 9,956 | py | # 2017.08.29 21:49:32 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/shared/actions/__init__.py
import BigWorld
from adisp import process
from debug_utils import LOG_DEBUG, LOG_ERROR
from gui.Scaleform.Waiting import Waiting
from gui.Scaleform.framework import ViewTypes
from gui.app_loader import g... | [
"info@webium.sk"
] | info@webium.sk |
6856e89aa1d898a889e5af7dae23b5576017b49c | 292cec77b5003a2f80360d0aee77556d12d990f7 | /typings/filetype/types/video.pyi | 9b61193428fe1cf6d3aee36815c69fc32f0d96e0 | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 2,296 | pyi | """
This type stub file was generated by pyright.
"""
from .base import Type
from .isobmff import IsoBmff
class Mp4(IsoBmff):
"""
Implements the MP4 video type matcher.
"""
MIME = ...
EXTENSION = ...
def __init__(self) -> None:
...
def match(self, buf): # -> bool:
...
... | [
"noreply@github.com"
] | yubozhao.noreply@github.com |
644451627c369073460da56c0eb11866fb938a76 | 5e976a7323cce96fd840296841a5e87267451a55 | /blog/urls.py | f587cf49eb0a7e7fa55e7b1bf1a0cdcf113bbe26 | [
"Apache-2.0"
] | permissive | LeonardA-L/plog | a3f39d4edd0c98de50ca7e90eaa54b8e64ad2079 | 2cb479f01b7e8ad117669e57b5d3d612d330b9dd | refs/heads/master | 2021-01-10T20:19:02.690896 | 2015-02-04T21:42:43 | 2015-02-04T21:42:43 | 30,320,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | from django.conf.urls import patterns, url, include
from rest_framework.urlpatterns import format_suffix_patterns
from django.conf import settings
from django.conf.urls.static import static
from blog import views, apiviews
from blog.apimodels import *
urlpatterns = patterns('',
# Regular views
url(r'^$', vie... | [
"leonard.allain-launay@insa-lyon.fr"
] | leonard.allain-launay@insa-lyon.fr |
69b0ea7ad07844c44820ad08019db22d1690c758 | 5c65907ee3324da055694dbe0520fae2d9b2bec4 | /trainer/utils.py | 2c4f84bcbb76c2c5d636adaf648d29766fe8b3fe | [] | no_license | imdaredevil/MNIST-using-google-ai | d1f8d784da8252e4da9510bac53eae0f35de8830 | 4fe01af26b64256e332bdfac4bc9acfa8f36d487 | refs/heads/master | 2023-06-01T01:57:08.329471 | 2021-06-28T04:19:31 | 2021-06-28T04:19:31 | 380,897,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import tensorflow as tf
import pandas as pd
import numpy as np
import json
def prepare_test_data(inputFile, limit = 10):
df = pd.read_csv(tf.io.gfile.GFile(inputFile))
print(df.describe())
x = df.to_numpy()
x = x / 255.0
x = x.reshape((-1, 28, 28,1))
return x
def prepare_train_data(inputFile):... | [
"cibi_16@live.com"
] | cibi_16@live.com |
b4d70c1ad20209dc32383f63c6d5ebcd54a1695f | 2e29c4362e0a6fc6be76527b9693af5c78d20bc6 | /store/views.py | d7892a6d0cabca0ac86896c808446c15b55d2bb6 | [] | no_license | canhazn/django-ecommerce | 707d6abe4c955400f0b1f5b01630381b1f87f313 | c4fb4b3f7ddee36431e35c4e3f0d123a98d230f0 | refs/heads/master | 2023-07-28T20:29:45.146920 | 2020-05-06T08:52:09 | 2020-05-06T08:52:09 | 260,632,085 | 0 | 0 | null | 2021-09-22T18:58:07 | 2020-05-02T06:57:58 | Python | UTF-8 | Python | false | false | 255 | py | from django.shortcuts import render
def storePage(request):
return render(request, 'store/store.html')
def cartPage(request):
return render(request, 'store/cart.html')
def checkoutPage(request):
return render(request, 'store/checkout.html') | [
"canhazn@gmail.com"
] | canhazn@gmail.com |
d1cfecadff3d8959228ce2833f10393316775eaf | fa03042c6bc640f761c3074f352613ddcfaf032b | /ROS_MotionPlanning_ObstacleDetection/build/navigation-indigo-devel/move_base/catkin_generated/pkg.develspace.context.pc.py | 7d212e21c71eaef5195c482414f82d5857689a02 | [] | no_license | w4k7pwr/master_thesis | 3978440ae33f28b56a4e45911ef274b3a23be4d0 | 40a13aac67c9a4451e316606ba1155b036dbe5af | refs/heads/master | 2020-04-06T15:00:50.399265 | 2016-11-20T12:51:21 | 2016-11-20T12:51:21 | 52,356,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/wasiel13/wasiel_13/SYNERGIA_PROJECTS/master_thesis/ROS_MotionPlanning_ObstacleDetection/devel/include".split(';') if "/home/wasiel13/wasiel_13/SYNERGIA_PROJECTS/master_thesis/ROS_MotionPlanning_O... | [
"mateusz.wasielewski13@gmail.com"
] | mateusz.wasielewski13@gmail.com |
9b750390731edd5a1a683067240907563877df45 | 7a66ff970580297ba50b0d4bdd0406352071c05a | /Pyscience/3. numpy.py | 5662327a3911c27438e44e19446518f84358e67d | [] | no_license | zero-big/Python-Basic | 1ab3da9d09983d937b410ca9ec1741424ebaa3ae | 5cd2eaa822aedb46a79283a6007b900a3c9665c8 | refs/heads/master | 2023-08-03T13:10:22.556732 | 2021-09-24T11:35:50 | 2021-09-24T11:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | import numpy as np
# 1. 배열 만들기 : array
b = np.array([2, 4, 6, 8])
print(b) # [2 4 6 8]
# ndim : 랭크를 반환
print(b.ndim) # 1
# size : 배열에 있는 값의 총 개수 반환
print(b.size) # 4
# shape : 각 랭크에 있는 값의 개수 반환
print(b.shape) # (4,)
a = np.arange(10)
print(a) # [0 1 2 3 4 5 6 7 8 9]
print(a.ndim) # 1
print(a.shape) ... | [
"bosl95@naver.com"
] | bosl95@naver.com |
ce16ea0f63285b0d96c72d5799a266b64a31293c | 46a493dbbe8314c3ae4a6b844841901e461cc11f | /astree/StatementIf.py | bc16a17ec9563890ae997cfab2fbceec304cadcc | [
"MIT"
] | permissive | lypnol/impy | 6f859d06ab41889709854b4426268caf758e1764 | 56bab70e1b0925015fe2a1cc9b1a6cf9ad4c4662 | refs/heads/master | 2021-05-08T15:31:01.315742 | 2018-02-15T17:33:50 | 2018-02-15T17:33:50 | 120,116,221 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from astree.Tree import Tree
# If Statement
class StatementIf(Tree):
def __init__(self, exp, statement_t, statement_f, label=None):
Tree.__init__(self, label=label)
self.exp = exp # ExpBool obj
self.statement_t = statemen... | [
"ayoub.sbai@student.ecp.fr"
] | ayoub.sbai@student.ecp.fr |
f67f887d91508d2322144d4718fa2951436bb505 | 6fed94009fab740df921a2dc1dff0aab02493b98 | /Telecom-Churn-Prediction-with-Boosting/code.py | 49664515c72c32da4f9f29cc2974d7dd12e4e84c | [
"MIT"
] | permissive | nicsquality/ga-learner-dsmp-repo | 340ed2524f4ce4e05287f349a84704ac2b2c540b | eb7bd8fae2525dd00d2caae4b87cd2f6e165c148 | refs/heads/master | 2020-07-29T23:05:54.395906 | 2020-05-24T19:08:57 | 2020-05-24T19:08:57 | 209,995,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | # --------------
import pandas as pd
from sklearn.model_selection import train_test_split
#path - Path of file
# Code starts here
df = pd.read_csv(path)
X = df.iloc[:, 1:-1]
y = df.iloc[:, -1]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.3, random_state = 0)
# --------------
import nu... | [
"nicsquality@users.noreply.github.com"
] | nicsquality@users.noreply.github.com |
3032881b56e2bac9d0f446a87e7cc7b381bc2740 | 267d85f7f93bb24b35c162a34235af1fca6ba31a | /python/estimate_parm.py | c8507fb421513d1de0603d13bd3642075e701b25 | [] | no_license | augustecolle/rena_bike | 894df9a392b4a8ec9379ee4493fe3194fcb9d224 | 187985956350085443806f9864533ecf389092f9 | refs/heads/master | 2021-01-11T17:30:26.106790 | 2017-06-23T06:28:53 | 2017-06-23T06:28:53 | 79,792,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,968 | py | import numpy as np
import matplotlib.pyplot as plt
import sys
sys.path.append('/home/auguste/eBike/Auguste/python/')
from vector import *
import MySQLdb
import gmplot
import scipy.optimize
import pylab as pl
import par_est_cam as cc
np.seterr(divide='ignore', invalid='ignore')
#prediction database:
#index ID traject_I... | [
"auguste.colle@hotmail.com"
] | auguste.colle@hotmail.com |
b9846c6dc970fd12ea04b9cdfa3264dbd254b5bc | 12662aff12b6651a3cc046950e5ea57f60dd0a09 | /3. Strings/string_formatting.py | d6ef1dc233219bf90be6f10d075705314d9ec015 | [] | no_license | basakmugdha/HackerRank-Python-Practice | 3c563d68e002c1b04dc59594f3c84070babf443a | fa41f263eb310755a1da1c9d6f2f74dc9e0329b5 | refs/heads/master | 2023-06-18T05:07:58.563967 | 2021-07-11T16:29:34 | 2021-07-11T16:29:34 | 354,798,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | def print_formatted(number):
# your code goes here
for i in range (1,number+1):
width = len(str(bin(number))[2:])
print(str(i).rjust(width)+" "+str(oct(i))[2:].rjust(width)+" "+str(hex(i))[2:].upper().rjust(width)+" "+str(bin(i))[2:].rjust(width))
if __name__ == '__main__':
n = int(input())... | [
"51905437+basakmugdha@users.noreply.github.com"
] | 51905437+basakmugdha@users.noreply.github.com |
f177bf9c6d3555c8ced417b4037228e6a141d71f | c2462f27ef6a892a51178ddc210337b97b05987c | /crab/run_303272/dataset1/crab3_20170919_303272_20.py | b7d6606fc4bfbcd5e1278c41ced7bf43a51340ca | [] | no_license | nicolastonon/NoiseBiasScans | 5afe7a539621e9037005d62888e5072b62e8dd36 | 3700d794afeccb56034bebcc5d09a638bb503512 | refs/heads/master | 2021-09-19T20:01:03.168513 | 2018-07-31T12:21:31 | 2018-07-31T12:21:31 | 114,871,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'NoiseScan_20170919_run303272_v1_20'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'Analysis'
config.JobTy... | [
"nicolas.tonon@etu.unistra.fr"
] | nicolas.tonon@etu.unistra.fr |
7e281015a5822579ea0f212ca415ef4499793092 | 0c3b09e5332d910e1825934aaccec1f6b059359b | /venv/bin/cftp | d903f8c4156d94f8b0cae4e1a31ae1295a77426e | [] | no_license | pbtrad/chat | eee6e28f00ee2add5014a93f4f9a0e3444348612 | 1e3f7eb32349640d31242d0be125e92cb67df37b | refs/heads/master | 2023-06-03T15:49:58.727006 | 2021-06-18T15:38:35 | 2021-06-18T15:38:35 | 377,942,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/paul123/Desktop/chat/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.cftp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"paulbrowne2@gmail.com"
] | paulbrowne2@gmail.com | |
46836b5e642baa2fdee605ceb0fe003a38d38c0f | 72a4db202e6ff0707b89ffadda39b17a0625f602 | /books/urls.py | c35cf6384295a224346e55d4dafa0187d43f89af | [] | no_license | maciejurm/zyjswiadomieeuv3 | b3ba94b3b9c932a5a81ba6616dae73af6fd6bd97 | fcac60c8f1adcbb89db5a16d681392c9f0bd05ef | refs/heads/master | 2022-12-10T17:47:17.697052 | 2019-01-19T18:06:32 | 2019-01-19T18:06:32 | 165,443,426 | 0 | 0 | null | 2022-12-08T01:32:54 | 2019-01-12T22:46:26 | JavaScript | UTF-8 | Python | false | false | 820 | py | from django.urls import path, re_path
from . import views
from .views import AuthorAutocomplete
app_name = 'books'
urlpatterns = [
path('list/', views.booklist, name='books'),
path('book/<slug>', views.bookdetail, name='book_detail'),
path('book/list/add/', views.bookadd, name='book_add'),
path('quote... | [
"maciej@zyjswiadomie.eu"
] | maciej@zyjswiadomie.eu |
60da30781917abab3957aa8014520618378468ed | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.py | c615cd853ff5b01cace69af2e386a58b6b117f46 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,054 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# 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 l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
337d853e5a5d11b80830d4af2ddb66956fc8542d | 888b56ed0621259dee994c6352c3f5042b86f8f6 | /1-basics/3-decision/5-comparison-operators/bot.py | 091418c411ecb9ab27abb357b911b52133ae0cc6 | [] | no_license | Joz1203/COM404 | 6d4972de075803f85f9dbe143441def46fae9d89 | aacb4c04ddb3d455e2fdaa531082d6d455a7c69d | refs/heads/master | 2020-07-31T13:29:25.592204 | 2019-11-19T12:23:17 | 2019-11-19T12:23:17 | 210,618,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | print("Please enter the first number.")
first_number = int(input())
print("Please enter the second number.")
second_number = int(input())
if first_number > second_number:
print("The second number is the smallest.")
elif second_number > first_number:
print("The first number is the smallest.")
elif first_number =... | [
"joannadavie1991@gmail.com"
] | joannadavie1991@gmail.com |
2f207446949e8f4bcd2e8b18d91710d53ad4f692 | f6d428e727953b21fb2cf6969067c262b156d8ac | /TGR.AX_2406.py | 230747ebd162f262f8e1fa1d56dc3b20cc3c03c7 | [] | no_license | anfaning/Koreana-Investment | 5edc11f608e711a6d1d95b5a184b9cbe81983f9b | 7851ef333ee77882bd4f8c1cdeabb102dee6ed7e | refs/heads/main | 2023-06-28T05:20:37.720181 | 2021-08-06T06:18:01 | 2021-08-06T06:18:01 | 368,760,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,379 | py | ##################################################################
# Date: 24/06/2021
# Train = 5 years, Predict with recent 1 year data
# Epochs = 2000
# Neurons = 128
# Batch = 32
# Layer = 5
# Dropout layer = 0
# Days for prediction = 28
# Loss = MSE
# Optimizer = Adam
####################################... | [
"noreply@github.com"
] | anfaning.noreply@github.com |
b7f1feba390f7b3e355535d4420f9667115d9c46 | 871ef5ce8d438e67c121afd035d6e5ba07c97b1a | /framework/framework/componentConfig/manage.py | 3e81468a64cf73f34adc02a52265c25bf5bb2740 | [
"MIT"
] | permissive | mayankkodesia/api-automation-framework | 0ca437af14522c90d9f0d2f548b70a9449061bf1 | 613916e7daf3777bc63462ed5b718a8c9b3bdec4 | refs/heads/master | 2021-09-07T02:15:17.427473 | 2018-02-15T17:24:01 | 2018-02-15T17:24:01 | 115,877,972 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import argparse
import sys
from config import Config
from config import CreateStructureOnDisk
import os
p = argparse.ArgumentParser(description='Here is the complete list for endPoints.')
p.add_argument('-compName', default='', help='Please provide the component name by which parent folder should be created')
p.add_arg... | [
"mayank.kodesia@foghorn.io"
] | mayank.kodesia@foghorn.io |
89da656bc0b9c746c9939e488d314feede75103e | 9d98e32216c914618bc3cebc28470669b73d881a | /Faisal.py | 5935d497c2e91a782b8568f8c6d3b827e8c1c16a | [] | no_license | M-Janum/Mishal | c14171ee3fddd5763b54124c36e45192fb44ddd7 | 9c7f316844e520fd9dbcc35514a091fbe705ebd2 | refs/heads/main | 2023-01-13T10:48:39.455464 | 2020-11-12T00:46:43 | 2020-11-12T00:46:43 | 312,111,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,818 | py | #!/usr/bin/python
# coding=utf-8
# Originally Written By:Mishal X Faisal
# Source : Python2"
# Donot Recode It.
#Import module
try:
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass,mechanize,requests
from multiprocessing.pool import ThreadPool
from requests.exceptions ... | [
"noreply@github.com"
] | M-Janum.noreply@github.com |
acb3a34623c303e165f4901f69ba7c4de3f2f1ef | bc75710c0688e2984fd475b6196483d1af41618e | /D3/even or odd.py | 5cb67bc19e92fa245f89057e32aab47971ea88cc | [] | no_license | cris-cos/100-days-of-Python | 2513cfe22827a9b6edc8c9351fcf3713a8f913c6 | 565d5bba635c8f4c43106c65a1c16b1bf10e1313 | refs/heads/main | 2023-03-12T05:52:54.328072 | 2021-03-02T12:45:02 | 2021-03-02T12:45:02 | 342,704,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | number = float(input("Which number do you want to check? "))
if number % 2 == 0:
print("This is an even number.")
elif number % 2 == 1:
print("This is an odd number.")
else:
print("The input was not an integer.") | [
"cris-cos@users.noreply.github.com"
] | cris-cos@users.noreply.github.com |
36feeee7cca40b437e3cb7498240e0cc9adc6314 | dbf0005c7c934e4164d7cd6d37d35404c05e1062 | /08.py | 04b4610d6326367cec3a4898d34a58ce2c94a84b | [] | no_license | karoberts/adventofcode2017 | d211721890a1e86b9353ada7b8510cca396db83c | 3a89d045b4e0685603bfe6c85e51a546e7341bc6 | refs/heads/master | 2023-08-03T09:16:00.188591 | 2023-07-25T22:05:09 | 2023-07-25T22:05:09 | 165,324,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py |
import re
from collections import defaultdict
pat = re.compile(r'^([a-z]+) (inc|dec) ([\-\d]+) if ([a-z]+) (<|>|==|!=|<=|>=) ([\-\d]+)$')
regs = defaultdict(lambda:0)
max_val = -9999999999
with open('08.txt') as f:
for line in (l.strip() for l in f):
m = pat.match(line)
cond_v = regs[m.group(4)]... | [
"cppwriter@yahoo.com"
] | cppwriter@yahoo.com |
4bc2b97cfdf5ecd84e54794669f4b1629022175a | d3efc82dfa61fb82e47c82d52c838b38b076084c | /utils/insertOrder.py | 85952c6096e1e1cff45f6714581d1c7d9b599c2b | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from QueryStkPriceQty import *
import time
a = []
i = 0
def insertOrder(order_client_id):
case_goal = {
'case... | [
"418033945@qq.com"
] | 418033945@qq.com |
f8d37d55fdc6c5c61c73896bdf3d72b009724305 | 0623e5471d1e6bc89bb43ad568c661bae4961138 | /markupfield/tests/markup.py | 4144194a03deda7ac28e2ec5e08e6edf03a9fc2a | [] | no_license | erikstein/django-markupfield | 30b251d82b8972ad9c46d2b593cc58ebb3db765b | 75e3392e6d2d5108108bba6177c6cc042a893177 | refs/heads/master | 2021-01-15T18:36:36.963747 | 2009-10-13T09:13:21 | 2009-10-13T09:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py |
try:
import docutils
except ImportError:
raise ImportError, 'Docutils not found'
from django.conf import settings
from markupfield.fields import Markup
INITIAL_HEADER_LEVEL = getattr(settings, "RST_INITIAL_HEADER_LEVEL", 2)
WRITER_NAME = getattr(settings, "RST_WRITER_NAME", 'html') # 'html4css1'
DEFAULT_LAN... | [
"erik@abstract.(none)"
] | erik@abstract.(none) |
ff7b91b71ae8730fdadf4ccac6bead4e2cceb40b | cd65fc6650c2acc74fa0ed80189b21b779d14502 | /order_fast_force_page/__openerp__.py | 3c73d12680f0f3ebe5d7cd326db219a970b170de | [] | no_license | Micronaet/micronaet-force | 5e39720aa221731dc8dca46643705b48109a9bb3 | 85e2ce3b76aaebd532b8562ed596361dfc3b9a20 | refs/heads/master | 2023-01-29T16:10:50.684428 | 2023-01-05T16:14:11 | 2023-01-05T16:14:11 | 61,194,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | ###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the ... | [
"nicola.riolini@gmail.com"
] | nicola.riolini@gmail.com |
d24771bc335c75b2d56f92a6a13181a5525815cb | ab6a701b2febd05244c463174d2b5c5cf2209909 | /marathon/30_회전하는_큐.py | 6efea88ccef9f45af2262fe0fbe5ec722e1fa04d | [] | no_license | seanstainability/algorithm | b32bcf1fe43e3f7317af49306eeac14a84c5a8b4 | d9e34087411552a81a7fcc5259b143f63d9a6760 | refs/heads/master | 2023-05-30T19:07:08.912020 | 2021-06-18T07:39:35 | 2021-06-18T07:39:35 | 376,260,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # https://www.acmicpc.net/problem/1021
from collections import deque
n, m = map(int, input().split())
p = list(map(int, input().split()))
queue = deque(range(1, n+1))
count = 0
for i in range(m):
q_len = len(queue)
q_idx = queue.index(p[i])
if q_idx > q_len // 2:
queue.rotate(q_len - q_idx) # 양수일 ... | [
"seanstainability@gmail.com"
] | seanstainability@gmail.com |
1e5f987d41d97ef44c43f8f9404d687860ede5cb | 6adf0e4805ebca4e8293f67cdc7547dacdf24cdc | /smartcab/environment.py | 820668bd37ebcbc5fc27885da935b7ad00da5740 | [
"Apache-2.0"
] | permissive | arlenye/smartcab-master | afb2b86e07a5636339ea0a73908d166c6893390a | 30549b315ee058ce8bc004dde7a4209f86ebdc40 | refs/heads/master | 2021-04-30T15:41:51.954675 | 2018-02-14T00:32:47 | 2018-02-14T00:32:47 | 121,246,911 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,860 | py | import time
import random
import math
from collections import OrderedDict
from simulator import Simulator
class TrafficLight(object):
"""A traffic light that switches periodically."""
valid_states = [True, False] # True = NS open; False = EW open
def __init__(self, state=None, period=None):
sel... | [
"james_ye02@infosys.com"
] | james_ye02@infosys.com |
74d87a5ce7eb433611522796babb219ac90804ac | 4fec604a210c71f295c99c004ac5c09ccddb7c4f | /jarvis.py | a519d6fd10444767fc75ab52872cfcdbc5ffb684 | [] | no_license | wiserenegade77/jarvis | dce329e7bf4a0fe6082db59ab1b1224c60e1ec20 | 8a3ef8906b94b842fdc8af14951cc5a27374af55 | refs/heads/master | 2023-09-01T00:31:35.154881 | 2021-10-22T12:59:22 | 2021-10-22T12:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | import pyttsx3
import datetime
import speech_recognition as sr
import wikipedia
import webbrowser
import os
import smtplib
import requests,bs4,sys
engine=pyttsx3.init('sapi5')
voices=engine.getProperty('voices')
#print(voices[2].id)
engine.setProperty('voices',voices[1].id)
def take():
r=sr.Recognizer()
with ... | [
"raghavmago2@gmail.com"
] | raghavmago2@gmail.com |
6b98d99bc0f46b23753ea4193cab8a0f0ea53469 | f76a16db5e3c5c911d906d015ce78f852179643b | /utils_3DMM.py | ae31ea8ee5064eda6be79f7bd33e66aa50aa68b7 | [] | no_license | blueskyM01/SD_GAN_Tensorflow | 2166230adc2fe4db2bc244ad928add00e5ce837e | 3972e5bdcff9087f36da8ed79cc003e17d575d49 | refs/heads/master | 2020-04-23T10:42:51.459937 | 2019-05-13T10:35:43 | 2019-05-13T10:35:43 | 171,112,705 | 0 | 5 | null | 2019-04-05T08:49:52 | 2019-02-17T11:13:06 | Python | UTF-8 | Python | false | false | 6,818 | py | #############################################################################
#Copyright 2016-2017, Anh Tuan Tran, Tal Hassner, Iacopo Masi, and Gerard Medioni
#The SOFTWARE provided in this page is provided "as is", without any guarantee
#made as to its suitability or fitness for any particular use. It may contain
#bu... | [
"1226853967@qq.com"
] | 1226853967@qq.com |
9f80c09591aba84706bbcb6441e4cdc592592d31 | a425842a51deab915fc4319b3226cef3f49e53ea | /build/extriPACK/industrial_calibration/rgbd_depth_correction/catkin_generated/pkg.installspace.context.pc.py | 52826087801e42a5ebac29a053ae0e8b3d52ccb0 | [] | no_license | Sinchiguano/Part-Localization-For-Robotic-Arm | 1458204e52f34354cbd0e8e1bff1dfaf6caefe1c | ebc1ed19da171ff4b5a52a3a031ae3049b0b9eb8 | refs/heads/master | 2021-10-08T19:49:53.455680 | 2018-12-16T20:03:04 | 2018-12-16T20:03:04 | 155,774,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/usr/include;/usr/local/include;/usr/include/eigen3".split(';') if "/usr/include;/usr/local/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "cv_bridge;geometry_msgs;industrial_extri... | [
"cesarsinchiguano@hotmail.es"
] | cesarsinchiguano@hotmail.es |
1ec1082c420c57632e1d8fbdbff3c24e3f426d14 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 11262 - Weird Fence/EdmondsKarp.py | a3cd3aa934f2d8f5f06832cbe4c94dceea41b641 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | '''
Created on 2013-6-24
@author: Yubin Bai
'''
from _collections import deque
INF = 1 << 32
def edmondsKarp(graph, s, t):
def augmentPath(v, minEdge):
if (v == s): # managed to get back to source
f[0] = minEdge # minEdge of the path
return
elif (v in p): # augment if ... | [
"xenron@outlook.com"
] | xenron@outlook.com |
5f8c4bc992b0a0084eba2ec78d5cc8c4e83c007f | a8c2a5ce6966d098849934c921dcebebfbc6f321 | /app/validation.py | 47a531325e23c2ce277405df1ee5835b840012c0 | [] | no_license | Jacksonmwirigi/politico | 2e7af49b4e4982211513a422850d4631b8a6fc7a | 1cdac0efa8ea2352ccabe0432de1660796036832 | refs/heads/develop | 2020-04-19T17:22:40.343325 | 2019-02-24T19:01:30 | 2019-02-24T19:01:30 | 168,333,421 | 1 | 2 | null | 2019-02-24T19:01:31 | 2019-01-30T11:40:00 | Python | UTF-8 | Python | false | false | 1,705 | py | import re
import datetime
import urllib.request as req
from urllib.request import urlopen, URLError
import urllib.parse as p
from datetime import datetime
from flask import Flask, jsonify, make_response, request
VALID_IMAGE_EXTENSIONS = [
""""List of valid image exstensions"""
".jpg",
".jpeg",
".png",
... | [
"jacksonmwirigi@gmail.com"
] | jacksonmwirigi@gmail.com |
2b0ced7fa82699bf40379314a33e83ddcdf35160 | 7e9c0243c48bbf0ddca9779ef03fc13bb9ac0496 | /candle.py | ef7ed0eabce07b078b04bab06a40c9c69cbbb75e | [] | no_license | suchismitarout/tt | c47f1f59659d2678392e2f0c3aaee8cfaa147ff4 | 54a5b625a82dab854b679050d67e340e74d71edd | refs/heads/master | 2020-09-16T20:25:34.146741 | 2019-11-25T06:52:07 | 2019-11-25T06:52:07 | 223,880,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | def birthdayCakeCandles(ar):
max_ele = ar[0]
count = 0
for i in range(len(ar)):
if ar[i] > max_ele:
max_ele = ar[i]
for j in ar:
if j == max_ele:
count +=1
# for j in ar:
# if j == max_ele:
# count +=1
return cou... | [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
c336829368caa45ca1e76d4737980f93b0167064 | 61ccea8eb2ce6848c01ccc626956777fe2c74a9c | /report_email.py | 6e64fcb120792e5c9fce0ef1da286db087968e6a | [] | no_license | gsnelson/google-it-cert-final-project | 7d025e912517b39392567f7e661173226fe1d8de | 3860a053d96f78257dfc92f7c658ba4540bb75f4 | refs/heads/master | 2021-04-14T08:51:23.036815 | 2020-03-23T00:29:38 | 2020-03-23T00:29:38 | 249,102,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | #!/usr/bin/env python3
# import required libraries
import os
import datetime
import sys
import reports
import emails
# instantiate variables
root = os.getcwd()
# desc_path = root + "/supplier-data/descriptions"
desc_path = "C:/Users/gscot/Documents/python/google-it-cert-final-project/supplier-data/descriptions"
# pd... | [
"gscott_nelson@hotmail.com"
] | gscott_nelson@hotmail.com |
a50a1e7ce4a9b883e2bbd7cac9b6be2ce17c745f | 06ed93d4541a1531e75a9a3906f7da540ec0ecc6 | /softbankRobotics/choregraphe-suite-2.5.5.5-linux64/share/doc/_downloads/alrobotmodel.py | e0a2d99d8c8d7f67ae944a08c86224321c972fec | [
"MIT",
"LicenseRef-scancode-pcre",
"GFDL-1.2-only",
"Spencer-94",
"LicenseRef-scancode-smail-gpl",
"Apache-2.0",
"AFL-2.1",
"GPL-2.0-only",
"GPL-3.0-only",
"GPL-1.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"IJG",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-3.0-... | permissive | Cmathou/S8-Simulated-Pepper-Project | 8dc38c64dcf1f9d22acd2cd4dff501cd4cda95c6 | a4fb90f1c59c50354c689a37c3977f7d89f699d1 | refs/heads/master | 2020-05-27T21:04:22.050455 | 2019-06-11T13:22:52 | 2019-06-11T13:22:52 | 188,784,416 | 0 | 1 | MIT | 2019-05-27T06:31:23 | 2019-05-27T06:31:22 | null | UTF-8 | Python | false | false | 1,307 | py | #! /usr/bin/env python
# -*- encoding: UTF-8 -*-
"""Example: Use ALRobotModel Module"""
import qi
import argparse
import sys
def main(session):
"""
This example uses the ALRobotModel module.
"""
# Get the service ALRobotModel.
model_service = session.service("ALRobotModel")
# Example showi... | [
"cedric_mathou@hotmail.fr"
] | cedric_mathou@hotmail.fr |
b6e1772e50d34d8983fa946e90fc6fe835b3c834 | 7bdaa27c14549db8ecd13d055cfbd43bbfd69d9a | /book_rest_api/book_rest_api/urls.py | 9bc7c2b763cded18056ef8acfb50445b2ee24dcd | [] | no_license | Ksieciu/Book-Rest-API | 860158266e55a36a57f9cd0d0f7c99233dc53a4c | 9fb5e13c86e6fb5c07fb84dded78dd906986600a | refs/heads/main | 2023-02-17T20:12:02.356460 | 2021-01-04T10:42:14 | 2021-01-04T10:42:14 | 306,314,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """book_rest_api 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... | [
"30780278+Ksieciu@users.noreply.github.com"
] | 30780278+Ksieciu@users.noreply.github.com |
36c872660985e40574ed8cd4d854c3dbefe2099d | d001abba19711d678f2ba09dfbd5c84357be6bb0 | /src/contest/codeforces/339div2/B/main.py | 9cbb98053c0a27ee12cd1b6a0d3180ed2d02074c | [] | no_license | cormoran/CompetitiveProgramming | 89f8b3ceda97985d32b8cd91056b49abeb243e6f | fa0e479ab299f53984fa7541d088c10c447fb6e4 | refs/heads/master | 2020-04-17T19:59:49.724498 | 2020-03-28T15:46:26 | 2020-03-28T15:46:26 | 65,995,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | #!/usr/bin/env python3
n = int(input())
a = list(map(int,input().split()))
ans = 1
for i in a:
ans *= i
print(ans)
| [
"cormoran707@gmail.com"
] | cormoran707@gmail.com |
0f2748440d8da03e3a61948c531878e9ebc8b71b | d2e7b7150546bc89ffcc7f3ff0324b39364c8ad6 | /accounts/models.py | 085573a22bc1650913f25d199b1ba42235e4f403 | [] | no_license | AJ-54/uns_29_Lone_Developers | 9bab335e2c21d688043c1416bf21b5b31555e43c | 4c0f4ca1e6e46f1c27abe31378a0d6411adbc470 | refs/heads/master | 2023-01-24T14:26:29.488359 | 2020-11-21T13:19:50 | 2020-11-21T13:19:50 | 314,736,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | from django.db import models
from django.contrib.auth.models import User
from django.dispatch import receiver
from django.db.models.signals import post_save
# Create your models here.
class Contact(models.Model) :
user = models.OneToOneField(User,related_name="contact",on_delete=models.CASCADE,null=True)
n... | [
"dakshchhabra652@gmail.com"
] | dakshchhabra652@gmail.com |
6e1b9cd6a9a7f879b63ecbb974d2a0c672fd7a64 | c097f3b328667535f3e8e685c04195cca6ac0e9d | /airspace_1.1.py | 01f625ff1479c98a8317333e1bb8ee9c51ef6adf | [] | no_license | MRamirez25/ADS-B_Project_CD-10 | 24f8b44200a4010394d32a4715fa60ed8295f134 | cb96a0ce7dc88458d189bd753ad3b5a201ec7bc0 | refs/heads/master | 2022-05-08T13:22:50.768308 | 2019-06-16T22:15:57 | 2019-06-16T22:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,915 | py |
from multiprocessing import Process, Pool
import pandas as pd
from datetime import datetime
import matplotlib.pyplot as plt
from matplotlib import colors
import numpy as np
from matplotlib import cm
from math import log10
import time
def avg_calculator(time_len_res_start,time_len_res,long_res,lat_res... | [
"noreply@github.com"
] | MRamirez25.noreply@github.com |
ed8644241b7c492e3e31cc6082782b59e4db12c0 | f79c8fe6d214a197d8c610207b73326d9474ddf6 | /Models/HandmadeCNN.py | 4bd6c8c1e6e48b8cadbb7cced58125cde32a1007 | [] | no_license | 14coruma/RandWire | f35cb9baff504c0cfcd231e042ab04edee3b85d1 | dc31539718cfa018ca59f538bb3175e511989e67 | refs/heads/master | 2023-05-02T23:55:59.450508 | 2021-05-19T13:00:51 | 2021-05-19T13:00:51 | 359,612,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | import tensorflow as tf
from tensorflow.keras import layers, models, losses
class Model():
'''
Code adapted from https://www.tensorflow.org/tutorials/images/cnn
'''
def __init__(self, data, location='Models/OCR_CNN_Trained'):
if data is None:
self.model = models.load_model(location... | [
"amcorum@iu.edu"
] | amcorum@iu.edu |
1230c344d24a8acfbe5dd5170427a8465e16e9fb | 715e320339e43f18503fa2e80601ef2e4f754d6b | /networking/net_server.py | 24c6d54d0a54755b4f8e018e1383df2c4d677c8c | [] | no_license | GENADEE/ibsencoin | 0aef2af82533807c4e8aaf324c2c10d02ed5ff45 | 32fafc15fb7142d4be551cfb113323f11e3b4f2f | refs/heads/master | 2020-04-15T13:53:04.175555 | 2018-08-23T00:07:09 | 2018-08-23T00:07:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | # check out https://hackernoon.com/learn-blockchains-by-building-one-117428612f46
# which gives a different blockchain implementation using python, but which uses
# an http server which I try to copy here
#
#
# (whatabout http://ecomunsing.com/build-your-own-blockchain)
# flask run --host=0.0.0.0 to make it readable fr... | [
"adrianohernandez2000gmail.com"
] | adrianohernandez2000gmail.com |
f24f5920e7e8aeb551403393c83d466319502838 | fe9aed30db057074c380d7accede639aac744f86 | /venv/bin/pip3 | 3fd56d0094b76189631c08599864611a3d25ca74 | [] | no_license | Darkhan17/biometric | 1faab8b3ff6fdc7390c0d10f63cedaa914cb2b82 | 1059c0b37194493d321ac1a94d58aa78c422fccd | refs/heads/master | 2023-06-14T03:23:18.309297 | 2021-07-01T09:32:14 | 2021-07-01T09:32:14 | 381,979,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | #!/Users/khamitov.darkhan/PycharmProjects/Biometric/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"khamitov.darkhan@MacBook-Air-Darhan.local"
] | khamitov.darkhan@MacBook-Air-Darhan.local | |
3630fd00235c8d64e6fa8c41cb6b0031acc8d051 | 996967405d3ee07e011ee0f0404d03b6d04d3492 | /dataloader/get_coco/select_image.py | e4e45d53306e8d53996618fd3de1138d855286eb | [] | no_license | wyyy04/MyRepository | 797936fc757a2eee4793d5b1b47ebf8b57216ab8 | 91f1a7ff969e91d9649b96796c5827c9910a8183 | refs/heads/main | 2023-02-22T09:56:21.926013 | 2021-01-27T15:34:00 | 2021-01-27T15:34:00 | 315,524,193 | 0 | 0 | null | 2020-11-24T07:30:05 | 2020-11-24T05:05:28 | null | UTF-8 | Python | false | false | 504 | py | from readtxt import loadDataset
import os
import shutil
#从COCO训练集中选取motivations_clean中训练和测试使用的所有图片
rdir='D:\download\\train2014'#源目录
odir='D:\data'#目标目录
data = loadDataset()
data = data[:,0]
print(data)
for im_name in data:
print(im_name) #文件名
r = os.path.join(rdir,im_name)
o = os.path.join(odir,im_name... | [
"you@example.com"
] | you@example.com |
f65e6587e239bda76ca3c17841f09f76afd08cc5 | b3e836254e390d8ea8d9d50a816dba996a208cb0 | /hubei/hubei/start.py | 39668f3c98897abd5d80d60e435d12fde3612da9 | [] | no_license | Fallen0/province_company | 994d69e83fa14030684836e31296dbe902f6b0f1 | 2fa17aaa9780ca1e02a04a6c46ddae1508513396 | refs/heads/master | 2020-08-03T05:14:40.701799 | 2019-10-12T09:36:34 | 2019-10-12T09:36:34 | 211,630,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from scrapy.cmdline import execute
execute('scrapy crawl hubei_spider'.split(' '))
| [
"384197992@qq.com"
] | 384197992@qq.com |
481b427f99c02279f17e340436ebfec288581849 | 06a86c55d8265371729110070554a76099a62ec8 | /4435-server-side/Django/workout/models.py | 170c1a5a9ee4348893235f25c157bb7789589f96 | [] | no_license | lacymorrow/cs-uni | 80b89c22ac4a445a2d88fc29fc498148de404d15 | 0dcea5c090a91d22e4a6ac5a101598101ae83f91 | refs/heads/master | 2020-04-23T14:27:08.769863 | 2014-05-14T23:57:57 | 2014-05-14T23:57:57 | 19,543,518 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | from django.db import models
from profiles.models import CoachingUser
from django.core.urlresolvers import reverse
import re
class WorkoutType(models.Model):
name = models.CharField(max_length=40)
description = models.CharField(max_length=200, blank=True, null=True)
def __str__(self):
return self.n... | [
"lacymorrow@Glitch.local"
] | lacymorrow@Glitch.local |
370a6054fe07d2464edc376b1ca9e4fb1105c508 | cb580d278cc626e8e4f0c1ed0bee0fb42f44df2b | /achivki/bootstrap_forms/forms.py | 0f4f8ee5258ac8b2509d07bc290805ebc204c102 | [] | no_license | k222/megaproject | ab96a20cacbea20761aac021e0e7c938fbc9a072 | 91b68563767d0a033ca4e5e537c7cb9d2a16b015 | refs/heads/master | 2021-01-10T00:53:32.988889 | 2012-05-23T09:31:36 | 2012-05-23T09:31:36 | 2,379,820 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,714 | py | import os
from django.template import Context,RequestContext
from django.template.loader import get_template, select_template
from django.utils.safestring import mark_safe
from django.utils.html import escape
from django import forms
from django.utils.encoding import force_unicode
class NoSuchFormField(Exception):
... | [
"ecxsgv@gmail.com"
] | ecxsgv@gmail.com |
82bedf16a62f6b2a671dbd1c24d8d3dc622d5654 | 228daa8985f40bbd734febb7d476e741ed81dd02 | /cloudferrylib/os/storage/filters.py | 44eaaeb729abb99b80e0b3485f4464934bb3569c | [
"Apache-2.0"
] | permissive | abochkarev/CloudFerry | 979d6a106b5c9f86f5086073ee52be030404c32a | 300c61475c336c80ae62237519dde55bd7690a90 | refs/heads/master | 2020-12-29T00:29:25.614687 | 2015-11-29T20:53:28 | 2015-11-29T20:53:28 | 47,539,977 | 1 | 0 | null | 2015-12-07T08:42:26 | 2015-12-07T08:42:26 | null | UTF-8 | Python | false | false | 3,282 | py | # Copyright 2015 Mirantis Inc.
#
# 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 agreed to in writing,... | [
"aguzikova@mirantis.com"
] | aguzikova@mirantis.com |
244834cfad66b213689444a8abba5ea46118644a | c3cdab74df239e27954e26d43bfde3f60ebb5c4e | /experiment/rk4_ode.py | 4e4623b550fe3a4acbaf43104975b8c64cf1ddcf | [
"BSD-3-Clause"
] | permissive | lidavidm/scifair-type1diabetes-model | 69e9264d95a5861645af3fea1071d77bab09ab83 | 3162005f006218c2ddba0a5f3b5c273493f6a27b | refs/heads/master | 2016-09-02T04:38:03.287996 | 2014-03-29T17:20:41 | 2014-03-29T17:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | from mpmath import mpf, mp
mp.dps = 600
print("Precision:", mp.prec)
def vectorize(functions):
"""
Takes a list of functions and returns a function that accepts a list of
values and applies each function given to the list of values.
"""
def _vectorized(x, ys):
return tuple(f(x, *ys) for f i... | [
"li.davidm96@gmail.com"
] | li.davidm96@gmail.com |
ca54d6886b71a04671cb3d17b134f4b68d043525 | c8bb44d2bdcd7e5132e993423b27652e412747fe | /app/server/controllers/main.py | 917eb9877c5947c492b395d47e516a1149af44db | [] | no_license | leorrose/HStyle | ad86f1291156007f61c90335e687428367c0c9f0 | f2e78d45bc58deb04772a2a5f6702987f12c30db | refs/heads/master | 2023-04-29T06:53:06.773234 | 2021-05-20T10:16:23 | 2021-05-20T10:16:23 | 287,721,664 | 0 | 0 | null | 2021-04-16T15:24:05 | 2020-08-15T10:04:27 | Jupyter Notebook | UTF-8 | Python | false | false | 1,110 | py | """
Main api controller for HStyle api. responsable to create the fast api
app, configuring it and adding all other api that exist.
"""
from typing import List
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from starlette.responses import RedirectResponse
from server.controllers import... | [
"Leor.rose@gmail.com"
] | Leor.rose@gmail.com |
d14fa7cbe66ecb7da1137588ed2a197ae02567a8 | 714c546d145504e4c194702bfde9a9f50882ea54 | /twittertest/wsgi.py | 7f0d3b3b652dfcdd491ced1d5df2c950ba058da0 | [] | no_license | nehagundecha/my-first-blog | a7be156f59c366000fdf66050531560e040439bc | cc174d050274de731933d976caf319f90abe7fb6 | refs/heads/master | 2021-01-20T00:09:13.618449 | 2017-04-22T18:04:12 | 2017-04-22T18:04:12 | 89,086,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for twittertest 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"ng2795@gmail.com"
] | ng2795@gmail.com |
5418cdc24aab8459761ed1b04e45bfb5f5f36b94 | 327befeb9bbb8aee75c24c5ef78d859f35428ebd | /src/python/grpcio/grpc/framework/crust/_calls.py | bff940d74710da3a6be3a2c099cf8e661f51f910 | [
"BSD-3-Clause"
] | permissive | CharaD7/grpc | 33b64f8eabf09014b1bc739b77809aed7a058633 | 062ad488881839d2637b7a191ade5b87346b4597 | refs/heads/master | 2023-07-08T19:36:00.065815 | 2016-01-04T17:28:15 | 2016-01-04T17:28:15 | 49,012,756 | 1 | 0 | BSD-3-Clause | 2023-07-06T01:32:59 | 2016-01-04T17:39:11 | C | UTF-8 | Python | false | false | 8,621 | py | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | [
"nathaniel@google.com"
] | nathaniel@google.com |
99322f6227003e759ed09c79ea1c5a528744cc15 | d54e1b89dbd0ec5baa6a018464a419e718c1beac | /Python from others/字典/wk_05_字符串的定义.py | 3baed27ffc0bce82ef9cf4051ead9b8ab46134e4 | [] | no_license | cjx1996/vscode_Pythoncode | eda438279b7318e6cb73211e26107c7e1587fdfb | f269ebf7ed80091b22334c48839af2a205a15549 | refs/heads/master | 2021-01-03T19:16:18.103858 | 2020-05-07T13:51:31 | 2020-05-07T13:51:31 | 240,205,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | string = "hello world"
for c in string:
print(c) | [
"1121287904@qq.com"
] | 1121287904@qq.com |
c8e603a7b2d4491ede5f8b0fb00d7cc62580c973 | d4f51baa56e5203174a1e5564126d8eb4384eddc | /python/learn-python-the-hard-way/ex19.py | 9e1e3c3b3a8dd520741619ff62480f213447bd58 | [] | no_license | yangmingming/script | d01832c3ca9b2e0392f5534439470db9a1d04387 | 88fee116f6b1218d7e766622af64c73bb5189595 | refs/heads/master | 2021-05-04T04:54:23.922310 | 2017-02-06T10:36:48 | 2017-02-06T10:36:48 | 70,901,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | def print_fruit(apple, orange):
print "apple: %s" %apple
print "orange: %s" %orange
print "\n"
print "use num directly"
print_fruit(10, 20)
print "use variable"
a = 30
b = 40
print_fruit(a, b)
print "use math operator"
print_fruit(10 + 2, 10 + 4)
print "use variable and math operator"
print_fruit(a + 10... | [
"yang15225094594@163.com"
] | yang15225094594@163.com |
4fd5a728df60fb05cfd0a083012b4fbc9e4192da | 1c1fb277e61ef0242bbc41ec3faeb33c9ffc6b54 | /coel.py | d0afd339364497e081aed49d463615fc3f40faa7 | [
"MIT"
] | permissive | tzetty/pmisc | 5a398eb8181b0807d5f3ade9275a1c4b69097566 | 1b29c334c5eca41c6b4444bca98db1989ec032ac | refs/heads/master | 2020-04-16T08:22:18.938896 | 2019-01-13T14:43:16 | 2019-01-13T14:43:16 | 165,422,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import sys
import random
import dlib
RAYS = [
'1st (Gwron/Virtue) Ray of Knowledge',
'2nd (Alawn/Light) Ray of Power',
'3rd (Plenydd/Harmony) Ray of Peace',
]
def print_three_rays(args):
assert len(args) == 3
print('Question: What do I most need to understand about this day\'s events?')
print('')
pr... | [
"thomaszetty@gmail.com"
] | thomaszetty@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.