blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
879086db133bd1ab22783e38d697afc115869d4f | 71c4a775c81179e920b72bdee87d9af3edfd4d99 | /01_Sintaxe_Basica/10_dicionario.py | 9ea3b3c107c7a83db1b023da9899d434b0a3d0f8 | [] | no_license | frclasso/acate18122018 | 16f4169dbfb0eb8c25e253965642122e6095a211 | 98e4697d4e34c740a537a553b5ae6841159c58f7 | refs/heads/master | 2020-04-08T00:54:59.822648 | 2019-01-24T16:55:42 | 2019-01-24T16:55:42 | 158,873,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | #!/usr/bin/env python3
aluno = {'ID': 1223,
'Nome':'Patricia',
'Idade': 27,
'Curso': 'Sistemas de Informação',
'Turno':'Noturno'
}
print(f"ID: {aluno['ID']}")
print(f"Nome: {aluno['Nome']}")
print(f"Idade:{aluno['Idade']}")
print()
'''Atualizando valores existentes'''
alu... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
6f76c3e90edcaf9c1f2baf7fdfa020386a48cffd | 828e48fdf39d9703ad40adf4b6830f6ccabafc46 | /primarykeyid.py | 0f8be37f05e39e0af96ff40e6037285fa4b43b0e | [] | no_license | NitinKumarGehlot/Python-SQLite3 | 78f0b3010fff0ee049bb47ea74babd3ec51742f0 | 6cf0fa7162a31686e05de5c1cf89128412036302 | refs/heads/master | 2023-06-03T15:19:21.830210 | 2021-06-19T21:17:06 | 2021-06-19T21:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import sqlite3
# conn=sqlite3.connect(":memory:")
conn=sqlite3.connect("customer.db")
#create cursor
c=conn.cursor()
#query the database
c.execute("SELECT rowid, * FROM customers")
# print(c.fetchone())
# c.fetchmany(3)
items=c.fetchall()
for i in items:
print(i)
#commit our command
conn.commit()
#close conn... | [
"nitinchauhan44874@gmail.com"
] | nitinchauhan44874@gmail.com |
98c2bc89454f0f4bd6d7b33b7d317117b7910b88 | 8523e8b59ac75c07736ae72f0ee90d88fbe40fed | /Bookstore/Bookstore/settings.py | 143b0f30dd8f11ae2d579ee6ba8b0e3358fbf52f | [] | no_license | Sov-JC/SoftwareEngineering | daaad391102b5f9a490c0deb1a724c41270809cc | eb5243cdef0bd65bdcf32fb3a0ae812cf9ae238e | refs/heads/master | 2020-03-18T00:44:50.324008 | 2018-07-28T03:35:28 | 2018-07-28T03:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | """
Django settings for Bookstore project.
Generated by 'django-admin startproject' using Django 2.0.5.
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
... | [
"jorge.costafreda@yahoo.com"
] | jorge.costafreda@yahoo.com |
f4429fdafc52467555a79089f8af89d3f9c0d2f6 | 92edc96cfdd42463868d1106f703b8cd229d0369 | /fractal tree.py | 7ff575521494e8396b816eb3df88fe0cf017fd8b | [] | no_license | jiangnandekafuka/python | 75e5203d6142755f6efed4749a98240cb593a386 | 85edaa3b2d7e07071bb9c393e8f745d480e09e78 | refs/heads/master | 2020-09-02T17:57:13.593638 | 2019-11-06T15:27:57 | 2019-11-06T15:27:57 | 219,274,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | """
作者:李亮亮
功能:分形树绘制
版本号:1.0
日期:2019/7/8
新增功能:使用循环和递归绘制分形树
"""
import turtle
def main():
"""
主函数
"""
if __name__=='__main__':
main()
| [
"32121643+jiangnandekafuka@users.noreply.github.com"
] | 32121643+jiangnandekafuka@users.noreply.github.com |
f06180583df93797fbb6c3808e675c48fa3eb210 | d4c9847a52d9107d64c61c52f990858177136d9f | /assignment-6/network.py | 2761fc023baf5a17d4bf7fb9165d8958c0c4c375 | [] | no_license | MirunaSeme/Simulation-Methods | bc3fa0390a7e9197d31a11116f73358c624b4b28 | c683472b15dfec30d2752a417926cae4a105649c | refs/heads/master | 2021-09-04T19:13:59.923713 | 2018-01-21T15:43:24 | 2018-01-21T15:43:24 | 112,596,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | import numpy as np
from numpy.random import random
class Network:
"""
Abstract a network graph.
"""
@staticmethod
def AlbertBarabasi(n, directed=False, initial_graph=None):
if initial_graph is None:
# The bootstrap graph should have a minimum of 2 connected nodes
g... | [
"margi.radu@outlook.com"
] | margi.radu@outlook.com |
d15c621a094a3c2cf7b702955d0c138a4f2bb86c | 0c599f1f7c79972515fc3eb9ba5fc76ccdaf511c | /exe06.py | 9be15de64396c8e6a55785ab04b06928da90579a | [
"MIT"
] | permissive | douglasdsantos/Exercicios_Python | 3edca5cd88953d849047572f7761421e9797fec0 | 48019efaef4a5723719b1a4a602b8bee4a7d8ea3 | refs/heads/master | 2020-12-03T00:31:06.395893 | 2017-07-06T01:12:30 | 2017-07-06T01:12:30 | 96,038,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # Faça um Programa que peça o raio de um círculo, calcule e mostre sua área.
pi = 3.14
raio_circulo = float(input('Digite o raio do circulo: '))
area_circulo = pi * (raio_circulo * raio_circulo)
print('A área do circulo é e {:.2f}m². '.format(area_circulo))
| [
"douglasdie@gmail.com"
] | douglasdie@gmail.com |
18dca8071c100f0cf88bc13f0f558c9f7ca0a546 | bac4d78b7dcdc46a28d14241454e7ac1caa68cfd | /worker/Shan3XiCrawler.py | 8189d5790c331d41df3a30c22c9db737249400de | [
"MIT"
] | permissive | xfrzrcj/SCCrawler | 2dc230f807e9e1c1a6f9a6f399c8925e0c5c93e0 | cbb6163f73f6a47eccffec481ff2fdf869ba5eb2 | refs/heads/master | 2020-03-19T13:06:21.149501 | 2018-06-08T03:29:13 | 2018-06-08T03:29:13 | 136,561,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,168 | py | from worker import Crawler
import pymysql
import re
baseUrl = "http://www.qinfeng.gov.cn/"
sggbZjscIndexUrl = baseUrl + "scdc/sggb/zjsc.htm"
sggbDjcfIndexUrl = "http://www.qinfeng.gov.cn/scdc/sggb/djzwcf.htm"
qtgbZjscIndexUrl = baseUrl + "scdc/qtgb/zjsc.htm"
sqtgbDjcfIndexUrl = "http://www.qinfeng.gov.cn/scdc/qtgb/djz... | [
"xfrzrcj@163.com"
] | xfrzrcj@163.com |
b0593bc623f07101fd1c4aac9dd0a4ebc0980eb2 | 955b968d46b4c436be55daf8aa1b8fc8fe402610 | /ch04/set_window_size.py | 110459bc02e4e910978194acc115ddfccc6554d7 | [] | no_license | han-huang/python_selenium | 1c8159fd1421b1f0e87cb0df20ae4fe82450f879 | 56f9f5e5687cf533c678a1c12e1ecaa4c50a7795 | refs/heads/master | 2020-03-09T02:24:48.882279 | 2018-04-07T15:06:18 | 2018-04-07T15:06:18 | 128,535,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://mail.google.com")
# 參數字為像素點
print("設定瀏覽器寬480 高800顯示")
driver.set_window_size(480, 800)
# driver.quit()
| [
"vagrant@LaravelDemoSite"
] | vagrant@LaravelDemoSite |
bb4b43d08b89cebc31af388294610f1431075c49 | b89780aaa5271b7220330cc85ddae132530aae49 | /unity_bundles/serializers.py | 500ee1622f5cd15ea03a8705003b497fbac29a6e | [] | no_license | feliamunda/living_walls_api | 4bbbc925154c4963f9c3196d8ba1bf5733a7bdbd | 1182c26ee7e06ff1958a9100482f81d21b32cfff | refs/heads/master | 2023-08-03T02:12:11.777153 | 2021-09-19T02:18:48 | 2021-09-19T02:18:48 | 408,005,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.db.models import fields
from rest_framework import serializers
from .models import Asset
class AssetSerializer(serializers.Serializer):
name = serializers.CharField(max_length=70)
bundle = serializers.FileField()
class Meta:
model = Asset
def create(self, validated_data):
... | [
"feliamunda@outlook.com"
] | feliamunda@outlook.com |
b5346db185ed928a79136d01fd3e7a44a8ff0b6e | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PackDist/share/python/PackDistCommon.py | 0833847cfd1065059cea672b676003e232021674 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | """File: PackDistCommon.py
Common classes and utility functions of the PackDist package.
"""
__author__ = 'Grigori Rybkine <Grigori.Rybkine@cern.ch>'
__version__ = '0.2.1'
__date__ = 'Wed Oct 03 2012'
__all__ = ['Error', 'InputError', 'CommandError', 'exitstatus']
import sys
import os
class Error(Exception):
... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
3df0ea853c5c6f446d2fcad384c523b533d6f0b0 | 038cb642f628adca4bcc129111c9f37f1331642c | /home/migrations/0003_auto_20210213_1642.py | ae2dba8126dab5ca2c13c350d94af864a9f8d9ef | [] | no_license | dieudo25/tf_app | 82edbe744d4764ada0df643f4869bc3526d4b110 | ff836c59bd27fbd15db478ef7b654e58a59ca94f | refs/heads/master | 2023-04-03T21:17:04.368434 | 2021-02-17T13:03:10 | 2021-02-17T13:03:10 | 338,341,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # Generated by Django 3.1 on 2021-02-13 16:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0060_fix_workflow_unique_constraint'),
('home', '0002_auto_20210213_1630'),
]
operations = [
... | [
"twahirwa25@gmail.com"
] | twahirwa25@gmail.com |
885be927b82ec91f5a3ed0442cef540e1f29a5c5 | 3514d1fd4f54f013ad39c55bb72cb997ab3b32c2 | /cosmos_scrapy-master/cosmos_scrapy/spiders/safetyspider.py | 9c8122e32ab4d2678effa8fdbb72776d9ffb0fa8 | [] | no_license | 609189660/Data-Crawling | ba262ec2fea4ce48d0ad24e52dc667f4a7fe5178 | 5fdbe9b81b1c97be61fcd4fd2cf3aeab5ab26f12 | refs/heads/master | 2020-12-02T23:19:03.412377 | 2019-12-31T21:25:18 | 2019-12-31T21:25:18 | 231,147,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,998 | py | from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy import Spider, FormRequest
import scrapy
from selenium import webdriver
from scrapy.selector import Selector
from scrapy.http import Request
from selenium.common.exceptions import NoSuchElementException
import re
f... | [
"kevin_jingwei.gao@hotmail.com"
] | kevin_jingwei.gao@hotmail.com |
ecf28c8b348c9f90a067ed024a81f8d03474e056 | 821583d4265912317ba78ca240cc3cdf2b4aad18 | /LSTM_Stock.py | 95621c05e18188e54f5763cb940cafc71bcd324c | [] | no_license | Soumi7/PG-StockManagement | 5f0f6ba98e00169f98dc97298d1695c52c8de257 | b5e4e7a715ecd7c054c22228542332202e104515 | refs/heads/master | 2023-03-03T00:07:02.770993 | 2021-01-31T14:48:13 | 2021-01-31T14:48:13 | 261,162,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | from pandas import DataFrame
from pandas import Series
from pandas import concat
from pandas import read_csv
from datetime import datetime
from sklearn.metrics import mean_squared_error
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense
from keras.layers im... | [
"soumibardhan10@gmail.com"
] | soumibardhan10@gmail.com |
8e4baaae320644a77b9d51ae74ea221201759574 | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/segmented-tree/leon.py | 9b86c455efa6252c088d2e4fb3ac6b44b59e8988 | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 6,843 | py | # https://github.com/yuexihan/leonLPST/blob/master/leonLPST.py
from __future__ import division
from six.moves import xrange
class LPSTree:
"""
LPSTree(n[, value=None[, reducef=None[, modulo=None]]]) -> new LPSTree
Build a new LPSTree with n elements.
If value is provided, all elements are set to value, otherwise 0... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
87fa353d224bca02fb3655134746bec120ffc10b | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/compute/v20191201/gallery_application_version.py | 09d6082a067f10eae575fb0b3681e034d10ed7c2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,987 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
681af06de15223aa0c77bde8bd654abf013d3097 | 10ef0d072799dfd8ad5cf00b43755eeef2235692 | /Harmonic.py | b872a07867153b8faa736d1780c23b34f6aa5c1e | [] | no_license | naveenkommineni/Week3 | a197dc2b9ed50ad544a32e0844bf3fe7fd9e0e84 | 484cd630322b820ef793986366f004ab88da5b81 | refs/heads/master | 2022-04-22T14:39:22.722987 | 2020-04-20T10:45:05 | 2020-04-20T10:45:05 | 256,490,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | n=int(input('Enter number:'))
sum=1
for i in range(2,n+1):
sum+=1/i
print("nth harmonic number is",sum)
| [
"noreply@github.com"
] | naveenkommineni.noreply@github.com |
a56ba42731fa60638172e5e3a581d2f14f7d8df7 | 6b4fbd5104f9f48590b409fbe76fee059823a51c | /models/drf_res.py | 152e9c9f281a7d8e2fe81315ce95c3f612737863 | [
"MIT"
] | permissive | sebastiani/SSD_Pytorch | 655f59a51a7c1ef20493f0b9284ecd4eeae490cd | 98be17f15a863f25adfe70c86938db82ff2a8786 | refs/heads/master | 2020-04-07T01:05:57.114451 | 2018-10-18T01:16:56 | 2018-10-18T01:16:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,573 | py | # -*- coding: utf-8 -*-
# Written by yq_yao
import torch
import torch.nn as nn
import torch.nn.functional as F
import models.dense_conv
from torch.autograd import Variable
from utils.box_utils import weights_init
def add_extras(size, in_channel, batch_norm=False):
layers = []
layers += [nn.Conv2d(in_channel,... | [
"1073079979@qq.com"
] | 1073079979@qq.com |
531883721f517129ade5b59be0c33d3e18cdb738 | 7717039d2c8ace6250282b76bf6b0b3ced7bf241 | /tests/urequests+requests测试/掌控板urequests heartbeat post测试(oled显示).py | a27c5834a99329dbb16591941b13e07a9fbc64b8 | [
"MIT"
] | permissive | SZ2G-RoboticsClub/SmartCrutch-DemoBoard | ae07c80d51f554b09ad99852c03f85dd04c42615 | 0d32acc9c934b384612a721ecde0259c8d90a82d | refs/heads/main | 2023-09-01T07:39:17.465666 | 2021-10-17T02:37:10 | 2021-10-17T02:37:10 | 347,536,775 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | from mpython import *
import urequests
import network
import time
# import ntptime
my_wifi = wifi()
my_wifi.connectWiFi('QFCS-MI', '999999999')
# ntptime.settime(8, "time.windows.com")
oled.fill(0)
oled.DispChar('初始化成功', 0, 0)
oled.show()
BASE_URL = 'http://192.168.31.132:8000/demoboard'
uuid = 'dytest'
status = 'ok... | [
"2761766788@qq.com"
] | 2761766788@qq.com |
b9b570d9546dee4ed6c0aab0c564c821e5c618b8 | 82bd360b0f58171b003957f3e2584bb51817d766 | /lab03/lab03.py | e1b9c9e701af2c8371b9e1c7300021cdacf1be4f | [] | no_license | kenwan006/cs61a | 2ff00ec0a42f9478f60fe98b70af1b5ae2b8a66b | 75aab1f348244d41cfb75a9ec1ebb24f81057a05 | refs/heads/master | 2020-06-27T16:30:09.573537 | 2019-09-14T23:16:57 | 2019-09-14T23:16:57 | 199,213,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | def ab_plus_c(a, b, c):
"""Computes a * b + c.
>>> ab_plus_c(2, 4, 3) # 2 * 4 + 3
11
>>> ab_plus_c(0, 3, 2) # 0 * 3 + 2
2
>>> ab_plus_c(3, 0, 2) # 3 * 0 + 2
2
"""
"*** YOUR CODE HERE ***"
if b == 0:
return c
return ab_plus_c(a, b-1, c) + a
def gcd(a, b):
"""R... | [
"noreply@github.com"
] | kenwan006.noreply@github.com |
a657cc0c698b514929d0eb92d4cb9c214587f5d4 | 70759e1e5b4dcf94ec3bd3a93bd563b14b8e08ad | /tomato.py | e16dfe794dd44956edc1b90d0d0a09c636de4702 | [] | no_license | akaNiknok/tomato-app | 04b0cc4a41890c5b7108fb43404064f03a0dc60e | f6602b7c6d6741f81e518a7134aeab522c07865f | refs/heads/master | 2021-01-10T14:58:21.279375 | 2016-01-02T04:10:22 | 2016-01-02T04:10:22 | 48,598,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | from flask import Flask, render_template, request, url_for, session, redirect, make_response
import sqlite3
from os import urandom, path
ROOT = path.dirname(path.realpath(__file__))
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def index():
if request.method == "POST":
return redirect("/... | [
"austingimperial@gmail.com"
] | austingimperial@gmail.com |
8c07ff1f2000187859283c0c13239c2b31bec23c | abd668ceb1736c029f3527561bea9995876025a0 | /run.py | 206c205905007d3d9d887ebc731993f08316348e | [] | no_license | choltz95/simulated_annealing_pcb | 7eb2554893b64bd57323ec95d1b583ff663dae31 | da5b81b2d591b70f2051419d7f7b5b353feb4847 | refs/heads/master | 2020-04-23T22:13:27.608394 | 2019-04-15T18:25:44 | 2019-04-15T18:25:44 | 171,494,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import pyximport; pyximport.install(pyimport=True)
import main
| [
"orange3xchicken@Chesters-MacBook-Pro.local"
] | orange3xchicken@Chesters-MacBook-Pro.local |
1308c8f92d220ac7b01c451288da34696bcbe3f8 | c52ea8af6a4d3c32a0557c39d683a4d01b2188db | /ch10_dash_cytoscape_basic/layout/dash_cyto_grid_option_curve_style.py | 00701dcffe65b44108634f361e1dafb4d3efea61 | [
"MIT"
] | permissive | plotly-dash-book/plotly-dash-book | dcde031766d17adf6fc670c8aec9c8d4e267eeb7 | cc54f7ac6066a741f733facbd002222a87746e02 | refs/heads/master | 2022-06-27T02:46:25.502190 | 2022-06-08T03:21:23 | 2022-06-08T03:21:23 | 197,512,189 | 30 | 18 | MIT | 2021-05-31T04:47:36 | 2019-07-18T04:36:50 | Jupyter Notebook | UTF-8 | Python | false | false | 1,531 | py | import dash
import dash_cytoscape as cyto
import dash_html_components as html
app = dash.Dash(__name__)
# ノードを17個定義
nodes = [{"data": {"id": x, "label": f"{x}"}} for x in range(17)]
# エッジを定義
edges = [
{"data": {"source": 0, "target": 1}},
{"data": {"source": 0, "target": 2}},
{"data": {"source": 0, "targ... | [
"komo.mdrms@gmail.com"
] | komo.mdrms@gmail.com |
7321ac8c981ab9abb728e9c05fe1a2576ef0d878 | 3c327aa333bbeafacb8d5bd253814776ffcd0012 | /df_user/urls.py | bf6fcb54488289e42e7484712a3e096f56b612be | [] | no_license | 1635848644/shopping | c5d0a1dd2eb5716ece76045d6c2c261ca0f4db18 | d820e828eeed3911ea7741e4f11f4c6d83e993c6 | refs/heads/master | 2023-04-07T20:12:30.382805 | 2018-10-05T15:08:40 | 2018-10-05T15:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #coding=utf-8
from django.conf.urls import url
from df_user import views
urlpatterns=[
url('register/',views.register),
url('login/',views.login),
url('logout/',views.logout),
url('addHarvsetAddress/',views.addHarvsetAddress),
url('user_center_info/',views.user_center_info),
url('user_center_ord... | [
"1194681498@qq.com"
] | 1194681498@qq.com |
81ea1ab2df818a7bab3de630e81d3f329599e6bf | e9b06426f553b7c1d3550a0932e60756e82c3f78 | /Lab0/python_basics/shop.py | d48f8f01de1cadc4d63ee5f056e0d058d85567bf | [
"MIT"
] | permissive | MaAlonsoA/AI-Class | a5af9b2e1a2dd76f377e04f4f2f0a784802f12a8 | 7fa679b69b699e86dfc99548620c62a37f3d8e57 | refs/heads/master | 2023-04-14T22:54:52.130742 | 2021-04-24T17:23:52 | 2021-04-24T17:23:52 | 346,392,810 | 0 | 0 | MIT | 2021-04-24T17:23:53 | 2021-03-10T14:59:31 | Python | UTF-8 | Python | false | false | 1,328 | py | class FruitShop:
def __init__(self, name, fruitPrices):
"""
name: Name of the fruit shop
fruitPrices: Dictionary with keys as fruit
strings and prices for values e.g.
{'apples':2.00, 'oranges': 1.50, 'pears': 1.75}
"""
self.fru... | [
"malonsoa3@alumnos.nebrija.es"
] | malonsoa3@alumnos.nebrija.es |
13a119cadbd0faa4e12dfb1a370603ff73f1149c | 281cec8c8a093c5e73ba17b9a96325acc225d406 | /code_which_works.py | f6af1a8bc7852c0a3f84264abcd68402a75434f0 | [] | no_license | zahessi/pygame_pong | cd86a8b39891f06fc90e760449f69fb03c1b37c9 | d33be1995768fc87c4406590d149957fc65950bc | refs/heads/master | 2020-04-15T12:10:10.741786 | 2019-01-09T21:50:37 | 2019-01-09T21:50:37 | 164,662,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from classes import Game
def main():
game = Game()
game_objects_pool = game.setup_game()
while 1:
game.update_game_screen(*game_objects_pool)
if __name__ == '__main__':
main()
| [
"rievva.ara@gmail.com"
] | rievva.ara@gmail.com |
43a228606e02826830759f5f40418f92e634af34 | 19892b65355f7661cf5e42d2f749904788c1a7d0 | /dailyfresh/daily_fresh/utils/mixin.py | 6174e5aba8081e3b2cf0368084ea7f0853225db5 | [] | no_license | BinXiaoEr/daily_fresh | 35902cb6753851a14517265db3738a008610c7d8 | d8bdc10e80b6b8e2be5f85f6a8293fb1f4695e1d | refs/heads/master | 2021-07-09T16:06:34.809134 | 2020-08-04T01:51:34 | 2020-08-04T01:51:34 | 181,276,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.contrib.auth.decorators import login_required
class LoginRequiredMixin(object):
@classmethod
def as_view(cls, **initkwargs):
# 调用父类的as_view
view = super(LoginRequiredMixin, cls).as_view(**initkwargs)
return login_required(view) | [
"you@example.com"
] | you@example.com |
50845d3ddab1ec682e0f345e3c75c1ba47438990 | ed872a0efb1db283f48176474e22f4c4ad31db79 | /src/accounts/migrations/0019_fix_socail_auth.py | ceffd3defcff51b96d673f95e0fffd2933671048 | [] | no_license | barontxu/djbookru | 34c2bf90e5d3542e4cbd2f3e600e1c0a12795d35 | 388bff0491e961f8efdf3cabd6c47d9fa2988547 | refs/heads/master | 2021-01-16T20:39:33.949315 | 2014-06-20T12:22:56 | 2014-06-20T12:22:56 | 23,031,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,111 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
depends_on = (
('social_auth', '0002_auto__add_unique_nonce_timestamp_salt_server_url__add_unique_associati'),
)
def forwards(self, orm):... | [
"alerion.um@gmail.com"
] | alerion.um@gmail.com |
b05acce5674d36ac8d553f00d5fe010f2061fbdf | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/external_bin/gsutil/gsutil_4.15/gsutil/third_party/boto/tests/unit/dynamodb/test_types.py | e3b913d7eb4a7e8789aa9a1becd8cefa58b17d6a | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,427 | py | #!/usr/bin/env python
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# wi... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
8b8ae1ce63eaacc0031ba4341ad0dbf893504805 | 671fae9e18f50db3b147b3087e30f304d832fb97 | /TMS/accounts/admin.py | 5c51c9534c829e7974e32b355d2b29d8cf2fea56 | [] | no_license | shivasupraj/Employee-Time-Management-Application | 745375dd06e57c35239282dabd011731a483ed52 | aa2eecad1a4ae6b6621d40ab17954e30a7c4657a | refs/heads/master | 2021-10-03T10:49:33.751181 | 2018-12-03T00:40:28 | 2018-12-03T00:40:28 | 125,914,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Profile)
admin.site.register(models.Project)
admin.site.register(models.TimeSheet)
| [
"shivasupraj.p@gmail.com"
] | shivasupraj.p@gmail.com |
8fd82a02b96ef6922c7ccd498e793df6876f3f49 | 46c2418ecfcf3c7034a267364185208a665be583 | /edb/tools/docs/cli.py | 2c9295564c14536c42a30b9de2055cc410bdcb02 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jankeromnes/edgedb | 3434549fb0731632ed7adb7fcb329480dee50d91 | 40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94 | refs/heads/master | 2022-02-24T04:56:19.238048 | 2019-05-10T12:24:40 | 2019-06-17T10:29:09 | 185,984,093 | 0 | 0 | Apache-2.0 | 2022-01-28T09:00:32 | 2019-05-10T12:24:55 | Python | UTF-8 | Python | false | false | 1,466 | py | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2018-present MagicStack Inc. and the EdgeDB authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | [
"elvis@magic.io"
] | elvis@magic.io |
81b968c9d9e14ff5772ae28bead91e71f66173d8 | 50e2012ecea8307e278d1132ca0094adb940aff2 | /lib/review/my_process/my_multiprocessing.py | a299b8a3185df0bb568f1c9bc93484f95d15cfcb | [] | no_license | Lewescaiyong/my_library | 6689cae2db4aaa980b4bd5ed9f21691eefbff2fe | 35d0d29097823ccef74fa29ca8756a7f59ceeb78 | refs/heads/master | 2020-11-25T09:20:56.484275 | 2019-12-17T10:58:20 | 2019-12-17T10:58:20 | 228,593,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import multiprocessing
from multiprocessing.dummy import Pool
pool1 = multiprocessing.Pool()
pool2 = Pool()
pool1.map()
pool2.map()
| [
"1351153527@qq.com"
] | 1351153527@qq.com |
2f66556113594253cc5a56e9e92b8cca93f1eb80 | ee43ebd0a06bee2f700e8491e481bf3c5edde9fb | /projeto_redacao/urls.py | 168aea0a9e49ba785312668b688a1f67e66f93a6 | [] | no_license | heloisaGuimaraes/proofreader | c5ed4ec46773cbeab5405a71430bd8f9d60861c2 | aa7a2d9ec8ea2cff9a89b8a15a2dd2a9a7f385cb | refs/heads/master | 2022-10-19T09:07:25.574371 | 2020-06-12T03:41:23 | 2020-06-12T03:41:23 | 271,701,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """projeto_redacao URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='hom... | [
"heloisaguimaraes86@gmail.com"
] | heloisaguimaraes86@gmail.com |
684522cf9c5924d3b28f46f0200a3bcde4a9de5a | ec8d7c3176187359c7618bd591724ea93a9b0772 | /python/projects/bitwise/setup.py | 181ad28d54774b70681f809e43e5b3987c3f4554 | [] | no_license | almacro/snippets | 7000faf593ab97a0890ea56d944ceef4ef23643a | e247c5bc26f336add1c7be8636775f841a65615d | refs/heads/master | 2023-08-05T11:00:13.161159 | 2023-07-23T15:31:42 | 2023-07-23T15:31:42 | 65,136,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from setuptools import setup, find_packages
setup(
name="bitwise",
version="0.1",
install_requiresr=['nose'],
packages=find_packages(),
package_dir={'':'src'},
scripts=["scripts/bits","scripts/bitmask"]
)
| [
"alfred@ridecell.com"
] | alfred@ridecell.com |
573aeb3671f39eb706671112ecd46bc16b3e47ef | d1194d9ff416408717470694d913132d6cd5f84b | /oneMonthNewsApiExtractor/oneMonther/oneMonther/middlewares.py | ff3bb1101f8d18b521928f3ad64c949f3d14c726 | [] | no_license | bopopescu/pinalpha_mvp | c7f5a37e3c2bb7c009c6d0eda9e964346ec6b244 | 928d21cef1b4aa59b7af81d64c592b6f393102f9 | refs/heads/master | 2021-10-10T12:54:18.026399 | 2019-01-11T02:54:49 | 2019-01-11T02:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class OnemontherSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"shreeha@gmail.com"
] | shreeha@gmail.com |
8819b9fcfe6bcf3b5c61a314d5b3b7d97b749e79 | 5440e66a6ab273cb75293677fbe3d1fe9267bfe0 | /check_profanity.py | b065ccb4a183d42051ff71bdd36a180e9f85df01 | [
"Apache-2.0"
] | permissive | qingzhizhu/QingPython | f439c51f14c1e4672361e5a7fdc28f2ff01c9a98 | c6f2258caf2edab4c8f5afe5bb2c974f318e50c7 | refs/heads/master | 2020-03-24T06:16:06.327547 | 2018-09-21T09:34:57 | 2018-09-21T09:34:57 | 142,522,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #!/usr/bin/python
#coding=utf-8
#desc:检查是否有脏话, python2
#author:gengkun123@gmail.com
import os,sys
import urllib
DIR=os.getcwd()
def check_profanity(text):
connection = urllib.urlopen("http://www.wdylike.appspot.com/?q="+text)
output = connection.read()
print(output)
connection.close()
if "true" in output:
pr... | [
"gengkun123@gmail.com"
] | gengkun123@gmail.com |
ea05163688d0e2df0f55b6c2fb8a853cba607e6a | 382882c162554152702876f1232a08e5c4a66bc0 | /HIVE.py | 42294b8e9f3f1d4f32e0d64f6f9c25578a5a1f12 | [] | no_license | inseok1121/USBLeak | 582094058fb3c16031fdcedd43b7cc420dec9846 | 5f1cadec4dfea058cfad1965d27cbdaf24099a18 | refs/heads/master | 2021-01-24T02:11:37.285286 | 2018-02-25T13:39:56 | 2018-02-25T13:39:56 | 122,839,333 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | import os
import tempfile
def save_hivefile():
tempdir = tempfile.gettempdir()
comm_sys = createCommand(tempdir, 'system')
comm_soft = createCommand(tempdir, 'software')
comm_sam = createCommand(tempdir, 'sam')
comm_security = createCommand(tempdir, 'security')
os.system(comm_sys)
os.syste... | [
"inseck1121@naver.com"
] | inseck1121@naver.com |
2a727152d5e0b4186b181651149c07394f82f236 | 7e46361bda7d0912e715a4046a91758da0cfca5d | /course/migrations/0019_auto_20200520_1051.py | 75949cbea454c671e756ad7051ce46c87d391e40 | [] | no_license | varun560/Learning_Portal | dee70c64a54dc7ca1cbfa42debc5941289d0984b | 9cbac1221a33c54be696d174cff470e7399a28d7 | refs/heads/main | 2023-01-21T14:29:27.196241 | 2020-11-25T05:59:47 | 2020-11-25T05:59:47 | 315,658,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | # Generated by Django 3.0.6 on 2020-05-20 05:21
from django.db import migrations, models
from django.utils import timezone
class Migration(migrations.Migration):
dependencies = [
('course', '0018_assignment'),
]
operations = [
migrations.RemoveField(
model_name='assignment',... | [
"varunjn652@gmail.com"
] | varunjn652@gmail.com |
be18a828d415817294724c04ce3bef696dac9a91 | d9af3a98a0864de7ebb0cfd1675a052779e46bf2 | /transformer_split/vae_model.py | e94ea7dccaf8599afbe98b4b7e286dfb52f4a1af | [
"MIT"
] | permissive | fredericgo/rl_morph_pytorch | eafc36128e60296743a42b25d417efe17128ac93 | 743cd82d82c16c8d52e5265b6cc5cdf490cb8945 | refs/heads/main | 2023-07-11T05:51:43.914695 | 2021-08-09T02:54:06 | 2021-08-09T02:54:06 | 344,523,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,741 | py | import os
import torch
import torch.nn as nn
from torch.nn import functional as F
import torch.optim as optim
import numpy as np
from transformer_split.encoders import PoseEncoder
from transformer_split.decoder import Decoder
from transformer_split.discriminator import Discriminator
def kl_divergence(mu, logvar):
... | [
"fredericstgo@gmail.com"
] | fredericstgo@gmail.com |
805e778f090eb8a26dac37e6725197e259091f56 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KLke67efuam6ajLrt_2.py | 1dc365bb23d969b5f0f0d4e85f8e8ff90a1cf504 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | """
An **out-shuffle** , also known as an _out faro shuffle_ or a _perfect
shuffle_ , is a controlled method for shuffling playing cards. It is performed
by splitting the deck into two equal halves and interleaving them together
perfectly, with the condition that the top card of the deck remains in place.
Using an ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7cd66ff25eba5bc3b16202ba9e93dccd733556ea | 13ced67131fc3569e9380a1abf610309450fcafa | /yatagarasu/spiders/match.py | ade26b2280d76271440b4fa2f8c2e2b1755854ba | [
"MIT"
] | permissive | h-mineta/yatagarasu | 96724e4b0de1041e11cac65ec62700307c932546 | d5fc2878e3dd26f576c738028d4e3d0f8d5abe5d | refs/heads/master | 2020-03-10T14:24:14.322704 | 2018-04-16T13:36:43 | 2018-04-16T13:36:43 | 129,425,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2018 h-mineta <h-mineta@0nyx.net>
# This software is released under the MIT License.
#
from yatagarasu.items import MatchItem
import re
import scrapy
import mojimoji
class MatchSpider(scrapy.Spider):
name = 'match'
allowed_domains = [
'www.jleague.jp'
]
... | [
"h-mineta@0nyx.net"
] | h-mineta@0nyx.net |
93adf05fb8e78616581a275936e16a2c12ad1582 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Clutter/ZoomActionPrivate.py | 30f46ad6d498ed3b8d07dbaaa947fec7334f3b73 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,403 | py | # encoding: utf-8
# module gi.repository.Clutter
# from /usr/lib64/girepository-1.0/Clutter-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
49b7c6233cb3d031e79f2710167aae956de76e29 | 55a281d728541773e6eda896599c0cc48dfe5156 | /Advanced/venv/Scripts/easy_install-script.py | 8e473e4d78117e10d75b080582317f8367fd492a | [] | no_license | dhariskov/python-advanced | c0bebd937f3849dd62ae2834cbdf9f8100b2bb56 | 4725070c960d3c234ed2f20ff2156e2f89514a02 | refs/heads/master | 2022-12-04T22:40:18.485552 | 2020-08-28T08:29:25 | 2020-08-28T08:29:25 | 288,775,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!C:\Users\Acer\PycharmProjects\Advanced\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__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'(-script\.pyw?|\.... | [
"dhariskov@gmail.com"
] | dhariskov@gmail.com |
7254429fac5007af3e944345732a89d7e762e82f | 3bb04e209b3cbd9a392b55f82b373810847cebd3 | /processing/utils.py | c84f3d46927c2e04151aa7d9b8d4c8d91bf2f3d5 | [
"MIT"
] | permissive | mas2df/racefinder | 016d60b850c06c31242d3cbf26cf894b6485a816 | c866523a9b174fa3c2f0a95e4aad242ae8dcd345 | refs/heads/master | 2020-12-24T13:28:07.680588 | 2014-10-10T17:58:18 | 2014-10-10T17:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import re
def getDistanceUnitAndType(value):
pattern = re.compile(ur"(\d+(\.\d+)?)?([KMH])?\s?([\x20-\x7E]+)")
(distance, decimal, unit, type) = re.findall(pattern, value)[0]
return (distance, unit, type)
def getDistanceAndType(value):
(distance, unit, type) = getDistanceUnitAndType(value)
combin... | [
"mike@thehumangeo.com"
] | mike@thehumangeo.com |
6c6ea3cf2a17e60d0440efa850fed227e5baec5c | 8ac3ef229436abdb2a9ae4c428ab1f62148897a3 | /Vijay_Sir/22-04-2021/Inheritance_constractor_importance.py | c5927a5485ce1bbd3b3d5f19bf3a638686d24efb | [] | no_license | udayreddy026/pdemo_Python | 358e01cf6599e1bea3f787e6dfae2d039ee66668 | 6b7272fe205053141ed273ae70beb4358a4071f2 | refs/heads/main | 2023-05-01T04:33:40.558187 | 2021-05-14T07:06:20 | 2021-05-14T07:06:20 | 349,928,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | class A:
y = 20
def __init__(self):
self.x = 30
def m1(self):
self.x = self.x + self.x
A.y = self.x + A.y
class B(A):
# def __init__(self):
# self.x = 40
def m1(self):
A.x = self.x + A.x
# b = B()
# b.m1()
# # b.m1()
# print(A.x)
a = A()
a.m1()
print(A.... | [
"udayreddy026gmail.com"
] | udayreddy026gmail.com |
a605b6bbb3899214e99bd6aac578f9a4ba6ca0c6 | e0b1cd64903e4e3f2b0820e68f9c4df36800e748 | /hooks/salt_hook.py | 32b59c15c01230df25870e4f465bfba821579f0a | [
"Apache-2.0"
] | permissive | savvykms/airflow-salt | b6f61b65c6091567ee21f2981b70f27a50d3a150 | 079fff2d0cd9090da349d6d95b72dd237810bf65 | refs/heads/master | 2021-06-01T06:49:42.996534 | 2016-07-13T15:40:33 | 2016-07-13T15:40:33 | 63,256,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # -*- coding: utf-8 -*-
from builtins import str
import logging
import pprint
import json
import requests
from airflow.hooks.base_hook import BaseHook
from airflow.exceptions import AirflowException
class SaltHook(BaseHook):
"""
Interact with Salt servers
"""
def __init__(self, salt_conn_id='salt_default'):
... | [
"kristopher.savoy@gmail.com"
] | kristopher.savoy@gmail.com |
6cf4548fab5f9a425ac47424c3ec0ab24bf069e9 | 91f023d744710386c6d2baec138e4a2496ee8969 | /manage.py | 85e5b0dc70f6f69c6dcd5778870b199d2b3aec53 | [] | no_license | miquel-corral/crppdmt | 4ae653393e26a55175a5a4f05950a44b262bfc93 | a44088a4476fca96891733a243de414be5952bb0 | refs/heads/master | 2020-05-05T13:13:31.121093 | 2015-11-02T15:08:23 | 2015-11-02T15:08:23 | 34,043,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crppdmt.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"miquel.corral@gmail.com"
] | miquel.corral@gmail.com |
1134b638f80602379677b927db8cbe49ee857fde | 2e85be29ff69c821aafd0ed054af40fbfeccea8d | /CrackingTheCodingInterview/TreesandGraphs/BinaryHeap.py | 1a7a42cac1df9a4eadf7cf1ebe586c1b7f44e646 | [] | no_license | maheshbabugorantla/CodingInterview | 6890fe5e5b4f284b9f079b9ed6d918eb446347df | c24d5b35a452817fa3a5bb2dcc1168ce7fe47460 | refs/heads/master | 2020-03-14T03:39:11.590413 | 2018-05-03T00:32:06 | 2018-05-03T00:32:06 | 131,424,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,887 | py |
class MaxHeap:
def __init__(self, dtype=None):
if dtype is None:
raise ValueError("'type' cannot be None")
if not isinstance(dtype, type):
raise TypeError("'dtype' should be of type <class 'type'>")
self._type = dtype
self._heap = [None]
s... | [
"maheshbabugorantla@gmail.com"
] | maheshbabugorantla@gmail.com |
f636068a81116528616e1f63c07c412447c94e49 | c5be6a92f216957d340474b58507606a38c10f5f | /course-files/tutorials/tutorial04/answers/drawings/d5.py | e0e46a2f538962b9b15a80780794e0fa647bfa31 | [] | no_license | eecs110/winter2019 | 0b314c35e886b8099368ed7dfd51b707ab73c0c2 | f4107207ca1c9c10b78bdbb74fd82410b00ee363 | refs/heads/master | 2020-04-11T10:09:28.100445 | 2019-03-21T18:00:25 | 2019-03-21T18:00:25 | 161,705,160 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | from tkinter import Canvas, Tk
import random
import shapes
import math
gui = Tk()
gui.title('Circle')
canvas = Canvas(gui, width=500, height=500, background='#FFFFFF')
canvas.pack()
########################## YOUR CODE BELOW THIS LINE ##############################
center_x = 250
center_y = 250
distance_from_center =... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
a6be9d570514b770b12cd026d69be6ad9174e1eb | 7c246e0046136c7ab200ebf5a7e8fe772bd0738b | /02_django/css01/css/urls.py | de2d2f568f2315ed7bcf65c575c4dcfdb29a1fdd | [] | no_license | name-chichi/KDT-BigData | d6d87557945b6dc5c3dd7126a718f6de147f6d7b | 6bac43fdaf0b0be94996f2fab65f59916d500395 | refs/heads/main | 2023-06-30T07:04:54.296238 | 2021-07-30T03:09:54 | 2021-07-30T03:09:54 | 374,502,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"namechichi123@gmail.com"
] | namechichi123@gmail.com |
25e1d7c4b496e1d13bf633c73b7f2d3e557bf8bc | 04d3309a1618ba8bc1aac5ead238d3368b44472d | /18.7 Transform one string to another/main.py | f1cc25e5b41bd397e2fcbcd7347bbfca5febea23 | [] | no_license | cunghaw/Elements-Of-Programming | 76ae0aabbd53f21c8472e73aa5190afdd2821826 | 3fce8c699f37913e1838fba1691f38058bfbd4c8 | refs/heads/master | 2021-04-09T13:54:52.006731 | 2018-05-13T02:02:30 | 2018-05-13T02:02:30 | 125,673,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | # -*- coding: utf-8 -*-
"""
Transform one string to another.
@author: Ronny
"""
def calcDistance( str1, str2 ):
diff = 0
for ch1, ch2 in zip( str1, str2 ):
if ch1 != ch2:
diff += 1
return diff
def getClosestNeighbors( str1, setWords ):
result = set([])
for word in setWords:
if calcDistance... | [
"rlim6@gatech.edu"
] | rlim6@gatech.edu |
e13cb7e0d1b29cfbd3d7a6ae4d6a717365159901 | 08b49c36e221b9b4a68f7eba96239a5a8971cac5 | /D02/ex05/the_only_true_pokemons.py | 77d5446bd028cc0643376cace8a3497723a6389e | [] | no_license | qbarrier/Python | 1a5c6247fe3eaa126a3a8a05832affe66cdfd3d2 | 12e7852dbdcb055a5d7bf04e3ef00f66d26740ff | refs/heads/master | 2020-07-07T13:36:24.361771 | 2019-08-22T06:34:19 | 2019-08-22T06:34:19 | 203,363,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import requests
import json
def ft_first_gen() :
req = requests.get('https://pokeapi.co/api/v2/pokemon/?limit=150')
req = req.json()
dict_pk = {}
list_pk = []
index = 1
for x in req['results'] :
dict_pk = {index : x['name']}
list_pk.append(dict_pk)
index += 1
f = op... | [
"qbarrier@z4r8p1.le-101.fr"
] | qbarrier@z4r8p1.le-101.fr |
b41096d3e1efdc61b647a58e277d2f249fd7989c | 3a957b12c171cb81f2a0458d5c5b186679535dad | /sklearn/utils/_param_validation.py | 4370817094be87a9f7f5ff2ce45aaf23fe527990 | [
"BSD-3-Clause"
] | permissive | jeremiedbb/scikit-learn | d6e72dc13c44e2e5e2060d74d71cd300c53f3240 | c3bfe86b45577a9405a4680d9971efa9594a0657 | refs/heads/master | 2023-07-09T19:03:28.306963 | 2023-03-30T17:30:41 | 2023-03-30T17:30:41 | 135,716,742 | 3 | 0 | BSD-3-Clause | 2023-03-16T21:18:33 | 2018-06-01T12:46:27 | Python | UTF-8 | Python | false | false | 27,087 | py | from abc import ABC
from abc import abstractmethod
from collections.abc import Iterable
import functools
import math
from inspect import signature
from numbers import Integral
from numbers import Real
import operator
import re
import warnings
import numpy as np
from scipy.sparse import issparse
from scipy.sparse impor... | [
"noreply@github.com"
] | jeremiedbb.noreply@github.com |
81d8d57b0e12ee8119dcc4e5f8a7af1fbd776d8e | f92a578eb638f8310e1824ebfc32d6c252f6043c | /game/omok/OmokClient.py | 347993c7f964bfcdf40d795fdd42bc1e05865864 | [
"MIT"
] | permissive | HyOsori/battle.ai | 6e847bf4594e9fd49543cbb29325d4ba0bc02e78 | 5e459fc965716cb336b3b4aa3ea02c9bfe529621 | refs/heads/develop | 2020-04-12T06:43:44.568719 | 2017-09-10T06:42:09 | 2017-09-10T06:42:09 | 64,668,694 | 23 | 3 | null | 2017-09-10T06:42:11 | 2016-08-01T13:20:55 | JavaScript | UTF-8 | Python | false | false | 382 | py | # -*-coding:utf-8-*-
import sys
from game.omok.MyOmokParser import MyOMOKParser
from gamebase.client.Client import Client
# HOST = '104.199.218.103'
HOST = '127.0.0.1'
PORT = 9001
client = Client()
if client.connect_server(HOST, PORT) is False:
print('서버 연결오류')
sys.exit()
player_parser = MyOMOKParser()
clie... | [
"wjdenwls123@gmail.com"
] | wjdenwls123@gmail.com |
53a370b8267f3b4b44af65a058a1f0d3b8878e36 | 0ae564797425ff1c324904e7292b3ea1ed8f20b6 | /pycaffe/python2.7.12/check_china_lenet_dp2.py | 1d20db532f2dcc19c5fb29bde1c43bcd2871d512 | [] | no_license | f846019u/git | 69c371db15e5cd2071473c6e165664980ab55b50 | 7ca8d1bc9e46ff045100315eaf3addc75ffce9e8 | refs/heads/master | 2020-04-06T22:40:18.734028 | 2018-11-16T09:14:32 | 2018-11-16T09:14:32 | null | 0 | 0 | null | null | null | null | EUC-JP | Python | false | false | 3,322 | py | #!/usr/bin/env python
import numpy as np
import sys
import os
import caffe
import cv2 as cv
#評価する番号
VALUE_NUM = '0'
MODEL_NAME = 'china_lenet_dp2'
MODEL_FILE = '../../' + MODEL_NAME + '_deploy.prototxt'
PRETRAINED = '../../weights/' + MODEL_NAME + '/' + MODEL_NAME + '_value' + VALUE_NUM + '_iter_15000.caffemodel'
I... | [
"f846019u@mails.cc.ehime-u.ac.jp"
] | f846019u@mails.cc.ehime-u.ac.jp |
0f18188c5e6dd84f4318dceee1a28bd84ad64df4 | 94efec085757ca8a1956e6a0b6cb93cac792e522 | /cathles_bounce_heating.py | c64a87a577e1afa5db82cfbd02ad883ceabdc134 | [] | no_license | SiccarPoint/penitentes | 327845a37b03351c0ef504907833268fce51545b | 7b720aeaf157b5dc471975c80ba99840224e19bd | refs/heads/master | 2021-01-10T15:41:38.572631 | 2015-10-01T01:39:12 | 2015-10-01T01:39:12 | 43,472,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,780 | py | # this code follows Cathles et al., 2014, and whence Cathles et al., 2011,
# for its approach
# This iteration of this code attempts to allow the surface to be cooler than
# the melting pt, which is explicitly assumed by Cathles. We need to thus add
# reradiation, temp changes, and a sublimation rate which is dependen... | [
"dan.hobley@gmail.com"
] | dan.hobley@gmail.com |
94dc0dfabc4bdc458a90b979dc28da65b91a1a81 | bfe8a7abec489fbbec72ff5baa2b40e5c104fe88 | / 6-Rozsyłanie grupowe UDP/multicastClient.py | ce102d39f7d2aa97ef4f5f4f4b6e6adb6e56a285 | [] | no_license | tobiashiro/Programowanie-Sieciowe | d057e927e30c6b51444a10696ecf76ee24d4c15c | eac8a105e2597f1f94b01e4d806994ceadc075c3 | refs/heads/master | 2023-03-11T18:04:32.027450 | 2021-02-28T21:52:49 | 2021-02-28T21:52:49 | 338,399,853 | 0 | 0 | null | 2021-02-26T21:22:09 | 2021-02-12T18:26:38 | Python | UTF-8 | Python | false | false | 2,593 | py | import socket, logging, time
import struct
import sys
logging.basicConfig(level=logging.DEBUG,
format='(%(threadName)-9s,) %(message)s',)
class MulticastClient:
def __init__(self):
self.message: str
self.host: str
self.port: int
self.host = ""
self.por... | [
"t.felczynski@gmail.com"
] | t.felczynski@gmail.com |
5a2734673ebe2a3d4cd4e803f73fdb80c111d7ce | 12541a13c92f50b5369ee7f99ed0c1e97a45f035 | /6/6-2.py | 53c9d629ea47a4111df785be693c801a7cecdb68 | [
"BSD-3-Clause"
] | permissive | liuhanyu200/pygame | 6364d90914c244fa53f56a5616a9bd95b86f440c | 38a68e779e6b0a63edb1758fca98ebbf40bb0444 | refs/heads/master | 2023-06-07T04:32:57.946745 | 2021-07-01T10:17:41 | 2021-07-01T10:17:41 | 375,933,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # -*- coding:utf-8 -*-
favorite_numbers = {
'wangyue': 8,
'liuseng': 2,
'luoliuzhou': 9,
'liushaoqiang': 1,
'caohongsheng': 100,
'xiongmao': 6,
'xixi': 6,
}
peoples = ['liushaoqiang', 'xixi', 'wangermazi', 'liguoqiang']
for name in favorite_numbers.keys():
if name in peoples:
p... | [
"1218907511@qq.com"
] | 1218907511@qq.com |
6ac1325eae05a1491fc3ae51ea134cc72a1fddd0 | 0280fc1aa108b5d8cb73cdb67ba6293ee20d4435 | /code/test_types/ensembles/get_best_ensemble_combination.py | 1a934b10b0d67ac208a5f66cbabad8f5fa2b63d0 | [] | no_license | danielcomerio/2021-SBAI-Covid19_em_RaioX | bd8eee7e2c4f7052a5939ec7f1d6eeed0e459d74 | 90c981788c6c9b96e2cab15fd3de5c41a1024553 | refs/heads/main | 2023-08-02T15:06:26.831516 | 2021-10-02T23:24:37 | 2021-10-02T23:24:37 | 360,781,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,915 | py | import argparse
import os
import numpy as np
from sklearn.metrics import accuracy_score, confusion_matrix, precision_score, f1_score, recall_score, classification_report
from more_itertools import powerset
import random
models_path = [
"test_mobilenetNormal.txt",
"test_mobilenetProcessed.txt",
"test_resne... | [
"danielhcomerio@gmail.com"
] | danielhcomerio@gmail.com |
03e064a0bce0dd00a223a41938dc5d68dd20b8ce | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/reportlab/rl_config.py | 14438fb24175d622317b26fc4539590edf37a674 | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,725 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
83f402a7ec1b6a4bf2e2ac6f13ff695c108fcf0c | 44ff565bb1838a445e0d5a89ea3ca3e4b29b3686 | /Python算法详解/第12章/Reversi.py | 0a81667472893c1c0099a99a2e84e5b90021e743 | [] | no_license | huoweikong/python_pch_kiton | df3162aae397e82df9ef575f5f9d26039e5e036e | 057cef1f34c76701840e7b8b46a5955b9f38b86b | refs/heads/master | 2023-01-10T22:40:45.610986 | 2020-11-19T18:37:56 | 2020-11-19T18:37:56 | 313,897,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,262 | py | # Reversegam: a clone of Othello/Reversi
import random
import sys
WIDTH = 8 # Board is 8 spaces wide
HEIGHT = 8 # Board is 8 spaces tall
def drawBoard(board):
# This function prints the board that it was passed. Returns None.
print(' 12345678')
print(' +--------+')
for y in range(HEIGHT):
... | [
"1154282938@qq.com"
] | 1154282938@qq.com |
8e7ea66678d6525ed22d3dd5952486d8e44cd520 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Fluid_Engine_Development_Doyub_Kim/external/src/pystring/SConscript | b6e8c9660762838555a40f518621f6873e7cf39a | [
"MIT"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 320 | """
Copyright (c) 2016 Doyub Kim
"""
Import('env', 'os', 'utils')
script_dir = os.path.dirname(File('SConscript').rfile().abspath)
lib_env = env.Clone()
lib_env.Append(CPPPATH = [os.path.join(script_dir, 'pystring'), script_dir])
lib = lib_env.Library('pystring', 'pystring/pystring.cpp')
Return('lib_env', 'lib')
| [
"me@yomama.com"
] | me@yomama.com | |
0bc96e095f2069bc9811ef311b2dee119285ae92 | 9c88b828b783e23b50186a2cbba2c08610d8d10d | /espressodb/documentation/__init__.py | c16020e168c1d82085be018508a3cd3600a84a63 | [
"BSD-3-Clause"
] | permissive | remram44/espressodb | 9a51219c0e7ec6e4c400578d02b97ef95024ba1e | 5aad7222ab81c0f1694b51171e5d197dbcc8a65f | refs/heads/master | 2020-12-08T06:07:43.736419 | 2020-01-12T20:31:20 | 2020-01-12T20:31:20 | 232,909,755 | 0 | 0 | BSD-3-Clause | 2020-01-09T21:29:09 | 2020-01-09T21:29:08 | null | UTF-8 | Python | false | false | 170 | py | """The documentations module provides a web page which summarizes the implemented models
which derive from the EspressoDB :class:`espressodb.base.models.Base` class.
"""
| [
"christopher@ckoerber.com"
] | christopher@ckoerber.com |
ad526b0c77d1f2680d586cca25c56ab1a9511e1d | 6bf1bb4922d5746d2893f9bc09a41dca67872d4e | /chatroom_encryption.py | 018ab46bdbf723ce2b5fb8458d1f3df4019d5c07 | [] | no_license | ivarols/Login-screen-to-chatroom | 18b051edc48da243438ce5371513d41ab09bd6cb | 5e745901c60f67a7aef9b8b64a374a4a51e457d7 | refs/heads/main | 2023-03-26T07:12:41.109236 | 2021-03-12T17:09:24 | 2021-03-12T17:09:24 | 345,217,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,527 | py | # import encyption_function_for_chatroom.py from whatever directery you have it stored
def register():
print("Registration")
password_r = ""
username_r = input("Enter username: ")
username_split_r = len(username_r.split())
if username_split_r > 1:
print("No blank spaces within the usernam... | [
"noreply@github.com"
] | ivarols.noreply@github.com |
1d443fcd8a68dc9c0124dcbff16c16d020b695ab | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | 10f2f222d46d9d3c3a69f254940903cb2be1c86b | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 4,176 | py | import hashlib
import os
from textwrap import dedent
from ..cache import BaseCache
from ..controller import CacheController
try:
FileNotFoundError
except NameError:
# py2.X
FileNotFoundError = (IOError, OSError)
def _secure_open_write(filename, fmode):
# We only want to write to this file, so open i... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
5865cee0434fa771b0ffd1e3c9bcb56df6e08c4a | 3967e42abb6f497ede6d342e8f74bd8150f9c52d | /src/spiders/qidiancom.py | b70dc6414c2c1f6637e2011d657997aa17ae923f | [
"Apache-2.0"
] | permissive | varunprashar5/lightnovel-crawler | 4886862115c5c3e15a9137e698e14253e14b7423 | 4ca387f3c8f17771befad1d48d417bbc7b9f8bfd | refs/heads/master | 2020-12-01T22:27:33.699798 | 2019-12-29T05:25:09 | 2019-12-29T05:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from ..utils.crawler import Crawler
logger = logging.getLogger('QIDIAN_COM')
chapter_list_url = 'https://book.qidian.com/ajax/book/category?_csrfToken=%s&bookId=%s'
chapter_details_url = 'https://read.qidian.com/chapter/%s'
class QidianComCrawler(Crawler)... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
0587480993283923fc28a800af3f56fc5d43a1d5 | 34e3147447875b491bd1b50c915f8848ead80792 | /uncertainty/constants.py | f19f8cdc91913b47521873fbed92985edbf59ce3 | [
"MIT"
] | permissive | meyersbs/uncertainty | 680f275ded6aad63012a7ca781d1cf455c66f226 | c12842cda7bea2d604bb9227a6c0baba9830b6fe | refs/heads/master | 2023-07-20T09:00:25.876780 | 2023-07-07T18:17:07 | 2023-07-07T18:17:07 | 87,837,406 | 19 | 5 | MIT | 2023-07-07T18:17:09 | 2017-04-10T17:16:51 | Python | UTF-8 | Python | false | false | 510 | py | from pkg_resources import resource_filename
BCLASS_CLASSIFIER_PATH = resource_filename('uncertainty', 'models/bclass.p')
MCLASS_CLASSIFIER_PATH = resource_filename('uncertainty', 'models/mclass.p')
VECTORIZER_PATH = resource_filename('uncertainty', 'vectorizers/vectorizer.p')
UNCERTAINTY_CLASS_MAP = {
'specul... | [
"nuthan.munaiah@live.com"
] | nuthan.munaiah@live.com |
6c937624bd73c970bb18a0b157447143bb654104 | b5834420791b59e230593f7ef9cf8db0be410998 | /main.py | 2ddf96ce8f8c7081f8c3403ac6e26b98701e7f4e | [] | no_license | mfatihdurmus/backtrader-test | f41f81f425c9b519d917388483d05db40af43c95 | 144c76a782b4044ca81d6097ee0ec975d9821fbc | refs/heads/main | 2023-02-04T19:24:19.118104 | 2020-12-26T22:03:24 | 2020-12-26T22:03:24 | 324,636,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import datetime # For datetime objects
import os.path # To manage paths
import sys # To find out the script name (in argv[0])
# Import the backtrader platform
import backtrader as bt
# Create a Stratey
cl... | [
"fate@localhost.localdomain"
] | fate@localhost.localdomain |
f0277517a0c493c33d30df57e6b7bf5cd604f4ff | 2f176eafaa23e4dcf7309b4b1c751728de6d9a8b | /parsing4.py | 150d77da6090b97bc33c9fb753e5712d3d3f1948 | [] | no_license | aahnn1223/python_study | 2586eae3a79a4bb1039a8503582a6fba21acc3c5 | 355a23609128ef1584d1273379c1f16a6e646316 | refs/heads/master | 2021-05-15T03:15:57.150379 | 2020-03-30T00:59:46 | 2020-03-30T00:59:46 | 250,404,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | ## read로 불러올 때에는 바이너리 형태로 불러오기 때문에 우리가 읽기 어렵다.
import urllib.request
url="http://example.com/"
res = urllib.request.urlopen(url)
data = res.read()
#바이너리를 문자열로 변환하기
text = data.decode("utf-8")
print(text) | [
"aahnn1223@naver.com"
] | aahnn1223@naver.com |
35e0f155082e64c88bf8b1155a6da2dc8d25fc31 | 447b17ac1893d5e09cbce365761ded8b61f33956 | /ifs/filesystem/models.py | a619dea66a2168c89927e483b9b4e106731382b6 | [] | no_license | yulkes/workshop-sample-solution | eb69a3e7bb3e7056321348c1c6eee5d309a18411 | 0fc6378c31e329dca85041df6063ac2ce835c720 | refs/heads/main | 2023-05-24T21:22:04.129446 | 2020-07-24T15:00:30 | 2020-07-24T15:00:30 | 280,848,181 | 1 | 0 | null | 2023-05-23T00:11:33 | 2020-07-19T11:07:47 | Python | UTF-8 | Python | false | false | 1,188 | py | from dataclasses import dataclass, field
from logging import Logger
from pathlib import Path
from typing import List
logger = Logger(__name__)
@dataclass
class DirectoryListing:
base_path: Path
files: List[Path] = field(default_factory=list)
dirs: List[Path] = field(default_factory=list)
def add_fil... | [
"yulkes@gmail.com"
] | yulkes@gmail.com |
f9448cbb5289f3b55b21ec678cfe5a69529d926d | 817f5b50ec1fa44c51ba657daea921bce80644a1 | /blog/migrations/0002_auto_20200113_2245.py | fd56d81b4ae7a2e1f39796e6ebf756bf743b5c36 | [] | no_license | dejosli/ecommerce_pharmacy | 94b002f25fd116db835bc5c028ee7458aab1dfb6 | e0b30745f3777b83bcaea686cb46f66102394b42 | refs/heads/master | 2021-06-27T14:48:25.766224 | 2021-03-26T03:19:22 | 2021-03-26T03:19:22 | 225,802,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 2.2.5 on 2020-01-13 16:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='postcategory',
options={'ordering': ('name',), ... | [
"desilvajosli@gmail.com"
] | desilvajosli@gmail.com |
f9f05ec8091310728dec15ae327849436e548ada | 2a51ebbb11d2e86efeb6b4c406c9ef9e8dd161a1 | /train.py | 2cbc2934ea1f8e2507024a040d0bdd5582945439 | [
"MIT"
] | permissive | MaLiXiaoGuo/efficientdet-pytorch | 37f6099d24532f2fcf255d9617841de5d9507248 | 6a013481f9264a065ff1e3c5affe3102ef6066ce | refs/heads/master | 2023-04-04T16:57:56.542193 | 2021-04-07T10:57:42 | 2021-04-07T10:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,362 | py | #-------------------------------------#
# 对数据集进行训练
#-------------------------------------#
import os
import time
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.autograd import Variable
... | [
"noreply@github.com"
] | MaLiXiaoGuo.noreply@github.com |
6757f60ad54e92de598316caec907e610dd16c53 | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /Sequence4/DS/Week5/submission/sub-range-4.py | 585c33c2a3133ca7749fcb1568e035d6b909e7e3 | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | # python3
from sys import stdin
import sys, threading
sys.setrecursionlimit(10**6) # max depth of recursion
threading.stack_size(2**27) # new thread will get stack of such size
# Splay tree implementation
# Vertex of a splay tree
class Vertex:
def __init__(self, key, sum, left, right, parent):
(self.key, sel... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
0c510cd43363ec78afcc84b81f6eb6776f6efc44 | 7ddc7de7889cbda2b0ce3e65a5316899a7c0094d | /keyboard_automation.py | 23c324a86d5ec211b2eb242200b52db8f71e5e94 | [] | no_license | EoinGr3y/python | 65c7be6704f6a69a06001e30208cc4c203450099 | b63bf205c460adc664a4f8d64a2c2fdeca3234dd | refs/heads/master | 2021-04-06T06:10:06.441713 | 2018-03-12T19:28:42 | 2018-03-12T19:28:42 | 124,940,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import pyautogui
pyautogui.click(100, 100)
pyautogui.typewrite('Hello world!', interval=0.1)
pyautogui.hotkey('ctrl', 'n') | [
"eoin.graham@liberty-it.co.uk"
] | eoin.graham@liberty-it.co.uk |
79da1f5960636d02fb36de8a0246c12483334113 | 67efa3f44b809984bc4433481f13b4b84f48fa30 | /task1/task1.py | be34b7ed899f3ac6bc5b0e3e45a2bf30d41f9af6 | [] | no_license | Boltivets-Dmitro/python_practice | 9aaff1c66ad0e86e00fb5c88288864dde3d1ff4b | 3b18cb504e2f45ca206120da7d4d1c522292fc6f | refs/heads/main | 2023-06-18T12:29:00.685450 | 2021-07-07T13:52:40 | 2021-07-07T13:52:40 | 383,112,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | import re
str = input("\nВведіть рядок: ")
words = ''.join([i for i in str if not i.isdigit()])
numbers = re.findall(r'\d+', str)
numbers = [int(i) for i in numbers]
print("\nРядок без чисел:", words)
print("Числа з рядка:", numbers)
WithLarge = ' '.join(words[0].upper() + words[1:-1] + words[-1:].upper() for wor... | [
"boltivetsdmitry@gmail.com"
] | boltivetsdmitry@gmail.com |
9744dae7239f9c1835418cabf0cd0fdebe277c41 | 48c40649b84984eb4473f796ad1ec5a3294c1683 | /LP/benchmark/methods/GATNE/walk.py | 85ee1125073424eda2c4c02813dcfec381a7b00d | [
"MIT"
] | permissive | danielTLevy/HGB | 8260f23dd1cabc41df255dd8d5533e7aaca07339 | 3aca9c4099ba7ea0bcb68ef00ef19bab8dda638a | refs/heads/master | 2023-08-06T10:03:39.786587 | 2021-09-29T08:12:18 | 2021-09-29T08:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | import random
import multiprocessing
from tqdm import tqdm
def walk(args):
walk_length, start, schema = args
# Simulate a random walk starting from start node.
rand = random.Random()
if schema:
schema_items = schema.split('-')
assert schema_items[0] == schema_items[-1]
walk = [st... | [
"itliuqiang@aliyun.com"
] | itliuqiang@aliyun.com |
4a37455d9a0b65a8c4aec6586528fc1fcda1e472 | 085d3f2f8de5442d69962a65b8acd79478599022 | /2.Dictionaries - the root of Python/Safely finding by key.py | e66f37889bfe6d285916f26ea00f6830005db3ba | [] | no_license | Mat4wrk/Data-Types-for-Data-Science-in-Python-Datacamp | bfe8f8c4d4bc3998ef612f0d3137b15e662209d0 | c2eb30d3c500f69486921d26071a2ef2244e0402 | refs/heads/main | 2023-03-13T10:06:10.748044 | 2021-03-07T14:43:25 | 2021-03-07T14:43:25 | 331,574,648 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # Safely print rank 7 from the names dictionary
print(names.get(7))
# Safely print the type of rank 100 from the names dictionary
print(type(names.get(100)))
# Safely print rank 105 from the names dictionary or 'Not Found'
print(names.get(105, 'Not Found'))
| [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
a93c88113c884a9df489879c2717ce2816a0ac34 | 472bd1a9bff63576cf6ce8813a569f350b550645 | /getdata/migrations/0001_initial.py | 23312910b5a76bcb40c7f809ffc2e403c5ef2f09 | [] | no_license | karankwatra/chicago_data_sources | f6dad59c6acedff0a760aa2011f7638ddf0cdfb1 | ae8a25bb7727ba3720c72444ddaab753206332ee | refs/heads/master | 2021-05-09T20:54:33.047806 | 2018-02-17T08:09:41 | 2018-02-17T08:09:41 | 118,713,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 2.0.1 on 2018-01-24 04:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
('id', models.AutoField... | [
"kwatraka@umich.edu"
] | kwatraka@umich.edu |
bb41fbb260b41833d1b96a8fd626cf8493a3bcbd | 8f3df95b1f729ab690cb99fcda80d5dc298ee75d | /mystorage/migrations/0001_initial.py | 0156f8c0d91c3ce03143277f914af629fefbd191 | [] | no_license | solone313/DRF_practice | 8c72ef46cc93f607cce6b3f98a80d1bf7ca56c14 | a1473f341f81ac067cbd8c8160b6bd48d4bdf6ad | refs/heads/master | 2020-12-04T19:09:47.410682 | 2020-01-07T13:13:24 | 2020-01-07T13:13:24 | 231,877,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # Generated by Django 2.2.8 on 2020-01-05 06:24
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... | [
"solone313@naver.com"
] | solone313@naver.com |
ebbf372f122d1b3b4628688630c2a22d58f2bfa0 | 15f647b8cf73c283b1491a259087a0ab209b70ba | /relation_detection/relation-evaluator.py | 1fe528a7de37070eb4d50c7767865100c3ae0b63 | [] | no_license | shen1993/relation-detection | 8c2e17106b3db6dd4146747da2f7c6ee2d619c10 | 8dd315a280101a922c41f01292995a87778327a4 | refs/heads/master | 2020-06-01T06:14:35.043727 | 2019-06-07T01:51:25 | 2019-06-07T01:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #!/usr/bin/python
#compute the accuracy of an NE tagger
#usage: evaluate-head.py [gold_file][output_file]
import sys, re
if len(sys.argv) != 3:
sys.exit("usage: evaluate-head.py [gold_file][output_file]")
#gold standard file
goldfh = open(sys.argv[1], 'r')
#system output
testfh = open(sys.argv[2], 'r')
gold_ta... | [
"408641204@qq.com"
] | 408641204@qq.com |
b4335a5f81c3eca54da490e902cb886118f575f6 | d7bcd4020efd8303ec42e9174b4822cd77b7df90 | /hardware.py | 872ba5fa8324e86febdd4975ef9942c32bb6f720 | [] | no_license | daggerhashimoto/btcpow | d147d4617815e9e344be5d51068a073966ece503 | fa706cd72be35020a0ed6d52e46d321e35719746 | refs/heads/master | 2021-05-26T15:27:02.829112 | 2014-02-20T04:32:19 | 2014-02-20T04:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | #!/usr/bin/env python
from datetime import date
# Simple class to represent a piece of hardware
class hw:
def __init__(self, name, d, hashes, price, power):
self.name = name
self.date = d
self.hashes = hashes
self.price = price
self.power = power
self.hash_efficienc... | [
"jbonneau@gmail.com"
] | jbonneau@gmail.com |
9c74c5965bad6ba10f49b56d5ec78a2342cfe9e0 | 377fc6e13101a2a45826cd118110c790f396a805 | /past202010-b.py | 458abc0ee58e452eeec63c3c668e014a6a90092e | [] | no_license | number09/atcoder | 4076e7223f424b9923754e73992d6442e0bb0de7 | f521ca1205b254d99744abaf6a7a5bfe69845fe0 | refs/heads/master | 2021-06-04T23:16:39.021645 | 2021-01-19T08:30:39 | 2021-01-19T08:30:39 | 132,128,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | x, y = map(int, input().split())
if y == 0:
print('ERROR')
else:
a = str(x / y)
a_a, a_b = a.split('.')
if len(a_b) == 1:
a_b += '0'
print(a_a + '.' + a_b[:2])
| [
"12413803+number09@users.noreply.github.com"
] | 12413803+number09@users.noreply.github.com |
b56333e0e90f01dcc81cbfd40678a72aa6983028 | 0df72d9c1f3c30f30a329ef0b87edaa8d0a1c5d7 | /Day-4/Task6.py | 9c822d47037eabf7233b03bfc134f44f9d2271d6 | [] | no_license | pranshu-joshi/Pranshu_InternshipTasks | 828f7af51e672accec95d36b6faec58286765da1 | d249e160568d227e220c13e3409c707cff54132c | refs/heads/main | 2023-05-22T19:10:02.448125 | 2021-06-14T10:56:15 | 2021-06-14T10:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #Variable-length arguements.
def myfunction(**args):
for i,j in args.items():
print(i,j)
myfunction(firstname=': Pranshu',lastname=': Joshi')
| [
"pj87008700@gmail.com"
] | pj87008700@gmail.com |
dbb7d69232e842355628dd33e1a621132ca26521 | 0a8bb114534eabdcf8d9a1d43462e374183cf6e7 | /users/urls.py | 0ad2d087b883a2f82bcc164833f2af8d9b5f9882 | [] | no_license | jodhiambo/beelinev1 | 70a465ddf6e1f89493af07122496fd503d4d5d86 | d8af31cf1090c58fe52d6bec0f82ac49e69260df | refs/heads/main | 2023-06-23T09:05:47.386524 | 2021-07-21T12:51:00 | 2021-07-21T12:51:00 | 388,112,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
# from userprofiles.views import get_users_list, get_user_details
app_name = 'users'
urlpatterns = [
path('accounts/signup/', views.MySignUpView.as_view(), name='account_signup'),
path('accounts/login/', views.... | [
"okothj15@gmail.com"
] | okothj15@gmail.com |
15c1f69c5aa5ca2b67a72818e30d8b469b8e8493 | a5c3174d2b3a168274b61c0a6b5df498f888bf70 | /cars/urls.py | 04c2bfebb6bd822e57fe1e02adb73f3b5eb06328 | [] | no_license | nord778/Rcoi_course | 83dd69d2e96b71a4285fbdeed624a34f92b00eb2 | b0b513467bf33e40b2909f8b02fa1d2e64393d4b | refs/heads/master | 2023-06-14T05:52:35.224671 | 2021-06-29T08:48:41 | 2021-06-29T08:48:41 | 380,979,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.cars, name='cars'),
path('<int:id>', views.car_detail, name='car_detail'),
path('search', views.search, name='search'),
]
| [
"eias778@gmail.com"
] | eias778@gmail.com |
a2d3275ab3d2e66630d134701f09749e04fb0c2a | da87dbd0e4558f5e176846eea7fb6d4d64daa292 | /myenv/bin/django-admin.py | 6a82dadd00ee09598ba4593bd6fc7e3fd4b940c3 | [] | no_license | Aravinthvvs/DjangoProjects | 5b617af0b3e6197bb4173131dc879e013b1f4db7 | 3f5ea5e1abcf8d2c5fb5c03125bfc68c52094010 | refs/heads/master | 2020-04-20T14:51:51.845476 | 2019-02-03T12:32:09 | 2019-02-03T12:32:09 | 168,911,841 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/Users/aravinthvvs/myDjango/myenv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"aravinthvvs1@gmail.com"
] | aravinthvvs1@gmail.com |
81e61ec856c688e116a50309c0fdcc84a1272194 | 26e50ea44cdaee9dbf07dd641ceef1fdae661bb4 | /snake/snake.py | ab08e4d00c289abcb7f7cffadb08bf23155341bd | [] | no_license | javibodas/SnakePython | d1497c24a68cabd19f7e92ba5845c28a24d02302 | 6e4b228bf5a2a26553dcece3d79534518851a7f9 | refs/heads/master | 2021-01-10T10:36:19.932264 | 2020-01-02T18:45:40 | 2020-01-02T18:45:40 | 43,549,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,503 | py | # coding: utf-8
import sys
import score as scoremodule
from block import Block
from blocks import Blocks
from pygame import display, image, event, init, font
from pygame.locals import *
__alls__ = ["SCREEN_WIDTH", "SCREEN_HEIGHT", "BLOCK_SIZE", "START_POSITION", "main"]
# IT CAN BE POSSIBLE TO CHANGE THIS PARAMETERS ... | [
"gonzalezbodasjavier@yahoo.es"
] | gonzalezbodasjavier@yahoo.es |
ee58373dfdb030ee5b6e6bc06f53117f04cb0396 | 20d2960ac57136aa427afbbf2a88aec30500ab22 | /openhtf/capabilities/usb/shell_service.py | 842acf2ee8b3e72356ef949d06ad99a56030c148 | [
"Apache-2.0"
] | permissive | song7seas/openhtf | 55e447b446efe97e10e0a5c4b927142d526e9016 | 9d278de31cc23ce14acbc84feb83e763e6a45e58 | refs/heads/master | 2020-12-13T18:27:10.712055 | 2015-09-01T22:50:10 | 2015-09-01T22:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,760 | py | # Copyright 2014 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 agre... | [
"jethier@google.com"
] | jethier@google.com |
871f3e48a561c6d3a0a81e78fb26e52f6fa2eb7c | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/gavicharla/codejam1.py | 25da9175da664053709c8d25e93ab4bca77cade7 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 515 | py | def flip(s,l):
str1 = []
for i in range(l):
if(s[i] == '-'):
str1.append('+')
else:
str1.append('-')
return "".join(str1)
test_cases = int(raw_input())
for test in range(test_cases):
s = raw_input()
l = len(s)
count = l
let =0
while (... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f039f11f1012417d425afe36144602e290845663 | dc182e5b4597bdd104d6695c03744a12ebfe2533 | /PythonScripts/cache_decorator.py | 13a86e3faccaa6620f606d3880ecb8559d34a2e1 | [] | no_license | srinaveendesu/Programs | 06fb4a4b452445e4260f9691fe632c732078d54d | f6dbd8db444678b7ae7658126b59b381b3ab0bab | refs/heads/master | 2023-01-27T14:42:40.989127 | 2023-01-18T22:36:14 | 2023-01-18T22:36:14 | 129,948,488 | 1 | 0 | null | 2022-09-13T23:06:04 | 2018-04-17T18:30:13 | Python | UTF-8 | Python | false | false | 404 | py | def cache(func):
"""Keep a cache of previous function calls"""
@functools.wraps(func)
def wrapper_cache(*args, **kwargs):
cache_key = args + tuple(kwargs.items())
if cache_key not in wrapper_cache.cache:
wrapper_cache.cache[cache_key] = func(*args, **kwargs)
return wrapp... | [
"srinaveen.desu@gmail.com"
] | srinaveen.desu@gmail.com |
a89da0c65a3a5001c7d30b8a9f9869e3deb76f6e | e69ec735c091215141acab0a6f2e07e2606cd1b2 | /src/kirr/hostsconf/views.py | a933e13a04210c16a7454b73d5a00c587391a512 | [
"MIT"
] | permissive | imtiaz-rahi/django-short-url | 209f4e7cd0ee490842a331f305f71577be2cf6f6 | 9fc3dc873d3307eb20bdc77a91037f269f8e8a00 | refs/heads/master | 2022-11-04T16:18:35.812899 | 2020-06-16T12:07:18 | 2020-06-16T12:14:18 | 266,201,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from django.conf import settings
from django.http import HttpResponseRedirect
DEFAULT_REDIRECT_URL = getattr(settings, 'DEFAULT_REDIRECT_URL', 'http://www.kirr.co')
def wildcard_redirect(request, path=None, *args, **kwargs):
return HttpResponseRedirect(f'{DEFAULT_REDIRECT_URL}/{path}' if path is not None else DE... | [
"imtiaz.rahi@gmail.com"
] | imtiaz.rahi@gmail.com |
782de249b46f09546dcf741a0fc5f71b7f5aca5e | a03303e46f21697c9da87d0bb0f7b0a3077aba5c | /siswa_keu_ocb11/models/biaya_ta_jenjang.py | 8c0710c7ba375eaad0378bdde9362af08f91cddd | [] | no_license | butirpadi/flectra_app_sek | fccd3e47ef261e116478e6da7f0cc544ee67f127 | 00fa36d9176511f8ffe3c7636a8434ee2ed8c756 | refs/heads/master | 2020-04-06T10:26:37.053024 | 2018-11-19T23:59:34 | 2018-11-20T00:17:02 | 157,380,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,290 | py | # -*- coding: utf-8 -*-
from flectra import models, fields, api, _
from pprint import pprint
from datetime import datetime, date
import calendar
class biaya_ta_jenjang(models.Model):
_name = 'siswa_keu_ocb11.biaya_ta_jenjang'
name = fields.Char('Name', related="biaya_id.name")
tahunajaran_jenjang_id = f... | [
"butirpadi@gmail.com"
] | butirpadi@gmail.com |
368da12078ad24bb8c1403761b573a5acd4f731c | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/4-bind()-complex_20200412164915.py | 3951d6e1beff4faa4c6fcf2e2f7923a3bcedeff0 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | #complex
z = complex(2, -3)
print(z)
z = complex(1)
print(z)
z = complex()
print(z)
z = complex('5-9j')
print(z)
# output
# (2-3j)
# (1+0j)
# 0j
# (5-9j)
#binary
print(bin(5))
# binary output 0b101
#binary with letter b with python
#non-python binary number of 5 is 101
#convert from binary into an integer
print()... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
8adeb084c7dc9ebf20dd62c54ce870904e63af98 | 66093b66b8b2e2401ff1b2f3bad9ef5895d65c03 | /sound_split/asr_sound_split/readdata24.py | cf3cdcea83f728ea762abecfc1f8d1456827ed92 | [] | no_license | soulbyfeng/aiways | dc01391a1ccfd3b03126e629db629e27194efb94 | a2637745815f39960848dd8f4a9ccf94b1917fa1 | refs/heads/master | 2020-06-26T12:09:06.302368 | 2019-07-30T10:20:23 | 2019-07-30T10:20:23 | 199,626,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,917 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import platform as plat
import os
import numpy as np
from general_function.file_wav import *
from general_function.file_dict import *
import random
#import scipy.io.wavfile as wav
from scipy.fftpack import fft
class DataSpeech():
def __init__(self, path, type, Loa... | [
"1071690973@qq.com"
] | 1071690973@qq.com |
b33fd7c6fb5fcd40784678489b42da8b4615728a | 635ed499496d9088d9af2f4cb433b757478c7ba2 | /articles/models.py | 33fba8c19fd833bbb3f914fd95d97dc7916a053c | [] | no_license | vaishnaviDevi05/news-app | fb00d9300ad8cf42a2332274d554a4732961c741 | 741847aeed4379ae83cb7115b7e3c9853472564e | refs/heads/main | 2023-04-16T15:49:45.183421 | 2021-04-28T16:14:05 | 2021-04-28T16:14:05 | 362,526,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | from django.db import models
from django.conf import settings
from django.contrib.auth import get_user_model
from django.urls import reverse
# Create your models here.
class Article (models . Model):
title =models . CharField(max_length =255 )
body = models . TextField()
date =models . DateTimeField(auto_n... | [
"vaisuvenkat2000@gmail.com"
] | vaisuvenkat2000@gmail.com |
53bd002833d9a292adb9fc9597fcf51a13a3e702 | ff7d3116024c9df01b94191ddfa334e4a6782ae6 | /mandal/asgi.py | b5b92dc813812b64f6029c072cbb314048f69a23 | [
"MIT"
] | permissive | jhnnsrs/arbeider | f5f708ee1026a9e9573a6f8a87c3b9e2fd6b5e33 | 4c5637913331c998a262ae0deca516b236845200 | refs/heads/master | 2021-05-26T10:31:16.279628 | 2020-04-08T13:40:26 | 2020-04-08T13:40:26 | 254,095,863 | 0 | 0 | MIT | 2020-04-08T13:40:28 | 2020-04-08T13:29:31 | null | UTF-8 | Python | false | false | 318 | py | """
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
import os
import django
from channels.routing import get_default_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mandal.settings")
django.setup()
application = get_default_application()
| [
"jhnnsrs@gmail..com"
] | jhnnsrs@gmail..com |
43d75c150e6a950e6724d9f9be77b57896d01433 | e8aa02aac87e417ad5767a72cb85d329f3841a3c | /Heart_disease_Prediction/tests/smoke/smoke_tests.py | 9eae5343cd4b83821855b605297060d64b3af074 | [] | no_license | Kumarg4p/Heart-Disease-Prediction---Azure-MLOps | 9e8980b2c89e67e7d5ebb651a9a9b36c5048f059 | 8ca582d4786caf2d65cca4ea062e6ad83c3e01a9 | refs/heads/main | 2023-08-04T17:46:00.663885 | 2021-09-20T01:33:03 | 2021-09-20T01:33:03 | 404,184,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | import requests
import json
import pandas as pd
req_sample = {"age": 45,"sex": 0,"cp": 2,"trestbps": 155,"chol": 258,"fbs": 1,"restecg": 0,"thalach":180,"exang":2, \
"oldpeak": 2.5,"slope": 1,"ca": 2,"thal": 1}
def test_ml_service(scoreurl):
assert scoreurl != None
headers = {'Content-Type':... | [
"noreply@github.com"
] | Kumarg4p.noreply@github.com |
88ad2030fd1b92b61c508064827a5d5b5688d2d8 | 8370c98faafe9ebe7163946a438245886473cb8a | /Algorithms/float/float_plots.py | 4236b80bd1bd84530d7eb6a9ea6d57f9d24d4636 | [
"CC-BY-3.0"
] | permissive | maksimovica/numerical_computing | 54bf28f9eeaf260f11c812dd680870d453494961 | 634a8430a9e203e3ab70ffedfb1d75a185b294ca | refs/heads/master | 2021-01-21T06:55:11.961085 | 2014-08-20T17:16:35 | 2014-08-20T17:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | import numpy as np
from numpy.random import rand
import matplotlib
matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc')
from matplotlib import pyplot as plt
def sqrt32(A, reps):
Ac = A.copy()
I = Ac.view(dtype=np.int32)
I >>= 1
I += (1<<29) - (1<<22) - 0x4C000
for i in xrange(... | [
"insertinterestingnamehere@gmail.com"
] | insertinterestingnamehere@gmail.com |
fe3fc270d1fb2b780d9062ebe8a945f4e690cccb | 69f5d7b24343ccfe1c4b7fd2118c86bbfdd035e8 | /Advent_of_Code_16.py | 68035ad910c092855aff6d86fbed7497227dd3bf | [] | no_license | AndrewWoodcock/Advent-of-Code-2020 | af24a5e992a003a8c46f84a70e7b043d9f7561a0 | 1d899961d9178955fe6fccb257e90f7416fc614b | refs/heads/main | 2023-02-08T19:31:26.917576 | 2020-12-26T18:42:25 | 2020-12-26T18:42:25 | 319,082,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py |
dep_rules = "departure_rules.txt"
# dep_rules = "departure_rules_test.txt"
# nearby_tickets = "nearby_tickets_test.txt"
nearby_tickets = "nearby_tickets.txt"
def get_departure_rules(filename: str) -> dict:
rules_dict = {}
with open(filename, "r") as file:
for line in file:
# split by :
... | [
"andrewwoodcock03@googlemail.com"
] | andrewwoodcock03@googlemail.com |
88d96b794355e7ad2198ede93ec8efbb434a5402 | 626a35087be9a68881879a5993f5a79fdf7c0e1b | /mij.py | 3ff4cc9d34037a0b0cc6c32dab59a35680698af1 | [] | no_license | kelg1/condindependence | 65a587ecebbe5b084bff2089fb952f94a0e1afa3 | 377435a694ca76de9f593ae68b6f6d7a2e96e93b | refs/heads/master | 2021-06-19T10:04:37.072552 | 2021-02-12T12:17:59 | 2021-02-12T12:17:59 | 179,278,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | class Mij:
def __init__(self, gamma=0):
self.gamma = gamma
self.fit_ = False
def fit(self, y, X):
y1, y2 = y.T[0], y.T[1]
Fn1 = CondMargin(h_x=1e-1, h_y=1e-3)
Fn2 = CondMargin(h_x=1e-1, h_y=1e-3)
Fn1.fit(y1, X)
Fn2.fit(y2, X)
self.Fn1 = Fn1
... | [
"noreply@github.com"
] | kelg1.noreply@github.com |
2e0c2e8fe4b93f9907d00a544e54427c4af211f1 | 30258fa59f1dd4c9df500fdd34e336342fe78634 | /_archive/2015/python_ex/oscilloscope.py | 38466eef3c2712bd39f8685bbfcee7aa429163b8 | [] | no_license | benmca/csound-pieces | 102ae133ec8686e59958381a09a6355df419e435 | 299f0931fca885aaf44768b9c844707cb07f534e | refs/heads/master | 2023-05-25T02:43:30.205694 | 2023-05-22T00:00:12 | 2023-05-22T00:00:12 | 27,701,093 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | #!/usr/bin/python
#####################################
# oscilloscope example
#
# VL, 01/07
import csnd6
from Tkinter import *
import display
import array
import threading
# window size, refresh interval and norm factor
window_size = 300
time_interval = .1
norm = 32768.0
lock = threading.Lock(... | [
"ben@listenfaster.com"
] | ben@listenfaster.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.