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
92754d9d47c8bfc380e97bec2f9b21fca55de57f
ac3d3a45d7d6923bc0668bcdd38de31972860eaa
/HackerRank/1.Python/05.Math/004.ModDivmod.py
e0e5337b1eab7a6cc8ee60033f97072f53ba5b17
[]
no_license
darpan-jain/DS-And-Algos
c17388d28ad6c1fc113e2da783904eb38a59223f
a9e54a4f1ac6ef0c1d5b056ca18dc59efdc3c648
refs/heads/master
2023-01-15T12:43:26.495033
2020-11-16T06:28:21
2020-11-16T06:28:21
294,034,130
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
''' Question : Read in two integers, a and b, and print three lines. The first line is the integer division a//b. The second line is the result of the modulo operator a%b. The third line prints the divmod of a and b. Link : https://www.hackerrank.com/challenges/python-mod-divmod/...
[ "noreply@github.com" ]
darpan-jain.noreply@github.com
1a46332d256e0dfb90a730c3e144107fa8174cc5
dd75ee3b5f9a4fa5c62dcd06df9b3847cacac515
/src/transformers/convert_bert_original_tf2_checkpoint_to_pytorch.py
0e37b24246ffc48cda0201db600653ca290e8dd5
[ "Apache-2.0" ]
permissive
Aayushk26/transformers
95da496c6186d4042b7c3cc94cb4d150b708851c
cfa26d2b412ac3494eef06506004ca857c115ad9
refs/heads/master
2022-12-08T04:52:07.944070
2020-08-18T12:38:54
2020-08-18T12:38:54
288,476,543
1
0
Apache-2.0
2020-08-18T14:20:05
2020-08-18T14:20:05
null
UTF-8
Python
false
false
9,650
py
""" This script can be used to convert a head-less TF2.x Bert model to PyTorch, as published on the official GitHub: https://github.com/tensorflow/models/tree/master/official/nlp/bert TF2.x uses different variable names from the original BERT (TF 1.4) implementation. The script re-maps the TF2.x Bert weight names to t...
[ "noreply@github.com" ]
Aayushk26.noreply@github.com
5dc3567616c55e88f1045f9cd29aff35cb16c9cc
210b54b07543bb2a8ecf060595d7398c8a01d477
/183.Generator Comprehension - Python tutorial 181.py
7c03910b6b11616877cad3454ecacc6da2340451
[]
no_license
ArifSanaullah/Python_codes
059482f8096fd14f2331e7bcf512b33727a5ac45
d99f43bf6a6bc49fcd4ee57704427ef42618cb30
refs/heads/master
2020-05-28T09:31:07.939306
2019-05-28T06:11:46
2019-05-28T06:11:46
188,956,563
0
0
null
2019-05-28T05:54:04
2019-05-28T04:56:56
Python
UTF-8
Python
false
false
157
py
# 183.Generator Comprehension - Python tutorial 181 square = (i**2 for i in range(1,11)) for i in square: print(i) for i in square: print(i)
[ "noreply@github.com" ]
ArifSanaullah.noreply@github.com
a77b59525465fe6d04d96b76b95fc579ef7c18ee
5db0ec765300952cd35c3b285b811330ac0dc882
/blog/migrations/0001_initial.py
759607b6c97d195cd87efea10641d0ef03a8de61
[]
no_license
igorlimasan/my-first-blog
4d0705c68e29d4456ca60ec1a123114e844a8bb8
abe0aace813071686ea42e8d480a8f01ed719c74
refs/heads/master
2020-03-21T10:02:39.227040
2018-06-23T20:28:15
2018-06-23T20:28:15
138,430,965
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
# Generated by Django 2.0.6 on 2018-06-23 20:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "igorlimadossantos.igorlimasan@gmail.com" ]
igorlimadossantos.igorlimasan@gmail.com
9613945776b69a0fff44683c84fd948fb7958ec4
925a558e70aa4559ef72727f82137ee7259af1f8
/metadata/metadata_service/api/badge.py
8dfe4a464e74eeb23a2b8a9e5d861c9b711b9202
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
louisnow/amundsen
6f523d4bcbe8644669e0a7c5e1bc42560a066126
0b871cb58ca32e7ce150c5f60815e9f6801c10bc
refs/heads/main
2023-07-08T09:52:59.807957
2021-08-10T07:15:03
2021-08-10T08:49:28
394,553,691
1
0
Apache-2.0
2021-08-10T06:50:18
2021-08-10T06:50:17
null
UTF-8
Python
false
false
4,348
py
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 from http import HTTPStatus from typing import Any, Iterable, Mapping, Tuple, Union from amundsen_common.entity.resource_type import ResourceType from flasgger import swag_from from flask import current_app as app from flask_restf...
[ "noreply@github.com" ]
louisnow.noreply@github.com
99d5b758ec79459222cf162676506bc77b04cc10
b3569dbb9fdc5ef9ba49ca7a548621f621f60e34
/practice/efsws/http_fuzzer.py
5258707ae1bbd76d9f6ba686f2558f59483cc290
[]
no_license
solucionestux/OSCE
99a0e2aab30be018a3c3a933109abe2858e46f0e
4b394b1a293e0ab804e402506e73b1623118f53f
refs/heads/master
2023-03-15T22:54:25.808533
2020-08-24T02:31:10
2020-08-24T02:31:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,899
py
#!/usr/bin/python from boofuzz import * from sys import exit host = '192.168.1.250' port = 80 # Checks if the connection is still open or if a banner is sent back. If not, the fuzzer quits. Good for stopping the script after crashing the program. def get_banner(target, my_logger, session, *args, **kwargs): banne...
[ "noreply@github.com" ]
solucionestux.noreply@github.com
9f53a446aba2f9f7ee04a17301a5b4a1ff43edcb
5bf3252e94d9357adbec2153036cde0e4bb755f7
/nb.py
13fdd36b9fd9c19d37bbb8d9d832333fb8d5ccbe
[]
no_license
gowtham1197/Android-Malware-Detection
9a4d2277b70a56c174f86398bcde73d7665af884
df769f6c88caf177bba3c6981a62000852003d68
refs/heads/master
2021-04-03T07:48:47.415366
2018-03-13T18:29:36
2018-03-13T18:29:36
125,095,659
0
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
import csv import math def gaus(A,cl,col,l, fold_size): count=0.0 sum1=0.0 dsq=0.0 #print "Training" for i in range(no_row): if(i>=l and i<l+ fold_size): continue if(actual[dataset[i][no_col]]==cl): sum1+=float(dataset[i][col]) count+=1 u=sum1/count for i in range(no_row): if(i>=l and i<l+ fold_s...
[ "noreply@github.com" ]
gowtham1197.noreply@github.com
dd2000e4cda97744f227d10a8d58549238968293
570d589e9b56ab2e1f5f595f48ee05924f7f6cae
/Python/Django_projects/model_practice/apps/model/models.py
a389b166c3b48dff9117d493e35789250fbc4dcd
[]
no_license
WillieShubert/DojoAssignments
96853f019210fcbc384ac6b4c69450f31b4e47d4
1687399427dda566551dcd221de824a913dbe3ee
refs/heads/master
2021-01-11T17:53:43.824115
2017-05-05T18:09:30
2017-05-05T18:09:30
79,863,541
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
from __future__ import unicode_literals from django.db import models # Create your models here. class People(models.Model): first_name = models.CharField(max_length=38) last_name = models.CharField(max_length= 38) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(...
[ "noreply@github.com" ]
WillieShubert.noreply@github.com
8be1ab78dd73cd3dcca83e57b7dd6dead0a5058d
7f4fae8e0a9e29fc3abee784a2d7d0beb8252bd5
/typings/wulifang/vendor/pathlib2_unicode/__version__.pyi
3f08878a765c1a960e0eabcbf37496a185f773f2
[]
no_license
WuLiFang/Nuke
a303646e927c9745f2eaf8dad4e5e1ccc09a30e7
49df48ded0985771147b1a40707b5454291eab19
refs/heads/master
2023-07-21T13:36:27.423572
2023-07-17T10:34:04
2023-07-17T10:34:04
100,696,180
16
5
null
2020-03-08T11:50:16
2017-08-18T09:28:26
Python
UTF-8
Python
false
false
420
pyi
""" This type stub file was generated by pyright. """ import datetime as _dt import six VERSION: six.text_type RELEASE_DATE: _dt.datetime LAST_GIT_COMMIT_DESCRIBE: six.text_type LAST_GIT_COMMIT_HASH: six.text_type LAST_GIT_COMMIT_AUTHOR_NAME: six.text_type LAST_GIT_COMMIT_AUTHOR_EMAIL: six.text_type LAST_GIT_COMMIT_A...
[ "NateScarlet@Gmail.com" ]
NateScarlet@Gmail.com
d3be4a6716e2f39f4f4bbaa448772970dd601f3c
c66f4f5eee07a5c2617d61f3a2eee988ac18e150
/tutorial/read_real_record.py
64debd01db184a38e9f45fb5aa7fe7bb3409c4bd
[]
no_license
ykicisk/TFModel
65705f621cb39b4e00ccba281bce604103d2e8bb
f968e2ef2c47eff7cb74e5b2a6828736d1fbadb1
refs/heads/master
2021-01-12T02:31:43.467723
2017-01-04T22:17:19
2017-01-04T22:17:19
78,057,319
0
0
null
null
null
null
UTF-8
Python
false
false
3,004
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import glob import argparse as ap import tensorflow as tf def main(src_glob): print "get filepaths" filepaths = glob.glob(src_glob) print "reader test!!" num_epochs = None file_queue = tf.train.string_input_producer(filepaths, ...
[ "ykic.p3@gmail.com" ]
ykic.p3@gmail.com
2ff241ddae7ce20a14a31ed89f2e7691d480791e
67078e85453fdf9ee0b66ef5576904b3dfef5ab3
/atheppy/heppyresult/ReadCounter.py
bbe669dca181716c1542b40b17bc76db42a93a24
[ "BSD-3-Clause" ]
permissive
alphatwirl/atheppy
d72c45fc60ad1576107baca8e7ce14292edb9a85
e4cbc070c2313f283053383edb629bb3cb80807e
refs/heads/master
2021-04-27T04:17:31.146963
2018-05-22T18:20:09
2018-05-22T18:20:09
122,729,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,442
py
# Tai Sakuma <tai.sakuma@gmail.com> ##__________________________________________________________________|| import re import collections import ast import os ##__________________________________________________________________|| class ReadCounter(object): def __call__(self, path): if not os.path.isfile(pat...
[ "tai.sakuma@gmail.com" ]
tai.sakuma@gmail.com
716bc9d348cf58bb1e32918f5b7fa16dfe239e62
f63282dac793d4b028e752aa40d16085ef8bc1cd
/prof/migrations/0003_delete_log.py
a886bec6c499362853e56ebea58cb7726eb9bfb3
[]
no_license
13alireza77/twitter_api
2b56e32fc5d2638c008417e02defeb7018b2c234
05d867975fe190e35134861d1dee84135d2fd523
refs/heads/main
2023-02-26T05:41:51.314613
2021-01-28T09:45:53
2021-01-28T09:45:53
332,535,531
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# Generated by Django 3.1.5 on 2021-01-26 18:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('prof', '0002_auto_20210126_2123'), ] operations = [ migrations.DeleteModel( name='Log', ), ]
[ "13alirezaalidoosti77@gmail.com" ]
13alirezaalidoosti77@gmail.com
ffd37d761c61abf2e0efaa93716912c96b6c32b4
fa3414ad102838f5473b602193c8d0d15bde0b31
/Stock/reports.py
32fedde9c1d8f0e47feaeace868ffa0018bd4d52
[]
no_license
MCRogersI/Panorama
e8df9c0ed56155fbc5e9a91d3a370acfe101e902
225c237bde18afee977386e72bd72ebdd8912643
refs/heads/master
2020-05-23T10:20:55.735430
2017-09-11T02:33:06
2017-09-11T02:33:06
80,423,505
1
1
null
2017-01-30T15:09:03
2017-01-30T13:25:47
null
UTF-8
Python
false
false
8,230
py
from pony.orm import * from datetime import date, timedelta import pandas as pd import numpy as np from openpyxl import Workbook, load_workbook, drawing from openpyxl.styles import Font import openpyxl from openpyxl import Workbook from openpyxl.chart import BarChart, Series, Reference from openpyxl.styles.borders impo...
[ "gaperez2@uc.cl" ]
gaperez2@uc.cl
316dab7a9254a7b5775eafa39e9a5a3d89a2fa74
d69b7f878bdbb9e278a63c7bb6f99e974cd57a80
/2.Advanced/23.Advanced_Python_Python_Generators_in_Simple_Way_by_Durga_On_20-09-2018_5.py
4d083411260bcf4dd0451b4339e943501d0ca7d3
[]
no_license
rexelit58/python
cf8e1faf9441d720036814cef0134a3388d3d4f5
dfadecf2183f4b6fe6f3c6ae38cd2f03301a2735
refs/heads/master
2023-06-26T14:54:40.078073
2021-07-18T13:54:46
2021-07-18T13:54:46
387,185,700
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
def fib(): a,b=0,1 while True: yield a a,b=b,a+b for n in fib(): if n>100: break print(n)
[ "kaviyarasan.a@infinitisoftware.net" ]
kaviyarasan.a@infinitisoftware.net
4f27d80585a6cc4ed6fa8b0abb2437eaf6559a6f
994b6c4dfd6a0f78a81f87235e3c6972db3f2142
/main.py
dfbc12a5f9abf73452a06ad3fa3c240e0556f91b
[]
no_license
dengjiaxing/Scrapy-WindowsAPI-
d0cede10a7ca9e6b760895e85de22ace72ed257e
4a92cc378d3cccb46404cff250f06f7afcb720c2
refs/heads/master
2021-01-22T22:35:16.665330
2017-03-20T09:23:58
2017-03-20T09:23:58
85,557,317
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
#-*- coding: utf-8 -*- import scrapy.cmdline as cmd cmd.execute('scrapy crawl api'.split())
[ "jiaxing@nfs.iscas.ac.cn" ]
jiaxing@nfs.iscas.ac.cn
0de6164a579340619a967feedf9cae55abad520b
84bd24e7aba23c7775f52d51c754f14601e28b61
/property/migrations/0044_propertybooking.py
20c06999c6842c6b8258f87396995344f74c9908
[]
no_license
hamzaumar8/sandvet
c0ad473e8f2f97d1c5bf5104e034e731ac0a0add
7f02d24f1b50cd4f64beff618b6d9c508b7a42d4
refs/heads/master
2023-02-18T01:28:25.252360
2021-01-18T19:26:39
2021-01-18T19:26:39
310,844,181
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
# Generated by Django 3.0.6 on 2021-01-04 11:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0007_booking'), ('property', '0043_hotelimage_hotelroomimage'), ] operations = [ migrations...
[ "humar6078@gmail.com" ]
humar6078@gmail.com
7e4f7dc89e2d0ddffe361240627a76cb48bdea6f
fa6e1299ef52ca2d4a13b3788d2a4d0540728f81
/monailabel/endpoints/batch_infer.py
09460c5d37ca8b8d759cba1949837a1bc4eceadb
[ "Apache-2.0" ]
permissive
Project-MONAI/MONAILabel
c3abd164255a50279fc5aa6a87f4336fff4d6833
c90f42c0730554e3a05af93645ae84ccdcb5e14b
refs/heads/main
2023-09-01T21:44:42.465238
2023-08-31T17:17:08
2023-08-31T17:17:08
351,826,770
448
167
Apache-2.0
2023-09-14T12:06:28
2021-03-26T15:25:10
Python
UTF-8
Python
false
false
3,049
py
# Copyright (c) MONAI Consortium # 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, so...
[ "noreply@github.com" ]
Project-MONAI.noreply@github.com
13622a6dd22539e66141720c7144c2e1a23fc69f
a5ba6fc441a8d53dfb5218ef0ef3c6c30b0591e2
/Dreamhack/web-deserialize-python/solve.py
cd8b34f022d73db6080e298127b4670b15c61b6f
[]
no_license
heogi/CTF-Writeups
a6332dea0af5b3d5e0697d47569d1331332d1ec5
f6f55f359a443ce1af4553820e340ae774bfb4fd
refs/heads/master
2021-09-29T18:02:50.485804
2021-09-25T03:23:07
2021-09-25T03:23:07
162,892,657
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
import requests import base64 import pickle import os url = "http://host1.dreamhack.games:8248/check_session" info = {"name":123} FLAG="123" class exploit(object): def __reduce__(self): return (eval,("{'name':open('flag.txt').read()}",)) #return (eval,('open("./flag.txt","r").read()',)) def ex...
[ "noreply@github.com" ]
heogi.noreply@github.com
864640da95a3bf3b599769c90db530fa7453696e
b0675ed261ff01fe050e8bacd05e692851e087b8
/no1/02_tieba_spider.py
b54e288b011d1558c2e7772a605dd051afb8487f
[]
no_license
likunhong01/SpiderStudy
dafd6df0525f7ffa5c855c5213710c3bc37dc709
78288d3429e7ed2ae175c0009f6c5c85b408c436
refs/heads/master
2020-05-09T12:38:15.065593
2019-04-28T09:12:18
2019-04-28T09:12:18
181,118,325
1
0
null
null
null
null
UTF-8
Python
false
false
1,694
py
#coding=utf-8 #Version:python3.6.0 #Tools:Pycharm 2017.3.2 # Author:LIKUNHONG __date__ = '2019/4/12 19:36' __author__ = 'likunkun' import requests class TiebaSpider: def __init__(self,tieba_name): self.tieba_name = tieba_name self.url_temp = 'https://tieba.baidu.com/f?kw=' + tieba_name+ '&ie=utf-8&...
[ "42308753+likunhong01@users.noreply.github.com" ]
42308753+likunhong01@users.noreply.github.com
886ceeab2d5a622b7a03f7dddf725706fde63620
168cbb8a8c3e7287779075a319c27a357cb12ad4
/Sql/baza_sql.py
0be5e7a18f551be7255b887db2139ee4ce0f0a96
[]
no_license
kaacpper/gittest
d17092e8d6de61729399026dce4a4615d44cd3dc
4840fdaf7e7773d4e0dc0da415e53e96f1aeca23
refs/heads/master
2021-01-20T15:07:08.644546
2018-03-09T17:44:41
2018-03-09T17:44:41
82,795,620
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # baza_sql.py import sqlite3 from dane import * # import funkcji z pliku dane.py def main(args): con = sqlite3.connect('pracownicy.sqlite3') cur = con.cursor() #utworzenie kursora, chodzi sobie po bazie danych #utworzenie tabel w bazie danych with ...
[ "kl3ag1@komp12.lo1cg.org" ]
kl3ag1@komp12.lo1cg.org
9881d546e5b1b67fd92bcc5ce63e178f0961fbc8
b352b043ed9db9e53767fe51d1238e376fc53b09
/data-py/getArtisanData.py
c04256111e0650e6b1ca2300fae10123b63e93db
[]
no_license
AmritM18/stardew-valley-api
8799582c352212e297f7cfebdf144f702a75103a
0b25869848a605d1925435f75625599662d6ce2b
refs/heads/master
2023-02-12T15:41:46.847506
2021-01-13T19:41:05
2021-01-13T19:41:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,037
py
import requests from bs4 import BeautifulSoup import pandas as pd def getBeeHouseData(req, indices): clip = req.split("id=\"Bee_House\"") clip = clip[1] soup = BeautifulSoup(clip,'lxml') table = soup.findAll('table',{'class':'wikitable'}) # looking at all of the tables except for the last 3 (g...
[ "32170897+emilyanas2323@users.noreply.github.com" ]
32170897+emilyanas2323@users.noreply.github.com
6a55a58c4b69fce67e16280d94199e88f4af5fca
ea37f2269a796143cf0b1ce2131c425c95e3a954
/CentralMeasurePosition.py
f7e0b24acf72363272db6c1016f29fec783a6a68
[]
no_license
paepe/GitBegginers
886896225f84d03495b53cb96facfc65ac7c562b
382ac2b913cab7dc24c28379c950f9416cb51dfa
refs/heads/master
2023-03-29T11:18:20.252793
2020-05-23T12:09:09
2020-05-23T12:09:09
261,003,928
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
import np import statistics from fractions import Fraction as F from decimal import Decimal as D # Onde está o erro de np # np.random.choice(a = [0, 1], size = 50, replace = True, p = [0.5, 0.5, 0.2]) # Calcular a Mediana x = statistics.median([22, 10, 12, 14, 13, 15]) print(x)
[ "paulo.peres2014@gmail.com" ]
paulo.peres2014@gmail.com
419cacd72654319780930be944c1ee242808127b
28737541ba548ec968750190a1773a427a443664
/Screen_Shots/Element_Ssreen_Shot.py
073c8a38df42a5459f87ab9887abe84feaec212a
[]
no_license
Rajeevsinghania15/GitTest1
9c18650a544eb02b98ad2a726f854f99be00e3a5
9736093d2f8774c368e615b48b60378262b7968e
refs/heads/master
2020-04-09T09:37:49.218027
2018-12-03T19:41:01
2018-12-03T19:41:01
160,240,413
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
from selenium import webdriver import time from PIL import Image driver = webdriver.Chrome() driver.maximize_window() driver.get("https://demo.actitime.com/login.do") driver.implicitly_wait(30) ele = driver.find_element_by_id("loginButton") driver.save_screenshot("Sample.png") img = Image.open("Sample.png") ...
[ "Manoj Rajeev@DESKTOP-IG87LFQ" ]
Manoj Rajeev@DESKTOP-IG87LFQ
498f444e9944af0709395bdbffcaeedc770d6ed7
07330c446d2efc7966d4e98e3ae19a33314fed22
/python_choice_models/estimation/market_explore/__init__.py
a21b25cfd3303afc35e686e5f57c9e8c309d580b
[]
no_license
DRL-OM/choice-models
f4d26a771ee0ab2988a112a6a84b388764275a66
90b1f1c7160672fdf8b5689fbf5480e29576bf01
refs/heads/master
2023-03-26T01:33:40.160397
2021-03-25T14:18:47
2021-03-25T14:18:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
# This code is from the paper: # Berbeglia, G., Garassino, A., & Vulcano, G. (2018). A comparative empirical study of discrete choice models in retail operations. Available at SSRN 3136816. class MarketExplorer(object): def explore_for(self, estimator, model, transactions): raise NotImplementedError('Sub...
[ "ajgarassino@gmail.com" ]
ajgarassino@gmail.com
41d4e71f3e2a6c62792fb61263f2cdbb41a99d1d
8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b
/enthought/block_canvas/context/api.py
0276b7ff919b2cbbf3ae5be3f8dfde407fb57b44
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
enthought/etsproxy
5660cf562c810db2ceb6b592b6c12274bce96d73
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
refs/heads/master
2023-03-27T04:51:29.297305
2020-12-02T09:05:18
2020-12-02T09:05:18
1,632,969
3
1
NOASSERTION
2020-12-02T09:05:20
2011-04-18T22:29:56
Python
UTF-8
Python
false
false
92
py
# proxy module from __future__ import absolute_import from blockcanvas.context.api import *
[ "ischnell@enthought.com" ]
ischnell@enthought.com
e5aea76cc15e3bf47cf1e7969a74795b665ae48f
943d0787140ee5bb09ffee6740d805426c9cbd01
/Problem14-EstimatePi.py
deae90714cb278a3ba67ff3a5586a7042e0e47af
[]
no_license
pengnam/DailyCodingProblemSolutions
20d30bd1387a605e097fc93474725f1014fbc6c3
625a206d67336e705901c685ac1d9cae647d0ac6
refs/heads/master
2020-04-25T13:47:13.309877
2019-05-07T16:21:46
2019-05-07T16:21:46
172,819,921
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
""" The area of a circle is defined as (pi)*r^2. Estimate pi to 3 decimal places using a Monte Carlo method. """ import random #I will approximate give r = 1. I will try within x = [0,1], y=[0,1], and check if point in circle (1/4 of a circle) def solution(): rounds = 10000000 count = 0 for _ in range(roun...
[ "seanngpengnam@gmail.com" ]
seanngpengnam@gmail.com
bbdd48a6ccdb523dcc383c57275638331914fd6c
57320faf6dc6fb5cf4ad896c11a6aedf22be6ddb
/pyplex/camera.py
40c01e6911d808a46f37945ddd4874a846d605c6
[ "MIT" ]
permissive
pyplex/pyplex
ed183d11c27339a1a857a11b34a10f541a53ea44
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
refs/heads/master
2021-01-25T11:39:33.853304
2018-06-06T11:47:37
2018-06-06T11:47:37
117,576,175
5
0
null
null
null
null
UTF-8
Python
false
false
4,910
py
from pyplex import gl from pyplex.abstract import UniformObject from pyplex.glow.buffer import UniformBuffer from pyplex.transform import * import numpy as np from math import sin, cos class Camera(UniformObject): def __init__(self, ctx: gl.GL_ANY, projection: np.matrix, view: np.matrix): self._project...
[ "pyplex@github.com" ]
pyplex@github.com
2dc5069739fbc75160cb5599b04da652d5d2581b
d8af7c6372aff57012c80d3b8a9dfaab81499f71
/AIDStudy/01-PythonBase/day03/exercise03.py
92c88709cd7037da27f1e3b4872d4cc81434046a
[]
no_license
fanxiao168/pythonStudy
4843c56019b8f997fd7fc566904a9e0162e9a541
f94e2238d40c41ee54ff4184c500d659c6820c03
refs/heads/master
2021-02-04T20:54:10.850770
2020-05-28T08:55:35
2020-05-28T08:55:35
243,708,800
1
0
null
null
null
null
UTF-8
Python
false
false
548
py
# 输入一个数字 # 再输入一个运算符 + - * / # 最后输入另外一个数字 # 根据运算符计算两个数字 # 要求 如果运算符 不是加减乘除 提示运算符有误 num1 = float(input('请输入第一个数:')) op = input('请输入运算符:') num2 = float(input('请输入第二个数:')) # 判断 如果用户输入的内容是+ if op == '+': print(num1 + num1) elif op == '-': print(num1 - num2) elif op == '*': print(num1 * num2) elif op == '/': ...
[ "fanxiao168@126.com" ]
fanxiao168@126.com
ab0399b72847499a6f1bc5c6da365a5ce12362f2
bc97fab684295fa362ab38cb79c2a0a36c565529
/routes/__init__.py
a1c60b73d6b70d8a876c4b518dfce803a4767fd1
[]
no_license
GDGVIT/chatapp
80422a6ce09eba24c2a211fd1414fbeeb24f8692
8589d1cbc2176c6c95e365953497e56309bc5c07
refs/heads/master
2021-01-13T09:11:08.387588
2016-10-28T06:26:15
2016-10-28T06:26:15
68,836,814
3
3
null
2016-10-14T18:26:36
2016-09-21T16:33:53
Python
UTF-8
Python
false
false
79
py
from controllers import * route=[ ( r"/faq", chat.QuestionHandler ) ]
[ "shubham.bhardwaj2015@vit.ac.in" ]
shubham.bhardwaj2015@vit.ac.in
37fc610c21e71bf7723717c2eab70e6d67051308
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/1/bDf.py
66f9bf27ac4a73ccf9b45ac269ebdf3aded004b7
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
8fbfc6b612875791ee39f0aab8bb242440512264
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/merra_scripts/03_model_fitting/merraRF882/272-tideGauge.py
d58ed71fbe716fd71749b6198acfe2f3b5ed6343
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
7,456
py
# -*- coding: utf-8 -*- """ Created on Mon May 4 15:51:30 2020 This program is designed to validate a Random Forest model by using the KFOLD method @author: Michael Tadesse """ #import packages import os import glob import numpy as np import pandas as pd from sklearn import metrics from scipy import stats import se...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
120402a3318b661368d53aa0f4f1e993bef44455
19d43b8c175bb5304393cf9c259eacb7110dd4fc
/objectModel/Python/cdm/utilities/event_callback.py
e7c5744ba710772abc5530e73121d00b2f7291de
[ "CC-BY-4.0", "MIT" ]
permissive
bissont/CDM
3fd814566ea1bf9d19e300cd5b438b384ce4bcba
0cffb140e0b41e526be072b547cae91a03c4cd6f
refs/heads/master
2020-12-29T12:55:23.822187
2020-02-05T02:19:27
2020-02-05T02:19:27
238,614,156
1
0
null
2020-02-06T05:21:51
2020-02-06T05:21:50
null
UTF-8
Python
false
false
161
py
from typing import Callable, TYPE_CHECKING if TYPE_CHECKING: from cdm.enums import CdmStatusLevel EventCallback = Callable[['CdmStatusLevel', str], None]
[ "nebanfic@microsoft.com" ]
nebanfic@microsoft.com
4d86c8a9d2eea6877b3ae62aab7674df7906b1f3
204f3779f22cc66ff5adb8753ccde53eb2550f95
/dem-preprocessing/tiler-tools/tiles_convert.py
a27b9f1d120449d269e91c19f0e5b77508a345bc
[ "MIT" ]
permissive
ghelobytes/ol3-dem
6f8e2a9ba0721fdcda1ed251bad2daeb1f150f79
445fc04d0b5b8990bf404eceed6bfc79d084e93c
refs/heads/master
2020-12-28T21:28:09.410426
2014-01-01T03:25:38
2014-01-01T03:25:38
15,589,948
1
0
null
null
null
null
UTF-8
Python
false
false
5,596
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright (c) 2010, 2013 Vadim Shlyakhov # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Softwar...
[ "s.brandt@riseup.net" ]
s.brandt@riseup.net
f32647ff11ea96ce75acd8b91328bd999dbfe6f8
0689ad04900b45e6ffb85756e65e96f30781558b
/pbase/AID1805/第一阶段 python基础/day09/exercise/myrange.py
4ae87496e8ca3ec1985a84cbd655a11e0690f4a1
[]
no_license
lizhihui16/aaa
a5452b5d0de4c2ad6342fce1b8aef278d2d2943e
e8c38e012f6aa0bc05ac6481d6c3e2b4e9013b56
refs/heads/master
2020-04-24T01:05:19.266060
2019-02-20T01:43:51
2019-02-20T01:43:51
171,586,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
# 2. 写一个 myrange函数,参数可以传1~3个,实际意义同range函数规则相同,此函数返回符合range(...) 函数规则的列表 # 如: # L = myrange(4) # print(L) # [0, 1, 2, 3] # L = myrange(4, 6) # print(L) # [4, 5] # L = myrange(1, 10, 3) # print(L) # [1, 4, 7] # 方法1 # def myrange(start, stop=None, step=1): # r_lst = [] # 即将返回的列表 # # ...
[ "tarena@tedu.cn" ]
tarena@tedu.cn
f2ee8ed0f141c3f878bd554027310f7d960f5054
222ead89dd6615e4721f389cc53a76750b15b8c5
/examples/imagenet/train.py
9f0a4c4a0d2ee4592076d819f375d1fadf2dcd5d
[ "Apache-2.0" ]
permissive
changyu98/GoogLeNet-PyTorch
d577fb0384b908445f27dd8589037c594c9a19d4
a2fae2b8b14e830a3f64c81bc4e62dadb6cfe5b7
refs/heads/master
2021-01-05T13:39:49.885271
2020-01-15T13:56:40
2020-01-15T13:56:40
241,038,261
1
0
Apache-2.0
2020-02-17T06:47:16
2020-02-17T06:47:15
null
UTF-8
Python
false
false
16,817
py
# Copyright 2020 Lorna Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "liuchangyu1111@gmail.com" ]
liuchangyu1111@gmail.com
8d885ef2e93980e5def6f244100248ff3d8b56d7
199eb36ba39440723db98e391ef7cea4abece1df
/chapter-2/linked_list.py
e4f855987e1c94b34bbca8c61bdf566e2435feea
[]
no_license
wahabtobibello/coding-challenges
eb187c657434d5c432bb77d72cab193fd61b4839
d968711e76c717b5d18f288a4585aaef93118b8f
refs/heads/master
2023-04-27T18:13:45.650392
2018-12-02T14:31:44
2018-12-02T14:31:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
class Node(): def __init__(self, data, next=None): self.data = data self.next = next class LinkedList(): def __init__(self, arr): self.head = Node(arr[0]) node = self.head for i in range(1, len(arr)): end = Node(arr[i]) node.next = end ...
[ "tobibello001@gmail.com" ]
tobibello001@gmail.com
3822499a63ebcc84c6edbbd60ae303ba8dc6afd7
7a27414a9ddc208f07ba7a949b13a4af172741d0
/代码管理/英雄联盟全皮肤爬取/LOLSkin_Spider.py
3132a031654700d52b453ec5fff04c231096f95e
[]
no_license
01xu10/myproject
28cc51e0801df1f8f90704a5871f5bca05ce7609
0346bb952823f3cd4c8c383115f2a617f39f7cce
refs/heads/main
2023-06-27T05:14:00.781065
2021-08-05T07:13:53
2021-08-05T07:13:53
384,674,992
0
1
null
null
null
null
UTF-8
Python
false
false
2,265
py
# !/usr/bin/env python # -*- coding: utf-8 -*- import requests, jsonpath, os from pprint import pprint def main(): start_url = r'https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko...
[ "1150772265@qq.com" ]
1150772265@qq.com
52d23763ebfe518aeb958a0508b12fbec7a415c5
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-bigquery-migration/google/cloud/bigquery_migration_v2/services/migration_service/async_client.py
d9ad8c3c5049dc7577a051be8d97608cd3ec7f4d
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
41,641
py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
c7573c8fd33eebb4c2a6f73f64ce8b8f96b3a533
80d02d14744e759d34646e18565f40753685eab7
/10.doubleTree.py
05f2c85736220c2dcfc2cc6201b49a8e0f63192d
[]
no_license
ArunRamachandran/BinaryTree-Python
b247e0abc8a8d97d20b3cfa08652dd760607db97
ef76f3cd43e48250db21cbd6a4d805a848221ccb
refs/heads/master
2021-01-25T08:42:53.933600
2015-01-11T12:06:17
2015-01-11T12:06:17
29,001,483
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
""" Python code to implement a doubleTree fn """ class Node : """Node of a Tree""" def __init__(self) : self.data = None self.left = None self.right= None def Build(head) : head.data = 2 x = [1,3] new_left = Node() new_left.data = 1 head.left = new_left new_right = Node() new_right.data = 3 head.right...
[ "arunkramachandran92@gmail.com" ]
arunkramachandran92@gmail.com
257ab21f25ff3348d9736148b96f22450be75acd
7c2c1f8eb08e998cb810481f1dbbbc994f175611
/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/statistical.py
694a93c08c7baa16538ca6945c21598d92728570
[]
no_license
1584881047/meiduo
14e65652032aa83fec5347ade7e242b98ab1531b
4176c3cc615184e50e11e9381fff99972060f1d0
refs/heads/master
2022-12-16T10:52:28.760013
2019-09-16T00:14:55
2019-09-16T00:14:55
207,760,356
0
0
null
null
null
null
UTF-8
Python
false
false
3,340
py
from django.utils import timezone from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.views import APIView from goods.models import GoodsVisitCount from meiduo_admin.serializers.statistical import GoodsVisitSerializer from users.models import User class...
[ "lixiaoweiai@126.com" ]
lixiaoweiai@126.com
4fcb27cb9a283d949398d1f36fbe1e675f64b82c
eb0914b92cd4ecc32d311e94dd48126fa0be13e7
/.mywaflib/waflib/extras/run_r_script.py
bb3c3f68ad352d1a64a75827493bb7b4823d2ceb
[ "BSD-3-Clause" ]
permissive
livioferrante/my-final-project
1d937c2b020120da42dee4f7150ef37979e752bd
f3d082173c7c38e69905e49c9a544d3cc75ad172
refs/heads/master
2020-05-17T11:55:14.948417
2014-12-15T20:15:18
2014-12-15T20:15:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,830
py
#!/usr/bin/env python # encoding: utf-8 # Hans-Martin von Gaudecker, 2012-13 """ Run a R script in the directory specified by **ctx.bldnode**. Strings supplied to the **prepend** and **append** keywords will be added to the command line. Usage:: ctx( features='run_r_script', source='some_script.r', target=['...
[ "livio.ferrante@tiscali.it" ]
livio.ferrante@tiscali.it
4b889b9c80962f87dfe883a127fa04e50504a1fa
46b432cd3557038c454601367b878f889c9b6a8f
/hShibata/tutorial03/test.py
e365b536df8fa200f4ac722f0e7e91dd5ca53031
[]
no_license
tmu-nlp/NLPtutorial2019
84ceec06568fd9d899a686658fb8851466133375
d77d199c50cd37d70e462209a7bfcd4dee9140a1
refs/heads/master
2020-05-14T13:34:05.336594
2019-09-25T02:25:41
2019-09-25T02:25:41
181,814,723
1
0
null
2019-08-01T18:53:54
2019-04-17T04:04:06
Python
UTF-8
Python
false
false
1,287
py
print("hello") # the test to change value of dictionary in for loop by smart way. We need this test to implement a method which builds n-gram using a recursive function. myDict = {} myDict[0] = 3 myDict[1] = 3 for key, val in myDict.items(): val = 0 print(myDict) # output is {0: 3, 1: 3}. So we cannot. for ke...
[ "smithakihide1992@gmail.com" ]
smithakihide1992@gmail.com
31a3ad2735b2a2f377105bc4cc2c2522e2f60037
cc0c0f99a5cf563ff52a76f2ac17cdad09d22f01
/venv/Lib/site-packages/itk/itkConvolutionImageFilterBasePython.py
d6fead69072bd45c72db67ef950ec1ad03029b09
[]
no_license
Marxss/carck_detect_system
9c0d338bde322b4c7304fd0addb524d8697c8a7b
d2480f2108052af8af0aa5265a5239c309885043
refs/heads/master
2022-04-15T23:34:20.988335
2020-03-29T16:24:00
2020-03-29T16:24:00
214,625,168
0
0
null
null
null
null
UTF-8
Python
false
false
73,002
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3, 0, 0): new_instancemethod = lambda func, inst, cls: _itkC...
[ "274065539@qq.com" ]
274065539@qq.com
f6b212a659c9e278260eae7b8179462cedbaae43
b146e577c9661a672ae8bc147ad38760f31619c7
/fire-xgb.py
88366b836bf084ed3c5ad9bf74117d2a35675676
[]
no_license
xuerchen/kaggle-peril-fire-loss-18th-solution
eaa99701a07f1897c455e7d81079a23481025983
358a1aa27a390200eea66e7d45f13e35de354918
refs/heads/master
2020-12-24T16:59:23.159925
2014-09-16T03:36:57
2014-09-16T03:36:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,700
py
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> #%matplotlib inline import numpy as np import pandas as pd from sklearn.linear_model import Lars,Ridge, Lasso, SGDClassifier,SGDRegressor,LogisticRegression,BayesianRidge from sklearn.ensemble import RandomForestRegressor,GradientBoostingRegressor from ...
[ "xuer.chen.human@gmail.com" ]
xuer.chen.human@gmail.com
f53ad4cb5c53619890ba0d307211da71601ebe34
9caaaa8117db574a0395de8dc1720772b03b8ac5
/ghost/formats/__init__.py
05321f958174bc285cc52ecd909db084098168de
[ "MIT" ]
permissive
nelpy/ghost
4a71cb105926ffe1564e36df01b4dc51c1dd9322
d2dc56425a25ff6a987c9f25b3630e58fdf1a285
refs/heads/master
2021-06-15T14:38:26.900854
2021-04-05T14:23:31
2021-04-05T14:23:31
179,384,831
9
1
MIT
2021-02-02T16:41:28
2019-04-03T23:19:58
Python
UTF-8
Python
false
false
105
py
"""Tools to go from one format to another""" from .preprocessing import * from .postprocessing import *
[ "jchutrue@gmail.com" ]
jchutrue@gmail.com
ad98b95a0f4d708bfa986b7026a5286b48cfdedd
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1483488_0/Python/oneup/probC.py
82474b8652c0745bee94db5539394b83c464a142
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
778
py
import sys import math def num_digits(x): return math.ceil(math.log(x+1) / math.log(10)) def rotate(x,d): #print >>sys.stderr,x,d mod = 10**(d-1) return (x%mod)*10 + (x/mod) def test(A,B): total = 0 d = 0 x = A while x: d += 1 x /= 10 ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
3f40de3bf8ea34878ac89bbf2ce79c907140ae72
f11168c145b16632dff06fc1801116d97fa86964
/python/__main__.py
195b6842bf5b2a19bb41b338ae8a7abeaf7d7486
[]
no_license
AJIADb9/minecraft-utils
2c9c7d00d9c35307498209d3943db230b2562fba
6c93bace91feac443c7f6a828e4eb81b41810a19
refs/heads/main
2023-06-14T03:09:40.990191
2021-06-20T21:39:41
2021-06-20T21:39:41
378,503,590
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
import environment def main(): if not environment.check_env(): print("WARN: something went wrong") if __name__ == '__main__': main()
[ "ajiadb9@bgd.team" ]
ajiadb9@bgd.team
1bda0b007453d3e75a766eb1ed7fb22ff4a6d133
d3bfb78ec7bf3e28503416be1ac58b1170bc8742
/test/jit/test_list_dict.py
7a1a074cafe9547ee7f143e097e78d273035860b
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
SimonZsx/pytorch
28718a6d49fea2ef10dcc49e6231290dd0a23fd9
6401b2ccbc1dfa81b96983d8b35e885839847395
refs/heads/master
2022-11-27T22:20:16.841950
2020-07-26T12:33:10
2020-07-26T12:33:10
273,522,068
1
0
NOASSERTION
2020-06-19T15:05:57
2020-06-19T15:05:56
null
UTF-8
Python
false
false
46,145
py
import os import sys import inspect from typing import Dict, List, Optional, Tuple from textwrap import dedent from collections import OrderedDict import torch from torch.testing import FileCheck from torch import Tensor # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
1b17aeab88cd05b937fdf0af926cdd3a0dc7c52c
d076c40c36685a985958c5ba7e14761a966cf333
/interview/set_border.py
eddcf7e62cacdab707be8571c7f378e1ce940ab8
[]
no_license
yehongyu/acode
e65eb230210c657b8c5e4d5928cbe9437f77d717
176cc1db3291843fb068f06d0180766dd8c3122c
refs/heads/master
2023-04-20T14:27:45.123969
2021-05-08T04:36:39
2021-05-08T04:36:39
365,412,513
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
def dfs2(grid, i, j): m = len(grid) n = len(grid[0]) directions = [[0,1], [0,-1], [1,0], [-1,0]] is_border = False for direct in directions: ni = i + direct[0] nj = j + direct[1] if ni<0 or nj<0 or ni>=m or nj>=n: is_border = True continue if ...
[ "aodandan@bytedance.com" ]
aodandan@bytedance.com
fc6c2ceeb4e6a0231c0cd453449b3182c0f64351
60814a33c10069ac92f2621463bfa0acfed16f7e
/购物类/Half_ebay/file_os.py
4c24ad575b0c3493c65936b6fceff97e86198b79
[]
no_license
ijt0walle/LiuFan_Spider
967138c79bb4f6097fb8d898892a02c5fd6a454c
25c07e7d594a835d123530bb49bce77a5bd7f662
refs/heads/master
2021-01-25T13:18:28.306502
2017-08-15T02:32:08
2017-08-15T02:32:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,755
py
import os def qvzong(): for i in os.listdir('/home/ytroot/桌面/Update_file/'): with open('/home/ytroot/桌面/Update_file/'+i,'r') as asin_file: with open('/home/ytroot/桌面/Update_file/zong_file.txt','a') as zong: zong.write(asin_file.read()) with open('/home/ytroot/桌面/WorkSpaceLH...
[ "liufan.dery@gmail.com" ]
liufan.dery@gmail.com
de2fcd4054cdbe0af94fee227d9ee853571bed03
39a91240698719d2ad420e010558398097f4cd98
/tracker.py
26c97ce30d36f23767b5283c059fcb59222dbaf3
[]
no_license
maxcohen31/iss-tracker
e7b3b7d9584d6a403bab981d45126318165eb9f5
e6b56443401938ead1ddb36db6d8ed71a11f8b73
refs/heads/main
2023-06-03T20:19:56.800614
2021-06-17T07:51:29
2021-06-17T07:51:29
377,188,962
1
0
null
null
null
null
UTF-8
Python
false
false
1,882
py
# Internation Space Station tracker # Author: Emanuele import requests import pandas as pd import matplotlib.pyplot as plt import plotly.express as px # Startint the Tracker Class class Tracker: def __init__(self): self.url = requests.get('http://api.open-notify.org/iss-now.json').json() # get the url ...
[ "eman_93@hotmail.it" ]
eman_93@hotmail.it
afd23258eacb7c4b2e2e5e09bdb7125d42b7a16e
9173befb29e5819f19cedc4f2eee75c8811acf32
/PA/test/test_urllib2.py
a6b14238e9a8c312ddfc099b8571e09579495d79
[]
no_license
Coder-Chandler/Go_1
81c43450eb0e00321f5c8c1eadde611620a68d04
b5dcd01d3fd429a5681bb151fceaf56d6e65c345
refs/heads/master
2021-01-20T02:04:11.120918
2017-06-26T11:02:16
2017-06-26T11:02:16
89,365,719
2
0
null
null
null
null
UTF-8
Python
false
false
632
py
import urllib2 import cookielib url = 'http://baike.baidu.com/item/Python' print 'The first method !' response1 = urllib2.urlopen(url) print response1.getcode() print len(response1.read()) print 'The second method !' request = urllib2.Request(url) request.add_header('user-agent', 'Mozilla/5.0') response2 = urllib2.u...
[ "ysiwgtus@gmail.com" ]
ysiwgtus@gmail.com
dfdf57410ffde803f2a84176e3408295a99ddda8
d2189145e7be2c836017bea0d09a473bf1bc5a63
/Practica0PerezAyalaYocoyaniEhecatzin/E4/Conjuntos.py
dd16656709d225a17f9b0c13958027e7fc7be87c
[]
no_license
emilianoNM/Tecnicas3
12d10ce8d78803c8d2cd6a721786a68f7ee2809d
6ad7f0427ab9e23643a28ac16889bca8791421d0
refs/heads/master
2020-03-25T18:06:34.126165
2018-11-24T04:42:14
2018-11-24T04:42:14
144,013,045
3
5
null
2018-09-14T10:47:26
2018-08-08T12:49:57
Python
UTF-8
Python
false
false
740
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 16 18:55:57 2018 @author: yocoy """ class Conjuntos: def __init__(self,conjunto, valMin, valMax): self.conjunto = conjunto self.valMin = valMin self.valMax = valMax self.c1 = [] self.c2 = [] self.c3 ...
[ "noreply@github.com" ]
emilianoNM.noreply@github.com
713a555746153178b3e06918761bfa99cd7539a2
53c8c1e3e87d2afe0ac032b3622108fcd267b948
/MineSweeperOLD.py
1a71607ff0d5937db8a8c62e86274352d164cd75
[]
no_license
nsantacruz/mineVacuum
bd2a810cbb89c111dee95526218ba5a11c6fed3a
2c9d1bd0bb139046b26928741e907c5377d784c8
refs/heads/master
2020-03-29T14:03:49.190822
2014-02-16T17:10:04
2014-02-16T17:10:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,024
py
#UPDATES# #adjacent arrays now update for both bs and us each time a space is clicked (still needs a bit of work) #updated to agree with rest of world: the (row, column) standard has been adopted from Square import * from GridVisualizer import * import random class MineSweeper(): def __init__(this,wid=9,hei=9,mines=1...
[ "noahssantacruz@gmail.com" ]
noahssantacruz@gmail.com
b177eac8b5c5e6190923e5b18cf0a21b24710473
7326629ac2c3ea608ca55b95ff60d26e0b9a1ab8
/app/models.py
81e7434847987e1d8eab9d28197cce92fb69b7cc
[]
no_license
HenryGBC/quiniela
22b72946ae19ffa8f39b72d737830c63109a53a1
bfa62cd086dd197b563494c685211d889c962ec4
refs/heads/master
2021-01-19T17:41:53.223050
2014-02-11T15:30:57
2014-02-11T15:30:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,408
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Fecha(models.Model): fecha = models.CharField(max_length = 2) fechaInicio = models.DateField() fechaFin = models.DateField() def __unicode__(self): return self.fecha class Resultado(models.Model): u...
[ "henry.bravo89@gmail.com" ]
henry.bravo89@gmail.com
7132bef4d76833c2866aaccc5b4dce37682cb7e5
4b27a7e99c55a343cb845d085dd88aa7e77a8079
/reading.py
e4cdb2c32e224e29e2ea14e277493584ec7edce1
[]
no_license
damodardikonda/Python-Pandas-
a1f0395a9514dbb639116d35ae465b7135d92c2c
de95146cbb01047d87a5bb297d94c21181dbd629
refs/heads/master
2022-09-19T01:25:31.985004
2020-06-05T07:35:44
2020-06-05T07:35:44
269,561,445
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import pandas as pd import numpy as np df=pd.read_csv("files.csv",index_col=['Name']) print(df) print('\n\n changingthe type of float, ') df1=pd.read_csv("files.csv",dtype={'Salary':np.float}) print(df1.dtypes) print("df headers") df2=pd.read_csv("files.csv",names=['A','B','C','D','E'],skiprows=2) print(df2)
[ "damodar2dikonda@gmail.com" ]
damodar2dikonda@gmail.com
48a06adba43b3407a9e9c44ca62636abccd4368d
e531794fab5a6c0c670fe7eb1f19e307b5921ffd
/learning_journal/learning_journal/scripts/initializedb.py
9b0a914a45acd7633528b50182c09e5b2571689b
[]
no_license
shoaib369/learning-journal
ff961b104e235a8faa6a105c91733771cf01cfe9
2084a4bb9f6410f3f7918e8ecd2dc2ecaff2680c
refs/heads/master
2020-06-03T11:42:21.059112
2015-04-10T05:34:34
2015-04-10T05:34:34
33,709,041
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
import os import sys import transaction from sqlalchemy import engine_from_config from pyramid.paster import ( get_appsettings, setup_logging, ) from pyramid.scripts.common import parse_vars from ..models import ( DBSession, MyModel, Base, ) def usage(argv): cmd = os.path.basename(...
[ "shoaib.maks@live.com" ]
shoaib.maks@live.com
eb2025415cacf09b3f30f758ba273518c5712b56
d3adb94b12bdbb041b05d60f36386251a5b3ed89
/forms.py
49827eb8693b2e0657fb008b5c533f77a224e802
[]
no_license
100ballovby/PyOWM_Flask
44f11aeac00512fffa43ad2493b25f727006cd36
720d0af81c52debdda4be440db8007b620e95c0f
refs/heads/master
2023-03-23T22:41:02.780567
2021-03-16T17:11:06
2021-03-16T17:11:06
346,085,443
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from wtforms import StringField, SubmitField from flask_wtf import FlaskForm class SearchForm(FlaskForm): city = StringField('City name') submit = SubmitField('Submit')
[ "greatraksin@icloud.com" ]
greatraksin@icloud.com
7e2dee67cc6ec9f0d5655e38183c4b713eefd8f5
fe62f810f4256b6811068ac2d2e27a2d9ab79ea7
/setup.py
77ba600e447a6c3279fec271e5d59b2081f225fa
[]
no_license
DavidPerezGomez/MySQLConnector
06a3e20ae8ac36996d4550271a3193c7300d39b4
05459b32c3db1b5b5170f377c71c04b1d2fe8333
refs/heads/master
2021-05-04T05:24:15.964899
2018-02-05T18:46:07
2018-02-05T18:46:07
120,338,002
1
0
null
null
null
null
UTF-8
Python
false
false
215
py
from distutils.core import setup setup(name='mysqlconnector', version='1.0', description='', author='', author_email='', url='', py_modules=['mysqlconnector/connector'], )
[ "davidperezgo@gmail.com" ]
davidperezgo@gmail.com
6d3a3293e455a01c45e56bcb29d7751c226dc716
9546d8f6f675a9bfb1460a175ce9c4586af69107
/blog/migrations/0004_post_tags.py
95298454102691cd749448ad7c9f07ff17737d0c
[]
no_license
zmm064/DjangoByExample1_Blog
c759a493b7409cee7303259273a369ac970623da
1db8e0a0290b70449df431966a89c949e39a0505
refs/heads/master
2021-04-06T08:03:50.040622
2018-03-17T03:10:56
2018-03-17T03:10:56
125,333,478
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2018-03-15 13:11 from __future__ import unicode_literals from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('blog', '0003_auto_20180315_194...
[ "zmm064@foxmail.com" ]
zmm064@foxmail.com
c4cb2bb9a3fd2e5a3cfd94ecee5a4e52926d2aa9
5641c3ec4c812aac6e1581e8f72ac0a644566e1c
/Data/writeExcel.py
6b854290c86b4225850ddf9ffcd9a89721e4ba4e
[]
no_license
ralowden/B490-Project
b001376f6c63730e8c53b6c8a429fab61c67d44f
abb9701f7dfe9776b924263eba29d90db9ec0ded
refs/heads/master
2021-01-01T18:02:27.590903
2014-11-10T06:19:27
2014-11-10T06:19:27
26,420,886
1
0
null
null
null
null
UTF-8
Python
false
false
2,232
py
from __future__ import print_function from openpyxl import load_workbook import xlsxwriter import sys import string #Create file from user input if len(sys.argv) < 2: sys.exit("Error: need filename as input") fileName = sys.argv[1] file = open(fileName) fileNameWithoutExt = fileName.split(".") newFile = fileName...
[ "ralowden@indiana.edu" ]
ralowden@indiana.edu
852776831fbe3219e5e605068c4a63a6d938466a
2264cb3fbb52512f33a95bc93a4379b0329a05fb
/Recommendation/Jenny/rec_py/recSys.py
5a88d34254153bd6d14940e3c081b201328d6eaf
[]
no_license
mengqwang2/AlibabaChallenge
6b9a1cb90ba976005e1a3d489461993dadf3ef96
a42cca07af4ce60615b43651d13d9ab5604cc860
refs/heads/master
2021-01-19T11:34:25.061280
2015-06-08T16:59:00
2015-06-08T16:59:00
37,080,200
2
0
null
null
null
null
UTF-8
Python
false
false
373
py
import sys import os import data_process if __name__=="__main__": filepath="/Users/mengqwang/Documents/tMall/clean_t_alibaba_data.csv" ratio0=int(sys.argv[1]) ratio1=int(sys.argv[2]) ratio2=int(sys.argv[3]) ratio3=int(sys.argv[4]) ratio4=int(sys.argv[5]) dp=data_process.data_process(filepath,ratio0,ratio1,rati...
[ "mengqwang2@gmail.com" ]
mengqwang2@gmail.com
e9088dc481b384e7b3573deadfeb6d01d3be9eb8
b5faf7fab5877bb89dd57e3511311587e17d5c30
/youey/card.py
ecdf59bce9fc5beb61c5de10166954183bf24207
[ "Unlicense" ]
permissive
wijijo/youey
f52eef9dee427f3b1a577836f328b03450e21531
4986f3cdf88a27c204d2d1023fd8ab3954d6060a
refs/heads/master
2021-10-14T08:29:20.333345
2019-02-03T08:39:25
2019-02-03T08:39:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
#coding: utf-8 from youey.view import * from youey.label import * class CardView(View): def setup(self): super().setup() self.size = GridSize(self.parent) def render(self): return f'<div id=\'{self.id}\' style=\'position: relative; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis...
[ "mikael.honkala@gmail.com" ]
mikael.honkala@gmail.com
33922d76382941b02c8ceb0bcb46d6d3955660e8
48032a202c5dadecb218a13fe08d079e96bd1c9e
/quarry/utils/tasks.py
942e7a475e06d34860414c4cffb141f12c653b5d
[ "MIT-feh" ]
permissive
aaps/quarry
e7de4c827e6a581d97bbb165ba6d154b961c4347
181bccf99bbcfc1d0c46ac3d9790ba461263ac4d
refs/heads/master
2021-01-17T05:21:04.087296
2015-10-09T10:32:44
2015-10-09T10:32:44
43,808,598
1
0
null
2015-10-07T10:23:46
2015-10-07T10:23:46
null
UTF-8
Python
false
false
837
py
from twisted.internet import reactor from twisted.internet.task import LoopingCall class Tasks(object): def __init__(self): self._tasks = [] def add_loop(self, time, callback, *args): task = LoopingCall(callback, *args) task.start(time, now=False) self._tasks.append(task) ...
[ "barney.gale@gmail.com" ]
barney.gale@gmail.com
77a7b1b539d3ed002cf33ecbfca26cbb2d0b6a61
e72671d153166d8e9aecbbc746d73bf98874fade
/tools/WriteSetup_Testbed_Server.py
f531f03c748d19237966b31450cf5e43924fffbb
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
abhilashabhardwaj/pike
53d5f1795960a2b71b6d0ed22f1183b4ae4c4715
7c11307a702ffacadb370427505fdd9c8ad52f0f
refs/heads/master
2022-11-14T01:22:53.107392
2022-10-11T10:16:27
2022-10-11T10:16:27
20,185,390
0
0
NOASSERTION
2020-02-20T05:33:34
2014-05-26T12:28:05
Python
UTF-8
Python
false
false
2,739
py
import os; import sys; def CreateFile(size, name): try: fname = name; print fname; fh = open(fname, 'w') filesize = long(size) print "Creating a file of %d Bytes with name as %s in present directory\n"%(filesize, fname); print "filesize is %d bytes\n"%filesize if size<128: for i in...
[ "isilon-cifs@calsoftinc.com" ]
isilon-cifs@calsoftinc.com
d4e19a35e16287496ee9fe5568332821313357ed
d785e993ed65049c82607a1482b45bddb2a03dda
/fakeable/fake_DoubleMuon_E_cfg.py
14da36115cb68c18932fd22ecd5a9e27a8752300
[]
no_license
PKUHEPEWK/ssww
eec02ad7650014646e1bcb0e8787cf1514aaceca
a507a289935b51b8abf819b1b4b05476a05720dc
refs/heads/master
2020-05-14T04:15:35.474981
2019-06-28T23:48:15
2019-06-28T23:48:15
181,696,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
from WMCore.Configuration import Configuration from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = Configuration() config.section_("General") config.General.requestName = 'fake_DoubleMuon_E' config.General.transferLogs= True config.section_("JobType") config.JobType.pluginName = 'Analysis' con...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
97f367d457b883c623e9ef127177e267ac029527
c06e097c5f2a019ac1de5bc1d15c2eafb339658d
/backend/src/app.py
d5ce04f0c2973be78261ec8004c0c26ca51e95de
[]
no_license
edwinkys/stock-analytic
0d39a9832e281612724d6aa1e283dcabae83766f
96209147710c692328141e7083c23b56eb548727
refs/heads/main
2023-03-30T08:43:30.041235
2021-04-06T17:58:41
2021-04-06T17:58:41
333,241,844
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
''' API Main Source Code ''' from flask import Flask from flask_cors import CORS # Import blueprints from src.blueprints.stock.endpoints import stock def create_app(settings_override=None): ''' Create Flask back end app. @settings_override: Override app configuration. return: Flask app. ''...
[ "itsedwinkys@gmail.com" ]
itsedwinkys@gmail.com
d53d3a96ba0dd0cbcf815b7d8a30d78950c17a66
b85676666101e049440cc33c4ad2a3e58eab5580
/common/conndb.py
29ff6e2c346c2673457aa30c09e90ffb64c546ef
[]
no_license
zzxx59342506/python-excelimporter
f0a624ea0a0b7d7f19bddb425db40ad207f53ca6
4eac92b06f4b57f56020ccd3f965438538db93ef
refs/heads/master
2023-04-23T01:08:18.370207
2021-05-09T10:36:43
2021-05-09T10:36:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,069
py
# connect to mysql import pymysql import os from common.handleconfig import HandleConfig class ConnDB(): def __init__(self): self.HandleConfig = HandleConfig() self.server = self.HandleConfig.handle_config("g", "global", "use_server") self.host = self.HandleConfig.handle_config('g', self....
[ "xiaobo.zhang@dev.neoncrm.com" ]
xiaobo.zhang@dev.neoncrm.com
f9cb2443b7fe489c327c6d699ea1a85004394c9b
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/127/usersdata/251/36337/submittedfiles/ex11.py
8b0f6fb148ea3944e979a9c5fa90a71cb8f5fb1b
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
# -*- coding: utf-8 -*- dia1 = int(input('Digite o dia da primeira data: ')) mes1 = int(input('Digite o mês da primeira data: ')) ano1 = int(input('Digite o ano da primeira data: ')) dia2 = int(input('Digite o dia da segunda data: ')) mes2 = int(input('Digite o mês da segunda data: ')) ano2 = int(input('Digite o ano ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
70954f8acfa28f88fc48ed29c864438711c7a04b
af030f2740f8e8b2de7e5013e9a4f8c3bee26ba2
/models/omes/Detec-objet/08/program07.py
6de833026582fdc0f8a6939cc9f3083e796f0c64
[]
no_license
Jhongesell/detertor-de-poligonos-y-sus-parametros
a419145ad9ca4948c5187e2abf77f1fa54c12e45
0a288120f58ab1dd35025bbb7176fc159daf3bd7
refs/heads/main
2023-04-27T05:15:34.345057
2021-05-17T03:18:05
2021-05-17T03:18:05
344,097,854
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Feb 19 22:38:29 2021 @author: jhongvp """ import cv2 import numpy as np def dibujar(mask,color): contornos,_ = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) for c in contornos: area=cv2.contourArea(c) if ar...
[ "unmsm182@gmail.com" ]
unmsm182@gmail.com
9ad166212a3248adff0e4a11a45c752872e01190
5eac0e97297f557fc49b7352ec11953a69f92c57
/PyNite/BeamSegment.py
7a3841c82d693d8e10f569a86ba9b3368e084793
[ "MIT" ]
permissive
FJFranklin/PyNite
bb27606602724701484bacbbdd75688aa57159d4
de06b8a5020f845e77f5ffa8e3033ab0891d45cc
refs/heads/master
2021-07-12T04:37:02.651970
2020-10-11T17:45:24
2020-10-11T17:45:24
198,198,708
0
0
MIT
2019-07-22T10:14:06
2019-07-22T10:14:05
null
UTF-8
Python
false
false
9,833
py
# -*- coding: utf-8 -*- """ Created on Mon Nov 6 20:52:31 2017 @author: D. Craig Brinck, SE """ # %% # A mathematically continuous beam segment class BeamSegment(): """ A mathematically continuous beam segment Properties ---------- x1 : number The starting location of the...
[ "noreply@github.com" ]
FJFranklin.noreply@github.com
72471ec575910223fb97b0d4630be0fcf1b4fcb7
aa6ca3602ce2cb2c958bb252aa6e14ea554af453
/kotti_dkbase/views.py
0bbc362da5aeefa4cb6209c9b33f7068b305e69a
[ "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
chrneumann/kotti_dkbase
20283e03229327a0b58f5971a28dd9b73c920bf7
3e3749c9887538bb07b8cd8f842b77b219596191
refs/heads/master
2016-08-04T18:55:50.492661
2012-08-24T14:20:26
2012-08-24T14:20:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
from pyramid.httpexceptions import HTTPInternalServerError from pyramid_mailer.message import Message from kotti.message import get_mailer from kotti import get_settings def mail_admin(msg): """ Send given message to the admins. """ admin = get_settings().get('kotti_dkbase.admin_email') message = ...
[ "cneumann@datenkarussell.de" ]
cneumann@datenkarussell.de
4c8926852a17017751bd19f68293508ddb98339c
3470201aec8d85271c5b10d01385efbe12c13014
/env.py
c50ac229f24a79fb699fe0bfc486c6c29ecbc652
[]
no_license
jsundahl/220-project-5
5e1465d49f4fe6aebd7e6c2895d469035aad6b58
b9f935cc77d4ba297dc9535ac6bdbe163bcb7237
refs/heads/master
2021-01-18T23:34:24.334310
2017-04-07T20:07:02
2017-04-07T20:07:02
87,118,052
0
0
null
null
null
null
UTF-8
Python
false
false
5,222
py
class GlobalEnv: """ Implements a "ribcage" data structure that stores bindings of variables and values as lists. Attributes: variables (List): the identifiers values (List): the associated values bound to the variables prev (GlobalEnv): a reference to a previous GlobalEnv. Methods...
[ "jsundahl15@gmail.com" ]
jsundahl15@gmail.com
045fbe74ec8accb45bf9ae2b6c91b56cd97f8a4a
339809fbc9d3ac7e7073cdaa653d56e3ebca5dd4
/221801412&221801405/venv/Lib/site-packages/sqlalchemy/dialects/mysql/mariadb.py
07676f71d6ceaa37b30c5e84f7da7461683c5c75
[]
no_license
siberia0015/PairProject
b384b62cf7d1f89a5727c7bbb21fe3d93d2881b2
f99f3f7885b77acade28afd11652a5ed9591ccd6
refs/heads/main
2023-04-06T23:39:12.982810
2021-04-01T07:52:03
2021-04-01T07:52:03
349,049,089
0
51
null
2021-04-01T07:52:04
2021-03-18T11:33:40
Python
UTF-8
Python
false
false
454
py
from .base import MySQLDialect class MariaDBDialect(MySQLDialect): is_mariadb = True name = "mariadb" def loader(driver): driver_mod = __import__( "sqlalchemy.dialects.mysql.%s" % driver ).dialects.mysql driver_cls = getattr(driver_mod, driver).dialect return type( ...
[ "1157928777@qq.com" ]
1157928777@qq.com
68a8f0693008a34bc7ee601bf743c19a920c3aa1
36803e5ce3921cfe62bfecc15b306f3139eadd87
/exercises/06_control_structures/task_6_3.py
c4565860256758b0d5808babd55800efa4193c2c
[]
no_license
hasculdr/py_study_new
b4c0550554a45ab850ca0151235767f5876fd2e2
e0f2ee78c55e41b2c957933177a318af9905290c
refs/heads/master
2022-10-04T17:48:16.981516
2020-06-08T15:57:30
2020-06-08T15:57:30
270,659,031
1
0
null
null
null
null
UTF-8
Python
false
false
2,313
py
# -*- coding: utf-8 -*- """ Задание 6.3 В скрипте сделан генератор конфигурации для access-портов. Сделать аналогичный генератор конфигурации для портов trunk. В транках ситуация усложняется тем, что VLANов может быть много, и надо понимать, что с ним делать. Поэтому в соответствии каждому порту стоит список и перв...
[ "41771787+hasculdr@users.noreply.github.com" ]
41771787+hasculdr@users.noreply.github.com
0cd99b99051b2ca38f4d2447dd84e385852f0b0e
c1eea031212bdacd63983202577d9dc228b24ad9
/aula139ate142-ecommerce-slug-automatico-e-cadastro-de-produtos/loja/urls.py
57d599daab3e22fba74272c6d0e40262c3d7c21c
[ "MIT" ]
permissive
axellbrendow/python3-basic-to-advanced
6677cef1390b4b3b089b45410df8755cb3c5a143
fd8b1b325ed199f8bc770dc038752ea57cbbd926
refs/heads/master
2023-01-12T02:37:33.170469
2020-07-12T16:32:32
2020-07-12T16:32:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
"""loja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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 vi...
[ "breno.axel@gmail.com" ]
breno.axel@gmail.com
f218fe1f46c2c078c7f63ea04605b414e287a4dd
158c21ea004d62c07949950a8516dc20d0f3127a
/kasir.py
910957911d439809ca53de586cc0c5ccf3a9917e
[]
no_license
Rizky1408/Kasir-1
c7b37e124ee37e9dfa61b932d2cd7410e209a609
1587979e8b377e06ccfc69f8d461046cda8cd2fb
refs/heads/main
2023-03-26T05:26:41.486421
2021-03-20T14:22:52
2021-03-20T14:22:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,349
py
pilihan = "x" while pilihan == "x" : print("=========================================================") print("|\t\t\t SEBLAK SEHATI \t\t\t|") print("|\t\t\t DAFTAR MENU \t\t\t|") print("| \t1. Seblak Ceker \t\t10000 \t\t|") print("| \t2. Seblak Sosis \t\t10000 \t\t|") print("| \t3. Seb...
[ "noreply@github.com" ]
Rizky1408.noreply@github.com
962dfa2d14312d478ac13e9db700d04210be2a66
a64ed9b09efdeecc5139f27d644d04593ace0e50
/cars/apps/migrations/0002_auto_20141104_1059.py
a5c4912c93941b10e723ae05c11fec8201aeec51
[]
no_license
jeet15/Django-JSON
0cdadbc0384c491e776d122716ba253baa6d9ff0
962f5404ae2f5877a35476250630352a71736e47
refs/heads/master
2016-09-05T23:37:17.378629
2014-11-21T12:24:49
2014-11-21T12:24:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('apps', '0001_initial'), ] operations = [ migrations.AlterField( model_name='car', name='image', ...
[ "gurjeetsingh1506@gmail.com" ]
gurjeetsingh1506@gmail.com
9350861b47687994cd410e6e244b97737bbc9948
fe161a9f81cb2c0d1f281e05aad3cb768fc8f8b9
/Chap8-CompuPhotograhpy/3-HDR/HDR.py
11fdd9bfab202d7cb98cc54bf9f6d2f26e6f76e5
[ "MIT" ]
permissive
wxzs5/LearnOpenCV
234b4884dadb0fad4272815be9a93d8b186dc7cd
dee92d96af593d617d784700abab78c8d45cf74c
refs/heads/master
2021-05-07T22:32:55.667232
2018-04-19T07:45:31
2018-04-19T07:45:31
107,265,611
3
2
null
null
null
null
UTF-8
Python
false
false
1,463
py
import cv2 as cv import numpy as np from matplotlib import pyplot as plt # Loading exposure images into a list img_fn = ["../../img/img0.png", "../../img/img1.png", "../../img/img2.png", "../../img/img3.png"] img_list = [cv.imread(fn) for fn in img_fn] exposure_times = np.array([15.0, 2.5, 0.25, 0.0333], dtype=np.float...
[ "790230517@qq.com" ]
790230517@qq.com
bf68971a5d62dc3074b046a532f8dd092e7aefce
5e07a10ba21cae5baad3b0eb93fcb08968bab68f
/swap_pairs.py
f7e8c427f7e80090ca12464aff4feb2087e0fe90
[]
no_license
billstark/leetcode
530b4b06e23d36d5b7816498ba049ea2ea2e1df3
35cadf6b0d4942c919696ef8d35acd5e7617b627
refs/heads/master
2020-04-15T04:39:15.517961
2019-01-14T15:44:26
2019-01-14T15:44:26
164,390,898
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
class ListNode: def __init__(self, x): self.val = x self.next = None def swapPairs(head): if head == None: return head if head.next == None: return head current = head nextHead = head.next swapped = swapPairs(nextHead.next) current.next = swapped nextHe...
[ "billstark1996@gmail.com" ]
billstark1996@gmail.com
6e47832275d2037408e61f2f79828326e1d75b7b
6d5cd84339cb3e1d59915adf34531d5145a1ea51
/14_a.py
f86e8c18a803f2bef7e894f9b409a3fd710872dc
[]
no_license
ChrisDoubleEwe/AdventOfCode2015
8ba915a9a799c86bdfca24bbe85172cbffd722c9
a3d1ebc95474c2290f46ac4a7b5365d7d5b77074
refs/heads/main
2023-03-01T06:06:14.689768
2021-02-07T22:23:14
2021-02-07T22:23:14
334,727,758
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
import sys from ctypes import * import copy import hashlib import itertools import re from printf import printf with open("14_input.txt") as f: content = f.readlines() data = [] deer = [] for c in content: match = re.search('([a-zA-Z]*) can fly ([0-9]*) .* for ([0-9]*) seconds, but then must rest for ([0-9]*) ...
[ "chris@offwhitehouse.co.uk" ]
chris@offwhitehouse.co.uk
80a0fd2bfe61535c36a73a95861ea8fb3dc46571
6a6b1655fa5f0d3f095ca5e5527ac89285b1607e
/rosa-env/bin/django-admin.py
3cfec5dcc1dc3441a45ff20d6dc9bf0ba5a392c2
[]
no_license
BEEFF/DjangoTix
137b25e86995edd1f4f5481253fea0be3acbee7b
acccc9693216584e83944b60e765c025772b922f
refs/heads/main
2023-07-04T03:11:46.293414
2021-08-03T14:42:42
2021-08-03T14:42:42
392,349,775
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
#!/home/t/rosa/rosa-env/bin/python3 # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-admin.py was deprecated in Django 3....
[ "okeeffe_thomas@yahoo.co.uk" ]
okeeffe_thomas@yahoo.co.uk
0a75f92da21ee8ae0552cbb4fffd23b6bc972c79
f7525456f5451926282cba840dae1c4adba3573f
/STEPIK.py
f7376ff86ba6b0f3ae7a501f37f92df71bd0d3a7
[ "MIT" ]
permissive
AlPus108/Python_lessons
1f2ac6e1ce5a344e0c900249ef7864d257424436
0e96117d9a8b76fd651e137fc126ddedaa6accd9
refs/heads/master
2021-02-27T06:37:10.239125
2020-05-14T21:27:29
2020-05-14T21:27:29
245,588,486
0
0
null
null
null
null
UTF-8
Python
false
false
14,605
py
# ЭКРАНИРОВАНИЕ # a = "строка с \" кавычкой двойной и \' одинарной" # Чтобы в строке появился символ обратной косой черты # a = "Строка с обратным слешем \\" # Перенос строки # a = "Первая строка \nВторая строка ''' Сделать перенос строки в Питоне можно и другим способом — объявить строку с помощью тройных кавычек. ...
[ "alex.pustovoy@gmail.com" ]
alex.pustovoy@gmail.com
ab4b2af750e03de8a750d4170d8e27d4684868f2
b858eb6e2a67f6c013e21a2a8a256a04775cc474
/LittleStation/LittleStation/settings.py
4f0ce9fee9c19c8e5823f9c78cb209f7e7b9abc5
[]
no_license
windangle/xiaoyaoyu_test
5bc72a50fcefdc8f0d8e19b647bff037d69673e0
c53ee3e016ed8eea9782fc0173a4750604f83514
refs/heads/master
2020-04-14T07:49:52.882686
2019-06-22T15:49:23
2019-06-22T15:49:23
163,723,243
1
0
null
null
null
null
UTF-8
Python
false
false
3,109
py
""" Django settings for LittleStation project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
[ "green8237@sina.com" ]
green8237@sina.com
3919e6b7a51097e8a8afcb8aca30ec4219c26e37
6a3cfbab9671951edaaebdedb45b77aeaea69ce3
/journal_ui.py
0cd543e8750dac6d5afddeb42496253fbc7c1f9c
[]
no_license
dcook8080/it-python
3aebc63b8100f05c44035f91dc829e8b9c0f355a
10ac9047be356c23f0b3a988d8e75a27bbada43a
refs/heads/master
2020-07-25T13:38:58.945590
2019-11-20T16:40:30
2019-11-20T16:40:30
208,309,766
0
0
null
null
null
null
UTF-8
Python
false
false
902
py
import journal from banner import banner banner("Journal", "Dylan Cook") def main(): run_event_loop() def run_event_loop(): filename = "default" journal_data = journal.load(filename)#[] while True: command = input("[L]ist entries, [A]dd an entry, E[x]it: ") if command.upper() == "L"...
[ "dylanjcook73@gmail.com" ]
dylanjcook73@gmail.com
e843a52df42cbe564b8befaa6a35a6e9d894953f
437e905d8c214dc25c559b1dc03eaf9f0c85326f
/is28/konnov28/python1/Python1/12.py
aa50468a81e6cdc274f644138376969256de9952
[]
no_license
AnatolyDomrachev/karantin
542ca22c275e39ef3491b1c0d9838e922423b5a9
0d9f60207e80305eb713fd43774e911fdbb9fbad
refs/heads/master
2021-03-29T03:42:43.954727
2020-05-27T13:24:36
2020-05-27T13:24:36
247,916,390
0
1
null
null
null
null
UTF-8
Python
false
false
466
py
n = int(input("Введите натуральное n: ")) f_prev = 1 f_prev_prev = 1 print("Число Фибоначчи под номером ", 0, " = ", 1) if n > 0: print("Число Фибоначчи под номером ", 1, " = ", 1) for i in range(2, n + 1): f_current = f_prev + f_prev_prev print("Число Фибоначчи под номером ", i, " = ", f_curr...
[ "you@example.com" ]
you@example.com
473c45e3b9efe6e1f6479df4a0b96666c50ec289
e6bcb1d409e9227bbab1954a74edeeb4efae97ae
/main.py
675bbe5121d2dfa9cd2f6d48e249fe30a9ffa6c6
[]
no_license
keanulee/muni-tracker
fdbb3c1e0de1f2af2e2507ab79207783ac15b75b
972bbb6fc77e6dc78f09f796ec81d361d348235c
refs/heads/master
2021-08-02T00:56:53.436712
2021-07-22T21:45:18
2021-07-22T21:45:18
110,642,752
0
0
null
null
null
null
UTF-8
Python
false
false
3,361
py
import webapp2 import urllib2 import time import json from wsgiref.handlers import format_date_time def formatValue(x): return { 'arrayValue': { 'values': [ { 'stringValue': x['routeTag'] }, { 'geoPointValue': { 'latitude': x['lat'], 'longitude': x['lon'], } }, ...
[ "keanulee517@gmail.com" ]
keanulee517@gmail.com
6256e8c471c987e197b563d2790a1f2a8a49dfc5
46357db3b1c1af699384d9cba1ffbc3c732117ad
/selenium_advanced/herokuapp/TestData/TestData.py
1d4b10cd2c77950959e52ecbbc1231a49994dfcd
[]
permissive
khanhdodang/automation-training-python
28fbd70ca4bc84e47cf17d1e4702513863e38c44
b16143961cee869c7555b449e2a05abeae2dc3b5
refs/heads/master
2023-07-11T05:21:34.495851
2021-08-18T01:29:37
2021-08-18T01:29:37
285,208,030
0
8
MIT
2020-09-29T07:01:15
2020-08-05T07:01:46
Python
UTF-8
Python
false
false
223
py
class TestData(): BASE_URL = "https://the-internet.herokuapp.com/login" USERNAME = "tomsmith" FAKE_USERNAME = "khanhdo" PASSWORD = "SuperSecretPassword!" FAKE_PASSWORD = "SuperSecretPassword" BROWSER = "chrome"
[ "khanhdo.pmp@gmail.com" ]
khanhdo.pmp@gmail.com
3500c022e88b6b91854a99d93f348129c9df11ba
c577c2383dad59ad33c78d2ba4262c5cc2d46a89
/src/pred_boosting.py
1efd7e4110d584f5ee68d26b261be4e53833388f
[]
no_license
swethmandava/stock_prediction
aa070c43aced52c9e70c38d2bfa29a25e401efa5
1d966b75869545a774a15bfdfb43cb02a85cd96b
refs/heads/master
2021-08-23T22:52:34.328710
2017-12-06T23:57:25
2017-12-06T23:57:25
111,018,816
0
1
null
null
null
null
UTF-8
Python
false
false
4,507
py
import xgboost as xgb import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from parse import * import matplotlib.pyplot as plt import sys #Skeleton code for xgboost. def train(dtrain, dvalid, evallist, params, epochs, early_stopping_iterations): bst = xgb.train( params, dtrain...
[ "sweth.mandava@gmail.com" ]
sweth.mandava@gmail.com
0402c5f7fc9d223a57e42857d3c22beb1db6578e
fd72c01cb6b3d32995d8e82151d230f805022b9f
/misc/eval_utils.py
9f064f6827c67dc3930f7380ea1b5cd0c037f793
[ "MIT" ]
permissive
zokooo/Sub-GC
1093a51bb19a30283803d0e72fe4264e34a18b37
b99ede5163be8378d56b834a66b702b23a76e4e2
refs/heads/master
2023-05-25T10:43:29.245025
2021-06-16T17:36:52
2021-06-16T17:36:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,752
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import json import random import time import os import sys import misc.utils as utils import math from collections import d...
[ "yzhong52@wisc.edu" ]
yzhong52@wisc.edu
f0c03d3a5c771a559f64c228a83b0cd4f9ad034e
40b4be3cb16cf88e50a090270ab454bfa6c45867
/caminus/minecraft/migrations/0005_auto__add_playersession.py
40540598421c33c546f3eff44b4f44ec39871b78
[]
no_license
caminus/caminus
b497f0030dfb2a20b552df8bfb441eaa0fa5f0ae
84c269ebb9ce61552a6bcb512c4d251ad4161b58
refs/heads/master
2021-01-04T02:37:24.524819
2015-02-10T06:23:06
2015-02-10T06:23:06
3,491,381
0
0
null
2017-07-21T00:05:25
2012-02-20T06:40:06
Python
UTF-8
Python
false
false
6,249
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'PlayerSession' db.create_table('minecraft_playersession', ( ('id', self.gf('dj...
[ "tdfischer@fedoraproject.org" ]
tdfischer@fedoraproject.org
1e247e40b554c06842ab2469383a40cab085ab2f
1a8c0c2e93dfa67b48551a162093e4b727dfe8b2
/courses/migrations/0020_auto__add_field_course_is_active.py
f4664d9ae9da0862279aaacce855ffaaee33c2f1
[]
no_license
regisb/fun-apps
7342d605dd61e167560c9505aad63ec00d0552b7
f7db27c9a43b2f7fc4e1c522534f2549ab52fe0c
refs/heads/dev
2021-05-24T02:21:55.876764
2015-12-08T14:00:42
2015-12-08T14:29:26
47,678,160
2
0
null
2015-12-09T08:21:47
2015-12-09T08:21:47
null
UTF-8
Python
false
false
5,480
py
# -*- coding: utf-8 -*- from south.db import db from south.v2 import SchemaMigration class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Course.is_active' db.add_column('courses_course', 'is_active', self.gf('django.db.models.fields.BooleanField')(defa...
[ "regis@behmo.com" ]
regis@behmo.com
3db4a83754e02e122fc2cd1b8bdeb19351c5c4ac
bddd590d1dbd082052bc733c04de0d90cb74952c
/TurnerSmaldinoFunctions.py
77788c3d9b5cf581bdbae3dbb401175b03a5a2fc
[]
no_license
heraldkorsen/TSvsDF
9c001c540cc62b02913184b1514eae1cedb7a6dd
62057a1663de03c4742a69671bf7ab79b5d56fdc
refs/heads/main
2023-08-15T00:09:27.438215
2021-09-28T15:25:02
2021-09-28T15:25:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,178
py
import defSim as ds import networkx as nx import warnings import random import numpy as np from defSim import NewTiesModifier # custom initializer in which initial range can be varied class RandomContinuousScaledInitializer(ds.RandomContinuousInitializer): def __init__(self, distribution: str = 'uniform', s...
[ "diekobakker@hotmail.com" ]
diekobakker@hotmail.com
62e744b70c8b3536aaee4fc8c765a74a4202d779
d5df2e08a1d4064d0c34db7e1e23823b44fa62fa
/workers/project/consumers/test_queue_receive.py
7d40df75611dd81bf6eba045c7ec503faeb879c6
[ "MIT" ]
permissive
sharof2000/ms-fastapi-template
42c1f68f3260e8facad6984abada9f3d56363e05
5bbd6903305db07cc18330ec86fb04ca518e9dab
refs/heads/main
2023-07-06T21:28:13.558790
2021-08-13T13:52:12
2021-08-13T13:52:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
import asyncio from aio_pika import connect, IncomingMessage async def on_message(message: IncomingMessage): """ on_message doesn't necessarily have to be defined as async. Here it is to show that it's possible. """ print(" [x] Received message %r" % message) print("Message body is: %r" % mess...
[ "farlley@live.com" ]
farlley@live.com
97e64193f5358c77e438e18a4f0c3aeff796f0e1
74c5d1736d53cf872a95664caccacfe324a9f5e3
/chapter4/euro.py
f76fe1e514a6201771b2adbcc6363ecb9b734d4b
[ "Apache-2.0" ]
permissive
lmy86263/Think-Bayes
e773f474ec550dfb550763351b106f23eab4bf8d
ddf772832fe5ce9547081ebedf71fd2d9438b423
refs/heads/master
2020-04-29T11:44:08.226453
2019-01-05T10:43:39
2019-01-05T10:43:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,668
py
"""This file contains code for use with "Think Bayes", by Allen B. Downey, available from greenteapress.com Copyright 2012 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ """This file contains a partial solution to a problem from MacKay, "Information Theory, Inference, and Learning Algorit...
[ "foamliu@yeah.net" ]
foamliu@yeah.net
08064990a0dcafa4325234669d80f5cbe88b2e77
17b13a3ea2dae8af3a2e1ba5870af327864c82c3
/PIPCamTest.py
26bfd1d5ed94fb5190a90f191b78b256bb8b9596
[]
no_license
yfaney/PIPCam
4ffc5fa0841605b74eceb4481367684a3d5bf66a
ee5d4ad83e909a599696d4d81132da1f556517c2
refs/heads/master
2021-01-19T17:44:26.914342
2015-08-28T00:00:50
2015-08-28T00:00:50
37,951,330
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
#!/usr/bin/python import time import picamera with picamera.PiCamera() as camera: camera.resolution = (1024, 768) camera.start_preview() time.sleep(2) camera.capture('foo.jpg')
[ "yfaney@gmail.com" ]
yfaney@gmail.com
41e96ff1b900bad193ede0a539a9524362b80c2c
ec772836e4c7a3cc19d9a7d1efabc841de58c548
/clear_all.py
c6b289ddbab306dae258cc3f3c616c53947640cb
[]
no_license
life1347/cloudsproject
173c23b1cb4758579c8a8853c5ba6e459f3a0712
c8d485ed3780dd66b73fe2a0c95dc387ed63b28f
refs/heads/master
2021-06-04T03:28:04.147098
2014-01-08T10:37:33
2014-01-08T10:37:33
14,948,469
0
0
null
null
null
null
UTF-8
Python
false
false
2,559
py
import time import string import logging from time import sleep, asctime from keystoneclient.v2_0 import client as ksclient from neutronclient.v2_0 import client as neclient from novaclient.v1_1 import client as nclient import novaclient.exceptions as nova_exc logging.basicConfig(level=logging.INFO) #logging.basi...
[ "persevere80419@gmail.com" ]
persevere80419@gmail.com
3bad1f5d7a9cbe455fa5ede29a60ec085415bb3a
716b26f5e6dda95be2d3c6106939b0c114037e96
/Sympy/ideal_bar_model_and_numerical_dispersion_relationships_via_sympy.py
2530a20cba8fa067637aa6749fd8656fa2f85ba8
[]
no_license
mariusono/Physical-Modelling-of-Spring-Reverberation
66ab0bf0b23dfda035f92cbfc1a76ea1e2a7d528
16ae5b74a6ecad37f7f3ec8a034090e1f291421a
refs/heads/master
2023-03-08T03:15:50.272602
2021-02-25T10:08:14
2021-02-25T10:08:14
267,653,783
0
0
null
null
null
null
UTF-8
Python
false
false
5,508
py
# -*- coding: utf-8 -*- """ Created on Fri May 29 00:06:29 2020 @author: MSOI """ from sympy import * import numpy as np import matplotlib.pyplot as plt import re import copy I,eta,Kappa,k,Dxx,u,Dxxxx,q_slash,q,gamma,alpha,sig_t,sig_l,Dxmin,Dxpl,zeta,theta,Mx,sig_0,sig_1 = symbols('I,eta,Kappa,k,Dxx,u,Dxxxx,q_slas...
[ "59313470+mariusono@users.noreply.github.com" ]
59313470+mariusono@users.noreply.github.com
3590fd67f1a1026d541efc28898722aa22b077ac
aa8925ae04ed5d22c54450b0fb9e7e982c915f59
/setup.py
b79340e80deb87462a024bfa580cf918addbec90
[ "MIT" ]
permissive
khezen/maildesk
e1e1fe64d811c7e971b4575f8cf3a82e01dcc0d7
03c33fcac86af9d569373367e0493f3458acbb04
refs/heads/master
2022-11-21T11:24:33.062901
2020-07-24T06:48:10
2020-07-24T06:48:10
279,969,466
7
0
null
null
null
null
UTF-8
Python
false
false
638
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="maildesk", version="0.1.1", author="Guillaume Simonneau", author_email="simonneaug@gmail.com", description="email python library", long_description=long_description, long_descripti...
[ "simonneaug@gmail.com" ]
simonneaug@gmail.com
58a14ee15f12ae43103a3a8bc7bc5809c4589a56
8af5f03574346188cba118963f205756f308c0c5
/c2py/objects_manager.py
64360a8538a099abc051171ffee4fad31c494f04
[]
no_license
nanoric/c2py
4030a03b87a0bb413f81ba0f4ff0a5407ec5d4fc
ff272c8c31d969ea8c7dbd6a904414de02f715d4
refs/heads/master
2023-07-21T20:48:14.457559
2023-07-14T06:58:13
2023-07-14T06:58:13
165,370,817
62
7
null
2019-10-15T06:37:20
2019-01-12T09:38:02
C
UTF-8
Python
false
false
1,118
py
from c2py.core.core_types.generator_types import GeneratorSymbol, GeneratorTypedef class ObjectManager(dict): def __setitem__(self, key: str, value: "GeneratorSymbol"): if self.__contains__(key): v = self.__getitem__(key) if v is None: return super().__setitem__(ke...
[ "nanoric@qq.com" ]
nanoric@qq.com