blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
380219750084da66170b23b9a2f2df84c9de32f6
43dedd3a34ef44351e997d061478990c70940d9a
/manage.py
0f9cf6e82432e18f92d56b8fbc0db1411d14ee85
[]
no_license
calcbbs/Django_crud-operations
2375e6918c99a39a715796b4966888f43d3efc47
7c8cfe6a31a060b04d3407b314e03b9ce3026ae8
refs/heads/master
2022-11-06T16:37:28.481120
2020-06-25T06:05:11
2020-06-25T06:05:11
274,841,058
1
0
null
null
null
null
UTF-8
Python
false
false
806
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "logicpro.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
[ "madhupython2255@gmail.com" ]
madhupython2255@gmail.com
e86b1a037156de6e9531075c180fe24c799646cb
67ac37ae591e2d57230728de67f503757f99bb4b
/backend/rapid_search/views.py
0fb23e952cafb4308b8e6d75d79f8262ac25e2a6
[]
no_license
ratroot92/eagle-eye-reactjs
4f422fd612662f8e4ea02e866915cfcc81ecb788
a2fd3aadb911c9226f377294c0724a12ab050712
refs/heads/main
2023-05-06T07:18:50.070420
2021-05-31T22:44:57
2021-05-31T22:44:57
363,510,623
0
0
null
null
null
null
UTF-8
Python
false
false
11,549
py
from django.shortcuts import render from django.http import JsonResponse from django.http import HttpResponse import geopy from geopy import Nominatim import json import twint import nest_asyncio import asyncio from django.views.decorators.csrf import csrf_exempt # Create your views here. @csrf_exempt def Twitter_Rapid...
[ "maliksblr92@gmail.com" ]
maliksblr92@gmail.com
bfa35f94f75b35d4f6888f6f02b54d6012a6f1c0
db9f1f51d224064916bbdc2c135079fa2eebb12e
/2_1_1.py
3325b146d25fd7fbfbe8c214ae04ad3d70f96cc5
[]
no_license
joyce0917/Fundamentals-of-Programming
999516ee911607b4d6a71c11491f11517a5ecbef
a47cf953e2743d873fab2ab829790b53a7e14e3c
refs/heads/main
2023-04-14T21:28:36.696222
2021-04-20T02:57:12
2021-04-20T02:57:12
359,665,027
0
0
null
null
null
null
UTF-8
Python
false
false
6,598
py
# Joyce Moon (seojinm) section B import string import random # Write the function patternedMessage(message, pattern) # that takes two strings, a message and a pattern, and # returns a string produced by replacing the non-whitespace # characters in the pattern with the non-whitespace # characters in the message. ...
[ "noreply@github.com" ]
noreply@github.com
497f7ca218fcaa165751dd0dc22241730614b5c1
cdfbf466a03c1176ad5a9c8c2aaaa42551d6750d
/pythongame/scenes/scene_creating_world/scene_creating_world.py
265e969f25448a1f80a27e9be9124c5eb2b0cc2e
[]
no_license
JonathanMurray/python-2d-game
62540cac42291da23176f3ac0e88c8809131f84d
cac61c93545e32dc517d021448715a77fe97f531
refs/heads/master
2021-12-14T07:46:31.287997
2021-12-11T18:03:18
2021-12-11T18:03:18
145,474,245
63
18
null
2021-03-15T21:52:18
2018-08-20T21:53:03
Python
UTF-8
Python
false
false
8,198
py
from typing import Optional from typing import Tuple from pythongame.core.common import ConsumableType, Sprite, ItemId from pythongame.core.common import Millis, HeroId, AbstractScene, SceneTransition from pythongame.core.entity_creation import create_player_state_as_initial, create_hero_world_entity from pythongame.c...
[ "jonte.murray@gmail.com" ]
jonte.murray@gmail.com
10196359aaf3e9ce8390a8bcf0b81c84b671067b
4993456c4a48ed035a36b4533d632a582d1cedf1
/patterns/prototype.py
d5c41fdc4045b89fb76f052da43c8c628c0857f1
[ "MIT" ]
permissive
raldenprog/python_tricks
f2683c169499bea82fb5a1dfe730a94022b7c472
b30be8672d1a47ed5bfddf2deccd9b28d68e445d
refs/heads/main
2023-02-16T03:28:26.009158
2021-01-01T10:56:40
2021-01-01T10:56:40
314,006,560
1
0
null
null
null
null
UTF-8
Python
false
false
5,933
py
""" https://refactoring.guru/ru/design-patterns/prototype Прототип — это порождающий паттерн проектирования, который позволяет копировать объекты, не вдаваясь в подробности их реализации. """ import copy class SelfReferencingEntity: def __init__(self): self.parent = None def set_parent(self, parent):...
[ "raldenprog@mail.ru" ]
raldenprog@mail.ru
2af87ae83c59320be212bf31dbd897909cd778c8
682cf06747f15c449c916650f0cc00994b68fb46
/get_3prime_UTRs.py
2d54cdc6cbbcb2a4eca65b3763fdf73ffb1f6629
[]
no_license
JahazielGuzman/differential-expression-of-mosquito-genes
50644dc76ae20d6642e166b0e1bf82b1ee45510c
ea93b13d3c18ce4380cdfd55707f9d5322c3d564
refs/heads/master
2021-01-14T13:27:01.827641
2015-08-12T04:37:34
2015-08-12T04:37:34
24,608,819
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
# this script will open the noriboaegypti.gff3 annotation file, it will find sequences which are # labeled as three_prime_utr and will obtain an identifier, the chromosome, and the starting and ending # chromosomal coordinates for each these sequences and will # output it into the file 3_prime_utr_list.txt import csv ...
[ "ja.xi.es@hotmail.com" ]
ja.xi.es@hotmail.com
36dfb1049c2f28afc3e8f8fd55309711d38cbd7d
f8380b0738edd88172f1947c7b9dd430cfad503a
/interpret_tree.py
44783bb48344414677d8ffd8cd73d2df775f6714
[]
no_license
gsterner/interpreter
4f516c70d0b29b916ff3d22e8f86f0c75f3bd65c
5a697e912d1425163c34e0f622d7f75826af798d
refs/heads/master
2016-09-06T15:46:33.125940
2013-01-19T21:03:28
2013-01-19T21:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,749
py
''' Created on 27 nov 2012 @author: gustaf from pythonds.basic.stack import Stack from pythonds.trees.binaryTree import BinaryTree def buildParseTree(fpexp): fplist = fpexp.split() pStack = Stack() eTree = BinaryTree('') pStack.push(eTree) currentTree = eTree for i in fplist: ...
[ "gsterner@gmail.com" ]
gsterner@gmail.com
7e413d6c2870d2ffa819a01088c9166d9622f9c8
57371e95899998a01af55ca800495ca5bb841076
/bookstore2/celery.py
616602a3b5ea6b69fee79cacf59bc265f7510b4f
[]
no_license
mosutw/bookstore
cd2796e6f9ab7961fa862ec3215e809208ab1fb2
abb19c14a3f69deffab60e0bc7038e29360b1367
refs/heads/master
2020-03-31T12:30:11.230932
2018-08-07T15:08:37
2018-08-07T15:08:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
from __future__ import absolute_import,unicode_literals import os import django from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE','bookstore2.settings') #设置配置文件 django.setup() app = Celery('bookstore2',broker='redis://127.0.0.1:6379/6') app.config_from_object('django.conf:settings',namespace='CE...
[ "aiyingfeng110@qq.com" ]
aiyingfeng110@qq.com
cbd55ab8d75ea16cc6b47917fdb3d4bd5b865eac
a3a3e1298db9555eda37f8da0c74a437d897cb1f
/compiled/Python3/Euler_Problem-030.py
a12edacad0729aad1effb41722fb40fbead3d74c
[ "MIT" ]
permissive
LStepanek/Project-Euler_Befunge
58f52254ee039ef6a5204fc65e62426c5e9d473a
f35fb2adecd737e410dee7b89b456cd61b25ce78
refs/heads/master
2021-01-01T17:51:52.413415
2017-05-03T17:23:01
2017-05-03T17:26:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,953
py
#!/usr/bin/env python3 # transpiled with BefunCompile v1.1.0 (c) 2015 def td(a,b): return ((0)if(b==0)else(a//b)) def tm(a,b): return ((0)if(b==0)else(a%b)) s=[] def sp(): global s if (len(s) == 0): return 0 return s.pop() def sa(v): global s s.append(v) def sr(): global s i...
[ "mailport@mikescher.de" ]
mailport@mikescher.de
060b1268ae58049eaebc7151db0af7140d6583bd
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/BANYAN-NW-MIB.py
f988b13520165504fffda4cffd448f7e316bcf83
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
27,336
py
# # PySNMP MIB module BANYAN-NW-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BANYAN-NW-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:17:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
95526bd8dcbd54db8aa5efb39e9f8d9a31fa5f1f
f2e5a8626405d5b946eaed8d54e522c23fbad75a
/daemon/thunder.py
7175dbad654bf62c528407f0da5684474ae795c6
[ "MIT" ]
permissive
wjianwei126/51pp
e00d523805badf47c2316323fb7bfb6437b791a5
bf48059190f6da7be3526541603a0aaad58187ea
refs/heads/master
2021-01-18T11:17:07.807012
2014-08-05T05:19:18
2014-08-05T05:19:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,563
py
#encoding: utf-8 #infohash组成磁力链接到迅雷种子库下载种子(thunder.py) import socket from time import time import requests from bencode import bdecode from torrent import * import sys class thunder(object): def __init__(self, store=None): self.cache = {} self.store = store def download(self,...
[ "2731560337@qq.com" ]
2731560337@qq.com
a3cc5a2cf9f1da539e1611c79cd5455d02395395
05a701a04e77b391f2bdc17b21560731b18fdd63
/first_project/test.py
b6427e9e3d863d8ae90b2e6b2959e76d04e74526
[]
no_license
gregor-d/python_kurs
50627836977c03a05578a43ac3dd00a5ae25ac50
7060eb3de624932044a372ea8e2f3cb9e4f42355
refs/heads/main
2023-03-29T03:05:26.114577
2021-04-09T15:26:41
2021-04-09T15:26:41
355,952,792
0
0
null
null
null
null
UTF-8
Python
false
false
5,039
py
import numpy as np np.random.seed(45) fString = open("diagnosis.data","r") fFloat = open("diagnosis.csv","w") for line in fString: line = line.replace(",", ".") line = line.replace("\t", ",") line = line.replace("yes", "1") line = line.replace("no", "0") line = line.replace("\r\n", "\n") fFlo...
[ "didenko_g@gmx.de" ]
didenko_g@gmx.de
8d00f818311ffe523055ea0f3e27476309954987
2eee482984e958eb3e25a176123e6444021f18d7
/Lectures/Lecture Code/week2/iterators.py
7749df62735576a2938af7c4878b3d8d4c12954a
[]
no_license
JamesJ7lx/COMP1531
aa1873a86f3e464c826489b3a71785c62aeedb2a
e99eb59844317830806dbb14922a216b9bbb5952
refs/heads/master
2022-11-17T01:04:19.925095
2020-07-17T15:11:35
2020-07-17T15:11:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
animals = ["dog", "cat", "chicken", "sheep"] animal_iterator = iter(animals) class Squares: def __init__(self): self.i = 0 def __iter__(self): return self def __next__(self): self.i += 1 if (self.i > 200): raise StopIteration return self.i*self.i squa...
[ "noreply@github.com" ]
noreply@github.com
a9a0e75f2b2347fe435878abddab2d2463af98ff
5b7af7b52867cb486b1cab100a351dc9acd63283
/bin/lib/bdebld/meta/repocontext.py
7ba6fe57a3a97861bc80174f78d1b26054dd90fc
[ "Apache-2.0", "MIT" ]
permissive
RMGiroux/bde-tools
bb347805c1f83b9108d69ecfd864eeea221d666e
7dc88b2b87d9331d988aad71c42905b923db584d
refs/heads/master
2021-01-18T13:32:42.288327
2015-03-24T19:25:31
2015-03-24T19:25:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,349
py
"""Aggregate Repository structure and metadata """ class RepoContext(object): """This class represents the structure of a repository. Attributes: package_groups (dict of str to PackageGroup): Map of names to package groups. packages (dict of str to Package): Map of names to packag...
[ "che24@bloomberg.net" ]
che24@bloomberg.net
246d97bade2ab51e6464b7d6c0953dd755320b50
16bccf6024279e3083f9a81a032ddce121949ef0
/polls/urls.py
a68c0da2c0925f0fbd0b13abe8a566b1977f82dd
[ "Apache-2.0" ]
permissive
chaser8/chaser
28c30ca108b26824050ca4e517970a078b031711
2155db09d21ad2022ddee3e52f1ef4b08952c94f
refs/heads/master
2022-10-20T11:17:15.361195
2020-06-12T06:56:21
2020-06-12T06:56:21
271,102,700
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # @Time : 2020/6/11 3:08 下午 # @Author : yangzb # @Site : https://www.yangzb.com # @File : urls.py # @Software: PyCharm from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), ]
[ "chaser8@163.com" ]
chaser8@163.com
85a6a96b56a13deb719f4974f8dfc0bab69fc2c7
cb61e82f62bde4d6a2d6f245d0393cd5b1cd02e6
/mysql_connect.py
3cac923612a5fabebd4890b56cb90fd1fce2894b
[]
no_license
Vivvianne/Json-Decoding
3b0d0f265e6d5829e51cd5c6d9ef6481a0475e8a
499d6e99f5511031d502fc56543ca084f2b36077
refs/heads/master
2020-08-08T04:32:39.739844
2019-10-17T14:39:01
2019-10-17T14:39:01
213,714,291
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
# Import pymysql module import pymysql # Connect to the database connection = pymysql.connect(host='localhost', user='root', password='her1234', db='interview', charset='utf8mb4', ...
[ "ndiahav@gmail.com" ]
ndiahav@gmail.com
683bb3c9c9d92c4fb805072ec4354c12f0c1d2d6
85dd4dbe8ca874dbad08e9456b8ed2ba0bc54079
/dataCalculator/migrations/0001_initial.py
35118e57f831d218e5d16ad16d9fb8107026d7c5
[]
no_license
htkz/design-engine-frontend
530e6f4338bd4587aaa58d59578fdd5e598e1fae
f973f71663bccbd733738aafbf00fdc8d5dd92b3
refs/heads/master
2021-08-15T11:35:07.003640
2017-11-17T19:31:13
2017-11-17T19:31:13
111,142,784
0
0
null
null
null
null
UTF-8
Python
false
false
4,666
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-16 19:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='DataSt...
[ "htkzmo@gmail.com" ]
htkzmo@gmail.com
b2ccc54baa8f5810be524d0f142b9b43562381c9
a8592d34f144b71794ebf30f1c2a1b5faf0b053c
/Praktikum2023/Modul_08/codes/diffusion_02.py
c407706419324a395034cba60ab038151f2df39b
[]
no_license
f-fathurrahman/ffr-MetodeNumerik
ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327
e3a9da224c0fd5b32e671708e890018a3c4104c4
refs/heads/master
2023-07-19T22:29:38.810143
2023-07-07T10:02:34
2023-07-07T10:02:34
107,272,110
2
2
null
null
null
null
UTF-8
Python
false
false
1,735
py
# Explicit method (forward Euler) for diffusion equation # Using two vectors for current and future time import numpy as np import matplotlib.pyplot as plt # Global variables !!! L = 1.5 Tfinal = 1.0 α = 0.1 DO_PLOT = True # Manufactured solution def u_exact(t, x): return 5*x*t*(L-x) def initial_cond(x): r...
[ "fadjar.fathurrahman@gmail.com" ]
fadjar.fathurrahman@gmail.com
93c4dbef73a2b04aade727f2926bba0bbb3dcb35
f5836b93e45a0f93094110a499f0aa304c47673b
/authors/apps/profiles/tests/test_validation.py
d77d3d7738040b7a78068665988f3710497c6b73
[ "BSD-3-Clause" ]
permissive
andela/ah-olympians
54a999a26a5ca2fb318cbabeaf31cf53adb28357
f00edb358f42751cdf9405de5f29e2b21dacb7d5
refs/heads/develop
2022-12-10T12:12:04.661270
2019-04-26T15:17:53
2019-04-26T15:17:53
170,839,139
2
2
BSD-3-Clause
2022-12-08T01:42:08
2019-02-15T09:36:35
Python
UTF-8
Python
false
false
1,091
py
from rest_framework.test import APITestCase from rest_framework.exceptions import APIException from ..custom_validations import validate_avatar as vd class ValidationTest(APITestCase): """ Class to test custom validations.""" def setUp (self): """ Sample avatars """ self.avatar_1 = "test.pdf" self.avata...
[ "kelvin.chirchir@andela.com" ]
kelvin.chirchir@andela.com
13343e0d8b4bd5bc569c3960c4d726551725a409
022ca78fa4a05384f2a8fdcbbef5c12c88af22fe
/retinaReduction2.py
d8d78df35836bb3a895d9112241f85f63baaf46f
[]
no_license
LuisSustaita/NeuronasLocas
763a0a324dea348e7432561e781983542818854c
b7f60d461eff01b742d199a76b5317270ef23b9e
refs/heads/master
2020-03-19T12:52:21.953931
2018-08-24T19:18:49
2018-08-24T19:18:49
136,546,204
0
0
null
null
null
null
UTF-8
Python
false
false
4,007
py
''' Vista del DVS con filtro de ruido Modificar en el main para: mostrar un archivo grabado (RetinaRecord) grabar un archivo nuevo y mostrarlo en pantalla (Retina) SE MODIFICO PARA REDIMENSIONAR LA VISTA DEL DVS DE UN ARCHIVO YA GRABADO SIN REDIMENSIONAR EN EL MAIN DEBE PONER EL NOMBRE DEL ARCHIVO QUE SE VA A LEER, SE...
[ "ld.delacruzsustaita@ugto.mx" ]
ld.delacruzsustaita@ugto.mx
d5cc2e960fa20a62afd08cea843d499c874eb6ff
67325192c1e528a39d457f11e61b480d68826708
/mods/mcpython/entity/__init__.py
fcc545f71f824192400ba7b8553e05f7da608cb7
[ "MIT" ]
permissive
vashistaarav1611/mcpython-a-minecraft-clone-in-python
5851b377b54fd2b28c106112c7b18f397b71ab50
c16cd66f319efdeec4130e1a43f5a857caf1ea13
refs/heads/master
2023-02-01T22:48:51.787106
2020-12-21T15:02:25
2020-12-21T15:02:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
from .entity import * from .player import * from .boxmodel import *
[ "baulukas1301@googlemail.com" ]
baulukas1301@googlemail.com
b365e14451153a32b788ea21316db61b97698dc1
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-3648.py
43de1a025a9b7634670b7fa09e1476f970e269f3
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,754
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
f5f375260a6700edb14122833d042c5de1294aa0
bb9ad36fb004847ca4f3f3dddcb5a339a0876251
/nao/qibuild-1.14.3/python/qidoc/test/in/doc/qidoc/conf.in.py
2966ccfa40569dbfedac7f43865f75d604414a0f
[ "BSD-3-Clause", "Python-2.0", "LicenseRef-scancode-public-domain" ]
permissive
Adrien987k/NAO-robot-motion-planning-2018
013cdff0294866e4ffcd3af418077addf4ce7a8f
27697488c198a76130e64698a48f84ebc4fc1fc1
refs/heads/master
2020-04-17T22:54:18.891872
2019-01-22T10:32:22
2019-01-22T10:32:22
167,013,248
1
0
null
2019-01-22T15:01:35
2019-01-22T15:01:35
null
UTF-8
Python
false
false
373
py
import sys, os # Specific extensions: sys.path.insert(0, os.path.abspath("../source/tools")) extensions.extend(["naoqi", "extendcpp", "cppwithparams"]) templates_path = ['../source/_templates'] html_additional_pages = { 'index' : 'index.html', 'contents' : 'contents.html' } html_static_path = ['../sourc...
[ "pierre.guetschel@gmail.com" ]
pierre.guetschel@gmail.com
67e330728fcb7259c8d090a6fb63f1aaac133448
6a92f679a25ef52cfa11003109b6b2272ac6ddff
/tests/test_models/test_base_model.py
88223cb2a68bc56a8fd64b4adea88f69ecf889c2
[]
no_license
joancruzz/AirBnB_clone
e90773fc0b74744ddf8cc9ab085e6a713a6bf144
5b91ac84ceabbad35088e8e19d4ad78c22d346a0
refs/heads/master
2020-09-05T11:28:46.615524
2019-11-26T06:47:41
2019-11-26T06:47:41
220,089,775
0
1
null
2019-11-12T22:11:24
2019-11-06T21:05:15
Python
UTF-8
Python
false
false
5,997
py
#!/usr/bin/python3 """ unittest for base_model class """ from models import storage from models.base_model import BaseModel from models.engine.file_storage import FileStorage from datetime import datetime import json import os import re import time import unittest import uuid class TestBaseModel(unittest.TestCase): ...
[ "slopez0286@gmail.com" ]
slopez0286@gmail.com
5b96084f364c96ccaef574a9449ad2a337d2b6df
b02c642dad1e53d06c6171622d7fc3d7564a8d9d
/MachineLearning/Python3-MachineLearning/LogisticRegression/metrics.py
a3de4406017ede4f38a45b6d33db10095e9da216
[]
no_license
wanghao15536870732/StudyNotes
ebd1f9b7c308a9f616d7629bf95c409ac774daa0
d7e17a3e23c4bbe7bf670f2c529716b17c92f530
refs/heads/master
2022-12-21T14:13:16.699256
2021-03-24T01:10:46
2021-03-24T01:10:46
112,166,204
27
10
null
2022-12-08T05:35:49
2017-11-27T08:04:06
Jupyter Notebook
UTF-8
Python
false
false
1,215
py
import numpy as np from math import sqrt def accuracy_score(y_true,y_predict): """计算y_true和y_predict之间的准确率""" assert y_true.shape[0] == y_predict.shape[0],\ "the size of y_true must be equal to the size of y_predict" return np.sum(y_true == y_predict) / len(y_true) def mean_squared_error(y_true,y_...
[ "1484290617@qq.com" ]
1484290617@qq.com
af874a6277f5ea7f1eab7f8b8ace4b98c1406860
70e1aa77e828c776162eacdadd7bbdb3e4e5d489
/Tutorial1.1.py
b106d4acc046819ca6c1c0e3131d1a456057eac2
[]
no_license
heyberto/Tutorial-python
26eb1e8d12a8982d1498b7d42808c6ce3003fe7e
9c3473cd4597bc193391ed3bcf13e0628241fdb6
refs/heads/main
2023-05-14T22:32:09.177141
2021-06-10T21:44:39
2021-06-10T21:44:39
371,073,016
2
0
null
null
null
null
UTF-8
Python
false
false
2,469
py
#VARIABLES #STRING name='Alberto' surname='Diaz del Campo' full_name = name +' '+ surname #print(type(name)) #print(type(surname)) print(full_name) #INT #age = 15 #age += 1 #print(type(age)) #print('has vivido : ' +str(age) + ' ' + 'primaveras') #FLOAT #altura = 174.5 #print(altura) #print(type(a...
[ "noreply@github.com" ]
noreply@github.com
5f5504b38995c0e6751dc7ffaa5e5c4794b32fd7
83744d85443b2f9c6c0d6cbf830b928a357277e4
/flash.py
24028c3637c10062e3d8d95ca3f1c8f22b847593
[]
no_license
NisargDesai99/AI-Pacman-CTF-Project
05d8635463cb92af2a3f8e3d8d425d7fcb770e31
73e40db733e6a153ed33a14d86d96086b93ff00d
refs/heads/master
2021-05-19T19:26:15.646934
2021-03-28T02:53:21
2021-03-28T02:53:21
252,082,613
1
1
null
null
null
null
UTF-8
Python
false
false
24,566
py
# myTeam.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # At...
[ "nisarg.desai599@gmail.com" ]
nisarg.desai599@gmail.com
27b1bca6a712698e8458e896a397045bd65b6297
65587aeca74a4b2bcd5e6dc83cf2e6c3d0a5121e
/powersets.py
838940e4e10d39709ffe245b410855e6e8b1dd0d
[]
no_license
zhilyakov1986/Algorithms
e3cf086e7a9a4aafd943199be0649d00f59a0bd5
8792121d5604b681557c0c1656aa35b1c6665b97
refs/heads/master
2021-05-06T01:16:38.875585
2018-01-20T23:05:05
2018-01-20T23:05:05
114,424,037
0
0
null
null
null
null
UTF-8
Python
false
false
1,803
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ different powersets """ l = [1,2,3] def powerset(xs): result = [[]] for x in xs: newsubsets = [subset + [x] for subset in result] result.extend(newsubsets) return result print (powerset(l)) #[[], [1], [2], [1, 2], [3], [1, 3], [2, 3], [1...
[ "zhilyakov1986@gmail.com" ]
zhilyakov1986@gmail.com
51885bc42db050c15e09bef44b3e7a721049c255
69af8511431f477cf57074dde1e9213dca36e921
/Python Class QUIZ.py
83af5033a9833d49699b25913792b7f7a060880f
[]
no_license
ccallen001/Playing-w-Python
4a04621aad8a76c9b627cdce0b1e3f79c2280fbe
4bfcaa3cd9a4eed32095e1909e24aad95a387321
refs/heads/master
2021-01-21T16:15:42.993959
2017-09-04T18:29:18
2017-09-04T18:29:18
95,404,054
0
0
null
null
null
null
UTF-8
Python
false
false
2,361
py
import random from urllib import urlopen import sys WORD_URL = "http://learncodethehardway.org/words.txt" WORDS = [] PHRASES = { "class %%%(%%%):": "Make a class named %%% that is-a %%%.", "class %%%(object):\n\tdef __init__(self, ***)": "class %%% has-a __init__ that takes self and *** par...
[ "callen@smarterhq.com" ]
callen@smarterhq.com
7b20630c578f24e1e3ccbc926e29924824fff615
8b7697b1fb33808df4219306e13e8119bb0c2272
/flask/bin/pip3.5
a6afd4d3389a8cc43447882ac027e840e397dd60
[]
no_license
ddrum001/gsgs
f8bfe76e231ff9d91b120866493410fef72db351
87351e935e6bbb1a150db305a05fdaa696b4470d
refs/heads/master
2020-06-19T04:00:17.689039
2016-11-28T00:20:53
2016-11-28T00:20:53
74,922,474
0
0
null
null
null
null
UTF-8
Python
false
false
224
5
#!/home/ubuntu/gigi/flask/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ubuntu@ip-172-31-47-35.us-west-2.compute.internal" ]
ubuntu@ip-172-31-47-35.us-west-2.compute.internal
a1006338a8cfdef23d7274c46d5543094d67ecae
e962f5629e40cdb010ae69e6c54c9b4b63550df6
/main.py
44de89ad7b914e4f2f2204e53cb5d0308a1101f7
[]
no_license
DalduK/GameOfLifePygame
0435e245a730773236d26d4614a4b7d41e4d99c3
c5350a021115cd47b1f8e2170776536f8ad0f92a
refs/heads/master
2023-04-16T18:48:01.499676
2021-05-06T15:36:15
2021-05-06T15:36:15
364,949,817
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
from gui import Gui if __name__ == '__main__': # Wybór wysokości i szerokości okna, oraz czasu z jakim każda kolejna generacja ma się tworzyć (w tym wypadku to 100 ms, aby było to dobrze widoczne) gui = Gui(40, 40, 100) gui.run()
[ "przemyslaw7wozny@gmail.com" ]
przemyslaw7wozny@gmail.com
4cd096c4c18478c426c9d4dffd0953d031acbe6f
a33d7012ff38d48ba023a5a0a88e48f0cd82b5eb
/src/src/urls.py
6c76afe87836d0a2f13dbcd8c4be644707d35779
[]
no_license
zarrint25/mysiteBookstore
56a9aefaca2b34e7b4fa5c068eb67d79cae8ffcc
86cfbe49bff914797254a9cfea6e4d52d527f88a
refs/heads/master
2020-03-09T13:16:23.906703
2018-04-09T17:09:16
2018-04-09T17:09:16
128,806,543
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
from book.views import BookCreateView, book_list_view, BookUpdateView, BookDeleteView, book_all_list_view from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth import views as auth_views from django.views.generic import TemplateView from django.conf import settings from dj...
[ "noreply@github.com" ]
noreply@github.com
6309d7663b41db5a3a64385b7ba0e1717e87ff02
106536a7448d4414fac079cb657044f1dc92a588
/framework/DRL/utils.py
28cc3e78deeec9f30017db38f905f953724933a3
[]
no_license
ChrisQiqiang/drlScheduler
0b9a10c8de4883cea2ada7565cdfb65185608dc4
2cd8b984bfed16687a7852baccb79742d1a35773
refs/heads/main
2023-08-03T17:55:17.654560
2021-09-14T15:17:56
2021-09-14T15:17:56
405,674,031
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
import time import numpy as np import tensorflow as tf def features_extract_func(instance): # return [instance.cpu, instance.memory] return [instance.cpu] def features_normalize_func(x): y = np.array(x) return y def multiprocessing_run(episode, trajectories, makespans): np.random.seed(int(tim...
[ "2290142073@qq.com" ]
2290142073@qq.com
801193ec32448d57be1590c31198bd0a436ca38c
919d628cc762e61de43bb37cce280c04627f5c60
/programming projects/python projects/tutorials2/4. If else statements.py
0b3384ec71e6af82f1c3b4380fd190c15773fe43
[]
no_license
godwinreigh/web-dev-things
16e9dd27836b0812dba1dd70af6719323d4fe58c
cc35b518ac2cf5a4ebcb90606c450aaa74b4c33e
refs/heads/master
2023-03-13T02:29:55.558782
2021-03-01T13:00:48
2021-03-01T13:00:48
323,789,100
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
import turtle a_turtle = turtle.Turtle() def square(): a_turtle.forward(100) a_turtle.right(90) a_turtle.forward(100) a_turtle.right(90) a_turtle.forward(100) a_turtle.right(90) a_turtle.forward(100) a_turtle.left(90) elephant_weight = 3000 ant_weight = 100 #if elephant_weight > ant...
[ "godwinnariogalvez@gmail.com" ]
godwinnariogalvez@gmail.com
ce85dfe86426de8ee49c80df0acea65a0badb4a4
038c3feb9371c9690d5be9b67fc5790bd54b1fd9
/Django/pjtDjango_book/booksDjangoSite/books/migrations/0002_auto_20190930_1742.py
660cd996d45be1ae139a083a039666fa86e9a657
[]
no_license
oggong/django_study
c441c82eab2c1b9fdf28e769deb76dd17e90cb5b
8c33982b11206d52b6e2e3aa33b65020a2f2ff65
refs/heads/master
2020-09-16T11:38:43.695042
2019-11-24T14:50:03
2019-11-24T14:50:03
223,758,111
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
# Generated by Django 2.2.5 on 2019-09-30 08:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('books', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Books', new_name='book_title', ), ...
[ "49095304+oggong@users.noreply.github.com" ]
49095304+oggong@users.noreply.github.com
c1701f3d76d8c99043349152a1e0332b6b094ee6
e0c2225a247899f4012724bf201998ce00b4d2c4
/create_screen.py
121ee684e083a10c4311d590931672dcdf2bb721
[]
no_license
ghager93/kivy_explorer
5de5f944abe585380c0eb5f0219ba05f60eeacdc
3047635081bbcb8f6606bbeb116abd3bad95f7fb
refs/heads/master
2023-08-27T13:02:00.812136
2021-11-05T11:58:59
2021-11-05T11:58:59
418,762,446
0
0
null
null
null
null
UTF-8
Python
false
false
3,021
py
import os from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.filechooser import FileChooserListView from kivy.uix.popup import Popup from kivy.uix.stacklayout import StackLayout from kivy.uix.screenmanager import Screen from kivy.lang import Builder from selectablelist import SelectableL...
[ "ghager93@gmail.com" ]
ghager93@gmail.com
39f90a9a804e857a18eae7babe3ae5697e83aad5
09d8f225e52b1acfbd17ed20d0b7ff0dc147b022
/src/baseline/postgres_tuner.py
06a221a48d93bf21c852785e1e5cbf5e4255dd6e
[]
no_license
jerwelborn/rlautoindex
6edb19e5583c0373ceb7000309210df2d5b3dac6
0d325b8cf5baed45edd4cbfcbe3c8366566b534a
refs/heads/master
2020-05-09T10:47:05.392431
2019-04-12T17:51:08
2019-04-12T17:51:08
181,057,321
0
1
null
null
null
null
UTF-8
Python
false
false
12,578
py
#!/usr/local/bin/python # OpenTuner requires 2 not 3 import os, sys head, tail = os.path.split(__file__) sys.path.insert(0, os.path.join(head, '../')) # /src for access to src/common, src/dqn from common.postgres_data_source import PostgresDataSource from common.postgres_system_environment import PostgresSystemEnvir...
[ "jeremy.welborn@gmail.com" ]
jeremy.welborn@gmail.com
00581e3a518654bb4806de9dc9ec80f579a37bf0
ab31f1adb4cb886248cddc9e5393337343393d73
/deslib/dcs/rank.py
cde42dcfdf0365d1c31faa07fb8440f23924f31c
[]
no_license
Hibs21/DESlib
3186045eff3107a4b4c408aa0c9ff72223f340f7
e6984ca2479ce1d8d2233a1ed4a1a6242df18826
refs/heads/master
2021-05-11T19:50:49.272700
2018-01-17T08:04:42
2018-01-17T08:04:42
117,894,799
1
0
null
2018-01-17T21:28:06
2018-01-17T21:28:06
null
UTF-8
Python
false
false
5,117
py
# coding=utf-8 # Author: Rafael Menelau Oliveira e Cruz <rafaelmenelau@gmail.com> # # License: BSD 3 clause import numpy as np from deslib.dcs.base import DCS class Rank(DCS, object): """Modified Classifier Rank. The modified classifier rank method evaluates the competence level of each individual classif...
[ "rafaelmenelau@gmail.com" ]
rafaelmenelau@gmail.com
d6830d4ff16376893003b80808781e3aec0c3bb2
c104dbd09a853725cb4f4b17df7c5dd59d47e04e
/test/test_modify_alert_policy.py
83402c1d6893da6593578261001770b0aa9a0dea
[ "Apache-2.0" ]
permissive
bm-lab/opsgenie-python-sdk
5a64e2c24f1b9168ecadf482ba8084ba27a659fc
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
refs/heads/master
2021-10-09T03:18:48.101672
2018-12-15T01:03:36
2018-12-20T15:13:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
902
py
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import opsgenie_swagger from opsgenie_swagger.models.modi...
[ "c.chary@criteo.com" ]
c.chary@criteo.com
16990071b6dbcbde964933c0b7318622f40022f7
4b3bdb9eeada2092527ae179fc86ba9c5f8fb517
/primeros pasos/decisiones/decisiones_ejercicios3.py
33d95e2f43e3f8586ac94996f19d99950b7b286d
[]
no_license
LichiSaez/Python-Finanzas
c4ea15d3732f60a7966ee15d3fe25f536556ef06
c7c7a6e70a3eddce079f87e7ce7f0afc1d4aa9db
refs/heads/master
2023-07-01T12:36:45.618274
2021-07-31T19:05:27
2021-07-31T19:05:27
372,260,703
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
maxPerdida = 5 if maxPerdida > 1 and maxPerdida <= 15: if maxPerdida > 8: tipo = "Stop Largo" elif maxPerdida > 6: tipo = "Stop SemiLargo" elif maxPerdida > 3: tipo = "Stop Standar" elif maxPerdida > 1: tipo = "Stop Corto" else: tipo = "Fuera de rango" print(tipo)
[ "lisandrosaezamelio@gmail.com" ]
lisandrosaezamelio@gmail.com
87fc79453157cb918c5bb0e1ee6047dfe03ef136
31a1645264f0dd328448e71e753a6914b7829b51
/src/ch04/two_layer_net.py
95c8521ca26a4f7c4f5d80e94458941682df3581
[]
no_license
banbiossa/deep-learning-from-scrach
82d86b427a549ff5e60b886e78974bcaea41cea4
d183a73ad27c68a79500c35a94c174ce0455940c
refs/heads/master
2020-04-04T00:08:46.868901
2018-11-23T09:13:14
2018-11-23T09:13:14
155,641,487
0
0
null
null
null
null
UTF-8
Python
false
false
2,744
py
# coding: utf-8 from ..common.functions import * from ..common.gradient import numerical_gradient import numpy as np import logging logger = logging.getLogger(__name__) class TwoLayerNet: def __init__(self, input_size, hidden_size, output_size, weight_init_std=0.01): # 重...
[ "s_shimizu@pkshatech.com" ]
s_shimizu@pkshatech.com
d237833b720ab49c6906e5708002d2834372ac3d
9ddfd30620c39fb73ac57e79eae0a001c45db45f
/addons/prisme_contact_enhancement/models/__init__.py
56357c83a049980c861e401c12364ef855b55a5d
[]
no_license
zamzamintl/silver
a89bacc1ba6a7a59de1a92e3f7c149df0468e185
8628e4419c4ee77928c04c1591311707acd2465e
refs/heads/master
2023-01-06T20:29:25.372314
2020-10-29T21:02:41
2020-10-29T21:02:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,059
py
# -*- coding: utf-8 -*- ########################################################################### # # Prisme Solutions Informatique SA # Copyright (c) 2016 Prisme Solutions Informatique SA <http://prisme.ch> # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
[ "mohamed.abdelrahman@businessborderlines.com" ]
mohamed.abdelrahman@businessborderlines.com
e3beffe9d227f4daf26722ce881fb0cea4a2a796
266b89bd961a391fdae32214fe9fa25063fd4180
/user/forms.py
612f81281765d2298017fb5c6dd252b526ea5155
[]
no_license
astatium135/idaproject_v2
51a3327bed7d6751df3b2af22996f5cb60302ed3
eb878a171e9ca2edfac226a3c73ff314c5c41cd0
refs/heads/master
2022-12-08T13:26:19.150948
2020-08-14T13:28:58
2020-08-14T13:28:58
287,539,248
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
from django import forms from django.contrib.auth import get_user_model class UserForm(forms.ModelForm): password2 = forms.CharField(widget=forms.PasswordInput(), label="Повторите пароль") class Meta: model = get_user_model() fields = ['username', 'email', 'password', 'password2'] widgets = { 'password': fo...
[ "astatium135@gmail.com" ]
astatium135@gmail.com
56dd695b138dca5a6bf7c351da9c20617403eafe
ee7b7af4a64ebe64531d399047643c758bb52ff4
/language_features/context_manager_function.py
f305961adb12538328635662a1ba205d656bbb7d
[]
no_license
akurczyk/python_snippets
981efe98c34f2821280c48194594ee88dd04e254
470934337b7512bc38717d29d78a47660f1e1924
refs/heads/master
2020-08-04T08:58:26.594436
2019-11-04T12:24:07
2019-11-04T12:24:07
212,081,126
0
1
null
null
null
null
UTF-8
Python
false
false
294
py
from contextlib import contextmanager @contextmanager def managed_file(name): try: f = open(name, 'w') yield f finally: f.close() if __name__ == '__main__': with managed_file('hello.txt') as f: f.write('hello, world!') f.write('bye now')
[ "akurczyk000@gmail.com" ]
akurczyk000@gmail.com
01091882fe331fd373370da4d71e435c25c628d0
2321cb998cb6cec5f76d29a51e6c909ecc4fbb80
/mobilesapi/migrations/0002_auto_20180114_2143.py
7e79c2ea280bfbc8b6083ae1b5fc22331d10e96e
[]
no_license
yakupme/djangorestapi
cb9df23c7217bd7ec06e686ed44256599cf4bdbb
dc75ce45e30f40687921aa3a80e8cd00d22cede5
refs/heads/master
2021-07-23T18:03:23.021458
2021-02-25T21:28:00
2021-02-25T21:28:00
117,474,897
0
0
null
2021-06-10T18:10:30
2018-01-14T23:13:17
Python
UTF-8
Python
false
false
359
py
# Generated by Django 2.0.1 on 2018-01-14 21:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mobilesapi', '0001_initial'), ] operations = [ migrations.RenameField( model_name='mobilephone', old_name='color', ...
[ "sanliyakup63@hotmail.com" ]
sanliyakup63@hotmail.com
3cd4d485f0474492309b97043b16dcd5cf7368fe
91d70927a526f11e9c093ef62f5d83a3e613d9ee
/exercise14/Tehtävä_ L14T03.py
afa78f1d4710a24bde3657abf3a4f995b5eaaa8b
[]
no_license
RiikkaKokko/JAMK_ohjelmoinnin_perusteet
1812b92c9b6d8b1127ca2b54e93d17fa687920b6
2be91f6346a301232f06023425408d83196cab63
refs/heads/master
2023-07-23T02:58:06.639330
2021-08-23T13:20:06
2021-08-23T13:20:06
399,109,539
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
def isthiszero(num): try: if num == 0: print(True) return True if num < 0 or num >0: print(False) return False except TypeError: print("Ei ole numero") isthiszero(0)
[ "40693952+RiikkaKokko@users.noreply.github.com" ]
40693952+RiikkaKokko@users.noreply.github.com
4fb62606cad9bf2a3cf1162698aadd3079c88854
1b91bb9183ed370b12666eeaca7495d32c597d42
/backend/search/constants.py
c3cadc43259cd5862029fadada8041b8d31f48e2
[]
no_license
springle/bear
73ce1c3f4a754a16d7051ebfb3338e7fa7324a1f
c9067e6caaa883948731e38bcfca646f3550c3ed
refs/heads/master
2021-01-01T19:52:57.873091
2017-08-27T17:14:27
2017-08-27T17:14:27
98,707,312
3
0
null
2017-08-27T17:14:28
2017-07-29T04:05:52
Python
UTF-8
Python
false
false
2,391
py
SUBJECTS = ["STUDIES", "AEROSPC", "AFRICAM", "ARESEC", "AMERSTD", "AHMA", "ANTHRO", "AST", "ARABIC", "ARCH", "ARMENI", "ART", "ASAMST", "ASIANST", "ASTRON", "BANGLA", "BIOENG", "BIOLOGY", "BIOPHY", "BOSCRSR", "BUDDSTD", "BURMESE", "MBA", "PHDBA", "UGBA", "CATALAN", "CELTI...
[ "15springle@gmail.com" ]
15springle@gmail.com
7bf3462aa4b4a4d566459240135f3c2e468f94f2
484b03da7d3eabc8887e0f5a6be6c2287b0ebcc4
/fanta/fantaapp/migrations/0015_auto_20150807_1532.py
c8fdbef420d9017cebdc95faff9be239513a52f6
[]
no_license
abenassen/holyfootball
4ad3d025692f4dd0d7d5b09f8a190f131da4ca57
cd41a44b33276b8ff1a5d3d50f944f526826abd5
refs/heads/master
2020-12-03T00:20:13.079415
2017-09-02T09:50:23
2017-09-02T09:50:23
96,015,986
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('fantaapp', '0014_campionato_totale_giornate'), ] operations = [ migrations.AddField( model_name='giornata', ...
[ "abenassen@users.noreply.github.com" ]
abenassen@users.noreply.github.com
5aba4896e9be3f9c8beb096096e0585af4ce13cd
ea8dfb7065d55c173ba8a308c677cac365e35be8
/apps/base/models.py
760bcd74c166dd71b1d96730d8b4e17e61a07412
[]
no_license
INGANZAMARUMPU/Rapport_De_Stage
0ce30858ed112f5542f24b9f70f39ded33e8742b
c08f0df9df9b2e8b4d8388afbda45e3085a898b5
refs/heads/master
2023-03-21T11:00:39.661505
2021-03-11T21:09:16
2021-03-11T21:09:16
227,915,771
1
0
null
null
null
null
UTF-8
Python
false
false
10,055
py
from django.db import models from django.db.models import Sum from django.utils import timezone from django.contrib.auth.models import User from django.db.models.signals import post_save, pre_save from django.db.models import Q from channels.layers import get_channel_layer from asgiref.sync import async_to_sync from ...
[ "jonkur96@gmail.com" ]
jonkur96@gmail.com
552c7339865c1d10fc3edf9d8115ffc77c0ed417
9901a21f711e39c580742fa4a16f1d82b509520a
/CARLA_Tests_setup_guide/Running_tests/ROBOPILOT_agentsController.py
7abd1163e1fc18e51b15f0d8c273c0058a7a4e88
[]
no_license
phycomlab/CAV-Determinism
eb1e4868bcc9e343de5a3c06c0f868fa6088f322
b71dc08b29fdff3a17fc40ba2698b0b83fb83b96
refs/heads/master
2023-08-24T03:33:12.383061
2021-11-01T09:07:53
2021-11-01T09:07:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,111
py
#!/usr/bin/env python3 """ 2D Controller for ROBOPILOT MAS agents control """ import cutils import numpy as np class Controller2D(object): def __init__(self, waypoints): self.vars = cutils.CUtils() self._current_x = 0 self._current_y = 0 self._curr...
[ "ag14622@bristol.ac.uk" ]
ag14622@bristol.ac.uk
f0f0de57c840b1ce3d5e84ee2b3024a4a0488d1f
f04b305fae9f3ebef2ea84c23444c2405590e8b9
/input_prep/post_to_fits.py
c657b00330f751ced111edc45726bfb0d926647a
[]
no_license
infinitron/lira.parallel
2e63529386d9b8b01fc330e0286a87fe6ce71c9d
b6a8ba3123dc7445b42d3e938346dcb7be65b1a8
refs/heads/master
2023-08-15T05:47:48.919697
2021-10-16T05:06:19
2021-10-16T05:06:19
216,467,208
1
0
null
2021-10-16T05:06:19
2019-10-21T03:09:17
Python
UTF-8
Python
false
false
313
py
from astropy.io import fits import numpy as np import sys posterior_name = sys.argv[1] wcs_file = sys.argv[2] if len(sys.argv)==4): out_name = sys.argv[3] else: out_name = "post.fits" post = np.loadtxt(posterior_name) with fits.open(wcs_file) as hdul: hdul[0].data = post hdul.writeto(out_name)
[ "karthikreddy311@gmail.com" ]
karthikreddy311@gmail.com
c7bb12542e7df1fad18a2a6bfe2bd4fe89a0bf42
e509a50ab628065fd872694165b3c94ed4da11a2
/lib/python/mypi/console/color.py
a08810f90167991512a77f82e91a2c004c61da88
[]
no_license
dueckminor/mypi
37d886e2ea3d9f77ee06b27d77ab3cc44981b584
93f050d3b35f7d19bdf89dda024191f7a8d0bd7b
refs/heads/master
2023-06-28T10:37:28.332088
2023-06-11T15:24:27
2023-06-11T15:24:27
160,256,271
2
1
null
2020-02-12T18:31:43
2018-12-03T21:28:21
Shell
UTF-8
Python
false
false
509
py
from typing import Optional class Color: def reset(self): return "\033[0m" def use(self, fg:Optional[str]=None, bg:Optional[str]=None) -> str: result = "\033[" if fg: result += "38;"+fg if bg: if fg: result+=";" result += ...
[ "jochen@dueckminor.de" ]
jochen@dueckminor.de
f826bc0633eeb2cdbf91b1b3e14e80882e4b6be5
ac3a14d8147e29b717aca169bf3fc024a90a1f53
/doc/clawcode2html.py
69763797d0fa73773607e7ba30ee5ce13ad6f9a9
[ "BSD-3-Clause" ]
permissive
geoflows/D-Claw
d867cf620f20aee8839e7dce0ecb06f0069386b9
6bffb3c4819cdf925ee9b8af4e8e3a342735c10d
refs/heads/master
2023-03-18T18:51:05.656268
2023-03-08T20:48:34
2023-03-08T20:48:34
233,694,795
17
11
BSD-3-Clause
2023-08-31T16:03:35
2020-01-13T21:13:41
Fortran
UTF-8
Python
false
false
22,217
py
#!/usr/bin/env python # convert CLAWPACK source code, data files, READMEs, etc. into html. # for example, # clawcode2html filename.f # generates # filename.f.html # If filename.f.html already exists, you will be prompted before # overwriting unless the -f or --force flag is used, e.g. # clawcode2html --force fi...
[ "dgeorge@porterhouse.(none)" ]
dgeorge@porterhouse.(none)
914c113cd06d7d33285cce2f5634daa44d6ef737
b488c537e1e59838c52ba9cd7dbeba19eca9454d
/src/base/torchvision_dataset.py
a6698f3a78eca03724251408560c840e1fce4e80
[]
no_license
JuneKyu/torch-multi-class-deepsvdd-for-text
73e61357cbfa34756bf2bbcb03552738cfca2e8a
54fb48021af7bf7b55b75a3c4160646264447d7c
refs/heads/main
2023-06-13T23:23:36.329996
2021-07-08T08:36:54
2021-07-08T08:36:54
377,061,764
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
from .base_dataset import BaseADDataset from torch.utils.data import DataLoader class TorchvisionDataset(BaseADDataset): """TorchvisionDataset class for datasets already implemented in torchvision.datasets.""" def __init__(self, root: str): super().__init__(root) def loaders(self, batch_size: in...
[ "IDbluefish@gmail.com" ]
IDbluefish@gmail.com
fef8dcaef28a7612670fddc39332e361aae6e4e7
834b55f2f827520126f6dbc0bf67f8f07758a721
/find_features.py
76b73263a919600d944138986250abdf13ab9a00
[]
no_license
Drozdetskiy/NLTPSentiments
f438439c407c5cce40e52342dff8e98c3eb2db85
92e36fd6d908d89af8f29aff4561c307f5deb5ad
refs/heads/master
2020-05-29T13:46:14.869065
2019-06-18T12:35:43
2019-06-18T12:35:43
189,172,635
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
from nltk.tokenize import word_tokenize def find_features(document, word_features): words = word_tokenize(document) features = {} for word in word_features: features[word] = (word in words) return features
[ "m.drozdetskiy@gmail.com" ]
m.drozdetskiy@gmail.com
d6ef823641bee5acc26751e3ce332a26bd3a391b
4086484d03ea0b0effc6d52cd6d59892ef7f3464
/audio_only/test.py
5e1e75018f4a77438db9e55a87771a539d0f26e0
[ "MIT" ]
permissive
LynnF62/deep_avsr
aec6321bb3eefd429d2467d3d410a6f53fb0391f
350a94eaf247f147a43ec57e47c957b7d0731b00
refs/heads/master
2022-11-11T16:35:00.209080
2020-07-06T16:28:53
2020-07-06T16:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,019
py
import torch import torch.nn as nn from torch.utils.data import DataLoader import numpy as np from config import args from models.audio_net import AudioNet from models.lrs2_char_lm import LRS2CharLM from data.lrs2_dataset import LRS2Main from data.utils import collate_fn from utils.general import evaluate np.random...
[ "smeetrs@gmail.com" ]
smeetrs@gmail.com
62bf302da099d5d89b59fa78962624077ab8b4a8
56a66c1e758e73c31e26e26c87ebe53bec68f8f3
/Python/copy.py
851f50385e3b61f6988b3c499303a6485d767d70
[]
no_license
rohanJa/LCM-LeetCodeMaychallenge-
181ed33b3b02f49948234231c73291007470a19c
fd99026760cc9e0a8b696c1cd866792d8ded2186
refs/heads/master
2022-12-14T20:04:59.406723
2020-09-05T16:25:13
2020-09-05T16:25:13
260,500,990
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
first = [1, 2, 3] copyList = first second = first.copy() first.append(4) first.append(9) first.pop(0) # both copyList and second will contain the copy of 'first' list # But differnce is that changes in 'first' is shown in copyList # but if we use 'copy()' method to copy the list 'second' list # and no changes will b...
[ "rohan.jain150300@gmail.com" ]
rohan.jain150300@gmail.com
94c3b944540d771ce64d9ea7a1e950541b3c03ff
e6762d218e7faed894e400390618201dbaaab1a1
/apps/registrar/migrations/0002_auto_20200928_2054.py
23beb0894b7414ac6131bf5e78bce892517c5a34
[]
no_license
brunofnz/OpenCargo
9f4ef888bce1cb57cc3f09ae07428cdd627b1998
2aa9131225fc74f4bc080e03e6c4d99baf40e49c
refs/heads/master
2022-12-25T08:28:52.110514
2020-10-01T11:09:37
2020-10-01T11:09:37
295,845,825
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# Generated by Django 3.1 on 2020-09-28 23:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registrar', '0001_initial'), ] operations = [ migrations.AddField( model_name='usuario', name='apellido', ...
[ "brunofernandez@protonmail.com" ]
brunofernandez@protonmail.com
402ccdca5869a573340f6de12ef5e4dbbe9e588a
e6f0b705a768229c160a2603393709b4b8a683be
/.history/books/api/views_20210424164436.py
c4d52011855368b33b5770873ed269be0a6587e8
[]
no_license
walaaElbasha/bookstore_django_basics
0741e16e3fe69d4460c095bb8afc964f52d96f1d
2037a434d7bdb0ca1954ca3de9f56655b77ec64e
refs/heads/main
2023-04-19T07:01:05.416800
2021-04-28T15:04:15
2021-04-28T15:04:15
361,507,660
0
0
null
null
null
null
UTF-8
Python
false
false
2,712
py
from django .shortcuts import render,redirect from rest_framework.response import Response from rest_framework import status from books.models import Book,Isbn from .serializers import IsbnSerializer from rest_framework.decorators import api_view from rest_framework.permissions import IsAuthenticated,BasePermission fro...
[ "walaaelbasha40@yahoo.com" ]
walaaelbasha40@yahoo.com
96c9b641dcb30197ee5eb0e21cc77157fe2e5983
d8659034ce522e4bfe4d83f8b0876e3fbe93af9a
/Source/code for pulling data from wiki/Wikidataextraction6.py
12d59d42732678be6c309f3952b5da0cc79fb046
[]
no_license
ganeshtaduri/KDM
a5ab0c2449efa0d09fce80b8b0118d9a44e7a47f
3c0f6890c91dac3a5f468ce0e2d4473f6b60dfa0
refs/heads/master
2021-01-19T05:44:13.846255
2016-08-01T03:02:37
2016-08-01T03:02:51
60,810,920
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
import wikipedia data=wikipedia.page("Barack Obama") file = open('output_wiki_barackObama.txt', 'w',encoding='utf8') file.write(data.content) file.close()
[ "tejo.249@gmail.com" ]
tejo.249@gmail.com
d07bcfb2c241f907b2a2c1ba805810cfe29391c0
25db82a8dc1ada98e8cfe2026d8be71a1947b82b
/assending.py
eb1490332977edda59c783140becb670e8c6679c
[]
no_license
VANITHAVIJAYA/codekata
49bf8d5c42815cf2d0afdb512734489cadf42f40
83a9ffdd3e8c34e94e6babfaf072dfc18ed3f523
refs/heads/master
2021-01-11T11:16:58.018289
2017-06-23T09:05:16
2017-06-23T09:05:16
94,966,833
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
print 'Enter numers,use q to stop' l = [] while True: user_input = raw_input('Enter numers: ') if user_input == 'q': break else: l.append(user_input) num_list = (float(i) for i in l) #Ascending order print sorted(num_list)
[ "noreply@github.com" ]
noreply@github.com
015e7297370fb8d5282db0590943d73e1a08a4d7
002160a05a28245e4cb3b9130b216fe39a5f4e82
/OOP concepts using Pygame/Modular/blob.py
877f0908f1622d5fe64db941de0551ea97c922f9
[]
no_license
ag93/Python-Done-Correctly
e007068d3992f834472f892e732cb3a59302d74a
2c5437a8ecea56d8010644867c5fcbd3134823c7
refs/heads/master
2021-01-25T14:11:55.919381
2018-03-10T00:41:44
2018-03-10T00:41:44
123,669,760
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
# -*- coding: utf-8 -*- import random class Blob: def __init__(self, color, x_boundary, y_boundary, size_range=(4,8), movement_range=(-1,2)): self.size = random.randrange(size_range[0],size_range[1]) self.color = color self.x_boundary = x_boundary self.y_boundary = y_bound...
[ "noreply@github.com" ]
noreply@github.com
07b42e56bdcb00b5333fcc78faf528bba92301c4
c8dc1613dcffc64bb3aa9cb7427601b979543bc6
/test.py
5403b5b4f64e6f661b49c7e07d85e1aa5ee0049d
[]
no_license
minhdeal/MultivariateESN
e9ec9c98c25b335b0b64abaa81f00c187e0120a6
e6889c2d50d4bfc05ca515a78f6e176c560187b3
refs/heads/master
2021-09-23T01:07:15.817726
2018-09-19T14:47:32
2018-09-19T14:47:32
124,038,864
4
1
null
null
null
null
UTF-8
Python
false
false
2,166
py
import csv """filePath = './results/running_time_1.csv' writePath = './results/running_time_1_final.csv' models = ['bayelinear_identity_','bayeridge_identity_','linsvr_identity_','nusvr_identity_','ridge_identity_'] for model in models: for i in range(100, 1001, 100): runTime = 0 count = 0 ...
[ "minhhoang@kaist.ac.kr" ]
minhhoang@kaist.ac.kr
368d60548ecc23eaf52e5afa01d960e3f545a6da
ad33bb5ec3e8289bb639d34f44e4e5ecb7dc6f37
/venv/Scripts/easy_install-3.7-script.py
1e8d8ff19895f9a34da31c799c834757c156e6b8
[]
no_license
liang979zhang/test
f267d56f1b5388e5ac05fa4d00e4b49ca3343a0f
6cf960dc63e1e757f3224457a95e1a207e74cb5e
refs/heads/master
2020-04-08T18:57:42.914824
2018-12-07T10:24:00
2018-12-07T10:24:00
159,632,215
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
#!E:\untitled\test\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
[ "zhangdl@yemast.com" ]
zhangdl@yemast.com
c2feae0b468b3dc717cf3c5b2078fee77a463cfc
31be63efb3884ce91e52cb9068aa43cb56e0e7e8
/Reference Code/platform_jumper.py
d23ceb92beb3ef2ad4e08cb0e716bd961bd68a77
[]
no_license
PRMorgan/State-of-the-Artificial-Intelligence
1526b93bfa25e85c2c720f7d75641000f5998a66
ffbab06ca11ef0ba14fa3a370096caf6a9d5e55f
refs/heads/master
2020-04-25T17:42:31.258460
2019-05-15T03:30:20
2019-05-15T03:30:20
172,958,363
0
0
null
null
null
null
UTF-8
Python
false
false
9,264
py
""" Sample Python/Pygame Programs Simpson College Computer Science http://programarcadegames.com/ http://simpson.edu/computer-science/ From: http://programarcadegames.com/python_examples/f.php?file=platform_jumper.py Explanation video: http://youtu.be/BCxWJgN4Nnc Part of a series: http://programarcade...
[ "noreply@github.com" ]
noreply@github.com
8e7e75ffd0b578caa08d98c18d046709753ebc9f
ad4a293f143ceb199eaa218983be340ec58fa341
/elemental/idl/scripts/systembase.py
c4304b38e482980e0f9ad69b9bce5892a4f8afc2
[]
no_license
vaadin/gwt
2e2cab6052a4db94eaef1ea631bc89d5a630c740
9246391d1aa2d00a07700bfcc1d2fe6540eee504
refs/heads/master
2021-06-03T23:53:59.968561
2019-08-02T12:51:39
2019-08-02T12:51:39
13,295,334
7
14
null
2020-10-13T06:46:53
2013-10-03T10:07:54
Java
UTF-8
Python
false
false
3,711
py
#!/usr/bin/python # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """This module provides base functionality for systems to generate Dart APIs from the ID...
[ "cromwellian@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7" ]
cromwellian@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7
fed760e0bcee320cbb5cc2127c0e3b1f67ca9887
095f078051aa5dda90cbc65df68134fd5ff00f62
/python/sqlalchemy/src/profile.py
250337611cdd3bd442dda14f10d260e8fb67a4ea
[ "LicenseRef-scancode-public-domain" ]
permissive
ttggaa/snippets
d3e8e1d48176ad61c28ffc8e33f1b3283f03c1da
1f1ef23f6bdea59b9487da8350d76c3003b23dd9
refs/heads/master
2020-04-22T00:40:44.602758
2019-01-28T09:06:34
2019-01-28T09:11:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
# -*- coding: utf-8 -*- class profile: __tablename__ = 'profile' id = Column(INTEGER(11), primary_key=True, nullable=False) display_name = Column(VARCHAR(255), nullable=False)
[ "aleiphoenix@gmail.com" ]
aleiphoenix@gmail.com
3e260bff96fd821f30d2ae2facff93c6163e5195
7a30591411039d90ad9eb1c11b3a96fea15f4d66
/Assignments/Devan/4 Django/links_django/links_app/admin.py
7d379af40ab99d05a96053cdef13440a77b2278f
[]
no_license
PdxCodeGuild/class_mudpuppy
60fe3cc06c23da8c8c08257a2b9b87f7593c9fb6
36e08862d1bbcc9a4b535d948199e569ecbdd115
refs/heads/master
2022-11-29T15:25:26.721828
2021-07-15T22:20:11
2021-07-15T22:20:11
248,027,316
5
2
null
2022-11-22T06:30:19
2020-03-17T17:06:14
Python
UTF-8
Python
false
false
274
py
from django.contrib import admin from .models import Link, Comment # Register your models here. class LinkAdmin(admin.ModelAdmin): pass class CommentAdmin(admin.ModelAdmin): pass admin.site.register(Link, LinkAdmin) admin.site.register(Comment, CommentAdmin)
[ "devan@createpnw.com" ]
devan@createpnw.com
cf4790a12d3fe92409759a5b7376972ee9141db4
0ac4ccd48b652e42ba776ab7fee10781760c444b
/hansardscraper/apps.py
f30c842040a35ca1927b8599b4c474b483a9e31c
[]
no_license
Jasper-Koops/ThesisToolBox
5ef1f810f1763f1d6dd262fdb59c02b3024c3e21
48a15fcad6c29683092ab0a72ff308acf622c3a8
refs/heads/master
2022-12-11T15:05:26.260187
2018-05-02T21:41:08
2018-05-02T21:41:08
109,586,981
1
0
null
2022-12-07T23:51:27
2017-11-05T14:33:44
Python
UTF-8
Python
false
false
103
py
from django.apps import AppConfig class HansardscraperConfig(AppConfig): name = 'hansardscraper'
[ "jasperkoops91@gmail.com" ]
jasperkoops91@gmail.com
c7d568aa9eace0957fa12ebcbc59a6088b37bf31
2572a35d4861b1f25add1bf746474636d30134af
/Regex/matching_character_ranges.py
cd108c0f4e072daa738c993a7d4c6a4164099282
[]
no_license
gargi13832/Hackerrank-Problems
b1e78f42f3627609ddf08d546da7a84d139eb6f2
84c6a03ccfaaf5fef91938d3f566af92cc913a12
refs/heads/master
2023-01-04T22:22:40.830760
2020-10-29T17:31:17
2020-10-29T17:31:17
289,316,477
2
0
null
null
null
null
UTF-8
Python
false
false
70
py
Regex_Pattern = r'^[a-z][1-9][^a-z][^A-Z][A-Z]' # Do not delete 'r'.
[ "you@example.com" ]
you@example.com
79a3a476ca30b1e4a997e58c1852b7ece681f724
afbfb4479c031c4515d623507c3529d019b2506a
/link/json/collection.py
070cfd0e3a2b277dd4bd2c73129a02fd1bc2979a
[]
no_license
linkdd/link.json
22e95664635986208a8ce51d6d7d410bb5012f68
2169a4252d3393def0e37d3a1aa167dd0b77c730
refs/heads/master
2020-04-15T13:38:33.317573
2016-09-16T13:50:41
2016-09-16T13:50:41
58,967,314
0
0
null
null
null
null
UTF-8
Python
false
false
5,275
py
# -*- coding: utf-8 -*- from b3j0f.conf import Configurable, category, Parameter from link.json.schema import JsonSchema from link.json import CONF_BASE_PATH DEFAULT_SCHEMA = 'http://hyperschema.org/mediatypes/collection-json.json' @Configurable( paths='{0}/collection.conf'.format(CONF_BASE_PATH), conf=ca...
[ "david.jose.delassus@gmail.com" ]
david.jose.delassus@gmail.com
9529c564da291e12800f96d8b1b8fce1d0949560
13df81616fa290fd66443b4ec7fa7b07b1d6c059
/python/TEST_socket_linux.py
751c7e53dc7853a78de25c00e3bd9d40ab266bdb
[ "BSD-3-Clause" ]
permissive
chaserhkj/pinktrace
583cbdca330c48710d8efc4e778d248f4d731b65
3974060393d2aa45d1ee3ce7512c69df4838be92
refs/heads/master
2020-04-06T04:41:28.486715
2015-07-28T19:53:58
2015-07-28T19:53:58
39,854,649
0
0
null
2015-07-28T19:52:41
2015-07-28T19:52:41
null
UTF-8
Python
false
false
10,113
py
#!/usr/bin/env python # coding: utf-8 import os, signal, socket, sys, unittest sys.path.insert(0, '.') import pinktrace import pinktrace.event import pinktrace.socket import pinktrace.syscall import pinktrace.trace TEST_UNIX_SOCKET = './TEST_UNIX_SOCKET' class TestSocketLinux_01(unittest.TestCase): def test_01_...
[ "alip@exherbo.org" ]
alip@exherbo.org
2ba22af155b208a3eda1a332131abfc070d386e9
10955d8d629bd30884b84d0798130ad8c5a69a22
/registration/migrations/0001_initial.py
ff0742218c8f391426b3b9a3554b2a9ae5c3c13b
[]
no_license
fiterV/Registration
19e9e2e4905656971076553642bf3852fe26c06b
bc124659b85d86c1a5f760d14ae90e3f846d3ff3
refs/heads/master
2021-01-12T09:19:43.186123
2017-02-08T12:42:42
2017-02-08T12:42:42
81,327,252
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-29 18:50 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "vadym_prokopec@mail.ru" ]
vadym_prokopec@mail.ru
5b3a4cf867926248aefb635b5b895a9b7d33a3f8
6a087c6fb00ba91f815f997450306a3fac020a8b
/Test_case/CLGL/test自定义车辆.py
6a0ed72cd83c09c38f031f3ee7b5841b4c947e2f
[]
no_license
anghu3/xizangbianfang
cd2037af5e06cc558bf3ef9ff145e0c33495139b
f4f35195963017c22bd4875853ef31f280f4b6a8
refs/heads/master
2020-03-28T22:31:06.591507
2018-12-14T07:36:47
2018-12-14T07:36:47
149,238,712
0
0
null
null
null
null
UTF-8
Python
false
false
7,930
py
# -*- coding: utf-8 -*- """ Created on Thu Jun 21 14:11:17 2018 @author: PCCC """ import unittest from selenium import webdriver from selenium.webdriver.support.ui import Select import time import os import re from public_package.pubilc_package import url,login_name,login_name_test,login_password,login_password_test f...
[ "935331858@qq.com" ]
935331858@qq.com
8c09e47f034ac9bfc66a807b3bcb999fcb1ecc19
19f5a51e5738afd251e108fc710d38e75ce84082
/Django로 배우는 쉽고 빠른 웹 개발 파이썬 웹 프로그래밍/ch3/books/models.py
e5d653d2605bd5fe91c719853d9c12c6d779eb38
[]
no_license
mildsalmon/Study_Web
d7e07737df6a9ac02f94ab18b1421119b47f5994
a9cecb32e3d98abeeef2db1409f8b1dc43ba9df3
refs/heads/master
2023-08-18T21:12:34.057285
2021-10-03T09:58:15
2021-10-03T09:58:15
355,178,604
0
0
null
2021-10-03T09:58:16
2021-04-06T12:22:17
Python
UTF-8
Python
false
false
777
py
from django.db import models # Create your models here. from django.db import models class Book(models.Model): title = models.CharField(max_length=100) authors = models.ManyToManyField('Author') publisher = models.ForeignKey('Publisher', on_delete=models.CASCADE) publication_date = models.DateField()...
[ "mildsalmon@gmail.com" ]
mildsalmon@gmail.com
070a3e6dbfc8c13e49c0b1c55f8c1dcb25b13587
53d6ceb5f8220f9c45180533d3554d62bc71bd22
/PYTHON v21.1/week3/706/recognizePython/file.py
4e6889bbb1f383dfc126672b836a4ab4016ef42e
[]
no_license
kollinchen1/bootcamp
c465894b8ba0d617d6c12ce1fbc73abe5b47cf68
61015381c9255db076da16d8b968d38457f61b1e
refs/heads/master
2023-07-13T06:21:16.248439
2021-08-30T23:59:16
2021-08-30T23:59:16
379,021,123
1
0
null
null
null
null
UTF-8
Python
false
false
3,018
py
num1 = 42 #variable declaration, initialize integer num2 = 2.3 #variable declaration, initialize float boolean = True #variable declaration, initialize boolean string = 'Hello World' #variable declaration, initialize string pizza_toppings = ['Pepperoni', 'Sausage', 'Jalepenos', 'Cheese', 'Olives'] #variable declaration...
[ "kollinchen1@hotmail.com" ]
kollinchen1@hotmail.com
09b998759242491dc53a58d7b201ee411036bd42
2d390ca34b9fd4f455e674ae5e2920589e6c8a92
/aprspass.py
71602db1b696a6732a402d543d359b3197573f0e
[ "BSD-2-Clause" ]
permissive
sgub/aprs-utils
79198f19a2a270bb2e65e4f4ffa8f5bbb9f6159f
6e2b5960deae464ca5b5c2098b44835dd3476e0d
refs/heads/master
2020-03-18T06:23:25.516441
2018-05-23T02:23:05
2018-05-23T02:23:05
134,392,526
0
0
null
2018-05-22T11:26:55
2018-05-22T09:32:30
Python
UTF-8
Python
false
false
1,071
py
#!/usr/bin/python # Generate APRS-IS passcode from CALLSIGN # algorithm from Xastir callpass.c kKEY = 0x73e2 def doHash(callsign): rootCall = callsign.split("-")[0].upper() + '\0' # Strip ssid part from call and convert to uppercase. hash = kKEY # Initialize with the key value i = 0 for i in ra...
[ "noreply@github.com" ]
noreply@github.com
0d7968ee98adae50321febaf92c0941dd2bb223c
956cfa6aa3da0f56ccc0d5b283a30ee4be535335
/app/cli/__init__.py
4a5c94391f352fbebe04bb5468311a344453c4d7
[]
no_license
churnikov/october-2021-piter-python-meetup-code
744f0b046dab1f3f9db579bae86957c4d8fe10e6
94abcd94541e799865dc4252c6d9b467d56eb47c
refs/heads/master
2023-08-31T23:11:18.418452
2021-10-21T16:25:37
2021-10-21T16:25:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
from .api import * from .main import safe_cli
[ "nikita@chur.ru" ]
nikita@chur.ru
e7f924a35306684276a1a9efa192f5ee6e520d39
57b2ea7edadc61d97aa8935d23372c95e0b2ba3f
/Slim Resnet V2/datasets/dataset_factory.py
82813aa3594d2cd54899cc099f398ed68905e807
[]
no_license
kirnh/Miscellaneous
28442f15f3f646f76da6a6ffa4e0b783306bb2ce
0bb85e792cc51d01e760681e80f27a64d1217d35
refs/heads/master
2021-01-20T07:23:41.596393
2018-11-18T10:09:25
2018-11-18T10:09:25
89,998,584
0
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
# Copyright 2016 The TensorFlow 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 applica...
[ "kiran.hegde121@gmail.com" ]
kiran.hegde121@gmail.com
df99f66d6a4ea213d5897a886fa15861e00d5972
dcd772f567ef8a8a1173a9f437cd68f211fb9362
/tests/framework/Samplers/EnsembledSampler/EnsembleForwardTestFunction/funct2.py
02dee0def8bbab059befbaac1ff1f937f1f2f1a2
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
idaholab/raven
39cdce98ad916c638399232cdc01a9be00e200a2
2b16e7aa3325fe84cab2477947a951414c635381
refs/heads/devel
2023-08-31T08:40:16.653099
2023-08-29T16:21:51
2023-08-29T16:21:51
85,989,537
201
126
Apache-2.0
2023-09-13T21:55:43
2017-03-23T19:29:27
C++
UTF-8
Python
false
false
57
py
def evaluate(self): value = 2.0*self.x2 return value
[ "andrea.alfonsi@inl.gov" ]
andrea.alfonsi@inl.gov
89aa7f89ccda59919841f5499fcc1e1cadfa37fa
496318e9bff60256495a695c7b00885c090a33d2
/haunted_mansion_game/mansion_object.py
c296d056c3a24c8dfda90260c089d3939bdd4e7f
[]
no_license
nowickis/The-Haunted-Mansion-Game
ec364fcb8624d0b90e735b4f9e077a8d38aec6af
35299c5d0bb9b8d8dd2c594e482088a14b1b2a80
refs/heads/master
2020-04-19T08:24:23.427800
2019-01-29T02:11:58
2019-01-29T02:11:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
""" This super class is inherited by other objects in the game Create an object from a json file by passing the filename into init Ex. x = MansionObject("../resources/player/player.json") """ import json class MansionObject: def __init__(self, file_name): self.__dict__ = self.get_json(file_name) ...
[ "nguyjere@oregonstate.edu" ]
nguyjere@oregonstate.edu
da110465a674ab0792226d4ac273b86fc9ed28ac
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03090/s812303792.py
0fb18fdf310d674ae4f216404ba354a1c71ffbf6
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
#!/usr/bin/env python3 #AGC32 B import sys import math from bisect import bisect_right as br from bisect import bisect_left as bl sys.setrecursionlimit(1000000000) from heapq import heappush, heappop,heappushpop from collections import defaultdict from itertools import accumulate from collections import Counter from c...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
33d53cd0e67aaa79165fa39ddcc33466d91b89bc
5d580f692bf84202ebdc2a2b5601eff9de3aa555
/test-csv.py
b5f6b99192caaab68b3780ff635daf568af2106b
[]
no_license
tf302/2020-holidays-python
9116d85348946fe7d3e800e6299bfd2ca347b07e
4d5c9f5f8d0d491c4c20ec50a3115b28c8f14aea
refs/heads/master
2021-01-08T02:01:31.530178
2020-03-05T13:14:49
2020-03-05T13:14:49
241,878,406
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
import csv with open("mytest.csv",'a') as file: #file.write('hahahah') #文件的形式写入 #读取数据 #result = csv.reader(file) #print(result) #for content in result: # print(content ) #写入 writer = csv.writer(file) #writer是实例化对象 writer.writerow(['特','特特','特特特'])#writerow()是写入的方法,括号内的数据是列表形式
[ "1007278472@qq.com" ]
1007278472@qq.com
5570d8a59a3d6efc3e044e8e6c982bb16f856596
5007e600f9759008105d8ba0ff5950612752fb04
/CV0101EN-04-Arithmetic_Operations_on_Images.py
0de3a07b512662b9fd76593bb76fec630561cf8e
[ "Apache-2.0" ]
permissive
omsharma43/Computer-Vision-with-Python
394ae25ea74cf497f41ad34969d977fa0f26c8b0
8eebec61f0fdacb05e122460d6845a32ae506c8f
refs/heads/main
2023-03-21T11:17:40.958478
2021-03-15T10:42:01
2021-03-15T10:42:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,558
py
# Arithmetic Operations on Images """ * Learn several arithmetic operations on images like addition, subtraction, bitwise operations etc. * You will learn these functions : cv2.add(), cv2.addWeighted() etc. """ import cv2 as cv import numpy as np x = np.uint8([250]) y = np.uint8([10]) print("Computer visio...
[ "noreply@github.com" ]
noreply@github.com
4c0e6b5800b0836bc35be4c1875d00818562ab51
e5f8aee6f610da3c3fcb8e7fbbe8da578f75aba1
/list2.py
456157d11d400988b4d480d1fb9d6c5988e601fd
[]
no_license
lihua927/python
bb500109f86dd224208a8eab27c97f9e49b5ced5
8eabebfd909b3fb95205c74015557f7a588c1433
refs/heads/main
2023-09-03T20:31:25.332836
2021-10-29T08:44:57
2021-10-29T08:44:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
#date: 2021.10.21 #author: 李天王 #desc: 列表的排序 #sort方法永久改变元素顺序 names=['pig','cat','dog','apple'] print(f'This is old sort:\n{names}') names.sort() print(f'This is new sort:\n{names}') print('names\n') #sorted()函数临时改变列表值 friends=['lzh','adf','cdf','mnt'] print(f'It is old sort:\n{friends}') print(f'It is new sort(small--...
[ "2074105904@qq.com" ]
2074105904@qq.com
5c848c88d6c4ae945db5c414870ec46ba83c690d
ff46bda36eb4a74409a567c45d0b72c14290aef0
/Crawler/nextmgzNews/tools.py
b541bf3838dd1bb4326f00dd64bd8ad1958d6a7a
[]
no_license
Johnny1110/python_in_action
103d16acb7503e11dad77a876ee00d322bf36d6b
5fe7cfe69b5c5d5e41e7ad26a9dedd06b0dac55b
refs/heads/master
2022-11-12T20:04:37.086386
2020-07-02T09:30:05
2020-07-02T09:30:05
218,039,078
1
0
null
null
null
null
UTF-8
Python
false
false
2,741
py
import datetime import hashlib import re site = "test_site_id" def sTransToDate(param): sec = int(param.strip()) return datetime.datetime.fromtimestamp(sec).__str__() def extractCutoffDate(date_str): date = datetime.datetime.strptime(date_str, "%Y-%m-%d") return date def toMD5(data): m = hashlib...
[ "Jarvan1110@gmail.com" ]
Jarvan1110@gmail.com
c8a81c58a5ba30e56493fc3f9f751e59848f81d9
fab14fae2b494068aa793901d76464afb965df7e
/benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/13-sender_receiver_34.py
716b7a6f40a03d13a219212d8ffce30ce7cdb74a
[ "MIT" ]
permissive
teodorov/F3
673f6f9ccc25acdfdecbfc180f439253474ba250
c863215c318d7d5f258eb9be38c6962cf6863b52
refs/heads/master
2023-08-04T17:37:38.771863
2021-09-16T07:38:28
2021-09-16T07:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,103
py
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
[ "en.magnago@gmail.com" ]
en.magnago@gmail.com
d76ae3bb7dba996c8265e7179b8383a14b9ace5d
b3c3ea7aaf98abdb2fa021ff11910f0de7ef1933
/ec2_check_security_groups_lambda.py
42378d36468b955099f0153214ed2bfd661f286d
[]
no_license
Techsture/python
e06d9bd8eb4e9b815cc30ab8d9b7efa0d99fb20c
5a300f28b02570bf4fca34390baafe6ba8aeafb4
refs/heads/master
2022-06-19T06:35:18.504301
2022-06-12T06:36:02
2022-06-12T06:36:02
87,389,026
0
1
null
null
null
null
UTF-8
Python
false
false
1,677
py
#!/usr/bin/python # This script checks all security groups in our account for 0.0.0.0/0. # It can easily be extended to add other CIDR ranges as necessary in the future. # Replace anything in the <>'s with your account specifics. import boto3 import json def lambda_handler(json_input, context): ec2_client = boto3...
[ "mandrews4@apple.com" ]
mandrews4@apple.com
f09284ebfcdeefd890f65edee955d49c36cd1b1a
a7dfa187acfa7b328d372c15bc8e169ff97f7aef
/pd_mesh_net/utils/optimizers.py
627c7d2bb8ffd555086e99bf6ca5000d32aa613c
[ "MIT" ]
permissive
Easy-Shu/PD-MeshNet
131c5fddadcc0fd91f027f55266ed5358663053e
e3f6c01ceff260778daf5fea66125413309e4399
refs/heads/master
2023-08-23T18:32:37.349965
2021-10-04T14:16:56
2021-10-04T14:16:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
import torch import warnings def create_optimizer(optimizer_type, network_parameters, **optimizer_params): r"""Creates an instance of the input optimizer with the input parameters. Args: optimizer_type (str): Name that identifies the optimizer. Valid values are: `adam`. network_pa...
[ "francesco.milano172@gmail.com" ]
francesco.milano172@gmail.com
d4895c6f61bf053c4985db27542ac4c9168fd556
567f0c862acdc46700db51cf6e4019ed0650b87c
/src/lib/detector/hash.py
9e0df3cb4577c85170c0e8f152f9577e0560d030
[]
no_license
pking74/dump-scraper
6cc9aae3489b310c7c65f1193da66448c11d2a46
a22b46b47afd5d2e4dfe8b268e750977afcf078d
refs/heads/master
2020-05-30T13:25:37.432599
2015-06-02T19:55:14
2015-06-02T19:55:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,280
py
__author__ = 'Davide Tampellini' __copyright__ = '2015 Davide Tampellini - FabbricaBinaria' __license__ = 'GNU GPL version 3 or later' import re from lib.detector.abstract import AbstractDetector class HashDetector(AbstractDetector): def __init__(self): # Order MATTERS! Functions to detect false positive...
[ "tampe125@gmail.com" ]
tampe125@gmail.com
ef846b1ddbe67e81af48f8fcc51c77c3cdafeaca
c3f86673016fc0a97dbf44727821a2ceb24efd05
/examples/maxcut.py
2bb39e42f22aa327d33df54ab101495483636fcd
[ "MIT" ]
permissive
xc35/qcqp
e2e4a4dd18d347dd39fb387516d9ff2bc016b566
42f959a389db0697b50755addbf475f5b942a9c1
refs/heads/master
2020-12-31T07:33:25.854934
2017-03-22T22:12:59
2017-03-22T22:12:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
#!/usr/bin/python import numpy as np import cvxpy as cvx from qcqp import * n = 25 np.random.seed(1) # Make adjacency matrix. p = 0.2 W = np.asmatrix(np.random.uniform(low=0.0, high=1.0, size=(n, n))) for i in range(n): W[i, i] = 1 for j in range(i+1, n): W[j, i] = W[i, j] W = (W < p).astype(float) x...
[ "jpark@cs.stanford.edu" ]
jpark@cs.stanford.edu
b14632706a098482c189705649ceeb40c19f2c46
ca3cbcabbebf7ddbb74eddec9bb677b9e8983377
/Challenge/rna.py
b23ab737f655eeaaab7ab4e37d6ba9c95222a51c
[]
no_license
tkss007/cs519
cdeca260b9552540c08cee0e5481b66277ffacd5
7e6bd7fbd50b9109100ff1d0da3f12eb8ceeb0d4
refs/heads/master
2020-04-09T13:17:47.343207
2018-12-04T14:26:59
2018-12-04T14:26:59
160,369,350
0
0
null
null
null
null
UTF-8
Python
false
false
2,405
py
from collections import defaultdict pair = frozenset([('A','U'),('G','C'),('G','U'),('U','A'),('C','G'),('U','G')]) def best(squence): global pair table = defaultdict(tuple) opt = defaultdict(int) end = len(squence) for i in xrange(len(squence)): table[i, i + 1] = squence[i] f...
[ "noreply@github.com" ]
noreply@github.com
ece04518d1f3b5c04a7929b56eda8a1b3b1d4c0e
04449b6d8df371c1aea79fea7f00b374e60b1951
/model/vgg.py
6146a6d17b5b338b9fa4a8baebdb3db63fc29f77
[]
no_license
zyting1014/prunning_zhu
c5fad7d618ad158aa86943d19ba88ce6a82cc3f4
11d795943cc57e5936f0ed16a674ecf00136911a
refs/heads/main
2023-06-03T16:31:38.407893
2021-06-21T13:26:08
2021-06-21T13:26:08
369,244,702
0
0
null
null
null
null
UTF-8
Python
false
false
6,545
py
import os import torch import torch.nn as nn import torch.utils.model_zoo as model_zoo from model import common from util import utility def make_model(args, parent=False): return VGG(args[0]) # reference: torchvision class VGG(nn.Module): def __init__(self, args, conv3x3=common.default_conv, conv1x1=None)...
[ "16301083@bjtu.edu.cn" ]
16301083@bjtu.edu.cn
5413d031417309e735835404adb303849df86bc5
db8e966eff8f2bc46b2d4eb55390aa06d839e1d8
/1142.py
9ae6b8645a1ece81839594e7362d490ff759f732
[ "Apache-2.0" ]
permissive
luizgallas/uri_iniciante
1e50057bedec8331c0d61c84922524c2579100d0
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
refs/heads/master
2020-05-19T07:37:44.097170
2019-07-05T14:19:56
2019-07-05T14:19:56
184,758,182
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
num = int(input()) c = 1 for i in range(num): print("%d %d %d PUM"%(c, c+1, c+2)) c+=4
[ "luizgallas@outlook.com" ]
luizgallas@outlook.com
059631a4c4185b913fd290a6b60c75c541f17a35
7f70bf174ac53fc7149859ce5e8eee9cb162a1f3
/testelife.py
0791b26973624d2ee8d23da50ded4a2cf984442e
[]
no_license
LuanAngeloRocha/testePython
606ee07c0eaf946053d72f5c7a0352337750d67a
5a03d08f47d3fb465639964bdf6254e3efc9dee5
refs/heads/main
2023-08-23T11:21:29.736545
2021-10-03T03:39:00
2021-10-03T03:39:00
412,944,520
0
0
null
null
null
null
UTF-8
Python
false
false
2,120
py
import datetime import pandas as pd import dados.csv #importando o arquivo csv com os dados dados = pd.read_csv("dados.csv") #Resposta para a pergunta ---> Qual data ocorreu o maior volume geral de negociações? volume_Max = dados['volume'].max() Questão1 = dados.loc[dados['volume']==618237630] print(Questão1) print('=...
[ "Luanrochaangelo@gmail.com" ]
Luanrochaangelo@gmail.com
0cd6472c1392357b71b05001e72192c8990c3365
846d3223368b497c8f660e0044f9cbb8f57d8f72
/projects/01_fyyur/starter_code/migrations/versions/327023e9cf01_.py
ee4405f06f44d0e937a3f5255eab292b05090e79
[]
no_license
marwansalem/udacity-advanced-web-dev
33162da9c2325346bf2ccd68a0b5bc83c21550c4
4508149c27f15487e9115c89f49471bd30b37662
refs/heads/master
2023-03-02T03:23:38.573724
2021-02-08T18:03:06
2021-02-08T18:03:06
315,174,890
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
"""empty message Revision ID: 327023e9cf01 Revises: 46fc223037de Create Date: 2020-11-29 04:01:31.069685 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '327023e9cf01' down_revision = '46fc223037de' branch_labels = None depends_on = None def upgrade(): pa...
[ "marwan10salem@hotmail.com" ]
marwan10salem@hotmail.com
c10d2fe3793d4eb6d7f883c000c26a1e2309ea23
b31b9bac50e9061cedda8c742e534bfcf173c25d
/app/entity/contasCorrente.py
5a49d32896fc7d49ce4a9749a781995c9e3f4cb9
[]
no_license
ViniciusVendramelGalhiardi/api-python-efetivasaude
6bf3d6cd1ae26f212cd28de403abb438097d7725
fdfa0f1169b609c6e8b75933cbf67f12fa2bf427
refs/heads/master
2023-07-16T00:42:38.608080
2021-09-02T19:57:15
2021-09-02T19:57:15
354,327,350
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
from datetime import datetime from typing import List, Optional from pydantic import BaseModel, ValidationError, validator class ContasCorrenteEntity(BaseModel): IdContaBancaria: Optional[int] Banco: Optional[str] Agencia: Optional[int] ContaCorrente: Optional[int] DigitoVerificador: Optional[int] ...
[ "vinicius@landmarkti.com.br" ]
vinicius@landmarkti.com.br
ffdd06e952d9183107955693add0c4083026d689
4fa9fbfd5bd741b8d2d9a58bc07735d8968c9b04
/set2/pycharm-edu-2/lesson1/Castle/task.py
6d393ec61b9c3f7950e2a272a09c9713f1781b27
[ "LicenseRef-scancode-other-permissive", "MIT" ]
permissive
42n4/builder_police
67d6b069297b0939beca134e47db2f4506ffc955
6885ee23f4f4a35c61da980bef1cad8852fae9c4
refs/heads/master
2020-07-17T01:10:25.621932
2019-05-06T05:22:42
2019-05-06T05:22:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,806
py
from ircbuilder import MinetestConnection from minetest_irc import ircserver, mtuser, mtuserpass, mtbotnick, channel, player_z mc = MinetestConnection.create(ircserver, mtuser, mtuserpass, mtbotnick, channel) # BUILDING LOCATION # player's z coordinate used as reference point for all building ref_z = player_z # x va...
[ "tim@triptera.com.au" ]
tim@triptera.com.au
b8ad07737b5ccc252d152a416e789ea36f0990be
3bf81677cebb06262480313481454e533b6e2a15
/Week 07/id_489/LeetCode_115_489.py
cafca29f0c7278a6a8fcb04bc39d8fd2bcaa93ab
[]
no_license
wyjksyjs/algorithm004-04
15dc68de8b845fd1ef5ccbd99871246d6ac67fe6
71dfd266f1f0646d5aefcb72fa46c854a96cdfc7
refs/heads/master
2020-08-12T19:22:17.201907
2019-12-08T12:03:01
2019-12-08T12:03:01
214,827,970
0
0
null
2019-10-13T13:46:18
2019-10-13T13:46:17
null
UTF-8
Python
false
false
614
py
class Solution: def numDistinct(self, s: str, t: str) -> int: n1 = len(s) n2 = len(t) dp = [[0] * (n1 + 1) for _ in range(n2 + 1)] for j in range(n1 + 1): dp[0][j] = 1 for i in range(1, n2 + 1): for j in range(1, n1 + 1): if t[i - 1] =...
[ "1273836690@qq.com" ]
1273836690@qq.com
d2da3d3a0bb26f5782b9c140d847572bc7cd8ec0
fc0a6e0f9ffa90a2473fec77bc52ea02e9b21f55
/venv/lib/python3.7/site-packages/akshare/qhkc/funcs.py
ef5311e4c8f7909a2359e139fe2ab25f1364655b
[]
no_license
YixuanSeanZhou/COVID19_Scraping
3903e697caf406c7d357afd8cc43811d62896244
b84890c4a5ddef589cd76d1ed8fd4a1976f4e3c4
refs/heads/master
2022-09-08T16:14:33.292096
2020-05-23T04:26:02
2020-05-23T04:26:02
266,261,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
# -*- coding:utf-8 -*- # /usr/bin/env python """ Author: Albert King date: 2020/2/13 23:11 contact: jindaxiang@163.com desc: 可用函数库 --> client.py --> DataApi """ class QhkcFunctions: @staticmethod def variety_positions(fields="shorts", code="rb1810", date="2018-08-08"): """ 奇货可查...
[ "thomaszhou2333@gmail.com" ]
thomaszhou2333@gmail.com