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
f8f355ac590a2f2b29218b8123e6de75f99bdb76
81d3d194cb2545916fc12e47eb9bc9471999d226
/spokehub/wsgi.py
d5c0380350e9978efcc2288af6a76de7b4f68a78
[]
no_license
thraxil/spokehub
91e88278bfccbff8c636221e13fec5a72b7b174b
e1ac0a335d454719af6b29ae1e7c8aae0b69a425
refs/heads/master
2021-07-12T20:06:44.398113
2021-03-15T16:08:08
2021-03-17T10:46:29
16,827,151
1
2
null
2021-03-28T11:08:51
2014-02-14T04:37:29
Python
UTF-8
Python
false
false
189
py
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "spokehub.settings") application = get_wsgi_application()
[ "anders@columbia.edu" ]
anders@columbia.edu
dba74e1793f65d06a2685f1f3cecc728ed06726e
5d029426b972b94ed5e9bd587a1336cfbd8655cf
/app/__init__.py
5ebcb695608297970eaeb1ec7db3cd474b9ae7f3
[]
no_license
jkhostopia/shShorts
ee03bebd938b6f02b01cab4b022f2752726eabd9
dd2e3081a3e139e3fe2a03caa4bae8c6937e6cf6
refs/heads/master
2022-12-11T18:57:51.174069
2020-08-19T04:38:45
2020-08-19T04:38:45
288,174,279
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
from flask import Flask app = Flask(__name__) from app import routes import logging from logging.handlers import RotatingFileHandler import os if not app.debug: # ... if not os.path.exists('logs'): os.mkdir('logs') file_handler = RotatingFileHandler('logs/apperror.log', maxBytes=10485760, ...
[ "noreply@github.com" ]
jkhostopia.noreply@github.com
c5f5d783e7178823a11129913b70eeaaff7aacee
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/ocr-numbers/38ce19b8e031425f9401126d45985f54.py
4d4e69b832039edf020fe93f081b0cad9f3c79f9
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
734
py
raw_nums = [ ' _ ', #' _ _ _ _ _ _ _ ', '| | |', #' _| _||_||_ |_ ||_||_|', '|_| |', #'|_ _| | _||_| ||_| _|', ' ', #' ' ] max_num = 1 num_grid = [] for ix in range(max_num+1): num_grid.append( [ s[ix*3:(ix+1)*3] for s in raw_nums ] ) def cmp_str(l1, l2): for ix in r...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
1ee2c923e5c6c91fec4bb361065d5dec791dea0c
2c55f64836673c45e88adac4bbdd5fc5763a06ff
/chapter05playingwithsetsandprobability.py
ae1cc82207c759fb0861794139d7616d183fc395
[]
no_license
raymondmar61/pythondoingmathwithpython
d6dc9f114cc0948a9b8b5283ab349f8e7d75052e
d18dce5bdb7e8931b32ac39e687d8a2b33bdcef2
refs/heads/master
2020-05-18T11:00:02.215981
2019-05-29T02:20:34
2019-05-29T02:20:34
184,365,328
1
0
null
null
null
null
UTF-8
Python
false
false
8,478
py
#Chapter 5 Playing With Sets And Probability #A set is a collection of distinct objects often called elements or members. No two members of a set are the same. In mathematical notation, a set is enclosed in curly brackets; e.g. {2, 4, 6} from sympy import FiniteSet from fractions import Fraction firstset = FiniteSet...
[ "raym61@hotmail.com" ]
raym61@hotmail.com
b31eceb37b5b7e829c53b6e59b770a0e8061880f
1a0b516452dc37f5686cc87add50cae6b3830cb8
/backend/app/__init__.py
1eeb5150e865400a97494dac6bdc41a22af82a38
[]
no_license
findcongwang/iot_data_collector_example
b2119434210816299599bdbe72eb65ad90219604
8d78d26bb98909897a1ed7c8f9fd671cfa5ddec6
refs/heads/main
2023-02-28T20:37:26.537199
2021-02-09T23:53:34
2021-02-09T23:53:34
337,159,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
import json from datetime import datetime from flask import Flask from flask_sqlalchemy import SQLAlchemy from pymemcache.client.base import Client app = Flask(__name__) app.config.from_object('config.Config') db = SQLAlchemy() db.init_app(app) from .models import DeviceData """ We use memcached to cache the top 10...
[ "findcongwang@gmail.com" ]
findcongwang@gmail.com
c60f1607a09f2deb1dc277f57c1ce10a9fc7d54f
3acf7a22b1d68ab238b713da46788c9ffdd5b96e
/src/huapa_deep_res_bi/code/data_helpers.py
8c510fceaddbc185525e6fea933e570904a886b5
[]
no_license
ethnhe/DeepNeurlNetSentimentClassification
245bb6737c050699753f8e25667a47b6fcf247f4
e181676761233434322c3cfcaa013b2ed385bfe7
refs/heads/master
2020-04-10T03:46:01.461070
2018-12-07T06:32:32
2018-12-07T06:32:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,007
py
#-*- coding: utf-8 -*- #author: Zhen Wu import numpy as np import pickle import tqdm import os import nori2 as nori from tqdm import tqdm import pickle def load_embedding(embedding_file_path, corpus, embedding_dim): wordset = set(); for line in corpus: line = line.strip().split() for w in line...
[ "heyisheng@megvii.com" ]
heyisheng@megvii.com
db6d810b48a8953558ca2300f85cdbda928d94e5
bdec175f02173938f99e546e772ce8b3730a3f48
/basics/ex94.py
f4c921e18b6d1616f1f2cef7e1821cb959a77f74
[]
no_license
hmunduri/MyPython
99f637f6665a733903968047aa46b763d9557858
af26f3a4ffb9b786d682114635b432480010ffc8
refs/heads/master
2020-03-09T13:13:59.873228
2018-04-20T22:33:30
2018-04-20T22:33:30
128,805,444
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
x = b'Abcd' print(tuple(x))
[ "root@himagiri0275.mylabserver.com" ]
root@himagiri0275.mylabserver.com
ccbf9eca6a67c56757f628f48ebba4f1013ff7c8
c9da94f3f010bfe415e4e805e037e5558b06eb11
/polls/urls.py
f470b7a47fc8252cfccb05eea8f60f8608eb24c9
[]
no_license
nam2582/hanvit_basic
1b807456aa09918393bba5852b3ca30c4626720c
22d5ae48eb39be551d2dfac013a7415056d7678b
refs/heads/master
2020-06-17T19:49:33.489942
2016-12-01T16:01:54
2016-12-01T16:01:54
74,974,119
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'), url(r'^(?P<question_id>\d+)/vote/$', views.vote, name='vote'), url(r'^(?P<question_id>\d+)/results/$', views.results, name='results'...
[ "sangwoonam@SANGWOOui-Mac-mini.local" ]
sangwoonam@SANGWOOui-Mac-mini.local
a0ac56290b54da96b8e6193865496d39b06a3b95
a076650ace6022949665b900afb0ef0cd4d5509a
/python/Lib/site-packages/grpc/_common.py
bd1a4b8112bad741dabf10dec10298ec6c71a45d
[]
no_license
Gouet/Keras_loaded_model
5829b1179accc7c34aaef3d75fffb5f10fed8e31
512b291ad55d3e7ee31cfc75670d296a75550d64
refs/heads/master
2021-09-29T14:36:29.771088
2018-11-25T15:42:04
2018-11-25T15:42:04
154,397,975
0
0
null
null
null
null
UTF-8
Python
false
false
3,650
py
# Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
[ "victor.gouet@epitech.eu" ]
victor.gouet@epitech.eu
b77de00da770cac07e6c97f20b6913735e20eece
b1af2ba3fd1eb7534d0085e34f9df26d3ef73766
/trees.py
72d38e7597e7977906ffd8febc36258535bd9dbd
[]
no_license
StopImpossible/machine_learning_in_action
22b713d0202e3540cffa48f90ffa6a2e49054c30
8d06c9a25b30844b651c0216fa210051dda60dd4
refs/heads/master
2016-09-06T15:11:37.415459
2015-04-23T06:01:27
2015-04-23T06:01:27
34,123,132
0
0
null
null
null
null
UTF-8
Python
false
false
2,972
py
from math import log import operator def calc_shannon_ent(data_set): num_entries = len(data_set) label_counts = {} for feat_vec in data_set: current_label = feat_vec[-1] if current_label not in label_counts.keys(): label_counts[current_label] = 0 label_counts[current_lab...
[ "wkwinchi45@icloud.com" ]
wkwinchi45@icloud.com
4597dc33d08af74ebcb534d0e8370982daa1bc0e
a970773ac578c5a73b6d67a5d1915aca01b59262
/Instance_Class_Static_MethodsAll.py
a0591ad126cd44942b6457e9cbf629c6d74cb796
[]
no_license
amitagrahari2512/Python-OOPS-Basics
01baeb130df9ba55e328ff8d56a86ba72e1451ba
cf1889b6c013b3201d1e08f14035687e2783400e
refs/heads/master
2020-12-21T04:41:26.191797
2020-01-29T18:53:50
2020-01-29T18:53:50
236,310,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
print("We can use same name as instance variable and class variable , but we need not to use it" "because it is confusing") print("We can call class method and static method with object also.") print("Here we use school as as Instance Variable as well as Class Variable") class Student: school = "IndianSchool"...
[ "amit.agrahari@nagarro.com" ]
amit.agrahari@nagarro.com
4d2040cfd857462d9177e04a474cd0ec2c7dffc0
eaeb9a6ed7f55512567f77acb26a41c9ac33d88f
/9/test_day9.py
65d6c3f6fec67e023a5950c32a9bf28b5c7a67b2
[]
no_license
apriljgranzow/advent-of-code-2017
07f066a1904c8631bf18c63b84b0daeadf275bcc
5717372e0e37c799baa57659aba63ec22650183d
refs/heads/master
2020-04-21T00:23:11.234313
2019-03-09T04:10:14
2019-03-09T04:10:14
169,194,879
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
import solution as s def test_part_one(): examples = { r'{}' : 1, r'{{{}}}' : 6, r'{{},{}}' : 5, r'{{{},{},{{}}}}' : 16, r'{<a>,<a>,<a>,<a>}' : 1, r'{{<ab>},{<ab>},{<ab>},{<ab>}}' : 9, r'{{<!!>},{<!!>},{<!!>},{<!!>}}' : 9, r'{{...
[ "4971311+apriljgranzow@users.noreply.github.com" ]
4971311+apriljgranzow@users.noreply.github.com
da69b3e7f67a20803ea74942b5394c331f4ef4ab
cf3eee09420844f3d42579c74a6fe0428ed5daa9
/quickparse/__init__.py
961b0fecf938cb5b7cce718a783d977314dc5f5d
[ "MIT" ]
permissive
silkyanteater/quickparse
c29b1fe47734661e6fbbf92787ffdf0a2db61123
f2d8edee0caee38a8392abc38b5119c6a009ff99
refs/heads/master
2021-07-03T06:26:00.083976
2021-02-27T16:08:18
2021-02-27T16:10:32
222,091,109
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
__version__ = '0.9.0' __license__ = "MIT" __author__ = 'silkyanteater' from .quickparse import QuickParse
[ "cyclopesrufus@gmail.com" ]
cyclopesrufus@gmail.com
26386fef2eaa634783368e84dcf3465711c3750b
265af0af6ef3e99ae07aa59aadf9ee1f59785667
/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi
820f6bcd9afba06d77aebe1111320bb40f03f800
[ "Apache-2.0" ]
permissive
ingenovishealth/openapi-generator
0a936b884f7554639dd73eb389a14898101b819a
22beeaac4e9edac5c886a6b2078afbacfeaef102
refs/heads/master
2023-02-09T03:17:32.449794
2023-02-01T04:27:27
2023-02-01T04:27:27
218,272,372
0
0
Apache-2.0
2023-09-12T14:00:27
2019-10-29T11:35:27
Java
UTF-8
Python
false
false
8,388
pyi
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from unit_test_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noq...
[ "noreply@github.com" ]
ingenovishealth.noreply@github.com
43fbcc6ea2fcc49ceabaa059322ca7f75d31c926
1c4271cd8bbe50dbc490166e38dc21754f81bfc8
/api/projects/models.py
08c7fbe8ae65fc2c98c4c12b6b06fce3e86a2ee8
[]
no_license
urbrob/django-graphql-template
96b9873612992a4f6fbd851a4c27e4414c59a458
b9106e220400cfbc09bc240b60e6f8fc2506f6c2
refs/heads/master
2020-05-20T05:10:30.343821
2019-05-10T21:13:21
2019-05-10T21:13:21
185,396,774
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
from django.db import models from users.models import User class Membership(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='memberships') project = models.ForeignKey('Project', on_delete=models.CASCADE, related_name='memberships') class Project(models.Model): users ...
[ "noreply@github.com" ]
urbrob.noreply@github.com
4c0c384fe274f0ac2032a6b13cff9f90adcaf2da
193109693cfabc95bb929846c3050a979b468a54
/_solutions/spaceShooter/src/ship.py
0c9d6d40730331d136271887c708f50579497a01
[]
no_license
jtmcg/game-design-course-code
a84da963a4ccfc40d84e6cf4a43d0921c4aeedc0
cba3e4c0f34c566702af580883f023156697acca
refs/heads/master
2021-08-22T03:22:35.905407
2021-07-24T01:59:19
2021-07-24T01:59:19
215,602,586
0
19
null
2021-07-06T00:58:19
2019-10-16T17:12:03
Jupyter Notebook
UTF-8
Python
false
false
1,369
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 22 14:17:47 2019 @author: J. Tyler McGoffin """ import pygame class Ship: def __init__(self, WINDOWWIDTH, WINDOWHEIGHT): #These are not global variables here but arguments passed to this class. self.image = pygame.transform.scale(pygame.image.load("ArtA...
[ "jtmcgoffin@gmail.com" ]
jtmcgoffin@gmail.com
ec5283a4e7489ec15806353bf65b1188b13172ac
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/GFocalV2/configs/hrnet/fcos_hrnetv2p_w32_gn-head_4x4_2x_coco.py
5b57cd1a5a4962e965c8d00442b67d775370c2aa
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
706
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
8e6105dd44eadbc46d92fa738c6aa7b756063a5e
7bee97304a639d4669e07c01fbd0d7a41c81b1fa
/ch2sql/tools/hit_ltp.py
109c6969ba3aa6e695b63c59f4e3f4ae312136f2
[]
no_license
we1l1n/ch2sql
f038825b95b1ca50d26438eb45ae5b68f158aabb
5b7035c56c96fdc78b0ee2adadeab018c1c5b0fc
refs/heads/master
2020-04-17T08:26:13.092545
2018-04-20T16:04:32
2018-04-20T16:04:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,987
py
import jieba import os class LtpParser(object): """ 哈工大LTP工具的使用包装. git clone以后这里的代码需要修改, 要将ltp_path 的路径改为本地机器存储ltp模型文件的路径. 模型文件 较大, 无法随项目一起上传 """ default_ltp_api_key = "s1n5k7M9i5zXTqamAy3V1U7CkwskygraFX5fpKyH" # 路径变化这里需要修改 ltp_path = "/Users/alexsun/codes/nlp/ltp_practice/ltp_model/lt...
[ "suncun1995@gmail.com" ]
suncun1995@gmail.com
0a50c8c89a18036424915cec2fce88ceb60f74c0
a2f8c4048edd7826b2584f6aea0e121eb68f57e3
/003_abstract_factory/abstract_factory.py
e67a5c74d9d7c10ef289c9f554a69ab98ad85237
[]
no_license
kelvmg/python-oop-design-patterns
9aca038319f9fa10f64ad1e2715eb06b2e583910
dae397f8f47ca9763a15a2698d00627fd55b5ade
refs/heads/master
2020-03-29T17:49:31.780428
2018-07-29T06:25:02
2018-07-29T06:25:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
# === abstract shape classes === class Shape2DInterface: def draw(self): pass class Shape3DInterface: def build(self): pass class TouchInterface: def touch(self): pass # === concrete shape classes === class Circle(Shape2DInterface): def draw(self): print('Circle.draw') class Square(Shape...
[ "evgeniy.poznyak@gmail.com" ]
evgeniy.poznyak@gmail.com
7008b57841c98a0fce3652dbb38c176adda03cb3
563763d12d6cee291ea13291b165a57a5d13b4a1
/conexiones_plot.py
332c6d957e9e6b76cc6d03168efa5ef01c31b8f2
[]
no_license
evalvarez12/qubits-CUDA
e228462d35ac6aff7fa18d0bb329421d24535e82
22cc1558c56dc3a3a4c56dd5b2e82584b80fdcc2
refs/heads/master
2021-01-10T18:11:18.320208
2015-12-23T16:43:15
2015-12-23T16:43:15
31,934,735
2
0
null
null
null
null
UTF-8
Python
false
false
478
py
from pylab import * lines=['o-','<-','p-','v-','*-','^-','D-','h-','>-','H-','d-','x-','s-','+-'] gammas2=[] for i in range(1,15): gammas2+=[round(.75*(6./sqrt(double(i))),3)] #gammas2=[.75,.75,.75,.75,.75,.75,.75,.75,.75,.75,.75,.75,.75,.75] l=0 g=0 for i in range(1,15) : a=loadtxt("pur_conexiones-max-2-"+s...
[ "evalvarez12@gmail.com" ]
evalvarez12@gmail.com
44b87f3143af69381447ea5ce8faf1a769439035
ffadf9541d01cf9af20c419759d48b1eb01bfd35
/pachong/PCdemo1/day13/quanbenspider/quanbenspider/pipelines.py
ca48a3c9f540a7f32550cc34dd2c6201c8bb0dcd
[]
no_license
1987617587/lsh_py
b1bb1016eaafcba03bbc4a5310c1db04ae227af4
80eb5175cd0e5b3c6c5e2ebb906bb78d9a8f9e0d
refs/heads/master
2021-01-02T05:14:31.330287
2020-06-20T05:18:23
2020-06-20T05:18:23
239,498,994
2
1
null
2020-06-07T23:09:56
2020-02-10T11:46:47
Python
UTF-8
Python
false
false
903
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html import codecs import csv # 爬取小说名称,url,类别,作者,更新时间,状态 class QuanbenspiderPipeline(object): def __init__(self): ''...
[ "1987617587@qq.com" ]
1987617587@qq.com
286c67711c42fd4b7334736bdf01b59616956cdd
3869cbd5ee40e2bab5ca08b80b48115a7b4c1d5a
/Python-3/basic_examples/strings/raw_strings.py
c40bdec7c3805cc503e499724f940fd1e7e56ab2
[ "MIT" ]
permissive
Tecmax/journaldev
0774c441078816f22edfd68286621493dd271803
322caa8e88d98cfe7c71393bcd2a67cf77368884
refs/heads/master
2020-07-08T04:05:03.028015
2019-08-12T09:17:48
2019-08-12T09:17:48
203,559,030
0
1
MIT
2019-08-21T10:13:47
2019-08-21T10:13:47
null
UTF-8
Python
false
false
301
py
s = 'Hi\nHello' print(s) raw_s = r'Hi\nHello' print(raw_s) # raw string \ escapes quotes (',") but \ remains in the result # raw string can't be single \ or end with odd numbers of \ raw_s = r'\'' print(raw_s) raw_s = r'ab\\' print(raw_s) raw_s = R'\\\"' # prefix can be 'R' or 'r' print(raw_s)
[ "pankaj.0323@gmail.com" ]
pankaj.0323@gmail.com
de62eaf7c965d41ffa16ea1de8bf158d0b284ce5
c03be2e7744a55699d714281eb088449c55b2fa7
/pytorch_tutorial/evaluation/evaluator.py
7f564ae119e961d6b434d7e8bf5d138823b46043
[]
no_license
kanada0727/pytorch-tutorial
75cde755ce949d8b06e441b6cfae69c457bafb57
8a9270f319eb94bdaaffcde0f1760e0ce9f0f885
refs/heads/master
2023-03-09T06:23:21.430697
2021-02-23T14:42:24
2021-02-23T14:42:24
341,565,645
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
import torch import torch.nn.functional as F from .evaluation_result import EvaluationResult from .inference_result import InferenceResult class Evaluator: @classmethod def run(cls, result: InferenceResult) -> EvaluationResult: predictions = cls._predict_label(result.hidden_values) accuracy ...
[ "kanada@pcl.cs.waseda.ac.jp" ]
kanada@pcl.cs.waseda.ac.jp
5978a0ea9a20cdbbfe82ea47009adb0e11d194d1
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/297c01d677ddd711c0ebf0da56c10879/snippet.py
d84a511da730479880f9f7de09dc84a48c7552c9
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
4,540
py
#import gevent #from ghost import Ghost, Session import requests import re import json import time import socket #from gevent import monkey; monkey.patch_all() timeout = 90 socket.setdefaulttimeout(timeout) #from ghost import Ghost #ghost = Ghost() class toolCli(object): def __init__(self): pass @sta...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
6b04ce943aa3324f00cd86f969139f23f1c45f7e
3fc1e29931c0df8cc3a43e9cb7fa5de035c8aa51
/lesson_2/1_6.py
2f2b0e477f2ac3a5e2de96329727abb0dd387dea
[]
no_license
KseniaTrox/python
8e2cba9ab9cd6d9a039466f3b4d925d049b20772
75b652e24986ab9fd5f28e7a1bcb97600b969a53
refs/heads/main
2023-02-01T05:47:45.136081
2020-12-17T15:23:57
2020-12-17T15:23:57
310,033,796
1
1
null
2020-11-09T18:48:22
2020-11-04T14:55:10
Python
UTF-8
Python
false
false
766
py
n_list = [] p_list = [] s_list = [] a_list = [] i = 0 a = int(input("Введите кол-во товарных позиций ")) while i <= a - 1: if i <= a - 1: n = input("Введите название") p = input("Введите цену ") s = int(input("Введите количество ")) n_list.append(n) p_list.append(p) ...
[ "troxksenija@gmail.com" ]
troxksenija@gmail.com
c74b44993f4b8a578758c9b278a553f18464054c
42a8553f596fba8c438b9d4576f6015b9e8e5135
/tpRigToolkit/tools/musclespline/core/model.py
0b403831a9bfdc7d395c4e07df5ccd37988f6e61
[ "MIT" ]
permissive
liangjin2007/tpRigToolkit-tools-musclespline
31bffce2bd450b79cedbcb1930decd2510730577
6a53080d8a4d866105fac44c2518769293f46c05
refs/heads/master
2023-05-18T16:01:25.864254
2021-03-26T04:08:58
2021-03-26T04:08:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,352
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Muscle Spline widget model class implementation """ from __future__ import print_function, division, absolute_import from Qt.QtCore import QObject, Signal class MuscleSplineModel(QObject, object): nameChanged = Signal(str) sizeChanged = Signal(float) ...
[ "tpovedatd@gmail.com" ]
tpovedatd@gmail.com
9ad7a30ae6326a0aef3ccb5a8131813818356190
3351c699aab0be1e63bd5a420476d3e6524977cd
/djangonautic/articles/urls.py
a80948ffb86ca348836b8791362dffe9c4df9398
[]
no_license
liucaihs/django-djangonauts
a0fc88db1008827193d2ac6a43c7f46190371158
337302b9a6f0eebd14149ba3e2824d0e340571ea
refs/heads/master
2021-01-24T04:20:11.730769
2018-02-26T03:50:38
2018-02-26T03:50:38
122,931,272
1
0
null
2018-02-26T07:34:50
2018-02-26T07:34:50
null
UTF-8
Python
false
false
254
py
from django.urls import path from . import views app_name = 'articles' urlpatterns = [ path('', views.article_list, name="list"), path('create/', views.article_create, name="create"), path('<slug>/', views.article_detail, name="detail"), ]
[ "thompson.phan@outlook.com" ]
thompson.phan@outlook.com
130730c6f8a0fa94412c76922b9d4a89b233c57a
7136e5242793b620fa12e9bd15bf4d8aeb0bfe7a
/examples/adspygoogle/dfp/v201101/update_placements.py
73226320411276ac20a312150e1bfd8c75ee33f3
[ "Apache-2.0" ]
permissive
hockeyprincess/google-api-dfp-python
534519695ffd26341204eedda7a8b50648f12ea9
efa82a8d85cbdc90f030db9d168790c55bd8b12a
refs/heads/master
2021-01-10T10:01:09.445419
2011-04-14T18:25:38
2011-04-14T18:25:38
52,676,942
0
0
null
null
null
null
UTF-8
Python
false
false
2,942
py
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138" ]
api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138
7b53455d083b8f5047bf14ffb1c20ad89b9727f7
7adb37b4124de158cdc4e9b37a69e49139ae19d3
/dp6_protoype.py
0f7a72d3018b9577822602beecc669e249aa9c26
[]
no_license
joysn/python-design-patterns
55c5c377cb570e598dcf43d577ac0aac594bb97e
41bd148663c16d0fa3e3dc9e4eb085a17c9f717a
refs/heads/master
2020-04-18T21:25:53.775690
2019-04-29T06:42:41
2019-04-29T06:42:41
167,765,166
0
0
null
null
null
null
UTF-8
Python
false
false
2,362
py
from copy import deepcopy class Car: def __init__(self): self.__wheels = list() self.__engine = None self.__body = None def setBody(self,body): self.__body = body def attachWheel(self,wheel): self.__wheels.append(wheel) def setEngine(self, engine): self.__engine = engine d...
[ "noreply@github.com" ]
joysn.noreply@github.com
6bf3c25eed6593fd3c32fea8f4a22d1f3e8f9f35
5ee470ec919605ba8b642d89e8ff64c7afe1d261
/pypmf/pmf/plot.py
3c3ed28f743f3427f4f30b3decea9d98fbd27efb
[]
no_license
ageil/parallel-pmf
1e561b756d9dbb3e5b525c4d238c730b99cf6763
b1a42840fcded5bd86e4326984ca40fc4e5b52c5
refs/heads/main
2023-03-29T08:03:59.192114
2021-04-13T04:36:41
2021-04-13T04:36:41
345,513,479
0
1
null
2021-04-11T23:04:51
2021-03-08T02:59:47
C++
UTF-8
Python
false
false
7,155
py
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d import proj3d from matplotlib import colors from matplotlib.patches import FancyArrowPatch from sklearn.manifold import TSNE from mayavi import mlab ...
[ "yj2589@columbia.edu" ]
yj2589@columbia.edu
26226def711d3e6653809608ae376361766fc41d
06e2fb156b32676f51bb575b5b53cae44c3f45db
/tests/data/arrays/Translation/arrays-basic-01.py
ca31e0bc8e7bd6e596ac40687e98dd3b4eb1ebef
[ "Apache-2.0" ]
permissive
hlim1/delphi
2d1d6d33b1b9c123dc2ff00d5cc34613eb132ec3
c91044fb696436ea8266ad5f6cd6447dcc4f005e
refs/heads/master
2020-04-17T05:27:07.678543
2019-01-13T18:25:03
2019-01-13T18:25:03
166,279,487
0
0
Apache-2.0
2019-01-17T18:57:52
2019-01-17T18:57:51
null
UTF-8
Python
false
false
299
py
from fortran_format import * from for2py_arrays import * def main(): arr = Array([(1,10)]) for i in range(1,10+1): arr.set((i,), i*i) fmt_obj = Format(['I5']) for i in range(1,10+1): val = arr.get((i,)) sys.stdout.write(fmt_obj.write_line([val])) main()
[ "saumya.debray@gmail.com" ]
saumya.debray@gmail.com
2565f7be4f8bfe16b0835c4058972e7f26185cb3
f7e722a8d9aa53218316e857cb0a97b85391583b
/docs/conf.py
017bfbff0d0a8a7db26c8ee072ef0623d0ff4718
[ "MIT" ]
permissive
algobot76/dekit
e84b355829eda9cce6b1123b16a251c78a20d5a9
37a25a570bc029e5d1f74953350deb387a8aaf25
refs/heads/master
2020-08-16T05:17:45.661679
2019-10-16T09:32:10
2019-10-16T09:32:10
215,459,593
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
import dekit # Project project = 'Dekit' copyright = '2019 Kaitian Xie' author = 'Kaitian Xie' version = dekit.__version__ release = dekit.__version__ # General master_doc = 'index' extensions = ["sphinx.ext.autodoc"] exclude_patterns = ['_build'] # HTML html_theme = 'default' html_static_path = ['_static'] html_tit...
[ "xkaitian@gmail.com" ]
xkaitian@gmail.com
0a5a3be286540d32ce476c0bccfe369d8d4d3b4f
b29cb86bb3f10dd1df96f288c21b9f9af1bc0fe4
/learrn_redis.py
4ee0191b2bfad5c8683dce3b1858f1ae291646f2
[]
no_license
ccs258/python_code
e1b54a9652f42fc60eb57f066d339acfe7c6ec31
825843f19733814f46e35729543383a6cdab6af8
refs/heads/master
2020-03-27T18:59:37.487428
2020-02-24T07:41:07
2020-02-24T07:41:07
146,958,473
0
0
null
null
null
null
UTF-8
Python
false
false
1,499
py
# -*- coding: utf-8 -*- # @Time : 19-1-23 下午11:12 # @Author : ccs kwargs = {} kwargs.update({ 'connection_class': 'SSLConnection', 'ssl_keyfile': 'ssl_keyfile', 'ssl_certfile': 'ssl_certfile', 'ssl_cert_reqs': 'ssl_cert...
[ "1154911548@qq.com" ]
1154911548@qq.com
16b78aa288d25076c0b793601b11a5a7595dbaeb
ee426299951e9d9c7f997690db8efb92f55552cc
/hexeditor/read_write_functions.py
c7956846bf7540d139956b310351df5cff3c8f99
[]
no_license
MemeDealer5000/Hex
6d599f0638498c1e1570c41babba8271f6a204a6
2e5814d59ee4b4ab085fd74606265451054230cc
refs/heads/master
2020-12-27T13:36:15.136199
2020-02-03T08:46:10
2020-02-03T08:46:10
237,920,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
import sys import curses import os def read_bytes(file_path): bytes_arr = None with open(file_path, 'rb') as f: bytes_arr = bytes(f.read()) print(bytes_arr) return bytes_arr def write_bytes(file_path, bytes_arr): with open(file_path, 'wb') as f: f.write(bytes_arr) def read_data(f...
[ "noreply@github.com" ]
MemeDealer5000.noreply@github.com
ea0f332a7caabaa77840c25f9acd4415d2b94b9e
8b4394811f6e6929321f28b3127c0ff222018df6
/polls/urls.py
c63d528c0f3b4e626213972bb91f37174736efc2
[]
no_license
akshay-testpress/pollsWebsite
d654e16260926db64deba24c9280392508be20c6
cdcf6eb1b3a797ace8658fd280793bd6a963598c
refs/heads/master
2020-04-01T16:57:30.608857
2018-10-17T11:01:56
2018-10-17T11:01:56
153,406,135
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
from django.conf.urls import url from . import views urlpatterns = [ url("",views.index, name="index"), ]
[ "akshaykumar@testpress.in" ]
akshaykumar@testpress.in
d7a081e916149815ac3db674dd1b085dabded240
88399431f86dea162b8d67fc14a2b84613f88197
/data/split_data.py
1ba72cf4e790d67a947f63ec36aa05256bf30dc7
[]
no_license
hugcis/cyk-parser
0e92ebf02400f60600db7cc6a67af735bd182169
fa630cd73ddbace0a1319063a8a4ee317633e50d
refs/heads/master
2020-04-29T11:12:05.231835
2019-03-17T17:34:07
2019-03-17T17:34:07
176,089,265
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
import numpy as np np.random.seed(333) f = open('sequoia-corpus+fct.mrg_strict') all_lines = np.array(f.read().split('\n')) index = np.arange(len(all_lines)) np.random.shuffle(index) train_set = all_lines[index[:int(0.8 * len(index))]] val_set = all_lines[index[int(0.8 * len(index)):int(0.9 * len(index))]] test_set ...
[ "hmj.cisneros@gmail.com" ]
hmj.cisneros@gmail.com
ffba9b8f6d3f6df467973fb518836842e53c1563
13a4777d8e4fe38f0e70ba5014cc39030c5f9208
/466HW1.py
761efc5112ec511c3c47fafda236cc407c274191
[]
no_license
MAT466Abbas/Homework1
72e684ea3df87ed62fb7fe146bb326d78263b30b
2c8d145d64bcf7dc4a3c81a00fcb88e91ffed4ca
refs/heads/master
2020-12-27T15:03:13.476993
2020-02-03T11:04:02
2020-02-03T11:04:02
237,945,224
0
0
null
null
null
null
UTF-8
Python
false
false
6,666
py
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np from math import * #################################Yield-to-Maturity############################################ #dictionary in which keys are start day numbers and values are ytm arrays #one dictionary for each curve we want ...
[ "noreply@github.com" ]
MAT466Abbas.noreply@github.com
8f1fa0b820a4000eeae6b856c1afb201dd2649df
3ec86b5ae807f3e7d50e7e68a617cb1673e2f209
/utils/__init__.py
ecdc10742edce6fc66fd0a231a33a25c4debf20b
[]
no_license
xiaohanzai/Illustris
6b9a408efed0168b20d62f8a22689e6e38890412
8ef952dbc7670fa3f8f2ed3321f5af3b9ce137f7
refs/heads/master
2021-09-06T04:55:32.398321
2018-02-02T14:09:51
2018-02-02T14:09:51
115,231,116
1
0
null
null
null
null
UTF-8
Python
false
false
101
py
__all__ = ['equalNumBin', 'paths', 'util_general', 'util_illustris', 'util_shape'] from . import *
[ "wuxiaohan.a@gmail.com" ]
wuxiaohan.a@gmail.com
2ca5bebe5e2ebd2611e4c3dfa88d9e2dffeb823d
b95e6288a91bd620b8c8be8641ca9b4c2460ae33
/src/Producer.py
9fa776535c9deebfa3520cb751fb7e5c404f4977
[]
no_license
pkmoore/rrapper
dcebc52eb600a01ea92611d96785bfd53b41b799
e0ef7b8a735f536baa07093c0ecf339c21f7bc43
refs/heads/master
2021-04-12T08:15:53.167169
2019-10-01T05:23:56
2019-10-01T05:23:56
125,935,155
4
10
null
2020-05-24T20:56:06
2018-03-19T23:51:06
Python
UTF-8
Python
false
false
3,253
py
""" <Program Name> Producer <Started> July 2019 <Author> Junjie Ge <Purpose> Instance of posix_omni_parser that poputales the syscall_object and trace in trace manager """ import logging from posix_omni_parser.parsers.StraceParser import StraceParser import consts import exceptions class Producer: ...
[ "prestonkmoore@pm.me" ]
prestonkmoore@pm.me
b1e1bfe13e233dcfc6301cebbc179e883ccb6a3c
286d1b73634a5f0169b2e66501a3ba25a87cf921
/baidu/utils/files_provider.py
9a61536769c3722eefd558be416406a87a2861a0
[ "Apache-2.0" ]
permissive
amatkivskiy/baidu
63497dbda1add3deecf366cafd98f2ffd9571953
d599f41fa3fda3428c38a0d05661aaac152806da
refs/heads/master
2016-09-05T20:02:00.864937
2015-04-22T13:56:47
2015-04-22T13:56:47
32,919,676
2
1
null
2015-07-29T16:16:38
2015-03-26T09:58:16
Python
UTF-8
Python
false
false
492
py
from string import Template __author__ = 'maa' templates_folder = 'file_templates_folder\\' def create_and_full_fill_file(template_file_name, destination_file_path, kwargs): template_file = open(template_file_name, 'r') file_content = template_file.read() template_file.close() template = Template(f...
[ "andriy.matkivskiy@gmail.com" ]
andriy.matkivskiy@gmail.com
2244bcc7b98578156696e4b908e8c3edd4248bac
7a6013e19a2e963f537c381e11a916d6e0f096b0
/app/app/settings.py
92a237b50b06c0ef8d12c321b37341bf785c91bc
[ "MIT" ]
permissive
camilalemos/todo-challenge
23dc3e5a99bfa10d5ba763e6d3b78903a4db1e19
2743a08b344284f39c9f8ff5724f673e7f720919
refs/heads/main
2023-09-01T19:17:08.920598
2021-10-22T20:13:14
2021-10-22T20:13:14
417,930,532
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib impor...
[ "cami.sole.lemos@gmail.com" ]
cami.sole.lemos@gmail.com
7b5d355f6902bab25c1b13cf7ee0184dccc9a694
c6f936e59ec6c2ca3b84e540188013c040c91d9d
/07 project Euler/Problem 9.py
96d88274ef961bdce7a07ba0888f2f4452d3f85e
[]
no_license
KubaBBB/Programming-Challenges
4f78923f8ed72950ee5e1867de26457c4d00751f
228572ecaf97d2f540f32648a8cbbf25bad6ce60
refs/heads/master
2021-01-19T17:27:28.374178
2017-09-05T11:42:23
2017-09-05T11:42:23
101,059,111
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# a< b <c # a^2 + b^2 = c^2 # c = 1000 - a - b # # find a*b*c # def func(): global c stat = 1000 for a in range(1,stat +1 ): for b in range(1,stat+1): c = stat - a - b if c**2 == a**2 + b**2: print("a: " + str(a) +" b: " +str(b)+" c: "+str(c)) ...
[ "jakubboliglowa1996@gmail.com" ]
jakubboliglowa1996@gmail.com
40aa58f318a778e39072fb25a804f963f1d01eaf
29fdcdde4aae7502d8170cc44f4af635fbcce5b5
/Python_2021/asyncio_4.py
24cd8a9eaea87e02d16ac7ce77f1b7eca07f7f12
[]
no_license
shivam0071/exploringPython
bcbd0d03f8f473077d3777d1396ef4638e5c6cee
ace9646e59ba20068e383704430efe4946833090
refs/heads/master
2022-05-05T00:34:24.642204
2022-04-01T06:13:38
2022-04-01T06:13:38
81,352,255
1
0
null
null
null
null
UTF-8
Python
false
false
851
py
#!/usr/bin/env python3 # rand.py import asyncio import random # ANSI colors c = ( "\033[0m", # End of color "\033[36m", # Cyan "\033[91m", # Red "\033[35m", # Magenta ) async def makerandom(idx: int, threshold: int = 6) -> int: print(c[idx + 1] + f"Initiated makerandom({idx}).") i = rand...
[ "shivamkoundal01@gmail.com" ]
shivamkoundal01@gmail.com
227a97642cadf2fcd73851b1c2a4d5961068848c
29d9f0cf22a6a750a281f8922903a0742cae6d64
/mysite/settings.py
045879020c3512d8a3d0b2386269778960267ea5
[]
no_license
NadzeyaBobrovnik/djangog
57741a559868c1a4020e5564780c5c714d0f76a4
68c1bc839bd2e03fe85067c7ac51bdbcb075e4ba
refs/heads/master
2020-07-29T19:53:27.917103
2019-09-21T15:59:52
2019-09-21T15:59:52
209,940,250
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
[ "nadzeya.bobrovnik@gmail.com" ]
nadzeya.bobrovnik@gmail.com
20f58429c97b7fdf709f27f84e6940302d752323
da01f5d47294fe9553d8dfbd0c5403bf3f46d22a
/final.py
755a9d3aae989d8e9532d94b4b60a7d424933db1
[]
no_license
abdullahbm09/Blockchain
97e5c7d0bb0738938a5fcb37e064f578878b94b2
f7e6959583e4ae0a2ee9c6925142fcbdbc9d8214
refs/heads/master
2020-04-08T01:58:45.302024
2018-11-24T08:34:03
2018-11-24T08:34:03
158,917,374
0
0
null
null
null
null
UTF-8
Python
false
false
7,975
py
# associated medium post: https://medium.com/@ethervolution/ethereum-create-raw-json-rpc-requests-with-python-for-deploying-and-transacting-with-a-smart-7ceafd6790d9 ''' =========================== Defining Libraries ============================ ''' import requests import json import web3 # Release 4.0.0-beta.8 impor...
[ "abdullahbm09@gmail.com" ]
abdullahbm09@gmail.com
cd184fc6a59c48bcbf6c19506b222408dba49b47
2c0f7ac97dc004ac36ca65661c0bec862647508e
/financepeer/asgi.py
8b301e0f91b67cc7457726f9356455efd3f7b951
[]
no_license
mit1911/FINANCEPEER
c2082cdb5929b3e6aae94017a9af547f0a5745c1
28d1507f978f7bdb50013acc5aeea7f0c1d31aa2
refs/heads/main
2023-07-31T05:14:28.768325
2021-09-21T12:14:24
2021-09-21T12:14:24
408,806,130
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" ASGI config for financepeer project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
[ "pk07788131@gmail.com" ]
pk07788131@gmail.com
25a1970c77d8d6905b534f80bede9ab6ccccbd68
a30bf0899947c36b63bba3032935c404b4bde16e
/ws.py
97870589f6322afd24c15f833dee4d8c22705f5e
[]
no_license
Riyo-Aloshyas/webscraping-python
a592a5ed996bca28e3c4a5e5e5c47cb7464e980c
fcab77ae3ddba96f6d6ce604e3ee02c27bf52d3e
refs/heads/master
2022-12-31T00:23:05.578302
2020-09-24T22:35:01
2020-09-24T22:35:01
278,694,179
0
0
null
null
null
null
UTF-8
Python
false
false
1,536
py
from urllib.request import urlopen as uReq from bs4 import BeautifulSoup as soup import re my_url = 'https://www.newegg.com/p/pl?N=100252375&ActiveSearchResult=True&SrchInDesc=pokemon' #opens connection & grabs html page uClient = uReq(my_url) #offloads webpage content into variable page_html = uClient.r...
[ "noreply@github.com" ]
Riyo-Aloshyas.noreply@github.com
3d970c89462f7c18de8e742bb65e55b75f2dfb72
a5d943cab88d1e3f65b5706d12581c2998d40247
/tests/test_mas.py
012e430c3ba978a84746014689afe780163ebaf9
[ "Apache-2.0" ]
permissive
copdai/copdai_core
bf6654db7e115dd2d225ad584609fd3cb2680222
d493bcb8ba34b2e98799c8ab4499177192e7080a
refs/heads/master
2021-01-01T17:17:50.281482
2017-12-18T07:57:09
2017-12-18T07:57:09
98,038,976
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
# -*- coding: utf-8 -*- from .context import mas import unittest class MASTestSuite(unittest.TestCase): """COPDAI core test cases.""" def setUp(self): self.agent = mas.Agent() def test_agent_default_state(self): self.assertEqual(self.agent.state, mas.AgentState.UNKNOWN) def tearDo...
[ "mrabbah@gmail.com" ]
mrabbah@gmail.com
cb9e250d22b73d85785aec488fb18895709a4295
f1689b52221d1118f905b841448c2ab1fd142817
/school/ningxia/NUN.py
8421459e218c190a57a36e4dd5a24b7fb3bd6ed8
[]
no_license
littlemoon13/jiandan_job
950584ca62f431f10bd10a12a33bdffecbba2453
2232a8fb7559cb5180130c09345af5b2398eb9fc
refs/heads/master
2020-05-25T10:34:08.891561
2019-04-20T15:34:49
2019-04-20T15:34:49
187,762,485
1
0
null
2019-05-21T04:37:56
2019-05-21T04:37:55
null
UTF-8
Python
false
false
961
py
import tomxin.getInfo def getNUN(): #北方民族大学 # if __name__ == '__main__': url = "http://jyc.nun.edu.cn/eweb/jygl/zpfw.so?modcode=jygl_scfwzpxx&subsyscode=zpfw&type=searchZprd&sysType=TPZPFW&zpxxType=new"#高校就业网的网址 html = tomxin.getInfo.get_source(url,"utf-8") info = tomxin.getInfo.get_info(html,'z_newsl','z...
[ "221360@nd.com" ]
221360@nd.com
641de574211cdde44de54f9fa8765f1e1ac583fd
5d070e9cabaef1ac4ebdc30f9f855f94b49fdb0c
/PyShop/settings.py
578ea3b4276649273d86d94046c22621de96c660
[]
no_license
Suruchi21/PyShop-Django
97e770ca55026cba87a63272e487289ab03f04d0
4411c05cf1b1744ed08a261a3b3e5a1ef6a251c9
refs/heads/main
2023-03-03T14:22:06.521542
2021-02-11T09:53:48
2021-02-11T09:53:48
337,985,776
0
0
null
null
null
null
UTF-8
Python
false
false
3,252
py
""" Django settings for PyShop project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
[ "suruchicsk@gmail.com" ]
suruchicsk@gmail.com
b53d5dc4e19e7d59c999ae84949a65d79c3ea6c2
9b4fc226a1c2ade532f4e1e7a8cd588d77b81093
/SVMs/square.py
49ba82ec02e7fb49e55c08e6624336c22cab0b06
[ "MIT" ]
permissive
wmaciel/flowerSpotter
1af29e4bcb4931120ff1ad437ff3c299fa2f2482
1f6223f5ab2b0956ea7c576e5d8aa8b0f32281f9
refs/heads/master
2021-01-12T19:24:49.084516
2015-12-06T19:31:11
2015-12-06T19:31:11
46,642,239
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
from __future__ import division import math import sys, glob, os import Image top_folder = sys.argv[1] side_length = 256 input_image_dir = top_folder + '/jpg' output_image_dir = top_folder + '/square_images' #output_square_dir = 'square_images128' if not os.path.isdir(output_image_dir): os.mkdir(output_image_...
[ "jdsarr@gmail.com" ]
jdsarr@gmail.com
b7f54e96c4d3f8ae8c832c922c307e2c760362cc
a128963cfbb945a45e8136e55a5f4945e09bc7e8
/doppio.py
8b9bcb4c474946bbb41248ea5a7c932201922feb
[]
no_license
Edivad1234/helloword
bf90c83febb69cbafe8a793cc176a14d5312336e
74f71312a958d14800ff2d4b3c4d801b6863066a
refs/heads/master
2020-07-03T18:48:10.887470
2017-01-13T10:52:55
2017-01-13T10:52:55
74,238,229
0
0
null
2016-11-19T22:12:00
2016-11-19T22:04:47
null
UTF-8
Python
false
false
82
py
numero = input("Inserisci un numero: ") print ("Il doppio e': "), numero + numero
[ "davide.antonucci5@gmail.com" ]
davide.antonucci5@gmail.com
9fe946f4c2a1bb91c966856d49f60d1bf22614bb
f83a0bad55662d9214729234cff97d5d20823d37
/setup.py
9875f4bb030a428dfaa1528170bd3c71b2e5c18e
[ "MIT" ]
permissive
wriazati/CarND-LaneLines-P1
be137c811ddadbebea7759e3d91d96b6f582ce94
37d9ba53e1ba2acc28795c87cb637d32898dded6
refs/heads/master
2020-03-26T01:27:31.611829
2018-08-11T08:36:10
2018-08-11T08:36:10
144,368,075
0
0
MIT
2018-08-11T08:18:10
2018-08-11T08:18:10
null
UTF-8
Python
false
false
1,221
py
#! /usr/bin/env python from os.path import dirname, realpath, join from setuptools import setup, find_packages #### # Basic metadata. #### project_name = 'CarND-LaneLines-P1' package_name = project_name.replace('-', '_') repo_name = project_name description = 'CarND-LaneLines-P1' url = 'https://github....
[ "wriazati@apple.com" ]
wriazati@apple.com
6e78cd3f2fb1c812c523391d20eda99cc2c103b0
ab6b315e323a9d3ae49d047b4aa75a6acbc25774
/sbf_120/02 CAC Next 20/04 Analyse pages_next20.py
8c12976334e465f6b650be6bada817c074b122e0
[]
no_license
TchidahNdiaye/Web-scraping
0b73ef092b1e08a0b29d6b63acb0d5e2d5b99521
b11ef05901087140ea1f8bf60ea17753e4047a92
refs/heads/master
2023-05-02T14:37:07.814251
2021-05-13T22:03:11
2021-05-13T22:03:11
297,629,321
0
0
null
null
null
null
UTF-8
Python
false
false
5,356
py
# -*- coding: utf8 -*- import pdb import re import os import pickle import html import csv L=os.listdir('pages_next20') Base=[['firme','price','market_cap','price_to_earnings','beta','earnings_per_share','dividend','shares_outstanding','sector','employees','revenue','indices']] for k in L: with ope...
[ "noreply@github.com" ]
TchidahNdiaye.noreply@github.com
5118a73f1e1c300da7ba3f6c35bfd3e1b8208a71
e0629a85794027f39c20ab4d1d10e6cdacc0f438
/Problem Solving/Data Structures/Tree- Postorder Traversal.py
1117deec3b28988c63bde044dbfa24c96a91e166
[]
no_license
harshitpoddar09/HackerRank-Solutions
ffa675179a732416f729f61015ba5292af9fa052
62dd5a059247833ff455efa905c17ef654c2abe3
refs/heads/main
2023-08-13T20:53:27.478883
2021-09-27T06:43:31
2021-09-27T06:43:31
319,535,195
2
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
class Node: def __init__(self, info): self.info = info self.left = None self.right = None self.level = None def __str__(self): return str(self.info) class BinarySearchTree: def __init__(self): self.root = None def create(self, val...
[ "noreply@github.com" ]
harshitpoddar09.noreply@github.com
78273eeae20753e4cc0f9378fc1446e3f44bdc04
89aacee070fba2cc9e970a9a516c0c67b2605642
/SDN/RYU_ODL_LLDP/multi_ctrl_links_wsgi.py
5765d0368dd2d7ef6d6da265319be92430007b83
[]
no_license
shheychen/Lab_code
abd9a5b619e4df8b036afc1a5096640164af46ea
004a816086126172f2dcf3bc53a249e6f95f14d3
refs/heads/master
2021-01-22T21:17:42.532348
2017-07-25T14:26:39
2017-07-25T14:26:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,294
py
#!/usr/bin/env python # -*- coding: utf8 -*- # 2016.08.04 kshuang from ryu.base import app_manager from ryu.ofproto import ofproto_v1_3 from ryu.controller.handler import set_ev_cls from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER from ryu.controller import ofp_event from ryu.ofproto import ofprot...
[ "st505102000@gmail.com" ]
st505102000@gmail.com
3846fbfeb7667930d321e066356737f76513a6e0
3e19b88639e12dcc49b24b030f9788eb77b22cf5
/event/tests/test_models.py
551a297b68543747f910eda1854d81bc2fecce61
[]
no_license
MarcinP94/django-google-calendar
ffdb52b80bdf17ff8c61efd10f48863ead2bdf69
b73fe8f86f5b9e5abdf269470d7c4d77dc46a08c
refs/heads/master
2021-12-26T05:12:59.432989
2021-09-27T06:08:26
2021-09-27T06:08:26
237,622,056
4
1
null
2021-09-27T06:09:19
2020-02-01T13:53:52
Python
UTF-8
Python
false
false
357
py
from django.test import TestCase from django.urls import reverse, resolve from event.models import Post from datetime import datetime, timedelta class TestModels(TestCase): def setUp(self): pass def test_title_string_representation(self): event = Post(title="My entry title") self.asser...
[ "marcin.podolak1994@gmail.com" ]
marcin.podolak1994@gmail.com
a94ef4c867d0db3ad0814d14df2d8ff57e9e987f
fcb3e07d953b29848b1844b684c502c297c8d4cb
/Stone-Paper-Scissors.py
b151e53a2b182d808c9fcdd385d6f173036edd4a
[]
no_license
Arnav-17/Random-Problems
02617fde9ab52a7713cae4b9a63cbce74b3838bd
a6d106cf24dfa5445cbafd5c7310d26e0652edc9
refs/heads/main
2023-01-23T08:21:46.649528
2020-12-06T21:04:12
2020-12-06T21:04:12
319,130,613
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
import random print('Welcome to Stone-Paper-Scissors Game') b = ['St', 'Sc', 'P'] d = 0 e = 0 for i in range(10): c = random.choice(b) a = input('Enter Sc for Scissor, P for Paper, St for Stone\n') if c == "St": if a == 'P': d += 1 elif a == "Sc": e += 1 ...
[ "noreply@github.com" ]
Arnav-17.noreply@github.com
75ab5fbaf3a4b0722700d471b09dfcbe179e593a
25f8fe705786434fdc414c0315f43b097b50c652
/experiments/bubs/bubs/scores.py
927fa287c6fb1acb99afe857c0e92cfa42fab1de
[ "MIT" ]
permissive
openstates/legacy-openstates.org
bc8b822eeca7d648b0bdeade70b5ba6b3b2fcf65
4cc573b06fa0736916122135ecffcf5a884f9a01
refs/heads/master
2021-10-09T04:09:18.709716
2018-12-20T23:16:22
2018-12-20T23:16:22
18,355,422
0
0
BSD-3-Clause
2018-12-20T16:21:13
2014-04-02T05:15:36
JavaScript
UTF-8
Python
false
false
13,808
py
import sys import json import logging import socket from itertools import product, combinations from collections import Counter, defaultdict from operator import itemgetter import rpy2 import networkx import numpy as np from pandas import DataFrame from sunlight import response_cache, openstates from pscl import Rollc...
[ "twneale@gmail.com" ]
twneale@gmail.com
4d341628c833a54549f509112ce07e540e9a4ce5
3c89602d36c7bc11a24537056dcd2ed1aaa40479
/build/cryptography/tests/hazmat/backends/test_multibackend.py
81a64ce0e075d266b6da30772422bd6ea92d5166
[ "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
link39/205-pi
5a551c83b6f833bba80095e395a2177652f8f5d8
5f51d191ac472a76c76e7b34a7e29f5d596ef52b
refs/heads/master
2021-01-01T17:21:16.867641
2016-01-11T19:30:51
2016-01-11T19:30:51
28,787,160
2
0
null
null
null
null
UTF-8
Python
false
false
17,826
py
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function from cryptography import utils from cryptography.exceptions import ( ...
[ "root@raspberrypi.(none)" ]
root@raspberrypi.(none)
dd83f7a24c846e9ba8608e182ee79032934c4025
2dd4cfdc8395b2bb840d91b2dd0050443635da86
/105-construct-binary-tree-from-preorder-and-inorder-traversal/ken/105.py
f0e39691b4b72c12219695a8432d499a1b13e76b
[]
no_license
dennis2030/leetcodeStudyGroup
b10bde7e79cd86d6eb46409d0a3ba82d963de657
fbd42d8c0cc142aa56531b4fe127bf4bc2996abd
refs/heads/master
2021-01-14T08:10:55.432693
2018-05-18T15:55:18
2018-05-18T15:55:18
81,933,655
6
2
null
2017-04-02T13:43:00
2017-02-14T10:26:24
Python
UTF-8
Python
false
false
649
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def buildTree(self, preorder, inorder): """ :type preorder: List[int] :type inorder: List[int] ...
[ "kenliang@synology.com" ]
kenliang@synology.com
1e42208d7fd278e6169e82de05f03ad5d51d82c8
8f5033275b020f09026e628b07c89eea5dbff3b6
/crawl_modules/iter_class/base_condition_functions.py
f48ab7591f2697644f994c7453726dc59e84ca5b
[ "BSD-2-Clause" ]
permissive
keonsunkim/python-easy-data-gatherer
6f3cbce839d56c01392674451f4bdc72d13aa2e3
bffce1fd6b6b5b93aa84cce2f2a4ad85a5fde434
refs/heads/main
2023-01-21T21:11:31.810770
2020-12-02T13:20:32
2020-12-02T13:20:32
311,241,500
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
# iter_class.base_condition_functions.py
[ "keonsunkim@gmail.com" ]
keonsunkim@gmail.com
a4dfc25aacd790665eb99a9b7207ea3b03357252
f4ec4206d410c1179f8233ca37cd1f3dc9a1e8c0
/alpha.py
7c5c0dbb1ed4d0dadc0aab9762c8766c6b9c7123
[]
no_license
kli512/tetris_cheating
a8cf2a71b887093d4098ebabc7346762119dfdbb
2657d85b0911978b2838a05b2a1b59bb13607917
refs/heads/main
2023-03-07T00:19:29.318391
2020-12-29T21:37:33
2020-12-29T21:37:33
340,754,273
0
0
null
null
null
null
UTF-8
Python
false
false
2,530
py
from scipy.spatial import Delaunay import numpy as np def alpha_shape(points, alpha, only_outer=True): """ Compute the alpha shape (concave hull) of a set of points. :param points: np.array of shape (n,2) points. :param alpha: alpha value. :param only_outer: boolean value to specify if we keep onl...
[ "li.kevin512@gmail.com" ]
li.kevin512@gmail.com
2acf598735221ca3f6bdcec5e6c1cf0915da06a5
e2d23d749779ed79472a961d2ab529eeffa0b5b0
/pipeline/contrib/external_plugins/models/source.py
68da04c02bb907c4abb449d0282141b98ea14778
[ "MIT", "BSD-3-Clause", "BSL-1.0", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
manlucas/atom
9fa026b3f914e53cd2d34aecdae580bda09adda7
94963fc6fdfd0568473ee68e9d1631f421265359
refs/heads/master
2022-09-30T06:19:53.828308
2020-01-21T14:08:36
2020-01-21T14:08:36
235,356,376
0
0
NOASSERTION
2022-09-16T18:17:08
2020-01-21T14:04:51
Python
UTF-8
Python
false
false
3,470
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ "lucaswang@canway.net" ]
lucaswang@canway.net
f1b34bc374aa7e84f9804d0aa40e0b25c02dd5c5
3522fd96405315d282dc9c242ab46f110a6c8537
/butter/deploy.py
02f77d271820122c565322465ea13e9067d936a8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
ombu/butter
b76be7cb5a07557b1d28c4adedbf58d394ba7a32
aea16099bb34a2c6a6706ee6386fd90e9bd1e301
refs/heads/master
2021-01-17T07:40:12.651434
2018-12-13T23:47:44
2018-12-13T23:47:44
3,538,270
1
4
null
2015-01-13T20:01:45
2012-02-24T18:11:14
Python
UTF-8
Python
false
false
1,577
py
from __future__ import with_statement from fabric.operations import run from fabric.api import task, env, cd, hide from fabric.contrib import files from time import gmtime, strftime import os @task def log(): """ Tail a the deployment log of a host """ print('+ Reading deployment log...') with cd(e...
[ "martin@ombuweb.com" ]
martin@ombuweb.com
0a007663043ed2e9283b8fef34002aa634b5823a
4116dc4681a9ea321d35f65a0588ef556e7e413d
/app/aplicaciones/preguntas/models.py
7462b74bff033c87d9998b0ab94af14480c24f24
[]
no_license
MarcheloJacome/ingWeb
6eba0cdb172a3a46ab9b7fe5b3bf85e0878d11d0
1624ae59c9dea5eec741e664f275969db00e9f8d
refs/heads/main
2023-06-04T00:28:16.115738
2021-06-18T14:55:02
2021-06-18T14:55:02
374,448,949
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
from django.contrib.auth.models import User from django.db import models from django.db.models.deletion import CASCADE from aplicaciones.tests.models import Test # Create your models here. class Pregunta(models.Model): id = models.AutoField(primary_key=True) texto = models.CharField(max_length=300) test =...
[ "marcelo.jacome@hotmail.com" ]
marcelo.jacome@hotmail.com
49594d8571f7f181dda69ef7441143a14b4dc198
880aa3abebcc42721471bb6622d887098ce70bbe
/tasks/workers.py
7e0e7a8f4bffa14c7493a26eeebb0efa79b48e07
[]
no_license
GitPython225/celery_zhilian
1204a82f2235e6dd34d7c01414d96618aacbd753
f9eb291a66fc995bac52c4267f1ad6c9548c38f5
refs/heads/master
2020-03-22T23:29:16.385865
2018-07-13T08:15:06
2018-07-13T08:15:06
140,813,252
1
0
null
null
null
null
UTF-8
Python
false
false
2,822
py
# coding:utf-8 """celery worker相关配置""" import os from datetime import datetime from celery import Celery, platforms from kombu import Exchange, Queue from datetime import timedelta """Kombu是一个为Python写的消息库,目标是为AMQ协议提供一个傻瓜式的高层接口,让Python中的消息传递变得尽可能简单,并且也提供一些常见消息传递问题的解决方案""" # 加载config配置信息 # from config.conf import ( # ...
[ "18368918916@163.com" ]
18368918916@163.com
248023aeaca19bd25ed9dc8ecf23b7f9bdc0a885
26531c8c4716e28313a34eefaa0978952cec72a4
/calendall/calendall/urls.py
1b7cdead2581ef32b8d97cb5258999f71e68b130
[ "BSD-3-Clause" ]
permissive
xala3pa/calendall
3e72cd2a7989a8fc8993c2b2d72683096d0bad96
9e5daf72dbbf93d988d14e3eee04f85d6326cf0a
refs/heads/master
2020-12-25T19:38:46.201038
2015-01-01T21:47:28
2015-01-01T21:47:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'calendall.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), )
[ "slok69@gmail.com" ]
slok69@gmail.com
e0a2e0600318bfa3310f8f5a52aada349ecfbc18
9aad4e1b73608ef767552fd4ca1653997e425ec0
/lib/BRadar/rasterize.py
041b2ed85c6ef3c71b324e9a996b6e3484944bcf
[ "BSD-3-Clause" ]
permissive
WeatherGod/BRadar
e7e3022c2bc7b59c63f343f844558ccca5ef0747
a0af2fffd324c18ea7df60323359f144d2858428
refs/heads/master
2021-01-18T21:33:47.604128
2014-08-13T03:22:57
2014-08-13T03:22:57
1,343,563
7
2
null
null
null
null
UTF-8
Python
false
false
6,935
py
from __future__ import print_function import numpy as np from matplotlib.nxutils import points_inside_poly from maputils import sph2latlon, latlon2pix, makerefmat from multiprocessing import Pool def Rastify(statLat, statLon, origData, azimuths, rangeGates, elevAngle, deltaAz, deltaR, cellSiz...
[ "ben.v.root@gmail.com" ]
ben.v.root@gmail.com
1964e30ae17774848a190dc3d8225c1f8d552b47
fce300b6c85ab7f4111597b47873f9dc59adc6f9
/lib/datasets/pascal_voc.py
85fb1dda9326044842eaef13160b852444d58417
[ "MIT" ]
permissive
Lynkzhang/tf-fast-rcnn-BCCD
047a9de71ac7fddb1b69a9994ec7f6b878807c09
fd4d15823817ee83344f1e4945f4e7a4969516ce
refs/heads/master
2020-04-01T19:29:03.192103
2018-02-02T09:27:33
2018-02-02T09:27:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,422
py
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ i...
[ "csg19971016@gmail.com" ]
csg19971016@gmail.com
e472c0bf287069bc6529421719d18beb9f0514e5
b3b31138caf891b80eb337c95ae24ba33f08d4d5
/instance/number_remember.py
044df6cb37917a78e9e1722336f3241eb3ea60f6
[]
no_license
caiyunz/learning
3a2d39e3baf8d5d7d8f415ba4554b6d7d8007ccb
fe81ae166ca63caad71d236b2818e3b3939984c1
refs/heads/master
2021-01-19T23:24:33.643409
2018-09-13T09:00:44
2018-09-13T09:00:44
101,265,550
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
#!/usr/bin/python3 import json def input_number(): number=input("Input the you liked number:") number_file='numbers.txt' with open(number_file,'w')as f_obj: json.dump(number,f_obj) def output_number(): number_file='numbers.txt' try: with open(number_file) as f_obj: numb...
[ "noreply@github.com" ]
caiyunz.noreply@github.com
6795158aabbfec57bf84cb3efa1e1e4b62c14bd5
af2da79da5d7a1fa5597db7264df8dd99700720b
/sql_queries.py
b6d45d1034b14aff3b5541c25bbf09378263b308
[]
no_license
jrwils/sparkifydb_redshift
1e8547d554a8f88fe8f145396749698f270dc1b6
4a8e93c5873713532ad44597db489a8c92049dab
refs/heads/master
2023-07-16T03:21:32.155361
2021-08-06T17:59:16
2021-08-06T17:59:16
393,460,016
0
0
null
null
null
null
UTF-8
Python
false
false
7,518
py
import configparser # CONFIG config = configparser.ConfigParser() config.read('dwh.cfg') # DROP TABLES staging_events_table_drop = "DROP TABLE IF EXISTS staging_events;" staging_songs_table_drop = "DROP TABLE IF EXISTS staging_songs;" songplay_table_drop = "DROP TABLE IF EXISTS songplays;" user_table_drop = "DROP T...
[ "joe.wlsn@gmail.com" ]
joe.wlsn@gmail.com
1063535556d6dffc047f65f250e9d2745bdbd1a1
53a9a98aef2fabd21f1577911c147f417a4e2282
/CS/Profile/views.py
c4c9c72f01596a84869160b78542f1acfce44238
[]
no_license
edwin141999/Django
3037789052700ef36d093a0e87aa8fe0b946bb8c
dd8e50c53850965dc1b4a7b9efa76b26ab5f2c02
refs/heads/master
2021-09-25T09:37:48.855734
2020-02-14T04:02:47
2020-02-14T04:02:47
237,686,224
0
0
null
2021-09-22T18:32:26
2020-02-01T22:23:04
Python
UTF-8
Python
false
false
5,288
py
#from django.shortcuts import render # Create your views here. from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.authtoken.models import Token from django.shortcuts import get_object_or_404 from django.http import Http404 from rest_framework.views import APIView from rest_framework.respo...
[ "183433@ids.upchiapas.edu.mx" ]
183433@ids.upchiapas.edu.mx
dd6eb7278fb8de6248cdbc2cf3ad00132a3e9d08
886453bda7757f75b45c6c3b9d93e1a684bf227f
/DjangoXAdminDRF/settings.py
f680fe01dac534389dfe9ea094571d7df0d01fe4
[]
no_license
Lockeysama/DjangoXAdminDRF
e445d013d432cc472b5e6bb73433b945355e479b
c056909a7473f1c585db831c3cab0eb6cc8209e7
refs/heads/master
2022-12-17T17:17:14.235361
2020-09-14T01:18:51
2020-09-14T01:18:51
294,709,811
1
0
null
null
null
null
UTF-8
Python
false
false
6,049
py
""" Django settings for DjangoXAdminDRF project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import ...
[ "196349143@qq.com" ]
196349143@qq.com
5563ce2c97673ab3096d4abfb84a18b5d593e3e8
7463a66dfa00572f4e4d8ef4349309531f0105ae
/TrainerDL/Projects/FLL_flaw_detection/segmentation/Unet/eval.py
f1fed7ca781068c51b7d895a0f9ffd33b008e59d
[]
no_license
fx19940824/DetectionModel
f2e380fd21f4b31a17fd175a6dea1067b8f0d5cc
edc0d2f9eea481d2bc6f3abb2f222b59fdc25538
refs/heads/master
2022-12-20T19:58:32.224829
2019-05-30T01:16:05
2019-05-30T01:16:05
188,800,679
2
0
null
2022-11-22T02:39:23
2019-05-27T08:13:38
Python
UTF-8
Python
false
false
609
py
import torch import torch.nn.functional as F from Unet.dice_loss import dice_coeff def eval_net(net, dataset): """Evaluation without the densecrf with the dice coefficient""" net.eval() tot = 0 for i, b in enumerate(dataset): img = b[0] true_mask = b[1] img = torch.from_numpy(...
[ "you@example.com" ]
you@example.com
f3c2d4de3b88eb36470e5a5068ab46e67554748c
62d22863789f737c03851c184ebfc9e987f9dced
/src/main/python/handlers/gauth.py
bc306d2dce88b7e6a645e7470df63e1cd14ff876
[]
no_license
mattrjacobs/Prdict
4c160d31c63b5573fe502e3a4a1ffe872cfe2f41
bf4fd3fbad30dbddcbf09f6a38b12dd2284cdaf0
refs/heads/master
2016-09-05T14:27:26.367260
2012-03-07T12:21:06
2012-03-07T12:21:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,631
py
#Taken from : http://code.activestate.com/recipes/577217-routines-for-programmatically-authenticating-with-/ """ Routines for programmatically authenticating with the Google Accounts system at Google App-Engine. This takes two calls, one to the ClientLogin service of Google Accounts, and then a second to the login fro...
[ "mattrjacobs@gmail.com" ]
mattrjacobs@gmail.com
d942280782cce1058e4b42c396d37dd3f131ff78
96f259173a1857ab3164b80fc791c7057be8c8ee
/RFiles/adTrainer.py
ea8d2572f11a8e240039daeb7d902450a518e6f2
[]
no_license
BilalZQ/Face-Recognition-Snippet
a720c2957a9ee8b4c0e6badf1d1cf8f1c9b43cd5
fa111407ca5f8fdd99be6eb0cce35ffb1221f19c
refs/heads/master
2020-03-23T21:41:23.903575
2018-07-24T08:04:18
2018-07-24T08:04:18
142,121,285
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
import os import numpy as np import cv2 from PIL import Image # For face recognition we will the the LBPH Face Recognizer recognizer = cv2.createLBPHFaceRecognizer(); path="C:\\Users\\Bilal\\Desktop\\face recognition\\dataSet" def getImagesWithID(path): imagePaths = [os.path.join(path, f) for f in os.listdir(path)...
[ "bilalqb095@gmail.com" ]
bilalqb095@gmail.com
d3f7862c32fbab6e246ad1a1bb504ec88a13de6e
c2447fa5b69cccfab8ba302fe385e87bae8e8473
/examples/advanced-user-guide/settings_and_env_variables.py
29a613e2ead31c21a0596ed2599e54771dd3de9f
[]
no_license
srujanprophet/Learn-FastAPI
173f3fba2aeff0dc3b2fb232f2c510121a9cbaa0
f54fecbba05af8e4bd3da5a4a293eea730038143
refs/heads/main
2023-07-15T12:39:05.356215
2021-08-15T15:53:44
2021-08-15T15:53:44
396,410,094
1
0
null
2021-08-15T16:35:35
2021-08-15T16:12:07
null
UTF-8
Python
false
false
1,425
py
""" Import `BaseSettings` from Pydantic and create a sub-class, very much like with a Pydantic model. The same way as with Pydantic models, we declare class atteributes with type annotations, and possibly default values. We can use all the same validation features and tools we use for Pydantic models, like different ...
[ "srujanprophet@gmail.com" ]
srujanprophet@gmail.com
c79bfe905b142bd559c466fa6407bd3e215e80d8
be0a3aa7b83b87c5d2c257b538545bdded39c051
/Chatbot_KG/common/_404_view.py
134402933a7afae8bf704a70387c41bf31ad6ae2
[ "Apache-2.0" ]
permissive
water123li/Chatbot_CN
480e3bc6d6c0d8b6b0823452556acef14df1c2c3
e63808030c6cc516020075cdcd0c332120a998fc
refs/heads/master
2022-01-25T10:34:34.726243
2019-06-13T10:44:44
2019-06-13T10:44:44
192,504,292
1
0
Apache-2.0
2019-06-18T09:01:55
2019-06-18T09:01:55
null
UTF-8
Python
false
false
234
py
# -*- coding: utf-8 -*- #from django.http import HttpResponse from django.shortcuts import render from django.views.decorators import csrf def _404_(request): # 404页面 context = {} return render(request, '404.html', context)
[ "charlesxu86@163.com" ]
charlesxu86@163.com
3bccafa57028ebc40f4d76552548b4b2d24e0dba
590ad70ace0734cb73356aafb0098035144840ac
/Book/myproject/myapp/migrations/0001_initial.py
1215e30bfc4a151005566d46d283d4e43805de03
[]
no_license
sujithasrajan/Book-Application
79cdcfe98b9e027c902145544bec817502e92edb
7587ddb24dea158816677e05f2d7aa560c332879
refs/heads/master
2021-02-18T21:15:33.576025
2020-03-05T18:27:58
2020-03-05T18:27:58
245,238,031
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
# Generated by Django 2.1.3 on 2018-11-28 20:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(aut...
[ "sujitha@terpmail.umd.edu" ]
sujitha@terpmail.umd.edu
d0eb1adf8565bdef7765fe8687ae73189ee23590
58ac6b21074198f02c47cc0984545915ac05e023
/venv/bin/django-admin.py
b79aafade74c053bd2944340a96d399bd32c9891
[]
no_license
ProxyServices/ecommerce
a386d6dab23b3055928a53914a0d1180b60ce75b
313f8cc279387ebe64c4e4d72d7a66497b494a96
refs/heads/master
2022-12-13T01:21:19.956469
2019-08-02T05:12:18
2019-08-02T05:12:18
200,083,712
0
0
null
2022-05-25T02:13:44
2019-08-01T16:21:42
Python
UTF-8
Python
false
false
157
py
#!/home/dnyt/Desktop/django/merce/venv/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "enockomondike@gmail.com" ]
enockomondike@gmail.com
f25bf38bb511ac729dcceab59bbe2ed92792e28a
b0392d704af841622b8cc78788d8d852044d8afd
/2019_3_Cooper_Type/RoboFont/draw_with_pen.py
f93fa63157d379aae69edcca19c69397e7a6a70b
[ "MIT" ]
permissive
benkiel/python_workshops
0ad7d52123f71a1c4e44bb8d9bf1eefa863a9eb5
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
refs/heads/master
2021-04-15T07:24:11.265604
2020-11-14T20:57:56
2020-11-14T20:57:56
126,245,708
6
0
null
null
null
null
UTF-8
Python
false
false
261
py
font = CurrentFont() glyph = font.newGlyph("a") glyph.width = 500 pen = glyph.getPen() pen.moveTo((100, 100)) pen.lineTo((800, 100)) pen.curveTo((1000, 300), (1000, 600), (800, 800)) pen.lineTo((100, 800)) pen.lineTo((100, 100)) pen.closePath() glyph.update()
[ "ben@typefounding.com" ]
ben@typefounding.com
099d4caac895f0192fef64dafe1128023b434a40
6cbb3824c59f9b3ea9a55682b086744925895f47
/tests/differ.py
5e53854294d6ee21bd6f8fb78c264a1459fec09a
[ "BSD-2-Clause" ]
permissive
rbock/kiss-templates
e984317ad305fa828291beb1f9e7bab6ef6bb111
20fd9df05331d5dc8fa79c4145b165f4286c863f
refs/heads/develop
2020-03-26T16:16:30.638095
2017-03-16T05:56:03
2017-03-16T05:56:03
40,734,928
46
9
null
2017-03-16T05:49:24
2015-08-14T20:34:23
C++
UTF-8
Python
false
false
1,142
py
#!/usr/bin/env python from __future__ import print_function import sys def normalize(content): # Ignore newline differences (e.g. on Windows, std::endl is "\r\n") and any extra whitespace # at beginning/end of content return content.replace('\r\n', '\n').strip() if __name__ == '__main__': as...
[ "andreas.sommer@ppro.com" ]
andreas.sommer@ppro.com
4897cc5f53a6f7791247a903bedaec8d90b7b3fb
d9918f70c67cfcb12716515110b9a47cf11495c3
/courses/urls.py
2dd69a82b0185ea3c8949ad835f16bb0f74abbc8
[]
no_license
richieyrich/edu_site
31e68fc5c66509602cf37d26b113e34a61bc786b
847548cfcc2a798bee7ddccdda3863d4eb45bbb0
refs/heads/main
2023-06-22T20:51:40.841282
2021-07-23T09:29:29
2021-07-23T09:29:29
388,749,280
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
from django.urls import path from .views import Home, CourseView, Signup, Login, signout, CheckoutView, PaymentSuccess from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', Home.as_view() , name='home' ), path('login', Login.as_view() , name='login' ), path...
[ "richram79@gmail.com" ]
richram79@gmail.com
3afe83be9197a3e0e23a22dbb67e9ef0d9f3cd12
79797e982b04c443eba25b563837d45479fc5188
/outline/outline/spiders/events_spider.py
0acfbe7642bbe8f57bd11541507e8b884cb2e89f
[]
no_license
JavaDevVictoria/OutlineWebsiteScraper
7e80f704c9aaa2c321c7ddc8def31c6096e0be57
6df30a62bcd4d8fec77682b61e3fc5ff0ae53c19
refs/heads/master
2021-01-20T13:58:49.471500
2017-02-21T20:50:53
2017-02-21T20:50:53
82,725,590
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
import scrapy class EventsSpider(scrapy.Spider): name = "events" def start_requests(self): start_urls = [ 'http://www.outlineonline.co.uk/events', ] def parse(self, response): page = response.url.split("/")[-2] filename = 'events-%s.html' % page with o...
[ "noreply@github.com" ]
JavaDevVictoria.noreply@github.com
a832406ce534f7a5f5814b9ffbe6137f646767cd
091f397adba3eeb36557ff84f6b0845e2952ba48
/roles/.venv/bin/pre-commit-validate-manifest
e472204bced643efd07bd0e262c664adbb563eb5
[ "MIT", "BSD-3-Clause" ]
permissive
Alex-Mbulankende/testingshit
0d6d07d0754704abb8a76cb6fe5e620ff96b47d5
6cbe5c8da2c030d1e3c989b86adf7b740ac65418
refs/heads/master
2022-03-12T04:11:00.763799
2019-12-01T05:31:19
2019-12-01T05:31:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
316
#!/Users/tjblogumas/blogumas/development/testingshit/roles/.venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from pre_commit.clientlib import validate_manifest_main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(validate_manifest_main())
[ "tj.blogumas@codeblogkc.com" ]
tj.blogumas@codeblogkc.com
922b3e60b603750b8da23e2765690a8d370e140e
e912af291e1457c61606642f1c7700e678c77a27
/python/345_reverse_vowels_of_a_string.py
4c20425cacb9377f87bd830ce08937932298232f
[]
no_license
MakrisHuang/LeetCode
325be680f8f67b0f34527914c6bd0a5a9e62e9c9
7609fbd164e3dbedc11308fdc24b57b5097ade81
refs/heads/master
2022-08-13T12:13:35.003830
2022-07-31T23:03:03
2022-07-31T23:03:03
128,767,837
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
class Solution: def reverseVowels(self, s: str) -> str: vowels = set(["a", "e", "i", "o", "u", "A", "E", "I", "O", "U"]) left, right = 0, len(s) - 1 arr = list(s) while left < right: while left < right and arr[left] not in vowels: left += 1 while left < right ...
[ "tai-chia.huang@sv.cmu.edu" ]
tai-chia.huang@sv.cmu.edu
f7f90a42c57e1322931e26f9cd9aae5ab71f6070
9c6e055fc8c15d5a2e1dbec40cf2ab6534b49793
/nourisher/collects/collector.py
e0479a36dadb162e8b569030d632aa9469aff3b5
[]
no_license
hnykda/nourisher
0d70bac6a19ed95656e7ef51a4bb18e8b4aae9d2
6049d5b47c9004b3badfee89bcf7c259c84c4442
refs/heads/master
2021-01-20T16:12:04.940861
2015-07-27T16:42:04
2015-07-27T16:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,712
py
import logging log = logging.getLogger(__name__) from .feeder import feed_that_all import time from utiliser import scraper_prep, get_webdriver class Collector(): """ Wrapper for collecting """ def __init__(self, wdriver_name, maternal_scrapers = ["urlm", "websiteout", "ranks", "alexa"]): ...
[ "kotrfa@gmail.com" ]
kotrfa@gmail.com
64e92c8157fc4b2dcc35b653dbef2a372a6f61cf
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_016/ch45_2020_04_12_05_06_07_036297.py
ec7433dee7f927c217ddb1c6613998b97ea50d59
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
lista1 = [] lista2 = [] exercicio = True while exercicio: a = int(input('Qual o número? ')) if a > 0: lista1.append(a) else: break i = 1 exercicio2 = True while exercicio2: lista2.append(lista1[len(lista1) - i] if len(lista1) == len (lista2): break print(lista2)
[ "you@example.com" ]
you@example.com
7907cf31a5c324d467a40e8790b57d1d15d3eb7d
f6abf7c6d32549d09af60546be50b2438ba3c1f6
/finalproject1.0/pyscript/runtest.py
696798d84bf0b6f84cfe541c0e687e91b4d1586c
[]
no_license
Guo-Dong-Zhang/junitserver
f041c6376aa62754b947d19eecfcaa0ff0645587
1e9bb51f3d2e7a5ecee8da1e106d6816e1ce310d
refs/heads/master
2022-11-13T11:20:28.595011
2020-07-04T02:47:21
2020-07-04T02:47:21
270,307,601
0
1
null
null
null
null
UTF-8
Python
false
false
1,824
py
import os import re import listdir javadic = listdir.javadic junitdic = listdir.junitdic projectpath = listdir.projectpath junitPrefix = "java org.junit.runner.JUnitCore"; filePrefix = "com.junit." for k,v in junitdic.items(): allfiles = "" v = [filePrefix+re.sub(".java","",x) for x in v] for filename in...
[ "zhangguodong627@gmail.com" ]
zhangguodong627@gmail.com
6b3683b6b1666261f589bd5180f2941e0203c566
81774da9e72d723fd8f80a44f9900852cf24ba03
/Expense.py
fc0dbd496ecb3bb5df5d7a70cfde7cc69914642d
[]
no_license
Catalin-David/Expenses
010071d7c8e07d87de3530ef83ae420a2251aa98
368770edf6fd90766ef3b1a684cc61e2cc38dbd9
refs/heads/master
2020-09-04T09:19:51.561041
2019-11-05T09:01:28
2019-11-05T09:01:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,211
py
class Expense: def __init__(self, day= 1, amount=0, tip=""): ''' Function initializes a new Expense params: day (default:1) - day of the expense (integer between 1-30) amount (default:0) - amount that is paid (integer) tip - type of expense/object that was pu...
[ "cata02dav@yahoo.com" ]
cata02dav@yahoo.com
0495efaa9c6dc1693907ddc055b5150e11a8b084
d313e6ae0e59903338cb669fa5126a831b8a7e06
/venv/lib/python3.8/site-packages/aws_cdk/aws_codepipeline/_jsii/__init__.py
6547e161efccdee80ac426b94fb29add46f30e1a
[ "MIT-0" ]
permissive
harun-vit/aws-cdk-pipelines-demo
9b0ec4550f3cc03bd364872433495cced980cc81
7e7faeee112c3dca718613fa8a1fba80d2116bac
refs/heads/main
2023-08-11T10:55:14.449259
2021-09-14T10:34:21
2021-09-14T10:34:21
406,144,409
0
0
MIT-0
2021-09-13T22:12:26
2021-09-13T22:12:25
null
UTF-8
Python
false
false
561
py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions import aws_cdk.aws_codestarnotifications._jsii import aws_cdk.aws_events._jsii import aws_cdk.aws_iam._jsii import aws_cdk.aws_kms._jsii import aws_cdk.aws_s3._jsii import aws_cdk.core._jsii im...
[ "harun.celjo@visma.com" ]
harun.celjo@visma.com
395d25132aa4014d7562592fe7071faaef12978b
39ca6855e3224c1637fae5b4a6406d76afab7745
/notifiers/providers/slack.py
2ae222793dbdfa6c427b89773479fdca89d3abc0
[ "MIT" ]
permissive
Ro9ueAdmin/notifiers
3bb8c4c8942c2ba5eabc19832b62bd656a7f0b38
7060fab24c83d495298ea3b82adc91b9f6ece93a
refs/heads/master
2021-10-23T15:00:26.707375
2018-08-07T16:28:39
2018-08-07T16:28:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,221
py
from ..core import Provider, Response from ..utils import requests class Slack(Provider): """Send Slack webhook notifications""" base_url = 'https://hooks.slack.com/services/' site_url = 'https://api.slack.com/incoming-webhooks' name = 'slack' __fields = { 'type': 'array', 'title'...
[ "noreply@github.com" ]
Ro9ueAdmin.noreply@github.com
bdb680ea9f7555e585150ee6db22432adc4fad97
953617ae07da4a4aac36cabe6bb1cd2af39d84ad
/Simple_Calculator/Release/Calculator.py
feee220bfc18d7d80c86a607abebbb8432c1c589
[]
no_license
PreetiAP/Simple-Calculator-version2
c8091cb1be900bad8e59f533efe31e2f2bbeabe3
5953172cd19c9739fcbb7863fb79e1223f7728d9
refs/heads/master
2021-08-19T07:56:19.623716
2017-11-25T10:15:02
2017-11-25T10:15:02
111,994,390
0
0
null
null
null
null
UTF-8
Python
false
false
2,157
py
#About: This uses the Calculator functions that are expoed from C++ import Calculator def GetOperation(): #Valid operations are +, -, *, / toRepeat = True while(toRepeat): #Get user input - operation, numbers print "\nPress + for addition\nPress - for subtraction\nPress * ...
[ "sandisk@8" ]
sandisk@8
81f97fd89319182e8e2b55ef7ca9d2c430091a8d
e7fde1b443d8641456d76d501285afebe5b688f9
/app/db_record_example.py
1beb1d5e85d76e7d03068b38aaa348932d702d79
[]
no_license
youaresourcecode/lp_webportal
f71745104b80a5a9ce8b82ff7c9a306856e5b476
6f5fdfdefa5235ac60ed5f6c333ec8ef4ecc35b4
refs/heads/master
2020-12-19T13:29:44.603635
2019-12-24T17:07:46
2019-12-24T17:07:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
import datetime from config import MONGO_URI from mongoengine import connect from posts.models import Post from flask_mongoengine import MongoEngine db = MongoEngine() ''' class Post(db.Document): title = db.StringField(required=True) tag = db.StringField(max_length=25) text = db.StringField() urls =...
[ "1____1@bk.ru" ]
1____1@bk.ru
cd63da0c193c3425a22c274b0ee7cba4c5909957
ce0c2b2a6132729862a9ccc7012939d020dab46e
/LinkedListDesign.py
4b0b03e7e553115c68739ff0218f157fe805ae9a
[]
no_license
ConnorNusser/LeetCodePreparation
8138343c65384d50891bdb324045408b31dd4605
fa474358e852a4c470a4617fa4a4ba0689b90721
refs/heads/main
2023-06-03T03:48:44.390144
2021-06-21T00:46:03
2021-06-21T00:46:03
378,058,920
0
0
null
null
null
null
UTF-8
Python
false
false
3,232
py
class Node: def __init__(self, val=None, nex=None): self.val = val self.nex = nex class MyLinkedList(object): def __init__(self): """ Initialize your data structure here. """ self.head = None def get(self, index): """ Get the value of the...
[ "connornusser@gmail.com" ]
connornusser@gmail.com
8221bde2d2eb1e3bcedf585dfda5b07f7d4c9f00
ecb16f6b318b0ecd731a9e2dd117aab47069a878
/ikpdb_client.py
2bd7dfe6318067e527feb687d1110cc08d0bb466
[ "MIT" ]
permissive
cmorisse/ikpxdb_tests
54513e03f0a2b7f883d8fb7872dfdd1649cbe247
b49d468e75aedfcc183f165e502e81ed275a4039
refs/heads/master
2020-03-17T13:09:41.516217
2018-08-18T07:33:45
2018-08-18T07:33:45
133,619,535
0
0
null
null
null
null
UTF-8
Python
false
false
8,883
py
# coding: utf-8 import socket import logging import json _logger = logging.getLogger(__file__) _logger.addHandler(logging.StreamHandler()) _logger.setLevel(logging.INFO) class IKPdbConnectionError(Exception): pass class IKPdbClientError(Exception): pass class IKPdbClient(object): MAGIC_CODE = "L...
[ "cmorisse@boxes3.net" ]
cmorisse@boxes3.net
db9d65a1d6f1f296c401bc7aef8b40d8792e2d0c
2b9702bd13fc5338eada200de47e40bcb6f58366
/Contest_Problems/CCC_2021_J1.py
581c1c6aa4687e61a807bff135a813efadf8d1eb
[]
no_license
alimulyukov/Course_Work_2021
028151347a68482f147545b1729d3dc6b71e06b4
fca92a1b02d7d987f7a8b4e161c70bb37c0ba849
refs/heads/main
2023-02-21T16:02:12.223839
2021-01-25T19:31:41
2021-01-25T19:31:41
311,425,699
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
g1 = input() g2 = input() g3 = input() g4 = input() g5 = input() g6 = input() w = 0 l = 0 if g1 == "w": w = w + 1 print("1")
[ "mulukovali@Mulukovs-MacBook-Air.local" ]
mulukovali@Mulukovs-MacBook-Air.local
052857dbf165f903d441bffd1f3c46eab4b347be
2550f5d78cc334863b979ef1265c712205a2fba1
/backend/app/app/crud/crud_user.py
edcebaaca4f5bdd8a7b85c91c07682917ea4eaaa
[]
no_license
JohnJiangLA/ClassManager_backend_service
9dbd051bda143833a0e31f2b1fed4ffe07e0cc2e
1156e32e31c6068dd917f3c9dabb2807b42f1ad9
refs/heads/main
2023-07-14T11:30:56.984177
2021-08-26T06:44:56
2021-08-26T06:44:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date: 2021/7/13 # @Author: gray """ CRUD模块 - 用户相关 非复杂业务CRUD """ from sqlalchemy.engine.row import Row from sqlalchemy.orm import Session from app.crud.base import CRUDBase from app.models import User from app.schemas.user import UserCreate class CRUDUser(CRUDBase[U...
[ "l87894741@gmail.com" ]
l87894741@gmail.com
c2a1c58a8ed69f96d2c2772938a0b7c64b5a1c7c
7a6c5e84c93f93cfc8462af1db02cc5c0a734177
/app.py
826d2a5baf56d570ab247dc414e138276eab86ce
[]
no_license
kike4815/Flask-MySQL
64f8aa488c0510c446b6b0a018e9a879bb4aaca1
4bfe8f0a39a0259cca25c257b437e5e0bf85ea90
refs/heads/main
2023-06-09T01:16:23.494474
2021-06-29T16:14:35
2021-06-29T16:14:35
381,426,018
0
0
null
null
null
null
UTF-8
Python
false
false
3,759
py
from flask import Flask, render_template, flash, redirect, url_for, session, logging, request import flask from data import Articles from flask_mysqldb import MySQL from wtforms import Form, StringField, TextAreaField, PasswordField, validators from passlib.hash import sha256_crypt from functools import wraps app = Fl...
[ "e.pedros.sanchez@gmail.com" ]
e.pedros.sanchez@gmail.com