blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
1b3579c057d59d68b0e4e4a606d18f7d37dcd74d
ef5b50ab02759efb94d1536f93ec1b51543c2169
/Model/Net.py
9f7b873f48c68a89da4f85269ff2e1e8f081f5ae
[]
no_license
swJiang/CCN-CTN
759c0b5b7e7a425d3062bf1fc4d05e063319c1a6
fc022a966b4412908915836116df942fc3ebaa35
refs/heads/master
2020-04-08T07:48:42.430869
2018-11-27T07:43:19
2018-11-27T07:43:19
159,152,617
2
0
null
null
null
null
UTF-8
Python
false
false
853
py
import tensorflow as tf from Model.FC import fc_layer from Model.NetWork import network from Model.accuracy import compute_acc from Model.loss import compute_loss class Model(object): def __init__(self): self.FC = fc_layer self.network = network self.compute_acc = compute_acc self.co...
[ "jsw950515@gmail.com" ]
jsw950515@gmail.com
e31dea602a2885d6f6b29d64376f9e3e2a16e75e
57391fbdde43c3d2e8628613d9003c65ff8abf9d
/Exercicios/ex050.py
c2deb6d939dc7f9a9690a0cbb5d9e7af53d18167
[]
no_license
JoaolSoares/CursoEmVideo_python
082a6aff52414cdcc7ee94d76c3af0ac2cb2aaf5
aa9d6553ca890a6d9369e60504290193d1c0fb54
refs/heads/main
2023-07-15T07:39:57.299061
2021-08-26T20:04:22
2021-08-26T20:04:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
soma = 0 for c in range(1, 7): n1 = int(input('Diga um {}º numero: ' .format(c))) if n1 % 2 == 0: soma += n1 print('A soma de todos os numeros pares é de: \033[1;34m{}\033[m'. format(soma))
[ "joaolucassoaresk@outlook.com" ]
joaolucassoaresk@outlook.com
7579bfc272c5d6e5cbc01b35f5cbab6443cfb503
bcc043d5686f2ed7d2e23ae442612f252a811857
/tests/parsing/test_translator.py
2fed15b5ab9aa033ef6cc833fc3234a8c92f1126
[ "MIT" ]
permissive
eryktr/xmarie-vm
e5674d8c1cc08650af34925f51f59e389f598f20
736b7fa0ad04322b37938027c63859aee888fbbb
refs/heads/master
2023-03-04T01:18:56.313422
2021-02-10T23:38:09
2021-02-10T23:38:09
282,985,217
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
import pytest from xmarievm.parsing.ast_types import JnS, Jump, Halt, LoadX, LoadY, Push, Pop, Clear, ShiftR, ShiftL, HEX, DEC import xmarievm.parsing.translator as translator def instr(x): return int(x, 16) @pytest.mark.parametrize('instructions, result', [ ( [JnS(0x10), Jump(0x20), Halt()], ...
[ "eryk.trzeciakiewicz@gmail.com" ]
eryk.trzeciakiewicz@gmail.com
e455c8af6a4cbc82b1d597f07de8d84ccb35de0d
614db3d71137766beea7fbda39693ff8fa625d9a
/source_code/collect_git.py
2444a2a517e03bb4699dab255eed45b3b6e555f8
[]
no_license
DmSide/DmSide-ai_code_analysis_tools
c8c0043d8ac418d732043f0c0d2844762aa08eb8
327ede21d651aada1711d49cf3a55dea98bfc6c9
refs/heads/master
2021-06-26T04:10:50.305101
2019-12-26T08:40:35
2019-12-26T08:40:35
230,227,174
0
0
null
2021-06-10T22:26:27
2019-12-26T08:36:44
Python
UTF-8
Python
false
false
6,052
py
import sys from os import listdir from os.path import join, abspath from threading import Thread, active_count import pandas as pd from git import exc, Repo, RemoteProgress # import asyncio config = dict() accounts = dict() repo_ptr = {} def init(): """ config initialisation from *.txt , easy way to chang...
[ "redhat@zuzex.lan" ]
redhat@zuzex.lan
25fe704f5be77484a077c570572772385b9cdd39
27c27208a167f089bb8ce4027dedb3fcc72e8e8a
/ProjectEuler/Solutions/Problems 50-100/Q075.py
b1510ace6b6e74c60b66d6a3e138b7926017acc7
[]
no_license
stankiewiczm/contests
fd4347e7b84c8c7ec41ba9746723036d86e2373c
85ed40f91bd3eef16e02e8fd45fe1c9b2df2887e
refs/heads/master
2021-05-10T16:46:41.993515
2018-02-16T09:04:15
2018-02-16T09:04:15
118,587,223
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
from numpy import * # m^2+n^2, 2mn, m^2-n^2 LIM = 1500000; Count = zeros(LIM+1, int); def GCD(a,b): while (b > 0): c = a-(a/b)*b; a = b; b = c; return a; m = 1; M2 = 1; while (2*M2 < LIM): n = m%2+1; while (2*M2+2*m*n < LIM) and (n < m): if GCD(m,n) ==...
[ "mstankiewicz@gmail.com" ]
mstankiewicz@gmail.com
a6095634bed30033519406856e61a0c38e3efe78
be5d1ababc8dee59d3ea7687d5feee791ea78821
/.vEnv/lib/python3.5/keyword.py
8ff824fb913bb4a45d41291215d8dcb855a930e8
[]
no_license
duggalr2/Personal-RSS
980083337b52d2b8a74257766d3f1f1f546cac44
d4cc0d04fdb19ce957f74cfbc583662f0dc3e727
refs/heads/master
2021-08-24T07:11:09.036689
2017-12-08T15:17:34
2017-12-08T15:17:34
100,282,827
1
0
null
null
null
null
UTF-8
Python
false
false
46
py
/Users/Rahul/anaconda/lib/python3.5/keyword.py
[ "ibrahul24@gmail.com" ]
ibrahul24@gmail.com
b55c0ef5ce10ba776e3dca028d482d7d8158c7e0
34bed0900b134ee0a09f495941fae4336e2f81b6
/Project/urls.py
c4e45c225e49c3aaea8bd74ae5a5e2c579a99715
[]
no_license
nehilgajare/clash-rc-backend-task
4871c278b2ddd145511313399e716933083f0e13
b7e6fe3badf8049b05c6e7b0989e21639db523ad
refs/heads/main
2023-08-27T17:49:46.457341
2021-10-20T13:52:18
2021-10-20T13:52:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
"""Project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "gajarenehil@gmail.com" ]
gajarenehil@gmail.com
2db93df279e2e7651e7f462a9d558dc444be41b7
b42b8f2bfadd25c51cbb12054bc6df42943b7536
/venv/Scripts/easy_install-3.7-script.py
d0dad9ea927377d5b3c3ccd6ddf55aeec430b305
[]
no_license
sharikgrg/week4.Gazorpazorp
4b785f281334a6060d6edc8a195a58c072fb5a75
0f168a0df81703a8950e375081cafd2e766595fb
refs/heads/master
2020-08-03T22:41:43.373137
2019-09-30T15:35:29
2019-09-30T15:35:29
211,907,335
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
#!"C:\Users\Sharik Gurung\OneDrive - Sparta Global Limited\PYTHON\gazorpazorp-space-station\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == ...
[ "SGurung@spartaglobal.com" ]
SGurung@spartaglobal.com
bdb35b007e3b1bdcd94d107d8aa8bdabb7c0a1d6
9db396a773d59f2c696c6427f1a1fbc29f97d768
/app.py
a155aa55c9d6286b2a7e2d0b3523fe8fb27b2956
[]
no_license
brianndungunjenga/courseFinder
36dc00336942ba54f39c0b4045d35b5fcecd7053
035c6808a0c26f106470463e061092915c7feeb5
refs/heads/master
2023-05-11T07:47:55.603768
2019-11-03T21:41:02
2019-11-03T21:41:02
218,930,337
0
0
null
2023-05-01T20:36:05
2019-11-01T06:55:45
CSS
UTF-8
Python
false
false
206
py
from flask import Flask from routes.search import search_blueprint app = Flask(__name__) app.register_blueprint(search_blueprint) if __name__ == "__main__": app.run("0.0.0.0", port=8005, threaded=True)
[ "ndungunjenga96@gmail.com" ]
ndungunjenga96@gmail.com
bd2aabef58c79c7e5886177fcb5bde3623a59323
41220db74084e57899b00973871e2b5548214b2c
/user/migrations/0007_auto_20210824_1757.py
869d1959534efd11e42a1a0762b5982634aa01c2
[]
no_license
deepakdpyqaz/fortuneshelfServer
343836ae207bdae2274c88ec0f438613d10521f3
3f817c69dd6bf12fb91fae789ee2ba45fc07558f
refs/heads/master
2023-08-11T00:37:41.133152
2021-10-01T15:58:05
2021-10-01T15:58:05
396,842,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
# Generated by Django 3.2.6 on 2021-08-24 12:27 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('user', '0006_alter_user_email'), ] operations = [ migrations.AddField( model_name='userunverified',...
[ "deepakdpyqaz@gmail.com" ]
deepakdpyqaz@gmail.com
b9bb247908627e956a13a1a60512620a650ad601
a87292a555197a165e4518aad95c3d8999d734d4
/2018/NeverLAN-CTF(2018)/Scripting/basic-math/sum.py
02f7f1c015de2ee5cdac8873e55f14b5b37aee6a
[]
no_license
munsiwoo/ctf-write-ups
dc717b6e42f94e2568db0ffe606ade56df250ae0
eea658aa64209e2a9b1d11ed54df792ed87d8088
refs/heads/master
2021-07-09T06:31:45.242620
2020-06-07T09:57:59
2020-06-07T09:57:59
100,913,158
17
2
null
null
null
null
UTF-8
Python
false
false
251
py
num = '''6255385361218216 6157005081529331 8094787234940670 1979194212824551 3930726164428768 5191869878056791 7528262998799463 5345470866315424 1647835474241505 3432404873925893''' cal = num.replace("\n", "+") eval("print("+str(cal)+")")
[ "noreply@github.com" ]
noreply@github.com
105b66682da75be919d969965dcd0c11bb4617ce
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v1/model/monitor_search_response_counts.py
94a81e62a22817294ef78c86f9fecc7290984a77
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
2,063
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import Union, TYPE_CHECKING from datado...
[ "noreply@github.com" ]
noreply@github.com
4a816d2e8c8cb66e983d9cadc56ca837a5f9609d
890004f5df54ee3b7e04e7f5c66d4babd7cbf592
/Vertice.py
7cdd61bf6caf83452ed04b8612e6ffb579d6e717
[]
no_license
Kyouma54/GRAPH-ALGORITHMS
d48b4bc23b0c2848d9153afbd3321667f7b09541
d4be156167bb61b64c4169dcb158c71ec935dcae
refs/heads/master
2023-03-07T21:30:06.060901
2023-03-02T15:52:54
2023-03-02T15:52:54
189,263,102
0
0
null
null
null
null
UTF-8
Python
false
false
70
py
class Vertice: def __init__(self, nome): self.nome = nome
[ "ffdonkatsu@gmail.com" ]
ffdonkatsu@gmail.com
fb57b4796a7193e566bc5cf6dc614ef2baca239e
5e815b44e9dfe18664a4ad98971da946403bf733
/script_vnd.py
9521c205164e58ec7c5f21683ca223085ba7d59b
[]
no_license
RafaelaMartins/Heuristic-Abduction-vns-vnd
6e7c5c9b7ff331ba1dd11e7dbf9b73bd87d60075
9d2355d4b4523f0a5ae60a625f9950f34aeb3c6a
refs/heads/main
2023-05-14T04:59:00.572105
2021-06-04T00:18:26
2021-06-04T00:18:26
373,672,388
0
0
null
null
null
null
UTF-8
Python
false
false
1,817
py
from vnd import VND from graph import Graph import time import numpy ITER = 101 #file_name = 'myciel3.col' #file_name = 'fpsol2.i.1.col' #file_name = 'fpsol2.i.2.col' #file_name = 'fpsol2.i.3.col' #file_name = 'inithx.i.1.col' #file_name = 'inithx.i.2.col' #file_name = 'inithx.i.3.col' #file_name = 'le450_5a.col' #fi...
[ "rafaelamartinsv@gmail.com" ]
rafaelamartinsv@gmail.com
347d0ea9561448fc30d4a289a796fa6453ad8a76
08120ee05b086d11ac46a21473f3b9f573ae169f
/gcloud/google-cloud-sdk/.install/.backup/lib/surface/projects/add_iam_policy_binding.py
c25bf659de28f724ec44d284cf9b7e902abe6009
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
harrystaley/TAMUSA_CSCI4349_Week9_Honeypot
52f7d5b38af8612b7b0c02b48d0a41d707e0b623
bd3eb7dfdcddfb267976e3abe4c6c8fe71e1772c
refs/heads/master
2022-11-25T09:27:23.079258
2018-11-19T06:04:07
2018-11-19T06:04:07
157,814,799
2
0
null
null
null
null
UTF-8
Python
false
false
2,025
py
# -*- coding: utf-8 -*- # # Copyright 2015 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 requir...
[ "staleyh@gmail.com" ]
staleyh@gmail.com
b7343dbf8c01a59994b844eb9eae7bef044c513f
edf4ef62ce66df6850b66d6733669406dffd907f
/manager/comp_wifi/__init__.py
02eb26f31e77f7e365fdb24dfa30225744f532cb
[]
no_license
erizhang/fqrouter
786ae3ac481797f2b598860e535cf6f1f4ab728d
8fda07262f29f00afe8800ce4aabab2133ce6d7a
refs/heads/master
2020-12-25T05:07:52.284882
2013-07-14T15:32:54
2013-07-14T15:32:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
import httplib from wifi import WIFI_INTERFACE from wifi import get_working_hotspot_iface from wifi import setup_lo_alias from wifi import start_hotspot from wifi import stop_hotspot from wifi import setup_networking from wifi import enable_wifi_p2p_service from wifi import get_ip_and_mac from utils import config de...
[ "fqrouter@gmail.com" ]
fqrouter@gmail.com
c850b7ff62e072b79250924149b4b8d33658b86a
1276051db6315e12459bd96f1af76ca9f03cb2b4
/pyslet/blockstore.py
b74c8f5b1edc2ec316f6b28ceb8996475d0c8d75
[ "BSD-3-Clause" ]
permissive
rcplay/pyslet
587a08a3225322e44e9cdea22a9f752008ca5eff
152b2f2a3368ecd35ce985aef1f100f46dc4ae6d
refs/heads/master
2021-01-18T15:56:32.635146
2016-02-25T08:32:43
2016-02-25T08:32:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,255
py
#! /usr/bin/env python import hashlib import os import threading import time import random import logging import string import io from pyslet.vfs import OSFilePath as FilePath from pyslet.iso8601 import TimePoint import pyslet.http.params as params import pyslet.odata2.csdl as edm import pyslet.odata2.core as core ...
[ "steve.w.lay@gmail.com" ]
steve.w.lay@gmail.com
59aeb4698e5be1a9660b979dcf41c2e3880deca6
14bb0b5d7478d3a8740cbc15cc7870fcd1fa8207
/tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py
c8dcb7ba231cf3f57f8b8a5dd3782e2a124fbac7
[ "Apache-2.0" ]
permissive
terigrossheim/tensorflow
2be34891c99e0fcf88cf8418632f24676f1620a7
ed9d45f096097c77664815c361c75e73af4f32d4
refs/heads/master
2022-11-06T12:08:10.099807
2020-06-29T12:10:56
2020-06-29T12:35:24
275,867,898
1
0
Apache-2.0
2020-06-29T16:21:41
2020-06-29T16:21:39
null
UTF-8
Python
false
false
4,320
py
# Copyright 2019 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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
ee7611e405952a6d724354ab56524138152af431
f8d3f814067415485bb439d7fe92dc2bbe22a048
/solem/pcv_book/graphcut.py
242ac3449953f8cca3ec94fabb66d20ceecfa821
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
gmonkman/python
2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3
9123aa6baf538b662143b9098d963d55165e8409
refs/heads/master
2023-04-09T15:53:29.746676
2022-11-26T20:35:21
2022-11-26T20:35:21
60,254,898
0
2
null
2023-03-24T22:58:39
2016-06-02T10:25:27
Python
UTF-8
Python
false
false
3,413
py
from pylab import * from numpy import * from pygraph.classes.digraph import digraph from pygraph.algorithms.minmax import maximum_flow import bayes """ Graph Cut image segmentation using max-flow/min-cut. """ def build_bayes_graph(im, labels, sigma=1e2, kappa=1): """ Build a graph from 4-neighborhood of p...
[ "gmonkman@mistymountains.biz" ]
gmonkman@mistymountains.biz
4c1f1f9e5f52b7d2f34a4bae7e5d0cc6a5be067b
621cac8557fd74fe05483d680118a07b36982a8d
/churnchall/ensemble.py
93ca45af23e136a076895135272fde9cf0b7a8da
[ "MIT" ]
permissive
hulkis/churnchall
f99733bfc1af9ecde3c3349e87ec9170dcb356d8
93d0e819248e734d8f8b49f6c51b950fd8e0a748
refs/heads/master
2020-03-28T23:42:35.168482
2018-10-28T16:54:42
2018-10-28T16:54:42
149,304,749
0
0
null
null
null
null
UTF-8
Python
false
false
4,813
py
import catboost as cgb import lightgbm as lgb import numpy as np import pandas as pd import xgboost as xgb from sklearn.linear_model import Ridge from sklearn.metrics import make_scorer from sklearn.model_selection import KFold, cross_val_score from wax_toolbox import Timer from churnchall.boosters import CatBoostCook...
[ "jd5584@engie.com" ]
jd5584@engie.com
2752310a13c918b9241f5106394d9e7008825b06
83c7d4f246dea32f9c449ee3b498d476a22914fd
/Odoo/personnel_detail/hr_termination.py
b8c13d3575f85360c1173d0dab87138e750c9f34
[]
no_license
linkcheng/windyblog
726280775169aaed04f2763070481149ffb299a1
ad5ed4d74226d42ac45de6c2be66a573576274f0
refs/heads/master
2020-05-21T23:54:50.209818
2018-07-04T07:55:18
2018-07-04T07:55:18
63,590,065
0
1
null
null
null
null
UTF-8
Python
false
false
6,411
py
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from openerp import models, api, _, fields from openerp.models import BaseModel from openerp.exceptions import UserError from operator import itemgetter class TerminationController(models.AbstractModel): _name = 'termination.controller' _inheri...
[ "zhenglong1992@126.com" ]
zhenglong1992@126.com
3f6d20b2b0368bc1fce9ed4428930b1693f2765e
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4134/codes/1723_2505.py
8e06f5ecd7a38c37363f35f111d10476601ae390
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
217
py
from math import* ang = eval(input("angulo:")) k = int(input("numero de termos:")) soma = 0 i = 0 fim = k - 1 while(i <= fim): soma = soma+(-1)**i*((ang**(2*i+1)/factorial(2*i+1))) i = i + 1 print(round(soma, 10))
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
0add22caa678b2f5099feef3cbcd7c33dd0cde8d
857c1fa3da77f6949ab66ca0abcb7ff0d38a324e
/calendrier/app/modulos/contas/forms.py
ba1062ced2883cda125ed8290c028b7929a2fbbe
[]
no_license
leandropaixao/Python-Flask-WTForms_SalaoDeBeleza_Agenda-Caixa
803ee57b78783812c0db8aa630feca62c0adab36
9a730e44a9563e06dc0069d97a8491f028767aec
refs/heads/master
2023-01-30T22:09:13.254185
2020-12-06T23:11:50
2020-12-06T23:11:50
312,880,073
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
from flask_wtf import FlaskForm from wtforms import StringField from wtforms.validators import DataRequired class ContasForm(FlaskForm): descricao = StringField('Descrição da conta', validators=[DataRequired(message="Campo obrigatório")], render_kw={"placeholder": "Descrição da conta"})
[ "leandro.tec.inf@gmail.com" ]
leandro.tec.inf@gmail.com
20eeee6a20125183e69b74373fb882f41cf4c4ab
157d2961f8196d56640594c8a094c41521b6ae2d
/Untitled1.py
2b65f0c6a99952359cdb2792d0c28b1e0a539d5c
[]
no_license
anaidpm/IBM-Data-Visualisation-Labs
e0a2279a942c04b91b490f46b48bddae9c40425b
886ca05b113267eda7cfa2f6429b6e7983e968eb
refs/heads/master
2020-03-27T22:11:47.380461
2018-09-17T13:35:53
2018-09-17T13:35:53
147,212,540
0
0
null
null
null
null
UTF-8
Python
false
false
2,011
py
# coding: utf-8 # In[3]: import numpy as np # useful for many scientific computing in Python import pandas as pd # primary data structure library df = pd.read_csv('https://cocl.us/sanfran_crime_dataset') df.rename(columns={'PdDistrict':'Neighbourhood'}, inplace=True) print ('Data read into a pandas dataframe!') ...
[ "noreply@github.com" ]
noreply@github.com
14693149d31686fd7ed16988d92202f76cc51287
20018da049ba9aedd7daad316a59cd7f00577cc2
/entero.py
ab4e9473d6def49dd07a98f9fd1a72308e656daa
[]
no_license
danielacorvalan79/trabajo_grupal_2
0d09cc2d872eded01ccc8e1bb58967469532bb6b
5aff3d56643c0845101b94cd8a21181481d69646
refs/heads/main
2023-01-07T01:10:45.505800
2020-11-05T21:48:41
2020-11-05T21:48:41
310,395,138
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
import random import numpy as np #punto 5 #generando lista con numeros de 1 a 20 digitos caracteres = '1234567890' lista = [] for n in range(0,100): string_aleatorio = '' largo = random.randint(1, 20) for i in range(0, largo): string_aleatorio += random.choice(caracteres) lista.append(int(stri...
[ "pedrocid@example.com" ]
pedrocid@example.com
8068df745ef00e5492674054c69115a2d6c59513
7db3827b9a8ed9d34607bb5af104930fa6cfd8b6
/accounts/urls.py
04fdd47ddece9e8d7320eb2d52e279fb9fa40f30
[]
no_license
shivani1666/carzone-gitproject
2a66ca868cfb0c819e24241f90bba39ba53cc59f
92dc251cf28bb79624d5d5c974af2268d7e931fb
refs/heads/master
2023-05-21T14:49:47.696949
2021-06-12T10:20:45
2021-06-12T10:20:45
362,923,972
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
from django.urls import path from . import views urlpatterns = [ path('login', views.login, name='login'), path('register', views.register, name='register'), path('logout', views.logout, name='logout'), path('dashboard', views.dashboard, name='dashboard'), ]
[ "shivani16cs@gmail.com" ]
shivani16cs@gmail.com
afaa62f64cd35fb3b529c054cc3170eb0d51759a
b946fbbd8b720f135a53d1989e319b50a21fc82a
/codetables/models.py
745ddd94006849bb29fc6979f88a43176a2eba85
[]
no_license
Ravinderbaid/codetable
64bf1c209897ee74c7c2b993b6b6594a34f79ef2
c1162c51ffd613cb5b90210b4368786255f357d7
refs/heads/master
2021-01-02T08:39:26.193759
2016-03-13T03:51:13
2016-03-13T03:51:13
41,509,160
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Files_saveds(models.Model): title = models.CharField(max_length = 100) author = models.ForeignKey(User, verbose_name="by") created_date = models.DateTimeField(auto_now_add=True, editable=False) modified_date =...
[ "ravinderbaid@gmail.com" ]
ravinderbaid@gmail.com
4adf64dcfff43a8c6a74d42b19225f1953debe63
9e928640a0d92edf69c5b3b5b05aec256635ebf6
/0old/tests/url_test/main.py
d7d184d19f7627081ef9dd0413f23c6a9f55b084
[]
no_license
joiplay/rapt
9db0f1cc824041a8f385e89d77fbbaeed745e87b
cf8ee5c1aabcb6d1dc08b5a2c75c7723afe96c31
refs/heads/master
2020-09-29T14:40:48.187559
2019-12-14T10:22:06
2019-12-14T10:22:06
227,056,098
5
1
null
2019-12-10T07:31:25
2019-12-10T07:31:24
null
UTF-8
Python
false
false
1,990
py
import pygame import webbrowser # Import the android module. If we can't import it, set it to None - this # lets us test it, and check to see if we want android-specific behavior. try: import android import android.mixer except ImportError: android = None # Event constant. TIMEREVENT = pygame.USEREVENT #...
[ "tom@rothamel.us" ]
tom@rothamel.us
c30392e2bb7b8ca47fa86eecc06d3ba2ebbf67c5
b6472217400cfce4d12e50a06cd5cfc9e4deee1f
/sites/top/api/rest/WlbItemDeleteRequest.py
90181cc7828d9d8c9ed09c35a46a07e62a9e7a08
[]
no_license
topwinner/topwinner
2d76cab853b481a4963826b6253f3fb0e578a51b
83c996b898cf5cfe6c862c9adb76a3d6a581f164
refs/heads/master
2021-01-22T22:50:09.653079
2012-08-26T19:11:16
2012-08-26T19:11:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
''' Created by auto_sdk on 2012-08-26 16:43:44 ''' from top.api.base import RestApi class WlbItemDeleteRequest(RestApi): def __init__(self,domain,port): RestApi.__init__(self,domain, port) self.item_id = None self.user_nick = None def getapiname(self): return 'taobao.wlb.item.delete'
[ "timo.jiang@qq.com" ]
timo.jiang@qq.com
a6233eaa6757dee3394ea65eed815e8023fd32b7
9befe2880bb67a2fa076214d81b15165a3a43101
/main.py
7a70aca875fa2603f7d428995fe3c0361740bc20
[ "MIT" ]
permissive
Aarrtteemm123/Balls
f459cf56da5d86dcc684d95d30074813721b6609
ded92c3a1a903daac5851749eee90e5fb42b44e5
refs/heads/master
2021-02-16T13:43:24.724495
2020-12-18T13:42:42
2020-12-18T13:42:42
245,011,900
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
import pygame from App import Application if __name__ == '__main__': pygame.init() app = Application() app.start()
[ "“artem@gmail.com”" ]
“artem@gmail.com”
a33002ee62b9f1e34ed9eabcd27de694c1e05a29
00f1f01f218fddc30a4194e999f0b48c45c47012
/elements/resources/migrations/0001_initial.py
fb4b807194a3f2905b8e8ba7d9f27baedea4299e
[]
no_license
mikpanko/grakon
495659317c5933a95650b3f9000aab73e7335a13
6c64432c366a6ad44fb7227f22498335bd193f37
refs/heads/master
2020-12-26T00:19:52.799388
2013-07-28T02:33:19
2013-07-28T02:33:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,184
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.rename_table('elements_entityresource', 'resources_entityresource') if not db.dry_run: # For...
[ "sergkop@gmail.com" ]
sergkop@gmail.com
1dcaa9207f2ccf6e23d755d436896b1aef624ac1
a170461845f5b240daf2090810b4be706191f837
/pyqt/DemoFullCode-PythonQt/chap12QtChart/Demo12_2ChartConfig/myDialogPen.py
4cdbf17519ebcd8973fd4577bfea498efc83ca6b
[]
no_license
longhuarst/QTDemo
ec3873f85434c61cd2a8af7e568570d62c2e6da8
34f87f4b2337a140122b7c38937ab4fcf5f10575
refs/heads/master
2022-04-25T10:59:54.434587
2020-04-26T16:55:29
2020-04-26T16:55:29
259,048,398
1
1
null
null
null
null
UTF-8
Python
false
false
3,026
py
# -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QApplication, QDialog,QColorDialog from PyQt5.QtCore import pyqtSlot,Qt ##from PyQt5.QtWidgets import from PyQt5.QtGui import QPen, QPalette,QColor from ui_QWDialogPen import Ui_QWDialogPen class QmyDialogPen(QDialog): def __init__(self, par...
[ "841105197@qq.com" ]
841105197@qq.com
27fe1e9da8e79b42ad8492c48fc4391361361bbf
d57534daa527217d0ed14ef89cae55620b4c8fbb
/env_bluetooth-API/bin/wheel
c3c288012325a59442a043ab8702c98bfe43899e
[ "Apache-2.0" ]
permissive
ryltar/bluetooth-API
2c5c368b7926f3c3089270efb8e78e57021abc9a
3c97618b4b9ef2824db2d2f4c5e1be43c7ae662e
refs/heads/master
2021-10-23T16:12:02.386771
2019-03-18T16:33:49
2019-03-18T16:33:49
109,590,885
0
0
null
null
null
null
UTF-8
Python
false
false
259
#!/home/bluetoothapi/bluetooth-API/env_bluetooth-API/bin/python2 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mart1.guillaume@free.fr" ]
mart1.guillaume@free.fr
25565a19fc1880f481db4da8ee61c08e14747dfd
506ad7a2be6eb1b6ad858edbf00673d7b0d670b1
/player.py
b46aa73d7e42ff2beb4fd0acdbdb3b6ea7d03851
[]
no_license
Tenelen/BlockBro
c3d17c656b804de2b31819b52dde337825f51e1c
392b083cfb939089d29b61ff4fdcb32b86dce6a0
refs/heads/master
2021-01-24T03:12:06.270056
2018-02-25T21:57:22
2018-02-25T21:57:22
122,880,594
0
0
null
2018-02-25T21:57:22
2018-02-25T21:48:37
Python
UTF-8
Python
false
false
2,743
py
import pygame from time import sleep class Player(): def __init__(self, settings, screen, platform): self.player_speed = settings.player_speed self.velocity = settings.velocity self.settings = settings self.screen = screen self.player_width = settings.player_width ...
[ "tfptenelen@gmail.com" ]
tfptenelen@gmail.com
87ce11d808d55a15ec8198dedc0d8ea2514b4e48
27bb9d333e3609d791f0ded928090721b98ddf52
/app/db_models.py
a343c6d3d77b1548ab810fa23f8a90f9dc5b10e2
[ "MIT" ]
permissive
carverdo/homer
64434bf3f9f784fd6a63ce549e3dcc5caedb371c
93169838d15c557406b37cc7f56f9631abb0fd6c
refs/heads/master
2021-01-10T13:30:31.867435
2016-04-12T16:10:25
2016-04-12T16:10:25
54,338,138
0
0
null
null
null
null
UTF-8
Python
false
false
5,934
py
""" We import our empty db and write our model changes to it. NOTE: scheduler creates an additional table not captured in this model. """ __author__ = 'donal' __project__ = 'ribcage' from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from sqlalchemy import Column, I...
[ "donal.carville@gmail.com" ]
donal.carville@gmail.com
ffc8456c74ad528d18d3eb7750c29ab605bde020
977352af2be278d01ab02c91423738cc79af174a
/python-data-structures-master/3. Pointer Structures/testLinkedList.py
28a099f4bf14612a5d75293d1858517a769307db
[]
no_license
MattRijk/data-structures
4c69d8798fdb3f8967e7e3b3f7da986aec4590ea
8ffa1de094339f33ed79ee62ecc83e997ebdb992
refs/heads/master
2021-01-17T19:59:59.941557
2016-11-28T19:00:48
2016-11-28T19:00:48
60,529,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,914
py
""" Test cases for LinkedList data structure Author: George Heineman """ import unittest from linkedList import LinkedList, LinkedNode import random class TestLinkedList(unittest.TestCase): def setUp(self): self.link = LinkedList() def tearDown(self): self.link = None ...
[ "edgesidemedia@gmail.com" ]
edgesidemedia@gmail.com
449a4e9073d7775f05349340826f0d6e53ce9997
19da1a56f137a08772c347cf974be54e9c23c053
/lib/adafruit_motor/servo.py
0c46abd369009f496e2dd3f194a68ec1901f43f5
[]
no_license
mk53202/mk53202-timeclock-pyportal
d94f45a9d186190a4bc6130077baa6743a816ef3
230a858d429f8197c00cab3e67dcfd3b295ffbe0
refs/heads/master
2021-02-04T05:38:25.533292
2020-02-27T22:45:56
2020-02-27T22:45:56
243,626,362
0
0
null
null
null
null
UTF-8
Python
false
false
7,061
py
# The MIT License (MIT) # # Copyright (c) 2017 Scott Shawcroft for Adafruit Industries LLC # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limit...
[ "mkoster@stack41.com" ]
mkoster@stack41.com
6dc332de3de9579b40a1198a92309319dbf350e9
07524b6bc412128785db7ef799fb99966e0d3295
/polls/urls.py
83af977bddeb5c55a8b0f22564ba285c594e3daf
[]
no_license
anton-khodak/gtm-app
988770228e19c96c15b14d5aa1f099a861acf9fb
afdd0d2b566138245fd5344f33418c6aad0b856b
refs/heads/master
2021-01-10T13:49:52.505672
2017-07-29T08:24:12
2017-07-29T08:24:12
51,945,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from polls.views import * urlpatterns = [ # url(r'^api/polls/$', UsersPollList.as_view()), url(r'^api/polls/all/$', UsersPollFullList.as_view()), url(r'^api/polls/passed/$', UserPollPassedView.as_view()), ur...
[ "anton.khodak@ukr.net" ]
anton.khodak@ukr.net
cb875e2e9f522227d18d0f4e5b51d3ab04e1b40f
067b8f7180d15375a593163b44952b82544914f5
/python/第七章 用户输入和while循环/pets.py
b446e1efde477fa67c648afe5fba7e4bf9b77dc9
[]
no_license
WenRich666/learn-note
fb0bfdfcddba78ccb6d35837ed2c59421907b70e
d4a344396380cefd9391baede824acabc916e507
refs/heads/master
2020-04-13T05:36:36.505613
2019-01-21T08:37:20
2019-01-21T08:37:20
162,996,885
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
pets = ["dog","cat","dog","goldfish","cat","rabbit","cat"] print(pets) while "cat" in pets: pets.remove("cat") print(pets)
[ "940031354@qq.com" ]
940031354@qq.com
c24968234482ab1ffb8a859e5600f442fb2e4fff
2fb75382cb8bb94ed8da382dc5843766ead6def2
/python/xraydb/xraydb.py
975f87f7bf9e39948a982fe26446153e5d8eb0da
[ "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
mlevant/XrayDB
16c677121364e163ce9c91a38c4880c0c3b6aa19
cf2b405a60cefae961db220aca62f3fb7375b544
refs/heads/master
2021-05-18T01:46:21.303699
2019-10-09T18:38:10
2019-10-09T18:38:10
251,052,175
0
0
NOASSERTION
2020-03-29T14:29:43
2020-03-29T14:29:43
null
UTF-8
Python
false
false
25,199
py
#!/usr/bin/env python """ SQLAlchemy wrapping of x-ray database for data from Elam et al, Chantler et al, Waasmaier and Kirfel Main Class for full Database: xrayDB """ import os import json from collections import namedtuple import numpy as np from scipy.interpolate import UnivariateSpline from sqlalchemy impo...
[ "newville@cars.uchicago.edu" ]
newville@cars.uchicago.edu
839102efc0192ae4e85bf57901922beb79119de4
6579ba67f84674521af0771fd0b79247c13542c9
/fibonacci1.py
147200d3bd8b1c4b81b39236eb50696b61f2e71d
[]
no_license
juandiego26/python-lab
f3f8c248119e3c0b8e4297daffda56f3367bd579
1bf17c5ef738ae3fde84d655a758c02770a2d50e
refs/heads/master
2020-05-19T18:58:56.011276
2019-05-13T16:05:52
2019-05-13T16:05:52
185,167,873
0
0
null
null
null
null
UTF-8
Python
false
false
1,412
py
def fibonacci(max): #max = max print(max) print('') a, b = 0, 1 while a < max: yield a print(a)#el valor de retorno a, b = b, a+b fib1 = fibonacci(20) fib_nums = [num for num in fib1] print(fib_nums)#se muestra la lista generada print('*'.center(50,'*')) double_fib_nums = [num * 2 for num in fi...
[ "silgajuandiego@gmail.com" ]
silgajuandiego@gmail.com
1a53c172d91fd40f1f2114534a29a26f0ffc39a0
23ba87e51028f2bb32d95cbb3849a4181b8c455a
/docs/conf.py
bfedc049bf7dbd475e45e1a789dc9e47ed9e7481
[]
no_license
mdhor/2021sp-final-project-mdhor
16070a3da7eed90a61cde153b38a2f3002714d1e
bb836a788ff7dd0149714525516436b5b1f8a442
refs/heads/master
2023-04-23T07:21:59.280737
2021-05-10T13:12:39
2021-05-10T13:17:30
361,442,405
0
0
null
null
null
null
UTF-8
Python
false
false
2,532
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "mattiashornum@gmail.com" ]
mattiashornum@gmail.com
f0b62c69b7243042d00f0401f6e56e363a4ac84f
d9da2513667876ed15a7423b830e35ebb345879f
/vis/jac_vis.py
324b098270e7422b520f91146b85090f757598b7
[]
no_license
UltimateJupiter/Epoch_Double_Descent
0bcb710476cb42c9a3c119891f74491d29f9fd35
418f8a4b8d95cdb1c377863d66018c2308c68783
refs/heads/master
2023-04-15T23:00:57.697152
2021-04-23T06:36:16
2021-04-23T06:36:16
357,182,164
1
2
null
null
null
null
UTF-8
Python
false
false
728
py
import matplotlib.pyplot as plt import matplotlib as mpl mpl.use("Agg") import numpy as np def plot_jac_svd(D, splitted_norms, slices, layer_names, pic_name): plt.figure(figsize=(10,5)) plt.subplot(121) for i, norms in enumerate(splitted_norms): plt.scatter(D, norms, label=layer_names[i]) plt...
[ "xingyu.zhu@duke.edu" ]
xingyu.zhu@duke.edu
2af6992830f3f1ef19f0236bfb1b4c45c43943bf
e1c4c9b40287f711bb2e27b7d4062263d38389c8
/docs/conf.py
be67ebfd82633fa231c53daa4a2c709c6fceb810
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vladvasiliu/django-aws-utils
962c0cf31417dfcab94527c62ed2939d1947567e
18d73c4f9802b4073d3ed244f462e13b8e03f951
refs/heads/master
2023-02-05T18:16:09.955565
2020-12-22T18:20:44
2020-12-22T18:20:44
323,386,002
0
0
null
null
null
null
UTF-8
Python
false
false
2,347
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import os import sys from pkg_resources import get_distribution # -- Path setup ------...
[ "vladvasiliun@yahoo.fr" ]
vladvasiliun@yahoo.fr
d80b2863e81ce3a7c7d437c7ded6c8d02fa5ba45
181eb5c111a39e236b1130c048ce05aa55c8bdbd
/imagemanipulation1.py
e5351518253d9296dc4f51c4f3ed51d2aa82c2cf
[]
no_license
mbaseman1918/testrep
5edd0992a92bc31913865960f3d999d1e9bcff39
90fe5cfb2d06f2eda58c2c1a2269cdc0dc153ddc
refs/heads/master
2020-03-21T16:55:24.602950
2018-08-22T17:42:51
2018-08-22T17:42:51
138,802,455
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
from PIL import Image img = Image.open("basemanphoto.jpg") width, height = img.size pixels = img.load() for i in range(width): for j in range(height): r, g, b = pixels[i,j] Y = 0.299*r + 0.587*g + 0.114*b r = int(Y) g = int(Y) b = int(Y) pixels[i, j] = (r, g, b) i...
[ "39381570+mbaseman1918@users.noreply.github.com" ]
39381570+mbaseman1918@users.noreply.github.com
1d12443b25111882fb8b6f7c4b3b0faff8eaae87
1ff4f977c34a16d79a1f3c05c2e1767a0742fd29
/apps/myApp/views.py
e9509d65f2b78fb3da37a081f190502c5b8614d2
[]
no_license
igleciasjoseph/wishListRepo
1e27cc319aba15c0d4950e34ef9d48df83406b58
371cbc8c193ca680cc3540af083ff4aa53c8a74c
refs/heads/master
2020-05-17T04:57:40.925536
2019-04-25T23:04:43
2019-04-25T23:04:43
183,521,595
0
0
null
null
null
null
UTF-8
Python
false
false
3,103
py
from django.shortcuts import render, HttpResponse, redirect from django.contrib import messages from .models import * import bcrypt def index(request): # User.objects.all().delete() return render(request, 'myApp/index.html') def register(request): errors = User.objects.reg_validator(request.POST) if...
[ "igleciasjoseph@gmail.com" ]
igleciasjoseph@gmail.com
e716e576229b4be0e8e202d22c9db7f31a4d0675
9b0f0345129001616ea456ee856597c6ed06ba7a
/basic/2017/p2.py
99f46e002a08cce7cba98c32a0f5afeddabbb47e
[]
no_license
Abinash04/Python
88366200bbdcc2e93a2168469ca891b23fd5e890
7a920348de69fbac35df7585f57335547b36d8e6
refs/heads/master
2023-07-06T11:10:17.999698
2023-07-04T19:54:43
2023-07-04T19:54:43
95,747,842
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
#Ask the user for a number. Depending on whether the number is even #or odd, print out an appropriate message to the user. try: num = int(raw_input('Enter a number \n')) except: flag = 1 while(flag): print 'Enter a valid number..' num = raw_input('Enter a number \n') if num.isdigit...
[ "Abinash.behera04@gmail.com" ]
Abinash.behera04@gmail.com
8fa6e7131a0816841e1b93a970778de8b6e032d7
f4999995e75d4a249ef54fcfa5eb2a4a7f384c04
/Expenses/test_expenses.py
ebb6210da10a41efcfb3d40241299221fe229a01
[]
no_license
bomendez/bomendez.github.io
29babe6cd6f91c573bb4685cae956b2a520bc971
37c8437631ee6af94964493b3f68c926012985ec
refs/heads/master
2021-11-17T15:45:40.487929
2021-10-04T21:31:06
2021-10-04T21:31:06
159,450,249
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
from expenses import (get_actual_trip_cost, get_actual_mileage_rate, get_reimbursement_amount, calculate_mileage) def test_get_actual_trip_cost(): assert(get_actual_trip_cost(0, 0, 0, 0) == 0.0) assert(get_actual_trip_cost(0, 1, 1, 1) == 0.0) assert(get_actual_trip_cost(10, 5, 100, 2...
[ "mendez.bo@northeastern.edu" ]
mendez.bo@northeastern.edu
61bd1a05d01646eacb38eeb8de6d27a1fd8fed0f
d781fb58b8e0e65b080162a960784f690d28a840
/post/migrations/0001_initial.py
8d281a66b0394eaea77de497293f913bde0f32b3
[]
no_license
songulkarahan/django-blog
e49f1e880ac6eaddbf2856ea438b896f774dc56e
084d49af43a7cb158ab1003d60a6daf522d2c73a
refs/heads/master
2022-10-03T19:27:39.936574
2020-06-08T03:54:49
2020-06-08T03:54:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2020-04-17 17:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', ...
[ "songul.karahan@bil.omu.edu.tr" ]
songul.karahan@bil.omu.edu.tr
751b7d53431b7c9cfcb6013b00156c22e235fe27
8ef46cddc8a99f3ec57215b7e3e4437784d8da4a
/ITP1/ITP1_4_C.py
8cd75db003d1f7687e43b5e3ba47744e14f2cec7
[]
no_license
ctf4bba/Aizu-Online-Judge
aecab5118f2c982457288ba4d35c57d9a30f794e
e483a7a66319ce840f776f9caf4cc26400c01785
refs/heads/master
2023-01-06T02:15:59.417193
2020-10-24T13:49:02
2020-10-24T13:49:02
296,346,865
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
while True: a, op, b = input().split() if op == '+': print(int(a) + int(b)) elif op == '-': print(int(a) - int(b)) elif op == '*': print(int(a) * int(b)) elif op == '/': print(int(a) // int(b)) else: break
[ "marchosias515@gmail.com" ]
marchosias515@gmail.com
343b784858067494c7511d5345bccb020965f8a5
8448d0697c5040096b36bf20f237b8222a80a4c7
/generators.py
1360024a0aa21107f768de998f338c0bc513efde
[]
no_license
sindaakyil/python
db7b67a53f4b8e07977bc190255615c17d436073
6d66e6ddf003b63b5a3e267f2f883f67d24bc1d8
refs/heads/main
2023-04-01T21:27:29.597711
2021-04-06T20:12:04
2021-04-06T20:12:04
340,478,018
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
def coube(): result=[] for i in range(1,5,1): result.append(i**3) return result print(coube()) #generators kullanmamızın nedeni eğer oluşturduğumuz bir değeri bir liste içinde saklamak gerekmıyorsak sadece o an ulaşmak istiyorsak daha sonra o elemana ulaşmamız gerekmiyorsa kullanılır. def cube(): ...
[ "73520969+sindaakyil@users.noreply.github.com" ]
73520969+sindaakyil@users.noreply.github.com
0d160ba199dab7e9a7dc75d135a93b6079e79e19
2d3a7258d62795117ffe4be5b9fb97a2e5c0bcd9
/interpreter/Mparser.py
186ff3042a776d02cd481e0290be9f9bd39c7f85
[]
no_license
kosjakub/Interpreter
511765e69c30b30532a6618ec453ca39f8a99372
36c378e00c8d639d5c7e8be851094bd4e8075280
refs/heads/main
2023-04-14T09:29:45.447456
2021-04-26T16:35:23
2021-04-26T16:35:23
361,820,802
0
0
null
null
null
null
UTF-8
Python
false
false
11,580
py
import scanner import ply.yacc as yacc import time import AST as c import TreePrinter import re tokens = scanner.tokens precedence = ( ("right", ","), ("right", "ADDASSIGN", "SUBASSIGN", "MULASSIGN", "DIVASSIGN", "="), ("left", "EQ", "NOTEQ", "GREATEREQ", "LESSEREQ", ">", "<"), ('left', '+', '-', 'DO...
[ "kos96@interia.eu" ]
kos96@interia.eu
f0202a4f34472c4c3be1f395aaae592e9ea9f454
7d9f92fba6af53bd385e0b4173134241c9998fff
/items/admin.py
418f8f0f830fcebdebd5feddc8bd7ec707691ed5
[]
no_license
ljarufe/intifil
856f77c6ece7f444fd331a3eff3c35260201f78f
d478a8a1309d526a2508ca7b559e16de03aaa384
refs/heads/master
2021-01-02T09:09:13.613026
2013-10-21T17:00:03
2013-10-21T17:00:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
# -*- coding: utf-8 -*- from django.contrib import admin from modeltranslation.admin import TranslationAdmin from common.admin import BasePermissionAdmin from items.models import Category, Photo, HomePhoto, Item, Video, SubItem class CategoryAdmin(BasePermissionAdmin, TranslationAdmin): """ Category model ad...
[ "luisjarufe@gmail.com" ]
luisjarufe@gmail.com
e07ad01c23c45836b064759f00be7e07f68f04e8
f04a36fdaa415c6a47d3727e783b2dce11e3dd43
/blog/views.py
8ae814785c3273121fdfa345ef1043693a0d0a73
[ "BSD-3-Clause" ]
permissive
hellprise/cook_blog
e9486452cc53a1300fce5ea9ea54dbe5c0408bf0
d55734af1625256f940e55d267beb38d911bfda4
refs/heads/main
2023-06-25T21:43:20.284389
2021-07-28T14:36:45
2021-07-28T14:36:45
390,378,042
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
from django.shortcuts import render from django.views.generic import ListView, DetailView from blog.models import Post class PostListView(ListView): model = Post def get_queryset(self): return Post.objects.filter(category__slug=self.kwargs.get('slug')).select_related('category') class PostDetailVi...
[ "you@example.com" ]
you@example.com
aaadf802942b3625c3648dfa76e8026553953ccb
cf96c6f9bee731a2ebd97cea0267095158380357
/webssh/django_webssh/tools/tools.py
5ac8ae24fbe1e1160ae7adecb54dee321cbdcd3e
[ "Apache-2.0" ]
permissive
zhailibao/django-webssh
9a2ecffa0bf1bfcef46b77224c78501dc0f3dcbe
ee250f65188d52b42f3ee6cee1f33c224c69474c
refs/heads/master
2020-04-15T19:53:13.005337
2019-01-10T11:37:37
2019-01-10T11:37:37
164,969,315
0
1
null
null
null
null
UTF-8
Python
false
false
955
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : HuYuan # @File : tools.py from django import forms from django_webssh import models import time import random import hashlib class ValidationData(forms.ModelForm): class Meta: model = models.HostTmp exclude = ['datetime'] def unique(...
[ "hy2803660215@163.com" ]
hy2803660215@163.com
95a4b7f4ef92f184eefee95bceee085fc44064e8
ecd2c20608e1f4a1646c87767762bd72db618d65
/photo_blog/settings.py
a119b668239d31d500b4fa6a3be1f70c0a501c4a
[]
no_license
RianGirard/photo_blog
129858ee32cbc2ff0521c8219b72b9d83c015726
e461fa62abe027965b7143cce544d25634d5bf9c
refs/heads/master
2023-06-20T14:36:38.040663
2021-07-21T01:02:13
2021-07-21T01:02:13
383,640,210
0
0
null
null
null
null
UTF-8
Python
false
false
4,867
py
""" Django settings for photo_blog 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 os f...
[ "riangirard@gmail.com" ]
riangirard@gmail.com
a6c79444b3064e23c966de91bf6fbc9553061d4d
6c507cccc6c13cbd37298be2f70d7c8e92356ea9
/master_content_server/util_errors.py
5e9c809124dd2c12c9ebdf53af15a6ec8f489199
[]
no_license
kuroneko/harem
309a3d53fc6a518001c9c330e3fae04a41926c5e
c9223e19af03dc1a89416f104760aa983119f396
refs/heads/master
2021-05-29T00:39:41.001286
2011-05-21T23:04:37
2011-05-21T23:04:37
105,629,747
0
0
null
2017-10-03T08:30:41
2017-10-03T08:30:41
null
UTF-8
Python
false
false
1,686
py
#!/usr/bin/python import sys from util_html import meidokon_html_headers from util_html import meidokon_html_footers DEFAULT_LANG = 'EN' DEFAULT_ERR = 'Status: 500 Internal Server Error' DEFAULT_MSG = 'Something Went Boom, Sorry' HOMEPAGE_LINK = 'index.py' # Start the HTTP errors HTTP_ERRORS = {} # English, mothaf...
[ "barneydesmond@gmail.com" ]
barneydesmond@gmail.com
ddfa6b18501db445e3bdbdecfb58362d13a6d3f9
4dac2dc078d4536146fdf835e2f693b65a7cc224
/filelayout.py
45c4b27261325774fa76687b8dd482143c7ec5c1
[]
no_license
estansifer/website
6dfe0e5b7e9321579ab8728c43498ba44003c9b3
477815e14d3e3738f6b3331d12f36a73c58cc17c
refs/heads/master
2022-11-07T19:14:12.027964
2020-06-29T00:22:22
2020-06-29T00:22:22
275,692,546
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
import sys import os.path as op root_dir = op.join(sys.path[0], '..') input_dir = op.join(root_dir, 'input') output_dir = op.join(root_dir, 'www') working_dir = op.join(root_dir, 'working') latex_dir = op.join(working_dir, 'latex') pandoc_html_template = op.join(input_dir, 'template.html') pandoc_cyoa_template = op....
[ "eric.stansifer+git@gmail.com" ]
eric.stansifer+git@gmail.com
9bc038b8197fe6eb113bc4dec0c269c99a1d01f2
7fde3b3050f3ac825acc071d30883024d931e1c9
/scripts/pre_processing_json.py
32c727b3081aeb6595be74a70a7dd23505e0c33a
[]
no_license
madzik176/bme-bigdata
0fd93e1a9d014855b959e9a9ecc303abb9960271
f704e54edab6d5e2c90c363e9c4fdad7c9d10852
refs/heads/master
2021-05-15T15:35:15.648457
2017-11-01T17:29:42
2017-11-01T17:29:42
107,396,758
0
0
null
2017-10-18T11:08:18
2017-10-18T11:08:18
null
UTF-8
Python
false
false
837
py
import pandas as pd import urllib, json url = "https://data.seattle.gov/resource/pu5n-trf4.json" with urllib.request.urlopen(url) as response: data = response.read() data_json = json.loads(data.decode()) df_all = pd.DataFrame(data_json) df = df_all.loc[:,['event_clearance_date', 'ev...
[ "fando.magic@gmail.com" ]
fando.magic@gmail.com
24adb24e67fa33ec18f9e784d8da59184ae4f620
267e8e4fc40b5426f91504fe6fecd1bc3b7451c0
/ex_2.py
6bcbdeb8925e3395e5d498274dbc36e6852d5fb8
[]
no_license
calgaryfx/TPW
e6b3a378a92985424bd6f49afa307f245b1c4128
34b2bd4b7f2e7034cf7fbda81fc19b3d0f5506d5
refs/heads/main
2023-04-23T02:43:30.528467
2021-05-06T14:46:13
2021-05-06T14:46:13
364,643,602
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
# Ex.2: Hello (p.3) user = input("Please input your name: ") print(f"Hello {user.title()}.") # Task: Write a program that asks the user to enter his or her name. # The program should respond with a hello message to the user, using his or her name. # The Python Workbook practice. Solution not available.
[ "markrogers@Marks-MacBook-Air.local" ]
markrogers@Marks-MacBook-Air.local
52a05f56e294b3506f0f956c66a69164680ea4cd
81b724bbdfdfae1cd0260774fa99256f6ad30c7a
/spring_18/ECE_6750/backup/Hw_6/bcp.py
b2d8f93e5485eb4f679e76361fa3baf145954fe3
[]
no_license
vkrao100/course_docs
be372900d678300e817ff45e73535899110fcf7a
64b380ce2083b63b58c0ee74edd6c434a57184d4
refs/heads/master
2020-03-30T21:37:42.449310
2018-10-04T21:11:48
2018-10-04T21:11:48
151,635,268
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
import utility import numpy (A,x) = utility.parse("statemin.txt") print(x)
[ "vkrao@vkrao-ult.localdomain" ]
vkrao@vkrao-ult.localdomain
ab6d3bdc20edc01a1bc5726f67e2790c2c0d32a0
20d0678dee488d59f46868003b2224c2d7288e8e
/kaggle/biological-response/logloss.py
56f1b8df6532ddbb9279e675bdef49f1d5663ccb
[]
no_license
trivedipankaj/Machine-Learning
e74758737763b112d569d931a5e12ee1be354707
95bb3973f4da22a1627854a79f47193896782444
refs/heads/master
2016-09-06T15:29:50.157033
2015-04-05T11:02:35
2015-04-05T11:02:35
30,797,324
1
0
null
null
null
null
UTF-8
Python
false
false
260
py
import scipy as sp def llfun(act, pred): epsilon = 1e-15 pred = sp.maximum(epsilon, pred) pred = sp.minimum(1-epsilon, pred) ll = sum(act*sp.log(pred) + sp.subtract(1,act)*sp.log(sp.subtract(1,pred))) ll = ll * -1.0/len(act) return ll
[ "pankajk@valyoo.in" ]
pankajk@valyoo.in
89b5ffc396c40540df2fb3de8ea43fa4e9444552
0a74f7afa97a0d31219fdf68b85d0733ef04caf3
/python/pyspark/errors/error_classes.py
e87d37c63e77b262c0d228f0bff9b092a034d35e
[ "CC0-1.0", "MIT", "Python-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "CDDL-1.1", "BSD-2-Clause", "EPL-2.0", "CDDL-1.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown",...
permissive
viirya/spark-1
37ad4643b3b31c2a3dfc3d5d55eb2aefa112d5d0
37aa62f629e652ed70505620473530cd9611018e
refs/heads/master
2023-08-31T20:14:55.834184
2023-07-11T16:08:21
2023-07-11T16:08:21
21,467,907
1
3
Apache-2.0
2023-07-12T01:21:50
2014-07-03T15:40:08
Scala
UTF-8
Python
false
false
22,184
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 us...
[ "gurwls223@apache.org" ]
gurwls223@apache.org
233d40f8e8ad5f80d43b6f72ef1e8e6ef8eca9d2
27623ad6f6a62b123926e00ee5a778c221d08867
/zhstory.py
a322f0435875edd35756463992751f08394f2f2b
[]
no_license
zuoqin/zhaws
90f17a3d328976a901a8b23bca1ee710c9f9f755
631a597bf96a8cd288d3232a9f81a27f8a37656b
refs/heads/master
2021-01-07T19:37:30.104154
2020-07-07T13:10:13
2020-07-07T13:10:13
241,800,189
0
0
null
null
null
null
UTF-8
Python
false
false
2,501
py
import requests from bs4 import BeautifulSoup import datetime import json import urllib3 def scrape(event, context): qp = '/political/coupgate-localized-civil-war-now-underway-doj' if 'queryStringParameters' in event and 'url' in event['queryStringParameters']: qp = event['queryStringParameters']['url']...
[ "zuoqin@mail.ru" ]
zuoqin@mail.ru
4ebc28f370f7858fb7d74279bc76973b0265a4d1
aa94ba78ac3d54a183f7aacfeca0622448e0011d
/Third.py
cd69de02b8bda17cd2fce2f97e565340f687265e
[]
no_license
saysiva/Phyton
2dbba9ab1785400c50bfbc82e664069c50b72546
916f5bed1f330f8a03388117d1b18957fed40168
refs/heads/master
2021-06-03T05:51:28.062326
2017-12-03T02:12:15
2017-12-03T02:12:15
4,682,404
0
1
null
null
null
null
UTF-8
Python
false
false
251
py
list1 = [1,2,3,4,5] list2 = [2,3,4,5,6] list3 = [1,2,3] print (list1); print (list2); print (list3); dot = 0 for e,f,g in zip(list1,list2,list3): print (e); print (f); print (g); dot += e*f*g print ("====" * 10) print (dot);
[ "noreply@github.com" ]
noreply@github.com
7447ea78d23cd5832c5067f68109b57365ce8537
c901c382df0d8eddcdb8c1d1e98a885d0fea3872
/my_CartPole/d__PG.py
12d44fcb1b2b2e4a89214a4705c97cee639e1514
[]
no_license
FHsong/RL
d8b6a560d04732e1f02e7dc07edbb00bae9ca942
7ec21517cf372e88f97acde869601d8774770758
refs/heads/master
2022-11-17T03:41:24.937974
2020-06-30T14:55:51
2020-06-30T14:55:51
274,860,619
0
0
null
null
null
null
UTF-8
Python
false
false
6,322
py
import gym,os import numpy as np import matplotlib from matplotlib import pyplot as plt # Default parameters for plots matplotlib.rcParams['font.size'] = 18 matplotlib.rcParams['figure.titlesize'] = 18 matplotlib.rcParams['figure.figsize'] = [9, 7] matplotlib.rcParams['font.family'] = ['KaiTi'] matplotlib.rcParams['...
[ "849628370@qq.com" ]
849628370@qq.com
187ef3deb7d3b23abc9b01a4aa9cebc080e7fcce
c1114dd424ee0c072fcbeb3258c3e43f6af783b7
/NewExampleByMyself.py
09255c8b00e49141df0bfbf328684c57ef984e56
[]
no_license
tianyunkeml/TensorFlow-Project
c7c6b9e3849f3f4f5ec5288d5687ccb2907e6c03
94e1189166aba092d84206792a3f36580d20a538
refs/heads/master
2021-01-01T16:37:05.998918
2017-07-30T21:11:06
2017-07-30T21:11:06
97,872,347
0
0
null
null
null
null
UTF-8
Python
false
false
4,198
py
# I want to try autoencoder with tensorflow myself # Basic idea is that: the data is a k * k matrix, # with row m and column n being 1, # and all other elements are 0: # eg. m = 2, n = 6, then data may look like this(I used 10 * 10 for simplicity): # 0 0 0 0 0 1 0 0 0 0 # 1 1 1 1 1 1 1 1 1 1 # 0 0 0 0 0 1 0 0 0 0 # ...
[ "tianyunke666@gmail.com" ]
tianyunke666@gmail.com
0b6fd5ae007c182ed45f4091fec779a6be824f0e
9e64d199f399316f2234283caa338b8264aa8d9d
/bi-matrix/DataStat/settings.py
43efb0dcae021bd673c09e9ed2486df6e9ec251d
[]
no_license
zwj1314/bigdata
adbc74951c901e4804f1ee2325af33835aeb457f
3245766b84beec1a19e1556abe5ee0afa1b3dd3d
refs/heads/master
2022-12-25T09:45:04.605954
2019-07-09T01:29:22
2019-07-09T01:29:22
143,855,160
0
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
# mysql数据库配置 mysqlArgs = { "host": '172.16.2.147', "port": 3306, "user": "BEHAVIOR_APP", "password": "czwssYpiZmV6svsQ", "db": "BEHAVIOR", "charset": 'utf8mb4', } # mysql数据库配置[bia] biaArgs = { "host": '172.16.2.147', "port": 3307, "user": "BIA_APP", "password": "6wiuysOXgKHGvWbR...
[ "weijiaojiao1994@gmail.com" ]
weijiaojiao1994@gmail.com
5f5298a16f93cc4d542ecb2156cb15f41cb7de98
15ceed561cf14e1e006b4264df65bd1167579719
/ch06.py
2a9213e8e849bcedd5d28251c58230725a60acde
[]
no_license
emptist/ekua
e6c697d2d107cfc5383eaabdfbed5e91e04f98cf
2fff0b2c1760823aa2a89579becb47a833d3ecb4
refs/heads/master
2020-05-07T13:56:41.940214
2015-05-23T17:14:44
2015-05-23T17:14:44
32,388,347
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
# coding: utf-8 # # Data loading, storage, and file formats # ## I added this: Mongodb testing # http://stackoverflow.com/questions/23300295/cant-connect-to-meteor-with-pymongo # 首先安裝pymongo: # conda install -c https://conda.binstar.org/travis pymongo # In[62]: import pymongo from pandas import * # 用python來改寫m...
[ "jigme1968@gmail.com" ]
jigme1968@gmail.com
07def4cb2871dff1a7a59d1b63f632293e8344e1
3abf46191ac74fbf55444b87f06825d399c88eab
/heyyz/__version__.py
e04e81957b271109ddb1aba4a802345473d8af1d
[ "MIT" ]
permissive
CarlHey/heyyz
15c15251ea476df3b6ab18c713972788a062e522
0fe0c412be4b0abb787bc36a89b6443a37e17d38
refs/heads/master
2023-05-03T02:47:58.090989
2021-05-26T09:32:03
2021-05-26T09:32:03
328,415,786
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
VERSION = (0, 1, 9) __version__ = '.'.join(map(str, VERSION))
[ "hey@heying.site" ]
hey@heying.site
330ab40209e6e5f5882ecd62a64b9790681af307
e16788d0863db2e8e44dd042cff536c7ff3d9006
/basic_train.py
c7ba03890d5ab9641c1fc802f838b7c5c9a9aa8a
[]
no_license
egroeg121/CNN-Training-Template
1b2e9abb6929694e9047a348846951428bbfa9de
4768ec6d45dc4934048b53a14a2e4c679e3add13
refs/heads/master
2020-09-22T12:59:27.636856
2019-12-01T18:26:30
2019-12-01T18:26:30
225,206,827
0
0
null
null
null
null
UTF-8
Python
false
false
2,654
py
import torch from torch import nn,optim from torch.nn import functional from torchvision import datasets,transforms class trainer: def __init__(self): self.train_loader,self.test_loader = dataloaders(batch_size=32) self.model = basicConv() self.loss_func = nn.CrossEntropyLoss() ...
[ "george.barnett.121@gmail.com" ]
george.barnett.121@gmail.com
f9a984456905dac28a3adcaa81b7e1929610d9ea
62adf11c3fca497e4eb90dac671c2ab6188feae6
/script/deploy_native.py
3b907c188b77fd836a1de34bef30cdd948a2a49b
[ "Apache-2.0" ]
permissive
LouisCAD/JWM
5fff028b1d3c56bbdebb88649cc363d50f3ce2ce
38a27e04bfda410572780235e9f5a66ed0a15548
refs/heads/main
2023-06-13T02:23:49.313293
2021-07-05T17:56:43
2021-07-05T17:56:43
383,407,926
2
0
Apache-2.0
2021-07-06T09:09:19
2021-07-06T09:09:19
null
UTF-8
Python
false
false
3,397
py
#! /usr/bin/env python3 import argparse, build, clean, common, glob, os, platform, revision, subprocess, sys def main(): parser = argparse.ArgumentParser() parser.add_argument("--dry-run", action="store_true") (args, _) = parser.parse_known_args() # Build build.build_native() # Update poms os.chdir(os....
[ "niki@tonsky.me" ]
niki@tonsky.me
4e5edd8fae1f0b8969b8d01ebb9cdc696f1cb1e4
0abc546a1442cae56ddcdc43f85497b37fc89036
/scripts/graph_check_transitivity.py
b1793d5f4b9923cd0e824952d489b64036bc0a11
[]
no_license
yangjl/cgat
01a535531f381ace0afb9ed8dc3a0fcff6290446
01758b19aa1b0883f0e648f495b570f1b6159be4
refs/heads/master
2021-01-18T03:55:14.250603
2014-02-24T10:32:45
2014-02-24T10:32:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,395
py
''' graph_check_transitivity.py - ====================================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- .. todo:: describe purpose of the script. Usage ----- Example:: python graph_check_transitivity.py --help Type:: python graph_...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
1d9c3616c035da8730928b2c6d124ebe273b931d
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/distributed/checkpoint/state_dict_saver.py
a99cd129aeb637da7d11cb88ad101de0a72d8c56
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
4,458
py
from typing import Optional import torch import torch.distributed as dist from .planner import SavePlanner from .default_planner import DefaultSavePlanner from .storage import ( StorageWriter, ) from .metadata import Metadata, STATE_DICT_TYPE from .utils import _DistWrapper __all__ = ["save_state_dict"] def ...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
b695dc1cd6ac27aeb81909e86ad63a50c0fac5c4
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/lib/surface/compute/instance_groups/describe.py
8a88e0e197d87deb862c3ee4c7fd71f847b772b4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
1,985
py
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "toork@uw.edu" ]
toork@uw.edu
de542b456aefd96706241bd989b44dee32e69555
08c4578e0ac25c33ecb56652e15a1cf76fe1dfd1
/Snakefile
ac767cc73650764ae7a359f77ca107ab8f725af0
[ "MIT" ]
permissive
explodecomputer/covid-uob-pooling
45ac3ac555c399faaa9be207b5e761be7d244922
79ad1440f2dd8ebf4b3d0385366a6019ca821495
refs/heads/master
2023-03-22T09:03:21.849186
2021-03-12T22:13:17
2021-03-12T22:13:17
299,046,322
0
1
null
2020-12-19T22:37:14
2020-09-27T14:10:55
R
UTF-8
Python
false
false
1,216
import os os.makedirs("data", exist_ok=True) os.makedirs("results", exist_ok=True) os.makedirs("docs", exist_ok=True) rule all: input: "docs/sim.html" rule data: input: "data/Living Circles Count Update.xlsx" output: "data/circles.rdata" shell: "cd scripts; Rscript data.r" rule containment: input: "scripts/c...
[ "explodecomputer@gmail.com" ]
explodecomputer@gmail.com
a591d050d766e7e68ee405e98d8330371871d6f9
001f70eb08670694976e182794cb842c1c1536a8
/tests/test_int.py
3b4b8f02950832634a08ae4f8e0b63ecdbd35a68
[]
no_license
hitesh70738/Final_project_crud_app
0c04623739b25b1b7527374f4faf8c3f7ba35975
6292c4673a63bc7862d9964ba4650004ce46dd6e
refs/heads/main
2023-02-09T07:26:37.289238
2021-01-05T15:07:12
2021-01-05T15:07:12
323,407,030
0
0
null
null
null
null
UTF-8
Python
false
false
7,502
py
import unittest import time from flask import url_for from urllib.request import urlopen from os import getenv from flask_testing import LiveServerTestCase from selenium import webdriver from selenium.webdriver.chrome.options import Options from application import app, db from application.models import Teams, Players ...
[ "hitesh70738@gmail.com" ]
hitesh70738@gmail.com
e310587519e72a83f6f1e4449d2a4bbda201c315
3221f4e12a1e0c6fb574a71113732914e367efad
/tests/test_calculator_oop.py
a643c1c437d5bf78b9510b290595bed74fe00e9f
[]
no_license
akinleries/python-works
d618fd05011f970e73054cdb153f11cf82f83038
0d4e2e41fe8636d7d5cd49d562c5bd43d50955e2
refs/heads/master
2023-04-11T15:32:41.201671
2021-04-30T15:08:33
2021-04-30T15:08:33
363,176,350
0
0
null
null
null
null
UTF-8
Python
false
false
3,222
py
import unittest from calculate_oop import Calculator class calculator_oop_test(unittest.TestCase): def test_add_result(self): self.assertEqual(Calculator.add(2, 3), 5) self.assertEqual(Calculator.add(-2, -3), -5) self.assertEqual(Calculator.add(-2, 3), 1) self....
[ "ezekielakintunde18@gmail.com" ]
ezekielakintunde18@gmail.com
1ccbf579f9ecd74af6ca97e873ff405282991e42
b0391f6746cdf4344d03f616e1e82588b54adeb6
/nishatScrapping.py
3692858a806ed95c9829b787790ffef6828a7303
[]
no_license
Ziatariq/WEBHYPE_SCRAPPER
a523205188618a99f5fa3e898bb7800b0a5fbfa7
43062c4f88075de1679313de9d74a1357655ef9f
refs/heads/master
2022-09-29T11:04:20.497468
2020-06-03T15:21:56
2020-06-03T15:21:56
268,561,969
0
1
null
null
null
null
UTF-8
Python
false
false
2,345
py
import requests import random from datetime import datetime import requests import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["fypDb"] from bs4 import BeautifulSoup from fake_useragent import UserAgent ua = UserAgent() header = {'user-agent':ua.chrome} ...
[ "noreply@github.com" ]
noreply@github.com
63343e5590bf39482f37a91203e0c8ba6b022a08
08ca401b4f1d4973ea6c8b653509ae65e04f7208
/users/migrations/0001_initial.py
2f7c3746e13e5c770b426b2006020b9b02ea765f
[]
no_license
Paul-C3/Group_project
e6006f24a3633b8733a101bd66232c988c8b55e9
fc06d4ff7cee4cbd80f2859401ca614688c94f99
refs/heads/master
2022-11-23T15:42:13.864462
2020-07-29T01:58:05
2020-07-29T01:58:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
# Generated by Django 2.2 on 2020-07-29 01:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "dezzuttia@gmail.com" ]
dezzuttia@gmail.com
5e0d645e8d8db30e316d5aab006e9160adad1df9
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_impromptus.py
fee549bf75880518cd29b8bb36287ecde035b251
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#calss header class _IMPROMPTUS(): def __init__(self,): self.name = "IMPROMPTUS" self.definitions = impromptu self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['impromptu']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
6e1d01f79dda195d47526e92c52367add9bbc673
eeabaaf9731e8231e6ab5a35d2de945b382255e7
/gosenProject/products/serializers/common.py
93b9ce69f6a791922370b11a63fef676e1dca5b0
[]
no_license
ActoSoft/Gosen-Backend
a1253e01d9e8c78a9f212c700d9876be0b3997bb
ec5536e382d6311122a6c5e8f93cc300ed22e7fd
refs/heads/master
2022-12-13T12:20:08.930177
2020-04-18T19:48:43
2020-04-18T19:48:43
191,101,673
0
0
null
2022-12-08T07:27:11
2019-06-10T05:21:05
Python
UTF-8
Python
false
false
1,119
py
from rest_framework import serializers from ..models import Product, ProductStock, ProductImage from stocks.serializers.nested import BasicStockSerializer class ProductImageSerializer(serializers.ModelSerializer): class Meta: model = ProductImage fields = ['id', 'image'] class ProductStockSeria...
[ "martin.melo.dev.97@gmail.com" ]
martin.melo.dev.97@gmail.com
f691ee2989bae7c40b5a2f82be950381023c2c20
ed51f4726d1eec4b7fec03a1ebaa32d983f1008d
/gardens/apps.py
ffc10b571d2b501f8f6b438e5e9dbaf6f81e5928
[]
no_license
kaczuchg711/OrdiTree
ececbbb13fa48364441ebdde7f52980b2e1175fe
2b87535b8a60b9aca83674e5975f39f3f832c58a
refs/heads/master
2021-05-18T03:36:50.498916
2020-06-13T12:42:44
2020-06-13T12:42:44
251,085,715
1
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.apps import AppConfig class GardensConfig(AppConfig): name = 'gardens'
[ "you@example.com" ]
you@example.com
83c689ae14f37b8c74cb167ffd86dd167b97207b
4ef57c9aa197d02a1053e476db56d49e2b9abfc1
/api/servicemanager/pgrest.py
844cdd37b347b83c60665af213e49aa6f3abf84c
[ "MIT" ]
permissive
radomd92/botjagwar
62c1734a41e8b2128a790211d133fa223fcc7e4a
46d38c10dda69871f6b3d2b89bcf787cba49a764
refs/heads/master
2023-09-03T01:49:31.438859
2023-08-18T08:51:38
2023-08-18T08:51:38
87,109,884
10
0
MIT
2023-08-18T08:51:39
2017-04-03T18:58:33
Python
UTF-8
Python
false
false
6,908
py
from logging import getLogger from random import randint import requests from api.config import BotjagwarConfig log = getLogger('pgrest') config = BotjagwarConfig() class BackendError(Exception): pass class Backend(object): postgrest = config.get('postgrest_backend_address') def check_postgrest_back...
[ "rado.md92@gmail.com" ]
rado.md92@gmail.com
f4cd065a1176b5f99a4b4063581c8fc397b5a8c4
d935ee142cf32fd54285a78b57588202cdd74a3c
/HW10prog1_C_n_k.py
ee20d5e9c4b44afaf339a65662a681bee168e560
[]
no_license
mattfisc/cs240
7fc799f1dc223463b88172595119de8ddd51c916
cc40eb75051da2b88bc14e2d13e35e5ff93203ac
refs/heads/master
2022-11-07T23:34:35.743083
2020-06-24T21:06:45
2020-06-24T21:06:45
274,768,210
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
def coeffient(n , k): # termination if k==0 or k ==n : return 1 # recursive call return coeffient(n-1 , k-1) + coeffient(n-1 , k) n = 6 k = 2 print "Value of C(%d,%d) is (%d)" %(n , k , coeffient(n , k)) # ----- OUTPUT -------- # Value of C(6,2) is (15)
[ "mattfisc@gmail.com" ]
mattfisc@gmail.com
ef10da8008259ff805e21eee9608bb81a3c91f16
cefe9e52dacb3fd89eb413a5b982bf179c1cb671
/bukkitadmin/plugins.py
654af7a6d06341a7d826800602a4315a3556f039
[]
no_license
andrepl/bukkitadmin
e06921a53f39f46f721a51dd3d7466c9741bd743
33c97593540371df1c0946c6f627f731801b45a3
refs/heads/master
2020-08-09T20:11:43.522155
2014-08-02T15:52:54
2014-08-02T15:52:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,296
py
from __future__ import absolute_import import logging import os import shutil import yaml from . import jenkins, bukkitdev import itertools from bukkitadmin.util import extract_plugin_info, hashfile, download_file, query_yes_no, prompt_choices, format_search_result from bukkitadmin.versionparser import parse_version...
[ "andrepleblanc@gmail.com" ]
andrepleblanc@gmail.com
e36d5216b192e842d632a87650507221796a33e3
bcee50b3cbaf7a8000dffb7326cf467ae432b626
/basic/15650/nm_2_dfs.py
cfe1b263b0584c44a10c3b12c47bba7fd97e0bce
[]
no_license
entrekid/algorithms
53e5e563f6350b76047d8163ecd6e623dbe6e8d1
64377821718b3e44faf6a05be4d3ebf99b674489
refs/heads/master
2022-04-06T21:49:42.081981
2020-03-03T14:58:52
2020-03-03T14:58:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
n, m = map(int, input().split()) check_list = [False] * n num_list = [elem + 1 for elem in range(n)] result_list = [] def nm_dfs2(num): if num == m: print(*result_list) return for iter in range(n): if check_list[iter] == True: continue check_list[iter] = True ...
[ "root@LAPTOP-S2FAKB33.localdomain" ]
root@LAPTOP-S2FAKB33.localdomain
0399c62994e2f73d779c420bad0683c1d981a66e
de83c4b5caa71e0bf2f3709d8e92187916fd73ea
/pomodoro/views.py
7cfd8ba6a799eed3259928facc38f742a6e7f2c2
[]
no_license
onurcankurum/pomodoro
4abee3002c7b15cad60ba282410202300a0695cd
026e955a1fccf20e0ab1302d5a654432fc266ad8
refs/heads/master
2023-02-07T06:05:42.189973
2020-12-27T20:10:12
2020-12-27T20:10:12
324,838,874
0
0
null
null
null
null
UTF-8
Python
false
false
5,450
py
import datetime from django.shortcuts import render from django.http import HttpResponse from chronometer.models import Timer from django.views.generic import View from chronometer.views import Start,Resume,Pause,Stop,TimerView from .forms import SegmentForm import json import time from chronometer.quaries import query...
[ "dragokula@gmail.com" ]
dragokula@gmail.com
a53414492e195973f5a92c78c45bdc10b98e1b69
f9364a60157f2d4eaaddb053980055d12ecf4c9e
/recurrent/myrlcopy.py
d5295657595461ba6d60f45add2d17c7ef77c32c
[]
no_license
lorenzoviva/Tesi
de038a2d1b69076bc9e9f15b4c34a76d5e6e0c50
a8a439e32f1d7484ff6b0bf96a0cfe877001640c
refs/heads/master
2023-07-19T00:22:06.155791
2020-03-05T16:52:00
2020-03-05T16:52:00
245,185,242
0
0
null
2023-07-06T21:47:40
2020-03-05T14:31:28
Python
UTF-8
Python
false
false
2,817
py
import numpy as np import gym from dnc.dnc import DNC import torch import torch.optim as optim import torch.nn as nn gamma = 0.99 # discount factor for reward def repackage_hidden(h): """Wraps hidden states in new Tensors, to detach them from their history.""" if isinstance(h, torch.Tensor): r...
[ "lorenzoviva@github.com" ]
lorenzoviva@github.com
82a0e0d28994984b8a494fad02e967299d94d678
eb817a5a5fd66d00906d2ac2574e2ef749780877
/defining_classes/demos_metaclasses.py
b2fd1f30b2205a42c5e9f106569b3de0e8110ce2
[ "MIT" ]
permissive
Minkov/python-oop-2021-02
5afcc356f59196fdfcfd217b455b8621176f578b
bd387dde165f4338eed66c4bc0b4b516ee085340
refs/heads/main
2023-04-01T08:07:39.096457
2021-04-05T18:24:40
2021-04-05T18:24:40
341,306,261
3
2
null
null
null
null
UTF-8
Python
false
false
649
py
class Singleton(type): __instances = {} def __new__(cls, *args, **kwargs): return super().__new__(cls, *args, **kwargs) def __call__(cls, *args, **kwargs): if cls not in cls.__instances: cls.__instances[cls] = super().__call__(*args, **kwargs) return cls.__instances[cls...
[ "DonchoMinkov@gmail.com" ]
DonchoMinkov@gmail.com
f611c298ac38c70e4845c780d01c9b58bd3c5387
f87c6dbecfa3501c57cc121f9849269228c818be
/A1/lotto.py
772766e37031bd212b9e4cf251f3d173eb70498e
[]
no_license
jason-lui/A00930386_1510_assignments
69a4f66adac0e33e2ea79cd21336ec95ea565569
503e636293a0f150da4644ea482d44020f02bf19
refs/heads/master
2022-03-11T19:05:05.585468
2019-11-24T04:51:49
2019-11-24T04:51:49
210,057,902
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
import doctest def number_generator(): """ Print 6 unique numbers. Numbers range from [1, 49]. :postconditions: generates 6 unique numbers in [1, 49] """ import random # Generate a sample of 6 numbers from [1, 49] res = random.sample(list(range(50)), 6) # Sort res in ascending o...
[ "mrjasonlui@gmail.com" ]
mrjasonlui@gmail.com
78b0d82b027f95caf78dbfefa9926b6566ac2e1e
988419b3d285b50f6038da17a1a4100857707e8b
/scripts/measure_rpi.py
c79cea97c11f8a7c6046c6409b2820e77c9b7db3
[ "BSD-2-Clause" ]
permissive
saman-aghazadeh/Riptide
58fec5677aeab92a174644693321de0c87a11d38
bda83182f8bcdea7e06743f68bc1e9b4d675cd61
refs/heads/master
2022-06-20T00:19:25.686522
2020-05-13T18:18:41
2020-05-13T18:18:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,782
py
import os import numpy as np import tensorflow as tf import argparse import tvm from tvm import autotvm from tvm import relay from tvm.relay import testing import tvm.relay.testing.tf as tf_testing from tvm.autotvm.tuner import XGBTuner, GATuner, GridSearchTuner from tvm.contrib.util import tempdir from tvm.contrib im...
[ "jwfromm@cs.washington.edu" ]
jwfromm@cs.washington.edu
005e6a8d7f20ae9bcc7a387f6cf8b691bc2da6d2
aaa3ab0c89f558a33ddcad9bcc5a687049dbc599
/backend/src/websocket/socket.py
c7efe44db002bc33abccdeaebe9cf23e1008b529
[]
no_license
vetordev/Hypersup
5d059282971bf45f54f8be49071984371f98aabe
961ac24209a3772fef5016ca851f82bc2fc40bd1
refs/heads/master
2021-02-16T18:40:06.197712
2020-03-18T22:20:13
2020-03-18T22:20:13
245,034,794
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
from flask import request class Socket: def __init__(self, socket, app): self.socket = socket self.app = app def run(self): @self.socket.on('connect') def connect(): print('New Connection; Id: ${id}'.format(id=request.sid))
[ "you@example.com" ]
you@example.com
f1e42d10133a550e216b7326118d6d44d7a683d9
d9652e4f7292aa6f7031ff867d7c5ad99c99c64d
/2020/day-3/challenge.py
e24ea8be3c74ad1d9fd3e6dc5fa4ab1ad2d78ca1
[]
no_license
jbgury/adventofcode
f55d941af657661df42e7669a1dee1afb98e6c59
10d80f9862895654871f9bc0ede7fbcb3ff1889c
refs/heads/master
2023-01-23T09:39:49.426544
2020-12-06T21:03:44
2020-12-06T21:03:44
319,130,513
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import operator lines = [] for line in sys.stdin: lines.append(line.rstrip('\n')) def count_tree((move_right, move_down), lines): position_r = 0 nb_trees = 0 for l in lines[::move_down]: if l[position_r] == '#': nb_trees +=...
[ "jean-baptiste.gury@cambiatech.com" ]
jean-baptiste.gury@cambiatech.com
f104b8460b85216dc55272488848f1390cfc68a8
54adc2ec1eb7972dc8b8101d969176d45f2a949d
/analyse.py
d76982023669808194bbfd3b91e68deb04310b54
[]
no_license
Ngugi1/csoe
5d8939b953cdb6a1707c8ec99ed117562fdf3b5f
5ad1b9d8add4a5d684cabc9a23823099bca18ab2
refs/heads/master
2022-03-12T06:41:54.503548
2019-11-24T13:07:10
2019-11-24T13:07:10
223,015,916
1
0
null
null
null
null
UTF-8
Python
false
false
9,409
py
# Load repos # Get first and last commit # Split the timestamps into 10 periods # Get LOC of c in P # Get complexity from datetime import datetime from pydriller import RepositoryMining, GitRepository import re # Repositories and their main branches repos = [("aries", "trunk")] # Prepare repo for mining def configu...
[ "ngugindunguapps@gmail.com" ]
ngugindunguapps@gmail.com
92cb0ab3f70161b2d376b8784ed7d75a50826a68
5e6989edb5efd56df912647515c8fabdde16a80b
/sendmail.py
d20b264b3168c0df82dfb1e52ddfe865354fc2bd
[]
no_license
MaciejWiatr/flask-api
fdb65d2d9a90fd6dc7daee37fe851fdcab888ecd
835cf3478d13076b315c7e03d6dd9aee7e4cb0f3
refs/heads/master
2020-06-01T07:52:55.278238
2019-06-30T18:09:02
2019-06-30T18:09:02
190,707,767
1
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
import smtplib import codecs import os from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText fullpath = os.path.realpath(__file__) folder = os.path.dirname(fullpath) def send_mail(bot_email, bot_password, my_email, name, email): # me == my email address # you == recipient's email...
[ "maciekwiatr17@gmail.com" ]
maciekwiatr17@gmail.com
9c1182f4dec607a9cf5b2d60ff5929ead162678b
9470eccaf472b1ff6ff4e267321f0dd68b55bcab
/app/tests/test_examples.py
76ceabfcc9ae09c8c68853e1d9f258b0f7ad73f2
[ "MIT" ]
permissive
PittRgz/auto-testing
1f57fef5791a26a491e8b86b698b19b47a922a1e
1d035a81f17aea3bf76836dc92a7a91977a4218f
refs/heads/main
2023-07-04T19:16:55.911996
2021-08-03T19:45:01
2021-08-03T19:45:01
392,406,097
0
0
MIT
2021-08-03T19:47:09
2021-08-03T17:51:01
Python
UTF-8
Python
false
false
468
py
""" This is a simple tests file """ def test_sum(): """Testing a sum of two numbers""" val_1 = 4 val_2 = 3 res = 7 assert val_1 + val_2 == res def test_strings_equal(): """Testing that two strings are equal""" string_1 = 'string' string_2 = 'string' assert string_1 == string_2 ...
[ "pedrorodriguez@MacBook-Pro-de-Pedro.local" ]
pedrorodriguez@MacBook-Pro-de-Pedro.local
c69eb01195ec0cf56f62751cbb04390378955500
c6d94fad0eb1ca7342de1fc3491f18233ae32b81
/cwb/data/source/earthquake_info.py
6d59a39c8c0e67a302fa262d818d73406ec62e25
[]
no_license
shengtai0201/OpenDataCollection
f16e04085f266851b078dcef06384f9f95f6216c
064f73e1973ffff338913048dff429b62a6a63a7
refs/heads/master
2021-01-25T06:45:27.554847
2017-06-24T09:44:21
2017-06-24T09:44:21
93,606,728
0
1
null
null
null
null
UTF-8
Python
false
false
625
py
# 地震規模標籤 class Magnitude: def __init__(self): # 規模類型 self.magnitude_type = None # 規模大小 self.magnitude_value = None # 地震資訊 class EarthquakeInfo: def __init__(self, origin_time, epicenter, depth, magnitude): # 發震時間 self.origin_time = origin_time # 震央資料 ...
[ "shengtai0201@gmail.com" ]
shengtai0201@gmail.com
884626558656a25eb482c9309b7910cfdf19bd55
83e27a3a1680db233378e7dfb96d5b95a2410f9c
/flask-大型网站架构4-显示-修改资料/tests/test-user_model.py
03919195527bb164b700de0622acf52e5d16d4f1
[]
no_license
dcl1994/Flask_Study
2425af269b601a9291b61455442e1a6d765defab
8353f26a1b393b4adfd50ff24ce4267fb9857065
refs/heads/master
2020-03-21T08:04:44.471648
2017-10-22T02:54:55
2017-10-22T02:54:55
138,318,578
1
0
null
null
null
null
UTF-8
Python
false
false
698
py
import unittest from app.models import User class UserModelTestCase(unittest.TestCase): def test_password_setter(self): u=User(password='cat') self.assertTrue(u.password_hash is not None) def test_no_password_getter(self): u=User(password='cat') with self.assertRaises(Attribute...
[ "834930269@qq.com" ]
834930269@qq.com
6e8c5bb4be321f6d97fe22346495d10f7176c10e
900dac4c57f71f7ec9171178efa31bd95c29b002
/core/network/nets/resnet_utils.py
764108eaf11058a25b158bb9f185a9e870ba75e1
[ "MIT" ]
permissive
atranitell/TensorGate
9c6ad6f4d02b8de7de9d4e0b65e56436d06c6c63
1c134d86f4db6f0e44ec3b0c28d50cc493fb3aeb
refs/heads/master
2021-03-22T02:53:20.498174
2018-03-02T05:05:47
2018-03-02T05:05:47
84,150,954
0
0
null
null
null
null
UTF-8
Python
false
false
10,677
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "atranitell@gmail.com" ]
atranitell@gmail.com