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
45b6569b1aa2ab1993894fd21d96ac72bd8ae4e6
7060e97de0a303508004bf07daecbdf104668758
/blogappreview/settings.py
02d01dbcabfcef603854ad616386e4c677b72fd8
[]
no_license
adamgrossman/legacy-blog-app
9963d0ee0e61c84d980c20e64380c2a6cbcb772d
3671d1d16de2899a10284e02d77d71323206e2e2
refs/heads/master
2021-01-21T05:01:27.428179
2014-09-23T21:49:17
2014-09-23T21:49:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,130
py
""" Django settings for blogappreview project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ....
[ "adam.grossman08@me.com" ]
adam.grossman08@me.com
4e8e2af6420a58bf95043e9fce852658ac6f319e
4c453d73abb05f151e3a7f2220920c42b9b8dfdd
/a_star.py
1cbff4e0b873412c11d42cea5e5d7f06936291eb
[ "MIT" ]
permissive
MlHsieh/Pathfinding
ef632426106076a69e181ed60636129ce458456b
3f1818595b54f6805fbba528d7a72ed87995f08a
refs/heads/master
2021-01-13T22:56:27.039031
2020-02-23T14:16:26
2020-02-23T14:16:26
242,520,842
0
0
null
null
null
null
UTF-8
Python
false
false
6,993
py
"" A* path finding with pygamezero Find the shortest path from top-left corner to bottom-right corner. Obstacles are generated randomly each time. Author: ML Hsieh 2020-2-23 """ # pylint: disable=missing-module-docstring, invalid-name, missing-function-docstring import random import math import typing im...
[ "noreply@github.com" ]
MlHsieh.noreply@github.com
77702e3b0454d2ed113e6af1b53fc1a48a813af7
1bc287996993413650476d2ec7b096dc959b5903
/venv/Lib/site-packages/apiclient/model.py
4ad88a88803cb5381871d8b373b14e153aa984a5
[]
no_license
jorgejmt94/TFG
6ea6bce7cf6ae53200f3d3e42e0f1f04c2557fae
2e7d8eaf512d47049181909b20743683712902c2
refs/heads/master
2022-12-28T18:53:03.810829
2020-10-08T16:32:26
2020-10-08T16:32:26
143,515,791
1
0
null
null
null
null
UTF-8
Python
false
false
11,809
py
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "jorge@MacBook-Pro-de-Jorge.local" ]
jorge@MacBook-Pro-de-Jorge.local
4999ade213d9555e0697b7004de81a99a9d815b3
ec7c1e8b6fd1c397d072a05702221ba198a12f3b
/mysite/laser/migrations/0005_auto_20170418_1524.py
053ca170596cc2635b405118c995c4f72d40f5e7
[]
no_license
profanat/laser
3c4d197d012c178be1ed1b2ad780b65ad68288c2
5b207f60caf7dd4610c2fb3dd25d399463d3a808
refs/heads/master
2021-01-19T23:44:14.995911
2017-04-30T10:46:10
2017-04-30T10:46:10
89,022,705
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-18 13:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('laser', '0004_item_image'), ] operations = [ ...
[ "profanat@mail.ru" ]
profanat@mail.ru
07e17c5553d0087fa7eb1cd218f0ce579fa6d45b
89b297e3ffb43ecbb508fd01cf28b89817cd869b
/c103.py
7f447ef1daf34e463dbd3c56b79fe26cdc43df21
[]
no_license
DhyeyPatel779/C103
0eeff9a104243272c75eba06d959eea8e608c22a
d4afa720ada23121a9fcfb1ca0c023ac9cb72590
refs/heads/main
2023-08-24T23:36:39.754111
2021-10-14T07:43:26
2021-10-14T07:43:26
417,035,714
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
import pandas as pd import plotly.express as px df = pd.read_csv('line_chart.csv') fig = px.line(df,x="Year", y="Per capita income", color="Country", title="Per Capita Income") fig.show()
[ "noreply@github.com" ]
DhyeyPatel779.noreply@github.com
5051561594eab17e7933f5df6df726631b2282fd
9f9031218c411443a4bb9ada6e5af333cf4fa083
/azuresearch/indexes/scoring_profile.py
8ec8b0698fe9d0d111206c542f8cfeeb63c9c5b1
[]
no_license
aloosley/python-azure-search
ba51c19b2387ea35706ea9a6e7eca8227cf3402f
ce605528a2bbcdc7a3f08fca1e5c39129ab726d9
refs/heads/master
2020-05-01T19:21:13.115786
2019-01-13T13:06:33
2019-01-13T13:06:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,780
py
import json import warnings from azuresearch.azure_search_object import AzureSearchObject class ScoringProfile(AzureSearchObject): ''' A scoring profile for an index. See this link for more information: taken from https://docs.microsoft.com/en-us/rest/api/searchservice/add-scoring-profiles-to-a-search-in...
[ "omri.mendels@microsoft.com" ]
omri.mendels@microsoft.com
93103d6e41113db9ca4a00e8b344e771a27edaac
6fb95c1523ecd84a47cf351fd8c84d20c697d5c7
/hash.py
ab811578718de98ac6d5c60bfb5d8d2f77bf9771
[]
no_license
Shiva454527/hash
5da4c3dbb9587561fe4e1cccc27d1fd1cec627d2
936e65946b6088eb13beca58041e41be3a711ab7
refs/heads/main
2023-03-15T00:21:17.514193
2021-03-08T07:48:25
2021-03-08T07:48:25
345,556,371
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
import hashlib print("") print(" ---------------Hash convert-------------v1.0") print("") print("") print("<============================================>") print(" Created by shiva") print("<============================================>") print("") print("") print("Available Options:\n1.MD5\n2.SHA512\n3.S...
[ "noreply@github.com" ]
Shiva454527.noreply@github.com
72a91011ab0adb33cd3a50f2659fe2abe2c936f8
16d26279f2b1e995352529bf8bc54d08d4b3c7a4
/Shut down.py
08fd9657b1242cb47d23226e01f2d69c5bbf305c
[]
no_license
surajmishra57/Shut-down
7e0583c8c5d993c6e475d00c6ecc374930922a04
a9c6214369628ee76c8293589f00b326b870d4af
refs/heads/master
2020-06-08T08:15:45.830846
2019-06-22T05:21:29
2019-06-22T05:21:29
193,194,645
0
0
null
null
null
null
UTF-8
Python
false
false
5,046
py
from tkinter import * from tkinter.ttk import Combobox import os from tkinter import messagebox from tkinter.font import Font def Cancel(): root.destroy() def Clear(): combo.set("Select") hour.set('H') Hour.set('H') mint.set('M') Mint.set('M') sec.set('S') Sec.set('S') ...
[ "noreply@github.com" ]
surajmishra57.noreply@github.com
916739e2b47fd6b0bdc3b3d4a294774d7c172611
9f7631c2d987a33a9b7f2c2da38bf9369eac92bd
/test_segmentor.py
2c96cbdc374287eac5fa659ce15d39692caa3742
[ "MIT" ]
permissive
Leo-xxx/kissing-detector
2a605837991bfc8c1dafcf38fb2cd758271592c2
df44f229c4f5160a792c4a6dc6d98d6817910df0
refs/heads/master
2020-06-02T18:56:18.249555
2019-06-12T12:57:00
2019-06-12T12:57:00
191,274,160
0
0
null
2019-06-11T01:52:17
2019-06-11T01:52:16
null
UTF-8
Python
false
false
641
py
import unittest from segmentor import Segmentor class TestSegmentor(unittest.TestCase): def test_segmentor(self): tests = [ ([1, 1, 0, 1, 0, 0, 1, 0, 1], [[0, 1, 2, 3]]), ([1, 1, 0, 1, 1, 0, 1, 0, 1], [[0, 1, 2, 3, 4, 5, 6]]), ([1, 1, 0, 1, 1, 0, 1, 1, 1], [list(range(...
[ "arziai@gmail.com" ]
arziai@gmail.com
6ddebb5147754b838b6cdfe50c7b3136c205898e
bd47e29dd98a30da16fab7541e2fa486779571c9
/AIAssignment/PA1_MT18099_Kshitij_Srivastava/Question 2/printGrid.py
fa3f0d133e2fb2ad5147cb659cbb4878fd6c1c29
[]
no_license
kshitijsriv/Artificial-Intelligence-Fall-2018
35a96381c7a109164de5b861a5ef81400abb34b3
f14656a40e830eaf59122082162fe887eba3e8a9
refs/heads/master
2023-05-03T07:07:20.164863
2021-05-18T20:22:00
2021-05-18T20:22:00
368,656,677
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
def prnt(grid, n): for i in list(range(n)): for j in list(range(n)): print(grid[(i * n) + j], end=' ') print()
[ "kshitij18099@iiitd.ac.in" ]
kshitij18099@iiitd.ac.in
7004e91d73dfb7ae5323ceb1a1e9816b5ac70c53
1ea1ffa610838c6161f5dcaab6fbfe6341aaa902
/BB_MesoWest/MesoWest_STNinfo.py
16182f7f04f86a093c3954ad74e64f3709fbe9c6
[]
no_license
johnhorel/pyBKB_v2
7611e1562e130abad911f02dc9d6b34966a6eaa3
6e04bea50666dfc34ec4b6035729bd2d4c807b12
refs/heads/master
2020-12-30T15:09:34.573208
2017-05-12T18:02:01
2017-05-12T18:02:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,322
py
# Brian Blaylock # Version 2.0 update # 8 November 2016 (Trump vs. Clinton Presidential Election) """ Get basic metadata for a list of station IDs """ import json import urllib2 from get_token import my_token # returns my personal token import numpy as np # Get your own key and token from here: ...
[ "blaylockbk@gmail.com" ]
blaylockbk@gmail.com
b9aaef4ba11145f2ffbea561b6705b86c14b215a
13cd6c2d28c3df0daa0a90f856275197410973f4
/balance.py
33e763e2abe4aa551ef4e8f2be4400e56211b26c
[]
no_license
ccnsd/balance
095501048cec3b50cdc9901ec92052b87ef024e3
52ae8cd33698c3db1abcf802692be6254b05987c
refs/heads/master
2020-04-05T10:37:32.988955
2018-12-09T08:12:01
2018-12-09T08:12:01
156,804,928
1
0
null
null
null
null
UTF-8
Python
false
false
7,137
py
import numpy as np import networkx as nx import random class TriangularBalance: def __init__(self, size, initialRatio, AgeExponent, noiseType): # Size of the networ self.Size = size # Caclulate the number of triangles connected to one link self.TrianglesOnLink = self.LinkTriangles(...
[ "mhoseinhs@gmail.com" ]
mhoseinhs@gmail.com
ba5cdbf4af013697934cd32d9a81f63202ca1ec1
9bade1e19d1fe61324e1b0d0d0b2fb650b618b70
/ch2/tasks_proj/tests/unit/test_task.py
b003f7eeda9e2f47e9d8065d06ab459a9aac6a8a
[]
no_license
Vermee81/practicePytest
6d998064c7892495cb11630cd70ecdeafc7ced04
df85e800f3d57f98017c6ab2bf7c176d605469e7
refs/heads/master
2021-06-16T05:26:10.885007
2019-06-11T12:59:02
2019-06-11T12:59:02
191,372,066
0
0
null
2021-04-20T18:19:24
2019-06-11T12:58:14
Python
UTF-8
Python
false
false
996
py
from tasks import Task def test_asdict(): """_asdict() should return a dictionary.""" t_task = Task('do something', 'Okken', True, 21) t_dict = t_task._asdict() expected = {'summary': 'do something', 'owner': 'Okken', 'done': True, 'id': 21} assert t...
[ "hrksb5029@gmail.com" ]
hrksb5029@gmail.com
9673ba1b310997112ef86dc58e7a09bede97e40e
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/oQ99uE4iPNbEnf9QZ_8.py
98e927384c07bf13e06fc0c934083fe3ce3dac4c
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
""" Given a known number of unique items, how many ways could we arrange them in a row? Create a function that takes an integer `n` and returns the number of digits of the number of possible permutations for `n` unique items. For instance, 5 unique items could be arranged in 120 unique ways. 120 has 3 digits, hence...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
0a3fc9f2dc890b6e2efaa610973cc13c5a947a43
b5ae0120287b7b6dcd26e65f4292ba81a29f1a1f
/basicwebapp/wsgi.py
fdafd5ef5f6f01a30de1dadab33001f70dbf31ce
[]
no_license
rnvarma/basicwebapp
d96a074a3afa6d95d35b04e06c627416db8aa36c
1f52c7d377e1e36acd6a75846a2d77a8a8252e13
refs/heads/master
2021-01-10T05:17:01.842320
2015-11-09T22:51:14
2015-11-09T22:51:14
45,871,545
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for basicwebapp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "rohan@prompthire.com" ]
rohan@prompthire.com
501738ec710801e81d9ab4e1f7ef15ccbeea5e65
12e04c219d6911d06a048c913f8d8d6c00dad857
/chendian/member/forms.py
d494a75608722225651d47661ad908497bd17ee9
[ "MIT" ]
permissive
mozillazg/chendian-plus
928e98beb77f351e08b25a5ba9671ad648dac4b5
893c62b4b855879006d4cb378faeb9d1c6635923
refs/heads/master
2023-09-04T09:58:58.112022
2017-04-04T09:44:28
2017-04-04T09:44:28
31,481,576
0
2
null
null
null
null
UTF-8
Python
false
false
434
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from django import forms from django.contrib.auth.forms import AuthenticationForm class LoginForm(AuthenticationForm): error_messages = { 'invalid_login': '用户名或密码错误!', 'no_cookies...
[ "opensource.mozillazg@gmail.com" ]
opensource.mozillazg@gmail.com
ebea53bffcd6e69af4d785a1455f144ba9b50975
e9aeb4d00fe6758a51d9982c3e1af1e456a9e244
/funcion.py
119144c450d8e1880a6bc8dbbd98c49b30da90ad
[]
no_license
PacoBocanegra/myproject
ae365ca3aaa37699355eed1bd5ae950a241e74d0
976a70987c87003ba36ecec11894e37d4725c8ac
refs/heads/master
2020-04-07T03:14:20.866838
2019-04-10T10:28:02
2019-04-10T10:28:02
158,008,209
0
1
null
null
null
null
UTF-8
Python
false
false
168
py
def contador(unaLista): unDict = {} for valores in unaLista: if valores not in unDict.keys(): unDict[valores] = 1 else: unDict[valores] += 1 return unDict
[ "noreply@github.com" ]
PacoBocanegra.noreply@github.com
496ed58b9cc4cf8030a102eaf9e3214dbf825d58
b7395bf3c8e209a8b2f0ace1b7e763ed76cd0b25
/HSE/smith_waterman/smith_waterman.py
f06680fd29cdc7f0c54c197dcf0544a0042c410d
[]
no_license
antosiv/study_progs
9f7ceb28f33211211bfe43f9af21cf68e745e338
9ec3fb4313f28b662635c8693e0f435d6b75187b
refs/heads/master
2022-12-08T18:04:56.410185
2021-07-27T13:31:57
2021-07-27T14:31:04
133,510,616
0
0
null
2022-11-23T22:27:38
2018-05-15T12:07:34
Jupyter Notebook
UTF-8
Python
false
false
7,166
py
import numpy as np import argparse import os class Node: def __init__(self, value): self.diag = None self.up = None self.left = None self.value = value def build_alignment_tree(seq1, seq2, similar_score=1, gap_penalty=1, mismatch_penalty=1): assert isinstance(seq1, str) and i...
[ "anton6722@gmail.com" ]
anton6722@gmail.com
794e7f2d349b256ab00c025b5646697ca1a79a20
bc2aaafbd154c3b116b393881213747979238c9f
/coding_challenge.py
6cd92649b448fadd45100c18b31383326f11e935
[]
no_license
victor-gesit/udemy-python-bootcamp
787570f9f243809dddfbf490438d8422cd4c01a3
4c47dcdf35c6c69b3f7c647f9a50676d9a2c7401
refs/heads/master
2020-03-26T14:53:50.765381
2018-08-16T16:04:52
2018-08-16T16:04:52
145,010,652
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
import re def adds_to_ten(a_string): for number in range(0, len(a_string)): letter = a_string[number] try: number = int(letter) except: print(a_string[number:number+3:1], number, a_string[number-1], letter*3) print(a_string[number:number+3:1] == letter*3 and a_string[number+4] != lette...
[ "victoridongesit@gmail.com" ]
victoridongesit@gmail.com
c1cbaa23a1aaaec6e5a3843f37f57011a4402b8d
7213ae1a7a1677d17d11cdc2827221ee8ced4f9c
/Baek_jun/2292.py
b67d534f18b44bf42ff155713c5c97013813a389
[]
no_license
eat-toast/Algorithm
c532fbdc9e8faa2205dd0a7ab333a8c98f7c16e2
f82c6fdc763c434ca2cc3bf86ee8378503d019f1
refs/heads/master
2021-10-24T23:52:38.482506
2019-03-30T08:28:07
2019-03-30T08:28:07
112,037,874
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
N = int( input() ) step = 1 old_num = 1 if N == 1: print(1) else: while(1): max_num = 6*step + old_num if old_num < N <= max_num: print(step+1) break else: step += 1 old_num = max_num
[ "noreply@github.com" ]
eat-toast.noreply@github.com
d078d98ab762bb1d1a429ab405b5e969885c2172
8bcf7c1ed213d5a296d592a420b3d678f01ff716
/stack_and_queue/ANARC09A.py
b6aaf653865fde7ac201ca8d253c099faf4230a2
[]
no_license
cskanani/codechef_prepare
237b65455c2294c4a96d72cfa4cdecb8734b48ee
36075328b0f52dc6237a96a4094358128327dc0b
refs/heads/master
2020-12-03T14:11:04.963970
2020-03-05T17:29:23
2020-03-05T17:29:23
231,349,403
2
0
null
null
null
null
UTF-8
Python
false
false
623
py
parantheses_string = input().strip() ans_number = 0 while '-' not in parantheses_string: ans_number += 1 operations_required = 0 bracket_count = 0 # to simmulate stack for i in range(len(parantheses_string)): if parantheses_string[i] == '{': bracket_count += 1 elif bracket_co...
[ "kananichandresh@gmail.com" ]
kananichandresh@gmail.com
6a463bc00a35e2a6151c42ca825513e6973d82ad
b653971414c2c8b144d2fcb63b214cd82523c4d0
/hdf5_getters.py
e92d561ca0873048680c1d52a02c820673422174
[ "MIT" ]
permissive
shirleycohen/MillionSong
b37a35a51fa997a8a118581605376f9dc389c72d
d5a31fe6bd32999555efc47226093f6bc7e09199
refs/heads/master
2021-01-18T04:12:53.666761
2017-03-23T19:49:07
2017-03-23T19:49:07
85,751,728
0
0
null
2017-03-21T20:47:51
2017-03-21T20:47:51
null
UTF-8
Python
false
false
22,184
py
""" Thierry Bertin-Mahieux (2010) Columbia University tb2332@columbia.edu This code contains a set of getters functions to access the fields from an HDF5 song file (regular file with one song or aggregate / summary file with many songs) This is part of the Million Song Dataset project from LabROSA (Columbi...
[ "jeff.kibler@infobright.com" ]
jeff.kibler@infobright.com
cdf4fc4eac8ac721c4cb6dccc000e71414fb2392
d659810b24ebc6ae29a4d7fbb3b82294c860633a
/aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/GetServiceDetailRequest.py
0274809385003cccbff6ca1a9c5f43b64d78a821
[ "Apache-2.0" ]
permissive
leafcoder/aliyun-openapi-python-sdk
3dd874e620715173b6ccf7c34646d5cb8268da45
26b441ab37a5cda804de475fd5284bab699443f1
refs/heads/master
2023-07-31T23:22:35.642837
2021-09-17T07:49:51
2021-09-17T07:49:51
407,727,896
0
0
NOASSERTION
2021-09-18T01:56:10
2021-09-18T01:56:09
null
UTF-8
Python
false
false
3,259
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
d97a89429ebe411ef2de2f263cc53f3eb6aa6988
5dec96a4833bea52d5105a77f45022f2c3c3157a
/QUICK_START/NODE_DEEPLABV3SEG_CUSTER/src/script/squeezeseg/nets/utils/__init__.py
2aee7f84a672a2e05885f81f414f00fb090af095
[ "BSD-3-Clause", "MIT" ]
permissive
jtpils/DINK
ebb3259d0fb8da0db46f670659bbb98c5b34c317
5f6b3eaba279126f79ae6607f965311002d7451c
refs/heads/master
2020-04-28T23:47:42.726499
2019-03-14T15:10:32
2019-03-14T15:10:32
175,669,731
1
0
BSD-3-Clause
2019-03-14T17:32:06
2019-03-14T17:32:06
null
UTF-8
Python
false
false
1,661
py
# BSD 3-Clause License # # Copyright (c) 2019, FPAI # Copyright (c) 2019, SeriouslyHAO # Copyright (c) 2019, xcj2019 # Copyright (c) 2019, Leonfirst # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are...
[ "2281504330@qq.com" ]
2281504330@qq.com
ad19fd452e4db1b70a3909df02d3983f5143594a
8fab832545c32c4c9bbdd9d2656b0e7999e1ba95
/python/inky/phat/calendar-phat.py.save
1d2108a89fe905198d278a00531fd1bf55bd768c
[]
no_license
krishnamarwaha/Raspberry-PI
1d96c5f5a9279f8210f566509d1d352f47dc775a
cc429335ef3fa6fb87b6f7ab0453283887ac9a04
refs/heads/master
2021-07-09T19:24:37.589325
2020-12-20T19:06:18
2020-12-20T19:06:18
221,528,517
1
0
null
null
null
null
UTF-8
Python
false
false
5,723
save
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import calendar import argparse from PIL import Image, ImageDraw from inky import InkyWHAT print("""Inky pHAT: Calendar Draws a calendar for the current month to your Inky pHAT. This example uses a sprite sheet of numbers and month names which are compo...
[ "krishna.marwaha@outlook.com" ]
krishna.marwaha@outlook.com
f28de4409a49b4958ed94421be319b08d13fc589
bd14c979335112b7718b0feda18ebf0e3b40fe5c
/first_trial/c_travelling.py
7702d96dadc01c04581f9ca99310328b19e3c015
[]
no_license
ababa831/atcoder_beginners
22c57b15333d110126d1b1afadc0ff5e8784fc4f
1a30882ce7f20f312045d5dc7bfaa5688cc8a88e
refs/heads/master
2023-03-07T15:47:19.750682
2020-03-04T19:53:45
2020-03-04T19:53:45
143,360,607
1
1
null
null
null
null
UTF-8
Python
false
false
1,370
py
# I coudn't reach an answer at first. # Keypoints: # Look for conditions which constrain search range! # 1. There are no paths for t_i < x_i + y_i (e.g. t=4, x=100, y=100) # 2. There are no paths for t_i % 2 != (x_i + y_i) % 2 (e.g. t=4, x=1, y=0) # Because you can only reach the point by either odd or even trials (...
[ "flvonlineconverter@gmail.com" ]
flvonlineconverter@gmail.com
b1f306e2edac18026c53ab1ebe97885c109fcb53
1480955b11c30691f56865bf827b7f89168da523
/book/knapsack.py
ecd31fecf868cda6dc21e99bfb6837b1663c9477
[]
no_license
zoo200/atcoder
f604bff3301dfd7fd0fba916fc71f9d11eeb3871
db9f15e5294ff034e25358d53cc2266bc95686e9
refs/heads/master
2020-11-25T19:31:42.312537
2020-07-25T15:38:31
2020-07-25T15:38:31
228,813,286
0
0
null
null
null
null
UTF-8
Python
false
false
1,417
py
from collections import defaultdict n,w = map(int,input().split()) items = defaultdict(dict) c = [[0] * (w +1) for _ in range(n+1) ] g = [[0] * (w +1) for _ in range(n+1) ] for i in range(1,n+1): a,b = map(int,input().split()) items[i]['v'] = a items[i]['w'] = b for i in range(w+1): c[0][i] = 0 g...
[ "noreply@github.com" ]
zoo200.noreply@github.com
aa3908605e7f5276c6faa8a19ddda181df2fe430
18a185cc757d9aa3d690f174ca0841e1d90157b3
/scripts/lib/calculate_reference_plot_llhs.py
931bb3231c6b987e9c3f2e128770397eb4330b2b
[ "MIT" ]
permissive
fiedl/hole-ice-study
b2e213747af914fedadd76cb94e7042389183f41
9811a29c65fb22e314efd65e0309c83772928d7f
refs/heads/master
2023-04-13T21:05:06.897901
2022-09-13T12:08:14
2022-09-13T12:08:14
118,835,798
6
2
NOASSERTION
2023-03-16T23:10:07
2018-01-24T23:35:15
null
UTF-8
Python
false
false
747
py
#!/usr/bin/env python # Calculate log likelihood (LLH) for reference angular acceptance curve vs. simulation. # https://github.com/fiedl/hole-ice-study/issues/12 # Usage: ./calculate_reference_plot_llhs.py ~/hole-ice-study/results/parameter_scan # This will calculate the LLH for each run within the given data direct...
[ "github@fiedlschuster.de" ]
github@fiedlschuster.de
19e07b20e6e2919522eb238a49df393a79596a9c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02936/s644824648.py
1cee97e5f35d7e758af2c7ed362e708613fbb89b
[]
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
540
py
import sys sys.setrecursionlimit(10 ** 6) def input(): return sys.stdin.readline()[:-1] def dfs(v,prev = -1): for u in graph[v]: if u == prev: continue point[u] += point[v] dfs(u,v) N, Q = list(map(int,input().split())) graph = [[] for _ in range(N)] point = [0]*N for i in...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4f6e2604717222728344a10eea3c90f2e8dd5604
797bd52c384b9ce5fcac4add937982fec266af8f
/object_classification.py
238e75428e545141b2e559af68279e18204afbbc
[]
no_license
anki08/staff
11b9e8c45c65c2de76e4a2406b4c7c9f26ba1797
d2ca5c8bea1f3e1e82ce3a7f408d06c9d469d200
refs/heads/main
2023-03-24T14:40:08.019544
2021-03-10T16:48:10
2021-03-10T16:48:10
346,416,818
1
0
null
null
null
null
UTF-8
Python
false
false
657
py
import torch import torchvision from PIL import Image import json class_idx = json.load(open("imagenet_class_index.json")) I = Image.open('dog.jpg') print(I) model = torchvision.models.resnext101_32x8d(pretrained=True, progress=False) transform = torchvision.transforms.Compose([ torchvision.transforms.Scale(224), ...
[ "noreply@github.com" ]
anki08.noreply@github.com
68faa4a34463e8c87df6fa1a967b58e7fc27082b
0472e717b8b2739a1eee20d49026f87031f1f72d
/v2/model/source.py
ddff5219b2f39d781469a0e5555dc673543fdab5
[]
no_license
nightarcherbr/uplayer
f11dd47c1da7655005c3051df7be706e75a6feca
3d67275676111a0fdf0b4874129c6ba824022f4f
refs/heads/master
2021-01-12T17:08:38.407182
2016-10-24T10:47:36
2016-10-24T10:47:36
71,516,128
1
0
null
null
null
null
UTF-8
Python
false
false
2,635
py
import model; class BaseSource(): def load(self): raise model.ModelException('Not implemented'); class FileSource(BaseSource): """ Faz a leitura do JSON em um arquivo """ def __init__( self, source, parameters = None ): self.source = source; self.parameters = parameters;...
[ "fabio@docker" ]
fabio@docker
8934f8bae88b16771f2a9c6978607699ce1d5c3d
b500119f19bf221b6cffdedf4d74e0ddebeff503
/dropdown2.py
a706333e18160d55ed4e47b45bb7fa2394b3b2e1
[]
no_license
Threesies/ELO
07bd58f3d3e0fdea76c3799e0ed17fc42c08ba28
32664b503e257fca5ef68ee2e2a9239fbb8d683b
refs/heads/master
2020-03-30T06:31:39.259992
2018-10-20T16:30:37
2018-10-20T16:30:37
150,867,750
0
0
null
null
null
null
UTF-8
Python
false
false
9,557
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 11 15:17:27 2018 @author: acelentano """ import tkinter as tk from tkinter import * import tkinter.messagebox import pandas as pd import numpy as np import os from time import gmtime, strftime root = tk.Tk() text = tk.Text(root) title = "RTB" root....
[ "celentano_ali@bah.com" ]
celentano_ali@bah.com
9c279d65479f9af05c8270845fd5db4027c1e978
4057adee68fdd294896893ba904d2d7dc89eec2c
/setup.py
9a9781b69a7e8c3668b0e698abdd6635be7b0efe
[]
no_license
kindlychung/PopupBubble
9819b24c1b4683fb7d0d338de4cb9d6ad6bd8908
45943d70f1113c2e5988380561ec33a966cfa9db
refs/heads/master
2020-05-21T11:34:53.300144
2014-11-12T18:31:13
2014-11-12T18:31:13
26,549,443
1
1
null
null
null
null
UTF-8
Python
false
false
581
py
from distutils.core import setup import platform, os sysname = platform.system() if sysname == "Windows": binpath = os.getenv("SystemRoot") else: binpath = r"/usr/local/bin" setup( name = "PopupBubble", packages = ["PopupBubble"], version = "0.0.4", data_files = [(binpath, ["scripts/pop_bubble...
[ "kindlychung@gmail.com" ]
kindlychung@gmail.com
9ac436c999320a0d5baf824db317806e7afeac41
530d8af2100c88690e09731fb950a02f33e6e4e0
/blog/migrations/0003_auto_20180818_2054.py
e4f33d23ea905284782c215ad82a717e511a6100
[]
no_license
gkLeo/userSystem-Django
940acf12f264e986ad8ac5e7d3b8aaa0a5a7b1c6
82e3cf45d94bb4b3d65da94a32bc18cebb6b1709
refs/heads/master
2022-04-29T18:12:57.164887
2018-08-22T07:49:41
2018-08-22T07:49:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-08-18 12:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20180818_1641'), ] operations =...
[ "geek_leo@outlook.com" ]
geek_leo@outlook.com
ec19430ba5d5df43b88d4f9b77763a84416ac3eb
99af81d1da4545ab7d83f3c744c8494bf917ee9d
/push_feedstock_changes
1763e16bef8000ba18ab84869efd98bb81888b8d
[]
no_license
msarahan/conda_recipe_tools
ea32e921b412c1eb686c3a193021062f0333249a
9ff81cbd745af66d62d4555ff7e5fc2367a35603
refs/heads/master
2020-03-19T10:06:18.108036
2018-10-31T22:30:27
2018-10-31T22:30:27
136,343,451
0
0
null
2018-06-06T14:49:21
2018-06-06T14:49:20
null
UTF-8
Python
false
false
5,850
#! /usr/bin/env python # push feedstock changes to AnacondaRecipes git organization # requires Python 3.5+ import argparse import logging import os import subprocess import sys from subprocess import PIPE from conda_build.api import render LOG_FORMAT = '%(asctime)s - %(levelname)s : %(message)s' class GitRepo(obje...
[ "jjhelmus@gmail.com" ]
jjhelmus@gmail.com
ace3c17769f70ffc745907457172f979761025b3
a03cdb676a7db91c09d5b051585af8c1fbdcee66
/venv/bin/pip
fdd43619020cbfe9bfbe0730b4ed7ae9dbc6ca25
[]
no_license
d11m4/movies
fb1f4cbe7141cc4643a0ab2797595b432ece664f
4df606564b565c72930f0a3213e3955f925d4987
refs/heads/master
2023-02-13T05:54:54.029461
2020-04-23T20:03:55
2020-04-23T20:03:55
258,317,203
0
0
null
2021-01-06T01:08:32
2020-04-23T20:02:46
Python
UTF-8
Python
false
false
388
#!/Users/dmitry/nikmovies/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
[ "d11m4@yandex.ru" ]
d11m4@yandex.ru
757c511b89810d2b035d2c74957e10869842c3dd
755271e401d9dd06866d134f314e7865c06f2bcc
/lib/kml_parser.py
91838350b9c4b44e9f4ea313d547519315386211
[]
no_license
Galli1598333/LoRaWAN-Application
31b00d769d7d5b85e53bbf10b3709c31ddcf30f0
ac299da43656f79a8111586acfed1a04662547de
refs/heads/master
2023-06-12T01:06:55.774495
2021-06-29T16:19:26
2021-06-29T16:19:26
301,663,145
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
import xml.etree.ElementTree as ET class KmlParser: def __init__(self, merged_fpath): self.merged_fpath = merged_fpath def merge_files(self, count_fpath, track_fpath): with open(count_fpath, 'r') as file: count = file.read() with open(track_fpath, 'r') as file: ...
[ "noreply@github.com" ]
Galli1598333.noreply@github.com
244ed0d2ccb9439a9c3b907c35305cf549eccb03
ccb0fa72852a29c38e0d83427318ef95225697bf
/benchmarks/utils/training.py
c886bf9b8130fc948318ee2c196ebc3a9df4f043
[ "Apache-2.0" ]
permissive
crispitagorico/GPSig
62d3f4f3a078e753a98641670bb8088c0df960bb
c93155f83c11b05b9850b24481c6584ef5206a49
refs/heads/master
2023-02-26T06:05:45.353637
2021-01-30T08:02:04
2021-01-30T08:02:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,155
py
import sys import os sys.path.append('..') import numpy as np import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) import gpflow as gp import gpsig import keras from keras import backend as K def fit_nn_with_gp_layer(X_train, y_train, var_list, x_tens, y_tens, loss, sess, minibatch_size=50, max_epochs...
[ "" ]
9e72e6d0888bf2204d471dd9e5d05a180ce11fa0
795340baeeed8aab921ec02f7226248b35256edf
/query_view/views.py
ff792aea286aebf5c3d1a585faf07358f5a4ddd6
[ "MIT" ]
permissive
enricobarzetti/django-query-view
3646970571cf3c4bad97fb2fb7104cbe63855a45
79c6247c076d037c3c401d05773f64e5e237f3a2
refs/heads/master
2023-02-16T01:00:24.562879
2021-01-17T04:03:07
2021-01-17T04:03:07
324,231,699
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
from django_filters.views import FilterView from taggit.models import Tag class QueryView(FilterView): url_name = None template_name = 'query_view/query.html' def get_context_data(self, *args, **kwargs): context = super().get_context_data(*args, **kwargs) context['tags'] = Tag.objects.all...
[ "enricobarzetti@gmail.com" ]
enricobarzetti@gmail.com
bbde3cd10bf1a8966da6f099488bf23ab78d6311
15c1975e8862f6765e44feb756fdab06f6714525
/PDU/devel/test_argparse.py
8b1f6f0555d1aaa7280fa18e962eaeee084df320
[]
no_license
TianlaiProject/tldev
2876571c77b75cac1a2a69e9922a25398f989788
d62416ae4ceed07b7c55b6d5b99b3cbdbd75fb71
refs/heads/master
2020-04-03T19:23:05.834689
2019-08-22T09:03:53
2019-08-22T09:03:53
155,521,451
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
import argparse parser = argparse.ArgumentParser() parser.add_argument('-a', '--aa') parser.add_argument('-b', '--bb', nargs = '?', const = 10, default = 123) parser.add_argument('-c', '--cc', ) op = parser.parse_args() try: print 'aa = ', op.aa except: print 'aa error' try: print 'bb =', op.bb except: ...
[ "astrofanlee@gmail.com" ]
astrofanlee@gmail.com
ff37fca6d36c96f787bcda7ec42d605301f532d9
413940b4b461e9bb549c08a0ca21f3893583723f
/Tarea de Investigación/Lista.py
ae30f2124612ead01dfcd5277317d9c3d950910f
[]
no_license
MARILEONV/Tarea-de-Investigaci-n
d6da1a3ec6020b67f3007881bf7bf4747103a33f
232f5757e28af74bd168fc99d785c129332d07bf
refs/heads/main
2023-06-28T14:20:29.892082
2021-08-05T01:06:55
2021-08-05T01:06:55
391,653,980
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
from Numero import * class Lista(Intermedio): def __init__(self,lista): self.lista= lista def presentarLista(self): n = int(input("Cuantos elementos quiere agregar a la lista: ")) for i in range(n): lis = input("Ingrese valor {}: ".format(i)) self.li...
[ "noreply@github.com" ]
MARILEONV.noreply@github.com
2d845424b61f091dfef56a43fb628330980dd4d7
fbe6090cfd86f07acefae39e885d0a7c3574c942
/post/views.py
fc036b6d4bc821d88284c85f01f2781eefd28205
[]
no_license
andralandrizzy/todos
77a4677eea379985487c93c11618966962e590b4
f44ad05d6b775414798ca7c1c895aff5eacfd10c
refs/heads/main
2023-01-03T04:51:25.363851
2020-10-22T04:40:59
2020-10-22T04:40:59
306,193,858
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
from django.shortcuts import render from django.http import HttpResponse from . models import * from . forms import * # Create your views here. def index(request): if request.method == 'POST': title = request.POST['title'] description = request.POST['description'] task = Task(title=title, d...
[ "drip_dev_drizzy@pop-os.localdomain" ]
drip_dev_drizzy@pop-os.localdomain
fe4089d3a3e8b1f7b727787135b1b49cbd154b9f
1767232aba61ea15703df6589355f9bae64e22bb
/train.py
51aaf2f61392dd89c59c86a0758b0d90ce676e1c
[ "MIT" ]
permissive
ChinaYi/asrf_with_asformer
73fc1a4019fc4db5b7452767be17e5f8d5611726
16a5dba6eeb7220c9dd30b64613972883dcb83ca
refs/heads/main
2023-08-23T05:58:33.541399
2021-10-28T13:04:45
2021-10-28T13:04:45
416,367,698
14
1
null
null
null
null
UTF-8
Python
false
false
9,260
py
import argparse import os import random import pandas as pd import torch from torch.utils.data import DataLoader from torchvision.transforms import Compose from libs import models from libs.checkpoint import resume, save_checkpoint from libs.class_id_map import get_n_classes from libs.class_weight import get_class_we...
[ "noreply@github.com" ]
ChinaYi.noreply@github.com
227083a6426424a55be3c286049966f07d5526b7
904a5d68bd9ce20f46031b1b30690daa6f101f77
/scorelib-import.py
55a87e7c9e1e1fd8e7caa1a8084f4d1591522e5c
[]
no_license
lubcik/PV248
21d42796e29410391b0b06d149c39cbce81268ae
2cb11e5315b2ea1c8b4b4413116f88bc9c888dd4
refs/heads/master
2021-05-05T01:05:46.029546
2018-01-29T20:54:23
2018-01-29T20:54:23
119,612,407
0
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
import re # regular expressions import sqlite3 # This is a base class for objects that represent database items. It implements # the store() method in terms of fetch_id and do_store, which need to be # implemented in every derived class (see Person below for an example). class DBItem: def __init__( self, conn ): ...
[ "lubica.kramarekova@kiwi.com" ]
lubica.kramarekova@kiwi.com
e743b9ad9f620a3fdcf330cd029aede1dbd35801
64c7445ed33d43c4d56f96c1916d55bf63a80ce6
/allelic_dist.py
4c573b7fb0ebda38fcafcf14307193229df65068
[]
no_license
dorbarker/mist-tools
d28dba2d2705ae1cf6854717ca6b982672ea9a8e
b18929b489f204b3b4411ad9d9d1d88ed48db1ce
refs/heads/master
2020-06-12T18:06:00.718335
2015-01-09T18:16:17
2015-01-09T18:16:17
28,106,694
0
0
null
null
null
null
UTF-8
Python
false
false
2,717
py
import argparse import csv import mistutils def arguments(): parser = argparse.ArgumentParser() parser.add_argument('-j', '--jsons', nargs='+', required=True, help='Path(s) to JSONs') parser.add_argument('-t', '--tests', required=True, help="MIST test name") parser.add_argument('-o', '--out', require...
[ "dor.barker@gmail.com" ]
dor.barker@gmail.com
295e21ae589f0e72622d30ceb5f1fdd2443680b9
e6c1ce30389e87986e9db8fad7a3351e8fdb1259
/budget/migrations/0002_remove_customer_profile_pic.py
810105431dfc7cbe49f3161ed2f13c64f1641a68
[]
no_license
Prabu-N/monthly-expenses-app
ed6652c8955d0654d2778f9ef3377ba274109080
2de193d2dcb0978a92aa03cd7e13c89846facd6a
refs/heads/master
2022-12-27T09:02:50.254939
2020-10-06T05:59:49
2020-10-06T05:59:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
# Generated by Django 3.0.7 on 2020-09-12 09:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('budget', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='customer', name='profile_pic', ), ...
[ "prabu6964@gmail.com" ]
prabu6964@gmail.com
61d41b77446a8bf350c21e4782b2e2bce3f5ad6a
4fcd166f2d6a9a31daed609feff8c7e37b3e359b
/librfid/FIFO.py
585810db1e73dd0ac5d82fc47148fadf64949d32
[]
no_license
fchorney/rfid_daemon
6bba2106d38489037b0666a1f07802d8c2ebe312
739119e48c6ed69820486668c33a0bd835b1a631
refs/heads/master
2021-06-14T14:34:25.211859
2017-02-03T18:34:18
2017-02-03T18:34:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
# -*- coding: UTF-8 -*- from os import mkfifo, stat from os.path import exists from stat import S_ISFIFO def isfifo(path): if exists(path): return S_ISFIFO(stat(path).st_mode) return False def openfifo(path, mode): if not isfifo(path): mkfifo(path) return open(path, mode) class FI...
[ "github@djsbx.com" ]
github@djsbx.com
b05c63535ada6a48faeb8b3038fc4d314df9e2a0
f891bda5635da422a2c76edbcb1af0061aa12574
/rest/migrations/0002_auto_20210314_1159.py
ba6e398bf6c9d3cb86518665d0bc887f01a8dc4f
[]
no_license
darkydash/olimpiada_ya_prof_task2_pi
60edc4c51297303a80d0b9386ec68c196054c06d
287f3f38b12dcc0beed39468f1a5feffb248a1ed
refs/heads/master
2023-03-18T23:02:35.523806
2021-03-14T09:19:42
2021-03-14T09:19:42
347,589,745
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# Generated by Django 2.2.13 on 2021-03-14 08:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rest', '0001_initial'), ] operations = [ migrations.AlterField( model_name='notes', name='title', ...
[ "darkydashie@gmail.com" ]
darkydashie@gmail.com
16c4b2fcf10ed1d8ed1bbe25f5cb06e02759fa77
1107d86d52dd5cdb1cb6dd1625ac5676ba66b540
/server/models.py
bd1d9054a4e66dd13c99164f19ee03fc905fbb0d
[]
no_license
anirudh1200/flask_react_jwt_auth
98238df3c43d16f356c9ab5c03b6ef9269ef8d7e
0430570f5a3abbd9d9e0addd4d27e5586e55d2f6
refs/heads/master
2020-06-21T07:16:26.191991
2019-06-11T15:23:23
2019-06-11T15:23:23
197,379,701
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class User(db.Model): id = db.Column(db.Integer, primary_key=True) firstName = db.Column(db.String(50)) lastName = db.Column(db.String(50)) username = db.Column(db.String(50)) password = db.Column(db.String(100))
[ "anirudh.b.123@gmail.com" ]
anirudh.b.123@gmail.com
74db1e67a767be1ccd50a8e60cbe29e1b58c56e9
bf30258c306c27ae7851fe5a701e311df7ba7293
/chatproject/routing.py
8da9fc78d866f9a68200f131a1d17dcc0ee49346
[]
no_license
soomin-jeong/chat-app
499076c57c3f4bc6fbd1b7db2a0353d89aababd4
6cdb3958ebdd48c7635f373c4e0e5f6dd02fb232
refs/heads/master
2020-06-30T08:18:57.635161
2019-08-06T08:47:42
2019-08-06T08:47:42
200,775,977
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from channels import include application = [ # To set up the websocket routing include("chat_app.routing.routing_websocket", path=r"^/socket/"), # For chat join, leave, and send include("chat_app.routing.routing_chat"), ]
[ "smjeong@ogqcorp.com" ]
smjeong@ogqcorp.com
f8245119fd7270f578f5d81fd88be98f949dea5a
83ac04c3ef23c06b497cb6d8913cee34645b818d
/UNIT 1/W1_Lecture 3.py
54783520f6ed219c61521fbf9627a9aa95877c40
[]
no_license
markjluo/MITx_6.00.2x
adc29297148144426de053e2e8f49c98fa8af113
b5c8ba805cfaaee8e2847d68751fe9a95b6dc0e2
refs/heads/master
2020-05-27T00:29:32.746081
2019-05-28T21:55:11
2019-05-28T21:55:11
188,425,039
0
0
null
null
null
null
UTF-8
Python
false
false
3,558
py
class Node(object): def __init__(self, name): """Assume name is a string""" self.name = name def getName(self): return self.name def __str__(self): return self.name class Edge(object): def __init__(self, src, dest): """Assumes src(Source) and dest(Destination) a...
[ "mark.j.luo@gmail.com" ]
mark.j.luo@gmail.com
e5356c009de0a60d2476a1ab574e460d8f281c61
40426dffc4024327a28511bb1178f5d07a9eacdb
/natas/natas5.py
0c1c58f1055d1ec5496332b8b6eca7d7e353eccc
[]
no_license
dr01dz/overthewire
52e3eac3d437bf30848738496b844ac5b6b645e0
e822a9a327dba0734ea6ec202c2cb22cfceb02cf
refs/heads/master
2021-05-18T07:16:59.847040
2020-03-30T01:55:29
2020-03-30T01:55:29
251,175,935
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
import requests import re username = "natas5" password = "iX6IOfmpN7AYOQGPwtn3fXpbaJVJcHfq" url = f"http://{username}.natas.labs.overthewire.org/" session = requests.Session() response = session.get(url, auth=(username, password), cookies={'loggedin': '1'}) content = response.text flag = re.findall(r"...
[ "dr01dz@pm.me" ]
dr01dz@pm.me
5458a59d2c1a1fc92e3d4f82b705bf473f5f329c
f3335c28c0eec1587f81c492289e83ca96fb066a
/integrationtests/TestYouTubeUserScraper.py
d264e51c26815fd41b79fa280c49e4d134caad3b
[]
no_license
souzaonofre/youtube-xbmc-plugin
1e373f05d7df5262cca0fa55f445a5c5aa56b901
80330ea03eadd72027dc5c1184f8df9c4f6d7a06
refs/heads/master
2021-01-18T10:37:58.637182
2015-04-11T17:42:36
2015-04-11T17:42:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
import BaseTestCase import nose import sys class TestYouTubeUserScraper(BaseTestCase.BaseTestCase): def test_plugin_should_scrape_liked_videos_list_correctly(self): sys.modules["__main__"].settings.load_strings("./resources/basic-login-settings-logged-in.xml") sys.modules["__main__"].settings.setS...
[ "commander.john.crichton@gmail.com" ]
commander.john.crichton@gmail.com
e224aba3ce164996f1d8fa2ecae19ad56194e37c
e50e73e3d18bd297eda0561421e5f5b44e47fde8
/ops.py
f58171f9239858581a8f6a789289992744f156e2
[]
no_license
JabariHolder/squad-tensorflow
57d1251eeb6dd2ee5922e5e27fec7ace748201f7
14ef5bb3b1119aa071f2324930e7f9e488ef212d
refs/heads/master
2020-03-24T19:37:50.991101
2018-06-13T05:58:16
2018-06-13T05:58:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,710
py
import tensorflow as tf import os from tensorflow.contrib.rnn.python.ops.rnn_cell import AttentionCellWrapper from tensorflow.contrib.tensorboard.plugins import projector def dropout(x, keep_prob): return tf.nn.dropout(x, keep_prob) def lstm_cell(cell_dim, layer_num, keep_prob): with tf.variable_scope('LST...
[ "jinhyuk_lee@korea.ac.kr" ]
jinhyuk_lee@korea.ac.kr
368cd162c2321582941fb96c9ef02d7aa65f8a41
3e7b9373afd1dc4ec30f0afd12f38b607a823747
/simple-sklearn-demo/test14/balanceTest.py
d52f7283569994b2c5f2d1ad9490cc3d0c8becb5
[ "MIT" ]
permissive
GlintW/Intern.MT
767512a42ba4f450d8b2b24fecf8595294d6fe7c
29538b083f29720bfdda7565eaca89292f7e3723
refs/heads/master
2020-06-09T10:40:43.720827
2019-07-05T03:36:21
2019-07-05T03:36:21
193,424,380
2
1
MIT
2019-07-05T07:04:31
2019-06-24T03:01:31
Jupyter Notebook
UTF-8
Python
false
false
4,389
py
""" 以癌症判断为例, 假设原本的样本有100个, 真实的正确标记是99个癌症, 1个正常, 将癌症视作正例的话, 假设不进行任何科学预测, 而是直接把100个都胡乱猜测为正例, 则: 精确率为 99% 召回率为 100% F1-score为 2 * 0.99 * 1 / (0.99 + 1) = 1.98 / 1.99 = 0.99497487437185929648241206030151 在这种情况下, 因为样本不够均衡, 精确率/召回率/F1-score都无法用来判断真实的模型能力, 会认为胡乱猜测的结果预测很准确. TPR True Positive Rate 真正例比率 TP / (TP + FN) 所有真实为1的样...
[ "crackedcd@qq.com" ]
crackedcd@qq.com
7234b46068e6c69c07d561b4565db25d1df52a21
5c38f7b1c479345ae02b9805458335b5f07acda5
/2. Useful methods/2_lesson2_step8.py
20533e59e843ca5f4c37ef8fa24578f28ece3926
[]
no_license
BenjaminPetrik/stepik-auto-tests-course
b3a667b34593220f4b73681d51466c812dc48919
ae40d40a1833e728afc660896d7ef62289c7a37e
refs/heads/master
2022-11-07T06:28:00.135119
2020-06-23T13:58:22
2020-06-23T13:58:22
272,705,087
1
0
null
null
null
null
UTF-8
Python
false
false
862
py
import os, time from selenium import webdriver from selenium.webdriver.common.by import By try: browser = webdriver.Chrome() browser.get("http://suninjuly.github.io/file_input.html") elements = browser.find_elements(By.CSS_SELECTOR, "[type='text']") a = 1 for element in elements: element.s...
[ "veniaminproductengine@lindenlab.com" ]
veniaminproductengine@lindenlab.com
a1c051123e8faa5112afbc7549b0e7b355131a1a
19ba3e5edfd76fb1801ff8e290ed87e6e4a3500e
/select_huge_glyphs.py
0a8157138e07a05fb459d9fec68d1564cacab9a7
[]
no_license
thundernixon/robofont-scaling-scripts
b0785d0dd93687e77a02e02716841be6b39c87ef
4a510c2e0bad5ef144d12b5e95c4321181f60cca
refs/heads/master
2021-08-23T21:23:37.288458
2017-12-06T16:18:01
2017-12-06T16:18:01
113,058,351
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
f = CurrentFont() sel = [] for g in f: for contour in g: for seg in contour: for point in seg: if point.y > f.info.ascender + 200: if g.name not in sel: sel.append(g.name) print sel f.selection = sel
[ "swr410@gmail.com" ]
swr410@gmail.com
38781e7b0e37c1a1936673f0ab5b178c0fbbc6f6
3b074226ba22a9438cfcb960b9aade03d2293394
/.c9/metadata/environment/addWebAccounts/cart/context.py
842496ca315773dfb440d42bf691cbee3491aaa6
[]
no_license
MACmidiDEV/e-comm
6e5b376c15acf3dd8b757cc441b3da8b91986b57
923963d9fae8d22a877844649bad72b784c0b5cc
refs/heads/master
2022-11-25T14:49:05.131637
2020-07-03T01:56:12
2020-07-03T01:56:12
224,777,076
0
1
null
2022-03-12T00:06:16
2019-11-29T04:31:54
Python
UTF-8
Python
false
false
8,650
py
{"changed":true,"filter":false,"title":"context.py","tooltip":"/addWebAccounts/cart/context.py","value":"","undoManager":{"mark":0,"position":23,"stack":[[{"start":{"row":0,"column":0},"end":{"row":21,"column":85},"action":"insert","lines":["from django.shortcuts import get_object_or_404","from products.models import P...
[ "mcamacho1990@icloud.com" ]
mcamacho1990@icloud.com
1c5b3e260feb0abf34d105b4ab31197434afe5f3
3b6930a9196fe14312065238dfa65e45c3782210
/Python Web Django/Python Django/project1/board/urls.py
f41f592be312240ad03af23567c9ea05c2ec435e
[]
no_license
KIMJINMINININN/Python
22d73487290d29f1c3f4c95b52e4c45917ca17ac
25db3f492203bccd61b57a59e59359e2ab4ae0e6
refs/heads/master
2020-08-10T11:10:18.698661
2020-01-16T07:48:49
2020-01-16T07:48:49
214,330,314
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
from django.urls import path from . import views # 현재 패키지에서 views 모듈을 가져옴 urlpatterns = [ path('index', views.index, name='index'), path('list', views.list, name='list'), path('write', views.write, name='write'), path('edit', views.edit, name='edit'), path('content', views.content, name='content...
[ "kjm9596@gmail.com" ]
kjm9596@gmail.com
650b1cddafdcf3bf377bbce779edd5211ecc1465
425b40227fc001db71b6e1ca1605f89fe397be7b
/reviews/models.py
19afd8e395b2e74984af10649d99d4736d3ed9e1
[]
no_license
WilsonKinyua/django-jwt-authentication
46c4fc33822e268d960d8209ca8ae41e29a2fdb1
d9cde71e19fd395d6b3a63a54b71ed1c8a90e587
refs/heads/main
2023-08-30T14:26:37.467549
2021-11-11T18:18:15
2021-11-11T18:18:15
427,054,678
0
0
null
null
null
null
UTF-8
Python
false
false
2,021
py
from django.db import models from django.contrib.auth.models import User class Company(models.Model): name = models.CharField(max_length=255) url = models.TextField() def __str__(self): return self.name class ProductSize(models.Model): name = models.CharField(max_length=255) def __str...
[ "wilsonkinyuam@gmail.com" ]
wilsonkinyuam@gmail.com
33b61bf2932f4411bf9ef228e7bde07fef9b852b
9face6b1854d76ed54cc8655de4b4af3a644b08a
/tt/lm/lm_interface.py
eb3cf88c5c07747109daecd037c0d53f422c2ab8
[]
no_license
oshindow/Transformer-Transducer
3b20597de3ed5e503130167df8b846fc62e0124d
aad37a26c4513fb0f2759e1c29c8cae77355bf6d
refs/heads/master
2023-03-15T18:22:29.659790
2021-03-11T11:14:02
2021-03-11T11:14:02
267,882,594
16
7
null
null
null
null
UTF-8
Python
false
false
2,571
py
"""Language model interface.""" import argparse from tt.interface.scorer_interface import ScorerInterface from tt.dynamic_import import dynamic_import from tt.fill_missing_args import fill_missing_args class LMInterface(ScorerInterface): """LM Interface for ESPnet model implementation.""" @staticmethod ...
[ "walston874848612@163.com" ]
walston874848612@163.com
4d93c3ab89f7bf0f9692c97824d0989cfbb687fc
6f54ce52f08806075f0445e7dd206baae96ebdca
/PoweredBy/languages/pt-pt.py
80a971191b36d62890865c8f3723871283037ee6
[ "BSD-3-Clause" ]
permissive
ykanggit/web2py-appliances
a93d318a214aa5b3e5cd6b47b642f2c12addba46
5ca7a04d5403f04aad9e90e99e10dbc05a08a50a
refs/heads/master
2022-05-06T08:55:11.089350
2022-04-14T19:25:02
2022-04-14T19:25:02
49,680,074
0
0
null
2016-01-14T22:41:45
2016-01-14T22:41:45
null
UTF-8
Python
false
false
4,186
py
# coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', '%s r...
[ "massimodipierro@Massimos-MacBook-Air.local" ]
massimodipierro@Massimos-MacBook-Air.local
ad258023d7e6c5bee3653c2eab16b6bb7b1e268b
0dc2d21387fc245d9ef6cc59ca89b5e45e2f242a
/TranscodeVideos.py
b66e98502ca47041583636a272af641f36dc948c
[]
no_license
lambdan/video_bla
b49b0580919927e2e77cb60a9f51d59b290c2d45
985a688b087270b2ae61e7cefab0bbea4e168293
refs/heads/master
2020-05-21T23:52:09.313204
2018-01-06T17:19:35
2018-01-06T17:19:35
58,374,192
1
0
null
null
null
null
UTF-8
Python
false
false
5,600
py
# TranscodeVideos.py - transcode a bunch of videos and move or remove the originals # (I used it for converting all my various .AVI files to x264 & AAC .MP4 files) # https://github.com/lambdan/video_bla/blob/master/TranscodeVideos.py import os import subprocess import sys import shutil import random import ti...
[ "noreply@github.com" ]
lambdan.noreply@github.com
344d8580155be95612f6e0637afcc43da9de33d3
a85b6f4b704cde9b6a7fbee55c171e49970b8eb8
/Module2/m2l2s6.py
079778fdc9001f083c4129f84afb675fa949f26f
[]
no_license
mamboosjka/stepik-auto-tests-course
690fb5aee3d3a4c8afa9ef0e5e72dba3125f4b1a
dfc8c31428ba33169f1494cab97f467f3ad0492a
refs/heads/main
2023-04-08T03:49:42.124582
2021-04-08T11:05:53
2021-04-08T11:05:53
355,862,515
0
0
null
null
null
null
UTF-8
Python
false
false
985
py
import time import math from selenium import webdriver def calc(x): return str(math.log(abs(12*math.sin(int(x))))) link = "http://suninjuly.github.io/execute_script.html" browser = webdriver.Chrome() try: browser.get(link) x = int(browser.find_element_by_id("input_value").text) res = calc(x) answe...
[ "mamboosjka@gmail.com" ]
mamboosjka@gmail.com
dd6541d9d8ff9ab4794e02ad2543b073688d076c
68c9a6e674a19b3e09909dcd92edea2ee0fdbfbe
/ichwiwiko/testboard/sorts/quicksort.py
1d7da340da69278f470e6cac8110594f2bfa1bad
[]
no_license
gomsang/AlgorithmTraining
b5446beb34ceeb8baa0c3448ec2165faf48a5a90
d4307e809953aa4a71796a179bb8e8867fc5327b
refs/heads/master
2023-03-16T11:16:35.204193
2022-10-20T11:35:15
2022-10-20T11:35:15
235,547,601
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
array = [5, 7, 9, 0, 3, 1, 6, 2, 4, 8] def quick_sort(array, start, end): if start >= end: return pivot = start left = start + 1 right = end while left <= right: while left <= end and array[left] <= array[pivot]: left += 1 while right > start and array[right] >=...
[ "gyeongrok.kim@gomsang.com" ]
gyeongrok.kim@gomsang.com
09309d271545275a88c3de88371ac5663368f43a
61d7f7dec12990c93f9fef622004adba9365cd6f
/mac/shop/views.py
e876fa9df8a2844ac61b6c6c8fdbbfe03567e157
[]
no_license
dheeraj-iitk/E-commerce
647cedff7281cd57eb4507593c07c6544ccb0bab
7981671934e6514e7ecad24ba17527085394c3ed
refs/heads/master
2022-12-01T20:55:46.273180
2020-08-09T07:50:51
2020-08-09T07:50:51
286,191,863
0
0
null
null
null
null
UTF-8
Python
false
false
4,490
py
from django.shortcuts import render from django.http import HttpResponse from .models import Product,Contact,Order,OrderUpdate from math import ceil import json # Create your views here. def index(request): # products = Product.objects.all() # print(products) # n = len(products) # nSlides = n//4 + ceil...
[ "adheeraj" ]
adheeraj
aa4e25862d208c3ca7a5087ea05eb8aa0943adab
fd928e7226d629fbc75c51c88a7523ecc9b0ec6e
/src/test/mylist.py
42cdb538aeff19f4f153e958f2e891733b6cd726
[]
no_license
z-mac/MyFirstWork
eb20a0d1cf3184f23ab5d913eaf02c615d97253d
62ff219e7a572c4f63cee0fadddaf2020e586dac
refs/heads/master
2021-04-27T07:21:40.261998
2018-02-25T02:11:42
2018-02-25T02:11:42
122,630,689
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
''' Created on 2018年2月23日 @author: Administrator ''' from builtins import repr class MyList(object): def __init__(self, start = []): self.data = [] for x in start: self.data.append(x) def __add__(self, other): return MyList(self.data + other) def __mul__(self, time): ...
[ "zhudg06@163.com" ]
zhudg06@163.com
8558affeb8a8ca35f2353bd99f82f3e24fbb62b4
13bf5804662ade86f3ba2801d436374134638ada
/filt_func_lam_git.py
907f796776f2ed43e946650f94d4ba3cf1116ca5
[]
no_license
Timothy-L-Baron/accum_filt_func_lamb
20cb50e99c30093e2f40709cc5c8353a6484dc25
f36fd9904b7211e88124495348f567cee24b0ad8
refs/heads/master
2020-12-10T03:58:05.474125
2020-01-13T02:36:25
2020-01-13T02:36:25
233,495,744
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
#Your choice of function or lambda expression l1 = ['left', 'up', 'front'] l2 = ['right', 'down', 'back'] """def length_tester(x1, x2): if x1 > 3 and x2 > 3: return True else: return False filter(lambda x1: x1 > 3, l1) filter(lambda x2: x2 > 3, l2) opposites = [lambda x1, x2: leng...
[ "noreply@github.com" ]
Timothy-L-Baron.noreply@github.com
15c2b5e4fd096ba9e34456682e877ad061103472
ccb29eb93e59bebbeacc76cd5de1b83d2963019e
/cache/.mako.tmp/comments_helper.tmpl.py
266dfe7096456f039860c344e67139308da3be9d
[]
no_license
Henrilin28/blog_nikola
0bedc654f134d06e9caabc745a43cf366a6ae193
14e2cc08c4f17543d41e79c1cc3ca961ed81dc82
refs/heads/master
2021-01-01T04:50:25.487948
2016-05-22T02:53:45
2016-05-22T02:53:45
59,391,866
0
0
null
null
null
null
UTF-8
Python
false
false
10,164
py
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1463885624.645596 _enable_loop = True _template_filename = '/Users/Henrilin28/.pyenv/versions/Niko...
[ "imhenry@me.com" ]
imhenry@me.com
7000a4849970f918ef076d96b36b84c8793c749d
0e0a51274af5ebee7972bf3aaaf913ca3ef9c339
/lab5prog.py
98e80636fa143477d0b293dbe67b8d3b074f17aa
[]
no_license
abhirungta15/abhishek
f2eee351fdf33951866cd2849a619e411954e9c9
aaf39a7835656d11fe5d31425465d93cacbb8d48
refs/heads/master
2020-07-01T14:12:02.841423
2019-11-21T07:17:49
2019-11-21T07:17:49
201,193,150
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
class callDetails: def __init__(self,c,r,d,t): self.cal = c self.rec = r self.dur = d self.typ = t def disp(self): print("\nCaller: ",self.cal) print("Reciever: ",self.rec) print("Duration: ",self.dur) print("Type: ",self.typ) class Util: def...
[ "noreply@github.com" ]
abhirungta15.noreply@github.com
09b35917c3d630de765d4c01397568171fea5663
a14ec6e367e6a471bfc74c066fb958ef585bc269
/2021/25/a.py
4071853842bf6b9a62759256250857218792d9f3
[]
no_license
jimhendy/AoC
90641814ed431f46a8500ff0f022c6c957567563
a1727f88bc2e6f739d65902dce188377966b3fb4
refs/heads/master
2023-09-02T14:48:39.860352
2023-08-28T08:09:19
2023-08-28T08:09:19
225,152,422
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
import os def step(east, south, width, height): next_east = set() next_south = set() for current in east: dest = ( (current[0] + 1, current[1]) if current[0] < width - 1 else (0, current[1]) ) if dest not in east and dest not in south: next_east.add(dest) ...
[ "jimhendy88@gmail.com" ]
jimhendy88@gmail.com
6f0364bb09295c95f320d0a1705d65ce785226a2
d568222a97c64b6a98365188b45abda2a3a1a21a
/app/core/tests/test_admin.py
5caf249936c3414f6e54e62b76e79e63ef994f44
[ "MIT" ]
permissive
nguyenlinh171/recipe-app-api
454b5f6889371bfb5997fcf43e5cb442ba718c98
339feb3df6aed6d424a19ca0748a49cd6ed173be
refs/heads/master
2022-12-18T18:21:11.310735
2020-09-12T22:37:53
2020-09-12T22:37:53
279,976,158
0
0
null
null
null
null
UTF-8
Python
false
false
3,119
py
from django.test import TestCase, Client """Additionally import the test client which allows us to make test requests to our application in our unit tests""" from django.contrib.auth import get_user_model from django.urls import reverse """reverse is a helper function which allows us to create url for our admin p...
[ "54919030+nguyenlinh171@users.noreply.github.com" ]
54919030+nguyenlinh171@users.noreply.github.com
8431d0865f52e94db4a1aa801d6483375ecccee0
ff05d487fa7a79e3045c139421ce9031b2aa7360
/effdet/evaluator.py
8a7222c1ea527e4546e0f47650c00a22faf68442
[ "Apache-2.0" ]
permissive
phager90/efficientdet-pytorch
eb92e6d5d4eb6c367d23081ce6abd0b2d1fa0cf2
bbd84c0e7ec2a23c6ae7447c437789524ba141dd
refs/heads/master
2023-07-17T13:33:25.835335
2021-08-30T18:23:37
2021-08-30T18:23:37
291,003,268
0
0
Apache-2.0
2020-08-28T09:14:34
2020-08-28T09:14:34
null
UTF-8
Python
false
false
3,130
py
import torch import torch.distributed as dist import abc import json from .distributed import synchronize, is_main_process, all_gather_container from pycocotools.cocoeval import COCOeval class Evaluator: def __init__(self): pass @abc.abstractmethod def add_predictions(self, output, target): ...
[ "rwightman@gmail.com" ]
rwightman@gmail.com
062ed619a2a9785ee7c7bb6df7787b25c9ac2d5d
7c955fedadad8428f2dfe377e419784e89dc34cf
/lab2del1/Lab-2-del-1-grupp-27 1/incremental.py
58a8f9901c9478e0a6e14358bfabc7c271488edc
[]
no_license
magdulator/d0012e
b5551708a27739375128bc7940bd5e1bf3a3f8f7
a6b8c27ed0a100f936a5a3f7121a3e9a383fd943
refs/heads/main
2023-01-31T22:47:46.779795
2020-12-15T11:59:55
2020-12-15T11:59:55
311,751,840
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
import random import math def generateList(maxNum, length): randomList = [] for i in range(0, length): n = random.randint(0,maxNum) randomList.append(n) return randomList def incrementalAlgo(randomList): print(randomList) minList = [math.inf]*3 if len(randomList) < 3...
[ "marcus99.ma@gmail.com" ]
marcus99.ma@gmail.com
c2c159837beaa43638ecdef24b0aa89e5d32595c
b4c405599e7ece55cd65647b2d08ec434890c0cc
/ValidAnagram0242.py
8423a294f21d9d23424e34cd46db0fca5269c3cf
[]
no_license
Naveen1789/leetcode
0f5742c26ea74af3bfaaf95c2302471816fb3e7b
59facf3c3806db0405de957850b1266a3fd39f7c
refs/heads/master
2020-04-26T20:59:12.843796
2019-07-08T07:30:50
2019-07-08T07:30:50
173,828,509
0
0
null
2019-07-08T07:30:51
2019-03-04T22:02:47
Python
UTF-8
Python
false
false
198
py
class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ return ''.join(sorted(s)) == ''.join(sorted(t))
[ "nnarayan@groupon.com" ]
nnarayan@groupon.com
d68cade990aa93e0622fa323fa783729d6f2b902
3134101271dda48daab261d8719303a00212bb89
/nlu/sklearn_Classification/train.py
ab8086246ff589d165ad0e5ac93060e11b2ed07e
[]
no_license
ykklin/KBQA-for-Diagnosis
e944f71264b7bd90c16776d6ec0a7f230fe381f9
8847ef445beb1000b1905b8fea57114ef8d56597
refs/heads/main
2023-05-28T07:20:20.836969
2021-06-07T05:39:58
2021-06-07T05:39:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,214
py
# -*- coding:utf-8 -*- import os import pickle import random import numpy as np from sklearn import svm from sklearn.linear_model import LogisticRegression from sklearn.ensemble import GradientBoostingClassifier from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from sklearn.metrics...
[ "350625640@qq.com" ]
350625640@qq.com
1a0fb8aa0fa8b64a69ac5a8040510b607facc284
f9128baa55e0b638567a8c1af17149a0278bdd68
/video/video.py
8a4391538a34f5efc626f0d3003a377eaebd9911
[]
no_license
super1peng/spider
5d3be575f2d8faf3d7d09d5a2ee2e250c0a7d9d9
d437f880927a5ec5172904698252f818190c227b
refs/heads/master
2021-01-01T19:37:40.269731
2019-03-24T05:06:07
2019-03-24T05:06:07
98,631,916
1
1
null
null
null
null
UTF-8
Python
false
false
1,521
py
#coding:utf-8 ''' 抓取最新的电影排行榜榜单 url:http://dianying.2345.com/top/ 使用 requests --bs4 线路 python 版本:2.7 OS: Mac os ''' import requests import bs4 import sys reload(sys) sys.setdefaultencoding('utf-8') def get_html(url): try: r = requests.get(url, timeout = 30) r.raise_for_status() r.encoding = 'gbk' return r.te...
[ "lxp@lxpdeMacBook-Pro.local" ]
lxp@lxpdeMacBook-Pro.local
cc4d76ca0b6ccea81ce0a0572fb374e11948d47b
220a35d689724475130a1e746d126cdf83561a82
/__init__.py
dc356837fd09d394c539e2b10e533164935217d2
[]
no_license
argeweb/plugin-shop-point
5525e2fbb7c76c2a0be500956023fae555192634
21aa0cc62e2eb5c98000a3181221107a5b937b17
refs/heads/master
2021-01-24T18:26:18.297526
2017-12-31T00:02:39
2017-12-31T00:02:39
84,439,777
0
0
null
null
null
null
UTF-8
Python
false
false
5,906
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created with YooLiang Technology (侑良科技). # Author: Qi-Liang Wen (温啓良) # Web: http://www.yooliang.com/ # Date: 2017/2/24. import time from argeweb import ViewDatastore from argeweb.core.events import on from .models.user_shop_point_model import UserShopPointModel from .m...
[ "cwen0708@gmail.com" ]
cwen0708@gmail.com
253a1628bdd94f6cf6ccc6232414e9be938ae8f8
afd7207ec79198ed8b515c66a4ff951692fc5756
/Backend/classbase/apps.py
fa9aeea553b29740f8fad006f1087cfc90cc50a0
[]
no_license
mdarifulislamroni21/Backend-project
469e58ee1c8395a56f45434efc238eccd2adea77
4a999c7cb520c811fb0a051015822944f5d8479d
refs/heads/master
2023-06-24T19:55:57.562157
2021-07-23T08:39:37
2021-07-23T08:39:37
388,731,430
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
from django.apps import AppConfig class ClassbaseConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'classbase'
[ "mdarifulislamroni21@gmail.com" ]
mdarifulislamroni21@gmail.com
c64849e80bea851fe7f4e51272613346a3637d16
8e924c9309c6a6e18df9c20b7fba7bad3158365c
/ad_os_homework1/server.py
4c56bfa6d1821cc30eb494e3d8b961379e1c9034
[]
no_license
LumingSun/Homeworks
e6fb96654caa21120e81f211b5268dbdf10e12b5
767a51ad91940ad80dd99debad70240bc3ef303a
refs/heads/master
2020-08-30T16:03:54.142283
2019-10-30T02:38:16
2019-10-30T02:38:16
218,428,308
1
0
null
null
null
null
UTF-8
Python
false
false
1,958
py
from socket import * def judge(player_1, player_2): if(player_1 == player_2): return 0 elif(player_1== 'J'and player_2== 'B'): return 1 elif(player_1== 'C' and player_2 == 'J'): return 1 elif(player_1== 'B' and player_2 == 'C'): return 1 else: return 2 def s...
[ "sunluming@ruc.edu.cn" ]
sunluming@ruc.edu.cn
582c3f6652991b01a81065cd669ecf1d36a67de6
a8cea6f25cadd904a13d83115d1500806f1d9e0d
/utils.py
418ecff098adfb3b5bf6ed06d8aa683edae5b383
[]
no_license
VladRim/learnbot
c93fa10e58a902454a374d033288f9cf050a01e0
30181a42e50662d793d442acd9348bf6ce969af4
refs/heads/master
2023-02-16T11:49:44.534805
2022-12-08T14:47:54
2022-12-08T14:47:54
240,859,359
0
0
null
2023-02-07T23:14:50
2020-02-16T08:49:17
Python
UTF-8
Python
false
false
872
py
from random import choice from telegram import ReplyKeyboardMarkup, KeyboardButton from emoji import emojize import settings def get_user_emo(user_data): if 'emo' in user_data: return user_data['emo'] else: user_data['emo'] = emojize(choice(settings.USER_EMOJI), use_aliases=True) retu...
[ "vlad_rym@mail.ru" ]
vlad_rym@mail.ru
2bc469b0e94182a6576d4291fb741e8d0a1aab08
19d313ce232eb91c625cb55ba38849440e2c8d94
/web/test_demo.py
4afe0a1dcf865097b10c3b37872ec30c7833a8d2
[]
no_license
xyqiang/pydemo
57d9d6ee0a6ad181818c1abfa39fc003e093fab5
74776ca4bbf4a7e621b27874797d392708c68273
refs/heads/master
2022-12-04T23:41:27.932696
2020-08-27T15:51:17
2020-08-27T15:51:17
288,662,394
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
from time import sleep from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait class TestBaidu(): def setup(self): self.driver = webdriver.Chrome() self.driver.ma...
[ "xuyanqiangak@gmail.com" ]
xuyanqiangak@gmail.com
a1ccebc348e9f5fcadcd168ada5d25f7b5eac74c
f1b1f58e3186d75641c4368ce85fd296eabf34d1
/checkall.py
b119a4b3546f6cd3a9b569a3723c9b21cc9fb8e2
[]
no_license
NCMohit/FingerPrintDB
fe6940cfc8b32948e59575cdce2d670302e326f4
0893a8038c54c9fb502ebdacc9ff19e7ba8720f1
refs/heads/master
2020-05-31T23:06:18.717820
2019-06-12T15:08:56
2019-06-12T15:08:56
190,532,770
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
#script to check all buyers and users import requests response = requests.post('http://127.0.0.1:5000/checkall', json="Cowbunga") #Change server IP if response.ok: print(response.json())
[ "noreply@github.com" ]
NCMohit.noreply@github.com
ef15b221bdbd47dcbd54d248ca66b5df938b3512
37784d6cc1236061c5a20acff860ce23880d72a0
/RemoveCharacters.py
411399e833a9d453ac92dddac258344b04578341
[]
no_license
ayyelle/CodeEval-Solutions
847f1aaa60d3529c07222a24de9e7caca21041dc
9ed426b4168af289629b65983bde8ff7490eb045
refs/heads/master
2021-05-04T10:59:22.820731
2017-02-05T09:17:36
2017-02-05T09:17:36
47,165,549
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
# I solved the Remove Characters challenge on @codeeval. http://www.codeeval.com/browse/13 import sys test_cases = open(sys.argv[1], 'r') for test in test_cases: splitArray = test.split(","); word = splitArray[0].strip(); takeway = splitArray[1].strip(); for letter in takeway: for otherLett...
[ "awyleong@interchange.ubc.ca" ]
awyleong@interchange.ubc.ca
ed58c2f7d2768861e44c0d6759b99b24c66bbbcb
14d2e54652c884bbb7ce8ad00abe17af8305eb89
/basespider/htmldownloader.py
a297b5dc4eb168e72d8939f4ec76c30b9eacdd5e
[]
no_license
oujx28/Spider_study
1a4d49283867cfd1756d21bfbded863e954375c4
68495ffcc7d90a1833c11307104d1b368ed3b8b6
refs/heads/master
2021-09-06T06:34:38.475200
2018-02-03T08:21:06
2018-02-03T08:21:06
118,708,906
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# coding:utf-8 import requests class HtmlDownLoader(object): def download(self, url): if url is None: return None user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0' headers = {'User-Agent': user_agent} r = requests.get(url=url,...
[ "oujx28@163.com" ]
oujx28@163.com
03aad048fd326465dacdba68767b5185be0599e9
0a89c26b9ca935f184b4d204c49131878337b27e
/popular-movies.py
d391031d6a2379497d054c77466424a0d88c1f94
[]
no_license
ajcse1/Movie-Recommendation-System
4d464cbaf405faa9dfdb80dc6347b1fcbd3927a5
05d4658ed4d570ac9945412b8fa6ae1f8cd42190
refs/heads/master
2021-01-11T15:19:22.616987
2017-01-29T06:17:09
2017-01-29T06:17:09
80,331,667
2
0
null
null
null
null
UTF-8
Python
false
false
471
py
from pyspark import SparkConf, SparkContext conf = SparkConf().setMaster("local").setAppName("PopularMovies") sc = SparkContext(conf = conf) lines = sc.textFile("file:///SparkCourse/ml-100k/u.data") movies = lines.map(lambda x: (int(x.split()[1]), 1)) movieCounts = movies.reduceByKey(lambda x, y: x + y) flipped = m...
[ "ajcse1@gmail.com" ]
ajcse1@gmail.com
8f2f936f6beaf453053dadd039d75bb75430f225
c0792645c156cb9e20a1aa2b28c565150358bc6e
/apps/inmueble/serializers.py
d9166f0f6f0260446d36b4092b9aaf89ad6ba48b
[]
no_license
clioo/Praver
b22fd92886e0399845adb4366663cae6a7d7853b
523f0d78e0a2039a5bae3e539c93e2c2415a0840
refs/heads/master
2020-03-11T12:38:54.272392
2018-06-28T18:24:21
2018-06-28T18:24:21
130,003,043
1
0
null
null
null
null
UTF-8
Python
false
false
2,115
py
from rest_framework import serializers from apps.inmueble.models import Inmueble,ImagenesInmbueble,Localidades from django.contrib.auth.models import User from apps.usuarios.models import Profile class InmuebleSerializer(serializers.ModelSerializer): imagenes = serializers.SerializerMethodField('obtenerImagenes') ...
[ "jesus_acosta1996@hotmail.com" ]
jesus_acosta1996@hotmail.com
4fb36500fa15632ac15b7957bf643f29310c6c60
f6dbab4737f462d1126420fe28581c4584f8777b
/onsetDetectionFunctions.py
eca272ed03261f2141e385e563aa77c42318ba38
[]
no_license
bradgowland/BirdEmporium
77570bad94f128143f3bf1d20132781fd713cc76
830df0e9dc20b25f652f67f7d6df3373397c84ae
refs/heads/master
2021-05-08T11:31:33.204777
2018-01-22T19:57:22
2018-01-22T19:57:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,321
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 11 23:36:03 2017 @author: DavidVanDusen """ import numpy as np from basicFunctions import bufferSig,getSpectrogram from scipy.stats.mstats import gmean from scipy.signal import medfilt, butter, filtfilt def plotSpectrogram(array,win_size,hop_size,...
[ "vandusen5000@gmail.com" ]
vandusen5000@gmail.com
80216700b3417c217422132d2a882e988c1c97f7
db849509c78603e2b4820b6e27f0ffaa648b8e5a
/catkin_mapping_ws/build/turtlebot/turtlebot_bringup/catkin_generated/pkg.develspace.context.pc.py
8c35d2d54212acd7fbb209eab051e21a6e12bd84
[]
no_license
AnkushKansal/GridBasedFASTSLAM
684550f9cea1e9c885fa1cceaea7721941ee8d47
94c472c4d8145d154dd2a69c6ee6188197037d9c
refs/heads/main
2023-04-16T17:44:40.219283
2021-04-13T18:18:33
2021-04-13T18:18:33
357,618,850
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "turtlebot_bringup" PROJECT_SPACE_DIR ...
[ "ankush.kansal19@gmail.com" ]
ankush.kansal19@gmail.com
0d6d4e41a52a8b721e2cf46ea08845715b6135d5
2a394194f77dfd600913a811868df9e644a999fa
/meiduo_mall/meiduo_mall/apps/carts/utils.py
8d62d6c1b479bb67b00d3f6a76a60e3e5fc616e4
[]
no_license
18882028307/meiduo_project
01a66053e6c74457377e6f34ff9c17ed251b32a3
2814979eb1f5280ad5d37a5f7188506894d7c8c8
refs/heads/master
2020-08-16T00:35:04.745494
2019-11-01T10:27:33
2019-11-01T10:27:33
215,431,413
0
0
null
null
null
null
UTF-8
Python
false
false
1,698
py
import base64 import pickle from django_redis import get_redis_connection def merge_cart_cookie_to_redis(request, user, response): """ 合并购物车,cookie保存到redis中 :return: """ # 从cookie中取出购物车数据 cart_str = request.COOKIES.get('cart') if not cart_str: return response cookie_cart = p...
[ "710363437@qq.com" ]
710363437@qq.com
2d16a9054e22480fa489ec2ed89ab54a86f8c85c
60aeff792a1cd3a476a34ca333b8bab2715d787d
/simple_audio_recognition/generate_streaming_test_wav.py
a2ed95edc054a3922f2883ebb287aafb7396e697
[]
no_license
ziippy/tensorflow-speech-recognition-challenge
9e377b17657cbce9f3d5326e860d12bf0b326e07
3304b44c5ae1c7af5f161af6fbd3ba64699974c3
refs/heads/master
2023-01-24T08:46:36.466238
2020-12-04T03:31:43
2020-12-04T03:31:43
112,940,339
1
0
null
2017-12-04T14:34:15
2017-12-03T15:39:37
Python
UTF-8
Python
false
false
10,932
py
# Copyright 2017 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...
[ "ziippy@naver.com" ]
ziippy@naver.com
123cd95d903ac9a0e5514b4f4aea512078990c6b
b697e6ba57ae5b70c81762ee9c7b76158d998d4b
/functional_tests/test_my_lists.py
658a09345200c9e1274a913ce2ff5c3946ff0404
[]
no_license
jhagege/book_example
419b64acbf7d1ef57bbff7a05290fbadedbb39f5
4eb88bf822715b031538a72cc08ea6bb54f7c695
refs/heads/master
2023-05-31T11:26:18.542916
2019-08-12T21:15:32
2019-08-12T21:15:32
198,066,799
0
0
null
2021-06-10T21:44:46
2019-07-21T14:30:11
JavaScript
UTF-8
Python
false
false
2,816
py
from django.conf import settings from django.contrib.auth import BACKEND_SESSION_KEY, SESSION_KEY, get_user_model from django.contrib.sessions.backends.db import SessionStore from functional_tests.management.commands.create_session import create_pre_authenticated_session from functional_tests.server_tools import creat...
[ "joachim.hagege@alibaba-inc.com" ]
joachim.hagege@alibaba-inc.com
a57730a7979dc3c57c74c59a29356e7e916dbdc5
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/ipsec_policy_py3.py
ada123aa21f28ec5aeaf0746d0048305d73420cc
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
4,388
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
701c49eedae3939ba4f75ef2a8241253462a7a1d
f816ab1b508ebcc6f858e3fd15377bf7bdb97e5e
/kolstatapp/views/ajax.py
d9b7442ad746e492f379272640e8b80867cc5672
[]
no_license
xneby/kolstat
4219da46cc1a5784b97ed50fb69572d292686a8e
877ffcf5a0c25f0e7c87ad16617a66c7cec2a19b
refs/heads/master
2020-05-02T12:35:13.096115
2013-05-27T18:29:32
2013-05-27T18:29:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
import json from kolstatapp.models import Station, UserFavouriteStation as UFS from kolstatapp.decorators import ajax from kolstatapp.exceptions import BadRequest @ajax def ajax_station(request): for field in ('query','type'): if field not in request.GET: raise BadRequest() name = request.GET['query'] type = ...
[ "karol.farbis@gmail.com" ]
karol.farbis@gmail.com
205855857c122e67c0d6e0db7df6b9f1e94ec102
fdbfb2d7302fee1388a8facc2938d1e4259f1615
/tensorLayerTest/tensorlayer/rl/test1.py
98ec6a789b17cfc895fd55d210d6b6686f6d63ef
[]
no_license
kflyddn/tusharetest
e261c498f06897e6914c20681941b60f05cc0107
a05919a5b41288f97a0b73bb5cec97400daa959b
refs/heads/master
2020-05-07T14:53:05.957456
2018-06-26T15:58:20
2018-06-26T15:58:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,567
py
#! /usr/bin/python # -*- coding: utf-8 -*- """Example of Synced sequence input and output. This is a reimpmentation of the TensorFlow official PTB example in : tensorflow/models/rnn/ptb The batch_size can be seem as how many concurrent computations.\n As the following example shows, the first batch learn the sequence i...
[ "78732833@qq.com" ]
78732833@qq.com
f270f1f9f205464eecc6286116d5f393e29b632c
846dc93416153ef6707e3d8b22fa9ade3e9712d8
/Eclipse/GroundIDB.py
74e814c9e23451feeef49f989b8a941e19400a26
[]
no_license
ehmoni/Datalog-Weighted-Repairs
b0103753f6ba09fffd74c48e32297d85143ce03b
1bfecd62946574f6704966d2260fc40db3b7754e
refs/heads/master
2022-02-25T19:54:20.270689
2019-11-10T01:54:41
2019-11-10T01:54:41
205,717,284
1
0
null
null
null
null
UTF-8
Python
false
false
679
py
RuleRecord = {} RuleRecord["G_01"] = "(admDrugT(Date, PrescribedBy, Drug, Patient, Age) & personSpec(PrescribedBy, Specialist) & drugType(Drug, DrType)" def GroundIDB(di): ditk = di[-6:-2] print(ditk) body = RuleRecord[ditk] return 0 # def GroundIDB(di): # ditk = di[di.find("...
[ "noreply@github.com" ]
ehmoni.noreply@github.com
33759813fc74e64798832ff55f2d4bd596a0903c
1aa404dc254e64962a67833fe3060045bcd17fd0
/Study/project_study/readExcel.py
fa8e28f5dff0ecc6ba9e54d70433440a77e45f63
[]
no_license
guohuahua2012/samples
f1c9d0f988b0309902c3ba94bd1d09d8ba1de5fe
18c1744c4077f2a5bb1567aec66839aff3b7f48d
refs/heads/master
2020-05-19T12:21:57.961943
2020-04-11T13:04:14
2020-04-11T13:04:14
185,012,350
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# -*- coding: utf-8 -*- import xlrd class ReadExecl(): def readExcel(self, filename, sheetname): cls = [] try: data = xlrd.open_workbook(filename) table = data.sheet_by_name(sheetname) keys = table.row_values(0) nrows = table.nrows ncols...
[ "guohuahua2012" ]
guohuahua2012
8e79a3aab8b3e2af24d86803a70b2057cade5424
3be13eaad65b202ffe4ac333ed48dfd5432db547
/single qubit/QL/environment.py
bf57f591ed749eda99574ee567629ccdef2fc356
[ "MIT" ]
permissive
tuliplan/RL_state_preparation
5b68310d0957972c1e86df9ef3cfcf78edecf8d2
e2904edb43a55061d77915098633a5c6211d91a3
refs/heads/master
2022-02-18T12:03:07.139584
2019-09-06T03:15:57
2019-09-06T03:15:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,868
py
import math import cmath import numpy as np from scipy.linalg import expm sx = 1/2 * np.mat([[0, 1],[ 1, 0]], dtype=complex) sy = 1/2 * np.mat([[0, -1j],[1j, 0]], dtype=complex) sz = 1/2 * np.mat([[1, 0],[0, -1]], dtype=complex) def hamiltonian(j): J = 4 H = (j) * J * sz + sx return H psi_target = np.mat...
[ "noreply@github.com" ]
tuliplan.noreply@github.com
06f9786c2bd88a921be9c2d98ed62b4f8689be8d
aeebc330434929fdec92d0fc3108406faacdbd05
/Python/progate/python_study_3/page9/script.py
2cba02a4424fde1a3ba5a0a2ac1734ba74fd0650
[]
no_license
T-o-s-s-h-y/Learning
740ed0ef70792c62e553794f8b4c01be8f8490c7
da5c224fb9c1aba726749a2adfa89867dd7e8721
refs/heads/master
2023-03-19T20:42:40.284533
2022-12-26T05:43:41
2022-12-26T05:43:41
189,822,954
0
0
null
2023-03-17T06:08:27
2019-06-02T08:33:55
Ruby
UTF-8
Python
false
false
741
py
def validate(hand): if hand < 0 or hand > 2: return False # elseを消してインデントを直してください return True def print_hand(hand, name='ゲスト'): hands = ['グー', 'チョキ', 'パー'] print(name + 'は' + hands[hand] + 'を出しました') print('じゃんけんをはじめます') player_name = input('名前を入力してください:') print('何を出しますか?(0: グー, 1: チョキ, 2: ...
[ "51285386+T-o-s-s-h-y@users.noreply.github.com" ]
51285386+T-o-s-s-h-y@users.noreply.github.com
05d05de778ec97436a6174507188d1383adac08e
7f1325de95175e24eb989081110c169fbcabb777
/roomai/texas/TexasHoldemEnv.py
66c5fb5ca1d0c13a1530d6e2bd7bc1e2cf196d5d
[ "MIT" ]
permissive
jichao6758/RoomAI
3bd268f5cc8734f7c4bb09d5014f61ee8d68954e
18a3efa0d608c80f2cf8bf9fe743b5911cce9f6b
refs/heads/master
2020-12-02T09:58:40.171871
2018-04-22T07:39:45
2018-04-22T07:39:45
96,668,863
0
0
null
2017-07-09T07:40:38
2017-07-09T07:40:38
null
UTF-8
Python
false
false
31,226
py
#!/bin/python #coding:utf-8 import random import copy import roomai.common import roomai import logging from roomai.common import Info from roomai.texas.TexasHoldemUtil import * from roomai.texas.TexasHoldemAction import * from roomai.texas.TexasHoldemInfo import * from functools imp...
[ "jichao6758@sina.com" ]
jichao6758@sina.com